blob: 7eec35317ad0c4e5cf234f53fd4470dc8c1dddd3 [file] [log] [blame]
Alexandre Lision8af73cb2013-12-10 14:11:20 -05001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 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 # Zsh 3.x and 4.x performs 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
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367 (exit \$1)
368}
369as_func_success () {
370 as_func_return 0
371}
372as_func_failure () {
373 as_func_return 1
374}
375as_func_ret_success () {
376 return 0
377}
378as_func_ret_failure () {
379 return 1
380}
381
382exitcode=0
383if as_func_success; then
384 :
385else
386 exitcode=1
387 echo as_func_success failed.
388fi
389
390if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396 :
397else
398 exitcode=1
399 echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409else
410 exitcode=1
411 echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419}
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463}
464
465
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479*)
480 ECHO_N='-n';;
481esac
482
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
491if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496fi
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508else
509 as_ln_s='cp -p'
510fi
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
513
514if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519fi
520
521if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541fi
542as_executable_p=$as_test_x
543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553# Check that we are running under the correct shell.
554SHELL=${CONFIG_SHELL-/bin/sh}
555
556case X$ECHO in
557X*--fallback-echo)
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560 ;;
561esac
562
563echo=${ECHO-echo}
564if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
566 shift
567elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
569 :
570elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
572 :
573else
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
576fi
577
578if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
580 shift
581 cat <<EOF
582$*
583EOF
584 exit 0
585fi
586
587# The HP-UX ksh and POSIX shell print the target directory to stdout
588# if CDPATH is set.
589(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591if test -z "$ECHO"; then
592if test "X${echo_test_string+set}" != Xset; then
593# find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597 echo_test_string=`eval $cmd` &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599 then
600 break
601 fi
602 done
603fi
604
605if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 :
609else
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
613 #
614 # So, first we look for a working echo in the user's PATH.
615
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
618 IFS="$lt_save_ifs"
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 echo="$dir/echo"
624 break
625 fi
626 done
627 IFS="$lt_save_ifs"
628
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
635 echo='print -r'
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
642 export CONFIG_SHELL
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644 else
645 # Try using printf.
646 echo='printf %s\n'
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
650 # Cool, printf works
651 :
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 export CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
659 export SHELL
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
666 else
667 # maybe with a smaller string...
668 prev=:
669
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672 then
673 break
674 fi
675 prev="$cmd"
676 done
677
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 else
683 # Oops. We lost completely, so just stick with echo.
684 echo=echo
685 fi
686 fi
687 fi
688 fi
689fi
690fi
691
692# Copy echo and quote the copy suitably for passing to libtool from
693# the Makefile, instead of quoting the original, which is used later.
694ECHO=$echo
695if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697fi
698
699
700
701
702tagnames=${tagnames+${tagnames},}CXX
703
704tagnames=${tagnames+${tagnames},}F77
705
706exec 7<&0 </dev/null 6>&1
707
708# Name of the host.
709# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710# so uname gets run too.
711ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713#
714# Initializations.
715#
716ac_default_prefix=/usr/local
717ac_clean_files=
718ac_config_libobj_dir=.
719LIBOBJS=
720cross_compiling=no
721subdirs=
722MFLAGS=
723MAKEFLAGS=
724SHELL=${CONFIG_SHELL-/bin/sh}
725
726# Identity of this package.
727PACKAGE_NAME=
728PACKAGE_TARNAME=
729PACKAGE_VERSION=
730PACKAGE_STRING=
731PACKAGE_BUGREPORT=
732
733ac_unique_file="include/portaudio.h"
734# Factoring default headers for most tests.
735ac_includes_default="\
736#include <stdio.h>
737#ifdef HAVE_SYS_TYPES_H
738# include <sys/types.h>
739#endif
740#ifdef HAVE_SYS_STAT_H
741# include <sys/stat.h>
742#endif
743#ifdef STDC_HEADERS
744# include <stdlib.h>
745# include <stddef.h>
746#else
747# ifdef HAVE_STDLIB_H
748# include <stdlib.h>
749# endif
750#endif
751#ifdef HAVE_STRING_H
752# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753# include <memory.h>
754# endif
755# include <string.h>
756#endif
757#ifdef HAVE_STRINGS_H
758# include <strings.h>
759#endif
760#ifdef HAVE_INTTYPES_H
761# include <inttypes.h>
762#endif
763#ifdef HAVE_STDINT_H
764# include <stdint.h>
765#endif
766#ifdef HAVE_UNISTD_H
767# include <unistd.h>
768#endif"
769
770ac_subst_vars='SHELL
771PATH_SEPARATOR
772PACKAGE_NAME
773PACKAGE_TARNAME
774PACKAGE_VERSION
775PACKAGE_STRING
776PACKAGE_BUGREPORT
777exec_prefix
778prefix
779program_transform_name
780bindir
781sbindir
782libexecdir
783datarootdir
784datadir
785sysconfdir
786sharedstatedir
787localstatedir
788includedir
789oldincludedir
790docdir
791infodir
792htmldir
793dvidir
794pdfdir
795psdir
796libdir
797localedir
798mandir
799DEFS
800ECHO_C
801ECHO_N
802ECHO_T
803LIBS
804build_alias
805host_alias
806target_alias
807CC
808CFLAGS
809LDFLAGS
810CPPFLAGS
811ac_ct_CC
812EXEEXT
813OBJEXT
814build
815build_cpu
816build_vendor
817build_os
818host
819host_cpu
820host_vendor
821host_os
822GREP
823EGREP
824LN_S
825ECHO
826AR
827RANLIB
828STRIP
829DLLTOOL
830AS
831OBJDUMP
832CPP
833CXX
834CXXFLAGS
835ac_ct_CXX
836CXXCPP
837F77
838FFLAGS
839ac_ct_F77
840LIBTOOL
841INSTALL_PROGRAM
842INSTALL_SCRIPT
843INSTALL_DATA
844PKG_CONFIG
845JACK_CFLAGS
846JACK_LIBS
847LT_CURRENT
848LT_REVISION
849LT_AGE
850OTHER_OBJS
851PADLL
852SHARED_FLAGS
853THREAD_CFLAGS
854DLL_LIBS
855NASM
856NASMOPT
857subdirs
858ENABLE_CXX_TRUE
859ENABLE_CXX_FALSE
860LIBOBJS
861LTLIBOBJS'
862ac_subst_files=''
863 ac_precious_vars='build_alias
864host_alias
865target_alias
866CC
867CFLAGS
868LDFLAGS
869LIBS
870CPPFLAGS
871CPP
872CXX
873CXXFLAGS
874CCC
875CXXCPP
876F77
877FFLAGS
878PKG_CONFIG
879JACK_CFLAGS
880JACK_LIBS'
881ac_subdirs_all='bindings/cpp'
882
883# Initialize some variables set by options.
884ac_init_help=
885ac_init_version=false
886# The variables have the same names as the options, with
887# dashes changed to underlines.
888cache_file=/dev/null
889exec_prefix=NONE
890no_create=
891no_recursion=
892prefix=NONE
893program_prefix=NONE
894program_suffix=NONE
895program_transform_name=s,x,x,
896silent=
897site=
898srcdir=
899verbose=
900x_includes=NONE
901x_libraries=NONE
902
903# Installation directory options.
904# These are left unexpanded so users can "make install exec_prefix=/foo"
905# and all the variables that are supposed to be based on exec_prefix
906# by default will actually change.
907# Use braces instead of parens because sh, perl, etc. also accept them.
908# (The list follows the same order as the GNU Coding Standards.)
909bindir='${exec_prefix}/bin'
910sbindir='${exec_prefix}/sbin'
911libexecdir='${exec_prefix}/libexec'
912datarootdir='${prefix}/share'
913datadir='${datarootdir}'
914sysconfdir='${prefix}/etc'
915sharedstatedir='${prefix}/com'
916localstatedir='${prefix}/var'
917includedir='${prefix}/include'
918oldincludedir='/usr/include'
919docdir='${datarootdir}/doc/${PACKAGE}'
920infodir='${datarootdir}/info'
921htmldir='${docdir}'
922dvidir='${docdir}'
923pdfdir='${docdir}'
924psdir='${docdir}'
925libdir='${exec_prefix}/lib'
926localedir='${datarootdir}/locale'
927mandir='${datarootdir}/man'
928
929ac_prev=
930ac_dashdash=
931for ac_option
932do
933 # If the previous option needs an argument, assign it.
934 if test -n "$ac_prev"; then
935 eval $ac_prev=\$ac_option
936 ac_prev=
937 continue
938 fi
939
940 case $ac_option in
941 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
942 *) ac_optarg=yes ;;
943 esac
944
945 # Accept the important Cygnus configure options, so we can diagnose typos.
946
947 case $ac_dashdash$ac_option in
948 --)
949 ac_dashdash=yes ;;
950
951 -bindir | --bindir | --bindi | --bind | --bin | --bi)
952 ac_prev=bindir ;;
953 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
954 bindir=$ac_optarg ;;
955
956 -build | --build | --buil | --bui | --bu)
957 ac_prev=build_alias ;;
958 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
959 build_alias=$ac_optarg ;;
960
961 -cache-file | --cache-file | --cache-fil | --cache-fi \
962 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
963 ac_prev=cache_file ;;
964 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
965 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
966 cache_file=$ac_optarg ;;
967
968 --config-cache | -C)
969 cache_file=config.cache ;;
970
971 -datadir | --datadir | --datadi | --datad)
972 ac_prev=datadir ;;
973 -datadir=* | --datadir=* | --datadi=* | --datad=*)
974 datadir=$ac_optarg ;;
975
976 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
977 | --dataroo | --dataro | --datar)
978 ac_prev=datarootdir ;;
979 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
980 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
981 datarootdir=$ac_optarg ;;
982
983 -disable-* | --disable-*)
984 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
987 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
988 { (exit 1); exit 1; }; }
989 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
990 eval enable_$ac_feature=no ;;
991
992 -docdir | --docdir | --docdi | --doc | --do)
993 ac_prev=docdir ;;
994 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
995 docdir=$ac_optarg ;;
996
997 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
998 ac_prev=dvidir ;;
999 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1000 dvidir=$ac_optarg ;;
1001
1002 -enable-* | --enable-*)
1003 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1004 # Reject names that are not valid shell variable names.
1005 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1006 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1007 { (exit 1); exit 1; }; }
1008 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1009 eval enable_$ac_feature=\$ac_optarg ;;
1010
1011 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013 | --exec | --exe | --ex)
1014 ac_prev=exec_prefix ;;
1015 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017 | --exec=* | --exe=* | --ex=*)
1018 exec_prefix=$ac_optarg ;;
1019
1020 -gas | --gas | --ga | --g)
1021 # Obsolete; use --with-gas.
1022 with_gas=yes ;;
1023
1024 -help | --help | --hel | --he | -h)
1025 ac_init_help=long ;;
1026 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027 ac_init_help=recursive ;;
1028 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029 ac_init_help=short ;;
1030
1031 -host | --host | --hos | --ho)
1032 ac_prev=host_alias ;;
1033 -host=* | --host=* | --hos=* | --ho=*)
1034 host_alias=$ac_optarg ;;
1035
1036 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1037 ac_prev=htmldir ;;
1038 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1039 | --ht=*)
1040 htmldir=$ac_optarg ;;
1041
1042 -includedir | --includedir | --includedi | --included | --include \
1043 | --includ | --inclu | --incl | --inc)
1044 ac_prev=includedir ;;
1045 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046 | --includ=* | --inclu=* | --incl=* | --inc=*)
1047 includedir=$ac_optarg ;;
1048
1049 -infodir | --infodir | --infodi | --infod | --info | --inf)
1050 ac_prev=infodir ;;
1051 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1052 infodir=$ac_optarg ;;
1053
1054 -libdir | --libdir | --libdi | --libd)
1055 ac_prev=libdir ;;
1056 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1057 libdir=$ac_optarg ;;
1058
1059 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060 | --libexe | --libex | --libe)
1061 ac_prev=libexecdir ;;
1062 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063 | --libexe=* | --libex=* | --libe=*)
1064 libexecdir=$ac_optarg ;;
1065
1066 -localedir | --localedir | --localedi | --localed | --locale)
1067 ac_prev=localedir ;;
1068 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069 localedir=$ac_optarg ;;
1070
1071 -localstatedir | --localstatedir | --localstatedi | --localstated \
1072 | --localstate | --localstat | --localsta | --localst | --locals)
1073 ac_prev=localstatedir ;;
1074 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1075 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1076 localstatedir=$ac_optarg ;;
1077
1078 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1079 ac_prev=mandir ;;
1080 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1081 mandir=$ac_optarg ;;
1082
1083 -nfp | --nfp | --nf)
1084 # Obsolete; use --without-fp.
1085 with_fp=no ;;
1086
1087 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1088 | --no-cr | --no-c | -n)
1089 no_create=yes ;;
1090
1091 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1093 no_recursion=yes ;;
1094
1095 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097 | --oldin | --oldi | --old | --ol | --o)
1098 ac_prev=oldincludedir ;;
1099 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1102 oldincludedir=$ac_optarg ;;
1103
1104 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1105 ac_prev=prefix ;;
1106 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1107 prefix=$ac_optarg ;;
1108
1109 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110 | --program-pre | --program-pr | --program-p)
1111 ac_prev=program_prefix ;;
1112 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1114 program_prefix=$ac_optarg ;;
1115
1116 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117 | --program-suf | --program-su | --program-s)
1118 ac_prev=program_suffix ;;
1119 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1121 program_suffix=$ac_optarg ;;
1122
1123 -program-transform-name | --program-transform-name \
1124 | --program-transform-nam | --program-transform-na \
1125 | --program-transform-n | --program-transform- \
1126 | --program-transform | --program-transfor \
1127 | --program-transfo | --program-transf \
1128 | --program-trans | --program-tran \
1129 | --progr-tra | --program-tr | --program-t)
1130 ac_prev=program_transform_name ;;
1131 -program-transform-name=* | --program-transform-name=* \
1132 | --program-transform-nam=* | --program-transform-na=* \
1133 | --program-transform-n=* | --program-transform-=* \
1134 | --program-transform=* | --program-transfor=* \
1135 | --program-transfo=* | --program-transf=* \
1136 | --program-trans=* | --program-tran=* \
1137 | --progr-tra=* | --program-tr=* | --program-t=*)
1138 program_transform_name=$ac_optarg ;;
1139
1140 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1141 ac_prev=pdfdir ;;
1142 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143 pdfdir=$ac_optarg ;;
1144
1145 -psdir | --psdir | --psdi | --psd | --ps)
1146 ac_prev=psdir ;;
1147 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1148 psdir=$ac_optarg ;;
1149
1150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151 | -silent | --silent | --silen | --sile | --sil)
1152 silent=yes ;;
1153
1154 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1155 ac_prev=sbindir ;;
1156 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1157 | --sbi=* | --sb=*)
1158 sbindir=$ac_optarg ;;
1159
1160 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1161 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1162 | --sharedst | --shareds | --shared | --share | --shar \
1163 | --sha | --sh)
1164 ac_prev=sharedstatedir ;;
1165 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1166 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1167 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1168 | --sha=* | --sh=*)
1169 sharedstatedir=$ac_optarg ;;
1170
1171 -site | --site | --sit)
1172 ac_prev=site ;;
1173 -site=* | --site=* | --sit=*)
1174 site=$ac_optarg ;;
1175
1176 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1177 ac_prev=srcdir ;;
1178 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1179 srcdir=$ac_optarg ;;
1180
1181 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1182 | --syscon | --sysco | --sysc | --sys | --sy)
1183 ac_prev=sysconfdir ;;
1184 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1185 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1186 sysconfdir=$ac_optarg ;;
1187
1188 -target | --target | --targe | --targ | --tar | --ta | --t)
1189 ac_prev=target_alias ;;
1190 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1191 target_alias=$ac_optarg ;;
1192
1193 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1194 verbose=yes ;;
1195
1196 -version | --version | --versio | --versi | --vers | -V)
1197 ac_init_version=: ;;
1198
1199 -with-* | --with-*)
1200 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1201 # Reject names that are not valid shell variable names.
1202 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203 { echo "$as_me: error: invalid package name: $ac_package" >&2
1204 { (exit 1); exit 1; }; }
1205 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1206 eval with_$ac_package=\$ac_optarg ;;
1207
1208 -without-* | --without-*)
1209 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1212 { echo "$as_me: error: invalid package name: $ac_package" >&2
1213 { (exit 1); exit 1; }; }
1214 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1215 eval with_$ac_package=no ;;
1216
1217 --x)
1218 # Obsolete; use --with-x.
1219 with_x=yes ;;
1220
1221 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1222 | --x-incl | --x-inc | --x-in | --x-i)
1223 ac_prev=x_includes ;;
1224 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1225 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1226 x_includes=$ac_optarg ;;
1227
1228 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1229 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1230 ac_prev=x_libraries ;;
1231 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1232 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1233 x_libraries=$ac_optarg ;;
1234
1235 -*) { echo "$as_me: error: unrecognized option: $ac_option
1236Try \`$0 --help' for more information." >&2
1237 { (exit 1); exit 1; }; }
1238 ;;
1239
1240 *=*)
1241 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1244 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1245 { (exit 1); exit 1; }; }
1246 eval $ac_envvar=\$ac_optarg
1247 export $ac_envvar ;;
1248
1249 *)
1250 # FIXME: should be removed in autoconf 3.0.
1251 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1252 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1254 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1255 ;;
1256
1257 esac
1258done
1259
1260if test -n "$ac_prev"; then
1261 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1262 { echo "$as_me: error: missing argument to $ac_option" >&2
1263 { (exit 1); exit 1; }; }
1264fi
1265
1266# Be sure to have absolute directory names.
1267for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268 datadir sysconfdir sharedstatedir localstatedir includedir \
1269 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270 libdir localedir mandir
1271do
1272 eval ac_val=\$$ac_var
1273 case $ac_val in
1274 [\\/$]* | ?:[\\/]* ) continue;;
1275 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1276 esac
1277 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1278 { (exit 1); exit 1; }; }
1279done
1280
1281# There might be people who depend on the old broken behavior: `$host'
1282# used to hold the argument of --host etc.
1283# FIXME: To remove some day.
1284build=$build_alias
1285host=$host_alias
1286target=$target_alias
1287
1288# FIXME: To remove some day.
1289if test "x$host_alias" != x; then
1290 if test "x$build_alias" = x; then
1291 cross_compiling=maybe
1292 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1293 If a cross compiler is detected then cross compile mode will be used." >&2
1294 elif test "x$build_alias" != "x$host_alias"; then
1295 cross_compiling=yes
1296 fi
1297fi
1298
1299ac_tool_prefix=
1300test -n "$host_alias" && ac_tool_prefix=$host_alias-
1301
1302test "$silent" = yes && exec 6>/dev/null
1303
1304
1305ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306ac_ls_di=`ls -di .` &&
1307ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308 { echo "$as_me: error: Working directory cannot be determined" >&2
1309 { (exit 1); exit 1; }; }
1310test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311 { echo "$as_me: error: pwd does not report name of working directory" >&2
1312 { (exit 1); exit 1; }; }
1313
1314
1315# Find the source files, if location was not specified.
1316if test -z "$srcdir"; then
1317 ac_srcdir_defaulted=yes
1318 # Try the directory containing this script, then the parent directory.
1319 ac_confdir=`$as_dirname -- "$0" ||
1320$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1321 X"$0" : 'X\(//\)[^/]' \| \
1322 X"$0" : 'X\(//\)$' \| \
1323 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1324echo X"$0" |
1325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\/\)[^/].*/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\/\)$/{
1334 s//\1/
1335 q
1336 }
1337 /^X\(\/\).*/{
1338 s//\1/
1339 q
1340 }
1341 s/.*/./; q'`
1342 srcdir=$ac_confdir
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344 srcdir=..
1345 fi
1346else
1347 ac_srcdir_defaulted=no
1348fi
1349if test ! -r "$srcdir/$ac_unique_file"; then
1350 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1351 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1352 { (exit 1); exit 1; }; }
1353fi
1354ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355ac_abs_confdir=`(
1356 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1357 { (exit 1); exit 1; }; }
1358 pwd)`
1359# When building in place, set srcdir=.
1360if test "$ac_abs_confdir" = "$ac_pwd"; then
1361 srcdir=.
1362fi
1363# Remove unnecessary trailing slashes from srcdir.
1364# Double slashes in file names in object file debugging info
1365# mess up M-x gdb in Emacs.
1366case $srcdir in
1367*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368esac
1369for ac_var in $ac_precious_vars; do
1370 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_env_${ac_var}_value=\$${ac_var}
1372 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374done
1375
1376#
1377# Report the --help message.
1378#
1379if test "$ac_init_help" = "long"; then
1380 # Omit some internal or obsolete options to make the list less imposing.
1381 # This message is too long to be a string in the A/UX 3.1 sh.
1382 cat <<_ACEOF
1383\`configure' configures this package to adapt to many kinds of systems.
1384
1385Usage: $0 [OPTION]... [VAR=VALUE]...
1386
1387To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388VAR=VALUE. See below for descriptions of some of the useful variables.
1389
1390Defaults for the options are specified in brackets.
1391
1392Configuration:
1393 -h, --help display this help and exit
1394 --help=short display options specific to this package
1395 --help=recursive display the short help of all the included packages
1396 -V, --version display version information and exit
1397 -q, --quiet, --silent do not print \`checking...' messages
1398 --cache-file=FILE cache test results in FILE [disabled]
1399 -C, --config-cache alias for \`--cache-file=config.cache'
1400 -n, --no-create do not create output files
1401 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1402
1403Installation directories:
1404 --prefix=PREFIX install architecture-independent files in PREFIX
1405 [$ac_default_prefix]
1406 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1407 [PREFIX]
1408
1409By default, \`make install' will install all the files in
1410\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1411an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412for instance \`--prefix=\$HOME'.
1413
1414For better control, use the options below.
1415
1416Fine tuning of the installation directories:
1417 --bindir=DIR user executables [EPREFIX/bin]
1418 --sbindir=DIR system admin executables [EPREFIX/sbin]
1419 --libexecdir=DIR program executables [EPREFIX/libexec]
1420 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1421 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1422 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1423 --libdir=DIR object code libraries [EPREFIX/lib]
1424 --includedir=DIR C header files [PREFIX/include]
1425 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1426 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1427 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1428 --infodir=DIR info documentation [DATAROOTDIR/info]
1429 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1430 --mandir=DIR man documentation [DATAROOTDIR/man]
1431 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1432 --htmldir=DIR html documentation [DOCDIR]
1433 --dvidir=DIR dvi documentation [DOCDIR]
1434 --pdfdir=DIR pdf documentation [DOCDIR]
1435 --psdir=DIR ps documentation [DOCDIR]
1436_ACEOF
1437
1438 cat <<\_ACEOF
1439
1440System types:
1441 --build=BUILD configure for building on BUILD [guessed]
1442 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1443_ACEOF
1444fi
1445
1446if test -n "$ac_init_help"; then
1447
1448 cat <<\_ACEOF
1449
1450Optional Features:
1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1453 --enable-debug-output
1454 --enable-cxx (default=no)
1455 --enable-mac-debug (default=no)
1456 --enable-mac-universal (default=yes)
1457 --enable-shared[=PKGS] build shared libraries [default=yes]
1458 --enable-static[=PKGS] build static libraries [default=yes]
1459 --enable-fast-install[=PKGS]
1460 optimize for fast installation [default=yes]
1461 --disable-libtool-lock avoid locking (might break parallel builds)
1462
1463Optional Packages:
1464 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1465 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1466 --with-alsa (default=yes)
1467 --with-jack (default=yes)
1468 --with-oss (default=yes)
1469 --with-asihpi (default=auto)
1470 --with-host_os (no default)
1471 --with-winapi ((wmme/directx/asio) default=wmme)
1472 --with-macapi ((asio/core/sm) default=core)
1473 --with-asiodir (default=/usr/local/asiosdk2)
1474 --with-dxdir (default=/usr/local/dx7sdk)
1475 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1476 --with-pic try to use only PIC/non-PIC objects [default=use
1477 both]
1478 --with-tags[=TAGS] include additional configurations [automatic]
1479
1480Some influential environment variables:
1481 CC C compiler command
1482 CFLAGS C compiler flags
1483 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1484 nonstandard directory <lib dir>
1485 LIBS libraries to pass to the linker, e.g. -l<library>
1486 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1487 you have headers in a nonstandard directory <include dir>
1488 CPP C preprocessor
1489 CXX C++ compiler command
1490 CXXFLAGS C++ compiler flags
1491 CXXCPP C++ preprocessor
1492 F77 Fortran 77 compiler command
1493 FFLAGS Fortran 77 compiler flags
1494 PKG_CONFIG path to pkg-config utility
1495 JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
1496 JACK_LIBS linker flags for JACK, overriding pkg-config
1497
1498Use these variables to override the choices made by `configure' or to help
1499it to find libraries and programs with nonstandard names/locations.
1500
1501_ACEOF
1502ac_status=$?
1503fi
1504
1505if test "$ac_init_help" = "recursive"; then
1506 # If there are subdirs, report their specific --help.
1507 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1508 test -d "$ac_dir" || continue
1509 ac_builddir=.
1510
1511case "$ac_dir" in
1512.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513*)
1514 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1515 # A ".." for each directory in $ac_dir_suffix.
1516 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1517 case $ac_top_builddir_sub in
1518 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1520 esac ;;
1521esac
1522ac_abs_top_builddir=$ac_pwd
1523ac_abs_builddir=$ac_pwd$ac_dir_suffix
1524# for backward compatibility:
1525ac_top_builddir=$ac_top_build_prefix
1526
1527case $srcdir in
1528 .) # We are building in place.
1529 ac_srcdir=.
1530 ac_top_srcdir=$ac_top_builddir_sub
1531 ac_abs_top_srcdir=$ac_pwd ;;
1532 [\\/]* | ?:[\\/]* ) # Absolute name.
1533 ac_srcdir=$srcdir$ac_dir_suffix;
1534 ac_top_srcdir=$srcdir
1535 ac_abs_top_srcdir=$srcdir ;;
1536 *) # Relative name.
1537 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1538 ac_top_srcdir=$ac_top_build_prefix$srcdir
1539 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1540esac
1541ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1542
1543 cd "$ac_dir" || { ac_status=$?; continue; }
1544 # Check for guested configure.
1545 if test -f "$ac_srcdir/configure.gnu"; then
1546 echo &&
1547 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1548 elif test -f "$ac_srcdir/configure"; then
1549 echo &&
1550 $SHELL "$ac_srcdir/configure" --help=recursive
1551 else
1552 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1553 fi || ac_status=$?
1554 cd "$ac_pwd" || { ac_status=$?; break; }
1555 done
1556fi
1557
1558test -n "$ac_init_help" && exit $ac_status
1559if $ac_init_version; then
1560 cat <<\_ACEOF
1561configure
1562generated by GNU Autoconf 2.61
1563
1564Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15652002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1566This configure script is free software; the Free Software Foundation
1567gives unlimited permission to copy, distribute and modify it.
1568_ACEOF
1569 exit
1570fi
1571cat >config.log <<_ACEOF
1572This file contains any messages produced by compilers while
1573running configure, to aid debugging if configure makes a mistake.
1574
1575It was created by $as_me, which was
1576generated by GNU Autoconf 2.61. Invocation command line was
1577
1578 $ $0 $@
1579
1580_ACEOF
1581exec 5>>config.log
1582{
1583cat <<_ASUNAME
1584## --------- ##
1585## Platform. ##
1586## --------- ##
1587
1588hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1589uname -m = `(uname -m) 2>/dev/null || echo unknown`
1590uname -r = `(uname -r) 2>/dev/null || echo unknown`
1591uname -s = `(uname -s) 2>/dev/null || echo unknown`
1592uname -v = `(uname -v) 2>/dev/null || echo unknown`
1593
1594/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1595/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1596
1597/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1598/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1599/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1600/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1601/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1602/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1603/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1604
1605_ASUNAME
1606
1607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608for as_dir in $PATH
1609do
1610 IFS=$as_save_IFS
1611 test -z "$as_dir" && as_dir=.
1612 echo "PATH: $as_dir"
1613done
1614IFS=$as_save_IFS
1615
1616} >&5
1617
1618cat >&5 <<_ACEOF
1619
1620
1621## ----------- ##
1622## Core tests. ##
1623## ----------- ##
1624
1625_ACEOF
1626
1627
1628# Keep a trace of the command line.
1629# Strip out --no-create and --no-recursion so they do not pile up.
1630# Strip out --silent because we don't want to record it for future runs.
1631# Also quote any args containing shell meta-characters.
1632# Make two passes to allow for proper duplicate-argument suppression.
1633ac_configure_args=
1634ac_configure_args0=
1635ac_configure_args1=
1636ac_must_keep_next=false
1637for ac_pass in 1 2
1638do
1639 for ac_arg
1640 do
1641 case $ac_arg in
1642 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1643 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1644 | -silent | --silent | --silen | --sile | --sil)
1645 continue ;;
1646 *\'*)
1647 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1648 esac
1649 case $ac_pass in
1650 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1651 2)
1652 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1653 if test $ac_must_keep_next = true; then
1654 ac_must_keep_next=false # Got value, back to normal.
1655 else
1656 case $ac_arg in
1657 *=* | --config-cache | -C | -disable-* | --disable-* \
1658 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1659 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1660 | -with-* | --with-* | -without-* | --without-* | --x)
1661 case "$ac_configure_args0 " in
1662 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1663 esac
1664 ;;
1665 -* ) ac_must_keep_next=true ;;
1666 esac
1667 fi
1668 ac_configure_args="$ac_configure_args '$ac_arg'"
1669 ;;
1670 esac
1671 done
1672done
1673$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1674$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1675
1676# When interrupted or exit'd, cleanup temporary files, and complete
1677# config.log. We remove comments because anyway the quotes in there
1678# would cause problems or look ugly.
1679# WARNING: Use '\'' to represent an apostrophe within the trap.
1680# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1681trap 'exit_status=$?
1682 # Save into config.log some information that might help in debugging.
1683 {
1684 echo
1685
1686 cat <<\_ASBOX
1687## ---------------- ##
1688## Cache variables. ##
1689## ---------------- ##
1690_ASBOX
1691 echo
1692 # The following way of writing the cache mishandles newlines in values,
1693(
1694 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1695 eval ac_val=\$$ac_var
1696 case $ac_val in #(
1697 *${as_nl}*)
1698 case $ac_var in #(
1699 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1700echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1701 esac
1702 case $ac_var in #(
1703 _ | IFS | as_nl) ;; #(
1704 *) $as_unset $ac_var ;;
1705 esac ;;
1706 esac
1707 done
1708 (set) 2>&1 |
1709 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1710 *${as_nl}ac_space=\ *)
1711 sed -n \
1712 "s/'\''/'\''\\\\'\'''\''/g;
1713 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1714 ;; #(
1715 *)
1716 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1717 ;;
1718 esac |
1719 sort
1720)
1721 echo
1722
1723 cat <<\_ASBOX
1724## ----------------- ##
1725## Output variables. ##
1726## ----------------- ##
1727_ASBOX
1728 echo
1729 for ac_var in $ac_subst_vars
1730 do
1731 eval ac_val=\$$ac_var
1732 case $ac_val in
1733 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1734 esac
1735 echo "$ac_var='\''$ac_val'\''"
1736 done | sort
1737 echo
1738
1739 if test -n "$ac_subst_files"; then
1740 cat <<\_ASBOX
1741## ------------------- ##
1742## File substitutions. ##
1743## ------------------- ##
1744_ASBOX
1745 echo
1746 for ac_var in $ac_subst_files
1747 do
1748 eval ac_val=\$$ac_var
1749 case $ac_val in
1750 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1751 esac
1752 echo "$ac_var='\''$ac_val'\''"
1753 done | sort
1754 echo
1755 fi
1756
1757 if test -s confdefs.h; then
1758 cat <<\_ASBOX
1759## ----------- ##
1760## confdefs.h. ##
1761## ----------- ##
1762_ASBOX
1763 echo
1764 cat confdefs.h
1765 echo
1766 fi
1767 test "$ac_signal" != 0 &&
1768 echo "$as_me: caught signal $ac_signal"
1769 echo "$as_me: exit $exit_status"
1770 } >&5
1771 rm -f core *.core core.conftest.* &&
1772 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1773 exit $exit_status
1774' 0
1775for ac_signal in 1 2 13 15; do
1776 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1777done
1778ac_signal=0
1779
1780# confdefs.h avoids OS command line length limits that DEFS can exceed.
1781rm -f -r conftest* confdefs.h
1782
1783# Predefined preprocessor variables.
1784
1785cat >>confdefs.h <<_ACEOF
1786#define PACKAGE_NAME "$PACKAGE_NAME"
1787_ACEOF
1788
1789
1790cat >>confdefs.h <<_ACEOF
1791#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1792_ACEOF
1793
1794
1795cat >>confdefs.h <<_ACEOF
1796#define PACKAGE_VERSION "$PACKAGE_VERSION"
1797_ACEOF
1798
1799
1800cat >>confdefs.h <<_ACEOF
1801#define PACKAGE_STRING "$PACKAGE_STRING"
1802_ACEOF
1803
1804
1805cat >>confdefs.h <<_ACEOF
1806#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1807_ACEOF
1808
1809
1810# Let the site file select an alternate cache file if it wants to.
1811# Prefer explicitly selected file to automatically selected ones.
1812if test -n "$CONFIG_SITE"; then
1813 set x "$CONFIG_SITE"
1814elif test "x$prefix" != xNONE; then
1815 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1816else
1817 set x "$ac_default_prefix/share/config.site" \
1818 "$ac_default_prefix/etc/config.site"
1819fi
1820shift
1821for ac_site_file
1822do
1823 if test -r "$ac_site_file"; then
1824 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1825echo "$as_me: loading site script $ac_site_file" >&6;}
1826 sed 's/^/| /' "$ac_site_file" >&5
1827 . "$ac_site_file"
1828 fi
1829done
1830
1831if test -r "$cache_file"; then
1832 # Some versions of bash will fail to source /dev/null (special
1833 # files actually), so we avoid doing that.
1834 if test -f "$cache_file"; then
1835 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1836echo "$as_me: loading cache $cache_file" >&6;}
1837 case $cache_file in
1838 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1839 *) . "./$cache_file";;
1840 esac
1841 fi
1842else
1843 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1844echo "$as_me: creating cache $cache_file" >&6;}
1845 >$cache_file
1846fi
1847
1848# Check that the precious variables saved in the cache have kept the same
1849# value.
1850ac_cache_corrupted=false
1851for ac_var in $ac_precious_vars; do
1852 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1853 eval ac_new_set=\$ac_env_${ac_var}_set
1854 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1855 eval ac_new_val=\$ac_env_${ac_var}_value
1856 case $ac_old_set,$ac_new_set in
1857 set,)
1858 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1859echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1860 ac_cache_corrupted=: ;;
1861 ,set)
1862 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1863echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1864 ac_cache_corrupted=: ;;
1865 ,);;
1866 *)
1867 if test "x$ac_old_val" != "x$ac_new_val"; then
1868 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1869echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1870 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1871echo "$as_me: former value: $ac_old_val" >&2;}
1872 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1873echo "$as_me: current value: $ac_new_val" >&2;}
1874 ac_cache_corrupted=:
1875 fi;;
1876 esac
1877 # Pass precious variables to config.status.
1878 if test "$ac_new_set" = set; then
1879 case $ac_new_val in
1880 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1881 *) ac_arg=$ac_var=$ac_new_val ;;
1882 esac
1883 case " $ac_configure_args " in
1884 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1885 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1886 esac
1887 fi
1888done
1889if $ac_cache_corrupted; then
1890 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1891echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1892 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1893echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1894 { (exit 1); exit 1; }; }
1895fi
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913ac_ext=c
1914ac_cpp='$CPP $CPPFLAGS'
1915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1917ac_compiler_gnu=$ac_cv_c_compiler_gnu
1918
1919
1920
1921
1922
1923# Check whether --with-alsa was given.
1924if test "${with_alsa+set}" = set; then
1925 withval=$with_alsa; with_alsa=$withval
1926else
1927 with_alsa="yes"
1928fi
1929
1930
1931
1932# Check whether --with-jack was given.
1933if test "${with_jack+set}" = set; then
1934 withval=$with_jack; with_jack=$withval
1935else
1936 with_jack="yes"
1937fi
1938
1939
1940
1941# Check whether --with-oss was given.
1942if test "${with_oss+set}" = set; then
1943 withval=$with_oss; with_oss=$withval
1944else
1945 with_oss="yes"
1946fi
1947
1948
1949
1950# Check whether --with-asihpi was given.
1951if test "${with_asihpi+set}" = set; then
1952 withval=$with_asihpi; with_asihpi=$withval
1953else
1954 with_asihpi="yes"
1955fi
1956
1957
1958
1959# Check whether --with-host_os was given.
1960if test "${with_host_os+set}" = set; then
1961 withval=$with_host_os; host_os=$withval
1962fi
1963
1964
1965
1966# Check whether --with-winapi was given.
1967if test "${with_winapi+set}" = set; then
1968 withval=$with_winapi; with_winapi=$withval
1969else
1970 with_winapi="wmme"
1971fi
1972
1973
1974
1975# Check whether --with-macapi was given.
1976if test "${with_macapi+set}" = set; then
1977 withval=$with_macapi; with_macapi=$withval
1978else
1979 with_macapi="core"
1980fi
1981
1982
1983
1984# Check whether --with-asiodir was given.
1985if test "${with_asiodir+set}" = set; then
1986 withval=$with_asiodir; with_asiodir=$withval
1987else
1988 with_asiodir="/usr/local/asiosdk2"
1989fi
1990
1991
1992
1993# Check whether --with-dxdir was given.
1994if test "${with_dxdir+set}" = set; then
1995 withval=$with_dxdir; with_dxdir=$withval
1996else
1997 with_dxdir="/usr/local/dx7sdk"
1998fi
1999
2000
2001# Check whether --enable-debug-output was given.
2002if test "${enable_debug_output+set}" = set; then
2003 enableval=$enable_debug_output; if test x$enableval != xno ; then
2004
2005cat >>confdefs.h <<\_ACEOF
2006#define PA_ENABLE_DEBUG_OUTPUT
2007_ACEOF
2008
2009 fi
2010
2011fi
2012
2013
2014# Check whether --enable-cxx was given.
2015if test "${enable_cxx+set}" = set; then
2016 enableval=$enable_cxx; enable_cxx=$enableval
2017else
2018 enable_cxx="no"
2019fi
2020
2021
2022# Check whether --enable-mac-debug was given.
2023if test "${enable_mac_debug+set}" = set; then
2024 enableval=$enable_mac_debug; enable_mac_debug=$enableval
2025else
2026 enable_mac_debug="no"
2027fi
2028
2029
2030# Check whether --enable-mac-universal was given.
2031if test "${enable_mac_universal+set}" = set; then
2032 enableval=$enable_mac_universal; enable_mac_universal=$enableval
2033else
2034 enable_mac_universal="yes"
2035fi
2036
2037
2038
2039ac_ext=c
2040ac_cpp='$CPP $CPPFLAGS'
2041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2043ac_compiler_gnu=$ac_cv_c_compiler_gnu
2044if test -n "$ac_tool_prefix"; then
2045 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2046set dummy ${ac_tool_prefix}gcc; ac_word=$2
2047{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2049if test "${ac_cv_prog_CC+set}" = set; then
2050 echo $ECHO_N "(cached) $ECHO_C" >&6
2051else
2052 if test -n "$CC"; then
2053 ac_cv_prog_CC="$CC" # Let the user override the test.
2054else
2055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056for as_dir in $PATH
2057do
2058 IFS=$as_save_IFS
2059 test -z "$as_dir" && as_dir=.
2060 for ac_exec_ext in '' $ac_executable_extensions; do
2061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2062 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064 break 2
2065 fi
2066done
2067done
2068IFS=$as_save_IFS
2069
2070fi
2071fi
2072CC=$ac_cv_prog_CC
2073if test -n "$CC"; then
2074 { echo "$as_me:$LINENO: result: $CC" >&5
2075echo "${ECHO_T}$CC" >&6; }
2076else
2077 { echo "$as_me:$LINENO: result: no" >&5
2078echo "${ECHO_T}no" >&6; }
2079fi
2080
2081
2082fi
2083if test -z "$ac_cv_prog_CC"; then
2084 ac_ct_CC=$CC
2085 # Extract the first word of "gcc", so it can be a program name with args.
2086set dummy gcc; ac_word=$2
2087{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2089if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2090 echo $ECHO_N "(cached) $ECHO_C" >&6
2091else
2092 if test -n "$ac_ct_CC"; then
2093 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2094else
2095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2096for as_dir in $PATH
2097do
2098 IFS=$as_save_IFS
2099 test -z "$as_dir" && as_dir=.
2100 for ac_exec_ext in '' $ac_executable_extensions; do
2101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2102 ac_cv_prog_ac_ct_CC="gcc"
2103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2104 break 2
2105 fi
2106done
2107done
2108IFS=$as_save_IFS
2109
2110fi
2111fi
2112ac_ct_CC=$ac_cv_prog_ac_ct_CC
2113if test -n "$ac_ct_CC"; then
2114 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2115echo "${ECHO_T}$ac_ct_CC" >&6; }
2116else
2117 { echo "$as_me:$LINENO: result: no" >&5
2118echo "${ECHO_T}no" >&6; }
2119fi
2120
2121 if test "x$ac_ct_CC" = x; then
2122 CC=""
2123 else
2124 case $cross_compiling:$ac_tool_warned in
2125yes:)
2126{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2127whose name does not start with the host triplet. If you think this
2128configuration is useful to you, please write to autoconf@gnu.org." >&5
2129echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2130whose name does not start with the host triplet. If you think this
2131configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2132ac_tool_warned=yes ;;
2133esac
2134 CC=$ac_ct_CC
2135 fi
2136else
2137 CC="$ac_cv_prog_CC"
2138fi
2139
2140if test -z "$CC"; then
2141 if test -n "$ac_tool_prefix"; then
2142 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2143set dummy ${ac_tool_prefix}cc; ac_word=$2
2144{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2146if test "${ac_cv_prog_CC+set}" = set; then
2147 echo $ECHO_N "(cached) $ECHO_C" >&6
2148else
2149 if test -n "$CC"; then
2150 ac_cv_prog_CC="$CC" # Let the user override the test.
2151else
2152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2153for as_dir in $PATH
2154do
2155 IFS=$as_save_IFS
2156 test -z "$as_dir" && as_dir=.
2157 for ac_exec_ext in '' $ac_executable_extensions; do
2158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2159 ac_cv_prog_CC="${ac_tool_prefix}cc"
2160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2161 break 2
2162 fi
2163done
2164done
2165IFS=$as_save_IFS
2166
2167fi
2168fi
2169CC=$ac_cv_prog_CC
2170if test -n "$CC"; then
2171 { echo "$as_me:$LINENO: result: $CC" >&5
2172echo "${ECHO_T}$CC" >&6; }
2173else
2174 { echo "$as_me:$LINENO: result: no" >&5
2175echo "${ECHO_T}no" >&6; }
2176fi
2177
2178
2179 fi
2180fi
2181if test -z "$CC"; then
2182 # Extract the first word of "cc", so it can be a program name with args.
2183set dummy cc; ac_word=$2
2184{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2186if test "${ac_cv_prog_CC+set}" = set; then
2187 echo $ECHO_N "(cached) $ECHO_C" >&6
2188else
2189 if test -n "$CC"; then
2190 ac_cv_prog_CC="$CC" # Let the user override the test.
2191else
2192 ac_prog_rejected=no
2193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194for as_dir in $PATH
2195do
2196 IFS=$as_save_IFS
2197 test -z "$as_dir" && as_dir=.
2198 for ac_exec_ext in '' $ac_executable_extensions; do
2199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2200 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2201 ac_prog_rejected=yes
2202 continue
2203 fi
2204 ac_cv_prog_CC="cc"
2205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2206 break 2
2207 fi
2208done
2209done
2210IFS=$as_save_IFS
2211
2212if test $ac_prog_rejected = yes; then
2213 # We found a bogon in the path, so make sure we never use it.
2214 set dummy $ac_cv_prog_CC
2215 shift
2216 if test $# != 0; then
2217 # We chose a different compiler from the bogus one.
2218 # However, it has the same basename, so the bogon will be chosen
2219 # first if we set CC to just the basename; use the full file name.
2220 shift
2221 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2222 fi
2223fi
2224fi
2225fi
2226CC=$ac_cv_prog_CC
2227if test -n "$CC"; then
2228 { echo "$as_me:$LINENO: result: $CC" >&5
2229echo "${ECHO_T}$CC" >&6; }
2230else
2231 { echo "$as_me:$LINENO: result: no" >&5
2232echo "${ECHO_T}no" >&6; }
2233fi
2234
2235
2236fi
2237if test -z "$CC"; then
2238 if test -n "$ac_tool_prefix"; then
2239 for ac_prog in cl.exe
2240 do
2241 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2242set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2243{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2245if test "${ac_cv_prog_CC+set}" = set; then
2246 echo $ECHO_N "(cached) $ECHO_C" >&6
2247else
2248 if test -n "$CC"; then
2249 ac_cv_prog_CC="$CC" # Let the user override the test.
2250else
2251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252for as_dir in $PATH
2253do
2254 IFS=$as_save_IFS
2255 test -z "$as_dir" && as_dir=.
2256 for ac_exec_ext in '' $ac_executable_extensions; do
2257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2258 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2260 break 2
2261 fi
2262done
2263done
2264IFS=$as_save_IFS
2265
2266fi
2267fi
2268CC=$ac_cv_prog_CC
2269if test -n "$CC"; then
2270 { echo "$as_me:$LINENO: result: $CC" >&5
2271echo "${ECHO_T}$CC" >&6; }
2272else
2273 { echo "$as_me:$LINENO: result: no" >&5
2274echo "${ECHO_T}no" >&6; }
2275fi
2276
2277
2278 test -n "$CC" && break
2279 done
2280fi
2281if test -z "$CC"; then
2282 ac_ct_CC=$CC
2283 for ac_prog in cl.exe
2284do
2285 # Extract the first word of "$ac_prog", so it can be a program name with args.
2286set dummy $ac_prog; ac_word=$2
2287{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2289if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2291else
2292 if test -n "$ac_ct_CC"; then
2293 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2294else
2295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296for as_dir in $PATH
2297do
2298 IFS=$as_save_IFS
2299 test -z "$as_dir" && as_dir=.
2300 for ac_exec_ext in '' $ac_executable_extensions; do
2301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2302 ac_cv_prog_ac_ct_CC="$ac_prog"
2303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2304 break 2
2305 fi
2306done
2307done
2308IFS=$as_save_IFS
2309
2310fi
2311fi
2312ac_ct_CC=$ac_cv_prog_ac_ct_CC
2313if test -n "$ac_ct_CC"; then
2314 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2315echo "${ECHO_T}$ac_ct_CC" >&6; }
2316else
2317 { echo "$as_me:$LINENO: result: no" >&5
2318echo "${ECHO_T}no" >&6; }
2319fi
2320
2321
2322 test -n "$ac_ct_CC" && break
2323done
2324
2325 if test "x$ac_ct_CC" = x; then
2326 CC=""
2327 else
2328 case $cross_compiling:$ac_tool_warned in
2329yes:)
2330{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2331whose name does not start with the host triplet. If you think this
2332configuration is useful to you, please write to autoconf@gnu.org." >&5
2333echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2334whose name does not start with the host triplet. If you think this
2335configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2336ac_tool_warned=yes ;;
2337esac
2338 CC=$ac_ct_CC
2339 fi
2340fi
2341
2342fi
2343
2344
2345test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2346See \`config.log' for more details." >&5
2347echo "$as_me: error: no acceptable C compiler found in \$PATH
2348See \`config.log' for more details." >&2;}
2349 { (exit 1); exit 1; }; }
2350
2351# Provide some information about the compiler.
2352echo "$as_me:$LINENO: checking for C compiler version" >&5
2353ac_compiler=`set X $ac_compile; echo $2`
2354{ (ac_try="$ac_compiler --version >&5"
2355case "(($ac_try" in
2356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2357 *) ac_try_echo=$ac_try;;
2358esac
2359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2360 (eval "$ac_compiler --version >&5") 2>&5
2361 ac_status=$?
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }
2364{ (ac_try="$ac_compiler -v >&5"
2365case "(($ac_try" in
2366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367 *) ac_try_echo=$ac_try;;
2368esac
2369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2370 (eval "$ac_compiler -v >&5") 2>&5
2371 ac_status=$?
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); }
2374{ (ac_try="$ac_compiler -V >&5"
2375case "(($ac_try" in
2376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2377 *) ac_try_echo=$ac_try;;
2378esac
2379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2380 (eval "$ac_compiler -V >&5") 2>&5
2381 ac_status=$?
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); }
2384
2385cat >conftest.$ac_ext <<_ACEOF
2386/* confdefs.h. */
2387_ACEOF
2388cat confdefs.h >>conftest.$ac_ext
2389cat >>conftest.$ac_ext <<_ACEOF
2390/* end confdefs.h. */
2391
2392int
2393main ()
2394{
2395
2396 ;
2397 return 0;
2398}
2399_ACEOF
2400ac_clean_files_save=$ac_clean_files
2401ac_clean_files="$ac_clean_files a.out a.exe b.out"
2402# Try to create an executable without -o first, disregard a.out.
2403# It will help us diagnose broken compilers, and finding out an intuition
2404# of exeext.
2405{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2406echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2407ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2408#
2409# List of possible output files, starting from the most likely.
2410# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2411# only as a last resort. b.out is created by i960 compilers.
2412ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2413#
2414# The IRIX 6 linker writes into existing files which may not be
2415# executable, retaining their permissions. Remove them first so a
2416# subsequent execution test works.
2417ac_rmfiles=
2418for ac_file in $ac_files
2419do
2420 case $ac_file in
2421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2422 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2423 esac
2424done
2425rm -f $ac_rmfiles
2426
2427if { (ac_try="$ac_link_default"
2428case "(($ac_try" in
2429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2430 *) ac_try_echo=$ac_try;;
2431esac
2432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2433 (eval "$ac_link_default") 2>&5
2434 ac_status=$?
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }; then
2437 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2438# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2439# in a Makefile. We should not override ac_cv_exeext if it was cached,
2440# so that the user can short-circuit this test for compilers unknown to
2441# Autoconf.
2442for ac_file in $ac_files ''
2443do
2444 test -f "$ac_file" || continue
2445 case $ac_file in
2446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2447 ;;
2448 [ab].out )
2449 # We found the default executable, but exeext='' is most
2450 # certainly right.
2451 break;;
2452 *.* )
2453 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2454 then :; else
2455 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2456 fi
2457 # We set ac_cv_exeext here because the later test for it is not
2458 # safe: cross compilers may not add the suffix if given an `-o'
2459 # argument, so we may need to know it at that point already.
2460 # Even if this section looks crufty: it has the advantage of
2461 # actually working.
2462 break;;
2463 * )
2464 break;;
2465 esac
2466done
2467test "$ac_cv_exeext" = no && ac_cv_exeext=
2468
2469else
2470 ac_file=''
2471fi
2472
2473{ echo "$as_me:$LINENO: result: $ac_file" >&5
2474echo "${ECHO_T}$ac_file" >&6; }
2475if test -z "$ac_file"; then
2476 echo "$as_me: failed program was:" >&5
2477sed 's/^/| /' conftest.$ac_ext >&5
2478
2479{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2480See \`config.log' for more details." >&5
2481echo "$as_me: error: C compiler cannot create executables
2482See \`config.log' for more details." >&2;}
2483 { (exit 77); exit 77; }; }
2484fi
2485
2486ac_exeext=$ac_cv_exeext
2487
2488# Check that the compiler produces executables we can run. If not, either
2489# the compiler is broken, or we cross compile.
2490{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2491echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2492# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2493# If not cross compiling, check that we can run a simple program.
2494if test "$cross_compiling" != yes; then
2495 if { ac_try='./$ac_file'
2496 { (case "(($ac_try" in
2497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2498 *) ac_try_echo=$ac_try;;
2499esac
2500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2501 (eval "$ac_try") 2>&5
2502 ac_status=$?
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); }; }; then
2505 cross_compiling=no
2506 else
2507 if test "$cross_compiling" = maybe; then
2508 cross_compiling=yes
2509 else
2510 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2511If you meant to cross compile, use \`--host'.
2512See \`config.log' for more details." >&5
2513echo "$as_me: error: cannot run C compiled programs.
2514If you meant to cross compile, use \`--host'.
2515See \`config.log' for more details." >&2;}
2516 { (exit 1); exit 1; }; }
2517 fi
2518 fi
2519fi
2520{ echo "$as_me:$LINENO: result: yes" >&5
2521echo "${ECHO_T}yes" >&6; }
2522
2523rm -f a.out a.exe conftest$ac_cv_exeext b.out
2524ac_clean_files=$ac_clean_files_save
2525# Check that the compiler produces executables we can run. If not, either
2526# the compiler is broken, or we cross compile.
2527{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2528echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2529{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2530echo "${ECHO_T}$cross_compiling" >&6; }
2531
2532{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2533echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2534if { (ac_try="$ac_link"
2535case "(($ac_try" in
2536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2537 *) ac_try_echo=$ac_try;;
2538esac
2539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2540 (eval "$ac_link") 2>&5
2541 ac_status=$?
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); }; then
2544 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2545# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2546# work properly (i.e., refer to `conftest.exe'), while it won't with
2547# `rm'.
2548for ac_file in conftest.exe conftest conftest.*; do
2549 test -f "$ac_file" || continue
2550 case $ac_file in
2551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2552 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2553 break;;
2554 * ) break;;
2555 esac
2556done
2557else
2558 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2559See \`config.log' for more details." >&5
2560echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2561See \`config.log' for more details." >&2;}
2562 { (exit 1); exit 1; }; }
2563fi
2564
2565rm -f conftest$ac_cv_exeext
2566{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2567echo "${ECHO_T}$ac_cv_exeext" >&6; }
2568
2569rm -f conftest.$ac_ext
2570EXEEXT=$ac_cv_exeext
2571ac_exeext=$EXEEXT
2572{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2573echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2574if test "${ac_cv_objext+set}" = set; then
2575 echo $ECHO_N "(cached) $ECHO_C" >&6
2576else
2577 cat >conftest.$ac_ext <<_ACEOF
2578/* confdefs.h. */
2579_ACEOF
2580cat confdefs.h >>conftest.$ac_ext
2581cat >>conftest.$ac_ext <<_ACEOF
2582/* end confdefs.h. */
2583
2584int
2585main ()
2586{
2587
2588 ;
2589 return 0;
2590}
2591_ACEOF
2592rm -f conftest.o conftest.obj
2593if { (ac_try="$ac_compile"
2594case "(($ac_try" in
2595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2596 *) ac_try_echo=$ac_try;;
2597esac
2598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2599 (eval "$ac_compile") 2>&5
2600 ac_status=$?
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); }; then
2603 for ac_file in conftest.o conftest.obj conftest.*; do
2604 test -f "$ac_file" || continue;
2605 case $ac_file in
2606 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2607 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2608 break;;
2609 esac
2610done
2611else
2612 echo "$as_me: failed program was:" >&5
2613sed 's/^/| /' conftest.$ac_ext >&5
2614
2615{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2616See \`config.log' for more details." >&5
2617echo "$as_me: error: cannot compute suffix of object files: cannot compile
2618See \`config.log' for more details." >&2;}
2619 { (exit 1); exit 1; }; }
2620fi
2621
2622rm -f conftest.$ac_cv_objext conftest.$ac_ext
2623fi
2624{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2625echo "${ECHO_T}$ac_cv_objext" >&6; }
2626OBJEXT=$ac_cv_objext
2627ac_objext=$OBJEXT
2628{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2629echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2630if test "${ac_cv_c_compiler_gnu+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2632else
2633 cat >conftest.$ac_ext <<_ACEOF
2634/* confdefs.h. */
2635_ACEOF
2636cat confdefs.h >>conftest.$ac_ext
2637cat >>conftest.$ac_ext <<_ACEOF
2638/* end confdefs.h. */
2639
2640int
2641main ()
2642{
2643#ifndef __GNUC__
2644 choke me
2645#endif
2646
2647 ;
2648 return 0;
2649}
2650_ACEOF
2651rm -f conftest.$ac_objext
2652if { (ac_try="$ac_compile"
2653case "(($ac_try" in
2654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2655 *) ac_try_echo=$ac_try;;
2656esac
2657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2658 (eval "$ac_compile") 2>conftest.er1
2659 ac_status=$?
2660 grep -v '^ *+' conftest.er1 >conftest.err
2661 rm -f conftest.er1
2662 cat conftest.err >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); } && {
2665 test -z "$ac_c_werror_flag" ||
2666 test ! -s conftest.err
2667 } && test -s conftest.$ac_objext; then
2668 ac_compiler_gnu=yes
2669else
2670 echo "$as_me: failed program was:" >&5
2671sed 's/^/| /' conftest.$ac_ext >&5
2672
2673 ac_compiler_gnu=no
2674fi
2675
2676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2677ac_cv_c_compiler_gnu=$ac_compiler_gnu
2678
2679fi
2680{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2681echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2682GCC=`test $ac_compiler_gnu = yes && echo yes`
2683ac_test_CFLAGS=${CFLAGS+set}
2684ac_save_CFLAGS=$CFLAGS
2685{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2686echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2687if test "${ac_cv_prog_cc_g+set}" = set; then
2688 echo $ECHO_N "(cached) $ECHO_C" >&6
2689else
2690 ac_save_c_werror_flag=$ac_c_werror_flag
2691 ac_c_werror_flag=yes
2692 ac_cv_prog_cc_g=no
2693 CFLAGS="-g"
2694 cat >conftest.$ac_ext <<_ACEOF
2695/* confdefs.h. */
2696_ACEOF
2697cat confdefs.h >>conftest.$ac_ext
2698cat >>conftest.$ac_ext <<_ACEOF
2699/* end confdefs.h. */
2700
2701int
2702main ()
2703{
2704
2705 ;
2706 return 0;
2707}
2708_ACEOF
2709rm -f conftest.$ac_objext
2710if { (ac_try="$ac_compile"
2711case "(($ac_try" in
2712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713 *) ac_try_echo=$ac_try;;
2714esac
2715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716 (eval "$ac_compile") 2>conftest.er1
2717 ac_status=$?
2718 grep -v '^ *+' conftest.er1 >conftest.err
2719 rm -f conftest.er1
2720 cat conftest.err >&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); } && {
2723 test -z "$ac_c_werror_flag" ||
2724 test ! -s conftest.err
2725 } && test -s conftest.$ac_objext; then
2726 ac_cv_prog_cc_g=yes
2727else
2728 echo "$as_me: failed program was:" >&5
2729sed 's/^/| /' conftest.$ac_ext >&5
2730
2731 CFLAGS=""
2732 cat >conftest.$ac_ext <<_ACEOF
2733/* confdefs.h. */
2734_ACEOF
2735cat confdefs.h >>conftest.$ac_ext
2736cat >>conftest.$ac_ext <<_ACEOF
2737/* end confdefs.h. */
2738
2739int
2740main ()
2741{
2742
2743 ;
2744 return 0;
2745}
2746_ACEOF
2747rm -f conftest.$ac_objext
2748if { (ac_try="$ac_compile"
2749case "(($ac_try" in
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2752esac
2753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754 (eval "$ac_compile") 2>conftest.er1
2755 ac_status=$?
2756 grep -v '^ *+' conftest.er1 >conftest.err
2757 rm -f conftest.er1
2758 cat conftest.err >&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); } && {
2761 test -z "$ac_c_werror_flag" ||
2762 test ! -s conftest.err
2763 } && test -s conftest.$ac_objext; then
2764 :
2765else
2766 echo "$as_me: failed program was:" >&5
2767sed 's/^/| /' conftest.$ac_ext >&5
2768
2769 ac_c_werror_flag=$ac_save_c_werror_flag
2770 CFLAGS="-g"
2771 cat >conftest.$ac_ext <<_ACEOF
2772/* confdefs.h. */
2773_ACEOF
2774cat confdefs.h >>conftest.$ac_ext
2775cat >>conftest.$ac_ext <<_ACEOF
2776/* end confdefs.h. */
2777
2778int
2779main ()
2780{
2781
2782 ;
2783 return 0;
2784}
2785_ACEOF
2786rm -f conftest.$ac_objext
2787if { (ac_try="$ac_compile"
2788case "(($ac_try" in
2789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2790 *) ac_try_echo=$ac_try;;
2791esac
2792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2793 (eval "$ac_compile") 2>conftest.er1
2794 ac_status=$?
2795 grep -v '^ *+' conftest.er1 >conftest.err
2796 rm -f conftest.er1
2797 cat conftest.err >&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); } && {
2800 test -z "$ac_c_werror_flag" ||
2801 test ! -s conftest.err
2802 } && test -s conftest.$ac_objext; then
2803 ac_cv_prog_cc_g=yes
2804else
2805 echo "$as_me: failed program was:" >&5
2806sed 's/^/| /' conftest.$ac_ext >&5
2807
2808
2809fi
2810
2811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2812fi
2813
2814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2815fi
2816
2817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2818 ac_c_werror_flag=$ac_save_c_werror_flag
2819fi
2820{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2821echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2822if test "$ac_test_CFLAGS" = set; then
2823 CFLAGS=$ac_save_CFLAGS
2824elif test $ac_cv_prog_cc_g = yes; then
2825 if test "$GCC" = yes; then
2826 CFLAGS="-g -O2"
2827 else
2828 CFLAGS="-g"
2829 fi
2830else
2831 if test "$GCC" = yes; then
2832 CFLAGS="-O2"
2833 else
2834 CFLAGS=
2835 fi
2836fi
2837{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2838echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2839if test "${ac_cv_prog_cc_c89+set}" = set; then
2840 echo $ECHO_N "(cached) $ECHO_C" >&6
2841else
2842 ac_cv_prog_cc_c89=no
2843ac_save_CC=$CC
2844cat >conftest.$ac_ext <<_ACEOF
2845/* confdefs.h. */
2846_ACEOF
2847cat confdefs.h >>conftest.$ac_ext
2848cat >>conftest.$ac_ext <<_ACEOF
2849/* end confdefs.h. */
2850#include <stdarg.h>
2851#include <stdio.h>
2852#include <sys/types.h>
2853#include <sys/stat.h>
2854/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2855struct buf { int x; };
2856FILE * (*rcsopen) (struct buf *, struct stat *, int);
2857static char *e (p, i)
2858 char **p;
2859 int i;
2860{
2861 return p[i];
2862}
2863static char *f (char * (*g) (char **, int), char **p, ...)
2864{
2865 char *s;
2866 va_list v;
2867 va_start (v,p);
2868 s = g (p, va_arg (v,int));
2869 va_end (v);
2870 return s;
2871}
2872
2873/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2874 function prototypes and stuff, but not '\xHH' hex character constants.
2875 These don't provoke an error unfortunately, instead are silently treated
2876 as 'x'. The following induces an error, until -std is added to get
2877 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2878 array size at least. It's necessary to write '\x00'==0 to get something
2879 that's true only with -std. */
2880int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2881
2882/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2883 inside strings and character constants. */
2884#define FOO(x) 'x'
2885int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2886
2887int test (int i, double x);
2888struct s1 {int (*f) (int a);};
2889struct s2 {int (*f) (double a);};
2890int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2891int argc;
2892char **argv;
2893int
2894main ()
2895{
2896return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2897 ;
2898 return 0;
2899}
2900_ACEOF
2901for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2902 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2903do
2904 CC="$ac_save_CC $ac_arg"
2905 rm -f conftest.$ac_objext
2906if { (ac_try="$ac_compile"
2907case "(($ac_try" in
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2910esac
2911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912 (eval "$ac_compile") 2>conftest.er1
2913 ac_status=$?
2914 grep -v '^ *+' conftest.er1 >conftest.err
2915 rm -f conftest.er1
2916 cat conftest.err >&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); } && {
2919 test -z "$ac_c_werror_flag" ||
2920 test ! -s conftest.err
2921 } && test -s conftest.$ac_objext; then
2922 ac_cv_prog_cc_c89=$ac_arg
2923else
2924 echo "$as_me: failed program was:" >&5
2925sed 's/^/| /' conftest.$ac_ext >&5
2926
2927
2928fi
2929
2930rm -f core conftest.err conftest.$ac_objext
2931 test "x$ac_cv_prog_cc_c89" != "xno" && break
2932done
2933rm -f conftest.$ac_ext
2934CC=$ac_save_CC
2935
2936fi
2937# AC_CACHE_VAL
2938case "x$ac_cv_prog_cc_c89" in
2939 x)
2940 { echo "$as_me:$LINENO: result: none needed" >&5
2941echo "${ECHO_T}none needed" >&6; } ;;
2942 xno)
2943 { echo "$as_me:$LINENO: result: unsupported" >&5
2944echo "${ECHO_T}unsupported" >&6; } ;;
2945 *)
2946 CC="$CC $ac_cv_prog_cc_c89"
2947 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2948echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2949esac
2950
2951
2952ac_ext=c
2953ac_cpp='$CPP $CPPFLAGS'
2954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2956ac_compiler_gnu=$ac_cv_c_compiler_gnu
2957
2958
2959
2960# Check whether --enable-shared was given.
2961if test "${enable_shared+set}" = set; then
2962 enableval=$enable_shared; p=${PACKAGE-default}
2963 case $enableval in
2964 yes) enable_shared=yes ;;
2965 no) enable_shared=no ;;
2966 *)
2967 enable_shared=no
2968 # Look at the argument we got. We use all the common list separators.
2969 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2970 for pkg in $enableval; do
2971 IFS="$lt_save_ifs"
2972 if test "X$pkg" = "X$p"; then
2973 enable_shared=yes
2974 fi
2975 done
2976 IFS="$lt_save_ifs"
2977 ;;
2978 esac
2979else
2980 enable_shared=yes
2981fi
2982
2983
2984# Check whether --enable-static was given.
2985if test "${enable_static+set}" = set; then
2986 enableval=$enable_static; p=${PACKAGE-default}
2987 case $enableval in
2988 yes) enable_static=yes ;;
2989 no) enable_static=no ;;
2990 *)
2991 enable_static=no
2992 # Look at the argument we got. We use all the common list separators.
2993 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2994 for pkg in $enableval; do
2995 IFS="$lt_save_ifs"
2996 if test "X$pkg" = "X$p"; then
2997 enable_static=yes
2998 fi
2999 done
3000 IFS="$lt_save_ifs"
3001 ;;
3002 esac
3003else
3004 enable_static=yes
3005fi
3006
3007
3008# Check whether --enable-fast-install was given.
3009if test "${enable_fast_install+set}" = set; then
3010 enableval=$enable_fast_install; p=${PACKAGE-default}
3011 case $enableval in
3012 yes) enable_fast_install=yes ;;
3013 no) enable_fast_install=no ;;
3014 *)
3015 enable_fast_install=no
3016 # Look at the argument we got. We use all the common list separators.
3017 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3018 for pkg in $enableval; do
3019 IFS="$lt_save_ifs"
3020 if test "X$pkg" = "X$p"; then
3021 enable_fast_install=yes
3022 fi
3023 done
3024 IFS="$lt_save_ifs"
3025 ;;
3026 esac
3027else
3028 enable_fast_install=yes
3029fi
3030
3031
3032ac_aux_dir=
3033for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3034 if test -f "$ac_dir/install-sh"; then
3035 ac_aux_dir=$ac_dir
3036 ac_install_sh="$ac_aux_dir/install-sh -c"
3037 break
3038 elif test -f "$ac_dir/install.sh"; then
3039 ac_aux_dir=$ac_dir
3040 ac_install_sh="$ac_aux_dir/install.sh -c"
3041 break
3042 elif test -f "$ac_dir/shtool"; then
3043 ac_aux_dir=$ac_dir
3044 ac_install_sh="$ac_aux_dir/shtool install -c"
3045 break
3046 fi
3047done
3048if test -z "$ac_aux_dir"; then
3049 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3050echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3051 { (exit 1); exit 1; }; }
3052fi
3053
3054# These three variables are undocumented and unsupported,
3055# and are intended to be withdrawn in a future Autoconf release.
3056# They can cause serious problems if a builder's source tree is in a directory
3057# whose full name contains unusual characters.
3058ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3059ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3060ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3061
3062
3063# Make sure we can run config.sub.
3064$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3065 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3066echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3067 { (exit 1); exit 1; }; }
3068
3069{ echo "$as_me:$LINENO: checking build system type" >&5
3070echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3071if test "${ac_cv_build+set}" = set; then
3072 echo $ECHO_N "(cached) $ECHO_C" >&6
3073else
3074 ac_build_alias=$build_alias
3075test "x$ac_build_alias" = x &&
3076 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3077test "x$ac_build_alias" = x &&
3078 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3079echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3080 { (exit 1); exit 1; }; }
3081ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3082 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3083echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3084 { (exit 1); exit 1; }; }
3085
3086fi
3087{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3088echo "${ECHO_T}$ac_cv_build" >&6; }
3089case $ac_cv_build in
3090*-*-*) ;;
3091*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3092echo "$as_me: error: invalid value of canonical build" >&2;}
3093 { (exit 1); exit 1; }; };;
3094esac
3095build=$ac_cv_build
3096ac_save_IFS=$IFS; IFS='-'
3097set x $ac_cv_build
3098shift
3099build_cpu=$1
3100build_vendor=$2
3101shift; shift
3102# Remember, the first character of IFS is used to create $*,
3103# except with old shells:
3104build_os=$*
3105IFS=$ac_save_IFS
3106case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3107
3108
3109{ echo "$as_me:$LINENO: checking host system type" >&5
3110echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3111if test "${ac_cv_host+set}" = set; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3113else
3114 if test "x$host_alias" = x; then
3115 ac_cv_host=$ac_cv_build
3116else
3117 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3118 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3119echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3120 { (exit 1); exit 1; }; }
3121fi
3122
3123fi
3124{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3125echo "${ECHO_T}$ac_cv_host" >&6; }
3126case $ac_cv_host in
3127*-*-*) ;;
3128*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3129echo "$as_me: error: invalid value of canonical host" >&2;}
3130 { (exit 1); exit 1; }; };;
3131esac
3132host=$ac_cv_host
3133ac_save_IFS=$IFS; IFS='-'
3134set x $ac_cv_host
3135shift
3136host_cpu=$1
3137host_vendor=$2
3138shift; shift
3139# Remember, the first character of IFS is used to create $*,
3140# except with old shells:
3141host_os=$*
3142IFS=$ac_save_IFS
3143case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3144
3145
3146{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3147echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3148if test "${lt_cv_path_SED+set}" = set; then
3149 echo $ECHO_N "(cached) $ECHO_C" >&6
3150else
3151 # Loop through the user's path and test for sed and gsed.
3152# Then use that list of sed's as ones to test for truncation.
3153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154for as_dir in $PATH
3155do
3156 IFS=$as_save_IFS
3157 test -z "$as_dir" && as_dir=.
3158 for lt_ac_prog in sed gsed; do
3159 for ac_exec_ext in '' $ac_executable_extensions; do
3160 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3161 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3162 fi
3163 done
3164 done
3165done
3166lt_ac_max=0
3167lt_ac_count=0
3168# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3169# along with /bin/sed that truncates output.
3170for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3171 test ! -f $lt_ac_sed && continue
3172 cat /dev/null > conftest.in
3173 lt_ac_count=0
3174 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3175 # Check for GNU sed and select it if it is found.
3176 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3177 lt_cv_path_SED=$lt_ac_sed
3178 break
3179 fi
3180 while true; do
3181 cat conftest.in conftest.in >conftest.tmp
3182 mv conftest.tmp conftest.in
3183 cp conftest.in conftest.nl
3184 echo >>conftest.nl
3185 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3186 cmp -s conftest.out conftest.nl || break
3187 # 10000 chars as input seems more than enough
3188 test $lt_ac_count -gt 10 && break
3189 lt_ac_count=`expr $lt_ac_count + 1`
3190 if test $lt_ac_count -gt $lt_ac_max; then
3191 lt_ac_max=$lt_ac_count
3192 lt_cv_path_SED=$lt_ac_sed
3193 fi
3194 done
3195done
3196
3197fi
3198
3199SED=$lt_cv_path_SED
3200{ echo "$as_me:$LINENO: result: $SED" >&5
3201echo "${ECHO_T}$SED" >&6; }
3202
3203{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3204echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3205if test "${ac_cv_path_GREP+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3207else
3208 # Extract the first word of "grep ggrep" to use in msg output
3209if test -z "$GREP"; then
3210set dummy grep ggrep; ac_prog_name=$2
3211if test "${ac_cv_path_GREP+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3213else
3214 ac_path_GREP_found=false
3215# Loop through the user's path and test for each of PROGNAME-LIST
3216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3218do
3219 IFS=$as_save_IFS
3220 test -z "$as_dir" && as_dir=.
3221 for ac_prog in grep ggrep; do
3222 for ac_exec_ext in '' $ac_executable_extensions; do
3223 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3224 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3225 # Check for GNU ac_path_GREP and select it if it is found.
3226 # Check for GNU $ac_path_GREP
3227case `"$ac_path_GREP" --version 2>&1` in
3228*GNU*)
3229 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3230*)
3231 ac_count=0
3232 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3233 while :
3234 do
3235 cat "conftest.in" "conftest.in" >"conftest.tmp"
3236 mv "conftest.tmp" "conftest.in"
3237 cp "conftest.in" "conftest.nl"
3238 echo 'GREP' >> "conftest.nl"
3239 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3240 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3241 ac_count=`expr $ac_count + 1`
3242 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3243 # Best one so far, save it but keep looking for a better one
3244 ac_cv_path_GREP="$ac_path_GREP"
3245 ac_path_GREP_max=$ac_count
3246 fi
3247 # 10*(2^10) chars as input seems more than enough
3248 test $ac_count -gt 10 && break
3249 done
3250 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3251esac
3252
3253
3254 $ac_path_GREP_found && break 3
3255 done
3256done
3257
3258done
3259IFS=$as_save_IFS
3260
3261
3262fi
3263
3264GREP="$ac_cv_path_GREP"
3265if test -z "$GREP"; then
3266 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3267echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3268 { (exit 1); exit 1; }; }
3269fi
3270
3271else
3272 ac_cv_path_GREP=$GREP
3273fi
3274
3275
3276fi
3277{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3278echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3279 GREP="$ac_cv_path_GREP"
3280
3281
3282{ echo "$as_me:$LINENO: checking for egrep" >&5
3283echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3284if test "${ac_cv_path_EGREP+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3286else
3287 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3288 then ac_cv_path_EGREP="$GREP -E"
3289 else
3290 # Extract the first word of "egrep" to use in msg output
3291if test -z "$EGREP"; then
3292set dummy egrep; ac_prog_name=$2
3293if test "${ac_cv_path_EGREP+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3295else
3296 ac_path_EGREP_found=false
3297# Loop through the user's path and test for each of PROGNAME-LIST
3298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3300do
3301 IFS=$as_save_IFS
3302 test -z "$as_dir" && as_dir=.
3303 for ac_prog in egrep; do
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3306 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3307 # Check for GNU ac_path_EGREP and select it if it is found.
3308 # Check for GNU $ac_path_EGREP
3309case `"$ac_path_EGREP" --version 2>&1` in
3310*GNU*)
3311 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3312*)
3313 ac_count=0
3314 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3315 while :
3316 do
3317 cat "conftest.in" "conftest.in" >"conftest.tmp"
3318 mv "conftest.tmp" "conftest.in"
3319 cp "conftest.in" "conftest.nl"
3320 echo 'EGREP' >> "conftest.nl"
3321 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3322 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3323 ac_count=`expr $ac_count + 1`
3324 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3325 # Best one so far, save it but keep looking for a better one
3326 ac_cv_path_EGREP="$ac_path_EGREP"
3327 ac_path_EGREP_max=$ac_count
3328 fi
3329 # 10*(2^10) chars as input seems more than enough
3330 test $ac_count -gt 10 && break
3331 done
3332 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3333esac
3334
3335
3336 $ac_path_EGREP_found && break 3
3337 done
3338done
3339
3340done
3341IFS=$as_save_IFS
3342
3343
3344fi
3345
3346EGREP="$ac_cv_path_EGREP"
3347if test -z "$EGREP"; then
3348 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3349echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3350 { (exit 1); exit 1; }; }
3351fi
3352
3353else
3354 ac_cv_path_EGREP=$EGREP
3355fi
3356
3357
3358 fi
3359fi
3360{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3361echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3362 EGREP="$ac_cv_path_EGREP"
3363
3364
3365
3366# Check whether --with-gnu-ld was given.
3367if test "${with_gnu_ld+set}" = set; then
3368 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3369else
3370 with_gnu_ld=no
3371fi
3372
3373ac_prog=ld
3374if test "$GCC" = yes; then
3375 # Check if gcc -print-prog-name=ld gives a path.
3376 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3377echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3378 case $host in
3379 *-*-mingw*)
3380 # gcc leaves a trailing carriage return which upsets mingw
3381 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3382 *)
3383 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3384 esac
3385 case $ac_prog in
3386 # Accept absolute paths.
3387 [\\/]* | ?:[\\/]*)
3388 re_direlt='/[^/][^/]*/\.\./'
3389 # Canonicalize the pathname of ld
3390 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3391 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3392 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3393 done
3394 test -z "$LD" && LD="$ac_prog"
3395 ;;
3396 "")
3397 # If it fails, then pretend we aren't using GCC.
3398 ac_prog=ld
3399 ;;
3400 *)
3401 # If it is relative, then search for the first ld in PATH.
3402 with_gnu_ld=unknown
3403 ;;
3404 esac
3405elif test "$with_gnu_ld" = yes; then
3406 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3407echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3408else
3409 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3410echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3411fi
3412if test "${lt_cv_path_LD+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3414else
3415 if test -z "$LD"; then
3416 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3417 for ac_dir in $PATH; do
3418 IFS="$lt_save_ifs"
3419 test -z "$ac_dir" && ac_dir=.
3420 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3421 lt_cv_path_LD="$ac_dir/$ac_prog"
3422 # Check to see if the program is GNU ld. I'd rather use --version,
3423 # but apparently some variants of GNU ld only accept -v.
3424 # Break only if it was the GNU/non-GNU ld that we prefer.
3425 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3426 *GNU* | *'with BFD'*)
3427 test "$with_gnu_ld" != no && break
3428 ;;
3429 *)
3430 test "$with_gnu_ld" != yes && break
3431 ;;
3432 esac
3433 fi
3434 done
3435 IFS="$lt_save_ifs"
3436else
3437 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3438fi
3439fi
3440
3441LD="$lt_cv_path_LD"
3442if test -n "$LD"; then
3443 { echo "$as_me:$LINENO: result: $LD" >&5
3444echo "${ECHO_T}$LD" >&6; }
3445else
3446 { echo "$as_me:$LINENO: result: no" >&5
3447echo "${ECHO_T}no" >&6; }
3448fi
3449test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3450echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3451 { (exit 1); exit 1; }; }
3452{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3453echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3454if test "${lt_cv_prog_gnu_ld+set}" = set; then
3455 echo $ECHO_N "(cached) $ECHO_C" >&6
3456else
3457 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3458case `$LD -v 2>&1 </dev/null` in
3459*GNU* | *'with BFD'*)
3460 lt_cv_prog_gnu_ld=yes
3461 ;;
3462*)
3463 lt_cv_prog_gnu_ld=no
3464 ;;
3465esac
3466fi
3467{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3468echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3469with_gnu_ld=$lt_cv_prog_gnu_ld
3470
3471
3472{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3473echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3474if test "${lt_cv_ld_reload_flag+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3476else
3477 lt_cv_ld_reload_flag='-r'
3478fi
3479{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3480echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3481reload_flag=$lt_cv_ld_reload_flag
3482case $reload_flag in
3483"" | " "*) ;;
3484*) reload_flag=" $reload_flag" ;;
3485esac
3486reload_cmds='$LD$reload_flag -o $output$reload_objs'
3487case $host_os in
3488 darwin*)
3489 if test "$GCC" = yes; then
3490 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3491 else
3492 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3493 fi
3494 ;;
3495esac
3496
3497{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3498echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3499if test "${lt_cv_path_NM+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3501else
3502 if test -n "$NM"; then
3503 # Let the user override the test.
3504 lt_cv_path_NM="$NM"
3505else
3506 lt_nm_to_check="${ac_tool_prefix}nm"
3507 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3508 lt_nm_to_check="$lt_nm_to_check nm"
3509 fi
3510 for lt_tmp_nm in $lt_nm_to_check; do
3511 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3512 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3513 IFS="$lt_save_ifs"
3514 test -z "$ac_dir" && ac_dir=.
3515 tmp_nm="$ac_dir/$lt_tmp_nm"
3516 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3517 # Check to see if the nm accepts a BSD-compat flag.
3518 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3519 # nm: unknown option "B" ignored
3520 # Tru64's nm complains that /dev/null is an invalid object file
3521 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3522 */dev/null* | *'Invalid file or object type'*)
3523 lt_cv_path_NM="$tmp_nm -B"
3524 break
3525 ;;
3526 *)
3527 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3528 */dev/null*)
3529 lt_cv_path_NM="$tmp_nm -p"
3530 break
3531 ;;
3532 *)
3533 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3534 continue # so that we can try to find one that supports BSD flags
3535 ;;
3536 esac
3537 ;;
3538 esac
3539 fi
3540 done
3541 IFS="$lt_save_ifs"
3542 done
3543 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3544fi
3545fi
3546{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3547echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3548NM="$lt_cv_path_NM"
3549
3550{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3551echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3552LN_S=$as_ln_s
3553if test "$LN_S" = "ln -s"; then
3554 { echo "$as_me:$LINENO: result: yes" >&5
3555echo "${ECHO_T}yes" >&6; }
3556else
3557 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3558echo "${ECHO_T}no, using $LN_S" >&6; }
3559fi
3560
3561{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3562echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
3563if test "${lt_cv_deplibs_check_method+set}" = set; then
3564 echo $ECHO_N "(cached) $ECHO_C" >&6
3565else
3566 lt_cv_file_magic_cmd='$MAGIC_CMD'
3567lt_cv_file_magic_test_file=
3568lt_cv_deplibs_check_method='unknown'
3569# Need to set the preceding variable on all platforms that support
3570# interlibrary dependencies.
3571# 'none' -- dependencies not supported.
3572# `unknown' -- same as none, but documents that we really don't know.
3573# 'pass_all' -- all dependencies passed with no checks.
3574# 'test_compile' -- check by making test program.
3575# 'file_magic [[regex]]' -- check by looking for files in library path
3576# which responds to the $file_magic_cmd with a given extended regex.
3577# If you have `file' or equivalent on your system and you're not sure
3578# whether `pass_all' will *always* work, you probably want this one.
3579
3580case $host_os in
3581aix4* | aix5*)
3582 lt_cv_deplibs_check_method=pass_all
3583 ;;
3584
3585beos*)
3586 lt_cv_deplibs_check_method=pass_all
3587 ;;
3588
3589bsdi[45]*)
3590 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3591 lt_cv_file_magic_cmd='/usr/bin/file -L'
3592 lt_cv_file_magic_test_file=/shlib/libc.so
3593 ;;
3594
3595cygwin*)
3596 # func_win32_libid is a shell function defined in ltmain.sh
3597 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3598 lt_cv_file_magic_cmd='func_win32_libid'
3599 ;;
3600
3601mingw* | pw32*)
3602 # Base MSYS/MinGW do not provide the 'file' command needed by
3603 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3604 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3605 lt_cv_file_magic_cmd='$OBJDUMP -f'
3606 ;;
3607
3608darwin* | rhapsody*)
3609 lt_cv_deplibs_check_method=pass_all
3610 ;;
3611
3612freebsd* | kfreebsd*-gnu | dragonfly*)
3613 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3614 case $host_cpu in
3615 i*86 )
3616 # Not sure whether the presence of OpenBSD here was a mistake.
3617 # Let's accept both of them until this is cleared up.
3618 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3619 lt_cv_file_magic_cmd=/usr/bin/file
3620 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3621 ;;
3622 esac
3623 else
3624 lt_cv_deplibs_check_method=pass_all
3625 fi
3626 ;;
3627
3628gnu*)
3629 lt_cv_deplibs_check_method=pass_all
3630 ;;
3631
3632hpux10.20* | hpux11*)
3633 lt_cv_file_magic_cmd=/usr/bin/file
3634 case $host_cpu in
3635 ia64*)
3636 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3637 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3638 ;;
3639 hppa*64*)
3640 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]'
3641 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3642 ;;
3643 *)
3644 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3645 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3646 ;;
3647 esac
3648 ;;
3649
3650interix3*)
3651 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3652 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3653 ;;
3654
3655irix5* | irix6* | nonstopux*)
3656 case $LD in
3657 *-32|*"-32 ") libmagic=32-bit;;
3658 *-n32|*"-n32 ") libmagic=N32;;
3659 *-64|*"-64 ") libmagic=64-bit;;
3660 *) libmagic=never-match;;
3661 esac
3662 lt_cv_deplibs_check_method=pass_all
3663 ;;
3664
3665# This must be Linux ELF.
3666linux*)
3667 lt_cv_deplibs_check_method=pass_all
3668 ;;
3669
3670netbsd*)
3671 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3672 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3673 else
3674 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3675 fi
3676 ;;
3677
3678newos6*)
3679 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3680 lt_cv_file_magic_cmd=/usr/bin/file
3681 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3682 ;;
3683
3684nto-qnx*)
3685 lt_cv_deplibs_check_method=unknown
3686 ;;
3687
3688openbsd*)
3689 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3690 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3691 else
3692 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3693 fi
3694 ;;
3695
3696osf3* | osf4* | osf5*)
3697 lt_cv_deplibs_check_method=pass_all
3698 ;;
3699
3700solaris*)
3701 lt_cv_deplibs_check_method=pass_all
3702 ;;
3703
3704sysv4 | sysv4.3*)
3705 case $host_vendor in
3706 motorola)
3707 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]'
3708 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3709 ;;
3710 ncr)
3711 lt_cv_deplibs_check_method=pass_all
3712 ;;
3713 sequent)
3714 lt_cv_file_magic_cmd='/bin/file'
3715 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3716 ;;
3717 sni)
3718 lt_cv_file_magic_cmd='/bin/file'
3719 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3720 lt_cv_file_magic_test_file=/lib/libc.so
3721 ;;
3722 siemens)
3723 lt_cv_deplibs_check_method=pass_all
3724 ;;
3725 pc)
3726 lt_cv_deplibs_check_method=pass_all
3727 ;;
3728 esac
3729 ;;
3730
3731sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3732 lt_cv_deplibs_check_method=pass_all
3733 ;;
3734esac
3735
3736fi
3737{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3738echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
3739file_magic_cmd=$lt_cv_file_magic_cmd
3740deplibs_check_method=$lt_cv_deplibs_check_method
3741test -z "$deplibs_check_method" && deplibs_check_method=unknown
3742
3743
3744
3745
3746# If no C compiler was specified, use CC.
3747LTCC=${LTCC-"$CC"}
3748
3749# If no C compiler flags were specified, use CFLAGS.
3750LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3751
3752# Allow CC to be a program name with arguments.
3753compiler=$CC
3754
3755
3756# Check whether --enable-libtool-lock was given.
3757if test "${enable_libtool_lock+set}" = set; then
3758 enableval=$enable_libtool_lock;
3759fi
3760
3761test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3762
3763# Some flags need to be propagated to the compiler or linker for good
3764# libtool support.
3765case $host in
3766ia64-*-hpux*)
3767 # Find out which ABI we are using.
3768 echo 'int i;' > conftest.$ac_ext
3769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3770 (eval $ac_compile) 2>&5
3771 ac_status=$?
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); }; then
3774 case `/usr/bin/file conftest.$ac_objext` in
3775 *ELF-32*)
3776 HPUX_IA64_MODE="32"
3777 ;;
3778 *ELF-64*)
3779 HPUX_IA64_MODE="64"
3780 ;;
3781 esac
3782 fi
3783 rm -rf conftest*
3784 ;;
3785*-*-irix6*)
3786 # Find out which ABI we are using.
3787 echo '#line 3787 "configure"' > conftest.$ac_ext
3788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3789 (eval $ac_compile) 2>&5
3790 ac_status=$?
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); }; then
3793 if test "$lt_cv_prog_gnu_ld" = yes; then
3794 case `/usr/bin/file conftest.$ac_objext` in
3795 *32-bit*)
3796 LD="${LD-ld} -melf32bsmip"
3797 ;;
3798 *N32*)
3799 LD="${LD-ld} -melf32bmipn32"
3800 ;;
3801 *64-bit*)
3802 LD="${LD-ld} -melf64bmip"
3803 ;;
3804 esac
3805 else
3806 case `/usr/bin/file conftest.$ac_objext` in
3807 *32-bit*)
3808 LD="${LD-ld} -32"
3809 ;;
3810 *N32*)
3811 LD="${LD-ld} -n32"
3812 ;;
3813 *64-bit*)
3814 LD="${LD-ld} -64"
3815 ;;
3816 esac
3817 fi
3818 fi
3819 rm -rf conftest*
3820 ;;
3821
3822x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3823 # Find out which ABI we are using.
3824 echo 'int i;' > conftest.$ac_ext
3825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3826 (eval $ac_compile) 2>&5
3827 ac_status=$?
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); }; then
3830 case `/usr/bin/file conftest.o` in
3831 *32-bit*)
3832 case $host in
3833 x86_64-*linux*)
3834 LD="${LD-ld} -m elf_i386"
3835 ;;
3836 ppc64-*linux*|powerpc64-*linux*)
3837 LD="${LD-ld} -m elf32ppclinux"
3838 ;;
3839 s390x-*linux*)
3840 LD="${LD-ld} -m elf_s390"
3841 ;;
3842 sparc64-*linux*)
3843 LD="${LD-ld} -m elf32_sparc"
3844 ;;
3845 esac
3846 ;;
3847 *64-bit*)
3848 case $host in
3849 x86_64-*linux*)
3850 LD="${LD-ld} -m elf_x86_64"
3851 ;;
3852 ppc*-*linux*|powerpc*-*linux*)
3853 LD="${LD-ld} -m elf64ppc"
3854 ;;
3855 s390*-*linux*)
3856 LD="${LD-ld} -m elf64_s390"
3857 ;;
3858 sparc*-*linux*)
3859 LD="${LD-ld} -m elf64_sparc"
3860 ;;
3861 esac
3862 ;;
3863 esac
3864 fi
3865 rm -rf conftest*
3866 ;;
3867
3868*-*-sco3.2v5*)
3869 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3870 SAVE_CFLAGS="$CFLAGS"
3871 CFLAGS="$CFLAGS -belf"
3872 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3873echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
3874if test "${lt_cv_cc_needs_belf+set}" = set; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3876else
3877 ac_ext=c
3878ac_cpp='$CPP $CPPFLAGS'
3879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3881ac_compiler_gnu=$ac_cv_c_compiler_gnu
3882
3883 cat >conftest.$ac_ext <<_ACEOF
3884/* confdefs.h. */
3885_ACEOF
3886cat confdefs.h >>conftest.$ac_ext
3887cat >>conftest.$ac_ext <<_ACEOF
3888/* end confdefs.h. */
3889
3890int
3891main ()
3892{
3893
3894 ;
3895 return 0;
3896}
3897_ACEOF
3898rm -f conftest.$ac_objext conftest$ac_exeext
3899if { (ac_try="$ac_link"
3900case "(($ac_try" in
3901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3902 *) ac_try_echo=$ac_try;;
3903esac
3904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3905 (eval "$ac_link") 2>conftest.er1
3906 ac_status=$?
3907 grep -v '^ *+' conftest.er1 >conftest.err
3908 rm -f conftest.er1
3909 cat conftest.err >&5
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); } && {
3912 test -z "$ac_c_werror_flag" ||
3913 test ! -s conftest.err
3914 } && test -s conftest$ac_exeext &&
3915 $as_test_x conftest$ac_exeext; then
3916 lt_cv_cc_needs_belf=yes
3917else
3918 echo "$as_me: failed program was:" >&5
3919sed 's/^/| /' conftest.$ac_ext >&5
3920
3921 lt_cv_cc_needs_belf=no
3922fi
3923
3924rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3925 conftest$ac_exeext conftest.$ac_ext
3926 ac_ext=c
3927ac_cpp='$CPP $CPPFLAGS'
3928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3930ac_compiler_gnu=$ac_cv_c_compiler_gnu
3931
3932fi
3933{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3934echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
3935 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3936 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3937 CFLAGS="$SAVE_CFLAGS"
3938 fi
3939 ;;
3940sparc*-*solaris*)
3941 # Find out which ABI we are using.
3942 echo 'int i;' > conftest.$ac_ext
3943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3944 (eval $ac_compile) 2>&5
3945 ac_status=$?
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); }; then
3948 case `/usr/bin/file conftest.o` in
3949 *64-bit*)
3950 case $lt_cv_prog_gnu_ld in
3951 yes*) LD="${LD-ld} -m elf64_sparc" ;;
3952 *) LD="${LD-ld} -64" ;;
3953 esac
3954 ;;
3955 esac
3956 fi
3957 rm -rf conftest*
3958 ;;
3959
3960*-*-cygwin* | *-*-mingw* | *-*-pw32*)
3961 if test -n "$ac_tool_prefix"; then
3962 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3963set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3964{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3966if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3968else
3969 if test -n "$DLLTOOL"; then
3970 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3971else
3972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973for as_dir in $PATH
3974do
3975 IFS=$as_save_IFS
3976 test -z "$as_dir" && as_dir=.
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3979 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3981 break 2
3982 fi
3983done
3984done
3985IFS=$as_save_IFS
3986
3987fi
3988fi
3989DLLTOOL=$ac_cv_prog_DLLTOOL
3990if test -n "$DLLTOOL"; then
3991 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3992echo "${ECHO_T}$DLLTOOL" >&6; }
3993else
3994 { echo "$as_me:$LINENO: result: no" >&5
3995echo "${ECHO_T}no" >&6; }
3996fi
3997
3998
3999fi
4000if test -z "$ac_cv_prog_DLLTOOL"; then
4001 ac_ct_DLLTOOL=$DLLTOOL
4002 # Extract the first word of "dlltool", so it can be a program name with args.
4003set dummy dlltool; ac_word=$2
4004{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4006if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4008else
4009 if test -n "$ac_ct_DLLTOOL"; then
4010 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4011else
4012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013for as_dir in $PATH
4014do
4015 IFS=$as_save_IFS
4016 test -z "$as_dir" && as_dir=.
4017 for ac_exec_ext in '' $ac_executable_extensions; do
4018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4019 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4021 break 2
4022 fi
4023done
4024done
4025IFS=$as_save_IFS
4026
4027fi
4028fi
4029ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4030if test -n "$ac_ct_DLLTOOL"; then
4031 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4032echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4033else
4034 { echo "$as_me:$LINENO: result: no" >&5
4035echo "${ECHO_T}no" >&6; }
4036fi
4037
4038 if test "x$ac_ct_DLLTOOL" = x; then
4039 DLLTOOL="false"
4040 else
4041 case $cross_compiling:$ac_tool_warned in
4042yes:)
4043{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4044whose name does not start with the host triplet. If you think this
4045configuration is useful to you, please write to autoconf@gnu.org." >&5
4046echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4047whose name does not start with the host triplet. If you think this
4048configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4049ac_tool_warned=yes ;;
4050esac
4051 DLLTOOL=$ac_ct_DLLTOOL
4052 fi
4053else
4054 DLLTOOL="$ac_cv_prog_DLLTOOL"
4055fi
4056
4057 if test -n "$ac_tool_prefix"; then
4058 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4059set dummy ${ac_tool_prefix}as; ac_word=$2
4060{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4062if test "${ac_cv_prog_AS+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
4064else
4065 if test -n "$AS"; then
4066 ac_cv_prog_AS="$AS" # Let the user override the test.
4067else
4068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069for as_dir in $PATH
4070do
4071 IFS=$as_save_IFS
4072 test -z "$as_dir" && as_dir=.
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4075 ac_cv_prog_AS="${ac_tool_prefix}as"
4076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4077 break 2
4078 fi
4079done
4080done
4081IFS=$as_save_IFS
4082
4083fi
4084fi
4085AS=$ac_cv_prog_AS
4086if test -n "$AS"; then
4087 { echo "$as_me:$LINENO: result: $AS" >&5
4088echo "${ECHO_T}$AS" >&6; }
4089else
4090 { echo "$as_me:$LINENO: result: no" >&5
4091echo "${ECHO_T}no" >&6; }
4092fi
4093
4094
4095fi
4096if test -z "$ac_cv_prog_AS"; then
4097 ac_ct_AS=$AS
4098 # Extract the first word of "as", so it can be a program name with args.
4099set dummy as; ac_word=$2
4100{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4102if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4103 echo $ECHO_N "(cached) $ECHO_C" >&6
4104else
4105 if test -n "$ac_ct_AS"; then
4106 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4107else
4108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109for as_dir in $PATH
4110do
4111 IFS=$as_save_IFS
4112 test -z "$as_dir" && as_dir=.
4113 for ac_exec_ext in '' $ac_executable_extensions; do
4114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4115 ac_cv_prog_ac_ct_AS="as"
4116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4117 break 2
4118 fi
4119done
4120done
4121IFS=$as_save_IFS
4122
4123fi
4124fi
4125ac_ct_AS=$ac_cv_prog_ac_ct_AS
4126if test -n "$ac_ct_AS"; then
4127 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4128echo "${ECHO_T}$ac_ct_AS" >&6; }
4129else
4130 { echo "$as_me:$LINENO: result: no" >&5
4131echo "${ECHO_T}no" >&6; }
4132fi
4133
4134 if test "x$ac_ct_AS" = x; then
4135 AS="false"
4136 else
4137 case $cross_compiling:$ac_tool_warned in
4138yes:)
4139{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4140whose name does not start with the host triplet. If you think this
4141configuration is useful to you, please write to autoconf@gnu.org." >&5
4142echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4143whose name does not start with the host triplet. If you think this
4144configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4145ac_tool_warned=yes ;;
4146esac
4147 AS=$ac_ct_AS
4148 fi
4149else
4150 AS="$ac_cv_prog_AS"
4151fi
4152
4153 if test -n "$ac_tool_prefix"; then
4154 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4155set dummy ${ac_tool_prefix}objdump; ac_word=$2
4156{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4158if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4160else
4161 if test -n "$OBJDUMP"; then
4162 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4163else
4164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165for as_dir in $PATH
4166do
4167 IFS=$as_save_IFS
4168 test -z "$as_dir" && as_dir=.
4169 for ac_exec_ext in '' $ac_executable_extensions; do
4170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4171 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4173 break 2
4174 fi
4175done
4176done
4177IFS=$as_save_IFS
4178
4179fi
4180fi
4181OBJDUMP=$ac_cv_prog_OBJDUMP
4182if test -n "$OBJDUMP"; then
4183 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4184echo "${ECHO_T}$OBJDUMP" >&6; }
4185else
4186 { echo "$as_me:$LINENO: result: no" >&5
4187echo "${ECHO_T}no" >&6; }
4188fi
4189
4190
4191fi
4192if test -z "$ac_cv_prog_OBJDUMP"; then
4193 ac_ct_OBJDUMP=$OBJDUMP
4194 # Extract the first word of "objdump", so it can be a program name with args.
4195set dummy objdump; ac_word=$2
4196{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4198if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4200else
4201 if test -n "$ac_ct_OBJDUMP"; then
4202 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4203else
4204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205for as_dir in $PATH
4206do
4207 IFS=$as_save_IFS
4208 test -z "$as_dir" && as_dir=.
4209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4211 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4213 break 2
4214 fi
4215done
4216done
4217IFS=$as_save_IFS
4218
4219fi
4220fi
4221ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4222if test -n "$ac_ct_OBJDUMP"; then
4223 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4224echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4225else
4226 { echo "$as_me:$LINENO: result: no" >&5
4227echo "${ECHO_T}no" >&6; }
4228fi
4229
4230 if test "x$ac_ct_OBJDUMP" = x; then
4231 OBJDUMP="false"
4232 else
4233 case $cross_compiling:$ac_tool_warned in
4234yes:)
4235{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4236whose name does not start with the host triplet. If you think this
4237configuration is useful to you, please write to autoconf@gnu.org." >&5
4238echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4239whose name does not start with the host triplet. If you think this
4240configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4241ac_tool_warned=yes ;;
4242esac
4243 OBJDUMP=$ac_ct_OBJDUMP
4244 fi
4245else
4246 OBJDUMP="$ac_cv_prog_OBJDUMP"
4247fi
4248
4249 ;;
4250
4251esac
4252
4253need_locks="$enable_libtool_lock"
4254
4255
4256ac_ext=c
4257ac_cpp='$CPP $CPPFLAGS'
4258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4262echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4263# On Suns, sometimes $CPP names a directory.
4264if test -n "$CPP" && test -d "$CPP"; then
4265 CPP=
4266fi
4267if test -z "$CPP"; then
4268 if test "${ac_cv_prog_CPP+set}" = set; then
4269 echo $ECHO_N "(cached) $ECHO_C" >&6
4270else
4271 # Double quotes because CPP needs to be expanded
4272 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4273 do
4274 ac_preproc_ok=false
4275for ac_c_preproc_warn_flag in '' yes
4276do
4277 # Use a header file that comes with gcc, so configuring glibc
4278 # with a fresh cross-compiler works.
4279 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4280 # <limits.h> exists even on freestanding compilers.
4281 # On the NeXT, cc -E runs the code through the compiler's parser,
4282 # not just through cpp. "Syntax error" is here to catch this case.
4283 cat >conftest.$ac_ext <<_ACEOF
4284/* confdefs.h. */
4285_ACEOF
4286cat confdefs.h >>conftest.$ac_ext
4287cat >>conftest.$ac_ext <<_ACEOF
4288/* end confdefs.h. */
4289#ifdef __STDC__
4290# include <limits.h>
4291#else
4292# include <assert.h>
4293#endif
4294 Syntax error
4295_ACEOF
4296if { (ac_try="$ac_cpp conftest.$ac_ext"
4297case "(($ac_try" in
4298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299 *) ac_try_echo=$ac_try;;
4300esac
4301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4303 ac_status=$?
4304 grep -v '^ *+' conftest.er1 >conftest.err
4305 rm -f conftest.er1
4306 cat conftest.err >&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); } >/dev/null && {
4309 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4310 test ! -s conftest.err
4311 }; then
4312 :
4313else
4314 echo "$as_me: failed program was:" >&5
4315sed 's/^/| /' conftest.$ac_ext >&5
4316
4317 # Broken: fails on valid input.
4318continue
4319fi
4320
4321rm -f conftest.err conftest.$ac_ext
4322
4323 # OK, works on sane cases. Now check whether nonexistent headers
4324 # can be detected and how.
4325 cat >conftest.$ac_ext <<_ACEOF
4326/* confdefs.h. */
4327_ACEOF
4328cat confdefs.h >>conftest.$ac_ext
4329cat >>conftest.$ac_ext <<_ACEOF
4330/* end confdefs.h. */
4331#include <ac_nonexistent.h>
4332_ACEOF
4333if { (ac_try="$ac_cpp conftest.$ac_ext"
4334case "(($ac_try" in
4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4337esac
4338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4340 ac_status=$?
4341 grep -v '^ *+' conftest.er1 >conftest.err
4342 rm -f conftest.er1
4343 cat conftest.err >&5
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); } >/dev/null && {
4346 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4347 test ! -s conftest.err
4348 }; then
4349 # Broken: success on invalid input.
4350continue
4351else
4352 echo "$as_me: failed program was:" >&5
4353sed 's/^/| /' conftest.$ac_ext >&5
4354
4355 # Passes both tests.
4356ac_preproc_ok=:
4357break
4358fi
4359
4360rm -f conftest.err conftest.$ac_ext
4361
4362done
4363# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4364rm -f conftest.err conftest.$ac_ext
4365if $ac_preproc_ok; then
4366 break
4367fi
4368
4369 done
4370 ac_cv_prog_CPP=$CPP
4371
4372fi
4373 CPP=$ac_cv_prog_CPP
4374else
4375 ac_cv_prog_CPP=$CPP
4376fi
4377{ echo "$as_me:$LINENO: result: $CPP" >&5
4378echo "${ECHO_T}$CPP" >&6; }
4379ac_preproc_ok=false
4380for ac_c_preproc_warn_flag in '' yes
4381do
4382 # Use a header file that comes with gcc, so configuring glibc
4383 # with a fresh cross-compiler works.
4384 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4385 # <limits.h> exists even on freestanding compilers.
4386 # On the NeXT, cc -E runs the code through the compiler's parser,
4387 # not just through cpp. "Syntax error" is here to catch this case.
4388 cat >conftest.$ac_ext <<_ACEOF
4389/* confdefs.h. */
4390_ACEOF
4391cat confdefs.h >>conftest.$ac_ext
4392cat >>conftest.$ac_ext <<_ACEOF
4393/* end confdefs.h. */
4394#ifdef __STDC__
4395# include <limits.h>
4396#else
4397# include <assert.h>
4398#endif
4399 Syntax error
4400_ACEOF
4401if { (ac_try="$ac_cpp conftest.$ac_ext"
4402case "(($ac_try" in
4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404 *) ac_try_echo=$ac_try;;
4405esac
4406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4408 ac_status=$?
4409 grep -v '^ *+' conftest.er1 >conftest.err
4410 rm -f conftest.er1
4411 cat conftest.err >&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); } >/dev/null && {
4414 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4415 test ! -s conftest.err
4416 }; then
4417 :
4418else
4419 echo "$as_me: failed program was:" >&5
4420sed 's/^/| /' conftest.$ac_ext >&5
4421
4422 # Broken: fails on valid input.
4423continue
4424fi
4425
4426rm -f conftest.err conftest.$ac_ext
4427
4428 # OK, works on sane cases. Now check whether nonexistent headers
4429 # can be detected and how.
4430 cat >conftest.$ac_ext <<_ACEOF
4431/* confdefs.h. */
4432_ACEOF
4433cat confdefs.h >>conftest.$ac_ext
4434cat >>conftest.$ac_ext <<_ACEOF
4435/* end confdefs.h. */
4436#include <ac_nonexistent.h>
4437_ACEOF
4438if { (ac_try="$ac_cpp conftest.$ac_ext"
4439case "(($ac_try" in
4440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441 *) ac_try_echo=$ac_try;;
4442esac
4443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4445 ac_status=$?
4446 grep -v '^ *+' conftest.er1 >conftest.err
4447 rm -f conftest.er1
4448 cat conftest.err >&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); } >/dev/null && {
4451 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4452 test ! -s conftest.err
4453 }; then
4454 # Broken: success on invalid input.
4455continue
4456else
4457 echo "$as_me: failed program was:" >&5
4458sed 's/^/| /' conftest.$ac_ext >&5
4459
4460 # Passes both tests.
4461ac_preproc_ok=:
4462break
4463fi
4464
4465rm -f conftest.err conftest.$ac_ext
4466
4467done
4468# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4469rm -f conftest.err conftest.$ac_ext
4470if $ac_preproc_ok; then
4471 :
4472else
4473 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4474See \`config.log' for more details." >&5
4475echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4476See \`config.log' for more details." >&2;}
4477 { (exit 1); exit 1; }; }
4478fi
4479
4480ac_ext=c
4481ac_cpp='$CPP $CPPFLAGS'
4482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4484ac_compiler_gnu=$ac_cv_c_compiler_gnu
4485
4486
4487{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4488echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4489if test "${ac_cv_header_stdc+set}" = set; then
4490 echo $ECHO_N "(cached) $ECHO_C" >&6
4491else
4492 cat >conftest.$ac_ext <<_ACEOF
4493/* confdefs.h. */
4494_ACEOF
4495cat confdefs.h >>conftest.$ac_ext
4496cat >>conftest.$ac_ext <<_ACEOF
4497/* end confdefs.h. */
4498#include <stdlib.h>
4499#include <stdarg.h>
4500#include <string.h>
4501#include <float.h>
4502
4503int
4504main ()
4505{
4506
4507 ;
4508 return 0;
4509}
4510_ACEOF
4511rm -f conftest.$ac_objext
4512if { (ac_try="$ac_compile"
4513case "(($ac_try" in
4514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4515 *) ac_try_echo=$ac_try;;
4516esac
4517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4518 (eval "$ac_compile") 2>conftest.er1
4519 ac_status=$?
4520 grep -v '^ *+' conftest.er1 >conftest.err
4521 rm -f conftest.er1
4522 cat conftest.err >&5
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); } && {
4525 test -z "$ac_c_werror_flag" ||
4526 test ! -s conftest.err
4527 } && test -s conftest.$ac_objext; then
4528 ac_cv_header_stdc=yes
4529else
4530 echo "$as_me: failed program was:" >&5
4531sed 's/^/| /' conftest.$ac_ext >&5
4532
4533 ac_cv_header_stdc=no
4534fi
4535
4536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4537
4538if test $ac_cv_header_stdc = yes; then
4539 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4540 cat >conftest.$ac_ext <<_ACEOF
4541/* confdefs.h. */
4542_ACEOF
4543cat confdefs.h >>conftest.$ac_ext
4544cat >>conftest.$ac_ext <<_ACEOF
4545/* end confdefs.h. */
4546#include <string.h>
4547
4548_ACEOF
4549if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4550 $EGREP "memchr" >/dev/null 2>&1; then
4551 :
4552else
4553 ac_cv_header_stdc=no
4554fi
4555rm -f conftest*
4556
4557fi
4558
4559if test $ac_cv_header_stdc = yes; then
4560 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4561 cat >conftest.$ac_ext <<_ACEOF
4562/* confdefs.h. */
4563_ACEOF
4564cat confdefs.h >>conftest.$ac_ext
4565cat >>conftest.$ac_ext <<_ACEOF
4566/* end confdefs.h. */
4567#include <stdlib.h>
4568
4569_ACEOF
4570if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4571 $EGREP "free" >/dev/null 2>&1; then
4572 :
4573else
4574 ac_cv_header_stdc=no
4575fi
4576rm -f conftest*
4577
4578fi
4579
4580if test $ac_cv_header_stdc = yes; then
4581 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4582 if test "$cross_compiling" = yes; then
4583 :
4584else
4585 cat >conftest.$ac_ext <<_ACEOF
4586/* confdefs.h. */
4587_ACEOF
4588cat confdefs.h >>conftest.$ac_ext
4589cat >>conftest.$ac_ext <<_ACEOF
4590/* end confdefs.h. */
4591#include <ctype.h>
4592#include <stdlib.h>
4593#if ((' ' & 0x0FF) == 0x020)
4594# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4595# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4596#else
4597# define ISLOWER(c) \
4598 (('a' <= (c) && (c) <= 'i') \
4599 || ('j' <= (c) && (c) <= 'r') \
4600 || ('s' <= (c) && (c) <= 'z'))
4601# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4602#endif
4603
4604#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4605int
4606main ()
4607{
4608 int i;
4609 for (i = 0; i < 256; i++)
4610 if (XOR (islower (i), ISLOWER (i))
4611 || toupper (i) != TOUPPER (i))
4612 return 2;
4613 return 0;
4614}
4615_ACEOF
4616rm -f conftest$ac_exeext
4617if { (ac_try="$ac_link"
4618case "(($ac_try" in
4619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4620 *) ac_try_echo=$ac_try;;
4621esac
4622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4623 (eval "$ac_link") 2>&5
4624 ac_status=$?
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4627 { (case "(($ac_try" in
4628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4629 *) ac_try_echo=$ac_try;;
4630esac
4631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4632 (eval "$ac_try") 2>&5
4633 ac_status=$?
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); }; }; then
4636 :
4637else
4638 echo "$as_me: program exited with status $ac_status" >&5
4639echo "$as_me: failed program was:" >&5
4640sed 's/^/| /' conftest.$ac_ext >&5
4641
4642( exit $ac_status )
4643ac_cv_header_stdc=no
4644fi
4645rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4646fi
4647
4648
4649fi
4650fi
4651{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4652echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4653if test $ac_cv_header_stdc = yes; then
4654
4655cat >>confdefs.h <<\_ACEOF
4656#define STDC_HEADERS 1
4657_ACEOF
4658
4659fi
4660
4661# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4672 inttypes.h stdint.h unistd.h
4673do
4674as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4675{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4676echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4677if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4678 echo $ECHO_N "(cached) $ECHO_C" >&6
4679else
4680 cat >conftest.$ac_ext <<_ACEOF
4681/* confdefs.h. */
4682_ACEOF
4683cat confdefs.h >>conftest.$ac_ext
4684cat >>conftest.$ac_ext <<_ACEOF
4685/* end confdefs.h. */
4686$ac_includes_default
4687
4688#include <$ac_header>
4689_ACEOF
4690rm -f conftest.$ac_objext
4691if { (ac_try="$ac_compile"
4692case "(($ac_try" in
4693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4694 *) ac_try_echo=$ac_try;;
4695esac
4696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4697 (eval "$ac_compile") 2>conftest.er1
4698 ac_status=$?
4699 grep -v '^ *+' conftest.er1 >conftest.err
4700 rm -f conftest.er1
4701 cat conftest.err >&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); } && {
4704 test -z "$ac_c_werror_flag" ||
4705 test ! -s conftest.err
4706 } && test -s conftest.$ac_objext; then
4707 eval "$as_ac_Header=yes"
4708else
4709 echo "$as_me: failed program was:" >&5
4710sed 's/^/| /' conftest.$ac_ext >&5
4711
4712 eval "$as_ac_Header=no"
4713fi
4714
4715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4716fi
4717ac_res=`eval echo '${'$as_ac_Header'}'`
4718 { echo "$as_me:$LINENO: result: $ac_res" >&5
4719echo "${ECHO_T}$ac_res" >&6; }
4720if test `eval echo '${'$as_ac_Header'}'` = yes; then
4721 cat >>confdefs.h <<_ACEOF
4722#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4723_ACEOF
4724
4725fi
4726
4727done
4728
4729
4730
4731for ac_header in dlfcn.h
4732do
4733as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4734if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4735 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4736echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4737if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4738 echo $ECHO_N "(cached) $ECHO_C" >&6
4739fi
4740ac_res=`eval echo '${'$as_ac_Header'}'`
4741 { echo "$as_me:$LINENO: result: $ac_res" >&5
4742echo "${ECHO_T}$ac_res" >&6; }
4743else
4744 # Is the header compilable?
4745{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4746echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4747cat >conftest.$ac_ext <<_ACEOF
4748/* confdefs.h. */
4749_ACEOF
4750cat confdefs.h >>conftest.$ac_ext
4751cat >>conftest.$ac_ext <<_ACEOF
4752/* end confdefs.h. */
4753$ac_includes_default
4754#include <$ac_header>
4755_ACEOF
4756rm -f conftest.$ac_objext
4757if { (ac_try="$ac_compile"
4758case "(($ac_try" in
4759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4760 *) ac_try_echo=$ac_try;;
4761esac
4762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4763 (eval "$ac_compile") 2>conftest.er1
4764 ac_status=$?
4765 grep -v '^ *+' conftest.er1 >conftest.err
4766 rm -f conftest.er1
4767 cat conftest.err >&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); } && {
4770 test -z "$ac_c_werror_flag" ||
4771 test ! -s conftest.err
4772 } && test -s conftest.$ac_objext; then
4773 ac_header_compiler=yes
4774else
4775 echo "$as_me: failed program was:" >&5
4776sed 's/^/| /' conftest.$ac_ext >&5
4777
4778 ac_header_compiler=no
4779fi
4780
4781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4782{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4783echo "${ECHO_T}$ac_header_compiler" >&6; }
4784
4785# Is the header present?
4786{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4787echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4788cat >conftest.$ac_ext <<_ACEOF
4789/* confdefs.h. */
4790_ACEOF
4791cat confdefs.h >>conftest.$ac_ext
4792cat >>conftest.$ac_ext <<_ACEOF
4793/* end confdefs.h. */
4794#include <$ac_header>
4795_ACEOF
4796if { (ac_try="$ac_cpp conftest.$ac_ext"
4797case "(($ac_try" in
4798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4799 *) ac_try_echo=$ac_try;;
4800esac
4801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4802 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4803 ac_status=$?
4804 grep -v '^ *+' conftest.er1 >conftest.err
4805 rm -f conftest.er1
4806 cat conftest.err >&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); } >/dev/null && {
4809 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4810 test ! -s conftest.err
4811 }; then
4812 ac_header_preproc=yes
4813else
4814 echo "$as_me: failed program was:" >&5
4815sed 's/^/| /' conftest.$ac_ext >&5
4816
4817 ac_header_preproc=no
4818fi
4819
4820rm -f conftest.err conftest.$ac_ext
4821{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4822echo "${ECHO_T}$ac_header_preproc" >&6; }
4823
4824# So? What about this header?
4825case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4826 yes:no: )
4827 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4828echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4830echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4831 ac_header_preproc=yes
4832 ;;
4833 no:yes:* )
4834 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4835echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4836 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4837echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4838 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4839echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4840 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4841echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4843echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4844 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4845echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4846
4847 ;;
4848esac
4849{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4850echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4851if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4852 echo $ECHO_N "(cached) $ECHO_C" >&6
4853else
4854 eval "$as_ac_Header=\$ac_header_preproc"
4855fi
4856ac_res=`eval echo '${'$as_ac_Header'}'`
4857 { echo "$as_me:$LINENO: result: $ac_res" >&5
4858echo "${ECHO_T}$ac_res" >&6; }
4859
4860fi
4861if test `eval echo '${'$as_ac_Header'}'` = yes; then
4862 cat >>confdefs.h <<_ACEOF
4863#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4864_ACEOF
4865
4866fi
4867
4868done
4869
4870ac_ext=cpp
4871ac_cpp='$CXXCPP $CPPFLAGS'
4872ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4873ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4874ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4875if test -z "$CXX"; then
4876 if test -n "$CCC"; then
4877 CXX=$CCC
4878 else
4879 if test -n "$ac_tool_prefix"; then
4880 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4881 do
4882 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4883set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4884{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4886if test "${ac_cv_prog_CXX+set}" = set; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
4888else
4889 if test -n "$CXX"; then
4890 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4891else
4892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893for as_dir in $PATH
4894do
4895 IFS=$as_save_IFS
4896 test -z "$as_dir" && as_dir=.
4897 for ac_exec_ext in '' $ac_executable_extensions; do
4898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4899 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4901 break 2
4902 fi
4903done
4904done
4905IFS=$as_save_IFS
4906
4907fi
4908fi
4909CXX=$ac_cv_prog_CXX
4910if test -n "$CXX"; then
4911 { echo "$as_me:$LINENO: result: $CXX" >&5
4912echo "${ECHO_T}$CXX" >&6; }
4913else
4914 { echo "$as_me:$LINENO: result: no" >&5
4915echo "${ECHO_T}no" >&6; }
4916fi
4917
4918
4919 test -n "$CXX" && break
4920 done
4921fi
4922if test -z "$CXX"; then
4923 ac_ct_CXX=$CXX
4924 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4925do
4926 # Extract the first word of "$ac_prog", so it can be a program name with args.
4927set dummy $ac_prog; ac_word=$2
4928{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4930if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4931 echo $ECHO_N "(cached) $ECHO_C" >&6
4932else
4933 if test -n "$ac_ct_CXX"; then
4934 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4935else
4936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937for as_dir in $PATH
4938do
4939 IFS=$as_save_IFS
4940 test -z "$as_dir" && as_dir=.
4941 for ac_exec_ext in '' $ac_executable_extensions; do
4942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4943 ac_cv_prog_ac_ct_CXX="$ac_prog"
4944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4945 break 2
4946 fi
4947done
4948done
4949IFS=$as_save_IFS
4950
4951fi
4952fi
4953ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4954if test -n "$ac_ct_CXX"; then
4955 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4956echo "${ECHO_T}$ac_ct_CXX" >&6; }
4957else
4958 { echo "$as_me:$LINENO: result: no" >&5
4959echo "${ECHO_T}no" >&6; }
4960fi
4961
4962
4963 test -n "$ac_ct_CXX" && break
4964done
4965
4966 if test "x$ac_ct_CXX" = x; then
4967 CXX="g++"
4968 else
4969 case $cross_compiling:$ac_tool_warned in
4970yes:)
4971{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4972whose name does not start with the host triplet. If you think this
4973configuration is useful to you, please write to autoconf@gnu.org." >&5
4974echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4975whose name does not start with the host triplet. If you think this
4976configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4977ac_tool_warned=yes ;;
4978esac
4979 CXX=$ac_ct_CXX
4980 fi
4981fi
4982
4983 fi
4984fi
4985# Provide some information about the compiler.
4986echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4987ac_compiler=`set X $ac_compile; echo $2`
4988{ (ac_try="$ac_compiler --version >&5"
4989case "(($ac_try" in
4990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4991 *) ac_try_echo=$ac_try;;
4992esac
4993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4994 (eval "$ac_compiler --version >&5") 2>&5
4995 ac_status=$?
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); }
4998{ (ac_try="$ac_compiler -v >&5"
4999case "(($ac_try" in
5000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5001 *) ac_try_echo=$ac_try;;
5002esac
5003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5004 (eval "$ac_compiler -v >&5") 2>&5
5005 ac_status=$?
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); }
5008{ (ac_try="$ac_compiler -V >&5"
5009case "(($ac_try" in
5010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5011 *) ac_try_echo=$ac_try;;
5012esac
5013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5014 (eval "$ac_compiler -V >&5") 2>&5
5015 ac_status=$?
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }
5018
5019{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5020echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5021if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5023else
5024 cat >conftest.$ac_ext <<_ACEOF
5025/* confdefs.h. */
5026_ACEOF
5027cat confdefs.h >>conftest.$ac_ext
5028cat >>conftest.$ac_ext <<_ACEOF
5029/* end confdefs.h. */
5030
5031int
5032main ()
5033{
5034#ifndef __GNUC__
5035 choke me
5036#endif
5037
5038 ;
5039 return 0;
5040}
5041_ACEOF
5042rm -f conftest.$ac_objext
5043if { (ac_try="$ac_compile"
5044case "(($ac_try" in
5045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5046 *) ac_try_echo=$ac_try;;
5047esac
5048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5049 (eval "$ac_compile") 2>conftest.er1
5050 ac_status=$?
5051 grep -v '^ *+' conftest.er1 >conftest.err
5052 rm -f conftest.er1
5053 cat conftest.err >&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } && {
5056 test -z "$ac_cxx_werror_flag" ||
5057 test ! -s conftest.err
5058 } && test -s conftest.$ac_objext; then
5059 ac_compiler_gnu=yes
5060else
5061 echo "$as_me: failed program was:" >&5
5062sed 's/^/| /' conftest.$ac_ext >&5
5063
5064 ac_compiler_gnu=no
5065fi
5066
5067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5068ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5069
5070fi
5071{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5072echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5073GXX=`test $ac_compiler_gnu = yes && echo yes`
5074ac_test_CXXFLAGS=${CXXFLAGS+set}
5075ac_save_CXXFLAGS=$CXXFLAGS
5076{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5077echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5078if test "${ac_cv_prog_cxx_g+set}" = set; then
5079 echo $ECHO_N "(cached) $ECHO_C" >&6
5080else
5081 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5082 ac_cxx_werror_flag=yes
5083 ac_cv_prog_cxx_g=no
5084 CXXFLAGS="-g"
5085 cat >conftest.$ac_ext <<_ACEOF
5086/* confdefs.h. */
5087_ACEOF
5088cat confdefs.h >>conftest.$ac_ext
5089cat >>conftest.$ac_ext <<_ACEOF
5090/* end confdefs.h. */
5091
5092int
5093main ()
5094{
5095
5096 ;
5097 return 0;
5098}
5099_ACEOF
5100rm -f conftest.$ac_objext
5101if { (ac_try="$ac_compile"
5102case "(($ac_try" in
5103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5104 *) ac_try_echo=$ac_try;;
5105esac
5106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5107 (eval "$ac_compile") 2>conftest.er1
5108 ac_status=$?
5109 grep -v '^ *+' conftest.er1 >conftest.err
5110 rm -f conftest.er1
5111 cat conftest.err >&5
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); } && {
5114 test -z "$ac_cxx_werror_flag" ||
5115 test ! -s conftest.err
5116 } && test -s conftest.$ac_objext; then
5117 ac_cv_prog_cxx_g=yes
5118else
5119 echo "$as_me: failed program was:" >&5
5120sed 's/^/| /' conftest.$ac_ext >&5
5121
5122 CXXFLAGS=""
5123 cat >conftest.$ac_ext <<_ACEOF
5124/* confdefs.h. */
5125_ACEOF
5126cat confdefs.h >>conftest.$ac_ext
5127cat >>conftest.$ac_ext <<_ACEOF
5128/* end confdefs.h. */
5129
5130int
5131main ()
5132{
5133
5134 ;
5135 return 0;
5136}
5137_ACEOF
5138rm -f conftest.$ac_objext
5139if { (ac_try="$ac_compile"
5140case "(($ac_try" in
5141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5143esac
5144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5145 (eval "$ac_compile") 2>conftest.er1
5146 ac_status=$?
5147 grep -v '^ *+' conftest.er1 >conftest.err
5148 rm -f conftest.er1
5149 cat conftest.err >&5
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); } && {
5152 test -z "$ac_cxx_werror_flag" ||
5153 test ! -s conftest.err
5154 } && test -s conftest.$ac_objext; then
5155 :
5156else
5157 echo "$as_me: failed program was:" >&5
5158sed 's/^/| /' conftest.$ac_ext >&5
5159
5160 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5161 CXXFLAGS="-g"
5162 cat >conftest.$ac_ext <<_ACEOF
5163/* confdefs.h. */
5164_ACEOF
5165cat confdefs.h >>conftest.$ac_ext
5166cat >>conftest.$ac_ext <<_ACEOF
5167/* end confdefs.h. */
5168
5169int
5170main ()
5171{
5172
5173 ;
5174 return 0;
5175}
5176_ACEOF
5177rm -f conftest.$ac_objext
5178if { (ac_try="$ac_compile"
5179case "(($ac_try" in
5180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5181 *) ac_try_echo=$ac_try;;
5182esac
5183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5184 (eval "$ac_compile") 2>conftest.er1
5185 ac_status=$?
5186 grep -v '^ *+' conftest.er1 >conftest.err
5187 rm -f conftest.er1
5188 cat conftest.err >&5
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); } && {
5191 test -z "$ac_cxx_werror_flag" ||
5192 test ! -s conftest.err
5193 } && test -s conftest.$ac_objext; then
5194 ac_cv_prog_cxx_g=yes
5195else
5196 echo "$as_me: failed program was:" >&5
5197sed 's/^/| /' conftest.$ac_ext >&5
5198
5199
5200fi
5201
5202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5203fi
5204
5205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5206fi
5207
5208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5209 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5210fi
5211{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5212echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5213if test "$ac_test_CXXFLAGS" = set; then
5214 CXXFLAGS=$ac_save_CXXFLAGS
5215elif test $ac_cv_prog_cxx_g = yes; then
5216 if test "$GXX" = yes; then
5217 CXXFLAGS="-g -O2"
5218 else
5219 CXXFLAGS="-g"
5220 fi
5221else
5222 if test "$GXX" = yes; then
5223 CXXFLAGS="-O2"
5224 else
5225 CXXFLAGS=
5226 fi
5227fi
5228ac_ext=cpp
5229ac_cpp='$CXXCPP $CPPFLAGS'
5230ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5231ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5232ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5233
5234
5235
5236if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5237 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5238 (test "X$CXX" != "Xg++"))) ; then
5239 ac_ext=cpp
5240ac_cpp='$CXXCPP $CPPFLAGS'
5241ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5242ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5243ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5244{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5245echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5246if test -z "$CXXCPP"; then
5247 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
5249else
5250 # Double quotes because CXXCPP needs to be expanded
5251 for CXXCPP in "$CXX -E" "/lib/cpp"
5252 do
5253 ac_preproc_ok=false
5254for ac_cxx_preproc_warn_flag in '' yes
5255do
5256 # Use a header file that comes with gcc, so configuring glibc
5257 # with a fresh cross-compiler works.
5258 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5259 # <limits.h> exists even on freestanding compilers.
5260 # On the NeXT, cc -E runs the code through the compiler's parser,
5261 # not just through cpp. "Syntax error" is here to catch this case.
5262 cat >conftest.$ac_ext <<_ACEOF
5263/* confdefs.h. */
5264_ACEOF
5265cat confdefs.h >>conftest.$ac_ext
5266cat >>conftest.$ac_ext <<_ACEOF
5267/* end confdefs.h. */
5268#ifdef __STDC__
5269# include <limits.h>
5270#else
5271# include <assert.h>
5272#endif
5273 Syntax error
5274_ACEOF
5275if { (ac_try="$ac_cpp conftest.$ac_ext"
5276case "(($ac_try" in
5277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278 *) ac_try_echo=$ac_try;;
5279esac
5280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5281 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5282 ac_status=$?
5283 grep -v '^ *+' conftest.er1 >conftest.err
5284 rm -f conftest.er1
5285 cat conftest.err >&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); } >/dev/null && {
5288 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5289 test ! -s conftest.err
5290 }; then
5291 :
5292else
5293 echo "$as_me: failed program was:" >&5
5294sed 's/^/| /' conftest.$ac_ext >&5
5295
5296 # Broken: fails on valid input.
5297continue
5298fi
5299
5300rm -f conftest.err conftest.$ac_ext
5301
5302 # OK, works on sane cases. Now check whether nonexistent headers
5303 # can be detected and how.
5304 cat >conftest.$ac_ext <<_ACEOF
5305/* confdefs.h. */
5306_ACEOF
5307cat confdefs.h >>conftest.$ac_ext
5308cat >>conftest.$ac_ext <<_ACEOF
5309/* end confdefs.h. */
5310#include <ac_nonexistent.h>
5311_ACEOF
5312if { (ac_try="$ac_cpp conftest.$ac_ext"
5313case "(($ac_try" in
5314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5315 *) ac_try_echo=$ac_try;;
5316esac
5317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5319 ac_status=$?
5320 grep -v '^ *+' conftest.er1 >conftest.err
5321 rm -f conftest.er1
5322 cat conftest.err >&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); } >/dev/null && {
5325 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5326 test ! -s conftest.err
5327 }; then
5328 # Broken: success on invalid input.
5329continue
5330else
5331 echo "$as_me: failed program was:" >&5
5332sed 's/^/| /' conftest.$ac_ext >&5
5333
5334 # Passes both tests.
5335ac_preproc_ok=:
5336break
5337fi
5338
5339rm -f conftest.err conftest.$ac_ext
5340
5341done
5342# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5343rm -f conftest.err conftest.$ac_ext
5344if $ac_preproc_ok; then
5345 break
5346fi
5347
5348 done
5349 ac_cv_prog_CXXCPP=$CXXCPP
5350
5351fi
5352 CXXCPP=$ac_cv_prog_CXXCPP
5353else
5354 ac_cv_prog_CXXCPP=$CXXCPP
5355fi
5356{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5357echo "${ECHO_T}$CXXCPP" >&6; }
5358ac_preproc_ok=false
5359for ac_cxx_preproc_warn_flag in '' yes
5360do
5361 # Use a header file that comes with gcc, so configuring glibc
5362 # with a fresh cross-compiler works.
5363 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5364 # <limits.h> exists even on freestanding compilers.
5365 # On the NeXT, cc -E runs the code through the compiler's parser,
5366 # not just through cpp. "Syntax error" is here to catch this case.
5367 cat >conftest.$ac_ext <<_ACEOF
5368/* confdefs.h. */
5369_ACEOF
5370cat confdefs.h >>conftest.$ac_ext
5371cat >>conftest.$ac_ext <<_ACEOF
5372/* end confdefs.h. */
5373#ifdef __STDC__
5374# include <limits.h>
5375#else
5376# include <assert.h>
5377#endif
5378 Syntax error
5379_ACEOF
5380if { (ac_try="$ac_cpp conftest.$ac_ext"
5381case "(($ac_try" in
5382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5383 *) ac_try_echo=$ac_try;;
5384esac
5385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5387 ac_status=$?
5388 grep -v '^ *+' conftest.er1 >conftest.err
5389 rm -f conftest.er1
5390 cat conftest.err >&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); } >/dev/null && {
5393 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5394 test ! -s conftest.err
5395 }; then
5396 :
5397else
5398 echo "$as_me: failed program was:" >&5
5399sed 's/^/| /' conftest.$ac_ext >&5
5400
5401 # Broken: fails on valid input.
5402continue
5403fi
5404
5405rm -f conftest.err conftest.$ac_ext
5406
5407 # OK, works on sane cases. Now check whether nonexistent headers
5408 # can be detected and how.
5409 cat >conftest.$ac_ext <<_ACEOF
5410/* confdefs.h. */
5411_ACEOF
5412cat confdefs.h >>conftest.$ac_ext
5413cat >>conftest.$ac_ext <<_ACEOF
5414/* end confdefs.h. */
5415#include <ac_nonexistent.h>
5416_ACEOF
5417if { (ac_try="$ac_cpp conftest.$ac_ext"
5418case "(($ac_try" in
5419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5420 *) ac_try_echo=$ac_try;;
5421esac
5422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5424 ac_status=$?
5425 grep -v '^ *+' conftest.er1 >conftest.err
5426 rm -f conftest.er1
5427 cat conftest.err >&5
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); } >/dev/null && {
5430 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5431 test ! -s conftest.err
5432 }; then
5433 # Broken: success on invalid input.
5434continue
5435else
5436 echo "$as_me: failed program was:" >&5
5437sed 's/^/| /' conftest.$ac_ext >&5
5438
5439 # Passes both tests.
5440ac_preproc_ok=:
5441break
5442fi
5443
5444rm -f conftest.err conftest.$ac_ext
5445
5446done
5447# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5448rm -f conftest.err conftest.$ac_ext
5449if $ac_preproc_ok; then
5450 :
5451else
5452 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5453See \`config.log' for more details." >&5
5454echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5455See \`config.log' for more details." >&2;}
5456 { (exit 1); exit 1; }; }
5457fi
5458
5459ac_ext=cpp
5460ac_cpp='$CXXCPP $CPPFLAGS'
5461ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5462ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5463ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5464
5465fi
5466
5467
5468ac_ext=f
5469ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5470ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5471ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5472if test -n "$ac_tool_prefix"; then
5473 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5474 do
5475 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5476set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5477{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5479if test "${ac_cv_prog_F77+set}" = set; then
5480 echo $ECHO_N "(cached) $ECHO_C" >&6
5481else
5482 if test -n "$F77"; then
5483 ac_cv_prog_F77="$F77" # Let the user override the test.
5484else
5485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486for as_dir in $PATH
5487do
5488 IFS=$as_save_IFS
5489 test -z "$as_dir" && as_dir=.
5490 for ac_exec_ext in '' $ac_executable_extensions; do
5491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5492 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5494 break 2
5495 fi
5496done
5497done
5498IFS=$as_save_IFS
5499
5500fi
5501fi
5502F77=$ac_cv_prog_F77
5503if test -n "$F77"; then
5504 { echo "$as_me:$LINENO: result: $F77" >&5
5505echo "${ECHO_T}$F77" >&6; }
5506else
5507 { echo "$as_me:$LINENO: result: no" >&5
5508echo "${ECHO_T}no" >&6; }
5509fi
5510
5511
5512 test -n "$F77" && break
5513 done
5514fi
5515if test -z "$F77"; then
5516 ac_ct_F77=$F77
5517 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5518do
5519 # Extract the first word of "$ac_prog", so it can be a program name with args.
5520set dummy $ac_prog; ac_word=$2
5521{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5523if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5525else
5526 if test -n "$ac_ct_F77"; then
5527 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5528else
5529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530for as_dir in $PATH
5531do
5532 IFS=$as_save_IFS
5533 test -z "$as_dir" && as_dir=.
5534 for ac_exec_ext in '' $ac_executable_extensions; do
5535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5536 ac_cv_prog_ac_ct_F77="$ac_prog"
5537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5538 break 2
5539 fi
5540done
5541done
5542IFS=$as_save_IFS
5543
5544fi
5545fi
5546ac_ct_F77=$ac_cv_prog_ac_ct_F77
5547if test -n "$ac_ct_F77"; then
5548 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5549echo "${ECHO_T}$ac_ct_F77" >&6; }
5550else
5551 { echo "$as_me:$LINENO: result: no" >&5
5552echo "${ECHO_T}no" >&6; }
5553fi
5554
5555
5556 test -n "$ac_ct_F77" && break
5557done
5558
5559 if test "x$ac_ct_F77" = x; then
5560 F77=""
5561 else
5562 case $cross_compiling:$ac_tool_warned in
5563yes:)
5564{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5565whose name does not start with the host triplet. If you think this
5566configuration is useful to you, please write to autoconf@gnu.org." >&5
5567echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5568whose name does not start with the host triplet. If you think this
5569configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5570ac_tool_warned=yes ;;
5571esac
5572 F77=$ac_ct_F77
5573 fi
5574fi
5575
5576
5577# Provide some information about the compiler.
5578echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5579ac_compiler=`set X $ac_compile; echo $2`
5580{ (ac_try="$ac_compiler --version >&5"
5581case "(($ac_try" in
5582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583 *) ac_try_echo=$ac_try;;
5584esac
5585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5586 (eval "$ac_compiler --version >&5") 2>&5
5587 ac_status=$?
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); }
5590{ (ac_try="$ac_compiler -v >&5"
5591case "(($ac_try" in
5592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593 *) ac_try_echo=$ac_try;;
5594esac
5595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5596 (eval "$ac_compiler -v >&5") 2>&5
5597 ac_status=$?
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); }
5600{ (ac_try="$ac_compiler -V >&5"
5601case "(($ac_try" in
5602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5603 *) ac_try_echo=$ac_try;;
5604esac
5605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5606 (eval "$ac_compiler -V >&5") 2>&5
5607 ac_status=$?
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); }
5610rm -f a.out
5611
5612# If we don't use `.F' as extension, the preprocessor is not run on the
5613# input file. (Note that this only needs to work for GNU compilers.)
5614ac_save_ext=$ac_ext
5615ac_ext=F
5616{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5617echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5618if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5619 echo $ECHO_N "(cached) $ECHO_C" >&6
5620else
5621 cat >conftest.$ac_ext <<_ACEOF
5622 program main
5623#ifndef __GNUC__
5624 choke me
5625#endif
5626
5627 end
5628_ACEOF
5629rm -f conftest.$ac_objext
5630if { (ac_try="$ac_compile"
5631case "(($ac_try" in
5632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633 *) ac_try_echo=$ac_try;;
5634esac
5635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636 (eval "$ac_compile") 2>conftest.er1
5637 ac_status=$?
5638 grep -v '^ *+' conftest.er1 >conftest.err
5639 rm -f conftest.er1
5640 cat conftest.err >&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); } && {
5643 test -z "$ac_f77_werror_flag" ||
5644 test ! -s conftest.err
5645 } && test -s conftest.$ac_objext; then
5646 ac_compiler_gnu=yes
5647else
5648 echo "$as_me: failed program was:" >&5
5649sed 's/^/| /' conftest.$ac_ext >&5
5650
5651 ac_compiler_gnu=no
5652fi
5653
5654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5655ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5656
5657fi
5658{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5659echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5660ac_ext=$ac_save_ext
5661ac_test_FFLAGS=${FFLAGS+set}
5662ac_save_FFLAGS=$FFLAGS
5663FFLAGS=
5664{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5665echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5666if test "${ac_cv_prog_f77_g+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5668else
5669 FFLAGS=-g
5670cat >conftest.$ac_ext <<_ACEOF
5671 program main
5672
5673 end
5674_ACEOF
5675rm -f conftest.$ac_objext
5676if { (ac_try="$ac_compile"
5677case "(($ac_try" in
5678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679 *) ac_try_echo=$ac_try;;
5680esac
5681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5682 (eval "$ac_compile") 2>conftest.er1
5683 ac_status=$?
5684 grep -v '^ *+' conftest.er1 >conftest.err
5685 rm -f conftest.er1
5686 cat conftest.err >&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); } && {
5689 test -z "$ac_f77_werror_flag" ||
5690 test ! -s conftest.err
5691 } && test -s conftest.$ac_objext; then
5692 ac_cv_prog_f77_g=yes
5693else
5694 echo "$as_me: failed program was:" >&5
5695sed 's/^/| /' conftest.$ac_ext >&5
5696
5697 ac_cv_prog_f77_g=no
5698fi
5699
5700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701
5702fi
5703{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5704echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5705if test "$ac_test_FFLAGS" = set; then
5706 FFLAGS=$ac_save_FFLAGS
5707elif test $ac_cv_prog_f77_g = yes; then
5708 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5709 FFLAGS="-g -O2"
5710 else
5711 FFLAGS="-g"
5712 fi
5713else
5714 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5715 FFLAGS="-O2"
5716 else
5717 FFLAGS=
5718 fi
5719fi
5720
5721G77=`test $ac_compiler_gnu = yes && echo yes`
5722ac_ext=c
5723ac_cpp='$CPP $CPPFLAGS'
5724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5726ac_compiler_gnu=$ac_cv_c_compiler_gnu
5727
5728
5729
5730# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5731
5732# find the maximum length of command line arguments
5733{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5734echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5735if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5736 echo $ECHO_N "(cached) $ECHO_C" >&6
5737else
5738 i=0
5739 teststring="ABCD"
5740
5741 case $build_os in
5742 msdosdjgpp*)
5743 # On DJGPP, this test can blow up pretty badly due to problems in libc
5744 # (any single argument exceeding 2000 bytes causes a buffer overrun
5745 # during glob expansion). Even if it were fixed, the result of this
5746 # check would be larger than it should be.
5747 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5748 ;;
5749
5750 gnu*)
5751 # Under GNU Hurd, this test is not required because there is
5752 # no limit to the length of command line arguments.
5753 # Libtool will interpret -1 as no limit whatsoever
5754 lt_cv_sys_max_cmd_len=-1;
5755 ;;
5756
5757 cygwin* | mingw*)
5758 # On Win9x/ME, this test blows up -- it succeeds, but takes
5759 # about 5 minutes as the teststring grows exponentially.
5760 # Worse, since 9x/ME are not pre-emptively multitasking,
5761 # you end up with a "frozen" computer, even though with patience
5762 # the test eventually succeeds (with a max line length of 256k).
5763 # Instead, let's just punt: use the minimum linelength reported by
5764 # all of the supported platforms: 8192 (on NT/2K/XP).
5765 lt_cv_sys_max_cmd_len=8192;
5766 ;;
5767
5768 amigaos*)
5769 # On AmigaOS with pdksh, this test takes hours, literally.
5770 # So we just punt and use a minimum line length of 8192.
5771 lt_cv_sys_max_cmd_len=8192;
5772 ;;
5773
5774 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5775 # This has been around since 386BSD, at least. Likely further.
5776 if test -x /sbin/sysctl; then
5777 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5778 elif test -x /usr/sbin/sysctl; then
5779 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5780 else
5781 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5782 fi
5783 # And add a safety zone
5784 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5785 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5786 ;;
5787
5788 interix*)
5789 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5790 lt_cv_sys_max_cmd_len=196608
5791 ;;
5792
5793 osf*)
5794 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5795 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5796 # nice to cause kernel panics so lets avoid the loop below.
5797 # First set a reasonable default.
5798 lt_cv_sys_max_cmd_len=16384
5799 #
5800 if test -x /sbin/sysconfig; then
5801 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5802 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5803 esac
5804 fi
5805 ;;
5806 sco3.2v5*)
5807 lt_cv_sys_max_cmd_len=102400
5808 ;;
5809 sysv5* | sco5v6* | sysv4.2uw2*)
5810 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5811 if test -n "$kargmax"; then
5812 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5813 else
5814 lt_cv_sys_max_cmd_len=32768
5815 fi
5816 ;;
5817 *)
5818 # If test is not a shell built-in, we'll probably end up computing a
5819 # maximum length that is only half of the actual maximum length, but
5820 # we can't tell.
5821 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5822 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5823 = "XX$teststring") >/dev/null 2>&1 &&
5824 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5825 lt_cv_sys_max_cmd_len=$new_result &&
5826 test $i != 17 # 1/2 MB should be enough
5827 do
5828 i=`expr $i + 1`
5829 teststring=$teststring$teststring
5830 done
5831 teststring=
5832 # Add a significant safety factor because C++ compilers can tack on massive
5833 # amounts of additional arguments before passing them to the linker.
5834 # It appears as though 1/2 is a usable value.
5835 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5836 ;;
5837 esac
5838
5839fi
5840
5841if test -n $lt_cv_sys_max_cmd_len ; then
5842 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5843echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5844else
5845 { echo "$as_me:$LINENO: result: none" >&5
5846echo "${ECHO_T}none" >&6; }
5847fi
5848
5849
5850
5851
5852# Check for command to grab the raw symbol name followed by C symbol from nm.
5853{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5854echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5855if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5856 echo $ECHO_N "(cached) $ECHO_C" >&6
5857else
5858
5859# These are sane defaults that work on at least a few old systems.
5860# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5861
5862# Character class describing NM global symbol codes.
5863symcode='[BCDEGRST]'
5864
5865# Regexp to match symbols that can be accessed directly from C.
5866sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5867
5868# Transform an extracted symbol line into a proper C declaration
5869lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5870
5871# Transform an extracted symbol line into symbol name and symbol address
5872lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5873
5874# Define system-specific variables.
5875case $host_os in
5876aix*)
5877 symcode='[BCDT]'
5878 ;;
5879cygwin* | mingw* | pw32*)
5880 symcode='[ABCDGISTW]'
5881 ;;
5882hpux*) # Its linker distinguishes data from code symbols
5883 if test "$host_cpu" = ia64; then
5884 symcode='[ABCDEGRST]'
5885 fi
5886 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5887 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5888 ;;
5889linux*)
5890 if test "$host_cpu" = ia64; then
5891 symcode='[ABCDGIRSTW]'
5892 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5893 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5894 fi
5895 ;;
5896irix* | nonstopux*)
5897 symcode='[BCDEGRST]'
5898 ;;
5899osf*)
5900 symcode='[BCDEGQRST]'
5901 ;;
5902solaris*)
5903 symcode='[BDRT]'
5904 ;;
5905sco3.2v5*)
5906 symcode='[DT]'
5907 ;;
5908sysv4.2uw2*)
5909 symcode='[DT]'
5910 ;;
5911sysv5* | sco5v6* | unixware* | OpenUNIX*)
5912 symcode='[ABDT]'
5913 ;;
5914sysv4)
5915 symcode='[DFNSTU]'
5916 ;;
5917esac
5918
5919# Handle CRLF in mingw tool chain
5920opt_cr=
5921case $build_os in
5922mingw*)
5923 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5924 ;;
5925esac
5926
5927# If we're using GNU nm, then use its standard symbol codes.
5928case `$NM -V 2>&1` in
5929*GNU* | *'with BFD'*)
5930 symcode='[ABCDGIRSTW]' ;;
5931esac
5932
5933# Try without a prefix undercore, then with it.
5934for ac_symprfx in "" "_"; do
5935
5936 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5937 symxfrm="\\1 $ac_symprfx\\2 \\2"
5938
5939 # Write the raw and C identifiers.
5940 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5941
5942 # Check to see that the pipe works correctly.
5943 pipe_works=no
5944
5945 rm -f conftest*
5946 cat > conftest.$ac_ext <<EOF
5947#ifdef __cplusplus
5948extern "C" {
5949#endif
5950char nm_test_var;
5951void nm_test_func(){}
5952#ifdef __cplusplus
5953}
5954#endif
5955int main(){nm_test_var='a';nm_test_func();return(0);}
5956EOF
5957
5958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5959 (eval $ac_compile) 2>&5
5960 ac_status=$?
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); }; then
5963 # Now try to grab the symbols.
5964 nlist=conftest.nm
5965 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5966 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5967 ac_status=$?
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); } && test -s "$nlist"; then
5970 # Try sorting and uniquifying the output.
5971 if sort "$nlist" | uniq > "$nlist"T; then
5972 mv -f "$nlist"T "$nlist"
5973 else
5974 rm -f "$nlist"T
5975 fi
5976
5977 # Make sure that we snagged all the symbols we need.
5978 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5979 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5980 cat <<EOF > conftest.$ac_ext
5981#ifdef __cplusplus
5982extern "C" {
5983#endif
5984
5985EOF
5986 # Now generate the symbol file.
5987 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5988
5989 cat <<EOF >> conftest.$ac_ext
5990#if defined (__STDC__) && __STDC__
5991# define lt_ptr_t void *
5992#else
5993# define lt_ptr_t char *
5994# define const
5995#endif
5996
5997/* The mapping between symbol names and symbols. */
5998const struct {
5999 const char *name;
6000 lt_ptr_t address;
6001}
6002lt_preloaded_symbols[] =
6003{
6004EOF
6005 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6006 cat <<\EOF >> conftest.$ac_ext
6007 {0, (lt_ptr_t) 0}
6008};
6009
6010#ifdef __cplusplus
6011}
6012#endif
6013EOF
6014 # Now try linking the two files.
6015 mv conftest.$ac_objext conftstm.$ac_objext
6016 lt_save_LIBS="$LIBS"
6017 lt_save_CFLAGS="$CFLAGS"
6018 LIBS="conftstm.$ac_objext"
6019 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6021 (eval $ac_link) 2>&5
6022 ac_status=$?
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6025 pipe_works=yes
6026 fi
6027 LIBS="$lt_save_LIBS"
6028 CFLAGS="$lt_save_CFLAGS"
6029 else
6030 echo "cannot find nm_test_func in $nlist" >&5
6031 fi
6032 else
6033 echo "cannot find nm_test_var in $nlist" >&5
6034 fi
6035 else
6036 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6037 fi
6038 else
6039 echo "$progname: failed program was:" >&5
6040 cat conftest.$ac_ext >&5
6041 fi
6042 rm -f conftest* conftst*
6043
6044 # Do not use the global_symbol_pipe unless it works.
6045 if test "$pipe_works" = yes; then
6046 break
6047 else
6048 lt_cv_sys_global_symbol_pipe=
6049 fi
6050done
6051
6052fi
6053
6054if test -z "$lt_cv_sys_global_symbol_pipe"; then
6055 lt_cv_sys_global_symbol_to_cdecl=
6056fi
6057if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6058 { echo "$as_me:$LINENO: result: failed" >&5
6059echo "${ECHO_T}failed" >&6; }
6060else
6061 { echo "$as_me:$LINENO: result: ok" >&5
6062echo "${ECHO_T}ok" >&6; }
6063fi
6064
6065{ echo "$as_me:$LINENO: checking for objdir" >&5
6066echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6067if test "${lt_cv_objdir+set}" = set; then
6068 echo $ECHO_N "(cached) $ECHO_C" >&6
6069else
6070 rm -f .libs 2>/dev/null
6071mkdir .libs 2>/dev/null
6072if test -d .libs; then
6073 lt_cv_objdir=.libs
6074else
6075 # MS-DOS does not allow filenames that begin with a dot.
6076 lt_cv_objdir=_libs
6077fi
6078rmdir .libs 2>/dev/null
6079fi
6080{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6081echo "${ECHO_T}$lt_cv_objdir" >&6; }
6082objdir=$lt_cv_objdir
6083
6084
6085
6086
6087
6088case $host_os in
6089aix3*)
6090 # AIX sometimes has problems with the GCC collect2 program. For some
6091 # reason, if we set the COLLECT_NAMES environment variable, the problems
6092 # vanish in a puff of smoke.
6093 if test "X${COLLECT_NAMES+set}" != Xset; then
6094 COLLECT_NAMES=
6095 export COLLECT_NAMES
6096 fi
6097 ;;
6098esac
6099
6100# Sed substitution that helps us do robust quoting. It backslashifies
6101# metacharacters that are still active within double-quoted strings.
6102Xsed='sed -e 1s/^X//'
6103sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6104
6105# Same as above, but do not quote variable references.
6106double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6107
6108# Sed substitution to delay expansion of an escaped shell variable in a
6109# double_quote_subst'ed string.
6110delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6111
6112# Sed substitution to avoid accidental globbing in evaled expressions
6113no_glob_subst='s/\*/\\\*/g'
6114
6115# Constants:
6116rm="rm -f"
6117
6118# Global variables:
6119default_ofile=libtool
6120can_build_shared=yes
6121
6122# All known linkers require a `.a' archive for static linking (except MSVC,
6123# which needs '.lib').
6124libext=a
6125ltmain="$ac_aux_dir/ltmain.sh"
6126ofile="$default_ofile"
6127with_gnu_ld="$lt_cv_prog_gnu_ld"
6128
6129if test -n "$ac_tool_prefix"; then
6130 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6131set dummy ${ac_tool_prefix}ar; ac_word=$2
6132{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6134if test "${ac_cv_prog_AR+set}" = set; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
6136else
6137 if test -n "$AR"; then
6138 ac_cv_prog_AR="$AR" # Let the user override the test.
6139else
6140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141for as_dir in $PATH
6142do
6143 IFS=$as_save_IFS
6144 test -z "$as_dir" && as_dir=.
6145 for ac_exec_ext in '' $ac_executable_extensions; do
6146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6147 ac_cv_prog_AR="${ac_tool_prefix}ar"
6148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6149 break 2
6150 fi
6151done
6152done
6153IFS=$as_save_IFS
6154
6155fi
6156fi
6157AR=$ac_cv_prog_AR
6158if test -n "$AR"; then
6159 { echo "$as_me:$LINENO: result: $AR" >&5
6160echo "${ECHO_T}$AR" >&6; }
6161else
6162 { echo "$as_me:$LINENO: result: no" >&5
6163echo "${ECHO_T}no" >&6; }
6164fi
6165
6166
6167fi
6168if test -z "$ac_cv_prog_AR"; then
6169 ac_ct_AR=$AR
6170 # Extract the first word of "ar", so it can be a program name with args.
6171set dummy ar; ac_word=$2
6172{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6174if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6175 echo $ECHO_N "(cached) $ECHO_C" >&6
6176else
6177 if test -n "$ac_ct_AR"; then
6178 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6179else
6180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181for as_dir in $PATH
6182do
6183 IFS=$as_save_IFS
6184 test -z "$as_dir" && as_dir=.
6185 for ac_exec_ext in '' $ac_executable_extensions; do
6186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6187 ac_cv_prog_ac_ct_AR="ar"
6188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6189 break 2
6190 fi
6191done
6192done
6193IFS=$as_save_IFS
6194
6195fi
6196fi
6197ac_ct_AR=$ac_cv_prog_ac_ct_AR
6198if test -n "$ac_ct_AR"; then
6199 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6200echo "${ECHO_T}$ac_ct_AR" >&6; }
6201else
6202 { echo "$as_me:$LINENO: result: no" >&5
6203echo "${ECHO_T}no" >&6; }
6204fi
6205
6206 if test "x$ac_ct_AR" = x; then
6207 AR="false"
6208 else
6209 case $cross_compiling:$ac_tool_warned in
6210yes:)
6211{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6212whose name does not start with the host triplet. If you think this
6213configuration is useful to you, please write to autoconf@gnu.org." >&5
6214echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6215whose name does not start with the host triplet. If you think this
6216configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6217ac_tool_warned=yes ;;
6218esac
6219 AR=$ac_ct_AR
6220 fi
6221else
6222 AR="$ac_cv_prog_AR"
6223fi
6224
6225if test -n "$ac_tool_prefix"; then
6226 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6227set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6228{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6230if test "${ac_cv_prog_RANLIB+set}" = set; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6232else
6233 if test -n "$RANLIB"; then
6234 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6235else
6236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237for as_dir in $PATH
6238do
6239 IFS=$as_save_IFS
6240 test -z "$as_dir" && as_dir=.
6241 for ac_exec_ext in '' $ac_executable_extensions; do
6242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6243 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6245 break 2
6246 fi
6247done
6248done
6249IFS=$as_save_IFS
6250
6251fi
6252fi
6253RANLIB=$ac_cv_prog_RANLIB
6254if test -n "$RANLIB"; then
6255 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6256echo "${ECHO_T}$RANLIB" >&6; }
6257else
6258 { echo "$as_me:$LINENO: result: no" >&5
6259echo "${ECHO_T}no" >&6; }
6260fi
6261
6262
6263fi
6264if test -z "$ac_cv_prog_RANLIB"; then
6265 ac_ct_RANLIB=$RANLIB
6266 # Extract the first word of "ranlib", so it can be a program name with args.
6267set dummy ranlib; ac_word=$2
6268{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6270if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6272else
6273 if test -n "$ac_ct_RANLIB"; then
6274 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6275else
6276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6277for as_dir in $PATH
6278do
6279 IFS=$as_save_IFS
6280 test -z "$as_dir" && as_dir=.
6281 for ac_exec_ext in '' $ac_executable_extensions; do
6282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6283 ac_cv_prog_ac_ct_RANLIB="ranlib"
6284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6285 break 2
6286 fi
6287done
6288done
6289IFS=$as_save_IFS
6290
6291fi
6292fi
6293ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6294if test -n "$ac_ct_RANLIB"; then
6295 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6296echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6297else
6298 { echo "$as_me:$LINENO: result: no" >&5
6299echo "${ECHO_T}no" >&6; }
6300fi
6301
6302 if test "x$ac_ct_RANLIB" = x; then
6303 RANLIB=":"
6304 else
6305 case $cross_compiling:$ac_tool_warned in
6306yes:)
6307{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6308whose name does not start with the host triplet. If you think this
6309configuration is useful to you, please write to autoconf@gnu.org." >&5
6310echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6311whose name does not start with the host triplet. If you think this
6312configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6313ac_tool_warned=yes ;;
6314esac
6315 RANLIB=$ac_ct_RANLIB
6316 fi
6317else
6318 RANLIB="$ac_cv_prog_RANLIB"
6319fi
6320
6321if test -n "$ac_tool_prefix"; then
6322 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6323set dummy ${ac_tool_prefix}strip; ac_word=$2
6324{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6326if test "${ac_cv_prog_STRIP+set}" = set; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6328else
6329 if test -n "$STRIP"; then
6330 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6331else
6332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333for as_dir in $PATH
6334do
6335 IFS=$as_save_IFS
6336 test -z "$as_dir" && as_dir=.
6337 for ac_exec_ext in '' $ac_executable_extensions; do
6338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6339 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6341 break 2
6342 fi
6343done
6344done
6345IFS=$as_save_IFS
6346
6347fi
6348fi
6349STRIP=$ac_cv_prog_STRIP
6350if test -n "$STRIP"; then
6351 { echo "$as_me:$LINENO: result: $STRIP" >&5
6352echo "${ECHO_T}$STRIP" >&6; }
6353else
6354 { echo "$as_me:$LINENO: result: no" >&5
6355echo "${ECHO_T}no" >&6; }
6356fi
6357
6358
6359fi
6360if test -z "$ac_cv_prog_STRIP"; then
6361 ac_ct_STRIP=$STRIP
6362 # Extract the first word of "strip", so it can be a program name with args.
6363set dummy strip; ac_word=$2
6364{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6366if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6367 echo $ECHO_N "(cached) $ECHO_C" >&6
6368else
6369 if test -n "$ac_ct_STRIP"; then
6370 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6371else
6372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373for as_dir in $PATH
6374do
6375 IFS=$as_save_IFS
6376 test -z "$as_dir" && as_dir=.
6377 for ac_exec_ext in '' $ac_executable_extensions; do
6378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6379 ac_cv_prog_ac_ct_STRIP="strip"
6380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6381 break 2
6382 fi
6383done
6384done
6385IFS=$as_save_IFS
6386
6387fi
6388fi
6389ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6390if test -n "$ac_ct_STRIP"; then
6391 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6392echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6393else
6394 { echo "$as_me:$LINENO: result: no" >&5
6395echo "${ECHO_T}no" >&6; }
6396fi
6397
6398 if test "x$ac_ct_STRIP" = x; then
6399 STRIP=":"
6400 else
6401 case $cross_compiling:$ac_tool_warned in
6402yes:)
6403{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6404whose name does not start with the host triplet. If you think this
6405configuration is useful to you, please write to autoconf@gnu.org." >&5
6406echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6407whose name does not start with the host triplet. If you think this
6408configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6409ac_tool_warned=yes ;;
6410esac
6411 STRIP=$ac_ct_STRIP
6412 fi
6413else
6414 STRIP="$ac_cv_prog_STRIP"
6415fi
6416
6417
6418old_CC="$CC"
6419old_CFLAGS="$CFLAGS"
6420
6421# Set sane defaults for various variables
6422test -z "$AR" && AR=ar
6423test -z "$AR_FLAGS" && AR_FLAGS=cru
6424test -z "$AS" && AS=as
6425test -z "$CC" && CC=cc
6426test -z "$LTCC" && LTCC=$CC
6427test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6428test -z "$DLLTOOL" && DLLTOOL=dlltool
6429test -z "$LD" && LD=ld
6430test -z "$LN_S" && LN_S="ln -s"
6431test -z "$MAGIC_CMD" && MAGIC_CMD=file
6432test -z "$NM" && NM=nm
6433test -z "$SED" && SED=sed
6434test -z "$OBJDUMP" && OBJDUMP=objdump
6435test -z "$RANLIB" && RANLIB=:
6436test -z "$STRIP" && STRIP=:
6437test -z "$ac_objext" && ac_objext=o
6438
6439# Determine commands to create old-style static archives.
6440old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6441old_postinstall_cmds='chmod 644 $oldlib'
6442old_postuninstall_cmds=
6443
6444if test -n "$RANLIB"; then
6445 case $host_os in
6446 openbsd*)
6447 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6448 ;;
6449 *)
6450 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6451 ;;
6452 esac
6453 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6454fi
6455
6456for cc_temp in $compiler""; do
6457 case $cc_temp in
6458 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6459 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6460 \-*) ;;
6461 *) break;;
6462 esac
6463done
6464cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6465
6466
6467# Only perform the check for file, if the check method requires it
6468case $deplibs_check_method in
6469file_magic*)
6470 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6471 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6472echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6473if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6474 echo $ECHO_N "(cached) $ECHO_C" >&6
6475else
6476 case $MAGIC_CMD in
6477[\\/*] | ?:[\\/]*)
6478 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6479 ;;
6480*)
6481 lt_save_MAGIC_CMD="$MAGIC_CMD"
6482 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6483 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6484 for ac_dir in $ac_dummy; do
6485 IFS="$lt_save_ifs"
6486 test -z "$ac_dir" && ac_dir=.
6487 if test -f $ac_dir/${ac_tool_prefix}file; then
6488 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6489 if test -n "$file_magic_test_file"; then
6490 case $deplibs_check_method in
6491 "file_magic "*)
6492 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6493 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6494 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6495 $EGREP "$file_magic_regex" > /dev/null; then
6496 :
6497 else
6498 cat <<EOF 1>&2
6499
6500*** Warning: the command libtool uses to detect shared libraries,
6501*** $file_magic_cmd, produces output that libtool cannot recognize.
6502*** The result is that libtool may fail to recognize shared libraries
6503*** as such. This will affect the creation of libtool libraries that
6504*** depend on shared libraries, but programs linked with such libtool
6505*** libraries will work regardless of this problem. Nevertheless, you
6506*** may want to report the problem to your system manager and/or to
6507*** bug-libtool@gnu.org
6508
6509EOF
6510 fi ;;
6511 esac
6512 fi
6513 break
6514 fi
6515 done
6516 IFS="$lt_save_ifs"
6517 MAGIC_CMD="$lt_save_MAGIC_CMD"
6518 ;;
6519esac
6520fi
6521
6522MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6523if test -n "$MAGIC_CMD"; then
6524 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6525echo "${ECHO_T}$MAGIC_CMD" >&6; }
6526else
6527 { echo "$as_me:$LINENO: result: no" >&5
6528echo "${ECHO_T}no" >&6; }
6529fi
6530
6531if test -z "$lt_cv_path_MAGIC_CMD"; then
6532 if test -n "$ac_tool_prefix"; then
6533 { echo "$as_me:$LINENO: checking for file" >&5
6534echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6535if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6536 echo $ECHO_N "(cached) $ECHO_C" >&6
6537else
6538 case $MAGIC_CMD in
6539[\\/*] | ?:[\\/]*)
6540 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6541 ;;
6542*)
6543 lt_save_MAGIC_CMD="$MAGIC_CMD"
6544 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6545 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6546 for ac_dir in $ac_dummy; do
6547 IFS="$lt_save_ifs"
6548 test -z "$ac_dir" && ac_dir=.
6549 if test -f $ac_dir/file; then
6550 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6551 if test -n "$file_magic_test_file"; then
6552 case $deplibs_check_method in
6553 "file_magic "*)
6554 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6555 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6556 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6557 $EGREP "$file_magic_regex" > /dev/null; then
6558 :
6559 else
6560 cat <<EOF 1>&2
6561
6562*** Warning: the command libtool uses to detect shared libraries,
6563*** $file_magic_cmd, produces output that libtool cannot recognize.
6564*** The result is that libtool may fail to recognize shared libraries
6565*** as such. This will affect the creation of libtool libraries that
6566*** depend on shared libraries, but programs linked with such libtool
6567*** libraries will work regardless of this problem. Nevertheless, you
6568*** may want to report the problem to your system manager and/or to
6569*** bug-libtool@gnu.org
6570
6571EOF
6572 fi ;;
6573 esac
6574 fi
6575 break
6576 fi
6577 done
6578 IFS="$lt_save_ifs"
6579 MAGIC_CMD="$lt_save_MAGIC_CMD"
6580 ;;
6581esac
6582fi
6583
6584MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6585if test -n "$MAGIC_CMD"; then
6586 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6587echo "${ECHO_T}$MAGIC_CMD" >&6; }
6588else
6589 { echo "$as_me:$LINENO: result: no" >&5
6590echo "${ECHO_T}no" >&6; }
6591fi
6592
6593 else
6594 MAGIC_CMD=:
6595 fi
6596fi
6597
6598 fi
6599 ;;
6600esac
6601
6602enable_dlopen=no
6603enable_win32_dll=yes
6604
6605# Check whether --enable-libtool-lock was given.
6606if test "${enable_libtool_lock+set}" = set; then
6607 enableval=$enable_libtool_lock;
6608fi
6609
6610test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6611
6612
6613# Check whether --with-pic was given.
6614if test "${with_pic+set}" = set; then
6615 withval=$with_pic; pic_mode="$withval"
6616else
6617 pic_mode=default
6618fi
6619
6620test -z "$pic_mode" && pic_mode=default
6621
6622# Check if we have a version mismatch between libtool.m4 and ltmain.sh.
6623#
6624# Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
6625# We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
6626# calls AC_LIBTOOL_CONFIG and creates libtool.
6627#
6628{ echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
6629echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6; }
6630if test "x$ltmain" = "x" ; then
6631 { echo "$as_me:$LINENO: result: no" >&5
6632echo "${ECHO_T}no" >&6; }
6633 { { echo "$as_me:$LINENO: error:
6634
6635*** [Gentoo] sanity check failed! ***
6636*** \$ltmain is not defined, please check the patch for consistency! ***
6637" >&5
6638echo "$as_me: error:
6639
6640*** [Gentoo] sanity check failed! ***
6641*** \$ltmain is not defined, please check the patch for consistency! ***
6642" >&2;}
6643 { (exit 1); exit 1; }; }
6644fi
6645gentoo_lt_version="1.5.22"
6646gentoo_ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' "$ltmain"`
6647if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
6648 { echo "$as_me:$LINENO: result: no" >&5
6649echo "${ECHO_T}no" >&6; }
6650 { { echo "$as_me:$LINENO: error:
6651
6652*** [Gentoo] sanity check failed! ***
6653*** libtool.m4 and ltmain.sh have a version mismatch! ***
6654*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
6655
6656Please run:
6657
6658 libtoolize --copy --force
6659
6660if appropriate, please contact the maintainer of this
6661package (or your distribution) for help.
6662" >&5
6663echo "$as_me: error:
6664
6665*** [Gentoo] sanity check failed! ***
6666*** libtool.m4 and ltmain.sh have a version mismatch! ***
6667*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
6668
6669Please run:
6670
6671 libtoolize --copy --force
6672
6673if appropriate, please contact the maintainer of this
6674package (or your distribution) for help.
6675" >&2;}
6676 { (exit 1); exit 1; }; }
6677else
6678 { echo "$as_me:$LINENO: result: yes" >&5
6679echo "${ECHO_T}yes" >&6; }
6680fi
6681
6682
6683# Use C for the default configuration in the libtool script
6684tagname=
6685lt_save_CC="$CC"
6686ac_ext=c
6687ac_cpp='$CPP $CPPFLAGS'
6688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6690ac_compiler_gnu=$ac_cv_c_compiler_gnu
6691
6692
6693# Source file extension for C test sources.
6694ac_ext=c
6695
6696# Object file extension for compiled C test sources.
6697objext=o
6698objext=$objext
6699
6700# Code to be used in simple compile tests
6701lt_simple_compile_test_code="int some_variable = 0;\n"
6702
6703# Code to be used in simple link tests
6704lt_simple_link_test_code='int main(){return(0);}\n'
6705
6706
6707# If no C compiler was specified, use CC.
6708LTCC=${LTCC-"$CC"}
6709
6710# If no C compiler flags were specified, use CFLAGS.
6711LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6712
6713# Allow CC to be a program name with arguments.
6714compiler=$CC
6715
6716
6717# save warnings/boilerplate of simple test code
6718ac_outfile=conftest.$ac_objext
6719printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6720eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6721_lt_compiler_boilerplate=`cat conftest.err`
6722$rm conftest*
6723
6724ac_outfile=conftest.$ac_objext
6725printf "$lt_simple_link_test_code" >conftest.$ac_ext
6726eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6727_lt_linker_boilerplate=`cat conftest.err`
6728$rm conftest*
6729
6730
6731
6732lt_prog_compiler_no_builtin_flag=
6733
6734if test "$GCC" = yes; then
6735 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6736
6737
6738{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6739echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6740if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
6742else
6743 lt_cv_prog_compiler_rtti_exceptions=no
6744 ac_outfile=conftest.$ac_objext
6745 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6746 lt_compiler_flag="-fno-rtti -fno-exceptions"
6747 # Insert the option either (1) after the last *FLAGS variable, or
6748 # (2) before a word containing "conftest.", or (3) at the end.
6749 # Note that $ac_compile itself does not contain backslashes and begins
6750 # with a dollar sign (not a hyphen), so the echo should work correctly.
6751 # The option is referenced via a variable to avoid confusing sed.
6752 lt_compile=`echo "$ac_compile" | $SED \
6753 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6754 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6755 -e 's:$: $lt_compiler_flag:'`
6756 (eval echo "\"\$as_me:6756: $lt_compile\"" >&5)
6757 (eval "$lt_compile" 2>conftest.err)
6758 ac_status=$?
6759 cat conftest.err >&5
6760 echo "$as_me:6760: \$? = $ac_status" >&5
6761 if (exit $ac_status) && test -s "$ac_outfile"; then
6762 # The compiler can only warn and ignore the option if not recognized
6763 # So say no if there are warnings other than the usual output.
6764 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6765 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6766 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6767 lt_cv_prog_compiler_rtti_exceptions=yes
6768 fi
6769 fi
6770 $rm conftest*
6771
6772fi
6773{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6774echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6775
6776if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6777 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6778else
6779 :
6780fi
6781
6782fi
6783
6784lt_prog_compiler_wl=
6785lt_prog_compiler_pic=
6786lt_prog_compiler_static=
6787
6788{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6789echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6790
6791 if test "$GCC" = yes; then
6792 lt_prog_compiler_wl='-Wl,'
6793 lt_prog_compiler_static='-static'
6794
6795 case $host_os in
6796 aix*)
6797 # All AIX code is PIC.
6798 if test "$host_cpu" = ia64; then
6799 # AIX 5 now supports IA64 processor
6800 lt_prog_compiler_static='-Bstatic'
6801 fi
6802 ;;
6803
6804 amigaos*)
6805 # FIXME: we need at least 68020 code to build shared libraries, but
6806 # adding the `-m68020' flag to GCC prevents building anything better,
6807 # like `-m68040'.
6808 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6809 ;;
6810
6811 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6812 # PIC is the default for these OSes.
6813 ;;
6814
6815 mingw* | pw32* | os2*)
6816 # This hack is so that the source file can tell whether it is being
6817 # built for inclusion in a dll (and should export symbols for example).
6818 lt_prog_compiler_pic='-DDLL_EXPORT'
6819 ;;
6820
6821 darwin* | rhapsody*)
6822 # PIC is the default on this platform
6823 # Common symbols not allowed in MH_DYLIB files
6824 lt_prog_compiler_pic='-fno-common'
6825 ;;
6826
6827 interix3*)
6828 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6829 # Instead, we relocate shared libraries at runtime.
6830 ;;
6831
6832 msdosdjgpp*)
6833 # Just because we use GCC doesn't mean we suddenly get shared libraries
6834 # on systems that don't support them.
6835 lt_prog_compiler_can_build_shared=no
6836 enable_shared=no
6837 ;;
6838
6839 sysv4*MP*)
6840 if test -d /usr/nec; then
6841 lt_prog_compiler_pic=-Kconform_pic
6842 fi
6843 ;;
6844
6845 hpux*)
6846 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6847 # not for PA HP-UX.
6848 case $host_cpu in
6849 hppa*64*|ia64*)
6850 # +Z the default
6851 ;;
6852 *)
6853 lt_prog_compiler_pic='-fPIC'
6854 ;;
6855 esac
6856 ;;
6857
6858 *)
6859 lt_prog_compiler_pic='-fPIC'
6860 ;;
6861 esac
6862 else
6863 # PORTME Check for flag to pass linker flags through the system compiler.
6864 case $host_os in
6865 aix*)
6866 lt_prog_compiler_wl='-Wl,'
6867 if test "$host_cpu" = ia64; then
6868 # AIX 5 now supports IA64 processor
6869 lt_prog_compiler_static='-Bstatic'
6870 else
6871 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6872 fi
6873 ;;
6874 darwin*)
6875 # PIC is the default on this platform
6876 # Common symbols not allowed in MH_DYLIB files
6877 case $cc_basename in
6878 xlc*)
6879 lt_prog_compiler_pic='-qnocommon'
6880 lt_prog_compiler_wl='-Wl,'
6881 ;;
6882 esac
6883 ;;
6884
6885 mingw* | pw32* | os2*)
6886 # This hack is so that the source file can tell whether it is being
6887 # built for inclusion in a dll (and should export symbols for example).
6888 lt_prog_compiler_pic='-DDLL_EXPORT'
6889 ;;
6890
6891 hpux9* | hpux10* | hpux11*)
6892 lt_prog_compiler_wl='-Wl,'
6893 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6894 # not for PA HP-UX.
6895 case $host_cpu in
6896 hppa*64*|ia64*)
6897 # +Z the default
6898 ;;
6899 *)
6900 lt_prog_compiler_pic='+Z'
6901 ;;
6902 esac
6903 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6904 lt_prog_compiler_static='${wl}-a ${wl}archive'
6905 ;;
6906
6907 irix5* | irix6* | nonstopux*)
6908 lt_prog_compiler_wl='-Wl,'
6909 # PIC (with -KPIC) is the default.
6910 lt_prog_compiler_static='-non_shared'
6911 ;;
6912
6913 newsos6)
6914 lt_prog_compiler_pic='-KPIC'
6915 lt_prog_compiler_static='-Bstatic'
6916 ;;
6917
6918 linux*)
6919 case $cc_basename in
6920 icc* | ecc*)
6921 lt_prog_compiler_wl='-Wl,'
6922 lt_prog_compiler_pic='-KPIC'
6923 lt_prog_compiler_static='-static'
6924 ;;
6925 pgcc* | pgf77* | pgf90* | pgf95*)
6926 # Portland Group compilers (*not* the Pentium gcc compiler,
6927 # which looks to be a dead project)
6928 lt_prog_compiler_wl='-Wl,'
6929 lt_prog_compiler_pic='-fpic'
6930 lt_prog_compiler_static='-Bstatic'
6931 ;;
6932 ccc*)
6933 lt_prog_compiler_wl='-Wl,'
6934 # All Alpha code is PIC.
6935 lt_prog_compiler_static='-non_shared'
6936 ;;
6937 esac
6938 ;;
6939
6940 osf3* | osf4* | osf5*)
6941 lt_prog_compiler_wl='-Wl,'
6942 # All OSF/1 code is PIC.
6943 lt_prog_compiler_static='-non_shared'
6944 ;;
6945
6946 solaris*)
6947 lt_prog_compiler_pic='-KPIC'
6948 lt_prog_compiler_static='-Bstatic'
6949 case $cc_basename in
6950 f77* | f90* | f95*)
6951 lt_prog_compiler_wl='-Qoption ld ';;
6952 *)
6953 lt_prog_compiler_wl='-Wl,';;
6954 esac
6955 ;;
6956
6957 sunos4*)
6958 lt_prog_compiler_wl='-Qoption ld '
6959 lt_prog_compiler_pic='-PIC'
6960 lt_prog_compiler_static='-Bstatic'
6961 ;;
6962
6963 sysv4 | sysv4.2uw2* | sysv4.3*)
6964 lt_prog_compiler_wl='-Wl,'
6965 lt_prog_compiler_pic='-KPIC'
6966 lt_prog_compiler_static='-Bstatic'
6967 ;;
6968
6969 sysv4*MP*)
6970 if test -d /usr/nec ;then
6971 lt_prog_compiler_pic='-Kconform_pic'
6972 lt_prog_compiler_static='-Bstatic'
6973 fi
6974 ;;
6975
6976 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6977 lt_prog_compiler_wl='-Wl,'
6978 lt_prog_compiler_pic='-KPIC'
6979 lt_prog_compiler_static='-Bstatic'
6980 ;;
6981
6982 unicos*)
6983 lt_prog_compiler_wl='-Wl,'
6984 lt_prog_compiler_can_build_shared=no
6985 ;;
6986
6987 uts4*)
6988 lt_prog_compiler_pic='-pic'
6989 lt_prog_compiler_static='-Bstatic'
6990 ;;
6991
6992 *)
6993 lt_prog_compiler_can_build_shared=no
6994 ;;
6995 esac
6996 fi
6997
6998{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6999echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7000
7001#
7002# Check to make sure the PIC flag actually works.
7003#
7004if test -n "$lt_prog_compiler_pic"; then
7005
7006{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7007echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7008if test "${lt_prog_compiler_pic_works+set}" = set; then
7009 echo $ECHO_N "(cached) $ECHO_C" >&6
7010else
7011 lt_prog_compiler_pic_works=no
7012 ac_outfile=conftest.$ac_objext
7013 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7014 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7015 # Insert the option either (1) after the last *FLAGS variable, or
7016 # (2) before a word containing "conftest.", or (3) at the end.
7017 # Note that $ac_compile itself does not contain backslashes and begins
7018 # with a dollar sign (not a hyphen), so the echo should work correctly.
7019 # The option is referenced via a variable to avoid confusing sed.
7020 lt_compile=`echo "$ac_compile" | $SED \
7021 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7022 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7023 -e 's:$: $lt_compiler_flag:'`
7024 (eval echo "\"\$as_me:7024: $lt_compile\"" >&5)
7025 (eval "$lt_compile" 2>conftest.err)
7026 ac_status=$?
7027 cat conftest.err >&5
7028 echo "$as_me:7028: \$? = $ac_status" >&5
7029 if (exit $ac_status) && test -s "$ac_outfile"; then
7030 # The compiler can only warn and ignore the option if not recognized
7031 # So say no if there are warnings other than the usual output.
7032 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7033 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7034 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7035 lt_prog_compiler_pic_works=yes
7036 fi
7037 fi
7038 $rm conftest*
7039
7040fi
7041{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7042echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7043
7044if test x"$lt_prog_compiler_pic_works" = xyes; then
7045 case $lt_prog_compiler_pic in
7046 "" | " "*) ;;
7047 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7048 esac
7049else
7050 lt_prog_compiler_pic=
7051 lt_prog_compiler_can_build_shared=no
7052fi
7053
7054fi
7055case $host_os in
7056 # For platforms which do not support PIC, -DPIC is meaningless:
7057 *djgpp*)
7058 lt_prog_compiler_pic=
7059 ;;
7060 *)
7061 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7062 ;;
7063esac
7064
7065#
7066# Check to make sure the static flag actually works.
7067#
7068wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7069{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7070echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7071if test "${lt_prog_compiler_static_works+set}" = set; then
7072 echo $ECHO_N "(cached) $ECHO_C" >&6
7073else
7074 lt_prog_compiler_static_works=no
7075 save_LDFLAGS="$LDFLAGS"
7076 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7077 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7078 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7079 # The linker can only warn and ignore the option if not recognized
7080 # So say no if there are warnings
7081 if test -s conftest.err; then
7082 # Append any errors to the config.log.
7083 cat conftest.err 1>&5
7084 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7085 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7086 if diff conftest.exp conftest.er2 >/dev/null; then
7087 lt_prog_compiler_static_works=yes
7088 fi
7089 else
7090 lt_prog_compiler_static_works=yes
7091 fi
7092 fi
7093 $rm conftest*
7094 LDFLAGS="$save_LDFLAGS"
7095
7096fi
7097{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7098echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7099
7100if test x"$lt_prog_compiler_static_works" = xyes; then
7101 :
7102else
7103 lt_prog_compiler_static=
7104fi
7105
7106
7107{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7108echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7109if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
7111else
7112 lt_cv_prog_compiler_c_o=no
7113 $rm -r conftest 2>/dev/null
7114 mkdir conftest
7115 cd conftest
7116 mkdir out
7117 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7118
7119 lt_compiler_flag="-o out/conftest2.$ac_objext"
7120 # Insert the option either (1) after the last *FLAGS variable, or
7121 # (2) before a word containing "conftest.", or (3) at the end.
7122 # Note that $ac_compile itself does not contain backslashes and begins
7123 # with a dollar sign (not a hyphen), so the echo should work correctly.
7124 lt_compile=`echo "$ac_compile" | $SED \
7125 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7126 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7127 -e 's:$: $lt_compiler_flag:'`
7128 (eval echo "\"\$as_me:7128: $lt_compile\"" >&5)
7129 (eval "$lt_compile" 2>out/conftest.err)
7130 ac_status=$?
7131 cat out/conftest.err >&5
7132 echo "$as_me:7132: \$? = $ac_status" >&5
7133 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7134 then
7135 # The compiler can only warn and ignore the option if not recognized
7136 # So say no if there are warnings
7137 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7138 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7139 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7140 lt_cv_prog_compiler_c_o=yes
7141 fi
7142 fi
7143 chmod u+w . 2>&5
7144 $rm conftest*
7145 # SGI C++ compiler will create directory out/ii_files/ for
7146 # template instantiation
7147 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7148 $rm out/* && rmdir out
7149 cd ..
7150 rmdir conftest
7151 $rm conftest*
7152
7153fi
7154{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7155echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7156
7157
7158hard_links="nottested"
7159if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7160 # do not overwrite the value of need_locks provided by the user
7161 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7162echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7163 hard_links=yes
7164 $rm conftest*
7165 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7166 touch conftest.a
7167 ln conftest.a conftest.b 2>&5 || hard_links=no
7168 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7169 { echo "$as_me:$LINENO: result: $hard_links" >&5
7170echo "${ECHO_T}$hard_links" >&6; }
7171 if test "$hard_links" = no; then
7172 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7173echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7174 need_locks=warn
7175 fi
7176else
7177 need_locks=no
7178fi
7179
7180{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7181echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7182
7183 runpath_var=
7184 allow_undefined_flag=
7185 enable_shared_with_static_runtimes=no
7186 archive_cmds=
7187 archive_expsym_cmds=
7188 old_archive_From_new_cmds=
7189 old_archive_from_expsyms_cmds=
7190 export_dynamic_flag_spec=
7191 whole_archive_flag_spec=
7192 thread_safe_flag_spec=
7193 hardcode_libdir_flag_spec=
7194 hardcode_libdir_flag_spec_ld=
7195 hardcode_libdir_separator=
7196 hardcode_direct=no
7197 hardcode_minus_L=no
7198 hardcode_shlibpath_var=unsupported
7199 link_all_deplibs=unknown
7200 hardcode_automatic=no
7201 module_cmds=
7202 module_expsym_cmds=
7203 always_export_symbols=no
7204 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7205 # include_expsyms should be a list of space-separated symbols to be *always*
7206 # included in the symbol list
7207 include_expsyms=
7208 # exclude_expsyms can be an extended regexp of symbols to exclude
7209 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7210 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7211 # as well as any symbol that contains `d'.
7212 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7213 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7214 # platforms (ab)use it in PIC code, but their linkers get confused if
7215 # the symbol is explicitly referenced. Since portable code cannot
7216 # rely on this symbol name, it's probably fine to never include it in
7217 # preloaded symbol tables.
7218 extract_expsyms_cmds=
7219 # Just being paranoid about ensuring that cc_basename is set.
7220 for cc_temp in $compiler""; do
7221 case $cc_temp in
7222 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7223 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7224 \-*) ;;
7225 *) break;;
7226 esac
7227done
7228cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7229
7230 case $host_os in
7231 cygwin* | mingw* | pw32*)
7232 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7233 # When not using gcc, we currently assume that we are using
7234 # Microsoft Visual C++.
7235 if test "$GCC" != yes; then
7236 with_gnu_ld=no
7237 fi
7238 ;;
7239 interix*)
7240 # we just hope/assume this is gcc and not c89 (= MSVC++)
7241 with_gnu_ld=yes
7242 ;;
7243 openbsd*)
7244 with_gnu_ld=no
7245 ;;
7246 esac
7247
7248 ld_shlibs=yes
7249 if test "$with_gnu_ld" = yes; then
7250 # If archive_cmds runs LD, not CC, wlarc should be empty
7251 wlarc='${wl}'
7252
7253 # Set some defaults for GNU ld with shared library support. These
7254 # are reset later if shared libraries are not supported. Putting them
7255 # here allows them to be overridden if necessary.
7256 runpath_var=LD_RUN_PATH
7257 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7258 export_dynamic_flag_spec='${wl}--export-dynamic'
7259 # ancient GNU ld didn't support --whole-archive et. al.
7260 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7261 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7262 else
7263 whole_archive_flag_spec=
7264 fi
7265 supports_anon_versioning=no
7266 case `$LD -v 2>/dev/null` in
7267 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7268 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7269 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7270 *\ 2.11.*) ;; # other 2.11 versions
7271 *) supports_anon_versioning=yes ;;
7272 esac
7273
7274 # See if GNU ld supports shared libraries.
7275 case $host_os in
7276 aix3* | aix4* | aix5*)
7277 # On AIX/PPC, the GNU linker is very broken
7278 if test "$host_cpu" != ia64; then
7279 ld_shlibs=no
7280 cat <<EOF 1>&2
7281
7282*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7283*** to be unable to reliably create shared libraries on AIX.
7284*** Therefore, libtool is disabling shared libraries support. If you
7285*** really care for shared libraries, you may want to modify your PATH
7286*** so that a non-GNU linker is found, and then restart.
7287
7288EOF
7289 fi
7290 ;;
7291
7292 amigaos*)
7293 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)'
7294 hardcode_libdir_flag_spec='-L$libdir'
7295 hardcode_minus_L=yes
7296
7297 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7298 # that the semantics of dynamic libraries on AmigaOS, at least up
7299 # to version 4, is to share data among multiple programs linked
7300 # with the same dynamic library. Since this doesn't match the
7301 # behavior of shared libraries on other platforms, we can't use
7302 # them.
7303 ld_shlibs=no
7304 ;;
7305
7306 beos*)
7307 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7308 allow_undefined_flag=unsupported
7309 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7310 # support --undefined. This deserves some investigation. FIXME
7311 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7312 else
7313 ld_shlibs=no
7314 fi
7315 ;;
7316
7317 cygwin* | mingw* | pw32*)
7318 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7319 # as there is no search path for DLLs.
7320 hardcode_libdir_flag_spec='-L$libdir'
7321 allow_undefined_flag=unsupported
7322 always_export_symbols=no
7323 enable_shared_with_static_runtimes=yes
7324 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7325
7326 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7327 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7328 # If the export-symbols file already is a .def file (1st line
7329 # is EXPORTS), use it as is; otherwise, prepend...
7330 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7331 cp $export_symbols $output_objdir/$soname.def;
7332 else
7333 echo EXPORTS > $output_objdir/$soname.def;
7334 cat $export_symbols >> $output_objdir/$soname.def;
7335 fi~
7336 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7337 else
7338 ld_shlibs=no
7339 fi
7340 ;;
7341
7342 interix3*)
7343 hardcode_direct=no
7344 hardcode_shlibpath_var=no
7345 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7346 export_dynamic_flag_spec='${wl}-E'
7347 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7348 # Instead, shared libraries are loaded at an image base (0x10000000 by
7349 # default) and relocated if they conflict, which is a slow very memory
7350 # consuming and fragmenting process. To avoid this, we pick a random,
7351 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7352 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7353 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7354 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'
7355 ;;
7356
7357 linux*)
7358 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7359 tmp_addflag=
7360 case $cc_basename,$host_cpu in
7361 pgcc*) # Portland Group C compiler
7362 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'
7363 tmp_addflag=' $pic_flag'
7364 ;;
7365 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7366 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'
7367 tmp_addflag=' $pic_flag -Mnomain' ;;
7368 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7369 tmp_addflag=' -i_dynamic' ;;
7370 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7371 tmp_addflag=' -i_dynamic -nofor_main' ;;
7372 ifc* | ifort*) # Intel Fortran compiler
7373 tmp_addflag=' -nofor_main' ;;
7374 esac
7375 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7376
7377 if test $supports_anon_versioning = yes; then
7378 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7379 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7380 $echo "local: *; };" >> $output_objdir/$libname.ver~
7381 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7382 fi
7383 else
7384 ld_shlibs=no
7385 fi
7386 ;;
7387
7388 netbsd*)
7389 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7390 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7391 wlarc=
7392 else
7393 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7394 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7395 fi
7396 ;;
7397
7398 solaris*)
7399 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7400 ld_shlibs=no
7401 cat <<EOF 1>&2
7402
7403*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7404*** create shared libraries on Solaris systems. Therefore, libtool
7405*** is disabling shared libraries support. We urge you to upgrade GNU
7406*** binutils to release 2.9.1 or newer. Another option is to modify
7407*** your PATH or compiler configuration so that the native linker is
7408*** used, and then restart.
7409
7410EOF
7411 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7412 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7413 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7414 else
7415 ld_shlibs=no
7416 fi
7417 ;;
7418
7419 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7420 case `$LD -v 2>&1` in
7421 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7422 ld_shlibs=no
7423 cat <<_LT_EOF 1>&2
7424
7425*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7426*** reliably create shared libraries on SCO systems. Therefore, libtool
7427*** is disabling shared libraries support. We urge you to upgrade GNU
7428*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7429*** your PATH or compiler configuration so that the native linker is
7430*** used, and then restart.
7431
7432_LT_EOF
7433 ;;
7434 *)
7435 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7436 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7437 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7438 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7439 else
7440 ld_shlibs=no
7441 fi
7442 ;;
7443 esac
7444 ;;
7445
7446 sunos4*)
7447 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7448 wlarc=
7449 hardcode_direct=yes
7450 hardcode_shlibpath_var=no
7451 ;;
7452
7453 *)
7454 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7455 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7456 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7457 else
7458 ld_shlibs=no
7459 fi
7460 ;;
7461 esac
7462
7463 if test "$ld_shlibs" = no; then
7464 runpath_var=
7465 hardcode_libdir_flag_spec=
7466 export_dynamic_flag_spec=
7467 whole_archive_flag_spec=
7468 fi
7469 else
7470 # PORTME fill in a description of your system's linker (not GNU ld)
7471 case $host_os in
7472 aix3*)
7473 allow_undefined_flag=unsupported
7474 always_export_symbols=yes
7475 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'
7476 # Note: this linker hardcodes the directories in LIBPATH if there
7477 # are no directories specified by -L.
7478 hardcode_minus_L=yes
7479 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7480 # Neither direct hardcoding nor static linking is supported with a
7481 # broken collect2.
7482 hardcode_direct=unsupported
7483 fi
7484 ;;
7485
7486 aix4* | aix5*)
7487 if test "$host_cpu" = ia64; then
7488 # On IA64, the linker does run time linking by default, so we don't
7489 # have to do anything special.
7490 aix_use_runtimelinking=no
7491 exp_sym_flag='-Bexport'
7492 no_entry_flag=""
7493 else
7494 # If we're using GNU nm, then we don't want the "-C" option.
7495 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7496 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7497 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'
7498 else
7499 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'
7500 fi
7501 aix_use_runtimelinking=no
7502
7503 # Test if we are trying to use run time linking or normal
7504 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7505 # need to do runtime linking.
7506 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7507 for ld_flag in $LDFLAGS; do
7508 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7509 aix_use_runtimelinking=yes
7510 break
7511 fi
7512 done
7513 ;;
7514 esac
7515
7516 exp_sym_flag='-bexport'
7517 no_entry_flag='-bnoentry'
7518 fi
7519
7520 # When large executables or shared objects are built, AIX ld can
7521 # have problems creating the table of contents. If linking a library
7522 # or program results in "error TOC overflow" add -mminimal-toc to
7523 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7524 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7525
7526 archive_cmds=''
7527 hardcode_direct=yes
7528 hardcode_libdir_separator=':'
7529 link_all_deplibs=yes
7530
7531 if test "$GCC" = yes; then
7532 case $host_os in aix4.[012]|aix4.[012].*)
7533 # We only want to do this on AIX 4.2 and lower, the check
7534 # below for broken collect2 doesn't work under 4.3+
7535 collect2name=`${CC} -print-prog-name=collect2`
7536 if test -f "$collect2name" && \
7537 strings "$collect2name" | grep resolve_lib_name >/dev/null
7538 then
7539 # We have reworked collect2
7540 hardcode_direct=yes
7541 else
7542 # We have old collect2
7543 hardcode_direct=unsupported
7544 # It fails to find uninstalled libraries when the uninstalled
7545 # path is not listed in the libpath. Setting hardcode_minus_L
7546 # to unsupported forces relinking
7547 hardcode_minus_L=yes
7548 hardcode_libdir_flag_spec='-L$libdir'
7549 hardcode_libdir_separator=
7550 fi
7551 ;;
7552 esac
7553 shared_flag='-shared'
7554 if test "$aix_use_runtimelinking" = yes; then
7555 shared_flag="$shared_flag "'${wl}-G'
7556 fi
7557 else
7558 # not using gcc
7559 if test "$host_cpu" = ia64; then
7560 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7561 # chokes on -Wl,-G. The following line is correct:
7562 shared_flag='-G'
7563 else
7564 if test "$aix_use_runtimelinking" = yes; then
7565 shared_flag='${wl}-G'
7566 else
7567 shared_flag='${wl}-bM:SRE'
7568 fi
7569 fi
7570 fi
7571
7572 # It seems that -bexpall does not export symbols beginning with
7573 # underscore (_), so it is better to generate a list of symbols to export.
7574 always_export_symbols=yes
7575 if test "$aix_use_runtimelinking" = yes; then
7576 # Warning - without using the other runtime loading flags (-brtl),
7577 # -berok will link without error, but may produce a broken library.
7578 allow_undefined_flag='-berok'
7579 # Determine the default libpath from the value encoded in an empty executable.
7580 cat >conftest.$ac_ext <<_ACEOF
7581/* confdefs.h. */
7582_ACEOF
7583cat confdefs.h >>conftest.$ac_ext
7584cat >>conftest.$ac_ext <<_ACEOF
7585/* end confdefs.h. */
7586
7587int
7588main ()
7589{
7590
7591 ;
7592 return 0;
7593}
7594_ACEOF
7595rm -f conftest.$ac_objext conftest$ac_exeext
7596if { (ac_try="$ac_link"
7597case "(($ac_try" in
7598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7599 *) ac_try_echo=$ac_try;;
7600esac
7601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7602 (eval "$ac_link") 2>conftest.er1
7603 ac_status=$?
7604 grep -v '^ *+' conftest.er1 >conftest.err
7605 rm -f conftest.er1
7606 cat conftest.err >&5
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); } && {
7609 test -z "$ac_c_werror_flag" ||
7610 test ! -s conftest.err
7611 } && test -s conftest$ac_exeext &&
7612 $as_test_x conftest$ac_exeext; then
7613
7614aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7615}'`
7616# Check for a 64-bit object if we didn't find anything.
7617if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7618}'`; fi
7619else
7620 echo "$as_me: failed program was:" >&5
7621sed 's/^/| /' conftest.$ac_ext >&5
7622
7623
7624fi
7625
7626rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7627 conftest$ac_exeext conftest.$ac_ext
7628if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7629
7630 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7631 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7632 else
7633 if test "$host_cpu" = ia64; then
7634 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7635 allow_undefined_flag="-z nodefs"
7636 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"
7637 else
7638 # Determine the default libpath from the value encoded in an empty executable.
7639 cat >conftest.$ac_ext <<_ACEOF
7640/* confdefs.h. */
7641_ACEOF
7642cat confdefs.h >>conftest.$ac_ext
7643cat >>conftest.$ac_ext <<_ACEOF
7644/* end confdefs.h. */
7645
7646int
7647main ()
7648{
7649
7650 ;
7651 return 0;
7652}
7653_ACEOF
7654rm -f conftest.$ac_objext conftest$ac_exeext
7655if { (ac_try="$ac_link"
7656case "(($ac_try" in
7657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7658 *) ac_try_echo=$ac_try;;
7659esac
7660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7661 (eval "$ac_link") 2>conftest.er1
7662 ac_status=$?
7663 grep -v '^ *+' conftest.er1 >conftest.err
7664 rm -f conftest.er1
7665 cat conftest.err >&5
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); } && {
7668 test -z "$ac_c_werror_flag" ||
7669 test ! -s conftest.err
7670 } && test -s conftest$ac_exeext &&
7671 $as_test_x conftest$ac_exeext; then
7672
7673aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7674}'`
7675# Check for a 64-bit object if we didn't find anything.
7676if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7677}'`; fi
7678else
7679 echo "$as_me: failed program was:" >&5
7680sed 's/^/| /' conftest.$ac_ext >&5
7681
7682
7683fi
7684
7685rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7686 conftest$ac_exeext conftest.$ac_ext
7687if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7688
7689 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7690 # Warning - without using the other run time loading flags,
7691 # -berok will link without error, but may produce a broken library.
7692 no_undefined_flag=' ${wl}-bernotok'
7693 allow_undefined_flag=' ${wl}-berok'
7694 # Exported symbols can be pulled into shared objects from archives
7695 whole_archive_flag_spec='$convenience'
7696 archive_cmds_need_lc=yes
7697 # This is similar to how AIX traditionally builds its shared libraries.
7698 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'
7699 fi
7700 fi
7701 ;;
7702
7703 amigaos*)
7704 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)'
7705 hardcode_libdir_flag_spec='-L$libdir'
7706 hardcode_minus_L=yes
7707 # see comment about different semantics on the GNU ld section
7708 ld_shlibs=no
7709 ;;
7710
7711 bsdi[45]*)
7712 export_dynamic_flag_spec=-rdynamic
7713 ;;
7714
7715 cygwin* | mingw* | pw32*)
7716 # When not using gcc, we currently assume that we are using
7717 # Microsoft Visual C++.
7718 # hardcode_libdir_flag_spec is actually meaningless, as there is
7719 # no search path for DLLs.
7720 hardcode_libdir_flag_spec=' '
7721 allow_undefined_flag=unsupported
7722 # Tell ltmain to make .lib files, not .a files.
7723 libext=lib
7724 # Tell ltmain to make .dll files, not .so files.
7725 shrext_cmds=".dll"
7726 # FIXME: Setting linknames here is a bad hack.
7727 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7728 # The linker will automatically build a .lib file if we build a DLL.
7729 old_archive_From_new_cmds='true'
7730 # FIXME: Should let the user specify the lib program.
7731 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7732 fix_srcfile_path='`cygpath -w "$srcfile"`'
7733 enable_shared_with_static_runtimes=yes
7734 ;;
7735
7736 darwin* | rhapsody*)
7737 case $host_os in
7738 rhapsody* | darwin1.[012])
7739 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7740 ;;
7741 *) # Darwin 1.3 on
7742 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7743 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7744 else
7745 case ${MACOSX_DEPLOYMENT_TARGET} in
7746 10.[012])
7747 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7748 ;;
7749 10.*)
7750 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7751 ;;
7752 esac
7753 fi
7754 ;;
7755 esac
7756 archive_cmds_need_lc=no
7757 hardcode_direct=no
7758 hardcode_automatic=yes
7759 hardcode_shlibpath_var=unsupported
7760 whole_archive_flag_spec=''
7761 link_all_deplibs=yes
7762 if test "$GCC" = yes ; then
7763 output_verbose_link_cmd='echo'
7764 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7765 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7766 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7767 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7768 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7769 else
7770 case $cc_basename in
7771 xlc*)
7772 output_verbose_link_cmd='echo'
7773 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7774 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7775 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7776 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7777 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7778 ;;
7779 *)
7780 ld_shlibs=no
7781 ;;
7782 esac
7783 fi
7784 ;;
7785
7786 dgux*)
7787 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7788 hardcode_libdir_flag_spec='-L$libdir'
7789 hardcode_shlibpath_var=no
7790 ;;
7791
7792 freebsd1*)
7793 ld_shlibs=no
7794 ;;
7795
7796 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7797 # support. Future versions do this automatically, but an explicit c++rt0.o
7798 # does not break anything, and helps significantly (at the cost of a little
7799 # extra space).
7800 freebsd2.2*)
7801 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7802 hardcode_libdir_flag_spec='-R$libdir'
7803 hardcode_direct=yes
7804 hardcode_shlibpath_var=no
7805 ;;
7806
7807 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7808 freebsd2*)
7809 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7810 hardcode_direct=yes
7811 hardcode_minus_L=yes
7812 hardcode_shlibpath_var=no
7813 ;;
7814
7815 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7816 freebsd* | kfreebsd*-gnu | dragonfly*)
7817 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7818 hardcode_libdir_flag_spec='-R$libdir'
7819 hardcode_direct=yes
7820 hardcode_shlibpath_var=no
7821 ;;
7822
7823 hpux9*)
7824 if test "$GCC" = yes; then
7825 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'
7826 else
7827 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'
7828 fi
7829 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7830 hardcode_libdir_separator=:
7831 hardcode_direct=yes
7832
7833 # hardcode_minus_L: Not really in the search PATH,
7834 # but as the default location of the library.
7835 hardcode_minus_L=yes
7836 export_dynamic_flag_spec='${wl}-E'
7837 ;;
7838
7839 hpux10*)
7840 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7841 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7842 else
7843 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7844 fi
7845 if test "$with_gnu_ld" = no; then
7846 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7847 hardcode_libdir_separator=:
7848
7849 hardcode_direct=yes
7850 export_dynamic_flag_spec='${wl}-E'
7851
7852 # hardcode_minus_L: Not really in the search PATH,
7853 # but as the default location of the library.
7854 hardcode_minus_L=yes
7855 fi
7856 ;;
7857
7858 hpux11*)
7859 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7860 case $host_cpu in
7861 hppa*64*)
7862 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7863 ;;
7864 ia64*)
7865 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7866 ;;
7867 *)
7868 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7869 ;;
7870 esac
7871 else
7872 case $host_cpu in
7873 hppa*64*)
7874 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7875 ;;
7876 ia64*)
7877 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7878 ;;
7879 *)
7880 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7881 ;;
7882 esac
7883 fi
7884 if test "$with_gnu_ld" = no; then
7885 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7886 hardcode_libdir_separator=:
7887
7888 case $host_cpu in
7889 hppa*64*|ia64*)
7890 hardcode_libdir_flag_spec_ld='+b $libdir'
7891 hardcode_direct=no
7892 hardcode_shlibpath_var=no
7893 ;;
7894 *)
7895 hardcode_direct=yes
7896 export_dynamic_flag_spec='${wl}-E'
7897
7898 # hardcode_minus_L: Not really in the search PATH,
7899 # but as the default location of the library.
7900 hardcode_minus_L=yes
7901 ;;
7902 esac
7903 fi
7904 ;;
7905
7906 irix5* | irix6* | nonstopux*)
7907 if test "$GCC" = yes; then
7908 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7909 else
7910 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7911 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7912 fi
7913 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7914 hardcode_libdir_separator=:
7915 link_all_deplibs=yes
7916 ;;
7917
7918 netbsd*)
7919 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7920 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7921 else
7922 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7923 fi
7924 hardcode_libdir_flag_spec='-R$libdir'
7925 hardcode_direct=yes
7926 hardcode_shlibpath_var=no
7927 ;;
7928
7929 newsos6)
7930 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7931 hardcode_direct=yes
7932 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7933 hardcode_libdir_separator=:
7934 hardcode_shlibpath_var=no
7935 ;;
7936
7937 openbsd*)
7938 hardcode_direct=yes
7939 hardcode_shlibpath_var=no
7940 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7941 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7942 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7943 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7944 export_dynamic_flag_spec='${wl}-E'
7945 else
7946 case $host_os in
7947 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7948 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7949 hardcode_libdir_flag_spec='-R$libdir'
7950 ;;
7951 *)
7952 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7953 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7954 ;;
7955 esac
7956 fi
7957 ;;
7958
7959 os2*)
7960 hardcode_libdir_flag_spec='-L$libdir'
7961 hardcode_minus_L=yes
7962 allow_undefined_flag=unsupported
7963 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'
7964 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7965 ;;
7966
7967 osf3*)
7968 if test "$GCC" = yes; then
7969 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7970 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7971 else
7972 allow_undefined_flag=' -expect_unresolved \*'
7973 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7974 fi
7975 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7976 hardcode_libdir_separator=:
7977 ;;
7978
7979 osf4* | osf5*) # as osf3* with the addition of -msym flag
7980 if test "$GCC" = yes; then
7981 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7982 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7983 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7984 else
7985 allow_undefined_flag=' -expect_unresolved \*'
7986 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7987 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7988 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7989
7990 # Both c and cxx compiler support -rpath directly
7991 hardcode_libdir_flag_spec='-rpath $libdir'
7992 fi
7993 hardcode_libdir_separator=:
7994 ;;
7995
7996 solaris*)
7997 no_undefined_flag=' -z text'
7998 if test "$GCC" = yes; then
7999 wlarc='${wl}'
8000 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8001 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8002 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8003 else
8004 wlarc=''
8005 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8006 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8007 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8008 fi
8009 hardcode_libdir_flag_spec='-R$libdir'
8010 hardcode_shlibpath_var=no
8011 case $host_os in
8012 solaris2.[0-5] | solaris2.[0-5].*) ;;
8013 *)
8014 # The compiler driver will combine linker options so we
8015 # cannot just pass the convience library names through
8016 # without $wl, iff we do not link with $LD.
8017 # Luckily, gcc supports the same syntax we need for Sun Studio.
8018 # Supported since Solaris 2.6 (maybe 2.5.1?)
8019 case $wlarc in
8020 '')
8021 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8022 *)
8023 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8024 esac ;;
8025 esac
8026 link_all_deplibs=yes
8027 ;;
8028
8029 sunos4*)
8030 if test "x$host_vendor" = xsequent; then
8031 # Use $CC to link under sequent, because it throws in some extra .o
8032 # files that make .init and .fini sections work.
8033 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8034 else
8035 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8036 fi
8037 hardcode_libdir_flag_spec='-L$libdir'
8038 hardcode_direct=yes
8039 hardcode_minus_L=yes
8040 hardcode_shlibpath_var=no
8041 ;;
8042
8043 sysv4)
8044 case $host_vendor in
8045 sni)
8046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8047 hardcode_direct=yes # is this really true???
8048 ;;
8049 siemens)
8050 ## LD is ld it makes a PLAMLIB
8051 ## CC just makes a GrossModule.
8052 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8053 reload_cmds='$CC -r -o $output$reload_objs'
8054 hardcode_direct=no
8055 ;;
8056 motorola)
8057 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8058 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8059 ;;
8060 esac
8061 runpath_var='LD_RUN_PATH'
8062 hardcode_shlibpath_var=no
8063 ;;
8064
8065 sysv4.3*)
8066 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8067 hardcode_shlibpath_var=no
8068 export_dynamic_flag_spec='-Bexport'
8069 ;;
8070
8071 sysv4*MP*)
8072 if test -d /usr/nec; then
8073 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8074 hardcode_shlibpath_var=no
8075 runpath_var=LD_RUN_PATH
8076 hardcode_runpath_var=yes
8077 ld_shlibs=yes
8078 fi
8079 ;;
8080
8081 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8082 no_undefined_flag='${wl}-z,text'
8083 archive_cmds_need_lc=no
8084 hardcode_shlibpath_var=no
8085 runpath_var='LD_RUN_PATH'
8086
8087 if test "$GCC" = yes; then
8088 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8089 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8090 else
8091 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8092 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8093 fi
8094 ;;
8095
8096 sysv5* | sco3.2v5* | sco5v6*)
8097 # Note: We can NOT use -z defs as we might desire, because we do not
8098 # link with -lc, and that would cause any symbols used from libc to
8099 # always be unresolved, which means just about no library would
8100 # ever link correctly. If we're not using GNU ld we use -z text
8101 # though, which does catch some bad symbols but isn't as heavy-handed
8102 # as -z defs.
8103 no_undefined_flag='${wl}-z,text'
8104 allow_undefined_flag='${wl}-z,nodefs'
8105 archive_cmds_need_lc=no
8106 hardcode_shlibpath_var=no
8107 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8108 hardcode_libdir_separator=':'
8109 link_all_deplibs=yes
8110 export_dynamic_flag_spec='${wl}-Bexport'
8111 runpath_var='LD_RUN_PATH'
8112
8113 if test "$GCC" = yes; then
8114 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8115 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8116 else
8117 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8118 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8119 fi
8120 ;;
8121
8122 uts4*)
8123 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8124 hardcode_libdir_flag_spec='-L$libdir'
8125 hardcode_shlibpath_var=no
8126 ;;
8127
8128 *)
8129 ld_shlibs=no
8130 ;;
8131 esac
8132 fi
8133
8134{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8135echo "${ECHO_T}$ld_shlibs" >&6; }
8136test "$ld_shlibs" = no && can_build_shared=no
8137
8138#
8139# Do we need to explicitly link libc?
8140#
8141case "x$archive_cmds_need_lc" in
8142x|xyes)
8143 # Assume -lc should be added
8144 archive_cmds_need_lc=yes
8145
8146 if test "$enable_shared" = yes && test "$GCC" = yes; then
8147 case $archive_cmds in
8148 *'~'*)
8149 # FIXME: we may have to deal with multi-command sequences.
8150 ;;
8151 '$CC '*)
8152 # Test whether the compiler implicitly links with -lc since on some
8153 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8154 # to ld, don't add -lc before -lgcc.
8155 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8156echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8157 $rm conftest*
8158 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8159
8160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8161 (eval $ac_compile) 2>&5
8162 ac_status=$?
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); } 2>conftest.err; then
8165 soname=conftest
8166 lib=conftest
8167 libobjs=conftest.$ac_objext
8168 deplibs=
8169 wl=$lt_prog_compiler_wl
8170 pic_flag=$lt_prog_compiler_pic
8171 compiler_flags=-v
8172 linker_flags=-v
8173 verstring=
8174 output_objdir=.
8175 libname=conftest
8176 lt_save_allow_undefined_flag=$allow_undefined_flag
8177 allow_undefined_flag=
8178 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8179 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8180 ac_status=$?
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); }
8183 then
8184 archive_cmds_need_lc=no
8185 else
8186 archive_cmds_need_lc=yes
8187 fi
8188 allow_undefined_flag=$lt_save_allow_undefined_flag
8189 else
8190 cat conftest.err 1>&5
8191 fi
8192 $rm conftest*
8193 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8194echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8195 ;;
8196 esac
8197 fi
8198 ;;
8199esac
8200
8201{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8202echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8203library_names_spec=
8204libname_spec='lib$name'
8205soname_spec=
8206shrext_cmds=".so"
8207postinstall_cmds=
8208postuninstall_cmds=
8209finish_cmds=
8210finish_eval=
8211shlibpath_var=
8212shlibpath_overrides_runpath=unknown
8213version_type=none
8214dynamic_linker="$host_os ld.so"
8215sys_lib_dlsearch_path_spec="/lib /usr/lib"
8216if test "$GCC" = yes; then
8217 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8218 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8219 # if the path contains ";" then we assume it to be the separator
8220 # otherwise default to the standard path separator (i.e. ":") - it is
8221 # assumed that no part of a normal pathname contains ";" but that should
8222 # okay in the real world where ";" in dirpaths is itself problematic.
8223 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8224 else
8225 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8226 fi
8227else
8228 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8229fi
8230need_lib_prefix=unknown
8231hardcode_into_libs=no
8232
8233# when you set need_version to no, make sure it does not cause -set_version
8234# flags to be left without arguments
8235need_version=unknown
8236
8237case $host_os in
8238aix3*)
8239 version_type=linux
8240 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8241 shlibpath_var=LIBPATH
8242
8243 # AIX 3 has no versioning support, so we append a major version to the name.
8244 soname_spec='${libname}${release}${shared_ext}$major'
8245 ;;
8246
8247aix4* | aix5*)
8248 version_type=linux
8249 need_lib_prefix=no
8250 need_version=no
8251 hardcode_into_libs=yes
8252 if test "$host_cpu" = ia64; then
8253 # AIX 5 supports IA64
8254 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8255 shlibpath_var=LD_LIBRARY_PATH
8256 else
8257 # With GCC up to 2.95.x, collect2 would create an import file
8258 # for dependence libraries. The import file would start with
8259 # the line `#! .'. This would cause the generated library to
8260 # depend on `.', always an invalid library. This was fixed in
8261 # development snapshots of GCC prior to 3.0.
8262 case $host_os in
8263 aix4 | aix4.[01] | aix4.[01].*)
8264 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8265 echo ' yes '
8266 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8267 :
8268 else
8269 can_build_shared=no
8270 fi
8271 ;;
8272 esac
8273 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8274 # soname into executable. Probably we can add versioning support to
8275 # collect2, so additional links can be useful in future.
8276 if test "$aix_use_runtimelinking" = yes; then
8277 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8278 # instead of lib<name>.a to let people know that these are not
8279 # typical AIX shared libraries.
8280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8281 else
8282 # We preserve .a as extension for shared libraries through AIX4.2
8283 # and later when we are not doing run time linking.
8284 library_names_spec='${libname}${release}.a $libname.a'
8285 soname_spec='${libname}${release}${shared_ext}$major'
8286 fi
8287 shlibpath_var=LIBPATH
8288 fi
8289 ;;
8290
8291amigaos*)
8292 library_names_spec='$libname.ixlibrary $libname.a'
8293 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8294 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'
8295 ;;
8296
8297beos*)
8298 library_names_spec='${libname}${shared_ext}'
8299 dynamic_linker="$host_os ld.so"
8300 shlibpath_var=LIBRARY_PATH
8301 ;;
8302
8303bsdi[45]*)
8304 version_type=linux
8305 need_version=no
8306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8307 soname_spec='${libname}${release}${shared_ext}$major'
8308 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8309 shlibpath_var=LD_LIBRARY_PATH
8310 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8311 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8312 # the default ld.so.conf also contains /usr/contrib/lib and
8313 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8314 # libtool to hard-code these into programs
8315 ;;
8316
8317cygwin* | mingw* | pw32*)
8318 version_type=windows
8319 shrext_cmds=".dll"
8320 need_version=no
8321 need_lib_prefix=no
8322
8323 case $GCC,$host_os in
8324 yes,cygwin* | yes,mingw* | yes,pw32*)
8325 library_names_spec='$libname.dll.a'
8326 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8327 postinstall_cmds='base_file=`basename \${file}`~
8328 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8329 dldir=$destdir/`dirname \$dlpath`~
8330 test -d \$dldir || mkdir -p \$dldir~
8331 $install_prog $dir/$dlname \$dldir/$dlname~
8332 chmod a+x \$dldir/$dlname'
8333 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8334 dlpath=$dir/\$dldll~
8335 $rm \$dlpath'
8336 shlibpath_overrides_runpath=yes
8337
8338 case $host_os in
8339 cygwin*)
8340 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8341 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8342 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8343 ;;
8344 mingw*)
8345 # MinGW DLLs use traditional 'lib' prefix
8346 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8347 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8348 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8349 # It is most probably a Windows format PATH printed by
8350 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8351 # path with ; separators, and with drive letters. We can handle the
8352 # drive letters (cygwin fileutils understands them), so leave them,
8353 # especially as we might pass files found there to a mingw objdump,
8354 # which wouldn't understand a cygwinified path. Ahh.
8355 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8356 else
8357 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8358 fi
8359 ;;
8360 pw32*)
8361 # pw32 DLLs use 'pw' prefix rather than 'lib'
8362 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8363 ;;
8364 esac
8365 ;;
8366
8367 linux*)
8368 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
8369 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8370 supports_anon_versioning=no
8371 case `$LD -v 2>/dev/null` in
8372 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8373 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8374 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8375 *\ 2.11.*) ;; # other 2.11 versions
8376 *) supports_anon_versioning=yes ;;
8377 esac
8378 if test $supports_anon_versioning = yes; then
8379 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8380cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8381$echo "local: *; };" >> $output_objdir/$libname.ver~
8382 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8383 else
8384 $archive_expsym_cmds="$archive_cmds"
8385 fi
8386 else
8387 ld_shlibs=no
8388 fi
8389 ;;
8390
8391 *)
8392 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8393 ;;
8394 esac
8395 dynamic_linker='Win32 ld.exe'
8396 # FIXME: first we should search . and the directory the executable is in
8397 shlibpath_var=PATH
8398 ;;
8399
8400darwin* | rhapsody*)
8401 dynamic_linker="$host_os dyld"
8402 version_type=darwin
8403 need_lib_prefix=no
8404 need_version=no
8405 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8406 soname_spec='${libname}${release}${major}$shared_ext'
8407 shlibpath_overrides_runpath=yes
8408 shlibpath_var=DYLD_LIBRARY_PATH
8409 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8410 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8411 if test "$GCC" = yes; then
8412 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8413 else
8414 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8415 fi
8416 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8417 ;;
8418
8419dgux*)
8420 version_type=linux
8421 need_lib_prefix=no
8422 need_version=no
8423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8424 soname_spec='${libname}${release}${shared_ext}$major'
8425 shlibpath_var=LD_LIBRARY_PATH
8426 ;;
8427
8428freebsd1*)
8429 dynamic_linker=no
8430 ;;
8431
8432kfreebsd*-gnu)
8433 version_type=linux
8434 need_lib_prefix=no
8435 need_version=no
8436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8437 soname_spec='${libname}${release}${shared_ext}$major'
8438 shlibpath_var=LD_LIBRARY_PATH
8439 shlibpath_overrides_runpath=no
8440 hardcode_into_libs=yes
8441 dynamic_linker='GNU ld.so'
8442 ;;
8443
8444freebsd* | dragonfly*)
8445 # DragonFly does not have aout. When/if they implement a new
8446 # versioning mechanism, adjust this.
8447 if test -x /usr/bin/objformat; then
8448 objformat=`/usr/bin/objformat`
8449 else
8450 case $host_os in
8451 freebsd[123]*) objformat=aout ;;
8452 *) objformat=elf ;;
8453 esac
8454 fi
8455 # Handle Gentoo/FreeBSD as it was Linux
8456 case $host_vendor in
8457 gentoo)
8458 version_type=linux ;;
8459 *)
8460 version_type=freebsd-$objformat ;;
8461 esac
8462
8463 case $version_type in
8464 freebsd-elf*)
8465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8466 need_version=no
8467 need_lib_prefix=no
8468 ;;
8469 freebsd-*)
8470 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8471 need_version=yes
8472 ;;
8473 linux)
8474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8475 soname_spec='${libname}${release}${shared_ext}$major'
8476 need_lib_prefix=no
8477 need_version=no
8478 ;;
8479 esac
8480 shlibpath_var=LD_LIBRARY_PATH
8481 case $host_os in
8482 freebsd2*)
8483 shlibpath_overrides_runpath=yes
8484 ;;
8485 freebsd3.[01]* | freebsdelf3.[01]*)
8486 shlibpath_overrides_runpath=yes
8487 hardcode_into_libs=yes
8488 ;;
8489 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8490 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8491 shlibpath_overrides_runpath=no
8492 hardcode_into_libs=yes
8493 ;;
8494 freebsd*) # from 4.6 on
8495 shlibpath_overrides_runpath=yes
8496 hardcode_into_libs=yes
8497 ;;
8498 esac
8499 ;;
8500
8501gnu*)
8502 version_type=linux
8503 need_lib_prefix=no
8504 need_version=no
8505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8506 soname_spec='${libname}${release}${shared_ext}$major'
8507 shlibpath_var=LD_LIBRARY_PATH
8508 hardcode_into_libs=yes
8509 ;;
8510
8511hpux9* | hpux10* | hpux11*)
8512 # Give a soname corresponding to the major version so that dld.sl refuses to
8513 # link against other versions.
8514 version_type=sunos
8515 need_lib_prefix=no
8516 need_version=no
8517 case $host_cpu in
8518 ia64*)
8519 shrext_cmds='.so'
8520 hardcode_into_libs=yes
8521 dynamic_linker="$host_os dld.so"
8522 shlibpath_var=LD_LIBRARY_PATH
8523 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8525 soname_spec='${libname}${release}${shared_ext}$major'
8526 if test "X$HPUX_IA64_MODE" = X32; then
8527 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8528 else
8529 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8530 fi
8531 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8532 ;;
8533 hppa*64*)
8534 shrext_cmds='.sl'
8535 hardcode_into_libs=yes
8536 dynamic_linker="$host_os dld.sl"
8537 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8538 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8540 soname_spec='${libname}${release}${shared_ext}$major'
8541 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8542 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8543 ;;
8544 *)
8545 shrext_cmds='.sl'
8546 dynamic_linker="$host_os dld.sl"
8547 shlibpath_var=SHLIB_PATH
8548 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8550 soname_spec='${libname}${release}${shared_ext}$major'
8551 ;;
8552 esac
8553 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8554 postinstall_cmds='chmod 555 $lib'
8555 ;;
8556
8557interix3*)
8558 version_type=linux
8559 need_lib_prefix=no
8560 need_version=no
8561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8562 soname_spec='${libname}${release}${shared_ext}$major'
8563 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8564 shlibpath_var=LD_LIBRARY_PATH
8565 shlibpath_overrides_runpath=no
8566 hardcode_into_libs=yes
8567 ;;
8568
8569irix5* | irix6* | nonstopux*)
8570 case $host_os in
8571 nonstopux*) version_type=nonstopux ;;
8572 *)
8573 if test "$lt_cv_prog_gnu_ld" = yes; then
8574 version_type=linux
8575 else
8576 version_type=irix
8577 fi ;;
8578 esac
8579 need_lib_prefix=no
8580 need_version=no
8581 soname_spec='${libname}${release}${shared_ext}$major'
8582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8583 case $host_os in
8584 irix5* | nonstopux*)
8585 libsuff= shlibsuff=
8586 ;;
8587 *)
8588 case $LD in # libtool.m4 will add one of these switches to LD
8589 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8590 libsuff= shlibsuff= libmagic=32-bit;;
8591 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8592 libsuff=32 shlibsuff=N32 libmagic=N32;;
8593 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8594 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8595 *) libsuff= shlibsuff= libmagic=never-match;;
8596 esac
8597 ;;
8598 esac
8599 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8600 shlibpath_overrides_runpath=no
8601 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8602 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8603 hardcode_into_libs=yes
8604 ;;
8605
8606# No shared lib support for Linux oldld, aout, or coff.
8607linux*oldld* | linux*aout* | linux*coff*)
8608 dynamic_linker=no
8609 ;;
8610
8611# This must be Linux ELF.
8612linux*)
8613 version_type=linux
8614 need_lib_prefix=no
8615 need_version=no
8616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8617 soname_spec='${libname}${release}${shared_ext}$major'
8618 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8619 shlibpath_var=LD_LIBRARY_PATH
8620 shlibpath_overrides_runpath=no
8621 # This implies no fast_install, which is unacceptable.
8622 # Some rework will be needed to allow for fast_install
8623 # before this can be enabled.
8624 hardcode_into_libs=yes
8625
8626 # Append ld.so.conf contents to the search path
8627 if test -f /etc/ld.so.conf; then
8628 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8629 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8630 fi
8631
8632 # We used to test for /lib/ld.so.1 and disable shared libraries on
8633 # powerpc, because MkLinux only supported shared libraries with the
8634 # GNU dynamic linker. Since this was broken with cross compilers,
8635 # most powerpc-linux boxes support dynamic linking these days and
8636 # people can always --disable-shared, the test was removed, and we
8637 # assume the GNU/Linux dynamic linker is in use.
8638 dynamic_linker='GNU/Linux ld.so'
8639 ;;
8640
8641knetbsd*-gnu)
8642 version_type=linux
8643 need_lib_prefix=no
8644 need_version=no
8645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8646 soname_spec='${libname}${release}${shared_ext}$major'
8647 shlibpath_var=LD_LIBRARY_PATH
8648 shlibpath_overrides_runpath=no
8649 hardcode_into_libs=yes
8650 dynamic_linker='GNU ld.so'
8651 ;;
8652
8653netbsd*)
8654 version_type=sunos
8655 need_lib_prefix=no
8656 need_version=no
8657 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8660 dynamic_linker='NetBSD (a.out) ld.so'
8661 else
8662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8663 soname_spec='${libname}${release}${shared_ext}$major'
8664 dynamic_linker='NetBSD ld.elf_so'
8665 fi
8666 shlibpath_var=LD_LIBRARY_PATH
8667 shlibpath_overrides_runpath=yes
8668 hardcode_into_libs=yes
8669 ;;
8670
8671newsos6)
8672 version_type=linux
8673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8674 shlibpath_var=LD_LIBRARY_PATH
8675 shlibpath_overrides_runpath=yes
8676 ;;
8677
8678nto-qnx*)
8679 version_type=linux
8680 need_lib_prefix=no
8681 need_version=no
8682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8683 soname_spec='${libname}${release}${shared_ext}$major'
8684 shlibpath_var=LD_LIBRARY_PATH
8685 shlibpath_overrides_runpath=yes
8686 ;;
8687
8688openbsd*)
8689 version_type=sunos
8690 sys_lib_dlsearch_path_spec="/usr/lib"
8691 need_lib_prefix=no
8692 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8693 case $host_os in
8694 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8695 *) need_version=no ;;
8696 esac
8697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8699 shlibpath_var=LD_LIBRARY_PATH
8700 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8701 case $host_os in
8702 openbsd2.[89] | openbsd2.[89].*)
8703 shlibpath_overrides_runpath=no
8704 ;;
8705 *)
8706 shlibpath_overrides_runpath=yes
8707 ;;
8708 esac
8709 else
8710 shlibpath_overrides_runpath=yes
8711 fi
8712 ;;
8713
8714os2*)
8715 libname_spec='$name'
8716 shrext_cmds=".dll"
8717 need_lib_prefix=no
8718 library_names_spec='$libname${shared_ext} $libname.a'
8719 dynamic_linker='OS/2 ld.exe'
8720 shlibpath_var=LIBPATH
8721 ;;
8722
8723osf3* | osf4* | osf5*)
8724 version_type=osf
8725 need_lib_prefix=no
8726 need_version=no
8727 soname_spec='${libname}${release}${shared_ext}$major'
8728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8729 shlibpath_var=LD_LIBRARY_PATH
8730 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8731 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8732 ;;
8733
8734solaris*)
8735 version_type=linux
8736 need_lib_prefix=no
8737 need_version=no
8738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8739 soname_spec='${libname}${release}${shared_ext}$major'
8740 shlibpath_var=LD_LIBRARY_PATH
8741 shlibpath_overrides_runpath=yes
8742 hardcode_into_libs=yes
8743 # ldd complains unless libraries are executable
8744 postinstall_cmds='chmod +x $lib'
8745 ;;
8746
8747sunos4*)
8748 version_type=sunos
8749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8750 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8751 shlibpath_var=LD_LIBRARY_PATH
8752 shlibpath_overrides_runpath=yes
8753 if test "$with_gnu_ld" = yes; then
8754 need_lib_prefix=no
8755 fi
8756 need_version=yes
8757 ;;
8758
8759sysv4 | sysv4.3*)
8760 version_type=linux
8761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8762 soname_spec='${libname}${release}${shared_ext}$major'
8763 shlibpath_var=LD_LIBRARY_PATH
8764 case $host_vendor in
8765 sni)
8766 shlibpath_overrides_runpath=no
8767 need_lib_prefix=no
8768 export_dynamic_flag_spec='${wl}-Blargedynsym'
8769 runpath_var=LD_RUN_PATH
8770 ;;
8771 siemens)
8772 need_lib_prefix=no
8773 ;;
8774 motorola)
8775 need_lib_prefix=no
8776 need_version=no
8777 shlibpath_overrides_runpath=no
8778 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8779 ;;
8780 esac
8781 ;;
8782
8783sysv4*MP*)
8784 if test -d /usr/nec ;then
8785 version_type=linux
8786 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8787 soname_spec='$libname${shared_ext}.$major'
8788 shlibpath_var=LD_LIBRARY_PATH
8789 fi
8790 ;;
8791
8792sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8793 version_type=freebsd-elf
8794 need_lib_prefix=no
8795 need_version=no
8796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8797 soname_spec='${libname}${release}${shared_ext}$major'
8798 shlibpath_var=LD_LIBRARY_PATH
8799 hardcode_into_libs=yes
8800 if test "$with_gnu_ld" = yes; then
8801 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8802 shlibpath_overrides_runpath=no
8803 else
8804 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8805 shlibpath_overrides_runpath=yes
8806 case $host_os in
8807 sco3.2v5*)
8808 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8809 ;;
8810 esac
8811 fi
8812 sys_lib_dlsearch_path_spec='/usr/lib'
8813 ;;
8814
8815uts4*)
8816 version_type=linux
8817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8818 soname_spec='${libname}${release}${shared_ext}$major'
8819 shlibpath_var=LD_LIBRARY_PATH
8820 ;;
8821
8822*)
8823 dynamic_linker=no
8824 ;;
8825esac
8826{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8827echo "${ECHO_T}$dynamic_linker" >&6; }
8828test "$dynamic_linker" = no && can_build_shared=no
8829
8830variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8831if test "$GCC" = yes; then
8832 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8833fi
8834
8835{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8836echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8837hardcode_action=
8838if test -n "$hardcode_libdir_flag_spec" || \
8839 test -n "$runpath_var" || \
8840 test "X$hardcode_automatic" = "Xyes" ; then
8841
8842 # We can hardcode non-existant directories.
8843 if test "$hardcode_direct" != no &&
8844 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8845 # have to relink, otherwise we might link with an installed library
8846 # when we should be linking with a yet-to-be-installed one
8847 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8848 test "$hardcode_minus_L" != no; then
8849 # Linking always hardcodes the temporary library directory.
8850 hardcode_action=relink
8851 else
8852 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8853 hardcode_action=immediate
8854 fi
8855else
8856 # We cannot hardcode anything, or else we can only hardcode existing
8857 # directories.
8858 hardcode_action=unsupported
8859fi
8860{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
8861echo "${ECHO_T}$hardcode_action" >&6; }
8862
8863if test "$hardcode_action" = relink; then
8864 # Fast installation is not supported
8865 enable_fast_install=no
8866elif test "$shlibpath_overrides_runpath" = yes ||
8867 test "$enable_shared" = no; then
8868 # Fast installation is not necessary
8869 enable_fast_install=needless
8870fi
8871
8872striplib=
8873old_striplib=
8874{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8875echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8876if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8877 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8878 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8879 { echo "$as_me:$LINENO: result: yes" >&5
8880echo "${ECHO_T}yes" >&6; }
8881else
8882# FIXME - insert some real tests, host_os isn't really good enough
8883 case $host_os in
8884 darwin*)
8885 if test -n "$STRIP" ; then
8886 striplib="$STRIP -x"
8887 { echo "$as_me:$LINENO: result: yes" >&5
8888echo "${ECHO_T}yes" >&6; }
8889 else
8890 { echo "$as_me:$LINENO: result: no" >&5
8891echo "${ECHO_T}no" >&6; }
8892fi
8893 ;;
8894 *)
8895 { echo "$as_me:$LINENO: result: no" >&5
8896echo "${ECHO_T}no" >&6; }
8897 ;;
8898 esac
8899fi
8900
8901if test "x$enable_dlopen" != xyes; then
8902 enable_dlopen=unknown
8903 enable_dlopen_self=unknown
8904 enable_dlopen_self_static=unknown
8905else
8906 lt_cv_dlopen=no
8907 lt_cv_dlopen_libs=
8908
8909 case $host_os in
8910 beos*)
8911 lt_cv_dlopen="load_add_on"
8912 lt_cv_dlopen_libs=
8913 lt_cv_dlopen_self=yes
8914 ;;
8915
8916 mingw* | pw32*)
8917 lt_cv_dlopen="LoadLibrary"
8918 lt_cv_dlopen_libs=
8919 ;;
8920
8921 cygwin*)
8922 lt_cv_dlopen="dlopen"
8923 lt_cv_dlopen_libs=
8924 ;;
8925
8926 darwin*)
8927 # if libdl is installed we need to link against it
8928 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8929echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8930if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8931 echo $ECHO_N "(cached) $ECHO_C" >&6
8932else
8933 ac_check_lib_save_LIBS=$LIBS
8934LIBS="-ldl $LIBS"
8935cat >conftest.$ac_ext <<_ACEOF
8936/* confdefs.h. */
8937_ACEOF
8938cat confdefs.h >>conftest.$ac_ext
8939cat >>conftest.$ac_ext <<_ACEOF
8940/* end confdefs.h. */
8941
8942/* Override any GCC internal prototype to avoid an error.
8943 Use char because int might match the return type of a GCC
8944 builtin and then its argument prototype would still apply. */
8945#ifdef __cplusplus
8946extern "C"
8947#endif
8948char dlopen ();
8949int
8950main ()
8951{
8952return dlopen ();
8953 ;
8954 return 0;
8955}
8956_ACEOF
8957rm -f conftest.$ac_objext conftest$ac_exeext
8958if { (ac_try="$ac_link"
8959case "(($ac_try" in
8960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8961 *) ac_try_echo=$ac_try;;
8962esac
8963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8964 (eval "$ac_link") 2>conftest.er1
8965 ac_status=$?
8966 grep -v '^ *+' conftest.er1 >conftest.err
8967 rm -f conftest.er1
8968 cat conftest.err >&5
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); } && {
8971 test -z "$ac_c_werror_flag" ||
8972 test ! -s conftest.err
8973 } && test -s conftest$ac_exeext &&
8974 $as_test_x conftest$ac_exeext; then
8975 ac_cv_lib_dl_dlopen=yes
8976else
8977 echo "$as_me: failed program was:" >&5
8978sed 's/^/| /' conftest.$ac_ext >&5
8979
8980 ac_cv_lib_dl_dlopen=no
8981fi
8982
8983rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8984 conftest$ac_exeext conftest.$ac_ext
8985LIBS=$ac_check_lib_save_LIBS
8986fi
8987{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8988echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8989if test $ac_cv_lib_dl_dlopen = yes; then
8990 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8991else
8992
8993 lt_cv_dlopen="dyld"
8994 lt_cv_dlopen_libs=
8995 lt_cv_dlopen_self=yes
8996
8997fi
8998
8999 ;;
9000
9001 *)
9002 { echo "$as_me:$LINENO: checking for shl_load" >&5
9003echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9004if test "${ac_cv_func_shl_load+set}" = set; then
9005 echo $ECHO_N "(cached) $ECHO_C" >&6
9006else
9007 cat >conftest.$ac_ext <<_ACEOF
9008/* confdefs.h. */
9009_ACEOF
9010cat confdefs.h >>conftest.$ac_ext
9011cat >>conftest.$ac_ext <<_ACEOF
9012/* end confdefs.h. */
9013/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9015#define shl_load innocuous_shl_load
9016
9017/* System header to define __stub macros and hopefully few prototypes,
9018 which can conflict with char shl_load (); below.
9019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9020 <limits.h> exists even on freestanding compilers. */
9021
9022#ifdef __STDC__
9023# include <limits.h>
9024#else
9025# include <assert.h>
9026#endif
9027
9028#undef shl_load
9029
9030/* Override any GCC internal prototype to avoid an error.
9031 Use char because int might match the return type of a GCC
9032 builtin and then its argument prototype would still apply. */
9033#ifdef __cplusplus
9034extern "C"
9035#endif
9036char shl_load ();
9037/* The GNU C library defines this for functions which it implements
9038 to always fail with ENOSYS. Some functions are actually named
9039 something starting with __ and the normal name is an alias. */
9040#if defined __stub_shl_load || defined __stub___shl_load
9041choke me
9042#endif
9043
9044int
9045main ()
9046{
9047return shl_load ();
9048 ;
9049 return 0;
9050}
9051_ACEOF
9052rm -f conftest.$ac_objext conftest$ac_exeext
9053if { (ac_try="$ac_link"
9054case "(($ac_try" in
9055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9056 *) ac_try_echo=$ac_try;;
9057esac
9058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9059 (eval "$ac_link") 2>conftest.er1
9060 ac_status=$?
9061 grep -v '^ *+' conftest.er1 >conftest.err
9062 rm -f conftest.er1
9063 cat conftest.err >&5
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); } && {
9066 test -z "$ac_c_werror_flag" ||
9067 test ! -s conftest.err
9068 } && test -s conftest$ac_exeext &&
9069 $as_test_x conftest$ac_exeext; then
9070 ac_cv_func_shl_load=yes
9071else
9072 echo "$as_me: failed program was:" >&5
9073sed 's/^/| /' conftest.$ac_ext >&5
9074
9075 ac_cv_func_shl_load=no
9076fi
9077
9078rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9079 conftest$ac_exeext conftest.$ac_ext
9080fi
9081{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9082echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9083if test $ac_cv_func_shl_load = yes; then
9084 lt_cv_dlopen="shl_load"
9085else
9086 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9087echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9088if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9089 echo $ECHO_N "(cached) $ECHO_C" >&6
9090else
9091 ac_check_lib_save_LIBS=$LIBS
9092LIBS="-ldld $LIBS"
9093cat >conftest.$ac_ext <<_ACEOF
9094/* confdefs.h. */
9095_ACEOF
9096cat confdefs.h >>conftest.$ac_ext
9097cat >>conftest.$ac_ext <<_ACEOF
9098/* end confdefs.h. */
9099
9100/* Override any GCC internal prototype to avoid an error.
9101 Use char because int might match the return type of a GCC
9102 builtin and then its argument prototype would still apply. */
9103#ifdef __cplusplus
9104extern "C"
9105#endif
9106char shl_load ();
9107int
9108main ()
9109{
9110return shl_load ();
9111 ;
9112 return 0;
9113}
9114_ACEOF
9115rm -f conftest.$ac_objext conftest$ac_exeext
9116if { (ac_try="$ac_link"
9117case "(($ac_try" in
9118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9119 *) ac_try_echo=$ac_try;;
9120esac
9121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9122 (eval "$ac_link") 2>conftest.er1
9123 ac_status=$?
9124 grep -v '^ *+' conftest.er1 >conftest.err
9125 rm -f conftest.er1
9126 cat conftest.err >&5
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); } && {
9129 test -z "$ac_c_werror_flag" ||
9130 test ! -s conftest.err
9131 } && test -s conftest$ac_exeext &&
9132 $as_test_x conftest$ac_exeext; then
9133 ac_cv_lib_dld_shl_load=yes
9134else
9135 echo "$as_me: failed program was:" >&5
9136sed 's/^/| /' conftest.$ac_ext >&5
9137
9138 ac_cv_lib_dld_shl_load=no
9139fi
9140
9141rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9142 conftest$ac_exeext conftest.$ac_ext
9143LIBS=$ac_check_lib_save_LIBS
9144fi
9145{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9146echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9147if test $ac_cv_lib_dld_shl_load = yes; then
9148 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9149else
9150 { echo "$as_me:$LINENO: checking for dlopen" >&5
9151echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9152if test "${ac_cv_func_dlopen+set}" = set; then
9153 echo $ECHO_N "(cached) $ECHO_C" >&6
9154else
9155 cat >conftest.$ac_ext <<_ACEOF
9156/* confdefs.h. */
9157_ACEOF
9158cat confdefs.h >>conftest.$ac_ext
9159cat >>conftest.$ac_ext <<_ACEOF
9160/* end confdefs.h. */
9161/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9163#define dlopen innocuous_dlopen
9164
9165/* System header to define __stub macros and hopefully few prototypes,
9166 which can conflict with char dlopen (); below.
9167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9168 <limits.h> exists even on freestanding compilers. */
9169
9170#ifdef __STDC__
9171# include <limits.h>
9172#else
9173# include <assert.h>
9174#endif
9175
9176#undef dlopen
9177
9178/* Override any GCC internal prototype to avoid an error.
9179 Use char because int might match the return type of a GCC
9180 builtin and then its argument prototype would still apply. */
9181#ifdef __cplusplus
9182extern "C"
9183#endif
9184char dlopen ();
9185/* The GNU C library defines this for functions which it implements
9186 to always fail with ENOSYS. Some functions are actually named
9187 something starting with __ and the normal name is an alias. */
9188#if defined __stub_dlopen || defined __stub___dlopen
9189choke me
9190#endif
9191
9192int
9193main ()
9194{
9195return dlopen ();
9196 ;
9197 return 0;
9198}
9199_ACEOF
9200rm -f conftest.$ac_objext conftest$ac_exeext
9201if { (ac_try="$ac_link"
9202case "(($ac_try" in
9203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9204 *) ac_try_echo=$ac_try;;
9205esac
9206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9207 (eval "$ac_link") 2>conftest.er1
9208 ac_status=$?
9209 grep -v '^ *+' conftest.er1 >conftest.err
9210 rm -f conftest.er1
9211 cat conftest.err >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); } && {
9214 test -z "$ac_c_werror_flag" ||
9215 test ! -s conftest.err
9216 } && test -s conftest$ac_exeext &&
9217 $as_test_x conftest$ac_exeext; then
9218 ac_cv_func_dlopen=yes
9219else
9220 echo "$as_me: failed program was:" >&5
9221sed 's/^/| /' conftest.$ac_ext >&5
9222
9223 ac_cv_func_dlopen=no
9224fi
9225
9226rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9227 conftest$ac_exeext conftest.$ac_ext
9228fi
9229{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9230echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9231if test $ac_cv_func_dlopen = yes; then
9232 lt_cv_dlopen="dlopen"
9233else
9234 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9235echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9236if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9237 echo $ECHO_N "(cached) $ECHO_C" >&6
9238else
9239 ac_check_lib_save_LIBS=$LIBS
9240LIBS="-ldl $LIBS"
9241cat >conftest.$ac_ext <<_ACEOF
9242/* confdefs.h. */
9243_ACEOF
9244cat confdefs.h >>conftest.$ac_ext
9245cat >>conftest.$ac_ext <<_ACEOF
9246/* end confdefs.h. */
9247
9248/* Override any GCC internal prototype to avoid an error.
9249 Use char because int might match the return type of a GCC
9250 builtin and then its argument prototype would still apply. */
9251#ifdef __cplusplus
9252extern "C"
9253#endif
9254char dlopen ();
9255int
9256main ()
9257{
9258return dlopen ();
9259 ;
9260 return 0;
9261}
9262_ACEOF
9263rm -f conftest.$ac_objext conftest$ac_exeext
9264if { (ac_try="$ac_link"
9265case "(($ac_try" in
9266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9267 *) ac_try_echo=$ac_try;;
9268esac
9269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9270 (eval "$ac_link") 2>conftest.er1
9271 ac_status=$?
9272 grep -v '^ *+' conftest.er1 >conftest.err
9273 rm -f conftest.er1
9274 cat conftest.err >&5
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); } && {
9277 test -z "$ac_c_werror_flag" ||
9278 test ! -s conftest.err
9279 } && test -s conftest$ac_exeext &&
9280 $as_test_x conftest$ac_exeext; then
9281 ac_cv_lib_dl_dlopen=yes
9282else
9283 echo "$as_me: failed program was:" >&5
9284sed 's/^/| /' conftest.$ac_ext >&5
9285
9286 ac_cv_lib_dl_dlopen=no
9287fi
9288
9289rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9290 conftest$ac_exeext conftest.$ac_ext
9291LIBS=$ac_check_lib_save_LIBS
9292fi
9293{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9294echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9295if test $ac_cv_lib_dl_dlopen = yes; then
9296 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9297else
9298 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9299echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9300if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9301 echo $ECHO_N "(cached) $ECHO_C" >&6
9302else
9303 ac_check_lib_save_LIBS=$LIBS
9304LIBS="-lsvld $LIBS"
9305cat >conftest.$ac_ext <<_ACEOF
9306/* confdefs.h. */
9307_ACEOF
9308cat confdefs.h >>conftest.$ac_ext
9309cat >>conftest.$ac_ext <<_ACEOF
9310/* end confdefs.h. */
9311
9312/* Override any GCC internal prototype to avoid an error.
9313 Use char because int might match the return type of a GCC
9314 builtin and then its argument prototype would still apply. */
9315#ifdef __cplusplus
9316extern "C"
9317#endif
9318char dlopen ();
9319int
9320main ()
9321{
9322return dlopen ();
9323 ;
9324 return 0;
9325}
9326_ACEOF
9327rm -f conftest.$ac_objext conftest$ac_exeext
9328if { (ac_try="$ac_link"
9329case "(($ac_try" in
9330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9331 *) ac_try_echo=$ac_try;;
9332esac
9333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9334 (eval "$ac_link") 2>conftest.er1
9335 ac_status=$?
9336 grep -v '^ *+' conftest.er1 >conftest.err
9337 rm -f conftest.er1
9338 cat conftest.err >&5
9339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340 (exit $ac_status); } && {
9341 test -z "$ac_c_werror_flag" ||
9342 test ! -s conftest.err
9343 } && test -s conftest$ac_exeext &&
9344 $as_test_x conftest$ac_exeext; then
9345 ac_cv_lib_svld_dlopen=yes
9346else
9347 echo "$as_me: failed program was:" >&5
9348sed 's/^/| /' conftest.$ac_ext >&5
9349
9350 ac_cv_lib_svld_dlopen=no
9351fi
9352
9353rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9354 conftest$ac_exeext conftest.$ac_ext
9355LIBS=$ac_check_lib_save_LIBS
9356fi
9357{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9358echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9359if test $ac_cv_lib_svld_dlopen = yes; then
9360 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9361else
9362 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9363echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9364if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9365 echo $ECHO_N "(cached) $ECHO_C" >&6
9366else
9367 ac_check_lib_save_LIBS=$LIBS
9368LIBS="-ldld $LIBS"
9369cat >conftest.$ac_ext <<_ACEOF
9370/* confdefs.h. */
9371_ACEOF
9372cat confdefs.h >>conftest.$ac_ext
9373cat >>conftest.$ac_ext <<_ACEOF
9374/* end confdefs.h. */
9375
9376/* Override any GCC internal prototype to avoid an error.
9377 Use char because int might match the return type of a GCC
9378 builtin and then its argument prototype would still apply. */
9379#ifdef __cplusplus
9380extern "C"
9381#endif
9382char dld_link ();
9383int
9384main ()
9385{
9386return dld_link ();
9387 ;
9388 return 0;
9389}
9390_ACEOF
9391rm -f conftest.$ac_objext conftest$ac_exeext
9392if { (ac_try="$ac_link"
9393case "(($ac_try" in
9394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9395 *) ac_try_echo=$ac_try;;
9396esac
9397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9398 (eval "$ac_link") 2>conftest.er1
9399 ac_status=$?
9400 grep -v '^ *+' conftest.er1 >conftest.err
9401 rm -f conftest.er1
9402 cat conftest.err >&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); } && {
9405 test -z "$ac_c_werror_flag" ||
9406 test ! -s conftest.err
9407 } && test -s conftest$ac_exeext &&
9408 $as_test_x conftest$ac_exeext; then
9409 ac_cv_lib_dld_dld_link=yes
9410else
9411 echo "$as_me: failed program was:" >&5
9412sed 's/^/| /' conftest.$ac_ext >&5
9413
9414 ac_cv_lib_dld_dld_link=no
9415fi
9416
9417rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9418 conftest$ac_exeext conftest.$ac_ext
9419LIBS=$ac_check_lib_save_LIBS
9420fi
9421{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9422echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9423if test $ac_cv_lib_dld_dld_link = yes; then
9424 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9425fi
9426
9427
9428fi
9429
9430
9431fi
9432
9433
9434fi
9435
9436
9437fi
9438
9439
9440fi
9441
9442 ;;
9443 esac
9444
9445 if test "x$lt_cv_dlopen" != xno; then
9446 enable_dlopen=yes
9447 else
9448 enable_dlopen=no
9449 fi
9450
9451 case $lt_cv_dlopen in
9452 dlopen)
9453 save_CPPFLAGS="$CPPFLAGS"
9454 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9455
9456 save_LDFLAGS="$LDFLAGS"
9457 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9458
9459 save_LIBS="$LIBS"
9460 LIBS="$lt_cv_dlopen_libs $LIBS"
9461
9462 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9463echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9464if test "${lt_cv_dlopen_self+set}" = set; then
9465 echo $ECHO_N "(cached) $ECHO_C" >&6
9466else
9467 if test "$cross_compiling" = yes; then :
9468 lt_cv_dlopen_self=cross
9469else
9470 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9471 lt_status=$lt_dlunknown
9472 cat > conftest.$ac_ext <<EOF
9473#line 9473 "configure"
9474#include "confdefs.h"
9475
9476#if HAVE_DLFCN_H
9477#include <dlfcn.h>
9478#endif
9479
9480#include <stdio.h>
9481
9482#ifdef RTLD_GLOBAL
9483# define LT_DLGLOBAL RTLD_GLOBAL
9484#else
9485# ifdef DL_GLOBAL
9486# define LT_DLGLOBAL DL_GLOBAL
9487# else
9488# define LT_DLGLOBAL 0
9489# endif
9490#endif
9491
9492/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9493 find out it does not work in some platform. */
9494#ifndef LT_DLLAZY_OR_NOW
9495# ifdef RTLD_LAZY
9496# define LT_DLLAZY_OR_NOW RTLD_LAZY
9497# else
9498# ifdef DL_LAZY
9499# define LT_DLLAZY_OR_NOW DL_LAZY
9500# else
9501# ifdef RTLD_NOW
9502# define LT_DLLAZY_OR_NOW RTLD_NOW
9503# else
9504# ifdef DL_NOW
9505# define LT_DLLAZY_OR_NOW DL_NOW
9506# else
9507# define LT_DLLAZY_OR_NOW 0
9508# endif
9509# endif
9510# endif
9511# endif
9512#endif
9513
9514#ifdef __cplusplus
9515extern "C" void exit (int);
9516#endif
9517
9518void fnord() { int i=42;}
9519int main ()
9520{
9521 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9522 int status = $lt_dlunknown;
9523
9524 if (self)
9525 {
9526 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9527 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9528 /* dlclose (self); */
9529 }
9530 else
9531 puts (dlerror ());
9532
9533 exit (status);
9534}
9535EOF
9536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9537 (eval $ac_link) 2>&5
9538 ac_status=$?
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9541 (./conftest; exit; ) >&5 2>/dev/null
9542 lt_status=$?
9543 case x$lt_status in
9544 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9545 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9546 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9547 esac
9548 else :
9549 # compilation failed
9550 lt_cv_dlopen_self=no
9551 fi
9552fi
9553rm -fr conftest*
9554
9555
9556fi
9557{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9558echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9559
9560 if test "x$lt_cv_dlopen_self" = xyes; then
9561 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9562 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9563echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9564if test "${lt_cv_dlopen_self_static+set}" = set; then
9565 echo $ECHO_N "(cached) $ECHO_C" >&6
9566else
9567 if test "$cross_compiling" = yes; then :
9568 lt_cv_dlopen_self_static=cross
9569else
9570 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9571 lt_status=$lt_dlunknown
9572 cat > conftest.$ac_ext <<EOF
9573#line 9573 "configure"
9574#include "confdefs.h"
9575
9576#if HAVE_DLFCN_H
9577#include <dlfcn.h>
9578#endif
9579
9580#include <stdio.h>
9581
9582#ifdef RTLD_GLOBAL
9583# define LT_DLGLOBAL RTLD_GLOBAL
9584#else
9585# ifdef DL_GLOBAL
9586# define LT_DLGLOBAL DL_GLOBAL
9587# else
9588# define LT_DLGLOBAL 0
9589# endif
9590#endif
9591
9592/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9593 find out it does not work in some platform. */
9594#ifndef LT_DLLAZY_OR_NOW
9595# ifdef RTLD_LAZY
9596# define LT_DLLAZY_OR_NOW RTLD_LAZY
9597# else
9598# ifdef DL_LAZY
9599# define LT_DLLAZY_OR_NOW DL_LAZY
9600# else
9601# ifdef RTLD_NOW
9602# define LT_DLLAZY_OR_NOW RTLD_NOW
9603# else
9604# ifdef DL_NOW
9605# define LT_DLLAZY_OR_NOW DL_NOW
9606# else
9607# define LT_DLLAZY_OR_NOW 0
9608# endif
9609# endif
9610# endif
9611# endif
9612#endif
9613
9614#ifdef __cplusplus
9615extern "C" void exit (int);
9616#endif
9617
9618void fnord() { int i=42;}
9619int main ()
9620{
9621 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9622 int status = $lt_dlunknown;
9623
9624 if (self)
9625 {
9626 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9627 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9628 /* dlclose (self); */
9629 }
9630 else
9631 puts (dlerror ());
9632
9633 exit (status);
9634}
9635EOF
9636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9637 (eval $ac_link) 2>&5
9638 ac_status=$?
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9641 (./conftest; exit; ) >&5 2>/dev/null
9642 lt_status=$?
9643 case x$lt_status in
9644 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9645 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9646 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9647 esac
9648 else :
9649 # compilation failed
9650 lt_cv_dlopen_self_static=no
9651 fi
9652fi
9653rm -fr conftest*
9654
9655
9656fi
9657{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9658echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9659 fi
9660
9661 CPPFLAGS="$save_CPPFLAGS"
9662 LDFLAGS="$save_LDFLAGS"
9663 LIBS="$save_LIBS"
9664 ;;
9665 esac
9666
9667 case $lt_cv_dlopen_self in
9668 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9669 *) enable_dlopen_self=unknown ;;
9670 esac
9671
9672 case $lt_cv_dlopen_self_static in
9673 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9674 *) enable_dlopen_self_static=unknown ;;
9675 esac
9676fi
9677
9678
9679# Report which library types will actually be built
9680{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9681echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9682{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
9683echo "${ECHO_T}$can_build_shared" >&6; }
9684
9685{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9686echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9687test "$can_build_shared" = "no" && enable_shared=no
9688
9689# On AIX, shared libraries and static libraries use the same namespace, and
9690# are all built from PIC.
9691case $host_os in
9692aix3*)
9693 test "$enable_shared" = yes && enable_static=no
9694 if test -n "$RANLIB"; then
9695 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9696 postinstall_cmds='$RANLIB $lib'
9697 fi
9698 ;;
9699
9700aix4* | aix5*)
9701 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9702 test "$enable_shared" = yes && enable_static=no
9703 fi
9704 ;;
9705esac
9706{ echo "$as_me:$LINENO: result: $enable_shared" >&5
9707echo "${ECHO_T}$enable_shared" >&6; }
9708
9709{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9710echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9711# Make sure either enable_shared or enable_static is yes.
9712test "$enable_shared" = yes || enable_static=yes
9713{ echo "$as_me:$LINENO: result: $enable_static" >&5
9714echo "${ECHO_T}$enable_static" >&6; }
9715
9716# The else clause should only fire when bootstrapping the
9717# libtool distribution, otherwise you forgot to ship ltmain.sh
9718# with your package, and you will get complaints that there are
9719# no rules to generate ltmain.sh.
9720if test -f "$ltmain"; then
9721 # See if we are running on zsh, and set the options which allow our commands through
9722 # without removal of \ escapes.
9723 if test -n "${ZSH_VERSION+set}" ; then
9724 setopt NO_GLOB_SUBST
9725 fi
9726 # Now quote all the things that may contain metacharacters while being
9727 # careful not to overquote the AC_SUBSTed values. We take copies of the
9728 # variables and quote the copies for generation of the libtool script.
9729 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9730 SED SHELL STRIP \
9731 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9732 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9733 deplibs_check_method reload_flag reload_cmds need_locks \
9734 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9735 lt_cv_sys_global_symbol_to_c_name_address \
9736 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9737 old_postinstall_cmds old_postuninstall_cmds \
9738 compiler \
9739 CC \
9740 LD \
9741 lt_prog_compiler_wl \
9742 lt_prog_compiler_pic \
9743 lt_prog_compiler_static \
9744 lt_prog_compiler_no_builtin_flag \
9745 export_dynamic_flag_spec \
9746 thread_safe_flag_spec \
9747 whole_archive_flag_spec \
9748 enable_shared_with_static_runtimes \
9749 old_archive_cmds \
9750 old_archive_from_new_cmds \
9751 predep_objects \
9752 postdep_objects \
9753 predeps \
9754 postdeps \
9755 compiler_lib_search_path \
9756 archive_cmds \
9757 archive_expsym_cmds \
9758 postinstall_cmds \
9759 postuninstall_cmds \
9760 old_archive_from_expsyms_cmds \
9761 allow_undefined_flag \
9762 no_undefined_flag \
9763 export_symbols_cmds \
9764 hardcode_libdir_flag_spec \
9765 hardcode_libdir_flag_spec_ld \
9766 hardcode_libdir_separator \
9767 hardcode_automatic \
9768 module_cmds \
9769 module_expsym_cmds \
9770 lt_cv_prog_compiler_c_o \
9771 exclude_expsyms \
9772 include_expsyms; do
9773
9774 case $var in
9775 old_archive_cmds | \
9776 old_archive_from_new_cmds | \
9777 archive_cmds | \
9778 archive_expsym_cmds | \
9779 module_cmds | \
9780 module_expsym_cmds | \
9781 old_archive_from_expsyms_cmds | \
9782 export_symbols_cmds | \
9783 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9784 postinstall_cmds | postuninstall_cmds | \
9785 old_postinstall_cmds | old_postuninstall_cmds | \
9786 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9787 # Double-quote double-evaled strings.
9788 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9789 ;;
9790 *)
9791 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9792 ;;
9793 esac
9794 done
9795
9796 case $lt_echo in
9797 *'\$0 --fallback-echo"')
9798 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9799 ;;
9800 esac
9801
9802cfgfile="${ofile}T"
9803 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9804 $rm -f "$cfgfile"
9805 { echo "$as_me:$LINENO: creating $ofile" >&5
9806echo "$as_me: creating $ofile" >&6;}
9807
9808 cat <<__EOF__ >> "$cfgfile"
9809#! $SHELL
9810
9811# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9812# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9813# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9814#
9815# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9816# Free Software Foundation, Inc.
9817#
9818# This file is part of GNU Libtool:
9819# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9820#
9821# This program is free software; you can redistribute it and/or modify
9822# it under the terms of the GNU General Public License as published by
9823# the Free Software Foundation; either version 2 of the License, or
9824# (at your option) any later version.
9825#
9826# This program is distributed in the hope that it will be useful, but
9827# WITHOUT ANY WARRANTY; without even the implied warranty of
9828# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9829# General Public License for more details.
9830#
9831# You should have received a copy of the GNU General Public License
9832# along with this program; if not, write to the Free Software
9833# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9834#
9835# As a special exception to the GNU General Public License, if you
9836# distribute this file as part of a program that contains a
9837# configuration script generated by Autoconf, you may include it under
9838# the same distribution terms that you use for the rest of that program.
9839
9840# A sed program that does not truncate output.
9841SED=$lt_SED
9842
9843# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9844Xsed="$SED -e 1s/^X//"
9845
9846# The HP-UX ksh and POSIX shell print the target directory to stdout
9847# if CDPATH is set.
9848(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9849
9850# The names of the tagged configurations supported by this script.
9851available_tags=
9852
9853# ### BEGIN LIBTOOL CONFIG
9854
9855# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9856
9857# Shell to use when invoking shell scripts.
9858SHELL=$lt_SHELL
9859
9860# Whether or not to build shared libraries.
9861build_libtool_libs=$enable_shared
9862
9863# Whether or not to build static libraries.
9864build_old_libs=$enable_static
9865
9866# Whether or not to add -lc for building shared libraries.
9867build_libtool_need_lc=$archive_cmds_need_lc
9868
9869# Whether or not to disallow shared libs when runtime libs are static
9870allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9871
9872# Whether or not to optimize for fast installation.
9873fast_install=$enable_fast_install
9874
9875# The host system.
9876host_alias=$host_alias
9877host=$host
9878host_os=$host_os
9879
9880# The build system.
9881build_alias=$build_alias
9882build=$build
9883build_os=$build_os
9884
9885# An echo program that does not interpret backslashes.
9886echo=$lt_echo
9887
9888# The archiver.
9889AR=$lt_AR
9890AR_FLAGS=$lt_AR_FLAGS
9891
9892# A C compiler.
9893LTCC=$lt_LTCC
9894
9895# LTCC compiler flags.
9896LTCFLAGS=$lt_LTCFLAGS
9897
9898# A language-specific compiler.
9899CC=$lt_compiler
9900
9901# Is the compiler the GNU C compiler?
9902with_gcc=$GCC
9903
9904# An ERE matcher.
9905EGREP=$lt_EGREP
9906
9907# The linker used to build libraries.
9908LD=$lt_LD
9909
9910# Whether we need hard or soft links.
9911LN_S=$lt_LN_S
9912
9913# A BSD-compatible nm program.
9914NM=$lt_NM
9915
9916# A symbol stripping program
9917STRIP=$lt_STRIP
9918
9919# Used to examine libraries when file_magic_cmd begins "file"
9920MAGIC_CMD=$MAGIC_CMD
9921
9922# Used on cygwin: DLL creation program.
9923DLLTOOL="$DLLTOOL"
9924
9925# Used on cygwin: object dumper.
9926OBJDUMP="$OBJDUMP"
9927
9928# Used on cygwin: assembler.
9929AS="$AS"
9930
9931# The name of the directory that contains temporary libtool files.
9932objdir=$objdir
9933
9934# How to create reloadable object files.
9935reload_flag=$lt_reload_flag
9936reload_cmds=$lt_reload_cmds
9937
9938# How to pass a linker flag through the compiler.
9939wl=$lt_lt_prog_compiler_wl
9940
9941# Object file suffix (normally "o").
9942objext="$ac_objext"
9943
9944# Old archive suffix (normally "a").
9945libext="$libext"
9946
9947# Shared library suffix (normally ".so").
9948shrext_cmds='$shrext_cmds'
9949
9950# Executable file suffix (normally "").
9951exeext="$exeext"
9952
9953# Additional compiler flags for building library objects.
9954pic_flag=$lt_lt_prog_compiler_pic
9955pic_mode=$pic_mode
9956
9957# What is the maximum length of a command?
9958max_cmd_len=$lt_cv_sys_max_cmd_len
9959
9960# Does compiler simultaneously support -c and -o options?
9961compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9962
9963# Must we lock files when doing compilation?
9964need_locks=$lt_need_locks
9965
9966# Do we need the lib prefix for modules?
9967need_lib_prefix=$need_lib_prefix
9968
9969# Do we need a version for libraries?
9970need_version=$need_version
9971
9972# Whether dlopen is supported.
9973dlopen_support=$enable_dlopen
9974
9975# Whether dlopen of programs is supported.
9976dlopen_self=$enable_dlopen_self
9977
9978# Whether dlopen of statically linked programs is supported.
9979dlopen_self_static=$enable_dlopen_self_static
9980
9981# Compiler flag to prevent dynamic linking.
9982link_static_flag=$lt_lt_prog_compiler_static
9983
9984# Compiler flag to turn off builtin functions.
9985no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9986
9987# Compiler flag to allow reflexive dlopens.
9988export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9989
9990# Compiler flag to generate shared objects directly from archives.
9991whole_archive_flag_spec=$lt_whole_archive_flag_spec
9992
9993# Compiler flag to generate thread-safe objects.
9994thread_safe_flag_spec=$lt_thread_safe_flag_spec
9995
9996# Library versioning type.
9997version_type=$version_type
9998
9999# Format of library name prefix.
10000libname_spec=$lt_libname_spec
10001
10002# List of archive names. First name is the real one, the rest are links.
10003# The last name is the one that the linker finds with -lNAME.
10004library_names_spec=$lt_library_names_spec
10005
10006# The coded name of the library, if different from the real name.
10007soname_spec=$lt_soname_spec
10008
10009# Commands used to build and install an old-style archive.
10010RANLIB=$lt_RANLIB
10011old_archive_cmds=$lt_old_archive_cmds
10012old_postinstall_cmds=$lt_old_postinstall_cmds
10013old_postuninstall_cmds=$lt_old_postuninstall_cmds
10014
10015# Create an old-style archive from a shared archive.
10016old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10017
10018# Create a temporary old-style archive to link instead of a shared archive.
10019old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10020
10021# Commands used to build and install a shared archive.
10022archive_cmds=$lt_archive_cmds
10023archive_expsym_cmds=$lt_archive_expsym_cmds
10024postinstall_cmds=$lt_postinstall_cmds
10025postuninstall_cmds=$lt_postuninstall_cmds
10026
10027# Commands used to build a loadable module (assumed same as above if empty)
10028module_cmds=$lt_module_cmds
10029module_expsym_cmds=$lt_module_expsym_cmds
10030
10031# Commands to strip libraries.
10032old_striplib=$lt_old_striplib
10033striplib=$lt_striplib
10034
10035# Dependencies to place before the objects being linked to create a
10036# shared library.
10037predep_objects=$lt_predep_objects
10038
10039# Dependencies to place after the objects being linked to create a
10040# shared library.
10041postdep_objects=$lt_postdep_objects
10042
10043# Dependencies to place before the objects being linked to create a
10044# shared library.
10045predeps=$lt_predeps
10046
10047# Dependencies to place after the objects being linked to create a
10048# shared library.
10049postdeps=$lt_postdeps
10050
10051# The library search path used internally by the compiler when linking
10052# a shared library.
10053compiler_lib_search_path=$lt_compiler_lib_search_path
10054
10055# Method to check whether dependent libraries are shared objects.
10056deplibs_check_method=$lt_deplibs_check_method
10057
10058# Command to use when deplibs_check_method == file_magic.
10059file_magic_cmd=$lt_file_magic_cmd
10060
10061# Flag that allows shared libraries with undefined symbols to be built.
10062allow_undefined_flag=$lt_allow_undefined_flag
10063
10064# Flag that forces no undefined symbols.
10065no_undefined_flag=$lt_no_undefined_flag
10066
10067# Commands used to finish a libtool library installation in a directory.
10068finish_cmds=$lt_finish_cmds
10069
10070# Same as above, but a single script fragment to be evaled but not shown.
10071finish_eval=$lt_finish_eval
10072
10073# Take the output of nm and produce a listing of raw symbols and C names.
10074global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10075
10076# Transform the output of nm in a proper C declaration
10077global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10078
10079# Transform the output of nm in a C name address pair
10080global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10081
10082# This is the shared library runtime path variable.
10083runpath_var=$runpath_var
10084
10085# This is the shared library path variable.
10086shlibpath_var=$shlibpath_var
10087
10088# Is shlibpath searched before the hard-coded library search path?
10089shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10090
10091# How to hardcode a shared library path into an executable.
10092hardcode_action=$hardcode_action
10093
10094# Whether we should hardcode library paths into libraries.
10095hardcode_into_libs=$hardcode_into_libs
10096
10097# Flag to hardcode \$libdir into a binary during linking.
10098# This must work even if \$libdir does not exist.
10099hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10100
10101# If ld is used when linking, flag to hardcode \$libdir into
10102# a binary during linking. This must work even if \$libdir does
10103# not exist.
10104hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10105
10106# Whether we need a single -rpath flag with a separated argument.
10107hardcode_libdir_separator=$lt_hardcode_libdir_separator
10108
10109# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10110# resulting binary.
10111hardcode_direct=$hardcode_direct
10112
10113# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10114# resulting binary.
10115hardcode_minus_L=$hardcode_minus_L
10116
10117# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10118# the resulting binary.
10119hardcode_shlibpath_var=$hardcode_shlibpath_var
10120
10121# Set to yes if building a shared library automatically hardcodes DIR into the library
10122# and all subsequent libraries and executables linked against it.
10123hardcode_automatic=$hardcode_automatic
10124
10125# Variables whose values should be saved in libtool wrapper scripts and
10126# restored at relink time.
10127variables_saved_for_relink="$variables_saved_for_relink"
10128
10129# Whether libtool must link a program against all its dependency libraries.
10130link_all_deplibs=$link_all_deplibs
10131
10132# Compile-time system search path for libraries
10133sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10134
10135# Run-time system search path for libraries
10136sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10137
10138# Fix the shell variable \$srcfile for the compiler.
10139fix_srcfile_path="$fix_srcfile_path"
10140
10141# Set to yes if exported symbols are required.
10142always_export_symbols=$always_export_symbols
10143
10144# The commands to list exported symbols.
10145export_symbols_cmds=$lt_export_symbols_cmds
10146
10147# The commands to extract the exported symbol list from a shared archive.
10148extract_expsyms_cmds=$lt_extract_expsyms_cmds
10149
10150# Symbols that should not be listed in the preloaded symbols.
10151exclude_expsyms=$lt_exclude_expsyms
10152
10153# Symbols that must always be exported.
10154include_expsyms=$lt_include_expsyms
10155
10156# ### END LIBTOOL CONFIG
10157
10158__EOF__
10159
10160
10161 case $host_os in
10162 aix3*)
10163 cat <<\EOF >> "$cfgfile"
10164
10165# AIX sometimes has problems with the GCC collect2 program. For some
10166# reason, if we set the COLLECT_NAMES environment variable, the problems
10167# vanish in a puff of smoke.
10168if test "X${COLLECT_NAMES+set}" != Xset; then
10169 COLLECT_NAMES=
10170 export COLLECT_NAMES
10171fi
10172EOF
10173 ;;
10174 esac
10175
10176 # We use sed instead of cat because bash on DJGPP gets confused if
10177 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10178 # text mode, it properly converts lines to CR/LF. This bash problem
10179 # is reportedly fixed, but why not run on old versions too?
10180 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10181
10182 mv -f "$cfgfile" "$ofile" || \
10183 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10184 chmod +x "$ofile"
10185
10186else
10187 # If there is no Makefile yet, we rely on a make rule to execute
10188 # `config.status --recheck' to rerun these tests and create the
10189 # libtool script then.
10190 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10191 if test -f "$ltmain_in"; then
10192 test -f Makefile && make "$ltmain"
10193 fi
10194fi
10195
10196
10197ac_ext=c
10198ac_cpp='$CPP $CPPFLAGS'
10199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10201ac_compiler_gnu=$ac_cv_c_compiler_gnu
10202
10203CC="$lt_save_CC"
10204
10205
10206# Check whether --with-tags was given.
10207if test "${with_tags+set}" = set; then
10208 withval=$with_tags; tagnames="$withval"
10209fi
10210
10211
10212if test -f "$ltmain" && test -n "$tagnames"; then
10213 if test ! -f "${ofile}"; then
10214 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10215echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10216 fi
10217
10218 if test -z "$LTCC"; then
10219 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10220 if test -z "$LTCC"; then
10221 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10222echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10223 else
10224 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10225echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10226 fi
10227 fi
10228 if test -z "$LTCFLAGS"; then
10229 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10230 fi
10231
10232 # Extract list of available tagged configurations in $ofile.
10233 # Note that this assumes the entire list is on one line.
10234 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10235
10236 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10237 for tagname in $tagnames; do
10238 IFS="$lt_save_ifs"
10239 # Check whether tagname contains only valid characters
10240 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10241 "") ;;
10242 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10243echo "$as_me: error: invalid tag name: $tagname" >&2;}
10244 { (exit 1); exit 1; }; }
10245 ;;
10246 esac
10247
10248 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10249 then
10250 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10251echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10252 { (exit 1); exit 1; }; }
10253 fi
10254
10255 # Update the list of available tags.
10256 if test -n "$tagname"; then
10257 echo appending configuration tag \"$tagname\" to $ofile
10258
10259 case $tagname in
10260 CXX)
10261 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10262 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10263 (test "X$CXX" != "Xg++"))) ; then
10264 ac_ext=cpp
10265ac_cpp='$CXXCPP $CPPFLAGS'
10266ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10267ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10268ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10269
10270
10271
10272
10273archive_cmds_need_lc_CXX=no
10274allow_undefined_flag_CXX=
10275always_export_symbols_CXX=no
10276archive_expsym_cmds_CXX=
10277export_dynamic_flag_spec_CXX=
10278hardcode_direct_CXX=no
10279hardcode_libdir_flag_spec_CXX=
10280hardcode_libdir_flag_spec_ld_CXX=
10281hardcode_libdir_separator_CXX=
10282hardcode_minus_L_CXX=no
10283hardcode_shlibpath_var_CXX=unsupported
10284hardcode_automatic_CXX=no
10285module_cmds_CXX=
10286module_expsym_cmds_CXX=
10287link_all_deplibs_CXX=unknown
10288old_archive_cmds_CXX=$old_archive_cmds
10289no_undefined_flag_CXX=
10290whole_archive_flag_spec_CXX=
10291enable_shared_with_static_runtimes_CXX=no
10292
10293# Dependencies to place before and after the object being linked:
10294predep_objects_CXX=
10295postdep_objects_CXX=
10296predeps_CXX=
10297postdeps_CXX=
10298compiler_lib_search_path_CXX=
10299
10300# Source file extension for C++ test sources.
10301ac_ext=cpp
10302
10303# Object file extension for compiled C++ test sources.
10304objext=o
10305objext_CXX=$objext
10306
10307# Code to be used in simple compile tests
10308lt_simple_compile_test_code="int some_variable = 0;\n"
10309
10310# Code to be used in simple link tests
10311lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10312
10313# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10314
10315# If no C compiler was specified, use CC.
10316LTCC=${LTCC-"$CC"}
10317
10318# If no C compiler flags were specified, use CFLAGS.
10319LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10320
10321# Allow CC to be a program name with arguments.
10322compiler=$CC
10323
10324
10325# save warnings/boilerplate of simple test code
10326ac_outfile=conftest.$ac_objext
10327printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10328eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10329_lt_compiler_boilerplate=`cat conftest.err`
10330$rm conftest*
10331
10332ac_outfile=conftest.$ac_objext
10333printf "$lt_simple_link_test_code" >conftest.$ac_ext
10334eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10335_lt_linker_boilerplate=`cat conftest.err`
10336$rm conftest*
10337
10338
10339# Allow CC to be a program name with arguments.
10340lt_save_CC=$CC
10341lt_save_LD=$LD
10342lt_save_GCC=$GCC
10343GCC=$GXX
10344lt_save_with_gnu_ld=$with_gnu_ld
10345lt_save_path_LD=$lt_cv_path_LD
10346if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10347 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10348else
10349 $as_unset lt_cv_prog_gnu_ld
10350fi
10351if test -n "${lt_cv_path_LDCXX+set}"; then
10352 lt_cv_path_LD=$lt_cv_path_LDCXX
10353else
10354 $as_unset lt_cv_path_LD
10355fi
10356test -z "${LDCXX+set}" || LD=$LDCXX
10357CC=${CXX-"c++"}
10358compiler=$CC
10359compiler_CXX=$CC
10360for cc_temp in $compiler""; do
10361 case $cc_temp in
10362 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10363 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10364 \-*) ;;
10365 *) break;;
10366 esac
10367done
10368cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10369
10370
10371# We don't want -fno-exception wen compiling C++ code, so set the
10372# no_builtin_flag separately
10373if test "$GXX" = yes; then
10374 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10375else
10376 lt_prog_compiler_no_builtin_flag_CXX=
10377fi
10378
10379if test "$GXX" = yes; then
10380 # Set up default GNU C++ configuration
10381
10382
10383# Check whether --with-gnu-ld was given.
10384if test "${with_gnu_ld+set}" = set; then
10385 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10386else
10387 with_gnu_ld=no
10388fi
10389
10390ac_prog=ld
10391if test "$GCC" = yes; then
10392 # Check if gcc -print-prog-name=ld gives a path.
10393 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10394echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10395 case $host in
10396 *-*-mingw*)
10397 # gcc leaves a trailing carriage return which upsets mingw
10398 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10399 *)
10400 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10401 esac
10402 case $ac_prog in
10403 # Accept absolute paths.
10404 [\\/]* | ?:[\\/]*)
10405 re_direlt='/[^/][^/]*/\.\./'
10406 # Canonicalize the pathname of ld
10407 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10408 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10409 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10410 done
10411 test -z "$LD" && LD="$ac_prog"
10412 ;;
10413 "")
10414 # If it fails, then pretend we aren't using GCC.
10415 ac_prog=ld
10416 ;;
10417 *)
10418 # If it is relative, then search for the first ld in PATH.
10419 with_gnu_ld=unknown
10420 ;;
10421 esac
10422elif test "$with_gnu_ld" = yes; then
10423 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10424echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10425else
10426 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10427echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10428fi
10429if test "${lt_cv_path_LD+set}" = set; then
10430 echo $ECHO_N "(cached) $ECHO_C" >&6
10431else
10432 if test -z "$LD"; then
10433 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10434 for ac_dir in $PATH; do
10435 IFS="$lt_save_ifs"
10436 test -z "$ac_dir" && ac_dir=.
10437 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10438 lt_cv_path_LD="$ac_dir/$ac_prog"
10439 # Check to see if the program is GNU ld. I'd rather use --version,
10440 # but apparently some variants of GNU ld only accept -v.
10441 # Break only if it was the GNU/non-GNU ld that we prefer.
10442 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10443 *GNU* | *'with BFD'*)
10444 test "$with_gnu_ld" != no && break
10445 ;;
10446 *)
10447 test "$with_gnu_ld" != yes && break
10448 ;;
10449 esac
10450 fi
10451 done
10452 IFS="$lt_save_ifs"
10453else
10454 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10455fi
10456fi
10457
10458LD="$lt_cv_path_LD"
10459if test -n "$LD"; then
10460 { echo "$as_me:$LINENO: result: $LD" >&5
10461echo "${ECHO_T}$LD" >&6; }
10462else
10463 { echo "$as_me:$LINENO: result: no" >&5
10464echo "${ECHO_T}no" >&6; }
10465fi
10466test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10467echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10468 { (exit 1); exit 1; }; }
10469{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10470echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10471if test "${lt_cv_prog_gnu_ld+set}" = set; then
10472 echo $ECHO_N "(cached) $ECHO_C" >&6
10473else
10474 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10475case `$LD -v 2>&1 </dev/null` in
10476*GNU* | *'with BFD'*)
10477 lt_cv_prog_gnu_ld=yes
10478 ;;
10479*)
10480 lt_cv_prog_gnu_ld=no
10481 ;;
10482esac
10483fi
10484{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10485echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10486with_gnu_ld=$lt_cv_prog_gnu_ld
10487
10488
10489
10490 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10491 # archiving commands below assume that GNU ld is being used.
10492 if test "$with_gnu_ld" = yes; then
10493 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10494 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10495
10496 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10497 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10498
10499 # If archive_cmds runs LD, not CC, wlarc should be empty
10500 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10501 # investigate it a little bit more. (MM)
10502 wlarc='${wl}'
10503
10504 # ancient GNU ld didn't support --whole-archive et. al.
10505 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10506 grep 'no-whole-archive' > /dev/null; then
10507 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10508 else
10509 whole_archive_flag_spec_CXX=
10510 fi
10511 else
10512 with_gnu_ld=no
10513 wlarc=
10514
10515 # A generic and very simple default shared library creation
10516 # command for GNU C++ for the case where it uses the native
10517 # linker, instead of GNU ld. If possible, this setting should
10518 # overridden to take advantage of the native linker features on
10519 # the platform it is being used on.
10520 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10521 fi
10522
10523 # Commands to make compiler produce verbose output that lists
10524 # what "hidden" libraries, object files and flags are used when
10525 # linking a shared library.
10526 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10527
10528else
10529 GXX=no
10530 with_gnu_ld=no
10531 wlarc=
10532fi
10533
10534# PORTME: fill in a description of your system's C++ link characteristics
10535{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10536echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10537ld_shlibs_CXX=yes
10538case $host_os in
10539 aix3*)
10540 # FIXME: insert proper C++ library support
10541 ld_shlibs_CXX=no
10542 ;;
10543 aix4* | aix5*)
10544 if test "$host_cpu" = ia64; then
10545 # On IA64, the linker does run time linking by default, so we don't
10546 # have to do anything special.
10547 aix_use_runtimelinking=no
10548 exp_sym_flag='-Bexport'
10549 no_entry_flag=""
10550 else
10551 aix_use_runtimelinking=no
10552
10553 # Test if we are trying to use run time linking or normal
10554 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10555 # need to do runtime linking.
10556 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10557 for ld_flag in $LDFLAGS; do
10558 case $ld_flag in
10559 *-brtl*)
10560 aix_use_runtimelinking=yes
10561 break
10562 ;;
10563 esac
10564 done
10565 ;;
10566 esac
10567
10568 exp_sym_flag='-bexport'
10569 no_entry_flag='-bnoentry'
10570 fi
10571
10572 # When large executables or shared objects are built, AIX ld can
10573 # have problems creating the table of contents. If linking a library
10574 # or program results in "error TOC overflow" add -mminimal-toc to
10575 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10576 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10577
10578 archive_cmds_CXX=''
10579 hardcode_direct_CXX=yes
10580 hardcode_libdir_separator_CXX=':'
10581 link_all_deplibs_CXX=yes
10582
10583 if test "$GXX" = yes; then
10584 case $host_os in aix4.[012]|aix4.[012].*)
10585 # We only want to do this on AIX 4.2 and lower, the check
10586 # below for broken collect2 doesn't work under 4.3+
10587 collect2name=`${CC} -print-prog-name=collect2`
10588 if test -f "$collect2name" && \
10589 strings "$collect2name" | grep resolve_lib_name >/dev/null
10590 then
10591 # We have reworked collect2
10592 hardcode_direct_CXX=yes
10593 else
10594 # We have old collect2
10595 hardcode_direct_CXX=unsupported
10596 # It fails to find uninstalled libraries when the uninstalled
10597 # path is not listed in the libpath. Setting hardcode_minus_L
10598 # to unsupported forces relinking
10599 hardcode_minus_L_CXX=yes
10600 hardcode_libdir_flag_spec_CXX='-L$libdir'
10601 hardcode_libdir_separator_CXX=
10602 fi
10603 ;;
10604 esac
10605 shared_flag='-shared'
10606 if test "$aix_use_runtimelinking" = yes; then
10607 shared_flag="$shared_flag "'${wl}-G'
10608 fi
10609 else
10610 # not using gcc
10611 if test "$host_cpu" = ia64; then
10612 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10613 # chokes on -Wl,-G. The following line is correct:
10614 shared_flag='-G'
10615 else
10616 if test "$aix_use_runtimelinking" = yes; then
10617 shared_flag='${wl}-G'
10618 else
10619 shared_flag='${wl}-bM:SRE'
10620 fi
10621 fi
10622 fi
10623
10624 # It seems that -bexpall does not export symbols beginning with
10625 # underscore (_), so it is better to generate a list of symbols to export.
10626 always_export_symbols_CXX=yes
10627 if test "$aix_use_runtimelinking" = yes; then
10628 # Warning - without using the other runtime loading flags (-brtl),
10629 # -berok will link without error, but may produce a broken library.
10630 allow_undefined_flag_CXX='-berok'
10631 # Determine the default libpath from the value encoded in an empty executable.
10632 cat >conftest.$ac_ext <<_ACEOF
10633/* confdefs.h. */
10634_ACEOF
10635cat confdefs.h >>conftest.$ac_ext
10636cat >>conftest.$ac_ext <<_ACEOF
10637/* end confdefs.h. */
10638
10639int
10640main ()
10641{
10642
10643 ;
10644 return 0;
10645}
10646_ACEOF
10647rm -f conftest.$ac_objext conftest$ac_exeext
10648if { (ac_try="$ac_link"
10649case "(($ac_try" in
10650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10651 *) ac_try_echo=$ac_try;;
10652esac
10653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10654 (eval "$ac_link") 2>conftest.er1
10655 ac_status=$?
10656 grep -v '^ *+' conftest.er1 >conftest.err
10657 rm -f conftest.er1
10658 cat conftest.err >&5
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); } && {
10661 test -z "$ac_cxx_werror_flag" ||
10662 test ! -s conftest.err
10663 } && test -s conftest$ac_exeext &&
10664 $as_test_x conftest$ac_exeext; then
10665
10666aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10667}'`
10668# Check for a 64-bit object if we didn't find anything.
10669if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10670}'`; fi
10671else
10672 echo "$as_me: failed program was:" >&5
10673sed 's/^/| /' conftest.$ac_ext >&5
10674
10675
10676fi
10677
10678rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10679 conftest$ac_exeext conftest.$ac_ext
10680if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10681
10682 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10683
10684 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10685 else
10686 if test "$host_cpu" = ia64; then
10687 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10688 allow_undefined_flag_CXX="-z nodefs"
10689 archive_expsym_cmds_CXX="\$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"
10690 else
10691 # Determine the default libpath from the value encoded in an empty executable.
10692 cat >conftest.$ac_ext <<_ACEOF
10693/* confdefs.h. */
10694_ACEOF
10695cat confdefs.h >>conftest.$ac_ext
10696cat >>conftest.$ac_ext <<_ACEOF
10697/* end confdefs.h. */
10698
10699int
10700main ()
10701{
10702
10703 ;
10704 return 0;
10705}
10706_ACEOF
10707rm -f conftest.$ac_objext conftest$ac_exeext
10708if { (ac_try="$ac_link"
10709case "(($ac_try" in
10710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10711 *) ac_try_echo=$ac_try;;
10712esac
10713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10714 (eval "$ac_link") 2>conftest.er1
10715 ac_status=$?
10716 grep -v '^ *+' conftest.er1 >conftest.err
10717 rm -f conftest.er1
10718 cat conftest.err >&5
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); } && {
10721 test -z "$ac_cxx_werror_flag" ||
10722 test ! -s conftest.err
10723 } && test -s conftest$ac_exeext &&
10724 $as_test_x conftest$ac_exeext; then
10725
10726aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10727}'`
10728# Check for a 64-bit object if we didn't find anything.
10729if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10730}'`; fi
10731else
10732 echo "$as_me: failed program was:" >&5
10733sed 's/^/| /' conftest.$ac_ext >&5
10734
10735
10736fi
10737
10738rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10739 conftest$ac_exeext conftest.$ac_ext
10740if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10741
10742 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10743 # Warning - without using the other run time loading flags,
10744 # -berok will link without error, but may produce a broken library.
10745 no_undefined_flag_CXX=' ${wl}-bernotok'
10746 allow_undefined_flag_CXX=' ${wl}-berok'
10747 # Exported symbols can be pulled into shared objects from archives
10748 whole_archive_flag_spec_CXX='$convenience'
10749 archive_cmds_need_lc_CXX=yes
10750 # This is similar to how AIX traditionally builds its shared libraries.
10751 archive_expsym_cmds_CXX="\$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'
10752 fi
10753 fi
10754 ;;
10755
10756 beos*)
10757 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10758 allow_undefined_flag_CXX=unsupported
10759 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10760 # support --undefined. This deserves some investigation. FIXME
10761 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10762 else
10763 ld_shlibs_CXX=no
10764 fi
10765 ;;
10766
10767 chorus*)
10768 case $cc_basename in
10769 *)
10770 # FIXME: insert proper C++ library support
10771 ld_shlibs_CXX=no
10772 ;;
10773 esac
10774 ;;
10775
10776 cygwin* | mingw* | pw32*)
10777 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10778 # as there is no search path for DLLs.
10779 hardcode_libdir_flag_spec_CXX='-L$libdir'
10780 allow_undefined_flag_CXX=unsupported
10781 always_export_symbols_CXX=no
10782 enable_shared_with_static_runtimes_CXX=yes
10783
10784 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10785 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10786 # If the export-symbols file already is a .def file (1st line
10787 # is EXPORTS), use it as is; otherwise, prepend...
10788 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10789 cp $export_symbols $output_objdir/$soname.def;
10790 else
10791 echo EXPORTS > $output_objdir/$soname.def;
10792 cat $export_symbols >> $output_objdir/$soname.def;
10793 fi~
10794 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10795 else
10796 ld_shlibs_CXX=no
10797 fi
10798 ;;
10799 darwin* | rhapsody*)
10800 case $host_os in
10801 rhapsody* | darwin1.[012])
10802 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10803 ;;
10804 *) # Darwin 1.3 on
10805 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10806 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10807 else
10808 case ${MACOSX_DEPLOYMENT_TARGET} in
10809 10.[012])
10810 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10811 ;;
10812 10.*)
10813 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10814 ;;
10815 esac
10816 fi
10817 ;;
10818 esac
10819 archive_cmds_need_lc_CXX=no
10820 hardcode_direct_CXX=no
10821 hardcode_automatic_CXX=yes
10822 hardcode_shlibpath_var_CXX=unsupported
10823 whole_archive_flag_spec_CXX=''
10824 link_all_deplibs_CXX=yes
10825
10826 if test "$GXX" = yes ; then
10827 lt_int_apple_cc_single_mod=no
10828 output_verbose_link_cmd='echo'
10829 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10830 lt_int_apple_cc_single_mod=yes
10831 fi
10832 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10833 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10834 else
10835 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10836 fi
10837 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10838 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10839 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10840 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10841 else
10842 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10843 fi
10844 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10845 else
10846 case $cc_basename in
10847 xlc*)
10848 output_verbose_link_cmd='echo'
10849 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10850 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10851 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10852 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10853 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10854 ;;
10855 *)
10856 ld_shlibs_CXX=no
10857 ;;
10858 esac
10859 fi
10860 ;;
10861
10862 dgux*)
10863 case $cc_basename in
10864 ec++*)
10865 # FIXME: insert proper C++ library support
10866 ld_shlibs_CXX=no
10867 ;;
10868 ghcx*)
10869 # Green Hills C++ Compiler
10870 # FIXME: insert proper C++ library support
10871 ld_shlibs_CXX=no
10872 ;;
10873 *)
10874 # FIXME: insert proper C++ library support
10875 ld_shlibs_CXX=no
10876 ;;
10877 esac
10878 ;;
10879 freebsd[12]*)
10880 # C++ shared libraries reported to be fairly broken before switch to ELF
10881 ld_shlibs_CXX=no
10882 ;;
10883 freebsd-elf*)
10884 archive_cmds_need_lc_CXX=no
10885 ;;
10886 freebsd* | kfreebsd*-gnu | dragonfly*)
10887 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10888 # conventions
10889 ld_shlibs_CXX=yes
10890 ;;
10891 gnu*)
10892 ;;
10893 hpux9*)
10894 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10895 hardcode_libdir_separator_CXX=:
10896 export_dynamic_flag_spec_CXX='${wl}-E'
10897 hardcode_direct_CXX=yes
10898 hardcode_minus_L_CXX=yes # Not in the search PATH,
10899 # but as the default
10900 # location of the library.
10901
10902 case $cc_basename in
10903 CC*)
10904 # FIXME: insert proper C++ library support
10905 ld_shlibs_CXX=no
10906 ;;
10907 aCC*)
10908 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10909 # Commands to make compiler produce verbose output that lists
10910 # what "hidden" libraries, object files and flags are used when
10911 # linking a shared library.
10912 #
10913 # There doesn't appear to be a way to prevent this compiler from
10914 # explicitly linking system object files so we need to strip them
10915 # from the output so that they don't get included in the library
10916 # dependencies.
10917 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10918 ;;
10919 *)
10920 if test "$GXX" = yes; then
10921 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10922 else
10923 # FIXME: insert proper C++ library support
10924 ld_shlibs_CXX=no
10925 fi
10926 ;;
10927 esac
10928 ;;
10929 hpux10*|hpux11*)
10930 if test $with_gnu_ld = no; then
10931 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10932 hardcode_libdir_separator_CXX=:
10933
10934 case $host_cpu in
10935 hppa*64*|ia64*)
10936 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10937 ;;
10938 *)
10939 export_dynamic_flag_spec_CXX='${wl}-E'
10940 ;;
10941 esac
10942 fi
10943 case $host_cpu in
10944 hppa*64*|ia64*)
10945 hardcode_direct_CXX=no
10946 hardcode_shlibpath_var_CXX=no
10947 ;;
10948 *)
10949 hardcode_direct_CXX=yes
10950 hardcode_minus_L_CXX=yes # Not in the search PATH,
10951 # but as the default
10952 # location of the library.
10953 ;;
10954 esac
10955
10956 case $cc_basename in
10957 CC*)
10958 # FIXME: insert proper C++ library support
10959 ld_shlibs_CXX=no
10960 ;;
10961 aCC*)
10962 case $host_cpu in
10963 hppa*64*)
10964 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10965 ;;
10966 ia64*)
10967 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10968 ;;
10969 *)
10970 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10971 ;;
10972 esac
10973 # Commands to make compiler produce verbose output that lists
10974 # what "hidden" libraries, object files and flags are used when
10975 # linking a shared library.
10976 #
10977 # There doesn't appear to be a way to prevent this compiler from
10978 # explicitly linking system object files so we need to strip them
10979 # from the output so that they don't get included in the library
10980 # dependencies.
10981 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10982 ;;
10983 *)
10984 if test "$GXX" = yes; then
10985 if test $with_gnu_ld = no; then
10986 case $host_cpu in
10987 hppa*64*)
10988 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10989 ;;
10990 ia64*)
10991 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10992 ;;
10993 *)
10994 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10995 ;;
10996 esac
10997 fi
10998 else
10999 # FIXME: insert proper C++ library support
11000 ld_shlibs_CXX=no
11001 fi
11002 ;;
11003 esac
11004 ;;
11005 interix3*)
11006 hardcode_direct_CXX=no
11007 hardcode_shlibpath_var_CXX=no
11008 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11009 export_dynamic_flag_spec_CXX='${wl}-E'
11010 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11011 # Instead, shared libraries are loaded at an image base (0x10000000 by
11012 # default) and relocated if they conflict, which is a slow very memory
11013 # consuming and fragmenting process. To avoid this, we pick a random,
11014 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11015 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11016 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11017 archive_expsym_cmds_CXX='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'
11018 ;;
11019 irix5* | irix6*)
11020 case $cc_basename in
11021 CC*)
11022 # SGI C++
11023 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11024
11025 # Archives containing C++ object files must be created using
11026 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11027 # necessary to make sure instantiated templates are included
11028 # in the archive.
11029 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11030 ;;
11031 *)
11032 if test "$GXX" = yes; then
11033 if test "$with_gnu_ld" = no; then
11034 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11035 else
11036 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11037 fi
11038 fi
11039 link_all_deplibs_CXX=yes
11040 ;;
11041 esac
11042 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11043 hardcode_libdir_separator_CXX=:
11044 ;;
11045 linux*)
11046 case $cc_basename in
11047 KCC*)
11048 # Kuck and Associates, Inc. (KAI) C++ Compiler
11049
11050 # KCC will only create a shared library if the output file
11051 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11052 # to its proper name (with version) after linking.
11053 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11054 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11055 # Commands to make compiler produce verbose output that lists
11056 # what "hidden" libraries, object files and flags are used when
11057 # linking a shared library.
11058 #
11059 # There doesn't appear to be a way to prevent this compiler from
11060 # explicitly linking system object files so we need to strip them
11061 # from the output so that they don't get included in the library
11062 # dependencies.
11063 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11064
11065 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11066 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11067
11068 # Archives containing C++ object files must be created using
11069 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11070 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11071 ;;
11072 icpc*)
11073 # Intel C++
11074 with_gnu_ld=yes
11075 # version 8.0 and above of icpc choke on multiply defined symbols
11076 # if we add $predep_objects and $postdep_objects, however 7.1 and
11077 # earlier do not add the objects themselves.
11078 case `$CC -V 2>&1` in
11079 *"Version 7."*)
11080 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11081 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11082 ;;
11083 *) # Version 8.0 or newer
11084 tmp_idyn=
11085 case $host_cpu in
11086 ia64*) tmp_idyn=' -i_dynamic';;
11087 esac
11088 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11089 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11090 ;;
11091 esac
11092 archive_cmds_need_lc_CXX=no
11093 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11094 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11095 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11096 ;;
11097 pgCC*)
11098 # Portland Group C++ compiler
11099 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11100 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11101
11102 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11103 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11104 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11105 ;;
11106 cxx*)
11107 # Compaq C++
11108 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11109 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11110
11111 runpath_var=LD_RUN_PATH
11112 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11113 hardcode_libdir_separator_CXX=:
11114
11115 # Commands to make compiler produce verbose output that lists
11116 # what "hidden" libraries, object files and flags are used when
11117 # linking a shared library.
11118 #
11119 # There doesn't appear to be a way to prevent this compiler from
11120 # explicitly linking system object files so we need to strip them
11121 # from the output so that they don't get included in the library
11122 # dependencies.
11123 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11124 ;;
11125 esac
11126 ;;
11127 lynxos*)
11128 # FIXME: insert proper C++ library support
11129 ld_shlibs_CXX=no
11130 ;;
11131 m88k*)
11132 # FIXME: insert proper C++ library support
11133 ld_shlibs_CXX=no
11134 ;;
11135 mvs*)
11136 case $cc_basename in
11137 cxx*)
11138 # FIXME: insert proper C++ library support
11139 ld_shlibs_CXX=no
11140 ;;
11141 *)
11142 # FIXME: insert proper C++ library support
11143 ld_shlibs_CXX=no
11144 ;;
11145 esac
11146 ;;
11147 netbsd*)
11148 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11149 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11150 wlarc=
11151 hardcode_libdir_flag_spec_CXX='-R$libdir'
11152 hardcode_direct_CXX=yes
11153 hardcode_shlibpath_var_CXX=no
11154 fi
11155 # Workaround some broken pre-1.5 toolchains
11156 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11157 ;;
11158 openbsd2*)
11159 # C++ shared libraries are fairly broken
11160 ld_shlibs_CXX=no
11161 ;;
11162 openbsd*)
11163 hardcode_direct_CXX=yes
11164 hardcode_shlibpath_var_CXX=no
11165 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11166 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11167 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11168 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11169 export_dynamic_flag_spec_CXX='${wl}-E'
11170 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11171 fi
11172 output_verbose_link_cmd='echo'
11173 ;;
11174 osf3*)
11175 case $cc_basename in
11176 KCC*)
11177 # Kuck and Associates, Inc. (KAI) C++ Compiler
11178
11179 # KCC will only create a shared library if the output file
11180 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11181 # to its proper name (with version) after linking.
11182 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11183
11184 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11185 hardcode_libdir_separator_CXX=:
11186
11187 # Archives containing C++ object files must be created using
11188 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11189 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11190
11191 ;;
11192 RCC*)
11193 # Rational C++ 2.4.1
11194 # FIXME: insert proper C++ library support
11195 ld_shlibs_CXX=no
11196 ;;
11197 cxx*)
11198 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11199 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11200
11201 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11202 hardcode_libdir_separator_CXX=:
11203
11204 # Commands to make compiler produce verbose output that lists
11205 # what "hidden" libraries, object files and flags are used when
11206 # linking a shared library.
11207 #
11208 # There doesn't appear to be a way to prevent this compiler from
11209 # explicitly linking system object files so we need to strip them
11210 # from the output so that they don't get included in the library
11211 # dependencies.
11212 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11213 ;;
11214 *)
11215 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11216 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11217 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11218
11219 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11220 hardcode_libdir_separator_CXX=:
11221
11222 # Commands to make compiler produce verbose output that lists
11223 # what "hidden" libraries, object files and flags are used when
11224 # linking a shared library.
11225 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11226
11227 else
11228 # FIXME: insert proper C++ library support
11229 ld_shlibs_CXX=no
11230 fi
11231 ;;
11232 esac
11233 ;;
11234 osf4* | osf5*)
11235 case $cc_basename in
11236 KCC*)
11237 # Kuck and Associates, Inc. (KAI) C++ Compiler
11238
11239 # KCC will only create a shared library if the output file
11240 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11241 # to its proper name (with version) after linking.
11242 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11243
11244 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11245 hardcode_libdir_separator_CXX=:
11246
11247 # Archives containing C++ object files must be created using
11248 # the KAI C++ compiler.
11249 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11250 ;;
11251 RCC*)
11252 # Rational C++ 2.4.1
11253 # FIXME: insert proper C++ library support
11254 ld_shlibs_CXX=no
11255 ;;
11256 cxx*)
11257 allow_undefined_flag_CXX=' -expect_unresolved \*'
11258 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11259 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11260 echo "-hidden">> $lib.exp~
11261 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11262 $rm $lib.exp'
11263
11264 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11265 hardcode_libdir_separator_CXX=:
11266
11267 # Commands to make compiler produce verbose output that lists
11268 # what "hidden" libraries, object files and flags are used when
11269 # linking a shared library.
11270 #
11271 # There doesn't appear to be a way to prevent this compiler from
11272 # explicitly linking system object files so we need to strip them
11273 # from the output so that they don't get included in the library
11274 # dependencies.
11275 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11276 ;;
11277 *)
11278 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11279 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11280 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11281
11282 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11283 hardcode_libdir_separator_CXX=:
11284
11285 # Commands to make compiler produce verbose output that lists
11286 # what "hidden" libraries, object files and flags are used when
11287 # linking a shared library.
11288 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11289
11290 else
11291 # FIXME: insert proper C++ library support
11292 ld_shlibs_CXX=no
11293 fi
11294 ;;
11295 esac
11296 ;;
11297 psos*)
11298 # FIXME: insert proper C++ library support
11299 ld_shlibs_CXX=no
11300 ;;
11301 sunos4*)
11302 case $cc_basename in
11303 CC*)
11304 # Sun C++ 4.x
11305 # FIXME: insert proper C++ library support
11306 ld_shlibs_CXX=no
11307 ;;
11308 lcc*)
11309 # Lucid
11310 # FIXME: insert proper C++ library support
11311 ld_shlibs_CXX=no
11312 ;;
11313 *)
11314 # FIXME: insert proper C++ library support
11315 ld_shlibs_CXX=no
11316 ;;
11317 esac
11318 ;;
11319 solaris*)
11320 case $cc_basename in
11321 CC*)
11322 # Sun C++ 4.2, 5.x and Centerline C++
11323 archive_cmds_need_lc_CXX=yes
11324 no_undefined_flag_CXX=' -zdefs'
11325 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11326 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11327 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11328
11329 hardcode_libdir_flag_spec_CXX='-R$libdir'
11330 hardcode_shlibpath_var_CXX=no
11331 case $host_os in
11332 solaris2.[0-5] | solaris2.[0-5].*) ;;
11333 *)
11334 # The C++ compiler is used as linker so we must use $wl
11335 # flag to pass the commands to the underlying system
11336 # linker. We must also pass each convience library through
11337 # to the system linker between allextract/defaultextract.
11338 # The C++ compiler will combine linker options so we
11339 # cannot just pass the convience library names through
11340 # without $wl.
11341 # Supported since Solaris 2.6 (maybe 2.5.1?)
11342 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11343 ;;
11344 esac
11345 link_all_deplibs_CXX=yes
11346
11347 output_verbose_link_cmd='echo'
11348
11349 # Archives containing C++ object files must be created using
11350 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11351 # necessary to make sure instantiated templates are included
11352 # in the archive.
11353 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11354 ;;
11355 gcx*)
11356 # Green Hills C++ Compiler
11357 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11358
11359 # The C++ compiler must be used to create the archive.
11360 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11361 ;;
11362 *)
11363 # GNU C++ compiler with Solaris linker
11364 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11365 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11366 if $CC --version | grep -v '^2\.7' > /dev/null; then
11367 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11368 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11369 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11370
11371 # Commands to make compiler produce verbose output that lists
11372 # what "hidden" libraries, object files and flags are used when
11373 # linking a shared library.
11374 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11375 else
11376 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11377 # platform.
11378 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11379 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11380 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11381
11382 # Commands to make compiler produce verbose output that lists
11383 # what "hidden" libraries, object files and flags are used when
11384 # linking a shared library.
11385 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11386 fi
11387
11388 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11389 fi
11390 ;;
11391 esac
11392 ;;
11393 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11394 no_undefined_flag_CXX='${wl}-z,text'
11395 archive_cmds_need_lc_CXX=no
11396 hardcode_shlibpath_var_CXX=no
11397 runpath_var='LD_RUN_PATH'
11398
11399 case $cc_basename in
11400 CC*)
11401 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11402 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11403 ;;
11404 *)
11405 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11406 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11407 ;;
11408 esac
11409 ;;
11410 sysv5* | sco3.2v5* | sco5v6*)
11411 # Note: We can NOT use -z defs as we might desire, because we do not
11412 # link with -lc, and that would cause any symbols used from libc to
11413 # always be unresolved, which means just about no library would
11414 # ever link correctly. If we're not using GNU ld we use -z text
11415 # though, which does catch some bad symbols but isn't as heavy-handed
11416 # as -z defs.
11417 # For security reasons, it is highly recommended that you always
11418 # use absolute paths for naming shared libraries, and exclude the
11419 # DT_RUNPATH tag from executables and libraries. But doing so
11420 # requires that you compile everything twice, which is a pain.
11421 # So that behaviour is only enabled if SCOABSPATH is set to a
11422 # non-empty value in the environment. Most likely only useful for
11423 # creating official distributions of packages.
11424 # This is a hack until libtool officially supports absolute path
11425 # names for shared libraries.
11426 no_undefined_flag_CXX='${wl}-z,text'
11427 allow_undefined_flag_CXX='${wl}-z,nodefs'
11428 archive_cmds_need_lc_CXX=no
11429 hardcode_shlibpath_var_CXX=no
11430 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11431 hardcode_libdir_separator_CXX=':'
11432 link_all_deplibs_CXX=yes
11433 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11434 runpath_var='LD_RUN_PATH'
11435
11436 case $cc_basename in
11437 CC*)
11438 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11439 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11440 ;;
11441 *)
11442 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11443 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11444 ;;
11445 esac
11446 ;;
11447 tandem*)
11448 case $cc_basename in
11449 NCC*)
11450 # NonStop-UX NCC 3.20
11451 # FIXME: insert proper C++ library support
11452 ld_shlibs_CXX=no
11453 ;;
11454 *)
11455 # FIXME: insert proper C++ library support
11456 ld_shlibs_CXX=no
11457 ;;
11458 esac
11459 ;;
11460 vxworks*)
11461 # FIXME: insert proper C++ library support
11462 ld_shlibs_CXX=no
11463 ;;
11464 *)
11465 # FIXME: insert proper C++ library support
11466 ld_shlibs_CXX=no
11467 ;;
11468esac
11469{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11470echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11471test "$ld_shlibs_CXX" = no && can_build_shared=no
11472
11473GCC_CXX="$GXX"
11474LD_CXX="$LD"
11475
11476
11477cat > conftest.$ac_ext <<EOF
11478class Foo
11479{
11480public:
11481 Foo (void) { a = 0; }
11482private:
11483 int a;
11484};
11485EOF
11486
11487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11488 (eval $ac_compile) 2>&5
11489 ac_status=$?
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); }; then
11492 # Parse the compiler output and extract the necessary
11493 # objects, libraries and library flags.
11494
11495 # Sentinel used to keep track of whether or not we are before
11496 # the conftest object file.
11497 pre_test_object_deps_done=no
11498
11499 # The `*' in the case matches for architectures that use `case' in
11500 # $output_verbose_cmd can trigger glob expansion during the loop
11501 # eval without this substitution.
11502 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11503
11504 for p in `eval $output_verbose_link_cmd`; do
11505 case $p in
11506
11507 -L* | -R* | -l*)
11508 # Some compilers place space between "-{L,R}" and the path.
11509 # Remove the space.
11510 if test $p = "-L" \
11511 || test $p = "-R"; then
11512 prev=$p
11513 continue
11514 else
11515 prev=
11516 fi
11517
11518 if test "$pre_test_object_deps_done" = no; then
11519 case $p in
11520 -L* | -R*)
11521 # Internal compiler library paths should come after those
11522 # provided the user. The postdeps already come after the
11523 # user supplied libs so there is no need to process them.
11524 if test -z "$compiler_lib_search_path_CXX"; then
11525 compiler_lib_search_path_CXX="${prev}${p}"
11526 else
11527 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11528 fi
11529 ;;
11530 # The "-l" case would never come before the object being
11531 # linked, so don't bother handling this case.
11532 esac
11533 else
11534 if test -z "$postdeps_CXX"; then
11535 postdeps_CXX="${prev}${p}"
11536 else
11537 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11538 fi
11539 fi
11540 ;;
11541
11542 *.$objext)
11543 # This assumes that the test object file only shows up
11544 # once in the compiler output.
11545 if test "$p" = "conftest.$objext"; then
11546 pre_test_object_deps_done=yes
11547 continue
11548 fi
11549
11550 if test "$pre_test_object_deps_done" = no; then
11551 if test -z "$predep_objects_CXX"; then
11552 predep_objects_CXX="$p"
11553 else
11554 predep_objects_CXX="$predep_objects_CXX $p"
11555 fi
11556 else
11557 if test -z "$postdep_objects_CXX"; then
11558 postdep_objects_CXX="$p"
11559 else
11560 postdep_objects_CXX="$postdep_objects_CXX $p"
11561 fi
11562 fi
11563 ;;
11564
11565 *) ;; # Ignore the rest.
11566
11567 esac
11568 done
11569
11570 # Clean up.
11571 rm -f a.out a.exe
11572else
11573 echo "libtool.m4: error: problem compiling CXX test program"
11574fi
11575
11576$rm -f confest.$objext
11577
11578# PORTME: override above test on systems where it is broken
11579case $host_os in
11580interix3*)
11581 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11582 # hack all around it, let's just trust "g++" to DTRT.
11583 predep_objects_CXX=
11584 postdep_objects_CXX=
11585 postdeps_CXX=
11586 ;;
11587
11588solaris*)
11589 case $cc_basename in
11590 CC*)
11591 # Adding this requires a known-good setup of shared libraries for
11592 # Sun compiler versions before 5.6, else PIC objects from an old
11593 # archive will be linked into the output, leading to subtle bugs.
11594 postdeps_CXX='-lCstd -lCrun'
11595 ;;
11596 esac
11597 ;;
11598esac
11599
11600
11601case " $postdeps_CXX " in
11602*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11603esac
11604
11605lt_prog_compiler_wl_CXX=
11606lt_prog_compiler_pic_CXX=
11607lt_prog_compiler_static_CXX=
11608
11609{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11610echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11611
11612 # C++ specific cases for pic, static, wl, etc.
11613 if test "$GXX" = yes; then
11614 lt_prog_compiler_wl_CXX='-Wl,'
11615 lt_prog_compiler_static_CXX='-static'
11616
11617 case $host_os in
11618 aix*)
11619 # All AIX code is PIC.
11620 if test "$host_cpu" = ia64; then
11621 # AIX 5 now supports IA64 processor
11622 lt_prog_compiler_static_CXX='-Bstatic'
11623 fi
11624 ;;
11625 amigaos*)
11626 # FIXME: we need at least 68020 code to build shared libraries, but
11627 # adding the `-m68020' flag to GCC prevents building anything better,
11628 # like `-m68040'.
11629 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11630 ;;
11631 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11632 # PIC is the default for these OSes.
11633 ;;
11634 mingw* | os2* | pw32*)
11635 # This hack is so that the source file can tell whether it is being
11636 # built for inclusion in a dll (and should export symbols for example).
11637 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11638 ;;
11639 darwin* | rhapsody*)
11640 # PIC is the default on this platform
11641 # Common symbols not allowed in MH_DYLIB files
11642 lt_prog_compiler_pic_CXX='-fno-common'
11643 ;;
11644 *djgpp*)
11645 # DJGPP does not support shared libraries at all
11646 lt_prog_compiler_pic_CXX=
11647 ;;
11648 interix3*)
11649 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11650 # Instead, we relocate shared libraries at runtime.
11651 ;;
11652 sysv4*MP*)
11653 if test -d /usr/nec; then
11654 lt_prog_compiler_pic_CXX=-Kconform_pic
11655 fi
11656 ;;
11657 hpux*)
11658 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11659 # not for PA HP-UX.
11660 case $host_cpu in
11661 hppa*64*|ia64*)
11662 ;;
11663 *)
11664 lt_prog_compiler_pic_CXX='-fPIC'
11665 ;;
11666 esac
11667 ;;
11668 *)
11669 lt_prog_compiler_pic_CXX='-fPIC'
11670 ;;
11671 esac
11672 else
11673 case $host_os in
11674 aix4* | aix5*)
11675 # All AIX code is PIC.
11676 if test "$host_cpu" = ia64; then
11677 # AIX 5 now supports IA64 processor
11678 lt_prog_compiler_static_CXX='-Bstatic'
11679 else
11680 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11681 fi
11682 ;;
11683 chorus*)
11684 case $cc_basename in
11685 cxch68*)
11686 # Green Hills C++ Compiler
11687 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11688 ;;
11689 esac
11690 ;;
11691 darwin*)
11692 # PIC is the default on this platform
11693 # Common symbols not allowed in MH_DYLIB files
11694 case $cc_basename in
11695 xlc*)
11696 lt_prog_compiler_pic_CXX='-qnocommon'
11697 lt_prog_compiler_wl_CXX='-Wl,'
11698 ;;
11699 esac
11700 ;;
11701 dgux*)
11702 case $cc_basename in
11703 ec++*)
11704 lt_prog_compiler_pic_CXX='-KPIC'
11705 ;;
11706 ghcx*)
11707 # Green Hills C++ Compiler
11708 lt_prog_compiler_pic_CXX='-pic'
11709 ;;
11710 *)
11711 ;;
11712 esac
11713 ;;
11714 freebsd* | kfreebsd*-gnu | dragonfly*)
11715 # FreeBSD uses GNU C++
11716 ;;
11717 hpux9* | hpux10* | hpux11*)
11718 case $cc_basename in
11719 CC*)
11720 lt_prog_compiler_wl_CXX='-Wl,'
11721 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11722 if test "$host_cpu" != ia64; then
11723 lt_prog_compiler_pic_CXX='+Z'
11724 fi
11725 ;;
11726 aCC*)
11727 lt_prog_compiler_wl_CXX='-Wl,'
11728 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11729 case $host_cpu in
11730 hppa*64*|ia64*)
11731 # +Z the default
11732 ;;
11733 *)
11734 lt_prog_compiler_pic_CXX='+Z'
11735 ;;
11736 esac
11737 ;;
11738 *)
11739 ;;
11740 esac
11741 ;;
11742 interix*)
11743 # This is c89, which is MS Visual C++ (no shared libs)
11744 # Anyone wants to do a port?
11745 ;;
11746 irix5* | irix6* | nonstopux*)
11747 case $cc_basename in
11748 CC*)
11749 lt_prog_compiler_wl_CXX='-Wl,'
11750 lt_prog_compiler_static_CXX='-non_shared'
11751 # CC pic flag -KPIC is the default.
11752 ;;
11753 *)
11754 ;;
11755 esac
11756 ;;
11757 linux*)
11758 case $cc_basename in
11759 KCC*)
11760 # KAI C++ Compiler
11761 lt_prog_compiler_wl_CXX='--backend -Wl,'
11762 lt_prog_compiler_pic_CXX='-fPIC'
11763 ;;
11764 icpc* | ecpc*)
11765 # Intel C++
11766 lt_prog_compiler_wl_CXX='-Wl,'
11767 lt_prog_compiler_pic_CXX='-KPIC'
11768 lt_prog_compiler_static_CXX='-static'
11769 ;;
11770 pgCC*)
11771 # Portland Group C++ compiler.
11772 lt_prog_compiler_wl_CXX='-Wl,'
11773 lt_prog_compiler_pic_CXX='-fpic'
11774 lt_prog_compiler_static_CXX='-Bstatic'
11775 ;;
11776 cxx*)
11777 # Compaq C++
11778 # Make sure the PIC flag is empty. It appears that all Alpha
11779 # Linux and Compaq Tru64 Unix objects are PIC.
11780 lt_prog_compiler_pic_CXX=
11781 lt_prog_compiler_static_CXX='-non_shared'
11782 ;;
11783 *)
11784 ;;
11785 esac
11786 ;;
11787 lynxos*)
11788 ;;
11789 m88k*)
11790 ;;
11791 mvs*)
11792 case $cc_basename in
11793 cxx*)
11794 lt_prog_compiler_pic_CXX='-W c,exportall'
11795 ;;
11796 *)
11797 ;;
11798 esac
11799 ;;
11800 netbsd*)
11801 ;;
11802 osf3* | osf4* | osf5*)
11803 case $cc_basename in
11804 KCC*)
11805 lt_prog_compiler_wl_CXX='--backend -Wl,'
11806 ;;
11807 RCC*)
11808 # Rational C++ 2.4.1
11809 lt_prog_compiler_pic_CXX='-pic'
11810 ;;
11811 cxx*)
11812 # Digital/Compaq C++
11813 lt_prog_compiler_wl_CXX='-Wl,'
11814 # Make sure the PIC flag is empty. It appears that all Alpha
11815 # Linux and Compaq Tru64 Unix objects are PIC.
11816 lt_prog_compiler_pic_CXX=
11817 lt_prog_compiler_static_CXX='-non_shared'
11818 ;;
11819 *)
11820 ;;
11821 esac
11822 ;;
11823 psos*)
11824 ;;
11825 solaris*)
11826 case $cc_basename in
11827 CC*)
11828 # Sun C++ 4.2, 5.x and Centerline C++
11829 lt_prog_compiler_pic_CXX='-KPIC'
11830 lt_prog_compiler_static_CXX='-Bstatic'
11831 lt_prog_compiler_wl_CXX='-Qoption ld '
11832 ;;
11833 gcx*)
11834 # Green Hills C++ Compiler
11835 lt_prog_compiler_pic_CXX='-PIC'
11836 ;;
11837 *)
11838 ;;
11839 esac
11840 ;;
11841 sunos4*)
11842 case $cc_basename in
11843 CC*)
11844 # Sun C++ 4.x
11845 lt_prog_compiler_pic_CXX='-pic'
11846 lt_prog_compiler_static_CXX='-Bstatic'
11847 ;;
11848 lcc*)
11849 # Lucid
11850 lt_prog_compiler_pic_CXX='-pic'
11851 ;;
11852 *)
11853 ;;
11854 esac
11855 ;;
11856 tandem*)
11857 case $cc_basename in
11858 NCC*)
11859 # NonStop-UX NCC 3.20
11860 lt_prog_compiler_pic_CXX='-KPIC'
11861 ;;
11862 *)
11863 ;;
11864 esac
11865 ;;
11866 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11867 case $cc_basename in
11868 CC*)
11869 lt_prog_compiler_wl_CXX='-Wl,'
11870 lt_prog_compiler_pic_CXX='-KPIC'
11871 lt_prog_compiler_static_CXX='-Bstatic'
11872 ;;
11873 esac
11874 ;;
11875 vxworks*)
11876 ;;
11877 *)
11878 lt_prog_compiler_can_build_shared_CXX=no
11879 ;;
11880 esac
11881 fi
11882
11883{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11884echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11885
11886#
11887# Check to make sure the PIC flag actually works.
11888#
11889if test -n "$lt_prog_compiler_pic_CXX"; then
11890
11891{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11892echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11893if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11894 echo $ECHO_N "(cached) $ECHO_C" >&6
11895else
11896 lt_prog_compiler_pic_works_CXX=no
11897 ac_outfile=conftest.$ac_objext
11898 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11899 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11900 # Insert the option either (1) after the last *FLAGS variable, or
11901 # (2) before a word containing "conftest.", or (3) at the end.
11902 # Note that $ac_compile itself does not contain backslashes and begins
11903 # with a dollar sign (not a hyphen), so the echo should work correctly.
11904 # The option is referenced via a variable to avoid confusing sed.
11905 lt_compile=`echo "$ac_compile" | $SED \
11906 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11907 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11908 -e 's:$: $lt_compiler_flag:'`
11909 (eval echo "\"\$as_me:11909: $lt_compile\"" >&5)
11910 (eval "$lt_compile" 2>conftest.err)
11911 ac_status=$?
11912 cat conftest.err >&5
11913 echo "$as_me:11913: \$? = $ac_status" >&5
11914 if (exit $ac_status) && test -s "$ac_outfile"; then
11915 # The compiler can only warn and ignore the option if not recognized
11916 # So say no if there are warnings other than the usual output.
11917 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11918 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11919 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11920 lt_prog_compiler_pic_works_CXX=yes
11921 fi
11922 fi
11923 $rm conftest*
11924
11925fi
11926{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11927echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11928
11929if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11930 case $lt_prog_compiler_pic_CXX in
11931 "" | " "*) ;;
11932 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11933 esac
11934else
11935 lt_prog_compiler_pic_CXX=
11936 lt_prog_compiler_can_build_shared_CXX=no
11937fi
11938
11939fi
11940case $host_os in
11941 # For platforms which do not support PIC, -DPIC is meaningless:
11942 *djgpp*)
11943 lt_prog_compiler_pic_CXX=
11944 ;;
11945 *)
11946 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11947 ;;
11948esac
11949
11950#
11951# Check to make sure the static flag actually works.
11952#
11953wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11954{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11955echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
11956if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11957 echo $ECHO_N "(cached) $ECHO_C" >&6
11958else
11959 lt_prog_compiler_static_works_CXX=no
11960 save_LDFLAGS="$LDFLAGS"
11961 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11962 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11963 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11964 # The linker can only warn and ignore the option if not recognized
11965 # So say no if there are warnings
11966 if test -s conftest.err; then
11967 # Append any errors to the config.log.
11968 cat conftest.err 1>&5
11969 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11970 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11971 if diff conftest.exp conftest.er2 >/dev/null; then
11972 lt_prog_compiler_static_works_CXX=yes
11973 fi
11974 else
11975 lt_prog_compiler_static_works_CXX=yes
11976 fi
11977 fi
11978 $rm conftest*
11979 LDFLAGS="$save_LDFLAGS"
11980
11981fi
11982{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11983echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
11984
11985if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11986 :
11987else
11988 lt_prog_compiler_static_CXX=
11989fi
11990
11991
11992{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11993echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11994if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11995 echo $ECHO_N "(cached) $ECHO_C" >&6
11996else
11997 lt_cv_prog_compiler_c_o_CXX=no
11998 $rm -r conftest 2>/dev/null
11999 mkdir conftest
12000 cd conftest
12001 mkdir out
12002 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12003
12004 lt_compiler_flag="-o out/conftest2.$ac_objext"
12005 # Insert the option either (1) after the last *FLAGS variable, or
12006 # (2) before a word containing "conftest.", or (3) at the end.
12007 # Note that $ac_compile itself does not contain backslashes and begins
12008 # with a dollar sign (not a hyphen), so the echo should work correctly.
12009 lt_compile=`echo "$ac_compile" | $SED \
12010 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12012 -e 's:$: $lt_compiler_flag:'`
12013 (eval echo "\"\$as_me:12013: $lt_compile\"" >&5)
12014 (eval "$lt_compile" 2>out/conftest.err)
12015 ac_status=$?
12016 cat out/conftest.err >&5
12017 echo "$as_me:12017: \$? = $ac_status" >&5
12018 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12019 then
12020 # The compiler can only warn and ignore the option if not recognized
12021 # So say no if there are warnings
12022 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12023 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12024 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12025 lt_cv_prog_compiler_c_o_CXX=yes
12026 fi
12027 fi
12028 chmod u+w . 2>&5
12029 $rm conftest*
12030 # SGI C++ compiler will create directory out/ii_files/ for
12031 # template instantiation
12032 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12033 $rm out/* && rmdir out
12034 cd ..
12035 rmdir conftest
12036 $rm conftest*
12037
12038fi
12039{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12040echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12041
12042
12043hard_links="nottested"
12044if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12045 # do not overwrite the value of need_locks provided by the user
12046 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12047echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12048 hard_links=yes
12049 $rm conftest*
12050 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12051 touch conftest.a
12052 ln conftest.a conftest.b 2>&5 || hard_links=no
12053 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12054 { echo "$as_me:$LINENO: result: $hard_links" >&5
12055echo "${ECHO_T}$hard_links" >&6; }
12056 if test "$hard_links" = no; then
12057 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12058echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12059 need_locks=warn
12060 fi
12061else
12062 need_locks=no
12063fi
12064
12065{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12066echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12067
12068 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12069 case $host_os in
12070 aix4* | aix5*)
12071 # If we're using GNU nm, then we don't want the "-C" option.
12072 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12073 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12074 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12075 else
12076 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12077 fi
12078 ;;
12079 pw32*)
12080 export_symbols_cmds_CXX="$ltdll_cmds"
12081 ;;
12082 cygwin* | mingw*)
12083 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12084 ;;
12085 *)
12086 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12087 ;;
12088 esac
12089
12090{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12091echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12092test "$ld_shlibs_CXX" = no && can_build_shared=no
12093
12094#
12095# Do we need to explicitly link libc?
12096#
12097case "x$archive_cmds_need_lc_CXX" in
12098x|xyes)
12099 # Assume -lc should be added
12100 archive_cmds_need_lc_CXX=yes
12101
12102 if test "$enable_shared" = yes && test "$GCC" = yes; then
12103 case $archive_cmds_CXX in
12104 *'~'*)
12105 # FIXME: we may have to deal with multi-command sequences.
12106 ;;
12107 '$CC '*)
12108 # Test whether the compiler implicitly links with -lc since on some
12109 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12110 # to ld, don't add -lc before -lgcc.
12111 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12112echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12113 $rm conftest*
12114 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12115
12116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12117 (eval $ac_compile) 2>&5
12118 ac_status=$?
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); } 2>conftest.err; then
12121 soname=conftest
12122 lib=conftest
12123 libobjs=conftest.$ac_objext
12124 deplibs=
12125 wl=$lt_prog_compiler_wl_CXX
12126 pic_flag=$lt_prog_compiler_pic_CXX
12127 compiler_flags=-v
12128 linker_flags=-v
12129 verstring=
12130 output_objdir=.
12131 libname=conftest
12132 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12133 allow_undefined_flag_CXX=
12134 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12135 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12136 ac_status=$?
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); }
12139 then
12140 archive_cmds_need_lc_CXX=no
12141 else
12142 archive_cmds_need_lc_CXX=yes
12143 fi
12144 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12145 else
12146 cat conftest.err 1>&5
12147 fi
12148 $rm conftest*
12149 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12150echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12151 ;;
12152 esac
12153 fi
12154 ;;
12155esac
12156
12157{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12158echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12159library_names_spec=
12160libname_spec='lib$name'
12161soname_spec=
12162shrext_cmds=".so"
12163postinstall_cmds=
12164postuninstall_cmds=
12165finish_cmds=
12166finish_eval=
12167shlibpath_var=
12168shlibpath_overrides_runpath=unknown
12169version_type=none
12170dynamic_linker="$host_os ld.so"
12171sys_lib_dlsearch_path_spec="/lib /usr/lib"
12172if test "$GCC" = yes; then
12173 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12174 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12175 # if the path contains ";" then we assume it to be the separator
12176 # otherwise default to the standard path separator (i.e. ":") - it is
12177 # assumed that no part of a normal pathname contains ";" but that should
12178 # okay in the real world where ";" in dirpaths is itself problematic.
12179 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12180 else
12181 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12182 fi
12183else
12184 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12185fi
12186need_lib_prefix=unknown
12187hardcode_into_libs=no
12188
12189# when you set need_version to no, make sure it does not cause -set_version
12190# flags to be left without arguments
12191need_version=unknown
12192
12193case $host_os in
12194aix3*)
12195 version_type=linux
12196 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12197 shlibpath_var=LIBPATH
12198
12199 # AIX 3 has no versioning support, so we append a major version to the name.
12200 soname_spec='${libname}${release}${shared_ext}$major'
12201 ;;
12202
12203aix4* | aix5*)
12204 version_type=linux
12205 need_lib_prefix=no
12206 need_version=no
12207 hardcode_into_libs=yes
12208 if test "$host_cpu" = ia64; then
12209 # AIX 5 supports IA64
12210 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12211 shlibpath_var=LD_LIBRARY_PATH
12212 else
12213 # With GCC up to 2.95.x, collect2 would create an import file
12214 # for dependence libraries. The import file would start with
12215 # the line `#! .'. This would cause the generated library to
12216 # depend on `.', always an invalid library. This was fixed in
12217 # development snapshots of GCC prior to 3.0.
12218 case $host_os in
12219 aix4 | aix4.[01] | aix4.[01].*)
12220 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12221 echo ' yes '
12222 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12223 :
12224 else
12225 can_build_shared=no
12226 fi
12227 ;;
12228 esac
12229 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12230 # soname into executable. Probably we can add versioning support to
12231 # collect2, so additional links can be useful in future.
12232 if test "$aix_use_runtimelinking" = yes; then
12233 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12234 # instead of lib<name>.a to let people know that these are not
12235 # typical AIX shared libraries.
12236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12237 else
12238 # We preserve .a as extension for shared libraries through AIX4.2
12239 # and later when we are not doing run time linking.
12240 library_names_spec='${libname}${release}.a $libname.a'
12241 soname_spec='${libname}${release}${shared_ext}$major'
12242 fi
12243 shlibpath_var=LIBPATH
12244 fi
12245 ;;
12246
12247amigaos*)
12248 library_names_spec='$libname.ixlibrary $libname.a'
12249 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12250 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'
12251 ;;
12252
12253beos*)
12254 library_names_spec='${libname}${shared_ext}'
12255 dynamic_linker="$host_os ld.so"
12256 shlibpath_var=LIBRARY_PATH
12257 ;;
12258
12259bsdi[45]*)
12260 version_type=linux
12261 need_version=no
12262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12263 soname_spec='${libname}${release}${shared_ext}$major'
12264 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12265 shlibpath_var=LD_LIBRARY_PATH
12266 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12267 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12268 # the default ld.so.conf also contains /usr/contrib/lib and
12269 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12270 # libtool to hard-code these into programs
12271 ;;
12272
12273cygwin* | mingw* | pw32*)
12274 version_type=windows
12275 shrext_cmds=".dll"
12276 need_version=no
12277 need_lib_prefix=no
12278
12279 case $GCC,$host_os in
12280 yes,cygwin* | yes,mingw* | yes,pw32*)
12281 library_names_spec='$libname.dll.a'
12282 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12283 postinstall_cmds='base_file=`basename \${file}`~
12284 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12285 dldir=$destdir/`dirname \$dlpath`~
12286 test -d \$dldir || mkdir -p \$dldir~
12287 $install_prog $dir/$dlname \$dldir/$dlname~
12288 chmod a+x \$dldir/$dlname'
12289 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12290 dlpath=$dir/\$dldll~
12291 $rm \$dlpath'
12292 shlibpath_overrides_runpath=yes
12293
12294 case $host_os in
12295 cygwin*)
12296 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12297 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12298 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12299 ;;
12300 mingw*)
12301 # MinGW DLLs use traditional 'lib' prefix
12302 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12303 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12304 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12305 # It is most probably a Windows format PATH printed by
12306 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12307 # path with ; separators, and with drive letters. We can handle the
12308 # drive letters (cygwin fileutils understands them), so leave them,
12309 # especially as we might pass files found there to a mingw objdump,
12310 # which wouldn't understand a cygwinified path. Ahh.
12311 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12312 else
12313 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12314 fi
12315 ;;
12316 pw32*)
12317 # pw32 DLLs use 'pw' prefix rather than 'lib'
12318 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12319 ;;
12320 esac
12321 ;;
12322
12323 linux*)
12324 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12325 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12326 supports_anon_versioning=no
12327 case `$LD -v 2>/dev/null` in
12328 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12329 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12330 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12331 *\ 2.11.*) ;; # other 2.11 versions
12332 *) supports_anon_versioning=yes ;;
12333 esac
12334 if test $supports_anon_versioning = yes; then
12335 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12336cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12337$echo "local: *; };" >> $output_objdir/$libname.ver~
12338 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12339 else
12340 $archive_expsym_cmds="$archive_cmds"
12341 fi
12342 else
12343 ld_shlibs=no
12344 fi
12345 ;;
12346
12347 *)
12348 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12349 ;;
12350 esac
12351 dynamic_linker='Win32 ld.exe'
12352 # FIXME: first we should search . and the directory the executable is in
12353 shlibpath_var=PATH
12354 ;;
12355
12356darwin* | rhapsody*)
12357 dynamic_linker="$host_os dyld"
12358 version_type=darwin
12359 need_lib_prefix=no
12360 need_version=no
12361 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12362 soname_spec='${libname}${release}${major}$shared_ext'
12363 shlibpath_overrides_runpath=yes
12364 shlibpath_var=DYLD_LIBRARY_PATH
12365 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12366 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12367 if test "$GCC" = yes; then
12368 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12369 else
12370 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12371 fi
12372 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12373 ;;
12374
12375dgux*)
12376 version_type=linux
12377 need_lib_prefix=no
12378 need_version=no
12379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12380 soname_spec='${libname}${release}${shared_ext}$major'
12381 shlibpath_var=LD_LIBRARY_PATH
12382 ;;
12383
12384freebsd1*)
12385 dynamic_linker=no
12386 ;;
12387
12388kfreebsd*-gnu)
12389 version_type=linux
12390 need_lib_prefix=no
12391 need_version=no
12392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12393 soname_spec='${libname}${release}${shared_ext}$major'
12394 shlibpath_var=LD_LIBRARY_PATH
12395 shlibpath_overrides_runpath=no
12396 hardcode_into_libs=yes
12397 dynamic_linker='GNU ld.so'
12398 ;;
12399
12400freebsd* | dragonfly*)
12401 # DragonFly does not have aout. When/if they implement a new
12402 # versioning mechanism, adjust this.
12403 if test -x /usr/bin/objformat; then
12404 objformat=`/usr/bin/objformat`
12405 else
12406 case $host_os in
12407 freebsd[123]*) objformat=aout ;;
12408 *) objformat=elf ;;
12409 esac
12410 fi
12411 # Handle Gentoo/FreeBSD as it was Linux
12412 case $host_vendor in
12413 gentoo)
12414 version_type=linux ;;
12415 *)
12416 version_type=freebsd-$objformat ;;
12417 esac
12418
12419 case $version_type in
12420 freebsd-elf*)
12421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12422 need_version=no
12423 need_lib_prefix=no
12424 ;;
12425 freebsd-*)
12426 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12427 need_version=yes
12428 ;;
12429 linux)
12430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12431 soname_spec='${libname}${release}${shared_ext}$major'
12432 need_lib_prefix=no
12433 need_version=no
12434 ;;
12435 esac
12436 shlibpath_var=LD_LIBRARY_PATH
12437 case $host_os in
12438 freebsd2*)
12439 shlibpath_overrides_runpath=yes
12440 ;;
12441 freebsd3.[01]* | freebsdelf3.[01]*)
12442 shlibpath_overrides_runpath=yes
12443 hardcode_into_libs=yes
12444 ;;
12445 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12446 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12447 shlibpath_overrides_runpath=no
12448 hardcode_into_libs=yes
12449 ;;
12450 freebsd*) # from 4.6 on
12451 shlibpath_overrides_runpath=yes
12452 hardcode_into_libs=yes
12453 ;;
12454 esac
12455 ;;
12456
12457gnu*)
12458 version_type=linux
12459 need_lib_prefix=no
12460 need_version=no
12461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12462 soname_spec='${libname}${release}${shared_ext}$major'
12463 shlibpath_var=LD_LIBRARY_PATH
12464 hardcode_into_libs=yes
12465 ;;
12466
12467hpux9* | hpux10* | hpux11*)
12468 # Give a soname corresponding to the major version so that dld.sl refuses to
12469 # link against other versions.
12470 version_type=sunos
12471 need_lib_prefix=no
12472 need_version=no
12473 case $host_cpu in
12474 ia64*)
12475 shrext_cmds='.so'
12476 hardcode_into_libs=yes
12477 dynamic_linker="$host_os dld.so"
12478 shlibpath_var=LD_LIBRARY_PATH
12479 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12481 soname_spec='${libname}${release}${shared_ext}$major'
12482 if test "X$HPUX_IA64_MODE" = X32; then
12483 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12484 else
12485 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12486 fi
12487 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12488 ;;
12489 hppa*64*)
12490 shrext_cmds='.sl'
12491 hardcode_into_libs=yes
12492 dynamic_linker="$host_os dld.sl"
12493 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12494 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12496 soname_spec='${libname}${release}${shared_ext}$major'
12497 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12498 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12499 ;;
12500 *)
12501 shrext_cmds='.sl'
12502 dynamic_linker="$host_os dld.sl"
12503 shlibpath_var=SHLIB_PATH
12504 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12506 soname_spec='${libname}${release}${shared_ext}$major'
12507 ;;
12508 esac
12509 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12510 postinstall_cmds='chmod 555 $lib'
12511 ;;
12512
12513interix3*)
12514 version_type=linux
12515 need_lib_prefix=no
12516 need_version=no
12517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12518 soname_spec='${libname}${release}${shared_ext}$major'
12519 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12520 shlibpath_var=LD_LIBRARY_PATH
12521 shlibpath_overrides_runpath=no
12522 hardcode_into_libs=yes
12523 ;;
12524
12525irix5* | irix6* | nonstopux*)
12526 case $host_os in
12527 nonstopux*) version_type=nonstopux ;;
12528 *)
12529 if test "$lt_cv_prog_gnu_ld" = yes; then
12530 version_type=linux
12531 else
12532 version_type=irix
12533 fi ;;
12534 esac
12535 need_lib_prefix=no
12536 need_version=no
12537 soname_spec='${libname}${release}${shared_ext}$major'
12538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12539 case $host_os in
12540 irix5* | nonstopux*)
12541 libsuff= shlibsuff=
12542 ;;
12543 *)
12544 case $LD in # libtool.m4 will add one of these switches to LD
12545 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12546 libsuff= shlibsuff= libmagic=32-bit;;
12547 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12548 libsuff=32 shlibsuff=N32 libmagic=N32;;
12549 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12550 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12551 *) libsuff= shlibsuff= libmagic=never-match;;
12552 esac
12553 ;;
12554 esac
12555 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12556 shlibpath_overrides_runpath=no
12557 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12558 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12559 hardcode_into_libs=yes
12560 ;;
12561
12562# No shared lib support for Linux oldld, aout, or coff.
12563linux*oldld* | linux*aout* | linux*coff*)
12564 dynamic_linker=no
12565 ;;
12566
12567# This must be Linux ELF.
12568linux*)
12569 version_type=linux
12570 need_lib_prefix=no
12571 need_version=no
12572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12573 soname_spec='${libname}${release}${shared_ext}$major'
12574 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12575 shlibpath_var=LD_LIBRARY_PATH
12576 shlibpath_overrides_runpath=no
12577 # This implies no fast_install, which is unacceptable.
12578 # Some rework will be needed to allow for fast_install
12579 # before this can be enabled.
12580 hardcode_into_libs=yes
12581
12582 # Append ld.so.conf contents to the search path
12583 if test -f /etc/ld.so.conf; then
12584 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12585 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12586 fi
12587
12588 # We used to test for /lib/ld.so.1 and disable shared libraries on
12589 # powerpc, because MkLinux only supported shared libraries with the
12590 # GNU dynamic linker. Since this was broken with cross compilers,
12591 # most powerpc-linux boxes support dynamic linking these days and
12592 # people can always --disable-shared, the test was removed, and we
12593 # assume the GNU/Linux dynamic linker is in use.
12594 dynamic_linker='GNU/Linux ld.so'
12595 ;;
12596
12597knetbsd*-gnu)
12598 version_type=linux
12599 need_lib_prefix=no
12600 need_version=no
12601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12602 soname_spec='${libname}${release}${shared_ext}$major'
12603 shlibpath_var=LD_LIBRARY_PATH
12604 shlibpath_overrides_runpath=no
12605 hardcode_into_libs=yes
12606 dynamic_linker='GNU ld.so'
12607 ;;
12608
12609netbsd*)
12610 version_type=sunos
12611 need_lib_prefix=no
12612 need_version=no
12613 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12615 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12616 dynamic_linker='NetBSD (a.out) ld.so'
12617 else
12618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12619 soname_spec='${libname}${release}${shared_ext}$major'
12620 dynamic_linker='NetBSD ld.elf_so'
12621 fi
12622 shlibpath_var=LD_LIBRARY_PATH
12623 shlibpath_overrides_runpath=yes
12624 hardcode_into_libs=yes
12625 ;;
12626
12627newsos6)
12628 version_type=linux
12629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12630 shlibpath_var=LD_LIBRARY_PATH
12631 shlibpath_overrides_runpath=yes
12632 ;;
12633
12634nto-qnx*)
12635 version_type=linux
12636 need_lib_prefix=no
12637 need_version=no
12638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12639 soname_spec='${libname}${release}${shared_ext}$major'
12640 shlibpath_var=LD_LIBRARY_PATH
12641 shlibpath_overrides_runpath=yes
12642 ;;
12643
12644openbsd*)
12645 version_type=sunos
12646 sys_lib_dlsearch_path_spec="/usr/lib"
12647 need_lib_prefix=no
12648 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12649 case $host_os in
12650 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12651 *) need_version=no ;;
12652 esac
12653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12654 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12655 shlibpath_var=LD_LIBRARY_PATH
12656 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12657 case $host_os in
12658 openbsd2.[89] | openbsd2.[89].*)
12659 shlibpath_overrides_runpath=no
12660 ;;
12661 *)
12662 shlibpath_overrides_runpath=yes
12663 ;;
12664 esac
12665 else
12666 shlibpath_overrides_runpath=yes
12667 fi
12668 ;;
12669
12670os2*)
12671 libname_spec='$name'
12672 shrext_cmds=".dll"
12673 need_lib_prefix=no
12674 library_names_spec='$libname${shared_ext} $libname.a'
12675 dynamic_linker='OS/2 ld.exe'
12676 shlibpath_var=LIBPATH
12677 ;;
12678
12679osf3* | osf4* | osf5*)
12680 version_type=osf
12681 need_lib_prefix=no
12682 need_version=no
12683 soname_spec='${libname}${release}${shared_ext}$major'
12684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12685 shlibpath_var=LD_LIBRARY_PATH
12686 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12687 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12688 ;;
12689
12690solaris*)
12691 version_type=linux
12692 need_lib_prefix=no
12693 need_version=no
12694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12695 soname_spec='${libname}${release}${shared_ext}$major'
12696 shlibpath_var=LD_LIBRARY_PATH
12697 shlibpath_overrides_runpath=yes
12698 hardcode_into_libs=yes
12699 # ldd complains unless libraries are executable
12700 postinstall_cmds='chmod +x $lib'
12701 ;;
12702
12703sunos4*)
12704 version_type=sunos
12705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12706 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12707 shlibpath_var=LD_LIBRARY_PATH
12708 shlibpath_overrides_runpath=yes
12709 if test "$with_gnu_ld" = yes; then
12710 need_lib_prefix=no
12711 fi
12712 need_version=yes
12713 ;;
12714
12715sysv4 | sysv4.3*)
12716 version_type=linux
12717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12718 soname_spec='${libname}${release}${shared_ext}$major'
12719 shlibpath_var=LD_LIBRARY_PATH
12720 case $host_vendor in
12721 sni)
12722 shlibpath_overrides_runpath=no
12723 need_lib_prefix=no
12724 export_dynamic_flag_spec='${wl}-Blargedynsym'
12725 runpath_var=LD_RUN_PATH
12726 ;;
12727 siemens)
12728 need_lib_prefix=no
12729 ;;
12730 motorola)
12731 need_lib_prefix=no
12732 need_version=no
12733 shlibpath_overrides_runpath=no
12734 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12735 ;;
12736 esac
12737 ;;
12738
12739sysv4*MP*)
12740 if test -d /usr/nec ;then
12741 version_type=linux
12742 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12743 soname_spec='$libname${shared_ext}.$major'
12744 shlibpath_var=LD_LIBRARY_PATH
12745 fi
12746 ;;
12747
12748sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12749 version_type=freebsd-elf
12750 need_lib_prefix=no
12751 need_version=no
12752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12753 soname_spec='${libname}${release}${shared_ext}$major'
12754 shlibpath_var=LD_LIBRARY_PATH
12755 hardcode_into_libs=yes
12756 if test "$with_gnu_ld" = yes; then
12757 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12758 shlibpath_overrides_runpath=no
12759 else
12760 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12761 shlibpath_overrides_runpath=yes
12762 case $host_os in
12763 sco3.2v5*)
12764 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12765 ;;
12766 esac
12767 fi
12768 sys_lib_dlsearch_path_spec='/usr/lib'
12769 ;;
12770
12771uts4*)
12772 version_type=linux
12773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12774 soname_spec='${libname}${release}${shared_ext}$major'
12775 shlibpath_var=LD_LIBRARY_PATH
12776 ;;
12777
12778*)
12779 dynamic_linker=no
12780 ;;
12781esac
12782{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12783echo "${ECHO_T}$dynamic_linker" >&6; }
12784test "$dynamic_linker" = no && can_build_shared=no
12785
12786variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12787if test "$GCC" = yes; then
12788 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12789fi
12790
12791{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12792echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12793hardcode_action_CXX=
12794if test -n "$hardcode_libdir_flag_spec_CXX" || \
12795 test -n "$runpath_var_CXX" || \
12796 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12797
12798 # We can hardcode non-existant directories.
12799 if test "$hardcode_direct_CXX" != no &&
12800 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12801 # have to relink, otherwise we might link with an installed library
12802 # when we should be linking with a yet-to-be-installed one
12803 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12804 test "$hardcode_minus_L_CXX" != no; then
12805 # Linking always hardcodes the temporary library directory.
12806 hardcode_action_CXX=relink
12807 else
12808 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12809 hardcode_action_CXX=immediate
12810 fi
12811else
12812 # We cannot hardcode anything, or else we can only hardcode existing
12813 # directories.
12814 hardcode_action_CXX=unsupported
12815fi
12816{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12817echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12818
12819if test "$hardcode_action_CXX" = relink; then
12820 # Fast installation is not supported
12821 enable_fast_install=no
12822elif test "$shlibpath_overrides_runpath" = yes ||
12823 test "$enable_shared" = no; then
12824 # Fast installation is not necessary
12825 enable_fast_install=needless
12826fi
12827
12828
12829# The else clause should only fire when bootstrapping the
12830# libtool distribution, otherwise you forgot to ship ltmain.sh
12831# with your package, and you will get complaints that there are
12832# no rules to generate ltmain.sh.
12833if test -f "$ltmain"; then
12834 # See if we are running on zsh, and set the options which allow our commands through
12835 # without removal of \ escapes.
12836 if test -n "${ZSH_VERSION+set}" ; then
12837 setopt NO_GLOB_SUBST
12838 fi
12839 # Now quote all the things that may contain metacharacters while being
12840 # careful not to overquote the AC_SUBSTed values. We take copies of the
12841 # variables and quote the copies for generation of the libtool script.
12842 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12843 SED SHELL STRIP \
12844 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12845 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12846 deplibs_check_method reload_flag reload_cmds need_locks \
12847 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12848 lt_cv_sys_global_symbol_to_c_name_address \
12849 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12850 old_postinstall_cmds old_postuninstall_cmds \
12851 compiler_CXX \
12852 CC_CXX \
12853 LD_CXX \
12854 lt_prog_compiler_wl_CXX \
12855 lt_prog_compiler_pic_CXX \
12856 lt_prog_compiler_static_CXX \
12857 lt_prog_compiler_no_builtin_flag_CXX \
12858 export_dynamic_flag_spec_CXX \
12859 thread_safe_flag_spec_CXX \
12860 whole_archive_flag_spec_CXX \
12861 enable_shared_with_static_runtimes_CXX \
12862 old_archive_cmds_CXX \
12863 old_archive_from_new_cmds_CXX \
12864 predep_objects_CXX \
12865 postdep_objects_CXX \
12866 predeps_CXX \
12867 postdeps_CXX \
12868 compiler_lib_search_path_CXX \
12869 archive_cmds_CXX \
12870 archive_expsym_cmds_CXX \
12871 postinstall_cmds_CXX \
12872 postuninstall_cmds_CXX \
12873 old_archive_from_expsyms_cmds_CXX \
12874 allow_undefined_flag_CXX \
12875 no_undefined_flag_CXX \
12876 export_symbols_cmds_CXX \
12877 hardcode_libdir_flag_spec_CXX \
12878 hardcode_libdir_flag_spec_ld_CXX \
12879 hardcode_libdir_separator_CXX \
12880 hardcode_automatic_CXX \
12881 module_cmds_CXX \
12882 module_expsym_cmds_CXX \
12883 lt_cv_prog_compiler_c_o_CXX \
12884 exclude_expsyms_CXX \
12885 include_expsyms_CXX; do
12886
12887 case $var in
12888 old_archive_cmds_CXX | \
12889 old_archive_from_new_cmds_CXX | \
12890 archive_cmds_CXX | \
12891 archive_expsym_cmds_CXX | \
12892 module_cmds_CXX | \
12893 module_expsym_cmds_CXX | \
12894 old_archive_from_expsyms_cmds_CXX | \
12895 export_symbols_cmds_CXX | \
12896 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12897 postinstall_cmds | postuninstall_cmds | \
12898 old_postinstall_cmds | old_postuninstall_cmds | \
12899 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12900 # Double-quote double-evaled strings.
12901 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12902 ;;
12903 *)
12904 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12905 ;;
12906 esac
12907 done
12908
12909 case $lt_echo in
12910 *'\$0 --fallback-echo"')
12911 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12912 ;;
12913 esac
12914
12915cfgfile="$ofile"
12916
12917 cat <<__EOF__ >> "$cfgfile"
12918# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12919
12920# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12921
12922# Shell to use when invoking shell scripts.
12923SHELL=$lt_SHELL
12924
12925# Whether or not to build shared libraries.
12926build_libtool_libs=$enable_shared
12927
12928# Whether or not to build static libraries.
12929build_old_libs=$enable_static
12930
12931# Whether or not to add -lc for building shared libraries.
12932build_libtool_need_lc=$archive_cmds_need_lc_CXX
12933
12934# Whether or not to disallow shared libs when runtime libs are static
12935allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12936
12937# Whether or not to optimize for fast installation.
12938fast_install=$enable_fast_install
12939
12940# The host system.
12941host_alias=$host_alias
12942host=$host
12943host_os=$host_os
12944
12945# The build system.
12946build_alias=$build_alias
12947build=$build
12948build_os=$build_os
12949
12950# An echo program that does not interpret backslashes.
12951echo=$lt_echo
12952
12953# The archiver.
12954AR=$lt_AR
12955AR_FLAGS=$lt_AR_FLAGS
12956
12957# A C compiler.
12958LTCC=$lt_LTCC
12959
12960# LTCC compiler flags.
12961LTCFLAGS=$lt_LTCFLAGS
12962
12963# A language-specific compiler.
12964CC=$lt_compiler_CXX
12965
12966# Is the compiler the GNU C compiler?
12967with_gcc=$GCC_CXX
12968
12969# An ERE matcher.
12970EGREP=$lt_EGREP
12971
12972# The linker used to build libraries.
12973LD=$lt_LD_CXX
12974
12975# Whether we need hard or soft links.
12976LN_S=$lt_LN_S
12977
12978# A BSD-compatible nm program.
12979NM=$lt_NM
12980
12981# A symbol stripping program
12982STRIP=$lt_STRIP
12983
12984# Used to examine libraries when file_magic_cmd begins "file"
12985MAGIC_CMD=$MAGIC_CMD
12986
12987# Used on cygwin: DLL creation program.
12988DLLTOOL="$DLLTOOL"
12989
12990# Used on cygwin: object dumper.
12991OBJDUMP="$OBJDUMP"
12992
12993# Used on cygwin: assembler.
12994AS="$AS"
12995
12996# The name of the directory that contains temporary libtool files.
12997objdir=$objdir
12998
12999# How to create reloadable object files.
13000reload_flag=$lt_reload_flag
13001reload_cmds=$lt_reload_cmds
13002
13003# How to pass a linker flag through the compiler.
13004wl=$lt_lt_prog_compiler_wl_CXX
13005
13006# Object file suffix (normally "o").
13007objext="$ac_objext"
13008
13009# Old archive suffix (normally "a").
13010libext="$libext"
13011
13012# Shared library suffix (normally ".so").
13013shrext_cmds='$shrext_cmds'
13014
13015# Executable file suffix (normally "").
13016exeext="$exeext"
13017
13018# Additional compiler flags for building library objects.
13019pic_flag=$lt_lt_prog_compiler_pic_CXX
13020pic_mode=$pic_mode
13021
13022# What is the maximum length of a command?
13023max_cmd_len=$lt_cv_sys_max_cmd_len
13024
13025# Does compiler simultaneously support -c and -o options?
13026compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13027
13028# Must we lock files when doing compilation?
13029need_locks=$lt_need_locks
13030
13031# Do we need the lib prefix for modules?
13032need_lib_prefix=$need_lib_prefix
13033
13034# Do we need a version for libraries?
13035need_version=$need_version
13036
13037# Whether dlopen is supported.
13038dlopen_support=$enable_dlopen
13039
13040# Whether dlopen of programs is supported.
13041dlopen_self=$enable_dlopen_self
13042
13043# Whether dlopen of statically linked programs is supported.
13044dlopen_self_static=$enable_dlopen_self_static
13045
13046# Compiler flag to prevent dynamic linking.
13047link_static_flag=$lt_lt_prog_compiler_static_CXX
13048
13049# Compiler flag to turn off builtin functions.
13050no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13051
13052# Compiler flag to allow reflexive dlopens.
13053export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13054
13055# Compiler flag to generate shared objects directly from archives.
13056whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13057
13058# Compiler flag to generate thread-safe objects.
13059thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13060
13061# Library versioning type.
13062version_type=$version_type
13063
13064# Format of library name prefix.
13065libname_spec=$lt_libname_spec
13066
13067# List of archive names. First name is the real one, the rest are links.
13068# The last name is the one that the linker finds with -lNAME.
13069library_names_spec=$lt_library_names_spec
13070
13071# The coded name of the library, if different from the real name.
13072soname_spec=$lt_soname_spec
13073
13074# Commands used to build and install an old-style archive.
13075RANLIB=$lt_RANLIB
13076old_archive_cmds=$lt_old_archive_cmds_CXX
13077old_postinstall_cmds=$lt_old_postinstall_cmds
13078old_postuninstall_cmds=$lt_old_postuninstall_cmds
13079
13080# Create an old-style archive from a shared archive.
13081old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13082
13083# Create a temporary old-style archive to link instead of a shared archive.
13084old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13085
13086# Commands used to build and install a shared archive.
13087archive_cmds=$lt_archive_cmds_CXX
13088archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13089postinstall_cmds=$lt_postinstall_cmds
13090postuninstall_cmds=$lt_postuninstall_cmds
13091
13092# Commands used to build a loadable module (assumed same as above if empty)
13093module_cmds=$lt_module_cmds_CXX
13094module_expsym_cmds=$lt_module_expsym_cmds_CXX
13095
13096# Commands to strip libraries.
13097old_striplib=$lt_old_striplib
13098striplib=$lt_striplib
13099
13100# Dependencies to place before the objects being linked to create a
13101# shared library.
13102predep_objects=$lt_predep_objects_CXX
13103
13104# Dependencies to place after the objects being linked to create a
13105# shared library.
13106postdep_objects=$lt_postdep_objects_CXX
13107
13108# Dependencies to place before the objects being linked to create a
13109# shared library.
13110predeps=$lt_predeps_CXX
13111
13112# Dependencies to place after the objects being linked to create a
13113# shared library.
13114postdeps=$lt_postdeps_CXX
13115
13116# The library search path used internally by the compiler when linking
13117# a shared library.
13118compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13119
13120# Method to check whether dependent libraries are shared objects.
13121deplibs_check_method=$lt_deplibs_check_method
13122
13123# Command to use when deplibs_check_method == file_magic.
13124file_magic_cmd=$lt_file_magic_cmd
13125
13126# Flag that allows shared libraries with undefined symbols to be built.
13127allow_undefined_flag=$lt_allow_undefined_flag_CXX
13128
13129# Flag that forces no undefined symbols.
13130no_undefined_flag=$lt_no_undefined_flag_CXX
13131
13132# Commands used to finish a libtool library installation in a directory.
13133finish_cmds=$lt_finish_cmds
13134
13135# Same as above, but a single script fragment to be evaled but not shown.
13136finish_eval=$lt_finish_eval
13137
13138# Take the output of nm and produce a listing of raw symbols and C names.
13139global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13140
13141# Transform the output of nm in a proper C declaration
13142global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13143
13144# Transform the output of nm in a C name address pair
13145global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13146
13147# This is the shared library runtime path variable.
13148runpath_var=$runpath_var
13149
13150# This is the shared library path variable.
13151shlibpath_var=$shlibpath_var
13152
13153# Is shlibpath searched before the hard-coded library search path?
13154shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13155
13156# How to hardcode a shared library path into an executable.
13157hardcode_action=$hardcode_action_CXX
13158
13159# Whether we should hardcode library paths into libraries.
13160hardcode_into_libs=$hardcode_into_libs
13161
13162# Flag to hardcode \$libdir into a binary during linking.
13163# This must work even if \$libdir does not exist.
13164hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13165
13166# If ld is used when linking, flag to hardcode \$libdir into
13167# a binary during linking. This must work even if \$libdir does
13168# not exist.
13169hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13170
13171# Whether we need a single -rpath flag with a separated argument.
13172hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13173
13174# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13175# resulting binary.
13176hardcode_direct=$hardcode_direct_CXX
13177
13178# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13179# resulting binary.
13180hardcode_minus_L=$hardcode_minus_L_CXX
13181
13182# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13183# the resulting binary.
13184hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13185
13186# Set to yes if building a shared library automatically hardcodes DIR into the library
13187# and all subsequent libraries and executables linked against it.
13188hardcode_automatic=$hardcode_automatic_CXX
13189
13190# Variables whose values should be saved in libtool wrapper scripts and
13191# restored at relink time.
13192variables_saved_for_relink="$variables_saved_for_relink"
13193
13194# Whether libtool must link a program against all its dependency libraries.
13195link_all_deplibs=$link_all_deplibs_CXX
13196
13197# Compile-time system search path for libraries
13198sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13199
13200# Run-time system search path for libraries
13201sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13202
13203# Fix the shell variable \$srcfile for the compiler.
13204fix_srcfile_path="$fix_srcfile_path_CXX"
13205
13206# Set to yes if exported symbols are required.
13207always_export_symbols=$always_export_symbols_CXX
13208
13209# The commands to list exported symbols.
13210export_symbols_cmds=$lt_export_symbols_cmds_CXX
13211
13212# The commands to extract the exported symbol list from a shared archive.
13213extract_expsyms_cmds=$lt_extract_expsyms_cmds
13214
13215# Symbols that should not be listed in the preloaded symbols.
13216exclude_expsyms=$lt_exclude_expsyms_CXX
13217
13218# Symbols that must always be exported.
13219include_expsyms=$lt_include_expsyms_CXX
13220
13221# ### END LIBTOOL TAG CONFIG: $tagname
13222
13223__EOF__
13224
13225
13226else
13227 # If there is no Makefile yet, we rely on a make rule to execute
13228 # `config.status --recheck' to rerun these tests and create the
13229 # libtool script then.
13230 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13231 if test -f "$ltmain_in"; then
13232 test -f Makefile && make "$ltmain"
13233 fi
13234fi
13235
13236
13237ac_ext=c
13238ac_cpp='$CPP $CPPFLAGS'
13239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13241ac_compiler_gnu=$ac_cv_c_compiler_gnu
13242
13243CC=$lt_save_CC
13244LDCXX=$LD
13245LD=$lt_save_LD
13246GCC=$lt_save_GCC
13247with_gnu_ldcxx=$with_gnu_ld
13248with_gnu_ld=$lt_save_with_gnu_ld
13249lt_cv_path_LDCXX=$lt_cv_path_LD
13250lt_cv_path_LD=$lt_save_path_LD
13251lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13252lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13253
13254 else
13255 tagname=""
13256 fi
13257 ;;
13258
13259 F77)
13260 if test -n "$F77" && test "X$F77" != "Xno"; then
13261
13262ac_ext=f
13263ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13264ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13265ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13266
13267
13268archive_cmds_need_lc_F77=no
13269allow_undefined_flag_F77=
13270always_export_symbols_F77=no
13271archive_expsym_cmds_F77=
13272export_dynamic_flag_spec_F77=
13273hardcode_direct_F77=no
13274hardcode_libdir_flag_spec_F77=
13275hardcode_libdir_flag_spec_ld_F77=
13276hardcode_libdir_separator_F77=
13277hardcode_minus_L_F77=no
13278hardcode_automatic_F77=no
13279module_cmds_F77=
13280module_expsym_cmds_F77=
13281link_all_deplibs_F77=unknown
13282old_archive_cmds_F77=$old_archive_cmds
13283no_undefined_flag_F77=
13284whole_archive_flag_spec_F77=
13285enable_shared_with_static_runtimes_F77=no
13286
13287# Source file extension for f77 test sources.
13288ac_ext=f
13289
13290# Object file extension for compiled f77 test sources.
13291objext=o
13292objext_F77=$objext
13293
13294# Code to be used in simple compile tests
13295lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13296
13297# Code to be used in simple link tests
13298lt_simple_link_test_code=" program t\n end\n"
13299
13300# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13301
13302# If no C compiler was specified, use CC.
13303LTCC=${LTCC-"$CC"}
13304
13305# If no C compiler flags were specified, use CFLAGS.
13306LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13307
13308# Allow CC to be a program name with arguments.
13309compiler=$CC
13310
13311
13312# save warnings/boilerplate of simple test code
13313ac_outfile=conftest.$ac_objext
13314printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13315eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13316_lt_compiler_boilerplate=`cat conftest.err`
13317$rm conftest*
13318
13319ac_outfile=conftest.$ac_objext
13320printf "$lt_simple_link_test_code" >conftest.$ac_ext
13321eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13322_lt_linker_boilerplate=`cat conftest.err`
13323$rm conftest*
13324
13325
13326# Allow CC to be a program name with arguments.
13327lt_save_CC="$CC"
13328CC=${F77-"f77"}
13329compiler=$CC
13330compiler_F77=$CC
13331for cc_temp in $compiler""; do
13332 case $cc_temp in
13333 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13334 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13335 \-*) ;;
13336 *) break;;
13337 esac
13338done
13339cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13340
13341
13342{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13343echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13344{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13345echo "${ECHO_T}$can_build_shared" >&6; }
13346
13347{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13348echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13349test "$can_build_shared" = "no" && enable_shared=no
13350
13351# On AIX, shared libraries and static libraries use the same namespace, and
13352# are all built from PIC.
13353case $host_os in
13354aix3*)
13355 test "$enable_shared" = yes && enable_static=no
13356 if test -n "$RANLIB"; then
13357 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13358 postinstall_cmds='$RANLIB $lib'
13359 fi
13360 ;;
13361aix4* | aix5*)
13362 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13363 test "$enable_shared" = yes && enable_static=no
13364 fi
13365 ;;
13366esac
13367{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13368echo "${ECHO_T}$enable_shared" >&6; }
13369
13370{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13371echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13372# Make sure either enable_shared or enable_static is yes.
13373test "$enable_shared" = yes || enable_static=yes
13374{ echo "$as_me:$LINENO: result: $enable_static" >&5
13375echo "${ECHO_T}$enable_static" >&6; }
13376
13377GCC_F77="$G77"
13378LD_F77="$LD"
13379
13380lt_prog_compiler_wl_F77=
13381lt_prog_compiler_pic_F77=
13382lt_prog_compiler_static_F77=
13383
13384{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13385echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13386
13387 if test "$GCC" = yes; then
13388 lt_prog_compiler_wl_F77='-Wl,'
13389 lt_prog_compiler_static_F77='-static'
13390
13391 case $host_os in
13392 aix*)
13393 # All AIX code is PIC.
13394 if test "$host_cpu" = ia64; then
13395 # AIX 5 now supports IA64 processor
13396 lt_prog_compiler_static_F77='-Bstatic'
13397 fi
13398 ;;
13399
13400 amigaos*)
13401 # FIXME: we need at least 68020 code to build shared libraries, but
13402 # adding the `-m68020' flag to GCC prevents building anything better,
13403 # like `-m68040'.
13404 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13405 ;;
13406
13407 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13408 # PIC is the default for these OSes.
13409 ;;
13410
13411 mingw* | pw32* | os2*)
13412 # This hack is so that the source file can tell whether it is being
13413 # built for inclusion in a dll (and should export symbols for example).
13414 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13415 ;;
13416
13417 darwin* | rhapsody*)
13418 # PIC is the default on this platform
13419 # Common symbols not allowed in MH_DYLIB files
13420 lt_prog_compiler_pic_F77='-fno-common'
13421 ;;
13422
13423 interix3*)
13424 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13425 # Instead, we relocate shared libraries at runtime.
13426 ;;
13427
13428 msdosdjgpp*)
13429 # Just because we use GCC doesn't mean we suddenly get shared libraries
13430 # on systems that don't support them.
13431 lt_prog_compiler_can_build_shared_F77=no
13432 enable_shared=no
13433 ;;
13434
13435 sysv4*MP*)
13436 if test -d /usr/nec; then
13437 lt_prog_compiler_pic_F77=-Kconform_pic
13438 fi
13439 ;;
13440
13441 hpux*)
13442 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13443 # not for PA HP-UX.
13444 case $host_cpu in
13445 hppa*64*|ia64*)
13446 # +Z the default
13447 ;;
13448 *)
13449 lt_prog_compiler_pic_F77='-fPIC'
13450 ;;
13451 esac
13452 ;;
13453
13454 *)
13455 lt_prog_compiler_pic_F77='-fPIC'
13456 ;;
13457 esac
13458 else
13459 # PORTME Check for flag to pass linker flags through the system compiler.
13460 case $host_os in
13461 aix*)
13462 lt_prog_compiler_wl_F77='-Wl,'
13463 if test "$host_cpu" = ia64; then
13464 # AIX 5 now supports IA64 processor
13465 lt_prog_compiler_static_F77='-Bstatic'
13466 else
13467 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13468 fi
13469 ;;
13470 darwin*)
13471 # PIC is the default on this platform
13472 # Common symbols not allowed in MH_DYLIB files
13473 case $cc_basename in
13474 xlc*)
13475 lt_prog_compiler_pic_F77='-qnocommon'
13476 lt_prog_compiler_wl_F77='-Wl,'
13477 ;;
13478 esac
13479 ;;
13480
13481 mingw* | pw32* | os2*)
13482 # This hack is so that the source file can tell whether it is being
13483 # built for inclusion in a dll (and should export symbols for example).
13484 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13485 ;;
13486
13487 hpux9* | hpux10* | hpux11*)
13488 lt_prog_compiler_wl_F77='-Wl,'
13489 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13490 # not for PA HP-UX.
13491 case $host_cpu in
13492 hppa*64*|ia64*)
13493 # +Z the default
13494 ;;
13495 *)
13496 lt_prog_compiler_pic_F77='+Z'
13497 ;;
13498 esac
13499 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13500 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13501 ;;
13502
13503 irix5* | irix6* | nonstopux*)
13504 lt_prog_compiler_wl_F77='-Wl,'
13505 # PIC (with -KPIC) is the default.
13506 lt_prog_compiler_static_F77='-non_shared'
13507 ;;
13508
13509 newsos6)
13510 lt_prog_compiler_pic_F77='-KPIC'
13511 lt_prog_compiler_static_F77='-Bstatic'
13512 ;;
13513
13514 linux*)
13515 case $cc_basename in
13516 icc* | ecc*)
13517 lt_prog_compiler_wl_F77='-Wl,'
13518 lt_prog_compiler_pic_F77='-KPIC'
13519 lt_prog_compiler_static_F77='-static'
13520 ;;
13521 pgcc* | pgf77* | pgf90* | pgf95*)
13522 # Portland Group compilers (*not* the Pentium gcc compiler,
13523 # which looks to be a dead project)
13524 lt_prog_compiler_wl_F77='-Wl,'
13525 lt_prog_compiler_pic_F77='-fpic'
13526 lt_prog_compiler_static_F77='-Bstatic'
13527 ;;
13528 ccc*)
13529 lt_prog_compiler_wl_F77='-Wl,'
13530 # All Alpha code is PIC.
13531 lt_prog_compiler_static_F77='-non_shared'
13532 ;;
13533 esac
13534 ;;
13535
13536 osf3* | osf4* | osf5*)
13537 lt_prog_compiler_wl_F77='-Wl,'
13538 # All OSF/1 code is PIC.
13539 lt_prog_compiler_static_F77='-non_shared'
13540 ;;
13541
13542 solaris*)
13543 lt_prog_compiler_pic_F77='-KPIC'
13544 lt_prog_compiler_static_F77='-Bstatic'
13545 case $cc_basename in
13546 f77* | f90* | f95*)
13547 lt_prog_compiler_wl_F77='-Qoption ld ';;
13548 *)
13549 lt_prog_compiler_wl_F77='-Wl,';;
13550 esac
13551 ;;
13552
13553 sunos4*)
13554 lt_prog_compiler_wl_F77='-Qoption ld '
13555 lt_prog_compiler_pic_F77='-PIC'
13556 lt_prog_compiler_static_F77='-Bstatic'
13557 ;;
13558
13559 sysv4 | sysv4.2uw2* | sysv4.3*)
13560 lt_prog_compiler_wl_F77='-Wl,'
13561 lt_prog_compiler_pic_F77='-KPIC'
13562 lt_prog_compiler_static_F77='-Bstatic'
13563 ;;
13564
13565 sysv4*MP*)
13566 if test -d /usr/nec ;then
13567 lt_prog_compiler_pic_F77='-Kconform_pic'
13568 lt_prog_compiler_static_F77='-Bstatic'
13569 fi
13570 ;;
13571
13572 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13573 lt_prog_compiler_wl_F77='-Wl,'
13574 lt_prog_compiler_pic_F77='-KPIC'
13575 lt_prog_compiler_static_F77='-Bstatic'
13576 ;;
13577
13578 unicos*)
13579 lt_prog_compiler_wl_F77='-Wl,'
13580 lt_prog_compiler_can_build_shared_F77=no
13581 ;;
13582
13583 uts4*)
13584 lt_prog_compiler_pic_F77='-pic'
13585 lt_prog_compiler_static_F77='-Bstatic'
13586 ;;
13587
13588 *)
13589 lt_prog_compiler_can_build_shared_F77=no
13590 ;;
13591 esac
13592 fi
13593
13594{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13595echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13596
13597#
13598# Check to make sure the PIC flag actually works.
13599#
13600if test -n "$lt_prog_compiler_pic_F77"; then
13601
13602{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13603echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13604if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13605 echo $ECHO_N "(cached) $ECHO_C" >&6
13606else
13607 lt_prog_compiler_pic_works_F77=no
13608 ac_outfile=conftest.$ac_objext
13609 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13610 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13611 # Insert the option either (1) after the last *FLAGS variable, or
13612 # (2) before a word containing "conftest.", or (3) at the end.
13613 # Note that $ac_compile itself does not contain backslashes and begins
13614 # with a dollar sign (not a hyphen), so the echo should work correctly.
13615 # The option is referenced via a variable to avoid confusing sed.
13616 lt_compile=`echo "$ac_compile" | $SED \
13617 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13618 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13619 -e 's:$: $lt_compiler_flag:'`
13620 (eval echo "\"\$as_me:13620: $lt_compile\"" >&5)
13621 (eval "$lt_compile" 2>conftest.err)
13622 ac_status=$?
13623 cat conftest.err >&5
13624 echo "$as_me:13624: \$? = $ac_status" >&5
13625 if (exit $ac_status) && test -s "$ac_outfile"; then
13626 # The compiler can only warn and ignore the option if not recognized
13627 # So say no if there are warnings other than the usual output.
13628 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13629 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13630 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13631 lt_prog_compiler_pic_works_F77=yes
13632 fi
13633 fi
13634 $rm conftest*
13635
13636fi
13637{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13638echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13639
13640if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13641 case $lt_prog_compiler_pic_F77 in
13642 "" | " "*) ;;
13643 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13644 esac
13645else
13646 lt_prog_compiler_pic_F77=
13647 lt_prog_compiler_can_build_shared_F77=no
13648fi
13649
13650fi
13651case $host_os in
13652 # For platforms which do not support PIC, -DPIC is meaningless:
13653 *djgpp*)
13654 lt_prog_compiler_pic_F77=
13655 ;;
13656 *)
13657 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13658 ;;
13659esac
13660
13661#
13662# Check to make sure the static flag actually works.
13663#
13664wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13665{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13666echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13667if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13668 echo $ECHO_N "(cached) $ECHO_C" >&6
13669else
13670 lt_prog_compiler_static_works_F77=no
13671 save_LDFLAGS="$LDFLAGS"
13672 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13673 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13674 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13675 # The linker can only warn and ignore the option if not recognized
13676 # So say no if there are warnings
13677 if test -s conftest.err; then
13678 # Append any errors to the config.log.
13679 cat conftest.err 1>&5
13680 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13681 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13682 if diff conftest.exp conftest.er2 >/dev/null; then
13683 lt_prog_compiler_static_works_F77=yes
13684 fi
13685 else
13686 lt_prog_compiler_static_works_F77=yes
13687 fi
13688 fi
13689 $rm conftest*
13690 LDFLAGS="$save_LDFLAGS"
13691
13692fi
13693{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13694echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13695
13696if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13697 :
13698else
13699 lt_prog_compiler_static_F77=
13700fi
13701
13702
13703{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13704echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13705if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13706 echo $ECHO_N "(cached) $ECHO_C" >&6
13707else
13708 lt_cv_prog_compiler_c_o_F77=no
13709 $rm -r conftest 2>/dev/null
13710 mkdir conftest
13711 cd conftest
13712 mkdir out
13713 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13714
13715 lt_compiler_flag="-o out/conftest2.$ac_objext"
13716 # Insert the option either (1) after the last *FLAGS variable, or
13717 # (2) before a word containing "conftest.", or (3) at the end.
13718 # Note that $ac_compile itself does not contain backslashes and begins
13719 # with a dollar sign (not a hyphen), so the echo should work correctly.
13720 lt_compile=`echo "$ac_compile" | $SED \
13721 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13722 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13723 -e 's:$: $lt_compiler_flag:'`
13724 (eval echo "\"\$as_me:13724: $lt_compile\"" >&5)
13725 (eval "$lt_compile" 2>out/conftest.err)
13726 ac_status=$?
13727 cat out/conftest.err >&5
13728 echo "$as_me:13728: \$? = $ac_status" >&5
13729 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13730 then
13731 # The compiler can only warn and ignore the option if not recognized
13732 # So say no if there are warnings
13733 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13734 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13735 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13736 lt_cv_prog_compiler_c_o_F77=yes
13737 fi
13738 fi
13739 chmod u+w . 2>&5
13740 $rm conftest*
13741 # SGI C++ compiler will create directory out/ii_files/ for
13742 # template instantiation
13743 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13744 $rm out/* && rmdir out
13745 cd ..
13746 rmdir conftest
13747 $rm conftest*
13748
13749fi
13750{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13751echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13752
13753
13754hard_links="nottested"
13755if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13756 # do not overwrite the value of need_locks provided by the user
13757 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13758echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13759 hard_links=yes
13760 $rm conftest*
13761 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13762 touch conftest.a
13763 ln conftest.a conftest.b 2>&5 || hard_links=no
13764 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13765 { echo "$as_me:$LINENO: result: $hard_links" >&5
13766echo "${ECHO_T}$hard_links" >&6; }
13767 if test "$hard_links" = no; then
13768 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13769echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13770 need_locks=warn
13771 fi
13772else
13773 need_locks=no
13774fi
13775
13776{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13777echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13778
13779 runpath_var=
13780 allow_undefined_flag_F77=
13781 enable_shared_with_static_runtimes_F77=no
13782 archive_cmds_F77=
13783 archive_expsym_cmds_F77=
13784 old_archive_From_new_cmds_F77=
13785 old_archive_from_expsyms_cmds_F77=
13786 export_dynamic_flag_spec_F77=
13787 whole_archive_flag_spec_F77=
13788 thread_safe_flag_spec_F77=
13789 hardcode_libdir_flag_spec_F77=
13790 hardcode_libdir_flag_spec_ld_F77=
13791 hardcode_libdir_separator_F77=
13792 hardcode_direct_F77=no
13793 hardcode_minus_L_F77=no
13794 hardcode_shlibpath_var_F77=unsupported
13795 link_all_deplibs_F77=unknown
13796 hardcode_automatic_F77=no
13797 module_cmds_F77=
13798 module_expsym_cmds_F77=
13799 always_export_symbols_F77=no
13800 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13801 # include_expsyms should be a list of space-separated symbols to be *always*
13802 # included in the symbol list
13803 include_expsyms_F77=
13804 # exclude_expsyms can be an extended regexp of symbols to exclude
13805 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13806 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13807 # as well as any symbol that contains `d'.
13808 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13809 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13810 # platforms (ab)use it in PIC code, but their linkers get confused if
13811 # the symbol is explicitly referenced. Since portable code cannot
13812 # rely on this symbol name, it's probably fine to never include it in
13813 # preloaded symbol tables.
13814 extract_expsyms_cmds=
13815 # Just being paranoid about ensuring that cc_basename is set.
13816 for cc_temp in $compiler""; do
13817 case $cc_temp in
13818 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13819 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13820 \-*) ;;
13821 *) break;;
13822 esac
13823done
13824cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13825
13826 case $host_os in
13827 cygwin* | mingw* | pw32*)
13828 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13829 # When not using gcc, we currently assume that we are using
13830 # Microsoft Visual C++.
13831 if test "$GCC" != yes; then
13832 with_gnu_ld=no
13833 fi
13834 ;;
13835 interix*)
13836 # we just hope/assume this is gcc and not c89 (= MSVC++)
13837 with_gnu_ld=yes
13838 ;;
13839 openbsd*)
13840 with_gnu_ld=no
13841 ;;
13842 esac
13843
13844 ld_shlibs_F77=yes
13845 if test "$with_gnu_ld" = yes; then
13846 # If archive_cmds runs LD, not CC, wlarc should be empty
13847 wlarc='${wl}'
13848
13849 # Set some defaults for GNU ld with shared library support. These
13850 # are reset later if shared libraries are not supported. Putting them
13851 # here allows them to be overridden if necessary.
13852 runpath_var=LD_RUN_PATH
13853 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13854 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13855 # ancient GNU ld didn't support --whole-archive et. al.
13856 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13857 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13858 else
13859 whole_archive_flag_spec_F77=
13860 fi
13861 supports_anon_versioning=no
13862 case `$LD -v 2>/dev/null` in
13863 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13864 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13865 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13866 *\ 2.11.*) ;; # other 2.11 versions
13867 *) supports_anon_versioning=yes ;;
13868 esac
13869
13870 # See if GNU ld supports shared libraries.
13871 case $host_os in
13872 aix3* | aix4* | aix5*)
13873 # On AIX/PPC, the GNU linker is very broken
13874 if test "$host_cpu" != ia64; then
13875 ld_shlibs_F77=no
13876 cat <<EOF 1>&2
13877
13878*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13879*** to be unable to reliably create shared libraries on AIX.
13880*** Therefore, libtool is disabling shared libraries support. If you
13881*** really care for shared libraries, you may want to modify your PATH
13882*** so that a non-GNU linker is found, and then restart.
13883
13884EOF
13885 fi
13886 ;;
13887
13888 amigaos*)
13889 archive_cmds_F77='$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)'
13890 hardcode_libdir_flag_spec_F77='-L$libdir'
13891 hardcode_minus_L_F77=yes
13892
13893 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13894 # that the semantics of dynamic libraries on AmigaOS, at least up
13895 # to version 4, is to share data among multiple programs linked
13896 # with the same dynamic library. Since this doesn't match the
13897 # behavior of shared libraries on other platforms, we can't use
13898 # them.
13899 ld_shlibs_F77=no
13900 ;;
13901
13902 beos*)
13903 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13904 allow_undefined_flag_F77=unsupported
13905 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13906 # support --undefined. This deserves some investigation. FIXME
13907 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13908 else
13909 ld_shlibs_F77=no
13910 fi
13911 ;;
13912
13913 cygwin* | mingw* | pw32*)
13914 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13915 # as there is no search path for DLLs.
13916 hardcode_libdir_flag_spec_F77='-L$libdir'
13917 allow_undefined_flag_F77=unsupported
13918 always_export_symbols_F77=no
13919 enable_shared_with_static_runtimes_F77=yes
13920 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13921
13922 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13923 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13924 # If the export-symbols file already is a .def file (1st line
13925 # is EXPORTS), use it as is; otherwise, prepend...
13926 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13927 cp $export_symbols $output_objdir/$soname.def;
13928 else
13929 echo EXPORTS > $output_objdir/$soname.def;
13930 cat $export_symbols >> $output_objdir/$soname.def;
13931 fi~
13932 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13933 else
13934 ld_shlibs_F77=no
13935 fi
13936 ;;
13937
13938 interix3*)
13939 hardcode_direct_F77=no
13940 hardcode_shlibpath_var_F77=no
13941 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13942 export_dynamic_flag_spec_F77='${wl}-E'
13943 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13944 # Instead, shared libraries are loaded at an image base (0x10000000 by
13945 # default) and relocated if they conflict, which is a slow very memory
13946 # consuming and fragmenting process. To avoid this, we pick a random,
13947 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13948 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13949 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13950 archive_expsym_cmds_F77='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'
13951 ;;
13952
13953 linux*)
13954 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13955 tmp_addflag=
13956 case $cc_basename,$host_cpu in
13957 pgcc*) # Portland Group C compiler
13958 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13959 tmp_addflag=' $pic_flag'
13960 ;;
13961 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13962 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13963 tmp_addflag=' $pic_flag -Mnomain' ;;
13964 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13965 tmp_addflag=' -i_dynamic' ;;
13966 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13967 tmp_addflag=' -i_dynamic -nofor_main' ;;
13968 ifc* | ifort*) # Intel Fortran compiler
13969 tmp_addflag=' -nofor_main' ;;
13970 esac
13971 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13972
13973 if test $supports_anon_versioning = yes; then
13974 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13975 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13976 $echo "local: *; };" >> $output_objdir/$libname.ver~
13977 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13978 fi
13979 else
13980 ld_shlibs_F77=no
13981 fi
13982 ;;
13983
13984 netbsd*)
13985 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13986 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13987 wlarc=
13988 else
13989 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13990 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13991 fi
13992 ;;
13993
13994 solaris*)
13995 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13996 ld_shlibs_F77=no
13997 cat <<EOF 1>&2
13998
13999*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14000*** create shared libraries on Solaris systems. Therefore, libtool
14001*** is disabling shared libraries support. We urge you to upgrade GNU
14002*** binutils to release 2.9.1 or newer. Another option is to modify
14003*** your PATH or compiler configuration so that the native linker is
14004*** used, and then restart.
14005
14006EOF
14007 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14008 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14009 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14010 else
14011 ld_shlibs_F77=no
14012 fi
14013 ;;
14014
14015 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14016 case `$LD -v 2>&1` in
14017 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14018 ld_shlibs_F77=no
14019 cat <<_LT_EOF 1>&2
14020
14021*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14022*** reliably create shared libraries on SCO systems. Therefore, libtool
14023*** is disabling shared libraries support. We urge you to upgrade GNU
14024*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14025*** your PATH or compiler configuration so that the native linker is
14026*** used, and then restart.
14027
14028_LT_EOF
14029 ;;
14030 *)
14031 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14032 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14033 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14034 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14035 else
14036 ld_shlibs_F77=no
14037 fi
14038 ;;
14039 esac
14040 ;;
14041
14042 sunos4*)
14043 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14044 wlarc=
14045 hardcode_direct_F77=yes
14046 hardcode_shlibpath_var_F77=no
14047 ;;
14048
14049 *)
14050 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14051 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14052 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14053 else
14054 ld_shlibs_F77=no
14055 fi
14056 ;;
14057 esac
14058
14059 if test "$ld_shlibs_F77" = no; then
14060 runpath_var=
14061 hardcode_libdir_flag_spec_F77=
14062 export_dynamic_flag_spec_F77=
14063 whole_archive_flag_spec_F77=
14064 fi
14065 else
14066 # PORTME fill in a description of your system's linker (not GNU ld)
14067 case $host_os in
14068 aix3*)
14069 allow_undefined_flag_F77=unsupported
14070 always_export_symbols_F77=yes
14071 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14072 # Note: this linker hardcodes the directories in LIBPATH if there
14073 # are no directories specified by -L.
14074 hardcode_minus_L_F77=yes
14075 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14076 # Neither direct hardcoding nor static linking is supported with a
14077 # broken collect2.
14078 hardcode_direct_F77=unsupported
14079 fi
14080 ;;
14081
14082 aix4* | aix5*)
14083 if test "$host_cpu" = ia64; then
14084 # On IA64, the linker does run time linking by default, so we don't
14085 # have to do anything special.
14086 aix_use_runtimelinking=no
14087 exp_sym_flag='-Bexport'
14088 no_entry_flag=""
14089 else
14090 # If we're using GNU nm, then we don't want the "-C" option.
14091 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14092 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14093 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14094 else
14095 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14096 fi
14097 aix_use_runtimelinking=no
14098
14099 # Test if we are trying to use run time linking or normal
14100 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14101 # need to do runtime linking.
14102 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14103 for ld_flag in $LDFLAGS; do
14104 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14105 aix_use_runtimelinking=yes
14106 break
14107 fi
14108 done
14109 ;;
14110 esac
14111
14112 exp_sym_flag='-bexport'
14113 no_entry_flag='-bnoentry'
14114 fi
14115
14116 # When large executables or shared objects are built, AIX ld can
14117 # have problems creating the table of contents. If linking a library
14118 # or program results in "error TOC overflow" add -mminimal-toc to
14119 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14120 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14121
14122 archive_cmds_F77=''
14123 hardcode_direct_F77=yes
14124 hardcode_libdir_separator_F77=':'
14125 link_all_deplibs_F77=yes
14126
14127 if test "$GCC" = yes; then
14128 case $host_os in aix4.[012]|aix4.[012].*)
14129 # We only want to do this on AIX 4.2 and lower, the check
14130 # below for broken collect2 doesn't work under 4.3+
14131 collect2name=`${CC} -print-prog-name=collect2`
14132 if test -f "$collect2name" && \
14133 strings "$collect2name" | grep resolve_lib_name >/dev/null
14134 then
14135 # We have reworked collect2
14136 hardcode_direct_F77=yes
14137 else
14138 # We have old collect2
14139 hardcode_direct_F77=unsupported
14140 # It fails to find uninstalled libraries when the uninstalled
14141 # path is not listed in the libpath. Setting hardcode_minus_L
14142 # to unsupported forces relinking
14143 hardcode_minus_L_F77=yes
14144 hardcode_libdir_flag_spec_F77='-L$libdir'
14145 hardcode_libdir_separator_F77=
14146 fi
14147 ;;
14148 esac
14149 shared_flag='-shared'
14150 if test "$aix_use_runtimelinking" = yes; then
14151 shared_flag="$shared_flag "'${wl}-G'
14152 fi
14153 else
14154 # not using gcc
14155 if test "$host_cpu" = ia64; then
14156 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14157 # chokes on -Wl,-G. The following line is correct:
14158 shared_flag='-G'
14159 else
14160 if test "$aix_use_runtimelinking" = yes; then
14161 shared_flag='${wl}-G'
14162 else
14163 shared_flag='${wl}-bM:SRE'
14164 fi
14165 fi
14166 fi
14167
14168 # It seems that -bexpall does not export symbols beginning with
14169 # underscore (_), so it is better to generate a list of symbols to export.
14170 always_export_symbols_F77=yes
14171 if test "$aix_use_runtimelinking" = yes; then
14172 # Warning - without using the other runtime loading flags (-brtl),
14173 # -berok will link without error, but may produce a broken library.
14174 allow_undefined_flag_F77='-berok'
14175 # Determine the default libpath from the value encoded in an empty executable.
14176 cat >conftest.$ac_ext <<_ACEOF
14177 program main
14178
14179 end
14180_ACEOF
14181rm -f conftest.$ac_objext conftest$ac_exeext
14182if { (ac_try="$ac_link"
14183case "(($ac_try" in
14184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14185 *) ac_try_echo=$ac_try;;
14186esac
14187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14188 (eval "$ac_link") 2>conftest.er1
14189 ac_status=$?
14190 grep -v '^ *+' conftest.er1 >conftest.err
14191 rm -f conftest.er1
14192 cat conftest.err >&5
14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); } && {
14195 test -z "$ac_f77_werror_flag" ||
14196 test ! -s conftest.err
14197 } && test -s conftest$ac_exeext &&
14198 $as_test_x conftest$ac_exeext; then
14199
14200aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14201}'`
14202# Check for a 64-bit object if we didn't find anything.
14203if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14204}'`; fi
14205else
14206 echo "$as_me: failed program was:" >&5
14207sed 's/^/| /' conftest.$ac_ext >&5
14208
14209
14210fi
14211
14212rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14213 conftest$ac_exeext conftest.$ac_ext
14214if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14215
14216 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14217 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14218 else
14219 if test "$host_cpu" = ia64; then
14220 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14221 allow_undefined_flag_F77="-z nodefs"
14222 archive_expsym_cmds_F77="\$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"
14223 else
14224 # Determine the default libpath from the value encoded in an empty executable.
14225 cat >conftest.$ac_ext <<_ACEOF
14226 program main
14227
14228 end
14229_ACEOF
14230rm -f conftest.$ac_objext conftest$ac_exeext
14231if { (ac_try="$ac_link"
14232case "(($ac_try" in
14233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14234 *) ac_try_echo=$ac_try;;
14235esac
14236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14237 (eval "$ac_link") 2>conftest.er1
14238 ac_status=$?
14239 grep -v '^ *+' conftest.er1 >conftest.err
14240 rm -f conftest.er1
14241 cat conftest.err >&5
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); } && {
14244 test -z "$ac_f77_werror_flag" ||
14245 test ! -s conftest.err
14246 } && test -s conftest$ac_exeext &&
14247 $as_test_x conftest$ac_exeext; then
14248
14249aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14250}'`
14251# Check for a 64-bit object if we didn't find anything.
14252if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14253}'`; fi
14254else
14255 echo "$as_me: failed program was:" >&5
14256sed 's/^/| /' conftest.$ac_ext >&5
14257
14258
14259fi
14260
14261rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14262 conftest$ac_exeext conftest.$ac_ext
14263if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14264
14265 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14266 # Warning - without using the other run time loading flags,
14267 # -berok will link without error, but may produce a broken library.
14268 no_undefined_flag_F77=' ${wl}-bernotok'
14269 allow_undefined_flag_F77=' ${wl}-berok'
14270 # Exported symbols can be pulled into shared objects from archives
14271 whole_archive_flag_spec_F77='$convenience'
14272 archive_cmds_need_lc_F77=yes
14273 # This is similar to how AIX traditionally builds its shared libraries.
14274 archive_expsym_cmds_F77="\$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'
14275 fi
14276 fi
14277 ;;
14278
14279 amigaos*)
14280 archive_cmds_F77='$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)'
14281 hardcode_libdir_flag_spec_F77='-L$libdir'
14282 hardcode_minus_L_F77=yes
14283 # see comment about different semantics on the GNU ld section
14284 ld_shlibs_F77=no
14285 ;;
14286
14287 bsdi[45]*)
14288 export_dynamic_flag_spec_F77=-rdynamic
14289 ;;
14290
14291 cygwin* | mingw* | pw32*)
14292 # When not using gcc, we currently assume that we are using
14293 # Microsoft Visual C++.
14294 # hardcode_libdir_flag_spec is actually meaningless, as there is
14295 # no search path for DLLs.
14296 hardcode_libdir_flag_spec_F77=' '
14297 allow_undefined_flag_F77=unsupported
14298 # Tell ltmain to make .lib files, not .a files.
14299 libext=lib
14300 # Tell ltmain to make .dll files, not .so files.
14301 shrext_cmds=".dll"
14302 # FIXME: Setting linknames here is a bad hack.
14303 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14304 # The linker will automatically build a .lib file if we build a DLL.
14305 old_archive_From_new_cmds_F77='true'
14306 # FIXME: Should let the user specify the lib program.
14307 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14308 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14309 enable_shared_with_static_runtimes_F77=yes
14310 ;;
14311
14312 darwin* | rhapsody*)
14313 case $host_os in
14314 rhapsody* | darwin1.[012])
14315 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14316 ;;
14317 *) # Darwin 1.3 on
14318 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14319 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14320 else
14321 case ${MACOSX_DEPLOYMENT_TARGET} in
14322 10.[012])
14323 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14324 ;;
14325 10.*)
14326 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14327 ;;
14328 esac
14329 fi
14330 ;;
14331 esac
14332 archive_cmds_need_lc_F77=no
14333 hardcode_direct_F77=no
14334 hardcode_automatic_F77=yes
14335 hardcode_shlibpath_var_F77=unsupported
14336 whole_archive_flag_spec_F77=''
14337 link_all_deplibs_F77=yes
14338 if test "$GCC" = yes ; then
14339 output_verbose_link_cmd='echo'
14340 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14341 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14342 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14343 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14344 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14345 else
14346 case $cc_basename in
14347 xlc*)
14348 output_verbose_link_cmd='echo'
14349 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14350 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14351 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14352 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14353 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14354 ;;
14355 *)
14356 ld_shlibs_F77=no
14357 ;;
14358 esac
14359 fi
14360 ;;
14361
14362 dgux*)
14363 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14364 hardcode_libdir_flag_spec_F77='-L$libdir'
14365 hardcode_shlibpath_var_F77=no
14366 ;;
14367
14368 freebsd1*)
14369 ld_shlibs_F77=no
14370 ;;
14371
14372 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14373 # support. Future versions do this automatically, but an explicit c++rt0.o
14374 # does not break anything, and helps significantly (at the cost of a little
14375 # extra space).
14376 freebsd2.2*)
14377 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14378 hardcode_libdir_flag_spec_F77='-R$libdir'
14379 hardcode_direct_F77=yes
14380 hardcode_shlibpath_var_F77=no
14381 ;;
14382
14383 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14384 freebsd2*)
14385 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14386 hardcode_direct_F77=yes
14387 hardcode_minus_L_F77=yes
14388 hardcode_shlibpath_var_F77=no
14389 ;;
14390
14391 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14392 freebsd* | kfreebsd*-gnu | dragonfly*)
14393 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14394 hardcode_libdir_flag_spec_F77='-R$libdir'
14395 hardcode_direct_F77=yes
14396 hardcode_shlibpath_var_F77=no
14397 ;;
14398
14399 hpux9*)
14400 if test "$GCC" = yes; then
14401 archive_cmds_F77='$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'
14402 else
14403 archive_cmds_F77='$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'
14404 fi
14405 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14406 hardcode_libdir_separator_F77=:
14407 hardcode_direct_F77=yes
14408
14409 # hardcode_minus_L: Not really in the search PATH,
14410 # but as the default location of the library.
14411 hardcode_minus_L_F77=yes
14412 export_dynamic_flag_spec_F77='${wl}-E'
14413 ;;
14414
14415 hpux10*)
14416 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14417 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14418 else
14419 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14420 fi
14421 if test "$with_gnu_ld" = no; then
14422 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14423 hardcode_libdir_separator_F77=:
14424
14425 hardcode_direct_F77=yes
14426 export_dynamic_flag_spec_F77='${wl}-E'
14427
14428 # hardcode_minus_L: Not really in the search PATH,
14429 # but as the default location of the library.
14430 hardcode_minus_L_F77=yes
14431 fi
14432 ;;
14433
14434 hpux11*)
14435 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14436 case $host_cpu in
14437 hppa*64*)
14438 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14439 ;;
14440 ia64*)
14441 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14442 ;;
14443 *)
14444 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14445 ;;
14446 esac
14447 else
14448 case $host_cpu in
14449 hppa*64*)
14450 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14451 ;;
14452 ia64*)
14453 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14454 ;;
14455 *)
14456 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14457 ;;
14458 esac
14459 fi
14460 if test "$with_gnu_ld" = no; then
14461 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14462 hardcode_libdir_separator_F77=:
14463
14464 case $host_cpu in
14465 hppa*64*|ia64*)
14466 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14467 hardcode_direct_F77=no
14468 hardcode_shlibpath_var_F77=no
14469 ;;
14470 *)
14471 hardcode_direct_F77=yes
14472 export_dynamic_flag_spec_F77='${wl}-E'
14473
14474 # hardcode_minus_L: Not really in the search PATH,
14475 # but as the default location of the library.
14476 hardcode_minus_L_F77=yes
14477 ;;
14478 esac
14479 fi
14480 ;;
14481
14482 irix5* | irix6* | nonstopux*)
14483 if test "$GCC" = yes; then
14484 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14485 else
14486 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14487 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14488 fi
14489 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14490 hardcode_libdir_separator_F77=:
14491 link_all_deplibs_F77=yes
14492 ;;
14493
14494 netbsd*)
14495 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14496 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14497 else
14498 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14499 fi
14500 hardcode_libdir_flag_spec_F77='-R$libdir'
14501 hardcode_direct_F77=yes
14502 hardcode_shlibpath_var_F77=no
14503 ;;
14504
14505 newsos6)
14506 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14507 hardcode_direct_F77=yes
14508 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14509 hardcode_libdir_separator_F77=:
14510 hardcode_shlibpath_var_F77=no
14511 ;;
14512
14513 openbsd*)
14514 hardcode_direct_F77=yes
14515 hardcode_shlibpath_var_F77=no
14516 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14517 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14518 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14519 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14520 export_dynamic_flag_spec_F77='${wl}-E'
14521 else
14522 case $host_os in
14523 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14524 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14525 hardcode_libdir_flag_spec_F77='-R$libdir'
14526 ;;
14527 *)
14528 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14529 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14530 ;;
14531 esac
14532 fi
14533 ;;
14534
14535 os2*)
14536 hardcode_libdir_flag_spec_F77='-L$libdir'
14537 hardcode_minus_L_F77=yes
14538 allow_undefined_flag_F77=unsupported
14539 archive_cmds_F77='$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'
14540 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14541 ;;
14542
14543 osf3*)
14544 if test "$GCC" = yes; then
14545 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14546 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14547 else
14548 allow_undefined_flag_F77=' -expect_unresolved \*'
14549 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14550 fi
14551 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14552 hardcode_libdir_separator_F77=:
14553 ;;
14554
14555 osf4* | osf5*) # as osf3* with the addition of -msym flag
14556 if test "$GCC" = yes; then
14557 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14558 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14559 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14560 else
14561 allow_undefined_flag_F77=' -expect_unresolved \*'
14562 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14563 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14564 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14565
14566 # Both c and cxx compiler support -rpath directly
14567 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14568 fi
14569 hardcode_libdir_separator_F77=:
14570 ;;
14571
14572 solaris*)
14573 no_undefined_flag_F77=' -z text'
14574 if test "$GCC" = yes; then
14575 wlarc='${wl}'
14576 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14577 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14578 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14579 else
14580 wlarc=''
14581 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14582 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14583 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14584 fi
14585 hardcode_libdir_flag_spec_F77='-R$libdir'
14586 hardcode_shlibpath_var_F77=no
14587 case $host_os in
14588 solaris2.[0-5] | solaris2.[0-5].*) ;;
14589 *)
14590 # The compiler driver will combine linker options so we
14591 # cannot just pass the convience library names through
14592 # without $wl, iff we do not link with $LD.
14593 # Luckily, gcc supports the same syntax we need for Sun Studio.
14594 # Supported since Solaris 2.6 (maybe 2.5.1?)
14595 case $wlarc in
14596 '')
14597 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14598 *)
14599 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14600 esac ;;
14601 esac
14602 link_all_deplibs_F77=yes
14603 ;;
14604
14605 sunos4*)
14606 if test "x$host_vendor" = xsequent; then
14607 # Use $CC to link under sequent, because it throws in some extra .o
14608 # files that make .init and .fini sections work.
14609 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14610 else
14611 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14612 fi
14613 hardcode_libdir_flag_spec_F77='-L$libdir'
14614 hardcode_direct_F77=yes
14615 hardcode_minus_L_F77=yes
14616 hardcode_shlibpath_var_F77=no
14617 ;;
14618
14619 sysv4)
14620 case $host_vendor in
14621 sni)
14622 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14623 hardcode_direct_F77=yes # is this really true???
14624 ;;
14625 siemens)
14626 ## LD is ld it makes a PLAMLIB
14627 ## CC just makes a GrossModule.
14628 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14629 reload_cmds_F77='$CC -r -o $output$reload_objs'
14630 hardcode_direct_F77=no
14631 ;;
14632 motorola)
14633 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14634 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14635 ;;
14636 esac
14637 runpath_var='LD_RUN_PATH'
14638 hardcode_shlibpath_var_F77=no
14639 ;;
14640
14641 sysv4.3*)
14642 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14643 hardcode_shlibpath_var_F77=no
14644 export_dynamic_flag_spec_F77='-Bexport'
14645 ;;
14646
14647 sysv4*MP*)
14648 if test -d /usr/nec; then
14649 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14650 hardcode_shlibpath_var_F77=no
14651 runpath_var=LD_RUN_PATH
14652 hardcode_runpath_var=yes
14653 ld_shlibs_F77=yes
14654 fi
14655 ;;
14656
14657 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14658 no_undefined_flag_F77='${wl}-z,text'
14659 archive_cmds_need_lc_F77=no
14660 hardcode_shlibpath_var_F77=no
14661 runpath_var='LD_RUN_PATH'
14662
14663 if test "$GCC" = yes; then
14664 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14665 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14666 else
14667 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14668 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14669 fi
14670 ;;
14671
14672 sysv5* | sco3.2v5* | sco5v6*)
14673 # Note: We can NOT use -z defs as we might desire, because we do not
14674 # link with -lc, and that would cause any symbols used from libc to
14675 # always be unresolved, which means just about no library would
14676 # ever link correctly. If we're not using GNU ld we use -z text
14677 # though, which does catch some bad symbols but isn't as heavy-handed
14678 # as -z defs.
14679 no_undefined_flag_F77='${wl}-z,text'
14680 allow_undefined_flag_F77='${wl}-z,nodefs'
14681 archive_cmds_need_lc_F77=no
14682 hardcode_shlibpath_var_F77=no
14683 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14684 hardcode_libdir_separator_F77=':'
14685 link_all_deplibs_F77=yes
14686 export_dynamic_flag_spec_F77='${wl}-Bexport'
14687 runpath_var='LD_RUN_PATH'
14688
14689 if test "$GCC" = yes; then
14690 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14691 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14692 else
14693 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14694 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14695 fi
14696 ;;
14697
14698 uts4*)
14699 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14700 hardcode_libdir_flag_spec_F77='-L$libdir'
14701 hardcode_shlibpath_var_F77=no
14702 ;;
14703
14704 *)
14705 ld_shlibs_F77=no
14706 ;;
14707 esac
14708 fi
14709
14710{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14711echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14712test "$ld_shlibs_F77" = no && can_build_shared=no
14713
14714#
14715# Do we need to explicitly link libc?
14716#
14717case "x$archive_cmds_need_lc_F77" in
14718x|xyes)
14719 # Assume -lc should be added
14720 archive_cmds_need_lc_F77=yes
14721
14722 if test "$enable_shared" = yes && test "$GCC" = yes; then
14723 case $archive_cmds_F77 in
14724 *'~'*)
14725 # FIXME: we may have to deal with multi-command sequences.
14726 ;;
14727 '$CC '*)
14728 # Test whether the compiler implicitly links with -lc since on some
14729 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14730 # to ld, don't add -lc before -lgcc.
14731 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14732echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14733 $rm conftest*
14734 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14735
14736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14737 (eval $ac_compile) 2>&5
14738 ac_status=$?
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); } 2>conftest.err; then
14741 soname=conftest
14742 lib=conftest
14743 libobjs=conftest.$ac_objext
14744 deplibs=
14745 wl=$lt_prog_compiler_wl_F77
14746 pic_flag=$lt_prog_compiler_pic_F77
14747 compiler_flags=-v
14748 linker_flags=-v
14749 verstring=
14750 output_objdir=.
14751 libname=conftest
14752 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14753 allow_undefined_flag_F77=
14754 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14755 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14756 ac_status=$?
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); }
14759 then
14760 archive_cmds_need_lc_F77=no
14761 else
14762 archive_cmds_need_lc_F77=yes
14763 fi
14764 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14765 else
14766 cat conftest.err 1>&5
14767 fi
14768 $rm conftest*
14769 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14770echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14771 ;;
14772 esac
14773 fi
14774 ;;
14775esac
14776
14777{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14778echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14779library_names_spec=
14780libname_spec='lib$name'
14781soname_spec=
14782shrext_cmds=".so"
14783postinstall_cmds=
14784postuninstall_cmds=
14785finish_cmds=
14786finish_eval=
14787shlibpath_var=
14788shlibpath_overrides_runpath=unknown
14789version_type=none
14790dynamic_linker="$host_os ld.so"
14791sys_lib_dlsearch_path_spec="/lib /usr/lib"
14792if test "$GCC" = yes; then
14793 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14794 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14795 # if the path contains ";" then we assume it to be the separator
14796 # otherwise default to the standard path separator (i.e. ":") - it is
14797 # assumed that no part of a normal pathname contains ";" but that should
14798 # okay in the real world where ";" in dirpaths is itself problematic.
14799 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14800 else
14801 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14802 fi
14803else
14804 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14805fi
14806need_lib_prefix=unknown
14807hardcode_into_libs=no
14808
14809# when you set need_version to no, make sure it does not cause -set_version
14810# flags to be left without arguments
14811need_version=unknown
14812
14813case $host_os in
14814aix3*)
14815 version_type=linux
14816 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14817 shlibpath_var=LIBPATH
14818
14819 # AIX 3 has no versioning support, so we append a major version to the name.
14820 soname_spec='${libname}${release}${shared_ext}$major'
14821 ;;
14822
14823aix4* | aix5*)
14824 version_type=linux
14825 need_lib_prefix=no
14826 need_version=no
14827 hardcode_into_libs=yes
14828 if test "$host_cpu" = ia64; then
14829 # AIX 5 supports IA64
14830 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14831 shlibpath_var=LD_LIBRARY_PATH
14832 else
14833 # With GCC up to 2.95.x, collect2 would create an import file
14834 # for dependence libraries. The import file would start with
14835 # the line `#! .'. This would cause the generated library to
14836 # depend on `.', always an invalid library. This was fixed in
14837 # development snapshots of GCC prior to 3.0.
14838 case $host_os in
14839 aix4 | aix4.[01] | aix4.[01].*)
14840 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14841 echo ' yes '
14842 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14843 :
14844 else
14845 can_build_shared=no
14846 fi
14847 ;;
14848 esac
14849 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14850 # soname into executable. Probably we can add versioning support to
14851 # collect2, so additional links can be useful in future.
14852 if test "$aix_use_runtimelinking" = yes; then
14853 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14854 # instead of lib<name>.a to let people know that these are not
14855 # typical AIX shared libraries.
14856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14857 else
14858 # We preserve .a as extension for shared libraries through AIX4.2
14859 # and later when we are not doing run time linking.
14860 library_names_spec='${libname}${release}.a $libname.a'
14861 soname_spec='${libname}${release}${shared_ext}$major'
14862 fi
14863 shlibpath_var=LIBPATH
14864 fi
14865 ;;
14866
14867amigaos*)
14868 library_names_spec='$libname.ixlibrary $libname.a'
14869 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14870 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'
14871 ;;
14872
14873beos*)
14874 library_names_spec='${libname}${shared_ext}'
14875 dynamic_linker="$host_os ld.so"
14876 shlibpath_var=LIBRARY_PATH
14877 ;;
14878
14879bsdi[45]*)
14880 version_type=linux
14881 need_version=no
14882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14883 soname_spec='${libname}${release}${shared_ext}$major'
14884 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14885 shlibpath_var=LD_LIBRARY_PATH
14886 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14887 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14888 # the default ld.so.conf also contains /usr/contrib/lib and
14889 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14890 # libtool to hard-code these into programs
14891 ;;
14892
14893cygwin* | mingw* | pw32*)
14894 version_type=windows
14895 shrext_cmds=".dll"
14896 need_version=no
14897 need_lib_prefix=no
14898
14899 case $GCC,$host_os in
14900 yes,cygwin* | yes,mingw* | yes,pw32*)
14901 library_names_spec='$libname.dll.a'
14902 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14903 postinstall_cmds='base_file=`basename \${file}`~
14904 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14905 dldir=$destdir/`dirname \$dlpath`~
14906 test -d \$dldir || mkdir -p \$dldir~
14907 $install_prog $dir/$dlname \$dldir/$dlname~
14908 chmod a+x \$dldir/$dlname'
14909 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14910 dlpath=$dir/\$dldll~
14911 $rm \$dlpath'
14912 shlibpath_overrides_runpath=yes
14913
14914 case $host_os in
14915 cygwin*)
14916 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14917 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14918 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14919 ;;
14920 mingw*)
14921 # MinGW DLLs use traditional 'lib' prefix
14922 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14923 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14924 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14925 # It is most probably a Windows format PATH printed by
14926 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14927 # path with ; separators, and with drive letters. We can handle the
14928 # drive letters (cygwin fileutils understands them), so leave them,
14929 # especially as we might pass files found there to a mingw objdump,
14930 # which wouldn't understand a cygwinified path. Ahh.
14931 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14932 else
14933 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14934 fi
14935 ;;
14936 pw32*)
14937 # pw32 DLLs use 'pw' prefix rather than 'lib'
14938 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14939 ;;
14940 esac
14941 ;;
14942
14943 linux*)
14944 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14945 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14946 supports_anon_versioning=no
14947 case `$LD -v 2>/dev/null` in
14948 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14949 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14950 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14951 *\ 2.11.*) ;; # other 2.11 versions
14952 *) supports_anon_versioning=yes ;;
14953 esac
14954 if test $supports_anon_versioning = yes; then
14955 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14956cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14957$echo "local: *; };" >> $output_objdir/$libname.ver~
14958 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14959 else
14960 $archive_expsym_cmds="$archive_cmds"
14961 fi
14962 else
14963 ld_shlibs=no
14964 fi
14965 ;;
14966
14967 *)
14968 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14969 ;;
14970 esac
14971 dynamic_linker='Win32 ld.exe'
14972 # FIXME: first we should search . and the directory the executable is in
14973 shlibpath_var=PATH
14974 ;;
14975
14976darwin* | rhapsody*)
14977 dynamic_linker="$host_os dyld"
14978 version_type=darwin
14979 need_lib_prefix=no
14980 need_version=no
14981 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14982 soname_spec='${libname}${release}${major}$shared_ext'
14983 shlibpath_overrides_runpath=yes
14984 shlibpath_var=DYLD_LIBRARY_PATH
14985 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14986 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14987 if test "$GCC" = yes; then
14988 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14989 else
14990 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14991 fi
14992 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14993 ;;
14994
14995dgux*)
14996 version_type=linux
14997 need_lib_prefix=no
14998 need_version=no
14999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15000 soname_spec='${libname}${release}${shared_ext}$major'
15001 shlibpath_var=LD_LIBRARY_PATH
15002 ;;
15003
15004freebsd1*)
15005 dynamic_linker=no
15006 ;;
15007
15008kfreebsd*-gnu)
15009 version_type=linux
15010 need_lib_prefix=no
15011 need_version=no
15012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15013 soname_spec='${libname}${release}${shared_ext}$major'
15014 shlibpath_var=LD_LIBRARY_PATH
15015 shlibpath_overrides_runpath=no
15016 hardcode_into_libs=yes
15017 dynamic_linker='GNU ld.so'
15018 ;;
15019
15020freebsd* | dragonfly*)
15021 # DragonFly does not have aout. When/if they implement a new
15022 # versioning mechanism, adjust this.
15023 if test -x /usr/bin/objformat; then
15024 objformat=`/usr/bin/objformat`
15025 else
15026 case $host_os in
15027 freebsd[123]*) objformat=aout ;;
15028 *) objformat=elf ;;
15029 esac
15030 fi
15031 # Handle Gentoo/FreeBSD as it was Linux
15032 case $host_vendor in
15033 gentoo)
15034 version_type=linux ;;
15035 *)
15036 version_type=freebsd-$objformat ;;
15037 esac
15038
15039 case $version_type in
15040 freebsd-elf*)
15041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15042 need_version=no
15043 need_lib_prefix=no
15044 ;;
15045 freebsd-*)
15046 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15047 need_version=yes
15048 ;;
15049 linux)
15050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15051 soname_spec='${libname}${release}${shared_ext}$major'
15052 need_lib_prefix=no
15053 need_version=no
15054 ;;
15055 esac
15056 shlibpath_var=LD_LIBRARY_PATH
15057 case $host_os in
15058 freebsd2*)
15059 shlibpath_overrides_runpath=yes
15060 ;;
15061 freebsd3.[01]* | freebsdelf3.[01]*)
15062 shlibpath_overrides_runpath=yes
15063 hardcode_into_libs=yes
15064 ;;
15065 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15066 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15067 shlibpath_overrides_runpath=no
15068 hardcode_into_libs=yes
15069 ;;
15070 freebsd*) # from 4.6 on
15071 shlibpath_overrides_runpath=yes
15072 hardcode_into_libs=yes
15073 ;;
15074 esac
15075 ;;
15076
15077gnu*)
15078 version_type=linux
15079 need_lib_prefix=no
15080 need_version=no
15081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15082 soname_spec='${libname}${release}${shared_ext}$major'
15083 shlibpath_var=LD_LIBRARY_PATH
15084 hardcode_into_libs=yes
15085 ;;
15086
15087hpux9* | hpux10* | hpux11*)
15088 # Give a soname corresponding to the major version so that dld.sl refuses to
15089 # link against other versions.
15090 version_type=sunos
15091 need_lib_prefix=no
15092 need_version=no
15093 case $host_cpu in
15094 ia64*)
15095 shrext_cmds='.so'
15096 hardcode_into_libs=yes
15097 dynamic_linker="$host_os dld.so"
15098 shlibpath_var=LD_LIBRARY_PATH
15099 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15101 soname_spec='${libname}${release}${shared_ext}$major'
15102 if test "X$HPUX_IA64_MODE" = X32; then
15103 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15104 else
15105 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15106 fi
15107 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15108 ;;
15109 hppa*64*)
15110 shrext_cmds='.sl'
15111 hardcode_into_libs=yes
15112 dynamic_linker="$host_os dld.sl"
15113 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15114 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15116 soname_spec='${libname}${release}${shared_ext}$major'
15117 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15118 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15119 ;;
15120 *)
15121 shrext_cmds='.sl'
15122 dynamic_linker="$host_os dld.sl"
15123 shlibpath_var=SHLIB_PATH
15124 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15126 soname_spec='${libname}${release}${shared_ext}$major'
15127 ;;
15128 esac
15129 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15130 postinstall_cmds='chmod 555 $lib'
15131 ;;
15132
15133interix3*)
15134 version_type=linux
15135 need_lib_prefix=no
15136 need_version=no
15137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15138 soname_spec='${libname}${release}${shared_ext}$major'
15139 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15140 shlibpath_var=LD_LIBRARY_PATH
15141 shlibpath_overrides_runpath=no
15142 hardcode_into_libs=yes
15143 ;;
15144
15145irix5* | irix6* | nonstopux*)
15146 case $host_os in
15147 nonstopux*) version_type=nonstopux ;;
15148 *)
15149 if test "$lt_cv_prog_gnu_ld" = yes; then
15150 version_type=linux
15151 else
15152 version_type=irix
15153 fi ;;
15154 esac
15155 need_lib_prefix=no
15156 need_version=no
15157 soname_spec='${libname}${release}${shared_ext}$major'
15158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15159 case $host_os in
15160 irix5* | nonstopux*)
15161 libsuff= shlibsuff=
15162 ;;
15163 *)
15164 case $LD in # libtool.m4 will add one of these switches to LD
15165 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15166 libsuff= shlibsuff= libmagic=32-bit;;
15167 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15168 libsuff=32 shlibsuff=N32 libmagic=N32;;
15169 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15170 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15171 *) libsuff= shlibsuff= libmagic=never-match;;
15172 esac
15173 ;;
15174 esac
15175 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15176 shlibpath_overrides_runpath=no
15177 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15178 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15179 hardcode_into_libs=yes
15180 ;;
15181
15182# No shared lib support for Linux oldld, aout, or coff.
15183linux*oldld* | linux*aout* | linux*coff*)
15184 dynamic_linker=no
15185 ;;
15186
15187# This must be Linux ELF.
15188linux*)
15189 version_type=linux
15190 need_lib_prefix=no
15191 need_version=no
15192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15193 soname_spec='${libname}${release}${shared_ext}$major'
15194 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15195 shlibpath_var=LD_LIBRARY_PATH
15196 shlibpath_overrides_runpath=no
15197 # This implies no fast_install, which is unacceptable.
15198 # Some rework will be needed to allow for fast_install
15199 # before this can be enabled.
15200 hardcode_into_libs=yes
15201
15202 # Append ld.so.conf contents to the search path
15203 if test -f /etc/ld.so.conf; then
15204 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15205 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15206 fi
15207
15208 # We used to test for /lib/ld.so.1 and disable shared libraries on
15209 # powerpc, because MkLinux only supported shared libraries with the
15210 # GNU dynamic linker. Since this was broken with cross compilers,
15211 # most powerpc-linux boxes support dynamic linking these days and
15212 # people can always --disable-shared, the test was removed, and we
15213 # assume the GNU/Linux dynamic linker is in use.
15214 dynamic_linker='GNU/Linux ld.so'
15215 ;;
15216
15217knetbsd*-gnu)
15218 version_type=linux
15219 need_lib_prefix=no
15220 need_version=no
15221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15222 soname_spec='${libname}${release}${shared_ext}$major'
15223 shlibpath_var=LD_LIBRARY_PATH
15224 shlibpath_overrides_runpath=no
15225 hardcode_into_libs=yes
15226 dynamic_linker='GNU ld.so'
15227 ;;
15228
15229netbsd*)
15230 version_type=sunos
15231 need_lib_prefix=no
15232 need_version=no
15233 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15235 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15236 dynamic_linker='NetBSD (a.out) ld.so'
15237 else
15238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15239 soname_spec='${libname}${release}${shared_ext}$major'
15240 dynamic_linker='NetBSD ld.elf_so'
15241 fi
15242 shlibpath_var=LD_LIBRARY_PATH
15243 shlibpath_overrides_runpath=yes
15244 hardcode_into_libs=yes
15245 ;;
15246
15247newsos6)
15248 version_type=linux
15249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15250 shlibpath_var=LD_LIBRARY_PATH
15251 shlibpath_overrides_runpath=yes
15252 ;;
15253
15254nto-qnx*)
15255 version_type=linux
15256 need_lib_prefix=no
15257 need_version=no
15258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15259 soname_spec='${libname}${release}${shared_ext}$major'
15260 shlibpath_var=LD_LIBRARY_PATH
15261 shlibpath_overrides_runpath=yes
15262 ;;
15263
15264openbsd*)
15265 version_type=sunos
15266 sys_lib_dlsearch_path_spec="/usr/lib"
15267 need_lib_prefix=no
15268 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15269 case $host_os in
15270 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15271 *) need_version=no ;;
15272 esac
15273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15274 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15275 shlibpath_var=LD_LIBRARY_PATH
15276 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15277 case $host_os in
15278 openbsd2.[89] | openbsd2.[89].*)
15279 shlibpath_overrides_runpath=no
15280 ;;
15281 *)
15282 shlibpath_overrides_runpath=yes
15283 ;;
15284 esac
15285 else
15286 shlibpath_overrides_runpath=yes
15287 fi
15288 ;;
15289
15290os2*)
15291 libname_spec='$name'
15292 shrext_cmds=".dll"
15293 need_lib_prefix=no
15294 library_names_spec='$libname${shared_ext} $libname.a'
15295 dynamic_linker='OS/2 ld.exe'
15296 shlibpath_var=LIBPATH
15297 ;;
15298
15299osf3* | osf4* | osf5*)
15300 version_type=osf
15301 need_lib_prefix=no
15302 need_version=no
15303 soname_spec='${libname}${release}${shared_ext}$major'
15304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15305 shlibpath_var=LD_LIBRARY_PATH
15306 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15307 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15308 ;;
15309
15310solaris*)
15311 version_type=linux
15312 need_lib_prefix=no
15313 need_version=no
15314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15315 soname_spec='${libname}${release}${shared_ext}$major'
15316 shlibpath_var=LD_LIBRARY_PATH
15317 shlibpath_overrides_runpath=yes
15318 hardcode_into_libs=yes
15319 # ldd complains unless libraries are executable
15320 postinstall_cmds='chmod +x $lib'
15321 ;;
15322
15323sunos4*)
15324 version_type=sunos
15325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15326 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15327 shlibpath_var=LD_LIBRARY_PATH
15328 shlibpath_overrides_runpath=yes
15329 if test "$with_gnu_ld" = yes; then
15330 need_lib_prefix=no
15331 fi
15332 need_version=yes
15333 ;;
15334
15335sysv4 | sysv4.3*)
15336 version_type=linux
15337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15338 soname_spec='${libname}${release}${shared_ext}$major'
15339 shlibpath_var=LD_LIBRARY_PATH
15340 case $host_vendor in
15341 sni)
15342 shlibpath_overrides_runpath=no
15343 need_lib_prefix=no
15344 export_dynamic_flag_spec='${wl}-Blargedynsym'
15345 runpath_var=LD_RUN_PATH
15346 ;;
15347 siemens)
15348 need_lib_prefix=no
15349 ;;
15350 motorola)
15351 need_lib_prefix=no
15352 need_version=no
15353 shlibpath_overrides_runpath=no
15354 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15355 ;;
15356 esac
15357 ;;
15358
15359sysv4*MP*)
15360 if test -d /usr/nec ;then
15361 version_type=linux
15362 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15363 soname_spec='$libname${shared_ext}.$major'
15364 shlibpath_var=LD_LIBRARY_PATH
15365 fi
15366 ;;
15367
15368sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15369 version_type=freebsd-elf
15370 need_lib_prefix=no
15371 need_version=no
15372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15373 soname_spec='${libname}${release}${shared_ext}$major'
15374 shlibpath_var=LD_LIBRARY_PATH
15375 hardcode_into_libs=yes
15376 if test "$with_gnu_ld" = yes; then
15377 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15378 shlibpath_overrides_runpath=no
15379 else
15380 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15381 shlibpath_overrides_runpath=yes
15382 case $host_os in
15383 sco3.2v5*)
15384 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15385 ;;
15386 esac
15387 fi
15388 sys_lib_dlsearch_path_spec='/usr/lib'
15389 ;;
15390
15391uts4*)
15392 version_type=linux
15393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15394 soname_spec='${libname}${release}${shared_ext}$major'
15395 shlibpath_var=LD_LIBRARY_PATH
15396 ;;
15397
15398*)
15399 dynamic_linker=no
15400 ;;
15401esac
15402{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15403echo "${ECHO_T}$dynamic_linker" >&6; }
15404test "$dynamic_linker" = no && can_build_shared=no
15405
15406variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15407if test "$GCC" = yes; then
15408 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15409fi
15410
15411{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15412echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15413hardcode_action_F77=
15414if test -n "$hardcode_libdir_flag_spec_F77" || \
15415 test -n "$runpath_var_F77" || \
15416 test "X$hardcode_automatic_F77" = "Xyes" ; then
15417
15418 # We can hardcode non-existant directories.
15419 if test "$hardcode_direct_F77" != no &&
15420 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15421 # have to relink, otherwise we might link with an installed library
15422 # when we should be linking with a yet-to-be-installed one
15423 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15424 test "$hardcode_minus_L_F77" != no; then
15425 # Linking always hardcodes the temporary library directory.
15426 hardcode_action_F77=relink
15427 else
15428 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15429 hardcode_action_F77=immediate
15430 fi
15431else
15432 # We cannot hardcode anything, or else we can only hardcode existing
15433 # directories.
15434 hardcode_action_F77=unsupported
15435fi
15436{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15437echo "${ECHO_T}$hardcode_action_F77" >&6; }
15438
15439if test "$hardcode_action_F77" = relink; then
15440 # Fast installation is not supported
15441 enable_fast_install=no
15442elif test "$shlibpath_overrides_runpath" = yes ||
15443 test "$enable_shared" = no; then
15444 # Fast installation is not necessary
15445 enable_fast_install=needless
15446fi
15447
15448
15449# The else clause should only fire when bootstrapping the
15450# libtool distribution, otherwise you forgot to ship ltmain.sh
15451# with your package, and you will get complaints that there are
15452# no rules to generate ltmain.sh.
15453if test -f "$ltmain"; then
15454 # See if we are running on zsh, and set the options which allow our commands through
15455 # without removal of \ escapes.
15456 if test -n "${ZSH_VERSION+set}" ; then
15457 setopt NO_GLOB_SUBST
15458 fi
15459 # Now quote all the things that may contain metacharacters while being
15460 # careful not to overquote the AC_SUBSTed values. We take copies of the
15461 # variables and quote the copies for generation of the libtool script.
15462 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15463 SED SHELL STRIP \
15464 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15465 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15466 deplibs_check_method reload_flag reload_cmds need_locks \
15467 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15468 lt_cv_sys_global_symbol_to_c_name_address \
15469 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15470 old_postinstall_cmds old_postuninstall_cmds \
15471 compiler_F77 \
15472 CC_F77 \
15473 LD_F77 \
15474 lt_prog_compiler_wl_F77 \
15475 lt_prog_compiler_pic_F77 \
15476 lt_prog_compiler_static_F77 \
15477 lt_prog_compiler_no_builtin_flag_F77 \
15478 export_dynamic_flag_spec_F77 \
15479 thread_safe_flag_spec_F77 \
15480 whole_archive_flag_spec_F77 \
15481 enable_shared_with_static_runtimes_F77 \
15482 old_archive_cmds_F77 \
15483 old_archive_from_new_cmds_F77 \
15484 predep_objects_F77 \
15485 postdep_objects_F77 \
15486 predeps_F77 \
15487 postdeps_F77 \
15488 compiler_lib_search_path_F77 \
15489 archive_cmds_F77 \
15490 archive_expsym_cmds_F77 \
15491 postinstall_cmds_F77 \
15492 postuninstall_cmds_F77 \
15493 old_archive_from_expsyms_cmds_F77 \
15494 allow_undefined_flag_F77 \
15495 no_undefined_flag_F77 \
15496 export_symbols_cmds_F77 \
15497 hardcode_libdir_flag_spec_F77 \
15498 hardcode_libdir_flag_spec_ld_F77 \
15499 hardcode_libdir_separator_F77 \
15500 hardcode_automatic_F77 \
15501 module_cmds_F77 \
15502 module_expsym_cmds_F77 \
15503 lt_cv_prog_compiler_c_o_F77 \
15504 exclude_expsyms_F77 \
15505 include_expsyms_F77; do
15506
15507 case $var in
15508 old_archive_cmds_F77 | \
15509 old_archive_from_new_cmds_F77 | \
15510 archive_cmds_F77 | \
15511 archive_expsym_cmds_F77 | \
15512 module_cmds_F77 | \
15513 module_expsym_cmds_F77 | \
15514 old_archive_from_expsyms_cmds_F77 | \
15515 export_symbols_cmds_F77 | \
15516 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15517 postinstall_cmds | postuninstall_cmds | \
15518 old_postinstall_cmds | old_postuninstall_cmds | \
15519 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15520 # Double-quote double-evaled strings.
15521 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15522 ;;
15523 *)
15524 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15525 ;;
15526 esac
15527 done
15528
15529 case $lt_echo in
15530 *'\$0 --fallback-echo"')
15531 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15532 ;;
15533 esac
15534
15535cfgfile="$ofile"
15536
15537 cat <<__EOF__ >> "$cfgfile"
15538# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15539
15540# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15541
15542# Shell to use when invoking shell scripts.
15543SHELL=$lt_SHELL
15544
15545# Whether or not to build shared libraries.
15546build_libtool_libs=$enable_shared
15547
15548# Whether or not to build static libraries.
15549build_old_libs=$enable_static
15550
15551# Whether or not to add -lc for building shared libraries.
15552build_libtool_need_lc=$archive_cmds_need_lc_F77
15553
15554# Whether or not to disallow shared libs when runtime libs are static
15555allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15556
15557# Whether or not to optimize for fast installation.
15558fast_install=$enable_fast_install
15559
15560# The host system.
15561host_alias=$host_alias
15562host=$host
15563host_os=$host_os
15564
15565# The build system.
15566build_alias=$build_alias
15567build=$build
15568build_os=$build_os
15569
15570# An echo program that does not interpret backslashes.
15571echo=$lt_echo
15572
15573# The archiver.
15574AR=$lt_AR
15575AR_FLAGS=$lt_AR_FLAGS
15576
15577# A C compiler.
15578LTCC=$lt_LTCC
15579
15580# LTCC compiler flags.
15581LTCFLAGS=$lt_LTCFLAGS
15582
15583# A language-specific compiler.
15584CC=$lt_compiler_F77
15585
15586# Is the compiler the GNU C compiler?
15587with_gcc=$GCC_F77
15588
15589# An ERE matcher.
15590EGREP=$lt_EGREP
15591
15592# The linker used to build libraries.
15593LD=$lt_LD_F77
15594
15595# Whether we need hard or soft links.
15596LN_S=$lt_LN_S
15597
15598# A BSD-compatible nm program.
15599NM=$lt_NM
15600
15601# A symbol stripping program
15602STRIP=$lt_STRIP
15603
15604# Used to examine libraries when file_magic_cmd begins "file"
15605MAGIC_CMD=$MAGIC_CMD
15606
15607# Used on cygwin: DLL creation program.
15608DLLTOOL="$DLLTOOL"
15609
15610# Used on cygwin: object dumper.
15611OBJDUMP="$OBJDUMP"
15612
15613# Used on cygwin: assembler.
15614AS="$AS"
15615
15616# The name of the directory that contains temporary libtool files.
15617objdir=$objdir
15618
15619# How to create reloadable object files.
15620reload_flag=$lt_reload_flag
15621reload_cmds=$lt_reload_cmds
15622
15623# How to pass a linker flag through the compiler.
15624wl=$lt_lt_prog_compiler_wl_F77
15625
15626# Object file suffix (normally "o").
15627objext="$ac_objext"
15628
15629# Old archive suffix (normally "a").
15630libext="$libext"
15631
15632# Shared library suffix (normally ".so").
15633shrext_cmds='$shrext_cmds'
15634
15635# Executable file suffix (normally "").
15636exeext="$exeext"
15637
15638# Additional compiler flags for building library objects.
15639pic_flag=$lt_lt_prog_compiler_pic_F77
15640pic_mode=$pic_mode
15641
15642# What is the maximum length of a command?
15643max_cmd_len=$lt_cv_sys_max_cmd_len
15644
15645# Does compiler simultaneously support -c and -o options?
15646compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15647
15648# Must we lock files when doing compilation?
15649need_locks=$lt_need_locks
15650
15651# Do we need the lib prefix for modules?
15652need_lib_prefix=$need_lib_prefix
15653
15654# Do we need a version for libraries?
15655need_version=$need_version
15656
15657# Whether dlopen is supported.
15658dlopen_support=$enable_dlopen
15659
15660# Whether dlopen of programs is supported.
15661dlopen_self=$enable_dlopen_self
15662
15663# Whether dlopen of statically linked programs is supported.
15664dlopen_self_static=$enable_dlopen_self_static
15665
15666# Compiler flag to prevent dynamic linking.
15667link_static_flag=$lt_lt_prog_compiler_static_F77
15668
15669# Compiler flag to turn off builtin functions.
15670no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15671
15672# Compiler flag to allow reflexive dlopens.
15673export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15674
15675# Compiler flag to generate shared objects directly from archives.
15676whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15677
15678# Compiler flag to generate thread-safe objects.
15679thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15680
15681# Library versioning type.
15682version_type=$version_type
15683
15684# Format of library name prefix.
15685libname_spec=$lt_libname_spec
15686
15687# List of archive names. First name is the real one, the rest are links.
15688# The last name is the one that the linker finds with -lNAME.
15689library_names_spec=$lt_library_names_spec
15690
15691# The coded name of the library, if different from the real name.
15692soname_spec=$lt_soname_spec
15693
15694# Commands used to build and install an old-style archive.
15695RANLIB=$lt_RANLIB
15696old_archive_cmds=$lt_old_archive_cmds_F77
15697old_postinstall_cmds=$lt_old_postinstall_cmds
15698old_postuninstall_cmds=$lt_old_postuninstall_cmds
15699
15700# Create an old-style archive from a shared archive.
15701old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15702
15703# Create a temporary old-style archive to link instead of a shared archive.
15704old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15705
15706# Commands used to build and install a shared archive.
15707archive_cmds=$lt_archive_cmds_F77
15708archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15709postinstall_cmds=$lt_postinstall_cmds
15710postuninstall_cmds=$lt_postuninstall_cmds
15711
15712# Commands used to build a loadable module (assumed same as above if empty)
15713module_cmds=$lt_module_cmds_F77
15714module_expsym_cmds=$lt_module_expsym_cmds_F77
15715
15716# Commands to strip libraries.
15717old_striplib=$lt_old_striplib
15718striplib=$lt_striplib
15719
15720# Dependencies to place before the objects being linked to create a
15721# shared library.
15722predep_objects=$lt_predep_objects_F77
15723
15724# Dependencies to place after the objects being linked to create a
15725# shared library.
15726postdep_objects=$lt_postdep_objects_F77
15727
15728# Dependencies to place before the objects being linked to create a
15729# shared library.
15730predeps=$lt_predeps_F77
15731
15732# Dependencies to place after the objects being linked to create a
15733# shared library.
15734postdeps=$lt_postdeps_F77
15735
15736# The library search path used internally by the compiler when linking
15737# a shared library.
15738compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15739
15740# Method to check whether dependent libraries are shared objects.
15741deplibs_check_method=$lt_deplibs_check_method
15742
15743# Command to use when deplibs_check_method == file_magic.
15744file_magic_cmd=$lt_file_magic_cmd
15745
15746# Flag that allows shared libraries with undefined symbols to be built.
15747allow_undefined_flag=$lt_allow_undefined_flag_F77
15748
15749# Flag that forces no undefined symbols.
15750no_undefined_flag=$lt_no_undefined_flag_F77
15751
15752# Commands used to finish a libtool library installation in a directory.
15753finish_cmds=$lt_finish_cmds
15754
15755# Same as above, but a single script fragment to be evaled but not shown.
15756finish_eval=$lt_finish_eval
15757
15758# Take the output of nm and produce a listing of raw symbols and C names.
15759global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15760
15761# Transform the output of nm in a proper C declaration
15762global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15763
15764# Transform the output of nm in a C name address pair
15765global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15766
15767# This is the shared library runtime path variable.
15768runpath_var=$runpath_var
15769
15770# This is the shared library path variable.
15771shlibpath_var=$shlibpath_var
15772
15773# Is shlibpath searched before the hard-coded library search path?
15774shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15775
15776# How to hardcode a shared library path into an executable.
15777hardcode_action=$hardcode_action_F77
15778
15779# Whether we should hardcode library paths into libraries.
15780hardcode_into_libs=$hardcode_into_libs
15781
15782# Flag to hardcode \$libdir into a binary during linking.
15783# This must work even if \$libdir does not exist.
15784hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15785
15786# If ld is used when linking, flag to hardcode \$libdir into
15787# a binary during linking. This must work even if \$libdir does
15788# not exist.
15789hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15790
15791# Whether we need a single -rpath flag with a separated argument.
15792hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15793
15794# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15795# resulting binary.
15796hardcode_direct=$hardcode_direct_F77
15797
15798# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15799# resulting binary.
15800hardcode_minus_L=$hardcode_minus_L_F77
15801
15802# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15803# the resulting binary.
15804hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15805
15806# Set to yes if building a shared library automatically hardcodes DIR into the library
15807# and all subsequent libraries and executables linked against it.
15808hardcode_automatic=$hardcode_automatic_F77
15809
15810# Variables whose values should be saved in libtool wrapper scripts and
15811# restored at relink time.
15812variables_saved_for_relink="$variables_saved_for_relink"
15813
15814# Whether libtool must link a program against all its dependency libraries.
15815link_all_deplibs=$link_all_deplibs_F77
15816
15817# Compile-time system search path for libraries
15818sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15819
15820# Run-time system search path for libraries
15821sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15822
15823# Fix the shell variable \$srcfile for the compiler.
15824fix_srcfile_path="$fix_srcfile_path_F77"
15825
15826# Set to yes if exported symbols are required.
15827always_export_symbols=$always_export_symbols_F77
15828
15829# The commands to list exported symbols.
15830export_symbols_cmds=$lt_export_symbols_cmds_F77
15831
15832# The commands to extract the exported symbol list from a shared archive.
15833extract_expsyms_cmds=$lt_extract_expsyms_cmds
15834
15835# Symbols that should not be listed in the preloaded symbols.
15836exclude_expsyms=$lt_exclude_expsyms_F77
15837
15838# Symbols that must always be exported.
15839include_expsyms=$lt_include_expsyms_F77
15840
15841# ### END LIBTOOL TAG CONFIG: $tagname
15842
15843__EOF__
15844
15845
15846else
15847 # If there is no Makefile yet, we rely on a make rule to execute
15848 # `config.status --recheck' to rerun these tests and create the
15849 # libtool script then.
15850 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15851 if test -f "$ltmain_in"; then
15852 test -f Makefile && make "$ltmain"
15853 fi
15854fi
15855
15856
15857ac_ext=c
15858ac_cpp='$CPP $CPPFLAGS'
15859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15861ac_compiler_gnu=$ac_cv_c_compiler_gnu
15862
15863CC="$lt_save_CC"
15864
15865 else
15866 tagname=""
15867 fi
15868 ;;
15869
15870 GCJ)
15871 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15872
15873
15874# Source file extension for Java test sources.
15875ac_ext=java
15876
15877# Object file extension for compiled Java test sources.
15878objext=o
15879objext_GCJ=$objext
15880
15881# Code to be used in simple compile tests
15882lt_simple_compile_test_code="class foo {}\n"
15883
15884# Code to be used in simple link tests
15885lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15886
15887# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15888
15889# If no C compiler was specified, use CC.
15890LTCC=${LTCC-"$CC"}
15891
15892# If no C compiler flags were specified, use CFLAGS.
15893LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15894
15895# Allow CC to be a program name with arguments.
15896compiler=$CC
15897
15898
15899# save warnings/boilerplate of simple test code
15900ac_outfile=conftest.$ac_objext
15901printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15902eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15903_lt_compiler_boilerplate=`cat conftest.err`
15904$rm conftest*
15905
15906ac_outfile=conftest.$ac_objext
15907printf "$lt_simple_link_test_code" >conftest.$ac_ext
15908eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15909_lt_linker_boilerplate=`cat conftest.err`
15910$rm conftest*
15911
15912
15913# Allow CC to be a program name with arguments.
15914lt_save_CC="$CC"
15915CC=${GCJ-"gcj"}
15916compiler=$CC
15917compiler_GCJ=$CC
15918for cc_temp in $compiler""; do
15919 case $cc_temp in
15920 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15921 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15922 \-*) ;;
15923 *) break;;
15924 esac
15925done
15926cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15927
15928
15929# GCJ did not exist at the time GCC didn't implicitly link libc in.
15930archive_cmds_need_lc_GCJ=no
15931
15932old_archive_cmds_GCJ=$old_archive_cmds
15933
15934
15935lt_prog_compiler_no_builtin_flag_GCJ=
15936
15937if test "$GCC" = yes; then
15938 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15939
15940
15941{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15942echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15943if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15944 echo $ECHO_N "(cached) $ECHO_C" >&6
15945else
15946 lt_cv_prog_compiler_rtti_exceptions=no
15947 ac_outfile=conftest.$ac_objext
15948 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15949 lt_compiler_flag="-fno-rtti -fno-exceptions"
15950 # Insert the option either (1) after the last *FLAGS variable, or
15951 # (2) before a word containing "conftest.", or (3) at the end.
15952 # Note that $ac_compile itself does not contain backslashes and begins
15953 # with a dollar sign (not a hyphen), so the echo should work correctly.
15954 # The option is referenced via a variable to avoid confusing sed.
15955 lt_compile=`echo "$ac_compile" | $SED \
15956 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15957 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15958 -e 's:$: $lt_compiler_flag:'`
15959 (eval echo "\"\$as_me:15959: $lt_compile\"" >&5)
15960 (eval "$lt_compile" 2>conftest.err)
15961 ac_status=$?
15962 cat conftest.err >&5
15963 echo "$as_me:15963: \$? = $ac_status" >&5
15964 if (exit $ac_status) && test -s "$ac_outfile"; then
15965 # The compiler can only warn and ignore the option if not recognized
15966 # So say no if there are warnings other than the usual output.
15967 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15968 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15969 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15970 lt_cv_prog_compiler_rtti_exceptions=yes
15971 fi
15972 fi
15973 $rm conftest*
15974
15975fi
15976{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15977echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15978
15979if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15980 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15981else
15982 :
15983fi
15984
15985fi
15986
15987lt_prog_compiler_wl_GCJ=
15988lt_prog_compiler_pic_GCJ=
15989lt_prog_compiler_static_GCJ=
15990
15991{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15992echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15993
15994 if test "$GCC" = yes; then
15995 lt_prog_compiler_wl_GCJ='-Wl,'
15996 lt_prog_compiler_static_GCJ='-static'
15997
15998 case $host_os in
15999 aix*)
16000 # All AIX code is PIC.
16001 if test "$host_cpu" = ia64; then
16002 # AIX 5 now supports IA64 processor
16003 lt_prog_compiler_static_GCJ='-Bstatic'
16004 fi
16005 ;;
16006
16007 amigaos*)
16008 # FIXME: we need at least 68020 code to build shared libraries, but
16009 # adding the `-m68020' flag to GCC prevents building anything better,
16010 # like `-m68040'.
16011 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16012 ;;
16013
16014 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16015 # PIC is the default for these OSes.
16016 ;;
16017
16018 mingw* | pw32* | os2*)
16019 # This hack is so that the source file can tell whether it is being
16020 # built for inclusion in a dll (and should export symbols for example).
16021 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16022 ;;
16023
16024 darwin* | rhapsody*)
16025 # PIC is the default on this platform
16026 # Common symbols not allowed in MH_DYLIB files
16027 lt_prog_compiler_pic_GCJ='-fno-common'
16028 ;;
16029
16030 interix3*)
16031 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16032 # Instead, we relocate shared libraries at runtime.
16033 ;;
16034
16035 msdosdjgpp*)
16036 # Just because we use GCC doesn't mean we suddenly get shared libraries
16037 # on systems that don't support them.
16038 lt_prog_compiler_can_build_shared_GCJ=no
16039 enable_shared=no
16040 ;;
16041
16042 sysv4*MP*)
16043 if test -d /usr/nec; then
16044 lt_prog_compiler_pic_GCJ=-Kconform_pic
16045 fi
16046 ;;
16047
16048 hpux*)
16049 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16050 # not for PA HP-UX.
16051 case $host_cpu in
16052 hppa*64*|ia64*)
16053 # +Z the default
16054 ;;
16055 *)
16056 lt_prog_compiler_pic_GCJ='-fPIC'
16057 ;;
16058 esac
16059 ;;
16060
16061 *)
16062 lt_prog_compiler_pic_GCJ='-fPIC'
16063 ;;
16064 esac
16065 else
16066 # PORTME Check for flag to pass linker flags through the system compiler.
16067 case $host_os in
16068 aix*)
16069 lt_prog_compiler_wl_GCJ='-Wl,'
16070 if test "$host_cpu" = ia64; then
16071 # AIX 5 now supports IA64 processor
16072 lt_prog_compiler_static_GCJ='-Bstatic'
16073 else
16074 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16075 fi
16076 ;;
16077 darwin*)
16078 # PIC is the default on this platform
16079 # Common symbols not allowed in MH_DYLIB files
16080 case $cc_basename in
16081 xlc*)
16082 lt_prog_compiler_pic_GCJ='-qnocommon'
16083 lt_prog_compiler_wl_GCJ='-Wl,'
16084 ;;
16085 esac
16086 ;;
16087
16088 mingw* | pw32* | os2*)
16089 # This hack is so that the source file can tell whether it is being
16090 # built for inclusion in a dll (and should export symbols for example).
16091 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16092 ;;
16093
16094 hpux9* | hpux10* | hpux11*)
16095 lt_prog_compiler_wl_GCJ='-Wl,'
16096 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16097 # not for PA HP-UX.
16098 case $host_cpu in
16099 hppa*64*|ia64*)
16100 # +Z the default
16101 ;;
16102 *)
16103 lt_prog_compiler_pic_GCJ='+Z'
16104 ;;
16105 esac
16106 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16107 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16108 ;;
16109
16110 irix5* | irix6* | nonstopux*)
16111 lt_prog_compiler_wl_GCJ='-Wl,'
16112 # PIC (with -KPIC) is the default.
16113 lt_prog_compiler_static_GCJ='-non_shared'
16114 ;;
16115
16116 newsos6)
16117 lt_prog_compiler_pic_GCJ='-KPIC'
16118 lt_prog_compiler_static_GCJ='-Bstatic'
16119 ;;
16120
16121 linux*)
16122 case $cc_basename in
16123 icc* | ecc*)
16124 lt_prog_compiler_wl_GCJ='-Wl,'
16125 lt_prog_compiler_pic_GCJ='-KPIC'
16126 lt_prog_compiler_static_GCJ='-static'
16127 ;;
16128 pgcc* | pgf77* | pgf90* | pgf95*)
16129 # Portland Group compilers (*not* the Pentium gcc compiler,
16130 # which looks to be a dead project)
16131 lt_prog_compiler_wl_GCJ='-Wl,'
16132 lt_prog_compiler_pic_GCJ='-fpic'
16133 lt_prog_compiler_static_GCJ='-Bstatic'
16134 ;;
16135 ccc*)
16136 lt_prog_compiler_wl_GCJ='-Wl,'
16137 # All Alpha code is PIC.
16138 lt_prog_compiler_static_GCJ='-non_shared'
16139 ;;
16140 esac
16141 ;;
16142
16143 osf3* | osf4* | osf5*)
16144 lt_prog_compiler_wl_GCJ='-Wl,'
16145 # All OSF/1 code is PIC.
16146 lt_prog_compiler_static_GCJ='-non_shared'
16147 ;;
16148
16149 solaris*)
16150 lt_prog_compiler_pic_GCJ='-KPIC'
16151 lt_prog_compiler_static_GCJ='-Bstatic'
16152 case $cc_basename in
16153 f77* | f90* | f95*)
16154 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16155 *)
16156 lt_prog_compiler_wl_GCJ='-Wl,';;
16157 esac
16158 ;;
16159
16160 sunos4*)
16161 lt_prog_compiler_wl_GCJ='-Qoption ld '
16162 lt_prog_compiler_pic_GCJ='-PIC'
16163 lt_prog_compiler_static_GCJ='-Bstatic'
16164 ;;
16165
16166 sysv4 | sysv4.2uw2* | sysv4.3*)
16167 lt_prog_compiler_wl_GCJ='-Wl,'
16168 lt_prog_compiler_pic_GCJ='-KPIC'
16169 lt_prog_compiler_static_GCJ='-Bstatic'
16170 ;;
16171
16172 sysv4*MP*)
16173 if test -d /usr/nec ;then
16174 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16175 lt_prog_compiler_static_GCJ='-Bstatic'
16176 fi
16177 ;;
16178
16179 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16180 lt_prog_compiler_wl_GCJ='-Wl,'
16181 lt_prog_compiler_pic_GCJ='-KPIC'
16182 lt_prog_compiler_static_GCJ='-Bstatic'
16183 ;;
16184
16185 unicos*)
16186 lt_prog_compiler_wl_GCJ='-Wl,'
16187 lt_prog_compiler_can_build_shared_GCJ=no
16188 ;;
16189
16190 uts4*)
16191 lt_prog_compiler_pic_GCJ='-pic'
16192 lt_prog_compiler_static_GCJ='-Bstatic'
16193 ;;
16194
16195 *)
16196 lt_prog_compiler_can_build_shared_GCJ=no
16197 ;;
16198 esac
16199 fi
16200
16201{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16202echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16203
16204#
16205# Check to make sure the PIC flag actually works.
16206#
16207if test -n "$lt_prog_compiler_pic_GCJ"; then
16208
16209{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16210echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16211if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16212 echo $ECHO_N "(cached) $ECHO_C" >&6
16213else
16214 lt_prog_compiler_pic_works_GCJ=no
16215 ac_outfile=conftest.$ac_objext
16216 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16217 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16218 # Insert the option either (1) after the last *FLAGS variable, or
16219 # (2) before a word containing "conftest.", or (3) at the end.
16220 # Note that $ac_compile itself does not contain backslashes and begins
16221 # with a dollar sign (not a hyphen), so the echo should work correctly.
16222 # The option is referenced via a variable to avoid confusing sed.
16223 lt_compile=`echo "$ac_compile" | $SED \
16224 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16225 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16226 -e 's:$: $lt_compiler_flag:'`
16227 (eval echo "\"\$as_me:16227: $lt_compile\"" >&5)
16228 (eval "$lt_compile" 2>conftest.err)
16229 ac_status=$?
16230 cat conftest.err >&5
16231 echo "$as_me:16231: \$? = $ac_status" >&5
16232 if (exit $ac_status) && test -s "$ac_outfile"; then
16233 # The compiler can only warn and ignore the option if not recognized
16234 # So say no if there are warnings other than the usual output.
16235 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16236 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16237 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16238 lt_prog_compiler_pic_works_GCJ=yes
16239 fi
16240 fi
16241 $rm conftest*
16242
16243fi
16244{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16245echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16246
16247if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16248 case $lt_prog_compiler_pic_GCJ in
16249 "" | " "*) ;;
16250 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16251 esac
16252else
16253 lt_prog_compiler_pic_GCJ=
16254 lt_prog_compiler_can_build_shared_GCJ=no
16255fi
16256
16257fi
16258case $host_os in
16259 # For platforms which do not support PIC, -DPIC is meaningless:
16260 *djgpp*)
16261 lt_prog_compiler_pic_GCJ=
16262 ;;
16263 *)
16264 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16265 ;;
16266esac
16267
16268#
16269# Check to make sure the static flag actually works.
16270#
16271wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16272{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16273echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16274if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16275 echo $ECHO_N "(cached) $ECHO_C" >&6
16276else
16277 lt_prog_compiler_static_works_GCJ=no
16278 save_LDFLAGS="$LDFLAGS"
16279 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16280 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16281 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16282 # The linker can only warn and ignore the option if not recognized
16283 # So say no if there are warnings
16284 if test -s conftest.err; then
16285 # Append any errors to the config.log.
16286 cat conftest.err 1>&5
16287 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16288 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16289 if diff conftest.exp conftest.er2 >/dev/null; then
16290 lt_prog_compiler_static_works_GCJ=yes
16291 fi
16292 else
16293 lt_prog_compiler_static_works_GCJ=yes
16294 fi
16295 fi
16296 $rm conftest*
16297 LDFLAGS="$save_LDFLAGS"
16298
16299fi
16300{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16301echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16302
16303if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16304 :
16305else
16306 lt_prog_compiler_static_GCJ=
16307fi
16308
16309
16310{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16311echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16312if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16313 echo $ECHO_N "(cached) $ECHO_C" >&6
16314else
16315 lt_cv_prog_compiler_c_o_GCJ=no
16316 $rm -r conftest 2>/dev/null
16317 mkdir conftest
16318 cd conftest
16319 mkdir out
16320 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16321
16322 lt_compiler_flag="-o out/conftest2.$ac_objext"
16323 # Insert the option either (1) after the last *FLAGS variable, or
16324 # (2) before a word containing "conftest.", or (3) at the end.
16325 # Note that $ac_compile itself does not contain backslashes and begins
16326 # with a dollar sign (not a hyphen), so the echo should work correctly.
16327 lt_compile=`echo "$ac_compile" | $SED \
16328 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16329 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16330 -e 's:$: $lt_compiler_flag:'`
16331 (eval echo "\"\$as_me:16331: $lt_compile\"" >&5)
16332 (eval "$lt_compile" 2>out/conftest.err)
16333 ac_status=$?
16334 cat out/conftest.err >&5
16335 echo "$as_me:16335: \$? = $ac_status" >&5
16336 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16337 then
16338 # The compiler can only warn and ignore the option if not recognized
16339 # So say no if there are warnings
16340 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16341 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16342 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16343 lt_cv_prog_compiler_c_o_GCJ=yes
16344 fi
16345 fi
16346 chmod u+w . 2>&5
16347 $rm conftest*
16348 # SGI C++ compiler will create directory out/ii_files/ for
16349 # template instantiation
16350 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16351 $rm out/* && rmdir out
16352 cd ..
16353 rmdir conftest
16354 $rm conftest*
16355
16356fi
16357{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16358echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16359
16360
16361hard_links="nottested"
16362if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16363 # do not overwrite the value of need_locks provided by the user
16364 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16365echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16366 hard_links=yes
16367 $rm conftest*
16368 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16369 touch conftest.a
16370 ln conftest.a conftest.b 2>&5 || hard_links=no
16371 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16372 { echo "$as_me:$LINENO: result: $hard_links" >&5
16373echo "${ECHO_T}$hard_links" >&6; }
16374 if test "$hard_links" = no; then
16375 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16376echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16377 need_locks=warn
16378 fi
16379else
16380 need_locks=no
16381fi
16382
16383{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16384echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16385
16386 runpath_var=
16387 allow_undefined_flag_GCJ=
16388 enable_shared_with_static_runtimes_GCJ=no
16389 archive_cmds_GCJ=
16390 archive_expsym_cmds_GCJ=
16391 old_archive_From_new_cmds_GCJ=
16392 old_archive_from_expsyms_cmds_GCJ=
16393 export_dynamic_flag_spec_GCJ=
16394 whole_archive_flag_spec_GCJ=
16395 thread_safe_flag_spec_GCJ=
16396 hardcode_libdir_flag_spec_GCJ=
16397 hardcode_libdir_flag_spec_ld_GCJ=
16398 hardcode_libdir_separator_GCJ=
16399 hardcode_direct_GCJ=no
16400 hardcode_minus_L_GCJ=no
16401 hardcode_shlibpath_var_GCJ=unsupported
16402 link_all_deplibs_GCJ=unknown
16403 hardcode_automatic_GCJ=no
16404 module_cmds_GCJ=
16405 module_expsym_cmds_GCJ=
16406 always_export_symbols_GCJ=no
16407 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16408 # include_expsyms should be a list of space-separated symbols to be *always*
16409 # included in the symbol list
16410 include_expsyms_GCJ=
16411 # exclude_expsyms can be an extended regexp of symbols to exclude
16412 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16413 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16414 # as well as any symbol that contains `d'.
16415 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16416 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16417 # platforms (ab)use it in PIC code, but their linkers get confused if
16418 # the symbol is explicitly referenced. Since portable code cannot
16419 # rely on this symbol name, it's probably fine to never include it in
16420 # preloaded symbol tables.
16421 extract_expsyms_cmds=
16422 # Just being paranoid about ensuring that cc_basename is set.
16423 for cc_temp in $compiler""; do
16424 case $cc_temp in
16425 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16426 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16427 \-*) ;;
16428 *) break;;
16429 esac
16430done
16431cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16432
16433 case $host_os in
16434 cygwin* | mingw* | pw32*)
16435 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16436 # When not using gcc, we currently assume that we are using
16437 # Microsoft Visual C++.
16438 if test "$GCC" != yes; then
16439 with_gnu_ld=no
16440 fi
16441 ;;
16442 interix*)
16443 # we just hope/assume this is gcc and not c89 (= MSVC++)
16444 with_gnu_ld=yes
16445 ;;
16446 openbsd*)
16447 with_gnu_ld=no
16448 ;;
16449 esac
16450
16451 ld_shlibs_GCJ=yes
16452 if test "$with_gnu_ld" = yes; then
16453 # If archive_cmds runs LD, not CC, wlarc should be empty
16454 wlarc='${wl}'
16455
16456 # Set some defaults for GNU ld with shared library support. These
16457 # are reset later if shared libraries are not supported. Putting them
16458 # here allows them to be overridden if necessary.
16459 runpath_var=LD_RUN_PATH
16460 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16461 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16462 # ancient GNU ld didn't support --whole-archive et. al.
16463 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16464 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16465 else
16466 whole_archive_flag_spec_GCJ=
16467 fi
16468 supports_anon_versioning=no
16469 case `$LD -v 2>/dev/null` in
16470 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16471 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16472 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16473 *\ 2.11.*) ;; # other 2.11 versions
16474 *) supports_anon_versioning=yes ;;
16475 esac
16476
16477 # See if GNU ld supports shared libraries.
16478 case $host_os in
16479 aix3* | aix4* | aix5*)
16480 # On AIX/PPC, the GNU linker is very broken
16481 if test "$host_cpu" != ia64; then
16482 ld_shlibs_GCJ=no
16483 cat <<EOF 1>&2
16484
16485*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16486*** to be unable to reliably create shared libraries on AIX.
16487*** Therefore, libtool is disabling shared libraries support. If you
16488*** really care for shared libraries, you may want to modify your PATH
16489*** so that a non-GNU linker is found, and then restart.
16490
16491EOF
16492 fi
16493 ;;
16494
16495 amigaos*)
16496 archive_cmds_GCJ='$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)'
16497 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16498 hardcode_minus_L_GCJ=yes
16499
16500 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16501 # that the semantics of dynamic libraries on AmigaOS, at least up
16502 # to version 4, is to share data among multiple programs linked
16503 # with the same dynamic library. Since this doesn't match the
16504 # behavior of shared libraries on other platforms, we can't use
16505 # them.
16506 ld_shlibs_GCJ=no
16507 ;;
16508
16509 beos*)
16510 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16511 allow_undefined_flag_GCJ=unsupported
16512 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16513 # support --undefined. This deserves some investigation. FIXME
16514 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16515 else
16516 ld_shlibs_GCJ=no
16517 fi
16518 ;;
16519
16520 cygwin* | mingw* | pw32*)
16521 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16522 # as there is no search path for DLLs.
16523 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16524 allow_undefined_flag_GCJ=unsupported
16525 always_export_symbols_GCJ=no
16526 enable_shared_with_static_runtimes_GCJ=yes
16527 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16528
16529 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16530 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16531 # If the export-symbols file already is a .def file (1st line
16532 # is EXPORTS), use it as is; otherwise, prepend...
16533 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16534 cp $export_symbols $output_objdir/$soname.def;
16535 else
16536 echo EXPORTS > $output_objdir/$soname.def;
16537 cat $export_symbols >> $output_objdir/$soname.def;
16538 fi~
16539 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16540 else
16541 ld_shlibs_GCJ=no
16542 fi
16543 ;;
16544
16545 interix3*)
16546 hardcode_direct_GCJ=no
16547 hardcode_shlibpath_var_GCJ=no
16548 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16549 export_dynamic_flag_spec_GCJ='${wl}-E'
16550 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16551 # Instead, shared libraries are loaded at an image base (0x10000000 by
16552 # default) and relocated if they conflict, which is a slow very memory
16553 # consuming and fragmenting process. To avoid this, we pick a random,
16554 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16555 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16556 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16557 archive_expsym_cmds_GCJ='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'
16558 ;;
16559
16560 linux*)
16561 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16562 tmp_addflag=
16563 case $cc_basename,$host_cpu in
16564 pgcc*) # Portland Group C compiler
16565 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16566 tmp_addflag=' $pic_flag'
16567 ;;
16568 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16569 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16570 tmp_addflag=' $pic_flag -Mnomain' ;;
16571 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16572 tmp_addflag=' -i_dynamic' ;;
16573 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16574 tmp_addflag=' -i_dynamic -nofor_main' ;;
16575 ifc* | ifort*) # Intel Fortran compiler
16576 tmp_addflag=' -nofor_main' ;;
16577 esac
16578 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16579
16580 if test $supports_anon_versioning = yes; then
16581 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16582 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16583 $echo "local: *; };" >> $output_objdir/$libname.ver~
16584 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16585 fi
16586 else
16587 ld_shlibs_GCJ=no
16588 fi
16589 ;;
16590
16591 netbsd*)
16592 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16593 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16594 wlarc=
16595 else
16596 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16597 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16598 fi
16599 ;;
16600
16601 solaris*)
16602 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16603 ld_shlibs_GCJ=no
16604 cat <<EOF 1>&2
16605
16606*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16607*** create shared libraries on Solaris systems. Therefore, libtool
16608*** is disabling shared libraries support. We urge you to upgrade GNU
16609*** binutils to release 2.9.1 or newer. Another option is to modify
16610*** your PATH or compiler configuration so that the native linker is
16611*** used, and then restart.
16612
16613EOF
16614 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16615 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16616 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16617 else
16618 ld_shlibs_GCJ=no
16619 fi
16620 ;;
16621
16622 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16623 case `$LD -v 2>&1` in
16624 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16625 ld_shlibs_GCJ=no
16626 cat <<_LT_EOF 1>&2
16627
16628*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16629*** reliably create shared libraries on SCO systems. Therefore, libtool
16630*** is disabling shared libraries support. We urge you to upgrade GNU
16631*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16632*** your PATH or compiler configuration so that the native linker is
16633*** used, and then restart.
16634
16635_LT_EOF
16636 ;;
16637 *)
16638 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16639 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16640 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16641 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16642 else
16643 ld_shlibs_GCJ=no
16644 fi
16645 ;;
16646 esac
16647 ;;
16648
16649 sunos4*)
16650 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16651 wlarc=
16652 hardcode_direct_GCJ=yes
16653 hardcode_shlibpath_var_GCJ=no
16654 ;;
16655
16656 *)
16657 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16658 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16659 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16660 else
16661 ld_shlibs_GCJ=no
16662 fi
16663 ;;
16664 esac
16665
16666 if test "$ld_shlibs_GCJ" = no; then
16667 runpath_var=
16668 hardcode_libdir_flag_spec_GCJ=
16669 export_dynamic_flag_spec_GCJ=
16670 whole_archive_flag_spec_GCJ=
16671 fi
16672 else
16673 # PORTME fill in a description of your system's linker (not GNU ld)
16674 case $host_os in
16675 aix3*)
16676 allow_undefined_flag_GCJ=unsupported
16677 always_export_symbols_GCJ=yes
16678 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16679 # Note: this linker hardcodes the directories in LIBPATH if there
16680 # are no directories specified by -L.
16681 hardcode_minus_L_GCJ=yes
16682 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16683 # Neither direct hardcoding nor static linking is supported with a
16684 # broken collect2.
16685 hardcode_direct_GCJ=unsupported
16686 fi
16687 ;;
16688
16689 aix4* | aix5*)
16690 if test "$host_cpu" = ia64; then
16691 # On IA64, the linker does run time linking by default, so we don't
16692 # have to do anything special.
16693 aix_use_runtimelinking=no
16694 exp_sym_flag='-Bexport'
16695 no_entry_flag=""
16696 else
16697 # If we're using GNU nm, then we don't want the "-C" option.
16698 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16699 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16700 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16701 else
16702 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16703 fi
16704 aix_use_runtimelinking=no
16705
16706 # Test if we are trying to use run time linking or normal
16707 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16708 # need to do runtime linking.
16709 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16710 for ld_flag in $LDFLAGS; do
16711 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16712 aix_use_runtimelinking=yes
16713 break
16714 fi
16715 done
16716 ;;
16717 esac
16718
16719 exp_sym_flag='-bexport'
16720 no_entry_flag='-bnoentry'
16721 fi
16722
16723 # When large executables or shared objects are built, AIX ld can
16724 # have problems creating the table of contents. If linking a library
16725 # or program results in "error TOC overflow" add -mminimal-toc to
16726 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16727 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16728
16729 archive_cmds_GCJ=''
16730 hardcode_direct_GCJ=yes
16731 hardcode_libdir_separator_GCJ=':'
16732 link_all_deplibs_GCJ=yes
16733
16734 if test "$GCC" = yes; then
16735 case $host_os in aix4.[012]|aix4.[012].*)
16736 # We only want to do this on AIX 4.2 and lower, the check
16737 # below for broken collect2 doesn't work under 4.3+
16738 collect2name=`${CC} -print-prog-name=collect2`
16739 if test -f "$collect2name" && \
16740 strings "$collect2name" | grep resolve_lib_name >/dev/null
16741 then
16742 # We have reworked collect2
16743 hardcode_direct_GCJ=yes
16744 else
16745 # We have old collect2
16746 hardcode_direct_GCJ=unsupported
16747 # It fails to find uninstalled libraries when the uninstalled
16748 # path is not listed in the libpath. Setting hardcode_minus_L
16749 # to unsupported forces relinking
16750 hardcode_minus_L_GCJ=yes
16751 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16752 hardcode_libdir_separator_GCJ=
16753 fi
16754 ;;
16755 esac
16756 shared_flag='-shared'
16757 if test "$aix_use_runtimelinking" = yes; then
16758 shared_flag="$shared_flag "'${wl}-G'
16759 fi
16760 else
16761 # not using gcc
16762 if test "$host_cpu" = ia64; then
16763 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16764 # chokes on -Wl,-G. The following line is correct:
16765 shared_flag='-G'
16766 else
16767 if test "$aix_use_runtimelinking" = yes; then
16768 shared_flag='${wl}-G'
16769 else
16770 shared_flag='${wl}-bM:SRE'
16771 fi
16772 fi
16773 fi
16774
16775 # It seems that -bexpall does not export symbols beginning with
16776 # underscore (_), so it is better to generate a list of symbols to export.
16777 always_export_symbols_GCJ=yes
16778 if test "$aix_use_runtimelinking" = yes; then
16779 # Warning - without using the other runtime loading flags (-brtl),
16780 # -berok will link without error, but may produce a broken library.
16781 allow_undefined_flag_GCJ='-berok'
16782 # Determine the default libpath from the value encoded in an empty executable.
16783 cat >conftest.$ac_ext <<_ACEOF
16784/* confdefs.h. */
16785_ACEOF
16786cat confdefs.h >>conftest.$ac_ext
16787cat >>conftest.$ac_ext <<_ACEOF
16788/* end confdefs.h. */
16789
16790int
16791main ()
16792{
16793
16794 ;
16795 return 0;
16796}
16797_ACEOF
16798rm -f conftest.$ac_objext conftest$ac_exeext
16799if { (ac_try="$ac_link"
16800case "(($ac_try" in
16801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16802 *) ac_try_echo=$ac_try;;
16803esac
16804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16805 (eval "$ac_link") 2>conftest.er1
16806 ac_status=$?
16807 grep -v '^ *+' conftest.er1 >conftest.err
16808 rm -f conftest.er1
16809 cat conftest.err >&5
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); } && {
16812 test -z "$ac_c_werror_flag" ||
16813 test ! -s conftest.err
16814 } && test -s conftest$ac_exeext &&
16815 $as_test_x conftest$ac_exeext; then
16816
16817aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16818}'`
16819# Check for a 64-bit object if we didn't find anything.
16820if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16821}'`; fi
16822else
16823 echo "$as_me: failed program was:" >&5
16824sed 's/^/| /' conftest.$ac_ext >&5
16825
16826
16827fi
16828
16829rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16830 conftest$ac_exeext conftest.$ac_ext
16831if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16832
16833 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16834 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16835 else
16836 if test "$host_cpu" = ia64; then
16837 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16838 allow_undefined_flag_GCJ="-z nodefs"
16839 archive_expsym_cmds_GCJ="\$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"
16840 else
16841 # Determine the default libpath from the value encoded in an empty executable.
16842 cat >conftest.$ac_ext <<_ACEOF
16843/* confdefs.h. */
16844_ACEOF
16845cat confdefs.h >>conftest.$ac_ext
16846cat >>conftest.$ac_ext <<_ACEOF
16847/* end confdefs.h. */
16848
16849int
16850main ()
16851{
16852
16853 ;
16854 return 0;
16855}
16856_ACEOF
16857rm -f conftest.$ac_objext conftest$ac_exeext
16858if { (ac_try="$ac_link"
16859case "(($ac_try" in
16860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16861 *) ac_try_echo=$ac_try;;
16862esac
16863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16864 (eval "$ac_link") 2>conftest.er1
16865 ac_status=$?
16866 grep -v '^ *+' conftest.er1 >conftest.err
16867 rm -f conftest.er1
16868 cat conftest.err >&5
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); } && {
16871 test -z "$ac_c_werror_flag" ||
16872 test ! -s conftest.err
16873 } && test -s conftest$ac_exeext &&
16874 $as_test_x conftest$ac_exeext; then
16875
16876aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16877}'`
16878# Check for a 64-bit object if we didn't find anything.
16879if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16880}'`; fi
16881else
16882 echo "$as_me: failed program was:" >&5
16883sed 's/^/| /' conftest.$ac_ext >&5
16884
16885
16886fi
16887
16888rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16889 conftest$ac_exeext conftest.$ac_ext
16890if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16891
16892 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16893 # Warning - without using the other run time loading flags,
16894 # -berok will link without error, but may produce a broken library.
16895 no_undefined_flag_GCJ=' ${wl}-bernotok'
16896 allow_undefined_flag_GCJ=' ${wl}-berok'
16897 # Exported symbols can be pulled into shared objects from archives
16898 whole_archive_flag_spec_GCJ='$convenience'
16899 archive_cmds_need_lc_GCJ=yes
16900 # This is similar to how AIX traditionally builds its shared libraries.
16901 archive_expsym_cmds_GCJ="\$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'
16902 fi
16903 fi
16904 ;;
16905
16906 amigaos*)
16907 archive_cmds_GCJ='$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)'
16908 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16909 hardcode_minus_L_GCJ=yes
16910 # see comment about different semantics on the GNU ld section
16911 ld_shlibs_GCJ=no
16912 ;;
16913
16914 bsdi[45]*)
16915 export_dynamic_flag_spec_GCJ=-rdynamic
16916 ;;
16917
16918 cygwin* | mingw* | pw32*)
16919 # When not using gcc, we currently assume that we are using
16920 # Microsoft Visual C++.
16921 # hardcode_libdir_flag_spec is actually meaningless, as there is
16922 # no search path for DLLs.
16923 hardcode_libdir_flag_spec_GCJ=' '
16924 allow_undefined_flag_GCJ=unsupported
16925 # Tell ltmain to make .lib files, not .a files.
16926 libext=lib
16927 # Tell ltmain to make .dll files, not .so files.
16928 shrext_cmds=".dll"
16929 # FIXME: Setting linknames here is a bad hack.
16930 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16931 # The linker will automatically build a .lib file if we build a DLL.
16932 old_archive_From_new_cmds_GCJ='true'
16933 # FIXME: Should let the user specify the lib program.
16934 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16935 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16936 enable_shared_with_static_runtimes_GCJ=yes
16937 ;;
16938
16939 darwin* | rhapsody*)
16940 case $host_os in
16941 rhapsody* | darwin1.[012])
16942 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16943 ;;
16944 *) # Darwin 1.3 on
16945 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16946 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16947 else
16948 case ${MACOSX_DEPLOYMENT_TARGET} in
16949 10.[012])
16950 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16951 ;;
16952 10.*)
16953 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16954 ;;
16955 esac
16956 fi
16957 ;;
16958 esac
16959 archive_cmds_need_lc_GCJ=no
16960 hardcode_direct_GCJ=no
16961 hardcode_automatic_GCJ=yes
16962 hardcode_shlibpath_var_GCJ=unsupported
16963 whole_archive_flag_spec_GCJ=''
16964 link_all_deplibs_GCJ=yes
16965 if test "$GCC" = yes ; then
16966 output_verbose_link_cmd='echo'
16967 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16968 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16969 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16970 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16971 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16972 else
16973 case $cc_basename in
16974 xlc*)
16975 output_verbose_link_cmd='echo'
16976 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16977 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16978 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16979 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16980 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16981 ;;
16982 *)
16983 ld_shlibs_GCJ=no
16984 ;;
16985 esac
16986 fi
16987 ;;
16988
16989 dgux*)
16990 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16991 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16992 hardcode_shlibpath_var_GCJ=no
16993 ;;
16994
16995 freebsd1*)
16996 ld_shlibs_GCJ=no
16997 ;;
16998
16999 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17000 # support. Future versions do this automatically, but an explicit c++rt0.o
17001 # does not break anything, and helps significantly (at the cost of a little
17002 # extra space).
17003 freebsd2.2*)
17004 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17005 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17006 hardcode_direct_GCJ=yes
17007 hardcode_shlibpath_var_GCJ=no
17008 ;;
17009
17010 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17011 freebsd2*)
17012 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17013 hardcode_direct_GCJ=yes
17014 hardcode_minus_L_GCJ=yes
17015 hardcode_shlibpath_var_GCJ=no
17016 ;;
17017
17018 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17019 freebsd* | kfreebsd*-gnu | dragonfly*)
17020 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17021 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17022 hardcode_direct_GCJ=yes
17023 hardcode_shlibpath_var_GCJ=no
17024 ;;
17025
17026 hpux9*)
17027 if test "$GCC" = yes; then
17028 archive_cmds_GCJ='$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'
17029 else
17030 archive_cmds_GCJ='$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'
17031 fi
17032 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17033 hardcode_libdir_separator_GCJ=:
17034 hardcode_direct_GCJ=yes
17035
17036 # hardcode_minus_L: Not really in the search PATH,
17037 # but as the default location of the library.
17038 hardcode_minus_L_GCJ=yes
17039 export_dynamic_flag_spec_GCJ='${wl}-E'
17040 ;;
17041
17042 hpux10*)
17043 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17044 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17045 else
17046 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17047 fi
17048 if test "$with_gnu_ld" = no; then
17049 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17050 hardcode_libdir_separator_GCJ=:
17051
17052 hardcode_direct_GCJ=yes
17053 export_dynamic_flag_spec_GCJ='${wl}-E'
17054
17055 # hardcode_minus_L: Not really in the search PATH,
17056 # but as the default location of the library.
17057 hardcode_minus_L_GCJ=yes
17058 fi
17059 ;;
17060
17061 hpux11*)
17062 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17063 case $host_cpu in
17064 hppa*64*)
17065 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17066 ;;
17067 ia64*)
17068 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17069 ;;
17070 *)
17071 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17072 ;;
17073 esac
17074 else
17075 case $host_cpu in
17076 hppa*64*)
17077 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17078 ;;
17079 ia64*)
17080 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17081 ;;
17082 *)
17083 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17084 ;;
17085 esac
17086 fi
17087 if test "$with_gnu_ld" = no; then
17088 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17089 hardcode_libdir_separator_GCJ=:
17090
17091 case $host_cpu in
17092 hppa*64*|ia64*)
17093 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17094 hardcode_direct_GCJ=no
17095 hardcode_shlibpath_var_GCJ=no
17096 ;;
17097 *)
17098 hardcode_direct_GCJ=yes
17099 export_dynamic_flag_spec_GCJ='${wl}-E'
17100
17101 # hardcode_minus_L: Not really in the search PATH,
17102 # but as the default location of the library.
17103 hardcode_minus_L_GCJ=yes
17104 ;;
17105 esac
17106 fi
17107 ;;
17108
17109 irix5* | irix6* | nonstopux*)
17110 if test "$GCC" = yes; then
17111 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17112 else
17113 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17114 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17115 fi
17116 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17117 hardcode_libdir_separator_GCJ=:
17118 link_all_deplibs_GCJ=yes
17119 ;;
17120
17121 netbsd*)
17122 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17123 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17124 else
17125 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17126 fi
17127 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17128 hardcode_direct_GCJ=yes
17129 hardcode_shlibpath_var_GCJ=no
17130 ;;
17131
17132 newsos6)
17133 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17134 hardcode_direct_GCJ=yes
17135 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17136 hardcode_libdir_separator_GCJ=:
17137 hardcode_shlibpath_var_GCJ=no
17138 ;;
17139
17140 openbsd*)
17141 hardcode_direct_GCJ=yes
17142 hardcode_shlibpath_var_GCJ=no
17143 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17144 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17145 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17146 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17147 export_dynamic_flag_spec_GCJ='${wl}-E'
17148 else
17149 case $host_os in
17150 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17151 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17152 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17153 ;;
17154 *)
17155 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17156 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17157 ;;
17158 esac
17159 fi
17160 ;;
17161
17162 os2*)
17163 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17164 hardcode_minus_L_GCJ=yes
17165 allow_undefined_flag_GCJ=unsupported
17166 archive_cmds_GCJ='$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'
17167 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17168 ;;
17169
17170 osf3*)
17171 if test "$GCC" = yes; then
17172 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17173 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17174 else
17175 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17176 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17177 fi
17178 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17179 hardcode_libdir_separator_GCJ=:
17180 ;;
17181
17182 osf4* | osf5*) # as osf3* with the addition of -msym flag
17183 if test "$GCC" = yes; then
17184 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17185 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17186 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17187 else
17188 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17189 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17190 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17191 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17192
17193 # Both c and cxx compiler support -rpath directly
17194 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17195 fi
17196 hardcode_libdir_separator_GCJ=:
17197 ;;
17198
17199 solaris*)
17200 no_undefined_flag_GCJ=' -z text'
17201 if test "$GCC" = yes; then
17202 wlarc='${wl}'
17203 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17204 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17205 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17206 else
17207 wlarc=''
17208 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17209 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17210 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17211 fi
17212 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17213 hardcode_shlibpath_var_GCJ=no
17214 case $host_os in
17215 solaris2.[0-5] | solaris2.[0-5].*) ;;
17216 *)
17217 # The compiler driver will combine linker options so we
17218 # cannot just pass the convience library names through
17219 # without $wl, iff we do not link with $LD.
17220 # Luckily, gcc supports the same syntax we need for Sun Studio.
17221 # Supported since Solaris 2.6 (maybe 2.5.1?)
17222 case $wlarc in
17223 '')
17224 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17225 *)
17226 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17227 esac ;;
17228 esac
17229 link_all_deplibs_GCJ=yes
17230 ;;
17231
17232 sunos4*)
17233 if test "x$host_vendor" = xsequent; then
17234 # Use $CC to link under sequent, because it throws in some extra .o
17235 # files that make .init and .fini sections work.
17236 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17237 else
17238 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17239 fi
17240 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17241 hardcode_direct_GCJ=yes
17242 hardcode_minus_L_GCJ=yes
17243 hardcode_shlibpath_var_GCJ=no
17244 ;;
17245
17246 sysv4)
17247 case $host_vendor in
17248 sni)
17249 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17250 hardcode_direct_GCJ=yes # is this really true???
17251 ;;
17252 siemens)
17253 ## LD is ld it makes a PLAMLIB
17254 ## CC just makes a GrossModule.
17255 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17256 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17257 hardcode_direct_GCJ=no
17258 ;;
17259 motorola)
17260 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17261 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17262 ;;
17263 esac
17264 runpath_var='LD_RUN_PATH'
17265 hardcode_shlibpath_var_GCJ=no
17266 ;;
17267
17268 sysv4.3*)
17269 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17270 hardcode_shlibpath_var_GCJ=no
17271 export_dynamic_flag_spec_GCJ='-Bexport'
17272 ;;
17273
17274 sysv4*MP*)
17275 if test -d /usr/nec; then
17276 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17277 hardcode_shlibpath_var_GCJ=no
17278 runpath_var=LD_RUN_PATH
17279 hardcode_runpath_var=yes
17280 ld_shlibs_GCJ=yes
17281 fi
17282 ;;
17283
17284 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17285 no_undefined_flag_GCJ='${wl}-z,text'
17286 archive_cmds_need_lc_GCJ=no
17287 hardcode_shlibpath_var_GCJ=no
17288 runpath_var='LD_RUN_PATH'
17289
17290 if test "$GCC" = yes; then
17291 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17292 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17293 else
17294 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17295 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17296 fi
17297 ;;
17298
17299 sysv5* | sco3.2v5* | sco5v6*)
17300 # Note: We can NOT use -z defs as we might desire, because we do not
17301 # link with -lc, and that would cause any symbols used from libc to
17302 # always be unresolved, which means just about no library would
17303 # ever link correctly. If we're not using GNU ld we use -z text
17304 # though, which does catch some bad symbols but isn't as heavy-handed
17305 # as -z defs.
17306 no_undefined_flag_GCJ='${wl}-z,text'
17307 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17308 archive_cmds_need_lc_GCJ=no
17309 hardcode_shlibpath_var_GCJ=no
17310 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17311 hardcode_libdir_separator_GCJ=':'
17312 link_all_deplibs_GCJ=yes
17313 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17314 runpath_var='LD_RUN_PATH'
17315
17316 if test "$GCC" = yes; then
17317 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17318 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17319 else
17320 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17321 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17322 fi
17323 ;;
17324
17325 uts4*)
17326 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17327 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17328 hardcode_shlibpath_var_GCJ=no
17329 ;;
17330
17331 *)
17332 ld_shlibs_GCJ=no
17333 ;;
17334 esac
17335 fi
17336
17337{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17338echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17339test "$ld_shlibs_GCJ" = no && can_build_shared=no
17340
17341#
17342# Do we need to explicitly link libc?
17343#
17344case "x$archive_cmds_need_lc_GCJ" in
17345x|xyes)
17346 # Assume -lc should be added
17347 archive_cmds_need_lc_GCJ=yes
17348
17349 if test "$enable_shared" = yes && test "$GCC" = yes; then
17350 case $archive_cmds_GCJ in
17351 *'~'*)
17352 # FIXME: we may have to deal with multi-command sequences.
17353 ;;
17354 '$CC '*)
17355 # Test whether the compiler implicitly links with -lc since on some
17356 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17357 # to ld, don't add -lc before -lgcc.
17358 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17359echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17360 $rm conftest*
17361 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17362
17363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17364 (eval $ac_compile) 2>&5
17365 ac_status=$?
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); } 2>conftest.err; then
17368 soname=conftest
17369 lib=conftest
17370 libobjs=conftest.$ac_objext
17371 deplibs=
17372 wl=$lt_prog_compiler_wl_GCJ
17373 pic_flag=$lt_prog_compiler_pic_GCJ
17374 compiler_flags=-v
17375 linker_flags=-v
17376 verstring=
17377 output_objdir=.
17378 libname=conftest
17379 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17380 allow_undefined_flag_GCJ=
17381 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17382 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17383 ac_status=$?
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); }
17386 then
17387 archive_cmds_need_lc_GCJ=no
17388 else
17389 archive_cmds_need_lc_GCJ=yes
17390 fi
17391 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17392 else
17393 cat conftest.err 1>&5
17394 fi
17395 $rm conftest*
17396 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17397echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17398 ;;
17399 esac
17400 fi
17401 ;;
17402esac
17403
17404{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17405echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17406library_names_spec=
17407libname_spec='lib$name'
17408soname_spec=
17409shrext_cmds=".so"
17410postinstall_cmds=
17411postuninstall_cmds=
17412finish_cmds=
17413finish_eval=
17414shlibpath_var=
17415shlibpath_overrides_runpath=unknown
17416version_type=none
17417dynamic_linker="$host_os ld.so"
17418sys_lib_dlsearch_path_spec="/lib /usr/lib"
17419if test "$GCC" = yes; then
17420 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17421 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17422 # if the path contains ";" then we assume it to be the separator
17423 # otherwise default to the standard path separator (i.e. ":") - it is
17424 # assumed that no part of a normal pathname contains ";" but that should
17425 # okay in the real world where ";" in dirpaths is itself problematic.
17426 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17427 else
17428 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17429 fi
17430else
17431 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17432fi
17433need_lib_prefix=unknown
17434hardcode_into_libs=no
17435
17436# when you set need_version to no, make sure it does not cause -set_version
17437# flags to be left without arguments
17438need_version=unknown
17439
17440case $host_os in
17441aix3*)
17442 version_type=linux
17443 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17444 shlibpath_var=LIBPATH
17445
17446 # AIX 3 has no versioning support, so we append a major version to the name.
17447 soname_spec='${libname}${release}${shared_ext}$major'
17448 ;;
17449
17450aix4* | aix5*)
17451 version_type=linux
17452 need_lib_prefix=no
17453 need_version=no
17454 hardcode_into_libs=yes
17455 if test "$host_cpu" = ia64; then
17456 # AIX 5 supports IA64
17457 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17458 shlibpath_var=LD_LIBRARY_PATH
17459 else
17460 # With GCC up to 2.95.x, collect2 would create an import file
17461 # for dependence libraries. The import file would start with
17462 # the line `#! .'. This would cause the generated library to
17463 # depend on `.', always an invalid library. This was fixed in
17464 # development snapshots of GCC prior to 3.0.
17465 case $host_os in
17466 aix4 | aix4.[01] | aix4.[01].*)
17467 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17468 echo ' yes '
17469 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17470 :
17471 else
17472 can_build_shared=no
17473 fi
17474 ;;
17475 esac
17476 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17477 # soname into executable. Probably we can add versioning support to
17478 # collect2, so additional links can be useful in future.
17479 if test "$aix_use_runtimelinking" = yes; then
17480 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17481 # instead of lib<name>.a to let people know that these are not
17482 # typical AIX shared libraries.
17483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17484 else
17485 # We preserve .a as extension for shared libraries through AIX4.2
17486 # and later when we are not doing run time linking.
17487 library_names_spec='${libname}${release}.a $libname.a'
17488 soname_spec='${libname}${release}${shared_ext}$major'
17489 fi
17490 shlibpath_var=LIBPATH
17491 fi
17492 ;;
17493
17494amigaos*)
17495 library_names_spec='$libname.ixlibrary $libname.a'
17496 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17497 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'
17498 ;;
17499
17500beos*)
17501 library_names_spec='${libname}${shared_ext}'
17502 dynamic_linker="$host_os ld.so"
17503 shlibpath_var=LIBRARY_PATH
17504 ;;
17505
17506bsdi[45]*)
17507 version_type=linux
17508 need_version=no
17509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17510 soname_spec='${libname}${release}${shared_ext}$major'
17511 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17512 shlibpath_var=LD_LIBRARY_PATH
17513 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17514 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17515 # the default ld.so.conf also contains /usr/contrib/lib and
17516 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17517 # libtool to hard-code these into programs
17518 ;;
17519
17520cygwin* | mingw* | pw32*)
17521 version_type=windows
17522 shrext_cmds=".dll"
17523 need_version=no
17524 need_lib_prefix=no
17525
17526 case $GCC,$host_os in
17527 yes,cygwin* | yes,mingw* | yes,pw32*)
17528 library_names_spec='$libname.dll.a'
17529 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17530 postinstall_cmds='base_file=`basename \${file}`~
17531 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17532 dldir=$destdir/`dirname \$dlpath`~
17533 test -d \$dldir || mkdir -p \$dldir~
17534 $install_prog $dir/$dlname \$dldir/$dlname~
17535 chmod a+x \$dldir/$dlname'
17536 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17537 dlpath=$dir/\$dldll~
17538 $rm \$dlpath'
17539 shlibpath_overrides_runpath=yes
17540
17541 case $host_os in
17542 cygwin*)
17543 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17544 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17545 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17546 ;;
17547 mingw*)
17548 # MinGW DLLs use traditional 'lib' prefix
17549 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17550 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17551 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17552 # It is most probably a Windows format PATH printed by
17553 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17554 # path with ; separators, and with drive letters. We can handle the
17555 # drive letters (cygwin fileutils understands them), so leave them,
17556 # especially as we might pass files found there to a mingw objdump,
17557 # which wouldn't understand a cygwinified path. Ahh.
17558 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17559 else
17560 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17561 fi
17562 ;;
17563 pw32*)
17564 # pw32 DLLs use 'pw' prefix rather than 'lib'
17565 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17566 ;;
17567 esac
17568 ;;
17569
17570 linux*)
17571 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
17572 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17573 supports_anon_versioning=no
17574 case `$LD -v 2>/dev/null` in
17575 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17576 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17577 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17578 *\ 2.11.*) ;; # other 2.11 versions
17579 *) supports_anon_versioning=yes ;;
17580 esac
17581 if test $supports_anon_versioning = yes; then
17582 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
17583cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17584$echo "local: *; };" >> $output_objdir/$libname.ver~
17585 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17586 else
17587 $archive_expsym_cmds="$archive_cmds"
17588 fi
17589 else
17590 ld_shlibs=no
17591 fi
17592 ;;
17593
17594 *)
17595 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17596 ;;
17597 esac
17598 dynamic_linker='Win32 ld.exe'
17599 # FIXME: first we should search . and the directory the executable is in
17600 shlibpath_var=PATH
17601 ;;
17602
17603darwin* | rhapsody*)
17604 dynamic_linker="$host_os dyld"
17605 version_type=darwin
17606 need_lib_prefix=no
17607 need_version=no
17608 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17609 soname_spec='${libname}${release}${major}$shared_ext'
17610 shlibpath_overrides_runpath=yes
17611 shlibpath_var=DYLD_LIBRARY_PATH
17612 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17613 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17614 if test "$GCC" = yes; then
17615 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17616 else
17617 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17618 fi
17619 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17620 ;;
17621
17622dgux*)
17623 version_type=linux
17624 need_lib_prefix=no
17625 need_version=no
17626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17627 soname_spec='${libname}${release}${shared_ext}$major'
17628 shlibpath_var=LD_LIBRARY_PATH
17629 ;;
17630
17631freebsd1*)
17632 dynamic_linker=no
17633 ;;
17634
17635kfreebsd*-gnu)
17636 version_type=linux
17637 need_lib_prefix=no
17638 need_version=no
17639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17640 soname_spec='${libname}${release}${shared_ext}$major'
17641 shlibpath_var=LD_LIBRARY_PATH
17642 shlibpath_overrides_runpath=no
17643 hardcode_into_libs=yes
17644 dynamic_linker='GNU ld.so'
17645 ;;
17646
17647freebsd* | dragonfly*)
17648 # DragonFly does not have aout. When/if they implement a new
17649 # versioning mechanism, adjust this.
17650 if test -x /usr/bin/objformat; then
17651 objformat=`/usr/bin/objformat`
17652 else
17653 case $host_os in
17654 freebsd[123]*) objformat=aout ;;
17655 *) objformat=elf ;;
17656 esac
17657 fi
17658 # Handle Gentoo/FreeBSD as it was Linux
17659 case $host_vendor in
17660 gentoo)
17661 version_type=linux ;;
17662 *)
17663 version_type=freebsd-$objformat ;;
17664 esac
17665
17666 case $version_type in
17667 freebsd-elf*)
17668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17669 need_version=no
17670 need_lib_prefix=no
17671 ;;
17672 freebsd-*)
17673 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17674 need_version=yes
17675 ;;
17676 linux)
17677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17678 soname_spec='${libname}${release}${shared_ext}$major'
17679 need_lib_prefix=no
17680 need_version=no
17681 ;;
17682 esac
17683 shlibpath_var=LD_LIBRARY_PATH
17684 case $host_os in
17685 freebsd2*)
17686 shlibpath_overrides_runpath=yes
17687 ;;
17688 freebsd3.[01]* | freebsdelf3.[01]*)
17689 shlibpath_overrides_runpath=yes
17690 hardcode_into_libs=yes
17691 ;;
17692 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17693 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17694 shlibpath_overrides_runpath=no
17695 hardcode_into_libs=yes
17696 ;;
17697 freebsd*) # from 4.6 on
17698 shlibpath_overrides_runpath=yes
17699 hardcode_into_libs=yes
17700 ;;
17701 esac
17702 ;;
17703
17704gnu*)
17705 version_type=linux
17706 need_lib_prefix=no
17707 need_version=no
17708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17709 soname_spec='${libname}${release}${shared_ext}$major'
17710 shlibpath_var=LD_LIBRARY_PATH
17711 hardcode_into_libs=yes
17712 ;;
17713
17714hpux9* | hpux10* | hpux11*)
17715 # Give a soname corresponding to the major version so that dld.sl refuses to
17716 # link against other versions.
17717 version_type=sunos
17718 need_lib_prefix=no
17719 need_version=no
17720 case $host_cpu in
17721 ia64*)
17722 shrext_cmds='.so'
17723 hardcode_into_libs=yes
17724 dynamic_linker="$host_os dld.so"
17725 shlibpath_var=LD_LIBRARY_PATH
17726 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17728 soname_spec='${libname}${release}${shared_ext}$major'
17729 if test "X$HPUX_IA64_MODE" = X32; then
17730 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17731 else
17732 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17733 fi
17734 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17735 ;;
17736 hppa*64*)
17737 shrext_cmds='.sl'
17738 hardcode_into_libs=yes
17739 dynamic_linker="$host_os dld.sl"
17740 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17741 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17743 soname_spec='${libname}${release}${shared_ext}$major'
17744 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17745 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17746 ;;
17747 *)
17748 shrext_cmds='.sl'
17749 dynamic_linker="$host_os dld.sl"
17750 shlibpath_var=SHLIB_PATH
17751 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17753 soname_spec='${libname}${release}${shared_ext}$major'
17754 ;;
17755 esac
17756 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17757 postinstall_cmds='chmod 555 $lib'
17758 ;;
17759
17760interix3*)
17761 version_type=linux
17762 need_lib_prefix=no
17763 need_version=no
17764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17765 soname_spec='${libname}${release}${shared_ext}$major'
17766 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17767 shlibpath_var=LD_LIBRARY_PATH
17768 shlibpath_overrides_runpath=no
17769 hardcode_into_libs=yes
17770 ;;
17771
17772irix5* | irix6* | nonstopux*)
17773 case $host_os in
17774 nonstopux*) version_type=nonstopux ;;
17775 *)
17776 if test "$lt_cv_prog_gnu_ld" = yes; then
17777 version_type=linux
17778 else
17779 version_type=irix
17780 fi ;;
17781 esac
17782 need_lib_prefix=no
17783 need_version=no
17784 soname_spec='${libname}${release}${shared_ext}$major'
17785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17786 case $host_os in
17787 irix5* | nonstopux*)
17788 libsuff= shlibsuff=
17789 ;;
17790 *)
17791 case $LD in # libtool.m4 will add one of these switches to LD
17792 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17793 libsuff= shlibsuff= libmagic=32-bit;;
17794 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17795 libsuff=32 shlibsuff=N32 libmagic=N32;;
17796 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17797 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17798 *) libsuff= shlibsuff= libmagic=never-match;;
17799 esac
17800 ;;
17801 esac
17802 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17803 shlibpath_overrides_runpath=no
17804 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17805 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17806 hardcode_into_libs=yes
17807 ;;
17808
17809# No shared lib support for Linux oldld, aout, or coff.
17810linux*oldld* | linux*aout* | linux*coff*)
17811 dynamic_linker=no
17812 ;;
17813
17814# This must be Linux ELF.
17815linux*)
17816 version_type=linux
17817 need_lib_prefix=no
17818 need_version=no
17819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17820 soname_spec='${libname}${release}${shared_ext}$major'
17821 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17822 shlibpath_var=LD_LIBRARY_PATH
17823 shlibpath_overrides_runpath=no
17824 # This implies no fast_install, which is unacceptable.
17825 # Some rework will be needed to allow for fast_install
17826 # before this can be enabled.
17827 hardcode_into_libs=yes
17828
17829 # Append ld.so.conf contents to the search path
17830 if test -f /etc/ld.so.conf; then
17831 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17832 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17833 fi
17834
17835 # We used to test for /lib/ld.so.1 and disable shared libraries on
17836 # powerpc, because MkLinux only supported shared libraries with the
17837 # GNU dynamic linker. Since this was broken with cross compilers,
17838 # most powerpc-linux boxes support dynamic linking these days and
17839 # people can always --disable-shared, the test was removed, and we
17840 # assume the GNU/Linux dynamic linker is in use.
17841 dynamic_linker='GNU/Linux ld.so'
17842 ;;
17843
17844knetbsd*-gnu)
17845 version_type=linux
17846 need_lib_prefix=no
17847 need_version=no
17848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17849 soname_spec='${libname}${release}${shared_ext}$major'
17850 shlibpath_var=LD_LIBRARY_PATH
17851 shlibpath_overrides_runpath=no
17852 hardcode_into_libs=yes
17853 dynamic_linker='GNU ld.so'
17854 ;;
17855
17856netbsd*)
17857 version_type=sunos
17858 need_lib_prefix=no
17859 need_version=no
17860 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17862 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17863 dynamic_linker='NetBSD (a.out) ld.so'
17864 else
17865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17866 soname_spec='${libname}${release}${shared_ext}$major'
17867 dynamic_linker='NetBSD ld.elf_so'
17868 fi
17869 shlibpath_var=LD_LIBRARY_PATH
17870 shlibpath_overrides_runpath=yes
17871 hardcode_into_libs=yes
17872 ;;
17873
17874newsos6)
17875 version_type=linux
17876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17877 shlibpath_var=LD_LIBRARY_PATH
17878 shlibpath_overrides_runpath=yes
17879 ;;
17880
17881nto-qnx*)
17882 version_type=linux
17883 need_lib_prefix=no
17884 need_version=no
17885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17886 soname_spec='${libname}${release}${shared_ext}$major'
17887 shlibpath_var=LD_LIBRARY_PATH
17888 shlibpath_overrides_runpath=yes
17889 ;;
17890
17891openbsd*)
17892 version_type=sunos
17893 sys_lib_dlsearch_path_spec="/usr/lib"
17894 need_lib_prefix=no
17895 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17896 case $host_os in
17897 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17898 *) need_version=no ;;
17899 esac
17900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17901 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17902 shlibpath_var=LD_LIBRARY_PATH
17903 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17904 case $host_os in
17905 openbsd2.[89] | openbsd2.[89].*)
17906 shlibpath_overrides_runpath=no
17907 ;;
17908 *)
17909 shlibpath_overrides_runpath=yes
17910 ;;
17911 esac
17912 else
17913 shlibpath_overrides_runpath=yes
17914 fi
17915 ;;
17916
17917os2*)
17918 libname_spec='$name'
17919 shrext_cmds=".dll"
17920 need_lib_prefix=no
17921 library_names_spec='$libname${shared_ext} $libname.a'
17922 dynamic_linker='OS/2 ld.exe'
17923 shlibpath_var=LIBPATH
17924 ;;
17925
17926osf3* | osf4* | osf5*)
17927 version_type=osf
17928 need_lib_prefix=no
17929 need_version=no
17930 soname_spec='${libname}${release}${shared_ext}$major'
17931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17932 shlibpath_var=LD_LIBRARY_PATH
17933 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17934 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17935 ;;
17936
17937solaris*)
17938 version_type=linux
17939 need_lib_prefix=no
17940 need_version=no
17941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17942 soname_spec='${libname}${release}${shared_ext}$major'
17943 shlibpath_var=LD_LIBRARY_PATH
17944 shlibpath_overrides_runpath=yes
17945 hardcode_into_libs=yes
17946 # ldd complains unless libraries are executable
17947 postinstall_cmds='chmod +x $lib'
17948 ;;
17949
17950sunos4*)
17951 version_type=sunos
17952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17953 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17954 shlibpath_var=LD_LIBRARY_PATH
17955 shlibpath_overrides_runpath=yes
17956 if test "$with_gnu_ld" = yes; then
17957 need_lib_prefix=no
17958 fi
17959 need_version=yes
17960 ;;
17961
17962sysv4 | sysv4.3*)
17963 version_type=linux
17964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17965 soname_spec='${libname}${release}${shared_ext}$major'
17966 shlibpath_var=LD_LIBRARY_PATH
17967 case $host_vendor in
17968 sni)
17969 shlibpath_overrides_runpath=no
17970 need_lib_prefix=no
17971 export_dynamic_flag_spec='${wl}-Blargedynsym'
17972 runpath_var=LD_RUN_PATH
17973 ;;
17974 siemens)
17975 need_lib_prefix=no
17976 ;;
17977 motorola)
17978 need_lib_prefix=no
17979 need_version=no
17980 shlibpath_overrides_runpath=no
17981 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17982 ;;
17983 esac
17984 ;;
17985
17986sysv4*MP*)
17987 if test -d /usr/nec ;then
17988 version_type=linux
17989 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17990 soname_spec='$libname${shared_ext}.$major'
17991 shlibpath_var=LD_LIBRARY_PATH
17992 fi
17993 ;;
17994
17995sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17996 version_type=freebsd-elf
17997 need_lib_prefix=no
17998 need_version=no
17999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18000 soname_spec='${libname}${release}${shared_ext}$major'
18001 shlibpath_var=LD_LIBRARY_PATH
18002 hardcode_into_libs=yes
18003 if test "$with_gnu_ld" = yes; then
18004 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18005 shlibpath_overrides_runpath=no
18006 else
18007 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18008 shlibpath_overrides_runpath=yes
18009 case $host_os in
18010 sco3.2v5*)
18011 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18012 ;;
18013 esac
18014 fi
18015 sys_lib_dlsearch_path_spec='/usr/lib'
18016 ;;
18017
18018uts4*)
18019 version_type=linux
18020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18021 soname_spec='${libname}${release}${shared_ext}$major'
18022 shlibpath_var=LD_LIBRARY_PATH
18023 ;;
18024
18025*)
18026 dynamic_linker=no
18027 ;;
18028esac
18029{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18030echo "${ECHO_T}$dynamic_linker" >&6; }
18031test "$dynamic_linker" = no && can_build_shared=no
18032
18033variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18034if test "$GCC" = yes; then
18035 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18036fi
18037
18038{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18039echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18040hardcode_action_GCJ=
18041if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18042 test -n "$runpath_var_GCJ" || \
18043 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18044
18045 # We can hardcode non-existant directories.
18046 if test "$hardcode_direct_GCJ" != no &&
18047 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18048 # have to relink, otherwise we might link with an installed library
18049 # when we should be linking with a yet-to-be-installed one
18050 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18051 test "$hardcode_minus_L_GCJ" != no; then
18052 # Linking always hardcodes the temporary library directory.
18053 hardcode_action_GCJ=relink
18054 else
18055 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18056 hardcode_action_GCJ=immediate
18057 fi
18058else
18059 # We cannot hardcode anything, or else we can only hardcode existing
18060 # directories.
18061 hardcode_action_GCJ=unsupported
18062fi
18063{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18064echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18065
18066if test "$hardcode_action_GCJ" = relink; then
18067 # Fast installation is not supported
18068 enable_fast_install=no
18069elif test "$shlibpath_overrides_runpath" = yes ||
18070 test "$enable_shared" = no; then
18071 # Fast installation is not necessary
18072 enable_fast_install=needless
18073fi
18074
18075
18076# The else clause should only fire when bootstrapping the
18077# libtool distribution, otherwise you forgot to ship ltmain.sh
18078# with your package, and you will get complaints that there are
18079# no rules to generate ltmain.sh.
18080if test -f "$ltmain"; then
18081 # See if we are running on zsh, and set the options which allow our commands through
18082 # without removal of \ escapes.
18083 if test -n "${ZSH_VERSION+set}" ; then
18084 setopt NO_GLOB_SUBST
18085 fi
18086 # Now quote all the things that may contain metacharacters while being
18087 # careful not to overquote the AC_SUBSTed values. We take copies of the
18088 # variables and quote the copies for generation of the libtool script.
18089 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18090 SED SHELL STRIP \
18091 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18092 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18093 deplibs_check_method reload_flag reload_cmds need_locks \
18094 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18095 lt_cv_sys_global_symbol_to_c_name_address \
18096 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18097 old_postinstall_cmds old_postuninstall_cmds \
18098 compiler_GCJ \
18099 CC_GCJ \
18100 LD_GCJ \
18101 lt_prog_compiler_wl_GCJ \
18102 lt_prog_compiler_pic_GCJ \
18103 lt_prog_compiler_static_GCJ \
18104 lt_prog_compiler_no_builtin_flag_GCJ \
18105 export_dynamic_flag_spec_GCJ \
18106 thread_safe_flag_spec_GCJ \
18107 whole_archive_flag_spec_GCJ \
18108 enable_shared_with_static_runtimes_GCJ \
18109 old_archive_cmds_GCJ \
18110 old_archive_from_new_cmds_GCJ \
18111 predep_objects_GCJ \
18112 postdep_objects_GCJ \
18113 predeps_GCJ \
18114 postdeps_GCJ \
18115 compiler_lib_search_path_GCJ \
18116 archive_cmds_GCJ \
18117 archive_expsym_cmds_GCJ \
18118 postinstall_cmds_GCJ \
18119 postuninstall_cmds_GCJ \
18120 old_archive_from_expsyms_cmds_GCJ \
18121 allow_undefined_flag_GCJ \
18122 no_undefined_flag_GCJ \
18123 export_symbols_cmds_GCJ \
18124 hardcode_libdir_flag_spec_GCJ \
18125 hardcode_libdir_flag_spec_ld_GCJ \
18126 hardcode_libdir_separator_GCJ \
18127 hardcode_automatic_GCJ \
18128 module_cmds_GCJ \
18129 module_expsym_cmds_GCJ \
18130 lt_cv_prog_compiler_c_o_GCJ \
18131 exclude_expsyms_GCJ \
18132 include_expsyms_GCJ; do
18133
18134 case $var in
18135 old_archive_cmds_GCJ | \
18136 old_archive_from_new_cmds_GCJ | \
18137 archive_cmds_GCJ | \
18138 archive_expsym_cmds_GCJ | \
18139 module_cmds_GCJ | \
18140 module_expsym_cmds_GCJ | \
18141 old_archive_from_expsyms_cmds_GCJ | \
18142 export_symbols_cmds_GCJ | \
18143 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18144 postinstall_cmds | postuninstall_cmds | \
18145 old_postinstall_cmds | old_postuninstall_cmds | \
18146 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18147 # Double-quote double-evaled strings.
18148 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18149 ;;
18150 *)
18151 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18152 ;;
18153 esac
18154 done
18155
18156 case $lt_echo in
18157 *'\$0 --fallback-echo"')
18158 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18159 ;;
18160 esac
18161
18162cfgfile="$ofile"
18163
18164 cat <<__EOF__ >> "$cfgfile"
18165# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18166
18167# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18168
18169# Shell to use when invoking shell scripts.
18170SHELL=$lt_SHELL
18171
18172# Whether or not to build shared libraries.
18173build_libtool_libs=$enable_shared
18174
18175# Whether or not to build static libraries.
18176build_old_libs=$enable_static
18177
18178# Whether or not to add -lc for building shared libraries.
18179build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18180
18181# Whether or not to disallow shared libs when runtime libs are static
18182allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18183
18184# Whether or not to optimize for fast installation.
18185fast_install=$enable_fast_install
18186
18187# The host system.
18188host_alias=$host_alias
18189host=$host
18190host_os=$host_os
18191
18192# The build system.
18193build_alias=$build_alias
18194build=$build
18195build_os=$build_os
18196
18197# An echo program that does not interpret backslashes.
18198echo=$lt_echo
18199
18200# The archiver.
18201AR=$lt_AR
18202AR_FLAGS=$lt_AR_FLAGS
18203
18204# A C compiler.
18205LTCC=$lt_LTCC
18206
18207# LTCC compiler flags.
18208LTCFLAGS=$lt_LTCFLAGS
18209
18210# A language-specific compiler.
18211CC=$lt_compiler_GCJ
18212
18213# Is the compiler the GNU C compiler?
18214with_gcc=$GCC_GCJ
18215
18216# An ERE matcher.
18217EGREP=$lt_EGREP
18218
18219# The linker used to build libraries.
18220LD=$lt_LD_GCJ
18221
18222# Whether we need hard or soft links.
18223LN_S=$lt_LN_S
18224
18225# A BSD-compatible nm program.
18226NM=$lt_NM
18227
18228# A symbol stripping program
18229STRIP=$lt_STRIP
18230
18231# Used to examine libraries when file_magic_cmd begins "file"
18232MAGIC_CMD=$MAGIC_CMD
18233
18234# Used on cygwin: DLL creation program.
18235DLLTOOL="$DLLTOOL"
18236
18237# Used on cygwin: object dumper.
18238OBJDUMP="$OBJDUMP"
18239
18240# Used on cygwin: assembler.
18241AS="$AS"
18242
18243# The name of the directory that contains temporary libtool files.
18244objdir=$objdir
18245
18246# How to create reloadable object files.
18247reload_flag=$lt_reload_flag
18248reload_cmds=$lt_reload_cmds
18249
18250# How to pass a linker flag through the compiler.
18251wl=$lt_lt_prog_compiler_wl_GCJ
18252
18253# Object file suffix (normally "o").
18254objext="$ac_objext"
18255
18256# Old archive suffix (normally "a").
18257libext="$libext"
18258
18259# Shared library suffix (normally ".so").
18260shrext_cmds='$shrext_cmds'
18261
18262# Executable file suffix (normally "").
18263exeext="$exeext"
18264
18265# Additional compiler flags for building library objects.
18266pic_flag=$lt_lt_prog_compiler_pic_GCJ
18267pic_mode=$pic_mode
18268
18269# What is the maximum length of a command?
18270max_cmd_len=$lt_cv_sys_max_cmd_len
18271
18272# Does compiler simultaneously support -c and -o options?
18273compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18274
18275# Must we lock files when doing compilation?
18276need_locks=$lt_need_locks
18277
18278# Do we need the lib prefix for modules?
18279need_lib_prefix=$need_lib_prefix
18280
18281# Do we need a version for libraries?
18282need_version=$need_version
18283
18284# Whether dlopen is supported.
18285dlopen_support=$enable_dlopen
18286
18287# Whether dlopen of programs is supported.
18288dlopen_self=$enable_dlopen_self
18289
18290# Whether dlopen of statically linked programs is supported.
18291dlopen_self_static=$enable_dlopen_self_static
18292
18293# Compiler flag to prevent dynamic linking.
18294link_static_flag=$lt_lt_prog_compiler_static_GCJ
18295
18296# Compiler flag to turn off builtin functions.
18297no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18298
18299# Compiler flag to allow reflexive dlopens.
18300export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18301
18302# Compiler flag to generate shared objects directly from archives.
18303whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18304
18305# Compiler flag to generate thread-safe objects.
18306thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18307
18308# Library versioning type.
18309version_type=$version_type
18310
18311# Format of library name prefix.
18312libname_spec=$lt_libname_spec
18313
18314# List of archive names. First name is the real one, the rest are links.
18315# The last name is the one that the linker finds with -lNAME.
18316library_names_spec=$lt_library_names_spec
18317
18318# The coded name of the library, if different from the real name.
18319soname_spec=$lt_soname_spec
18320
18321# Commands used to build and install an old-style archive.
18322RANLIB=$lt_RANLIB
18323old_archive_cmds=$lt_old_archive_cmds_GCJ
18324old_postinstall_cmds=$lt_old_postinstall_cmds
18325old_postuninstall_cmds=$lt_old_postuninstall_cmds
18326
18327# Create an old-style archive from a shared archive.
18328old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18329
18330# Create a temporary old-style archive to link instead of a shared archive.
18331old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18332
18333# Commands used to build and install a shared archive.
18334archive_cmds=$lt_archive_cmds_GCJ
18335archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18336postinstall_cmds=$lt_postinstall_cmds
18337postuninstall_cmds=$lt_postuninstall_cmds
18338
18339# Commands used to build a loadable module (assumed same as above if empty)
18340module_cmds=$lt_module_cmds_GCJ
18341module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18342
18343# Commands to strip libraries.
18344old_striplib=$lt_old_striplib
18345striplib=$lt_striplib
18346
18347# Dependencies to place before the objects being linked to create a
18348# shared library.
18349predep_objects=$lt_predep_objects_GCJ
18350
18351# Dependencies to place after the objects being linked to create a
18352# shared library.
18353postdep_objects=$lt_postdep_objects_GCJ
18354
18355# Dependencies to place before the objects being linked to create a
18356# shared library.
18357predeps=$lt_predeps_GCJ
18358
18359# Dependencies to place after the objects being linked to create a
18360# shared library.
18361postdeps=$lt_postdeps_GCJ
18362
18363# The library search path used internally by the compiler when linking
18364# a shared library.
18365compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18366
18367# Method to check whether dependent libraries are shared objects.
18368deplibs_check_method=$lt_deplibs_check_method
18369
18370# Command to use when deplibs_check_method == file_magic.
18371file_magic_cmd=$lt_file_magic_cmd
18372
18373# Flag that allows shared libraries with undefined symbols to be built.
18374allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18375
18376# Flag that forces no undefined symbols.
18377no_undefined_flag=$lt_no_undefined_flag_GCJ
18378
18379# Commands used to finish a libtool library installation in a directory.
18380finish_cmds=$lt_finish_cmds
18381
18382# Same as above, but a single script fragment to be evaled but not shown.
18383finish_eval=$lt_finish_eval
18384
18385# Take the output of nm and produce a listing of raw symbols and C names.
18386global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18387
18388# Transform the output of nm in a proper C declaration
18389global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18390
18391# Transform the output of nm in a C name address pair
18392global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18393
18394# This is the shared library runtime path variable.
18395runpath_var=$runpath_var
18396
18397# This is the shared library path variable.
18398shlibpath_var=$shlibpath_var
18399
18400# Is shlibpath searched before the hard-coded library search path?
18401shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18402
18403# How to hardcode a shared library path into an executable.
18404hardcode_action=$hardcode_action_GCJ
18405
18406# Whether we should hardcode library paths into libraries.
18407hardcode_into_libs=$hardcode_into_libs
18408
18409# Flag to hardcode \$libdir into a binary during linking.
18410# This must work even if \$libdir does not exist.
18411hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18412
18413# If ld is used when linking, flag to hardcode \$libdir into
18414# a binary during linking. This must work even if \$libdir does
18415# not exist.
18416hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18417
18418# Whether we need a single -rpath flag with a separated argument.
18419hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18420
18421# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18422# resulting binary.
18423hardcode_direct=$hardcode_direct_GCJ
18424
18425# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18426# resulting binary.
18427hardcode_minus_L=$hardcode_minus_L_GCJ
18428
18429# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18430# the resulting binary.
18431hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18432
18433# Set to yes if building a shared library automatically hardcodes DIR into the library
18434# and all subsequent libraries and executables linked against it.
18435hardcode_automatic=$hardcode_automatic_GCJ
18436
18437# Variables whose values should be saved in libtool wrapper scripts and
18438# restored at relink time.
18439variables_saved_for_relink="$variables_saved_for_relink"
18440
18441# Whether libtool must link a program against all its dependency libraries.
18442link_all_deplibs=$link_all_deplibs_GCJ
18443
18444# Compile-time system search path for libraries
18445sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18446
18447# Run-time system search path for libraries
18448sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18449
18450# Fix the shell variable \$srcfile for the compiler.
18451fix_srcfile_path="$fix_srcfile_path_GCJ"
18452
18453# Set to yes if exported symbols are required.
18454always_export_symbols=$always_export_symbols_GCJ
18455
18456# The commands to list exported symbols.
18457export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18458
18459# The commands to extract the exported symbol list from a shared archive.
18460extract_expsyms_cmds=$lt_extract_expsyms_cmds
18461
18462# Symbols that should not be listed in the preloaded symbols.
18463exclude_expsyms=$lt_exclude_expsyms_GCJ
18464
18465# Symbols that must always be exported.
18466include_expsyms=$lt_include_expsyms_GCJ
18467
18468# ### END LIBTOOL TAG CONFIG: $tagname
18469
18470__EOF__
18471
18472
18473else
18474 # If there is no Makefile yet, we rely on a make rule to execute
18475 # `config.status --recheck' to rerun these tests and create the
18476 # libtool script then.
18477 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18478 if test -f "$ltmain_in"; then
18479 test -f Makefile && make "$ltmain"
18480 fi
18481fi
18482
18483
18484ac_ext=c
18485ac_cpp='$CPP $CPPFLAGS'
18486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18488ac_compiler_gnu=$ac_cv_c_compiler_gnu
18489
18490CC="$lt_save_CC"
18491
18492 else
18493 tagname=""
18494 fi
18495 ;;
18496
18497 RC)
18498
18499
18500# Source file extension for RC test sources.
18501ac_ext=rc
18502
18503# Object file extension for compiled RC test sources.
18504objext=o
18505objext_RC=$objext
18506
18507# Code to be used in simple compile tests
18508lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18509
18510# Code to be used in simple link tests
18511lt_simple_link_test_code="$lt_simple_compile_test_code"
18512
18513# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18514
18515# If no C compiler was specified, use CC.
18516LTCC=${LTCC-"$CC"}
18517
18518# If no C compiler flags were specified, use CFLAGS.
18519LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18520
18521# Allow CC to be a program name with arguments.
18522compiler=$CC
18523
18524
18525# save warnings/boilerplate of simple test code
18526ac_outfile=conftest.$ac_objext
18527printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18528eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18529_lt_compiler_boilerplate=`cat conftest.err`
18530$rm conftest*
18531
18532ac_outfile=conftest.$ac_objext
18533printf "$lt_simple_link_test_code" >conftest.$ac_ext
18534eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18535_lt_linker_boilerplate=`cat conftest.err`
18536$rm conftest*
18537
18538
18539# Allow CC to be a program name with arguments.
18540lt_save_CC="$CC"
18541CC=${RC-"windres"}
18542compiler=$CC
18543compiler_RC=$CC
18544for cc_temp in $compiler""; do
18545 case $cc_temp in
18546 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18547 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18548 \-*) ;;
18549 *) break;;
18550 esac
18551done
18552cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18553
18554lt_cv_prog_compiler_c_o_RC=yes
18555
18556# The else clause should only fire when bootstrapping the
18557# libtool distribution, otherwise you forgot to ship ltmain.sh
18558# with your package, and you will get complaints that there are
18559# no rules to generate ltmain.sh.
18560if test -f "$ltmain"; then
18561 # See if we are running on zsh, and set the options which allow our commands through
18562 # without removal of \ escapes.
18563 if test -n "${ZSH_VERSION+set}" ; then
18564 setopt NO_GLOB_SUBST
18565 fi
18566 # Now quote all the things that may contain metacharacters while being
18567 # careful not to overquote the AC_SUBSTed values. We take copies of the
18568 # variables and quote the copies for generation of the libtool script.
18569 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18570 SED SHELL STRIP \
18571 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18572 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18573 deplibs_check_method reload_flag reload_cmds need_locks \
18574 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18575 lt_cv_sys_global_symbol_to_c_name_address \
18576 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18577 old_postinstall_cmds old_postuninstall_cmds \
18578 compiler_RC \
18579 CC_RC \
18580 LD_RC \
18581 lt_prog_compiler_wl_RC \
18582 lt_prog_compiler_pic_RC \
18583 lt_prog_compiler_static_RC \
18584 lt_prog_compiler_no_builtin_flag_RC \
18585 export_dynamic_flag_spec_RC \
18586 thread_safe_flag_spec_RC \
18587 whole_archive_flag_spec_RC \
18588 enable_shared_with_static_runtimes_RC \
18589 old_archive_cmds_RC \
18590 old_archive_from_new_cmds_RC \
18591 predep_objects_RC \
18592 postdep_objects_RC \
18593 predeps_RC \
18594 postdeps_RC \
18595 compiler_lib_search_path_RC \
18596 archive_cmds_RC \
18597 archive_expsym_cmds_RC \
18598 postinstall_cmds_RC \
18599 postuninstall_cmds_RC \
18600 old_archive_from_expsyms_cmds_RC \
18601 allow_undefined_flag_RC \
18602 no_undefined_flag_RC \
18603 export_symbols_cmds_RC \
18604 hardcode_libdir_flag_spec_RC \
18605 hardcode_libdir_flag_spec_ld_RC \
18606 hardcode_libdir_separator_RC \
18607 hardcode_automatic_RC \
18608 module_cmds_RC \
18609 module_expsym_cmds_RC \
18610 lt_cv_prog_compiler_c_o_RC \
18611 exclude_expsyms_RC \
18612 include_expsyms_RC; do
18613
18614 case $var in
18615 old_archive_cmds_RC | \
18616 old_archive_from_new_cmds_RC | \
18617 archive_cmds_RC | \
18618 archive_expsym_cmds_RC | \
18619 module_cmds_RC | \
18620 module_expsym_cmds_RC | \
18621 old_archive_from_expsyms_cmds_RC | \
18622 export_symbols_cmds_RC | \
18623 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18624 postinstall_cmds | postuninstall_cmds | \
18625 old_postinstall_cmds | old_postuninstall_cmds | \
18626 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18627 # Double-quote double-evaled strings.
18628 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18629 ;;
18630 *)
18631 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18632 ;;
18633 esac
18634 done
18635
18636 case $lt_echo in
18637 *'\$0 --fallback-echo"')
18638 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18639 ;;
18640 esac
18641
18642cfgfile="$ofile"
18643
18644 cat <<__EOF__ >> "$cfgfile"
18645# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18646
18647# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18648
18649# Shell to use when invoking shell scripts.
18650SHELL=$lt_SHELL
18651
18652# Whether or not to build shared libraries.
18653build_libtool_libs=$enable_shared
18654
18655# Whether or not to build static libraries.
18656build_old_libs=$enable_static
18657
18658# Whether or not to add -lc for building shared libraries.
18659build_libtool_need_lc=$archive_cmds_need_lc_RC
18660
18661# Whether or not to disallow shared libs when runtime libs are static
18662allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18663
18664# Whether or not to optimize for fast installation.
18665fast_install=$enable_fast_install
18666
18667# The host system.
18668host_alias=$host_alias
18669host=$host
18670host_os=$host_os
18671
18672# The build system.
18673build_alias=$build_alias
18674build=$build
18675build_os=$build_os
18676
18677# An echo program that does not interpret backslashes.
18678echo=$lt_echo
18679
18680# The archiver.
18681AR=$lt_AR
18682AR_FLAGS=$lt_AR_FLAGS
18683
18684# A C compiler.
18685LTCC=$lt_LTCC
18686
18687# LTCC compiler flags.
18688LTCFLAGS=$lt_LTCFLAGS
18689
18690# A language-specific compiler.
18691CC=$lt_compiler_RC
18692
18693# Is the compiler the GNU C compiler?
18694with_gcc=$GCC_RC
18695
18696# An ERE matcher.
18697EGREP=$lt_EGREP
18698
18699# The linker used to build libraries.
18700LD=$lt_LD_RC
18701
18702# Whether we need hard or soft links.
18703LN_S=$lt_LN_S
18704
18705# A BSD-compatible nm program.
18706NM=$lt_NM
18707
18708# A symbol stripping program
18709STRIP=$lt_STRIP
18710
18711# Used to examine libraries when file_magic_cmd begins "file"
18712MAGIC_CMD=$MAGIC_CMD
18713
18714# Used on cygwin: DLL creation program.
18715DLLTOOL="$DLLTOOL"
18716
18717# Used on cygwin: object dumper.
18718OBJDUMP="$OBJDUMP"
18719
18720# Used on cygwin: assembler.
18721AS="$AS"
18722
18723# The name of the directory that contains temporary libtool files.
18724objdir=$objdir
18725
18726# How to create reloadable object files.
18727reload_flag=$lt_reload_flag
18728reload_cmds=$lt_reload_cmds
18729
18730# How to pass a linker flag through the compiler.
18731wl=$lt_lt_prog_compiler_wl_RC
18732
18733# Object file suffix (normally "o").
18734objext="$ac_objext"
18735
18736# Old archive suffix (normally "a").
18737libext="$libext"
18738
18739# Shared library suffix (normally ".so").
18740shrext_cmds='$shrext_cmds'
18741
18742# Executable file suffix (normally "").
18743exeext="$exeext"
18744
18745# Additional compiler flags for building library objects.
18746pic_flag=$lt_lt_prog_compiler_pic_RC
18747pic_mode=$pic_mode
18748
18749# What is the maximum length of a command?
18750max_cmd_len=$lt_cv_sys_max_cmd_len
18751
18752# Does compiler simultaneously support -c and -o options?
18753compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18754
18755# Must we lock files when doing compilation?
18756need_locks=$lt_need_locks
18757
18758# Do we need the lib prefix for modules?
18759need_lib_prefix=$need_lib_prefix
18760
18761# Do we need a version for libraries?
18762need_version=$need_version
18763
18764# Whether dlopen is supported.
18765dlopen_support=$enable_dlopen
18766
18767# Whether dlopen of programs is supported.
18768dlopen_self=$enable_dlopen_self
18769
18770# Whether dlopen of statically linked programs is supported.
18771dlopen_self_static=$enable_dlopen_self_static
18772
18773# Compiler flag to prevent dynamic linking.
18774link_static_flag=$lt_lt_prog_compiler_static_RC
18775
18776# Compiler flag to turn off builtin functions.
18777no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18778
18779# Compiler flag to allow reflexive dlopens.
18780export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18781
18782# Compiler flag to generate shared objects directly from archives.
18783whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18784
18785# Compiler flag to generate thread-safe objects.
18786thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18787
18788# Library versioning type.
18789version_type=$version_type
18790
18791# Format of library name prefix.
18792libname_spec=$lt_libname_spec
18793
18794# List of archive names. First name is the real one, the rest are links.
18795# The last name is the one that the linker finds with -lNAME.
18796library_names_spec=$lt_library_names_spec
18797
18798# The coded name of the library, if different from the real name.
18799soname_spec=$lt_soname_spec
18800
18801# Commands used to build and install an old-style archive.
18802RANLIB=$lt_RANLIB
18803old_archive_cmds=$lt_old_archive_cmds_RC
18804old_postinstall_cmds=$lt_old_postinstall_cmds
18805old_postuninstall_cmds=$lt_old_postuninstall_cmds
18806
18807# Create an old-style archive from a shared archive.
18808old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18809
18810# Create a temporary old-style archive to link instead of a shared archive.
18811old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18812
18813# Commands used to build and install a shared archive.
18814archive_cmds=$lt_archive_cmds_RC
18815archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18816postinstall_cmds=$lt_postinstall_cmds
18817postuninstall_cmds=$lt_postuninstall_cmds
18818
18819# Commands used to build a loadable module (assumed same as above if empty)
18820module_cmds=$lt_module_cmds_RC
18821module_expsym_cmds=$lt_module_expsym_cmds_RC
18822
18823# Commands to strip libraries.
18824old_striplib=$lt_old_striplib
18825striplib=$lt_striplib
18826
18827# Dependencies to place before the objects being linked to create a
18828# shared library.
18829predep_objects=$lt_predep_objects_RC
18830
18831# Dependencies to place after the objects being linked to create a
18832# shared library.
18833postdep_objects=$lt_postdep_objects_RC
18834
18835# Dependencies to place before the objects being linked to create a
18836# shared library.
18837predeps=$lt_predeps_RC
18838
18839# Dependencies to place after the objects being linked to create a
18840# shared library.
18841postdeps=$lt_postdeps_RC
18842
18843# The library search path used internally by the compiler when linking
18844# a shared library.
18845compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18846
18847# Method to check whether dependent libraries are shared objects.
18848deplibs_check_method=$lt_deplibs_check_method
18849
18850# Command to use when deplibs_check_method == file_magic.
18851file_magic_cmd=$lt_file_magic_cmd
18852
18853# Flag that allows shared libraries with undefined symbols to be built.
18854allow_undefined_flag=$lt_allow_undefined_flag_RC
18855
18856# Flag that forces no undefined symbols.
18857no_undefined_flag=$lt_no_undefined_flag_RC
18858
18859# Commands used to finish a libtool library installation in a directory.
18860finish_cmds=$lt_finish_cmds
18861
18862# Same as above, but a single script fragment to be evaled but not shown.
18863finish_eval=$lt_finish_eval
18864
18865# Take the output of nm and produce a listing of raw symbols and C names.
18866global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18867
18868# Transform the output of nm in a proper C declaration
18869global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18870
18871# Transform the output of nm in a C name address pair
18872global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18873
18874# This is the shared library runtime path variable.
18875runpath_var=$runpath_var
18876
18877# This is the shared library path variable.
18878shlibpath_var=$shlibpath_var
18879
18880# Is shlibpath searched before the hard-coded library search path?
18881shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18882
18883# How to hardcode a shared library path into an executable.
18884hardcode_action=$hardcode_action_RC
18885
18886# Whether we should hardcode library paths into libraries.
18887hardcode_into_libs=$hardcode_into_libs
18888
18889# Flag to hardcode \$libdir into a binary during linking.
18890# This must work even if \$libdir does not exist.
18891hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18892
18893# If ld is used when linking, flag to hardcode \$libdir into
18894# a binary during linking. This must work even if \$libdir does
18895# not exist.
18896hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18897
18898# Whether we need a single -rpath flag with a separated argument.
18899hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18900
18901# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18902# resulting binary.
18903hardcode_direct=$hardcode_direct_RC
18904
18905# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18906# resulting binary.
18907hardcode_minus_L=$hardcode_minus_L_RC
18908
18909# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18910# the resulting binary.
18911hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18912
18913# Set to yes if building a shared library automatically hardcodes DIR into the library
18914# and all subsequent libraries and executables linked against it.
18915hardcode_automatic=$hardcode_automatic_RC
18916
18917# Variables whose values should be saved in libtool wrapper scripts and
18918# restored at relink time.
18919variables_saved_for_relink="$variables_saved_for_relink"
18920
18921# Whether libtool must link a program against all its dependency libraries.
18922link_all_deplibs=$link_all_deplibs_RC
18923
18924# Compile-time system search path for libraries
18925sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18926
18927# Run-time system search path for libraries
18928sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18929
18930# Fix the shell variable \$srcfile for the compiler.
18931fix_srcfile_path="$fix_srcfile_path_RC"
18932
18933# Set to yes if exported symbols are required.
18934always_export_symbols=$always_export_symbols_RC
18935
18936# The commands to list exported symbols.
18937export_symbols_cmds=$lt_export_symbols_cmds_RC
18938
18939# The commands to extract the exported symbol list from a shared archive.
18940extract_expsyms_cmds=$lt_extract_expsyms_cmds
18941
18942# Symbols that should not be listed in the preloaded symbols.
18943exclude_expsyms=$lt_exclude_expsyms_RC
18944
18945# Symbols that must always be exported.
18946include_expsyms=$lt_include_expsyms_RC
18947
18948# ### END LIBTOOL TAG CONFIG: $tagname
18949
18950__EOF__
18951
18952
18953else
18954 # If there is no Makefile yet, we rely on a make rule to execute
18955 # `config.status --recheck' to rerun these tests and create the
18956 # libtool script then.
18957 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18958 if test -f "$ltmain_in"; then
18959 test -f Makefile && make "$ltmain"
18960 fi
18961fi
18962
18963
18964ac_ext=c
18965ac_cpp='$CPP $CPPFLAGS'
18966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18968ac_compiler_gnu=$ac_cv_c_compiler_gnu
18969
18970CC="$lt_save_CC"
18971
18972 ;;
18973
18974 *)
18975 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18976echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18977 { (exit 1); exit 1; }; }
18978 ;;
18979 esac
18980
18981 # Append the new tag name to the list of available tags.
18982 if test -n "$tagname" ; then
18983 available_tags="$available_tags $tagname"
18984 fi
18985 fi
18986 done
18987 IFS="$lt_save_ifs"
18988
18989 # Now substitute the updated list of available tags.
18990 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18991 mv "${ofile}T" "$ofile"
18992 chmod +x "$ofile"
18993 else
18994 rm -f "${ofile}T"
18995 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18996echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18997 { (exit 1); exit 1; }; }
18998 fi
18999fi
19000
19001
19002
19003# This can be used to rebuild libtool when needed
19004LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19005
19006# Always use our own libtool.
19007LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19008
19009# Prevent multiple expansion
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030# Find a good install program. We prefer a C program (faster),
19031# so one script is as good as another. But avoid the broken or
19032# incompatible versions:
19033# SysV /etc/install, /usr/sbin/install
19034# SunOS /usr/etc/install
19035# IRIX /sbin/install
19036# AIX /bin/install
19037# AmigaOS /C/install, which installs bootblocks on floppy discs
19038# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19039# AFS /usr/afsws/bin/install, which mishandles nonexistent args
19040# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19041# OS/2's system install, which has a completely different semantic
19042# ./install, which can be erroneously created by make from ./install.sh.
19043{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19044echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
19045if test -z "$INSTALL"; then
19046if test "${ac_cv_path_install+set}" = set; then
19047 echo $ECHO_N "(cached) $ECHO_C" >&6
19048else
19049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19050for as_dir in $PATH
19051do
19052 IFS=$as_save_IFS
19053 test -z "$as_dir" && as_dir=.
19054 # Account for people who put trailing slashes in PATH elements.
19055case $as_dir/ in
19056 ./ | .// | /cC/* | \
19057 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19058 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19059 /usr/ucb/* ) ;;
19060 *)
19061 # OSF1 and SCO ODT 3.0 have their own names for install.
19062 # Don't use installbsd from OSF since it installs stuff as root
19063 # by default.
19064 for ac_prog in ginstall scoinst install; do
19065 for ac_exec_ext in '' $ac_executable_extensions; do
19066 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19067 if test $ac_prog = install &&
19068 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19069 # AIX install. It has an incompatible calling convention.
19070 :
19071 elif test $ac_prog = install &&
19072 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19073 # program-specific install script used by HP pwplus--don't use.
19074 :
19075 else
19076 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19077 break 3
19078 fi
19079 fi
19080 done
19081 done
19082 ;;
19083esac
19084done
19085IFS=$as_save_IFS
19086
19087
19088fi
19089 if test "${ac_cv_path_install+set}" = set; then
19090 INSTALL=$ac_cv_path_install
19091 else
19092 # As a last resort, use the slow shell script. Don't cache a
19093 # value for INSTALL within a source directory, because that will
19094 # break other packages using the cache if that directory is
19095 # removed, or if the value is a relative name.
19096 INSTALL=$ac_install_sh
19097 fi
19098fi
19099{ echo "$as_me:$LINENO: result: $INSTALL" >&5
19100echo "${ECHO_T}$INSTALL" >&6; }
19101
19102# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19103# It thinks the first close brace ends the variable substitution.
19104test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19105
19106test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19107
19108test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19109
19110{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
19111echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
19112LN_S=$as_ln_s
19113if test "$LN_S" = "ln -s"; then
19114 { echo "$as_me:$LINENO: result: yes" >&5
19115echo "${ECHO_T}yes" >&6; }
19116else
19117 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
19118echo "${ECHO_T}no, using $LN_S" >&6; }
19119fi
19120
19121# Extract the first word of "ar", so it can be a program name with args.
19122set dummy ar; ac_word=$2
19123{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19125if test "${ac_cv_path_AR+set}" = set; then
19126 echo $ECHO_N "(cached) $ECHO_C" >&6
19127else
19128 case $AR in
19129 [\\/]* | ?:[\\/]*)
19130 ac_cv_path_AR="$AR" # Let the user override the test with a path.
19131 ;;
19132 *)
19133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19134for as_dir in $PATH
19135do
19136 IFS=$as_save_IFS
19137 test -z "$as_dir" && as_dir=.
19138 for ac_exec_ext in '' $ac_executable_extensions; do
19139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19140 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
19141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19142 break 2
19143 fi
19144done
19145done
19146IFS=$as_save_IFS
19147
19148 test -z "$ac_cv_path_AR" && ac_cv_path_AR="no"
19149 ;;
19150esac
19151fi
19152AR=$ac_cv_path_AR
19153if test -n "$AR"; then
19154 { echo "$as_me:$LINENO: result: $AR" >&5
19155echo "${ECHO_T}$AR" >&6; }
19156else
19157 { echo "$as_me:$LINENO: result: no" >&5
19158echo "${ECHO_T}no" >&6; }
19159fi
19160
19161
19162if [ $AR = "no" ] ; then
19163 { { echo "$as_me:$LINENO: error: \"Could not find ar - needed to create a library\"" >&5
19164echo "$as_me: error: \"Could not find ar - needed to create a library\"" >&2;}
19165 { (exit 1); exit 1; }; }
19166fi
19167
19168{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19169echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
19170if test "${ac_cv_c_bigendian+set}" = set; then
19171 echo $ECHO_N "(cached) $ECHO_C" >&6
19172else
19173 # See if sys/param.h defines the BYTE_ORDER macro.
19174cat >conftest.$ac_ext <<_ACEOF
19175/* confdefs.h. */
19176_ACEOF
19177cat confdefs.h >>conftest.$ac_ext
19178cat >>conftest.$ac_ext <<_ACEOF
19179/* end confdefs.h. */
19180#include <sys/types.h>
19181#include <sys/param.h>
19182
19183int
19184main ()
19185{
19186#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
19187 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
19188 bogus endian macros
19189#endif
19190
19191 ;
19192 return 0;
19193}
19194_ACEOF
19195rm -f conftest.$ac_objext
19196if { (ac_try="$ac_compile"
19197case "(($ac_try" in
19198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19199 *) ac_try_echo=$ac_try;;
19200esac
19201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19202 (eval "$ac_compile") 2>conftest.er1
19203 ac_status=$?
19204 grep -v '^ *+' conftest.er1 >conftest.err
19205 rm -f conftest.er1
19206 cat conftest.err >&5
19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208 (exit $ac_status); } && {
19209 test -z "$ac_c_werror_flag" ||
19210 test ! -s conftest.err
19211 } && test -s conftest.$ac_objext; then
19212 # It does; now see whether it defined to BIG_ENDIAN or not.
19213cat >conftest.$ac_ext <<_ACEOF
19214/* confdefs.h. */
19215_ACEOF
19216cat confdefs.h >>conftest.$ac_ext
19217cat >>conftest.$ac_ext <<_ACEOF
19218/* end confdefs.h. */
19219#include <sys/types.h>
19220#include <sys/param.h>
19221
19222int
19223main ()
19224{
19225#if BYTE_ORDER != BIG_ENDIAN
19226 not big endian
19227#endif
19228
19229 ;
19230 return 0;
19231}
19232_ACEOF
19233rm -f conftest.$ac_objext
19234if { (ac_try="$ac_compile"
19235case "(($ac_try" in
19236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19237 *) ac_try_echo=$ac_try;;
19238esac
19239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19240 (eval "$ac_compile") 2>conftest.er1
19241 ac_status=$?
19242 grep -v '^ *+' conftest.er1 >conftest.err
19243 rm -f conftest.er1
19244 cat conftest.err >&5
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); } && {
19247 test -z "$ac_c_werror_flag" ||
19248 test ! -s conftest.err
19249 } && test -s conftest.$ac_objext; then
19250 ac_cv_c_bigendian=yes
19251else
19252 echo "$as_me: failed program was:" >&5
19253sed 's/^/| /' conftest.$ac_ext >&5
19254
19255 ac_cv_c_bigendian=no
19256fi
19257
19258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19259else
19260 echo "$as_me: failed program was:" >&5
19261sed 's/^/| /' conftest.$ac_ext >&5
19262
19263 # It does not; compile a test program.
19264if test "$cross_compiling" = yes; then
19265 # try to guess the endianness by grepping values into an object file
19266 ac_cv_c_bigendian=unknown
19267 cat >conftest.$ac_ext <<_ACEOF
19268/* confdefs.h. */
19269_ACEOF
19270cat confdefs.h >>conftest.$ac_ext
19271cat >>conftest.$ac_ext <<_ACEOF
19272/* end confdefs.h. */
19273short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19274short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19275void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19276short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19277short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19278void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19279int
19280main ()
19281{
19282 _ascii (); _ebcdic ();
19283 ;
19284 return 0;
19285}
19286_ACEOF
19287rm -f conftest.$ac_objext
19288if { (ac_try="$ac_compile"
19289case "(($ac_try" in
19290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19291 *) ac_try_echo=$ac_try;;
19292esac
19293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19294 (eval "$ac_compile") 2>conftest.er1
19295 ac_status=$?
19296 grep -v '^ *+' conftest.er1 >conftest.err
19297 rm -f conftest.er1
19298 cat conftest.err >&5
19299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300 (exit $ac_status); } && {
19301 test -z "$ac_c_werror_flag" ||
19302 test ! -s conftest.err
19303 } && test -s conftest.$ac_objext; then
19304 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19305 ac_cv_c_bigendian=yes
19306fi
19307if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19308 if test "$ac_cv_c_bigendian" = unknown; then
19309 ac_cv_c_bigendian=no
19310 else
19311 # finding both strings is unlikely to happen, but who knows?
19312 ac_cv_c_bigendian=unknown
19313 fi
19314fi
19315else
19316 echo "$as_me: failed program was:" >&5
19317sed 's/^/| /' conftest.$ac_ext >&5
19318
19319
19320fi
19321
19322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19323else
19324 cat >conftest.$ac_ext <<_ACEOF
19325/* confdefs.h. */
19326_ACEOF
19327cat confdefs.h >>conftest.$ac_ext
19328cat >>conftest.$ac_ext <<_ACEOF
19329/* end confdefs.h. */
19330$ac_includes_default
19331int
19332main ()
19333{
19334
19335 /* Are we little or big endian? From Harbison&Steele. */
19336 union
19337 {
19338 long int l;
19339 char c[sizeof (long int)];
19340 } u;
19341 u.l = 1;
19342 return u.c[sizeof (long int) - 1] == 1;
19343
19344 ;
19345 return 0;
19346}
19347_ACEOF
19348rm -f conftest$ac_exeext
19349if { (ac_try="$ac_link"
19350case "(($ac_try" in
19351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19352 *) ac_try_echo=$ac_try;;
19353esac
19354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19355 (eval "$ac_link") 2>&5
19356 ac_status=$?
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19359 { (case "(($ac_try" in
19360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19361 *) ac_try_echo=$ac_try;;
19362esac
19363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19364 (eval "$ac_try") 2>&5
19365 ac_status=$?
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); }; }; then
19368 ac_cv_c_bigendian=no
19369else
19370 echo "$as_me: program exited with status $ac_status" >&5
19371echo "$as_me: failed program was:" >&5
19372sed 's/^/| /' conftest.$ac_ext >&5
19373
19374( exit $ac_status )
19375ac_cv_c_bigendian=yes
19376fi
19377rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19378fi
19379
19380
19381fi
19382
19383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19384fi
19385{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19386echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
19387case $ac_cv_c_bigendian in
19388 yes)
19389
19390cat >>confdefs.h <<\_ACEOF
19391#define WORDS_BIGENDIAN 1
19392_ACEOF
19393 ;;
19394 no)
19395 ;;
19396 *)
19397 { { echo "$as_me:$LINENO: error: unknown endianness
19398presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19399echo "$as_me: error: unknown endianness
19400presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19401 { (exit 1); exit 1; }; } ;;
19402esac
19403
19404
19405
19406{ echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
19407echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6; }
19408if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
19409 echo $ECHO_N "(cached) $ECHO_C" >&6
19410else
19411 ac_check_lib_save_LIBS=$LIBS
19412LIBS="-lasound $LIBS"
19413cat >conftest.$ac_ext <<_ACEOF
19414/* confdefs.h. */
19415_ACEOF
19416cat confdefs.h >>conftest.$ac_ext
19417cat >>conftest.$ac_ext <<_ACEOF
19418/* end confdefs.h. */
19419
19420/* Override any GCC internal prototype to avoid an error.
19421 Use char because int might match the return type of a GCC
19422 builtin and then its argument prototype would still apply. */
19423#ifdef __cplusplus
19424extern "C"
19425#endif
19426char snd_pcm_open ();
19427int
19428main ()
19429{
19430return snd_pcm_open ();
19431 ;
19432 return 0;
19433}
19434_ACEOF
19435rm -f conftest.$ac_objext conftest$ac_exeext
19436if { (ac_try="$ac_link"
19437case "(($ac_try" in
19438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19439 *) ac_try_echo=$ac_try;;
19440esac
19441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19442 (eval "$ac_link") 2>conftest.er1
19443 ac_status=$?
19444 grep -v '^ *+' conftest.er1 >conftest.err
19445 rm -f conftest.er1
19446 cat conftest.err >&5
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); } && {
19449 test -z "$ac_c_werror_flag" ||
19450 test ! -s conftest.err
19451 } && test -s conftest$ac_exeext &&
19452 $as_test_x conftest$ac_exeext; then
19453 ac_cv_lib_asound_snd_pcm_open=yes
19454else
19455 echo "$as_me: failed program was:" >&5
19456sed 's/^/| /' conftest.$ac_ext >&5
19457
19458 ac_cv_lib_asound_snd_pcm_open=no
19459fi
19460
19461rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19462 conftest$ac_exeext conftest.$ac_ext
19463LIBS=$ac_check_lib_save_LIBS
19464fi
19465{ echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
19466echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6; }
19467if test $ac_cv_lib_asound_snd_pcm_open = yes; then
19468 have_alsa=yes
19469else
19470 have_alsa=no
19471fi
19472
19473{ echo "$as_me:$LINENO: checking for HPI_SubSysCreate in -lhpi" >&5
19474echo $ECHO_N "checking for HPI_SubSysCreate in -lhpi... $ECHO_C" >&6; }
19475if test "${ac_cv_lib_hpi_HPI_SubSysCreate+set}" = set; then
19476 echo $ECHO_N "(cached) $ECHO_C" >&6
19477else
19478 ac_check_lib_save_LIBS=$LIBS
19479LIBS="-lhpi -lm $LIBS"
19480cat >conftest.$ac_ext <<_ACEOF
19481/* confdefs.h. */
19482_ACEOF
19483cat confdefs.h >>conftest.$ac_ext
19484cat >>conftest.$ac_ext <<_ACEOF
19485/* end confdefs.h. */
19486
19487/* Override any GCC internal prototype to avoid an error.
19488 Use char because int might match the return type of a GCC
19489 builtin and then its argument prototype would still apply. */
19490#ifdef __cplusplus
19491extern "C"
19492#endif
19493char HPI_SubSysCreate ();
19494int
19495main ()
19496{
19497return HPI_SubSysCreate ();
19498 ;
19499 return 0;
19500}
19501_ACEOF
19502rm -f conftest.$ac_objext conftest$ac_exeext
19503if { (ac_try="$ac_link"
19504case "(($ac_try" in
19505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19506 *) ac_try_echo=$ac_try;;
19507esac
19508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19509 (eval "$ac_link") 2>conftest.er1
19510 ac_status=$?
19511 grep -v '^ *+' conftest.er1 >conftest.err
19512 rm -f conftest.er1
19513 cat conftest.err >&5
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); } && {
19516 test -z "$ac_c_werror_flag" ||
19517 test ! -s conftest.err
19518 } && test -s conftest$ac_exeext &&
19519 $as_test_x conftest$ac_exeext; then
19520 ac_cv_lib_hpi_HPI_SubSysCreate=yes
19521else
19522 echo "$as_me: failed program was:" >&5
19523sed 's/^/| /' conftest.$ac_ext >&5
19524
19525 ac_cv_lib_hpi_HPI_SubSysCreate=no
19526fi
19527
19528rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19529 conftest$ac_exeext conftest.$ac_ext
19530LIBS=$ac_check_lib_save_LIBS
19531fi
19532{ echo "$as_me:$LINENO: result: $ac_cv_lib_hpi_HPI_SubSysCreate" >&5
19533echo "${ECHO_T}$ac_cv_lib_hpi_HPI_SubSysCreate" >&6; }
19534if test $ac_cv_lib_hpi_HPI_SubSysCreate = yes; then
19535 have_asihpi=yes
19536else
19537 have_asihpi=no
19538fi
19539
19540{ echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
19541echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
19542if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
19543 echo $ECHO_N "(cached) $ECHO_C" >&6
19544else
19545 ac_check_lib_save_LIBS=$LIBS
19546LIBS="-lossaudio $LIBS"
19547cat >conftest.$ac_ext <<_ACEOF
19548/* confdefs.h. */
19549_ACEOF
19550cat confdefs.h >>conftest.$ac_ext
19551cat >>conftest.$ac_ext <<_ACEOF
19552/* end confdefs.h. */
19553
19554/* Override any GCC internal prototype to avoid an error.
19555 Use char because int might match the return type of a GCC
19556 builtin and then its argument prototype would still apply. */
19557#ifdef __cplusplus
19558extern "C"
19559#endif
19560char _oss_ioctl ();
19561int
19562main ()
19563{
19564return _oss_ioctl ();
19565 ;
19566 return 0;
19567}
19568_ACEOF
19569rm -f conftest.$ac_objext conftest$ac_exeext
19570if { (ac_try="$ac_link"
19571case "(($ac_try" in
19572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19573 *) ac_try_echo=$ac_try;;
19574esac
19575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19576 (eval "$ac_link") 2>conftest.er1
19577 ac_status=$?
19578 grep -v '^ *+' conftest.er1 >conftest.err
19579 rm -f conftest.er1
19580 cat conftest.err >&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); } && {
19583 test -z "$ac_c_werror_flag" ||
19584 test ! -s conftest.err
19585 } && test -s conftest$ac_exeext &&
19586 $as_test_x conftest$ac_exeext; then
19587 ac_cv_lib_ossaudio__oss_ioctl=yes
19588else
19589 echo "$as_me: failed program was:" >&5
19590sed 's/^/| /' conftest.$ac_ext >&5
19591
19592 ac_cv_lib_ossaudio__oss_ioctl=no
19593fi
19594
19595rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19596 conftest$ac_exeext conftest.$ac_ext
19597LIBS=$ac_check_lib_save_LIBS
19598fi
19599{ echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
19600echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
19601if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
19602 have_libossaudio=yes
19603else
19604 have_libossaudio=no
19605fi
19606
19607
19608
19609
19610
19611if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19612 if test -n "$ac_tool_prefix"; then
19613 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19614set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19615{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19617if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19618 echo $ECHO_N "(cached) $ECHO_C" >&6
19619else
19620 case $PKG_CONFIG in
19621 [\\/]* | ?:[\\/]*)
19622 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19623 ;;
19624 *)
19625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19626for as_dir in $PATH
19627do
19628 IFS=$as_save_IFS
19629 test -z "$as_dir" && as_dir=.
19630 for ac_exec_ext in '' $ac_executable_extensions; do
19631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19632 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19634 break 2
19635 fi
19636done
19637done
19638IFS=$as_save_IFS
19639
19640 ;;
19641esac
19642fi
19643PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19644if test -n "$PKG_CONFIG"; then
19645 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19646echo "${ECHO_T}$PKG_CONFIG" >&6; }
19647else
19648 { echo "$as_me:$LINENO: result: no" >&5
19649echo "${ECHO_T}no" >&6; }
19650fi
19651
19652
19653fi
19654if test -z "$ac_cv_path_PKG_CONFIG"; then
19655 ac_pt_PKG_CONFIG=$PKG_CONFIG
19656 # Extract the first word of "pkg-config", so it can be a program name with args.
19657set dummy pkg-config; ac_word=$2
19658{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19660if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19661 echo $ECHO_N "(cached) $ECHO_C" >&6
19662else
19663 case $ac_pt_PKG_CONFIG in
19664 [\\/]* | ?:[\\/]*)
19665 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19666 ;;
19667 *)
19668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19669for as_dir in $PATH
19670do
19671 IFS=$as_save_IFS
19672 test -z "$as_dir" && as_dir=.
19673 for ac_exec_ext in '' $ac_executable_extensions; do
19674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19675 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19677 break 2
19678 fi
19679done
19680done
19681IFS=$as_save_IFS
19682
19683 ;;
19684esac
19685fi
19686ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19687if test -n "$ac_pt_PKG_CONFIG"; then
19688 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19689echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
19690else
19691 { echo "$as_me:$LINENO: result: no" >&5
19692echo "${ECHO_T}no" >&6; }
19693fi
19694
19695 if test "x$ac_pt_PKG_CONFIG" = x; then
19696 PKG_CONFIG=""
19697 else
19698 case $cross_compiling:$ac_tool_warned in
19699yes:)
19700{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19701whose name does not start with the host triplet. If you think this
19702configuration is useful to you, please write to autoconf@gnu.org." >&5
19703echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19704whose name does not start with the host triplet. If you think this
19705configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19706ac_tool_warned=yes ;;
19707esac
19708 PKG_CONFIG=$ac_pt_PKG_CONFIG
19709 fi
19710else
19711 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19712fi
19713
19714fi
19715if test -n "$PKG_CONFIG"; then
19716 _pkg_min_version=0.9.0
19717 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19718echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
19719 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19720 { echo "$as_me:$LINENO: result: yes" >&5
19721echo "${ECHO_T}yes" >&6; }
19722 else
19723 { echo "$as_me:$LINENO: result: no" >&5
19724echo "${ECHO_T}no" >&6; }
19725 PKG_CONFIG=""
19726 fi
19727
19728fi
19729
19730pkg_failed=no
19731{ echo "$as_me:$LINENO: checking for JACK" >&5
19732echo $ECHO_N "checking for JACK... $ECHO_C" >&6; }
19733
19734if test -n "$PKG_CONFIG"; then
19735 if test -n "$JACK_CFLAGS"; then
19736 pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
19737 else
19738 if test -n "$PKG_CONFIG" && \
19739 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"jack\"") >&5
19740 ($PKG_CONFIG --exists --print-errors "jack") 2>&5
19741 ac_status=$?
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); }; then
19744 pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack" 2>/dev/null`
19745else
19746 pkg_failed=yes
19747fi
19748 fi
19749else
19750 pkg_failed=untried
19751fi
19752if test -n "$PKG_CONFIG"; then
19753 if test -n "$JACK_LIBS"; then
19754 pkg_cv_JACK_LIBS="$JACK_LIBS"
19755 else
19756 if test -n "$PKG_CONFIG" && \
19757 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"jack\"") >&5
19758 ($PKG_CONFIG --exists --print-errors "jack") 2>&5
19759 ac_status=$?
19760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761 (exit $ac_status); }; then
19762 pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack" 2>/dev/null`
19763else
19764 pkg_failed=yes
19765fi
19766 fi
19767else
19768 pkg_failed=untried
19769fi
19770
19771
19772
19773if test $pkg_failed = yes; then
19774
19775if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19776 _pkg_short_errors_supported=yes
19777else
19778 _pkg_short_errors_supported=no
19779fi
19780 if test $_pkg_short_errors_supported = yes; then
19781 JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "jack"`
19782 else
19783 JACK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "jack"`
19784 fi
19785 # Put the nasty error message in config.log where it belongs
19786 echo "$JACK_PKG_ERRORS" >&5
19787
19788 have_jack=no
19789elif test $pkg_failed = untried; then
19790 have_jack=no
19791else
19792 JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
19793 JACK_LIBS=$pkg_cv_JACK_LIBS
19794 { echo "$as_me:$LINENO: result: yes" >&5
19795echo "${ECHO_T}yes" >&6; }
19796 have_jack=yes
19797fi
19798
19799
19800
19801
19802for ac_header in sys/soundcard.h linux/soundcard.h machine/soundcard.h
19803do
19804as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19805if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19806 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19807echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19808if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19809 echo $ECHO_N "(cached) $ECHO_C" >&6
19810fi
19811ac_res=`eval echo '${'$as_ac_Header'}'`
19812 { echo "$as_me:$LINENO: result: $ac_res" >&5
19813echo "${ECHO_T}$ac_res" >&6; }
19814else
19815 # Is the header compilable?
19816{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19817echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19818cat >conftest.$ac_ext <<_ACEOF
19819/* confdefs.h. */
19820_ACEOF
19821cat confdefs.h >>conftest.$ac_ext
19822cat >>conftest.$ac_ext <<_ACEOF
19823/* end confdefs.h. */
19824$ac_includes_default
19825#include <$ac_header>
19826_ACEOF
19827rm -f conftest.$ac_objext
19828if { (ac_try="$ac_compile"
19829case "(($ac_try" in
19830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19831 *) ac_try_echo=$ac_try;;
19832esac
19833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19834 (eval "$ac_compile") 2>conftest.er1
19835 ac_status=$?
19836 grep -v '^ *+' conftest.er1 >conftest.err
19837 rm -f conftest.er1
19838 cat conftest.err >&5
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); } && {
19841 test -z "$ac_c_werror_flag" ||
19842 test ! -s conftest.err
19843 } && test -s conftest.$ac_objext; then
19844 ac_header_compiler=yes
19845else
19846 echo "$as_me: failed program was:" >&5
19847sed 's/^/| /' conftest.$ac_ext >&5
19848
19849 ac_header_compiler=no
19850fi
19851
19852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19853{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19854echo "${ECHO_T}$ac_header_compiler" >&6; }
19855
19856# Is the header present?
19857{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19858echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19859cat >conftest.$ac_ext <<_ACEOF
19860/* confdefs.h. */
19861_ACEOF
19862cat confdefs.h >>conftest.$ac_ext
19863cat >>conftest.$ac_ext <<_ACEOF
19864/* end confdefs.h. */
19865#include <$ac_header>
19866_ACEOF
19867if { (ac_try="$ac_cpp conftest.$ac_ext"
19868case "(($ac_try" in
19869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19870 *) ac_try_echo=$ac_try;;
19871esac
19872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19874 ac_status=$?
19875 grep -v '^ *+' conftest.er1 >conftest.err
19876 rm -f conftest.er1
19877 cat conftest.err >&5
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); } >/dev/null && {
19880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19881 test ! -s conftest.err
19882 }; then
19883 ac_header_preproc=yes
19884else
19885 echo "$as_me: failed program was:" >&5
19886sed 's/^/| /' conftest.$ac_ext >&5
19887
19888 ac_header_preproc=no
19889fi
19890
19891rm -f conftest.err conftest.$ac_ext
19892{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19893echo "${ECHO_T}$ac_header_preproc" >&6; }
19894
19895# So? What about this header?
19896case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19897 yes:no: )
19898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19899echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19901echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19902 ac_header_preproc=yes
19903 ;;
19904 no:yes:* )
19905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19906echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19908echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19909 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19910echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19911 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19912echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19914echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19915 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19916echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19917
19918 ;;
19919esac
19920{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19921echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19922if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19923 echo $ECHO_N "(cached) $ECHO_C" >&6
19924else
19925 eval "$as_ac_Header=\$ac_header_preproc"
19926fi
19927ac_res=`eval echo '${'$as_ac_Header'}'`
19928 { echo "$as_me:$LINENO: result: $ac_res" >&5
19929echo "${ECHO_T}$ac_res" >&6; }
19930
19931fi
19932if test `eval echo '${'$as_ac_Header'}'` = yes; then
19933 cat >>confdefs.h <<_ACEOF
19934#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19935_ACEOF
19936
19937fi
19938
19939done
19940
19941
19942
19943{ echo "$as_me:$LINENO: checking for short" >&5
19944echo $ECHO_N "checking for short... $ECHO_C" >&6; }
19945if test "${ac_cv_type_short+set}" = set; then
19946 echo $ECHO_N "(cached) $ECHO_C" >&6
19947else
19948 cat >conftest.$ac_ext <<_ACEOF
19949/* confdefs.h. */
19950_ACEOF
19951cat confdefs.h >>conftest.$ac_ext
19952cat >>conftest.$ac_ext <<_ACEOF
19953/* end confdefs.h. */
19954$ac_includes_default
19955typedef short ac__type_new_;
19956int
19957main ()
19958{
19959if ((ac__type_new_ *) 0)
19960 return 0;
19961if (sizeof (ac__type_new_))
19962 return 0;
19963 ;
19964 return 0;
19965}
19966_ACEOF
19967rm -f conftest.$ac_objext
19968if { (ac_try="$ac_compile"
19969case "(($ac_try" in
19970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19971 *) ac_try_echo=$ac_try;;
19972esac
19973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19974 (eval "$ac_compile") 2>conftest.er1
19975 ac_status=$?
19976 grep -v '^ *+' conftest.er1 >conftest.err
19977 rm -f conftest.er1
19978 cat conftest.err >&5
19979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); } && {
19981 test -z "$ac_c_werror_flag" ||
19982 test ! -s conftest.err
19983 } && test -s conftest.$ac_objext; then
19984 ac_cv_type_short=yes
19985else
19986 echo "$as_me: failed program was:" >&5
19987sed 's/^/| /' conftest.$ac_ext >&5
19988
19989 ac_cv_type_short=no
19990fi
19991
19992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19993fi
19994{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
19995echo "${ECHO_T}$ac_cv_type_short" >&6; }
19996
19997# The cast to long int works around a bug in the HP C Compiler
19998# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19999# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20000# This bug is HP SR number 8606223364.
20001{ echo "$as_me:$LINENO: checking size of short" >&5
20002echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
20003if test "${ac_cv_sizeof_short+set}" = set; then
20004 echo $ECHO_N "(cached) $ECHO_C" >&6
20005else
20006 if test "$cross_compiling" = yes; then
20007 # Depending upon the size, compute the lo and hi bounds.
20008cat >conftest.$ac_ext <<_ACEOF
20009/* confdefs.h. */
20010_ACEOF
20011cat confdefs.h >>conftest.$ac_ext
20012cat >>conftest.$ac_ext <<_ACEOF
20013/* end confdefs.h. */
20014$ac_includes_default
20015 typedef short ac__type_sizeof_;
20016int
20017main ()
20018{
20019static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20020test_array [0] = 0
20021
20022 ;
20023 return 0;
20024}
20025_ACEOF
20026rm -f conftest.$ac_objext
20027if { (ac_try="$ac_compile"
20028case "(($ac_try" in
20029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20030 *) ac_try_echo=$ac_try;;
20031esac
20032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20033 (eval "$ac_compile") 2>conftest.er1
20034 ac_status=$?
20035 grep -v '^ *+' conftest.er1 >conftest.err
20036 rm -f conftest.er1
20037 cat conftest.err >&5
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); } && {
20040 test -z "$ac_c_werror_flag" ||
20041 test ! -s conftest.err
20042 } && test -s conftest.$ac_objext; then
20043 ac_lo=0 ac_mid=0
20044 while :; do
20045 cat >conftest.$ac_ext <<_ACEOF
20046/* confdefs.h. */
20047_ACEOF
20048cat confdefs.h >>conftest.$ac_ext
20049cat >>conftest.$ac_ext <<_ACEOF
20050/* end confdefs.h. */
20051$ac_includes_default
20052 typedef short ac__type_sizeof_;
20053int
20054main ()
20055{
20056static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20057test_array [0] = 0
20058
20059 ;
20060 return 0;
20061}
20062_ACEOF
20063rm -f conftest.$ac_objext
20064if { (ac_try="$ac_compile"
20065case "(($ac_try" in
20066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20067 *) ac_try_echo=$ac_try;;
20068esac
20069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20070 (eval "$ac_compile") 2>conftest.er1
20071 ac_status=$?
20072 grep -v '^ *+' conftest.er1 >conftest.err
20073 rm -f conftest.er1
20074 cat conftest.err >&5
20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076 (exit $ac_status); } && {
20077 test -z "$ac_c_werror_flag" ||
20078 test ! -s conftest.err
20079 } && test -s conftest.$ac_objext; then
20080 ac_hi=$ac_mid; break
20081else
20082 echo "$as_me: failed program was:" >&5
20083sed 's/^/| /' conftest.$ac_ext >&5
20084
20085 ac_lo=`expr $ac_mid + 1`
20086 if test $ac_lo -le $ac_mid; then
20087 ac_lo= ac_hi=
20088 break
20089 fi
20090 ac_mid=`expr 2 '*' $ac_mid + 1`
20091fi
20092
20093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20094 done
20095else
20096 echo "$as_me: failed program was:" >&5
20097sed 's/^/| /' conftest.$ac_ext >&5
20098
20099 cat >conftest.$ac_ext <<_ACEOF
20100/* confdefs.h. */
20101_ACEOF
20102cat confdefs.h >>conftest.$ac_ext
20103cat >>conftest.$ac_ext <<_ACEOF
20104/* end confdefs.h. */
20105$ac_includes_default
20106 typedef short ac__type_sizeof_;
20107int
20108main ()
20109{
20110static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20111test_array [0] = 0
20112
20113 ;
20114 return 0;
20115}
20116_ACEOF
20117rm -f conftest.$ac_objext
20118if { (ac_try="$ac_compile"
20119case "(($ac_try" in
20120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20121 *) ac_try_echo=$ac_try;;
20122esac
20123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20124 (eval "$ac_compile") 2>conftest.er1
20125 ac_status=$?
20126 grep -v '^ *+' conftest.er1 >conftest.err
20127 rm -f conftest.er1
20128 cat conftest.err >&5
20129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130 (exit $ac_status); } && {
20131 test -z "$ac_c_werror_flag" ||
20132 test ! -s conftest.err
20133 } && test -s conftest.$ac_objext; then
20134 ac_hi=-1 ac_mid=-1
20135 while :; do
20136 cat >conftest.$ac_ext <<_ACEOF
20137/* confdefs.h. */
20138_ACEOF
20139cat confdefs.h >>conftest.$ac_ext
20140cat >>conftest.$ac_ext <<_ACEOF
20141/* end confdefs.h. */
20142$ac_includes_default
20143 typedef short ac__type_sizeof_;
20144int
20145main ()
20146{
20147static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20148test_array [0] = 0
20149
20150 ;
20151 return 0;
20152}
20153_ACEOF
20154rm -f conftest.$ac_objext
20155if { (ac_try="$ac_compile"
20156case "(($ac_try" in
20157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20158 *) ac_try_echo=$ac_try;;
20159esac
20160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20161 (eval "$ac_compile") 2>conftest.er1
20162 ac_status=$?
20163 grep -v '^ *+' conftest.er1 >conftest.err
20164 rm -f conftest.er1
20165 cat conftest.err >&5
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); } && {
20168 test -z "$ac_c_werror_flag" ||
20169 test ! -s conftest.err
20170 } && test -s conftest.$ac_objext; then
20171 ac_lo=$ac_mid; break
20172else
20173 echo "$as_me: failed program was:" >&5
20174sed 's/^/| /' conftest.$ac_ext >&5
20175
20176 ac_hi=`expr '(' $ac_mid ')' - 1`
20177 if test $ac_mid -le $ac_hi; then
20178 ac_lo= ac_hi=
20179 break
20180 fi
20181 ac_mid=`expr 2 '*' $ac_mid`
20182fi
20183
20184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20185 done
20186else
20187 echo "$as_me: failed program was:" >&5
20188sed 's/^/| /' conftest.$ac_ext >&5
20189
20190 ac_lo= ac_hi=
20191fi
20192
20193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20194fi
20195
20196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20197# Binary search between lo and hi bounds.
20198while test "x$ac_lo" != "x$ac_hi"; do
20199 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20200 cat >conftest.$ac_ext <<_ACEOF
20201/* confdefs.h. */
20202_ACEOF
20203cat confdefs.h >>conftest.$ac_ext
20204cat >>conftest.$ac_ext <<_ACEOF
20205/* end confdefs.h. */
20206$ac_includes_default
20207 typedef short ac__type_sizeof_;
20208int
20209main ()
20210{
20211static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20212test_array [0] = 0
20213
20214 ;
20215 return 0;
20216}
20217_ACEOF
20218rm -f conftest.$ac_objext
20219if { (ac_try="$ac_compile"
20220case "(($ac_try" in
20221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222 *) ac_try_echo=$ac_try;;
20223esac
20224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20225 (eval "$ac_compile") 2>conftest.er1
20226 ac_status=$?
20227 grep -v '^ *+' conftest.er1 >conftest.err
20228 rm -f conftest.er1
20229 cat conftest.err >&5
20230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231 (exit $ac_status); } && {
20232 test -z "$ac_c_werror_flag" ||
20233 test ! -s conftest.err
20234 } && test -s conftest.$ac_objext; then
20235 ac_hi=$ac_mid
20236else
20237 echo "$as_me: failed program was:" >&5
20238sed 's/^/| /' conftest.$ac_ext >&5
20239
20240 ac_lo=`expr '(' $ac_mid ')' + 1`
20241fi
20242
20243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20244done
20245case $ac_lo in
20246?*) ac_cv_sizeof_short=$ac_lo;;
20247'') if test "$ac_cv_type_short" = yes; then
20248 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
20249See \`config.log' for more details." >&5
20250echo "$as_me: error: cannot compute sizeof (short)
20251See \`config.log' for more details." >&2;}
20252 { (exit 77); exit 77; }; }
20253 else
20254 ac_cv_sizeof_short=0
20255 fi ;;
20256esac
20257else
20258 cat >conftest.$ac_ext <<_ACEOF
20259/* confdefs.h. */
20260_ACEOF
20261cat confdefs.h >>conftest.$ac_ext
20262cat >>conftest.$ac_ext <<_ACEOF
20263/* end confdefs.h. */
20264$ac_includes_default
20265 typedef short ac__type_sizeof_;
20266static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20267static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20268#include <stdio.h>
20269#include <stdlib.h>
20270int
20271main ()
20272{
20273
20274 FILE *f = fopen ("conftest.val", "w");
20275 if (! f)
20276 return 1;
20277 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20278 {
20279 long int i = longval ();
20280 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20281 return 1;
20282 fprintf (f, "%ld\n", i);
20283 }
20284 else
20285 {
20286 unsigned long int i = ulongval ();
20287 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20288 return 1;
20289 fprintf (f, "%lu\n", i);
20290 }
20291 return ferror (f) || fclose (f) != 0;
20292
20293 ;
20294 return 0;
20295}
20296_ACEOF
20297rm -f conftest$ac_exeext
20298if { (ac_try="$ac_link"
20299case "(($ac_try" in
20300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20301 *) ac_try_echo=$ac_try;;
20302esac
20303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20304 (eval "$ac_link") 2>&5
20305 ac_status=$?
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20308 { (case "(($ac_try" in
20309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20310 *) ac_try_echo=$ac_try;;
20311esac
20312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20313 (eval "$ac_try") 2>&5
20314 ac_status=$?
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 (exit $ac_status); }; }; then
20317 ac_cv_sizeof_short=`cat conftest.val`
20318else
20319 echo "$as_me: program exited with status $ac_status" >&5
20320echo "$as_me: failed program was:" >&5
20321sed 's/^/| /' conftest.$ac_ext >&5
20322
20323( exit $ac_status )
20324if test "$ac_cv_type_short" = yes; then
20325 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
20326See \`config.log' for more details." >&5
20327echo "$as_me: error: cannot compute sizeof (short)
20328See \`config.log' for more details." >&2;}
20329 { (exit 77); exit 77; }; }
20330 else
20331 ac_cv_sizeof_short=0
20332 fi
20333fi
20334rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20335fi
20336rm -f conftest.val
20337fi
20338{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
20339echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
20340
20341
20342
20343cat >>confdefs.h <<_ACEOF
20344#define SIZEOF_SHORT $ac_cv_sizeof_short
20345_ACEOF
20346
20347
20348{ echo "$as_me:$LINENO: checking for int" >&5
20349echo $ECHO_N "checking for int... $ECHO_C" >&6; }
20350if test "${ac_cv_type_int+set}" = set; then
20351 echo $ECHO_N "(cached) $ECHO_C" >&6
20352else
20353 cat >conftest.$ac_ext <<_ACEOF
20354/* confdefs.h. */
20355_ACEOF
20356cat confdefs.h >>conftest.$ac_ext
20357cat >>conftest.$ac_ext <<_ACEOF
20358/* end confdefs.h. */
20359$ac_includes_default
20360typedef int ac__type_new_;
20361int
20362main ()
20363{
20364if ((ac__type_new_ *) 0)
20365 return 0;
20366if (sizeof (ac__type_new_))
20367 return 0;
20368 ;
20369 return 0;
20370}
20371_ACEOF
20372rm -f conftest.$ac_objext
20373if { (ac_try="$ac_compile"
20374case "(($ac_try" in
20375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20376 *) ac_try_echo=$ac_try;;
20377esac
20378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20379 (eval "$ac_compile") 2>conftest.er1
20380 ac_status=$?
20381 grep -v '^ *+' conftest.er1 >conftest.err
20382 rm -f conftest.er1
20383 cat conftest.err >&5
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 (exit $ac_status); } && {
20386 test -z "$ac_c_werror_flag" ||
20387 test ! -s conftest.err
20388 } && test -s conftest.$ac_objext; then
20389 ac_cv_type_int=yes
20390else
20391 echo "$as_me: failed program was:" >&5
20392sed 's/^/| /' conftest.$ac_ext >&5
20393
20394 ac_cv_type_int=no
20395fi
20396
20397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20398fi
20399{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
20400echo "${ECHO_T}$ac_cv_type_int" >&6; }
20401
20402# The cast to long int works around a bug in the HP C Compiler
20403# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20404# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20405# This bug is HP SR number 8606223364.
20406{ echo "$as_me:$LINENO: checking size of int" >&5
20407echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
20408if test "${ac_cv_sizeof_int+set}" = set; then
20409 echo $ECHO_N "(cached) $ECHO_C" >&6
20410else
20411 if test "$cross_compiling" = yes; then
20412 # Depending upon the size, compute the lo and hi bounds.
20413cat >conftest.$ac_ext <<_ACEOF
20414/* confdefs.h. */
20415_ACEOF
20416cat confdefs.h >>conftest.$ac_ext
20417cat >>conftest.$ac_ext <<_ACEOF
20418/* end confdefs.h. */
20419$ac_includes_default
20420 typedef int ac__type_sizeof_;
20421int
20422main ()
20423{
20424static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20425test_array [0] = 0
20426
20427 ;
20428 return 0;
20429}
20430_ACEOF
20431rm -f conftest.$ac_objext
20432if { (ac_try="$ac_compile"
20433case "(($ac_try" in
20434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20435 *) ac_try_echo=$ac_try;;
20436esac
20437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20438 (eval "$ac_compile") 2>conftest.er1
20439 ac_status=$?
20440 grep -v '^ *+' conftest.er1 >conftest.err
20441 rm -f conftest.er1
20442 cat conftest.err >&5
20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); } && {
20445 test -z "$ac_c_werror_flag" ||
20446 test ! -s conftest.err
20447 } && test -s conftest.$ac_objext; then
20448 ac_lo=0 ac_mid=0
20449 while :; do
20450 cat >conftest.$ac_ext <<_ACEOF
20451/* confdefs.h. */
20452_ACEOF
20453cat confdefs.h >>conftest.$ac_ext
20454cat >>conftest.$ac_ext <<_ACEOF
20455/* end confdefs.h. */
20456$ac_includes_default
20457 typedef int ac__type_sizeof_;
20458int
20459main ()
20460{
20461static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20462test_array [0] = 0
20463
20464 ;
20465 return 0;
20466}
20467_ACEOF
20468rm -f conftest.$ac_objext
20469if { (ac_try="$ac_compile"
20470case "(($ac_try" in
20471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20472 *) ac_try_echo=$ac_try;;
20473esac
20474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20475 (eval "$ac_compile") 2>conftest.er1
20476 ac_status=$?
20477 grep -v '^ *+' conftest.er1 >conftest.err
20478 rm -f conftest.er1
20479 cat conftest.err >&5
20480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481 (exit $ac_status); } && {
20482 test -z "$ac_c_werror_flag" ||
20483 test ! -s conftest.err
20484 } && test -s conftest.$ac_objext; then
20485 ac_hi=$ac_mid; break
20486else
20487 echo "$as_me: failed program was:" >&5
20488sed 's/^/| /' conftest.$ac_ext >&5
20489
20490 ac_lo=`expr $ac_mid + 1`
20491 if test $ac_lo -le $ac_mid; then
20492 ac_lo= ac_hi=
20493 break
20494 fi
20495 ac_mid=`expr 2 '*' $ac_mid + 1`
20496fi
20497
20498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20499 done
20500else
20501 echo "$as_me: failed program was:" >&5
20502sed 's/^/| /' conftest.$ac_ext >&5
20503
20504 cat >conftest.$ac_ext <<_ACEOF
20505/* confdefs.h. */
20506_ACEOF
20507cat confdefs.h >>conftest.$ac_ext
20508cat >>conftest.$ac_ext <<_ACEOF
20509/* end confdefs.h. */
20510$ac_includes_default
20511 typedef int ac__type_sizeof_;
20512int
20513main ()
20514{
20515static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20516test_array [0] = 0
20517
20518 ;
20519 return 0;
20520}
20521_ACEOF
20522rm -f conftest.$ac_objext
20523if { (ac_try="$ac_compile"
20524case "(($ac_try" in
20525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20526 *) ac_try_echo=$ac_try;;
20527esac
20528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20529 (eval "$ac_compile") 2>conftest.er1
20530 ac_status=$?
20531 grep -v '^ *+' conftest.er1 >conftest.err
20532 rm -f conftest.er1
20533 cat conftest.err >&5
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); } && {
20536 test -z "$ac_c_werror_flag" ||
20537 test ! -s conftest.err
20538 } && test -s conftest.$ac_objext; then
20539 ac_hi=-1 ac_mid=-1
20540 while :; do
20541 cat >conftest.$ac_ext <<_ACEOF
20542/* confdefs.h. */
20543_ACEOF
20544cat confdefs.h >>conftest.$ac_ext
20545cat >>conftest.$ac_ext <<_ACEOF
20546/* end confdefs.h. */
20547$ac_includes_default
20548 typedef int ac__type_sizeof_;
20549int
20550main ()
20551{
20552static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20553test_array [0] = 0
20554
20555 ;
20556 return 0;
20557}
20558_ACEOF
20559rm -f conftest.$ac_objext
20560if { (ac_try="$ac_compile"
20561case "(($ac_try" in
20562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20563 *) ac_try_echo=$ac_try;;
20564esac
20565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20566 (eval "$ac_compile") 2>conftest.er1
20567 ac_status=$?
20568 grep -v '^ *+' conftest.er1 >conftest.err
20569 rm -f conftest.er1
20570 cat conftest.err >&5
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); } && {
20573 test -z "$ac_c_werror_flag" ||
20574 test ! -s conftest.err
20575 } && test -s conftest.$ac_objext; then
20576 ac_lo=$ac_mid; break
20577else
20578 echo "$as_me: failed program was:" >&5
20579sed 's/^/| /' conftest.$ac_ext >&5
20580
20581 ac_hi=`expr '(' $ac_mid ')' - 1`
20582 if test $ac_mid -le $ac_hi; then
20583 ac_lo= ac_hi=
20584 break
20585 fi
20586 ac_mid=`expr 2 '*' $ac_mid`
20587fi
20588
20589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20590 done
20591else
20592 echo "$as_me: failed program was:" >&5
20593sed 's/^/| /' conftest.$ac_ext >&5
20594
20595 ac_lo= ac_hi=
20596fi
20597
20598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20599fi
20600
20601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20602# Binary search between lo and hi bounds.
20603while test "x$ac_lo" != "x$ac_hi"; do
20604 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20605 cat >conftest.$ac_ext <<_ACEOF
20606/* confdefs.h. */
20607_ACEOF
20608cat confdefs.h >>conftest.$ac_ext
20609cat >>conftest.$ac_ext <<_ACEOF
20610/* end confdefs.h. */
20611$ac_includes_default
20612 typedef int ac__type_sizeof_;
20613int
20614main ()
20615{
20616static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20617test_array [0] = 0
20618
20619 ;
20620 return 0;
20621}
20622_ACEOF
20623rm -f conftest.$ac_objext
20624if { (ac_try="$ac_compile"
20625case "(($ac_try" in
20626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20627 *) ac_try_echo=$ac_try;;
20628esac
20629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20630 (eval "$ac_compile") 2>conftest.er1
20631 ac_status=$?
20632 grep -v '^ *+' conftest.er1 >conftest.err
20633 rm -f conftest.er1
20634 cat conftest.err >&5
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); } && {
20637 test -z "$ac_c_werror_flag" ||
20638 test ! -s conftest.err
20639 } && test -s conftest.$ac_objext; then
20640 ac_hi=$ac_mid
20641else
20642 echo "$as_me: failed program was:" >&5
20643sed 's/^/| /' conftest.$ac_ext >&5
20644
20645 ac_lo=`expr '(' $ac_mid ')' + 1`
20646fi
20647
20648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20649done
20650case $ac_lo in
20651?*) ac_cv_sizeof_int=$ac_lo;;
20652'') if test "$ac_cv_type_int" = yes; then
20653 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20654See \`config.log' for more details." >&5
20655echo "$as_me: error: cannot compute sizeof (int)
20656See \`config.log' for more details." >&2;}
20657 { (exit 77); exit 77; }; }
20658 else
20659 ac_cv_sizeof_int=0
20660 fi ;;
20661esac
20662else
20663 cat >conftest.$ac_ext <<_ACEOF
20664/* confdefs.h. */
20665_ACEOF
20666cat confdefs.h >>conftest.$ac_ext
20667cat >>conftest.$ac_ext <<_ACEOF
20668/* end confdefs.h. */
20669$ac_includes_default
20670 typedef int ac__type_sizeof_;
20671static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20672static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20673#include <stdio.h>
20674#include <stdlib.h>
20675int
20676main ()
20677{
20678
20679 FILE *f = fopen ("conftest.val", "w");
20680 if (! f)
20681 return 1;
20682 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20683 {
20684 long int i = longval ();
20685 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20686 return 1;
20687 fprintf (f, "%ld\n", i);
20688 }
20689 else
20690 {
20691 unsigned long int i = ulongval ();
20692 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20693 return 1;
20694 fprintf (f, "%lu\n", i);
20695 }
20696 return ferror (f) || fclose (f) != 0;
20697
20698 ;
20699 return 0;
20700}
20701_ACEOF
20702rm -f conftest$ac_exeext
20703if { (ac_try="$ac_link"
20704case "(($ac_try" in
20705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706 *) ac_try_echo=$ac_try;;
20707esac
20708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20709 (eval "$ac_link") 2>&5
20710 ac_status=$?
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20713 { (case "(($ac_try" in
20714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20715 *) ac_try_echo=$ac_try;;
20716esac
20717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20718 (eval "$ac_try") 2>&5
20719 ac_status=$?
20720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); }; }; then
20722 ac_cv_sizeof_int=`cat conftest.val`
20723else
20724 echo "$as_me: program exited with status $ac_status" >&5
20725echo "$as_me: failed program was:" >&5
20726sed 's/^/| /' conftest.$ac_ext >&5
20727
20728( exit $ac_status )
20729if test "$ac_cv_type_int" = yes; then
20730 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20731See \`config.log' for more details." >&5
20732echo "$as_me: error: cannot compute sizeof (int)
20733See \`config.log' for more details." >&2;}
20734 { (exit 77); exit 77; }; }
20735 else
20736 ac_cv_sizeof_int=0
20737 fi
20738fi
20739rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20740fi
20741rm -f conftest.val
20742fi
20743{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
20744echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
20745
20746
20747
20748cat >>confdefs.h <<_ACEOF
20749#define SIZEOF_INT $ac_cv_sizeof_int
20750_ACEOF
20751
20752
20753{ echo "$as_me:$LINENO: checking for long" >&5
20754echo $ECHO_N "checking for long... $ECHO_C" >&6; }
20755if test "${ac_cv_type_long+set}" = set; then
20756 echo $ECHO_N "(cached) $ECHO_C" >&6
20757else
20758 cat >conftest.$ac_ext <<_ACEOF
20759/* confdefs.h. */
20760_ACEOF
20761cat confdefs.h >>conftest.$ac_ext
20762cat >>conftest.$ac_ext <<_ACEOF
20763/* end confdefs.h. */
20764$ac_includes_default
20765typedef long ac__type_new_;
20766int
20767main ()
20768{
20769if ((ac__type_new_ *) 0)
20770 return 0;
20771if (sizeof (ac__type_new_))
20772 return 0;
20773 ;
20774 return 0;
20775}
20776_ACEOF
20777rm -f conftest.$ac_objext
20778if { (ac_try="$ac_compile"
20779case "(($ac_try" in
20780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20781 *) ac_try_echo=$ac_try;;
20782esac
20783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20784 (eval "$ac_compile") 2>conftest.er1
20785 ac_status=$?
20786 grep -v '^ *+' conftest.er1 >conftest.err
20787 rm -f conftest.er1
20788 cat conftest.err >&5
20789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790 (exit $ac_status); } && {
20791 test -z "$ac_c_werror_flag" ||
20792 test ! -s conftest.err
20793 } && test -s conftest.$ac_objext; then
20794 ac_cv_type_long=yes
20795else
20796 echo "$as_me: failed program was:" >&5
20797sed 's/^/| /' conftest.$ac_ext >&5
20798
20799 ac_cv_type_long=no
20800fi
20801
20802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20803fi
20804{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
20805echo "${ECHO_T}$ac_cv_type_long" >&6; }
20806
20807# The cast to long int works around a bug in the HP C Compiler
20808# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20809# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20810# This bug is HP SR number 8606223364.
20811{ echo "$as_me:$LINENO: checking size of long" >&5
20812echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
20813if test "${ac_cv_sizeof_long+set}" = set; then
20814 echo $ECHO_N "(cached) $ECHO_C" >&6
20815else
20816 if test "$cross_compiling" = yes; then
20817 # Depending upon the size, compute the lo and hi bounds.
20818cat >conftest.$ac_ext <<_ACEOF
20819/* confdefs.h. */
20820_ACEOF
20821cat confdefs.h >>conftest.$ac_ext
20822cat >>conftest.$ac_ext <<_ACEOF
20823/* end confdefs.h. */
20824$ac_includes_default
20825 typedef long ac__type_sizeof_;
20826int
20827main ()
20828{
20829static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20830test_array [0] = 0
20831
20832 ;
20833 return 0;
20834}
20835_ACEOF
20836rm -f conftest.$ac_objext
20837if { (ac_try="$ac_compile"
20838case "(($ac_try" in
20839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20840 *) ac_try_echo=$ac_try;;
20841esac
20842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20843 (eval "$ac_compile") 2>conftest.er1
20844 ac_status=$?
20845 grep -v '^ *+' conftest.er1 >conftest.err
20846 rm -f conftest.er1
20847 cat conftest.err >&5
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); } && {
20850 test -z "$ac_c_werror_flag" ||
20851 test ! -s conftest.err
20852 } && test -s conftest.$ac_objext; then
20853 ac_lo=0 ac_mid=0
20854 while :; do
20855 cat >conftest.$ac_ext <<_ACEOF
20856/* confdefs.h. */
20857_ACEOF
20858cat confdefs.h >>conftest.$ac_ext
20859cat >>conftest.$ac_ext <<_ACEOF
20860/* end confdefs.h. */
20861$ac_includes_default
20862 typedef long ac__type_sizeof_;
20863int
20864main ()
20865{
20866static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20867test_array [0] = 0
20868
20869 ;
20870 return 0;
20871}
20872_ACEOF
20873rm -f conftest.$ac_objext
20874if { (ac_try="$ac_compile"
20875case "(($ac_try" in
20876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20877 *) ac_try_echo=$ac_try;;
20878esac
20879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20880 (eval "$ac_compile") 2>conftest.er1
20881 ac_status=$?
20882 grep -v '^ *+' conftest.er1 >conftest.err
20883 rm -f conftest.er1
20884 cat conftest.err >&5
20885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886 (exit $ac_status); } && {
20887 test -z "$ac_c_werror_flag" ||
20888 test ! -s conftest.err
20889 } && test -s conftest.$ac_objext; then
20890 ac_hi=$ac_mid; break
20891else
20892 echo "$as_me: failed program was:" >&5
20893sed 's/^/| /' conftest.$ac_ext >&5
20894
20895 ac_lo=`expr $ac_mid + 1`
20896 if test $ac_lo -le $ac_mid; then
20897 ac_lo= ac_hi=
20898 break
20899 fi
20900 ac_mid=`expr 2 '*' $ac_mid + 1`
20901fi
20902
20903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20904 done
20905else
20906 echo "$as_me: failed program was:" >&5
20907sed 's/^/| /' conftest.$ac_ext >&5
20908
20909 cat >conftest.$ac_ext <<_ACEOF
20910/* confdefs.h. */
20911_ACEOF
20912cat confdefs.h >>conftest.$ac_ext
20913cat >>conftest.$ac_ext <<_ACEOF
20914/* end confdefs.h. */
20915$ac_includes_default
20916 typedef long ac__type_sizeof_;
20917int
20918main ()
20919{
20920static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20921test_array [0] = 0
20922
20923 ;
20924 return 0;
20925}
20926_ACEOF
20927rm -f conftest.$ac_objext
20928if { (ac_try="$ac_compile"
20929case "(($ac_try" in
20930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20931 *) ac_try_echo=$ac_try;;
20932esac
20933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20934 (eval "$ac_compile") 2>conftest.er1
20935 ac_status=$?
20936 grep -v '^ *+' conftest.er1 >conftest.err
20937 rm -f conftest.er1
20938 cat conftest.err >&5
20939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940 (exit $ac_status); } && {
20941 test -z "$ac_c_werror_flag" ||
20942 test ! -s conftest.err
20943 } && test -s conftest.$ac_objext; then
20944 ac_hi=-1 ac_mid=-1
20945 while :; do
20946 cat >conftest.$ac_ext <<_ACEOF
20947/* confdefs.h. */
20948_ACEOF
20949cat confdefs.h >>conftest.$ac_ext
20950cat >>conftest.$ac_ext <<_ACEOF
20951/* end confdefs.h. */
20952$ac_includes_default
20953 typedef long ac__type_sizeof_;
20954int
20955main ()
20956{
20957static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20958test_array [0] = 0
20959
20960 ;
20961 return 0;
20962}
20963_ACEOF
20964rm -f conftest.$ac_objext
20965if { (ac_try="$ac_compile"
20966case "(($ac_try" in
20967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20968 *) ac_try_echo=$ac_try;;
20969esac
20970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20971 (eval "$ac_compile") 2>conftest.er1
20972 ac_status=$?
20973 grep -v '^ *+' conftest.er1 >conftest.err
20974 rm -f conftest.er1
20975 cat conftest.err >&5
20976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); } && {
20978 test -z "$ac_c_werror_flag" ||
20979 test ! -s conftest.err
20980 } && test -s conftest.$ac_objext; then
20981 ac_lo=$ac_mid; break
20982else
20983 echo "$as_me: failed program was:" >&5
20984sed 's/^/| /' conftest.$ac_ext >&5
20985
20986 ac_hi=`expr '(' $ac_mid ')' - 1`
20987 if test $ac_mid -le $ac_hi; then
20988 ac_lo= ac_hi=
20989 break
20990 fi
20991 ac_mid=`expr 2 '*' $ac_mid`
20992fi
20993
20994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20995 done
20996else
20997 echo "$as_me: failed program was:" >&5
20998sed 's/^/| /' conftest.$ac_ext >&5
20999
21000 ac_lo= ac_hi=
21001fi
21002
21003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21004fi
21005
21006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21007# Binary search between lo and hi bounds.
21008while test "x$ac_lo" != "x$ac_hi"; do
21009 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21010 cat >conftest.$ac_ext <<_ACEOF
21011/* confdefs.h. */
21012_ACEOF
21013cat confdefs.h >>conftest.$ac_ext
21014cat >>conftest.$ac_ext <<_ACEOF
21015/* end confdefs.h. */
21016$ac_includes_default
21017 typedef long ac__type_sizeof_;
21018int
21019main ()
21020{
21021static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21022test_array [0] = 0
21023
21024 ;
21025 return 0;
21026}
21027_ACEOF
21028rm -f conftest.$ac_objext
21029if { (ac_try="$ac_compile"
21030case "(($ac_try" in
21031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21032 *) ac_try_echo=$ac_try;;
21033esac
21034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21035 (eval "$ac_compile") 2>conftest.er1
21036 ac_status=$?
21037 grep -v '^ *+' conftest.er1 >conftest.err
21038 rm -f conftest.er1
21039 cat conftest.err >&5
21040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041 (exit $ac_status); } && {
21042 test -z "$ac_c_werror_flag" ||
21043 test ! -s conftest.err
21044 } && test -s conftest.$ac_objext; then
21045 ac_hi=$ac_mid
21046else
21047 echo "$as_me: failed program was:" >&5
21048sed 's/^/| /' conftest.$ac_ext >&5
21049
21050 ac_lo=`expr '(' $ac_mid ')' + 1`
21051fi
21052
21053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21054done
21055case $ac_lo in
21056?*) ac_cv_sizeof_long=$ac_lo;;
21057'') if test "$ac_cv_type_long" = yes; then
21058 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21059See \`config.log' for more details." >&5
21060echo "$as_me: error: cannot compute sizeof (long)
21061See \`config.log' for more details." >&2;}
21062 { (exit 77); exit 77; }; }
21063 else
21064 ac_cv_sizeof_long=0
21065 fi ;;
21066esac
21067else
21068 cat >conftest.$ac_ext <<_ACEOF
21069/* confdefs.h. */
21070_ACEOF
21071cat confdefs.h >>conftest.$ac_ext
21072cat >>conftest.$ac_ext <<_ACEOF
21073/* end confdefs.h. */
21074$ac_includes_default
21075 typedef long ac__type_sizeof_;
21076static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21077static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21078#include <stdio.h>
21079#include <stdlib.h>
21080int
21081main ()
21082{
21083
21084 FILE *f = fopen ("conftest.val", "w");
21085 if (! f)
21086 return 1;
21087 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21088 {
21089 long int i = longval ();
21090 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21091 return 1;
21092 fprintf (f, "%ld\n", i);
21093 }
21094 else
21095 {
21096 unsigned long int i = ulongval ();
21097 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21098 return 1;
21099 fprintf (f, "%lu\n", i);
21100 }
21101 return ferror (f) || fclose (f) != 0;
21102
21103 ;
21104 return 0;
21105}
21106_ACEOF
21107rm -f conftest$ac_exeext
21108if { (ac_try="$ac_link"
21109case "(($ac_try" in
21110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21111 *) ac_try_echo=$ac_try;;
21112esac
21113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21114 (eval "$ac_link") 2>&5
21115 ac_status=$?
21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21118 { (case "(($ac_try" in
21119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21120 *) ac_try_echo=$ac_try;;
21121esac
21122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21123 (eval "$ac_try") 2>&5
21124 ac_status=$?
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); }; }; then
21127 ac_cv_sizeof_long=`cat conftest.val`
21128else
21129 echo "$as_me: program exited with status $ac_status" >&5
21130echo "$as_me: failed program was:" >&5
21131sed 's/^/| /' conftest.$ac_ext >&5
21132
21133( exit $ac_status )
21134if test "$ac_cv_type_long" = yes; then
21135 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21136See \`config.log' for more details." >&5
21137echo "$as_me: error: cannot compute sizeof (long)
21138See \`config.log' for more details." >&2;}
21139 { (exit 77); exit 77; }; }
21140 else
21141 ac_cv_sizeof_long=0
21142 fi
21143fi
21144rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21145fi
21146rm -f conftest.val
21147fi
21148{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
21149echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
21150
21151
21152
21153cat >>confdefs.h <<_ACEOF
21154#define SIZEOF_LONG $ac_cv_sizeof_long
21155_ACEOF
21156
21157
21158
21159save_LIBS="${LIBS}"
21160{ echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
21161echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
21162if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
21163 echo $ECHO_N "(cached) $ECHO_C" >&6
21164else
21165 ac_check_lib_save_LIBS=$LIBS
21166LIBS="-lrt $LIBS"
21167cat >conftest.$ac_ext <<_ACEOF
21168/* confdefs.h. */
21169_ACEOF
21170cat confdefs.h >>conftest.$ac_ext
21171cat >>conftest.$ac_ext <<_ACEOF
21172/* end confdefs.h. */
21173
21174/* Override any GCC internal prototype to avoid an error.
21175 Use char because int might match the return type of a GCC
21176 builtin and then its argument prototype would still apply. */
21177#ifdef __cplusplus
21178extern "C"
21179#endif
21180char clock_gettime ();
21181int
21182main ()
21183{
21184return clock_gettime ();
21185 ;
21186 return 0;
21187}
21188_ACEOF
21189rm -f conftest.$ac_objext conftest$ac_exeext
21190if { (ac_try="$ac_link"
21191case "(($ac_try" in
21192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21193 *) ac_try_echo=$ac_try;;
21194esac
21195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21196 (eval "$ac_link") 2>conftest.er1
21197 ac_status=$?
21198 grep -v '^ *+' conftest.er1 >conftest.err
21199 rm -f conftest.er1
21200 cat conftest.err >&5
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); } && {
21203 test -z "$ac_c_werror_flag" ||
21204 test ! -s conftest.err
21205 } && test -s conftest$ac_exeext &&
21206 $as_test_x conftest$ac_exeext; then
21207 ac_cv_lib_rt_clock_gettime=yes
21208else
21209 echo "$as_me: failed program was:" >&5
21210sed 's/^/| /' conftest.$ac_ext >&5
21211
21212 ac_cv_lib_rt_clock_gettime=no
21213fi
21214
21215rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21216 conftest$ac_exeext conftest.$ac_ext
21217LIBS=$ac_check_lib_save_LIBS
21218fi
21219{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
21220echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
21221if test $ac_cv_lib_rt_clock_gettime = yes; then
21222 rt_libs=" -lrt"
21223fi
21224
21225LIBS="${LIBS}${rt_libs}"
21226DLL_LIBS="${DLL_LIBS}${rt_libs}"
21227
21228
21229for ac_func in clock_gettime nanosleep
21230do
21231as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21232{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21233echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21234if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21235 echo $ECHO_N "(cached) $ECHO_C" >&6
21236else
21237 cat >conftest.$ac_ext <<_ACEOF
21238/* confdefs.h. */
21239_ACEOF
21240cat confdefs.h >>conftest.$ac_ext
21241cat >>conftest.$ac_ext <<_ACEOF
21242/* end confdefs.h. */
21243/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21245#define $ac_func innocuous_$ac_func
21246
21247/* System header to define __stub macros and hopefully few prototypes,
21248 which can conflict with char $ac_func (); below.
21249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21250 <limits.h> exists even on freestanding compilers. */
21251
21252#ifdef __STDC__
21253# include <limits.h>
21254#else
21255# include <assert.h>
21256#endif
21257
21258#undef $ac_func
21259
21260/* Override any GCC internal prototype to avoid an error.
21261 Use char because int might match the return type of a GCC
21262 builtin and then its argument prototype would still apply. */
21263#ifdef __cplusplus
21264extern "C"
21265#endif
21266char $ac_func ();
21267/* The GNU C library defines this for functions which it implements
21268 to always fail with ENOSYS. Some functions are actually named
21269 something starting with __ and the normal name is an alias. */
21270#if defined __stub_$ac_func || defined __stub___$ac_func
21271choke me
21272#endif
21273
21274int
21275main ()
21276{
21277return $ac_func ();
21278 ;
21279 return 0;
21280}
21281_ACEOF
21282rm -f conftest.$ac_objext conftest$ac_exeext
21283if { (ac_try="$ac_link"
21284case "(($ac_try" in
21285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21286 *) ac_try_echo=$ac_try;;
21287esac
21288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21289 (eval "$ac_link") 2>conftest.er1
21290 ac_status=$?
21291 grep -v '^ *+' conftest.er1 >conftest.err
21292 rm -f conftest.er1
21293 cat conftest.err >&5
21294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295 (exit $ac_status); } && {
21296 test -z "$ac_c_werror_flag" ||
21297 test ! -s conftest.err
21298 } && test -s conftest$ac_exeext &&
21299 $as_test_x conftest$ac_exeext; then
21300 eval "$as_ac_var=yes"
21301else
21302 echo "$as_me: failed program was:" >&5
21303sed 's/^/| /' conftest.$ac_ext >&5
21304
21305 eval "$as_ac_var=no"
21306fi
21307
21308rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21309 conftest$ac_exeext conftest.$ac_ext
21310fi
21311ac_res=`eval echo '${'$as_ac_var'}'`
21312 { echo "$as_me:$LINENO: result: $ac_res" >&5
21313echo "${ECHO_T}$ac_res" >&6; }
21314if test `eval echo '${'$as_ac_var'}'` = yes; then
21315 cat >>confdefs.h <<_ACEOF
21316#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21317_ACEOF
21318
21319fi
21320done
21321
21322LIBS="${save_LIBS}"
21323
21324LT_CURRENT=2
21325LT_REVISION=0
21326LT_AGE=0
21327
21328
21329
21330
21331
21332
21333
21334
21335
21336
21337
21338
21339
21340
21341if ( echo "${host_os}" | grep ^darwin >> /dev/null ) &&
21342 [ "$enable_mac_universal" = "yes" ] &&
21343 [ "$enable_mac_debug" != "yes" ] ; then
21344 CFLAGS="-O2 -Wall -pedantic -pipe -fPIC -DNDEBUG"
21345else
21346 CFLAGS=${CFLAGS:-"-g -O2 -Wall -pedantic -pipe -fPIC"}
21347fi
21348
21349if [ $ac_cv_c_bigendian = "yes" ] ; then
21350 CFLAGS="$CFLAGS -DPA_BIG_ENDIAN"
21351else
21352 CFLAGS="$CFLAGS -DPA_LITTLE_ENDIAN"
21353fi
21354
21355case "${host_os}" in
21356 darwin* )
21357
21358 cat >>confdefs.h <<\_ACEOF
21359#define PA_USE_COREAUDIO 1
21360_ACEOF
21361
21362
21363 CFLAGS="$CFLAGS -Werror"
21364 LIBS="-framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon"
21365
21366 if test "x$enable_mac_universal" = "xyes" ; then
21367 mac_version_min="-mmacosx-version-min=10.3"
21368 if [ -d /Developer/SDKs/MacOSX10.5.sdk ] ; then
21369 mac_arches="-arch i386 -arch ppc -arch x86_64 -arch ppc64"
21370 mac_sysroot="-isysroot /Developer/SDKs/MacOSX10.5.sdk"
21371 else
21372 mac_arches="-arch i386 -arch ppc"
21373 mac_sysroot="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
21374 fi
21375 else
21376 mac_arches=""
21377 mac_sysroot=""
21378 mac_version=""
21379 fi
21380 SHARED_FLAGS="$LIBS -dynamiclib $mac_arches $mac_sysroot $mac_version_min"
21381 CFLAGS="-std=c99 $CFLAGS $mac_arches $mac_sysroot $mac_version_min"
21382 OTHER_OBJS="src/os/unix/pa_unix_hostapis.o src/os/unix/pa_unix_util.o src/hostapi/coreaudio/pa_mac_core.o src/hostapi/coreaudio/pa_mac_core_utilities.o src/hostapi/coreaudio/pa_mac_core_blocking.o src/common/pa_ringbuffer.o"
21383 PADLL="libportaudio.dylib"
21384 if [ $with_macapi = "asio" ] ; then
21385 if [ $with_asiodir ] ; then
21386 ASIODIR="$with_asiodir"
21387 else
21388 ASIODIR="/usr/local/asiosdk2"
21389 fi
21390 echo "ASIODIR: $ASIODIR"
21391
21392 OTHER_OBJS="src/hostapi/asio/iasiothiscallresolver.o $ASIODIR/host/asiodrivers.o $ASIODIR/common/asio.o $ASIODIR/host/mac/asioshlib.o"
21393 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/hostapi/asio -I$ASIODIR/host/mac -I$ASIODIR/common"
21394 CXXFLAGS="$CFLAGS"
21395 fi
21396 ;;
21397
21398 mingw* )
21399
21400 echo "WINAPI: $with_winapi"
21401 if [ $with_winapi = "directx" ] ; then
21402 if [ $with_dxdir ] ; then
21403 DXDIR="$with_dxdir"
21404 else
21405 DXDIR="/usr/local/dx7sdk"
21406 fi
21407 echo "DXDIR: $DXDIR"
21408 OTHER_OBJS="src/hostapi/dsound/pa_win_ds.o src/hostapi/dsound/pa_win_ds_dynlink.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/os/win/pa_win_waveformat.o"
21409 LIBS="-lwinmm -lm -ldsound -lole32"
21410 PADLL="portaudio.dll"
21411 THREAD_CFLAGS="-mthreads"
21412 SHARED_FLAGS="-shared"
21413 DLL_LIBS="${DLL_LIBS} -lwinmm -lm -L./dx7sdk/lib -ldsound -lole32"
21414 #VC98="\"/c/Program Files/Microsoft Visual Studio/VC98/Include\""
21415 #CFLAGS="$CFLAGS -I$VC98 -DPA_NO_WMME -DPA_NO_ASIO"
21416 CFLAGS="$CFLAGS -I\$(top_srcdir)/include -I$DXDIR/include -DPA_NO_WMME -DPA_NO_ASIO" -DPA_NO_WDMKS
21417 elif [ $with_winapi = "asio" ] ; then
21418 if [ $with_asiodir ] ; then
21419 ASIODIR="$with_asiodir"
21420 else
21421 ASIODIR="/usr/local/asiosdk2"
21422 fi
21423 echo "ASIODIR: $ASIODIR"
21424
21425
21426 OTHER_OBJS="src/hostapi/asio/pa_asio.o src/common/pa_ringbuffer.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/hostapi/asio/iasiothiscallresolver.o $ASIODIR/common/asio.o $ASIODIR/host/asiodrivers.o $ASIODIR/host/pc/asiolist.o"
21427 LIBS="-lwinmm -lm -lstdc++ -lole32 -luuid"
21428 PADLL="portaudio.dll"
21429 THREAD_CFLAGS="-mthreads"
21430 SHARED_FLAGS="-shared"
21431 DLL_LIBS="${DLL_LIBS} -lwinmm -lm -lstdc++ -lole32 -luuid"
21432 CFLAGS="$CFLAGS -ffast-math -fomit-frame-pointer -I\$(top_srcdir)/src/common -I\$(top_srcdir)/src/hostapi/asio -I$ASIODIR/host/pc -I$ASIODIR/common -I$ASIODIR/host -DPA_NO_WMME -DPA_NO_DS -DPA_NO_WDMKS -DWINDOWS"
21433 CXXFLAGS="$CFLAGS"
21434 elif [ $with_winapi = "wdmks" ] ; then
21435 if [ $with_dxdir ] ; then
21436 DXDIR="$with_dxdir"
21437 else
21438 DXDIR="/usr/local/dx7sdk"
21439 fi
21440 echo "DXDIR: $DXDIR"
21441 OTHER_OBJS="src/hostapi/wdmks/pa_win_wdmks.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o"
21442 LIBS="-lwinmm -lm -luuid -lsetupapi -lole32"
21443 PADLL="portaudio.dll"
21444 THREAD_CFLAGS="-mthreads"
21445 SHARED_FLAGS="-shared"
21446 DLL_LIBS="${DLL_LIBS} -lwinmm -lm -L./dx7sdk/lib -luuid -lsetupapi -lole32"
21447 #VC98="\"/c/Program Files/Microsoft Visual Studio/VC98/Include\""
21448 #CFLAGS="$CFLAGS -I$VC98 -DPA_NO_WMME -DPA_NO_ASIO"
21449 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/common -I$DXDIR/include -DPA_NO_WMME -DPA_NO_DS -DPA_NO_ASIO"
21450 else # WMME default
21451 OTHER_OBJS="src/hostapi/wmme/pa_win_wmme.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/os/win/pa_win_waveformat.o"
21452 LIBS="-lwinmm -lm -lstdc++ -lole32 -luuid"
21453 PADLL="portaudio.dll"
21454 THREAD_CFLAGS="-mthreads"
21455 SHARED_FLAGS="-shared"
21456 DLL_LIBS="${DLL_LIBS} -lwinmm"
21457 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/common -DPA_NO_DS -DPA_NO_ASIO -DPA_NO_WDMKS"
21458 fi
21459 ;;
21460
21461 cygwin* )
21462
21463 OTHER_OBJS="src/hostapi/wmme/pa_win_wmme.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/os/win/pa_win_waveformat.o"
21464 CFLAGS="$CFLAGS -DPA_NO_DS -DPA_NO_WDMKS -DPA_NO_ASIO -DPA_NO_WASAPI"
21465 LIBS="-lwinmm -lm"
21466 PADLL="portaudio.dll"
21467 THREAD_CFLAGS="-mthreads"
21468 SHARED_FLAGS="-shared"
21469 DLL_LIBS="${DLL_LIBS} -lwinmm"
21470 ;;
21471
21472 irix* )
21473
21474{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
21475echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
21476if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
21477 echo $ECHO_N "(cached) $ECHO_C" >&6
21478else
21479 ac_check_lib_save_LIBS=$LIBS
21480LIBS="-lpthread $LIBS"
21481cat >conftest.$ac_ext <<_ACEOF
21482/* confdefs.h. */
21483_ACEOF
21484cat confdefs.h >>conftest.$ac_ext
21485cat >>conftest.$ac_ext <<_ACEOF
21486/* end confdefs.h. */
21487
21488/* Override any GCC internal prototype to avoid an error.
21489 Use char because int might match the return type of a GCC
21490 builtin and then its argument prototype would still apply. */
21491#ifdef __cplusplus
21492extern "C"
21493#endif
21494char pthread_create ();
21495int
21496main ()
21497{
21498return pthread_create ();
21499 ;
21500 return 0;
21501}
21502_ACEOF
21503rm -f conftest.$ac_objext conftest$ac_exeext
21504if { (ac_try="$ac_link"
21505case "(($ac_try" in
21506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21507 *) ac_try_echo=$ac_try;;
21508esac
21509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21510 (eval "$ac_link") 2>conftest.er1
21511 ac_status=$?
21512 grep -v '^ *+' conftest.er1 >conftest.err
21513 rm -f conftest.er1
21514 cat conftest.err >&5
21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); } && {
21517 test -z "$ac_c_werror_flag" ||
21518 test ! -s conftest.err
21519 } && test -s conftest$ac_exeext &&
21520 $as_test_x conftest$ac_exeext; then
21521 ac_cv_lib_pthread_pthread_create=yes
21522else
21523 echo "$as_me: failed program was:" >&5
21524sed 's/^/| /' conftest.$ac_ext >&5
21525
21526 ac_cv_lib_pthread_pthread_create=no
21527fi
21528
21529rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21530 conftest$ac_exeext conftest.$ac_ext
21531LIBS=$ac_check_lib_save_LIBS
21532fi
21533{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
21534echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
21535if test $ac_cv_lib_pthread_pthread_create = yes; then
21536 cat >>confdefs.h <<_ACEOF
21537#define HAVE_LIBPTHREAD 1
21538_ACEOF
21539
21540 LIBS="-lpthread $LIBS"
21541
21542else
21543 { { echo "$as_me:$LINENO: error: IRIX posix thread library not found!" >&5
21544echo "$as_me: error: IRIX posix thread library not found!" >&2;}
21545 { (exit 1); exit 1; }; }
21546fi
21547
21548
21549{ echo "$as_me:$LINENO: checking for alOpenPort in -laudio" >&5
21550echo $ECHO_N "checking for alOpenPort in -laudio... $ECHO_C" >&6; }
21551if test "${ac_cv_lib_audio_alOpenPort+set}" = set; then
21552 echo $ECHO_N "(cached) $ECHO_C" >&6
21553else
21554 ac_check_lib_save_LIBS=$LIBS
21555LIBS="-laudio $LIBS"
21556cat >conftest.$ac_ext <<_ACEOF
21557/* confdefs.h. */
21558_ACEOF
21559cat confdefs.h >>conftest.$ac_ext
21560cat >>conftest.$ac_ext <<_ACEOF
21561/* end confdefs.h. */
21562
21563/* Override any GCC internal prototype to avoid an error.
21564 Use char because int might match the return type of a GCC
21565 builtin and then its argument prototype would still apply. */
21566#ifdef __cplusplus
21567extern "C"
21568#endif
21569char alOpenPort ();
21570int
21571main ()
21572{
21573return alOpenPort ();
21574 ;
21575 return 0;
21576}
21577_ACEOF
21578rm -f conftest.$ac_objext conftest$ac_exeext
21579if { (ac_try="$ac_link"
21580case "(($ac_try" in
21581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21582 *) ac_try_echo=$ac_try;;
21583esac
21584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21585 (eval "$ac_link") 2>conftest.er1
21586 ac_status=$?
21587 grep -v '^ *+' conftest.er1 >conftest.err
21588 rm -f conftest.er1
21589 cat conftest.err >&5
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); } && {
21592 test -z "$ac_c_werror_flag" ||
21593 test ! -s conftest.err
21594 } && test -s conftest$ac_exeext &&
21595 $as_test_x conftest$ac_exeext; then
21596 ac_cv_lib_audio_alOpenPort=yes
21597else
21598 echo "$as_me: failed program was:" >&5
21599sed 's/^/| /' conftest.$ac_ext >&5
21600
21601 ac_cv_lib_audio_alOpenPort=no
21602fi
21603
21604rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21605 conftest$ac_exeext conftest.$ac_ext
21606LIBS=$ac_check_lib_save_LIBS
21607fi
21608{ echo "$as_me:$LINENO: result: $ac_cv_lib_audio_alOpenPort" >&5
21609echo "${ECHO_T}$ac_cv_lib_audio_alOpenPort" >&6; }
21610if test $ac_cv_lib_audio_alOpenPort = yes; then
21611 cat >>confdefs.h <<_ACEOF
21612#define HAVE_LIBAUDIO 1
21613_ACEOF
21614
21615 LIBS="-laudio $LIBS"
21616
21617else
21618 { { echo "$as_me:$LINENO: error: IRIX audio library not found!" >&5
21619echo "$as_me: error: IRIX audio library not found!" >&2;}
21620 { (exit 1); exit 1; }; }
21621fi
21622
21623
21624{ echo "$as_me:$LINENO: checking for dmGetUST in -ldmedia" >&5
21625echo $ECHO_N "checking for dmGetUST in -ldmedia... $ECHO_C" >&6; }
21626if test "${ac_cv_lib_dmedia_dmGetUST+set}" = set; then
21627 echo $ECHO_N "(cached) $ECHO_C" >&6
21628else
21629 ac_check_lib_save_LIBS=$LIBS
21630LIBS="-ldmedia $LIBS"
21631cat >conftest.$ac_ext <<_ACEOF
21632/* confdefs.h. */
21633_ACEOF
21634cat confdefs.h >>conftest.$ac_ext
21635cat >>conftest.$ac_ext <<_ACEOF
21636/* end confdefs.h. */
21637
21638/* Override any GCC internal prototype to avoid an error.
21639 Use char because int might match the return type of a GCC
21640 builtin and then its argument prototype would still apply. */
21641#ifdef __cplusplus
21642extern "C"
21643#endif
21644char dmGetUST ();
21645int
21646main ()
21647{
21648return dmGetUST ();
21649 ;
21650 return 0;
21651}
21652_ACEOF
21653rm -f conftest.$ac_objext conftest$ac_exeext
21654if { (ac_try="$ac_link"
21655case "(($ac_try" in
21656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21657 *) ac_try_echo=$ac_try;;
21658esac
21659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21660 (eval "$ac_link") 2>conftest.er1
21661 ac_status=$?
21662 grep -v '^ *+' conftest.er1 >conftest.err
21663 rm -f conftest.er1
21664 cat conftest.err >&5
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); } && {
21667 test -z "$ac_c_werror_flag" ||
21668 test ! -s conftest.err
21669 } && test -s conftest$ac_exeext &&
21670 $as_test_x conftest$ac_exeext; then
21671 ac_cv_lib_dmedia_dmGetUST=yes
21672else
21673 echo "$as_me: failed program was:" >&5
21674sed 's/^/| /' conftest.$ac_ext >&5
21675
21676 ac_cv_lib_dmedia_dmGetUST=no
21677fi
21678
21679rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21680 conftest$ac_exeext conftest.$ac_ext
21681LIBS=$ac_check_lib_save_LIBS
21682fi
21683{ echo "$as_me:$LINENO: result: $ac_cv_lib_dmedia_dmGetUST" >&5
21684echo "${ECHO_T}$ac_cv_lib_dmedia_dmGetUST" >&6; }
21685if test $ac_cv_lib_dmedia_dmGetUST = yes; then
21686 cat >>confdefs.h <<_ACEOF
21687#define HAVE_LIBDMEDIA 1
21688_ACEOF
21689
21690 LIBS="-ldmedia $LIBS"
21691
21692else
21693 { { echo "$as_me:$LINENO: error: IRIX digital media library not found!" >&5
21694echo "$as_me: error: IRIX digital media library not found!" >&2;}
21695 { (exit 1); exit 1; }; }
21696fi
21697
21698
21699 cat >>confdefs.h <<\_ACEOF
21700#define PA_USE_SGI 1
21701_ACEOF
21702
21703
21704 THREAD_CFLAGS="-D_REENTRANT"
21705
21706 OTHER_OBJS="pa_sgi/pa_sgi.o src/os/unix/pa_unix_hostapis.o src/os/unix/pa_unix_util.o"
21707
21708 LIBS="-lm -ldmedia -laudio -lpthread"
21709 PADLL="libportaudio.so"
21710 SHARED_FLAGS=""
21711 ;;
21712
21713 *)
21714
21715 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
21716echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
21717if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
21718 echo $ECHO_N "(cached) $ECHO_C" >&6
21719else
21720 ac_check_lib_save_LIBS=$LIBS
21721LIBS="-lpthread $LIBS"
21722cat >conftest.$ac_ext <<_ACEOF
21723/* confdefs.h. */
21724_ACEOF
21725cat confdefs.h >>conftest.$ac_ext
21726cat >>conftest.$ac_ext <<_ACEOF
21727/* end confdefs.h. */
21728
21729/* Override any GCC internal prototype to avoid an error.
21730 Use char because int might match the return type of a GCC
21731 builtin and then its argument prototype would still apply. */
21732#ifdef __cplusplus
21733extern "C"
21734#endif
21735char pthread_create ();
21736int
21737main ()
21738{
21739return pthread_create ();
21740 ;
21741 return 0;
21742}
21743_ACEOF
21744rm -f conftest.$ac_objext conftest$ac_exeext
21745if { (ac_try="$ac_link"
21746case "(($ac_try" in
21747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21748 *) ac_try_echo=$ac_try;;
21749esac
21750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21751 (eval "$ac_link") 2>conftest.er1
21752 ac_status=$?
21753 grep -v '^ *+' conftest.er1 >conftest.err
21754 rm -f conftest.er1
21755 cat conftest.err >&5
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757 (exit $ac_status); } && {
21758 test -z "$ac_c_werror_flag" ||
21759 test ! -s conftest.err
21760 } && test -s conftest$ac_exeext &&
21761 $as_test_x conftest$ac_exeext; then
21762 ac_cv_lib_pthread_pthread_create=yes
21763else
21764 echo "$as_me: failed program was:" >&5
21765sed 's/^/| /' conftest.$ac_ext >&5
21766
21767 ac_cv_lib_pthread_pthread_create=no
21768fi
21769
21770rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21771 conftest$ac_exeext conftest.$ac_ext
21772LIBS=$ac_check_lib_save_LIBS
21773fi
21774{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
21775echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
21776if test $ac_cv_lib_pthread_pthread_create = yes; then
21777 have_pthread="yes"
21778else
21779 { { echo "$as_me:$LINENO: error: libpthread not found!" >&5
21780echo "$as_me: error: libpthread not found!" >&2;}
21781 { (exit 1); exit 1; }; }
21782fi
21783
21784
21785 if [ $have_alsa = "yes" ] && [ $with_alsa != "no" ] ; then
21786 DLL_LIBS="$DLL_LIBS -lasound"
21787 LIBS="$LIBS -lasound"
21788 OTHER_OBJS="$OTHER_OBJS src/hostapi/alsa/pa_linux_alsa.o"
21789 cat >>confdefs.h <<\_ACEOF
21790#define PA_USE_ALSA 1
21791_ACEOF
21792
21793 fi
21794
21795 if [ $have_jack = "yes" ] && [ $with_jack != "no" ] ; then
21796 DLL_LIBS="$DLL_LIBS $JACK_LIBS"
21797 CFLAGS="$CFLAGS $JACK_CFLAGS"
21798 OTHER_OBJS="$OTHER_OBJS src/hostapi/jack/pa_jack.o src/common/pa_ringbuffer.o"
21799 cat >>confdefs.h <<\_ACEOF
21800#define PA_USE_JACK 1
21801_ACEOF
21802
21803 fi
21804
21805 if [ $with_oss != "no" ] ; then
21806 OTHER_OBJS="$OTHER_OBJS src/hostapi/oss/pa_unix_oss.o"
21807 if [ $have_libossaudio = "yes" ] ; then
21808 DLL_LIBS="$DLL_LIBS -lossaudio"
21809 LIBS="$LIBS -lossaudio"
21810 fi
21811 cat >>confdefs.h <<\_ACEOF
21812#define PA_USE_OSS 1
21813_ACEOF
21814
21815 fi
21816
21817 if [ $have_asihpi = "yes" ] && [ $with_asihpi != "no" ] ; then
21818 LIBS="$LIBS -lhpi"
21819 DLL_LIBS="$DLL_LIBS -lhpi"
21820 OTHER_OBJS="$OTHER_OBJS src/hostapi/asihpi/pa_linux_asihpi.o"
21821 cat >>confdefs.h <<\_ACEOF
21822#define PA_USE_ASIHPI 1
21823_ACEOF
21824
21825 fi
21826
21827 DLL_LIBS="$DLL_LIBS -lm -lpthread"
21828 LIBS="$LIBS -lm -lpthread"
21829 PADLL="libportaudio.so"
21830
21831 ## support sun cc compiler flags
21832 case "${host_os}" in
21833 solaris*)
21834 SHARED_FLAGS="-G"
21835 THREAD_CFLAGS="-mt"
21836 ;;
21837 *)
21838 SHARED_FLAGS="-shared -fPIC"
21839 THREAD_CFLAGS="-pthread"
21840 ;;
21841 esac
21842
21843 OTHER_OBJS="$OTHER_OBJS src/os/unix/pa_unix_hostapis.o src/os/unix/pa_unix_util.o"
21844esac
21845CFLAGS="$CFLAGS $THREAD_CFLAGS"
21846
21847if test "$enable_cxx" = "yes"; then
21848 subdirs="$subdirs bindings/cpp"
21849
21850 ENABLE_CXX_TRUE=""
21851 ENABLE_CXX_FALSE="#"
21852else
21853 ENABLE_CXX_TRUE="#"
21854 ENABLE_CXX_FALSE=""
21855fi
21856
21857
21858
21859ac_config_files="$ac_config_files Makefile portaudio-2.0.pc"
21860
21861cat >confcache <<\_ACEOF
21862# This file is a shell script that caches the results of configure
21863# tests run on this system so they can be shared between configure
21864# scripts and configure runs, see configure's option --config-cache.
21865# It is not useful on other systems. If it contains results you don't
21866# want to keep, you may remove or edit it.
21867#
21868# config.status only pays attention to the cache file if you give it
21869# the --recheck option to rerun configure.
21870#
21871# `ac_cv_env_foo' variables (set or unset) will be overridden when
21872# loading this file, other *unset* `ac_cv_foo' will be assigned the
21873# following values.
21874
21875_ACEOF
21876
21877# The following way of writing the cache mishandles newlines in values,
21878# but we know of no workaround that is simple, portable, and efficient.
21879# So, we kill variables containing newlines.
21880# Ultrix sh set writes to stderr and can't be redirected directly,
21881# and sets the high bit in the cache file unless we assign to the vars.
21882(
21883 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21884 eval ac_val=\$$ac_var
21885 case $ac_val in #(
21886 *${as_nl}*)
21887 case $ac_var in #(
21888 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21889echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21890 esac
21891 case $ac_var in #(
21892 _ | IFS | as_nl) ;; #(
21893 *) $as_unset $ac_var ;;
21894 esac ;;
21895 esac
21896 done
21897
21898 (set) 2>&1 |
21899 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21900 *${as_nl}ac_space=\ *)
21901 # `set' does not quote correctly, so add quotes (double-quote
21902 # substitution turns \\\\ into \\, and sed turns \\ into \).
21903 sed -n \
21904 "s/'/'\\\\''/g;
21905 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21906 ;; #(
21907 *)
21908 # `set' quotes correctly as required by POSIX, so do not add quotes.
21909 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21910 ;;
21911 esac |
21912 sort
21913) |
21914 sed '
21915 /^ac_cv_env_/b end
21916 t clear
21917 :clear
21918 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21919 t end
21920 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21921 :end' >>confcache
21922if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21923 if test -w "$cache_file"; then
21924 test "x$cache_file" != "x/dev/null" &&
21925 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21926echo "$as_me: updating cache $cache_file" >&6;}
21927 cat confcache >$cache_file
21928 else
21929 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21930echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21931 fi
21932fi
21933rm -f confcache
21934
21935test "x$prefix" = xNONE && prefix=$ac_default_prefix
21936# Let make expand exec_prefix.
21937test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21938
21939# Transform confdefs.h into DEFS.
21940# Protect against shell expansion while executing Makefile rules.
21941# Protect against Makefile macro expansion.
21942#
21943# If the first sed substitution is executed (which looks for macros that
21944# take arguments), then branch to the quote section. Otherwise,
21945# look for a macro that doesn't take arguments.
21946ac_script='
21947t clear
21948:clear
21949s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
21950t quote
21951s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
21952t quote
21953b any
21954:quote
21955s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21956s/\[/\\&/g
21957s/\]/\\&/g
21958s/\$/$$/g
21959H
21960:any
21961${
21962 g
21963 s/^\n//
21964 s/\n/ /g
21965 p
21966}
21967'
21968DEFS=`sed -n "$ac_script" confdefs.h`
21969
21970
21971ac_libobjs=
21972ac_ltlibobjs=
21973for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21974 # 1. Remove the extension, and $U if already installed.
21975 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21976 ac_i=`echo "$ac_i" | sed "$ac_script"`
21977 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21978 # will be set to the directory where LIBOBJS objects are built.
21979 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21980 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21981done
21982LIBOBJS=$ac_libobjs
21983
21984LTLIBOBJS=$ac_ltlibobjs
21985
21986
21987
21988: ${CONFIG_STATUS=./config.status}
21989ac_clean_files_save=$ac_clean_files
21990ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21991{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21992echo "$as_me: creating $CONFIG_STATUS" >&6;}
21993cat >$CONFIG_STATUS <<_ACEOF
21994#! $SHELL
21995# Generated by $as_me.
21996# Run this file to recreate the current configuration.
21997# Compiler output produced by configure, useful for debugging
21998# configure, is in config.log if it exists.
21999
22000debug=false
22001ac_cs_recheck=false
22002ac_cs_silent=false
22003SHELL=\${CONFIG_SHELL-$SHELL}
22004_ACEOF
22005
22006cat >>$CONFIG_STATUS <<\_ACEOF
22007## --------------------- ##
22008## M4sh Initialization. ##
22009## --------------------- ##
22010
22011# Be more Bourne compatible
22012DUALCASE=1; export DUALCASE # for MKS sh
22013if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22014 emulate sh
22015 NULLCMD=:
22016 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22017 # is contrary to our usage. Disable this feature.
22018 alias -g '${1+"$@"}'='"$@"'
22019 setopt NO_GLOB_SUBST
22020else
22021 case `(set -o) 2>/dev/null` in
22022 *posix*) set -o posix ;;
22023esac
22024
22025fi
22026
22027
22028
22029
22030# PATH needs CR
22031# Avoid depending upon Character Ranges.
22032as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22033as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22034as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22035as_cr_digits='0123456789'
22036as_cr_alnum=$as_cr_Letters$as_cr_digits
22037
22038# The user is always right.
22039if test "${PATH_SEPARATOR+set}" != set; then
22040 echo "#! /bin/sh" >conf$$.sh
22041 echo "exit 0" >>conf$$.sh
22042 chmod +x conf$$.sh
22043 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22044 PATH_SEPARATOR=';'
22045 else
22046 PATH_SEPARATOR=:
22047 fi
22048 rm -f conf$$.sh
22049fi
22050
22051# Support unset when possible.
22052if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22053 as_unset=unset
22054else
22055 as_unset=false
22056fi
22057
22058
22059# IFS
22060# We need space, tab and new line, in precisely that order. Quoting is
22061# there to prevent editors from complaining about space-tab.
22062# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22063# splitting by setting IFS to empty value.)
22064as_nl='
22065'
22066IFS=" "" $as_nl"
22067
22068# Find who we are. Look in the path if we contain no directory separator.
22069case $0 in
22070 *[\\/]* ) as_myself=$0 ;;
22071 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22072for as_dir in $PATH
22073do
22074 IFS=$as_save_IFS
22075 test -z "$as_dir" && as_dir=.
22076 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22077done
22078IFS=$as_save_IFS
22079
22080 ;;
22081esac
22082# We did not find ourselves, most probably we were run as `sh COMMAND'
22083# in which case we are not to be found in the path.
22084if test "x$as_myself" = x; then
22085 as_myself=$0
22086fi
22087if test ! -f "$as_myself"; then
22088 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22089 { (exit 1); exit 1; }
22090fi
22091
22092# Work around bugs in pre-3.0 UWIN ksh.
22093for as_var in ENV MAIL MAILPATH
22094do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22095done
22096PS1='$ '
22097PS2='> '
22098PS4='+ '
22099
22100# NLS nuisances.
22101for as_var in \
22102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22104 LC_TELEPHONE LC_TIME
22105do
22106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22107 eval $as_var=C; export $as_var
22108 else
22109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22110 fi
22111done
22112
22113# Required to use basename.
22114if expr a : '\(a\)' >/dev/null 2>&1 &&
22115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22116 as_expr=expr
22117else
22118 as_expr=false
22119fi
22120
22121if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22122 as_basename=basename
22123else
22124 as_basename=false
22125fi
22126
22127
22128# Name of the executable.
22129as_me=`$as_basename -- "$0" ||
22130$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22131 X"$0" : 'X\(//\)$' \| \
22132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22133echo X/"$0" |
22134 sed '/^.*\/\([^/][^/]*\)\/*$/{
22135 s//\1/
22136 q
22137 }
22138 /^X\/\(\/\/\)$/{
22139 s//\1/
22140 q
22141 }
22142 /^X\/\(\/\).*/{
22143 s//\1/
22144 q
22145 }
22146 s/.*/./; q'`
22147
22148# CDPATH.
22149$as_unset CDPATH
22150
22151
22152
22153 as_lineno_1=$LINENO
22154 as_lineno_2=$LINENO
22155 test "x$as_lineno_1" != "x$as_lineno_2" &&
22156 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22157
22158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22159 # uniformly replaced by the line number. The first 'sed' inserts a
22160 # line-number line after each line using $LINENO; the second 'sed'
22161 # does the real work. The second script uses 'N' to pair each
22162 # line-number line with the line containing $LINENO, and appends
22163 # trailing '-' during substitution so that $LINENO is not a special
22164 # case at line end.
22165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22166 # scripts with optimization help from Paolo Bonzini. Blame Lee
22167 # E. McMahon (1931-1989) for sed's syntax. :-)
22168 sed -n '
22169 p
22170 /[$]LINENO/=
22171 ' <$as_myself |
22172 sed '
22173 s/[$]LINENO.*/&-/
22174 t lineno
22175 b
22176 :lineno
22177 N
22178 :loop
22179 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22180 t loop
22181 s/-\n.*//
22182 ' >$as_me.lineno &&
22183 chmod +x "$as_me.lineno" ||
22184 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22185 { (exit 1); exit 1; }; }
22186
22187 # Don't try to exec as it changes $[0], causing all sort of problems
22188 # (the dirname of $[0] is not the place where we might find the
22189 # original and so on. Autoconf is especially sensitive to this).
22190 . "./$as_me.lineno"
22191 # Exit status is that of the last command.
22192 exit
22193}
22194
22195
22196if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22197 as_dirname=dirname
22198else
22199 as_dirname=false
22200fi
22201
22202ECHO_C= ECHO_N= ECHO_T=
22203case `echo -n x` in
22204-n*)
22205 case `echo 'x\c'` in
22206 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22207 *) ECHO_C='\c';;
22208 esac;;
22209*)
22210 ECHO_N='-n';;
22211esac
22212
22213if expr a : '\(a\)' >/dev/null 2>&1 &&
22214 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22215 as_expr=expr
22216else
22217 as_expr=false
22218fi
22219
22220rm -f conf$$ conf$$.exe conf$$.file
22221if test -d conf$$.dir; then
22222 rm -f conf$$.dir/conf$$.file
22223else
22224 rm -f conf$$.dir
22225 mkdir conf$$.dir
22226fi
22227echo >conf$$.file
22228if ln -s conf$$.file conf$$ 2>/dev/null; then
22229 as_ln_s='ln -s'
22230 # ... but there are two gotchas:
22231 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22232 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22233 # In both cases, we have to default to `cp -p'.
22234 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22235 as_ln_s='cp -p'
22236elif ln conf$$.file conf$$ 2>/dev/null; then
22237 as_ln_s=ln
22238else
22239 as_ln_s='cp -p'
22240fi
22241rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22242rmdir conf$$.dir 2>/dev/null
22243
22244if mkdir -p . 2>/dev/null; then
22245 as_mkdir_p=:
22246else
22247 test -d ./-p && rmdir ./-p
22248 as_mkdir_p=false
22249fi
22250
22251if test -x / >/dev/null 2>&1; then
22252 as_test_x='test -x'
22253else
22254 if ls -dL / >/dev/null 2>&1; then
22255 as_ls_L_option=L
22256 else
22257 as_ls_L_option=
22258 fi
22259 as_test_x='
22260 eval sh -c '\''
22261 if test -d "$1"; then
22262 test -d "$1/.";
22263 else
22264 case $1 in
22265 -*)set "./$1";;
22266 esac;
22267 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22268 ???[sx]*):;;*)false;;esac;fi
22269 '\'' sh
22270 '
22271fi
22272as_executable_p=$as_test_x
22273
22274# Sed expression to map a string onto a valid CPP name.
22275as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22276
22277# Sed expression to map a string onto a valid variable name.
22278as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22279
22280
22281exec 6>&1
22282
22283# Save the log message, to keep $[0] and so on meaningful, and to
22284# report actual input values of CONFIG_FILES etc. instead of their
22285# values after options handling.
22286ac_log="
22287This file was extended by $as_me, which was
22288generated by GNU Autoconf 2.61. Invocation command line was
22289
22290 CONFIG_FILES = $CONFIG_FILES
22291 CONFIG_HEADERS = $CONFIG_HEADERS
22292 CONFIG_LINKS = $CONFIG_LINKS
22293 CONFIG_COMMANDS = $CONFIG_COMMANDS
22294 $ $0 $@
22295
22296on `(hostname || uname -n) 2>/dev/null | sed 1q`
22297"
22298
22299_ACEOF
22300
22301cat >>$CONFIG_STATUS <<_ACEOF
22302# Files that config.status was made for.
22303config_files="$ac_config_files"
22304
22305_ACEOF
22306
22307cat >>$CONFIG_STATUS <<\_ACEOF
22308ac_cs_usage="\
22309\`$as_me' instantiates files from templates according to the
22310current configuration.
22311
22312Usage: $0 [OPTIONS] [FILE]...
22313
22314 -h, --help print this help, then exit
22315 -V, --version print version number and configuration settings, then exit
22316 -q, --quiet do not print progress messages
22317 -d, --debug don't remove temporary files
22318 --recheck update $as_me by reconfiguring in the same conditions
22319 --file=FILE[:TEMPLATE]
22320 instantiate the configuration file FILE
22321
22322Configuration files:
22323$config_files
22324
22325Report bugs to <bug-autoconf@gnu.org>."
22326
22327_ACEOF
22328cat >>$CONFIG_STATUS <<_ACEOF
22329ac_cs_version="\\
22330config.status
22331configured by $0, generated by GNU Autoconf 2.61,
22332 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22333
22334Copyright (C) 2006 Free Software Foundation, Inc.
22335This config.status script is free software; the Free Software Foundation
22336gives unlimited permission to copy, distribute and modify it."
22337
22338ac_pwd='$ac_pwd'
22339srcdir='$srcdir'
22340INSTALL='$INSTALL'
22341_ACEOF
22342
22343cat >>$CONFIG_STATUS <<\_ACEOF
22344# If no file are specified by the user, then we need to provide default
22345# value. By we need to know if files were specified by the user.
22346ac_need_defaults=:
22347while test $# != 0
22348do
22349 case $1 in
22350 --*=*)
22351 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22352 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22353 ac_shift=:
22354 ;;
22355 *)
22356 ac_option=$1
22357 ac_optarg=$2
22358 ac_shift=shift
22359 ;;
22360 esac
22361
22362 case $ac_option in
22363 # Handling of the options.
22364 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22365 ac_cs_recheck=: ;;
22366 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22367 echo "$ac_cs_version"; exit ;;
22368 --debug | --debu | --deb | --de | --d | -d )
22369 debug=: ;;
22370 --file | --fil | --fi | --f )
22371 $ac_shift
22372 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22373 ac_need_defaults=false;;
22374 --he | --h | --help | --hel | -h )
22375 echo "$ac_cs_usage"; exit ;;
22376 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22377 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22378 ac_cs_silent=: ;;
22379
22380 # This is an error.
22381 -*) { echo "$as_me: error: unrecognized option: $1
22382Try \`$0 --help' for more information." >&2
22383 { (exit 1); exit 1; }; } ;;
22384
22385 *) ac_config_targets="$ac_config_targets $1"
22386 ac_need_defaults=false ;;
22387
22388 esac
22389 shift
22390done
22391
22392ac_configure_extra_args=
22393
22394if $ac_cs_silent; then
22395 exec 6>/dev/null
22396 ac_configure_extra_args="$ac_configure_extra_args --silent"
22397fi
22398
22399_ACEOF
22400cat >>$CONFIG_STATUS <<_ACEOF
22401if \$ac_cs_recheck; then
22402 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22403 CONFIG_SHELL=$SHELL
22404 export CONFIG_SHELL
22405 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22406fi
22407
22408_ACEOF
22409cat >>$CONFIG_STATUS <<\_ACEOF
22410exec 5>>config.log
22411{
22412 echo
22413 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22414## Running $as_me. ##
22415_ASBOX
22416 echo "$ac_log"
22417} >&5
22418
22419_ACEOF
22420cat >>$CONFIG_STATUS <<_ACEOF
22421_ACEOF
22422
22423cat >>$CONFIG_STATUS <<\_ACEOF
22424
22425# Handling of arguments.
22426for ac_config_target in $ac_config_targets
22427do
22428 case $ac_config_target in
22429 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22430 "portaudio-2.0.pc") CONFIG_FILES="$CONFIG_FILES portaudio-2.0.pc" ;;
22431
22432 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22433echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22434 { (exit 1); exit 1; }; };;
22435 esac
22436done
22437
22438
22439# If the user did not use the arguments to specify the items to instantiate,
22440# then the envvar interface is used. Set only those that are not.
22441# We use the long form for the default assignment because of an extremely
22442# bizarre bug on SunOS 4.1.3.
22443if $ac_need_defaults; then
22444 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22445fi
22446
22447# Have a temporary directory for convenience. Make it in the build tree
22448# simply because there is no reason against having it here, and in addition,
22449# creating and moving files from /tmp can sometimes cause problems.
22450# Hook for its removal unless debugging.
22451# Note that there is a small window in which the directory will not be cleaned:
22452# after its creation but before its name has been assigned to `$tmp'.
22453$debug ||
22454{
22455 tmp=
22456 trap 'exit_status=$?
22457 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22458' 0
22459 trap '{ (exit 1); exit 1; }' 1 2 13 15
22460}
22461# Create a (secure) tmp directory for tmp files.
22462
22463{
22464 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22465 test -n "$tmp" && test -d "$tmp"
22466} ||
22467{
22468 tmp=./conf$$-$RANDOM
22469 (umask 077 && mkdir "$tmp")
22470} ||
22471{
22472 echo "$me: cannot create a temporary directory in ." >&2
22473 { (exit 1); exit 1; }
22474}
22475
22476#
22477# Set up the sed scripts for CONFIG_FILES section.
22478#
22479
22480# No need to generate the scripts if there are no CONFIG_FILES.
22481# This happens for instance when ./config.status config.h
22482if test -n "$CONFIG_FILES"; then
22483
22484_ACEOF
22485
22486
22487
22488ac_delim='%!_!# '
22489for ac_last_try in false false false false false :; do
22490 cat >conf$$subs.sed <<_ACEOF
22491SHELL!$SHELL$ac_delim
22492PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22493PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22494PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22495PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22496PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22497PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22498exec_prefix!$exec_prefix$ac_delim
22499prefix!$prefix$ac_delim
22500program_transform_name!$program_transform_name$ac_delim
22501bindir!$bindir$ac_delim
22502sbindir!$sbindir$ac_delim
22503libexecdir!$libexecdir$ac_delim
22504datarootdir!$datarootdir$ac_delim
22505datadir!$datadir$ac_delim
22506sysconfdir!$sysconfdir$ac_delim
22507sharedstatedir!$sharedstatedir$ac_delim
22508localstatedir!$localstatedir$ac_delim
22509includedir!$includedir$ac_delim
22510oldincludedir!$oldincludedir$ac_delim
22511docdir!$docdir$ac_delim
22512infodir!$infodir$ac_delim
22513htmldir!$htmldir$ac_delim
22514dvidir!$dvidir$ac_delim
22515pdfdir!$pdfdir$ac_delim
22516psdir!$psdir$ac_delim
22517libdir!$libdir$ac_delim
22518localedir!$localedir$ac_delim
22519mandir!$mandir$ac_delim
22520DEFS!$DEFS$ac_delim
22521ECHO_C!$ECHO_C$ac_delim
22522ECHO_N!$ECHO_N$ac_delim
22523ECHO_T!$ECHO_T$ac_delim
22524LIBS!$LIBS$ac_delim
22525build_alias!$build_alias$ac_delim
22526host_alias!$host_alias$ac_delim
22527target_alias!$target_alias$ac_delim
22528CC!$CC$ac_delim
22529CFLAGS!$CFLAGS$ac_delim
22530LDFLAGS!$LDFLAGS$ac_delim
22531CPPFLAGS!$CPPFLAGS$ac_delim
22532ac_ct_CC!$ac_ct_CC$ac_delim
22533EXEEXT!$EXEEXT$ac_delim
22534OBJEXT!$OBJEXT$ac_delim
22535build!$build$ac_delim
22536build_cpu!$build_cpu$ac_delim
22537build_vendor!$build_vendor$ac_delim
22538build_os!$build_os$ac_delim
22539host!$host$ac_delim
22540host_cpu!$host_cpu$ac_delim
22541host_vendor!$host_vendor$ac_delim
22542host_os!$host_os$ac_delim
22543GREP!$GREP$ac_delim
22544EGREP!$EGREP$ac_delim
22545LN_S!$LN_S$ac_delim
22546ECHO!$ECHO$ac_delim
22547AR!$AR$ac_delim
22548RANLIB!$RANLIB$ac_delim
22549STRIP!$STRIP$ac_delim
22550DLLTOOL!$DLLTOOL$ac_delim
22551AS!$AS$ac_delim
22552OBJDUMP!$OBJDUMP$ac_delim
22553CPP!$CPP$ac_delim
22554CXX!$CXX$ac_delim
22555CXXFLAGS!$CXXFLAGS$ac_delim
22556ac_ct_CXX!$ac_ct_CXX$ac_delim
22557CXXCPP!$CXXCPP$ac_delim
22558F77!$F77$ac_delim
22559FFLAGS!$FFLAGS$ac_delim
22560ac_ct_F77!$ac_ct_F77$ac_delim
22561LIBTOOL!$LIBTOOL$ac_delim
22562INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22563INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22564INSTALL_DATA!$INSTALL_DATA$ac_delim
22565PKG_CONFIG!$PKG_CONFIG$ac_delim
22566JACK_CFLAGS!$JACK_CFLAGS$ac_delim
22567JACK_LIBS!$JACK_LIBS$ac_delim
22568LT_CURRENT!$LT_CURRENT$ac_delim
22569LT_REVISION!$LT_REVISION$ac_delim
22570LT_AGE!$LT_AGE$ac_delim
22571OTHER_OBJS!$OTHER_OBJS$ac_delim
22572PADLL!$PADLL$ac_delim
22573SHARED_FLAGS!$SHARED_FLAGS$ac_delim
22574THREAD_CFLAGS!$THREAD_CFLAGS$ac_delim
22575DLL_LIBS!$DLL_LIBS$ac_delim
22576NASM!$NASM$ac_delim
22577NASMOPT!$NASMOPT$ac_delim
22578subdirs!$subdirs$ac_delim
22579ENABLE_CXX_TRUE!$ENABLE_CXX_TRUE$ac_delim
22580ENABLE_CXX_FALSE!$ENABLE_CXX_FALSE$ac_delim
22581LIBOBJS!$LIBOBJS$ac_delim
22582LTLIBOBJS!$LTLIBOBJS$ac_delim
22583_ACEOF
22584
22585 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
22586 break
22587 elif $ac_last_try; then
22588 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22589echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22590 { (exit 1); exit 1; }; }
22591 else
22592 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22593 fi
22594done
22595
22596ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22597if test -n "$ac_eof"; then
22598 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22599 ac_eof=`expr $ac_eof + 1`
22600fi
22601
22602cat >>$CONFIG_STATUS <<_ACEOF
22603cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22604/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22605_ACEOF
22606sed '
22607s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22608s/^/s,@/; s/!/@,|#_!!_#|/
22609:n
22610t n
22611s/'"$ac_delim"'$/,g/; t
22612s/$/\\/; p
22613N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22614' >>$CONFIG_STATUS <conf$$subs.sed
22615rm -f conf$$subs.sed
22616cat >>$CONFIG_STATUS <<_ACEOF
22617:end
22618s/|#_!!_#|//g
22619CEOF$ac_eof
22620_ACEOF
22621
22622
22623# VPATH may cause trouble with some makes, so we remove $(srcdir),
22624# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22625# trailing colons and then remove the whole line if VPATH becomes empty
22626# (actually we leave an empty line to preserve line numbers).
22627if test "x$srcdir" = x.; then
22628 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22629s/:*\$(srcdir):*/:/
22630s/:*\${srcdir}:*/:/
22631s/:*@srcdir@:*/:/
22632s/^\([^=]*=[ ]*\):*/\1/
22633s/:*$//
22634s/^[^=]*=[ ]*$//
22635}'
22636fi
22637
22638cat >>$CONFIG_STATUS <<\_ACEOF
22639fi # test -n "$CONFIG_FILES"
22640
22641
22642for ac_tag in :F $CONFIG_FILES
22643do
22644 case $ac_tag in
22645 :[FHLC]) ac_mode=$ac_tag; continue;;
22646 esac
22647 case $ac_mode$ac_tag in
22648 :[FHL]*:*);;
22649 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22650echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22651 { (exit 1); exit 1; }; };;
22652 :[FH]-) ac_tag=-:-;;
22653 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22654 esac
22655 ac_save_IFS=$IFS
22656 IFS=:
22657 set x $ac_tag
22658 IFS=$ac_save_IFS
22659 shift
22660 ac_file=$1
22661 shift
22662
22663 case $ac_mode in
22664 :L) ac_source=$1;;
22665 :[FH])
22666 ac_file_inputs=
22667 for ac_f
22668 do
22669 case $ac_f in
22670 -) ac_f="$tmp/stdin";;
22671 *) # Look for the file first in the build tree, then in the source tree
22672 # (if the path is not absolute). The absolute path cannot be DOS-style,
22673 # because $ac_f cannot contain `:'.
22674 test -f "$ac_f" ||
22675 case $ac_f in
22676 [\\/$]*) false;;
22677 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22678 esac ||
22679 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22680echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22681 { (exit 1); exit 1; }; };;
22682 esac
22683 ac_file_inputs="$ac_file_inputs $ac_f"
22684 done
22685
22686 # Let's still pretend it is `configure' which instantiates (i.e., don't
22687 # use $as_me), people would be surprised to read:
22688 # /* config.h. Generated by config.status. */
22689 configure_input="Generated from "`IFS=:
22690 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22691 if test x"$ac_file" != x-; then
22692 configure_input="$ac_file. $configure_input"
22693 { echo "$as_me:$LINENO: creating $ac_file" >&5
22694echo "$as_me: creating $ac_file" >&6;}
22695 fi
22696
22697 case $ac_tag in
22698 *:-:* | *:-) cat >"$tmp/stdin";;
22699 esac
22700 ;;
22701 esac
22702
22703 ac_dir=`$as_dirname -- "$ac_file" ||
22704$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22705 X"$ac_file" : 'X\(//\)[^/]' \| \
22706 X"$ac_file" : 'X\(//\)$' \| \
22707 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22708echo X"$ac_file" |
22709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22710 s//\1/
22711 q
22712 }
22713 /^X\(\/\/\)[^/].*/{
22714 s//\1/
22715 q
22716 }
22717 /^X\(\/\/\)$/{
22718 s//\1/
22719 q
22720 }
22721 /^X\(\/\).*/{
22722 s//\1/
22723 q
22724 }
22725 s/.*/./; q'`
22726 { as_dir="$ac_dir"
22727 case $as_dir in #(
22728 -*) as_dir=./$as_dir;;
22729 esac
22730 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22731 as_dirs=
22732 while :; do
22733 case $as_dir in #(
22734 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22735 *) as_qdir=$as_dir;;
22736 esac
22737 as_dirs="'$as_qdir' $as_dirs"
22738 as_dir=`$as_dirname -- "$as_dir" ||
22739$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22740 X"$as_dir" : 'X\(//\)[^/]' \| \
22741 X"$as_dir" : 'X\(//\)$' \| \
22742 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22743echo X"$as_dir" |
22744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22745 s//\1/
22746 q
22747 }
22748 /^X\(\/\/\)[^/].*/{
22749 s//\1/
22750 q
22751 }
22752 /^X\(\/\/\)$/{
22753 s//\1/
22754 q
22755 }
22756 /^X\(\/\).*/{
22757 s//\1/
22758 q
22759 }
22760 s/.*/./; q'`
22761 test -d "$as_dir" && break
22762 done
22763 test -z "$as_dirs" || eval "mkdir $as_dirs"
22764 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22765echo "$as_me: error: cannot create directory $as_dir" >&2;}
22766 { (exit 1); exit 1; }; }; }
22767 ac_builddir=.
22768
22769case "$ac_dir" in
22770.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22771*)
22772 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22773 # A ".." for each directory in $ac_dir_suffix.
22774 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22775 case $ac_top_builddir_sub in
22776 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22777 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22778 esac ;;
22779esac
22780ac_abs_top_builddir=$ac_pwd
22781ac_abs_builddir=$ac_pwd$ac_dir_suffix
22782# for backward compatibility:
22783ac_top_builddir=$ac_top_build_prefix
22784
22785case $srcdir in
22786 .) # We are building in place.
22787 ac_srcdir=.
22788 ac_top_srcdir=$ac_top_builddir_sub
22789 ac_abs_top_srcdir=$ac_pwd ;;
22790 [\\/]* | ?:[\\/]* ) # Absolute name.
22791 ac_srcdir=$srcdir$ac_dir_suffix;
22792 ac_top_srcdir=$srcdir
22793 ac_abs_top_srcdir=$srcdir ;;
22794 *) # Relative name.
22795 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22796 ac_top_srcdir=$ac_top_build_prefix$srcdir
22797 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22798esac
22799ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22800
22801
22802 case $ac_mode in
22803 :F)
22804 #
22805 # CONFIG_FILE
22806 #
22807
22808 case $INSTALL in
22809 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22810 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22811 esac
22812_ACEOF
22813
22814cat >>$CONFIG_STATUS <<\_ACEOF
22815# If the template does not know about datarootdir, expand it.
22816# FIXME: This hack should be removed a few years after 2.60.
22817ac_datarootdir_hack=; ac_datarootdir_seen=
22818
22819case `sed -n '/datarootdir/ {
22820 p
22821 q
22822}
22823/@datadir@/p
22824/@docdir@/p
22825/@infodir@/p
22826/@localedir@/p
22827/@mandir@/p
22828' $ac_file_inputs` in
22829*datarootdir*) ac_datarootdir_seen=yes;;
22830*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22831 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22832echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22833_ACEOF
22834cat >>$CONFIG_STATUS <<_ACEOF
22835 ac_datarootdir_hack='
22836 s&@datadir@&$datadir&g
22837 s&@docdir@&$docdir&g
22838 s&@infodir@&$infodir&g
22839 s&@localedir@&$localedir&g
22840 s&@mandir@&$mandir&g
22841 s&\\\${datarootdir}&$datarootdir&g' ;;
22842esac
22843_ACEOF
22844
22845# Neutralize VPATH when `$srcdir' = `.'.
22846# Shell code in configure.ac might set extrasub.
22847# FIXME: do we really want to maintain this feature?
22848cat >>$CONFIG_STATUS <<_ACEOF
22849 sed "$ac_vpsub
22850$extrasub
22851_ACEOF
22852cat >>$CONFIG_STATUS <<\_ACEOF
22853:t
22854/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22855s&@configure_input@&$configure_input&;t t
22856s&@top_builddir@&$ac_top_builddir_sub&;t t
22857s&@srcdir@&$ac_srcdir&;t t
22858s&@abs_srcdir@&$ac_abs_srcdir&;t t
22859s&@top_srcdir@&$ac_top_srcdir&;t t
22860s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22861s&@builddir@&$ac_builddir&;t t
22862s&@abs_builddir@&$ac_abs_builddir&;t t
22863s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22864s&@INSTALL@&$ac_INSTALL&;t t
22865$ac_datarootdir_hack
22866" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
22867
22868test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22869 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22870 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22871 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22872which seems to be undefined. Please make sure it is defined." >&5
22873echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22874which seems to be undefined. Please make sure it is defined." >&2;}
22875
22876 rm -f "$tmp/stdin"
22877 case $ac_file in
22878 -) cat "$tmp/out"; rm -f "$tmp/out";;
22879 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22880 esac
22881 ;;
22882
22883
22884
22885 esac
22886
22887done # for ac_tag
22888
22889
22890{ (exit 0); exit 0; }
22891_ACEOF
22892chmod +x $CONFIG_STATUS
22893ac_clean_files=$ac_clean_files_save
22894
22895
22896# configure is writing to config.log, and then calls config.status.
22897# config.status does its own redirection, appending to config.log.
22898# Unfortunately, on DOS this fails, as config.log is still kept open
22899# by configure, so config.status won't be able to write to it; its
22900# output is simply discarded. So we exec the FD to /dev/null,
22901# effectively closing config.log, so it can be properly (re)opened and
22902# appended to by config.status. When coming back to configure, we
22903# need to make the FD available again.
22904if test "$no_create" != yes; then
22905 ac_cs_success=:
22906 ac_config_status_args=
22907 test "$silent" = yes &&
22908 ac_config_status_args="$ac_config_status_args --quiet"
22909 exec 5>/dev/null
22910 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22911 exec 5>>config.log
22912 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22913 # would make configure fail if this is the last instruction.
22914 $ac_cs_success || { (exit 1); exit 1; }
22915fi
22916
22917#
22918# CONFIG_SUBDIRS section.
22919#
22920if test "$no_recursion" != yes; then
22921
22922 # Remove --cache-file and --srcdir arguments so they do not pile up.
22923 ac_sub_configure_args=
22924 ac_prev=
22925 eval "set x $ac_configure_args"
22926 shift
22927 for ac_arg
22928 do
22929 if test -n "$ac_prev"; then
22930 ac_prev=
22931 continue
22932 fi
22933 case $ac_arg in
22934 -cache-file | --cache-file | --cache-fil | --cache-fi \
22935 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22936 ac_prev=cache_file ;;
22937 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22938 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22939 | --c=*)
22940 ;;
22941 --config-cache | -C)
22942 ;;
22943 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22944 ac_prev=srcdir ;;
22945 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22946 ;;
22947 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22948 ac_prev=prefix ;;
22949 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22950 ;;
22951 *)
22952 case $ac_arg in
22953 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22954 esac
22955 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22956 esac
22957 done
22958
22959 # Always prepend --prefix to ensure using the same prefix
22960 # in subdir configurations.
22961 ac_arg="--prefix=$prefix"
22962 case $ac_arg in
22963 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22964 esac
22965 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
22966
22967 # Pass --silent
22968 if test "$silent" = yes; then
22969 ac_sub_configure_args="--silent $ac_sub_configure_args"
22970 fi
22971
22972 ac_popdir=`pwd`
22973 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22974
22975 # Do not complain, so a configure script can configure whichever
22976 # parts of a large source tree are present.
22977 test -d "$srcdir/$ac_dir" || continue
22978
22979 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22980 echo "$as_me:$LINENO: $ac_msg" >&5
22981 echo "$ac_msg" >&6
22982 { as_dir="$ac_dir"
22983 case $as_dir in #(
22984 -*) as_dir=./$as_dir;;
22985 esac
22986 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22987 as_dirs=
22988 while :; do
22989 case $as_dir in #(
22990 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22991 *) as_qdir=$as_dir;;
22992 esac
22993 as_dirs="'$as_qdir' $as_dirs"
22994 as_dir=`$as_dirname -- "$as_dir" ||
22995$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22996 X"$as_dir" : 'X\(//\)[^/]' \| \
22997 X"$as_dir" : 'X\(//\)$' \| \
22998 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22999echo X"$as_dir" |
23000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23001 s//\1/
23002 q
23003 }
23004 /^X\(\/\/\)[^/].*/{
23005 s//\1/
23006 q
23007 }
23008 /^X\(\/\/\)$/{
23009 s//\1/
23010 q
23011 }
23012 /^X\(\/\).*/{
23013 s//\1/
23014 q
23015 }
23016 s/.*/./; q'`
23017 test -d "$as_dir" && break
23018 done
23019 test -z "$as_dirs" || eval "mkdir $as_dirs"
23020 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23021echo "$as_me: error: cannot create directory $as_dir" >&2;}
23022 { (exit 1); exit 1; }; }; }
23023 ac_builddir=.
23024
23025case "$ac_dir" in
23026.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23027*)
23028 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23029 # A ".." for each directory in $ac_dir_suffix.
23030 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23031 case $ac_top_builddir_sub in
23032 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23033 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23034 esac ;;
23035esac
23036ac_abs_top_builddir=$ac_pwd
23037ac_abs_builddir=$ac_pwd$ac_dir_suffix
23038# for backward compatibility:
23039ac_top_builddir=$ac_top_build_prefix
23040
23041case $srcdir in
23042 .) # We are building in place.
23043 ac_srcdir=.
23044 ac_top_srcdir=$ac_top_builddir_sub
23045 ac_abs_top_srcdir=$ac_pwd ;;
23046 [\\/]* | ?:[\\/]* ) # Absolute name.
23047 ac_srcdir=$srcdir$ac_dir_suffix;
23048 ac_top_srcdir=$srcdir
23049 ac_abs_top_srcdir=$srcdir ;;
23050 *) # Relative name.
23051 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23052 ac_top_srcdir=$ac_top_build_prefix$srcdir
23053 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23054esac
23055ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23056
23057
23058 cd "$ac_dir"
23059
23060 # Check for guested configure; otherwise get Cygnus style configure.
23061 if test -f "$ac_srcdir/configure.gnu"; then
23062 ac_sub_configure=$ac_srcdir/configure.gnu
23063 elif test -f "$ac_srcdir/configure"; then
23064 ac_sub_configure=$ac_srcdir/configure
23065 elif test -f "$ac_srcdir/configure.in"; then
23066 # This should be Cygnus configure.
23067 ac_sub_configure=$ac_aux_dir/configure
23068 else
23069 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23070echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23071 ac_sub_configure=
23072 fi
23073
23074 # The recursion is here.
23075 if test -n "$ac_sub_configure"; then
23076 # Make the cache file name correct relative to the subdirectory.
23077 case $cache_file in
23078 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23079 *) # Relative name.
23080 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23081 esac
23082
23083 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23084echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23085 # The eval makes quoting arguments work.
23086 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23087 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23088 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23089echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23090 { (exit 1); exit 1; }; }
23091 fi
23092
23093 cd "$ac_popdir"
23094 done
23095fi
23096