blob: 5f860b3ba6c646f77bf9d3eb2e9873e8c6dfdb3a [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for iptables 1.4.3.2.
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='iptables'
728PACKAGE_TARNAME='iptables'
729PACKAGE_VERSION='1.4.3.2'
730PACKAGE_STRING='iptables 1.4.3.2'
731PACKAGE_BUGREPORT=''
732
733# Factoring default headers for most tests.
734ac_includes_default="\
735#include <stdio.h>
736#ifdef HAVE_SYS_TYPES_H
737# include <sys/types.h>
738#endif
739#ifdef HAVE_SYS_STAT_H
740# include <sys/stat.h>
741#endif
742#ifdef STDC_HEADERS
743# include <stdlib.h>
744# include <stddef.h>
745#else
746# ifdef HAVE_STDLIB_H
747# include <stdlib.h>
748# endif
749#endif
750#ifdef HAVE_STRING_H
751# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
752# include <memory.h>
753# endif
754# include <string.h>
755#endif
756#ifdef HAVE_STRINGS_H
757# include <strings.h>
758#endif
759#ifdef HAVE_INTTYPES_H
760# include <inttypes.h>
761#endif
762#ifdef HAVE_STDINT_H
763# include <stdint.h>
764#endif
765#ifdef HAVE_UNISTD_H
766# include <unistd.h>
767#endif"
768
769ac_subst_vars='SHELL
770PATH_SEPARATOR
771PACKAGE_NAME
772PACKAGE_TARNAME
773PACKAGE_VERSION
774PACKAGE_STRING
775PACKAGE_BUGREPORT
776exec_prefix
777prefix
778program_transform_name
779bindir
780sbindir
781libexecdir
782datarootdir
783datadir
784sysconfdir
785sharedstatedir
786localstatedir
787includedir
788oldincludedir
789docdir
790infodir
791htmldir
792dvidir
793pdfdir
794psdir
795libdir
796localedir
797mandir
798DEFS
799ECHO_C
800ECHO_N
801ECHO_T
802LIBS
803build_alias
804host_alias
805target_alias
806INSTALL_PROGRAM
807INSTALL_SCRIPT
808INSTALL_DATA
809am__isrc
810CYGPATH_W
811PACKAGE
812VERSION
813ACLOCAL
814AUTOCONF
815AUTOMAKE
816AUTOHEADER
817MAKEINFO
818install_sh
819STRIP
820INSTALL_STRIP_PROGRAM
821mkdir_p
822AWK
823SET_MAKE
824am__leading_dot
825AMTAR
826am__tar
827am__untar
828CC
829CFLAGS
830LDFLAGS
831CPPFLAGS
832ac_ct_CC
833EXEEXT
834OBJEXT
835DEPDIR
836am__include
837am__quote
838AMDEP_TRUE
839AMDEP_FALSE
840AMDEPBACKSLASH
841CCDEPMODE
842am__fastdepCC_TRUE
843am__fastdepCC_FALSE
844build
845build_cpu
846build_vendor
847build_os
848host
849host_cpu
850host_vendor
851host_os
852SED
853GREP
854EGREP
855LN_S
856ECHO
857AR
858RANLIB
859DSYMUTIL
860NMEDIT
861CPP
862CXX
863CXXFLAGS
864ac_ct_CXX
865CXXDEPMODE
866am__fastdepCXX_TRUE
867am__fastdepCXX_FALSE
868CXXCPP
869F77
870FFLAGS
871ac_ct_F77
872LIBTOOL
873blacklist_modules
874ENABLE_STATIC_TRUE
875ENABLE_STATIC_FALSE
876ENABLE_SHARED_TRUE
877ENABLE_SHARED_FALSE
878ENABLE_IPV4_TRUE
879ENABLE_IPV4_FALSE
880ENABLE_IPV6_TRUE
881ENABLE_IPV6_FALSE
882ENABLE_DEVEL_TRUE
883ENABLE_DEVEL_FALSE
884ENABLE_LIBIPQ_TRUE
885ENABLE_LIBIPQ_FALSE
886regular_CFLAGS
887kinclude_CFLAGS
888kbuilddir
889ksourcedir
890xtlibdir
891pkgconfigdir
892libxtables_vcurrent
893libxtables_vage
894libxtables_vmajor
895LIBOBJS
896LTLIBOBJS'
897ac_subst_files=''
898 ac_precious_vars='build_alias
899host_alias
900target_alias
901CC
902CFLAGS
903LDFLAGS
904LIBS
905CPPFLAGS
906CPP
907CXX
908CXXFLAGS
909CCC
910CXXCPP
911F77
912FFLAGS'
913
914
915# Initialize some variables set by options.
916ac_init_help=
917ac_init_version=false
918# The variables have the same names as the options, with
919# dashes changed to underlines.
920cache_file=/dev/null
921exec_prefix=NONE
922no_create=
923no_recursion=
924prefix=NONE
925program_prefix=NONE
926program_suffix=NONE
927program_transform_name=s,x,x,
928silent=
929site=
930srcdir=
931verbose=
932x_includes=NONE
933x_libraries=NONE
934
935# Installation directory options.
936# These are left unexpanded so users can "make install exec_prefix=/foo"
937# and all the variables that are supposed to be based on exec_prefix
938# by default will actually change.
939# Use braces instead of parens because sh, perl, etc. also accept them.
940# (The list follows the same order as the GNU Coding Standards.)
941bindir='${exec_prefix}/bin'
942sbindir='${exec_prefix}/sbin'
943libexecdir='${exec_prefix}/libexec'
944datarootdir='${prefix}/share'
945datadir='${datarootdir}'
946sysconfdir='${prefix}/etc'
947sharedstatedir='${prefix}/com'
948localstatedir='${prefix}/var'
949includedir='${prefix}/include'
950oldincludedir='/usr/include'
951docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
952infodir='${datarootdir}/info'
953htmldir='${docdir}'
954dvidir='${docdir}'
955pdfdir='${docdir}'
956psdir='${docdir}'
957libdir='${exec_prefix}/lib'
958localedir='${datarootdir}/locale'
959mandir='${datarootdir}/man'
960
961ac_prev=
962ac_dashdash=
963for ac_option
964do
965 # If the previous option needs an argument, assign it.
966 if test -n "$ac_prev"; then
967 eval $ac_prev=\$ac_option
968 ac_prev=
969 continue
970 fi
971
972 case $ac_option in
973 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
974 *) ac_optarg=yes ;;
975 esac
976
977 # Accept the important Cygnus configure options, so we can diagnose typos.
978
979 case $ac_dashdash$ac_option in
980 --)
981 ac_dashdash=yes ;;
982
983 -bindir | --bindir | --bindi | --bind | --bin | --bi)
984 ac_prev=bindir ;;
985 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
986 bindir=$ac_optarg ;;
987
988 -build | --build | --buil | --bui | --bu)
989 ac_prev=build_alias ;;
990 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
991 build_alias=$ac_optarg ;;
992
993 -cache-file | --cache-file | --cache-fil | --cache-fi \
994 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
995 ac_prev=cache_file ;;
996 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
997 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
998 cache_file=$ac_optarg ;;
999
1000 --config-cache | -C)
1001 cache_file=config.cache ;;
1002
1003 -datadir | --datadir | --datadi | --datad)
1004 ac_prev=datadir ;;
1005 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1006 datadir=$ac_optarg ;;
1007
1008 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1009 | --dataroo | --dataro | --datar)
1010 ac_prev=datarootdir ;;
1011 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1012 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1013 datarootdir=$ac_optarg ;;
1014
1015 -disable-* | --disable-*)
1016 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1019 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1020 { (exit 1); exit 1; }; }
1021 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1022 eval enable_$ac_feature=no ;;
1023
1024 -docdir | --docdir | --docdi | --doc | --do)
1025 ac_prev=docdir ;;
1026 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1027 docdir=$ac_optarg ;;
1028
1029 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1030 ac_prev=dvidir ;;
1031 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1032 dvidir=$ac_optarg ;;
1033
1034 -enable-* | --enable-*)
1035 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1038 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1039 { (exit 1); exit 1; }; }
1040 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1041 eval enable_$ac_feature=\$ac_optarg ;;
1042
1043 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1044 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1045 | --exec | --exe | --ex)
1046 ac_prev=exec_prefix ;;
1047 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1048 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1049 | --exec=* | --exe=* | --ex=*)
1050 exec_prefix=$ac_optarg ;;
1051
1052 -gas | --gas | --ga | --g)
1053 # Obsolete; use --with-gas.
1054 with_gas=yes ;;
1055
1056 -help | --help | --hel | --he | -h)
1057 ac_init_help=long ;;
1058 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1059 ac_init_help=recursive ;;
1060 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1061 ac_init_help=short ;;
1062
1063 -host | --host | --hos | --ho)
1064 ac_prev=host_alias ;;
1065 -host=* | --host=* | --hos=* | --ho=*)
1066 host_alias=$ac_optarg ;;
1067
1068 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1069 ac_prev=htmldir ;;
1070 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1071 | --ht=*)
1072 htmldir=$ac_optarg ;;
1073
1074 -includedir | --includedir | --includedi | --included | --include \
1075 | --includ | --inclu | --incl | --inc)
1076 ac_prev=includedir ;;
1077 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1078 | --includ=* | --inclu=* | --incl=* | --inc=*)
1079 includedir=$ac_optarg ;;
1080
1081 -infodir | --infodir | --infodi | --infod | --info | --inf)
1082 ac_prev=infodir ;;
1083 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1084 infodir=$ac_optarg ;;
1085
1086 -libdir | --libdir | --libdi | --libd)
1087 ac_prev=libdir ;;
1088 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1089 libdir=$ac_optarg ;;
1090
1091 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1092 | --libexe | --libex | --libe)
1093 ac_prev=libexecdir ;;
1094 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1095 | --libexe=* | --libex=* | --libe=*)
1096 libexecdir=$ac_optarg ;;
1097
1098 -localedir | --localedir | --localedi | --localed | --locale)
1099 ac_prev=localedir ;;
1100 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1101 localedir=$ac_optarg ;;
1102
1103 -localstatedir | --localstatedir | --localstatedi | --localstated \
1104 | --localstate | --localstat | --localsta | --localst | --locals)
1105 ac_prev=localstatedir ;;
1106 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1107 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1108 localstatedir=$ac_optarg ;;
1109
1110 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1111 ac_prev=mandir ;;
1112 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1113 mandir=$ac_optarg ;;
1114
1115 -nfp | --nfp | --nf)
1116 # Obsolete; use --without-fp.
1117 with_fp=no ;;
1118
1119 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1120 | --no-cr | --no-c | -n)
1121 no_create=yes ;;
1122
1123 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1124 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1125 no_recursion=yes ;;
1126
1127 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1128 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1129 | --oldin | --oldi | --old | --ol | --o)
1130 ac_prev=oldincludedir ;;
1131 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1132 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1133 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1134 oldincludedir=$ac_optarg ;;
1135
1136 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1137 ac_prev=prefix ;;
1138 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1139 prefix=$ac_optarg ;;
1140
1141 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1142 | --program-pre | --program-pr | --program-p)
1143 ac_prev=program_prefix ;;
1144 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1145 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1146 program_prefix=$ac_optarg ;;
1147
1148 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1149 | --program-suf | --program-su | --program-s)
1150 ac_prev=program_suffix ;;
1151 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1152 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1153 program_suffix=$ac_optarg ;;
1154
1155 -program-transform-name | --program-transform-name \
1156 | --program-transform-nam | --program-transform-na \
1157 | --program-transform-n | --program-transform- \
1158 | --program-transform | --program-transfor \
1159 | --program-transfo | --program-transf \
1160 | --program-trans | --program-tran \
1161 | --progr-tra | --program-tr | --program-t)
1162 ac_prev=program_transform_name ;;
1163 -program-transform-name=* | --program-transform-name=* \
1164 | --program-transform-nam=* | --program-transform-na=* \
1165 | --program-transform-n=* | --program-transform-=* \
1166 | --program-transform=* | --program-transfor=* \
1167 | --program-transfo=* | --program-transf=* \
1168 | --program-trans=* | --program-tran=* \
1169 | --progr-tra=* | --program-tr=* | --program-t=*)
1170 program_transform_name=$ac_optarg ;;
1171
1172 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1173 ac_prev=pdfdir ;;
1174 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1175 pdfdir=$ac_optarg ;;
1176
1177 -psdir | --psdir | --psdi | --psd | --ps)
1178 ac_prev=psdir ;;
1179 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1180 psdir=$ac_optarg ;;
1181
1182 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1183 | -silent | --silent | --silen | --sile | --sil)
1184 silent=yes ;;
1185
1186 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1187 ac_prev=sbindir ;;
1188 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1189 | --sbi=* | --sb=*)
1190 sbindir=$ac_optarg ;;
1191
1192 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1193 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1194 | --sharedst | --shareds | --shared | --share | --shar \
1195 | --sha | --sh)
1196 ac_prev=sharedstatedir ;;
1197 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1198 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1199 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1200 | --sha=* | --sh=*)
1201 sharedstatedir=$ac_optarg ;;
1202
1203 -site | --site | --sit)
1204 ac_prev=site ;;
1205 -site=* | --site=* | --sit=*)
1206 site=$ac_optarg ;;
1207
1208 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1209 ac_prev=srcdir ;;
1210 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1211 srcdir=$ac_optarg ;;
1212
1213 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1214 | --syscon | --sysco | --sysc | --sys | --sy)
1215 ac_prev=sysconfdir ;;
1216 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1217 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1218 sysconfdir=$ac_optarg ;;
1219
1220 -target | --target | --targe | --targ | --tar | --ta | --t)
1221 ac_prev=target_alias ;;
1222 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1223 target_alias=$ac_optarg ;;
1224
1225 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1226 verbose=yes ;;
1227
1228 -version | --version | --versio | --versi | --vers | -V)
1229 ac_init_version=: ;;
1230
1231 -with-* | --with-*)
1232 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235 { echo "$as_me: error: invalid package name: $ac_package" >&2
1236 { (exit 1); exit 1; }; }
1237 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1238 eval with_$ac_package=\$ac_optarg ;;
1239
1240 -without-* | --without-*)
1241 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244 { echo "$as_me: error: invalid package name: $ac_package" >&2
1245 { (exit 1); exit 1; }; }
1246 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1247 eval with_$ac_package=no ;;
1248
1249 --x)
1250 # Obsolete; use --with-x.
1251 with_x=yes ;;
1252
1253 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1254 | --x-incl | --x-inc | --x-in | --x-i)
1255 ac_prev=x_includes ;;
1256 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1257 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1258 x_includes=$ac_optarg ;;
1259
1260 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1261 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1262 ac_prev=x_libraries ;;
1263 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1264 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1265 x_libraries=$ac_optarg ;;
1266
1267 -*) { echo "$as_me: error: unrecognized option: $ac_option
1268Try \`$0 --help' for more information." >&2
1269 { (exit 1); exit 1; }; }
1270 ;;
1271
1272 *=*)
1273 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1276 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1277 { (exit 1); exit 1; }; }
1278 eval $ac_envvar=\$ac_optarg
1279 export $ac_envvar ;;
1280
1281 *)
1282 # FIXME: should be removed in autoconf 3.0.
1283 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1284 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1285 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1286 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1287 ;;
1288
1289 esac
1290done
1291
1292if test -n "$ac_prev"; then
1293 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1294 { echo "$as_me: error: missing argument to $ac_option" >&2
1295 { (exit 1); exit 1; }; }
1296fi
1297
1298# Be sure to have absolute directory names.
1299for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1300 datadir sysconfdir sharedstatedir localstatedir includedir \
1301 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1302 libdir localedir mandir
1303do
1304 eval ac_val=\$$ac_var
1305 case $ac_val in
1306 [\\/$]* | ?:[\\/]* ) continue;;
1307 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1308 esac
1309 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1310 { (exit 1); exit 1; }; }
1311done
1312
1313# There might be people who depend on the old broken behavior: `$host'
1314# used to hold the argument of --host etc.
1315# FIXME: To remove some day.
1316build=$build_alias
1317host=$host_alias
1318target=$target_alias
1319
1320# FIXME: To remove some day.
1321if test "x$host_alias" != x; then
1322 if test "x$build_alias" = x; then
1323 cross_compiling=maybe
1324 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1325 If a cross compiler is detected then cross compile mode will be used." >&2
1326 elif test "x$build_alias" != "x$host_alias"; then
1327 cross_compiling=yes
1328 fi
1329fi
1330
1331ac_tool_prefix=
1332test -n "$host_alias" && ac_tool_prefix=$host_alias-
1333
1334test "$silent" = yes && exec 6>/dev/null
1335
1336
1337ac_pwd=`pwd` && test -n "$ac_pwd" &&
1338ac_ls_di=`ls -di .` &&
1339ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1340 { echo "$as_me: error: Working directory cannot be determined" >&2
1341 { (exit 1); exit 1; }; }
1342test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343 { echo "$as_me: error: pwd does not report name of working directory" >&2
1344 { (exit 1); exit 1; }; }
1345
1346
1347# Find the source files, if location was not specified.
1348if test -z "$srcdir"; then
1349 ac_srcdir_defaulted=yes
1350 # Try the directory containing this script, then the parent directory.
1351 ac_confdir=`$as_dirname -- "$0" ||
1352$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353 X"$0" : 'X\(//\)[^/]' \| \
1354 X"$0" : 'X\(//\)$' \| \
1355 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1356echo X"$0" |
1357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358 s//\1/
1359 q
1360 }
1361 /^X\(\/\/\)[^/].*/{
1362 s//\1/
1363 q
1364 }
1365 /^X\(\/\/\)$/{
1366 s//\1/
1367 q
1368 }
1369 /^X\(\/\).*/{
1370 s//\1/
1371 q
1372 }
1373 s/.*/./; q'`
1374 srcdir=$ac_confdir
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1376 srcdir=..
1377 fi
1378else
1379 ac_srcdir_defaulted=no
1380fi
1381if test ! -r "$srcdir/$ac_unique_file"; then
1382 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1383 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1384 { (exit 1); exit 1; }; }
1385fi
1386ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1387ac_abs_confdir=`(
1388 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1389 { (exit 1); exit 1; }; }
1390 pwd)`
1391# When building in place, set srcdir=.
1392if test "$ac_abs_confdir" = "$ac_pwd"; then
1393 srcdir=.
1394fi
1395# Remove unnecessary trailing slashes from srcdir.
1396# Double slashes in file names in object file debugging info
1397# mess up M-x gdb in Emacs.
1398case $srcdir in
1399*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1400esac
1401for ac_var in $ac_precious_vars; do
1402 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_env_${ac_var}_value=\$${ac_var}
1404 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1405 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1406done
1407
1408#
1409# Report the --help message.
1410#
1411if test "$ac_init_help" = "long"; then
1412 # Omit some internal or obsolete options to make the list less imposing.
1413 # This message is too long to be a string in the A/UX 3.1 sh.
1414 cat <<_ACEOF
1415\`configure' configures iptables 1.4.3.2 to adapt to many kinds of systems.
1416
1417Usage: $0 [OPTION]... [VAR=VALUE]...
1418
1419To assign environment variables (e.g., CC, CFLAGS...), specify them as
1420VAR=VALUE. See below for descriptions of some of the useful variables.
1421
1422Defaults for the options are specified in brackets.
1423
1424Configuration:
1425 -h, --help display this help and exit
1426 --help=short display options specific to this package
1427 --help=recursive display the short help of all the included packages
1428 -V, --version display version information and exit
1429 -q, --quiet, --silent do not print \`checking...' messages
1430 --cache-file=FILE cache test results in FILE [disabled]
1431 -C, --config-cache alias for \`--cache-file=config.cache'
1432 -n, --no-create do not create output files
1433 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1434
1435Installation directories:
1436 --prefix=PREFIX install architecture-independent files in PREFIX
1437 [$ac_default_prefix]
1438 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1439 [PREFIX]
1440
1441By default, \`make install' will install all the files in
1442\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1443an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1444for instance \`--prefix=\$HOME'.
1445
1446For better control, use the options below.
1447
1448Fine tuning of the installation directories:
1449 --bindir=DIR user executables [EPREFIX/bin]
1450 --sbindir=DIR system admin executables [EPREFIX/sbin]
1451 --libexecdir=DIR program executables [EPREFIX/libexec]
1452 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1453 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1454 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1455 --libdir=DIR object code libraries [EPREFIX/lib]
1456 --includedir=DIR C header files [PREFIX/include]
1457 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1458 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1459 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1460 --infodir=DIR info documentation [DATAROOTDIR/info]
1461 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1462 --mandir=DIR man documentation [DATAROOTDIR/man]
1463 --docdir=DIR documentation root [DATAROOTDIR/doc/iptables]
1464 --htmldir=DIR html documentation [DOCDIR]
1465 --dvidir=DIR dvi documentation [DOCDIR]
1466 --pdfdir=DIR pdf documentation [DOCDIR]
1467 --psdir=DIR ps documentation [DOCDIR]
1468_ACEOF
1469
1470 cat <<\_ACEOF
1471
1472Program names:
1473 --program-prefix=PREFIX prepend PREFIX to installed program names
1474 --program-suffix=SUFFIX append SUFFIX to installed program names
1475 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1476
1477System types:
1478 --build=BUILD configure for building on BUILD [guessed]
1479 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1480_ACEOF
1481fi
1482
1483if test -n "$ac_init_help"; then
1484 case $ac_init_help in
1485 short | recursive ) echo "Configuration of iptables 1.4.3.2:";;
1486 esac
1487 cat <<\_ACEOF
1488
1489Optional Features:
1490 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1491 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1492 --disable-dependency-tracking speeds up one-time build
1493 --enable-dependency-tracking do not reject slow dependency extractors
1494 --enable-static[=PKGS] build static libraries [default=no]
1495 --enable-shared[=PKGS] build shared libraries [default=yes]
1496 --enable-fast-install[=PKGS]
1497 optimize for fast installation [default=yes]
1498 --disable-libtool-lock avoid locking (might break parallel builds)
1499 --disable-ipv4 Do not build iptables
1500 --disable-ipv6 Do not build ip6tables
1501 --enable-devel Install Xtables development headers
1502 --enable-libipq Build and install libipq
1503
1504Optional Packages:
1505 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1506 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1507 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1508 --with-pic try to use only PIC/non-PIC objects [default=use
1509 both]
1510 --with-tags[=TAGS] include additional configurations [automatic]
1511 --with-kernel=PATH Path to kernel source/build directory
1512 --with-kbuild=PATH Path to kernel build directory
1513 [/lib/modules/CURRENT/build]
1514 --with-ksource=PATH Path to kernel source directory
1515 [/lib/modules/CURRENT/source]
1516 --with-xtlibdir=PATH Path where to install Xtables extensions
1517 [LIBEXECDIR/xtables]
1518 --with-pkgconfigdir=PATH
1519 Path to the pkgconfig directory [LIBDIR/pkgconfig]
1520
1521Some influential environment variables:
1522 CC C compiler command
1523 CFLAGS C compiler flags
1524 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1525 nonstandard directory <lib dir>
1526 LIBS libraries to pass to the linker, e.g. -l<library>
1527 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1528 you have headers in a nonstandard directory <include dir>
1529 CPP C preprocessor
1530 CXX C++ compiler command
1531 CXXFLAGS C++ compiler flags
1532 CXXCPP C++ preprocessor
1533 F77 Fortran 77 compiler command
1534 FFLAGS Fortran 77 compiler flags
1535
1536Use these variables to override the choices made by `configure' or to help
1537it to find libraries and programs with nonstandard names/locations.
1538
1539_ACEOF
1540ac_status=$?
1541fi
1542
1543if test "$ac_init_help" = "recursive"; then
1544 # If there are subdirs, report their specific --help.
1545 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1546 test -d "$ac_dir" || continue
1547 ac_builddir=.
1548
1549case "$ac_dir" in
1550.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551*)
1552 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1553 # A ".." for each directory in $ac_dir_suffix.
1554 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1555 case $ac_top_builddir_sub in
1556 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1558 esac ;;
1559esac
1560ac_abs_top_builddir=$ac_pwd
1561ac_abs_builddir=$ac_pwd$ac_dir_suffix
1562# for backward compatibility:
1563ac_top_builddir=$ac_top_build_prefix
1564
1565case $srcdir in
1566 .) # We are building in place.
1567 ac_srcdir=.
1568 ac_top_srcdir=$ac_top_builddir_sub
1569 ac_abs_top_srcdir=$ac_pwd ;;
1570 [\\/]* | ?:[\\/]* ) # Absolute name.
1571 ac_srcdir=$srcdir$ac_dir_suffix;
1572 ac_top_srcdir=$srcdir
1573 ac_abs_top_srcdir=$srcdir ;;
1574 *) # Relative name.
1575 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1576 ac_top_srcdir=$ac_top_build_prefix$srcdir
1577 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1578esac
1579ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1580
1581 cd "$ac_dir" || { ac_status=$?; continue; }
1582 # Check for guested configure.
1583 if test -f "$ac_srcdir/configure.gnu"; then
1584 echo &&
1585 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586 elif test -f "$ac_srcdir/configure"; then
1587 echo &&
1588 $SHELL "$ac_srcdir/configure" --help=recursive
1589 else
1590 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591 fi || ac_status=$?
1592 cd "$ac_pwd" || { ac_status=$?; break; }
1593 done
1594fi
1595
1596test -n "$ac_init_help" && exit $ac_status
1597if $ac_init_version; then
1598 cat <<\_ACEOF
1599iptables configure 1.4.3.2
1600generated by GNU Autoconf 2.61
1601
1602Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16032002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1604This configure script is free software; the Free Software Foundation
1605gives unlimited permission to copy, distribute and modify it.
1606_ACEOF
1607 exit
1608fi
1609cat >config.log <<_ACEOF
1610This file contains any messages produced by compilers while
1611running configure, to aid debugging if configure makes a mistake.
1612
1613It was created by iptables $as_me 1.4.3.2, which was
1614generated by GNU Autoconf 2.61. Invocation command line was
1615
1616 $ $0 $@
1617
1618_ACEOF
1619exec 5>>config.log
1620{
1621cat <<_ASUNAME
1622## --------- ##
1623## Platform. ##
1624## --------- ##
1625
1626hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1627uname -m = `(uname -m) 2>/dev/null || echo unknown`
1628uname -r = `(uname -r) 2>/dev/null || echo unknown`
1629uname -s = `(uname -s) 2>/dev/null || echo unknown`
1630uname -v = `(uname -v) 2>/dev/null || echo unknown`
1631
1632/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1633/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1634
1635/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1636/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1637/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1638/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1639/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1640/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1641/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1642
1643_ASUNAME
1644
1645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646for as_dir in $PATH
1647do
1648 IFS=$as_save_IFS
1649 test -z "$as_dir" && as_dir=.
1650 echo "PATH: $as_dir"
1651done
1652IFS=$as_save_IFS
1653
1654} >&5
1655
1656cat >&5 <<_ACEOF
1657
1658
1659## ----------- ##
1660## Core tests. ##
1661## ----------- ##
1662
1663_ACEOF
1664
1665
1666# Keep a trace of the command line.
1667# Strip out --no-create and --no-recursion so they do not pile up.
1668# Strip out --silent because we don't want to record it for future runs.
1669# Also quote any args containing shell meta-characters.
1670# Make two passes to allow for proper duplicate-argument suppression.
1671ac_configure_args=
1672ac_configure_args0=
1673ac_configure_args1=
1674ac_must_keep_next=false
1675for ac_pass in 1 2
1676do
1677 for ac_arg
1678 do
1679 case $ac_arg in
1680 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1681 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1682 | -silent | --silent | --silen | --sile | --sil)
1683 continue ;;
1684 *\'*)
1685 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1686 esac
1687 case $ac_pass in
1688 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1689 2)
1690 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1691 if test $ac_must_keep_next = true; then
1692 ac_must_keep_next=false # Got value, back to normal.
1693 else
1694 case $ac_arg in
1695 *=* | --config-cache | -C | -disable-* | --disable-* \
1696 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1697 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1698 | -with-* | --with-* | -without-* | --without-* | --x)
1699 case "$ac_configure_args0 " in
1700 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1701 esac
1702 ;;
1703 -* ) ac_must_keep_next=true ;;
1704 esac
1705 fi
1706 ac_configure_args="$ac_configure_args '$ac_arg'"
1707 ;;
1708 esac
1709 done
1710done
1711$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1712$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1713
1714# When interrupted or exit'd, cleanup temporary files, and complete
1715# config.log. We remove comments because anyway the quotes in there
1716# would cause problems or look ugly.
1717# WARNING: Use '\'' to represent an apostrophe within the trap.
1718# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1719trap 'exit_status=$?
1720 # Save into config.log some information that might help in debugging.
1721 {
1722 echo
1723
1724 cat <<\_ASBOX
1725## ---------------- ##
1726## Cache variables. ##
1727## ---------------- ##
1728_ASBOX
1729 echo
1730 # The following way of writing the cache mishandles newlines in values,
1731(
1732 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1733 eval ac_val=\$$ac_var
1734 case $ac_val in #(
1735 *${as_nl}*)
1736 case $ac_var in #(
1737 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1738echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1739 esac
1740 case $ac_var in #(
1741 _ | IFS | as_nl) ;; #(
1742 *) $as_unset $ac_var ;;
1743 esac ;;
1744 esac
1745 done
1746 (set) 2>&1 |
1747 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1748 *${as_nl}ac_space=\ *)
1749 sed -n \
1750 "s/'\''/'\''\\\\'\'''\''/g;
1751 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1752 ;; #(
1753 *)
1754 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1755 ;;
1756 esac |
1757 sort
1758)
1759 echo
1760
1761 cat <<\_ASBOX
1762## ----------------- ##
1763## Output variables. ##
1764## ----------------- ##
1765_ASBOX
1766 echo
1767 for ac_var in $ac_subst_vars
1768 do
1769 eval ac_val=\$$ac_var
1770 case $ac_val in
1771 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1772 esac
1773 echo "$ac_var='\''$ac_val'\''"
1774 done | sort
1775 echo
1776
1777 if test -n "$ac_subst_files"; then
1778 cat <<\_ASBOX
1779## ------------------- ##
1780## File substitutions. ##
1781## ------------------- ##
1782_ASBOX
1783 echo
1784 for ac_var in $ac_subst_files
1785 do
1786 eval ac_val=\$$ac_var
1787 case $ac_val in
1788 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1789 esac
1790 echo "$ac_var='\''$ac_val'\''"
1791 done | sort
1792 echo
1793 fi
1794
1795 if test -s confdefs.h; then
1796 cat <<\_ASBOX
1797## ----------- ##
1798## confdefs.h. ##
1799## ----------- ##
1800_ASBOX
1801 echo
1802 cat confdefs.h
1803 echo
1804 fi
1805 test "$ac_signal" != 0 &&
1806 echo "$as_me: caught signal $ac_signal"
1807 echo "$as_me: exit $exit_status"
1808 } >&5
1809 rm -f core *.core core.conftest.* &&
1810 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1811 exit $exit_status
1812' 0
1813for ac_signal in 1 2 13 15; do
1814 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1815done
1816ac_signal=0
1817
1818# confdefs.h avoids OS command line length limits that DEFS can exceed.
1819rm -f -r conftest* confdefs.h
1820
1821# Predefined preprocessor variables.
1822
1823cat >>confdefs.h <<_ACEOF
1824#define PACKAGE_NAME "$PACKAGE_NAME"
1825_ACEOF
1826
1827
1828cat >>confdefs.h <<_ACEOF
1829#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1830_ACEOF
1831
1832
1833cat >>confdefs.h <<_ACEOF
1834#define PACKAGE_VERSION "$PACKAGE_VERSION"
1835_ACEOF
1836
1837
1838cat >>confdefs.h <<_ACEOF
1839#define PACKAGE_STRING "$PACKAGE_STRING"
1840_ACEOF
1841
1842
1843cat >>confdefs.h <<_ACEOF
1844#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1845_ACEOF
1846
1847
1848# Let the site file select an alternate cache file if it wants to.
1849# Prefer explicitly selected file to automatically selected ones.
1850if test -n "$CONFIG_SITE"; then
1851 set x "$CONFIG_SITE"
1852elif test "x$prefix" != xNONE; then
1853 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1854else
1855 set x "$ac_default_prefix/share/config.site" \
1856 "$ac_default_prefix/etc/config.site"
1857fi
1858shift
1859for ac_site_file
1860do
1861 if test -r "$ac_site_file"; then
1862 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1863echo "$as_me: loading site script $ac_site_file" >&6;}
1864 sed 's/^/| /' "$ac_site_file" >&5
1865 . "$ac_site_file"
1866 fi
1867done
1868
1869if test -r "$cache_file"; then
1870 # Some versions of bash will fail to source /dev/null (special
1871 # files actually), so we avoid doing that.
1872 if test -f "$cache_file"; then
1873 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1874echo "$as_me: loading cache $cache_file" >&6;}
1875 case $cache_file in
1876 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1877 *) . "./$cache_file";;
1878 esac
1879 fi
1880else
1881 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1882echo "$as_me: creating cache $cache_file" >&6;}
1883 >$cache_file
1884fi
1885
1886# Check that the precious variables saved in the cache have kept the same
1887# value.
1888ac_cache_corrupted=false
1889for ac_var in $ac_precious_vars; do
1890 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1891 eval ac_new_set=\$ac_env_${ac_var}_set
1892 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1893 eval ac_new_val=\$ac_env_${ac_var}_value
1894 case $ac_old_set,$ac_new_set in
1895 set,)
1896 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1897echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1898 ac_cache_corrupted=: ;;
1899 ,set)
1900 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1901echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1902 ac_cache_corrupted=: ;;
1903 ,);;
1904 *)
1905 if test "x$ac_old_val" != "x$ac_new_val"; then
1906 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1907echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1908 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1909echo "$as_me: former value: $ac_old_val" >&2;}
1910 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1911echo "$as_me: current value: $ac_new_val" >&2;}
1912 ac_cache_corrupted=:
1913 fi;;
1914 esac
1915 # Pass precious variables to config.status.
1916 if test "$ac_new_set" = set; then
1917 case $ac_new_val in
1918 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1919 *) ac_arg=$ac_var=$ac_new_val ;;
1920 esac
1921 case " $ac_configure_args " in
1922 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1923 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1924 esac
1925 fi
1926done
1927if $ac_cache_corrupted; then
1928 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1929echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1930 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1931echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1932 { (exit 1); exit 1; }; }
1933fi
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959ac_ext=c
1960ac_cpp='$CPP $CPPFLAGS'
1961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1963ac_compiler_gnu=$ac_cv_c_compiler_gnu
1964
1965
1966
1967# See libtool.info "Libtool's versioning system"
1968libxtables_vcurrent=2
1969libxtables_vage=0
1970
1971ac_config_headers="$ac_config_headers config.h"
1972
1973
1974ac_aux_dir=
1975for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1976 if test -f "$ac_dir/install-sh"; then
1977 ac_aux_dir=$ac_dir
1978 ac_install_sh="$ac_aux_dir/install-sh -c"
1979 break
1980 elif test -f "$ac_dir/install.sh"; then
1981 ac_aux_dir=$ac_dir
1982 ac_install_sh="$ac_aux_dir/install.sh -c"
1983 break
1984 elif test -f "$ac_dir/shtool"; then
1985 ac_aux_dir=$ac_dir
1986 ac_install_sh="$ac_aux_dir/shtool install -c"
1987 break
1988 fi
1989done
1990if test -z "$ac_aux_dir"; then
1991 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1992echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1993 { (exit 1); exit 1; }; }
1994fi
1995
1996# These three variables are undocumented and unsupported,
1997# and are intended to be withdrawn in a future Autoconf release.
1998# They can cause serious problems if a builder's source tree is in a directory
1999# whose full name contains unusual characters.
2000ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2001ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2002ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2003
2004
2005# Find a good install program. We prefer a C program (faster),
2006# so one script is as good as another. But avoid the broken or
2007# incompatible versions:
2008# SysV /etc/install, /usr/sbin/install
2009# SunOS /usr/etc/install
2010# IRIX /sbin/install
2011# AIX /bin/install
2012# AmigaOS /C/install, which installs bootblocks on floppy discs
2013# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2014# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2015# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2016# OS/2's system install, which has a completely different semantic
2017# ./install, which can be erroneously created by make from ./install.sh.
2018{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2019echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2020if test -z "$INSTALL"; then
2021if test "${ac_cv_path_install+set}" = set; then
2022 echo $ECHO_N "(cached) $ECHO_C" >&6
2023else
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025for as_dir in $PATH
2026do
2027 IFS=$as_save_IFS
2028 test -z "$as_dir" && as_dir=.
2029 # Account for people who put trailing slashes in PATH elements.
2030case $as_dir/ in
2031 ./ | .// | /cC/* | \
2032 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2033 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2034 /usr/ucb/* ) ;;
2035 *)
2036 # OSF1 and SCO ODT 3.0 have their own names for install.
2037 # Don't use installbsd from OSF since it installs stuff as root
2038 # by default.
2039 for ac_prog in ginstall scoinst install; do
2040 for ac_exec_ext in '' $ac_executable_extensions; do
2041 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2042 if test $ac_prog = install &&
2043 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2044 # AIX install. It has an incompatible calling convention.
2045 :
2046 elif test $ac_prog = install &&
2047 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2048 # program-specific install script used by HP pwplus--don't use.
2049 :
2050 else
2051 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2052 break 3
2053 fi
2054 fi
2055 done
2056 done
2057 ;;
2058esac
2059done
2060IFS=$as_save_IFS
2061
2062
2063fi
2064 if test "${ac_cv_path_install+set}" = set; then
2065 INSTALL=$ac_cv_path_install
2066 else
2067 # As a last resort, use the slow shell script. Don't cache a
2068 # value for INSTALL within a source directory, because that will
2069 # break other packages using the cache if that directory is
2070 # removed, or if the value is a relative name.
2071 INSTALL=$ac_install_sh
2072 fi
2073fi
2074{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2075echo "${ECHO_T}$INSTALL" >&6; }
2076
2077# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2078# It thinks the first close brace ends the variable substitution.
2079test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2080
2081test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2082
2083test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2084
2085am__api_version='1.10'
2086
2087{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2088echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2089# Just in case
2090sleep 1
2091echo timestamp > conftest.file
2092# Do `set' in a subshell so we don't clobber the current shell's
2093# arguments. Must try -L first in case configure is actually a
2094# symlink; some systems play weird games with the mod time of symlinks
2095# (eg FreeBSD returns the mod time of the symlink's containing
2096# directory).
2097if (
2098 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2099 if test "$*" = "X"; then
2100 # -L didn't work.
2101 set X `ls -t $srcdir/configure conftest.file`
2102 fi
2103 rm -f conftest.file
2104 if test "$*" != "X $srcdir/configure conftest.file" \
2105 && test "$*" != "X conftest.file $srcdir/configure"; then
2106
2107 # If neither matched, then we have a broken ls. This can happen
2108 # if, for instance, CONFIG_SHELL is bash and it inherits a
2109 # broken ls alias from the environment. This has actually
2110 # happened. Such a system could not be considered "sane".
2111 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2112alias in your environment" >&5
2113echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2114alias in your environment" >&2;}
2115 { (exit 1); exit 1; }; }
2116 fi
2117
2118 test "$2" = conftest.file
2119 )
2120then
2121 # Ok.
2122 :
2123else
2124 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2125Check your system clock" >&5
2126echo "$as_me: error: newly created file is older than distributed files!
2127Check your system clock" >&2;}
2128 { (exit 1); exit 1; }; }
2129fi
2130{ echo "$as_me:$LINENO: result: yes" >&5
2131echo "${ECHO_T}yes" >&6; }
2132test "$program_prefix" != NONE &&
2133 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2134# Use a double $ so make ignores it.
2135test "$program_suffix" != NONE &&
2136 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2137# Double any \ or $. echo might interpret backslashes.
2138# By default was `s,x,x', remove it if useless.
2139cat <<\_ACEOF >conftest.sed
2140s/[\\$]/&&/g;s/;s,x,x,$//
2141_ACEOF
2142program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2143rm -f conftest.sed
2144
2145# expand $ac_aux_dir to an absolute path
2146am_aux_dir=`cd $ac_aux_dir && pwd`
2147
2148test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2149# Use eval to expand $SHELL
2150if eval "$MISSING --run true"; then
2151 am_missing_run="$MISSING --run "
2152else
2153 am_missing_run=
2154 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2155echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2156fi
2157
2158{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2159echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2160if test -z "$MKDIR_P"; then
2161 if test "${ac_cv_path_mkdir+set}" = set; then
2162 echo $ECHO_N "(cached) $ECHO_C" >&6
2163else
2164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2166do
2167 IFS=$as_save_IFS
2168 test -z "$as_dir" && as_dir=.
2169 for ac_prog in mkdir gmkdir; do
2170 for ac_exec_ext in '' $ac_executable_extensions; do
2171 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2172 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2173 'mkdir (GNU coreutils) '* | \
2174 'mkdir (coreutils) '* | \
2175 'mkdir (fileutils) '4.1*)
2176 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2177 break 3;;
2178 esac
2179 done
2180 done
2181done
2182IFS=$as_save_IFS
2183
2184fi
2185
2186 if test "${ac_cv_path_mkdir+set}" = set; then
2187 MKDIR_P="$ac_cv_path_mkdir -p"
2188 else
2189 # As a last resort, use the slow shell script. Don't cache a
2190 # value for MKDIR_P within a source directory, because that will
2191 # break other packages using the cache if that directory is
2192 # removed, or if the value is a relative name.
2193 test -d ./--version && rmdir ./--version
2194 MKDIR_P="$ac_install_sh -d"
2195 fi
2196fi
2197{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2198echo "${ECHO_T}$MKDIR_P" >&6; }
2199
2200mkdir_p="$MKDIR_P"
2201case $mkdir_p in
2202 [\\/$]* | ?:[\\/]*) ;;
2203 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2204esac
2205
2206for ac_prog in gawk mawk nawk awk
2207do
2208 # Extract the first word of "$ac_prog", so it can be a program name with args.
2209set dummy $ac_prog; ac_word=$2
2210{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2212if test "${ac_cv_prog_AWK+set}" = set; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2214else
2215 if test -n "$AWK"; then
2216 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2217else
2218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219for as_dir in $PATH
2220do
2221 IFS=$as_save_IFS
2222 test -z "$as_dir" && as_dir=.
2223 for ac_exec_ext in '' $ac_executable_extensions; do
2224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2225 ac_cv_prog_AWK="$ac_prog"
2226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2227 break 2
2228 fi
2229done
2230done
2231IFS=$as_save_IFS
2232
2233fi
2234fi
2235AWK=$ac_cv_prog_AWK
2236if test -n "$AWK"; then
2237 { echo "$as_me:$LINENO: result: $AWK" >&5
2238echo "${ECHO_T}$AWK" >&6; }
2239else
2240 { echo "$as_me:$LINENO: result: no" >&5
2241echo "${ECHO_T}no" >&6; }
2242fi
2243
2244
2245 test -n "$AWK" && break
2246done
2247
2248{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2249echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2250set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2251if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2253else
2254 cat >conftest.make <<\_ACEOF
2255SHELL = /bin/sh
2256all:
2257 @echo '@@@%%%=$(MAKE)=@@@%%%'
2258_ACEOF
2259# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2260case `${MAKE-make} -f conftest.make 2>/dev/null` in
2261 *@@@%%%=?*=@@@%%%*)
2262 eval ac_cv_prog_make_${ac_make}_set=yes;;
2263 *)
2264 eval ac_cv_prog_make_${ac_make}_set=no;;
2265esac
2266rm -f conftest.make
2267fi
2268if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2269 { echo "$as_me:$LINENO: result: yes" >&5
2270echo "${ECHO_T}yes" >&6; }
2271 SET_MAKE=
2272else
2273 { echo "$as_me:$LINENO: result: no" >&5
2274echo "${ECHO_T}no" >&6; }
2275 SET_MAKE="MAKE=${MAKE-make}"
2276fi
2277
2278rm -rf .tst 2>/dev/null
2279mkdir .tst 2>/dev/null
2280if test -d .tst; then
2281 am__leading_dot=.
2282else
2283 am__leading_dot=_
2284fi
2285rmdir .tst 2>/dev/null
2286
2287if test "`cd $srcdir && pwd`" != "`pwd`"; then
2288 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2289 # is not polluted with repeated "-I."
2290 am__isrc=' -I$(srcdir)'
2291 # test to see if srcdir already configured
2292 if test -f $srcdir/config.status; then
2293 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2294echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2295 { (exit 1); exit 1; }; }
2296 fi
2297fi
2298
2299# test whether we have cygpath
2300if test -z "$CYGPATH_W"; then
2301 if (cygpath --version) >/dev/null 2>/dev/null; then
2302 CYGPATH_W='cygpath -w'
2303 else
2304 CYGPATH_W=echo
2305 fi
2306fi
2307
2308
2309# Define the identity of the package.
2310 PACKAGE='iptables'
2311 VERSION='1.4.3.2'
2312
2313
2314cat >>confdefs.h <<_ACEOF
2315#define PACKAGE "$PACKAGE"
2316_ACEOF
2317
2318
2319cat >>confdefs.h <<_ACEOF
2320#define VERSION "$VERSION"
2321_ACEOF
2322
2323# Some tools Automake needs.
2324
2325ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2326
2327
2328AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2329
2330
2331AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2332
2333
2334AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2335
2336
2337MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2338
2339install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2340
2341# Installed binaries are usually stripped using `strip' when the user
2342# run `make install-strip'. However `strip' might not be the right
2343# tool to use in cross-compilation environments, therefore Automake
2344# will honor the `STRIP' environment variable to overrule this program.
2345if test "$cross_compiling" != no; then
2346 if test -n "$ac_tool_prefix"; then
2347 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2348set dummy ${ac_tool_prefix}strip; ac_word=$2
2349{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2351if test "${ac_cv_prog_STRIP+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2353else
2354 if test -n "$STRIP"; then
2355 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2356else
2357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358for as_dir in $PATH
2359do
2360 IFS=$as_save_IFS
2361 test -z "$as_dir" && as_dir=.
2362 for ac_exec_ext in '' $ac_executable_extensions; do
2363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2364 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2366 break 2
2367 fi
2368done
2369done
2370IFS=$as_save_IFS
2371
2372fi
2373fi
2374STRIP=$ac_cv_prog_STRIP
2375if test -n "$STRIP"; then
2376 { echo "$as_me:$LINENO: result: $STRIP" >&5
2377echo "${ECHO_T}$STRIP" >&6; }
2378else
2379 { echo "$as_me:$LINENO: result: no" >&5
2380echo "${ECHO_T}no" >&6; }
2381fi
2382
2383
2384fi
2385if test -z "$ac_cv_prog_STRIP"; then
2386 ac_ct_STRIP=$STRIP
2387 # Extract the first word of "strip", so it can be a program name with args.
2388set dummy strip; ac_word=$2
2389{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2391if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2392 echo $ECHO_N "(cached) $ECHO_C" >&6
2393else
2394 if test -n "$ac_ct_STRIP"; then
2395 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2396else
2397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398for as_dir in $PATH
2399do
2400 IFS=$as_save_IFS
2401 test -z "$as_dir" && as_dir=.
2402 for ac_exec_ext in '' $ac_executable_extensions; do
2403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2404 ac_cv_prog_ac_ct_STRIP="strip"
2405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2406 break 2
2407 fi
2408done
2409done
2410IFS=$as_save_IFS
2411
2412fi
2413fi
2414ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2415if test -n "$ac_ct_STRIP"; then
2416 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2417echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2418else
2419 { echo "$as_me:$LINENO: result: no" >&5
2420echo "${ECHO_T}no" >&6; }
2421fi
2422
2423 if test "x$ac_ct_STRIP" = x; then
2424 STRIP=":"
2425 else
2426 case $cross_compiling:$ac_tool_warned in
2427yes:)
2428{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2429whose name does not start with the host triplet. If you think this
2430configuration is useful to you, please write to autoconf@gnu.org." >&5
2431echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2432whose name does not start with the host triplet. If you think this
2433configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2434ac_tool_warned=yes ;;
2435esac
2436 STRIP=$ac_ct_STRIP
2437 fi
2438else
2439 STRIP="$ac_cv_prog_STRIP"
2440fi
2441
2442fi
2443INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2444
2445# We need awk for the "check" target. The system "awk" is bad on
2446# some platforms.
2447# Always define AMTAR for backward compatibility.
2448
2449AMTAR=${AMTAR-"${am_missing_run}tar"}
2450
2451am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2452
2453
2454
2455
2456
2457ac_ext=c
2458ac_cpp='$CPP $CPPFLAGS'
2459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2461ac_compiler_gnu=$ac_cv_c_compiler_gnu
2462if test -n "$ac_tool_prefix"; then
2463 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2464set dummy ${ac_tool_prefix}gcc; ac_word=$2
2465{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2467if test "${ac_cv_prog_CC+set}" = set; then
2468 echo $ECHO_N "(cached) $ECHO_C" >&6
2469else
2470 if test -n "$CC"; then
2471 ac_cv_prog_CC="$CC" # Let the user override the test.
2472else
2473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474for as_dir in $PATH
2475do
2476 IFS=$as_save_IFS
2477 test -z "$as_dir" && as_dir=.
2478 for ac_exec_ext in '' $ac_executable_extensions; do
2479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2480 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482 break 2
2483 fi
2484done
2485done
2486IFS=$as_save_IFS
2487
2488fi
2489fi
2490CC=$ac_cv_prog_CC
2491if test -n "$CC"; then
2492 { echo "$as_me:$LINENO: result: $CC" >&5
2493echo "${ECHO_T}$CC" >&6; }
2494else
2495 { echo "$as_me:$LINENO: result: no" >&5
2496echo "${ECHO_T}no" >&6; }
2497fi
2498
2499
2500fi
2501if test -z "$ac_cv_prog_CC"; then
2502 ac_ct_CC=$CC
2503 # Extract the first word of "gcc", so it can be a program name with args.
2504set dummy gcc; ac_word=$2
2505{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2507if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2509else
2510 if test -n "$ac_ct_CC"; then
2511 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2512else
2513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514for as_dir in $PATH
2515do
2516 IFS=$as_save_IFS
2517 test -z "$as_dir" && as_dir=.
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2520 ac_cv_prog_ac_ct_CC="gcc"
2521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2522 break 2
2523 fi
2524done
2525done
2526IFS=$as_save_IFS
2527
2528fi
2529fi
2530ac_ct_CC=$ac_cv_prog_ac_ct_CC
2531if test -n "$ac_ct_CC"; then
2532 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2533echo "${ECHO_T}$ac_ct_CC" >&6; }
2534else
2535 { echo "$as_me:$LINENO: result: no" >&5
2536echo "${ECHO_T}no" >&6; }
2537fi
2538
2539 if test "x$ac_ct_CC" = x; then
2540 CC=""
2541 else
2542 case $cross_compiling:$ac_tool_warned in
2543yes:)
2544{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2545whose name does not start with the host triplet. If you think this
2546configuration is useful to you, please write to autoconf@gnu.org." >&5
2547echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2548whose name does not start with the host triplet. If you think this
2549configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2550ac_tool_warned=yes ;;
2551esac
2552 CC=$ac_ct_CC
2553 fi
2554else
2555 CC="$ac_cv_prog_CC"
2556fi
2557
2558if test -z "$CC"; then
2559 if test -n "$ac_tool_prefix"; then
2560 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2561set dummy ${ac_tool_prefix}cc; ac_word=$2
2562{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2564if test "${ac_cv_prog_CC+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2566else
2567 if test -n "$CC"; then
2568 ac_cv_prog_CC="$CC" # Let the user override the test.
2569else
2570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571for as_dir in $PATH
2572do
2573 IFS=$as_save_IFS
2574 test -z "$as_dir" && as_dir=.
2575 for ac_exec_ext in '' $ac_executable_extensions; do
2576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2577 ac_cv_prog_CC="${ac_tool_prefix}cc"
2578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2579 break 2
2580 fi
2581done
2582done
2583IFS=$as_save_IFS
2584
2585fi
2586fi
2587CC=$ac_cv_prog_CC
2588if test -n "$CC"; then
2589 { echo "$as_me:$LINENO: result: $CC" >&5
2590echo "${ECHO_T}$CC" >&6; }
2591else
2592 { echo "$as_me:$LINENO: result: no" >&5
2593echo "${ECHO_T}no" >&6; }
2594fi
2595
2596
2597 fi
2598fi
2599if test -z "$CC"; then
2600 # Extract the first word of "cc", so it can be a program name with args.
2601set dummy cc; ac_word=$2
2602{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2604if test "${ac_cv_prog_CC+set}" = set; then
2605 echo $ECHO_N "(cached) $ECHO_C" >&6
2606else
2607 if test -n "$CC"; then
2608 ac_cv_prog_CC="$CC" # Let the user override the test.
2609else
2610 ac_prog_rejected=no
2611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612for as_dir in $PATH
2613do
2614 IFS=$as_save_IFS
2615 test -z "$as_dir" && as_dir=.
2616 for ac_exec_ext in '' $ac_executable_extensions; do
2617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2618 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2619 ac_prog_rejected=yes
2620 continue
2621 fi
2622 ac_cv_prog_CC="cc"
2623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624 break 2
2625 fi
2626done
2627done
2628IFS=$as_save_IFS
2629
2630if test $ac_prog_rejected = yes; then
2631 # We found a bogon in the path, so make sure we never use it.
2632 set dummy $ac_cv_prog_CC
2633 shift
2634 if test $# != 0; then
2635 # We chose a different compiler from the bogus one.
2636 # However, it has the same basename, so the bogon will be chosen
2637 # first if we set CC to just the basename; use the full file name.
2638 shift
2639 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2640 fi
2641fi
2642fi
2643fi
2644CC=$ac_cv_prog_CC
2645if test -n "$CC"; then
2646 { echo "$as_me:$LINENO: result: $CC" >&5
2647echo "${ECHO_T}$CC" >&6; }
2648else
2649 { echo "$as_me:$LINENO: result: no" >&5
2650echo "${ECHO_T}no" >&6; }
2651fi
2652
2653
2654fi
2655if test -z "$CC"; then
2656 if test -n "$ac_tool_prefix"; then
2657 for ac_prog in cl.exe
2658 do
2659 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2660set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2661{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2663if test "${ac_cv_prog_CC+set}" = set; then
2664 echo $ECHO_N "(cached) $ECHO_C" >&6
2665else
2666 if test -n "$CC"; then
2667 ac_cv_prog_CC="$CC" # Let the user override the test.
2668else
2669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670for as_dir in $PATH
2671do
2672 IFS=$as_save_IFS
2673 test -z "$as_dir" && as_dir=.
2674 for ac_exec_ext in '' $ac_executable_extensions; do
2675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2676 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2678 break 2
2679 fi
2680done
2681done
2682IFS=$as_save_IFS
2683
2684fi
2685fi
2686CC=$ac_cv_prog_CC
2687if test -n "$CC"; then
2688 { echo "$as_me:$LINENO: result: $CC" >&5
2689echo "${ECHO_T}$CC" >&6; }
2690else
2691 { echo "$as_me:$LINENO: result: no" >&5
2692echo "${ECHO_T}no" >&6; }
2693fi
2694
2695
2696 test -n "$CC" && break
2697 done
2698fi
2699if test -z "$CC"; then
2700 ac_ct_CC=$CC
2701 for ac_prog in cl.exe
2702do
2703 # Extract the first word of "$ac_prog", so it can be a program name with args.
2704set dummy $ac_prog; ac_word=$2
2705{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2707if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2709else
2710 if test -n "$ac_ct_CC"; then
2711 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2712else
2713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714for as_dir in $PATH
2715do
2716 IFS=$as_save_IFS
2717 test -z "$as_dir" && as_dir=.
2718 for ac_exec_ext in '' $ac_executable_extensions; do
2719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2720 ac_cv_prog_ac_ct_CC="$ac_prog"
2721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2722 break 2
2723 fi
2724done
2725done
2726IFS=$as_save_IFS
2727
2728fi
2729fi
2730ac_ct_CC=$ac_cv_prog_ac_ct_CC
2731if test -n "$ac_ct_CC"; then
2732 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2733echo "${ECHO_T}$ac_ct_CC" >&6; }
2734else
2735 { echo "$as_me:$LINENO: result: no" >&5
2736echo "${ECHO_T}no" >&6; }
2737fi
2738
2739
2740 test -n "$ac_ct_CC" && break
2741done
2742
2743 if test "x$ac_ct_CC" = x; then
2744 CC=""
2745 else
2746 case $cross_compiling:$ac_tool_warned in
2747yes:)
2748{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2749whose name does not start with the host triplet. If you think this
2750configuration is useful to you, please write to autoconf@gnu.org." >&5
2751echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2752whose name does not start with the host triplet. If you think this
2753configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2754ac_tool_warned=yes ;;
2755esac
2756 CC=$ac_ct_CC
2757 fi
2758fi
2759
2760fi
2761
2762
2763test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2764See \`config.log' for more details." >&5
2765echo "$as_me: error: no acceptable C compiler found in \$PATH
2766See \`config.log' for more details." >&2;}
2767 { (exit 1); exit 1; }; }
2768
2769# Provide some information about the compiler.
2770echo "$as_me:$LINENO: checking for C compiler version" >&5
2771ac_compiler=`set X $ac_compile; echo $2`
2772{ (ac_try="$ac_compiler --version >&5"
2773case "(($ac_try" in
2774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775 *) ac_try_echo=$ac_try;;
2776esac
2777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2778 (eval "$ac_compiler --version >&5") 2>&5
2779 ac_status=$?
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }
2782{ (ac_try="$ac_compiler -v >&5"
2783case "(($ac_try" in
2784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2785 *) ac_try_echo=$ac_try;;
2786esac
2787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2788 (eval "$ac_compiler -v >&5") 2>&5
2789 ac_status=$?
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }
2792{ (ac_try="$ac_compiler -V >&5"
2793case "(($ac_try" in
2794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795 *) ac_try_echo=$ac_try;;
2796esac
2797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2798 (eval "$ac_compiler -V >&5") 2>&5
2799 ac_status=$?
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }
2802
2803cat >conftest.$ac_ext <<_ACEOF
2804/* confdefs.h. */
2805_ACEOF
2806cat confdefs.h >>conftest.$ac_ext
2807cat >>conftest.$ac_ext <<_ACEOF
2808/* end confdefs.h. */
2809
2810int
2811main ()
2812{
2813
2814 ;
2815 return 0;
2816}
2817_ACEOF
2818ac_clean_files_save=$ac_clean_files
2819ac_clean_files="$ac_clean_files a.out a.exe b.out"
2820# Try to create an executable without -o first, disregard a.out.
2821# It will help us diagnose broken compilers, and finding out an intuition
2822# of exeext.
2823{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2824echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2825ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2826#
2827# List of possible output files, starting from the most likely.
2828# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2829# only as a last resort. b.out is created by i960 compilers.
2830ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2831#
2832# The IRIX 6 linker writes into existing files which may not be
2833# executable, retaining their permissions. Remove them first so a
2834# subsequent execution test works.
2835ac_rmfiles=
2836for ac_file in $ac_files
2837do
2838 case $ac_file in
2839 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2840 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2841 esac
2842done
2843rm -f $ac_rmfiles
2844
2845if { (ac_try="$ac_link_default"
2846case "(($ac_try" in
2847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848 *) ac_try_echo=$ac_try;;
2849esac
2850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2851 (eval "$ac_link_default") 2>&5
2852 ac_status=$?
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; then
2855 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2856# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2857# in a Makefile. We should not override ac_cv_exeext if it was cached,
2858# so that the user can short-circuit this test for compilers unknown to
2859# Autoconf.
2860for ac_file in $ac_files ''
2861do
2862 test -f "$ac_file" || continue
2863 case $ac_file in
2864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2865 ;;
2866 [ab].out )
2867 # We found the default executable, but exeext='' is most
2868 # certainly right.
2869 break;;
2870 *.* )
2871 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2872 then :; else
2873 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2874 fi
2875 # We set ac_cv_exeext here because the later test for it is not
2876 # safe: cross compilers may not add the suffix if given an `-o'
2877 # argument, so we may need to know it at that point already.
2878 # Even if this section looks crufty: it has the advantage of
2879 # actually working.
2880 break;;
2881 * )
2882 break;;
2883 esac
2884done
2885test "$ac_cv_exeext" = no && ac_cv_exeext=
2886
2887else
2888 ac_file=''
2889fi
2890
2891{ echo "$as_me:$LINENO: result: $ac_file" >&5
2892echo "${ECHO_T}$ac_file" >&6; }
2893if test -z "$ac_file"; then
2894 echo "$as_me: failed program was:" >&5
2895sed 's/^/| /' conftest.$ac_ext >&5
2896
2897{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2898See \`config.log' for more details." >&5
2899echo "$as_me: error: C compiler cannot create executables
2900See \`config.log' for more details." >&2;}
2901 { (exit 77); exit 77; }; }
2902fi
2903
2904ac_exeext=$ac_cv_exeext
2905
2906# Check that the compiler produces executables we can run. If not, either
2907# the compiler is broken, or we cross compile.
2908{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2909echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2910# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2911# If not cross compiling, check that we can run a simple program.
2912if test "$cross_compiling" != yes; then
2913 if { ac_try='./$ac_file'
2914 { (case "(($ac_try" in
2915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916 *) ac_try_echo=$ac_try;;
2917esac
2918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2919 (eval "$ac_try") 2>&5
2920 ac_status=$?
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); }; }; then
2923 cross_compiling=no
2924 else
2925 if test "$cross_compiling" = maybe; then
2926 cross_compiling=yes
2927 else
2928 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2929If you meant to cross compile, use \`--host'.
2930See \`config.log' for more details." >&5
2931echo "$as_me: error: cannot run C compiled programs.
2932If you meant to cross compile, use \`--host'.
2933See \`config.log' for more details." >&2;}
2934 { (exit 1); exit 1; }; }
2935 fi
2936 fi
2937fi
2938{ echo "$as_me:$LINENO: result: yes" >&5
2939echo "${ECHO_T}yes" >&6; }
2940
2941rm -f a.out a.exe conftest$ac_cv_exeext b.out
2942ac_clean_files=$ac_clean_files_save
2943# Check that the compiler produces executables we can run. If not, either
2944# the compiler is broken, or we cross compile.
2945{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2946echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2947{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2948echo "${ECHO_T}$cross_compiling" >&6; }
2949
2950{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2951echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2952if { (ac_try="$ac_link"
2953case "(($ac_try" in
2954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955 *) ac_try_echo=$ac_try;;
2956esac
2957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958 (eval "$ac_link") 2>&5
2959 ac_status=$?
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); }; then
2962 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2963# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2964# work properly (i.e., refer to `conftest.exe'), while it won't with
2965# `rm'.
2966for ac_file in conftest.exe conftest conftest.*; do
2967 test -f "$ac_file" || continue
2968 case $ac_file in
2969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2970 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2971 break;;
2972 * ) break;;
2973 esac
2974done
2975else
2976 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2977See \`config.log' for more details." >&5
2978echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2979See \`config.log' for more details." >&2;}
2980 { (exit 1); exit 1; }; }
2981fi
2982
2983rm -f conftest$ac_cv_exeext
2984{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2985echo "${ECHO_T}$ac_cv_exeext" >&6; }
2986
2987rm -f conftest.$ac_ext
2988EXEEXT=$ac_cv_exeext
2989ac_exeext=$EXEEXT
2990{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2991echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2992if test "${ac_cv_objext+set}" = set; then
2993 echo $ECHO_N "(cached) $ECHO_C" >&6
2994else
2995 cat >conftest.$ac_ext <<_ACEOF
2996/* confdefs.h. */
2997_ACEOF
2998cat confdefs.h >>conftest.$ac_ext
2999cat >>conftest.$ac_ext <<_ACEOF
3000/* end confdefs.h. */
3001
3002int
3003main ()
3004{
3005
3006 ;
3007 return 0;
3008}
3009_ACEOF
3010rm -f conftest.o conftest.obj
3011if { (ac_try="$ac_compile"
3012case "(($ac_try" in
3013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014 *) ac_try_echo=$ac_try;;
3015esac
3016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3017 (eval "$ac_compile") 2>&5
3018 ac_status=$?
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); }; then
3021 for ac_file in conftest.o conftest.obj conftest.*; do
3022 test -f "$ac_file" || continue;
3023 case $ac_file in
3024 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3025 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3026 break;;
3027 esac
3028done
3029else
3030 echo "$as_me: failed program was:" >&5
3031sed 's/^/| /' conftest.$ac_ext >&5
3032
3033{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3034See \`config.log' for more details." >&5
3035echo "$as_me: error: cannot compute suffix of object files: cannot compile
3036See \`config.log' for more details." >&2;}
3037 { (exit 1); exit 1; }; }
3038fi
3039
3040rm -f conftest.$ac_cv_objext conftest.$ac_ext
3041fi
3042{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3043echo "${ECHO_T}$ac_cv_objext" >&6; }
3044OBJEXT=$ac_cv_objext
3045ac_objext=$OBJEXT
3046{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3047echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3048if test "${ac_cv_c_compiler_gnu+set}" = set; then
3049 echo $ECHO_N "(cached) $ECHO_C" >&6
3050else
3051 cat >conftest.$ac_ext <<_ACEOF
3052/* confdefs.h. */
3053_ACEOF
3054cat confdefs.h >>conftest.$ac_ext
3055cat >>conftest.$ac_ext <<_ACEOF
3056/* end confdefs.h. */
3057
3058int
3059main ()
3060{
3061#ifndef __GNUC__
3062 choke me
3063#endif
3064
3065 ;
3066 return 0;
3067}
3068_ACEOF
3069rm -f conftest.$ac_objext
3070if { (ac_try="$ac_compile"
3071case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074esac
3075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_compile") 2>conftest.er1
3077 ac_status=$?
3078 grep -v '^ *+' conftest.er1 >conftest.err
3079 rm -f conftest.er1
3080 cat conftest.err >&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); } && {
3083 test -z "$ac_c_werror_flag" ||
3084 test ! -s conftest.err
3085 } && test -s conftest.$ac_objext; then
3086 ac_compiler_gnu=yes
3087else
3088 echo "$as_me: failed program was:" >&5
3089sed 's/^/| /' conftest.$ac_ext >&5
3090
3091 ac_compiler_gnu=no
3092fi
3093
3094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3095ac_cv_c_compiler_gnu=$ac_compiler_gnu
3096
3097fi
3098{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3099echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3100GCC=`test $ac_compiler_gnu = yes && echo yes`
3101ac_test_CFLAGS=${CFLAGS+set}
3102ac_save_CFLAGS=$CFLAGS
3103{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3104echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3105if test "${ac_cv_prog_cc_g+set}" = set; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
3107else
3108 ac_save_c_werror_flag=$ac_c_werror_flag
3109 ac_c_werror_flag=yes
3110 ac_cv_prog_cc_g=no
3111 CFLAGS="-g"
3112 cat >conftest.$ac_ext <<_ACEOF
3113/* confdefs.h. */
3114_ACEOF
3115cat confdefs.h >>conftest.$ac_ext
3116cat >>conftest.$ac_ext <<_ACEOF
3117/* end confdefs.h. */
3118
3119int
3120main ()
3121{
3122
3123 ;
3124 return 0;
3125}
3126_ACEOF
3127rm -f conftest.$ac_objext
3128if { (ac_try="$ac_compile"
3129case "(($ac_try" in
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3132esac
3133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134 (eval "$ac_compile") 2>conftest.er1
3135 ac_status=$?
3136 grep -v '^ *+' conftest.er1 >conftest.err
3137 rm -f conftest.er1
3138 cat conftest.err >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } && {
3141 test -z "$ac_c_werror_flag" ||
3142 test ! -s conftest.err
3143 } && test -s conftest.$ac_objext; then
3144 ac_cv_prog_cc_g=yes
3145else
3146 echo "$as_me: failed program was:" >&5
3147sed 's/^/| /' conftest.$ac_ext >&5
3148
3149 CFLAGS=""
3150 cat >conftest.$ac_ext <<_ACEOF
3151/* confdefs.h. */
3152_ACEOF
3153cat confdefs.h >>conftest.$ac_ext
3154cat >>conftest.$ac_ext <<_ACEOF
3155/* end confdefs.h. */
3156
3157int
3158main ()
3159{
3160
3161 ;
3162 return 0;
3163}
3164_ACEOF
3165rm -f conftest.$ac_objext
3166if { (ac_try="$ac_compile"
3167case "(($ac_try" in
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3170esac
3171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_compile") 2>conftest.er1
3173 ac_status=$?
3174 grep -v '^ *+' conftest.er1 >conftest.err
3175 rm -f conftest.er1
3176 cat conftest.err >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } && {
3179 test -z "$ac_c_werror_flag" ||
3180 test ! -s conftest.err
3181 } && test -s conftest.$ac_objext; then
3182 :
3183else
3184 echo "$as_me: failed program was:" >&5
3185sed 's/^/| /' conftest.$ac_ext >&5
3186
3187 ac_c_werror_flag=$ac_save_c_werror_flag
3188 CFLAGS="-g"
3189 cat >conftest.$ac_ext <<_ACEOF
3190/* confdefs.h. */
3191_ACEOF
3192cat confdefs.h >>conftest.$ac_ext
3193cat >>conftest.$ac_ext <<_ACEOF
3194/* end confdefs.h. */
3195
3196int
3197main ()
3198{
3199
3200 ;
3201 return 0;
3202}
3203_ACEOF
3204rm -f conftest.$ac_objext
3205if { (ac_try="$ac_compile"
3206case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3209esac
3210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211 (eval "$ac_compile") 2>conftest.er1
3212 ac_status=$?
3213 grep -v '^ *+' conftest.er1 >conftest.err
3214 rm -f conftest.er1
3215 cat conftest.err >&5
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); } && {
3218 test -z "$ac_c_werror_flag" ||
3219 test ! -s conftest.err
3220 } && test -s conftest.$ac_objext; then
3221 ac_cv_prog_cc_g=yes
3222else
3223 echo "$as_me: failed program was:" >&5
3224sed 's/^/| /' conftest.$ac_ext >&5
3225
3226
3227fi
3228
3229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230fi
3231
3232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3233fi
3234
3235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3236 ac_c_werror_flag=$ac_save_c_werror_flag
3237fi
3238{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3239echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3240if test "$ac_test_CFLAGS" = set; then
3241 CFLAGS=$ac_save_CFLAGS
3242elif test $ac_cv_prog_cc_g = yes; then
3243 if test "$GCC" = yes; then
3244 CFLAGS="-g -O2"
3245 else
3246 CFLAGS="-g"
3247 fi
3248else
3249 if test "$GCC" = yes; then
3250 CFLAGS="-O2"
3251 else
3252 CFLAGS=
3253 fi
3254fi
3255{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3256echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3257if test "${ac_cv_prog_cc_c89+set}" = set; then
3258 echo $ECHO_N "(cached) $ECHO_C" >&6
3259else
3260 ac_cv_prog_cc_c89=no
3261ac_save_CC=$CC
3262cat >conftest.$ac_ext <<_ACEOF
3263/* confdefs.h. */
3264_ACEOF
3265cat confdefs.h >>conftest.$ac_ext
3266cat >>conftest.$ac_ext <<_ACEOF
3267/* end confdefs.h. */
3268#include <stdarg.h>
3269#include <stdio.h>
3270#include <sys/types.h>
3271#include <sys/stat.h>
3272/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3273struct buf { int x; };
3274FILE * (*rcsopen) (struct buf *, struct stat *, int);
3275static char *e (p, i)
3276 char **p;
3277 int i;
3278{
3279 return p[i];
3280}
3281static char *f (char * (*g) (char **, int), char **p, ...)
3282{
3283 char *s;
3284 va_list v;
3285 va_start (v,p);
3286 s = g (p, va_arg (v,int));
3287 va_end (v);
3288 return s;
3289}
3290
3291/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3292 function prototypes and stuff, but not '\xHH' hex character constants.
3293 These don't provoke an error unfortunately, instead are silently treated
3294 as 'x'. The following induces an error, until -std is added to get
3295 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3296 array size at least. It's necessary to write '\x00'==0 to get something
3297 that's true only with -std. */
3298int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3299
3300/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3301 inside strings and character constants. */
3302#define FOO(x) 'x'
3303int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3304
3305int test (int i, double x);
3306struct s1 {int (*f) (int a);};
3307struct s2 {int (*f) (double a);};
3308int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3309int argc;
3310char **argv;
3311int
3312main ()
3313{
3314return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3315 ;
3316 return 0;
3317}
3318_ACEOF
3319for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3320 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3321do
3322 CC="$ac_save_CC $ac_arg"
3323 rm -f conftest.$ac_objext
3324if { (ac_try="$ac_compile"
3325case "(($ac_try" in
3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327 *) ac_try_echo=$ac_try;;
3328esac
3329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3330 (eval "$ac_compile") 2>conftest.er1
3331 ac_status=$?
3332 grep -v '^ *+' conftest.er1 >conftest.err
3333 rm -f conftest.er1
3334 cat conftest.err >&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); } && {
3337 test -z "$ac_c_werror_flag" ||
3338 test ! -s conftest.err
3339 } && test -s conftest.$ac_objext; then
3340 ac_cv_prog_cc_c89=$ac_arg
3341else
3342 echo "$as_me: failed program was:" >&5
3343sed 's/^/| /' conftest.$ac_ext >&5
3344
3345
3346fi
3347
3348rm -f core conftest.err conftest.$ac_objext
3349 test "x$ac_cv_prog_cc_c89" != "xno" && break
3350done
3351rm -f conftest.$ac_ext
3352CC=$ac_save_CC
3353
3354fi
3355# AC_CACHE_VAL
3356case "x$ac_cv_prog_cc_c89" in
3357 x)
3358 { echo "$as_me:$LINENO: result: none needed" >&5
3359echo "${ECHO_T}none needed" >&6; } ;;
3360 xno)
3361 { echo "$as_me:$LINENO: result: unsupported" >&5
3362echo "${ECHO_T}unsupported" >&6; } ;;
3363 *)
3364 CC="$CC $ac_cv_prog_cc_c89"
3365 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3366echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3367esac
3368
3369
3370ac_ext=c
3371ac_cpp='$CPP $CPPFLAGS'
3372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3374ac_compiler_gnu=$ac_cv_c_compiler_gnu
3375DEPDIR="${am__leading_dot}deps"
3376
3377ac_config_commands="$ac_config_commands depfiles"
3378
3379
3380am_make=${MAKE-make}
3381cat > confinc << 'END'
3382am__doit:
3383 @echo done
3384.PHONY: am__doit
3385END
3386# If we don't find an include directive, just comment out the code.
3387{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3388echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3389am__include="#"
3390am__quote=
3391_am_result=none
3392# First try GNU make style include.
3393echo "include confinc" > confmf
3394# We grep out `Entering directory' and `Leaving directory'
3395# messages which can occur if `w' ends up in MAKEFLAGS.
3396# In particular we don't look at `^make:' because GNU make might
3397# be invoked under some other name (usually "gmake"), in which
3398# case it prints its new name instead of `make'.
3399if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3400 am__include=include
3401 am__quote=
3402 _am_result=GNU
3403fi
3404# Now try BSD make style include.
3405if test "$am__include" = "#"; then
3406 echo '.include "confinc"' > confmf
3407 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3408 am__include=.include
3409 am__quote="\""
3410 _am_result=BSD
3411 fi
3412fi
3413
3414
3415{ echo "$as_me:$LINENO: result: $_am_result" >&5
3416echo "${ECHO_T}$_am_result" >&6; }
3417rm -f confinc confmf
3418
3419# Check whether --enable-dependency-tracking was given.
3420if test "${enable_dependency_tracking+set}" = set; then
3421 enableval=$enable_dependency_tracking;
3422fi
3423
3424if test "x$enable_dependency_tracking" != xno; then
3425 am_depcomp="$ac_aux_dir/depcomp"
3426 AMDEPBACKSLASH='\'
3427fi
3428 if test "x$enable_dependency_tracking" != xno; then
3429 AMDEP_TRUE=
3430 AMDEP_FALSE='#'
3431else
3432 AMDEP_TRUE='#'
3433 AMDEP_FALSE=
3434fi
3435
3436
3437
3438depcc="$CC" am_compiler_list=
3439
3440{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3441echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3442if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3444else
3445 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3446 # We make a subdir and do the tests there. Otherwise we can end up
3447 # making bogus files that we don't know about and never remove. For
3448 # instance it was reported that on HP-UX the gcc test will end up
3449 # making a dummy file named `D' -- because `-MD' means `put the output
3450 # in D'.
3451 mkdir conftest.dir
3452 # Copy depcomp to subdir because otherwise we won't find it if we're
3453 # using a relative directory.
3454 cp "$am_depcomp" conftest.dir
3455 cd conftest.dir
3456 # We will build objects and dependencies in a subdirectory because
3457 # it helps to detect inapplicable dependency modes. For instance
3458 # both Tru64's cc and ICC support -MD to output dependencies as a
3459 # side effect of compilation, but ICC will put the dependencies in
3460 # the current directory while Tru64 will put them in the object
3461 # directory.
3462 mkdir sub
3463
3464 am_cv_CC_dependencies_compiler_type=none
3465 if test "$am_compiler_list" = ""; then
3466 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3467 fi
3468 for depmode in $am_compiler_list; do
3469 # Setup a source with many dependencies, because some compilers
3470 # like to wrap large dependency lists on column 80 (with \), and
3471 # we should not choose a depcomp mode which is confused by this.
3472 #
3473 # We need to recreate these files for each test, as the compiler may
3474 # overwrite some of them when testing with obscure command lines.
3475 # This happens at least with the AIX C compiler.
3476 : > sub/conftest.c
3477 for i in 1 2 3 4 5 6; do
3478 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3479 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3480 # Solaris 8's {/usr,}/bin/sh.
3481 touch sub/conftst$i.h
3482 done
3483 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3484
3485 case $depmode in
3486 nosideeffect)
3487 # after this tag, mechanisms are not by side-effect, so they'll
3488 # only be used when explicitly requested
3489 if test "x$enable_dependency_tracking" = xyes; then
3490 continue
3491 else
3492 break
3493 fi
3494 ;;
3495 none) break ;;
3496 esac
3497 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3498 # mode. It turns out that the SunPro C++ compiler does not properly
3499 # handle `-M -o', and we need to detect this.
3500 if depmode=$depmode \
3501 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3502 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3503 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3504 >/dev/null 2>conftest.err &&
3505 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3506 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3507 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3508 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3509 # icc doesn't choke on unknown options, it will just issue warnings
3510 # or remarks (even with -Werror). So we grep stderr for any message
3511 # that says an option was ignored or not supported.
3512 # When given -MP, icc 7.0 and 7.1 complain thusly:
3513 # icc: Command line warning: ignoring option '-M'; no argument required
3514 # The diagnosis changed in icc 8.0:
3515 # icc: Command line remark: option '-MP' not supported
3516 if (grep 'ignoring option' conftest.err ||
3517 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3518 am_cv_CC_dependencies_compiler_type=$depmode
3519 break
3520 fi
3521 fi
3522 done
3523
3524 cd ..
3525 rm -rf conftest.dir
3526else
3527 am_cv_CC_dependencies_compiler_type=none
3528fi
3529
3530fi
3531{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3532echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3533CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3534
3535 if
3536 test "x$enable_dependency_tracking" != xno \
3537 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3538 am__fastdepCC_TRUE=
3539 am__fastdepCC_FALSE='#'
3540else
3541 am__fastdepCC_TRUE='#'
3542 am__fastdepCC_FALSE=
3543fi
3544
3545
3546if test "x$CC" != xcc; then
3547 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3548echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3549else
3550 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3551echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3552fi
3553set dummy $CC; ac_cc=`echo $2 |
3554 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3555if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3556 echo $ECHO_N "(cached) $ECHO_C" >&6
3557else
3558 cat >conftest.$ac_ext <<_ACEOF
3559/* confdefs.h. */
3560_ACEOF
3561cat confdefs.h >>conftest.$ac_ext
3562cat >>conftest.$ac_ext <<_ACEOF
3563/* end confdefs.h. */
3564
3565int
3566main ()
3567{
3568
3569 ;
3570 return 0;
3571}
3572_ACEOF
3573# Make sure it works both with $CC and with simple cc.
3574# We do the test twice because some compilers refuse to overwrite an
3575# existing .o file with -o, though they will create one.
3576ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3577rm -f conftest2.*
3578if { (case "(($ac_try" in
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3581esac
3582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3583 (eval "$ac_try") 2>&5
3584 ac_status=$?
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); } &&
3587 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3590esac
3591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3592 (eval "$ac_try") 2>&5
3593 ac_status=$?
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); };
3596then
3597 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3598 if test "x$CC" != xcc; then
3599 # Test first that cc exists at all.
3600 if { ac_try='cc -c conftest.$ac_ext >&5'
3601 { (case "(($ac_try" in
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3604esac
3605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606 (eval "$ac_try") 2>&5
3607 ac_status=$?
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }; }; then
3610 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3611 rm -f conftest2.*
3612 if { (case "(($ac_try" in
3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3615esac
3616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3617 (eval "$ac_try") 2>&5
3618 ac_status=$?
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } &&
3621 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623 *) ac_try_echo=$ac_try;;
3624esac
3625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3626 (eval "$ac_try") 2>&5
3627 ac_status=$?
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); };
3630 then
3631 # cc works too.
3632 :
3633 else
3634 # cc exists but doesn't like -o.
3635 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3636 fi
3637 fi
3638 fi
3639else
3640 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3641fi
3642rm -f core conftest*
3643
3644fi
3645if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3646 { echo "$as_me:$LINENO: result: yes" >&5
3647echo "${ECHO_T}yes" >&6; }
3648else
3649 { echo "$as_me:$LINENO: result: no" >&5
3650echo "${ECHO_T}no" >&6; }
3651
3652cat >>confdefs.h <<\_ACEOF
3653#define NO_MINUS_C_MINUS_O 1
3654_ACEOF
3655
3656fi
3657
3658# FIXME: we rely on the cache variable name because
3659# there is no other way.
3660set dummy $CC
3661ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3662if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3663 # Losing compiler, so override with the script.
3664 # FIXME: It is wrong to rewrite CC.
3665 # But if we don't then we get into trouble of one sort or another.
3666 # A longer-term fix would be to have automake use am__CC in this case,
3667 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3668 CC="$am_aux_dir/compile $CC"
3669fi
3670
3671
3672# Check whether --enable-static was given.
3673if test "${enable_static+set}" = set; then
3674 enableval=$enable_static; p=${PACKAGE-default}
3675 case $enableval in
3676 yes) enable_static=yes ;;
3677 no) enable_static=no ;;
3678 *)
3679 enable_static=no
3680 # Look at the argument we got. We use all the common list separators.
3681 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3682 for pkg in $enableval; do
3683 IFS="$lt_save_ifs"
3684 if test "X$pkg" = "X$p"; then
3685 enable_static=yes
3686 fi
3687 done
3688 IFS="$lt_save_ifs"
3689 ;;
3690 esac
3691else
3692 enable_static=no
3693fi
3694
3695
3696
3697# Check whether --enable-shared was given.
3698if test "${enable_shared+set}" = set; then
3699 enableval=$enable_shared; p=${PACKAGE-default}
3700 case $enableval in
3701 yes) enable_shared=yes ;;
3702 no) enable_shared=no ;;
3703 *)
3704 enable_shared=no
3705 # Look at the argument we got. We use all the common list separators.
3706 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3707 for pkg in $enableval; do
3708 IFS="$lt_save_ifs"
3709 if test "X$pkg" = "X$p"; then
3710 enable_shared=yes
3711 fi
3712 done
3713 IFS="$lt_save_ifs"
3714 ;;
3715 esac
3716else
3717 enable_shared=yes
3718fi
3719
3720
3721# Check whether --enable-fast-install was given.
3722if test "${enable_fast_install+set}" = set; then
3723 enableval=$enable_fast_install; p=${PACKAGE-default}
3724 case $enableval in
3725 yes) enable_fast_install=yes ;;
3726 no) enable_fast_install=no ;;
3727 *)
3728 enable_fast_install=no
3729 # Look at the argument we got. We use all the common list separators.
3730 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3731 for pkg in $enableval; do
3732 IFS="$lt_save_ifs"
3733 if test "X$pkg" = "X$p"; then
3734 enable_fast_install=yes
3735 fi
3736 done
3737 IFS="$lt_save_ifs"
3738 ;;
3739 esac
3740else
3741 enable_fast_install=yes
3742fi
3743
3744
3745# Make sure we can run config.sub.
3746$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3747 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3748echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3749 { (exit 1); exit 1; }; }
3750
3751{ echo "$as_me:$LINENO: checking build system type" >&5
3752echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3753if test "${ac_cv_build+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3755else
3756 ac_build_alias=$build_alias
3757test "x$ac_build_alias" = x &&
3758 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3759test "x$ac_build_alias" = x &&
3760 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3761echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3762 { (exit 1); exit 1; }; }
3763ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3764 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3765echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3766 { (exit 1); exit 1; }; }
3767
3768fi
3769{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3770echo "${ECHO_T}$ac_cv_build" >&6; }
3771case $ac_cv_build in
3772*-*-*) ;;
3773*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3774echo "$as_me: error: invalid value of canonical build" >&2;}
3775 { (exit 1); exit 1; }; };;
3776esac
3777build=$ac_cv_build
3778ac_save_IFS=$IFS; IFS='-'
3779set x $ac_cv_build
3780shift
3781build_cpu=$1
3782build_vendor=$2
3783shift; shift
3784# Remember, the first character of IFS is used to create $*,
3785# except with old shells:
3786build_os=$*
3787IFS=$ac_save_IFS
3788case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3789
3790
3791{ echo "$as_me:$LINENO: checking host system type" >&5
3792echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3793if test "${ac_cv_host+set}" = set; then
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
3795else
3796 if test "x$host_alias" = x; then
3797 ac_cv_host=$ac_cv_build
3798else
3799 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3800 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3801echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3802 { (exit 1); exit 1; }; }
3803fi
3804
3805fi
3806{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3807echo "${ECHO_T}$ac_cv_host" >&6; }
3808case $ac_cv_host in
3809*-*-*) ;;
3810*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3811echo "$as_me: error: invalid value of canonical host" >&2;}
3812 { (exit 1); exit 1; }; };;
3813esac
3814host=$ac_cv_host
3815ac_save_IFS=$IFS; IFS='-'
3816set x $ac_cv_host
3817shift
3818host_cpu=$1
3819host_vendor=$2
3820shift; shift
3821# Remember, the first character of IFS is used to create $*,
3822# except with old shells:
3823host_os=$*
3824IFS=$ac_save_IFS
3825case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3826
3827
3828{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3829echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3830if test "${lt_cv_path_SED+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3832else
3833 # Loop through the user's path and test for sed and gsed.
3834# Then use that list of sed's as ones to test for truncation.
3835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836for as_dir in $PATH
3837do
3838 IFS=$as_save_IFS
3839 test -z "$as_dir" && as_dir=.
3840 for lt_ac_prog in sed gsed; do
3841 for ac_exec_ext in '' $ac_executable_extensions; do
3842 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3843 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3844 fi
3845 done
3846 done
3847done
3848IFS=$as_save_IFS
3849lt_ac_max=0
3850lt_ac_count=0
3851# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3852# along with /bin/sed that truncates output.
3853for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3854 test ! -f $lt_ac_sed && continue
3855 cat /dev/null > conftest.in
3856 lt_ac_count=0
3857 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3858 # Check for GNU sed and select it if it is found.
3859 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3860 lt_cv_path_SED=$lt_ac_sed
3861 break
3862 fi
3863 while true; do
3864 cat conftest.in conftest.in >conftest.tmp
3865 mv conftest.tmp conftest.in
3866 cp conftest.in conftest.nl
3867 echo >>conftest.nl
3868 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3869 cmp -s conftest.out conftest.nl || break
3870 # 10000 chars as input seems more than enough
3871 test $lt_ac_count -gt 10 && break
3872 lt_ac_count=`expr $lt_ac_count + 1`
3873 if test $lt_ac_count -gt $lt_ac_max; then
3874 lt_ac_max=$lt_ac_count
3875 lt_cv_path_SED=$lt_ac_sed
3876 fi
3877 done
3878done
3879
3880fi
3881
3882SED=$lt_cv_path_SED
3883
3884{ echo "$as_me:$LINENO: result: $SED" >&5
3885echo "${ECHO_T}$SED" >&6; }
3886
3887{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3888echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3889if test "${ac_cv_path_GREP+set}" = set; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3891else
3892 # Extract the first word of "grep ggrep" to use in msg output
3893if test -z "$GREP"; then
3894set dummy grep ggrep; ac_prog_name=$2
3895if test "${ac_cv_path_GREP+set}" = set; then
3896 echo $ECHO_N "(cached) $ECHO_C" >&6
3897else
3898 ac_path_GREP_found=false
3899# Loop through the user's path and test for each of PROGNAME-LIST
3900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3902do
3903 IFS=$as_save_IFS
3904 test -z "$as_dir" && as_dir=.
3905 for ac_prog in grep ggrep; do
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3908 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3909 # Check for GNU ac_path_GREP and select it if it is found.
3910 # Check for GNU $ac_path_GREP
3911case `"$ac_path_GREP" --version 2>&1` in
3912*GNU*)
3913 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3914*)
3915 ac_count=0
3916 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3917 while :
3918 do
3919 cat "conftest.in" "conftest.in" >"conftest.tmp"
3920 mv "conftest.tmp" "conftest.in"
3921 cp "conftest.in" "conftest.nl"
3922 echo 'GREP' >> "conftest.nl"
3923 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3924 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3925 ac_count=`expr $ac_count + 1`
3926 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3927 # Best one so far, save it but keep looking for a better one
3928 ac_cv_path_GREP="$ac_path_GREP"
3929 ac_path_GREP_max=$ac_count
3930 fi
3931 # 10*(2^10) chars as input seems more than enough
3932 test $ac_count -gt 10 && break
3933 done
3934 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3935esac
3936
3937
3938 $ac_path_GREP_found && break 3
3939 done
3940done
3941
3942done
3943IFS=$as_save_IFS
3944
3945
3946fi
3947
3948GREP="$ac_cv_path_GREP"
3949if test -z "$GREP"; then
3950 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3951echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3952 { (exit 1); exit 1; }; }
3953fi
3954
3955else
3956 ac_cv_path_GREP=$GREP
3957fi
3958
3959
3960fi
3961{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3962echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3963 GREP="$ac_cv_path_GREP"
3964
3965
3966{ echo "$as_me:$LINENO: checking for egrep" >&5
3967echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3968if test "${ac_cv_path_EGREP+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3970else
3971 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3972 then ac_cv_path_EGREP="$GREP -E"
3973 else
3974 # Extract the first word of "egrep" to use in msg output
3975if test -z "$EGREP"; then
3976set dummy egrep; ac_prog_name=$2
3977if test "${ac_cv_path_EGREP+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3979else
3980 ac_path_EGREP_found=false
3981# Loop through the user's path and test for each of PROGNAME-LIST
3982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3984do
3985 IFS=$as_save_IFS
3986 test -z "$as_dir" && as_dir=.
3987 for ac_prog in egrep; do
3988 for ac_exec_ext in '' $ac_executable_extensions; do
3989 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3990 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3991 # Check for GNU ac_path_EGREP and select it if it is found.
3992 # Check for GNU $ac_path_EGREP
3993case `"$ac_path_EGREP" --version 2>&1` in
3994*GNU*)
3995 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3996*)
3997 ac_count=0
3998 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3999 while :
4000 do
4001 cat "conftest.in" "conftest.in" >"conftest.tmp"
4002 mv "conftest.tmp" "conftest.in"
4003 cp "conftest.in" "conftest.nl"
4004 echo 'EGREP' >> "conftest.nl"
4005 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4006 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4007 ac_count=`expr $ac_count + 1`
4008 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4009 # Best one so far, save it but keep looking for a better one
4010 ac_cv_path_EGREP="$ac_path_EGREP"
4011 ac_path_EGREP_max=$ac_count
4012 fi
4013 # 10*(2^10) chars as input seems more than enough
4014 test $ac_count -gt 10 && break
4015 done
4016 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4017esac
4018
4019
4020 $ac_path_EGREP_found && break 3
4021 done
4022done
4023
4024done
4025IFS=$as_save_IFS
4026
4027
4028fi
4029
4030EGREP="$ac_cv_path_EGREP"
4031if test -z "$EGREP"; then
4032 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4033echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4034 { (exit 1); exit 1; }; }
4035fi
4036
4037else
4038 ac_cv_path_EGREP=$EGREP
4039fi
4040
4041
4042 fi
4043fi
4044{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4045echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4046 EGREP="$ac_cv_path_EGREP"
4047
4048
4049
4050# Check whether --with-gnu-ld was given.
4051if test "${with_gnu_ld+set}" = set; then
4052 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4053else
4054 with_gnu_ld=no
4055fi
4056
4057ac_prog=ld
4058if test "$GCC" = yes; then
4059 # Check if gcc -print-prog-name=ld gives a path.
4060 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4061echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4062 case $host in
4063 *-*-mingw*)
4064 # gcc leaves a trailing carriage return which upsets mingw
4065 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4066 *)
4067 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4068 esac
4069 case $ac_prog in
4070 # Accept absolute paths.
4071 [\\/]* | ?:[\\/]*)
4072 re_direlt='/[^/][^/]*/\.\./'
4073 # Canonicalize the pathname of ld
4074 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4075 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4076 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4077 done
4078 test -z "$LD" && LD="$ac_prog"
4079 ;;
4080 "")
4081 # If it fails, then pretend we aren't using GCC.
4082 ac_prog=ld
4083 ;;
4084 *)
4085 # If it is relative, then search for the first ld in PATH.
4086 with_gnu_ld=unknown
4087 ;;
4088 esac
4089elif test "$with_gnu_ld" = yes; then
4090 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4091echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4092else
4093 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4094echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4095fi
4096if test "${lt_cv_path_LD+set}" = set; then
4097 echo $ECHO_N "(cached) $ECHO_C" >&6
4098else
4099 if test -z "$LD"; then
4100 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4101 for ac_dir in $PATH; do
4102 IFS="$lt_save_ifs"
4103 test -z "$ac_dir" && ac_dir=.
4104 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4105 lt_cv_path_LD="$ac_dir/$ac_prog"
4106 # Check to see if the program is GNU ld. I'd rather use --version,
4107 # but apparently some variants of GNU ld only accept -v.
4108 # Break only if it was the GNU/non-GNU ld that we prefer.
4109 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4110 *GNU* | *'with BFD'*)
4111 test "$with_gnu_ld" != no && break
4112 ;;
4113 *)
4114 test "$with_gnu_ld" != yes && break
4115 ;;
4116 esac
4117 fi
4118 done
4119 IFS="$lt_save_ifs"
4120else
4121 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4122fi
4123fi
4124
4125LD="$lt_cv_path_LD"
4126if test -n "$LD"; then
4127 { echo "$as_me:$LINENO: result: $LD" >&5
4128echo "${ECHO_T}$LD" >&6; }
4129else
4130 { echo "$as_me:$LINENO: result: no" >&5
4131echo "${ECHO_T}no" >&6; }
4132fi
4133test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4134echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4135 { (exit 1); exit 1; }; }
4136{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4137echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4138if test "${lt_cv_prog_gnu_ld+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4140else
4141 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4142case `$LD -v 2>&1 </dev/null` in
4143*GNU* | *'with BFD'*)
4144 lt_cv_prog_gnu_ld=yes
4145 ;;
4146*)
4147 lt_cv_prog_gnu_ld=no
4148 ;;
4149esac
4150fi
4151{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4152echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4153with_gnu_ld=$lt_cv_prog_gnu_ld
4154
4155
4156{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4157echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4158if test "${lt_cv_ld_reload_flag+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4160else
4161 lt_cv_ld_reload_flag='-r'
4162fi
4163{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4164echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4165reload_flag=$lt_cv_ld_reload_flag
4166case $reload_flag in
4167"" | " "*) ;;
4168*) reload_flag=" $reload_flag" ;;
4169esac
4170reload_cmds='$LD$reload_flag -o $output$reload_objs'
4171case $host_os in
4172 darwin*)
4173 if test "$GCC" = yes; then
4174 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4175 else
4176 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4177 fi
4178 ;;
4179esac
4180
4181{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4182echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4183if test "${lt_cv_path_NM+set}" = set; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4185else
4186 if test -n "$NM"; then
4187 # Let the user override the test.
4188 lt_cv_path_NM="$NM"
4189else
4190 lt_nm_to_check="${ac_tool_prefix}nm"
4191 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4192 lt_nm_to_check="$lt_nm_to_check nm"
4193 fi
4194 for lt_tmp_nm in $lt_nm_to_check; do
4195 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4196 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4197 IFS="$lt_save_ifs"
4198 test -z "$ac_dir" && ac_dir=.
4199 tmp_nm="$ac_dir/$lt_tmp_nm"
4200 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4201 # Check to see if the nm accepts a BSD-compat flag.
4202 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4203 # nm: unknown option "B" ignored
4204 # Tru64's nm complains that /dev/null is an invalid object file
4205 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4206 */dev/null* | *'Invalid file or object type'*)
4207 lt_cv_path_NM="$tmp_nm -B"
4208 break
4209 ;;
4210 *)
4211 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4212 */dev/null*)
4213 lt_cv_path_NM="$tmp_nm -p"
4214 break
4215 ;;
4216 *)
4217 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4218 continue # so that we can try to find one that supports BSD flags
4219 ;;
4220 esac
4221 ;;
4222 esac
4223 fi
4224 done
4225 IFS="$lt_save_ifs"
4226 done
4227 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4228fi
4229fi
4230{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4231echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4232NM="$lt_cv_path_NM"
4233
4234{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4235echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4236LN_S=$as_ln_s
4237if test "$LN_S" = "ln -s"; then
4238 { echo "$as_me:$LINENO: result: yes" >&5
4239echo "${ECHO_T}yes" >&6; }
4240else
4241 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4242echo "${ECHO_T}no, using $LN_S" >&6; }
4243fi
4244
4245{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4246echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4247if test "${lt_cv_deplibs_check_method+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4249else
4250 lt_cv_file_magic_cmd='$MAGIC_CMD'
4251lt_cv_file_magic_test_file=
4252lt_cv_deplibs_check_method='unknown'
4253# Need to set the preceding variable on all platforms that support
4254# interlibrary dependencies.
4255# 'none' -- dependencies not supported.
4256# `unknown' -- same as none, but documents that we really don't know.
4257# 'pass_all' -- all dependencies passed with no checks.
4258# 'test_compile' -- check by making test program.
4259# 'file_magic [[regex]]' -- check by looking for files in library path
4260# which responds to the $file_magic_cmd with a given extended regex.
4261# If you have `file' or equivalent on your system and you're not sure
4262# whether `pass_all' will *always* work, you probably want this one.
4263
4264case $host_os in
4265aix[4-9]*)
4266 lt_cv_deplibs_check_method=pass_all
4267 ;;
4268
4269beos*)
4270 lt_cv_deplibs_check_method=pass_all
4271 ;;
4272
4273bsdi[45]*)
4274 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4275 lt_cv_file_magic_cmd='/usr/bin/file -L'
4276 lt_cv_file_magic_test_file=/shlib/libc.so
4277 ;;
4278
4279cygwin*)
4280 # func_win32_libid is a shell function defined in ltmain.sh
4281 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4282 lt_cv_file_magic_cmd='func_win32_libid'
4283 ;;
4284
4285mingw* | pw32*)
4286 # Base MSYS/MinGW do not provide the 'file' command needed by
4287 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4288 # unless we find 'file', for example because we are cross-compiling.
4289 if ( file / ) >/dev/null 2>&1; then
4290 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4291 lt_cv_file_magic_cmd='func_win32_libid'
4292 else
4293 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4294 lt_cv_file_magic_cmd='$OBJDUMP -f'
4295 fi
4296 ;;
4297
4298darwin* | rhapsody*)
4299 lt_cv_deplibs_check_method=pass_all
4300 ;;
4301
4302freebsd* | dragonfly*)
4303 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4304 case $host_cpu in
4305 i*86 )
4306 # Not sure whether the presence of OpenBSD here was a mistake.
4307 # Let's accept both of them until this is cleared up.
4308 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4309 lt_cv_file_magic_cmd=/usr/bin/file
4310 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4311 ;;
4312 esac
4313 else
4314 lt_cv_deplibs_check_method=pass_all
4315 fi
4316 ;;
4317
4318gnu*)
4319 lt_cv_deplibs_check_method=pass_all
4320 ;;
4321
4322hpux10.20* | hpux11*)
4323 lt_cv_file_magic_cmd=/usr/bin/file
4324 case $host_cpu in
4325 ia64*)
4326 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4327 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4328 ;;
4329 hppa*64*)
4330 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]'
4331 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4332 ;;
4333 *)
4334 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4335 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4336 ;;
4337 esac
4338 ;;
4339
4340interix[3-9]*)
4341 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4342 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4343 ;;
4344
4345irix5* | irix6* | nonstopux*)
4346 case $LD in
4347 *-32|*"-32 ") libmagic=32-bit;;
4348 *-n32|*"-n32 ") libmagic=N32;;
4349 *-64|*"-64 ") libmagic=64-bit;;
4350 *) libmagic=never-match;;
4351 esac
4352 lt_cv_deplibs_check_method=pass_all
4353 ;;
4354
4355# This must be Linux ELF.
4356linux* | k*bsd*-gnu)
4357 lt_cv_deplibs_check_method=pass_all
4358 ;;
4359
4360netbsd* | netbsdelf*-gnu)
4361 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4362 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4363 else
4364 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4365 fi
4366 ;;
4367
4368newos6*)
4369 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4370 lt_cv_file_magic_cmd=/usr/bin/file
4371 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4372 ;;
4373
4374nto-qnx*)
4375 lt_cv_deplibs_check_method=unknown
4376 ;;
4377
4378openbsd*)
4379 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4380 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4381 else
4382 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4383 fi
4384 ;;
4385
4386osf3* | osf4* | osf5*)
4387 lt_cv_deplibs_check_method=pass_all
4388 ;;
4389
4390rdos*)
4391 lt_cv_deplibs_check_method=pass_all
4392 ;;
4393
4394solaris*)
4395 lt_cv_deplibs_check_method=pass_all
4396 ;;
4397
4398sysv4 | sysv4.3*)
4399 case $host_vendor in
4400 motorola)
4401 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]'
4402 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4403 ;;
4404 ncr)
4405 lt_cv_deplibs_check_method=pass_all
4406 ;;
4407 sequent)
4408 lt_cv_file_magic_cmd='/bin/file'
4409 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4410 ;;
4411 sni)
4412 lt_cv_file_magic_cmd='/bin/file'
4413 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4414 lt_cv_file_magic_test_file=/lib/libc.so
4415 ;;
4416 siemens)
4417 lt_cv_deplibs_check_method=pass_all
4418 ;;
4419 pc)
4420 lt_cv_deplibs_check_method=pass_all
4421 ;;
4422 esac
4423 ;;
4424
4425sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4426 lt_cv_deplibs_check_method=pass_all
4427 ;;
4428esac
4429
4430fi
4431{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4432echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4433file_magic_cmd=$lt_cv_file_magic_cmd
4434deplibs_check_method=$lt_cv_deplibs_check_method
4435test -z "$deplibs_check_method" && deplibs_check_method=unknown
4436
4437
4438
4439
4440# If no C compiler was specified, use CC.
4441LTCC=${LTCC-"$CC"}
4442
4443# If no C compiler flags were specified, use CFLAGS.
4444LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4445
4446# Allow CC to be a program name with arguments.
4447compiler=$CC
4448
4449
4450# Check whether --enable-libtool-lock was given.
4451if test "${enable_libtool_lock+set}" = set; then
4452 enableval=$enable_libtool_lock;
4453fi
4454
4455test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4456
4457# Some flags need to be propagated to the compiler or linker for good
4458# libtool support.
4459case $host in
4460ia64-*-hpux*)
4461 # Find out which ABI we are using.
4462 echo 'int i;' > conftest.$ac_ext
4463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4464 (eval $ac_compile) 2>&5
4465 ac_status=$?
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); }; then
4468 case `/usr/bin/file conftest.$ac_objext` in
4469 *ELF-32*)
4470 HPUX_IA64_MODE="32"
4471 ;;
4472 *ELF-64*)
4473 HPUX_IA64_MODE="64"
4474 ;;
4475 esac
4476 fi
4477 rm -rf conftest*
4478 ;;
4479*-*-irix6*)
4480 # Find out which ABI we are using.
4481 echo '#line 4481 "configure"' > conftest.$ac_ext
4482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4483 (eval $ac_compile) 2>&5
4484 ac_status=$?
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); }; then
4487 if test "$lt_cv_prog_gnu_ld" = yes; then
4488 case `/usr/bin/file conftest.$ac_objext` in
4489 *32-bit*)
4490 LD="${LD-ld} -melf32bsmip"
4491 ;;
4492 *N32*)
4493 LD="${LD-ld} -melf32bmipn32"
4494 ;;
4495 *64-bit*)
4496 LD="${LD-ld} -melf64bmip"
4497 ;;
4498 esac
4499 else
4500 case `/usr/bin/file conftest.$ac_objext` in
4501 *32-bit*)
4502 LD="${LD-ld} -32"
4503 ;;
4504 *N32*)
4505 LD="${LD-ld} -n32"
4506 ;;
4507 *64-bit*)
4508 LD="${LD-ld} -64"
4509 ;;
4510 esac
4511 fi
4512 fi
4513 rm -rf conftest*
4514 ;;
4515
4516x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4517s390*-*linux*|sparc*-*linux*)
4518 # Find out which ABI we are using.
4519 echo 'int i;' > conftest.$ac_ext
4520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4521 (eval $ac_compile) 2>&5
4522 ac_status=$?
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); }; then
4525 case `/usr/bin/file conftest.o` in
4526 *32-bit*)
4527 case $host in
4528 x86_64-*kfreebsd*-gnu)
4529 LD="${LD-ld} -m elf_i386_fbsd"
4530 ;;
4531 x86_64-*linux*)
4532 LD="${LD-ld} -m elf_i386"
4533 ;;
4534 ppc64-*linux*|powerpc64-*linux*)
4535 LD="${LD-ld} -m elf32ppclinux"
4536 ;;
4537 s390x-*linux*)
4538 LD="${LD-ld} -m elf_s390"
4539 ;;
4540 sparc64-*linux*)
4541 LD="${LD-ld} -m elf32_sparc"
4542 ;;
4543 esac
4544 ;;
4545 *64-bit*)
4546 case $host in
4547 x86_64-*kfreebsd*-gnu)
4548 LD="${LD-ld} -m elf_x86_64_fbsd"
4549 ;;
4550 x86_64-*linux*)
4551 LD="${LD-ld} -m elf_x86_64"
4552 ;;
4553 ppc*-*linux*|powerpc*-*linux*)
4554 LD="${LD-ld} -m elf64ppc"
4555 ;;
4556 s390*-*linux*)
4557 LD="${LD-ld} -m elf64_s390"
4558 ;;
4559 sparc*-*linux*)
4560 LD="${LD-ld} -m elf64_sparc"
4561 ;;
4562 esac
4563 ;;
4564 esac
4565 fi
4566 rm -rf conftest*
4567 ;;
4568
4569*-*-sco3.2v5*)
4570 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4571 SAVE_CFLAGS="$CFLAGS"
4572 CFLAGS="$CFLAGS -belf"
4573 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4574echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4575if test "${lt_cv_cc_needs_belf+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4577else
4578 ac_ext=c
4579ac_cpp='$CPP $CPPFLAGS'
4580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4582ac_compiler_gnu=$ac_cv_c_compiler_gnu
4583
4584 cat >conftest.$ac_ext <<_ACEOF
4585/* confdefs.h. */
4586_ACEOF
4587cat confdefs.h >>conftest.$ac_ext
4588cat >>conftest.$ac_ext <<_ACEOF
4589/* end confdefs.h. */
4590
4591int
4592main ()
4593{
4594
4595 ;
4596 return 0;
4597}
4598_ACEOF
4599rm -f conftest.$ac_objext conftest$ac_exeext
4600if { (ac_try="$ac_link"
4601case "(($ac_try" in
4602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603 *) ac_try_echo=$ac_try;;
4604esac
4605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4606 (eval "$ac_link") 2>conftest.er1
4607 ac_status=$?
4608 grep -v '^ *+' conftest.er1 >conftest.err
4609 rm -f conftest.er1
4610 cat conftest.err >&5
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); } && {
4613 test -z "$ac_c_werror_flag" ||
4614 test ! -s conftest.err
4615 } && test -s conftest$ac_exeext &&
4616 $as_test_x conftest$ac_exeext; then
4617 lt_cv_cc_needs_belf=yes
4618else
4619 echo "$as_me: failed program was:" >&5
4620sed 's/^/| /' conftest.$ac_ext >&5
4621
4622 lt_cv_cc_needs_belf=no
4623fi
4624
4625rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4626 conftest$ac_exeext conftest.$ac_ext
4627 ac_ext=c
4628ac_cpp='$CPP $CPPFLAGS'
4629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4631ac_compiler_gnu=$ac_cv_c_compiler_gnu
4632
4633fi
4634{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4635echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4636 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4637 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4638 CFLAGS="$SAVE_CFLAGS"
4639 fi
4640 ;;
4641sparc*-*solaris*)
4642 # Find out which ABI we are using.
4643 echo 'int i;' > conftest.$ac_ext
4644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4645 (eval $ac_compile) 2>&5
4646 ac_status=$?
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); }; then
4649 case `/usr/bin/file conftest.o` in
4650 *64-bit*)
4651 case $lt_cv_prog_gnu_ld in
4652 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4653 *)
4654 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4655 LD="${LD-ld} -64"
4656 fi
4657 ;;
4658 esac
4659 ;;
4660 esac
4661 fi
4662 rm -rf conftest*
4663 ;;
4664
4665
4666esac
4667
4668need_locks="$enable_libtool_lock"
4669
4670
4671ac_ext=c
4672ac_cpp='$CPP $CPPFLAGS'
4673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4675ac_compiler_gnu=$ac_cv_c_compiler_gnu
4676{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4677echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4678# On Suns, sometimes $CPP names a directory.
4679if test -n "$CPP" && test -d "$CPP"; then
4680 CPP=
4681fi
4682if test -z "$CPP"; then
4683 if test "${ac_cv_prog_CPP+set}" = set; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
4685else
4686 # Double quotes because CPP needs to be expanded
4687 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4688 do
4689 ac_preproc_ok=false
4690for ac_c_preproc_warn_flag in '' yes
4691do
4692 # Use a header file that comes with gcc, so configuring glibc
4693 # with a fresh cross-compiler works.
4694 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4695 # <limits.h> exists even on freestanding compilers.
4696 # On the NeXT, cc -E runs the code through the compiler's parser,
4697 # not just through cpp. "Syntax error" is here to catch this case.
4698 cat >conftest.$ac_ext <<_ACEOF
4699/* confdefs.h. */
4700_ACEOF
4701cat confdefs.h >>conftest.$ac_ext
4702cat >>conftest.$ac_ext <<_ACEOF
4703/* end confdefs.h. */
4704#ifdef __STDC__
4705# include <limits.h>
4706#else
4707# include <assert.h>
4708#endif
4709 Syntax error
4710_ACEOF
4711if { (ac_try="$ac_cpp conftest.$ac_ext"
4712case "(($ac_try" in
4713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4714 *) ac_try_echo=$ac_try;;
4715esac
4716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4718 ac_status=$?
4719 grep -v '^ *+' conftest.er1 >conftest.err
4720 rm -f conftest.er1
4721 cat conftest.err >&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } >/dev/null && {
4724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4725 test ! -s conftest.err
4726 }; then
4727 :
4728else
4729 echo "$as_me: failed program was:" >&5
4730sed 's/^/| /' conftest.$ac_ext >&5
4731
4732 # Broken: fails on valid input.
4733continue
4734fi
4735
4736rm -f conftest.err conftest.$ac_ext
4737
4738 # OK, works on sane cases. Now check whether nonexistent headers
4739 # can be detected and how.
4740 cat >conftest.$ac_ext <<_ACEOF
4741/* confdefs.h. */
4742_ACEOF
4743cat confdefs.h >>conftest.$ac_ext
4744cat >>conftest.$ac_ext <<_ACEOF
4745/* end confdefs.h. */
4746#include <ac_nonexistent.h>
4747_ACEOF
4748if { (ac_try="$ac_cpp conftest.$ac_ext"
4749case "(($ac_try" in
4750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751 *) ac_try_echo=$ac_try;;
4752esac
4753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4755 ac_status=$?
4756 grep -v '^ *+' conftest.er1 >conftest.err
4757 rm -f conftest.er1
4758 cat conftest.err >&5
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); } >/dev/null && {
4761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4762 test ! -s conftest.err
4763 }; then
4764 # Broken: success on invalid input.
4765continue
4766else
4767 echo "$as_me: failed program was:" >&5
4768sed 's/^/| /' conftest.$ac_ext >&5
4769
4770 # Passes both tests.
4771ac_preproc_ok=:
4772break
4773fi
4774
4775rm -f conftest.err conftest.$ac_ext
4776
4777done
4778# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4779rm -f conftest.err conftest.$ac_ext
4780if $ac_preproc_ok; then
4781 break
4782fi
4783
4784 done
4785 ac_cv_prog_CPP=$CPP
4786
4787fi
4788 CPP=$ac_cv_prog_CPP
4789else
4790 ac_cv_prog_CPP=$CPP
4791fi
4792{ echo "$as_me:$LINENO: result: $CPP" >&5
4793echo "${ECHO_T}$CPP" >&6; }
4794ac_preproc_ok=false
4795for ac_c_preproc_warn_flag in '' yes
4796do
4797 # Use a header file that comes with gcc, so configuring glibc
4798 # with a fresh cross-compiler works.
4799 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4800 # <limits.h> exists even on freestanding compilers.
4801 # On the NeXT, cc -E runs the code through the compiler's parser,
4802 # not just through cpp. "Syntax error" is here to catch this case.
4803 cat >conftest.$ac_ext <<_ACEOF
4804/* confdefs.h. */
4805_ACEOF
4806cat confdefs.h >>conftest.$ac_ext
4807cat >>conftest.$ac_ext <<_ACEOF
4808/* end confdefs.h. */
4809#ifdef __STDC__
4810# include <limits.h>
4811#else
4812# include <assert.h>
4813#endif
4814 Syntax error
4815_ACEOF
4816if { (ac_try="$ac_cpp conftest.$ac_ext"
4817case "(($ac_try" in
4818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4819 *) ac_try_echo=$ac_try;;
4820esac
4821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4823 ac_status=$?
4824 grep -v '^ *+' conftest.er1 >conftest.err
4825 rm -f conftest.er1
4826 cat conftest.err >&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); } >/dev/null && {
4829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4830 test ! -s conftest.err
4831 }; then
4832 :
4833else
4834 echo "$as_me: failed program was:" >&5
4835sed 's/^/| /' conftest.$ac_ext >&5
4836
4837 # Broken: fails on valid input.
4838continue
4839fi
4840
4841rm -f conftest.err conftest.$ac_ext
4842
4843 # OK, works on sane cases. Now check whether nonexistent headers
4844 # can be detected and how.
4845 cat >conftest.$ac_ext <<_ACEOF
4846/* confdefs.h. */
4847_ACEOF
4848cat confdefs.h >>conftest.$ac_ext
4849cat >>conftest.$ac_ext <<_ACEOF
4850/* end confdefs.h. */
4851#include <ac_nonexistent.h>
4852_ACEOF
4853if { (ac_try="$ac_cpp conftest.$ac_ext"
4854case "(($ac_try" in
4855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4856 *) ac_try_echo=$ac_try;;
4857esac
4858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4859 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4860 ac_status=$?
4861 grep -v '^ *+' conftest.er1 >conftest.err
4862 rm -f conftest.er1
4863 cat conftest.err >&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } >/dev/null && {
4866 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4867 test ! -s conftest.err
4868 }; then
4869 # Broken: success on invalid input.
4870continue
4871else
4872 echo "$as_me: failed program was:" >&5
4873sed 's/^/| /' conftest.$ac_ext >&5
4874
4875 # Passes both tests.
4876ac_preproc_ok=:
4877break
4878fi
4879
4880rm -f conftest.err conftest.$ac_ext
4881
4882done
4883# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4884rm -f conftest.err conftest.$ac_ext
4885if $ac_preproc_ok; then
4886 :
4887else
4888 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4889See \`config.log' for more details." >&5
4890echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4891See \`config.log' for more details." >&2;}
4892 { (exit 1); exit 1; }; }
4893fi
4894
4895ac_ext=c
4896ac_cpp='$CPP $CPPFLAGS'
4897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4899ac_compiler_gnu=$ac_cv_c_compiler_gnu
4900
4901
4902{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4903echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4904if test "${ac_cv_header_stdc+set}" = set; then
4905 echo $ECHO_N "(cached) $ECHO_C" >&6
4906else
4907 cat >conftest.$ac_ext <<_ACEOF
4908/* confdefs.h. */
4909_ACEOF
4910cat confdefs.h >>conftest.$ac_ext
4911cat >>conftest.$ac_ext <<_ACEOF
4912/* end confdefs.h. */
4913#include <stdlib.h>
4914#include <stdarg.h>
4915#include <string.h>
4916#include <float.h>
4917
4918int
4919main ()
4920{
4921
4922 ;
4923 return 0;
4924}
4925_ACEOF
4926rm -f conftest.$ac_objext
4927if { (ac_try="$ac_compile"
4928case "(($ac_try" in
4929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4930 *) ac_try_echo=$ac_try;;
4931esac
4932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4933 (eval "$ac_compile") 2>conftest.er1
4934 ac_status=$?
4935 grep -v '^ *+' conftest.er1 >conftest.err
4936 rm -f conftest.er1
4937 cat conftest.err >&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); } && {
4940 test -z "$ac_c_werror_flag" ||
4941 test ! -s conftest.err
4942 } && test -s conftest.$ac_objext; then
4943 ac_cv_header_stdc=yes
4944else
4945 echo "$as_me: failed program was:" >&5
4946sed 's/^/| /' conftest.$ac_ext >&5
4947
4948 ac_cv_header_stdc=no
4949fi
4950
4951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952
4953if test $ac_cv_header_stdc = yes; then
4954 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4955 cat >conftest.$ac_ext <<_ACEOF
4956/* confdefs.h. */
4957_ACEOF
4958cat confdefs.h >>conftest.$ac_ext
4959cat >>conftest.$ac_ext <<_ACEOF
4960/* end confdefs.h. */
4961#include <string.h>
4962
4963_ACEOF
4964if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4965 $EGREP "memchr" >/dev/null 2>&1; then
4966 :
4967else
4968 ac_cv_header_stdc=no
4969fi
4970rm -f conftest*
4971
4972fi
4973
4974if test $ac_cv_header_stdc = yes; then
4975 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4976 cat >conftest.$ac_ext <<_ACEOF
4977/* confdefs.h. */
4978_ACEOF
4979cat confdefs.h >>conftest.$ac_ext
4980cat >>conftest.$ac_ext <<_ACEOF
4981/* end confdefs.h. */
4982#include <stdlib.h>
4983
4984_ACEOF
4985if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4986 $EGREP "free" >/dev/null 2>&1; then
4987 :
4988else
4989 ac_cv_header_stdc=no
4990fi
4991rm -f conftest*
4992
4993fi
4994
4995if test $ac_cv_header_stdc = yes; then
4996 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4997 if test "$cross_compiling" = yes; then
4998 :
4999else
5000 cat >conftest.$ac_ext <<_ACEOF
5001/* confdefs.h. */
5002_ACEOF
5003cat confdefs.h >>conftest.$ac_ext
5004cat >>conftest.$ac_ext <<_ACEOF
5005/* end confdefs.h. */
5006#include <ctype.h>
5007#include <stdlib.h>
5008#if ((' ' & 0x0FF) == 0x020)
5009# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5010# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5011#else
5012# define ISLOWER(c) \
5013 (('a' <= (c) && (c) <= 'i') \
5014 || ('j' <= (c) && (c) <= 'r') \
5015 || ('s' <= (c) && (c) <= 'z'))
5016# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5017#endif
5018
5019#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5020int
5021main ()
5022{
5023 int i;
5024 for (i = 0; i < 256; i++)
5025 if (XOR (islower (i), ISLOWER (i))
5026 || toupper (i) != TOUPPER (i))
5027 return 2;
5028 return 0;
5029}
5030_ACEOF
5031rm -f conftest$ac_exeext
5032if { (ac_try="$ac_link"
5033case "(($ac_try" in
5034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5035 *) ac_try_echo=$ac_try;;
5036esac
5037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5038 (eval "$ac_link") 2>&5
5039 ac_status=$?
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5042 { (case "(($ac_try" in
5043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5044 *) ac_try_echo=$ac_try;;
5045esac
5046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5047 (eval "$ac_try") 2>&5
5048 ac_status=$?
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); }; }; then
5051 :
5052else
5053 echo "$as_me: program exited with status $ac_status" >&5
5054echo "$as_me: failed program was:" >&5
5055sed 's/^/| /' conftest.$ac_ext >&5
5056
5057( exit $ac_status )
5058ac_cv_header_stdc=no
5059fi
5060rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5061fi
5062
5063
5064fi
5065fi
5066{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5067echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5068if test $ac_cv_header_stdc = yes; then
5069
5070cat >>confdefs.h <<\_ACEOF
5071#define STDC_HEADERS 1
5072_ACEOF
5073
5074fi
5075
5076# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5087 inttypes.h stdint.h unistd.h
5088do
5089as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5090{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5091echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5092if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5094else
5095 cat >conftest.$ac_ext <<_ACEOF
5096/* confdefs.h. */
5097_ACEOF
5098cat confdefs.h >>conftest.$ac_ext
5099cat >>conftest.$ac_ext <<_ACEOF
5100/* end confdefs.h. */
5101$ac_includes_default
5102
5103#include <$ac_header>
5104_ACEOF
5105rm -f conftest.$ac_objext
5106if { (ac_try="$ac_compile"
5107case "(($ac_try" in
5108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5109 *) ac_try_echo=$ac_try;;
5110esac
5111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5112 (eval "$ac_compile") 2>conftest.er1
5113 ac_status=$?
5114 grep -v '^ *+' conftest.er1 >conftest.err
5115 rm -f conftest.er1
5116 cat conftest.err >&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } && {
5119 test -z "$ac_c_werror_flag" ||
5120 test ! -s conftest.err
5121 } && test -s conftest.$ac_objext; then
5122 eval "$as_ac_Header=yes"
5123else
5124 echo "$as_me: failed program was:" >&5
5125sed 's/^/| /' conftest.$ac_ext >&5
5126
5127 eval "$as_ac_Header=no"
5128fi
5129
5130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5131fi
5132ac_res=`eval echo '${'$as_ac_Header'}'`
5133 { echo "$as_me:$LINENO: result: $ac_res" >&5
5134echo "${ECHO_T}$ac_res" >&6; }
5135if test `eval echo '${'$as_ac_Header'}'` = yes; then
5136 cat >>confdefs.h <<_ACEOF
5137#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5138_ACEOF
5139
5140fi
5141
5142done
5143
5144
5145
5146for ac_header in dlfcn.h
5147do
5148as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5149if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5151echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5152if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5153 echo $ECHO_N "(cached) $ECHO_C" >&6
5154fi
5155ac_res=`eval echo '${'$as_ac_Header'}'`
5156 { echo "$as_me:$LINENO: result: $ac_res" >&5
5157echo "${ECHO_T}$ac_res" >&6; }
5158else
5159 # Is the header compilable?
5160{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5161echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5162cat >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$ac_includes_default
5169#include <$ac_header>
5170_ACEOF
5171rm -f conftest.$ac_objext
5172if { (ac_try="$ac_compile"
5173case "(($ac_try" in
5174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5175 *) ac_try_echo=$ac_try;;
5176esac
5177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5178 (eval "$ac_compile") 2>conftest.er1
5179 ac_status=$?
5180 grep -v '^ *+' conftest.er1 >conftest.err
5181 rm -f conftest.er1
5182 cat conftest.err >&5
5183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184 (exit $ac_status); } && {
5185 test -z "$ac_c_werror_flag" ||
5186 test ! -s conftest.err
5187 } && test -s conftest.$ac_objext; then
5188 ac_header_compiler=yes
5189else
5190 echo "$as_me: failed program was:" >&5
5191sed 's/^/| /' conftest.$ac_ext >&5
5192
5193 ac_header_compiler=no
5194fi
5195
5196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5197{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5198echo "${ECHO_T}$ac_header_compiler" >&6; }
5199
5200# Is the header present?
5201{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5202echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5203cat >conftest.$ac_ext <<_ACEOF
5204/* confdefs.h. */
5205_ACEOF
5206cat confdefs.h >>conftest.$ac_ext
5207cat >>conftest.$ac_ext <<_ACEOF
5208/* end confdefs.h. */
5209#include <$ac_header>
5210_ACEOF
5211if { (ac_try="$ac_cpp conftest.$ac_ext"
5212case "(($ac_try" in
5213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5214 *) ac_try_echo=$ac_try;;
5215esac
5216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5218 ac_status=$?
5219 grep -v '^ *+' conftest.er1 >conftest.err
5220 rm -f conftest.er1
5221 cat conftest.err >&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); } >/dev/null && {
5224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5225 test ! -s conftest.err
5226 }; then
5227 ac_header_preproc=yes
5228else
5229 echo "$as_me: failed program was:" >&5
5230sed 's/^/| /' conftest.$ac_ext >&5
5231
5232 ac_header_preproc=no
5233fi
5234
5235rm -f conftest.err conftest.$ac_ext
5236{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5237echo "${ECHO_T}$ac_header_preproc" >&6; }
5238
5239# So? What about this header?
5240case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5241 yes:no: )
5242 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5243echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5245echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5246 ac_header_preproc=yes
5247 ;;
5248 no:yes:* )
5249 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5250echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5251 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5252echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5253 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5254echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5255 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5256echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5258echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5259 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5260echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5261
5262 ;;
5263esac
5264{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5265echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5266if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5268else
5269 eval "$as_ac_Header=\$ac_header_preproc"
5270fi
5271ac_res=`eval echo '${'$as_ac_Header'}'`
5272 { echo "$as_me:$LINENO: result: $ac_res" >&5
5273echo "${ECHO_T}$ac_res" >&6; }
5274
5275fi
5276if test `eval echo '${'$as_ac_Header'}'` = yes; then
5277 cat >>confdefs.h <<_ACEOF
5278#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5279_ACEOF
5280
5281fi
5282
5283done
5284
5285ac_ext=cpp
5286ac_cpp='$CXXCPP $CPPFLAGS'
5287ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5288ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5289ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5290if test -z "$CXX"; then
5291 if test -n "$CCC"; then
5292 CXX=$CCC
5293 else
5294 if test -n "$ac_tool_prefix"; then
5295 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5296 do
5297 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5298set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5299{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5301if test "${ac_cv_prog_CXX+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5303else
5304 if test -n "$CXX"; then
5305 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5306else
5307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308for as_dir in $PATH
5309do
5310 IFS=$as_save_IFS
5311 test -z "$as_dir" && as_dir=.
5312 for ac_exec_ext in '' $ac_executable_extensions; do
5313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5314 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5316 break 2
5317 fi
5318done
5319done
5320IFS=$as_save_IFS
5321
5322fi
5323fi
5324CXX=$ac_cv_prog_CXX
5325if test -n "$CXX"; then
5326 { echo "$as_me:$LINENO: result: $CXX" >&5
5327echo "${ECHO_T}$CXX" >&6; }
5328else
5329 { echo "$as_me:$LINENO: result: no" >&5
5330echo "${ECHO_T}no" >&6; }
5331fi
5332
5333
5334 test -n "$CXX" && break
5335 done
5336fi
5337if test -z "$CXX"; then
5338 ac_ct_CXX=$CXX
5339 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5340do
5341 # Extract the first word of "$ac_prog", so it can be a program name with args.
5342set dummy $ac_prog; ac_word=$2
5343{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5345if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5347else
5348 if test -n "$ac_ct_CXX"; then
5349 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5350else
5351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352for as_dir in $PATH
5353do
5354 IFS=$as_save_IFS
5355 test -z "$as_dir" && as_dir=.
5356 for ac_exec_ext in '' $ac_executable_extensions; do
5357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5358 ac_cv_prog_ac_ct_CXX="$ac_prog"
5359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5360 break 2
5361 fi
5362done
5363done
5364IFS=$as_save_IFS
5365
5366fi
5367fi
5368ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5369if test -n "$ac_ct_CXX"; then
5370 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5371echo "${ECHO_T}$ac_ct_CXX" >&6; }
5372else
5373 { echo "$as_me:$LINENO: result: no" >&5
5374echo "${ECHO_T}no" >&6; }
5375fi
5376
5377
5378 test -n "$ac_ct_CXX" && break
5379done
5380
5381 if test "x$ac_ct_CXX" = x; then
5382 CXX="g++"
5383 else
5384 case $cross_compiling:$ac_tool_warned in
5385yes:)
5386{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5387whose name does not start with the host triplet. If you think this
5388configuration is useful to you, please write to autoconf@gnu.org." >&5
5389echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5390whose name does not start with the host triplet. If you think this
5391configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5392ac_tool_warned=yes ;;
5393esac
5394 CXX=$ac_ct_CXX
5395 fi
5396fi
5397
5398 fi
5399fi
5400# Provide some information about the compiler.
5401echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5402ac_compiler=`set X $ac_compile; echo $2`
5403{ (ac_try="$ac_compiler --version >&5"
5404case "(($ac_try" in
5405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5406 *) ac_try_echo=$ac_try;;
5407esac
5408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5409 (eval "$ac_compiler --version >&5") 2>&5
5410 ac_status=$?
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); }
5413{ (ac_try="$ac_compiler -v >&5"
5414case "(($ac_try" in
5415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5416 *) ac_try_echo=$ac_try;;
5417esac
5418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5419 (eval "$ac_compiler -v >&5") 2>&5
5420 ac_status=$?
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); }
5423{ (ac_try="$ac_compiler -V >&5"
5424case "(($ac_try" in
5425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426 *) ac_try_echo=$ac_try;;
5427esac
5428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5429 (eval "$ac_compiler -V >&5") 2>&5
5430 ac_status=$?
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); }
5433
5434{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5435echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5436if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5437 echo $ECHO_N "(cached) $ECHO_C" >&6
5438else
5439 cat >conftest.$ac_ext <<_ACEOF
5440/* confdefs.h. */
5441_ACEOF
5442cat confdefs.h >>conftest.$ac_ext
5443cat >>conftest.$ac_ext <<_ACEOF
5444/* end confdefs.h. */
5445
5446int
5447main ()
5448{
5449#ifndef __GNUC__
5450 choke me
5451#endif
5452
5453 ;
5454 return 0;
5455}
5456_ACEOF
5457rm -f conftest.$ac_objext
5458if { (ac_try="$ac_compile"
5459case "(($ac_try" in
5460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461 *) ac_try_echo=$ac_try;;
5462esac
5463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5464 (eval "$ac_compile") 2>conftest.er1
5465 ac_status=$?
5466 grep -v '^ *+' conftest.er1 >conftest.err
5467 rm -f conftest.er1
5468 cat conftest.err >&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); } && {
5471 test -z "$ac_cxx_werror_flag" ||
5472 test ! -s conftest.err
5473 } && test -s conftest.$ac_objext; then
5474 ac_compiler_gnu=yes
5475else
5476 echo "$as_me: failed program was:" >&5
5477sed 's/^/| /' conftest.$ac_ext >&5
5478
5479 ac_compiler_gnu=no
5480fi
5481
5482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5483ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5484
5485fi
5486{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5487echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5488GXX=`test $ac_compiler_gnu = yes && echo yes`
5489ac_test_CXXFLAGS=${CXXFLAGS+set}
5490ac_save_CXXFLAGS=$CXXFLAGS
5491{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5492echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5493if test "${ac_cv_prog_cxx_g+set}" = set; then
5494 echo $ECHO_N "(cached) $ECHO_C" >&6
5495else
5496 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5497 ac_cxx_werror_flag=yes
5498 ac_cv_prog_cxx_g=no
5499 CXXFLAGS="-g"
5500 cat >conftest.$ac_ext <<_ACEOF
5501/* confdefs.h. */
5502_ACEOF
5503cat confdefs.h >>conftest.$ac_ext
5504cat >>conftest.$ac_ext <<_ACEOF
5505/* end confdefs.h. */
5506
5507int
5508main ()
5509{
5510
5511 ;
5512 return 0;
5513}
5514_ACEOF
5515rm -f conftest.$ac_objext
5516if { (ac_try="$ac_compile"
5517case "(($ac_try" in
5518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5519 *) ac_try_echo=$ac_try;;
5520esac
5521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5522 (eval "$ac_compile") 2>conftest.er1
5523 ac_status=$?
5524 grep -v '^ *+' conftest.er1 >conftest.err
5525 rm -f conftest.er1
5526 cat conftest.err >&5
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); } && {
5529 test -z "$ac_cxx_werror_flag" ||
5530 test ! -s conftest.err
5531 } && test -s conftest.$ac_objext; then
5532 ac_cv_prog_cxx_g=yes
5533else
5534 echo "$as_me: failed program was:" >&5
5535sed 's/^/| /' conftest.$ac_ext >&5
5536
5537 CXXFLAGS=""
5538 cat >conftest.$ac_ext <<_ACEOF
5539/* confdefs.h. */
5540_ACEOF
5541cat confdefs.h >>conftest.$ac_ext
5542cat >>conftest.$ac_ext <<_ACEOF
5543/* end confdefs.h. */
5544
5545int
5546main ()
5547{
5548
5549 ;
5550 return 0;
5551}
5552_ACEOF
5553rm -f conftest.$ac_objext
5554if { (ac_try="$ac_compile"
5555case "(($ac_try" in
5556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5557 *) ac_try_echo=$ac_try;;
5558esac
5559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5560 (eval "$ac_compile") 2>conftest.er1
5561 ac_status=$?
5562 grep -v '^ *+' conftest.er1 >conftest.err
5563 rm -f conftest.er1
5564 cat conftest.err >&5
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); } && {
5567 test -z "$ac_cxx_werror_flag" ||
5568 test ! -s conftest.err
5569 } && test -s conftest.$ac_objext; then
5570 :
5571else
5572 echo "$as_me: failed program was:" >&5
5573sed 's/^/| /' conftest.$ac_ext >&5
5574
5575 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5576 CXXFLAGS="-g"
5577 cat >conftest.$ac_ext <<_ACEOF
5578/* confdefs.h. */
5579_ACEOF
5580cat confdefs.h >>conftest.$ac_ext
5581cat >>conftest.$ac_ext <<_ACEOF
5582/* end confdefs.h. */
5583
5584int
5585main ()
5586{
5587
5588 ;
5589 return 0;
5590}
5591_ACEOF
5592rm -f conftest.$ac_objext
5593if { (ac_try="$ac_compile"
5594case "(($ac_try" in
5595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5596 *) ac_try_echo=$ac_try;;
5597esac
5598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5599 (eval "$ac_compile") 2>conftest.er1
5600 ac_status=$?
5601 grep -v '^ *+' conftest.er1 >conftest.err
5602 rm -f conftest.er1
5603 cat conftest.err >&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); } && {
5606 test -z "$ac_cxx_werror_flag" ||
5607 test ! -s conftest.err
5608 } && test -s conftest.$ac_objext; then
5609 ac_cv_prog_cxx_g=yes
5610else
5611 echo "$as_me: failed program was:" >&5
5612sed 's/^/| /' conftest.$ac_ext >&5
5613
5614
5615fi
5616
5617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5618fi
5619
5620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5621fi
5622
5623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5624 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5625fi
5626{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5627echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5628if test "$ac_test_CXXFLAGS" = set; then
5629 CXXFLAGS=$ac_save_CXXFLAGS
5630elif test $ac_cv_prog_cxx_g = yes; then
5631 if test "$GXX" = yes; then
5632 CXXFLAGS="-g -O2"
5633 else
5634 CXXFLAGS="-g"
5635 fi
5636else
5637 if test "$GXX" = yes; then
5638 CXXFLAGS="-O2"
5639 else
5640 CXXFLAGS=
5641 fi
5642fi
5643ac_ext=cpp
5644ac_cpp='$CXXCPP $CPPFLAGS'
5645ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5646ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5647ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5648
5649depcc="$CXX" am_compiler_list=
5650
5651{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5652echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5653if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5654 echo $ECHO_N "(cached) $ECHO_C" >&6
5655else
5656 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5657 # We make a subdir and do the tests there. Otherwise we can end up
5658 # making bogus files that we don't know about and never remove. For
5659 # instance it was reported that on HP-UX the gcc test will end up
5660 # making a dummy file named `D' -- because `-MD' means `put the output
5661 # in D'.
5662 mkdir conftest.dir
5663 # Copy depcomp to subdir because otherwise we won't find it if we're
5664 # using a relative directory.
5665 cp "$am_depcomp" conftest.dir
5666 cd conftest.dir
5667 # We will build objects and dependencies in a subdirectory because
5668 # it helps to detect inapplicable dependency modes. For instance
5669 # both Tru64's cc and ICC support -MD to output dependencies as a
5670 # side effect of compilation, but ICC will put the dependencies in
5671 # the current directory while Tru64 will put them in the object
5672 # directory.
5673 mkdir sub
5674
5675 am_cv_CXX_dependencies_compiler_type=none
5676 if test "$am_compiler_list" = ""; then
5677 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5678 fi
5679 for depmode in $am_compiler_list; do
5680 # Setup a source with many dependencies, because some compilers
5681 # like to wrap large dependency lists on column 80 (with \), and
5682 # we should not choose a depcomp mode which is confused by this.
5683 #
5684 # We need to recreate these files for each test, as the compiler may
5685 # overwrite some of them when testing with obscure command lines.
5686 # This happens at least with the AIX C compiler.
5687 : > sub/conftest.c
5688 for i in 1 2 3 4 5 6; do
5689 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5690 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5691 # Solaris 8's {/usr,}/bin/sh.
5692 touch sub/conftst$i.h
5693 done
5694 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5695
5696 case $depmode in
5697 nosideeffect)
5698 # after this tag, mechanisms are not by side-effect, so they'll
5699 # only be used when explicitly requested
5700 if test "x$enable_dependency_tracking" = xyes; then
5701 continue
5702 else
5703 break
5704 fi
5705 ;;
5706 none) break ;;
5707 esac
5708 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5709 # mode. It turns out that the SunPro C++ compiler does not properly
5710 # handle `-M -o', and we need to detect this.
5711 if depmode=$depmode \
5712 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5713 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5714 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5715 >/dev/null 2>conftest.err &&
5716 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5717 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5718 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5719 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5720 # icc doesn't choke on unknown options, it will just issue warnings
5721 # or remarks (even with -Werror). So we grep stderr for any message
5722 # that says an option was ignored or not supported.
5723 # When given -MP, icc 7.0 and 7.1 complain thusly:
5724 # icc: Command line warning: ignoring option '-M'; no argument required
5725 # The diagnosis changed in icc 8.0:
5726 # icc: Command line remark: option '-MP' not supported
5727 if (grep 'ignoring option' conftest.err ||
5728 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5729 am_cv_CXX_dependencies_compiler_type=$depmode
5730 break
5731 fi
5732 fi
5733 done
5734
5735 cd ..
5736 rm -rf conftest.dir
5737else
5738 am_cv_CXX_dependencies_compiler_type=none
5739fi
5740
5741fi
5742{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5743echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5744CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5745
5746 if
5747 test "x$enable_dependency_tracking" != xno \
5748 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5749 am__fastdepCXX_TRUE=
5750 am__fastdepCXX_FALSE='#'
5751else
5752 am__fastdepCXX_TRUE='#'
5753 am__fastdepCXX_FALSE=
5754fi
5755
5756
5757
5758
5759if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5760 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5761 (test "X$CXX" != "Xg++"))) ; then
5762 ac_ext=cpp
5763ac_cpp='$CXXCPP $CPPFLAGS'
5764ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5765ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5766ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5767{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5768echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5769if test -z "$CXXCPP"; then
5770 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5771 echo $ECHO_N "(cached) $ECHO_C" >&6
5772else
5773 # Double quotes because CXXCPP needs to be expanded
5774 for CXXCPP in "$CXX -E" "/lib/cpp"
5775 do
5776 ac_preproc_ok=false
5777for ac_cxx_preproc_warn_flag in '' yes
5778do
5779 # Use a header file that comes with gcc, so configuring glibc
5780 # with a fresh cross-compiler works.
5781 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5782 # <limits.h> exists even on freestanding compilers.
5783 # On the NeXT, cc -E runs the code through the compiler's parser,
5784 # not just through cpp. "Syntax error" is here to catch this case.
5785 cat >conftest.$ac_ext <<_ACEOF
5786/* confdefs.h. */
5787_ACEOF
5788cat confdefs.h >>conftest.$ac_ext
5789cat >>conftest.$ac_ext <<_ACEOF
5790/* end confdefs.h. */
5791#ifdef __STDC__
5792# include <limits.h>
5793#else
5794# include <assert.h>
5795#endif
5796 Syntax error
5797_ACEOF
5798if { (ac_try="$ac_cpp conftest.$ac_ext"
5799case "(($ac_try" in
5800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5801 *) ac_try_echo=$ac_try;;
5802esac
5803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5805 ac_status=$?
5806 grep -v '^ *+' conftest.er1 >conftest.err
5807 rm -f conftest.er1
5808 cat conftest.err >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } >/dev/null && {
5811 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5812 test ! -s conftest.err
5813 }; then
5814 :
5815else
5816 echo "$as_me: failed program was:" >&5
5817sed 's/^/| /' conftest.$ac_ext >&5
5818
5819 # Broken: fails on valid input.
5820continue
5821fi
5822
5823rm -f conftest.err conftest.$ac_ext
5824
5825 # OK, works on sane cases. Now check whether nonexistent headers
5826 # can be detected and how.
5827 cat >conftest.$ac_ext <<_ACEOF
5828/* confdefs.h. */
5829_ACEOF
5830cat confdefs.h >>conftest.$ac_ext
5831cat >>conftest.$ac_ext <<_ACEOF
5832/* end confdefs.h. */
5833#include <ac_nonexistent.h>
5834_ACEOF
5835if { (ac_try="$ac_cpp conftest.$ac_ext"
5836case "(($ac_try" in
5837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5838 *) ac_try_echo=$ac_try;;
5839esac
5840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5842 ac_status=$?
5843 grep -v '^ *+' conftest.er1 >conftest.err
5844 rm -f conftest.er1
5845 cat conftest.err >&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); } >/dev/null && {
5848 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5849 test ! -s conftest.err
5850 }; then
5851 # Broken: success on invalid input.
5852continue
5853else
5854 echo "$as_me: failed program was:" >&5
5855sed 's/^/| /' conftest.$ac_ext >&5
5856
5857 # Passes both tests.
5858ac_preproc_ok=:
5859break
5860fi
5861
5862rm -f conftest.err conftest.$ac_ext
5863
5864done
5865# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5866rm -f conftest.err conftest.$ac_ext
5867if $ac_preproc_ok; then
5868 break
5869fi
5870
5871 done
5872 ac_cv_prog_CXXCPP=$CXXCPP
5873
5874fi
5875 CXXCPP=$ac_cv_prog_CXXCPP
5876else
5877 ac_cv_prog_CXXCPP=$CXXCPP
5878fi
5879{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5880echo "${ECHO_T}$CXXCPP" >&6; }
5881ac_preproc_ok=false
5882for ac_cxx_preproc_warn_flag in '' yes
5883do
5884 # Use a header file that comes with gcc, so configuring glibc
5885 # with a fresh cross-compiler works.
5886 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5887 # <limits.h> exists even on freestanding compilers.
5888 # On the NeXT, cc -E runs the code through the compiler's parser,
5889 # not just through cpp. "Syntax error" is here to catch this case.
5890 cat >conftest.$ac_ext <<_ACEOF
5891/* confdefs.h. */
5892_ACEOF
5893cat confdefs.h >>conftest.$ac_ext
5894cat >>conftest.$ac_ext <<_ACEOF
5895/* end confdefs.h. */
5896#ifdef __STDC__
5897# include <limits.h>
5898#else
5899# include <assert.h>
5900#endif
5901 Syntax error
5902_ACEOF
5903if { (ac_try="$ac_cpp conftest.$ac_ext"
5904case "(($ac_try" in
5905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906 *) ac_try_echo=$ac_try;;
5907esac
5908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5910 ac_status=$?
5911 grep -v '^ *+' conftest.er1 >conftest.err
5912 rm -f conftest.er1
5913 cat conftest.err >&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); } >/dev/null && {
5916 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5917 test ! -s conftest.err
5918 }; then
5919 :
5920else
5921 echo "$as_me: failed program was:" >&5
5922sed 's/^/| /' conftest.$ac_ext >&5
5923
5924 # Broken: fails on valid input.
5925continue
5926fi
5927
5928rm -f conftest.err conftest.$ac_ext
5929
5930 # OK, works on sane cases. Now check whether nonexistent headers
5931 # can be detected and how.
5932 cat >conftest.$ac_ext <<_ACEOF
5933/* confdefs.h. */
5934_ACEOF
5935cat confdefs.h >>conftest.$ac_ext
5936cat >>conftest.$ac_ext <<_ACEOF
5937/* end confdefs.h. */
5938#include <ac_nonexistent.h>
5939_ACEOF
5940if { (ac_try="$ac_cpp conftest.$ac_ext"
5941case "(($ac_try" in
5942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5943 *) ac_try_echo=$ac_try;;
5944esac
5945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5946 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5947 ac_status=$?
5948 grep -v '^ *+' conftest.er1 >conftest.err
5949 rm -f conftest.er1
5950 cat conftest.err >&5
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); } >/dev/null && {
5953 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5954 test ! -s conftest.err
5955 }; then
5956 # Broken: success on invalid input.
5957continue
5958else
5959 echo "$as_me: failed program was:" >&5
5960sed 's/^/| /' conftest.$ac_ext >&5
5961
5962 # Passes both tests.
5963ac_preproc_ok=:
5964break
5965fi
5966
5967rm -f conftest.err conftest.$ac_ext
5968
5969done
5970# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5971rm -f conftest.err conftest.$ac_ext
5972if $ac_preproc_ok; then
5973 :
5974else
5975 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5976See \`config.log' for more details." >&5
5977echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5978See \`config.log' for more details." >&2;}
5979 { (exit 1); exit 1; }; }
5980fi
5981
5982ac_ext=cpp
5983ac_cpp='$CXXCPP $CPPFLAGS'
5984ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5985ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5986ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5987
5988fi
5989
5990
5991ac_ext=f
5992ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5993ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5994ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5995if test -n "$ac_tool_prefix"; then
5996 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
5997 do
5998 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5999set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6000{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6002if test "${ac_cv_prog_F77+set}" = set; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
6004else
6005 if test -n "$F77"; then
6006 ac_cv_prog_F77="$F77" # Let the user override the test.
6007else
6008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009for as_dir in $PATH
6010do
6011 IFS=$as_save_IFS
6012 test -z "$as_dir" && as_dir=.
6013 for ac_exec_ext in '' $ac_executable_extensions; do
6014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6015 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6017 break 2
6018 fi
6019done
6020done
6021IFS=$as_save_IFS
6022
6023fi
6024fi
6025F77=$ac_cv_prog_F77
6026if test -n "$F77"; then
6027 { echo "$as_me:$LINENO: result: $F77" >&5
6028echo "${ECHO_T}$F77" >&6; }
6029else
6030 { echo "$as_me:$LINENO: result: no" >&5
6031echo "${ECHO_T}no" >&6; }
6032fi
6033
6034
6035 test -n "$F77" && break
6036 done
6037fi
6038if test -z "$F77"; then
6039 ac_ct_F77=$F77
6040 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
6041do
6042 # Extract the first word of "$ac_prog", so it can be a program name with args.
6043set dummy $ac_prog; ac_word=$2
6044{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6046if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6047 echo $ECHO_N "(cached) $ECHO_C" >&6
6048else
6049 if test -n "$ac_ct_F77"; then
6050 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6051else
6052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053for as_dir in $PATH
6054do
6055 IFS=$as_save_IFS
6056 test -z "$as_dir" && as_dir=.
6057 for ac_exec_ext in '' $ac_executable_extensions; do
6058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6059 ac_cv_prog_ac_ct_F77="$ac_prog"
6060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6061 break 2
6062 fi
6063done
6064done
6065IFS=$as_save_IFS
6066
6067fi
6068fi
6069ac_ct_F77=$ac_cv_prog_ac_ct_F77
6070if test -n "$ac_ct_F77"; then
6071 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6072echo "${ECHO_T}$ac_ct_F77" >&6; }
6073else
6074 { echo "$as_me:$LINENO: result: no" >&5
6075echo "${ECHO_T}no" >&6; }
6076fi
6077
6078
6079 test -n "$ac_ct_F77" && break
6080done
6081
6082 if test "x$ac_ct_F77" = x; then
6083 F77=""
6084 else
6085 case $cross_compiling:$ac_tool_warned in
6086yes:)
6087{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6088whose name does not start with the host triplet. If you think this
6089configuration is useful to you, please write to autoconf@gnu.org." >&5
6090echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6091whose name does not start with the host triplet. If you think this
6092configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6093ac_tool_warned=yes ;;
6094esac
6095 F77=$ac_ct_F77
6096 fi
6097fi
6098
6099
6100# Provide some information about the compiler.
6101echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6102ac_compiler=`set X $ac_compile; echo $2`
6103{ (ac_try="$ac_compiler --version >&5"
6104case "(($ac_try" in
6105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6106 *) ac_try_echo=$ac_try;;
6107esac
6108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6109 (eval "$ac_compiler --version >&5") 2>&5
6110 ac_status=$?
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); }
6113{ (ac_try="$ac_compiler -v >&5"
6114case "(($ac_try" in
6115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6116 *) ac_try_echo=$ac_try;;
6117esac
6118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6119 (eval "$ac_compiler -v >&5") 2>&5
6120 ac_status=$?
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); }
6123{ (ac_try="$ac_compiler -V >&5"
6124case "(($ac_try" in
6125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126 *) ac_try_echo=$ac_try;;
6127esac
6128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6129 (eval "$ac_compiler -V >&5") 2>&5
6130 ac_status=$?
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }
6133rm -f a.out
6134
6135# If we don't use `.F' as extension, the preprocessor is not run on the
6136# input file. (Note that this only needs to work for GNU compilers.)
6137ac_save_ext=$ac_ext
6138ac_ext=F
6139{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6140echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6141if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6142 echo $ECHO_N "(cached) $ECHO_C" >&6
6143else
6144 cat >conftest.$ac_ext <<_ACEOF
6145 program main
6146#ifndef __GNUC__
6147 choke me
6148#endif
6149
6150 end
6151_ACEOF
6152rm -f conftest.$ac_objext
6153if { (ac_try="$ac_compile"
6154case "(($ac_try" in
6155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6156 *) ac_try_echo=$ac_try;;
6157esac
6158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6159 (eval "$ac_compile") 2>conftest.er1
6160 ac_status=$?
6161 grep -v '^ *+' conftest.er1 >conftest.err
6162 rm -f conftest.er1
6163 cat conftest.err >&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } && {
6166 test -z "$ac_f77_werror_flag" ||
6167 test ! -s conftest.err
6168 } && test -s conftest.$ac_objext; then
6169 ac_compiler_gnu=yes
6170else
6171 echo "$as_me: failed program was:" >&5
6172sed 's/^/| /' conftest.$ac_ext >&5
6173
6174 ac_compiler_gnu=no
6175fi
6176
6177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6178ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6179
6180fi
6181{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6182echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6183ac_ext=$ac_save_ext
6184ac_test_FFLAGS=${FFLAGS+set}
6185ac_save_FFLAGS=$FFLAGS
6186FFLAGS=
6187{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6188echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6189if test "${ac_cv_prog_f77_g+set}" = set; then
6190 echo $ECHO_N "(cached) $ECHO_C" >&6
6191else
6192 FFLAGS=-g
6193cat >conftest.$ac_ext <<_ACEOF
6194 program main
6195
6196 end
6197_ACEOF
6198rm -f conftest.$ac_objext
6199if { (ac_try="$ac_compile"
6200case "(($ac_try" in
6201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6202 *) ac_try_echo=$ac_try;;
6203esac
6204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6205 (eval "$ac_compile") 2>conftest.er1
6206 ac_status=$?
6207 grep -v '^ *+' conftest.er1 >conftest.err
6208 rm -f conftest.er1
6209 cat conftest.err >&5
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); } && {
6212 test -z "$ac_f77_werror_flag" ||
6213 test ! -s conftest.err
6214 } && test -s conftest.$ac_objext; then
6215 ac_cv_prog_f77_g=yes
6216else
6217 echo "$as_me: failed program was:" >&5
6218sed 's/^/| /' conftest.$ac_ext >&5
6219
6220 ac_cv_prog_f77_g=no
6221fi
6222
6223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6224
6225fi
6226{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6227echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6228if test "$ac_test_FFLAGS" = set; then
6229 FFLAGS=$ac_save_FFLAGS
6230elif test $ac_cv_prog_f77_g = yes; then
6231 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6232 FFLAGS="-g -O2"
6233 else
6234 FFLAGS="-g"
6235 fi
6236else
6237 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6238 FFLAGS="-O2"
6239 else
6240 FFLAGS=
6241 fi
6242fi
6243
6244G77=`test $ac_compiler_gnu = yes && echo yes`
6245ac_ext=c
6246ac_cpp='$CPP $CPPFLAGS'
6247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6249ac_compiler_gnu=$ac_cv_c_compiler_gnu
6250
6251
6252
6253# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6254# find the maximum length of command line arguments
6255{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6256echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6257if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6258 echo $ECHO_N "(cached) $ECHO_C" >&6
6259else
6260 i=0
6261 teststring="ABCD"
6262
6263 case $build_os in
6264 msdosdjgpp*)
6265 # On DJGPP, this test can blow up pretty badly due to problems in libc
6266 # (any single argument exceeding 2000 bytes causes a buffer overrun
6267 # during glob expansion). Even if it were fixed, the result of this
6268 # check would be larger than it should be.
6269 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6270 ;;
6271
6272 gnu*)
6273 # Under GNU Hurd, this test is not required because there is
6274 # no limit to the length of command line arguments.
6275 # Libtool will interpret -1 as no limit whatsoever
6276 lt_cv_sys_max_cmd_len=-1;
6277 ;;
6278
6279 cygwin* | mingw*)
6280 # On Win9x/ME, this test blows up -- it succeeds, but takes
6281 # about 5 minutes as the teststring grows exponentially.
6282 # Worse, since 9x/ME are not pre-emptively multitasking,
6283 # you end up with a "frozen" computer, even though with patience
6284 # the test eventually succeeds (with a max line length of 256k).
6285 # Instead, let's just punt: use the minimum linelength reported by
6286 # all of the supported platforms: 8192 (on NT/2K/XP).
6287 lt_cv_sys_max_cmd_len=8192;
6288 ;;
6289
6290 amigaos*)
6291 # On AmigaOS with pdksh, this test takes hours, literally.
6292 # So we just punt and use a minimum line length of 8192.
6293 lt_cv_sys_max_cmd_len=8192;
6294 ;;
6295
6296 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6297 # This has been around since 386BSD, at least. Likely further.
6298 if test -x /sbin/sysctl; then
6299 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6300 elif test -x /usr/sbin/sysctl; then
6301 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6302 else
6303 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6304 fi
6305 # And add a safety zone
6306 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6307 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6308 ;;
6309
6310 interix*)
6311 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6312 lt_cv_sys_max_cmd_len=196608
6313 ;;
6314
6315 osf*)
6316 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6317 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6318 # nice to cause kernel panics so lets avoid the loop below.
6319 # First set a reasonable default.
6320 lt_cv_sys_max_cmd_len=16384
6321 #
6322 if test -x /sbin/sysconfig; then
6323 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6324 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6325 esac
6326 fi
6327 ;;
6328 sco3.2v5*)
6329 lt_cv_sys_max_cmd_len=102400
6330 ;;
6331 sysv5* | sco5v6* | sysv4.2uw2*)
6332 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6333 if test -n "$kargmax"; then
6334 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6335 else
6336 lt_cv_sys_max_cmd_len=32768
6337 fi
6338 ;;
6339 *)
6340 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6341 if test -n "$lt_cv_sys_max_cmd_len"; then
6342 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6343 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6344 else
6345 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6346 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6347 = "XX$teststring") >/dev/null 2>&1 &&
6348 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6349 lt_cv_sys_max_cmd_len=$new_result &&
6350 test $i != 17 # 1/2 MB should be enough
6351 do
6352 i=`expr $i + 1`
6353 teststring=$teststring$teststring
6354 done
6355 teststring=
6356 # Add a significant safety factor because C++ compilers can tack on massive
6357 # amounts of additional arguments before passing them to the linker.
6358 # It appears as though 1/2 is a usable value.
6359 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6360 fi
6361 ;;
6362 esac
6363
6364fi
6365
6366if test -n $lt_cv_sys_max_cmd_len ; then
6367 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6368echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6369else
6370 { echo "$as_me:$LINENO: result: none" >&5
6371echo "${ECHO_T}none" >&6; }
6372fi
6373
6374
6375
6376
6377
6378# Check for command to grab the raw symbol name followed by C symbol from nm.
6379{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6380echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6381if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6383else
6384
6385# These are sane defaults that work on at least a few old systems.
6386# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6387
6388# Character class describing NM global symbol codes.
6389symcode='[BCDEGRST]'
6390
6391# Regexp to match symbols that can be accessed directly from C.
6392sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6393
6394# Transform an extracted symbol line into a proper C declaration
6395lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6396
6397# Transform an extracted symbol line into symbol name and symbol address
6398lt_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'"
6399
6400# Define system-specific variables.
6401case $host_os in
6402aix*)
6403 symcode='[BCDT]'
6404 ;;
6405cygwin* | mingw* | pw32*)
6406 symcode='[ABCDGISTW]'
6407 ;;
6408hpux*) # Its linker distinguishes data from code symbols
6409 if test "$host_cpu" = ia64; then
6410 symcode='[ABCDEGRST]'
6411 fi
6412 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6413 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'"
6414 ;;
6415linux* | k*bsd*-gnu)
6416 if test "$host_cpu" = ia64; then
6417 symcode='[ABCDGIRSTW]'
6418 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6419 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'"
6420 fi
6421 ;;
6422irix* | nonstopux*)
6423 symcode='[BCDEGRST]'
6424 ;;
6425osf*)
6426 symcode='[BCDEGQRST]'
6427 ;;
6428solaris*)
6429 symcode='[BDRT]'
6430 ;;
6431sco3.2v5*)
6432 symcode='[DT]'
6433 ;;
6434sysv4.2uw2*)
6435 symcode='[DT]'
6436 ;;
6437sysv5* | sco5v6* | unixware* | OpenUNIX*)
6438 symcode='[ABDT]'
6439 ;;
6440sysv4)
6441 symcode='[DFNSTU]'
6442 ;;
6443esac
6444
6445# Handle CRLF in mingw tool chain
6446opt_cr=
6447case $build_os in
6448mingw*)
6449 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6450 ;;
6451esac
6452
6453# If we're using GNU nm, then use its standard symbol codes.
6454case `$NM -V 2>&1` in
6455*GNU* | *'with BFD'*)
6456 symcode='[ABCDGIRSTW]' ;;
6457esac
6458
6459# Try without a prefix undercore, then with it.
6460for ac_symprfx in "" "_"; do
6461
6462 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6463 symxfrm="\\1 $ac_symprfx\\2 \\2"
6464
6465 # Write the raw and C identifiers.
6466 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6467
6468 # Check to see that the pipe works correctly.
6469 pipe_works=no
6470
6471 rm -f conftest*
6472 cat > conftest.$ac_ext <<EOF
6473#ifdef __cplusplus
6474extern "C" {
6475#endif
6476char nm_test_var;
6477void nm_test_func(){}
6478#ifdef __cplusplus
6479}
6480#endif
6481int main(){nm_test_var='a';nm_test_func();return(0);}
6482EOF
6483
6484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6485 (eval $ac_compile) 2>&5
6486 ac_status=$?
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); }; then
6489 # Now try to grab the symbols.
6490 nlist=conftest.nm
6491 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6492 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6493 ac_status=$?
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); } && test -s "$nlist"; then
6496 # Try sorting and uniquifying the output.
6497 if sort "$nlist" | uniq > "$nlist"T; then
6498 mv -f "$nlist"T "$nlist"
6499 else
6500 rm -f "$nlist"T
6501 fi
6502
6503 # Make sure that we snagged all the symbols we need.
6504 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6505 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6506 cat <<EOF > conftest.$ac_ext
6507#ifdef __cplusplus
6508extern "C" {
6509#endif
6510
6511EOF
6512 # Now generate the symbol file.
6513 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6514
6515 cat <<EOF >> conftest.$ac_ext
6516#if defined (__STDC__) && __STDC__
6517# define lt_ptr_t void *
6518#else
6519# define lt_ptr_t char *
6520# define const
6521#endif
6522
6523/* The mapping between symbol names and symbols. */
6524const struct {
6525 const char *name;
6526 lt_ptr_t address;
6527}
6528lt_preloaded_symbols[] =
6529{
6530EOF
6531 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6532 cat <<\EOF >> conftest.$ac_ext
6533 {0, (lt_ptr_t) 0}
6534};
6535
6536#ifdef __cplusplus
6537}
6538#endif
6539EOF
6540 # Now try linking the two files.
6541 mv conftest.$ac_objext conftstm.$ac_objext
6542 lt_save_LIBS="$LIBS"
6543 lt_save_CFLAGS="$CFLAGS"
6544 LIBS="conftstm.$ac_objext"
6545 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6547 (eval $ac_link) 2>&5
6548 ac_status=$?
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6551 pipe_works=yes
6552 fi
6553 LIBS="$lt_save_LIBS"
6554 CFLAGS="$lt_save_CFLAGS"
6555 else
6556 echo "cannot find nm_test_func in $nlist" >&5
6557 fi
6558 else
6559 echo "cannot find nm_test_var in $nlist" >&5
6560 fi
6561 else
6562 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6563 fi
6564 else
6565 echo "$progname: failed program was:" >&5
6566 cat conftest.$ac_ext >&5
6567 fi
6568 rm -rf conftest* conftst*
6569
6570 # Do not use the global_symbol_pipe unless it works.
6571 if test "$pipe_works" = yes; then
6572 break
6573 else
6574 lt_cv_sys_global_symbol_pipe=
6575 fi
6576done
6577
6578fi
6579
6580if test -z "$lt_cv_sys_global_symbol_pipe"; then
6581 lt_cv_sys_global_symbol_to_cdecl=
6582fi
6583if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6584 { echo "$as_me:$LINENO: result: failed" >&5
6585echo "${ECHO_T}failed" >&6; }
6586else
6587 { echo "$as_me:$LINENO: result: ok" >&5
6588echo "${ECHO_T}ok" >&6; }
6589fi
6590
6591{ echo "$as_me:$LINENO: checking for objdir" >&5
6592echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6593if test "${lt_cv_objdir+set}" = set; then
6594 echo $ECHO_N "(cached) $ECHO_C" >&6
6595else
6596 rm -f .libs 2>/dev/null
6597mkdir .libs 2>/dev/null
6598if test -d .libs; then
6599 lt_cv_objdir=.libs
6600else
6601 # MS-DOS does not allow filenames that begin with a dot.
6602 lt_cv_objdir=_libs
6603fi
6604rmdir .libs 2>/dev/null
6605fi
6606{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6607echo "${ECHO_T}$lt_cv_objdir" >&6; }
6608objdir=$lt_cv_objdir
6609
6610
6611
6612
6613
6614case $host_os in
6615aix3*)
6616 # AIX sometimes has problems with the GCC collect2 program. For some
6617 # reason, if we set the COLLECT_NAMES environment variable, the problems
6618 # vanish in a puff of smoke.
6619 if test "X${COLLECT_NAMES+set}" != Xset; then
6620 COLLECT_NAMES=
6621 export COLLECT_NAMES
6622 fi
6623 ;;
6624esac
6625
6626# Sed substitution that helps us do robust quoting. It backslashifies
6627# metacharacters that are still active within double-quoted strings.
6628Xsed='sed -e 1s/^X//'
6629sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6630
6631# Same as above, but do not quote variable references.
6632double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6633
6634# Sed substitution to delay expansion of an escaped shell variable in a
6635# double_quote_subst'ed string.
6636delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6637
6638# Sed substitution to avoid accidental globbing in evaled expressions
6639no_glob_subst='s/\*/\\\*/g'
6640
6641# Constants:
6642rm="rm -f"
6643
6644# Global variables:
6645default_ofile=libtool
6646can_build_shared=yes
6647
6648# All known linkers require a `.a' archive for static linking (except MSVC,
6649# which needs '.lib').
6650libext=a
6651ltmain="$ac_aux_dir/ltmain.sh"
6652ofile="$default_ofile"
6653with_gnu_ld="$lt_cv_prog_gnu_ld"
6654
6655if test -n "$ac_tool_prefix"; then
6656 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6657set dummy ${ac_tool_prefix}ar; ac_word=$2
6658{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6660if test "${ac_cv_prog_AR+set}" = set; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
6662else
6663 if test -n "$AR"; then
6664 ac_cv_prog_AR="$AR" # Let the user override the test.
6665else
6666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667for as_dir in $PATH
6668do
6669 IFS=$as_save_IFS
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6673 ac_cv_prog_AR="${ac_tool_prefix}ar"
6674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 break 2
6676 fi
6677done
6678done
6679IFS=$as_save_IFS
6680
6681fi
6682fi
6683AR=$ac_cv_prog_AR
6684if test -n "$AR"; then
6685 { echo "$as_me:$LINENO: result: $AR" >&5
6686echo "${ECHO_T}$AR" >&6; }
6687else
6688 { echo "$as_me:$LINENO: result: no" >&5
6689echo "${ECHO_T}no" >&6; }
6690fi
6691
6692
6693fi
6694if test -z "$ac_cv_prog_AR"; then
6695 ac_ct_AR=$AR
6696 # Extract the first word of "ar", so it can be a program name with args.
6697set dummy ar; ac_word=$2
6698{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6700if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6702else
6703 if test -n "$ac_ct_AR"; then
6704 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6705else
6706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707for as_dir in $PATH
6708do
6709 IFS=$as_save_IFS
6710 test -z "$as_dir" && as_dir=.
6711 for ac_exec_ext in '' $ac_executable_extensions; do
6712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6713 ac_cv_prog_ac_ct_AR="ar"
6714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6715 break 2
6716 fi
6717done
6718done
6719IFS=$as_save_IFS
6720
6721fi
6722fi
6723ac_ct_AR=$ac_cv_prog_ac_ct_AR
6724if test -n "$ac_ct_AR"; then
6725 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6726echo "${ECHO_T}$ac_ct_AR" >&6; }
6727else
6728 { echo "$as_me:$LINENO: result: no" >&5
6729echo "${ECHO_T}no" >&6; }
6730fi
6731
6732 if test "x$ac_ct_AR" = x; then
6733 AR="false"
6734 else
6735 case $cross_compiling:$ac_tool_warned in
6736yes:)
6737{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6738whose name does not start with the host triplet. If you think this
6739configuration is useful to you, please write to autoconf@gnu.org." >&5
6740echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6741whose name does not start with the host triplet. If you think this
6742configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6743ac_tool_warned=yes ;;
6744esac
6745 AR=$ac_ct_AR
6746 fi
6747else
6748 AR="$ac_cv_prog_AR"
6749fi
6750
6751if test -n "$ac_tool_prefix"; then
6752 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6753set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6754{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6756if test "${ac_cv_prog_RANLIB+set}" = set; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
6758else
6759 if test -n "$RANLIB"; then
6760 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6761else
6762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763for as_dir in $PATH
6764do
6765 IFS=$as_save_IFS
6766 test -z "$as_dir" && as_dir=.
6767 for ac_exec_ext in '' $ac_executable_extensions; do
6768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6769 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6771 break 2
6772 fi
6773done
6774done
6775IFS=$as_save_IFS
6776
6777fi
6778fi
6779RANLIB=$ac_cv_prog_RANLIB
6780if test -n "$RANLIB"; then
6781 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6782echo "${ECHO_T}$RANLIB" >&6; }
6783else
6784 { echo "$as_me:$LINENO: result: no" >&5
6785echo "${ECHO_T}no" >&6; }
6786fi
6787
6788
6789fi
6790if test -z "$ac_cv_prog_RANLIB"; then
6791 ac_ct_RANLIB=$RANLIB
6792 # Extract the first word of "ranlib", so it can be a program name with args.
6793set dummy ranlib; ac_word=$2
6794{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6796if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6798else
6799 if test -n "$ac_ct_RANLIB"; then
6800 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6801else
6802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803for as_dir in $PATH
6804do
6805 IFS=$as_save_IFS
6806 test -z "$as_dir" && as_dir=.
6807 for ac_exec_ext in '' $ac_executable_extensions; do
6808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6809 ac_cv_prog_ac_ct_RANLIB="ranlib"
6810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6811 break 2
6812 fi
6813done
6814done
6815IFS=$as_save_IFS
6816
6817fi
6818fi
6819ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6820if test -n "$ac_ct_RANLIB"; then
6821 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6822echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6823else
6824 { echo "$as_me:$LINENO: result: no" >&5
6825echo "${ECHO_T}no" >&6; }
6826fi
6827
6828 if test "x$ac_ct_RANLIB" = x; then
6829 RANLIB=":"
6830 else
6831 case $cross_compiling:$ac_tool_warned in
6832yes:)
6833{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6834whose name does not start with the host triplet. If you think this
6835configuration is useful to you, please write to autoconf@gnu.org." >&5
6836echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6837whose name does not start with the host triplet. If you think this
6838configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6839ac_tool_warned=yes ;;
6840esac
6841 RANLIB=$ac_ct_RANLIB
6842 fi
6843else
6844 RANLIB="$ac_cv_prog_RANLIB"
6845fi
6846
6847if test -n "$ac_tool_prefix"; then
6848 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6849set dummy ${ac_tool_prefix}strip; ac_word=$2
6850{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6852if test "${ac_cv_prog_STRIP+set}" = set; then
6853 echo $ECHO_N "(cached) $ECHO_C" >&6
6854else
6855 if test -n "$STRIP"; then
6856 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6857else
6858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859for as_dir in $PATH
6860do
6861 IFS=$as_save_IFS
6862 test -z "$as_dir" && as_dir=.
6863 for ac_exec_ext in '' $ac_executable_extensions; do
6864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6865 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6867 break 2
6868 fi
6869done
6870done
6871IFS=$as_save_IFS
6872
6873fi
6874fi
6875STRIP=$ac_cv_prog_STRIP
6876if test -n "$STRIP"; then
6877 { echo "$as_me:$LINENO: result: $STRIP" >&5
6878echo "${ECHO_T}$STRIP" >&6; }
6879else
6880 { echo "$as_me:$LINENO: result: no" >&5
6881echo "${ECHO_T}no" >&6; }
6882fi
6883
6884
6885fi
6886if test -z "$ac_cv_prog_STRIP"; then
6887 ac_ct_STRIP=$STRIP
6888 # Extract the first word of "strip", so it can be a program name with args.
6889set dummy strip; ac_word=$2
6890{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6892if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6893 echo $ECHO_N "(cached) $ECHO_C" >&6
6894else
6895 if test -n "$ac_ct_STRIP"; then
6896 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6897else
6898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899for as_dir in $PATH
6900do
6901 IFS=$as_save_IFS
6902 test -z "$as_dir" && as_dir=.
6903 for ac_exec_ext in '' $ac_executable_extensions; do
6904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6905 ac_cv_prog_ac_ct_STRIP="strip"
6906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6907 break 2
6908 fi
6909done
6910done
6911IFS=$as_save_IFS
6912
6913fi
6914fi
6915ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6916if test -n "$ac_ct_STRIP"; then
6917 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6918echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6919else
6920 { echo "$as_me:$LINENO: result: no" >&5
6921echo "${ECHO_T}no" >&6; }
6922fi
6923
6924 if test "x$ac_ct_STRIP" = x; then
6925 STRIP=":"
6926 else
6927 case $cross_compiling:$ac_tool_warned in
6928yes:)
6929{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6930whose name does not start with the host triplet. If you think this
6931configuration is useful to you, please write to autoconf@gnu.org." >&5
6932echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6933whose name does not start with the host triplet. If you think this
6934configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6935ac_tool_warned=yes ;;
6936esac
6937 STRIP=$ac_ct_STRIP
6938 fi
6939else
6940 STRIP="$ac_cv_prog_STRIP"
6941fi
6942
6943
6944old_CC="$CC"
6945old_CFLAGS="$CFLAGS"
6946
6947# Set sane defaults for various variables
6948test -z "$AR" && AR=ar
6949test -z "$AR_FLAGS" && AR_FLAGS=cru
6950test -z "$AS" && AS=as
6951test -z "$CC" && CC=cc
6952test -z "$LTCC" && LTCC=$CC
6953test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6954test -z "$DLLTOOL" && DLLTOOL=dlltool
6955test -z "$LD" && LD=ld
6956test -z "$LN_S" && LN_S="ln -s"
6957test -z "$MAGIC_CMD" && MAGIC_CMD=file
6958test -z "$NM" && NM=nm
6959test -z "$SED" && SED=sed
6960test -z "$OBJDUMP" && OBJDUMP=objdump
6961test -z "$RANLIB" && RANLIB=:
6962test -z "$STRIP" && STRIP=:
6963test -z "$ac_objext" && ac_objext=o
6964
6965# Determine commands to create old-style static archives.
6966old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6967old_postinstall_cmds='chmod 644 $oldlib'
6968old_postuninstall_cmds=
6969
6970if test -n "$RANLIB"; then
6971 case $host_os in
6972 openbsd*)
6973 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6974 ;;
6975 *)
6976 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6977 ;;
6978 esac
6979 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6980fi
6981
6982for cc_temp in $compiler""; do
6983 case $cc_temp in
6984 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6985 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6986 \-*) ;;
6987 *) break;;
6988 esac
6989done
6990cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6991
6992
6993# Only perform the check for file, if the check method requires it
6994case $deplibs_check_method in
6995file_magic*)
6996 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6997 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6998echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6999if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7000 echo $ECHO_N "(cached) $ECHO_C" >&6
7001else
7002 case $MAGIC_CMD in
7003[\\/*] | ?:[\\/]*)
7004 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7005 ;;
7006*)
7007 lt_save_MAGIC_CMD="$MAGIC_CMD"
7008 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7009 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7010 for ac_dir in $ac_dummy; do
7011 IFS="$lt_save_ifs"
7012 test -z "$ac_dir" && ac_dir=.
7013 if test -f $ac_dir/${ac_tool_prefix}file; then
7014 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7015 if test -n "$file_magic_test_file"; then
7016 case $deplibs_check_method in
7017 "file_magic "*)
7018 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7019 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7020 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7021 $EGREP "$file_magic_regex" > /dev/null; then
7022 :
7023 else
7024 cat <<EOF 1>&2
7025
7026*** Warning: the command libtool uses to detect shared libraries,
7027*** $file_magic_cmd, produces output that libtool cannot recognize.
7028*** The result is that libtool may fail to recognize shared libraries
7029*** as such. This will affect the creation of libtool libraries that
7030*** depend on shared libraries, but programs linked with such libtool
7031*** libraries will work regardless of this problem. Nevertheless, you
7032*** may want to report the problem to your system manager and/or to
7033*** bug-libtool@gnu.org
7034
7035EOF
7036 fi ;;
7037 esac
7038 fi
7039 break
7040 fi
7041 done
7042 IFS="$lt_save_ifs"
7043 MAGIC_CMD="$lt_save_MAGIC_CMD"
7044 ;;
7045esac
7046fi
7047
7048MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7049if test -n "$MAGIC_CMD"; then
7050 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7051echo "${ECHO_T}$MAGIC_CMD" >&6; }
7052else
7053 { echo "$as_me:$LINENO: result: no" >&5
7054echo "${ECHO_T}no" >&6; }
7055fi
7056
7057if test -z "$lt_cv_path_MAGIC_CMD"; then
7058 if test -n "$ac_tool_prefix"; then
7059 { echo "$as_me:$LINENO: checking for file" >&5
7060echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7061if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7062 echo $ECHO_N "(cached) $ECHO_C" >&6
7063else
7064 case $MAGIC_CMD in
7065[\\/*] | ?:[\\/]*)
7066 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7067 ;;
7068*)
7069 lt_save_MAGIC_CMD="$MAGIC_CMD"
7070 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7071 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7072 for ac_dir in $ac_dummy; do
7073 IFS="$lt_save_ifs"
7074 test -z "$ac_dir" && ac_dir=.
7075 if test -f $ac_dir/file; then
7076 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7077 if test -n "$file_magic_test_file"; then
7078 case $deplibs_check_method in
7079 "file_magic "*)
7080 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7081 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7082 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7083 $EGREP "$file_magic_regex" > /dev/null; then
7084 :
7085 else
7086 cat <<EOF 1>&2
7087
7088*** Warning: the command libtool uses to detect shared libraries,
7089*** $file_magic_cmd, produces output that libtool cannot recognize.
7090*** The result is that libtool may fail to recognize shared libraries
7091*** as such. This will affect the creation of libtool libraries that
7092*** depend on shared libraries, but programs linked with such libtool
7093*** libraries will work regardless of this problem. Nevertheless, you
7094*** may want to report the problem to your system manager and/or to
7095*** bug-libtool@gnu.org
7096
7097EOF
7098 fi ;;
7099 esac
7100 fi
7101 break
7102 fi
7103 done
7104 IFS="$lt_save_ifs"
7105 MAGIC_CMD="$lt_save_MAGIC_CMD"
7106 ;;
7107esac
7108fi
7109
7110MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7111if test -n "$MAGIC_CMD"; then
7112 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7113echo "${ECHO_T}$MAGIC_CMD" >&6; }
7114else
7115 { echo "$as_me:$LINENO: result: no" >&5
7116echo "${ECHO_T}no" >&6; }
7117fi
7118
7119 else
7120 MAGIC_CMD=:
7121 fi
7122fi
7123
7124 fi
7125 ;;
7126esac
7127
7128
7129 case $host_os in
7130 rhapsody* | darwin*)
7131 if test -n "$ac_tool_prefix"; then
7132 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7133set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7134{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7136if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7138else
7139 if test -n "$DSYMUTIL"; then
7140 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7141else
7142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143for as_dir in $PATH
7144do
7145 IFS=$as_save_IFS
7146 test -z "$as_dir" && as_dir=.
7147 for ac_exec_ext in '' $ac_executable_extensions; do
7148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7149 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7151 break 2
7152 fi
7153done
7154done
7155IFS=$as_save_IFS
7156
7157fi
7158fi
7159DSYMUTIL=$ac_cv_prog_DSYMUTIL
7160if test -n "$DSYMUTIL"; then
7161 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7162echo "${ECHO_T}$DSYMUTIL" >&6; }
7163else
7164 { echo "$as_me:$LINENO: result: no" >&5
7165echo "${ECHO_T}no" >&6; }
7166fi
7167
7168
7169fi
7170if test -z "$ac_cv_prog_DSYMUTIL"; then
7171 ac_ct_DSYMUTIL=$DSYMUTIL
7172 # Extract the first word of "dsymutil", so it can be a program name with args.
7173set dummy dsymutil; ac_word=$2
7174{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7176if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7177 echo $ECHO_N "(cached) $ECHO_C" >&6
7178else
7179 if test -n "$ac_ct_DSYMUTIL"; then
7180 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7181else
7182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183for as_dir in $PATH
7184do
7185 IFS=$as_save_IFS
7186 test -z "$as_dir" && as_dir=.
7187 for ac_exec_ext in '' $ac_executable_extensions; do
7188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7189 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7191 break 2
7192 fi
7193done
7194done
7195IFS=$as_save_IFS
7196
7197fi
7198fi
7199ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7200if test -n "$ac_ct_DSYMUTIL"; then
7201 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7202echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7203else
7204 { echo "$as_me:$LINENO: result: no" >&5
7205echo "${ECHO_T}no" >&6; }
7206fi
7207
7208 if test "x$ac_ct_DSYMUTIL" = x; then
7209 DSYMUTIL=":"
7210 else
7211 case $cross_compiling:$ac_tool_warned in
7212yes:)
7213{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7214whose name does not start with the host triplet. If you think this
7215configuration is useful to you, please write to autoconf@gnu.org." >&5
7216echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7217whose name does not start with the host triplet. If you think this
7218configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7219ac_tool_warned=yes ;;
7220esac
7221 DSYMUTIL=$ac_ct_DSYMUTIL
7222 fi
7223else
7224 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7225fi
7226
7227 if test -n "$ac_tool_prefix"; then
7228 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7229set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7230{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7232if test "${ac_cv_prog_NMEDIT+set}" = set; then
7233 echo $ECHO_N "(cached) $ECHO_C" >&6
7234else
7235 if test -n "$NMEDIT"; then
7236 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7237else
7238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239for as_dir in $PATH
7240do
7241 IFS=$as_save_IFS
7242 test -z "$as_dir" && as_dir=.
7243 for ac_exec_ext in '' $ac_executable_extensions; do
7244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7245 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 break 2
7248 fi
7249done
7250done
7251IFS=$as_save_IFS
7252
7253fi
7254fi
7255NMEDIT=$ac_cv_prog_NMEDIT
7256if test -n "$NMEDIT"; then
7257 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7258echo "${ECHO_T}$NMEDIT" >&6; }
7259else
7260 { echo "$as_me:$LINENO: result: no" >&5
7261echo "${ECHO_T}no" >&6; }
7262fi
7263
7264
7265fi
7266if test -z "$ac_cv_prog_NMEDIT"; then
7267 ac_ct_NMEDIT=$NMEDIT
7268 # Extract the first word of "nmedit", so it can be a program name with args.
7269set dummy nmedit; ac_word=$2
7270{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7272if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7273 echo $ECHO_N "(cached) $ECHO_C" >&6
7274else
7275 if test -n "$ac_ct_NMEDIT"; then
7276 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7277else
7278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279for as_dir in $PATH
7280do
7281 IFS=$as_save_IFS
7282 test -z "$as_dir" && as_dir=.
7283 for ac_exec_ext in '' $ac_executable_extensions; do
7284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7285 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7287 break 2
7288 fi
7289done
7290done
7291IFS=$as_save_IFS
7292
7293fi
7294fi
7295ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7296if test -n "$ac_ct_NMEDIT"; then
7297 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7298echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7299else
7300 { echo "$as_me:$LINENO: result: no" >&5
7301echo "${ECHO_T}no" >&6; }
7302fi
7303
7304 if test "x$ac_ct_NMEDIT" = x; then
7305 NMEDIT=":"
7306 else
7307 case $cross_compiling:$ac_tool_warned in
7308yes:)
7309{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7310whose name does not start with the host triplet. If you think this
7311configuration is useful to you, please write to autoconf@gnu.org." >&5
7312echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7313whose name does not start with the host triplet. If you think this
7314configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7315ac_tool_warned=yes ;;
7316esac
7317 NMEDIT=$ac_ct_NMEDIT
7318 fi
7319else
7320 NMEDIT="$ac_cv_prog_NMEDIT"
7321fi
7322
7323
7324 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7325echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7326if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
7328else
7329 lt_cv_apple_cc_single_mod=no
7330 if test -z "${LT_MULTI_MODULE}"; then
7331 # By default we will add the -single_module flag. You can override
7332 # by either setting the environment variable LT_MULTI_MODULE
7333 # non-empty at configure time, or by adding -multi_module to the
7334 # link flags.
7335 echo "int foo(void){return 1;}" > conftest.c
7336 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7337 -dynamiclib ${wl}-single_module conftest.c
7338 if test -f libconftest.dylib; then
7339 lt_cv_apple_cc_single_mod=yes
7340 rm -rf libconftest.dylib*
7341 fi
7342 rm conftest.c
7343 fi
7344fi
7345{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7346echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7347 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7348echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7349if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7351else
7352 lt_cv_ld_exported_symbols_list=no
7353 save_LDFLAGS=$LDFLAGS
7354 echo "_main" > conftest.sym
7355 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7356 cat >conftest.$ac_ext <<_ACEOF
7357/* confdefs.h. */
7358_ACEOF
7359cat confdefs.h >>conftest.$ac_ext
7360cat >>conftest.$ac_ext <<_ACEOF
7361/* end confdefs.h. */
7362
7363int
7364main ()
7365{
7366
7367 ;
7368 return 0;
7369}
7370_ACEOF
7371rm -f conftest.$ac_objext conftest$ac_exeext
7372if { (ac_try="$ac_link"
7373case "(($ac_try" in
7374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7375 *) ac_try_echo=$ac_try;;
7376esac
7377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7378 (eval "$ac_link") 2>conftest.er1
7379 ac_status=$?
7380 grep -v '^ *+' conftest.er1 >conftest.err
7381 rm -f conftest.er1
7382 cat conftest.err >&5
7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); } && {
7385 test -z "$ac_c_werror_flag" ||
7386 test ! -s conftest.err
7387 } && test -s conftest$ac_exeext &&
7388 $as_test_x conftest$ac_exeext; then
7389 lt_cv_ld_exported_symbols_list=yes
7390else
7391 echo "$as_me: failed program was:" >&5
7392sed 's/^/| /' conftest.$ac_ext >&5
7393
7394 lt_cv_ld_exported_symbols_list=no
7395fi
7396
7397rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7398 conftest$ac_exeext conftest.$ac_ext
7399 LDFLAGS="$save_LDFLAGS"
7400
7401fi
7402{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7403echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7404 case $host_os in
7405 rhapsody* | darwin1.[0123])
7406 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7407 darwin1.*)
7408 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7409 darwin*)
7410 # if running on 10.5 or later, the deployment target defaults
7411 # to the OS version, if on x86, and 10.4, the deployment
7412 # target defaults to 10.4. Don't you love it?
7413 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7414 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7415 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7416 10.[012]*)
7417 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7418 10.*)
7419 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7420 esac
7421 ;;
7422 esac
7423 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7424 _lt_dar_single_mod='$single_module'
7425 fi
7426 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7427 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7428 else
7429 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7430 fi
7431 if test "$DSYMUTIL" != ":"; then
7432 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7433 else
7434 _lt_dsymutil=
7435 fi
7436 ;;
7437 esac
7438
7439
7440enable_dlopen=no
7441enable_win32_dll=no
7442
7443# Check whether --enable-libtool-lock was given.
7444if test "${enable_libtool_lock+set}" = set; then
7445 enableval=$enable_libtool_lock;
7446fi
7447
7448test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7449
7450
7451# Check whether --with-pic was given.
7452if test "${with_pic+set}" = set; then
7453 withval=$with_pic; pic_mode="$withval"
7454else
7455 pic_mode=default
7456fi
7457
7458test -z "$pic_mode" && pic_mode=default
7459
7460# Use C for the default configuration in the libtool script
7461tagname=
7462lt_save_CC="$CC"
7463ac_ext=c
7464ac_cpp='$CPP $CPPFLAGS'
7465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7467ac_compiler_gnu=$ac_cv_c_compiler_gnu
7468
7469
7470# Source file extension for C test sources.
7471ac_ext=c
7472
7473# Object file extension for compiled C test sources.
7474objext=o
7475objext=$objext
7476
7477# Code to be used in simple compile tests
7478lt_simple_compile_test_code="int some_variable = 0;"
7479
7480# Code to be used in simple link tests
7481lt_simple_link_test_code='int main(){return(0);}'
7482
7483
7484# If no C compiler was specified, use CC.
7485LTCC=${LTCC-"$CC"}
7486
7487# If no C compiler flags were specified, use CFLAGS.
7488LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7489
7490# Allow CC to be a program name with arguments.
7491compiler=$CC
7492
7493
7494# save warnings/boilerplate of simple test code
7495ac_outfile=conftest.$ac_objext
7496echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7497eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7498_lt_compiler_boilerplate=`cat conftest.err`
7499$rm conftest*
7500
7501ac_outfile=conftest.$ac_objext
7502echo "$lt_simple_link_test_code" >conftest.$ac_ext
7503eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7504_lt_linker_boilerplate=`cat conftest.err`
7505$rm -r conftest*
7506
7507
7508
7509lt_prog_compiler_no_builtin_flag=
7510
7511if test "$GCC" = yes; then
7512 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7513
7514
7515{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7516echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7517if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7519else
7520 lt_cv_prog_compiler_rtti_exceptions=no
7521 ac_outfile=conftest.$ac_objext
7522 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7523 lt_compiler_flag="-fno-rtti -fno-exceptions"
7524 # Insert the option either (1) after the last *FLAGS variable, or
7525 # (2) before a word containing "conftest.", or (3) at the end.
7526 # Note that $ac_compile itself does not contain backslashes and begins
7527 # with a dollar sign (not a hyphen), so the echo should work correctly.
7528 # The option is referenced via a variable to avoid confusing sed.
7529 lt_compile=`echo "$ac_compile" | $SED \
7530 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7531 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7532 -e 's:$: $lt_compiler_flag:'`
7533 (eval echo "\"\$as_me:7533: $lt_compile\"" >&5)
7534 (eval "$lt_compile" 2>conftest.err)
7535 ac_status=$?
7536 cat conftest.err >&5
7537 echo "$as_me:7537: \$? = $ac_status" >&5
7538 if (exit $ac_status) && test -s "$ac_outfile"; then
7539 # The compiler can only warn and ignore the option if not recognized
7540 # So say no if there are warnings other than the usual output.
7541 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7542 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7543 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7544 lt_cv_prog_compiler_rtti_exceptions=yes
7545 fi
7546 fi
7547 $rm conftest*
7548
7549fi
7550{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7551echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7552
7553if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7554 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7555else
7556 :
7557fi
7558
7559fi
7560
7561lt_prog_compiler_wl=
7562lt_prog_compiler_pic=
7563lt_prog_compiler_static=
7564
7565{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7566echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7567
7568 if test "$GCC" = yes; then
7569 lt_prog_compiler_wl='-Wl,'
7570 lt_prog_compiler_static='-static'
7571
7572 case $host_os in
7573 aix*)
7574 # All AIX code is PIC.
7575 if test "$host_cpu" = ia64; then
7576 # AIX 5 now supports IA64 processor
7577 lt_prog_compiler_static='-Bstatic'
7578 fi
7579 ;;
7580
7581 amigaos*)
7582 # FIXME: we need at least 68020 code to build shared libraries, but
7583 # adding the `-m68020' flag to GCC prevents building anything better,
7584 # like `-m68040'.
7585 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7586 ;;
7587
7588 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7589 # PIC is the default for these OSes.
7590 ;;
7591
7592 mingw* | cygwin* | pw32* | os2*)
7593 # This hack is so that the source file can tell whether it is being
7594 # built for inclusion in a dll (and should export symbols for example).
7595 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7596 # (--disable-auto-import) libraries
7597 lt_prog_compiler_pic='-DDLL_EXPORT'
7598 ;;
7599
7600 darwin* | rhapsody*)
7601 # PIC is the default on this platform
7602 # Common symbols not allowed in MH_DYLIB files
7603 lt_prog_compiler_pic='-fno-common'
7604 ;;
7605
7606 interix[3-9]*)
7607 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7608 # Instead, we relocate shared libraries at runtime.
7609 ;;
7610
7611 msdosdjgpp*)
7612 # Just because we use GCC doesn't mean we suddenly get shared libraries
7613 # on systems that don't support them.
7614 lt_prog_compiler_can_build_shared=no
7615 enable_shared=no
7616 ;;
7617
7618 sysv4*MP*)
7619 if test -d /usr/nec; then
7620 lt_prog_compiler_pic=-Kconform_pic
7621 fi
7622 ;;
7623
7624 hpux*)
7625 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7626 # not for PA HP-UX.
7627 case $host_cpu in
7628 hppa*64*|ia64*)
7629 # +Z the default
7630 ;;
7631 *)
7632 lt_prog_compiler_pic='-fPIC'
7633 ;;
7634 esac
7635 ;;
7636
7637 *)
7638 lt_prog_compiler_pic='-fPIC'
7639 ;;
7640 esac
7641 else
7642 # PORTME Check for flag to pass linker flags through the system compiler.
7643 case $host_os in
7644 aix*)
7645 lt_prog_compiler_wl='-Wl,'
7646 if test "$host_cpu" = ia64; then
7647 # AIX 5 now supports IA64 processor
7648 lt_prog_compiler_static='-Bstatic'
7649 else
7650 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7651 fi
7652 ;;
7653 darwin*)
7654 # PIC is the default on this platform
7655 # Common symbols not allowed in MH_DYLIB files
7656 case $cc_basename in
7657 xlc*)
7658 lt_prog_compiler_pic='-qnocommon'
7659 lt_prog_compiler_wl='-Wl,'
7660 ;;
7661 esac
7662 ;;
7663
7664 mingw* | cygwin* | pw32* | os2*)
7665 # This hack is so that the source file can tell whether it is being
7666 # built for inclusion in a dll (and should export symbols for example).
7667 lt_prog_compiler_pic='-DDLL_EXPORT'
7668 ;;
7669
7670 hpux9* | hpux10* | hpux11*)
7671 lt_prog_compiler_wl='-Wl,'
7672 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7673 # not for PA HP-UX.
7674 case $host_cpu in
7675 hppa*64*|ia64*)
7676 # +Z the default
7677 ;;
7678 *)
7679 lt_prog_compiler_pic='+Z'
7680 ;;
7681 esac
7682 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7683 lt_prog_compiler_static='${wl}-a ${wl}archive'
7684 ;;
7685
7686 irix5* | irix6* | nonstopux*)
7687 lt_prog_compiler_wl='-Wl,'
7688 # PIC (with -KPIC) is the default.
7689 lt_prog_compiler_static='-non_shared'
7690 ;;
7691
7692 newsos6)
7693 lt_prog_compiler_pic='-KPIC'
7694 lt_prog_compiler_static='-Bstatic'
7695 ;;
7696
7697 linux* | k*bsd*-gnu)
7698 case $cc_basename in
7699 icc* | ecc*)
7700 lt_prog_compiler_wl='-Wl,'
7701 lt_prog_compiler_pic='-KPIC'
7702 lt_prog_compiler_static='-static'
7703 ;;
7704 pgcc* | pgf77* | pgf90* | pgf95*)
7705 # Portland Group compilers (*not* the Pentium gcc compiler,
7706 # which looks to be a dead project)
7707 lt_prog_compiler_wl='-Wl,'
7708 lt_prog_compiler_pic='-fpic'
7709 lt_prog_compiler_static='-Bstatic'
7710 ;;
7711 ccc*)
7712 lt_prog_compiler_wl='-Wl,'
7713 # All Alpha code is PIC.
7714 lt_prog_compiler_static='-non_shared'
7715 ;;
7716 *)
7717 case `$CC -V 2>&1 | sed 5q` in
7718 *Sun\ C*)
7719 # Sun C 5.9
7720 lt_prog_compiler_pic='-KPIC'
7721 lt_prog_compiler_static='-Bstatic'
7722 lt_prog_compiler_wl='-Wl,'
7723 ;;
7724 *Sun\ F*)
7725 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7726 lt_prog_compiler_pic='-KPIC'
7727 lt_prog_compiler_static='-Bstatic'
7728 lt_prog_compiler_wl=''
7729 ;;
7730 esac
7731 ;;
7732 esac
7733 ;;
7734
7735 osf3* | osf4* | osf5*)
7736 lt_prog_compiler_wl='-Wl,'
7737 # All OSF/1 code is PIC.
7738 lt_prog_compiler_static='-non_shared'
7739 ;;
7740
7741 rdos*)
7742 lt_prog_compiler_static='-non_shared'
7743 ;;
7744
7745 solaris*)
7746 lt_prog_compiler_pic='-KPIC'
7747 lt_prog_compiler_static='-Bstatic'
7748 case $cc_basename in
7749 f77* | f90* | f95*)
7750 lt_prog_compiler_wl='-Qoption ld ';;
7751 *)
7752 lt_prog_compiler_wl='-Wl,';;
7753 esac
7754 ;;
7755
7756 sunos4*)
7757 lt_prog_compiler_wl='-Qoption ld '
7758 lt_prog_compiler_pic='-PIC'
7759 lt_prog_compiler_static='-Bstatic'
7760 ;;
7761
7762 sysv4 | sysv4.2uw2* | sysv4.3*)
7763 lt_prog_compiler_wl='-Wl,'
7764 lt_prog_compiler_pic='-KPIC'
7765 lt_prog_compiler_static='-Bstatic'
7766 ;;
7767
7768 sysv4*MP*)
7769 if test -d /usr/nec ;then
7770 lt_prog_compiler_pic='-Kconform_pic'
7771 lt_prog_compiler_static='-Bstatic'
7772 fi
7773 ;;
7774
7775 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7776 lt_prog_compiler_wl='-Wl,'
7777 lt_prog_compiler_pic='-KPIC'
7778 lt_prog_compiler_static='-Bstatic'
7779 ;;
7780
7781 unicos*)
7782 lt_prog_compiler_wl='-Wl,'
7783 lt_prog_compiler_can_build_shared=no
7784 ;;
7785
7786 uts4*)
7787 lt_prog_compiler_pic='-pic'
7788 lt_prog_compiler_static='-Bstatic'
7789 ;;
7790
7791 *)
7792 lt_prog_compiler_can_build_shared=no
7793 ;;
7794 esac
7795 fi
7796
7797{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7798echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7799
7800#
7801# Check to make sure the PIC flag actually works.
7802#
7803if test -n "$lt_prog_compiler_pic"; then
7804
7805{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7806echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7807if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7808 echo $ECHO_N "(cached) $ECHO_C" >&6
7809else
7810 lt_cv_prog_compiler_pic_works=no
7811 ac_outfile=conftest.$ac_objext
7812 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7813 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7814 # Insert the option either (1) after the last *FLAGS variable, or
7815 # (2) before a word containing "conftest.", or (3) at the end.
7816 # Note that $ac_compile itself does not contain backslashes and begins
7817 # with a dollar sign (not a hyphen), so the echo should work correctly.
7818 # The option is referenced via a variable to avoid confusing sed.
7819 lt_compile=`echo "$ac_compile" | $SED \
7820 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7821 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7822 -e 's:$: $lt_compiler_flag:'`
7823 (eval echo "\"\$as_me:7823: $lt_compile\"" >&5)
7824 (eval "$lt_compile" 2>conftest.err)
7825 ac_status=$?
7826 cat conftest.err >&5
7827 echo "$as_me:7827: \$? = $ac_status" >&5
7828 if (exit $ac_status) && test -s "$ac_outfile"; then
7829 # The compiler can only warn and ignore the option if not recognized
7830 # So say no if there are warnings other than the usual output.
7831 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7832 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7833 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7834 lt_cv_prog_compiler_pic_works=yes
7835 fi
7836 fi
7837 $rm conftest*
7838
7839fi
7840{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7841echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7842
7843if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7844 case $lt_prog_compiler_pic in
7845 "" | " "*) ;;
7846 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7847 esac
7848else
7849 lt_prog_compiler_pic=
7850 lt_prog_compiler_can_build_shared=no
7851fi
7852
7853fi
7854case $host_os in
7855 # For platforms which do not support PIC, -DPIC is meaningless:
7856 *djgpp*)
7857 lt_prog_compiler_pic=
7858 ;;
7859 *)
7860 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7861 ;;
7862esac
7863
7864#
7865# Check to make sure the static flag actually works.
7866#
7867wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7868{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7869echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7870if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7871 echo $ECHO_N "(cached) $ECHO_C" >&6
7872else
7873 lt_cv_prog_compiler_static_works=no
7874 save_LDFLAGS="$LDFLAGS"
7875 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7876 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7877 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7878 # The linker can only warn and ignore the option if not recognized
7879 # So say no if there are warnings
7880 if test -s conftest.err; then
7881 # Append any errors to the config.log.
7882 cat conftest.err 1>&5
7883 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7884 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7885 if diff conftest.exp conftest.er2 >/dev/null; then
7886 lt_cv_prog_compiler_static_works=yes
7887 fi
7888 else
7889 lt_cv_prog_compiler_static_works=yes
7890 fi
7891 fi
7892 $rm -r conftest*
7893 LDFLAGS="$save_LDFLAGS"
7894
7895fi
7896{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7897echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7898
7899if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7900 :
7901else
7902 lt_prog_compiler_static=
7903fi
7904
7905
7906{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7907echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7908if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7910else
7911 lt_cv_prog_compiler_c_o=no
7912 $rm -r conftest 2>/dev/null
7913 mkdir conftest
7914 cd conftest
7915 mkdir out
7916 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7917
7918 lt_compiler_flag="-o out/conftest2.$ac_objext"
7919 # Insert the option either (1) after the last *FLAGS variable, or
7920 # (2) before a word containing "conftest.", or (3) at the end.
7921 # Note that $ac_compile itself does not contain backslashes and begins
7922 # with a dollar sign (not a hyphen), so the echo should work correctly.
7923 lt_compile=`echo "$ac_compile" | $SED \
7924 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7925 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7926 -e 's:$: $lt_compiler_flag:'`
7927 (eval echo "\"\$as_me:7927: $lt_compile\"" >&5)
7928 (eval "$lt_compile" 2>out/conftest.err)
7929 ac_status=$?
7930 cat out/conftest.err >&5
7931 echo "$as_me:7931: \$? = $ac_status" >&5
7932 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7933 then
7934 # The compiler can only warn and ignore the option if not recognized
7935 # So say no if there are warnings
7936 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7937 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7938 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7939 lt_cv_prog_compiler_c_o=yes
7940 fi
7941 fi
7942 chmod u+w . 2>&5
7943 $rm conftest*
7944 # SGI C++ compiler will create directory out/ii_files/ for
7945 # template instantiation
7946 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7947 $rm out/* && rmdir out
7948 cd ..
7949 rmdir conftest
7950 $rm conftest*
7951
7952fi
7953{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7954echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7955
7956
7957hard_links="nottested"
7958if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7959 # do not overwrite the value of need_locks provided by the user
7960 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7961echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7962 hard_links=yes
7963 $rm conftest*
7964 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7965 touch conftest.a
7966 ln conftest.a conftest.b 2>&5 || hard_links=no
7967 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7968 { echo "$as_me:$LINENO: result: $hard_links" >&5
7969echo "${ECHO_T}$hard_links" >&6; }
7970 if test "$hard_links" = no; then
7971 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7972echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7973 need_locks=warn
7974 fi
7975else
7976 need_locks=no
7977fi
7978
7979{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7980echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7981
7982 runpath_var=
7983 allow_undefined_flag=
7984 enable_shared_with_static_runtimes=no
7985 archive_cmds=
7986 archive_expsym_cmds=
7987 old_archive_From_new_cmds=
7988 old_archive_from_expsyms_cmds=
7989 export_dynamic_flag_spec=
7990 whole_archive_flag_spec=
7991 thread_safe_flag_spec=
7992 hardcode_libdir_flag_spec=
7993 hardcode_libdir_flag_spec_ld=
7994 hardcode_libdir_separator=
7995 hardcode_direct=no
7996 hardcode_minus_L=no
7997 hardcode_shlibpath_var=unsupported
7998 link_all_deplibs=unknown
7999 hardcode_automatic=no
8000 module_cmds=
8001 module_expsym_cmds=
8002 always_export_symbols=no
8003 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8004 # include_expsyms should be a list of space-separated symbols to be *always*
8005 # included in the symbol list
8006 include_expsyms=
8007 # exclude_expsyms can be an extended regexp of symbols to exclude
8008 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8009 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8010 # as well as any symbol that contains `d'.
8011 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8012 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8013 # platforms (ab)use it in PIC code, but their linkers get confused if
8014 # the symbol is explicitly referenced. Since portable code cannot
8015 # rely on this symbol name, it's probably fine to never include it in
8016 # preloaded symbol tables.
8017 # Exclude shared library initialization/finalization symbols.
8018 extract_expsyms_cmds=
8019 # Just being paranoid about ensuring that cc_basename is set.
8020 for cc_temp in $compiler""; do
8021 case $cc_temp in
8022 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8023 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8024 \-*) ;;
8025 *) break;;
8026 esac
8027done
8028cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8029
8030 case $host_os in
8031 cygwin* | mingw* | pw32*)
8032 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8033 # When not using gcc, we currently assume that we are using
8034 # Microsoft Visual C++.
8035 if test "$GCC" != yes; then
8036 with_gnu_ld=no
8037 fi
8038 ;;
8039 interix*)
8040 # we just hope/assume this is gcc and not c89 (= MSVC++)
8041 with_gnu_ld=yes
8042 ;;
8043 openbsd*)
8044 with_gnu_ld=no
8045 ;;
8046 esac
8047
8048 ld_shlibs=yes
8049 if test "$with_gnu_ld" = yes; then
8050 # If archive_cmds runs LD, not CC, wlarc should be empty
8051 wlarc='${wl}'
8052
8053 # Set some defaults for GNU ld with shared library support. These
8054 # are reset later if shared libraries are not supported. Putting them
8055 # here allows them to be overridden if necessary.
8056 runpath_var=LD_RUN_PATH
8057 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8058 export_dynamic_flag_spec='${wl}--export-dynamic'
8059 # ancient GNU ld didn't support --whole-archive et. al.
8060 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8061 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8062 else
8063 whole_archive_flag_spec=
8064 fi
8065 supports_anon_versioning=no
8066 case `$LD -v 2>/dev/null` in
8067 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8068 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8069 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8070 *\ 2.11.*) ;; # other 2.11 versions
8071 *) supports_anon_versioning=yes ;;
8072 esac
8073
8074 # See if GNU ld supports shared libraries.
8075 case $host_os in
8076 aix[3-9]*)
8077 # On AIX/PPC, the GNU linker is very broken
8078 if test "$host_cpu" != ia64; then
8079 ld_shlibs=no
8080 cat <<EOF 1>&2
8081
8082*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8083*** to be unable to reliably create shared libraries on AIX.
8084*** Therefore, libtool is disabling shared libraries support. If you
8085*** really care for shared libraries, you may want to modify your PATH
8086*** so that a non-GNU linker is found, and then restart.
8087
8088EOF
8089 fi
8090 ;;
8091
8092 amigaos*)
8093 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)'
8094 hardcode_libdir_flag_spec='-L$libdir'
8095 hardcode_minus_L=yes
8096
8097 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8098 # that the semantics of dynamic libraries on AmigaOS, at least up
8099 # to version 4, is to share data among multiple programs linked
8100 # with the same dynamic library. Since this doesn't match the
8101 # behavior of shared libraries on other platforms, we can't use
8102 # them.
8103 ld_shlibs=no
8104 ;;
8105
8106 beos*)
8107 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8108 allow_undefined_flag=unsupported
8109 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8110 # support --undefined. This deserves some investigation. FIXME
8111 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8112 else
8113 ld_shlibs=no
8114 fi
8115 ;;
8116
8117 cygwin* | mingw* | pw32*)
8118 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8119 # as there is no search path for DLLs.
8120 hardcode_libdir_flag_spec='-L$libdir'
8121 allow_undefined_flag=unsupported
8122 always_export_symbols=no
8123 enable_shared_with_static_runtimes=yes
8124 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8125
8126 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8127 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8128 # If the export-symbols file already is a .def file (1st line
8129 # is EXPORTS), use it as is; otherwise, prepend...
8130 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8131 cp $export_symbols $output_objdir/$soname.def;
8132 else
8133 echo EXPORTS > $output_objdir/$soname.def;
8134 cat $export_symbols >> $output_objdir/$soname.def;
8135 fi~
8136 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8137 else
8138 ld_shlibs=no
8139 fi
8140 ;;
8141
8142 interix[3-9]*)
8143 hardcode_direct=no
8144 hardcode_shlibpath_var=no
8145 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8146 export_dynamic_flag_spec='${wl}-E'
8147 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8148 # Instead, shared libraries are loaded at an image base (0x10000000 by
8149 # default) and relocated if they conflict, which is a slow very memory
8150 # consuming and fragmenting process. To avoid this, we pick a random,
8151 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8152 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8153 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8154 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'
8155 ;;
8156
8157 gnu* | linux* | k*bsd*-gnu)
8158 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8159 tmp_addflag=
8160 case $cc_basename,$host_cpu in
8161 pgcc*) # Portland Group C compiler
8162 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'
8163 tmp_addflag=' $pic_flag'
8164 ;;
8165 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8166 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'
8167 tmp_addflag=' $pic_flag -Mnomain' ;;
8168 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8169 tmp_addflag=' -i_dynamic' ;;
8170 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8171 tmp_addflag=' -i_dynamic -nofor_main' ;;
8172 ifc* | ifort*) # Intel Fortran compiler
8173 tmp_addflag=' -nofor_main' ;;
8174 esac
8175 case `$CC -V 2>&1 | sed 5q` in
8176 *Sun\ C*) # Sun C 5.9
8177 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8178 tmp_sharedflag='-G' ;;
8179 *Sun\ F*) # Sun Fortran 8.3
8180 tmp_sharedflag='-G' ;;
8181 *)
8182 tmp_sharedflag='-shared' ;;
8183 esac
8184 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8185
8186 if test $supports_anon_versioning = yes; then
8187 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8188 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8189 $echo "local: *; };" >> $output_objdir/$libname.ver~
8190 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8191 fi
8192 link_all_deplibs=no
8193 else
8194 ld_shlibs=no
8195 fi
8196 ;;
8197
8198 netbsd* | netbsdelf*-gnu)
8199 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8200 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8201 wlarc=
8202 else
8203 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8204 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8205 fi
8206 ;;
8207
8208 solaris*)
8209 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8210 ld_shlibs=no
8211 cat <<EOF 1>&2
8212
8213*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8214*** create shared libraries on Solaris systems. Therefore, libtool
8215*** is disabling shared libraries support. We urge you to upgrade GNU
8216*** binutils to release 2.9.1 or newer. Another option is to modify
8217*** your PATH or compiler configuration so that the native linker is
8218*** used, and then restart.
8219
8220EOF
8221 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8222 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8223 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8224 else
8225 ld_shlibs=no
8226 fi
8227 ;;
8228
8229 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8230 case `$LD -v 2>&1` in
8231 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8232 ld_shlibs=no
8233 cat <<_LT_EOF 1>&2
8234
8235*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8236*** reliably create shared libraries on SCO systems. Therefore, libtool
8237*** is disabling shared libraries support. We urge you to upgrade GNU
8238*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8239*** your PATH or compiler configuration so that the native linker is
8240*** used, and then restart.
8241
8242_LT_EOF
8243 ;;
8244 *)
8245 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8246 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8247 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8248 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8249 else
8250 ld_shlibs=no
8251 fi
8252 ;;
8253 esac
8254 ;;
8255
8256 sunos4*)
8257 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8258 wlarc=
8259 hardcode_direct=yes
8260 hardcode_shlibpath_var=no
8261 ;;
8262
8263 *)
8264 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8266 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8267 else
8268 ld_shlibs=no
8269 fi
8270 ;;
8271 esac
8272
8273 if test "$ld_shlibs" = no; then
8274 runpath_var=
8275 hardcode_libdir_flag_spec=
8276 export_dynamic_flag_spec=
8277 whole_archive_flag_spec=
8278 fi
8279 else
8280 # PORTME fill in a description of your system's linker (not GNU ld)
8281 case $host_os in
8282 aix3*)
8283 allow_undefined_flag=unsupported
8284 always_export_symbols=yes
8285 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'
8286 # Note: this linker hardcodes the directories in LIBPATH if there
8287 # are no directories specified by -L.
8288 hardcode_minus_L=yes
8289 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8290 # Neither direct hardcoding nor static linking is supported with a
8291 # broken collect2.
8292 hardcode_direct=unsupported
8293 fi
8294 ;;
8295
8296 aix[4-9]*)
8297 if test "$host_cpu" = ia64; then
8298 # On IA64, the linker does run time linking by default, so we don't
8299 # have to do anything special.
8300 aix_use_runtimelinking=no
8301 exp_sym_flag='-Bexport'
8302 no_entry_flag=""
8303 else
8304 # If we're using GNU nm, then we don't want the "-C" option.
8305 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8306 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8307 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'
8308 else
8309 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'
8310 fi
8311 aix_use_runtimelinking=no
8312
8313 # Test if we are trying to use run time linking or normal
8314 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8315 # need to do runtime linking.
8316 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8317 for ld_flag in $LDFLAGS; do
8318 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8319 aix_use_runtimelinking=yes
8320 break
8321 fi
8322 done
8323 ;;
8324 esac
8325
8326 exp_sym_flag='-bexport'
8327 no_entry_flag='-bnoentry'
8328 fi
8329
8330 # When large executables or shared objects are built, AIX ld can
8331 # have problems creating the table of contents. If linking a library
8332 # or program results in "error TOC overflow" add -mminimal-toc to
8333 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8334 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8335
8336 archive_cmds=''
8337 hardcode_direct=yes
8338 hardcode_libdir_separator=':'
8339 link_all_deplibs=yes
8340
8341 if test "$GCC" = yes; then
8342 case $host_os in aix4.[012]|aix4.[012].*)
8343 # We only want to do this on AIX 4.2 and lower, the check
8344 # below for broken collect2 doesn't work under 4.3+
8345 collect2name=`${CC} -print-prog-name=collect2`
8346 if test -f "$collect2name" && \
8347 strings "$collect2name" | grep resolve_lib_name >/dev/null
8348 then
8349 # We have reworked collect2
8350 :
8351 else
8352 # We have old collect2
8353 hardcode_direct=unsupported
8354 # It fails to find uninstalled libraries when the uninstalled
8355 # path is not listed in the libpath. Setting hardcode_minus_L
8356 # to unsupported forces relinking
8357 hardcode_minus_L=yes
8358 hardcode_libdir_flag_spec='-L$libdir'
8359 hardcode_libdir_separator=
8360 fi
8361 ;;
8362 esac
8363 shared_flag='-shared'
8364 if test "$aix_use_runtimelinking" = yes; then
8365 shared_flag="$shared_flag "'${wl}-G'
8366 fi
8367 else
8368 # not using gcc
8369 if test "$host_cpu" = ia64; then
8370 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8371 # chokes on -Wl,-G. The following line is correct:
8372 shared_flag='-G'
8373 else
8374 if test "$aix_use_runtimelinking" = yes; then
8375 shared_flag='${wl}-G'
8376 else
8377 shared_flag='${wl}-bM:SRE'
8378 fi
8379 fi
8380 fi
8381
8382 # It seems that -bexpall does not export symbols beginning with
8383 # underscore (_), so it is better to generate a list of symbols to export.
8384 always_export_symbols=yes
8385 if test "$aix_use_runtimelinking" = yes; then
8386 # Warning - without using the other runtime loading flags (-brtl),
8387 # -berok will link without error, but may produce a broken library.
8388 allow_undefined_flag='-berok'
8389 # Determine the default libpath from the value encoded in an empty executable.
8390 cat >conftest.$ac_ext <<_ACEOF
8391/* confdefs.h. */
8392_ACEOF
8393cat confdefs.h >>conftest.$ac_ext
8394cat >>conftest.$ac_ext <<_ACEOF
8395/* end confdefs.h. */
8396
8397int
8398main ()
8399{
8400
8401 ;
8402 return 0;
8403}
8404_ACEOF
8405rm -f conftest.$ac_objext conftest$ac_exeext
8406if { (ac_try="$ac_link"
8407case "(($ac_try" in
8408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8409 *) ac_try_echo=$ac_try;;
8410esac
8411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8412 (eval "$ac_link") 2>conftest.er1
8413 ac_status=$?
8414 grep -v '^ *+' conftest.er1 >conftest.err
8415 rm -f conftest.er1
8416 cat conftest.err >&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); } && {
8419 test -z "$ac_c_werror_flag" ||
8420 test ! -s conftest.err
8421 } && test -s conftest$ac_exeext &&
8422 $as_test_x conftest$ac_exeext; then
8423
8424lt_aix_libpath_sed='
8425 /Import File Strings/,/^$/ {
8426 /^0/ {
8427 s/^0 *\(.*\)$/\1/
8428 p
8429 }
8430 }'
8431aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8432# Check for a 64-bit object if we didn't find anything.
8433if test -z "$aix_libpath"; then
8434 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8435fi
8436else
8437 echo "$as_me: failed program was:" >&5
8438sed 's/^/| /' conftest.$ac_ext >&5
8439
8440
8441fi
8442
8443rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8444 conftest$ac_exeext conftest.$ac_ext
8445if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8446
8447 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8448 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"
8449 else
8450 if test "$host_cpu" = ia64; then
8451 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8452 allow_undefined_flag="-z nodefs"
8453 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"
8454 else
8455 # Determine the default libpath from the value encoded in an empty executable.
8456 cat >conftest.$ac_ext <<_ACEOF
8457/* confdefs.h. */
8458_ACEOF
8459cat confdefs.h >>conftest.$ac_ext
8460cat >>conftest.$ac_ext <<_ACEOF
8461/* end confdefs.h. */
8462
8463int
8464main ()
8465{
8466
8467 ;
8468 return 0;
8469}
8470_ACEOF
8471rm -f conftest.$ac_objext conftest$ac_exeext
8472if { (ac_try="$ac_link"
8473case "(($ac_try" in
8474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8475 *) ac_try_echo=$ac_try;;
8476esac
8477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8478 (eval "$ac_link") 2>conftest.er1
8479 ac_status=$?
8480 grep -v '^ *+' conftest.er1 >conftest.err
8481 rm -f conftest.er1
8482 cat conftest.err >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); } && {
8485 test -z "$ac_c_werror_flag" ||
8486 test ! -s conftest.err
8487 } && test -s conftest$ac_exeext &&
8488 $as_test_x conftest$ac_exeext; then
8489
8490lt_aix_libpath_sed='
8491 /Import File Strings/,/^$/ {
8492 /^0/ {
8493 s/^0 *\(.*\)$/\1/
8494 p
8495 }
8496 }'
8497aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8498# Check for a 64-bit object if we didn't find anything.
8499if test -z "$aix_libpath"; then
8500 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8501fi
8502else
8503 echo "$as_me: failed program was:" >&5
8504sed 's/^/| /' conftest.$ac_ext >&5
8505
8506
8507fi
8508
8509rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8510 conftest$ac_exeext conftest.$ac_ext
8511if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8512
8513 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8514 # Warning - without using the other run time loading flags,
8515 # -berok will link without error, but may produce a broken library.
8516 no_undefined_flag=' ${wl}-bernotok'
8517 allow_undefined_flag=' ${wl}-berok'
8518 # Exported symbols can be pulled into shared objects from archives
8519 whole_archive_flag_spec='$convenience'
8520 archive_cmds_need_lc=yes
8521 # This is similar to how AIX traditionally builds its shared libraries.
8522 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'
8523 fi
8524 fi
8525 ;;
8526
8527 amigaos*)
8528 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)'
8529 hardcode_libdir_flag_spec='-L$libdir'
8530 hardcode_minus_L=yes
8531 # see comment about different semantics on the GNU ld section
8532 ld_shlibs=no
8533 ;;
8534
8535 bsdi[45]*)
8536 export_dynamic_flag_spec=-rdynamic
8537 ;;
8538
8539 cygwin* | mingw* | pw32*)
8540 # When not using gcc, we currently assume that we are using
8541 # Microsoft Visual C++.
8542 # hardcode_libdir_flag_spec is actually meaningless, as there is
8543 # no search path for DLLs.
8544 hardcode_libdir_flag_spec=' '
8545 allow_undefined_flag=unsupported
8546 # Tell ltmain to make .lib files, not .a files.
8547 libext=lib
8548 # Tell ltmain to make .dll files, not .so files.
8549 shrext_cmds=".dll"
8550 # FIXME: Setting linknames here is a bad hack.
8551 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8552 # The linker will automatically build a .lib file if we build a DLL.
8553 old_archive_From_new_cmds='true'
8554 # FIXME: Should let the user specify the lib program.
8555 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8556 fix_srcfile_path='`cygpath -w "$srcfile"`'
8557 enable_shared_with_static_runtimes=yes
8558 ;;
8559
8560 darwin* | rhapsody*)
8561 case $host_os in
8562 rhapsody* | darwin1.[012])
8563 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8564 ;;
8565 *) # Darwin 1.3 on
8566 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8567 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8568 else
8569 case ${MACOSX_DEPLOYMENT_TARGET} in
8570 10.[012])
8571 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8572 ;;
8573 10.*)
8574 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8575 ;;
8576 esac
8577 fi
8578 ;;
8579 esac
8580 archive_cmds_need_lc=no
8581 hardcode_direct=no
8582 hardcode_automatic=yes
8583 hardcode_shlibpath_var=unsupported
8584 whole_archive_flag_spec=''
8585 link_all_deplibs=yes
8586 if test "$GCC" = yes ; then
8587 output_verbose_link_cmd='echo'
8588 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8589 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8590 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8591 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8592 else
8593 case $cc_basename in
8594 xlc*)
8595 output_verbose_link_cmd='echo'
8596 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8597 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8598 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8599 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8600 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}'
8601 ;;
8602 *)
8603 ld_shlibs=no
8604 ;;
8605 esac
8606 fi
8607 ;;
8608
8609 dgux*)
8610 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8611 hardcode_libdir_flag_spec='-L$libdir'
8612 hardcode_shlibpath_var=no
8613 ;;
8614
8615 freebsd1*)
8616 ld_shlibs=no
8617 ;;
8618
8619 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8620 # support. Future versions do this automatically, but an explicit c++rt0.o
8621 # does not break anything, and helps significantly (at the cost of a little
8622 # extra space).
8623 freebsd2.2*)
8624 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8625 hardcode_libdir_flag_spec='-R$libdir'
8626 hardcode_direct=yes
8627 hardcode_shlibpath_var=no
8628 ;;
8629
8630 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8631 freebsd2*)
8632 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8633 hardcode_direct=yes
8634 hardcode_minus_L=yes
8635 hardcode_shlibpath_var=no
8636 ;;
8637
8638 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8639 freebsd* | dragonfly*)
8640 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8641 hardcode_libdir_flag_spec='-R$libdir'
8642 hardcode_direct=yes
8643 hardcode_shlibpath_var=no
8644 ;;
8645
8646 hpux9*)
8647 if test "$GCC" = yes; then
8648 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'
8649 else
8650 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'
8651 fi
8652 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8653 hardcode_libdir_separator=:
8654 hardcode_direct=yes
8655
8656 # hardcode_minus_L: Not really in the search PATH,
8657 # but as the default location of the library.
8658 hardcode_minus_L=yes
8659 export_dynamic_flag_spec='${wl}-E'
8660 ;;
8661
8662 hpux10*)
8663 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8664 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8665 else
8666 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8667 fi
8668 if test "$with_gnu_ld" = no; then
8669 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8670 hardcode_libdir_separator=:
8671
8672 hardcode_direct=yes
8673 export_dynamic_flag_spec='${wl}-E'
8674
8675 # hardcode_minus_L: Not really in the search PATH,
8676 # but as the default location of the library.
8677 hardcode_minus_L=yes
8678 fi
8679 ;;
8680
8681 hpux11*)
8682 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8683 case $host_cpu in
8684 hppa*64*)
8685 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8686 ;;
8687 ia64*)
8688 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8689 ;;
8690 *)
8691 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8692 ;;
8693 esac
8694 else
8695 case $host_cpu in
8696 hppa*64*)
8697 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8698 ;;
8699 ia64*)
8700 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8701 ;;
8702 *)
8703 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8704 ;;
8705 esac
8706 fi
8707 if test "$with_gnu_ld" = no; then
8708 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8709 hardcode_libdir_separator=:
8710
8711 case $host_cpu in
8712 hppa*64*|ia64*)
8713 hardcode_libdir_flag_spec_ld='+b $libdir'
8714 hardcode_direct=no
8715 hardcode_shlibpath_var=no
8716 ;;
8717 *)
8718 hardcode_direct=yes
8719 export_dynamic_flag_spec='${wl}-E'
8720
8721 # hardcode_minus_L: Not really in the search PATH,
8722 # but as the default location of the library.
8723 hardcode_minus_L=yes
8724 ;;
8725 esac
8726 fi
8727 ;;
8728
8729 irix5* | irix6* | nonstopux*)
8730 if test "$GCC" = yes; then
8731 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'
8732 else
8733 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'
8734 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8735 fi
8736 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8737 hardcode_libdir_separator=:
8738 link_all_deplibs=yes
8739 ;;
8740
8741 netbsd* | netbsdelf*-gnu)
8742 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8743 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8744 else
8745 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8746 fi
8747 hardcode_libdir_flag_spec='-R$libdir'
8748 hardcode_direct=yes
8749 hardcode_shlibpath_var=no
8750 ;;
8751
8752 newsos6)
8753 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8754 hardcode_direct=yes
8755 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8756 hardcode_libdir_separator=:
8757 hardcode_shlibpath_var=no
8758 ;;
8759
8760 openbsd*)
8761 if test -f /usr/libexec/ld.so; then
8762 hardcode_direct=yes
8763 hardcode_shlibpath_var=no
8764 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8765 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8766 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8767 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8768 export_dynamic_flag_spec='${wl}-E'
8769 else
8770 case $host_os in
8771 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8772 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8773 hardcode_libdir_flag_spec='-R$libdir'
8774 ;;
8775 *)
8776 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8777 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8778 ;;
8779 esac
8780 fi
8781 else
8782 ld_shlibs=no
8783 fi
8784 ;;
8785
8786 os2*)
8787 hardcode_libdir_flag_spec='-L$libdir'
8788 hardcode_minus_L=yes
8789 allow_undefined_flag=unsupported
8790 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'
8791 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8792 ;;
8793
8794 osf3*)
8795 if test "$GCC" = yes; then
8796 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8797 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'
8798 else
8799 allow_undefined_flag=' -expect_unresolved \*'
8800 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'
8801 fi
8802 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8803 hardcode_libdir_separator=:
8804 ;;
8805
8806 osf4* | osf5*) # as osf3* with the addition of -msym flag
8807 if test "$GCC" = yes; then
8808 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8809 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'
8810 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8811 else
8812 allow_undefined_flag=' -expect_unresolved \*'
8813 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'
8814 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8815 $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'
8816
8817 # Both c and cxx compiler support -rpath directly
8818 hardcode_libdir_flag_spec='-rpath $libdir'
8819 fi
8820 hardcode_libdir_separator=:
8821 ;;
8822
8823 solaris*)
8824 no_undefined_flag=' -z text'
8825 if test "$GCC" = yes; then
8826 wlarc='${wl}'
8827 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8828 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8829 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8830 else
8831 wlarc=''
8832 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8833 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8834 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8835 fi
8836 hardcode_libdir_flag_spec='-R$libdir'
8837 hardcode_shlibpath_var=no
8838 case $host_os in
8839 solaris2.[0-5] | solaris2.[0-5].*) ;;
8840 *)
8841 # The compiler driver will combine and reorder linker options,
8842 # but understands `-z linker_flag'. GCC discards it without `$wl',
8843 # but is careful enough not to reorder.
8844 # Supported since Solaris 2.6 (maybe 2.5.1?)
8845 if test "$GCC" = yes; then
8846 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8847 else
8848 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8849 fi
8850 ;;
8851 esac
8852 link_all_deplibs=yes
8853 ;;
8854
8855 sunos4*)
8856 if test "x$host_vendor" = xsequent; then
8857 # Use $CC to link under sequent, because it throws in some extra .o
8858 # files that make .init and .fini sections work.
8859 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8860 else
8861 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8862 fi
8863 hardcode_libdir_flag_spec='-L$libdir'
8864 hardcode_direct=yes
8865 hardcode_minus_L=yes
8866 hardcode_shlibpath_var=no
8867 ;;
8868
8869 sysv4)
8870 case $host_vendor in
8871 sni)
8872 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8873 hardcode_direct=yes # is this really true???
8874 ;;
8875 siemens)
8876 ## LD is ld it makes a PLAMLIB
8877 ## CC just makes a GrossModule.
8878 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8879 reload_cmds='$CC -r -o $output$reload_objs'
8880 hardcode_direct=no
8881 ;;
8882 motorola)
8883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8884 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8885 ;;
8886 esac
8887 runpath_var='LD_RUN_PATH'
8888 hardcode_shlibpath_var=no
8889 ;;
8890
8891 sysv4.3*)
8892 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8893 hardcode_shlibpath_var=no
8894 export_dynamic_flag_spec='-Bexport'
8895 ;;
8896
8897 sysv4*MP*)
8898 if test -d /usr/nec; then
8899 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8900 hardcode_shlibpath_var=no
8901 runpath_var=LD_RUN_PATH
8902 hardcode_runpath_var=yes
8903 ld_shlibs=yes
8904 fi
8905 ;;
8906
8907 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8908 no_undefined_flag='${wl}-z,text'
8909 archive_cmds_need_lc=no
8910 hardcode_shlibpath_var=no
8911 runpath_var='LD_RUN_PATH'
8912
8913 if test "$GCC" = yes; then
8914 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8915 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8916 else
8917 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8918 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8919 fi
8920 ;;
8921
8922 sysv5* | sco3.2v5* | sco5v6*)
8923 # Note: We can NOT use -z defs as we might desire, because we do not
8924 # link with -lc, and that would cause any symbols used from libc to
8925 # always be unresolved, which means just about no library would
8926 # ever link correctly. If we're not using GNU ld we use -z text
8927 # though, which does catch some bad symbols but isn't as heavy-handed
8928 # as -z defs.
8929 no_undefined_flag='${wl}-z,text'
8930 allow_undefined_flag='${wl}-z,nodefs'
8931 archive_cmds_need_lc=no
8932 hardcode_shlibpath_var=no
8933 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8934 hardcode_libdir_separator=':'
8935 link_all_deplibs=yes
8936 export_dynamic_flag_spec='${wl}-Bexport'
8937 runpath_var='LD_RUN_PATH'
8938
8939 if test "$GCC" = yes; then
8940 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8941 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8942 else
8943 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8944 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8945 fi
8946 ;;
8947
8948 uts4*)
8949 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8950 hardcode_libdir_flag_spec='-L$libdir'
8951 hardcode_shlibpath_var=no
8952 ;;
8953
8954 *)
8955 ld_shlibs=no
8956 ;;
8957 esac
8958 fi
8959
8960{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8961echo "${ECHO_T}$ld_shlibs" >&6; }
8962test "$ld_shlibs" = no && can_build_shared=no
8963
8964#
8965# Do we need to explicitly link libc?
8966#
8967case "x$archive_cmds_need_lc" in
8968x|xyes)
8969 # Assume -lc should be added
8970 archive_cmds_need_lc=yes
8971
8972 if test "$enable_shared" = yes && test "$GCC" = yes; then
8973 case $archive_cmds in
8974 *'~'*)
8975 # FIXME: we may have to deal with multi-command sequences.
8976 ;;
8977 '$CC '*)
8978 # Test whether the compiler implicitly links with -lc since on some
8979 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8980 # to ld, don't add -lc before -lgcc.
8981 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8982echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8983 $rm conftest*
8984 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8985
8986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8987 (eval $ac_compile) 2>&5
8988 ac_status=$?
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); } 2>conftest.err; then
8991 soname=conftest
8992 lib=conftest
8993 libobjs=conftest.$ac_objext
8994 deplibs=
8995 wl=$lt_prog_compiler_wl
8996 pic_flag=$lt_prog_compiler_pic
8997 compiler_flags=-v
8998 linker_flags=-v
8999 verstring=
9000 output_objdir=.
9001 libname=conftest
9002 lt_save_allow_undefined_flag=$allow_undefined_flag
9003 allow_undefined_flag=
9004 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9005 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9006 ac_status=$?
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); }
9009 then
9010 archive_cmds_need_lc=no
9011 else
9012 archive_cmds_need_lc=yes
9013 fi
9014 allow_undefined_flag=$lt_save_allow_undefined_flag
9015 else
9016 cat conftest.err 1>&5
9017 fi
9018 $rm conftest*
9019 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9020echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9021 ;;
9022 esac
9023 fi
9024 ;;
9025esac
9026
9027{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9028echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9029library_names_spec=
9030libname_spec='lib$name'
9031soname_spec=
9032shrext_cmds=".so"
9033postinstall_cmds=
9034postuninstall_cmds=
9035finish_cmds=
9036finish_eval=
9037shlibpath_var=
9038shlibpath_overrides_runpath=unknown
9039version_type=none
9040dynamic_linker="$host_os ld.so"
9041sys_lib_dlsearch_path_spec="/lib /usr/lib"
9042
9043if test "$GCC" = yes; then
9044 case $host_os in
9045 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9046 *) lt_awk_arg="/^libraries:/" ;;
9047 esac
9048 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9049 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9050 # if the path contains ";" then we assume it to be the separator
9051 # otherwise default to the standard path separator (i.e. ":") - it is
9052 # assumed that no part of a normal pathname contains ";" but that should
9053 # okay in the real world where ";" in dirpaths is itself problematic.
9054 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9055 else
9056 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9057 fi
9058 # Ok, now we have the path, separated by spaces, we can step through it
9059 # and add multilib dir if necessary.
9060 lt_tmp_lt_search_path_spec=
9061 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9062 for lt_sys_path in $lt_search_path_spec; do
9063 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9064 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9065 else
9066 test -d "$lt_sys_path" && \
9067 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9068 fi
9069 done
9070 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9071BEGIN {RS=" "; FS="/|\n";} {
9072 lt_foo="";
9073 lt_count=0;
9074 for (lt_i = NF; lt_i > 0; lt_i--) {
9075 if ($lt_i != "" && $lt_i != ".") {
9076 if ($lt_i == "..") {
9077 lt_count++;
9078 } else {
9079 if (lt_count == 0) {
9080 lt_foo="/" $lt_i lt_foo;
9081 } else {
9082 lt_count--;
9083 }
9084 }
9085 }
9086 }
9087 if (lt_foo != "") { lt_freq[lt_foo]++; }
9088 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9089}'`
9090 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9091else
9092 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9093fi
9094need_lib_prefix=unknown
9095hardcode_into_libs=no
9096
9097# when you set need_version to no, make sure it does not cause -set_version
9098# flags to be left without arguments
9099need_version=unknown
9100
9101case $host_os in
9102aix3*)
9103 version_type=linux
9104 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9105 shlibpath_var=LIBPATH
9106
9107 # AIX 3 has no versioning support, so we append a major version to the name.
9108 soname_spec='${libname}${release}${shared_ext}$major'
9109 ;;
9110
9111aix[4-9]*)
9112 version_type=linux
9113 need_lib_prefix=no
9114 need_version=no
9115 hardcode_into_libs=yes
9116 if test "$host_cpu" = ia64; then
9117 # AIX 5 supports IA64
9118 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9119 shlibpath_var=LD_LIBRARY_PATH
9120 else
9121 # With GCC up to 2.95.x, collect2 would create an import file
9122 # for dependence libraries. The import file would start with
9123 # the line `#! .'. This would cause the generated library to
9124 # depend on `.', always an invalid library. This was fixed in
9125 # development snapshots of GCC prior to 3.0.
9126 case $host_os in
9127 aix4 | aix4.[01] | aix4.[01].*)
9128 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9129 echo ' yes '
9130 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9131 :
9132 else
9133 can_build_shared=no
9134 fi
9135 ;;
9136 esac
9137 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9138 # soname into executable. Probably we can add versioning support to
9139 # collect2, so additional links can be useful in future.
9140 if test "$aix_use_runtimelinking" = yes; then
9141 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9142 # instead of lib<name>.a to let people know that these are not
9143 # typical AIX shared libraries.
9144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9145 else
9146 # We preserve .a as extension for shared libraries through AIX4.2
9147 # and later when we are not doing run time linking.
9148 library_names_spec='${libname}${release}.a $libname.a'
9149 soname_spec='${libname}${release}${shared_ext}$major'
9150 fi
9151 shlibpath_var=LIBPATH
9152 fi
9153 ;;
9154
9155amigaos*)
9156 library_names_spec='$libname.ixlibrary $libname.a'
9157 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9158 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'
9159 ;;
9160
9161beos*)
9162 library_names_spec='${libname}${shared_ext}'
9163 dynamic_linker="$host_os ld.so"
9164 shlibpath_var=LIBRARY_PATH
9165 ;;
9166
9167bsdi[45]*)
9168 version_type=linux
9169 need_version=no
9170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9171 soname_spec='${libname}${release}${shared_ext}$major'
9172 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9173 shlibpath_var=LD_LIBRARY_PATH
9174 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9175 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9176 # the default ld.so.conf also contains /usr/contrib/lib and
9177 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9178 # libtool to hard-code these into programs
9179 ;;
9180
9181cygwin* | mingw* | pw32*)
9182 version_type=windows
9183 shrext_cmds=".dll"
9184 need_version=no
9185 need_lib_prefix=no
9186
9187 case $GCC,$host_os in
9188 yes,cygwin* | yes,mingw* | yes,pw32*)
9189 library_names_spec='$libname.dll.a'
9190 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9191 postinstall_cmds='base_file=`basename \${file}`~
9192 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9193 dldir=$destdir/`dirname \$dlpath`~
9194 test -d \$dldir || mkdir -p \$dldir~
9195 $install_prog $dir/$dlname \$dldir/$dlname~
9196 chmod a+x \$dldir/$dlname'
9197 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9198 dlpath=$dir/\$dldll~
9199 $rm \$dlpath'
9200 shlibpath_overrides_runpath=yes
9201
9202 case $host_os in
9203 cygwin*)
9204 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9205 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9206 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9207 ;;
9208 mingw*)
9209 # MinGW DLLs use traditional 'lib' prefix
9210 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9211 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9212 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9213 # It is most probably a Windows format PATH printed by
9214 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9215 # path with ; separators, and with drive letters. We can handle the
9216 # drive letters (cygwin fileutils understands them), so leave them,
9217 # especially as we might pass files found there to a mingw objdump,
9218 # which wouldn't understand a cygwinified path. Ahh.
9219 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9220 else
9221 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9222 fi
9223 ;;
9224 pw32*)
9225 # pw32 DLLs use 'pw' prefix rather than 'lib'
9226 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9227 ;;
9228 esac
9229 ;;
9230
9231 *)
9232 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9233 ;;
9234 esac
9235 dynamic_linker='Win32 ld.exe'
9236 # FIXME: first we should search . and the directory the executable is in
9237 shlibpath_var=PATH
9238 ;;
9239
9240darwin* | rhapsody*)
9241 dynamic_linker="$host_os dyld"
9242 version_type=darwin
9243 need_lib_prefix=no
9244 need_version=no
9245 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9246 soname_spec='${libname}${release}${major}$shared_ext'
9247 shlibpath_overrides_runpath=yes
9248 shlibpath_var=DYLD_LIBRARY_PATH
9249 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9250
9251 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9252 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9253 ;;
9254
9255dgux*)
9256 version_type=linux
9257 need_lib_prefix=no
9258 need_version=no
9259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9260 soname_spec='${libname}${release}${shared_ext}$major'
9261 shlibpath_var=LD_LIBRARY_PATH
9262 ;;
9263
9264freebsd1*)
9265 dynamic_linker=no
9266 ;;
9267
9268freebsd* | dragonfly*)
9269 # DragonFly does not have aout. When/if they implement a new
9270 # versioning mechanism, adjust this.
9271 if test -x /usr/bin/objformat; then
9272 objformat=`/usr/bin/objformat`
9273 else
9274 case $host_os in
9275 freebsd[123]*) objformat=aout ;;
9276 *) objformat=elf ;;
9277 esac
9278 fi
9279 version_type=freebsd-$objformat
9280 case $version_type in
9281 freebsd-elf*)
9282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9283 need_version=no
9284 need_lib_prefix=no
9285 ;;
9286 freebsd-*)
9287 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9288 need_version=yes
9289 ;;
9290 esac
9291 shlibpath_var=LD_LIBRARY_PATH
9292 case $host_os in
9293 freebsd2*)
9294 shlibpath_overrides_runpath=yes
9295 ;;
9296 freebsd3.[01]* | freebsdelf3.[01]*)
9297 shlibpath_overrides_runpath=yes
9298 hardcode_into_libs=yes
9299 ;;
9300 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9301 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9302 shlibpath_overrides_runpath=no
9303 hardcode_into_libs=yes
9304 ;;
9305 *) # from 4.6 on, and DragonFly
9306 shlibpath_overrides_runpath=yes
9307 hardcode_into_libs=yes
9308 ;;
9309 esac
9310 ;;
9311
9312gnu*)
9313 version_type=linux
9314 need_lib_prefix=no
9315 need_version=no
9316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9317 soname_spec='${libname}${release}${shared_ext}$major'
9318 shlibpath_var=LD_LIBRARY_PATH
9319 hardcode_into_libs=yes
9320 ;;
9321
9322hpux9* | hpux10* | hpux11*)
9323 # Give a soname corresponding to the major version so that dld.sl refuses to
9324 # link against other versions.
9325 version_type=sunos
9326 need_lib_prefix=no
9327 need_version=no
9328 case $host_cpu in
9329 ia64*)
9330 shrext_cmds='.so'
9331 hardcode_into_libs=yes
9332 dynamic_linker="$host_os dld.so"
9333 shlibpath_var=LD_LIBRARY_PATH
9334 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9336 soname_spec='${libname}${release}${shared_ext}$major'
9337 if test "X$HPUX_IA64_MODE" = X32; then
9338 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9339 else
9340 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9341 fi
9342 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9343 ;;
9344 hppa*64*)
9345 shrext_cmds='.sl'
9346 hardcode_into_libs=yes
9347 dynamic_linker="$host_os dld.sl"
9348 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9349 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9351 soname_spec='${libname}${release}${shared_ext}$major'
9352 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9353 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9354 ;;
9355 *)
9356 shrext_cmds='.sl'
9357 dynamic_linker="$host_os dld.sl"
9358 shlibpath_var=SHLIB_PATH
9359 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9361 soname_spec='${libname}${release}${shared_ext}$major'
9362 ;;
9363 esac
9364 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9365 postinstall_cmds='chmod 555 $lib'
9366 ;;
9367
9368interix[3-9]*)
9369 version_type=linux
9370 need_lib_prefix=no
9371 need_version=no
9372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9373 soname_spec='${libname}${release}${shared_ext}$major'
9374 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9375 shlibpath_var=LD_LIBRARY_PATH
9376 shlibpath_overrides_runpath=no
9377 hardcode_into_libs=yes
9378 ;;
9379
9380irix5* | irix6* | nonstopux*)
9381 case $host_os in
9382 nonstopux*) version_type=nonstopux ;;
9383 *)
9384 if test "$lt_cv_prog_gnu_ld" = yes; then
9385 version_type=linux
9386 else
9387 version_type=irix
9388 fi ;;
9389 esac
9390 need_lib_prefix=no
9391 need_version=no
9392 soname_spec='${libname}${release}${shared_ext}$major'
9393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9394 case $host_os in
9395 irix5* | nonstopux*)
9396 libsuff= shlibsuff=
9397 ;;
9398 *)
9399 case $LD in # libtool.m4 will add one of these switches to LD
9400 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9401 libsuff= shlibsuff= libmagic=32-bit;;
9402 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9403 libsuff=32 shlibsuff=N32 libmagic=N32;;
9404 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9405 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9406 *) libsuff= shlibsuff= libmagic=never-match;;
9407 esac
9408 ;;
9409 esac
9410 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9411 shlibpath_overrides_runpath=no
9412 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9413 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9414 hardcode_into_libs=yes
9415 ;;
9416
9417# No shared lib support for Linux oldld, aout, or coff.
9418linux*oldld* | linux*aout* | linux*coff*)
9419 dynamic_linker=no
9420 ;;
9421
9422# This must be Linux ELF.
9423linux* | k*bsd*-gnu)
9424 version_type=linux
9425 need_lib_prefix=no
9426 need_version=no
9427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9428 soname_spec='${libname}${release}${shared_ext}$major'
9429 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9430 shlibpath_var=LD_LIBRARY_PATH
9431 shlibpath_overrides_runpath=no
9432 # This implies no fast_install, which is unacceptable.
9433 # Some rework will be needed to allow for fast_install
9434 # before this can be enabled.
9435 hardcode_into_libs=yes
9436
9437 # Append ld.so.conf contents to the search path
9438 if test -f /etc/ld.so.conf; then
9439 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9440 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9441 fi
9442
9443 # We used to test for /lib/ld.so.1 and disable shared libraries on
9444 # powerpc, because MkLinux only supported shared libraries with the
9445 # GNU dynamic linker. Since this was broken with cross compilers,
9446 # most powerpc-linux boxes support dynamic linking these days and
9447 # people can always --disable-shared, the test was removed, and we
9448 # assume the GNU/Linux dynamic linker is in use.
9449 dynamic_linker='GNU/Linux ld.so'
9450 ;;
9451
9452netbsdelf*-gnu)
9453 version_type=linux
9454 need_lib_prefix=no
9455 need_version=no
9456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9457 soname_spec='${libname}${release}${shared_ext}$major'
9458 shlibpath_var=LD_LIBRARY_PATH
9459 shlibpath_overrides_runpath=no
9460 hardcode_into_libs=yes
9461 dynamic_linker='NetBSD ld.elf_so'
9462 ;;
9463
9464netbsd*)
9465 version_type=sunos
9466 need_lib_prefix=no
9467 need_version=no
9468 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9470 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9471 dynamic_linker='NetBSD (a.out) ld.so'
9472 else
9473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9474 soname_spec='${libname}${release}${shared_ext}$major'
9475 dynamic_linker='NetBSD ld.elf_so'
9476 fi
9477 shlibpath_var=LD_LIBRARY_PATH
9478 shlibpath_overrides_runpath=yes
9479 hardcode_into_libs=yes
9480 ;;
9481
9482newsos6)
9483 version_type=linux
9484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9485 shlibpath_var=LD_LIBRARY_PATH
9486 shlibpath_overrides_runpath=yes
9487 ;;
9488
9489nto-qnx*)
9490 version_type=linux
9491 need_lib_prefix=no
9492 need_version=no
9493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9494 soname_spec='${libname}${release}${shared_ext}$major'
9495 shlibpath_var=LD_LIBRARY_PATH
9496 shlibpath_overrides_runpath=yes
9497 ;;
9498
9499openbsd*)
9500 version_type=sunos
9501 sys_lib_dlsearch_path_spec="/usr/lib"
9502 need_lib_prefix=no
9503 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9504 case $host_os in
9505 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9506 *) need_version=no ;;
9507 esac
9508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9509 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9510 shlibpath_var=LD_LIBRARY_PATH
9511 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9512 case $host_os in
9513 openbsd2.[89] | openbsd2.[89].*)
9514 shlibpath_overrides_runpath=no
9515 ;;
9516 *)
9517 shlibpath_overrides_runpath=yes
9518 ;;
9519 esac
9520 else
9521 shlibpath_overrides_runpath=yes
9522 fi
9523 ;;
9524
9525os2*)
9526 libname_spec='$name'
9527 shrext_cmds=".dll"
9528 need_lib_prefix=no
9529 library_names_spec='$libname${shared_ext} $libname.a'
9530 dynamic_linker='OS/2 ld.exe'
9531 shlibpath_var=LIBPATH
9532 ;;
9533
9534osf3* | osf4* | osf5*)
9535 version_type=osf
9536 need_lib_prefix=no
9537 need_version=no
9538 soname_spec='${libname}${release}${shared_ext}$major'
9539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9540 shlibpath_var=LD_LIBRARY_PATH
9541 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9542 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9543 ;;
9544
9545rdos*)
9546 dynamic_linker=no
9547 ;;
9548
9549solaris*)
9550 version_type=linux
9551 need_lib_prefix=no
9552 need_version=no
9553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9554 soname_spec='${libname}${release}${shared_ext}$major'
9555 shlibpath_var=LD_LIBRARY_PATH
9556 shlibpath_overrides_runpath=yes
9557 hardcode_into_libs=yes
9558 # ldd complains unless libraries are executable
9559 postinstall_cmds='chmod +x $lib'
9560 ;;
9561
9562sunos4*)
9563 version_type=sunos
9564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9565 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9566 shlibpath_var=LD_LIBRARY_PATH
9567 shlibpath_overrides_runpath=yes
9568 if test "$with_gnu_ld" = yes; then
9569 need_lib_prefix=no
9570 fi
9571 need_version=yes
9572 ;;
9573
9574sysv4 | sysv4.3*)
9575 version_type=linux
9576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9577 soname_spec='${libname}${release}${shared_ext}$major'
9578 shlibpath_var=LD_LIBRARY_PATH
9579 case $host_vendor in
9580 sni)
9581 shlibpath_overrides_runpath=no
9582 need_lib_prefix=no
9583 export_dynamic_flag_spec='${wl}-Blargedynsym'
9584 runpath_var=LD_RUN_PATH
9585 ;;
9586 siemens)
9587 need_lib_prefix=no
9588 ;;
9589 motorola)
9590 need_lib_prefix=no
9591 need_version=no
9592 shlibpath_overrides_runpath=no
9593 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9594 ;;
9595 esac
9596 ;;
9597
9598sysv4*MP*)
9599 if test -d /usr/nec ;then
9600 version_type=linux
9601 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9602 soname_spec='$libname${shared_ext}.$major'
9603 shlibpath_var=LD_LIBRARY_PATH
9604 fi
9605 ;;
9606
9607sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9608 version_type=freebsd-elf
9609 need_lib_prefix=no
9610 need_version=no
9611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9612 soname_spec='${libname}${release}${shared_ext}$major'
9613 shlibpath_var=LD_LIBRARY_PATH
9614 hardcode_into_libs=yes
9615 if test "$with_gnu_ld" = yes; then
9616 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9617 shlibpath_overrides_runpath=no
9618 else
9619 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9620 shlibpath_overrides_runpath=yes
9621 case $host_os in
9622 sco3.2v5*)
9623 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9624 ;;
9625 esac
9626 fi
9627 sys_lib_dlsearch_path_spec='/usr/lib'
9628 ;;
9629
9630uts4*)
9631 version_type=linux
9632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9633 soname_spec='${libname}${release}${shared_ext}$major'
9634 shlibpath_var=LD_LIBRARY_PATH
9635 ;;
9636
9637*)
9638 dynamic_linker=no
9639 ;;
9640esac
9641{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9642echo "${ECHO_T}$dynamic_linker" >&6; }
9643test "$dynamic_linker" = no && can_build_shared=no
9644
9645if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9646 echo $ECHO_N "(cached) $ECHO_C" >&6
9647else
9648 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9649fi
9650
9651sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9652if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9653 echo $ECHO_N "(cached) $ECHO_C" >&6
9654else
9655 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9656fi
9657
9658sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9659
9660variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9661if test "$GCC" = yes; then
9662 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9663fi
9664
9665{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9666echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9667hardcode_action=
9668if test -n "$hardcode_libdir_flag_spec" || \
9669 test -n "$runpath_var" || \
9670 test "X$hardcode_automatic" = "Xyes" ; then
9671
9672 # We can hardcode non-existant directories.
9673 if test "$hardcode_direct" != no &&
9674 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9675 # have to relink, otherwise we might link with an installed library
9676 # when we should be linking with a yet-to-be-installed one
9677 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9678 test "$hardcode_minus_L" != no; then
9679 # Linking always hardcodes the temporary library directory.
9680 hardcode_action=relink
9681 else
9682 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9683 hardcode_action=immediate
9684 fi
9685else
9686 # We cannot hardcode anything, or else we can only hardcode existing
9687 # directories.
9688 hardcode_action=unsupported
9689fi
9690{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9691echo "${ECHO_T}$hardcode_action" >&6; }
9692
9693if test "$hardcode_action" = relink; then
9694 # Fast installation is not supported
9695 enable_fast_install=no
9696elif test "$shlibpath_overrides_runpath" = yes ||
9697 test "$enable_shared" = no; then
9698 # Fast installation is not necessary
9699 enable_fast_install=needless
9700fi
9701
9702striplib=
9703old_striplib=
9704{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9705echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9706if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9707 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9708 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9709 { echo "$as_me:$LINENO: result: yes" >&5
9710echo "${ECHO_T}yes" >&6; }
9711else
9712# FIXME - insert some real tests, host_os isn't really good enough
9713 case $host_os in
9714 darwin*)
9715 if test -n "$STRIP" ; then
9716 striplib="$STRIP -x"
9717 old_striplib="$STRIP -S"
9718 { echo "$as_me:$LINENO: result: yes" >&5
9719echo "${ECHO_T}yes" >&6; }
9720 else
9721 { echo "$as_me:$LINENO: result: no" >&5
9722echo "${ECHO_T}no" >&6; }
9723fi
9724 ;;
9725 *)
9726 { echo "$as_me:$LINENO: result: no" >&5
9727echo "${ECHO_T}no" >&6; }
9728 ;;
9729 esac
9730fi
9731
9732if test "x$enable_dlopen" != xyes; then
9733 enable_dlopen=unknown
9734 enable_dlopen_self=unknown
9735 enable_dlopen_self_static=unknown
9736else
9737 lt_cv_dlopen=no
9738 lt_cv_dlopen_libs=
9739
9740 case $host_os in
9741 beos*)
9742 lt_cv_dlopen="load_add_on"
9743 lt_cv_dlopen_libs=
9744 lt_cv_dlopen_self=yes
9745 ;;
9746
9747 mingw* | pw32*)
9748 lt_cv_dlopen="LoadLibrary"
9749 lt_cv_dlopen_libs=
9750 ;;
9751
9752 cygwin*)
9753 lt_cv_dlopen="dlopen"
9754 lt_cv_dlopen_libs=
9755 ;;
9756
9757 darwin*)
9758 # if libdl is installed we need to link against it
9759 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9760echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9761if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9762 echo $ECHO_N "(cached) $ECHO_C" >&6
9763else
9764 ac_check_lib_save_LIBS=$LIBS
9765LIBS="-ldl $LIBS"
9766cat >conftest.$ac_ext <<_ACEOF
9767/* confdefs.h. */
9768_ACEOF
9769cat confdefs.h >>conftest.$ac_ext
9770cat >>conftest.$ac_ext <<_ACEOF
9771/* end confdefs.h. */
9772
9773/* Override any GCC internal prototype to avoid an error.
9774 Use char because int might match the return type of a GCC
9775 builtin and then its argument prototype would still apply. */
9776#ifdef __cplusplus
9777extern "C"
9778#endif
9779char dlopen ();
9780int
9781main ()
9782{
9783return dlopen ();
9784 ;
9785 return 0;
9786}
9787_ACEOF
9788rm -f conftest.$ac_objext conftest$ac_exeext
9789if { (ac_try="$ac_link"
9790case "(($ac_try" in
9791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9792 *) ac_try_echo=$ac_try;;
9793esac
9794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9795 (eval "$ac_link") 2>conftest.er1
9796 ac_status=$?
9797 grep -v '^ *+' conftest.er1 >conftest.err
9798 rm -f conftest.er1
9799 cat conftest.err >&5
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); } && {
9802 test -z "$ac_c_werror_flag" ||
9803 test ! -s conftest.err
9804 } && test -s conftest$ac_exeext &&
9805 $as_test_x conftest$ac_exeext; then
9806 ac_cv_lib_dl_dlopen=yes
9807else
9808 echo "$as_me: failed program was:" >&5
9809sed 's/^/| /' conftest.$ac_ext >&5
9810
9811 ac_cv_lib_dl_dlopen=no
9812fi
9813
9814rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9815 conftest$ac_exeext conftest.$ac_ext
9816LIBS=$ac_check_lib_save_LIBS
9817fi
9818{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9819echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9820if test $ac_cv_lib_dl_dlopen = yes; then
9821 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9822else
9823
9824 lt_cv_dlopen="dyld"
9825 lt_cv_dlopen_libs=
9826 lt_cv_dlopen_self=yes
9827
9828fi
9829
9830 ;;
9831
9832 *)
9833 { echo "$as_me:$LINENO: checking for shl_load" >&5
9834echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9835if test "${ac_cv_func_shl_load+set}" = set; then
9836 echo $ECHO_N "(cached) $ECHO_C" >&6
9837else
9838 cat >conftest.$ac_ext <<_ACEOF
9839/* confdefs.h. */
9840_ACEOF
9841cat confdefs.h >>conftest.$ac_ext
9842cat >>conftest.$ac_ext <<_ACEOF
9843/* end confdefs.h. */
9844/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9846#define shl_load innocuous_shl_load
9847
9848/* System header to define __stub macros and hopefully few prototypes,
9849 which can conflict with char shl_load (); below.
9850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9851 <limits.h> exists even on freestanding compilers. */
9852
9853#ifdef __STDC__
9854# include <limits.h>
9855#else
9856# include <assert.h>
9857#endif
9858
9859#undef shl_load
9860
9861/* Override any GCC internal prototype to avoid an error.
9862 Use char because int might match the return type of a GCC
9863 builtin and then its argument prototype would still apply. */
9864#ifdef __cplusplus
9865extern "C"
9866#endif
9867char shl_load ();
9868/* The GNU C library defines this for functions which it implements
9869 to always fail with ENOSYS. Some functions are actually named
9870 something starting with __ and the normal name is an alias. */
9871#if defined __stub_shl_load || defined __stub___shl_load
9872choke me
9873#endif
9874
9875int
9876main ()
9877{
9878return shl_load ();
9879 ;
9880 return 0;
9881}
9882_ACEOF
9883rm -f conftest.$ac_objext conftest$ac_exeext
9884if { (ac_try="$ac_link"
9885case "(($ac_try" in
9886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9887 *) ac_try_echo=$ac_try;;
9888esac
9889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9890 (eval "$ac_link") 2>conftest.er1
9891 ac_status=$?
9892 grep -v '^ *+' conftest.er1 >conftest.err
9893 rm -f conftest.er1
9894 cat conftest.err >&5
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); } && {
9897 test -z "$ac_c_werror_flag" ||
9898 test ! -s conftest.err
9899 } && test -s conftest$ac_exeext &&
9900 $as_test_x conftest$ac_exeext; then
9901 ac_cv_func_shl_load=yes
9902else
9903 echo "$as_me: failed program was:" >&5
9904sed 's/^/| /' conftest.$ac_ext >&5
9905
9906 ac_cv_func_shl_load=no
9907fi
9908
9909rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9910 conftest$ac_exeext conftest.$ac_ext
9911fi
9912{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9913echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9914if test $ac_cv_func_shl_load = yes; then
9915 lt_cv_dlopen="shl_load"
9916else
9917 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9918echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9919if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9920 echo $ECHO_N "(cached) $ECHO_C" >&6
9921else
9922 ac_check_lib_save_LIBS=$LIBS
9923LIBS="-ldld $LIBS"
9924cat >conftest.$ac_ext <<_ACEOF
9925/* confdefs.h. */
9926_ACEOF
9927cat confdefs.h >>conftest.$ac_ext
9928cat >>conftest.$ac_ext <<_ACEOF
9929/* end confdefs.h. */
9930
9931/* Override any GCC internal prototype to avoid an error.
9932 Use char because int might match the return type of a GCC
9933 builtin and then its argument prototype would still apply. */
9934#ifdef __cplusplus
9935extern "C"
9936#endif
9937char shl_load ();
9938int
9939main ()
9940{
9941return shl_load ();
9942 ;
9943 return 0;
9944}
9945_ACEOF
9946rm -f conftest.$ac_objext conftest$ac_exeext
9947if { (ac_try="$ac_link"
9948case "(($ac_try" in
9949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950 *) ac_try_echo=$ac_try;;
9951esac
9952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9953 (eval "$ac_link") 2>conftest.er1
9954 ac_status=$?
9955 grep -v '^ *+' conftest.er1 >conftest.err
9956 rm -f conftest.er1
9957 cat conftest.err >&5
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); } && {
9960 test -z "$ac_c_werror_flag" ||
9961 test ! -s conftest.err
9962 } && test -s conftest$ac_exeext &&
9963 $as_test_x conftest$ac_exeext; then
9964 ac_cv_lib_dld_shl_load=yes
9965else
9966 echo "$as_me: failed program was:" >&5
9967sed 's/^/| /' conftest.$ac_ext >&5
9968
9969 ac_cv_lib_dld_shl_load=no
9970fi
9971
9972rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9973 conftest$ac_exeext conftest.$ac_ext
9974LIBS=$ac_check_lib_save_LIBS
9975fi
9976{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9977echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9978if test $ac_cv_lib_dld_shl_load = yes; then
9979 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9980else
9981 { echo "$as_me:$LINENO: checking for dlopen" >&5
9982echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9983if test "${ac_cv_func_dlopen+set}" = set; then
9984 echo $ECHO_N "(cached) $ECHO_C" >&6
9985else
9986 cat >conftest.$ac_ext <<_ACEOF
9987/* confdefs.h. */
9988_ACEOF
9989cat confdefs.h >>conftest.$ac_ext
9990cat >>conftest.$ac_ext <<_ACEOF
9991/* end confdefs.h. */
9992/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9994#define dlopen innocuous_dlopen
9995
9996/* System header to define __stub macros and hopefully few prototypes,
9997 which can conflict with char dlopen (); below.
9998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9999 <limits.h> exists even on freestanding compilers. */
10000
10001#ifdef __STDC__
10002# include <limits.h>
10003#else
10004# include <assert.h>
10005#endif
10006
10007#undef dlopen
10008
10009/* Override any GCC internal prototype to avoid an error.
10010 Use char because int might match the return type of a GCC
10011 builtin and then its argument prototype would still apply. */
10012#ifdef __cplusplus
10013extern "C"
10014#endif
10015char dlopen ();
10016/* The GNU C library defines this for functions which it implements
10017 to always fail with ENOSYS. Some functions are actually named
10018 something starting with __ and the normal name is an alias. */
10019#if defined __stub_dlopen || defined __stub___dlopen
10020choke me
10021#endif
10022
10023int
10024main ()
10025{
10026return dlopen ();
10027 ;
10028 return 0;
10029}
10030_ACEOF
10031rm -f conftest.$ac_objext conftest$ac_exeext
10032if { (ac_try="$ac_link"
10033case "(($ac_try" in
10034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10035 *) ac_try_echo=$ac_try;;
10036esac
10037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10038 (eval "$ac_link") 2>conftest.er1
10039 ac_status=$?
10040 grep -v '^ *+' conftest.er1 >conftest.err
10041 rm -f conftest.er1
10042 cat conftest.err >&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); } && {
10045 test -z "$ac_c_werror_flag" ||
10046 test ! -s conftest.err
10047 } && test -s conftest$ac_exeext &&
10048 $as_test_x conftest$ac_exeext; then
10049 ac_cv_func_dlopen=yes
10050else
10051 echo "$as_me: failed program was:" >&5
10052sed 's/^/| /' conftest.$ac_ext >&5
10053
10054 ac_cv_func_dlopen=no
10055fi
10056
10057rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10058 conftest$ac_exeext conftest.$ac_ext
10059fi
10060{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10061echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10062if test $ac_cv_func_dlopen = yes; then
10063 lt_cv_dlopen="dlopen"
10064else
10065 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10066echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10067if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10068 echo $ECHO_N "(cached) $ECHO_C" >&6
10069else
10070 ac_check_lib_save_LIBS=$LIBS
10071LIBS="-ldl $LIBS"
10072cat >conftest.$ac_ext <<_ACEOF
10073/* confdefs.h. */
10074_ACEOF
10075cat confdefs.h >>conftest.$ac_ext
10076cat >>conftest.$ac_ext <<_ACEOF
10077/* end confdefs.h. */
10078
10079/* Override any GCC internal prototype to avoid an error.
10080 Use char because int might match the return type of a GCC
10081 builtin and then its argument prototype would still apply. */
10082#ifdef __cplusplus
10083extern "C"
10084#endif
10085char dlopen ();
10086int
10087main ()
10088{
10089return dlopen ();
10090 ;
10091 return 0;
10092}
10093_ACEOF
10094rm -f conftest.$ac_objext conftest$ac_exeext
10095if { (ac_try="$ac_link"
10096case "(($ac_try" in
10097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10098 *) ac_try_echo=$ac_try;;
10099esac
10100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10101 (eval "$ac_link") 2>conftest.er1
10102 ac_status=$?
10103 grep -v '^ *+' conftest.er1 >conftest.err
10104 rm -f conftest.er1
10105 cat conftest.err >&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); } && {
10108 test -z "$ac_c_werror_flag" ||
10109 test ! -s conftest.err
10110 } && test -s conftest$ac_exeext &&
10111 $as_test_x conftest$ac_exeext; then
10112 ac_cv_lib_dl_dlopen=yes
10113else
10114 echo "$as_me: failed program was:" >&5
10115sed 's/^/| /' conftest.$ac_ext >&5
10116
10117 ac_cv_lib_dl_dlopen=no
10118fi
10119
10120rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10121 conftest$ac_exeext conftest.$ac_ext
10122LIBS=$ac_check_lib_save_LIBS
10123fi
10124{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10125echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10126if test $ac_cv_lib_dl_dlopen = yes; then
10127 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10128else
10129 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10130echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10131if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10132 echo $ECHO_N "(cached) $ECHO_C" >&6
10133else
10134 ac_check_lib_save_LIBS=$LIBS
10135LIBS="-lsvld $LIBS"
10136cat >conftest.$ac_ext <<_ACEOF
10137/* confdefs.h. */
10138_ACEOF
10139cat confdefs.h >>conftest.$ac_ext
10140cat >>conftest.$ac_ext <<_ACEOF
10141/* end confdefs.h. */
10142
10143/* Override any GCC internal prototype to avoid an error.
10144 Use char because int might match the return type of a GCC
10145 builtin and then its argument prototype would still apply. */
10146#ifdef __cplusplus
10147extern "C"
10148#endif
10149char dlopen ();
10150int
10151main ()
10152{
10153return dlopen ();
10154 ;
10155 return 0;
10156}
10157_ACEOF
10158rm -f conftest.$ac_objext conftest$ac_exeext
10159if { (ac_try="$ac_link"
10160case "(($ac_try" in
10161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10162 *) ac_try_echo=$ac_try;;
10163esac
10164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10165 (eval "$ac_link") 2>conftest.er1
10166 ac_status=$?
10167 grep -v '^ *+' conftest.er1 >conftest.err
10168 rm -f conftest.er1
10169 cat conftest.err >&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); } && {
10172 test -z "$ac_c_werror_flag" ||
10173 test ! -s conftest.err
10174 } && test -s conftest$ac_exeext &&
10175 $as_test_x conftest$ac_exeext; then
10176 ac_cv_lib_svld_dlopen=yes
10177else
10178 echo "$as_me: failed program was:" >&5
10179sed 's/^/| /' conftest.$ac_ext >&5
10180
10181 ac_cv_lib_svld_dlopen=no
10182fi
10183
10184rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10185 conftest$ac_exeext conftest.$ac_ext
10186LIBS=$ac_check_lib_save_LIBS
10187fi
10188{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10189echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10190if test $ac_cv_lib_svld_dlopen = yes; then
10191 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10192else
10193 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10194echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10195if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10196 echo $ECHO_N "(cached) $ECHO_C" >&6
10197else
10198 ac_check_lib_save_LIBS=$LIBS
10199LIBS="-ldld $LIBS"
10200cat >conftest.$ac_ext <<_ACEOF
10201/* confdefs.h. */
10202_ACEOF
10203cat confdefs.h >>conftest.$ac_ext
10204cat >>conftest.$ac_ext <<_ACEOF
10205/* end confdefs.h. */
10206
10207/* Override any GCC internal prototype to avoid an error.
10208 Use char because int might match the return type of a GCC
10209 builtin and then its argument prototype would still apply. */
10210#ifdef __cplusplus
10211extern "C"
10212#endif
10213char dld_link ();
10214int
10215main ()
10216{
10217return dld_link ();
10218 ;
10219 return 0;
10220}
10221_ACEOF
10222rm -f conftest.$ac_objext conftest$ac_exeext
10223if { (ac_try="$ac_link"
10224case "(($ac_try" in
10225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10226 *) ac_try_echo=$ac_try;;
10227esac
10228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10229 (eval "$ac_link") 2>conftest.er1
10230 ac_status=$?
10231 grep -v '^ *+' conftest.er1 >conftest.err
10232 rm -f conftest.er1
10233 cat conftest.err >&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); } && {
10236 test -z "$ac_c_werror_flag" ||
10237 test ! -s conftest.err
10238 } && test -s conftest$ac_exeext &&
10239 $as_test_x conftest$ac_exeext; then
10240 ac_cv_lib_dld_dld_link=yes
10241else
10242 echo "$as_me: failed program was:" >&5
10243sed 's/^/| /' conftest.$ac_ext >&5
10244
10245 ac_cv_lib_dld_dld_link=no
10246fi
10247
10248rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10249 conftest$ac_exeext conftest.$ac_ext
10250LIBS=$ac_check_lib_save_LIBS
10251fi
10252{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10253echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10254if test $ac_cv_lib_dld_dld_link = yes; then
10255 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10256fi
10257
10258
10259fi
10260
10261
10262fi
10263
10264
10265fi
10266
10267
10268fi
10269
10270
10271fi
10272
10273 ;;
10274 esac
10275
10276 if test "x$lt_cv_dlopen" != xno; then
10277 enable_dlopen=yes
10278 else
10279 enable_dlopen=no
10280 fi
10281
10282 case $lt_cv_dlopen in
10283 dlopen)
10284 save_CPPFLAGS="$CPPFLAGS"
10285 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10286
10287 save_LDFLAGS="$LDFLAGS"
10288 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10289
10290 save_LIBS="$LIBS"
10291 LIBS="$lt_cv_dlopen_libs $LIBS"
10292
10293 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10294echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10295if test "${lt_cv_dlopen_self+set}" = set; then
10296 echo $ECHO_N "(cached) $ECHO_C" >&6
10297else
10298 if test "$cross_compiling" = yes; then :
10299 lt_cv_dlopen_self=cross
10300else
10301 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10302 lt_status=$lt_dlunknown
10303 cat > conftest.$ac_ext <<EOF
10304#line 10304 "configure"
10305#include "confdefs.h"
10306
10307#if HAVE_DLFCN_H
10308#include <dlfcn.h>
10309#endif
10310
10311#include <stdio.h>
10312
10313#ifdef RTLD_GLOBAL
10314# define LT_DLGLOBAL RTLD_GLOBAL
10315#else
10316# ifdef DL_GLOBAL
10317# define LT_DLGLOBAL DL_GLOBAL
10318# else
10319# define LT_DLGLOBAL 0
10320# endif
10321#endif
10322
10323/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10324 find out it does not work in some platform. */
10325#ifndef LT_DLLAZY_OR_NOW
10326# ifdef RTLD_LAZY
10327# define LT_DLLAZY_OR_NOW RTLD_LAZY
10328# else
10329# ifdef DL_LAZY
10330# define LT_DLLAZY_OR_NOW DL_LAZY
10331# else
10332# ifdef RTLD_NOW
10333# define LT_DLLAZY_OR_NOW RTLD_NOW
10334# else
10335# ifdef DL_NOW
10336# define LT_DLLAZY_OR_NOW DL_NOW
10337# else
10338# define LT_DLLAZY_OR_NOW 0
10339# endif
10340# endif
10341# endif
10342# endif
10343#endif
10344
10345#ifdef __cplusplus
10346extern "C" void exit (int);
10347#endif
10348
10349void fnord() { int i=42;}
10350int main ()
10351{
10352 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10353 int status = $lt_dlunknown;
10354
10355 if (self)
10356 {
10357 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10358 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10359 /* dlclose (self); */
10360 }
10361 else
10362 puts (dlerror ());
10363
10364 exit (status);
10365}
10366EOF
10367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10368 (eval $ac_link) 2>&5
10369 ac_status=$?
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10372 (./conftest; exit; ) >&5 2>/dev/null
10373 lt_status=$?
10374 case x$lt_status in
10375 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10376 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10377 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10378 esac
10379 else :
10380 # compilation failed
10381 lt_cv_dlopen_self=no
10382 fi
10383fi
10384rm -fr conftest*
10385
10386
10387fi
10388{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10389echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10390
10391 if test "x$lt_cv_dlopen_self" = xyes; then
10392 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10393 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10394echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10395if test "${lt_cv_dlopen_self_static+set}" = set; then
10396 echo $ECHO_N "(cached) $ECHO_C" >&6
10397else
10398 if test "$cross_compiling" = yes; then :
10399 lt_cv_dlopen_self_static=cross
10400else
10401 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10402 lt_status=$lt_dlunknown
10403 cat > conftest.$ac_ext <<EOF
10404#line 10404 "configure"
10405#include "confdefs.h"
10406
10407#if HAVE_DLFCN_H
10408#include <dlfcn.h>
10409#endif
10410
10411#include <stdio.h>
10412
10413#ifdef RTLD_GLOBAL
10414# define LT_DLGLOBAL RTLD_GLOBAL
10415#else
10416# ifdef DL_GLOBAL
10417# define LT_DLGLOBAL DL_GLOBAL
10418# else
10419# define LT_DLGLOBAL 0
10420# endif
10421#endif
10422
10423/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10424 find out it does not work in some platform. */
10425#ifndef LT_DLLAZY_OR_NOW
10426# ifdef RTLD_LAZY
10427# define LT_DLLAZY_OR_NOW RTLD_LAZY
10428# else
10429# ifdef DL_LAZY
10430# define LT_DLLAZY_OR_NOW DL_LAZY
10431# else
10432# ifdef RTLD_NOW
10433# define LT_DLLAZY_OR_NOW RTLD_NOW
10434# else
10435# ifdef DL_NOW
10436# define LT_DLLAZY_OR_NOW DL_NOW
10437# else
10438# define LT_DLLAZY_OR_NOW 0
10439# endif
10440# endif
10441# endif
10442# endif
10443#endif
10444
10445#ifdef __cplusplus
10446extern "C" void exit (int);
10447#endif
10448
10449void fnord() { int i=42;}
10450int main ()
10451{
10452 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10453 int status = $lt_dlunknown;
10454
10455 if (self)
10456 {
10457 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10458 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10459 /* dlclose (self); */
10460 }
10461 else
10462 puts (dlerror ());
10463
10464 exit (status);
10465}
10466EOF
10467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10468 (eval $ac_link) 2>&5
10469 ac_status=$?
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10472 (./conftest; exit; ) >&5 2>/dev/null
10473 lt_status=$?
10474 case x$lt_status in
10475 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10476 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10477 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10478 esac
10479 else :
10480 # compilation failed
10481 lt_cv_dlopen_self_static=no
10482 fi
10483fi
10484rm -fr conftest*
10485
10486
10487fi
10488{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10489echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10490 fi
10491
10492 CPPFLAGS="$save_CPPFLAGS"
10493 LDFLAGS="$save_LDFLAGS"
10494 LIBS="$save_LIBS"
10495 ;;
10496 esac
10497
10498 case $lt_cv_dlopen_self in
10499 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10500 *) enable_dlopen_self=unknown ;;
10501 esac
10502
10503 case $lt_cv_dlopen_self_static in
10504 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10505 *) enable_dlopen_self_static=unknown ;;
10506 esac
10507fi
10508
10509
10510# Report which library types will actually be built
10511{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10512echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10513{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10514echo "${ECHO_T}$can_build_shared" >&6; }
10515
10516{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10517echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10518test "$can_build_shared" = "no" && enable_shared=no
10519
10520# On AIX, shared libraries and static libraries use the same namespace, and
10521# are all built from PIC.
10522case $host_os in
10523aix3*)
10524 test "$enable_shared" = yes && enable_static=no
10525 if test -n "$RANLIB"; then
10526 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10527 postinstall_cmds='$RANLIB $lib'
10528 fi
10529 ;;
10530
10531aix[4-9]*)
10532 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10533 test "$enable_shared" = yes && enable_static=no
10534 fi
10535 ;;
10536esac
10537{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10538echo "${ECHO_T}$enable_shared" >&6; }
10539
10540{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10541echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10542# Make sure either enable_shared or enable_static is yes.
10543test "$enable_shared" = yes || enable_static=yes
10544{ echo "$as_me:$LINENO: result: $enable_static" >&5
10545echo "${ECHO_T}$enable_static" >&6; }
10546
10547# The else clause should only fire when bootstrapping the
10548# libtool distribution, otherwise you forgot to ship ltmain.sh
10549# with your package, and you will get complaints that there are
10550# no rules to generate ltmain.sh.
10551if test -f "$ltmain"; then
10552 # See if we are running on zsh, and set the options which allow our commands through
10553 # without removal of \ escapes.
10554 if test -n "${ZSH_VERSION+set}" ; then
10555 setopt NO_GLOB_SUBST
10556 fi
10557 # Now quote all the things that may contain metacharacters while being
10558 # careful not to overquote the AC_SUBSTed values. We take copies of the
10559 # variables and quote the copies for generation of the libtool script.
10560 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10561 SED SHELL STRIP \
10562 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10563 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10564 deplibs_check_method reload_flag reload_cmds need_locks \
10565 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10566 lt_cv_sys_global_symbol_to_c_name_address \
10567 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10568 old_postinstall_cmds old_postuninstall_cmds \
10569 compiler \
10570 CC \
10571 LD \
10572 lt_prog_compiler_wl \
10573 lt_prog_compiler_pic \
10574 lt_prog_compiler_static \
10575 lt_prog_compiler_no_builtin_flag \
10576 export_dynamic_flag_spec \
10577 thread_safe_flag_spec \
10578 whole_archive_flag_spec \
10579 enable_shared_with_static_runtimes \
10580 old_archive_cmds \
10581 old_archive_from_new_cmds \
10582 predep_objects \
10583 postdep_objects \
10584 predeps \
10585 postdeps \
10586 compiler_lib_search_path \
10587 compiler_lib_search_dirs \
10588 archive_cmds \
10589 archive_expsym_cmds \
10590 postinstall_cmds \
10591 postuninstall_cmds \
10592 old_archive_from_expsyms_cmds \
10593 allow_undefined_flag \
10594 no_undefined_flag \
10595 export_symbols_cmds \
10596 hardcode_libdir_flag_spec \
10597 hardcode_libdir_flag_spec_ld \
10598 hardcode_libdir_separator \
10599 hardcode_automatic \
10600 module_cmds \
10601 module_expsym_cmds \
10602 lt_cv_prog_compiler_c_o \
10603 fix_srcfile_path \
10604 exclude_expsyms \
10605 include_expsyms; do
10606
10607 case $var in
10608 old_archive_cmds | \
10609 old_archive_from_new_cmds | \
10610 archive_cmds | \
10611 archive_expsym_cmds | \
10612 module_cmds | \
10613 module_expsym_cmds | \
10614 old_archive_from_expsyms_cmds | \
10615 export_symbols_cmds | \
10616 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10617 postinstall_cmds | postuninstall_cmds | \
10618 old_postinstall_cmds | old_postuninstall_cmds | \
10619 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10620 # Double-quote double-evaled strings.
10621 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10622 ;;
10623 *)
10624 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10625 ;;
10626 esac
10627 done
10628
10629 case $lt_echo in
10630 *'\$0 --fallback-echo"')
10631 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10632 ;;
10633 esac
10634
10635cfgfile="${ofile}T"
10636 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10637 $rm -f "$cfgfile"
10638 { echo "$as_me:$LINENO: creating $ofile" >&5
10639echo "$as_me: creating $ofile" >&6;}
10640
10641 cat <<__EOF__ >> "$cfgfile"
10642#! $SHELL
10643
10644# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10645# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10646# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10647#
10648# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10649# Free Software Foundation, Inc.
10650#
10651# This file is part of GNU Libtool:
10652# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10653#
10654# This program is free software; you can redistribute it and/or modify
10655# it under the terms of the GNU General Public License as published by
10656# the Free Software Foundation; either version 2 of the License, or
10657# (at your option) any later version.
10658#
10659# This program is distributed in the hope that it will be useful, but
10660# WITHOUT ANY WARRANTY; without even the implied warranty of
10661# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10662# General Public License for more details.
10663#
10664# You should have received a copy of the GNU General Public License
10665# along with this program; if not, write to the Free Software
10666# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10667#
10668# As a special exception to the GNU General Public License, if you
10669# distribute this file as part of a program that contains a
10670# configuration script generated by Autoconf, you may include it under
10671# the same distribution terms that you use for the rest of that program.
10672
10673# A sed program that does not truncate output.
10674SED=$lt_SED
10675
10676# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10677Xsed="$SED -e 1s/^X//"
10678
10679# The HP-UX ksh and POSIX shell print the target directory to stdout
10680# if CDPATH is set.
10681(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10682
10683# The names of the tagged configurations supported by this script.
10684available_tags=
10685
10686# ### BEGIN LIBTOOL CONFIG
10687
10688# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10689
10690# Shell to use when invoking shell scripts.
10691SHELL=$lt_SHELL
10692
10693# Whether or not to build shared libraries.
10694build_libtool_libs=$enable_shared
10695
10696# Whether or not to build static libraries.
10697build_old_libs=$enable_static
10698
10699# Whether or not to add -lc for building shared libraries.
10700build_libtool_need_lc=$archive_cmds_need_lc
10701
10702# Whether or not to disallow shared libs when runtime libs are static
10703allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10704
10705# Whether or not to optimize for fast installation.
10706fast_install=$enable_fast_install
10707
10708# The host system.
10709host_alias=$host_alias
10710host=$host
10711host_os=$host_os
10712
10713# The build system.
10714build_alias=$build_alias
10715build=$build
10716build_os=$build_os
10717
10718# An echo program that does not interpret backslashes.
10719echo=$lt_echo
10720
10721# The archiver.
10722AR=$lt_AR
10723AR_FLAGS=$lt_AR_FLAGS
10724
10725# A C compiler.
10726LTCC=$lt_LTCC
10727
10728# LTCC compiler flags.
10729LTCFLAGS=$lt_LTCFLAGS
10730
10731# A language-specific compiler.
10732CC=$lt_compiler
10733
10734# Is the compiler the GNU C compiler?
10735with_gcc=$GCC
10736
10737# An ERE matcher.
10738EGREP=$lt_EGREP
10739
10740# The linker used to build libraries.
10741LD=$lt_LD
10742
10743# Whether we need hard or soft links.
10744LN_S=$lt_LN_S
10745
10746# A BSD-compatible nm program.
10747NM=$lt_NM
10748
10749# A symbol stripping program
10750STRIP=$lt_STRIP
10751
10752# Used to examine libraries when file_magic_cmd begins "file"
10753MAGIC_CMD=$MAGIC_CMD
10754
10755# Used on cygwin: DLL creation program.
10756DLLTOOL="$DLLTOOL"
10757
10758# Used on cygwin: object dumper.
10759OBJDUMP="$OBJDUMP"
10760
10761# Used on cygwin: assembler.
10762AS="$AS"
10763
10764# The name of the directory that contains temporary libtool files.
10765objdir=$objdir
10766
10767# How to create reloadable object files.
10768reload_flag=$lt_reload_flag
10769reload_cmds=$lt_reload_cmds
10770
10771# How to pass a linker flag through the compiler.
10772wl=$lt_lt_prog_compiler_wl
10773
10774# Object file suffix (normally "o").
10775objext="$ac_objext"
10776
10777# Old archive suffix (normally "a").
10778libext="$libext"
10779
10780# Shared library suffix (normally ".so").
10781shrext_cmds='$shrext_cmds'
10782
10783# Executable file suffix (normally "").
10784exeext="$exeext"
10785
10786# Additional compiler flags for building library objects.
10787pic_flag=$lt_lt_prog_compiler_pic
10788pic_mode=$pic_mode
10789
10790# What is the maximum length of a command?
10791max_cmd_len=$lt_cv_sys_max_cmd_len
10792
10793# Does compiler simultaneously support -c and -o options?
10794compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10795
10796# Must we lock files when doing compilation?
10797need_locks=$lt_need_locks
10798
10799# Do we need the lib prefix for modules?
10800need_lib_prefix=$need_lib_prefix
10801
10802# Do we need a version for libraries?
10803need_version=$need_version
10804
10805# Whether dlopen is supported.
10806dlopen_support=$enable_dlopen
10807
10808# Whether dlopen of programs is supported.
10809dlopen_self=$enable_dlopen_self
10810
10811# Whether dlopen of statically linked programs is supported.
10812dlopen_self_static=$enable_dlopen_self_static
10813
10814# Compiler flag to prevent dynamic linking.
10815link_static_flag=$lt_lt_prog_compiler_static
10816
10817# Compiler flag to turn off builtin functions.
10818no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10819
10820# Compiler flag to allow reflexive dlopens.
10821export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10822
10823# Compiler flag to generate shared objects directly from archives.
10824whole_archive_flag_spec=$lt_whole_archive_flag_spec
10825
10826# Compiler flag to generate thread-safe objects.
10827thread_safe_flag_spec=$lt_thread_safe_flag_spec
10828
10829# Library versioning type.
10830version_type=$version_type
10831
10832# Format of library name prefix.
10833libname_spec=$lt_libname_spec
10834
10835# List of archive names. First name is the real one, the rest are links.
10836# The last name is the one that the linker finds with -lNAME.
10837library_names_spec=$lt_library_names_spec
10838
10839# The coded name of the library, if different from the real name.
10840soname_spec=$lt_soname_spec
10841
10842# Commands used to build and install an old-style archive.
10843RANLIB=$lt_RANLIB
10844old_archive_cmds=$lt_old_archive_cmds
10845old_postinstall_cmds=$lt_old_postinstall_cmds
10846old_postuninstall_cmds=$lt_old_postuninstall_cmds
10847
10848# Create an old-style archive from a shared archive.
10849old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10850
10851# Create a temporary old-style archive to link instead of a shared archive.
10852old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10853
10854# Commands used to build and install a shared archive.
10855archive_cmds=$lt_archive_cmds
10856archive_expsym_cmds=$lt_archive_expsym_cmds
10857postinstall_cmds=$lt_postinstall_cmds
10858postuninstall_cmds=$lt_postuninstall_cmds
10859
10860# Commands used to build a loadable module (assumed same as above if empty)
10861module_cmds=$lt_module_cmds
10862module_expsym_cmds=$lt_module_expsym_cmds
10863
10864# Commands to strip libraries.
10865old_striplib=$lt_old_striplib
10866striplib=$lt_striplib
10867
10868# Dependencies to place before the objects being linked to create a
10869# shared library.
10870predep_objects=$lt_predep_objects
10871
10872# Dependencies to place after the objects being linked to create a
10873# shared library.
10874postdep_objects=$lt_postdep_objects
10875
10876# Dependencies to place before the objects being linked to create a
10877# shared library.
10878predeps=$lt_predeps
10879
10880# Dependencies to place after the objects being linked to create a
10881# shared library.
10882postdeps=$lt_postdeps
10883
10884# The directories searched by this compiler when creating a shared
10885# library
10886compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10887
10888# The library search path used internally by the compiler when linking
10889# a shared library.
10890compiler_lib_search_path=$lt_compiler_lib_search_path
10891
10892# Method to check whether dependent libraries are shared objects.
10893deplibs_check_method=$lt_deplibs_check_method
10894
10895# Command to use when deplibs_check_method == file_magic.
10896file_magic_cmd=$lt_file_magic_cmd
10897
10898# Flag that allows shared libraries with undefined symbols to be built.
10899allow_undefined_flag=$lt_allow_undefined_flag
10900
10901# Flag that forces no undefined symbols.
10902no_undefined_flag=$lt_no_undefined_flag
10903
10904# Commands used to finish a libtool library installation in a directory.
10905finish_cmds=$lt_finish_cmds
10906
10907# Same as above, but a single script fragment to be evaled but not shown.
10908finish_eval=$lt_finish_eval
10909
10910# Take the output of nm and produce a listing of raw symbols and C names.
10911global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10912
10913# Transform the output of nm in a proper C declaration
10914global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10915
10916# Transform the output of nm in a C name address pair
10917global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10918
10919# This is the shared library runtime path variable.
10920runpath_var=$runpath_var
10921
10922# This is the shared library path variable.
10923shlibpath_var=$shlibpath_var
10924
10925# Is shlibpath searched before the hard-coded library search path?
10926shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10927
10928# How to hardcode a shared library path into an executable.
10929hardcode_action=$hardcode_action
10930
10931# Whether we should hardcode library paths into libraries.
10932hardcode_into_libs=$hardcode_into_libs
10933
10934# Flag to hardcode \$libdir into a binary during linking.
10935# This must work even if \$libdir does not exist.
10936hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10937
10938# If ld is used when linking, flag to hardcode \$libdir into
10939# a binary during linking. This must work even if \$libdir does
10940# not exist.
10941hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10942
10943# Whether we need a single -rpath flag with a separated argument.
10944hardcode_libdir_separator=$lt_hardcode_libdir_separator
10945
10946# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10947# resulting binary.
10948hardcode_direct=$hardcode_direct
10949
10950# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10951# resulting binary.
10952hardcode_minus_L=$hardcode_minus_L
10953
10954# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10955# the resulting binary.
10956hardcode_shlibpath_var=$hardcode_shlibpath_var
10957
10958# Set to yes if building a shared library automatically hardcodes DIR into the library
10959# and all subsequent libraries and executables linked against it.
10960hardcode_automatic=$hardcode_automatic
10961
10962# Variables whose values should be saved in libtool wrapper scripts and
10963# restored at relink time.
10964variables_saved_for_relink="$variables_saved_for_relink"
10965
10966# Whether libtool must link a program against all its dependency libraries.
10967link_all_deplibs=$link_all_deplibs
10968
10969# Compile-time system search path for libraries
10970sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10971
10972# Run-time system search path for libraries
10973sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10974
10975# Fix the shell variable \$srcfile for the compiler.
10976fix_srcfile_path=$lt_fix_srcfile_path
10977
10978# Set to yes if exported symbols are required.
10979always_export_symbols=$always_export_symbols
10980
10981# The commands to list exported symbols.
10982export_symbols_cmds=$lt_export_symbols_cmds
10983
10984# The commands to extract the exported symbol list from a shared archive.
10985extract_expsyms_cmds=$lt_extract_expsyms_cmds
10986
10987# Symbols that should not be listed in the preloaded symbols.
10988exclude_expsyms=$lt_exclude_expsyms
10989
10990# Symbols that must always be exported.
10991include_expsyms=$lt_include_expsyms
10992
10993# ### END LIBTOOL CONFIG
10994
10995__EOF__
10996
10997
10998 case $host_os in
10999 aix3*)
11000 cat <<\EOF >> "$cfgfile"
11001
11002# AIX sometimes has problems with the GCC collect2 program. For some
11003# reason, if we set the COLLECT_NAMES environment variable, the problems
11004# vanish in a puff of smoke.
11005if test "X${COLLECT_NAMES+set}" != Xset; then
11006 COLLECT_NAMES=
11007 export COLLECT_NAMES
11008fi
11009EOF
11010 ;;
11011 esac
11012
11013 # We use sed instead of cat because bash on DJGPP gets confused if
11014 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11015 # text mode, it properly converts lines to CR/LF. This bash problem
11016 # is reportedly fixed, but why not run on old versions too?
11017 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11018
11019 mv -f "$cfgfile" "$ofile" || \
11020 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11021 chmod +x "$ofile"
11022
11023else
11024 # If there is no Makefile yet, we rely on a make rule to execute
11025 # `config.status --recheck' to rerun these tests and create the
11026 # libtool script then.
11027 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11028 if test -f "$ltmain_in"; then
11029 test -f Makefile && make "$ltmain"
11030 fi
11031fi
11032
11033
11034ac_ext=c
11035ac_cpp='$CPP $CPPFLAGS'
11036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11038ac_compiler_gnu=$ac_cv_c_compiler_gnu
11039
11040CC="$lt_save_CC"
11041
11042
11043# Check whether --with-tags was given.
11044if test "${with_tags+set}" = set; then
11045 withval=$with_tags; tagnames="$withval"
11046fi
11047
11048
11049if test -f "$ltmain" && test -n "$tagnames"; then
11050 if test ! -f "${ofile}"; then
11051 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11052echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11053 fi
11054
11055 if test -z "$LTCC"; then
11056 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11057 if test -z "$LTCC"; then
11058 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11059echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11060 else
11061 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11062echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11063 fi
11064 fi
11065 if test -z "$LTCFLAGS"; then
11066 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11067 fi
11068
11069 # Extract list of available tagged configurations in $ofile.
11070 # Note that this assumes the entire list is on one line.
11071 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11072
11073 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11074 for tagname in $tagnames; do
11075 IFS="$lt_save_ifs"
11076 # Check whether tagname contains only valid characters
11077 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11078 "") ;;
11079 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11080echo "$as_me: error: invalid tag name: $tagname" >&2;}
11081 { (exit 1); exit 1; }; }
11082 ;;
11083 esac
11084
11085 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11086 then
11087 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11088echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11089 { (exit 1); exit 1; }; }
11090 fi
11091
11092 # Update the list of available tags.
11093 if test -n "$tagname"; then
11094 echo appending configuration tag \"$tagname\" to $ofile
11095
11096 case $tagname in
11097 CXX)
11098 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11099 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11100 (test "X$CXX" != "Xg++"))) ; then
11101 ac_ext=cpp
11102ac_cpp='$CXXCPP $CPPFLAGS'
11103ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11104ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11105ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11106
11107
11108
11109
11110archive_cmds_need_lc_CXX=no
11111allow_undefined_flag_CXX=
11112always_export_symbols_CXX=no
11113archive_expsym_cmds_CXX=
11114export_dynamic_flag_spec_CXX=
11115hardcode_direct_CXX=no
11116hardcode_libdir_flag_spec_CXX=
11117hardcode_libdir_flag_spec_ld_CXX=
11118hardcode_libdir_separator_CXX=
11119hardcode_minus_L_CXX=no
11120hardcode_shlibpath_var_CXX=unsupported
11121hardcode_automatic_CXX=no
11122module_cmds_CXX=
11123module_expsym_cmds_CXX=
11124link_all_deplibs_CXX=unknown
11125old_archive_cmds_CXX=$old_archive_cmds
11126no_undefined_flag_CXX=
11127whole_archive_flag_spec_CXX=
11128enable_shared_with_static_runtimes_CXX=no
11129
11130# Dependencies to place before and after the object being linked:
11131predep_objects_CXX=
11132postdep_objects_CXX=
11133predeps_CXX=
11134postdeps_CXX=
11135compiler_lib_search_path_CXX=
11136compiler_lib_search_dirs_CXX=
11137
11138# Source file extension for C++ test sources.
11139ac_ext=cpp
11140
11141# Object file extension for compiled C++ test sources.
11142objext=o
11143objext_CXX=$objext
11144
11145# Code to be used in simple compile tests
11146lt_simple_compile_test_code="int some_variable = 0;"
11147
11148# Code to be used in simple link tests
11149lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11150
11151# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11152
11153# If no C compiler was specified, use CC.
11154LTCC=${LTCC-"$CC"}
11155
11156# If no C compiler flags were specified, use CFLAGS.
11157LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11158
11159# Allow CC to be a program name with arguments.
11160compiler=$CC
11161
11162
11163# save warnings/boilerplate of simple test code
11164ac_outfile=conftest.$ac_objext
11165echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11166eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11167_lt_compiler_boilerplate=`cat conftest.err`
11168$rm conftest*
11169
11170ac_outfile=conftest.$ac_objext
11171echo "$lt_simple_link_test_code" >conftest.$ac_ext
11172eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11173_lt_linker_boilerplate=`cat conftest.err`
11174$rm -r conftest*
11175
11176
11177# Allow CC to be a program name with arguments.
11178lt_save_CC=$CC
11179lt_save_LD=$LD
11180lt_save_GCC=$GCC
11181GCC=$GXX
11182lt_save_with_gnu_ld=$with_gnu_ld
11183lt_save_path_LD=$lt_cv_path_LD
11184if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11185 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11186else
11187 $as_unset lt_cv_prog_gnu_ld
11188fi
11189if test -n "${lt_cv_path_LDCXX+set}"; then
11190 lt_cv_path_LD=$lt_cv_path_LDCXX
11191else
11192 $as_unset lt_cv_path_LD
11193fi
11194test -z "${LDCXX+set}" || LD=$LDCXX
11195CC=${CXX-"c++"}
11196compiler=$CC
11197compiler_CXX=$CC
11198for cc_temp in $compiler""; do
11199 case $cc_temp in
11200 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11201 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11202 \-*) ;;
11203 *) break;;
11204 esac
11205done
11206cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11207
11208
11209# We don't want -fno-exception wen compiling C++ code, so set the
11210# no_builtin_flag separately
11211if test "$GXX" = yes; then
11212 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11213else
11214 lt_prog_compiler_no_builtin_flag_CXX=
11215fi
11216
11217if test "$GXX" = yes; then
11218 # Set up default GNU C++ configuration
11219
11220
11221# Check whether --with-gnu-ld was given.
11222if test "${with_gnu_ld+set}" = set; then
11223 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11224else
11225 with_gnu_ld=no
11226fi
11227
11228ac_prog=ld
11229if test "$GCC" = yes; then
11230 # Check if gcc -print-prog-name=ld gives a path.
11231 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11232echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11233 case $host in
11234 *-*-mingw*)
11235 # gcc leaves a trailing carriage return which upsets mingw
11236 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11237 *)
11238 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11239 esac
11240 case $ac_prog in
11241 # Accept absolute paths.
11242 [\\/]* | ?:[\\/]*)
11243 re_direlt='/[^/][^/]*/\.\./'
11244 # Canonicalize the pathname of ld
11245 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11246 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11247 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11248 done
11249 test -z "$LD" && LD="$ac_prog"
11250 ;;
11251 "")
11252 # If it fails, then pretend we aren't using GCC.
11253 ac_prog=ld
11254 ;;
11255 *)
11256 # If it is relative, then search for the first ld in PATH.
11257 with_gnu_ld=unknown
11258 ;;
11259 esac
11260elif test "$with_gnu_ld" = yes; then
11261 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11262echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11263else
11264 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11265echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11266fi
11267if test "${lt_cv_path_LD+set}" = set; then
11268 echo $ECHO_N "(cached) $ECHO_C" >&6
11269else
11270 if test -z "$LD"; then
11271 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11272 for ac_dir in $PATH; do
11273 IFS="$lt_save_ifs"
11274 test -z "$ac_dir" && ac_dir=.
11275 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11276 lt_cv_path_LD="$ac_dir/$ac_prog"
11277 # Check to see if the program is GNU ld. I'd rather use --version,
11278 # but apparently some variants of GNU ld only accept -v.
11279 # Break only if it was the GNU/non-GNU ld that we prefer.
11280 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11281 *GNU* | *'with BFD'*)
11282 test "$with_gnu_ld" != no && break
11283 ;;
11284 *)
11285 test "$with_gnu_ld" != yes && break
11286 ;;
11287 esac
11288 fi
11289 done
11290 IFS="$lt_save_ifs"
11291else
11292 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11293fi
11294fi
11295
11296LD="$lt_cv_path_LD"
11297if test -n "$LD"; then
11298 { echo "$as_me:$LINENO: result: $LD" >&5
11299echo "${ECHO_T}$LD" >&6; }
11300else
11301 { echo "$as_me:$LINENO: result: no" >&5
11302echo "${ECHO_T}no" >&6; }
11303fi
11304test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11305echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11306 { (exit 1); exit 1; }; }
11307{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11308echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11309if test "${lt_cv_prog_gnu_ld+set}" = set; then
11310 echo $ECHO_N "(cached) $ECHO_C" >&6
11311else
11312 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11313case `$LD -v 2>&1 </dev/null` in
11314*GNU* | *'with BFD'*)
11315 lt_cv_prog_gnu_ld=yes
11316 ;;
11317*)
11318 lt_cv_prog_gnu_ld=no
11319 ;;
11320esac
11321fi
11322{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11323echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11324with_gnu_ld=$lt_cv_prog_gnu_ld
11325
11326
11327
11328 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11329 # archiving commands below assume that GNU ld is being used.
11330 if test "$with_gnu_ld" = yes; then
11331 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11332 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'
11333
11334 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11335 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11336
11337 # If archive_cmds runs LD, not CC, wlarc should be empty
11338 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11339 # investigate it a little bit more. (MM)
11340 wlarc='${wl}'
11341
11342 # ancient GNU ld didn't support --whole-archive et. al.
11343 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11344 grep 'no-whole-archive' > /dev/null; then
11345 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11346 else
11347 whole_archive_flag_spec_CXX=
11348 fi
11349 else
11350 with_gnu_ld=no
11351 wlarc=
11352
11353 # A generic and very simple default shared library creation
11354 # command for GNU C++ for the case where it uses the native
11355 # linker, instead of GNU ld. If possible, this setting should
11356 # overridden to take advantage of the native linker features on
11357 # the platform it is being used on.
11358 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11359 fi
11360
11361 # Commands to make compiler produce verbose output that lists
11362 # what "hidden" libraries, object files and flags are used when
11363 # linking a shared library.
11364 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11365
11366else
11367 GXX=no
11368 with_gnu_ld=no
11369 wlarc=
11370fi
11371
11372# PORTME: fill in a description of your system's C++ link characteristics
11373{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11374echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11375ld_shlibs_CXX=yes
11376case $host_os in
11377 aix3*)
11378 # FIXME: insert proper C++ library support
11379 ld_shlibs_CXX=no
11380 ;;
11381 aix[4-9]*)
11382 if test "$host_cpu" = ia64; then
11383 # On IA64, the linker does run time linking by default, so we don't
11384 # have to do anything special.
11385 aix_use_runtimelinking=no
11386 exp_sym_flag='-Bexport'
11387 no_entry_flag=""
11388 else
11389 aix_use_runtimelinking=no
11390
11391 # Test if we are trying to use run time linking or normal
11392 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11393 # need to do runtime linking.
11394 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11395 for ld_flag in $LDFLAGS; do
11396 case $ld_flag in
11397 *-brtl*)
11398 aix_use_runtimelinking=yes
11399 break
11400 ;;
11401 esac
11402 done
11403 ;;
11404 esac
11405
11406 exp_sym_flag='-bexport'
11407 no_entry_flag='-bnoentry'
11408 fi
11409
11410 # When large executables or shared objects are built, AIX ld can
11411 # have problems creating the table of contents. If linking a library
11412 # or program results in "error TOC overflow" add -mminimal-toc to
11413 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11414 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11415
11416 archive_cmds_CXX=''
11417 hardcode_direct_CXX=yes
11418 hardcode_libdir_separator_CXX=':'
11419 link_all_deplibs_CXX=yes
11420
11421 if test "$GXX" = yes; then
11422 case $host_os in aix4.[012]|aix4.[012].*)
11423 # We only want to do this on AIX 4.2 and lower, the check
11424 # below for broken collect2 doesn't work under 4.3+
11425 collect2name=`${CC} -print-prog-name=collect2`
11426 if test -f "$collect2name" && \
11427 strings "$collect2name" | grep resolve_lib_name >/dev/null
11428 then
11429 # We have reworked collect2
11430 :
11431 else
11432 # We have old collect2
11433 hardcode_direct_CXX=unsupported
11434 # It fails to find uninstalled libraries when the uninstalled
11435 # path is not listed in the libpath. Setting hardcode_minus_L
11436 # to unsupported forces relinking
11437 hardcode_minus_L_CXX=yes
11438 hardcode_libdir_flag_spec_CXX='-L$libdir'
11439 hardcode_libdir_separator_CXX=
11440 fi
11441 ;;
11442 esac
11443 shared_flag='-shared'
11444 if test "$aix_use_runtimelinking" = yes; then
11445 shared_flag="$shared_flag "'${wl}-G'
11446 fi
11447 else
11448 # not using gcc
11449 if test "$host_cpu" = ia64; then
11450 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11451 # chokes on -Wl,-G. The following line is correct:
11452 shared_flag='-G'
11453 else
11454 if test "$aix_use_runtimelinking" = yes; then
11455 shared_flag='${wl}-G'
11456 else
11457 shared_flag='${wl}-bM:SRE'
11458 fi
11459 fi
11460 fi
11461
11462 # It seems that -bexpall does not export symbols beginning with
11463 # underscore (_), so it is better to generate a list of symbols to export.
11464 always_export_symbols_CXX=yes
11465 if test "$aix_use_runtimelinking" = yes; then
11466 # Warning - without using the other runtime loading flags (-brtl),
11467 # -berok will link without error, but may produce a broken library.
11468 allow_undefined_flag_CXX='-berok'
11469 # Determine the default libpath from the value encoded in an empty executable.
11470 cat >conftest.$ac_ext <<_ACEOF
11471/* confdefs.h. */
11472_ACEOF
11473cat confdefs.h >>conftest.$ac_ext
11474cat >>conftest.$ac_ext <<_ACEOF
11475/* end confdefs.h. */
11476
11477int
11478main ()
11479{
11480
11481 ;
11482 return 0;
11483}
11484_ACEOF
11485rm -f conftest.$ac_objext conftest$ac_exeext
11486if { (ac_try="$ac_link"
11487case "(($ac_try" in
11488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11489 *) ac_try_echo=$ac_try;;
11490esac
11491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11492 (eval "$ac_link") 2>conftest.er1
11493 ac_status=$?
11494 grep -v '^ *+' conftest.er1 >conftest.err
11495 rm -f conftest.er1
11496 cat conftest.err >&5
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); } && {
11499 test -z "$ac_cxx_werror_flag" ||
11500 test ! -s conftest.err
11501 } && test -s conftest$ac_exeext &&
11502 $as_test_x conftest$ac_exeext; then
11503
11504lt_aix_libpath_sed='
11505 /Import File Strings/,/^$/ {
11506 /^0/ {
11507 s/^0 *\(.*\)$/\1/
11508 p
11509 }
11510 }'
11511aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11512# Check for a 64-bit object if we didn't find anything.
11513if test -z "$aix_libpath"; then
11514 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11515fi
11516else
11517 echo "$as_me: failed program was:" >&5
11518sed 's/^/| /' conftest.$ac_ext >&5
11519
11520
11521fi
11522
11523rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11524 conftest$ac_exeext conftest.$ac_ext
11525if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11526
11527 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11528
11529 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"
11530 else
11531 if test "$host_cpu" = ia64; then
11532 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11533 allow_undefined_flag_CXX="-z nodefs"
11534 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"
11535 else
11536 # Determine the default libpath from the value encoded in an empty executable.
11537 cat >conftest.$ac_ext <<_ACEOF
11538/* confdefs.h. */
11539_ACEOF
11540cat confdefs.h >>conftest.$ac_ext
11541cat >>conftest.$ac_ext <<_ACEOF
11542/* end confdefs.h. */
11543
11544int
11545main ()
11546{
11547
11548 ;
11549 return 0;
11550}
11551_ACEOF
11552rm -f conftest.$ac_objext conftest$ac_exeext
11553if { (ac_try="$ac_link"
11554case "(($ac_try" in
11555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11556 *) ac_try_echo=$ac_try;;
11557esac
11558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11559 (eval "$ac_link") 2>conftest.er1
11560 ac_status=$?
11561 grep -v '^ *+' conftest.er1 >conftest.err
11562 rm -f conftest.er1
11563 cat conftest.err >&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); } && {
11566 test -z "$ac_cxx_werror_flag" ||
11567 test ! -s conftest.err
11568 } && test -s conftest$ac_exeext &&
11569 $as_test_x conftest$ac_exeext; then
11570
11571lt_aix_libpath_sed='
11572 /Import File Strings/,/^$/ {
11573 /^0/ {
11574 s/^0 *\(.*\)$/\1/
11575 p
11576 }
11577 }'
11578aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11579# Check for a 64-bit object if we didn't find anything.
11580if test -z "$aix_libpath"; then
11581 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11582fi
11583else
11584 echo "$as_me: failed program was:" >&5
11585sed 's/^/| /' conftest.$ac_ext >&5
11586
11587
11588fi
11589
11590rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11591 conftest$ac_exeext conftest.$ac_ext
11592if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11593
11594 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11595 # Warning - without using the other run time loading flags,
11596 # -berok will link without error, but may produce a broken library.
11597 no_undefined_flag_CXX=' ${wl}-bernotok'
11598 allow_undefined_flag_CXX=' ${wl}-berok'
11599 # Exported symbols can be pulled into shared objects from archives
11600 whole_archive_flag_spec_CXX='$convenience'
11601 archive_cmds_need_lc_CXX=yes
11602 # This is similar to how AIX traditionally builds its shared libraries.
11603 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'
11604 fi
11605 fi
11606 ;;
11607
11608 beos*)
11609 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11610 allow_undefined_flag_CXX=unsupported
11611 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11612 # support --undefined. This deserves some investigation. FIXME
11613 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11614 else
11615 ld_shlibs_CXX=no
11616 fi
11617 ;;
11618
11619 chorus*)
11620 case $cc_basename in
11621 *)
11622 # FIXME: insert proper C++ library support
11623 ld_shlibs_CXX=no
11624 ;;
11625 esac
11626 ;;
11627
11628 cygwin* | mingw* | pw32*)
11629 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11630 # as there is no search path for DLLs.
11631 hardcode_libdir_flag_spec_CXX='-L$libdir'
11632 allow_undefined_flag_CXX=unsupported
11633 always_export_symbols_CXX=no
11634 enable_shared_with_static_runtimes_CXX=yes
11635
11636 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11637 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'
11638 # If the export-symbols file already is a .def file (1st line
11639 # is EXPORTS), use it as is; otherwise, prepend...
11640 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11641 cp $export_symbols $output_objdir/$soname.def;
11642 else
11643 echo EXPORTS > $output_objdir/$soname.def;
11644 cat $export_symbols >> $output_objdir/$soname.def;
11645 fi~
11646 $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'
11647 else
11648 ld_shlibs_CXX=no
11649 fi
11650 ;;
11651 darwin* | rhapsody*)
11652 archive_cmds_need_lc_CXX=no
11653 hardcode_direct_CXX=no
11654 hardcode_automatic_CXX=yes
11655 hardcode_shlibpath_var_CXX=unsupported
11656 whole_archive_flag_spec_CXX=''
11657 link_all_deplibs_CXX=yes
11658 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11659 if test "$GXX" = yes ; then
11660 output_verbose_link_cmd='echo'
11661 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11662 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11663 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11664 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11665 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11666 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${_lt_dsymutil}"
11667 archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
11668 fi
11669 else
11670 case $cc_basename in
11671 xlc*)
11672 output_verbose_link_cmd='echo'
11673 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11674 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11675 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11676 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11677 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}'
11678 ;;
11679 *)
11680 ld_shlibs_CXX=no
11681 ;;
11682 esac
11683 fi
11684 ;;
11685
11686 dgux*)
11687 case $cc_basename in
11688 ec++*)
11689 # FIXME: insert proper C++ library support
11690 ld_shlibs_CXX=no
11691 ;;
11692 ghcx*)
11693 # Green Hills C++ Compiler
11694 # FIXME: insert proper C++ library support
11695 ld_shlibs_CXX=no
11696 ;;
11697 *)
11698 # FIXME: insert proper C++ library support
11699 ld_shlibs_CXX=no
11700 ;;
11701 esac
11702 ;;
11703 freebsd[12]*)
11704 # C++ shared libraries reported to be fairly broken before switch to ELF
11705 ld_shlibs_CXX=no
11706 ;;
11707 freebsd-elf*)
11708 archive_cmds_need_lc_CXX=no
11709 ;;
11710 freebsd* | dragonfly*)
11711 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11712 # conventions
11713 ld_shlibs_CXX=yes
11714 ;;
11715 gnu*)
11716 ;;
11717 hpux9*)
11718 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11719 hardcode_libdir_separator_CXX=:
11720 export_dynamic_flag_spec_CXX='${wl}-E'
11721 hardcode_direct_CXX=yes
11722 hardcode_minus_L_CXX=yes # Not in the search PATH,
11723 # but as the default
11724 # location of the library.
11725
11726 case $cc_basename in
11727 CC*)
11728 # FIXME: insert proper C++ library support
11729 ld_shlibs_CXX=no
11730 ;;
11731 aCC*)
11732 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'
11733 # Commands to make compiler produce verbose output that lists
11734 # what "hidden" libraries, object files and flags are used when
11735 # linking a shared library.
11736 #
11737 # There doesn't appear to be a way to prevent this compiler from
11738 # explicitly linking system object files so we need to strip them
11739 # from the output so that they don't get included in the library
11740 # dependencies.
11741 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'
11742 ;;
11743 *)
11744 if test "$GXX" = yes; then
11745 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'
11746 else
11747 # FIXME: insert proper C++ library support
11748 ld_shlibs_CXX=no
11749 fi
11750 ;;
11751 esac
11752 ;;
11753 hpux10*|hpux11*)
11754 if test $with_gnu_ld = no; then
11755 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11756 hardcode_libdir_separator_CXX=:
11757
11758 case $host_cpu in
11759 hppa*64*|ia64*) ;;
11760 *)
11761 export_dynamic_flag_spec_CXX='${wl}-E'
11762 ;;
11763 esac
11764 fi
11765 case $host_cpu in
11766 hppa*64*|ia64*)
11767 hardcode_direct_CXX=no
11768 hardcode_shlibpath_var_CXX=no
11769 ;;
11770 *)
11771 hardcode_direct_CXX=yes
11772 hardcode_minus_L_CXX=yes # Not in the search PATH,
11773 # but as the default
11774 # location of the library.
11775 ;;
11776 esac
11777
11778 case $cc_basename in
11779 CC*)
11780 # FIXME: insert proper C++ library support
11781 ld_shlibs_CXX=no
11782 ;;
11783 aCC*)
11784 case $host_cpu in
11785 hppa*64*)
11786 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11787 ;;
11788 ia64*)
11789 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11790 ;;
11791 *)
11792 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11793 ;;
11794 esac
11795 # Commands to make compiler produce verbose output that lists
11796 # what "hidden" libraries, object files and flags are used when
11797 # linking a shared library.
11798 #
11799 # There doesn't appear to be a way to prevent this compiler from
11800 # explicitly linking system object files so we need to strip them
11801 # from the output so that they don't get included in the library
11802 # dependencies.
11803 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'
11804 ;;
11805 *)
11806 if test "$GXX" = yes; then
11807 if test $with_gnu_ld = no; then
11808 case $host_cpu in
11809 hppa*64*)
11810 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11811 ;;
11812 ia64*)
11813 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11814 ;;
11815 *)
11816 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'
11817 ;;
11818 esac
11819 fi
11820 else
11821 # FIXME: insert proper C++ library support
11822 ld_shlibs_CXX=no
11823 fi
11824 ;;
11825 esac
11826 ;;
11827 interix[3-9]*)
11828 hardcode_direct_CXX=no
11829 hardcode_shlibpath_var_CXX=no
11830 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11831 export_dynamic_flag_spec_CXX='${wl}-E'
11832 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11833 # Instead, shared libraries are loaded at an image base (0x10000000 by
11834 # default) and relocated if they conflict, which is a slow very memory
11835 # consuming and fragmenting process. To avoid this, we pick a random,
11836 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11837 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11838 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'
11839 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'
11840 ;;
11841 irix5* | irix6*)
11842 case $cc_basename in
11843 CC*)
11844 # SGI C++
11845 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'
11846
11847 # Archives containing C++ object files must be created using
11848 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11849 # necessary to make sure instantiated templates are included
11850 # in the archive.
11851 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11852 ;;
11853 *)
11854 if test "$GXX" = yes; then
11855 if test "$with_gnu_ld" = no; then
11856 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'
11857 else
11858 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'
11859 fi
11860 fi
11861 link_all_deplibs_CXX=yes
11862 ;;
11863 esac
11864 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11865 hardcode_libdir_separator_CXX=:
11866 ;;
11867 linux* | k*bsd*-gnu)
11868 case $cc_basename in
11869 KCC*)
11870 # Kuck and Associates, Inc. (KAI) C++ Compiler
11871
11872 # KCC will only create a shared library if the output file
11873 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11874 # to its proper name (with version) after linking.
11875 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'
11876 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'
11877 # Commands to make compiler produce verbose output that lists
11878 # what "hidden" libraries, object files and flags are used when
11879 # linking a shared library.
11880 #
11881 # There doesn't appear to be a way to prevent this compiler from
11882 # explicitly linking system object files so we need to strip them
11883 # from the output so that they don't get included in the library
11884 # dependencies.
11885 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'
11886
11887 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11888 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11889
11890 # Archives containing C++ object files must be created using
11891 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11892 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11893 ;;
11894 icpc*)
11895 # Intel C++
11896 with_gnu_ld=yes
11897 # version 8.0 and above of icpc choke on multiply defined symbols
11898 # if we add $predep_objects and $postdep_objects, however 7.1 and
11899 # earlier do not add the objects themselves.
11900 case `$CC -V 2>&1` in
11901 *"Version 7."*)
11902 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11903 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'
11904 ;;
11905 *) # Version 8.0 or newer
11906 tmp_idyn=
11907 case $host_cpu in
11908 ia64*) tmp_idyn=' -i_dynamic';;
11909 esac
11910 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11911 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'
11912 ;;
11913 esac
11914 archive_cmds_need_lc_CXX=no
11915 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11916 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11917 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11918 ;;
11919 pgCC* | pgcpp*)
11920 # Portland Group C++ compiler
11921 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11922 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'
11923
11924 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11925 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11926 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'
11927 ;;
11928 cxx*)
11929 # Compaq C++
11930 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11931 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'
11932
11933 runpath_var=LD_RUN_PATH
11934 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11935 hardcode_libdir_separator_CXX=:
11936
11937 # Commands to make compiler produce verbose output that lists
11938 # what "hidden" libraries, object files and flags are used when
11939 # linking a shared library.
11940 #
11941 # There doesn't appear to be a way to prevent this compiler from
11942 # explicitly linking system object files so we need to strip them
11943 # from the output so that they don't get included in the library
11944 # dependencies.
11945 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'
11946 ;;
11947 *)
11948 case `$CC -V 2>&1 | sed 5q` in
11949 *Sun\ C*)
11950 # Sun C++ 5.9
11951 no_undefined_flag_CXX=' -zdefs'
11952 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11953 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11954 hardcode_libdir_flag_spec_CXX='-R$libdir'
11955 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11956
11957 # Not sure whether something based on
11958 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11959 # would be better.
11960 output_verbose_link_cmd='echo'
11961
11962 # Archives containing C++ object files must be created using
11963 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11964 # necessary to make sure instantiated templates are included
11965 # in the archive.
11966 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11967 ;;
11968 esac
11969 ;;
11970 esac
11971 ;;
11972 lynxos*)
11973 # FIXME: insert proper C++ library support
11974 ld_shlibs_CXX=no
11975 ;;
11976 m88k*)
11977 # FIXME: insert proper C++ library support
11978 ld_shlibs_CXX=no
11979 ;;
11980 mvs*)
11981 case $cc_basename in
11982 cxx*)
11983 # FIXME: insert proper C++ library support
11984 ld_shlibs_CXX=no
11985 ;;
11986 *)
11987 # FIXME: insert proper C++ library support
11988 ld_shlibs_CXX=no
11989 ;;
11990 esac
11991 ;;
11992 netbsd* | netbsdelf*-gnu)
11993 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11994 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11995 wlarc=
11996 hardcode_libdir_flag_spec_CXX='-R$libdir'
11997 hardcode_direct_CXX=yes
11998 hardcode_shlibpath_var_CXX=no
11999 fi
12000 # Workaround some broken pre-1.5 toolchains
12001 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12002 ;;
12003 openbsd2*)
12004 # C++ shared libraries are fairly broken
12005 ld_shlibs_CXX=no
12006 ;;
12007 openbsd*)
12008 if test -f /usr/libexec/ld.so; then
12009 hardcode_direct_CXX=yes
12010 hardcode_shlibpath_var_CXX=no
12011 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12012 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12013 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12014 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12015 export_dynamic_flag_spec_CXX='${wl}-E'
12016 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12017 fi
12018 output_verbose_link_cmd='echo'
12019 else
12020 ld_shlibs_CXX=no
12021 fi
12022 ;;
12023 osf3*)
12024 case $cc_basename in
12025 KCC*)
12026 # Kuck and Associates, Inc. (KAI) C++ Compiler
12027
12028 # KCC will only create a shared library if the output file
12029 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12030 # to its proper name (with version) after linking.
12031 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'
12032
12033 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12034 hardcode_libdir_separator_CXX=:
12035
12036 # Archives containing C++ object files must be created using
12037 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12038 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12039
12040 ;;
12041 RCC*)
12042 # Rational C++ 2.4.1
12043 # FIXME: insert proper C++ library support
12044 ld_shlibs_CXX=no
12045 ;;
12046 cxx*)
12047 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12048 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'
12049
12050 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12051 hardcode_libdir_separator_CXX=:
12052
12053 # Commands to make compiler produce verbose output that lists
12054 # what "hidden" libraries, object files and flags are used when
12055 # linking a shared library.
12056 #
12057 # There doesn't appear to be a way to prevent this compiler from
12058 # explicitly linking system object files so we need to strip them
12059 # from the output so that they don't get included in the library
12060 # dependencies.
12061 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'
12062 ;;
12063 *)
12064 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12065 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12066 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'
12067
12068 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12069 hardcode_libdir_separator_CXX=:
12070
12071 # Commands to make compiler produce verbose output that lists
12072 # what "hidden" libraries, object files and flags are used when
12073 # linking a shared library.
12074 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12075
12076 else
12077 # FIXME: insert proper C++ library support
12078 ld_shlibs_CXX=no
12079 fi
12080 ;;
12081 esac
12082 ;;
12083 osf4* | osf5*)
12084 case $cc_basename in
12085 KCC*)
12086 # Kuck and Associates, Inc. (KAI) C++ Compiler
12087
12088 # KCC will only create a shared library if the output file
12089 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12090 # to its proper name (with version) after linking.
12091 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'
12092
12093 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12094 hardcode_libdir_separator_CXX=:
12095
12096 # Archives containing C++ object files must be created using
12097 # the KAI C++ compiler.
12098 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12099 ;;
12100 RCC*)
12101 # Rational C++ 2.4.1
12102 # FIXME: insert proper C++ library support
12103 ld_shlibs_CXX=no
12104 ;;
12105 cxx*)
12106 allow_undefined_flag_CXX=' -expect_unresolved \*'
12107 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'
12108 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12109 echo "-hidden">> $lib.exp~
12110 $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~
12111 $rm $lib.exp'
12112
12113 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12114 hardcode_libdir_separator_CXX=:
12115
12116 # Commands to make compiler produce verbose output that lists
12117 # what "hidden" libraries, object files and flags are used when
12118 # linking a shared library.
12119 #
12120 # There doesn't appear to be a way to prevent this compiler from
12121 # explicitly linking system object files so we need to strip them
12122 # from the output so that they don't get included in the library
12123 # dependencies.
12124 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'
12125 ;;
12126 *)
12127 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12128 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12129 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'
12130
12131 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12132 hardcode_libdir_separator_CXX=:
12133
12134 # Commands to make compiler produce verbose output that lists
12135 # what "hidden" libraries, object files and flags are used when
12136 # linking a shared library.
12137 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12138
12139 else
12140 # FIXME: insert proper C++ library support
12141 ld_shlibs_CXX=no
12142 fi
12143 ;;
12144 esac
12145 ;;
12146 psos*)
12147 # FIXME: insert proper C++ library support
12148 ld_shlibs_CXX=no
12149 ;;
12150 sunos4*)
12151 case $cc_basename in
12152 CC*)
12153 # Sun C++ 4.x
12154 # FIXME: insert proper C++ library support
12155 ld_shlibs_CXX=no
12156 ;;
12157 lcc*)
12158 # Lucid
12159 # FIXME: insert proper C++ library support
12160 ld_shlibs_CXX=no
12161 ;;
12162 *)
12163 # FIXME: insert proper C++ library support
12164 ld_shlibs_CXX=no
12165 ;;
12166 esac
12167 ;;
12168 solaris*)
12169 case $cc_basename in
12170 CC*)
12171 # Sun C++ 4.2, 5.x and Centerline C++
12172 archive_cmds_need_lc_CXX=yes
12173 no_undefined_flag_CXX=' -zdefs'
12174 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12175 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12176 $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'
12177
12178 hardcode_libdir_flag_spec_CXX='-R$libdir'
12179 hardcode_shlibpath_var_CXX=no
12180 case $host_os in
12181 solaris2.[0-5] | solaris2.[0-5].*) ;;
12182 *)
12183 # The compiler driver will combine and reorder linker options,
12184 # but understands `-z linker_flag'.
12185 # Supported since Solaris 2.6 (maybe 2.5.1?)
12186 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12187 ;;
12188 esac
12189 link_all_deplibs_CXX=yes
12190
12191 output_verbose_link_cmd='echo'
12192
12193 # Archives containing C++ object files must be created using
12194 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12195 # necessary to make sure instantiated templates are included
12196 # in the archive.
12197 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12198 ;;
12199 gcx*)
12200 # Green Hills C++ Compiler
12201 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12202
12203 # The C++ compiler must be used to create the archive.
12204 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12205 ;;
12206 *)
12207 # GNU C++ compiler with Solaris linker
12208 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12209 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12210 if $CC --version | grep -v '^2\.7' > /dev/null; then
12211 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12212 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12213 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12214
12215 # Commands to make compiler produce verbose output that lists
12216 # what "hidden" libraries, object files and flags are used when
12217 # linking a shared library.
12218 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12219 else
12220 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12221 # platform.
12222 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12223 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12224 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12225
12226 # Commands to make compiler produce verbose output that lists
12227 # what "hidden" libraries, object files and flags are used when
12228 # linking a shared library.
12229 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12230 fi
12231
12232 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12233 case $host_os in
12234 solaris2.[0-5] | solaris2.[0-5].*) ;;
12235 *)
12236 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12237 ;;
12238 esac
12239 fi
12240 ;;
12241 esac
12242 ;;
12243 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12244 no_undefined_flag_CXX='${wl}-z,text'
12245 archive_cmds_need_lc_CXX=no
12246 hardcode_shlibpath_var_CXX=no
12247 runpath_var='LD_RUN_PATH'
12248
12249 case $cc_basename in
12250 CC*)
12251 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12252 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12253 ;;
12254 *)
12255 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12256 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12257 ;;
12258 esac
12259 ;;
12260 sysv5* | sco3.2v5* | sco5v6*)
12261 # Note: We can NOT use -z defs as we might desire, because we do not
12262 # link with -lc, and that would cause any symbols used from libc to
12263 # always be unresolved, which means just about no library would
12264 # ever link correctly. If we're not using GNU ld we use -z text
12265 # though, which does catch some bad symbols but isn't as heavy-handed
12266 # as -z defs.
12267 # For security reasons, it is highly recommended that you always
12268 # use absolute paths for naming shared libraries, and exclude the
12269 # DT_RUNPATH tag from executables and libraries. But doing so
12270 # requires that you compile everything twice, which is a pain.
12271 # So that behaviour is only enabled if SCOABSPATH is set to a
12272 # non-empty value in the environment. Most likely only useful for
12273 # creating official distributions of packages.
12274 # This is a hack until libtool officially supports absolute path
12275 # names for shared libraries.
12276 no_undefined_flag_CXX='${wl}-z,text'
12277 allow_undefined_flag_CXX='${wl}-z,nodefs'
12278 archive_cmds_need_lc_CXX=no
12279 hardcode_shlibpath_var_CXX=no
12280 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12281 hardcode_libdir_separator_CXX=':'
12282 link_all_deplibs_CXX=yes
12283 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12284 runpath_var='LD_RUN_PATH'
12285
12286 case $cc_basename in
12287 CC*)
12288 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12289 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12290 ;;
12291 *)
12292 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12293 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12294 ;;
12295 esac
12296 ;;
12297 tandem*)
12298 case $cc_basename in
12299 NCC*)
12300 # NonStop-UX NCC 3.20
12301 # FIXME: insert proper C++ library support
12302 ld_shlibs_CXX=no
12303 ;;
12304 *)
12305 # FIXME: insert proper C++ library support
12306 ld_shlibs_CXX=no
12307 ;;
12308 esac
12309 ;;
12310 vxworks*)
12311 # FIXME: insert proper C++ library support
12312 ld_shlibs_CXX=no
12313 ;;
12314 *)
12315 # FIXME: insert proper C++ library support
12316 ld_shlibs_CXX=no
12317 ;;
12318esac
12319{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12320echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12321test "$ld_shlibs_CXX" = no && can_build_shared=no
12322
12323GCC_CXX="$GXX"
12324LD_CXX="$LD"
12325
12326cat > conftest.$ac_ext <<EOF
12327class Foo
12328{
12329public:
12330 Foo (void) { a = 0; }
12331private:
12332 int a;
12333};
12334EOF
12335
12336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12337 (eval $ac_compile) 2>&5
12338 ac_status=$?
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); }; then
12341 # Parse the compiler output and extract the necessary
12342 # objects, libraries and library flags.
12343
12344 # Sentinel used to keep track of whether or not we are before
12345 # the conftest object file.
12346 pre_test_object_deps_done=no
12347
12348 # The `*' in the case matches for architectures that use `case' in
12349 # $output_verbose_cmd can trigger glob expansion during the loop
12350 # eval without this substitution.
12351 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12352
12353 for p in `eval $output_verbose_link_cmd`; do
12354 case $p in
12355
12356 -L* | -R* | -l*)
12357 # Some compilers place space between "-{L,R}" and the path.
12358 # Remove the space.
12359 if test $p = "-L" \
12360 || test $p = "-R"; then
12361 prev=$p
12362 continue
12363 else
12364 prev=
12365 fi
12366
12367 if test "$pre_test_object_deps_done" = no; then
12368 case $p in
12369 -L* | -R*)
12370 # Internal compiler library paths should come after those
12371 # provided the user. The postdeps already come after the
12372 # user supplied libs so there is no need to process them.
12373 if test -z "$compiler_lib_search_path_CXX"; then
12374 compiler_lib_search_path_CXX="${prev}${p}"
12375 else
12376 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12377 fi
12378 ;;
12379 # The "-l" case would never come before the object being
12380 # linked, so don't bother handling this case.
12381 esac
12382 else
12383 if test -z "$postdeps_CXX"; then
12384 postdeps_CXX="${prev}${p}"
12385 else
12386 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12387 fi
12388 fi
12389 ;;
12390
12391 *.$objext)
12392 # This assumes that the test object file only shows up
12393 # once in the compiler output.
12394 if test "$p" = "conftest.$objext"; then
12395 pre_test_object_deps_done=yes
12396 continue
12397 fi
12398
12399 if test "$pre_test_object_deps_done" = no; then
12400 if test -z "$predep_objects_CXX"; then
12401 predep_objects_CXX="$p"
12402 else
12403 predep_objects_CXX="$predep_objects_CXX $p"
12404 fi
12405 else
12406 if test -z "$postdep_objects_CXX"; then
12407 postdep_objects_CXX="$p"
12408 else
12409 postdep_objects_CXX="$postdep_objects_CXX $p"
12410 fi
12411 fi
12412 ;;
12413
12414 *) ;; # Ignore the rest.
12415
12416 esac
12417 done
12418
12419 # Clean up.
12420 rm -f a.out a.exe
12421else
12422 echo "libtool.m4: error: problem compiling CXX test program"
12423fi
12424
12425$rm -f confest.$objext
12426
12427compiler_lib_search_dirs_CXX=
12428if test -n "$compiler_lib_search_path_CXX"; then
12429 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12430fi
12431
12432# PORTME: override above test on systems where it is broken
12433case $host_os in
12434interix[3-9]*)
12435 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12436 # hack all around it, let's just trust "g++" to DTRT.
12437 predep_objects_CXX=
12438 postdep_objects_CXX=
12439 postdeps_CXX=
12440 ;;
12441
12442linux*)
12443 case `$CC -V 2>&1 | sed 5q` in
12444 *Sun\ C*)
12445 # Sun C++ 5.9
12446 #
12447 # The more standards-conforming stlport4 library is
12448 # incompatible with the Cstd library. Avoid specifying
12449 # it if it's in CXXFLAGS. Ignore libCrun as
12450 # -library=stlport4 depends on it.
12451 case " $CXX $CXXFLAGS " in
12452 *" -library=stlport4 "*)
12453 solaris_use_stlport4=yes
12454 ;;
12455 esac
12456 if test "$solaris_use_stlport4" != yes; then
12457 postdeps_CXX='-library=Cstd -library=Crun'
12458 fi
12459 ;;
12460 esac
12461 ;;
12462
12463solaris*)
12464 case $cc_basename in
12465 CC*)
12466 # The more standards-conforming stlport4 library is
12467 # incompatible with the Cstd library. Avoid specifying
12468 # it if it's in CXXFLAGS. Ignore libCrun as
12469 # -library=stlport4 depends on it.
12470 case " $CXX $CXXFLAGS " in
12471 *" -library=stlport4 "*)
12472 solaris_use_stlport4=yes
12473 ;;
12474 esac
12475
12476 # Adding this requires a known-good setup of shared libraries for
12477 # Sun compiler versions before 5.6, else PIC objects from an old
12478 # archive will be linked into the output, leading to subtle bugs.
12479 if test "$solaris_use_stlport4" != yes; then
12480 postdeps_CXX='-library=Cstd -library=Crun'
12481 fi
12482 ;;
12483 esac
12484 ;;
12485esac
12486
12487case " $postdeps_CXX " in
12488*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12489esac
12490
12491lt_prog_compiler_wl_CXX=
12492lt_prog_compiler_pic_CXX=
12493lt_prog_compiler_static_CXX=
12494
12495{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12496echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12497
12498 # C++ specific cases for pic, static, wl, etc.
12499 if test "$GXX" = yes; then
12500 lt_prog_compiler_wl_CXX='-Wl,'
12501 lt_prog_compiler_static_CXX='-static'
12502
12503 case $host_os in
12504 aix*)
12505 # All AIX code is PIC.
12506 if test "$host_cpu" = ia64; then
12507 # AIX 5 now supports IA64 processor
12508 lt_prog_compiler_static_CXX='-Bstatic'
12509 fi
12510 ;;
12511 amigaos*)
12512 # FIXME: we need at least 68020 code to build shared libraries, but
12513 # adding the `-m68020' flag to GCC prevents building anything better,
12514 # like `-m68040'.
12515 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12516 ;;
12517 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12518 # PIC is the default for these OSes.
12519 ;;
12520 mingw* | cygwin* | os2* | pw32*)
12521 # This hack is so that the source file can tell whether it is being
12522 # built for inclusion in a dll (and should export symbols for example).
12523 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12524 # (--disable-auto-import) libraries
12525 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12526 ;;
12527 darwin* | rhapsody*)
12528 # PIC is the default on this platform
12529 # Common symbols not allowed in MH_DYLIB files
12530 lt_prog_compiler_pic_CXX='-fno-common'
12531 ;;
12532 *djgpp*)
12533 # DJGPP does not support shared libraries at all
12534 lt_prog_compiler_pic_CXX=
12535 ;;
12536 interix[3-9]*)
12537 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12538 # Instead, we relocate shared libraries at runtime.
12539 ;;
12540 sysv4*MP*)
12541 if test -d /usr/nec; then
12542 lt_prog_compiler_pic_CXX=-Kconform_pic
12543 fi
12544 ;;
12545 hpux*)
12546 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12547 # not for PA HP-UX.
12548 case $host_cpu in
12549 hppa*64*|ia64*)
12550 ;;
12551 *)
12552 lt_prog_compiler_pic_CXX='-fPIC'
12553 ;;
12554 esac
12555 ;;
12556 *)
12557 lt_prog_compiler_pic_CXX='-fPIC'
12558 ;;
12559 esac
12560 else
12561 case $host_os in
12562 aix[4-9]*)
12563 # All AIX code is PIC.
12564 if test "$host_cpu" = ia64; then
12565 # AIX 5 now supports IA64 processor
12566 lt_prog_compiler_static_CXX='-Bstatic'
12567 else
12568 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12569 fi
12570 ;;
12571 chorus*)
12572 case $cc_basename in
12573 cxch68*)
12574 # Green Hills C++ Compiler
12575 # _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"
12576 ;;
12577 esac
12578 ;;
12579 darwin*)
12580 # PIC is the default on this platform
12581 # Common symbols not allowed in MH_DYLIB files
12582 case $cc_basename in
12583 xlc*)
12584 lt_prog_compiler_pic_CXX='-qnocommon'
12585 lt_prog_compiler_wl_CXX='-Wl,'
12586 ;;
12587 esac
12588 ;;
12589 dgux*)
12590 case $cc_basename in
12591 ec++*)
12592 lt_prog_compiler_pic_CXX='-KPIC'
12593 ;;
12594 ghcx*)
12595 # Green Hills C++ Compiler
12596 lt_prog_compiler_pic_CXX='-pic'
12597 ;;
12598 *)
12599 ;;
12600 esac
12601 ;;
12602 freebsd* | dragonfly*)
12603 # FreeBSD uses GNU C++
12604 ;;
12605 hpux9* | hpux10* | hpux11*)
12606 case $cc_basename in
12607 CC*)
12608 lt_prog_compiler_wl_CXX='-Wl,'
12609 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12610 if test "$host_cpu" != ia64; then
12611 lt_prog_compiler_pic_CXX='+Z'
12612 fi
12613 ;;
12614 aCC*)
12615 lt_prog_compiler_wl_CXX='-Wl,'
12616 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12617 case $host_cpu in
12618 hppa*64*|ia64*)
12619 # +Z the default
12620 ;;
12621 *)
12622 lt_prog_compiler_pic_CXX='+Z'
12623 ;;
12624 esac
12625 ;;
12626 *)
12627 ;;
12628 esac
12629 ;;
12630 interix*)
12631 # This is c89, which is MS Visual C++ (no shared libs)
12632 # Anyone wants to do a port?
12633 ;;
12634 irix5* | irix6* | nonstopux*)
12635 case $cc_basename in
12636 CC*)
12637 lt_prog_compiler_wl_CXX='-Wl,'
12638 lt_prog_compiler_static_CXX='-non_shared'
12639 # CC pic flag -KPIC is the default.
12640 ;;
12641 *)
12642 ;;
12643 esac
12644 ;;
12645 linux* | k*bsd*-gnu)
12646 case $cc_basename in
12647 KCC*)
12648 # KAI C++ Compiler
12649 lt_prog_compiler_wl_CXX='--backend -Wl,'
12650 lt_prog_compiler_pic_CXX='-fPIC'
12651 ;;
12652 icpc* | ecpc*)
12653 # Intel C++
12654 lt_prog_compiler_wl_CXX='-Wl,'
12655 lt_prog_compiler_pic_CXX='-KPIC'
12656 lt_prog_compiler_static_CXX='-static'
12657 ;;
12658 pgCC* | pgcpp*)
12659 # Portland Group C++ compiler.
12660 lt_prog_compiler_wl_CXX='-Wl,'
12661 lt_prog_compiler_pic_CXX='-fpic'
12662 lt_prog_compiler_static_CXX='-Bstatic'
12663 ;;
12664 cxx*)
12665 # Compaq C++
12666 # Make sure the PIC flag is empty. It appears that all Alpha
12667 # Linux and Compaq Tru64 Unix objects are PIC.
12668 lt_prog_compiler_pic_CXX=
12669 lt_prog_compiler_static_CXX='-non_shared'
12670 ;;
12671 *)
12672 case `$CC -V 2>&1 | sed 5q` in
12673 *Sun\ C*)
12674 # Sun C++ 5.9
12675 lt_prog_compiler_pic_CXX='-KPIC'
12676 lt_prog_compiler_static_CXX='-Bstatic'
12677 lt_prog_compiler_wl_CXX='-Qoption ld '
12678 ;;
12679 esac
12680 ;;
12681 esac
12682 ;;
12683 lynxos*)
12684 ;;
12685 m88k*)
12686 ;;
12687 mvs*)
12688 case $cc_basename in
12689 cxx*)
12690 lt_prog_compiler_pic_CXX='-W c,exportall'
12691 ;;
12692 *)
12693 ;;
12694 esac
12695 ;;
12696 netbsd* | netbsdelf*-gnu)
12697 ;;
12698 osf3* | osf4* | osf5*)
12699 case $cc_basename in
12700 KCC*)
12701 lt_prog_compiler_wl_CXX='--backend -Wl,'
12702 ;;
12703 RCC*)
12704 # Rational C++ 2.4.1
12705 lt_prog_compiler_pic_CXX='-pic'
12706 ;;
12707 cxx*)
12708 # Digital/Compaq C++
12709 lt_prog_compiler_wl_CXX='-Wl,'
12710 # Make sure the PIC flag is empty. It appears that all Alpha
12711 # Linux and Compaq Tru64 Unix objects are PIC.
12712 lt_prog_compiler_pic_CXX=
12713 lt_prog_compiler_static_CXX='-non_shared'
12714 ;;
12715 *)
12716 ;;
12717 esac
12718 ;;
12719 psos*)
12720 ;;
12721 solaris*)
12722 case $cc_basename in
12723 CC*)
12724 # Sun C++ 4.2, 5.x and Centerline C++
12725 lt_prog_compiler_pic_CXX='-KPIC'
12726 lt_prog_compiler_static_CXX='-Bstatic'
12727 lt_prog_compiler_wl_CXX='-Qoption ld '
12728 ;;
12729 gcx*)
12730 # Green Hills C++ Compiler
12731 lt_prog_compiler_pic_CXX='-PIC'
12732 ;;
12733 *)
12734 ;;
12735 esac
12736 ;;
12737 sunos4*)
12738 case $cc_basename in
12739 CC*)
12740 # Sun C++ 4.x
12741 lt_prog_compiler_pic_CXX='-pic'
12742 lt_prog_compiler_static_CXX='-Bstatic'
12743 ;;
12744 lcc*)
12745 # Lucid
12746 lt_prog_compiler_pic_CXX='-pic'
12747 ;;
12748 *)
12749 ;;
12750 esac
12751 ;;
12752 tandem*)
12753 case $cc_basename in
12754 NCC*)
12755 # NonStop-UX NCC 3.20
12756 lt_prog_compiler_pic_CXX='-KPIC'
12757 ;;
12758 *)
12759 ;;
12760 esac
12761 ;;
12762 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12763 case $cc_basename in
12764 CC*)
12765 lt_prog_compiler_wl_CXX='-Wl,'
12766 lt_prog_compiler_pic_CXX='-KPIC'
12767 lt_prog_compiler_static_CXX='-Bstatic'
12768 ;;
12769 esac
12770 ;;
12771 vxworks*)
12772 ;;
12773 *)
12774 lt_prog_compiler_can_build_shared_CXX=no
12775 ;;
12776 esac
12777 fi
12778
12779{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12780echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12781
12782#
12783# Check to make sure the PIC flag actually works.
12784#
12785if test -n "$lt_prog_compiler_pic_CXX"; then
12786
12787{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12788echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12789if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12790 echo $ECHO_N "(cached) $ECHO_C" >&6
12791else
12792 lt_cv_prog_compiler_pic_works_CXX=no
12793 ac_outfile=conftest.$ac_objext
12794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12795 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12796 # Insert the option either (1) after the last *FLAGS variable, or
12797 # (2) before a word containing "conftest.", or (3) at the end.
12798 # Note that $ac_compile itself does not contain backslashes and begins
12799 # with a dollar sign (not a hyphen), so the echo should work correctly.
12800 # The option is referenced via a variable to avoid confusing sed.
12801 lt_compile=`echo "$ac_compile" | $SED \
12802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12804 -e 's:$: $lt_compiler_flag:'`
12805 (eval echo "\"\$as_me:12805: $lt_compile\"" >&5)
12806 (eval "$lt_compile" 2>conftest.err)
12807 ac_status=$?
12808 cat conftest.err >&5
12809 echo "$as_me:12809: \$? = $ac_status" >&5
12810 if (exit $ac_status) && test -s "$ac_outfile"; then
12811 # The compiler can only warn and ignore the option if not recognized
12812 # So say no if there are warnings other than the usual output.
12813 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12814 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12815 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12816 lt_cv_prog_compiler_pic_works_CXX=yes
12817 fi
12818 fi
12819 $rm conftest*
12820
12821fi
12822{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12823echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12824
12825if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12826 case $lt_prog_compiler_pic_CXX in
12827 "" | " "*) ;;
12828 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12829 esac
12830else
12831 lt_prog_compiler_pic_CXX=
12832 lt_prog_compiler_can_build_shared_CXX=no
12833fi
12834
12835fi
12836case $host_os in
12837 # For platforms which do not support PIC, -DPIC is meaningless:
12838 *djgpp*)
12839 lt_prog_compiler_pic_CXX=
12840 ;;
12841 *)
12842 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12843 ;;
12844esac
12845
12846#
12847# Check to make sure the static flag actually works.
12848#
12849wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12850{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12851echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12852if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12853 echo $ECHO_N "(cached) $ECHO_C" >&6
12854else
12855 lt_cv_prog_compiler_static_works_CXX=no
12856 save_LDFLAGS="$LDFLAGS"
12857 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12858 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12859 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12860 # The linker can only warn and ignore the option if not recognized
12861 # So say no if there are warnings
12862 if test -s conftest.err; then
12863 # Append any errors to the config.log.
12864 cat conftest.err 1>&5
12865 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12866 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12867 if diff conftest.exp conftest.er2 >/dev/null; then
12868 lt_cv_prog_compiler_static_works_CXX=yes
12869 fi
12870 else
12871 lt_cv_prog_compiler_static_works_CXX=yes
12872 fi
12873 fi
12874 $rm -r conftest*
12875 LDFLAGS="$save_LDFLAGS"
12876
12877fi
12878{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12879echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12880
12881if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12882 :
12883else
12884 lt_prog_compiler_static_CXX=
12885fi
12886
12887
12888{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12889echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12890if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12891 echo $ECHO_N "(cached) $ECHO_C" >&6
12892else
12893 lt_cv_prog_compiler_c_o_CXX=no
12894 $rm -r conftest 2>/dev/null
12895 mkdir conftest
12896 cd conftest
12897 mkdir out
12898 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12899
12900 lt_compiler_flag="-o out/conftest2.$ac_objext"
12901 # Insert the option either (1) after the last *FLAGS variable, or
12902 # (2) before a word containing "conftest.", or (3) at the end.
12903 # Note that $ac_compile itself does not contain backslashes and begins
12904 # with a dollar sign (not a hyphen), so the echo should work correctly.
12905 lt_compile=`echo "$ac_compile" | $SED \
12906 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12907 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12908 -e 's:$: $lt_compiler_flag:'`
12909 (eval echo "\"\$as_me:12909: $lt_compile\"" >&5)
12910 (eval "$lt_compile" 2>out/conftest.err)
12911 ac_status=$?
12912 cat out/conftest.err >&5
12913 echo "$as_me:12913: \$? = $ac_status" >&5
12914 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12915 then
12916 # The compiler can only warn and ignore the option if not recognized
12917 # So say no if there are warnings
12918 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12919 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12920 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12921 lt_cv_prog_compiler_c_o_CXX=yes
12922 fi
12923 fi
12924 chmod u+w . 2>&5
12925 $rm conftest*
12926 # SGI C++ compiler will create directory out/ii_files/ for
12927 # template instantiation
12928 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12929 $rm out/* && rmdir out
12930 cd ..
12931 rmdir conftest
12932 $rm conftest*
12933
12934fi
12935{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12936echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12937
12938
12939hard_links="nottested"
12940if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12941 # do not overwrite the value of need_locks provided by the user
12942 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12943echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12944 hard_links=yes
12945 $rm conftest*
12946 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12947 touch conftest.a
12948 ln conftest.a conftest.b 2>&5 || hard_links=no
12949 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12950 { echo "$as_me:$LINENO: result: $hard_links" >&5
12951echo "${ECHO_T}$hard_links" >&6; }
12952 if test "$hard_links" = no; then
12953 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12954echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12955 need_locks=warn
12956 fi
12957else
12958 need_locks=no
12959fi
12960
12961{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12962echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12963
12964 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12965 case $host_os in
12966 aix[4-9]*)
12967 # If we're using GNU nm, then we don't want the "-C" option.
12968 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12969 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12970 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'
12971 else
12972 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'
12973 fi
12974 ;;
12975 pw32*)
12976 export_symbols_cmds_CXX="$ltdll_cmds"
12977 ;;
12978 cygwin* | mingw*)
12979 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'
12980 ;;
12981 linux* | k*bsd*-gnu)
12982 link_all_deplibs_CXX=no
12983 ;;
12984 *)
12985 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12986 ;;
12987 esac
12988 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12989
12990{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12991echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12992test "$ld_shlibs_CXX" = no && can_build_shared=no
12993
12994#
12995# Do we need to explicitly link libc?
12996#
12997case "x$archive_cmds_need_lc_CXX" in
12998x|xyes)
12999 # Assume -lc should be added
13000 archive_cmds_need_lc_CXX=yes
13001
13002 if test "$enable_shared" = yes && test "$GCC" = yes; then
13003 case $archive_cmds_CXX in
13004 *'~'*)
13005 # FIXME: we may have to deal with multi-command sequences.
13006 ;;
13007 '$CC '*)
13008 # Test whether the compiler implicitly links with -lc since on some
13009 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13010 # to ld, don't add -lc before -lgcc.
13011 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13012echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13013 $rm conftest*
13014 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13015
13016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13017 (eval $ac_compile) 2>&5
13018 ac_status=$?
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); } 2>conftest.err; then
13021 soname=conftest
13022 lib=conftest
13023 libobjs=conftest.$ac_objext
13024 deplibs=
13025 wl=$lt_prog_compiler_wl_CXX
13026 pic_flag=$lt_prog_compiler_pic_CXX
13027 compiler_flags=-v
13028 linker_flags=-v
13029 verstring=
13030 output_objdir=.
13031 libname=conftest
13032 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13033 allow_undefined_flag_CXX=
13034 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13035 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13036 ac_status=$?
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); }
13039 then
13040 archive_cmds_need_lc_CXX=no
13041 else
13042 archive_cmds_need_lc_CXX=yes
13043 fi
13044 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13045 else
13046 cat conftest.err 1>&5
13047 fi
13048 $rm conftest*
13049 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13050echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13051 ;;
13052 esac
13053 fi
13054 ;;
13055esac
13056
13057{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13058echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13059library_names_spec=
13060libname_spec='lib$name'
13061soname_spec=
13062shrext_cmds=".so"
13063postinstall_cmds=
13064postuninstall_cmds=
13065finish_cmds=
13066finish_eval=
13067shlibpath_var=
13068shlibpath_overrides_runpath=unknown
13069version_type=none
13070dynamic_linker="$host_os ld.so"
13071sys_lib_dlsearch_path_spec="/lib /usr/lib"
13072
13073need_lib_prefix=unknown
13074hardcode_into_libs=no
13075
13076# when you set need_version to no, make sure it does not cause -set_version
13077# flags to be left without arguments
13078need_version=unknown
13079
13080case $host_os in
13081aix3*)
13082 version_type=linux
13083 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13084 shlibpath_var=LIBPATH
13085
13086 # AIX 3 has no versioning support, so we append a major version to the name.
13087 soname_spec='${libname}${release}${shared_ext}$major'
13088 ;;
13089
13090aix[4-9]*)
13091 version_type=linux
13092 need_lib_prefix=no
13093 need_version=no
13094 hardcode_into_libs=yes
13095 if test "$host_cpu" = ia64; then
13096 # AIX 5 supports IA64
13097 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13098 shlibpath_var=LD_LIBRARY_PATH
13099 else
13100 # With GCC up to 2.95.x, collect2 would create an import file
13101 # for dependence libraries. The import file would start with
13102 # the line `#! .'. This would cause the generated library to
13103 # depend on `.', always an invalid library. This was fixed in
13104 # development snapshots of GCC prior to 3.0.
13105 case $host_os in
13106 aix4 | aix4.[01] | aix4.[01].*)
13107 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13108 echo ' yes '
13109 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13110 :
13111 else
13112 can_build_shared=no
13113 fi
13114 ;;
13115 esac
13116 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13117 # soname into executable. Probably we can add versioning support to
13118 # collect2, so additional links can be useful in future.
13119 if test "$aix_use_runtimelinking" = yes; then
13120 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13121 # instead of lib<name>.a to let people know that these are not
13122 # typical AIX shared libraries.
13123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13124 else
13125 # We preserve .a as extension for shared libraries through AIX4.2
13126 # and later when we are not doing run time linking.
13127 library_names_spec='${libname}${release}.a $libname.a'
13128 soname_spec='${libname}${release}${shared_ext}$major'
13129 fi
13130 shlibpath_var=LIBPATH
13131 fi
13132 ;;
13133
13134amigaos*)
13135 library_names_spec='$libname.ixlibrary $libname.a'
13136 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13137 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'
13138 ;;
13139
13140beos*)
13141 library_names_spec='${libname}${shared_ext}'
13142 dynamic_linker="$host_os ld.so"
13143 shlibpath_var=LIBRARY_PATH
13144 ;;
13145
13146bsdi[45]*)
13147 version_type=linux
13148 need_version=no
13149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13150 soname_spec='${libname}${release}${shared_ext}$major'
13151 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13152 shlibpath_var=LD_LIBRARY_PATH
13153 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13154 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13155 # the default ld.so.conf also contains /usr/contrib/lib and
13156 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13157 # libtool to hard-code these into programs
13158 ;;
13159
13160cygwin* | mingw* | pw32*)
13161 version_type=windows
13162 shrext_cmds=".dll"
13163 need_version=no
13164 need_lib_prefix=no
13165
13166 case $GCC,$host_os in
13167 yes,cygwin* | yes,mingw* | yes,pw32*)
13168 library_names_spec='$libname.dll.a'
13169 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13170 postinstall_cmds='base_file=`basename \${file}`~
13171 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13172 dldir=$destdir/`dirname \$dlpath`~
13173 test -d \$dldir || mkdir -p \$dldir~
13174 $install_prog $dir/$dlname \$dldir/$dlname~
13175 chmod a+x \$dldir/$dlname'
13176 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13177 dlpath=$dir/\$dldll~
13178 $rm \$dlpath'
13179 shlibpath_overrides_runpath=yes
13180
13181 case $host_os in
13182 cygwin*)
13183 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13184 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13185 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13186 ;;
13187 mingw*)
13188 # MinGW DLLs use traditional 'lib' prefix
13189 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13190 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13191 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13192 # It is most probably a Windows format PATH printed by
13193 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13194 # path with ; separators, and with drive letters. We can handle the
13195 # drive letters (cygwin fileutils understands them), so leave them,
13196 # especially as we might pass files found there to a mingw objdump,
13197 # which wouldn't understand a cygwinified path. Ahh.
13198 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13199 else
13200 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13201 fi
13202 ;;
13203 pw32*)
13204 # pw32 DLLs use 'pw' prefix rather than 'lib'
13205 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13206 ;;
13207 esac
13208 ;;
13209
13210 *)
13211 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13212 ;;
13213 esac
13214 dynamic_linker='Win32 ld.exe'
13215 # FIXME: first we should search . and the directory the executable is in
13216 shlibpath_var=PATH
13217 ;;
13218
13219darwin* | rhapsody*)
13220 dynamic_linker="$host_os dyld"
13221 version_type=darwin
13222 need_lib_prefix=no
13223 need_version=no
13224 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13225 soname_spec='${libname}${release}${major}$shared_ext'
13226 shlibpath_overrides_runpath=yes
13227 shlibpath_var=DYLD_LIBRARY_PATH
13228 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13229
13230 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13231 ;;
13232
13233dgux*)
13234 version_type=linux
13235 need_lib_prefix=no
13236 need_version=no
13237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13238 soname_spec='${libname}${release}${shared_ext}$major'
13239 shlibpath_var=LD_LIBRARY_PATH
13240 ;;
13241
13242freebsd1*)
13243 dynamic_linker=no
13244 ;;
13245
13246freebsd* | dragonfly*)
13247 # DragonFly does not have aout. When/if they implement a new
13248 # versioning mechanism, adjust this.
13249 if test -x /usr/bin/objformat; then
13250 objformat=`/usr/bin/objformat`
13251 else
13252 case $host_os in
13253 freebsd[123]*) objformat=aout ;;
13254 *) objformat=elf ;;
13255 esac
13256 fi
13257 version_type=freebsd-$objformat
13258 case $version_type in
13259 freebsd-elf*)
13260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13261 need_version=no
13262 need_lib_prefix=no
13263 ;;
13264 freebsd-*)
13265 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13266 need_version=yes
13267 ;;
13268 esac
13269 shlibpath_var=LD_LIBRARY_PATH
13270 case $host_os in
13271 freebsd2*)
13272 shlibpath_overrides_runpath=yes
13273 ;;
13274 freebsd3.[01]* | freebsdelf3.[01]*)
13275 shlibpath_overrides_runpath=yes
13276 hardcode_into_libs=yes
13277 ;;
13278 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13279 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13280 shlibpath_overrides_runpath=no
13281 hardcode_into_libs=yes
13282 ;;
13283 *) # from 4.6 on, and DragonFly
13284 shlibpath_overrides_runpath=yes
13285 hardcode_into_libs=yes
13286 ;;
13287 esac
13288 ;;
13289
13290gnu*)
13291 version_type=linux
13292 need_lib_prefix=no
13293 need_version=no
13294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13295 soname_spec='${libname}${release}${shared_ext}$major'
13296 shlibpath_var=LD_LIBRARY_PATH
13297 hardcode_into_libs=yes
13298 ;;
13299
13300hpux9* | hpux10* | hpux11*)
13301 # Give a soname corresponding to the major version so that dld.sl refuses to
13302 # link against other versions.
13303 version_type=sunos
13304 need_lib_prefix=no
13305 need_version=no
13306 case $host_cpu in
13307 ia64*)
13308 shrext_cmds='.so'
13309 hardcode_into_libs=yes
13310 dynamic_linker="$host_os dld.so"
13311 shlibpath_var=LD_LIBRARY_PATH
13312 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13314 soname_spec='${libname}${release}${shared_ext}$major'
13315 if test "X$HPUX_IA64_MODE" = X32; then
13316 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13317 else
13318 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13319 fi
13320 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13321 ;;
13322 hppa*64*)
13323 shrext_cmds='.sl'
13324 hardcode_into_libs=yes
13325 dynamic_linker="$host_os dld.sl"
13326 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13327 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13329 soname_spec='${libname}${release}${shared_ext}$major'
13330 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13331 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13332 ;;
13333 *)
13334 shrext_cmds='.sl'
13335 dynamic_linker="$host_os dld.sl"
13336 shlibpath_var=SHLIB_PATH
13337 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13339 soname_spec='${libname}${release}${shared_ext}$major'
13340 ;;
13341 esac
13342 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13343 postinstall_cmds='chmod 555 $lib'
13344 ;;
13345
13346interix[3-9]*)
13347 version_type=linux
13348 need_lib_prefix=no
13349 need_version=no
13350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13351 soname_spec='${libname}${release}${shared_ext}$major'
13352 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13353 shlibpath_var=LD_LIBRARY_PATH
13354 shlibpath_overrides_runpath=no
13355 hardcode_into_libs=yes
13356 ;;
13357
13358irix5* | irix6* | nonstopux*)
13359 case $host_os in
13360 nonstopux*) version_type=nonstopux ;;
13361 *)
13362 if test "$lt_cv_prog_gnu_ld" = yes; then
13363 version_type=linux
13364 else
13365 version_type=irix
13366 fi ;;
13367 esac
13368 need_lib_prefix=no
13369 need_version=no
13370 soname_spec='${libname}${release}${shared_ext}$major'
13371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13372 case $host_os in
13373 irix5* | nonstopux*)
13374 libsuff= shlibsuff=
13375 ;;
13376 *)
13377 case $LD in # libtool.m4 will add one of these switches to LD
13378 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13379 libsuff= shlibsuff= libmagic=32-bit;;
13380 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13381 libsuff=32 shlibsuff=N32 libmagic=N32;;
13382 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13383 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13384 *) libsuff= shlibsuff= libmagic=never-match;;
13385 esac
13386 ;;
13387 esac
13388 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13389 shlibpath_overrides_runpath=no
13390 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13391 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13392 hardcode_into_libs=yes
13393 ;;
13394
13395# No shared lib support for Linux oldld, aout, or coff.
13396linux*oldld* | linux*aout* | linux*coff*)
13397 dynamic_linker=no
13398 ;;
13399
13400# This must be Linux ELF.
13401linux* | k*bsd*-gnu)
13402 version_type=linux
13403 need_lib_prefix=no
13404 need_version=no
13405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13406 soname_spec='${libname}${release}${shared_ext}$major'
13407 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13408 shlibpath_var=LD_LIBRARY_PATH
13409 shlibpath_overrides_runpath=no
13410 # This implies no fast_install, which is unacceptable.
13411 # Some rework will be needed to allow for fast_install
13412 # before this can be enabled.
13413 hardcode_into_libs=yes
13414
13415 # Append ld.so.conf contents to the search path
13416 if test -f /etc/ld.so.conf; then
13417 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13418 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13419 fi
13420
13421 # We used to test for /lib/ld.so.1 and disable shared libraries on
13422 # powerpc, because MkLinux only supported shared libraries with the
13423 # GNU dynamic linker. Since this was broken with cross compilers,
13424 # most powerpc-linux boxes support dynamic linking these days and
13425 # people can always --disable-shared, the test was removed, and we
13426 # assume the GNU/Linux dynamic linker is in use.
13427 dynamic_linker='GNU/Linux ld.so'
13428 ;;
13429
13430netbsdelf*-gnu)
13431 version_type=linux
13432 need_lib_prefix=no
13433 need_version=no
13434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13435 soname_spec='${libname}${release}${shared_ext}$major'
13436 shlibpath_var=LD_LIBRARY_PATH
13437 shlibpath_overrides_runpath=no
13438 hardcode_into_libs=yes
13439 dynamic_linker='NetBSD ld.elf_so'
13440 ;;
13441
13442netbsd*)
13443 version_type=sunos
13444 need_lib_prefix=no
13445 need_version=no
13446 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13448 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13449 dynamic_linker='NetBSD (a.out) ld.so'
13450 else
13451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13452 soname_spec='${libname}${release}${shared_ext}$major'
13453 dynamic_linker='NetBSD ld.elf_so'
13454 fi
13455 shlibpath_var=LD_LIBRARY_PATH
13456 shlibpath_overrides_runpath=yes
13457 hardcode_into_libs=yes
13458 ;;
13459
13460newsos6)
13461 version_type=linux
13462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13463 shlibpath_var=LD_LIBRARY_PATH
13464 shlibpath_overrides_runpath=yes
13465 ;;
13466
13467nto-qnx*)
13468 version_type=linux
13469 need_lib_prefix=no
13470 need_version=no
13471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13472 soname_spec='${libname}${release}${shared_ext}$major'
13473 shlibpath_var=LD_LIBRARY_PATH
13474 shlibpath_overrides_runpath=yes
13475 ;;
13476
13477openbsd*)
13478 version_type=sunos
13479 sys_lib_dlsearch_path_spec="/usr/lib"
13480 need_lib_prefix=no
13481 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13482 case $host_os in
13483 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13484 *) need_version=no ;;
13485 esac
13486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13487 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13488 shlibpath_var=LD_LIBRARY_PATH
13489 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13490 case $host_os in
13491 openbsd2.[89] | openbsd2.[89].*)
13492 shlibpath_overrides_runpath=no
13493 ;;
13494 *)
13495 shlibpath_overrides_runpath=yes
13496 ;;
13497 esac
13498 else
13499 shlibpath_overrides_runpath=yes
13500 fi
13501 ;;
13502
13503os2*)
13504 libname_spec='$name'
13505 shrext_cmds=".dll"
13506 need_lib_prefix=no
13507 library_names_spec='$libname${shared_ext} $libname.a'
13508 dynamic_linker='OS/2 ld.exe'
13509 shlibpath_var=LIBPATH
13510 ;;
13511
13512osf3* | osf4* | osf5*)
13513 version_type=osf
13514 need_lib_prefix=no
13515 need_version=no
13516 soname_spec='${libname}${release}${shared_ext}$major'
13517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13518 shlibpath_var=LD_LIBRARY_PATH
13519 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13520 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13521 ;;
13522
13523rdos*)
13524 dynamic_linker=no
13525 ;;
13526
13527solaris*)
13528 version_type=linux
13529 need_lib_prefix=no
13530 need_version=no
13531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13532 soname_spec='${libname}${release}${shared_ext}$major'
13533 shlibpath_var=LD_LIBRARY_PATH
13534 shlibpath_overrides_runpath=yes
13535 hardcode_into_libs=yes
13536 # ldd complains unless libraries are executable
13537 postinstall_cmds='chmod +x $lib'
13538 ;;
13539
13540sunos4*)
13541 version_type=sunos
13542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13543 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13544 shlibpath_var=LD_LIBRARY_PATH
13545 shlibpath_overrides_runpath=yes
13546 if test "$with_gnu_ld" = yes; then
13547 need_lib_prefix=no
13548 fi
13549 need_version=yes
13550 ;;
13551
13552sysv4 | sysv4.3*)
13553 version_type=linux
13554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13555 soname_spec='${libname}${release}${shared_ext}$major'
13556 shlibpath_var=LD_LIBRARY_PATH
13557 case $host_vendor in
13558 sni)
13559 shlibpath_overrides_runpath=no
13560 need_lib_prefix=no
13561 export_dynamic_flag_spec='${wl}-Blargedynsym'
13562 runpath_var=LD_RUN_PATH
13563 ;;
13564 siemens)
13565 need_lib_prefix=no
13566 ;;
13567 motorola)
13568 need_lib_prefix=no
13569 need_version=no
13570 shlibpath_overrides_runpath=no
13571 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13572 ;;
13573 esac
13574 ;;
13575
13576sysv4*MP*)
13577 if test -d /usr/nec ;then
13578 version_type=linux
13579 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13580 soname_spec='$libname${shared_ext}.$major'
13581 shlibpath_var=LD_LIBRARY_PATH
13582 fi
13583 ;;
13584
13585sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13586 version_type=freebsd-elf
13587 need_lib_prefix=no
13588 need_version=no
13589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13590 soname_spec='${libname}${release}${shared_ext}$major'
13591 shlibpath_var=LD_LIBRARY_PATH
13592 hardcode_into_libs=yes
13593 if test "$with_gnu_ld" = yes; then
13594 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13595 shlibpath_overrides_runpath=no
13596 else
13597 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13598 shlibpath_overrides_runpath=yes
13599 case $host_os in
13600 sco3.2v5*)
13601 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13602 ;;
13603 esac
13604 fi
13605 sys_lib_dlsearch_path_spec='/usr/lib'
13606 ;;
13607
13608uts4*)
13609 version_type=linux
13610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13611 soname_spec='${libname}${release}${shared_ext}$major'
13612 shlibpath_var=LD_LIBRARY_PATH
13613 ;;
13614
13615*)
13616 dynamic_linker=no
13617 ;;
13618esac
13619{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13620echo "${ECHO_T}$dynamic_linker" >&6; }
13621test "$dynamic_linker" = no && can_build_shared=no
13622
13623if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13624 echo $ECHO_N "(cached) $ECHO_C" >&6
13625else
13626 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13627fi
13628
13629sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13630if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13631 echo $ECHO_N "(cached) $ECHO_C" >&6
13632else
13633 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13634fi
13635
13636sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13637
13638variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13639if test "$GCC" = yes; then
13640 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13641fi
13642
13643{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13644echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13645hardcode_action_CXX=
13646if test -n "$hardcode_libdir_flag_spec_CXX" || \
13647 test -n "$runpath_var_CXX" || \
13648 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13649
13650 # We can hardcode non-existant directories.
13651 if test "$hardcode_direct_CXX" != no &&
13652 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13653 # have to relink, otherwise we might link with an installed library
13654 # when we should be linking with a yet-to-be-installed one
13655 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13656 test "$hardcode_minus_L_CXX" != no; then
13657 # Linking always hardcodes the temporary library directory.
13658 hardcode_action_CXX=relink
13659 else
13660 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13661 hardcode_action_CXX=immediate
13662 fi
13663else
13664 # We cannot hardcode anything, or else we can only hardcode existing
13665 # directories.
13666 hardcode_action_CXX=unsupported
13667fi
13668{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13669echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13670
13671if test "$hardcode_action_CXX" = relink; then
13672 # Fast installation is not supported
13673 enable_fast_install=no
13674elif test "$shlibpath_overrides_runpath" = yes ||
13675 test "$enable_shared" = no; then
13676 # Fast installation is not necessary
13677 enable_fast_install=needless
13678fi
13679
13680
13681# The else clause should only fire when bootstrapping the
13682# libtool distribution, otherwise you forgot to ship ltmain.sh
13683# with your package, and you will get complaints that there are
13684# no rules to generate ltmain.sh.
13685if test -f "$ltmain"; then
13686 # See if we are running on zsh, and set the options which allow our commands through
13687 # without removal of \ escapes.
13688 if test -n "${ZSH_VERSION+set}" ; then
13689 setopt NO_GLOB_SUBST
13690 fi
13691 # Now quote all the things that may contain metacharacters while being
13692 # careful not to overquote the AC_SUBSTed values. We take copies of the
13693 # variables and quote the copies for generation of the libtool script.
13694 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13695 SED SHELL STRIP \
13696 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13697 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13698 deplibs_check_method reload_flag reload_cmds need_locks \
13699 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13700 lt_cv_sys_global_symbol_to_c_name_address \
13701 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13702 old_postinstall_cmds old_postuninstall_cmds \
13703 compiler_CXX \
13704 CC_CXX \
13705 LD_CXX \
13706 lt_prog_compiler_wl_CXX \
13707 lt_prog_compiler_pic_CXX \
13708 lt_prog_compiler_static_CXX \
13709 lt_prog_compiler_no_builtin_flag_CXX \
13710 export_dynamic_flag_spec_CXX \
13711 thread_safe_flag_spec_CXX \
13712 whole_archive_flag_spec_CXX \
13713 enable_shared_with_static_runtimes_CXX \
13714 old_archive_cmds_CXX \
13715 old_archive_from_new_cmds_CXX \
13716 predep_objects_CXX \
13717 postdep_objects_CXX \
13718 predeps_CXX \
13719 postdeps_CXX \
13720 compiler_lib_search_path_CXX \
13721 compiler_lib_search_dirs_CXX \
13722 archive_cmds_CXX \
13723 archive_expsym_cmds_CXX \
13724 postinstall_cmds_CXX \
13725 postuninstall_cmds_CXX \
13726 old_archive_from_expsyms_cmds_CXX \
13727 allow_undefined_flag_CXX \
13728 no_undefined_flag_CXX \
13729 export_symbols_cmds_CXX \
13730 hardcode_libdir_flag_spec_CXX \
13731 hardcode_libdir_flag_spec_ld_CXX \
13732 hardcode_libdir_separator_CXX \
13733 hardcode_automatic_CXX \
13734 module_cmds_CXX \
13735 module_expsym_cmds_CXX \
13736 lt_cv_prog_compiler_c_o_CXX \
13737 fix_srcfile_path_CXX \
13738 exclude_expsyms_CXX \
13739 include_expsyms_CXX; do
13740
13741 case $var in
13742 old_archive_cmds_CXX | \
13743 old_archive_from_new_cmds_CXX | \
13744 archive_cmds_CXX | \
13745 archive_expsym_cmds_CXX | \
13746 module_cmds_CXX | \
13747 module_expsym_cmds_CXX | \
13748 old_archive_from_expsyms_cmds_CXX | \
13749 export_symbols_cmds_CXX | \
13750 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13751 postinstall_cmds | postuninstall_cmds | \
13752 old_postinstall_cmds | old_postuninstall_cmds | \
13753 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13754 # Double-quote double-evaled strings.
13755 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13756 ;;
13757 *)
13758 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13759 ;;
13760 esac
13761 done
13762
13763 case $lt_echo in
13764 *'\$0 --fallback-echo"')
13765 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13766 ;;
13767 esac
13768
13769cfgfile="$ofile"
13770
13771 cat <<__EOF__ >> "$cfgfile"
13772# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13773
13774# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13775
13776# Shell to use when invoking shell scripts.
13777SHELL=$lt_SHELL
13778
13779# Whether or not to build shared libraries.
13780build_libtool_libs=$enable_shared
13781
13782# Whether or not to build static libraries.
13783build_old_libs=$enable_static
13784
13785# Whether or not to add -lc for building shared libraries.
13786build_libtool_need_lc=$archive_cmds_need_lc_CXX
13787
13788# Whether or not to disallow shared libs when runtime libs are static
13789allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13790
13791# Whether or not to optimize for fast installation.
13792fast_install=$enable_fast_install
13793
13794# The host system.
13795host_alias=$host_alias
13796host=$host
13797host_os=$host_os
13798
13799# The build system.
13800build_alias=$build_alias
13801build=$build
13802build_os=$build_os
13803
13804# An echo program that does not interpret backslashes.
13805echo=$lt_echo
13806
13807# The archiver.
13808AR=$lt_AR
13809AR_FLAGS=$lt_AR_FLAGS
13810
13811# A C compiler.
13812LTCC=$lt_LTCC
13813
13814# LTCC compiler flags.
13815LTCFLAGS=$lt_LTCFLAGS
13816
13817# A language-specific compiler.
13818CC=$lt_compiler_CXX
13819
13820# Is the compiler the GNU C compiler?
13821with_gcc=$GCC_CXX
13822
13823# An ERE matcher.
13824EGREP=$lt_EGREP
13825
13826# The linker used to build libraries.
13827LD=$lt_LD_CXX
13828
13829# Whether we need hard or soft links.
13830LN_S=$lt_LN_S
13831
13832# A BSD-compatible nm program.
13833NM=$lt_NM
13834
13835# A symbol stripping program
13836STRIP=$lt_STRIP
13837
13838# Used to examine libraries when file_magic_cmd begins "file"
13839MAGIC_CMD=$MAGIC_CMD
13840
13841# Used on cygwin: DLL creation program.
13842DLLTOOL="$DLLTOOL"
13843
13844# Used on cygwin: object dumper.
13845OBJDUMP="$OBJDUMP"
13846
13847# Used on cygwin: assembler.
13848AS="$AS"
13849
13850# The name of the directory that contains temporary libtool files.
13851objdir=$objdir
13852
13853# How to create reloadable object files.
13854reload_flag=$lt_reload_flag
13855reload_cmds=$lt_reload_cmds
13856
13857# How to pass a linker flag through the compiler.
13858wl=$lt_lt_prog_compiler_wl_CXX
13859
13860# Object file suffix (normally "o").
13861objext="$ac_objext"
13862
13863# Old archive suffix (normally "a").
13864libext="$libext"
13865
13866# Shared library suffix (normally ".so").
13867shrext_cmds='$shrext_cmds'
13868
13869# Executable file suffix (normally "").
13870exeext="$exeext"
13871
13872# Additional compiler flags for building library objects.
13873pic_flag=$lt_lt_prog_compiler_pic_CXX
13874pic_mode=$pic_mode
13875
13876# What is the maximum length of a command?
13877max_cmd_len=$lt_cv_sys_max_cmd_len
13878
13879# Does compiler simultaneously support -c and -o options?
13880compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13881
13882# Must we lock files when doing compilation?
13883need_locks=$lt_need_locks
13884
13885# Do we need the lib prefix for modules?
13886need_lib_prefix=$need_lib_prefix
13887
13888# Do we need a version for libraries?
13889need_version=$need_version
13890
13891# Whether dlopen is supported.
13892dlopen_support=$enable_dlopen
13893
13894# Whether dlopen of programs is supported.
13895dlopen_self=$enable_dlopen_self
13896
13897# Whether dlopen of statically linked programs is supported.
13898dlopen_self_static=$enable_dlopen_self_static
13899
13900# Compiler flag to prevent dynamic linking.
13901link_static_flag=$lt_lt_prog_compiler_static_CXX
13902
13903# Compiler flag to turn off builtin functions.
13904no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13905
13906# Compiler flag to allow reflexive dlopens.
13907export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13908
13909# Compiler flag to generate shared objects directly from archives.
13910whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13911
13912# Compiler flag to generate thread-safe objects.
13913thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13914
13915# Library versioning type.
13916version_type=$version_type
13917
13918# Format of library name prefix.
13919libname_spec=$lt_libname_spec
13920
13921# List of archive names. First name is the real one, the rest are links.
13922# The last name is the one that the linker finds with -lNAME.
13923library_names_spec=$lt_library_names_spec
13924
13925# The coded name of the library, if different from the real name.
13926soname_spec=$lt_soname_spec
13927
13928# Commands used to build and install an old-style archive.
13929RANLIB=$lt_RANLIB
13930old_archive_cmds=$lt_old_archive_cmds_CXX
13931old_postinstall_cmds=$lt_old_postinstall_cmds
13932old_postuninstall_cmds=$lt_old_postuninstall_cmds
13933
13934# Create an old-style archive from a shared archive.
13935old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13936
13937# Create a temporary old-style archive to link instead of a shared archive.
13938old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13939
13940# Commands used to build and install a shared archive.
13941archive_cmds=$lt_archive_cmds_CXX
13942archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13943postinstall_cmds=$lt_postinstall_cmds
13944postuninstall_cmds=$lt_postuninstall_cmds
13945
13946# Commands used to build a loadable module (assumed same as above if empty)
13947module_cmds=$lt_module_cmds_CXX
13948module_expsym_cmds=$lt_module_expsym_cmds_CXX
13949
13950# Commands to strip libraries.
13951old_striplib=$lt_old_striplib
13952striplib=$lt_striplib
13953
13954# Dependencies to place before the objects being linked to create a
13955# shared library.
13956predep_objects=$lt_predep_objects_CXX
13957
13958# Dependencies to place after the objects being linked to create a
13959# shared library.
13960postdep_objects=$lt_postdep_objects_CXX
13961
13962# Dependencies to place before the objects being linked to create a
13963# shared library.
13964predeps=$lt_predeps_CXX
13965
13966# Dependencies to place after the objects being linked to create a
13967# shared library.
13968postdeps=$lt_postdeps_CXX
13969
13970# The directories searched by this compiler when creating a shared
13971# library
13972compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13973
13974# The library search path used internally by the compiler when linking
13975# a shared library.
13976compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13977
13978# Method to check whether dependent libraries are shared objects.
13979deplibs_check_method=$lt_deplibs_check_method
13980
13981# Command to use when deplibs_check_method == file_magic.
13982file_magic_cmd=$lt_file_magic_cmd
13983
13984# Flag that allows shared libraries with undefined symbols to be built.
13985allow_undefined_flag=$lt_allow_undefined_flag_CXX
13986
13987# Flag that forces no undefined symbols.
13988no_undefined_flag=$lt_no_undefined_flag_CXX
13989
13990# Commands used to finish a libtool library installation in a directory.
13991finish_cmds=$lt_finish_cmds
13992
13993# Same as above, but a single script fragment to be evaled but not shown.
13994finish_eval=$lt_finish_eval
13995
13996# Take the output of nm and produce a listing of raw symbols and C names.
13997global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13998
13999# Transform the output of nm in a proper C declaration
14000global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14001
14002# Transform the output of nm in a C name address pair
14003global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14004
14005# This is the shared library runtime path variable.
14006runpath_var=$runpath_var
14007
14008# This is the shared library path variable.
14009shlibpath_var=$shlibpath_var
14010
14011# Is shlibpath searched before the hard-coded library search path?
14012shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14013
14014# How to hardcode a shared library path into an executable.
14015hardcode_action=$hardcode_action_CXX
14016
14017# Whether we should hardcode library paths into libraries.
14018hardcode_into_libs=$hardcode_into_libs
14019
14020# Flag to hardcode \$libdir into a binary during linking.
14021# This must work even if \$libdir does not exist.
14022hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14023
14024# If ld is used when linking, flag to hardcode \$libdir into
14025# a binary during linking. This must work even if \$libdir does
14026# not exist.
14027hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14028
14029# Whether we need a single -rpath flag with a separated argument.
14030hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14031
14032# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14033# resulting binary.
14034hardcode_direct=$hardcode_direct_CXX
14035
14036# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14037# resulting binary.
14038hardcode_minus_L=$hardcode_minus_L_CXX
14039
14040# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14041# the resulting binary.
14042hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14043
14044# Set to yes if building a shared library automatically hardcodes DIR into the library
14045# and all subsequent libraries and executables linked against it.
14046hardcode_automatic=$hardcode_automatic_CXX
14047
14048# Variables whose values should be saved in libtool wrapper scripts and
14049# restored at relink time.
14050variables_saved_for_relink="$variables_saved_for_relink"
14051
14052# Whether libtool must link a program against all its dependency libraries.
14053link_all_deplibs=$link_all_deplibs_CXX
14054
14055# Compile-time system search path for libraries
14056sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14057
14058# Run-time system search path for libraries
14059sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14060
14061# Fix the shell variable \$srcfile for the compiler.
14062fix_srcfile_path=$lt_fix_srcfile_path
14063
14064# Set to yes if exported symbols are required.
14065always_export_symbols=$always_export_symbols_CXX
14066
14067# The commands to list exported symbols.
14068export_symbols_cmds=$lt_export_symbols_cmds_CXX
14069
14070# The commands to extract the exported symbol list from a shared archive.
14071extract_expsyms_cmds=$lt_extract_expsyms_cmds
14072
14073# Symbols that should not be listed in the preloaded symbols.
14074exclude_expsyms=$lt_exclude_expsyms_CXX
14075
14076# Symbols that must always be exported.
14077include_expsyms=$lt_include_expsyms_CXX
14078
14079# ### END LIBTOOL TAG CONFIG: $tagname
14080
14081__EOF__
14082
14083
14084else
14085 # If there is no Makefile yet, we rely on a make rule to execute
14086 # `config.status --recheck' to rerun these tests and create the
14087 # libtool script then.
14088 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14089 if test -f "$ltmain_in"; then
14090 test -f Makefile && make "$ltmain"
14091 fi
14092fi
14093
14094
14095ac_ext=c
14096ac_cpp='$CPP $CPPFLAGS'
14097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14099ac_compiler_gnu=$ac_cv_c_compiler_gnu
14100
14101CC=$lt_save_CC
14102LDCXX=$LD
14103LD=$lt_save_LD
14104GCC=$lt_save_GCC
14105with_gnu_ldcxx=$with_gnu_ld
14106with_gnu_ld=$lt_save_with_gnu_ld
14107lt_cv_path_LDCXX=$lt_cv_path_LD
14108lt_cv_path_LD=$lt_save_path_LD
14109lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14110lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14111
14112 else
14113 tagname=""
14114 fi
14115 ;;
14116
14117 F77)
14118 if test -n "$F77" && test "X$F77" != "Xno"; then
14119
14120ac_ext=f
14121ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14122ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14123ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14124
14125
14126archive_cmds_need_lc_F77=no
14127allow_undefined_flag_F77=
14128always_export_symbols_F77=no
14129archive_expsym_cmds_F77=
14130export_dynamic_flag_spec_F77=
14131hardcode_direct_F77=no
14132hardcode_libdir_flag_spec_F77=
14133hardcode_libdir_flag_spec_ld_F77=
14134hardcode_libdir_separator_F77=
14135hardcode_minus_L_F77=no
14136hardcode_automatic_F77=no
14137module_cmds_F77=
14138module_expsym_cmds_F77=
14139link_all_deplibs_F77=unknown
14140old_archive_cmds_F77=$old_archive_cmds
14141no_undefined_flag_F77=
14142whole_archive_flag_spec_F77=
14143enable_shared_with_static_runtimes_F77=no
14144
14145# Source file extension for f77 test sources.
14146ac_ext=f
14147
14148# Object file extension for compiled f77 test sources.
14149objext=o
14150objext_F77=$objext
14151
14152# Code to be used in simple compile tests
14153lt_simple_compile_test_code="\
14154 subroutine t
14155 return
14156 end
14157"
14158
14159# Code to be used in simple link tests
14160lt_simple_link_test_code="\
14161 program t
14162 end
14163"
14164
14165# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14166
14167# If no C compiler was specified, use CC.
14168LTCC=${LTCC-"$CC"}
14169
14170# If no C compiler flags were specified, use CFLAGS.
14171LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14172
14173# Allow CC to be a program name with arguments.
14174compiler=$CC
14175
14176
14177# save warnings/boilerplate of simple test code
14178ac_outfile=conftest.$ac_objext
14179echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14180eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14181_lt_compiler_boilerplate=`cat conftest.err`
14182$rm conftest*
14183
14184ac_outfile=conftest.$ac_objext
14185echo "$lt_simple_link_test_code" >conftest.$ac_ext
14186eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14187_lt_linker_boilerplate=`cat conftest.err`
14188$rm -r conftest*
14189
14190
14191# Allow CC to be a program name with arguments.
14192lt_save_CC="$CC"
14193CC=${F77-"f77"}
14194compiler=$CC
14195compiler_F77=$CC
14196for cc_temp in $compiler""; do
14197 case $cc_temp in
14198 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14199 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14200 \-*) ;;
14201 *) break;;
14202 esac
14203done
14204cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14205
14206
14207{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14208echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14209{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14210echo "${ECHO_T}$can_build_shared" >&6; }
14211
14212{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14213echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14214test "$can_build_shared" = "no" && enable_shared=no
14215
14216# On AIX, shared libraries and static libraries use the same namespace, and
14217# are all built from PIC.
14218case $host_os in
14219aix3*)
14220 test "$enable_shared" = yes && enable_static=no
14221 if test -n "$RANLIB"; then
14222 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14223 postinstall_cmds='$RANLIB $lib'
14224 fi
14225 ;;
14226aix[4-9]*)
14227 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14228 test "$enable_shared" = yes && enable_static=no
14229 fi
14230 ;;
14231esac
14232{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14233echo "${ECHO_T}$enable_shared" >&6; }
14234
14235{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14236echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14237# Make sure either enable_shared or enable_static is yes.
14238test "$enable_shared" = yes || enable_static=yes
14239{ echo "$as_me:$LINENO: result: $enable_static" >&5
14240echo "${ECHO_T}$enable_static" >&6; }
14241
14242GCC_F77="$G77"
14243LD_F77="$LD"
14244
14245lt_prog_compiler_wl_F77=
14246lt_prog_compiler_pic_F77=
14247lt_prog_compiler_static_F77=
14248
14249{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14250echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14251
14252 if test "$GCC" = yes; then
14253 lt_prog_compiler_wl_F77='-Wl,'
14254 lt_prog_compiler_static_F77='-static'
14255
14256 case $host_os in
14257 aix*)
14258 # All AIX code is PIC.
14259 if test "$host_cpu" = ia64; then
14260 # AIX 5 now supports IA64 processor
14261 lt_prog_compiler_static_F77='-Bstatic'
14262 fi
14263 ;;
14264
14265 amigaos*)
14266 # FIXME: we need at least 68020 code to build shared libraries, but
14267 # adding the `-m68020' flag to GCC prevents building anything better,
14268 # like `-m68040'.
14269 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14270 ;;
14271
14272 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14273 # PIC is the default for these OSes.
14274 ;;
14275
14276 mingw* | cygwin* | pw32* | os2*)
14277 # This hack is so that the source file can tell whether it is being
14278 # built for inclusion in a dll (and should export symbols for example).
14279 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14280 # (--disable-auto-import) libraries
14281 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14282 ;;
14283
14284 darwin* | rhapsody*)
14285 # PIC is the default on this platform
14286 # Common symbols not allowed in MH_DYLIB files
14287 lt_prog_compiler_pic_F77='-fno-common'
14288 ;;
14289
14290 interix[3-9]*)
14291 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14292 # Instead, we relocate shared libraries at runtime.
14293 ;;
14294
14295 msdosdjgpp*)
14296 # Just because we use GCC doesn't mean we suddenly get shared libraries
14297 # on systems that don't support them.
14298 lt_prog_compiler_can_build_shared_F77=no
14299 enable_shared=no
14300 ;;
14301
14302 sysv4*MP*)
14303 if test -d /usr/nec; then
14304 lt_prog_compiler_pic_F77=-Kconform_pic
14305 fi
14306 ;;
14307
14308 hpux*)
14309 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14310 # not for PA HP-UX.
14311 case $host_cpu in
14312 hppa*64*|ia64*)
14313 # +Z the default
14314 ;;
14315 *)
14316 lt_prog_compiler_pic_F77='-fPIC'
14317 ;;
14318 esac
14319 ;;
14320
14321 *)
14322 lt_prog_compiler_pic_F77='-fPIC'
14323 ;;
14324 esac
14325 else
14326 # PORTME Check for flag to pass linker flags through the system compiler.
14327 case $host_os in
14328 aix*)
14329 lt_prog_compiler_wl_F77='-Wl,'
14330 if test "$host_cpu" = ia64; then
14331 # AIX 5 now supports IA64 processor
14332 lt_prog_compiler_static_F77='-Bstatic'
14333 else
14334 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14335 fi
14336 ;;
14337 darwin*)
14338 # PIC is the default on this platform
14339 # Common symbols not allowed in MH_DYLIB files
14340 case $cc_basename in
14341 xlc*)
14342 lt_prog_compiler_pic_F77='-qnocommon'
14343 lt_prog_compiler_wl_F77='-Wl,'
14344 ;;
14345 esac
14346 ;;
14347
14348 mingw* | cygwin* | pw32* | os2*)
14349 # This hack is so that the source file can tell whether it is being
14350 # built for inclusion in a dll (and should export symbols for example).
14351 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14352 ;;
14353
14354 hpux9* | hpux10* | hpux11*)
14355 lt_prog_compiler_wl_F77='-Wl,'
14356 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14357 # not for PA HP-UX.
14358 case $host_cpu in
14359 hppa*64*|ia64*)
14360 # +Z the default
14361 ;;
14362 *)
14363 lt_prog_compiler_pic_F77='+Z'
14364 ;;
14365 esac
14366 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14367 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14368 ;;
14369
14370 irix5* | irix6* | nonstopux*)
14371 lt_prog_compiler_wl_F77='-Wl,'
14372 # PIC (with -KPIC) is the default.
14373 lt_prog_compiler_static_F77='-non_shared'
14374 ;;
14375
14376 newsos6)
14377 lt_prog_compiler_pic_F77='-KPIC'
14378 lt_prog_compiler_static_F77='-Bstatic'
14379 ;;
14380
14381 linux* | k*bsd*-gnu)
14382 case $cc_basename in
14383 icc* | ecc*)
14384 lt_prog_compiler_wl_F77='-Wl,'
14385 lt_prog_compiler_pic_F77='-KPIC'
14386 lt_prog_compiler_static_F77='-static'
14387 ;;
14388 pgcc* | pgf77* | pgf90* | pgf95*)
14389 # Portland Group compilers (*not* the Pentium gcc compiler,
14390 # which looks to be a dead project)
14391 lt_prog_compiler_wl_F77='-Wl,'
14392 lt_prog_compiler_pic_F77='-fpic'
14393 lt_prog_compiler_static_F77='-Bstatic'
14394 ;;
14395 ccc*)
14396 lt_prog_compiler_wl_F77='-Wl,'
14397 # All Alpha code is PIC.
14398 lt_prog_compiler_static_F77='-non_shared'
14399 ;;
14400 *)
14401 case `$CC -V 2>&1 | sed 5q` in
14402 *Sun\ C*)
14403 # Sun C 5.9
14404 lt_prog_compiler_pic_F77='-KPIC'
14405 lt_prog_compiler_static_F77='-Bstatic'
14406 lt_prog_compiler_wl_F77='-Wl,'
14407 ;;
14408 *Sun\ F*)
14409 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14410 lt_prog_compiler_pic_F77='-KPIC'
14411 lt_prog_compiler_static_F77='-Bstatic'
14412 lt_prog_compiler_wl_F77=''
14413 ;;
14414 esac
14415 ;;
14416 esac
14417 ;;
14418
14419 osf3* | osf4* | osf5*)
14420 lt_prog_compiler_wl_F77='-Wl,'
14421 # All OSF/1 code is PIC.
14422 lt_prog_compiler_static_F77='-non_shared'
14423 ;;
14424
14425 rdos*)
14426 lt_prog_compiler_static_F77='-non_shared'
14427 ;;
14428
14429 solaris*)
14430 lt_prog_compiler_pic_F77='-KPIC'
14431 lt_prog_compiler_static_F77='-Bstatic'
14432 case $cc_basename in
14433 f77* | f90* | f95*)
14434 lt_prog_compiler_wl_F77='-Qoption ld ';;
14435 *)
14436 lt_prog_compiler_wl_F77='-Wl,';;
14437 esac
14438 ;;
14439
14440 sunos4*)
14441 lt_prog_compiler_wl_F77='-Qoption ld '
14442 lt_prog_compiler_pic_F77='-PIC'
14443 lt_prog_compiler_static_F77='-Bstatic'
14444 ;;
14445
14446 sysv4 | sysv4.2uw2* | sysv4.3*)
14447 lt_prog_compiler_wl_F77='-Wl,'
14448 lt_prog_compiler_pic_F77='-KPIC'
14449 lt_prog_compiler_static_F77='-Bstatic'
14450 ;;
14451
14452 sysv4*MP*)
14453 if test -d /usr/nec ;then
14454 lt_prog_compiler_pic_F77='-Kconform_pic'
14455 lt_prog_compiler_static_F77='-Bstatic'
14456 fi
14457 ;;
14458
14459 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14460 lt_prog_compiler_wl_F77='-Wl,'
14461 lt_prog_compiler_pic_F77='-KPIC'
14462 lt_prog_compiler_static_F77='-Bstatic'
14463 ;;
14464
14465 unicos*)
14466 lt_prog_compiler_wl_F77='-Wl,'
14467 lt_prog_compiler_can_build_shared_F77=no
14468 ;;
14469
14470 uts4*)
14471 lt_prog_compiler_pic_F77='-pic'
14472 lt_prog_compiler_static_F77='-Bstatic'
14473 ;;
14474
14475 *)
14476 lt_prog_compiler_can_build_shared_F77=no
14477 ;;
14478 esac
14479 fi
14480
14481{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14482echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14483
14484#
14485# Check to make sure the PIC flag actually works.
14486#
14487if test -n "$lt_prog_compiler_pic_F77"; then
14488
14489{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14490echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14491if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14492 echo $ECHO_N "(cached) $ECHO_C" >&6
14493else
14494 lt_cv_prog_compiler_pic_works_F77=no
14495 ac_outfile=conftest.$ac_objext
14496 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14497 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14498 # Insert the option either (1) after the last *FLAGS variable, or
14499 # (2) before a word containing "conftest.", or (3) at the end.
14500 # Note that $ac_compile itself does not contain backslashes and begins
14501 # with a dollar sign (not a hyphen), so the echo should work correctly.
14502 # The option is referenced via a variable to avoid confusing sed.
14503 lt_compile=`echo "$ac_compile" | $SED \
14504 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14505 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14506 -e 's:$: $lt_compiler_flag:'`
14507 (eval echo "\"\$as_me:14507: $lt_compile\"" >&5)
14508 (eval "$lt_compile" 2>conftest.err)
14509 ac_status=$?
14510 cat conftest.err >&5
14511 echo "$as_me:14511: \$? = $ac_status" >&5
14512 if (exit $ac_status) && test -s "$ac_outfile"; then
14513 # The compiler can only warn and ignore the option if not recognized
14514 # So say no if there are warnings other than the usual output.
14515 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14516 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14517 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14518 lt_cv_prog_compiler_pic_works_F77=yes
14519 fi
14520 fi
14521 $rm conftest*
14522
14523fi
14524{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14525echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14526
14527if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14528 case $lt_prog_compiler_pic_F77 in
14529 "" | " "*) ;;
14530 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14531 esac
14532else
14533 lt_prog_compiler_pic_F77=
14534 lt_prog_compiler_can_build_shared_F77=no
14535fi
14536
14537fi
14538case $host_os in
14539 # For platforms which do not support PIC, -DPIC is meaningless:
14540 *djgpp*)
14541 lt_prog_compiler_pic_F77=
14542 ;;
14543 *)
14544 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14545 ;;
14546esac
14547
14548#
14549# Check to make sure the static flag actually works.
14550#
14551wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14552{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14553echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14554if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14555 echo $ECHO_N "(cached) $ECHO_C" >&6
14556else
14557 lt_cv_prog_compiler_static_works_F77=no
14558 save_LDFLAGS="$LDFLAGS"
14559 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14560 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14561 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14562 # The linker can only warn and ignore the option if not recognized
14563 # So say no if there are warnings
14564 if test -s conftest.err; then
14565 # Append any errors to the config.log.
14566 cat conftest.err 1>&5
14567 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14568 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14569 if diff conftest.exp conftest.er2 >/dev/null; then
14570 lt_cv_prog_compiler_static_works_F77=yes
14571 fi
14572 else
14573 lt_cv_prog_compiler_static_works_F77=yes
14574 fi
14575 fi
14576 $rm -r conftest*
14577 LDFLAGS="$save_LDFLAGS"
14578
14579fi
14580{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14581echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14582
14583if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14584 :
14585else
14586 lt_prog_compiler_static_F77=
14587fi
14588
14589
14590{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14591echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14592if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14593 echo $ECHO_N "(cached) $ECHO_C" >&6
14594else
14595 lt_cv_prog_compiler_c_o_F77=no
14596 $rm -r conftest 2>/dev/null
14597 mkdir conftest
14598 cd conftest
14599 mkdir out
14600 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14601
14602 lt_compiler_flag="-o out/conftest2.$ac_objext"
14603 # Insert the option either (1) after the last *FLAGS variable, or
14604 # (2) before a word containing "conftest.", or (3) at the end.
14605 # Note that $ac_compile itself does not contain backslashes and begins
14606 # with a dollar sign (not a hyphen), so the echo should work correctly.
14607 lt_compile=`echo "$ac_compile" | $SED \
14608 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14609 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14610 -e 's:$: $lt_compiler_flag:'`
14611 (eval echo "\"\$as_me:14611: $lt_compile\"" >&5)
14612 (eval "$lt_compile" 2>out/conftest.err)
14613 ac_status=$?
14614 cat out/conftest.err >&5
14615 echo "$as_me:14615: \$? = $ac_status" >&5
14616 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14617 then
14618 # The compiler can only warn and ignore the option if not recognized
14619 # So say no if there are warnings
14620 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14621 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14622 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14623 lt_cv_prog_compiler_c_o_F77=yes
14624 fi
14625 fi
14626 chmod u+w . 2>&5
14627 $rm conftest*
14628 # SGI C++ compiler will create directory out/ii_files/ for
14629 # template instantiation
14630 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14631 $rm out/* && rmdir out
14632 cd ..
14633 rmdir conftest
14634 $rm conftest*
14635
14636fi
14637{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14638echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14639
14640
14641hard_links="nottested"
14642if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14643 # do not overwrite the value of need_locks provided by the user
14644 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14645echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14646 hard_links=yes
14647 $rm conftest*
14648 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14649 touch conftest.a
14650 ln conftest.a conftest.b 2>&5 || hard_links=no
14651 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14652 { echo "$as_me:$LINENO: result: $hard_links" >&5
14653echo "${ECHO_T}$hard_links" >&6; }
14654 if test "$hard_links" = no; then
14655 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14656echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14657 need_locks=warn
14658 fi
14659else
14660 need_locks=no
14661fi
14662
14663{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14664echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14665
14666 runpath_var=
14667 allow_undefined_flag_F77=
14668 enable_shared_with_static_runtimes_F77=no
14669 archive_cmds_F77=
14670 archive_expsym_cmds_F77=
14671 old_archive_From_new_cmds_F77=
14672 old_archive_from_expsyms_cmds_F77=
14673 export_dynamic_flag_spec_F77=
14674 whole_archive_flag_spec_F77=
14675 thread_safe_flag_spec_F77=
14676 hardcode_libdir_flag_spec_F77=
14677 hardcode_libdir_flag_spec_ld_F77=
14678 hardcode_libdir_separator_F77=
14679 hardcode_direct_F77=no
14680 hardcode_minus_L_F77=no
14681 hardcode_shlibpath_var_F77=unsupported
14682 link_all_deplibs_F77=unknown
14683 hardcode_automatic_F77=no
14684 module_cmds_F77=
14685 module_expsym_cmds_F77=
14686 always_export_symbols_F77=no
14687 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14688 # include_expsyms should be a list of space-separated symbols to be *always*
14689 # included in the symbol list
14690 include_expsyms_F77=
14691 # exclude_expsyms can be an extended regexp of symbols to exclude
14692 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14693 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14694 # as well as any symbol that contains `d'.
14695 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14696 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14697 # platforms (ab)use it in PIC code, but their linkers get confused if
14698 # the symbol is explicitly referenced. Since portable code cannot
14699 # rely on this symbol name, it's probably fine to never include it in
14700 # preloaded symbol tables.
14701 # Exclude shared library initialization/finalization symbols.
14702 extract_expsyms_cmds=
14703 # Just being paranoid about ensuring that cc_basename is set.
14704 for cc_temp in $compiler""; do
14705 case $cc_temp in
14706 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14707 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14708 \-*) ;;
14709 *) break;;
14710 esac
14711done
14712cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14713
14714 case $host_os in
14715 cygwin* | mingw* | pw32*)
14716 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14717 # When not using gcc, we currently assume that we are using
14718 # Microsoft Visual C++.
14719 if test "$GCC" != yes; then
14720 with_gnu_ld=no
14721 fi
14722 ;;
14723 interix*)
14724 # we just hope/assume this is gcc and not c89 (= MSVC++)
14725 with_gnu_ld=yes
14726 ;;
14727 openbsd*)
14728 with_gnu_ld=no
14729 ;;
14730 esac
14731
14732 ld_shlibs_F77=yes
14733 if test "$with_gnu_ld" = yes; then
14734 # If archive_cmds runs LD, not CC, wlarc should be empty
14735 wlarc='${wl}'
14736
14737 # Set some defaults for GNU ld with shared library support. These
14738 # are reset later if shared libraries are not supported. Putting them
14739 # here allows them to be overridden if necessary.
14740 runpath_var=LD_RUN_PATH
14741 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14742 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14743 # ancient GNU ld didn't support --whole-archive et. al.
14744 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14745 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14746 else
14747 whole_archive_flag_spec_F77=
14748 fi
14749 supports_anon_versioning=no
14750 case `$LD -v 2>/dev/null` in
14751 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14752 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14753 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14754 *\ 2.11.*) ;; # other 2.11 versions
14755 *) supports_anon_versioning=yes ;;
14756 esac
14757
14758 # See if GNU ld supports shared libraries.
14759 case $host_os in
14760 aix[3-9]*)
14761 # On AIX/PPC, the GNU linker is very broken
14762 if test "$host_cpu" != ia64; then
14763 ld_shlibs_F77=no
14764 cat <<EOF 1>&2
14765
14766*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14767*** to be unable to reliably create shared libraries on AIX.
14768*** Therefore, libtool is disabling shared libraries support. If you
14769*** really care for shared libraries, you may want to modify your PATH
14770*** so that a non-GNU linker is found, and then restart.
14771
14772EOF
14773 fi
14774 ;;
14775
14776 amigaos*)
14777 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)'
14778 hardcode_libdir_flag_spec_F77='-L$libdir'
14779 hardcode_minus_L_F77=yes
14780
14781 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14782 # that the semantics of dynamic libraries on AmigaOS, at least up
14783 # to version 4, is to share data among multiple programs linked
14784 # with the same dynamic library. Since this doesn't match the
14785 # behavior of shared libraries on other platforms, we can't use
14786 # them.
14787 ld_shlibs_F77=no
14788 ;;
14789
14790 beos*)
14791 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14792 allow_undefined_flag_F77=unsupported
14793 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14794 # support --undefined. This deserves some investigation. FIXME
14795 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14796 else
14797 ld_shlibs_F77=no
14798 fi
14799 ;;
14800
14801 cygwin* | mingw* | pw32*)
14802 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14803 # as there is no search path for DLLs.
14804 hardcode_libdir_flag_spec_F77='-L$libdir'
14805 allow_undefined_flag_F77=unsupported
14806 always_export_symbols_F77=no
14807 enable_shared_with_static_runtimes_F77=yes
14808 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14809
14810 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14811 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14812 # If the export-symbols file already is a .def file (1st line
14813 # is EXPORTS), use it as is; otherwise, prepend...
14814 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14815 cp $export_symbols $output_objdir/$soname.def;
14816 else
14817 echo EXPORTS > $output_objdir/$soname.def;
14818 cat $export_symbols >> $output_objdir/$soname.def;
14819 fi~
14820 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14821 else
14822 ld_shlibs_F77=no
14823 fi
14824 ;;
14825
14826 interix[3-9]*)
14827 hardcode_direct_F77=no
14828 hardcode_shlibpath_var_F77=no
14829 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14830 export_dynamic_flag_spec_F77='${wl}-E'
14831 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14832 # Instead, shared libraries are loaded at an image base (0x10000000 by
14833 # default) and relocated if they conflict, which is a slow very memory
14834 # consuming and fragmenting process. To avoid this, we pick a random,
14835 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14836 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14837 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'
14838 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'
14839 ;;
14840
14841 gnu* | linux* | k*bsd*-gnu)
14842 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14843 tmp_addflag=
14844 case $cc_basename,$host_cpu in
14845 pgcc*) # Portland Group C compiler
14846 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'
14847 tmp_addflag=' $pic_flag'
14848 ;;
14849 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14850 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'
14851 tmp_addflag=' $pic_flag -Mnomain' ;;
14852 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14853 tmp_addflag=' -i_dynamic' ;;
14854 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14855 tmp_addflag=' -i_dynamic -nofor_main' ;;
14856 ifc* | ifort*) # Intel Fortran compiler
14857 tmp_addflag=' -nofor_main' ;;
14858 esac
14859 case `$CC -V 2>&1 | sed 5q` in
14860 *Sun\ C*) # Sun C 5.9
14861 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14862 tmp_sharedflag='-G' ;;
14863 *Sun\ F*) # Sun Fortran 8.3
14864 tmp_sharedflag='-G' ;;
14865 *)
14866 tmp_sharedflag='-shared' ;;
14867 esac
14868 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14869
14870 if test $supports_anon_versioning = yes; then
14871 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14872 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14873 $echo "local: *; };" >> $output_objdir/$libname.ver~
14874 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14875 fi
14876 link_all_deplibs_F77=no
14877 else
14878 ld_shlibs_F77=no
14879 fi
14880 ;;
14881
14882 netbsd* | netbsdelf*-gnu)
14883 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14884 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14885 wlarc=
14886 else
14887 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14888 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14889 fi
14890 ;;
14891
14892 solaris*)
14893 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14894 ld_shlibs_F77=no
14895 cat <<EOF 1>&2
14896
14897*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14898*** create shared libraries on Solaris systems. Therefore, libtool
14899*** is disabling shared libraries support. We urge you to upgrade GNU
14900*** binutils to release 2.9.1 or newer. Another option is to modify
14901*** your PATH or compiler configuration so that the native linker is
14902*** used, and then restart.
14903
14904EOF
14905 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14906 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14907 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14908 else
14909 ld_shlibs_F77=no
14910 fi
14911 ;;
14912
14913 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14914 case `$LD -v 2>&1` in
14915 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14916 ld_shlibs_F77=no
14917 cat <<_LT_EOF 1>&2
14918
14919*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14920*** reliably create shared libraries on SCO systems. Therefore, libtool
14921*** is disabling shared libraries support. We urge you to upgrade GNU
14922*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14923*** your PATH or compiler configuration so that the native linker is
14924*** used, and then restart.
14925
14926_LT_EOF
14927 ;;
14928 *)
14929 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14930 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14931 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14932 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14933 else
14934 ld_shlibs_F77=no
14935 fi
14936 ;;
14937 esac
14938 ;;
14939
14940 sunos4*)
14941 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14942 wlarc=
14943 hardcode_direct_F77=yes
14944 hardcode_shlibpath_var_F77=no
14945 ;;
14946
14947 *)
14948 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14949 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14950 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14951 else
14952 ld_shlibs_F77=no
14953 fi
14954 ;;
14955 esac
14956
14957 if test "$ld_shlibs_F77" = no; then
14958 runpath_var=
14959 hardcode_libdir_flag_spec_F77=
14960 export_dynamic_flag_spec_F77=
14961 whole_archive_flag_spec_F77=
14962 fi
14963 else
14964 # PORTME fill in a description of your system's linker (not GNU ld)
14965 case $host_os in
14966 aix3*)
14967 allow_undefined_flag_F77=unsupported
14968 always_export_symbols_F77=yes
14969 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'
14970 # Note: this linker hardcodes the directories in LIBPATH if there
14971 # are no directories specified by -L.
14972 hardcode_minus_L_F77=yes
14973 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14974 # Neither direct hardcoding nor static linking is supported with a
14975 # broken collect2.
14976 hardcode_direct_F77=unsupported
14977 fi
14978 ;;
14979
14980 aix[4-9]*)
14981 if test "$host_cpu" = ia64; then
14982 # On IA64, the linker does run time linking by default, so we don't
14983 # have to do anything special.
14984 aix_use_runtimelinking=no
14985 exp_sym_flag='-Bexport'
14986 no_entry_flag=""
14987 else
14988 # If we're using GNU nm, then we don't want the "-C" option.
14989 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14990 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14991 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'
14992 else
14993 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'
14994 fi
14995 aix_use_runtimelinking=no
14996
14997 # Test if we are trying to use run time linking or normal
14998 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14999 # need to do runtime linking.
15000 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15001 for ld_flag in $LDFLAGS; do
15002 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15003 aix_use_runtimelinking=yes
15004 break
15005 fi
15006 done
15007 ;;
15008 esac
15009
15010 exp_sym_flag='-bexport'
15011 no_entry_flag='-bnoentry'
15012 fi
15013
15014 # When large executables or shared objects are built, AIX ld can
15015 # have problems creating the table of contents. If linking a library
15016 # or program results in "error TOC overflow" add -mminimal-toc to
15017 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15018 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15019
15020 archive_cmds_F77=''
15021 hardcode_direct_F77=yes
15022 hardcode_libdir_separator_F77=':'
15023 link_all_deplibs_F77=yes
15024
15025 if test "$GCC" = yes; then
15026 case $host_os in aix4.[012]|aix4.[012].*)
15027 # We only want to do this on AIX 4.2 and lower, the check
15028 # below for broken collect2 doesn't work under 4.3+
15029 collect2name=`${CC} -print-prog-name=collect2`
15030 if test -f "$collect2name" && \
15031 strings "$collect2name" | grep resolve_lib_name >/dev/null
15032 then
15033 # We have reworked collect2
15034 :
15035 else
15036 # We have old collect2
15037 hardcode_direct_F77=unsupported
15038 # It fails to find uninstalled libraries when the uninstalled
15039 # path is not listed in the libpath. Setting hardcode_minus_L
15040 # to unsupported forces relinking
15041 hardcode_minus_L_F77=yes
15042 hardcode_libdir_flag_spec_F77='-L$libdir'
15043 hardcode_libdir_separator_F77=
15044 fi
15045 ;;
15046 esac
15047 shared_flag='-shared'
15048 if test "$aix_use_runtimelinking" = yes; then
15049 shared_flag="$shared_flag "'${wl}-G'
15050 fi
15051 else
15052 # not using gcc
15053 if test "$host_cpu" = ia64; then
15054 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15055 # chokes on -Wl,-G. The following line is correct:
15056 shared_flag='-G'
15057 else
15058 if test "$aix_use_runtimelinking" = yes; then
15059 shared_flag='${wl}-G'
15060 else
15061 shared_flag='${wl}-bM:SRE'
15062 fi
15063 fi
15064 fi
15065
15066 # It seems that -bexpall does not export symbols beginning with
15067 # underscore (_), so it is better to generate a list of symbols to export.
15068 always_export_symbols_F77=yes
15069 if test "$aix_use_runtimelinking" = yes; then
15070 # Warning - without using the other runtime loading flags (-brtl),
15071 # -berok will link without error, but may produce a broken library.
15072 allow_undefined_flag_F77='-berok'
15073 # Determine the default libpath from the value encoded in an empty executable.
15074 cat >conftest.$ac_ext <<_ACEOF
15075 program main
15076
15077 end
15078_ACEOF
15079rm -f conftest.$ac_objext conftest$ac_exeext
15080if { (ac_try="$ac_link"
15081case "(($ac_try" in
15082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15083 *) ac_try_echo=$ac_try;;
15084esac
15085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15086 (eval "$ac_link") 2>conftest.er1
15087 ac_status=$?
15088 grep -v '^ *+' conftest.er1 >conftest.err
15089 rm -f conftest.er1
15090 cat conftest.err >&5
15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 (exit $ac_status); } && {
15093 test -z "$ac_f77_werror_flag" ||
15094 test ! -s conftest.err
15095 } && test -s conftest$ac_exeext &&
15096 $as_test_x conftest$ac_exeext; then
15097
15098lt_aix_libpath_sed='
15099 /Import File Strings/,/^$/ {
15100 /^0/ {
15101 s/^0 *\(.*\)$/\1/
15102 p
15103 }
15104 }'
15105aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15106# Check for a 64-bit object if we didn't find anything.
15107if test -z "$aix_libpath"; then
15108 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15109fi
15110else
15111 echo "$as_me: failed program was:" >&5
15112sed 's/^/| /' conftest.$ac_ext >&5
15113
15114
15115fi
15116
15117rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15118 conftest$ac_exeext conftest.$ac_ext
15119if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15120
15121 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15122 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"
15123 else
15124 if test "$host_cpu" = ia64; then
15125 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15126 allow_undefined_flag_F77="-z nodefs"
15127 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"
15128 else
15129 # Determine the default libpath from the value encoded in an empty executable.
15130 cat >conftest.$ac_ext <<_ACEOF
15131 program main
15132
15133 end
15134_ACEOF
15135rm -f conftest.$ac_objext conftest$ac_exeext
15136if { (ac_try="$ac_link"
15137case "(($ac_try" in
15138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15139 *) ac_try_echo=$ac_try;;
15140esac
15141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15142 (eval "$ac_link") 2>conftest.er1
15143 ac_status=$?
15144 grep -v '^ *+' conftest.er1 >conftest.err
15145 rm -f conftest.er1
15146 cat conftest.err >&5
15147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148 (exit $ac_status); } && {
15149 test -z "$ac_f77_werror_flag" ||
15150 test ! -s conftest.err
15151 } && test -s conftest$ac_exeext &&
15152 $as_test_x conftest$ac_exeext; then
15153
15154lt_aix_libpath_sed='
15155 /Import File Strings/,/^$/ {
15156 /^0/ {
15157 s/^0 *\(.*\)$/\1/
15158 p
15159 }
15160 }'
15161aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15162# Check for a 64-bit object if we didn't find anything.
15163if test -z "$aix_libpath"; then
15164 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15165fi
15166else
15167 echo "$as_me: failed program was:" >&5
15168sed 's/^/| /' conftest.$ac_ext >&5
15169
15170
15171fi
15172
15173rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15174 conftest$ac_exeext conftest.$ac_ext
15175if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15176
15177 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15178 # Warning - without using the other run time loading flags,
15179 # -berok will link without error, but may produce a broken library.
15180 no_undefined_flag_F77=' ${wl}-bernotok'
15181 allow_undefined_flag_F77=' ${wl}-berok'
15182 # Exported symbols can be pulled into shared objects from archives
15183 whole_archive_flag_spec_F77='$convenience'
15184 archive_cmds_need_lc_F77=yes
15185 # This is similar to how AIX traditionally builds its shared libraries.
15186 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'
15187 fi
15188 fi
15189 ;;
15190
15191 amigaos*)
15192 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)'
15193 hardcode_libdir_flag_spec_F77='-L$libdir'
15194 hardcode_minus_L_F77=yes
15195 # see comment about different semantics on the GNU ld section
15196 ld_shlibs_F77=no
15197 ;;
15198
15199 bsdi[45]*)
15200 export_dynamic_flag_spec_F77=-rdynamic
15201 ;;
15202
15203 cygwin* | mingw* | pw32*)
15204 # When not using gcc, we currently assume that we are using
15205 # Microsoft Visual C++.
15206 # hardcode_libdir_flag_spec is actually meaningless, as there is
15207 # no search path for DLLs.
15208 hardcode_libdir_flag_spec_F77=' '
15209 allow_undefined_flag_F77=unsupported
15210 # Tell ltmain to make .lib files, not .a files.
15211 libext=lib
15212 # Tell ltmain to make .dll files, not .so files.
15213 shrext_cmds=".dll"
15214 # FIXME: Setting linknames here is a bad hack.
15215 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15216 # The linker will automatically build a .lib file if we build a DLL.
15217 old_archive_From_new_cmds_F77='true'
15218 # FIXME: Should let the user specify the lib program.
15219 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15220 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15221 enable_shared_with_static_runtimes_F77=yes
15222 ;;
15223
15224 darwin* | rhapsody*)
15225 case $host_os in
15226 rhapsody* | darwin1.[012])
15227 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15228 ;;
15229 *) # Darwin 1.3 on
15230 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15231 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15232 else
15233 case ${MACOSX_DEPLOYMENT_TARGET} in
15234 10.[012])
15235 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15236 ;;
15237 10.*)
15238 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15239 ;;
15240 esac
15241 fi
15242 ;;
15243 esac
15244 archive_cmds_need_lc_F77=no
15245 hardcode_direct_F77=no
15246 hardcode_automatic_F77=yes
15247 hardcode_shlibpath_var_F77=unsupported
15248 whole_archive_flag_spec_F77=''
15249 link_all_deplibs_F77=yes
15250 if test "$GCC" = yes ; then
15251 output_verbose_link_cmd='echo'
15252 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15253 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15254 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15255 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15256 else
15257 case $cc_basename in
15258 xlc*)
15259 output_verbose_link_cmd='echo'
15260 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15261 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15262 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15263 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15264 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}'
15265 ;;
15266 *)
15267 ld_shlibs_F77=no
15268 ;;
15269 esac
15270 fi
15271 ;;
15272
15273 dgux*)
15274 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15275 hardcode_libdir_flag_spec_F77='-L$libdir'
15276 hardcode_shlibpath_var_F77=no
15277 ;;
15278
15279 freebsd1*)
15280 ld_shlibs_F77=no
15281 ;;
15282
15283 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15284 # support. Future versions do this automatically, but an explicit c++rt0.o
15285 # does not break anything, and helps significantly (at the cost of a little
15286 # extra space).
15287 freebsd2.2*)
15288 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15289 hardcode_libdir_flag_spec_F77='-R$libdir'
15290 hardcode_direct_F77=yes
15291 hardcode_shlibpath_var_F77=no
15292 ;;
15293
15294 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15295 freebsd2*)
15296 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15297 hardcode_direct_F77=yes
15298 hardcode_minus_L_F77=yes
15299 hardcode_shlibpath_var_F77=no
15300 ;;
15301
15302 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15303 freebsd* | dragonfly*)
15304 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15305 hardcode_libdir_flag_spec_F77='-R$libdir'
15306 hardcode_direct_F77=yes
15307 hardcode_shlibpath_var_F77=no
15308 ;;
15309
15310 hpux9*)
15311 if test "$GCC" = yes; then
15312 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'
15313 else
15314 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'
15315 fi
15316 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15317 hardcode_libdir_separator_F77=:
15318 hardcode_direct_F77=yes
15319
15320 # hardcode_minus_L: Not really in the search PATH,
15321 # but as the default location of the library.
15322 hardcode_minus_L_F77=yes
15323 export_dynamic_flag_spec_F77='${wl}-E'
15324 ;;
15325
15326 hpux10*)
15327 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15328 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15329 else
15330 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15331 fi
15332 if test "$with_gnu_ld" = no; then
15333 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15334 hardcode_libdir_separator_F77=:
15335
15336 hardcode_direct_F77=yes
15337 export_dynamic_flag_spec_F77='${wl}-E'
15338
15339 # hardcode_minus_L: Not really in the search PATH,
15340 # but as the default location of the library.
15341 hardcode_minus_L_F77=yes
15342 fi
15343 ;;
15344
15345 hpux11*)
15346 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15347 case $host_cpu in
15348 hppa*64*)
15349 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15350 ;;
15351 ia64*)
15352 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15353 ;;
15354 *)
15355 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15356 ;;
15357 esac
15358 else
15359 case $host_cpu in
15360 hppa*64*)
15361 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15362 ;;
15363 ia64*)
15364 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15365 ;;
15366 *)
15367 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15368 ;;
15369 esac
15370 fi
15371 if test "$with_gnu_ld" = no; then
15372 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15373 hardcode_libdir_separator_F77=:
15374
15375 case $host_cpu in
15376 hppa*64*|ia64*)
15377 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15378 hardcode_direct_F77=no
15379 hardcode_shlibpath_var_F77=no
15380 ;;
15381 *)
15382 hardcode_direct_F77=yes
15383 export_dynamic_flag_spec_F77='${wl}-E'
15384
15385 # hardcode_minus_L: Not really in the search PATH,
15386 # but as the default location of the library.
15387 hardcode_minus_L_F77=yes
15388 ;;
15389 esac
15390 fi
15391 ;;
15392
15393 irix5* | irix6* | nonstopux*)
15394 if test "$GCC" = yes; then
15395 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'
15396 else
15397 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'
15398 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15399 fi
15400 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15401 hardcode_libdir_separator_F77=:
15402 link_all_deplibs_F77=yes
15403 ;;
15404
15405 netbsd* | netbsdelf*-gnu)
15406 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15407 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15408 else
15409 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15410 fi
15411 hardcode_libdir_flag_spec_F77='-R$libdir'
15412 hardcode_direct_F77=yes
15413 hardcode_shlibpath_var_F77=no
15414 ;;
15415
15416 newsos6)
15417 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15418 hardcode_direct_F77=yes
15419 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15420 hardcode_libdir_separator_F77=:
15421 hardcode_shlibpath_var_F77=no
15422 ;;
15423
15424 openbsd*)
15425 if test -f /usr/libexec/ld.so; then
15426 hardcode_direct_F77=yes
15427 hardcode_shlibpath_var_F77=no
15428 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15429 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15430 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15431 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15432 export_dynamic_flag_spec_F77='${wl}-E'
15433 else
15434 case $host_os in
15435 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15436 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15437 hardcode_libdir_flag_spec_F77='-R$libdir'
15438 ;;
15439 *)
15440 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15441 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15442 ;;
15443 esac
15444 fi
15445 else
15446 ld_shlibs_F77=no
15447 fi
15448 ;;
15449
15450 os2*)
15451 hardcode_libdir_flag_spec_F77='-L$libdir'
15452 hardcode_minus_L_F77=yes
15453 allow_undefined_flag_F77=unsupported
15454 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'
15455 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15456 ;;
15457
15458 osf3*)
15459 if test "$GCC" = yes; then
15460 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15461 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'
15462 else
15463 allow_undefined_flag_F77=' -expect_unresolved \*'
15464 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'
15465 fi
15466 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15467 hardcode_libdir_separator_F77=:
15468 ;;
15469
15470 osf4* | osf5*) # as osf3* with the addition of -msym flag
15471 if test "$GCC" = yes; then
15472 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15473 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'
15474 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15475 else
15476 allow_undefined_flag_F77=' -expect_unresolved \*'
15477 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'
15478 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~
15479 $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'
15480
15481 # Both c and cxx compiler support -rpath directly
15482 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15483 fi
15484 hardcode_libdir_separator_F77=:
15485 ;;
15486
15487 solaris*)
15488 no_undefined_flag_F77=' -z text'
15489 if test "$GCC" = yes; then
15490 wlarc='${wl}'
15491 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15492 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15493 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15494 else
15495 wlarc=''
15496 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15497 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15498 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15499 fi
15500 hardcode_libdir_flag_spec_F77='-R$libdir'
15501 hardcode_shlibpath_var_F77=no
15502 case $host_os in
15503 solaris2.[0-5] | solaris2.[0-5].*) ;;
15504 *)
15505 # The compiler driver will combine and reorder linker options,
15506 # but understands `-z linker_flag'. GCC discards it without `$wl',
15507 # but is careful enough not to reorder.
15508 # Supported since Solaris 2.6 (maybe 2.5.1?)
15509 if test "$GCC" = yes; then
15510 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15511 else
15512 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15513 fi
15514 ;;
15515 esac
15516 link_all_deplibs_F77=yes
15517 ;;
15518
15519 sunos4*)
15520 if test "x$host_vendor" = xsequent; then
15521 # Use $CC to link under sequent, because it throws in some extra .o
15522 # files that make .init and .fini sections work.
15523 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15524 else
15525 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15526 fi
15527 hardcode_libdir_flag_spec_F77='-L$libdir'
15528 hardcode_direct_F77=yes
15529 hardcode_minus_L_F77=yes
15530 hardcode_shlibpath_var_F77=no
15531 ;;
15532
15533 sysv4)
15534 case $host_vendor in
15535 sni)
15536 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15537 hardcode_direct_F77=yes # is this really true???
15538 ;;
15539 siemens)
15540 ## LD is ld it makes a PLAMLIB
15541 ## CC just makes a GrossModule.
15542 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15543 reload_cmds_F77='$CC -r -o $output$reload_objs'
15544 hardcode_direct_F77=no
15545 ;;
15546 motorola)
15547 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15548 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15549 ;;
15550 esac
15551 runpath_var='LD_RUN_PATH'
15552 hardcode_shlibpath_var_F77=no
15553 ;;
15554
15555 sysv4.3*)
15556 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15557 hardcode_shlibpath_var_F77=no
15558 export_dynamic_flag_spec_F77='-Bexport'
15559 ;;
15560
15561 sysv4*MP*)
15562 if test -d /usr/nec; then
15563 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15564 hardcode_shlibpath_var_F77=no
15565 runpath_var=LD_RUN_PATH
15566 hardcode_runpath_var=yes
15567 ld_shlibs_F77=yes
15568 fi
15569 ;;
15570
15571 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15572 no_undefined_flag_F77='${wl}-z,text'
15573 archive_cmds_need_lc_F77=no
15574 hardcode_shlibpath_var_F77=no
15575 runpath_var='LD_RUN_PATH'
15576
15577 if test "$GCC" = yes; then
15578 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15579 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15580 else
15581 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15582 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15583 fi
15584 ;;
15585
15586 sysv5* | sco3.2v5* | sco5v6*)
15587 # Note: We can NOT use -z defs as we might desire, because we do not
15588 # link with -lc, and that would cause any symbols used from libc to
15589 # always be unresolved, which means just about no library would
15590 # ever link correctly. If we're not using GNU ld we use -z text
15591 # though, which does catch some bad symbols but isn't as heavy-handed
15592 # as -z defs.
15593 no_undefined_flag_F77='${wl}-z,text'
15594 allow_undefined_flag_F77='${wl}-z,nodefs'
15595 archive_cmds_need_lc_F77=no
15596 hardcode_shlibpath_var_F77=no
15597 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15598 hardcode_libdir_separator_F77=':'
15599 link_all_deplibs_F77=yes
15600 export_dynamic_flag_spec_F77='${wl}-Bexport'
15601 runpath_var='LD_RUN_PATH'
15602
15603 if test "$GCC" = yes; then
15604 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15605 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15606 else
15607 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15608 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15609 fi
15610 ;;
15611
15612 uts4*)
15613 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15614 hardcode_libdir_flag_spec_F77='-L$libdir'
15615 hardcode_shlibpath_var_F77=no
15616 ;;
15617
15618 *)
15619 ld_shlibs_F77=no
15620 ;;
15621 esac
15622 fi
15623
15624{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15625echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15626test "$ld_shlibs_F77" = no && can_build_shared=no
15627
15628#
15629# Do we need to explicitly link libc?
15630#
15631case "x$archive_cmds_need_lc_F77" in
15632x|xyes)
15633 # Assume -lc should be added
15634 archive_cmds_need_lc_F77=yes
15635
15636 if test "$enable_shared" = yes && test "$GCC" = yes; then
15637 case $archive_cmds_F77 in
15638 *'~'*)
15639 # FIXME: we may have to deal with multi-command sequences.
15640 ;;
15641 '$CC '*)
15642 # Test whether the compiler implicitly links with -lc since on some
15643 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15644 # to ld, don't add -lc before -lgcc.
15645 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15646echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15647 $rm conftest*
15648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15649
15650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15651 (eval $ac_compile) 2>&5
15652 ac_status=$?
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); } 2>conftest.err; then
15655 soname=conftest
15656 lib=conftest
15657 libobjs=conftest.$ac_objext
15658 deplibs=
15659 wl=$lt_prog_compiler_wl_F77
15660 pic_flag=$lt_prog_compiler_pic_F77
15661 compiler_flags=-v
15662 linker_flags=-v
15663 verstring=
15664 output_objdir=.
15665 libname=conftest
15666 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15667 allow_undefined_flag_F77=
15668 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15669 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15670 ac_status=$?
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); }
15673 then
15674 archive_cmds_need_lc_F77=no
15675 else
15676 archive_cmds_need_lc_F77=yes
15677 fi
15678 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15679 else
15680 cat conftest.err 1>&5
15681 fi
15682 $rm conftest*
15683 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15684echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15685 ;;
15686 esac
15687 fi
15688 ;;
15689esac
15690
15691{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15692echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15693library_names_spec=
15694libname_spec='lib$name'
15695soname_spec=
15696shrext_cmds=".so"
15697postinstall_cmds=
15698postuninstall_cmds=
15699finish_cmds=
15700finish_eval=
15701shlibpath_var=
15702shlibpath_overrides_runpath=unknown
15703version_type=none
15704dynamic_linker="$host_os ld.so"
15705sys_lib_dlsearch_path_spec="/lib /usr/lib"
15706
15707need_lib_prefix=unknown
15708hardcode_into_libs=no
15709
15710# when you set need_version to no, make sure it does not cause -set_version
15711# flags to be left without arguments
15712need_version=unknown
15713
15714case $host_os in
15715aix3*)
15716 version_type=linux
15717 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15718 shlibpath_var=LIBPATH
15719
15720 # AIX 3 has no versioning support, so we append a major version to the name.
15721 soname_spec='${libname}${release}${shared_ext}$major'
15722 ;;
15723
15724aix[4-9]*)
15725 version_type=linux
15726 need_lib_prefix=no
15727 need_version=no
15728 hardcode_into_libs=yes
15729 if test "$host_cpu" = ia64; then
15730 # AIX 5 supports IA64
15731 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15732 shlibpath_var=LD_LIBRARY_PATH
15733 else
15734 # With GCC up to 2.95.x, collect2 would create an import file
15735 # for dependence libraries. The import file would start with
15736 # the line `#! .'. This would cause the generated library to
15737 # depend on `.', always an invalid library. This was fixed in
15738 # development snapshots of GCC prior to 3.0.
15739 case $host_os in
15740 aix4 | aix4.[01] | aix4.[01].*)
15741 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15742 echo ' yes '
15743 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15744 :
15745 else
15746 can_build_shared=no
15747 fi
15748 ;;
15749 esac
15750 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15751 # soname into executable. Probably we can add versioning support to
15752 # collect2, so additional links can be useful in future.
15753 if test "$aix_use_runtimelinking" = yes; then
15754 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15755 # instead of lib<name>.a to let people know that these are not
15756 # typical AIX shared libraries.
15757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15758 else
15759 # We preserve .a as extension for shared libraries through AIX4.2
15760 # and later when we are not doing run time linking.
15761 library_names_spec='${libname}${release}.a $libname.a'
15762 soname_spec='${libname}${release}${shared_ext}$major'
15763 fi
15764 shlibpath_var=LIBPATH
15765 fi
15766 ;;
15767
15768amigaos*)
15769 library_names_spec='$libname.ixlibrary $libname.a'
15770 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15771 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'
15772 ;;
15773
15774beos*)
15775 library_names_spec='${libname}${shared_ext}'
15776 dynamic_linker="$host_os ld.so"
15777 shlibpath_var=LIBRARY_PATH
15778 ;;
15779
15780bsdi[45]*)
15781 version_type=linux
15782 need_version=no
15783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15784 soname_spec='${libname}${release}${shared_ext}$major'
15785 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15786 shlibpath_var=LD_LIBRARY_PATH
15787 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15788 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15789 # the default ld.so.conf also contains /usr/contrib/lib and
15790 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15791 # libtool to hard-code these into programs
15792 ;;
15793
15794cygwin* | mingw* | pw32*)
15795 version_type=windows
15796 shrext_cmds=".dll"
15797 need_version=no
15798 need_lib_prefix=no
15799
15800 case $GCC,$host_os in
15801 yes,cygwin* | yes,mingw* | yes,pw32*)
15802 library_names_spec='$libname.dll.a'
15803 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15804 postinstall_cmds='base_file=`basename \${file}`~
15805 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15806 dldir=$destdir/`dirname \$dlpath`~
15807 test -d \$dldir || mkdir -p \$dldir~
15808 $install_prog $dir/$dlname \$dldir/$dlname~
15809 chmod a+x \$dldir/$dlname'
15810 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15811 dlpath=$dir/\$dldll~
15812 $rm \$dlpath'
15813 shlibpath_overrides_runpath=yes
15814
15815 case $host_os in
15816 cygwin*)
15817 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15818 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15819 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15820 ;;
15821 mingw*)
15822 # MinGW DLLs use traditional 'lib' prefix
15823 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15824 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15825 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15826 # It is most probably a Windows format PATH printed by
15827 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15828 # path with ; separators, and with drive letters. We can handle the
15829 # drive letters (cygwin fileutils understands them), so leave them,
15830 # especially as we might pass files found there to a mingw objdump,
15831 # which wouldn't understand a cygwinified path. Ahh.
15832 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15833 else
15834 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15835 fi
15836 ;;
15837 pw32*)
15838 # pw32 DLLs use 'pw' prefix rather than 'lib'
15839 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15840 ;;
15841 esac
15842 ;;
15843
15844 *)
15845 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15846 ;;
15847 esac
15848 dynamic_linker='Win32 ld.exe'
15849 # FIXME: first we should search . and the directory the executable is in
15850 shlibpath_var=PATH
15851 ;;
15852
15853darwin* | rhapsody*)
15854 dynamic_linker="$host_os dyld"
15855 version_type=darwin
15856 need_lib_prefix=no
15857 need_version=no
15858 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15859 soname_spec='${libname}${release}${major}$shared_ext'
15860 shlibpath_overrides_runpath=yes
15861 shlibpath_var=DYLD_LIBRARY_PATH
15862 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15863
15864 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15865 ;;
15866
15867dgux*)
15868 version_type=linux
15869 need_lib_prefix=no
15870 need_version=no
15871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15872 soname_spec='${libname}${release}${shared_ext}$major'
15873 shlibpath_var=LD_LIBRARY_PATH
15874 ;;
15875
15876freebsd1*)
15877 dynamic_linker=no
15878 ;;
15879
15880freebsd* | dragonfly*)
15881 # DragonFly does not have aout. When/if they implement a new
15882 # versioning mechanism, adjust this.
15883 if test -x /usr/bin/objformat; then
15884 objformat=`/usr/bin/objformat`
15885 else
15886 case $host_os in
15887 freebsd[123]*) objformat=aout ;;
15888 *) objformat=elf ;;
15889 esac
15890 fi
15891 version_type=freebsd-$objformat
15892 case $version_type in
15893 freebsd-elf*)
15894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15895 need_version=no
15896 need_lib_prefix=no
15897 ;;
15898 freebsd-*)
15899 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15900 need_version=yes
15901 ;;
15902 esac
15903 shlibpath_var=LD_LIBRARY_PATH
15904 case $host_os in
15905 freebsd2*)
15906 shlibpath_overrides_runpath=yes
15907 ;;
15908 freebsd3.[01]* | freebsdelf3.[01]*)
15909 shlibpath_overrides_runpath=yes
15910 hardcode_into_libs=yes
15911 ;;
15912 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15913 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15914 shlibpath_overrides_runpath=no
15915 hardcode_into_libs=yes
15916 ;;
15917 *) # from 4.6 on, and DragonFly
15918 shlibpath_overrides_runpath=yes
15919 hardcode_into_libs=yes
15920 ;;
15921 esac
15922 ;;
15923
15924gnu*)
15925 version_type=linux
15926 need_lib_prefix=no
15927 need_version=no
15928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15929 soname_spec='${libname}${release}${shared_ext}$major'
15930 shlibpath_var=LD_LIBRARY_PATH
15931 hardcode_into_libs=yes
15932 ;;
15933
15934hpux9* | hpux10* | hpux11*)
15935 # Give a soname corresponding to the major version so that dld.sl refuses to
15936 # link against other versions.
15937 version_type=sunos
15938 need_lib_prefix=no
15939 need_version=no
15940 case $host_cpu in
15941 ia64*)
15942 shrext_cmds='.so'
15943 hardcode_into_libs=yes
15944 dynamic_linker="$host_os dld.so"
15945 shlibpath_var=LD_LIBRARY_PATH
15946 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15948 soname_spec='${libname}${release}${shared_ext}$major'
15949 if test "X$HPUX_IA64_MODE" = X32; then
15950 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15951 else
15952 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15953 fi
15954 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15955 ;;
15956 hppa*64*)
15957 shrext_cmds='.sl'
15958 hardcode_into_libs=yes
15959 dynamic_linker="$host_os dld.sl"
15960 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15961 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15963 soname_spec='${libname}${release}${shared_ext}$major'
15964 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15965 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15966 ;;
15967 *)
15968 shrext_cmds='.sl'
15969 dynamic_linker="$host_os dld.sl"
15970 shlibpath_var=SHLIB_PATH
15971 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15973 soname_spec='${libname}${release}${shared_ext}$major'
15974 ;;
15975 esac
15976 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15977 postinstall_cmds='chmod 555 $lib'
15978 ;;
15979
15980interix[3-9]*)
15981 version_type=linux
15982 need_lib_prefix=no
15983 need_version=no
15984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15985 soname_spec='${libname}${release}${shared_ext}$major'
15986 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15987 shlibpath_var=LD_LIBRARY_PATH
15988 shlibpath_overrides_runpath=no
15989 hardcode_into_libs=yes
15990 ;;
15991
15992irix5* | irix6* | nonstopux*)
15993 case $host_os in
15994 nonstopux*) version_type=nonstopux ;;
15995 *)
15996 if test "$lt_cv_prog_gnu_ld" = yes; then
15997 version_type=linux
15998 else
15999 version_type=irix
16000 fi ;;
16001 esac
16002 need_lib_prefix=no
16003 need_version=no
16004 soname_spec='${libname}${release}${shared_ext}$major'
16005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16006 case $host_os in
16007 irix5* | nonstopux*)
16008 libsuff= shlibsuff=
16009 ;;
16010 *)
16011 case $LD in # libtool.m4 will add one of these switches to LD
16012 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16013 libsuff= shlibsuff= libmagic=32-bit;;
16014 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16015 libsuff=32 shlibsuff=N32 libmagic=N32;;
16016 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16017 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16018 *) libsuff= shlibsuff= libmagic=never-match;;
16019 esac
16020 ;;
16021 esac
16022 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16023 shlibpath_overrides_runpath=no
16024 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16025 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16026 hardcode_into_libs=yes
16027 ;;
16028
16029# No shared lib support for Linux oldld, aout, or coff.
16030linux*oldld* | linux*aout* | linux*coff*)
16031 dynamic_linker=no
16032 ;;
16033
16034# This must be Linux ELF.
16035linux* | k*bsd*-gnu)
16036 version_type=linux
16037 need_lib_prefix=no
16038 need_version=no
16039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16040 soname_spec='${libname}${release}${shared_ext}$major'
16041 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16042 shlibpath_var=LD_LIBRARY_PATH
16043 shlibpath_overrides_runpath=no
16044 # This implies no fast_install, which is unacceptable.
16045 # Some rework will be needed to allow for fast_install
16046 # before this can be enabled.
16047 hardcode_into_libs=yes
16048
16049 # Append ld.so.conf contents to the search path
16050 if test -f /etc/ld.so.conf; then
16051 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16052 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16053 fi
16054
16055 # We used to test for /lib/ld.so.1 and disable shared libraries on
16056 # powerpc, because MkLinux only supported shared libraries with the
16057 # GNU dynamic linker. Since this was broken with cross compilers,
16058 # most powerpc-linux boxes support dynamic linking these days and
16059 # people can always --disable-shared, the test was removed, and we
16060 # assume the GNU/Linux dynamic linker is in use.
16061 dynamic_linker='GNU/Linux ld.so'
16062 ;;
16063
16064netbsdelf*-gnu)
16065 version_type=linux
16066 need_lib_prefix=no
16067 need_version=no
16068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16069 soname_spec='${libname}${release}${shared_ext}$major'
16070 shlibpath_var=LD_LIBRARY_PATH
16071 shlibpath_overrides_runpath=no
16072 hardcode_into_libs=yes
16073 dynamic_linker='NetBSD ld.elf_so'
16074 ;;
16075
16076netbsd*)
16077 version_type=sunos
16078 need_lib_prefix=no
16079 need_version=no
16080 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16082 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16083 dynamic_linker='NetBSD (a.out) ld.so'
16084 else
16085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16086 soname_spec='${libname}${release}${shared_ext}$major'
16087 dynamic_linker='NetBSD ld.elf_so'
16088 fi
16089 shlibpath_var=LD_LIBRARY_PATH
16090 shlibpath_overrides_runpath=yes
16091 hardcode_into_libs=yes
16092 ;;
16093
16094newsos6)
16095 version_type=linux
16096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16097 shlibpath_var=LD_LIBRARY_PATH
16098 shlibpath_overrides_runpath=yes
16099 ;;
16100
16101nto-qnx*)
16102 version_type=linux
16103 need_lib_prefix=no
16104 need_version=no
16105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16106 soname_spec='${libname}${release}${shared_ext}$major'
16107 shlibpath_var=LD_LIBRARY_PATH
16108 shlibpath_overrides_runpath=yes
16109 ;;
16110
16111openbsd*)
16112 version_type=sunos
16113 sys_lib_dlsearch_path_spec="/usr/lib"
16114 need_lib_prefix=no
16115 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16116 case $host_os in
16117 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16118 *) need_version=no ;;
16119 esac
16120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16121 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16122 shlibpath_var=LD_LIBRARY_PATH
16123 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16124 case $host_os in
16125 openbsd2.[89] | openbsd2.[89].*)
16126 shlibpath_overrides_runpath=no
16127 ;;
16128 *)
16129 shlibpath_overrides_runpath=yes
16130 ;;
16131 esac
16132 else
16133 shlibpath_overrides_runpath=yes
16134 fi
16135 ;;
16136
16137os2*)
16138 libname_spec='$name'
16139 shrext_cmds=".dll"
16140 need_lib_prefix=no
16141 library_names_spec='$libname${shared_ext} $libname.a'
16142 dynamic_linker='OS/2 ld.exe'
16143 shlibpath_var=LIBPATH
16144 ;;
16145
16146osf3* | osf4* | osf5*)
16147 version_type=osf
16148 need_lib_prefix=no
16149 need_version=no
16150 soname_spec='${libname}${release}${shared_ext}$major'
16151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16152 shlibpath_var=LD_LIBRARY_PATH
16153 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16154 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16155 ;;
16156
16157rdos*)
16158 dynamic_linker=no
16159 ;;
16160
16161solaris*)
16162 version_type=linux
16163 need_lib_prefix=no
16164 need_version=no
16165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16166 soname_spec='${libname}${release}${shared_ext}$major'
16167 shlibpath_var=LD_LIBRARY_PATH
16168 shlibpath_overrides_runpath=yes
16169 hardcode_into_libs=yes
16170 # ldd complains unless libraries are executable
16171 postinstall_cmds='chmod +x $lib'
16172 ;;
16173
16174sunos4*)
16175 version_type=sunos
16176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16177 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16178 shlibpath_var=LD_LIBRARY_PATH
16179 shlibpath_overrides_runpath=yes
16180 if test "$with_gnu_ld" = yes; then
16181 need_lib_prefix=no
16182 fi
16183 need_version=yes
16184 ;;
16185
16186sysv4 | sysv4.3*)
16187 version_type=linux
16188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16189 soname_spec='${libname}${release}${shared_ext}$major'
16190 shlibpath_var=LD_LIBRARY_PATH
16191 case $host_vendor in
16192 sni)
16193 shlibpath_overrides_runpath=no
16194 need_lib_prefix=no
16195 export_dynamic_flag_spec='${wl}-Blargedynsym'
16196 runpath_var=LD_RUN_PATH
16197 ;;
16198 siemens)
16199 need_lib_prefix=no
16200 ;;
16201 motorola)
16202 need_lib_prefix=no
16203 need_version=no
16204 shlibpath_overrides_runpath=no
16205 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16206 ;;
16207 esac
16208 ;;
16209
16210sysv4*MP*)
16211 if test -d /usr/nec ;then
16212 version_type=linux
16213 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16214 soname_spec='$libname${shared_ext}.$major'
16215 shlibpath_var=LD_LIBRARY_PATH
16216 fi
16217 ;;
16218
16219sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16220 version_type=freebsd-elf
16221 need_lib_prefix=no
16222 need_version=no
16223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16224 soname_spec='${libname}${release}${shared_ext}$major'
16225 shlibpath_var=LD_LIBRARY_PATH
16226 hardcode_into_libs=yes
16227 if test "$with_gnu_ld" = yes; then
16228 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16229 shlibpath_overrides_runpath=no
16230 else
16231 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16232 shlibpath_overrides_runpath=yes
16233 case $host_os in
16234 sco3.2v5*)
16235 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16236 ;;
16237 esac
16238 fi
16239 sys_lib_dlsearch_path_spec='/usr/lib'
16240 ;;
16241
16242uts4*)
16243 version_type=linux
16244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16245 soname_spec='${libname}${release}${shared_ext}$major'
16246 shlibpath_var=LD_LIBRARY_PATH
16247 ;;
16248
16249*)
16250 dynamic_linker=no
16251 ;;
16252esac
16253{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16254echo "${ECHO_T}$dynamic_linker" >&6; }
16255test "$dynamic_linker" = no && can_build_shared=no
16256
16257if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16258 echo $ECHO_N "(cached) $ECHO_C" >&6
16259else
16260 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16261fi
16262
16263sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16264if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16265 echo $ECHO_N "(cached) $ECHO_C" >&6
16266else
16267 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16268fi
16269
16270sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16271
16272variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16273if test "$GCC" = yes; then
16274 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16275fi
16276
16277{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16278echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16279hardcode_action_F77=
16280if test -n "$hardcode_libdir_flag_spec_F77" || \
16281 test -n "$runpath_var_F77" || \
16282 test "X$hardcode_automatic_F77" = "Xyes" ; then
16283
16284 # We can hardcode non-existant directories.
16285 if test "$hardcode_direct_F77" != no &&
16286 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16287 # have to relink, otherwise we might link with an installed library
16288 # when we should be linking with a yet-to-be-installed one
16289 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16290 test "$hardcode_minus_L_F77" != no; then
16291 # Linking always hardcodes the temporary library directory.
16292 hardcode_action_F77=relink
16293 else
16294 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16295 hardcode_action_F77=immediate
16296 fi
16297else
16298 # We cannot hardcode anything, or else we can only hardcode existing
16299 # directories.
16300 hardcode_action_F77=unsupported
16301fi
16302{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16303echo "${ECHO_T}$hardcode_action_F77" >&6; }
16304
16305if test "$hardcode_action_F77" = relink; then
16306 # Fast installation is not supported
16307 enable_fast_install=no
16308elif test "$shlibpath_overrides_runpath" = yes ||
16309 test "$enable_shared" = no; then
16310 # Fast installation is not necessary
16311 enable_fast_install=needless
16312fi
16313
16314
16315# The else clause should only fire when bootstrapping the
16316# libtool distribution, otherwise you forgot to ship ltmain.sh
16317# with your package, and you will get complaints that there are
16318# no rules to generate ltmain.sh.
16319if test -f "$ltmain"; then
16320 # See if we are running on zsh, and set the options which allow our commands through
16321 # without removal of \ escapes.
16322 if test -n "${ZSH_VERSION+set}" ; then
16323 setopt NO_GLOB_SUBST
16324 fi
16325 # Now quote all the things that may contain metacharacters while being
16326 # careful not to overquote the AC_SUBSTed values. We take copies of the
16327 # variables and quote the copies for generation of the libtool script.
16328 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16329 SED SHELL STRIP \
16330 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16331 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16332 deplibs_check_method reload_flag reload_cmds need_locks \
16333 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16334 lt_cv_sys_global_symbol_to_c_name_address \
16335 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16336 old_postinstall_cmds old_postuninstall_cmds \
16337 compiler_F77 \
16338 CC_F77 \
16339 LD_F77 \
16340 lt_prog_compiler_wl_F77 \
16341 lt_prog_compiler_pic_F77 \
16342 lt_prog_compiler_static_F77 \
16343 lt_prog_compiler_no_builtin_flag_F77 \
16344 export_dynamic_flag_spec_F77 \
16345 thread_safe_flag_spec_F77 \
16346 whole_archive_flag_spec_F77 \
16347 enable_shared_with_static_runtimes_F77 \
16348 old_archive_cmds_F77 \
16349 old_archive_from_new_cmds_F77 \
16350 predep_objects_F77 \
16351 postdep_objects_F77 \
16352 predeps_F77 \
16353 postdeps_F77 \
16354 compiler_lib_search_path_F77 \
16355 compiler_lib_search_dirs_F77 \
16356 archive_cmds_F77 \
16357 archive_expsym_cmds_F77 \
16358 postinstall_cmds_F77 \
16359 postuninstall_cmds_F77 \
16360 old_archive_from_expsyms_cmds_F77 \
16361 allow_undefined_flag_F77 \
16362 no_undefined_flag_F77 \
16363 export_symbols_cmds_F77 \
16364 hardcode_libdir_flag_spec_F77 \
16365 hardcode_libdir_flag_spec_ld_F77 \
16366 hardcode_libdir_separator_F77 \
16367 hardcode_automatic_F77 \
16368 module_cmds_F77 \
16369 module_expsym_cmds_F77 \
16370 lt_cv_prog_compiler_c_o_F77 \
16371 fix_srcfile_path_F77 \
16372 exclude_expsyms_F77 \
16373 include_expsyms_F77; do
16374
16375 case $var in
16376 old_archive_cmds_F77 | \
16377 old_archive_from_new_cmds_F77 | \
16378 archive_cmds_F77 | \
16379 archive_expsym_cmds_F77 | \
16380 module_cmds_F77 | \
16381 module_expsym_cmds_F77 | \
16382 old_archive_from_expsyms_cmds_F77 | \
16383 export_symbols_cmds_F77 | \
16384 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16385 postinstall_cmds | postuninstall_cmds | \
16386 old_postinstall_cmds | old_postuninstall_cmds | \
16387 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16388 # Double-quote double-evaled strings.
16389 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16390 ;;
16391 *)
16392 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16393 ;;
16394 esac
16395 done
16396
16397 case $lt_echo in
16398 *'\$0 --fallback-echo"')
16399 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16400 ;;
16401 esac
16402
16403cfgfile="$ofile"
16404
16405 cat <<__EOF__ >> "$cfgfile"
16406# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16407
16408# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16409
16410# Shell to use when invoking shell scripts.
16411SHELL=$lt_SHELL
16412
16413# Whether or not to build shared libraries.
16414build_libtool_libs=$enable_shared
16415
16416# Whether or not to build static libraries.
16417build_old_libs=$enable_static
16418
16419# Whether or not to add -lc for building shared libraries.
16420build_libtool_need_lc=$archive_cmds_need_lc_F77
16421
16422# Whether or not to disallow shared libs when runtime libs are static
16423allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16424
16425# Whether or not to optimize for fast installation.
16426fast_install=$enable_fast_install
16427
16428# The host system.
16429host_alias=$host_alias
16430host=$host
16431host_os=$host_os
16432
16433# The build system.
16434build_alias=$build_alias
16435build=$build
16436build_os=$build_os
16437
16438# An echo program that does not interpret backslashes.
16439echo=$lt_echo
16440
16441# The archiver.
16442AR=$lt_AR
16443AR_FLAGS=$lt_AR_FLAGS
16444
16445# A C compiler.
16446LTCC=$lt_LTCC
16447
16448# LTCC compiler flags.
16449LTCFLAGS=$lt_LTCFLAGS
16450
16451# A language-specific compiler.
16452CC=$lt_compiler_F77
16453
16454# Is the compiler the GNU C compiler?
16455with_gcc=$GCC_F77
16456
16457# An ERE matcher.
16458EGREP=$lt_EGREP
16459
16460# The linker used to build libraries.
16461LD=$lt_LD_F77
16462
16463# Whether we need hard or soft links.
16464LN_S=$lt_LN_S
16465
16466# A BSD-compatible nm program.
16467NM=$lt_NM
16468
16469# A symbol stripping program
16470STRIP=$lt_STRIP
16471
16472# Used to examine libraries when file_magic_cmd begins "file"
16473MAGIC_CMD=$MAGIC_CMD
16474
16475# Used on cygwin: DLL creation program.
16476DLLTOOL="$DLLTOOL"
16477
16478# Used on cygwin: object dumper.
16479OBJDUMP="$OBJDUMP"
16480
16481# Used on cygwin: assembler.
16482AS="$AS"
16483
16484# The name of the directory that contains temporary libtool files.
16485objdir=$objdir
16486
16487# How to create reloadable object files.
16488reload_flag=$lt_reload_flag
16489reload_cmds=$lt_reload_cmds
16490
16491# How to pass a linker flag through the compiler.
16492wl=$lt_lt_prog_compiler_wl_F77
16493
16494# Object file suffix (normally "o").
16495objext="$ac_objext"
16496
16497# Old archive suffix (normally "a").
16498libext="$libext"
16499
16500# Shared library suffix (normally ".so").
16501shrext_cmds='$shrext_cmds'
16502
16503# Executable file suffix (normally "").
16504exeext="$exeext"
16505
16506# Additional compiler flags for building library objects.
16507pic_flag=$lt_lt_prog_compiler_pic_F77
16508pic_mode=$pic_mode
16509
16510# What is the maximum length of a command?
16511max_cmd_len=$lt_cv_sys_max_cmd_len
16512
16513# Does compiler simultaneously support -c and -o options?
16514compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16515
16516# Must we lock files when doing compilation?
16517need_locks=$lt_need_locks
16518
16519# Do we need the lib prefix for modules?
16520need_lib_prefix=$need_lib_prefix
16521
16522# Do we need a version for libraries?
16523need_version=$need_version
16524
16525# Whether dlopen is supported.
16526dlopen_support=$enable_dlopen
16527
16528# Whether dlopen of programs is supported.
16529dlopen_self=$enable_dlopen_self
16530
16531# Whether dlopen of statically linked programs is supported.
16532dlopen_self_static=$enable_dlopen_self_static
16533
16534# Compiler flag to prevent dynamic linking.
16535link_static_flag=$lt_lt_prog_compiler_static_F77
16536
16537# Compiler flag to turn off builtin functions.
16538no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16539
16540# Compiler flag to allow reflexive dlopens.
16541export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16542
16543# Compiler flag to generate shared objects directly from archives.
16544whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16545
16546# Compiler flag to generate thread-safe objects.
16547thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16548
16549# Library versioning type.
16550version_type=$version_type
16551
16552# Format of library name prefix.
16553libname_spec=$lt_libname_spec
16554
16555# List of archive names. First name is the real one, the rest are links.
16556# The last name is the one that the linker finds with -lNAME.
16557library_names_spec=$lt_library_names_spec
16558
16559# The coded name of the library, if different from the real name.
16560soname_spec=$lt_soname_spec
16561
16562# Commands used to build and install an old-style archive.
16563RANLIB=$lt_RANLIB
16564old_archive_cmds=$lt_old_archive_cmds_F77
16565old_postinstall_cmds=$lt_old_postinstall_cmds
16566old_postuninstall_cmds=$lt_old_postuninstall_cmds
16567
16568# Create an old-style archive from a shared archive.
16569old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16570
16571# Create a temporary old-style archive to link instead of a shared archive.
16572old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16573
16574# Commands used to build and install a shared archive.
16575archive_cmds=$lt_archive_cmds_F77
16576archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16577postinstall_cmds=$lt_postinstall_cmds
16578postuninstall_cmds=$lt_postuninstall_cmds
16579
16580# Commands used to build a loadable module (assumed same as above if empty)
16581module_cmds=$lt_module_cmds_F77
16582module_expsym_cmds=$lt_module_expsym_cmds_F77
16583
16584# Commands to strip libraries.
16585old_striplib=$lt_old_striplib
16586striplib=$lt_striplib
16587
16588# Dependencies to place before the objects being linked to create a
16589# shared library.
16590predep_objects=$lt_predep_objects_F77
16591
16592# Dependencies to place after the objects being linked to create a
16593# shared library.
16594postdep_objects=$lt_postdep_objects_F77
16595
16596# Dependencies to place before the objects being linked to create a
16597# shared library.
16598predeps=$lt_predeps_F77
16599
16600# Dependencies to place after the objects being linked to create a
16601# shared library.
16602postdeps=$lt_postdeps_F77
16603
16604# The directories searched by this compiler when creating a shared
16605# library
16606compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16607
16608# The library search path used internally by the compiler when linking
16609# a shared library.
16610compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16611
16612# Method to check whether dependent libraries are shared objects.
16613deplibs_check_method=$lt_deplibs_check_method
16614
16615# Command to use when deplibs_check_method == file_magic.
16616file_magic_cmd=$lt_file_magic_cmd
16617
16618# Flag that allows shared libraries with undefined symbols to be built.
16619allow_undefined_flag=$lt_allow_undefined_flag_F77
16620
16621# Flag that forces no undefined symbols.
16622no_undefined_flag=$lt_no_undefined_flag_F77
16623
16624# Commands used to finish a libtool library installation in a directory.
16625finish_cmds=$lt_finish_cmds
16626
16627# Same as above, but a single script fragment to be evaled but not shown.
16628finish_eval=$lt_finish_eval
16629
16630# Take the output of nm and produce a listing of raw symbols and C names.
16631global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16632
16633# Transform the output of nm in a proper C declaration
16634global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16635
16636# Transform the output of nm in a C name address pair
16637global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16638
16639# This is the shared library runtime path variable.
16640runpath_var=$runpath_var
16641
16642# This is the shared library path variable.
16643shlibpath_var=$shlibpath_var
16644
16645# Is shlibpath searched before the hard-coded library search path?
16646shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16647
16648# How to hardcode a shared library path into an executable.
16649hardcode_action=$hardcode_action_F77
16650
16651# Whether we should hardcode library paths into libraries.
16652hardcode_into_libs=$hardcode_into_libs
16653
16654# Flag to hardcode \$libdir into a binary during linking.
16655# This must work even if \$libdir does not exist.
16656hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16657
16658# If ld is used when linking, flag to hardcode \$libdir into
16659# a binary during linking. This must work even if \$libdir does
16660# not exist.
16661hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16662
16663# Whether we need a single -rpath flag with a separated argument.
16664hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16665
16666# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16667# resulting binary.
16668hardcode_direct=$hardcode_direct_F77
16669
16670# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16671# resulting binary.
16672hardcode_minus_L=$hardcode_minus_L_F77
16673
16674# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16675# the resulting binary.
16676hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16677
16678# Set to yes if building a shared library automatically hardcodes DIR into the library
16679# and all subsequent libraries and executables linked against it.
16680hardcode_automatic=$hardcode_automatic_F77
16681
16682# Variables whose values should be saved in libtool wrapper scripts and
16683# restored at relink time.
16684variables_saved_for_relink="$variables_saved_for_relink"
16685
16686# Whether libtool must link a program against all its dependency libraries.
16687link_all_deplibs=$link_all_deplibs_F77
16688
16689# Compile-time system search path for libraries
16690sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16691
16692# Run-time system search path for libraries
16693sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16694
16695# Fix the shell variable \$srcfile for the compiler.
16696fix_srcfile_path=$lt_fix_srcfile_path
16697
16698# Set to yes if exported symbols are required.
16699always_export_symbols=$always_export_symbols_F77
16700
16701# The commands to list exported symbols.
16702export_symbols_cmds=$lt_export_symbols_cmds_F77
16703
16704# The commands to extract the exported symbol list from a shared archive.
16705extract_expsyms_cmds=$lt_extract_expsyms_cmds
16706
16707# Symbols that should not be listed in the preloaded symbols.
16708exclude_expsyms=$lt_exclude_expsyms_F77
16709
16710# Symbols that must always be exported.
16711include_expsyms=$lt_include_expsyms_F77
16712
16713# ### END LIBTOOL TAG CONFIG: $tagname
16714
16715__EOF__
16716
16717
16718else
16719 # If there is no Makefile yet, we rely on a make rule to execute
16720 # `config.status --recheck' to rerun these tests and create the
16721 # libtool script then.
16722 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16723 if test -f "$ltmain_in"; then
16724 test -f Makefile && make "$ltmain"
16725 fi
16726fi
16727
16728
16729ac_ext=c
16730ac_cpp='$CPP $CPPFLAGS'
16731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16733ac_compiler_gnu=$ac_cv_c_compiler_gnu
16734
16735CC="$lt_save_CC"
16736
16737 else
16738 tagname=""
16739 fi
16740 ;;
16741
16742 GCJ)
16743 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16744
16745
16746# Source file extension for Java test sources.
16747ac_ext=java
16748
16749# Object file extension for compiled Java test sources.
16750objext=o
16751objext_GCJ=$objext
16752
16753# Code to be used in simple compile tests
16754lt_simple_compile_test_code="class foo {}"
16755
16756# Code to be used in simple link tests
16757lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16758
16759# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16760
16761# If no C compiler was specified, use CC.
16762LTCC=${LTCC-"$CC"}
16763
16764# If no C compiler flags were specified, use CFLAGS.
16765LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16766
16767# Allow CC to be a program name with arguments.
16768compiler=$CC
16769
16770
16771# save warnings/boilerplate of simple test code
16772ac_outfile=conftest.$ac_objext
16773echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16774eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16775_lt_compiler_boilerplate=`cat conftest.err`
16776$rm conftest*
16777
16778ac_outfile=conftest.$ac_objext
16779echo "$lt_simple_link_test_code" >conftest.$ac_ext
16780eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16781_lt_linker_boilerplate=`cat conftest.err`
16782$rm -r conftest*
16783
16784
16785# Allow CC to be a program name with arguments.
16786lt_save_CC="$CC"
16787CC=${GCJ-"gcj"}
16788compiler=$CC
16789compiler_GCJ=$CC
16790for cc_temp in $compiler""; do
16791 case $cc_temp in
16792 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16793 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16794 \-*) ;;
16795 *) break;;
16796 esac
16797done
16798cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16799
16800
16801# GCJ did not exist at the time GCC didn't implicitly link libc in.
16802archive_cmds_need_lc_GCJ=no
16803
16804old_archive_cmds_GCJ=$old_archive_cmds
16805
16806
16807lt_prog_compiler_no_builtin_flag_GCJ=
16808
16809if test "$GCC" = yes; then
16810 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16811
16812
16813{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16814echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16815if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16816 echo $ECHO_N "(cached) $ECHO_C" >&6
16817else
16818 lt_cv_prog_compiler_rtti_exceptions=no
16819 ac_outfile=conftest.$ac_objext
16820 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16821 lt_compiler_flag="-fno-rtti -fno-exceptions"
16822 # Insert the option either (1) after the last *FLAGS variable, or
16823 # (2) before a word containing "conftest.", or (3) at the end.
16824 # Note that $ac_compile itself does not contain backslashes and begins
16825 # with a dollar sign (not a hyphen), so the echo should work correctly.
16826 # The option is referenced via a variable to avoid confusing sed.
16827 lt_compile=`echo "$ac_compile" | $SED \
16828 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16829 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16830 -e 's:$: $lt_compiler_flag:'`
16831 (eval echo "\"\$as_me:16831: $lt_compile\"" >&5)
16832 (eval "$lt_compile" 2>conftest.err)
16833 ac_status=$?
16834 cat conftest.err >&5
16835 echo "$as_me:16835: \$? = $ac_status" >&5
16836 if (exit $ac_status) && test -s "$ac_outfile"; then
16837 # The compiler can only warn and ignore the option if not recognized
16838 # So say no if there are warnings other than the usual output.
16839 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16840 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16841 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16842 lt_cv_prog_compiler_rtti_exceptions=yes
16843 fi
16844 fi
16845 $rm conftest*
16846
16847fi
16848{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16849echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16850
16851if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16852 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16853else
16854 :
16855fi
16856
16857fi
16858
16859lt_prog_compiler_wl_GCJ=
16860lt_prog_compiler_pic_GCJ=
16861lt_prog_compiler_static_GCJ=
16862
16863{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16864echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16865
16866 if test "$GCC" = yes; then
16867 lt_prog_compiler_wl_GCJ='-Wl,'
16868 lt_prog_compiler_static_GCJ='-static'
16869
16870 case $host_os in
16871 aix*)
16872 # All AIX code is PIC.
16873 if test "$host_cpu" = ia64; then
16874 # AIX 5 now supports IA64 processor
16875 lt_prog_compiler_static_GCJ='-Bstatic'
16876 fi
16877 ;;
16878
16879 amigaos*)
16880 # FIXME: we need at least 68020 code to build shared libraries, but
16881 # adding the `-m68020' flag to GCC prevents building anything better,
16882 # like `-m68040'.
16883 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16884 ;;
16885
16886 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16887 # PIC is the default for these OSes.
16888 ;;
16889
16890 mingw* | cygwin* | pw32* | os2*)
16891 # This hack is so that the source file can tell whether it is being
16892 # built for inclusion in a dll (and should export symbols for example).
16893 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16894 # (--disable-auto-import) libraries
16895
16896 ;;
16897
16898 darwin* | rhapsody*)
16899 # PIC is the default on this platform
16900 # Common symbols not allowed in MH_DYLIB files
16901 lt_prog_compiler_pic_GCJ='-fno-common'
16902 ;;
16903
16904 interix[3-9]*)
16905 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16906 # Instead, we relocate shared libraries at runtime.
16907 ;;
16908
16909 msdosdjgpp*)
16910 # Just because we use GCC doesn't mean we suddenly get shared libraries
16911 # on systems that don't support them.
16912 lt_prog_compiler_can_build_shared_GCJ=no
16913 enable_shared=no
16914 ;;
16915
16916 sysv4*MP*)
16917 if test -d /usr/nec; then
16918 lt_prog_compiler_pic_GCJ=-Kconform_pic
16919 fi
16920 ;;
16921
16922 hpux*)
16923 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16924 # not for PA HP-UX.
16925 case $host_cpu in
16926 hppa*64*|ia64*)
16927 # +Z the default
16928 ;;
16929 *)
16930 lt_prog_compiler_pic_GCJ='-fPIC'
16931 ;;
16932 esac
16933 ;;
16934
16935 *)
16936 lt_prog_compiler_pic_GCJ='-fPIC'
16937 ;;
16938 esac
16939 else
16940 # PORTME Check for flag to pass linker flags through the system compiler.
16941 case $host_os in
16942 aix*)
16943 lt_prog_compiler_wl_GCJ='-Wl,'
16944 if test "$host_cpu" = ia64; then
16945 # AIX 5 now supports IA64 processor
16946 lt_prog_compiler_static_GCJ='-Bstatic'
16947 else
16948 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16949 fi
16950 ;;
16951 darwin*)
16952 # PIC is the default on this platform
16953 # Common symbols not allowed in MH_DYLIB files
16954 case $cc_basename in
16955 xlc*)
16956 lt_prog_compiler_pic_GCJ='-qnocommon'
16957 lt_prog_compiler_wl_GCJ='-Wl,'
16958 ;;
16959 esac
16960 ;;
16961
16962 mingw* | cygwin* | pw32* | os2*)
16963 # This hack is so that the source file can tell whether it is being
16964 # built for inclusion in a dll (and should export symbols for example).
16965
16966 ;;
16967
16968 hpux9* | hpux10* | hpux11*)
16969 lt_prog_compiler_wl_GCJ='-Wl,'
16970 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16971 # not for PA HP-UX.
16972 case $host_cpu in
16973 hppa*64*|ia64*)
16974 # +Z the default
16975 ;;
16976 *)
16977 lt_prog_compiler_pic_GCJ='+Z'
16978 ;;
16979 esac
16980 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16981 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16982 ;;
16983
16984 irix5* | irix6* | nonstopux*)
16985 lt_prog_compiler_wl_GCJ='-Wl,'
16986 # PIC (with -KPIC) is the default.
16987 lt_prog_compiler_static_GCJ='-non_shared'
16988 ;;
16989
16990 newsos6)
16991 lt_prog_compiler_pic_GCJ='-KPIC'
16992 lt_prog_compiler_static_GCJ='-Bstatic'
16993 ;;
16994
16995 linux* | k*bsd*-gnu)
16996 case $cc_basename in
16997 icc* | ecc*)
16998 lt_prog_compiler_wl_GCJ='-Wl,'
16999 lt_prog_compiler_pic_GCJ='-KPIC'
17000 lt_prog_compiler_static_GCJ='-static'
17001 ;;
17002 pgcc* | pgf77* | pgf90* | pgf95*)
17003 # Portland Group compilers (*not* the Pentium gcc compiler,
17004 # which looks to be a dead project)
17005 lt_prog_compiler_wl_GCJ='-Wl,'
17006 lt_prog_compiler_pic_GCJ='-fpic'
17007 lt_prog_compiler_static_GCJ='-Bstatic'
17008 ;;
17009 ccc*)
17010 lt_prog_compiler_wl_GCJ='-Wl,'
17011 # All Alpha code is PIC.
17012 lt_prog_compiler_static_GCJ='-non_shared'
17013 ;;
17014 *)
17015 case `$CC -V 2>&1 | sed 5q` in
17016 *Sun\ C*)
17017 # Sun C 5.9
17018 lt_prog_compiler_pic_GCJ='-KPIC'
17019 lt_prog_compiler_static_GCJ='-Bstatic'
17020 lt_prog_compiler_wl_GCJ='-Wl,'
17021 ;;
17022 *Sun\ F*)
17023 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17024 lt_prog_compiler_pic_GCJ='-KPIC'
17025 lt_prog_compiler_static_GCJ='-Bstatic'
17026 lt_prog_compiler_wl_GCJ=''
17027 ;;
17028 esac
17029 ;;
17030 esac
17031 ;;
17032
17033 osf3* | osf4* | osf5*)
17034 lt_prog_compiler_wl_GCJ='-Wl,'
17035 # All OSF/1 code is PIC.
17036 lt_prog_compiler_static_GCJ='-non_shared'
17037 ;;
17038
17039 rdos*)
17040 lt_prog_compiler_static_GCJ='-non_shared'
17041 ;;
17042
17043 solaris*)
17044 lt_prog_compiler_pic_GCJ='-KPIC'
17045 lt_prog_compiler_static_GCJ='-Bstatic'
17046 case $cc_basename in
17047 f77* | f90* | f95*)
17048 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17049 *)
17050 lt_prog_compiler_wl_GCJ='-Wl,';;
17051 esac
17052 ;;
17053
17054 sunos4*)
17055 lt_prog_compiler_wl_GCJ='-Qoption ld '
17056 lt_prog_compiler_pic_GCJ='-PIC'
17057 lt_prog_compiler_static_GCJ='-Bstatic'
17058 ;;
17059
17060 sysv4 | sysv4.2uw2* | sysv4.3*)
17061 lt_prog_compiler_wl_GCJ='-Wl,'
17062 lt_prog_compiler_pic_GCJ='-KPIC'
17063 lt_prog_compiler_static_GCJ='-Bstatic'
17064 ;;
17065
17066 sysv4*MP*)
17067 if test -d /usr/nec ;then
17068 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17069 lt_prog_compiler_static_GCJ='-Bstatic'
17070 fi
17071 ;;
17072
17073 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17074 lt_prog_compiler_wl_GCJ='-Wl,'
17075 lt_prog_compiler_pic_GCJ='-KPIC'
17076 lt_prog_compiler_static_GCJ='-Bstatic'
17077 ;;
17078
17079 unicos*)
17080 lt_prog_compiler_wl_GCJ='-Wl,'
17081 lt_prog_compiler_can_build_shared_GCJ=no
17082 ;;
17083
17084 uts4*)
17085 lt_prog_compiler_pic_GCJ='-pic'
17086 lt_prog_compiler_static_GCJ='-Bstatic'
17087 ;;
17088
17089 *)
17090 lt_prog_compiler_can_build_shared_GCJ=no
17091 ;;
17092 esac
17093 fi
17094
17095{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17096echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17097
17098#
17099# Check to make sure the PIC flag actually works.
17100#
17101if test -n "$lt_prog_compiler_pic_GCJ"; then
17102
17103{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17104echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17105if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17106 echo $ECHO_N "(cached) $ECHO_C" >&6
17107else
17108 lt_cv_prog_compiler_pic_works_GCJ=no
17109 ac_outfile=conftest.$ac_objext
17110 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17111 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17112 # Insert the option either (1) after the last *FLAGS variable, or
17113 # (2) before a word containing "conftest.", or (3) at the end.
17114 # Note that $ac_compile itself does not contain backslashes and begins
17115 # with a dollar sign (not a hyphen), so the echo should work correctly.
17116 # The option is referenced via a variable to avoid confusing sed.
17117 lt_compile=`echo "$ac_compile" | $SED \
17118 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17120 -e 's:$: $lt_compiler_flag:'`
17121 (eval echo "\"\$as_me:17121: $lt_compile\"" >&5)
17122 (eval "$lt_compile" 2>conftest.err)
17123 ac_status=$?
17124 cat conftest.err >&5
17125 echo "$as_me:17125: \$? = $ac_status" >&5
17126 if (exit $ac_status) && test -s "$ac_outfile"; then
17127 # The compiler can only warn and ignore the option if not recognized
17128 # So say no if there are warnings other than the usual output.
17129 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17130 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17131 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17132 lt_cv_prog_compiler_pic_works_GCJ=yes
17133 fi
17134 fi
17135 $rm conftest*
17136
17137fi
17138{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17139echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17140
17141if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17142 case $lt_prog_compiler_pic_GCJ in
17143 "" | " "*) ;;
17144 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17145 esac
17146else
17147 lt_prog_compiler_pic_GCJ=
17148 lt_prog_compiler_can_build_shared_GCJ=no
17149fi
17150
17151fi
17152case $host_os in
17153 # For platforms which do not support PIC, -DPIC is meaningless:
17154 *djgpp*)
17155 lt_prog_compiler_pic_GCJ=
17156 ;;
17157 *)
17158 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17159 ;;
17160esac
17161
17162#
17163# Check to make sure the static flag actually works.
17164#
17165wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17166{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17167echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17168if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17169 echo $ECHO_N "(cached) $ECHO_C" >&6
17170else
17171 lt_cv_prog_compiler_static_works_GCJ=no
17172 save_LDFLAGS="$LDFLAGS"
17173 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17174 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17175 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17176 # The linker can only warn and ignore the option if not recognized
17177 # So say no if there are warnings
17178 if test -s conftest.err; then
17179 # Append any errors to the config.log.
17180 cat conftest.err 1>&5
17181 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17182 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17183 if diff conftest.exp conftest.er2 >/dev/null; then
17184 lt_cv_prog_compiler_static_works_GCJ=yes
17185 fi
17186 else
17187 lt_cv_prog_compiler_static_works_GCJ=yes
17188 fi
17189 fi
17190 $rm -r conftest*
17191 LDFLAGS="$save_LDFLAGS"
17192
17193fi
17194{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17195echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17196
17197if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17198 :
17199else
17200 lt_prog_compiler_static_GCJ=
17201fi
17202
17203
17204{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17205echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17206if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17207 echo $ECHO_N "(cached) $ECHO_C" >&6
17208else
17209 lt_cv_prog_compiler_c_o_GCJ=no
17210 $rm -r conftest 2>/dev/null
17211 mkdir conftest
17212 cd conftest
17213 mkdir out
17214 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17215
17216 lt_compiler_flag="-o out/conftest2.$ac_objext"
17217 # Insert the option either (1) after the last *FLAGS variable, or
17218 # (2) before a word containing "conftest.", or (3) at the end.
17219 # Note that $ac_compile itself does not contain backslashes and begins
17220 # with a dollar sign (not a hyphen), so the echo should work correctly.
17221 lt_compile=`echo "$ac_compile" | $SED \
17222 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17223 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17224 -e 's:$: $lt_compiler_flag:'`
17225 (eval echo "\"\$as_me:17225: $lt_compile\"" >&5)
17226 (eval "$lt_compile" 2>out/conftest.err)
17227 ac_status=$?
17228 cat out/conftest.err >&5
17229 echo "$as_me:17229: \$? = $ac_status" >&5
17230 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17231 then
17232 # The compiler can only warn and ignore the option if not recognized
17233 # So say no if there are warnings
17234 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17235 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17236 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17237 lt_cv_prog_compiler_c_o_GCJ=yes
17238 fi
17239 fi
17240 chmod u+w . 2>&5
17241 $rm conftest*
17242 # SGI C++ compiler will create directory out/ii_files/ for
17243 # template instantiation
17244 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17245 $rm out/* && rmdir out
17246 cd ..
17247 rmdir conftest
17248 $rm conftest*
17249
17250fi
17251{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17252echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17253
17254
17255hard_links="nottested"
17256if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17257 # do not overwrite the value of need_locks provided by the user
17258 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17259echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17260 hard_links=yes
17261 $rm conftest*
17262 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17263 touch conftest.a
17264 ln conftest.a conftest.b 2>&5 || hard_links=no
17265 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17266 { echo "$as_me:$LINENO: result: $hard_links" >&5
17267echo "${ECHO_T}$hard_links" >&6; }
17268 if test "$hard_links" = no; then
17269 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17270echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17271 need_locks=warn
17272 fi
17273else
17274 need_locks=no
17275fi
17276
17277{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17278echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17279
17280 runpath_var=
17281 allow_undefined_flag_GCJ=
17282 enable_shared_with_static_runtimes_GCJ=no
17283 archive_cmds_GCJ=
17284 archive_expsym_cmds_GCJ=
17285 old_archive_From_new_cmds_GCJ=
17286 old_archive_from_expsyms_cmds_GCJ=
17287 export_dynamic_flag_spec_GCJ=
17288 whole_archive_flag_spec_GCJ=
17289 thread_safe_flag_spec_GCJ=
17290 hardcode_libdir_flag_spec_GCJ=
17291 hardcode_libdir_flag_spec_ld_GCJ=
17292 hardcode_libdir_separator_GCJ=
17293 hardcode_direct_GCJ=no
17294 hardcode_minus_L_GCJ=no
17295 hardcode_shlibpath_var_GCJ=unsupported
17296 link_all_deplibs_GCJ=unknown
17297 hardcode_automatic_GCJ=no
17298 module_cmds_GCJ=
17299 module_expsym_cmds_GCJ=
17300 always_export_symbols_GCJ=no
17301 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17302 # include_expsyms should be a list of space-separated symbols to be *always*
17303 # included in the symbol list
17304 include_expsyms_GCJ=
17305 # exclude_expsyms can be an extended regexp of symbols to exclude
17306 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17307 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17308 # as well as any symbol that contains `d'.
17309 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17310 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17311 # platforms (ab)use it in PIC code, but their linkers get confused if
17312 # the symbol is explicitly referenced. Since portable code cannot
17313 # rely on this symbol name, it's probably fine to never include it in
17314 # preloaded symbol tables.
17315 # Exclude shared library initialization/finalization symbols.
17316 extract_expsyms_cmds=
17317 # Just being paranoid about ensuring that cc_basename is set.
17318 for cc_temp in $compiler""; do
17319 case $cc_temp in
17320 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17321 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17322 \-*) ;;
17323 *) break;;
17324 esac
17325done
17326cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17327
17328 case $host_os in
17329 cygwin* | mingw* | pw32*)
17330 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17331 # When not using gcc, we currently assume that we are using
17332 # Microsoft Visual C++.
17333 if test "$GCC" != yes; then
17334 with_gnu_ld=no
17335 fi
17336 ;;
17337 interix*)
17338 # we just hope/assume this is gcc and not c89 (= MSVC++)
17339 with_gnu_ld=yes
17340 ;;
17341 openbsd*)
17342 with_gnu_ld=no
17343 ;;
17344 esac
17345
17346 ld_shlibs_GCJ=yes
17347 if test "$with_gnu_ld" = yes; then
17348 # If archive_cmds runs LD, not CC, wlarc should be empty
17349 wlarc='${wl}'
17350
17351 # Set some defaults for GNU ld with shared library support. These
17352 # are reset later if shared libraries are not supported. Putting them
17353 # here allows them to be overridden if necessary.
17354 runpath_var=LD_RUN_PATH
17355 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17356 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17357 # ancient GNU ld didn't support --whole-archive et. al.
17358 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17359 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17360 else
17361 whole_archive_flag_spec_GCJ=
17362 fi
17363 supports_anon_versioning=no
17364 case `$LD -v 2>/dev/null` in
17365 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17366 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17367 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17368 *\ 2.11.*) ;; # other 2.11 versions
17369 *) supports_anon_versioning=yes ;;
17370 esac
17371
17372 # See if GNU ld supports shared libraries.
17373 case $host_os in
17374 aix[3-9]*)
17375 # On AIX/PPC, the GNU linker is very broken
17376 if test "$host_cpu" != ia64; then
17377 ld_shlibs_GCJ=no
17378 cat <<EOF 1>&2
17379
17380*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17381*** to be unable to reliably create shared libraries on AIX.
17382*** Therefore, libtool is disabling shared libraries support. If you
17383*** really care for shared libraries, you may want to modify your PATH
17384*** so that a non-GNU linker is found, and then restart.
17385
17386EOF
17387 fi
17388 ;;
17389
17390 amigaos*)
17391 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)'
17392 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17393 hardcode_minus_L_GCJ=yes
17394
17395 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17396 # that the semantics of dynamic libraries on AmigaOS, at least up
17397 # to version 4, is to share data among multiple programs linked
17398 # with the same dynamic library. Since this doesn't match the
17399 # behavior of shared libraries on other platforms, we can't use
17400 # them.
17401 ld_shlibs_GCJ=no
17402 ;;
17403
17404 beos*)
17405 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17406 allow_undefined_flag_GCJ=unsupported
17407 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17408 # support --undefined. This deserves some investigation. FIXME
17409 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17410 else
17411 ld_shlibs_GCJ=no
17412 fi
17413 ;;
17414
17415 cygwin* | mingw* | pw32*)
17416 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17417 # as there is no search path for DLLs.
17418 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17419 allow_undefined_flag_GCJ=unsupported
17420 always_export_symbols_GCJ=no
17421 enable_shared_with_static_runtimes_GCJ=yes
17422 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17423
17424 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17425 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17426 # If the export-symbols file already is a .def file (1st line
17427 # is EXPORTS), use it as is; otherwise, prepend...
17428 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17429 cp $export_symbols $output_objdir/$soname.def;
17430 else
17431 echo EXPORTS > $output_objdir/$soname.def;
17432 cat $export_symbols >> $output_objdir/$soname.def;
17433 fi~
17434 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17435 else
17436 ld_shlibs_GCJ=no
17437 fi
17438 ;;
17439
17440 interix[3-9]*)
17441 hardcode_direct_GCJ=no
17442 hardcode_shlibpath_var_GCJ=no
17443 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17444 export_dynamic_flag_spec_GCJ='${wl}-E'
17445 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17446 # Instead, shared libraries are loaded at an image base (0x10000000 by
17447 # default) and relocated if they conflict, which is a slow very memory
17448 # consuming and fragmenting process. To avoid this, we pick a random,
17449 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17450 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17451 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'
17452 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'
17453 ;;
17454
17455 gnu* | linux* | k*bsd*-gnu)
17456 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17457 tmp_addflag=
17458 case $cc_basename,$host_cpu in
17459 pgcc*) # Portland Group C compiler
17460 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'
17461 tmp_addflag=' $pic_flag'
17462 ;;
17463 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17464 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'
17465 tmp_addflag=' $pic_flag -Mnomain' ;;
17466 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17467 tmp_addflag=' -i_dynamic' ;;
17468 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17469 tmp_addflag=' -i_dynamic -nofor_main' ;;
17470 ifc* | ifort*) # Intel Fortran compiler
17471 tmp_addflag=' -nofor_main' ;;
17472 esac
17473 case `$CC -V 2>&1 | sed 5q` in
17474 *Sun\ C*) # Sun C 5.9
17475 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17476 tmp_sharedflag='-G' ;;
17477 *Sun\ F*) # Sun Fortran 8.3
17478 tmp_sharedflag='-G' ;;
17479 *)
17480 tmp_sharedflag='-shared' ;;
17481 esac
17482 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17483
17484 if test $supports_anon_versioning = yes; then
17485 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17486 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17487 $echo "local: *; };" >> $output_objdir/$libname.ver~
17488 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17489 fi
17490 link_all_deplibs_GCJ=no
17491 else
17492 ld_shlibs_GCJ=no
17493 fi
17494 ;;
17495
17496 netbsd* | netbsdelf*-gnu)
17497 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17498 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17499 wlarc=
17500 else
17501 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17502 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17503 fi
17504 ;;
17505
17506 solaris*)
17507 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17508 ld_shlibs_GCJ=no
17509 cat <<EOF 1>&2
17510
17511*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17512*** create shared libraries on Solaris systems. Therefore, libtool
17513*** is disabling shared libraries support. We urge you to upgrade GNU
17514*** binutils to release 2.9.1 or newer. Another option is to modify
17515*** your PATH or compiler configuration so that the native linker is
17516*** used, and then restart.
17517
17518EOF
17519 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17520 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17521 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17522 else
17523 ld_shlibs_GCJ=no
17524 fi
17525 ;;
17526
17527 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17528 case `$LD -v 2>&1` in
17529 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17530 ld_shlibs_GCJ=no
17531 cat <<_LT_EOF 1>&2
17532
17533*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17534*** reliably create shared libraries on SCO systems. Therefore, libtool
17535*** is disabling shared libraries support. We urge you to upgrade GNU
17536*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17537*** your PATH or compiler configuration so that the native linker is
17538*** used, and then restart.
17539
17540_LT_EOF
17541 ;;
17542 *)
17543 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17544 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17545 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17546 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17547 else
17548 ld_shlibs_GCJ=no
17549 fi
17550 ;;
17551 esac
17552 ;;
17553
17554 sunos4*)
17555 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17556 wlarc=
17557 hardcode_direct_GCJ=yes
17558 hardcode_shlibpath_var_GCJ=no
17559 ;;
17560
17561 *)
17562 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17563 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17564 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17565 else
17566 ld_shlibs_GCJ=no
17567 fi
17568 ;;
17569 esac
17570
17571 if test "$ld_shlibs_GCJ" = no; then
17572 runpath_var=
17573 hardcode_libdir_flag_spec_GCJ=
17574 export_dynamic_flag_spec_GCJ=
17575 whole_archive_flag_spec_GCJ=
17576 fi
17577 else
17578 # PORTME fill in a description of your system's linker (not GNU ld)
17579 case $host_os in
17580 aix3*)
17581 allow_undefined_flag_GCJ=unsupported
17582 always_export_symbols_GCJ=yes
17583 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'
17584 # Note: this linker hardcodes the directories in LIBPATH if there
17585 # are no directories specified by -L.
17586 hardcode_minus_L_GCJ=yes
17587 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17588 # Neither direct hardcoding nor static linking is supported with a
17589 # broken collect2.
17590 hardcode_direct_GCJ=unsupported
17591 fi
17592 ;;
17593
17594 aix[4-9]*)
17595 if test "$host_cpu" = ia64; then
17596 # On IA64, the linker does run time linking by default, so we don't
17597 # have to do anything special.
17598 aix_use_runtimelinking=no
17599 exp_sym_flag='-Bexport'
17600 no_entry_flag=""
17601 else
17602 # If we're using GNU nm, then we don't want the "-C" option.
17603 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17604 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17605 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'
17606 else
17607 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'
17608 fi
17609 aix_use_runtimelinking=no
17610
17611 # Test if we are trying to use run time linking or normal
17612 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17613 # need to do runtime linking.
17614 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17615 for ld_flag in $LDFLAGS; do
17616 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17617 aix_use_runtimelinking=yes
17618 break
17619 fi
17620 done
17621 ;;
17622 esac
17623
17624 exp_sym_flag='-bexport'
17625 no_entry_flag='-bnoentry'
17626 fi
17627
17628 # When large executables or shared objects are built, AIX ld can
17629 # have problems creating the table of contents. If linking a library
17630 # or program results in "error TOC overflow" add -mminimal-toc to
17631 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17632 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17633
17634 archive_cmds_GCJ=''
17635 hardcode_direct_GCJ=yes
17636 hardcode_libdir_separator_GCJ=':'
17637 link_all_deplibs_GCJ=yes
17638
17639 if test "$GCC" = yes; then
17640 case $host_os in aix4.[012]|aix4.[012].*)
17641 # We only want to do this on AIX 4.2 and lower, the check
17642 # below for broken collect2 doesn't work under 4.3+
17643 collect2name=`${CC} -print-prog-name=collect2`
17644 if test -f "$collect2name" && \
17645 strings "$collect2name" | grep resolve_lib_name >/dev/null
17646 then
17647 # We have reworked collect2
17648 :
17649 else
17650 # We have old collect2
17651 hardcode_direct_GCJ=unsupported
17652 # It fails to find uninstalled libraries when the uninstalled
17653 # path is not listed in the libpath. Setting hardcode_minus_L
17654 # to unsupported forces relinking
17655 hardcode_minus_L_GCJ=yes
17656 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17657 hardcode_libdir_separator_GCJ=
17658 fi
17659 ;;
17660 esac
17661 shared_flag='-shared'
17662 if test "$aix_use_runtimelinking" = yes; then
17663 shared_flag="$shared_flag "'${wl}-G'
17664 fi
17665 else
17666 # not using gcc
17667 if test "$host_cpu" = ia64; then
17668 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17669 # chokes on -Wl,-G. The following line is correct:
17670 shared_flag='-G'
17671 else
17672 if test "$aix_use_runtimelinking" = yes; then
17673 shared_flag='${wl}-G'
17674 else
17675 shared_flag='${wl}-bM:SRE'
17676 fi
17677 fi
17678 fi
17679
17680 # It seems that -bexpall does not export symbols beginning with
17681 # underscore (_), so it is better to generate a list of symbols to export.
17682 always_export_symbols_GCJ=yes
17683 if test "$aix_use_runtimelinking" = yes; then
17684 # Warning - without using the other runtime loading flags (-brtl),
17685 # -berok will link without error, but may produce a broken library.
17686 allow_undefined_flag_GCJ='-berok'
17687 # Determine the default libpath from the value encoded in an empty executable.
17688 cat >conftest.$ac_ext <<_ACEOF
17689/* confdefs.h. */
17690_ACEOF
17691cat confdefs.h >>conftest.$ac_ext
17692cat >>conftest.$ac_ext <<_ACEOF
17693/* end confdefs.h. */
17694
17695int
17696main ()
17697{
17698
17699 ;
17700 return 0;
17701}
17702_ACEOF
17703rm -f conftest.$ac_objext conftest$ac_exeext
17704if { (ac_try="$ac_link"
17705case "(($ac_try" in
17706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17707 *) ac_try_echo=$ac_try;;
17708esac
17709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17710 (eval "$ac_link") 2>conftest.er1
17711 ac_status=$?
17712 grep -v '^ *+' conftest.er1 >conftest.err
17713 rm -f conftest.er1
17714 cat conftest.err >&5
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); } && {
17717 test -z "$ac_c_werror_flag" ||
17718 test ! -s conftest.err
17719 } && test -s conftest$ac_exeext &&
17720 $as_test_x conftest$ac_exeext; then
17721
17722lt_aix_libpath_sed='
17723 /Import File Strings/,/^$/ {
17724 /^0/ {
17725 s/^0 *\(.*\)$/\1/
17726 p
17727 }
17728 }'
17729aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17730# Check for a 64-bit object if we didn't find anything.
17731if test -z "$aix_libpath"; then
17732 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17733fi
17734else
17735 echo "$as_me: failed program was:" >&5
17736sed 's/^/| /' conftest.$ac_ext >&5
17737
17738
17739fi
17740
17741rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17742 conftest$ac_exeext conftest.$ac_ext
17743if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17744
17745 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17746 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"
17747 else
17748 if test "$host_cpu" = ia64; then
17749 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17750 allow_undefined_flag_GCJ="-z nodefs"
17751 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"
17752 else
17753 # Determine the default libpath from the value encoded in an empty executable.
17754 cat >conftest.$ac_ext <<_ACEOF
17755/* confdefs.h. */
17756_ACEOF
17757cat confdefs.h >>conftest.$ac_ext
17758cat >>conftest.$ac_ext <<_ACEOF
17759/* end confdefs.h. */
17760
17761int
17762main ()
17763{
17764
17765 ;
17766 return 0;
17767}
17768_ACEOF
17769rm -f conftest.$ac_objext conftest$ac_exeext
17770if { (ac_try="$ac_link"
17771case "(($ac_try" in
17772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17773 *) ac_try_echo=$ac_try;;
17774esac
17775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17776 (eval "$ac_link") 2>conftest.er1
17777 ac_status=$?
17778 grep -v '^ *+' conftest.er1 >conftest.err
17779 rm -f conftest.er1
17780 cat conftest.err >&5
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); } && {
17783 test -z "$ac_c_werror_flag" ||
17784 test ! -s conftest.err
17785 } && test -s conftest$ac_exeext &&
17786 $as_test_x conftest$ac_exeext; then
17787
17788lt_aix_libpath_sed='
17789 /Import File Strings/,/^$/ {
17790 /^0/ {
17791 s/^0 *\(.*\)$/\1/
17792 p
17793 }
17794 }'
17795aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17796# Check for a 64-bit object if we didn't find anything.
17797if test -z "$aix_libpath"; then
17798 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17799fi
17800else
17801 echo "$as_me: failed program was:" >&5
17802sed 's/^/| /' conftest.$ac_ext >&5
17803
17804
17805fi
17806
17807rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17808 conftest$ac_exeext conftest.$ac_ext
17809if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17810
17811 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17812 # Warning - without using the other run time loading flags,
17813 # -berok will link without error, but may produce a broken library.
17814 no_undefined_flag_GCJ=' ${wl}-bernotok'
17815 allow_undefined_flag_GCJ=' ${wl}-berok'
17816 # Exported symbols can be pulled into shared objects from archives
17817 whole_archive_flag_spec_GCJ='$convenience'
17818 archive_cmds_need_lc_GCJ=yes
17819 # This is similar to how AIX traditionally builds its shared libraries.
17820 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'
17821 fi
17822 fi
17823 ;;
17824
17825 amigaos*)
17826 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)'
17827 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17828 hardcode_minus_L_GCJ=yes
17829 # see comment about different semantics on the GNU ld section
17830 ld_shlibs_GCJ=no
17831 ;;
17832
17833 bsdi[45]*)
17834 export_dynamic_flag_spec_GCJ=-rdynamic
17835 ;;
17836
17837 cygwin* | mingw* | pw32*)
17838 # When not using gcc, we currently assume that we are using
17839 # Microsoft Visual C++.
17840 # hardcode_libdir_flag_spec is actually meaningless, as there is
17841 # no search path for DLLs.
17842 hardcode_libdir_flag_spec_GCJ=' '
17843 allow_undefined_flag_GCJ=unsupported
17844 # Tell ltmain to make .lib files, not .a files.
17845 libext=lib
17846 # Tell ltmain to make .dll files, not .so files.
17847 shrext_cmds=".dll"
17848 # FIXME: Setting linknames here is a bad hack.
17849 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17850 # The linker will automatically build a .lib file if we build a DLL.
17851 old_archive_From_new_cmds_GCJ='true'
17852 # FIXME: Should let the user specify the lib program.
17853 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17854 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17855 enable_shared_with_static_runtimes_GCJ=yes
17856 ;;
17857
17858 darwin* | rhapsody*)
17859 case $host_os in
17860 rhapsody* | darwin1.[012])
17861 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17862 ;;
17863 *) # Darwin 1.3 on
17864 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17865 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17866 else
17867 case ${MACOSX_DEPLOYMENT_TARGET} in
17868 10.[012])
17869 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17870 ;;
17871 10.*)
17872 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17873 ;;
17874 esac
17875 fi
17876 ;;
17877 esac
17878 archive_cmds_need_lc_GCJ=no
17879 hardcode_direct_GCJ=no
17880 hardcode_automatic_GCJ=yes
17881 hardcode_shlibpath_var_GCJ=unsupported
17882 whole_archive_flag_spec_GCJ=''
17883 link_all_deplibs_GCJ=yes
17884 if test "$GCC" = yes ; then
17885 output_verbose_link_cmd='echo'
17886 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17887 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17888 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17889 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17890 else
17891 case $cc_basename in
17892 xlc*)
17893 output_verbose_link_cmd='echo'
17894 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17895 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17896 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17897 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17898 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}'
17899 ;;
17900 *)
17901 ld_shlibs_GCJ=no
17902 ;;
17903 esac
17904 fi
17905 ;;
17906
17907 dgux*)
17908 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17909 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17910 hardcode_shlibpath_var_GCJ=no
17911 ;;
17912
17913 freebsd1*)
17914 ld_shlibs_GCJ=no
17915 ;;
17916
17917 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17918 # support. Future versions do this automatically, but an explicit c++rt0.o
17919 # does not break anything, and helps significantly (at the cost of a little
17920 # extra space).
17921 freebsd2.2*)
17922 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17923 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17924 hardcode_direct_GCJ=yes
17925 hardcode_shlibpath_var_GCJ=no
17926 ;;
17927
17928 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17929 freebsd2*)
17930 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17931 hardcode_direct_GCJ=yes
17932 hardcode_minus_L_GCJ=yes
17933 hardcode_shlibpath_var_GCJ=no
17934 ;;
17935
17936 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17937 freebsd* | dragonfly*)
17938 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17939 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17940 hardcode_direct_GCJ=yes
17941 hardcode_shlibpath_var_GCJ=no
17942 ;;
17943
17944 hpux9*)
17945 if test "$GCC" = yes; then
17946 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'
17947 else
17948 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'
17949 fi
17950 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17951 hardcode_libdir_separator_GCJ=:
17952 hardcode_direct_GCJ=yes
17953
17954 # hardcode_minus_L: Not really in the search PATH,
17955 # but as the default location of the library.
17956 hardcode_minus_L_GCJ=yes
17957 export_dynamic_flag_spec_GCJ='${wl}-E'
17958 ;;
17959
17960 hpux10*)
17961 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17962 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17963 else
17964 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17965 fi
17966 if test "$with_gnu_ld" = no; then
17967 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17968 hardcode_libdir_separator_GCJ=:
17969
17970 hardcode_direct_GCJ=yes
17971 export_dynamic_flag_spec_GCJ='${wl}-E'
17972
17973 # hardcode_minus_L: Not really in the search PATH,
17974 # but as the default location of the library.
17975 hardcode_minus_L_GCJ=yes
17976 fi
17977 ;;
17978
17979 hpux11*)
17980 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17981 case $host_cpu in
17982 hppa*64*)
17983 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17984 ;;
17985 ia64*)
17986 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17987 ;;
17988 *)
17989 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17990 ;;
17991 esac
17992 else
17993 case $host_cpu in
17994 hppa*64*)
17995 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17996 ;;
17997 ia64*)
17998 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17999 ;;
18000 *)
18001 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18002 ;;
18003 esac
18004 fi
18005 if test "$with_gnu_ld" = no; then
18006 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18007 hardcode_libdir_separator_GCJ=:
18008
18009 case $host_cpu in
18010 hppa*64*|ia64*)
18011 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18012 hardcode_direct_GCJ=no
18013 hardcode_shlibpath_var_GCJ=no
18014 ;;
18015 *)
18016 hardcode_direct_GCJ=yes
18017 export_dynamic_flag_spec_GCJ='${wl}-E'
18018
18019 # hardcode_minus_L: Not really in the search PATH,
18020 # but as the default location of the library.
18021 hardcode_minus_L_GCJ=yes
18022 ;;
18023 esac
18024 fi
18025 ;;
18026
18027 irix5* | irix6* | nonstopux*)
18028 if test "$GCC" = yes; then
18029 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'
18030 else
18031 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'
18032 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18033 fi
18034 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18035 hardcode_libdir_separator_GCJ=:
18036 link_all_deplibs_GCJ=yes
18037 ;;
18038
18039 netbsd* | netbsdelf*-gnu)
18040 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18041 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18042 else
18043 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18044 fi
18045 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18046 hardcode_direct_GCJ=yes
18047 hardcode_shlibpath_var_GCJ=no
18048 ;;
18049
18050 newsos6)
18051 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18052 hardcode_direct_GCJ=yes
18053 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18054 hardcode_libdir_separator_GCJ=:
18055 hardcode_shlibpath_var_GCJ=no
18056 ;;
18057
18058 openbsd*)
18059 if test -f /usr/libexec/ld.so; then
18060 hardcode_direct_GCJ=yes
18061 hardcode_shlibpath_var_GCJ=no
18062 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18063 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18064 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18065 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18066 export_dynamic_flag_spec_GCJ='${wl}-E'
18067 else
18068 case $host_os in
18069 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18070 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18071 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18072 ;;
18073 *)
18074 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18075 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18076 ;;
18077 esac
18078 fi
18079 else
18080 ld_shlibs_GCJ=no
18081 fi
18082 ;;
18083
18084 os2*)
18085 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18086 hardcode_minus_L_GCJ=yes
18087 allow_undefined_flag_GCJ=unsupported
18088 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'
18089 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18090 ;;
18091
18092 osf3*)
18093 if test "$GCC" = yes; then
18094 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18095 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'
18096 else
18097 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18098 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'
18099 fi
18100 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18101 hardcode_libdir_separator_GCJ=:
18102 ;;
18103
18104 osf4* | osf5*) # as osf3* with the addition of -msym flag
18105 if test "$GCC" = yes; then
18106 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18107 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'
18108 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18109 else
18110 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18111 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'
18112 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~
18113 $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'
18114
18115 # Both c and cxx compiler support -rpath directly
18116 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18117 fi
18118 hardcode_libdir_separator_GCJ=:
18119 ;;
18120
18121 solaris*)
18122 no_undefined_flag_GCJ=' -z text'
18123 if test "$GCC" = yes; then
18124 wlarc='${wl}'
18125 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18126 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18127 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18128 else
18129 wlarc=''
18130 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18131 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18132 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18133 fi
18134 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18135 hardcode_shlibpath_var_GCJ=no
18136 case $host_os in
18137 solaris2.[0-5] | solaris2.[0-5].*) ;;
18138 *)
18139 # The compiler driver will combine and reorder linker options,
18140 # but understands `-z linker_flag'. GCC discards it without `$wl',
18141 # but is careful enough not to reorder.
18142 # Supported since Solaris 2.6 (maybe 2.5.1?)
18143 if test "$GCC" = yes; then
18144 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18145 else
18146 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18147 fi
18148 ;;
18149 esac
18150 link_all_deplibs_GCJ=yes
18151 ;;
18152
18153 sunos4*)
18154 if test "x$host_vendor" = xsequent; then
18155 # Use $CC to link under sequent, because it throws in some extra .o
18156 # files that make .init and .fini sections work.
18157 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18158 else
18159 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18160 fi
18161 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18162 hardcode_direct_GCJ=yes
18163 hardcode_minus_L_GCJ=yes
18164 hardcode_shlibpath_var_GCJ=no
18165 ;;
18166
18167 sysv4)
18168 case $host_vendor in
18169 sni)
18170 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18171 hardcode_direct_GCJ=yes # is this really true???
18172 ;;
18173 siemens)
18174 ## LD is ld it makes a PLAMLIB
18175 ## CC just makes a GrossModule.
18176 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18177 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18178 hardcode_direct_GCJ=no
18179 ;;
18180 motorola)
18181 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18182 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18183 ;;
18184 esac
18185 runpath_var='LD_RUN_PATH'
18186 hardcode_shlibpath_var_GCJ=no
18187 ;;
18188
18189 sysv4.3*)
18190 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18191 hardcode_shlibpath_var_GCJ=no
18192 export_dynamic_flag_spec_GCJ='-Bexport'
18193 ;;
18194
18195 sysv4*MP*)
18196 if test -d /usr/nec; then
18197 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18198 hardcode_shlibpath_var_GCJ=no
18199 runpath_var=LD_RUN_PATH
18200 hardcode_runpath_var=yes
18201 ld_shlibs_GCJ=yes
18202 fi
18203 ;;
18204
18205 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18206 no_undefined_flag_GCJ='${wl}-z,text'
18207 archive_cmds_need_lc_GCJ=no
18208 hardcode_shlibpath_var_GCJ=no
18209 runpath_var='LD_RUN_PATH'
18210
18211 if test "$GCC" = yes; then
18212 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18213 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18214 else
18215 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18216 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18217 fi
18218 ;;
18219
18220 sysv5* | sco3.2v5* | sco5v6*)
18221 # Note: We can NOT use -z defs as we might desire, because we do not
18222 # link with -lc, and that would cause any symbols used from libc to
18223 # always be unresolved, which means just about no library would
18224 # ever link correctly. If we're not using GNU ld we use -z text
18225 # though, which does catch some bad symbols but isn't as heavy-handed
18226 # as -z defs.
18227 no_undefined_flag_GCJ='${wl}-z,text'
18228 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18229 archive_cmds_need_lc_GCJ=no
18230 hardcode_shlibpath_var_GCJ=no
18231 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18232 hardcode_libdir_separator_GCJ=':'
18233 link_all_deplibs_GCJ=yes
18234 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18235 runpath_var='LD_RUN_PATH'
18236
18237 if test "$GCC" = yes; then
18238 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18239 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18240 else
18241 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18242 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18243 fi
18244 ;;
18245
18246 uts4*)
18247 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18248 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18249 hardcode_shlibpath_var_GCJ=no
18250 ;;
18251
18252 *)
18253 ld_shlibs_GCJ=no
18254 ;;
18255 esac
18256 fi
18257
18258{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18259echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18260test "$ld_shlibs_GCJ" = no && can_build_shared=no
18261
18262#
18263# Do we need to explicitly link libc?
18264#
18265case "x$archive_cmds_need_lc_GCJ" in
18266x|xyes)
18267 # Assume -lc should be added
18268 archive_cmds_need_lc_GCJ=yes
18269
18270 if test "$enable_shared" = yes && test "$GCC" = yes; then
18271 case $archive_cmds_GCJ in
18272 *'~'*)
18273 # FIXME: we may have to deal with multi-command sequences.
18274 ;;
18275 '$CC '*)
18276 # Test whether the compiler implicitly links with -lc since on some
18277 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18278 # to ld, don't add -lc before -lgcc.
18279 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18280echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18281 $rm conftest*
18282 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18283
18284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18285 (eval $ac_compile) 2>&5
18286 ac_status=$?
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); } 2>conftest.err; then
18289 soname=conftest
18290 lib=conftest
18291 libobjs=conftest.$ac_objext
18292 deplibs=
18293 wl=$lt_prog_compiler_wl_GCJ
18294 pic_flag=$lt_prog_compiler_pic_GCJ
18295 compiler_flags=-v
18296 linker_flags=-v
18297 verstring=
18298 output_objdir=.
18299 libname=conftest
18300 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18301 allow_undefined_flag_GCJ=
18302 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18303 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18304 ac_status=$?
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); }
18307 then
18308 archive_cmds_need_lc_GCJ=no
18309 else
18310 archive_cmds_need_lc_GCJ=yes
18311 fi
18312 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18313 else
18314 cat conftest.err 1>&5
18315 fi
18316 $rm conftest*
18317 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18318echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18319 ;;
18320 esac
18321 fi
18322 ;;
18323esac
18324
18325{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18326echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18327library_names_spec=
18328libname_spec='lib$name'
18329soname_spec=
18330shrext_cmds=".so"
18331postinstall_cmds=
18332postuninstall_cmds=
18333finish_cmds=
18334finish_eval=
18335shlibpath_var=
18336shlibpath_overrides_runpath=unknown
18337version_type=none
18338dynamic_linker="$host_os ld.so"
18339sys_lib_dlsearch_path_spec="/lib /usr/lib"
18340
18341need_lib_prefix=unknown
18342hardcode_into_libs=no
18343
18344# when you set need_version to no, make sure it does not cause -set_version
18345# flags to be left without arguments
18346need_version=unknown
18347
18348case $host_os in
18349aix3*)
18350 version_type=linux
18351 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18352 shlibpath_var=LIBPATH
18353
18354 # AIX 3 has no versioning support, so we append a major version to the name.
18355 soname_spec='${libname}${release}${shared_ext}$major'
18356 ;;
18357
18358aix[4-9]*)
18359 version_type=linux
18360 need_lib_prefix=no
18361 need_version=no
18362 hardcode_into_libs=yes
18363 if test "$host_cpu" = ia64; then
18364 # AIX 5 supports IA64
18365 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18366 shlibpath_var=LD_LIBRARY_PATH
18367 else
18368 # With GCC up to 2.95.x, collect2 would create an import file
18369 # for dependence libraries. The import file would start with
18370 # the line `#! .'. This would cause the generated library to
18371 # depend on `.', always an invalid library. This was fixed in
18372 # development snapshots of GCC prior to 3.0.
18373 case $host_os in
18374 aix4 | aix4.[01] | aix4.[01].*)
18375 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18376 echo ' yes '
18377 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18378 :
18379 else
18380 can_build_shared=no
18381 fi
18382 ;;
18383 esac
18384 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18385 # soname into executable. Probably we can add versioning support to
18386 # collect2, so additional links can be useful in future.
18387 if test "$aix_use_runtimelinking" = yes; then
18388 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18389 # instead of lib<name>.a to let people know that these are not
18390 # typical AIX shared libraries.
18391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18392 else
18393 # We preserve .a as extension for shared libraries through AIX4.2
18394 # and later when we are not doing run time linking.
18395 library_names_spec='${libname}${release}.a $libname.a'
18396 soname_spec='${libname}${release}${shared_ext}$major'
18397 fi
18398 shlibpath_var=LIBPATH
18399 fi
18400 ;;
18401
18402amigaos*)
18403 library_names_spec='$libname.ixlibrary $libname.a'
18404 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18405 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'
18406 ;;
18407
18408beos*)
18409 library_names_spec='${libname}${shared_ext}'
18410 dynamic_linker="$host_os ld.so"
18411 shlibpath_var=LIBRARY_PATH
18412 ;;
18413
18414bsdi[45]*)
18415 version_type=linux
18416 need_version=no
18417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18418 soname_spec='${libname}${release}${shared_ext}$major'
18419 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18420 shlibpath_var=LD_LIBRARY_PATH
18421 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18422 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18423 # the default ld.so.conf also contains /usr/contrib/lib and
18424 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18425 # libtool to hard-code these into programs
18426 ;;
18427
18428cygwin* | mingw* | pw32*)
18429 version_type=windows
18430 shrext_cmds=".dll"
18431 need_version=no
18432 need_lib_prefix=no
18433
18434 case $GCC,$host_os in
18435 yes,cygwin* | yes,mingw* | yes,pw32*)
18436 library_names_spec='$libname.dll.a'
18437 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18438 postinstall_cmds='base_file=`basename \${file}`~
18439 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18440 dldir=$destdir/`dirname \$dlpath`~
18441 test -d \$dldir || mkdir -p \$dldir~
18442 $install_prog $dir/$dlname \$dldir/$dlname~
18443 chmod a+x \$dldir/$dlname'
18444 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18445 dlpath=$dir/\$dldll~
18446 $rm \$dlpath'
18447 shlibpath_overrides_runpath=yes
18448
18449 case $host_os in
18450 cygwin*)
18451 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18452 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18453 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18454 ;;
18455 mingw*)
18456 # MinGW DLLs use traditional 'lib' prefix
18457 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18458 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18459 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18460 # It is most probably a Windows format PATH printed by
18461 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18462 # path with ; separators, and with drive letters. We can handle the
18463 # drive letters (cygwin fileutils understands them), so leave them,
18464 # especially as we might pass files found there to a mingw objdump,
18465 # which wouldn't understand a cygwinified path. Ahh.
18466 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18467 else
18468 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18469 fi
18470 ;;
18471 pw32*)
18472 # pw32 DLLs use 'pw' prefix rather than 'lib'
18473 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18474 ;;
18475 esac
18476 ;;
18477
18478 *)
18479 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18480 ;;
18481 esac
18482 dynamic_linker='Win32 ld.exe'
18483 # FIXME: first we should search . and the directory the executable is in
18484 shlibpath_var=PATH
18485 ;;
18486
18487darwin* | rhapsody*)
18488 dynamic_linker="$host_os dyld"
18489 version_type=darwin
18490 need_lib_prefix=no
18491 need_version=no
18492 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18493 soname_spec='${libname}${release}${major}$shared_ext'
18494 shlibpath_overrides_runpath=yes
18495 shlibpath_var=DYLD_LIBRARY_PATH
18496 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18497
18498 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18499 ;;
18500
18501dgux*)
18502 version_type=linux
18503 need_lib_prefix=no
18504 need_version=no
18505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18506 soname_spec='${libname}${release}${shared_ext}$major'
18507 shlibpath_var=LD_LIBRARY_PATH
18508 ;;
18509
18510freebsd1*)
18511 dynamic_linker=no
18512 ;;
18513
18514freebsd* | dragonfly*)
18515 # DragonFly does not have aout. When/if they implement a new
18516 # versioning mechanism, adjust this.
18517 if test -x /usr/bin/objformat; then
18518 objformat=`/usr/bin/objformat`
18519 else
18520 case $host_os in
18521 freebsd[123]*) objformat=aout ;;
18522 *) objformat=elf ;;
18523 esac
18524 fi
18525 version_type=freebsd-$objformat
18526 case $version_type in
18527 freebsd-elf*)
18528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18529 need_version=no
18530 need_lib_prefix=no
18531 ;;
18532 freebsd-*)
18533 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18534 need_version=yes
18535 ;;
18536 esac
18537 shlibpath_var=LD_LIBRARY_PATH
18538 case $host_os in
18539 freebsd2*)
18540 shlibpath_overrides_runpath=yes
18541 ;;
18542 freebsd3.[01]* | freebsdelf3.[01]*)
18543 shlibpath_overrides_runpath=yes
18544 hardcode_into_libs=yes
18545 ;;
18546 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18547 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18548 shlibpath_overrides_runpath=no
18549 hardcode_into_libs=yes
18550 ;;
18551 *) # from 4.6 on, and DragonFly
18552 shlibpath_overrides_runpath=yes
18553 hardcode_into_libs=yes
18554 ;;
18555 esac
18556 ;;
18557
18558gnu*)
18559 version_type=linux
18560 need_lib_prefix=no
18561 need_version=no
18562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18563 soname_spec='${libname}${release}${shared_ext}$major'
18564 shlibpath_var=LD_LIBRARY_PATH
18565 hardcode_into_libs=yes
18566 ;;
18567
18568hpux9* | hpux10* | hpux11*)
18569 # Give a soname corresponding to the major version so that dld.sl refuses to
18570 # link against other versions.
18571 version_type=sunos
18572 need_lib_prefix=no
18573 need_version=no
18574 case $host_cpu in
18575 ia64*)
18576 shrext_cmds='.so'
18577 hardcode_into_libs=yes
18578 dynamic_linker="$host_os dld.so"
18579 shlibpath_var=LD_LIBRARY_PATH
18580 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18582 soname_spec='${libname}${release}${shared_ext}$major'
18583 if test "X$HPUX_IA64_MODE" = X32; then
18584 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18585 else
18586 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18587 fi
18588 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18589 ;;
18590 hppa*64*)
18591 shrext_cmds='.sl'
18592 hardcode_into_libs=yes
18593 dynamic_linker="$host_os dld.sl"
18594 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18595 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18597 soname_spec='${libname}${release}${shared_ext}$major'
18598 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18599 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18600 ;;
18601 *)
18602 shrext_cmds='.sl'
18603 dynamic_linker="$host_os dld.sl"
18604 shlibpath_var=SHLIB_PATH
18605 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18607 soname_spec='${libname}${release}${shared_ext}$major'
18608 ;;
18609 esac
18610 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18611 postinstall_cmds='chmod 555 $lib'
18612 ;;
18613
18614interix[3-9]*)
18615 version_type=linux
18616 need_lib_prefix=no
18617 need_version=no
18618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18619 soname_spec='${libname}${release}${shared_ext}$major'
18620 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18621 shlibpath_var=LD_LIBRARY_PATH
18622 shlibpath_overrides_runpath=no
18623 hardcode_into_libs=yes
18624 ;;
18625
18626irix5* | irix6* | nonstopux*)
18627 case $host_os in
18628 nonstopux*) version_type=nonstopux ;;
18629 *)
18630 if test "$lt_cv_prog_gnu_ld" = yes; then
18631 version_type=linux
18632 else
18633 version_type=irix
18634 fi ;;
18635 esac
18636 need_lib_prefix=no
18637 need_version=no
18638 soname_spec='${libname}${release}${shared_ext}$major'
18639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18640 case $host_os in
18641 irix5* | nonstopux*)
18642 libsuff= shlibsuff=
18643 ;;
18644 *)
18645 case $LD in # libtool.m4 will add one of these switches to LD
18646 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18647 libsuff= shlibsuff= libmagic=32-bit;;
18648 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18649 libsuff=32 shlibsuff=N32 libmagic=N32;;
18650 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18651 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18652 *) libsuff= shlibsuff= libmagic=never-match;;
18653 esac
18654 ;;
18655 esac
18656 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18657 shlibpath_overrides_runpath=no
18658 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18659 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18660 hardcode_into_libs=yes
18661 ;;
18662
18663# No shared lib support for Linux oldld, aout, or coff.
18664linux*oldld* | linux*aout* | linux*coff*)
18665 dynamic_linker=no
18666 ;;
18667
18668# This must be Linux ELF.
18669linux* | k*bsd*-gnu)
18670 version_type=linux
18671 need_lib_prefix=no
18672 need_version=no
18673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18674 soname_spec='${libname}${release}${shared_ext}$major'
18675 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18676 shlibpath_var=LD_LIBRARY_PATH
18677 shlibpath_overrides_runpath=no
18678 # This implies no fast_install, which is unacceptable.
18679 # Some rework will be needed to allow for fast_install
18680 # before this can be enabled.
18681 hardcode_into_libs=yes
18682
18683 # Append ld.so.conf contents to the search path
18684 if test -f /etc/ld.so.conf; then
18685 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18686 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18687 fi
18688
18689 # We used to test for /lib/ld.so.1 and disable shared libraries on
18690 # powerpc, because MkLinux only supported shared libraries with the
18691 # GNU dynamic linker. Since this was broken with cross compilers,
18692 # most powerpc-linux boxes support dynamic linking these days and
18693 # people can always --disable-shared, the test was removed, and we
18694 # assume the GNU/Linux dynamic linker is in use.
18695 dynamic_linker='GNU/Linux ld.so'
18696 ;;
18697
18698netbsdelf*-gnu)
18699 version_type=linux
18700 need_lib_prefix=no
18701 need_version=no
18702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18703 soname_spec='${libname}${release}${shared_ext}$major'
18704 shlibpath_var=LD_LIBRARY_PATH
18705 shlibpath_overrides_runpath=no
18706 hardcode_into_libs=yes
18707 dynamic_linker='NetBSD ld.elf_so'
18708 ;;
18709
18710netbsd*)
18711 version_type=sunos
18712 need_lib_prefix=no
18713 need_version=no
18714 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18716 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18717 dynamic_linker='NetBSD (a.out) ld.so'
18718 else
18719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18720 soname_spec='${libname}${release}${shared_ext}$major'
18721 dynamic_linker='NetBSD ld.elf_so'
18722 fi
18723 shlibpath_var=LD_LIBRARY_PATH
18724 shlibpath_overrides_runpath=yes
18725 hardcode_into_libs=yes
18726 ;;
18727
18728newsos6)
18729 version_type=linux
18730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18731 shlibpath_var=LD_LIBRARY_PATH
18732 shlibpath_overrides_runpath=yes
18733 ;;
18734
18735nto-qnx*)
18736 version_type=linux
18737 need_lib_prefix=no
18738 need_version=no
18739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18740 soname_spec='${libname}${release}${shared_ext}$major'
18741 shlibpath_var=LD_LIBRARY_PATH
18742 shlibpath_overrides_runpath=yes
18743 ;;
18744
18745openbsd*)
18746 version_type=sunos
18747 sys_lib_dlsearch_path_spec="/usr/lib"
18748 need_lib_prefix=no
18749 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18750 case $host_os in
18751 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18752 *) need_version=no ;;
18753 esac
18754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18755 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18756 shlibpath_var=LD_LIBRARY_PATH
18757 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18758 case $host_os in
18759 openbsd2.[89] | openbsd2.[89].*)
18760 shlibpath_overrides_runpath=no
18761 ;;
18762 *)
18763 shlibpath_overrides_runpath=yes
18764 ;;
18765 esac
18766 else
18767 shlibpath_overrides_runpath=yes
18768 fi
18769 ;;
18770
18771os2*)
18772 libname_spec='$name'
18773 shrext_cmds=".dll"
18774 need_lib_prefix=no
18775 library_names_spec='$libname${shared_ext} $libname.a'
18776 dynamic_linker='OS/2 ld.exe'
18777 shlibpath_var=LIBPATH
18778 ;;
18779
18780osf3* | osf4* | osf5*)
18781 version_type=osf
18782 need_lib_prefix=no
18783 need_version=no
18784 soname_spec='${libname}${release}${shared_ext}$major'
18785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18786 shlibpath_var=LD_LIBRARY_PATH
18787 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18788 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18789 ;;
18790
18791rdos*)
18792 dynamic_linker=no
18793 ;;
18794
18795solaris*)
18796 version_type=linux
18797 need_lib_prefix=no
18798 need_version=no
18799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18800 soname_spec='${libname}${release}${shared_ext}$major'
18801 shlibpath_var=LD_LIBRARY_PATH
18802 shlibpath_overrides_runpath=yes
18803 hardcode_into_libs=yes
18804 # ldd complains unless libraries are executable
18805 postinstall_cmds='chmod +x $lib'
18806 ;;
18807
18808sunos4*)
18809 version_type=sunos
18810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18811 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18812 shlibpath_var=LD_LIBRARY_PATH
18813 shlibpath_overrides_runpath=yes
18814 if test "$with_gnu_ld" = yes; then
18815 need_lib_prefix=no
18816 fi
18817 need_version=yes
18818 ;;
18819
18820sysv4 | sysv4.3*)
18821 version_type=linux
18822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18823 soname_spec='${libname}${release}${shared_ext}$major'
18824 shlibpath_var=LD_LIBRARY_PATH
18825 case $host_vendor in
18826 sni)
18827 shlibpath_overrides_runpath=no
18828 need_lib_prefix=no
18829 export_dynamic_flag_spec='${wl}-Blargedynsym'
18830 runpath_var=LD_RUN_PATH
18831 ;;
18832 siemens)
18833 need_lib_prefix=no
18834 ;;
18835 motorola)
18836 need_lib_prefix=no
18837 need_version=no
18838 shlibpath_overrides_runpath=no
18839 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18840 ;;
18841 esac
18842 ;;
18843
18844sysv4*MP*)
18845 if test -d /usr/nec ;then
18846 version_type=linux
18847 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18848 soname_spec='$libname${shared_ext}.$major'
18849 shlibpath_var=LD_LIBRARY_PATH
18850 fi
18851 ;;
18852
18853sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18854 version_type=freebsd-elf
18855 need_lib_prefix=no
18856 need_version=no
18857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18858 soname_spec='${libname}${release}${shared_ext}$major'
18859 shlibpath_var=LD_LIBRARY_PATH
18860 hardcode_into_libs=yes
18861 if test "$with_gnu_ld" = yes; then
18862 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18863 shlibpath_overrides_runpath=no
18864 else
18865 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18866 shlibpath_overrides_runpath=yes
18867 case $host_os in
18868 sco3.2v5*)
18869 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18870 ;;
18871 esac
18872 fi
18873 sys_lib_dlsearch_path_spec='/usr/lib'
18874 ;;
18875
18876uts4*)
18877 version_type=linux
18878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18879 soname_spec='${libname}${release}${shared_ext}$major'
18880 shlibpath_var=LD_LIBRARY_PATH
18881 ;;
18882
18883*)
18884 dynamic_linker=no
18885 ;;
18886esac
18887{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18888echo "${ECHO_T}$dynamic_linker" >&6; }
18889test "$dynamic_linker" = no && can_build_shared=no
18890
18891if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18892 echo $ECHO_N "(cached) $ECHO_C" >&6
18893else
18894 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18895fi
18896
18897sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18898if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18899 echo $ECHO_N "(cached) $ECHO_C" >&6
18900else
18901 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18902fi
18903
18904sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18905
18906variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18907if test "$GCC" = yes; then
18908 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18909fi
18910
18911{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18912echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18913hardcode_action_GCJ=
18914if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18915 test -n "$runpath_var_GCJ" || \
18916 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18917
18918 # We can hardcode non-existant directories.
18919 if test "$hardcode_direct_GCJ" != no &&
18920 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18921 # have to relink, otherwise we might link with an installed library
18922 # when we should be linking with a yet-to-be-installed one
18923 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18924 test "$hardcode_minus_L_GCJ" != no; then
18925 # Linking always hardcodes the temporary library directory.
18926 hardcode_action_GCJ=relink
18927 else
18928 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18929 hardcode_action_GCJ=immediate
18930 fi
18931else
18932 # We cannot hardcode anything, or else we can only hardcode existing
18933 # directories.
18934 hardcode_action_GCJ=unsupported
18935fi
18936{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18937echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18938
18939if test "$hardcode_action_GCJ" = relink; then
18940 # Fast installation is not supported
18941 enable_fast_install=no
18942elif test "$shlibpath_overrides_runpath" = yes ||
18943 test "$enable_shared" = no; then
18944 # Fast installation is not necessary
18945 enable_fast_install=needless
18946fi
18947
18948
18949# The else clause should only fire when bootstrapping the
18950# libtool distribution, otherwise you forgot to ship ltmain.sh
18951# with your package, and you will get complaints that there are
18952# no rules to generate ltmain.sh.
18953if test -f "$ltmain"; then
18954 # See if we are running on zsh, and set the options which allow our commands through
18955 # without removal of \ escapes.
18956 if test -n "${ZSH_VERSION+set}" ; then
18957 setopt NO_GLOB_SUBST
18958 fi
18959 # Now quote all the things that may contain metacharacters while being
18960 # careful not to overquote the AC_SUBSTed values. We take copies of the
18961 # variables and quote the copies for generation of the libtool script.
18962 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18963 SED SHELL STRIP \
18964 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18965 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18966 deplibs_check_method reload_flag reload_cmds need_locks \
18967 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18968 lt_cv_sys_global_symbol_to_c_name_address \
18969 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18970 old_postinstall_cmds old_postuninstall_cmds \
18971 compiler_GCJ \
18972 CC_GCJ \
18973 LD_GCJ \
18974 lt_prog_compiler_wl_GCJ \
18975 lt_prog_compiler_pic_GCJ \
18976 lt_prog_compiler_static_GCJ \
18977 lt_prog_compiler_no_builtin_flag_GCJ \
18978 export_dynamic_flag_spec_GCJ \
18979 thread_safe_flag_spec_GCJ \
18980 whole_archive_flag_spec_GCJ \
18981 enable_shared_with_static_runtimes_GCJ \
18982 old_archive_cmds_GCJ \
18983 old_archive_from_new_cmds_GCJ \
18984 predep_objects_GCJ \
18985 postdep_objects_GCJ \
18986 predeps_GCJ \
18987 postdeps_GCJ \
18988 compiler_lib_search_path_GCJ \
18989 compiler_lib_search_dirs_GCJ \
18990 archive_cmds_GCJ \
18991 archive_expsym_cmds_GCJ \
18992 postinstall_cmds_GCJ \
18993 postuninstall_cmds_GCJ \
18994 old_archive_from_expsyms_cmds_GCJ \
18995 allow_undefined_flag_GCJ \
18996 no_undefined_flag_GCJ \
18997 export_symbols_cmds_GCJ \
18998 hardcode_libdir_flag_spec_GCJ \
18999 hardcode_libdir_flag_spec_ld_GCJ \
19000 hardcode_libdir_separator_GCJ \
19001 hardcode_automatic_GCJ \
19002 module_cmds_GCJ \
19003 module_expsym_cmds_GCJ \
19004 lt_cv_prog_compiler_c_o_GCJ \
19005 fix_srcfile_path_GCJ \
19006 exclude_expsyms_GCJ \
19007 include_expsyms_GCJ; do
19008
19009 case $var in
19010 old_archive_cmds_GCJ | \
19011 old_archive_from_new_cmds_GCJ | \
19012 archive_cmds_GCJ | \
19013 archive_expsym_cmds_GCJ | \
19014 module_cmds_GCJ | \
19015 module_expsym_cmds_GCJ | \
19016 old_archive_from_expsyms_cmds_GCJ | \
19017 export_symbols_cmds_GCJ | \
19018 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19019 postinstall_cmds | postuninstall_cmds | \
19020 old_postinstall_cmds | old_postuninstall_cmds | \
19021 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19022 # Double-quote double-evaled strings.
19023 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19024 ;;
19025 *)
19026 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19027 ;;
19028 esac
19029 done
19030
19031 case $lt_echo in
19032 *'\$0 --fallback-echo"')
19033 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19034 ;;
19035 esac
19036
19037cfgfile="$ofile"
19038
19039 cat <<__EOF__ >> "$cfgfile"
19040# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19041
19042# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19043
19044# Shell to use when invoking shell scripts.
19045SHELL=$lt_SHELL
19046
19047# Whether or not to build shared libraries.
19048build_libtool_libs=$enable_shared
19049
19050# Whether or not to build static libraries.
19051build_old_libs=$enable_static
19052
19053# Whether or not to add -lc for building shared libraries.
19054build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19055
19056# Whether or not to disallow shared libs when runtime libs are static
19057allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19058
19059# Whether or not to optimize for fast installation.
19060fast_install=$enable_fast_install
19061
19062# The host system.
19063host_alias=$host_alias
19064host=$host
19065host_os=$host_os
19066
19067# The build system.
19068build_alias=$build_alias
19069build=$build
19070build_os=$build_os
19071
19072# An echo program that does not interpret backslashes.
19073echo=$lt_echo
19074
19075# The archiver.
19076AR=$lt_AR
19077AR_FLAGS=$lt_AR_FLAGS
19078
19079# A C compiler.
19080LTCC=$lt_LTCC
19081
19082# LTCC compiler flags.
19083LTCFLAGS=$lt_LTCFLAGS
19084
19085# A language-specific compiler.
19086CC=$lt_compiler_GCJ
19087
19088# Is the compiler the GNU C compiler?
19089with_gcc=$GCC_GCJ
19090
19091# An ERE matcher.
19092EGREP=$lt_EGREP
19093
19094# The linker used to build libraries.
19095LD=$lt_LD_GCJ
19096
19097# Whether we need hard or soft links.
19098LN_S=$lt_LN_S
19099
19100# A BSD-compatible nm program.
19101NM=$lt_NM
19102
19103# A symbol stripping program
19104STRIP=$lt_STRIP
19105
19106# Used to examine libraries when file_magic_cmd begins "file"
19107MAGIC_CMD=$MAGIC_CMD
19108
19109# Used on cygwin: DLL creation program.
19110DLLTOOL="$DLLTOOL"
19111
19112# Used on cygwin: object dumper.
19113OBJDUMP="$OBJDUMP"
19114
19115# Used on cygwin: assembler.
19116AS="$AS"
19117
19118# The name of the directory that contains temporary libtool files.
19119objdir=$objdir
19120
19121# How to create reloadable object files.
19122reload_flag=$lt_reload_flag
19123reload_cmds=$lt_reload_cmds
19124
19125# How to pass a linker flag through the compiler.
19126wl=$lt_lt_prog_compiler_wl_GCJ
19127
19128# Object file suffix (normally "o").
19129objext="$ac_objext"
19130
19131# Old archive suffix (normally "a").
19132libext="$libext"
19133
19134# Shared library suffix (normally ".so").
19135shrext_cmds='$shrext_cmds'
19136
19137# Executable file suffix (normally "").
19138exeext="$exeext"
19139
19140# Additional compiler flags for building library objects.
19141pic_flag=$lt_lt_prog_compiler_pic_GCJ
19142pic_mode=$pic_mode
19143
19144# What is the maximum length of a command?
19145max_cmd_len=$lt_cv_sys_max_cmd_len
19146
19147# Does compiler simultaneously support -c and -o options?
19148compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19149
19150# Must we lock files when doing compilation?
19151need_locks=$lt_need_locks
19152
19153# Do we need the lib prefix for modules?
19154need_lib_prefix=$need_lib_prefix
19155
19156# Do we need a version for libraries?
19157need_version=$need_version
19158
19159# Whether dlopen is supported.
19160dlopen_support=$enable_dlopen
19161
19162# Whether dlopen of programs is supported.
19163dlopen_self=$enable_dlopen_self
19164
19165# Whether dlopen of statically linked programs is supported.
19166dlopen_self_static=$enable_dlopen_self_static
19167
19168# Compiler flag to prevent dynamic linking.
19169link_static_flag=$lt_lt_prog_compiler_static_GCJ
19170
19171# Compiler flag to turn off builtin functions.
19172no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19173
19174# Compiler flag to allow reflexive dlopens.
19175export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19176
19177# Compiler flag to generate shared objects directly from archives.
19178whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19179
19180# Compiler flag to generate thread-safe objects.
19181thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19182
19183# Library versioning type.
19184version_type=$version_type
19185
19186# Format of library name prefix.
19187libname_spec=$lt_libname_spec
19188
19189# List of archive names. First name is the real one, the rest are links.
19190# The last name is the one that the linker finds with -lNAME.
19191library_names_spec=$lt_library_names_spec
19192
19193# The coded name of the library, if different from the real name.
19194soname_spec=$lt_soname_spec
19195
19196# Commands used to build and install an old-style archive.
19197RANLIB=$lt_RANLIB
19198old_archive_cmds=$lt_old_archive_cmds_GCJ
19199old_postinstall_cmds=$lt_old_postinstall_cmds
19200old_postuninstall_cmds=$lt_old_postuninstall_cmds
19201
19202# Create an old-style archive from a shared archive.
19203old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19204
19205# Create a temporary old-style archive to link instead of a shared archive.
19206old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19207
19208# Commands used to build and install a shared archive.
19209archive_cmds=$lt_archive_cmds_GCJ
19210archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19211postinstall_cmds=$lt_postinstall_cmds
19212postuninstall_cmds=$lt_postuninstall_cmds
19213
19214# Commands used to build a loadable module (assumed same as above if empty)
19215module_cmds=$lt_module_cmds_GCJ
19216module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19217
19218# Commands to strip libraries.
19219old_striplib=$lt_old_striplib
19220striplib=$lt_striplib
19221
19222# Dependencies to place before the objects being linked to create a
19223# shared library.
19224predep_objects=$lt_predep_objects_GCJ
19225
19226# Dependencies to place after the objects being linked to create a
19227# shared library.
19228postdep_objects=$lt_postdep_objects_GCJ
19229
19230# Dependencies to place before the objects being linked to create a
19231# shared library.
19232predeps=$lt_predeps_GCJ
19233
19234# Dependencies to place after the objects being linked to create a
19235# shared library.
19236postdeps=$lt_postdeps_GCJ
19237
19238# The directories searched by this compiler when creating a shared
19239# library
19240compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19241
19242# The library search path used internally by the compiler when linking
19243# a shared library.
19244compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19245
19246# Method to check whether dependent libraries are shared objects.
19247deplibs_check_method=$lt_deplibs_check_method
19248
19249# Command to use when deplibs_check_method == file_magic.
19250file_magic_cmd=$lt_file_magic_cmd
19251
19252# Flag that allows shared libraries with undefined symbols to be built.
19253allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19254
19255# Flag that forces no undefined symbols.
19256no_undefined_flag=$lt_no_undefined_flag_GCJ
19257
19258# Commands used to finish a libtool library installation in a directory.
19259finish_cmds=$lt_finish_cmds
19260
19261# Same as above, but a single script fragment to be evaled but not shown.
19262finish_eval=$lt_finish_eval
19263
19264# Take the output of nm and produce a listing of raw symbols and C names.
19265global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19266
19267# Transform the output of nm in a proper C declaration
19268global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19269
19270# Transform the output of nm in a C name address pair
19271global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19272
19273# This is the shared library runtime path variable.
19274runpath_var=$runpath_var
19275
19276# This is the shared library path variable.
19277shlibpath_var=$shlibpath_var
19278
19279# Is shlibpath searched before the hard-coded library search path?
19280shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19281
19282# How to hardcode a shared library path into an executable.
19283hardcode_action=$hardcode_action_GCJ
19284
19285# Whether we should hardcode library paths into libraries.
19286hardcode_into_libs=$hardcode_into_libs
19287
19288# Flag to hardcode \$libdir into a binary during linking.
19289# This must work even if \$libdir does not exist.
19290hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19291
19292# If ld is used when linking, flag to hardcode \$libdir into
19293# a binary during linking. This must work even if \$libdir does
19294# not exist.
19295hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19296
19297# Whether we need a single -rpath flag with a separated argument.
19298hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19299
19300# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19301# resulting binary.
19302hardcode_direct=$hardcode_direct_GCJ
19303
19304# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19305# resulting binary.
19306hardcode_minus_L=$hardcode_minus_L_GCJ
19307
19308# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19309# the resulting binary.
19310hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19311
19312# Set to yes if building a shared library automatically hardcodes DIR into the library
19313# and all subsequent libraries and executables linked against it.
19314hardcode_automatic=$hardcode_automatic_GCJ
19315
19316# Variables whose values should be saved in libtool wrapper scripts and
19317# restored at relink time.
19318variables_saved_for_relink="$variables_saved_for_relink"
19319
19320# Whether libtool must link a program against all its dependency libraries.
19321link_all_deplibs=$link_all_deplibs_GCJ
19322
19323# Compile-time system search path for libraries
19324sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19325
19326# Run-time system search path for libraries
19327sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19328
19329# Fix the shell variable \$srcfile for the compiler.
19330fix_srcfile_path=$lt_fix_srcfile_path
19331
19332# Set to yes if exported symbols are required.
19333always_export_symbols=$always_export_symbols_GCJ
19334
19335# The commands to list exported symbols.
19336export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19337
19338# The commands to extract the exported symbol list from a shared archive.
19339extract_expsyms_cmds=$lt_extract_expsyms_cmds
19340
19341# Symbols that should not be listed in the preloaded symbols.
19342exclude_expsyms=$lt_exclude_expsyms_GCJ
19343
19344# Symbols that must always be exported.
19345include_expsyms=$lt_include_expsyms_GCJ
19346
19347# ### END LIBTOOL TAG CONFIG: $tagname
19348
19349__EOF__
19350
19351
19352else
19353 # If there is no Makefile yet, we rely on a make rule to execute
19354 # `config.status --recheck' to rerun these tests and create the
19355 # libtool script then.
19356 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19357 if test -f "$ltmain_in"; then
19358 test -f Makefile && make "$ltmain"
19359 fi
19360fi
19361
19362
19363ac_ext=c
19364ac_cpp='$CPP $CPPFLAGS'
19365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19367ac_compiler_gnu=$ac_cv_c_compiler_gnu
19368
19369CC="$lt_save_CC"
19370
19371 else
19372 tagname=""
19373 fi
19374 ;;
19375
19376 RC)
19377
19378
19379# Source file extension for RC test sources.
19380ac_ext=rc
19381
19382# Object file extension for compiled RC test sources.
19383objext=o
19384objext_RC=$objext
19385
19386# Code to be used in simple compile tests
19387lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19388
19389# Code to be used in simple link tests
19390lt_simple_link_test_code="$lt_simple_compile_test_code"
19391
19392# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19393
19394# If no C compiler was specified, use CC.
19395LTCC=${LTCC-"$CC"}
19396
19397# If no C compiler flags were specified, use CFLAGS.
19398LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19399
19400# Allow CC to be a program name with arguments.
19401compiler=$CC
19402
19403
19404# save warnings/boilerplate of simple test code
19405ac_outfile=conftest.$ac_objext
19406echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19407eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19408_lt_compiler_boilerplate=`cat conftest.err`
19409$rm conftest*
19410
19411ac_outfile=conftest.$ac_objext
19412echo "$lt_simple_link_test_code" >conftest.$ac_ext
19413eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19414_lt_linker_boilerplate=`cat conftest.err`
19415$rm -r conftest*
19416
19417
19418# Allow CC to be a program name with arguments.
19419lt_save_CC="$CC"
19420CC=${RC-"windres"}
19421compiler=$CC
19422compiler_RC=$CC
19423for cc_temp in $compiler""; do
19424 case $cc_temp in
19425 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19426 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19427 \-*) ;;
19428 *) break;;
19429 esac
19430done
19431cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19432
19433lt_cv_prog_compiler_c_o_RC=yes
19434
19435# The else clause should only fire when bootstrapping the
19436# libtool distribution, otherwise you forgot to ship ltmain.sh
19437# with your package, and you will get complaints that there are
19438# no rules to generate ltmain.sh.
19439if test -f "$ltmain"; then
19440 # See if we are running on zsh, and set the options which allow our commands through
19441 # without removal of \ escapes.
19442 if test -n "${ZSH_VERSION+set}" ; then
19443 setopt NO_GLOB_SUBST
19444 fi
19445 # Now quote all the things that may contain metacharacters while being
19446 # careful not to overquote the AC_SUBSTed values. We take copies of the
19447 # variables and quote the copies for generation of the libtool script.
19448 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19449 SED SHELL STRIP \
19450 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19451 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19452 deplibs_check_method reload_flag reload_cmds need_locks \
19453 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19454 lt_cv_sys_global_symbol_to_c_name_address \
19455 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19456 old_postinstall_cmds old_postuninstall_cmds \
19457 compiler_RC \
19458 CC_RC \
19459 LD_RC \
19460 lt_prog_compiler_wl_RC \
19461 lt_prog_compiler_pic_RC \
19462 lt_prog_compiler_static_RC \
19463 lt_prog_compiler_no_builtin_flag_RC \
19464 export_dynamic_flag_spec_RC \
19465 thread_safe_flag_spec_RC \
19466 whole_archive_flag_spec_RC \
19467 enable_shared_with_static_runtimes_RC \
19468 old_archive_cmds_RC \
19469 old_archive_from_new_cmds_RC \
19470 predep_objects_RC \
19471 postdep_objects_RC \
19472 predeps_RC \
19473 postdeps_RC \
19474 compiler_lib_search_path_RC \
19475 compiler_lib_search_dirs_RC \
19476 archive_cmds_RC \
19477 archive_expsym_cmds_RC \
19478 postinstall_cmds_RC \
19479 postuninstall_cmds_RC \
19480 old_archive_from_expsyms_cmds_RC \
19481 allow_undefined_flag_RC \
19482 no_undefined_flag_RC \
19483 export_symbols_cmds_RC \
19484 hardcode_libdir_flag_spec_RC \
19485 hardcode_libdir_flag_spec_ld_RC \
19486 hardcode_libdir_separator_RC \
19487 hardcode_automatic_RC \
19488 module_cmds_RC \
19489 module_expsym_cmds_RC \
19490 lt_cv_prog_compiler_c_o_RC \
19491 fix_srcfile_path_RC \
19492 exclude_expsyms_RC \
19493 include_expsyms_RC; do
19494
19495 case $var in
19496 old_archive_cmds_RC | \
19497 old_archive_from_new_cmds_RC | \
19498 archive_cmds_RC | \
19499 archive_expsym_cmds_RC | \
19500 module_cmds_RC | \
19501 module_expsym_cmds_RC | \
19502 old_archive_from_expsyms_cmds_RC | \
19503 export_symbols_cmds_RC | \
19504 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19505 postinstall_cmds | postuninstall_cmds | \
19506 old_postinstall_cmds | old_postuninstall_cmds | \
19507 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19508 # Double-quote double-evaled strings.
19509 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19510 ;;
19511 *)
19512 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19513 ;;
19514 esac
19515 done
19516
19517 case $lt_echo in
19518 *'\$0 --fallback-echo"')
19519 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19520 ;;
19521 esac
19522
19523cfgfile="$ofile"
19524
19525 cat <<__EOF__ >> "$cfgfile"
19526# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19527
19528# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19529
19530# Shell to use when invoking shell scripts.
19531SHELL=$lt_SHELL
19532
19533# Whether or not to build shared libraries.
19534build_libtool_libs=$enable_shared
19535
19536# Whether or not to build static libraries.
19537build_old_libs=$enable_static
19538
19539# Whether or not to add -lc for building shared libraries.
19540build_libtool_need_lc=$archive_cmds_need_lc_RC
19541
19542# Whether or not to disallow shared libs when runtime libs are static
19543allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19544
19545# Whether or not to optimize for fast installation.
19546fast_install=$enable_fast_install
19547
19548# The host system.
19549host_alias=$host_alias
19550host=$host
19551host_os=$host_os
19552
19553# The build system.
19554build_alias=$build_alias
19555build=$build
19556build_os=$build_os
19557
19558# An echo program that does not interpret backslashes.
19559echo=$lt_echo
19560
19561# The archiver.
19562AR=$lt_AR
19563AR_FLAGS=$lt_AR_FLAGS
19564
19565# A C compiler.
19566LTCC=$lt_LTCC
19567
19568# LTCC compiler flags.
19569LTCFLAGS=$lt_LTCFLAGS
19570
19571# A language-specific compiler.
19572CC=$lt_compiler_RC
19573
19574# Is the compiler the GNU C compiler?
19575with_gcc=$GCC_RC
19576
19577# An ERE matcher.
19578EGREP=$lt_EGREP
19579
19580# The linker used to build libraries.
19581LD=$lt_LD_RC
19582
19583# Whether we need hard or soft links.
19584LN_S=$lt_LN_S
19585
19586# A BSD-compatible nm program.
19587NM=$lt_NM
19588
19589# A symbol stripping program
19590STRIP=$lt_STRIP
19591
19592# Used to examine libraries when file_magic_cmd begins "file"
19593MAGIC_CMD=$MAGIC_CMD
19594
19595# Used on cygwin: DLL creation program.
19596DLLTOOL="$DLLTOOL"
19597
19598# Used on cygwin: object dumper.
19599OBJDUMP="$OBJDUMP"
19600
19601# Used on cygwin: assembler.
19602AS="$AS"
19603
19604# The name of the directory that contains temporary libtool files.
19605objdir=$objdir
19606
19607# How to create reloadable object files.
19608reload_flag=$lt_reload_flag
19609reload_cmds=$lt_reload_cmds
19610
19611# How to pass a linker flag through the compiler.
19612wl=$lt_lt_prog_compiler_wl_RC
19613
19614# Object file suffix (normally "o").
19615objext="$ac_objext"
19616
19617# Old archive suffix (normally "a").
19618libext="$libext"
19619
19620# Shared library suffix (normally ".so").
19621shrext_cmds='$shrext_cmds'
19622
19623# Executable file suffix (normally "").
19624exeext="$exeext"
19625
19626# Additional compiler flags for building library objects.
19627pic_flag=$lt_lt_prog_compiler_pic_RC
19628pic_mode=$pic_mode
19629
19630# What is the maximum length of a command?
19631max_cmd_len=$lt_cv_sys_max_cmd_len
19632
19633# Does compiler simultaneously support -c and -o options?
19634compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19635
19636# Must we lock files when doing compilation?
19637need_locks=$lt_need_locks
19638
19639# Do we need the lib prefix for modules?
19640need_lib_prefix=$need_lib_prefix
19641
19642# Do we need a version for libraries?
19643need_version=$need_version
19644
19645# Whether dlopen is supported.
19646dlopen_support=$enable_dlopen
19647
19648# Whether dlopen of programs is supported.
19649dlopen_self=$enable_dlopen_self
19650
19651# Whether dlopen of statically linked programs is supported.
19652dlopen_self_static=$enable_dlopen_self_static
19653
19654# Compiler flag to prevent dynamic linking.
19655link_static_flag=$lt_lt_prog_compiler_static_RC
19656
19657# Compiler flag to turn off builtin functions.
19658no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19659
19660# Compiler flag to allow reflexive dlopens.
19661export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19662
19663# Compiler flag to generate shared objects directly from archives.
19664whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19665
19666# Compiler flag to generate thread-safe objects.
19667thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19668
19669# Library versioning type.
19670version_type=$version_type
19671
19672# Format of library name prefix.
19673libname_spec=$lt_libname_spec
19674
19675# List of archive names. First name is the real one, the rest are links.
19676# The last name is the one that the linker finds with -lNAME.
19677library_names_spec=$lt_library_names_spec
19678
19679# The coded name of the library, if different from the real name.
19680soname_spec=$lt_soname_spec
19681
19682# Commands used to build and install an old-style archive.
19683RANLIB=$lt_RANLIB
19684old_archive_cmds=$lt_old_archive_cmds_RC
19685old_postinstall_cmds=$lt_old_postinstall_cmds
19686old_postuninstall_cmds=$lt_old_postuninstall_cmds
19687
19688# Create an old-style archive from a shared archive.
19689old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19690
19691# Create a temporary old-style archive to link instead of a shared archive.
19692old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19693
19694# Commands used to build and install a shared archive.
19695archive_cmds=$lt_archive_cmds_RC
19696archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19697postinstall_cmds=$lt_postinstall_cmds
19698postuninstall_cmds=$lt_postuninstall_cmds
19699
19700# Commands used to build a loadable module (assumed same as above if empty)
19701module_cmds=$lt_module_cmds_RC
19702module_expsym_cmds=$lt_module_expsym_cmds_RC
19703
19704# Commands to strip libraries.
19705old_striplib=$lt_old_striplib
19706striplib=$lt_striplib
19707
19708# Dependencies to place before the objects being linked to create a
19709# shared library.
19710predep_objects=$lt_predep_objects_RC
19711
19712# Dependencies to place after the objects being linked to create a
19713# shared library.
19714postdep_objects=$lt_postdep_objects_RC
19715
19716# Dependencies to place before the objects being linked to create a
19717# shared library.
19718predeps=$lt_predeps_RC
19719
19720# Dependencies to place after the objects being linked to create a
19721# shared library.
19722postdeps=$lt_postdeps_RC
19723
19724# The directories searched by this compiler when creating a shared
19725# library
19726compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19727
19728# The library search path used internally by the compiler when linking
19729# a shared library.
19730compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19731
19732# Method to check whether dependent libraries are shared objects.
19733deplibs_check_method=$lt_deplibs_check_method
19734
19735# Command to use when deplibs_check_method == file_magic.
19736file_magic_cmd=$lt_file_magic_cmd
19737
19738# Flag that allows shared libraries with undefined symbols to be built.
19739allow_undefined_flag=$lt_allow_undefined_flag_RC
19740
19741# Flag that forces no undefined symbols.
19742no_undefined_flag=$lt_no_undefined_flag_RC
19743
19744# Commands used to finish a libtool library installation in a directory.
19745finish_cmds=$lt_finish_cmds
19746
19747# Same as above, but a single script fragment to be evaled but not shown.
19748finish_eval=$lt_finish_eval
19749
19750# Take the output of nm and produce a listing of raw symbols and C names.
19751global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19752
19753# Transform the output of nm in a proper C declaration
19754global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19755
19756# Transform the output of nm in a C name address pair
19757global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19758
19759# This is the shared library runtime path variable.
19760runpath_var=$runpath_var
19761
19762# This is the shared library path variable.
19763shlibpath_var=$shlibpath_var
19764
19765# Is shlibpath searched before the hard-coded library search path?
19766shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19767
19768# How to hardcode a shared library path into an executable.
19769hardcode_action=$hardcode_action_RC
19770
19771# Whether we should hardcode library paths into libraries.
19772hardcode_into_libs=$hardcode_into_libs
19773
19774# Flag to hardcode \$libdir into a binary during linking.
19775# This must work even if \$libdir does not exist.
19776hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19777
19778# If ld is used when linking, flag to hardcode \$libdir into
19779# a binary during linking. This must work even if \$libdir does
19780# not exist.
19781hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19782
19783# Whether we need a single -rpath flag with a separated argument.
19784hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19785
19786# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19787# resulting binary.
19788hardcode_direct=$hardcode_direct_RC
19789
19790# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19791# resulting binary.
19792hardcode_minus_L=$hardcode_minus_L_RC
19793
19794# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19795# the resulting binary.
19796hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19797
19798# Set to yes if building a shared library automatically hardcodes DIR into the library
19799# and all subsequent libraries and executables linked against it.
19800hardcode_automatic=$hardcode_automatic_RC
19801
19802# Variables whose values should be saved in libtool wrapper scripts and
19803# restored at relink time.
19804variables_saved_for_relink="$variables_saved_for_relink"
19805
19806# Whether libtool must link a program against all its dependency libraries.
19807link_all_deplibs=$link_all_deplibs_RC
19808
19809# Compile-time system search path for libraries
19810sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19811
19812# Run-time system search path for libraries
19813sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19814
19815# Fix the shell variable \$srcfile for the compiler.
19816fix_srcfile_path=$lt_fix_srcfile_path
19817
19818# Set to yes if exported symbols are required.
19819always_export_symbols=$always_export_symbols_RC
19820
19821# The commands to list exported symbols.
19822export_symbols_cmds=$lt_export_symbols_cmds_RC
19823
19824# The commands to extract the exported symbol list from a shared archive.
19825extract_expsyms_cmds=$lt_extract_expsyms_cmds
19826
19827# Symbols that should not be listed in the preloaded symbols.
19828exclude_expsyms=$lt_exclude_expsyms_RC
19829
19830# Symbols that must always be exported.
19831include_expsyms=$lt_include_expsyms_RC
19832
19833# ### END LIBTOOL TAG CONFIG: $tagname
19834
19835__EOF__
19836
19837
19838else
19839 # If there is no Makefile yet, we rely on a make rule to execute
19840 # `config.status --recheck' to rerun these tests and create the
19841 # libtool script then.
19842 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19843 if test -f "$ltmain_in"; then
19844 test -f Makefile && make "$ltmain"
19845 fi
19846fi
19847
19848
19849ac_ext=c
19850ac_cpp='$CPP $CPPFLAGS'
19851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19853ac_compiler_gnu=$ac_cv_c_compiler_gnu
19854
19855CC="$lt_save_CC"
19856
19857 ;;
19858
19859 *)
19860 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19861echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19862 { (exit 1); exit 1; }; }
19863 ;;
19864 esac
19865
19866 # Append the new tag name to the list of available tags.
19867 if test -n "$tagname" ; then
19868 available_tags="$available_tags $tagname"
19869 fi
19870 fi
19871 done
19872 IFS="$lt_save_ifs"
19873
19874 # Now substitute the updated list of available tags.
19875 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19876 mv "${ofile}T" "$ofile"
19877 chmod +x "$ofile"
19878 else
19879 rm -f "${ofile}T"
19880 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19881echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19882 { (exit 1); exit 1; }; }
19883 fi
19884fi
19885
19886
19887
19888# This can be used to rebuild libtool when needed
19889LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19890
19891# Always use our own libtool.
19892LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19893
19894# Prevent multiple expansion
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917# Check whether --with-kernel was given.
19918if test "${with_kernel+set}" = set; then
19919 withval=$with_kernel; kbuilddir="$withval"; ksourcedir="$withval";
19920fi
19921
19922
19923# Check whether --with-kbuild was given.
19924if test "${with_kbuild+set}" = set; then
19925 withval=$with_kbuild; kbuilddir="$withval"
19926fi
19927
19928
19929# Check whether --with-ksource was given.
19930if test "${with_ksource+set}" = set; then
19931 withval=$with_ksource; ksourcedir="$withval"
19932fi
19933
19934
19935# Check whether --with-xtlibdir was given.
19936if test "${with_xtlibdir+set}" = set; then
19937 withval=$with_xtlibdir; xtlibdir="$withval"
19938else
19939 xtlibdir="${libexecdir}/xtables"
19940fi
19941
19942# Check whether --enable-ipv4 was given.
19943if test "${enable_ipv4+set}" = set; then
19944 enableval=$enable_ipv4; enable_ipv4="$enableval"
19945else
19946 enable_ipv4="yes"
19947fi
19948
19949# Check whether --enable-ipv6 was given.
19950if test "${enable_ipv6+set}" = set; then
19951 enableval=$enable_ipv6; enable_ipv6="$enableval"
19952else
19953 enable_ipv6="yes"
19954fi
19955
19956# Check whether --enable-devel was given.
19957if test "${enable_devel+set}" = set; then
19958 enableval=$enable_devel; enable_devel="$enableval"
19959else
19960 enable_devel="yes"
19961fi
19962
19963# Check whether --enable-libipq was given.
19964if test "${enable_libipq+set}" = set; then
19965 enableval=$enable_libipq;
19966fi
19967
19968
19969# Check whether --with-pkgconfigdir was given.
19970if test "${with_pkgconfigdir+set}" = set; then
19971 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
19972else
19973 pkgconfigdir='${libdir}/pkgconfig'
19974fi
19975
19976
19977if test "${ac_cv_header_linux_dccp_h+set}" = set; then
19978 { echo "$as_me:$LINENO: checking for linux/dccp.h" >&5
19979echo $ECHO_N "checking for linux/dccp.h... $ECHO_C" >&6; }
19980if test "${ac_cv_header_linux_dccp_h+set}" = set; then
19981 echo $ECHO_N "(cached) $ECHO_C" >&6
19982fi
19983{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_dccp_h" >&5
19984echo "${ECHO_T}$ac_cv_header_linux_dccp_h" >&6; }
19985else
19986 # Is the header compilable?
19987{ echo "$as_me:$LINENO: checking linux/dccp.h usability" >&5
19988echo $ECHO_N "checking linux/dccp.h usability... $ECHO_C" >&6; }
19989cat >conftest.$ac_ext <<_ACEOF
19990/* confdefs.h. */
19991_ACEOF
19992cat confdefs.h >>conftest.$ac_ext
19993cat >>conftest.$ac_ext <<_ACEOF
19994/* end confdefs.h. */
19995$ac_includes_default
19996#include <linux/dccp.h>
19997_ACEOF
19998rm -f conftest.$ac_objext
19999if { (ac_try="$ac_compile"
20000case "(($ac_try" in
20001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20002 *) ac_try_echo=$ac_try;;
20003esac
20004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20005 (eval "$ac_compile") 2>conftest.er1
20006 ac_status=$?
20007 grep -v '^ *+' conftest.er1 >conftest.err
20008 rm -f conftest.er1
20009 cat conftest.err >&5
20010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011 (exit $ac_status); } && {
20012 test -z "$ac_c_werror_flag" ||
20013 test ! -s conftest.err
20014 } && test -s conftest.$ac_objext; then
20015 ac_header_compiler=yes
20016else
20017 echo "$as_me: failed program was:" >&5
20018sed 's/^/| /' conftest.$ac_ext >&5
20019
20020 ac_header_compiler=no
20021fi
20022
20023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20024{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20025echo "${ECHO_T}$ac_header_compiler" >&6; }
20026
20027# Is the header present?
20028{ echo "$as_me:$LINENO: checking linux/dccp.h presence" >&5
20029echo $ECHO_N "checking linux/dccp.h presence... $ECHO_C" >&6; }
20030cat >conftest.$ac_ext <<_ACEOF
20031/* confdefs.h. */
20032_ACEOF
20033cat confdefs.h >>conftest.$ac_ext
20034cat >>conftest.$ac_ext <<_ACEOF
20035/* end confdefs.h. */
20036#include <linux/dccp.h>
20037_ACEOF
20038if { (ac_try="$ac_cpp conftest.$ac_ext"
20039case "(($ac_try" in
20040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20041 *) ac_try_echo=$ac_try;;
20042esac
20043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20045 ac_status=$?
20046 grep -v '^ *+' conftest.er1 >conftest.err
20047 rm -f conftest.er1
20048 cat conftest.err >&5
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); } >/dev/null && {
20051 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20052 test ! -s conftest.err
20053 }; then
20054 ac_header_preproc=yes
20055else
20056 echo "$as_me: failed program was:" >&5
20057sed 's/^/| /' conftest.$ac_ext >&5
20058
20059 ac_header_preproc=no
20060fi
20061
20062rm -f conftest.err conftest.$ac_ext
20063{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20064echo "${ECHO_T}$ac_header_preproc" >&6; }
20065
20066# So? What about this header?
20067case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20068 yes:no: )
20069 { echo "$as_me:$LINENO: WARNING: linux/dccp.h: accepted by the compiler, rejected by the preprocessor!" >&5
20070echo "$as_me: WARNING: linux/dccp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20071 { echo "$as_me:$LINENO: WARNING: linux/dccp.h: proceeding with the compiler's result" >&5
20072echo "$as_me: WARNING: linux/dccp.h: proceeding with the compiler's result" >&2;}
20073 ac_header_preproc=yes
20074 ;;
20075 no:yes:* )
20076 { echo "$as_me:$LINENO: WARNING: linux/dccp.h: present but cannot be compiled" >&5
20077echo "$as_me: WARNING: linux/dccp.h: present but cannot be compiled" >&2;}
20078 { echo "$as_me:$LINENO: WARNING: linux/dccp.h: check for missing prerequisite headers?" >&5
20079echo "$as_me: WARNING: linux/dccp.h: check for missing prerequisite headers?" >&2;}
20080 { echo "$as_me:$LINENO: WARNING: linux/dccp.h: see the Autoconf documentation" >&5
20081echo "$as_me: WARNING: linux/dccp.h: see the Autoconf documentation" >&2;}
20082 { echo "$as_me:$LINENO: WARNING: linux/dccp.h: section \"Present But Cannot Be Compiled\"" >&5
20083echo "$as_me: WARNING: linux/dccp.h: section \"Present But Cannot Be Compiled\"" >&2;}
20084 { echo "$as_me:$LINENO: WARNING: linux/dccp.h: proceeding with the preprocessor's result" >&5
20085echo "$as_me: WARNING: linux/dccp.h: proceeding with the preprocessor's result" >&2;}
20086 { echo "$as_me:$LINENO: WARNING: linux/dccp.h: in the future, the compiler will take precedence" >&5
20087echo "$as_me: WARNING: linux/dccp.h: in the future, the compiler will take precedence" >&2;}
20088
20089 ;;
20090esac
20091{ echo "$as_me:$LINENO: checking for linux/dccp.h" >&5
20092echo $ECHO_N "checking for linux/dccp.h... $ECHO_C" >&6; }
20093if test "${ac_cv_header_linux_dccp_h+set}" = set; then
20094 echo $ECHO_N "(cached) $ECHO_C" >&6
20095else
20096 ac_cv_header_linux_dccp_h=$ac_header_preproc
20097fi
20098{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_dccp_h" >&5
20099echo "${ECHO_T}$ac_cv_header_linux_dccp_h" >&6; }
20100
20101fi
20102
20103
20104
20105blacklist_modules="";
20106if test "$ac_cv_header_linux_dccp_h" != "yes"; then
20107 blacklist_modules="$blacklist_modules dccp";
20108fi;
20109
20110
20111 if test "$enable_static" = "yes"; then
20112 ENABLE_STATIC_TRUE=
20113 ENABLE_STATIC_FALSE='#'
20114else
20115 ENABLE_STATIC_TRUE='#'
20116 ENABLE_STATIC_FALSE=
20117fi
20118
20119 if test "$enable_shared" = "yes"; then
20120 ENABLE_SHARED_TRUE=
20121 ENABLE_SHARED_FALSE='#'
20122else
20123 ENABLE_SHARED_TRUE='#'
20124 ENABLE_SHARED_FALSE=
20125fi
20126
20127 if test "$enable_ipv4" = "yes"; then
20128 ENABLE_IPV4_TRUE=
20129 ENABLE_IPV4_FALSE='#'
20130else
20131 ENABLE_IPV4_TRUE='#'
20132 ENABLE_IPV4_FALSE=
20133fi
20134
20135 if test "$enable_ipv6" = "yes"; then
20136 ENABLE_IPV6_TRUE=
20137 ENABLE_IPV6_FALSE='#'
20138else
20139 ENABLE_IPV6_TRUE='#'
20140 ENABLE_IPV6_FALSE=
20141fi
20142
20143 if test "$enable_devel" = "yes"; then
20144 ENABLE_DEVEL_TRUE=
20145 ENABLE_DEVEL_FALSE='#'
20146else
20147 ENABLE_DEVEL_TRUE='#'
20148 ENABLE_DEVEL_FALSE=
20149fi
20150
20151 if test "$enable_libipq" = "yes"; then
20152 ENABLE_LIBIPQ_TRUE=
20153 ENABLE_LIBIPQ_FALSE='#'
20154else
20155 ENABLE_LIBIPQ_TRUE='#'
20156 ENABLE_LIBIPQ_FALSE=
20157fi
20158
20159
20160regular_CFLAGS="-D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 \
20161 -D_REENTRANT -Wall -Waggregate-return -Wmissing-declarations \
20162 -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes \
20163 -Winline -pipe \
20164 -DXTABLES_LIBDIR=\\\"\${xtlibdir}\\\" -DXTABLES_INTERNAL";
20165kinclude_CFLAGS="";
20166if [ "$enable_static" = yes ]; then
20167 regular_CFLAGS="$regular_CFLAGS -DNO_SHARED_LIBS=1";
20168fi
20169if [ -n "$kbuilddir" ]; then
20170 kinclude_CFLAGS="$kinclude_CFLAGS -I $kbuilddir/include";
20171fi;
20172if [ -n "$ksourcedir" ]; then
20173 kinclude_CFLAGS="$kinclude_CFLAGS -I $ksourcedir/include";
20174fi;
20175
20176
20177
20178
20179
20180
20181
20182
20183
20184libxtables_vmajor=$(($libxtables_vcurrent - $libxtables_vage));
20185
20186
20187ac_config_files="$ac_config_files Makefile extensions/GNUmakefile include/Makefile libipq/Makefile include/xtables.h include/iptables/internal.h libiptc.pc xtables.pc"
20188
20189cat >confcache <<\_ACEOF
20190# This file is a shell script that caches the results of configure
20191# tests run on this system so they can be shared between configure
20192# scripts and configure runs, see configure's option --config-cache.
20193# It is not useful on other systems. If it contains results you don't
20194# want to keep, you may remove or edit it.
20195#
20196# config.status only pays attention to the cache file if you give it
20197# the --recheck option to rerun configure.
20198#
20199# `ac_cv_env_foo' variables (set or unset) will be overridden when
20200# loading this file, other *unset* `ac_cv_foo' will be assigned the
20201# following values.
20202
20203_ACEOF
20204
20205# The following way of writing the cache mishandles newlines in values,
20206# but we know of no workaround that is simple, portable, and efficient.
20207# So, we kill variables containing newlines.
20208# Ultrix sh set writes to stderr and can't be redirected directly,
20209# and sets the high bit in the cache file unless we assign to the vars.
20210(
20211 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20212 eval ac_val=\$$ac_var
20213 case $ac_val in #(
20214 *${as_nl}*)
20215 case $ac_var in #(
20216 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20217echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20218 esac
20219 case $ac_var in #(
20220 _ | IFS | as_nl) ;; #(
20221 *) $as_unset $ac_var ;;
20222 esac ;;
20223 esac
20224 done
20225
20226 (set) 2>&1 |
20227 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20228 *${as_nl}ac_space=\ *)
20229 # `set' does not quote correctly, so add quotes (double-quote
20230 # substitution turns \\\\ into \\, and sed turns \\ into \).
20231 sed -n \
20232 "s/'/'\\\\''/g;
20233 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20234 ;; #(
20235 *)
20236 # `set' quotes correctly as required by POSIX, so do not add quotes.
20237 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20238 ;;
20239 esac |
20240 sort
20241) |
20242 sed '
20243 /^ac_cv_env_/b end
20244 t clear
20245 :clear
20246 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20247 t end
20248 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20249 :end' >>confcache
20250if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20251 if test -w "$cache_file"; then
20252 test "x$cache_file" != "x/dev/null" &&
20253 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20254echo "$as_me: updating cache $cache_file" >&6;}
20255 cat confcache >$cache_file
20256 else
20257 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20258echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20259 fi
20260fi
20261rm -f confcache
20262
20263test "x$prefix" = xNONE && prefix=$ac_default_prefix
20264# Let make expand exec_prefix.
20265test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20266
20267DEFS=-DHAVE_CONFIG_H
20268
20269ac_libobjs=
20270ac_ltlibobjs=
20271for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20272 # 1. Remove the extension, and $U if already installed.
20273 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20274 ac_i=`echo "$ac_i" | sed "$ac_script"`
20275 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20276 # will be set to the directory where LIBOBJS objects are built.
20277 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20278 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20279done
20280LIBOBJS=$ac_libobjs
20281
20282LTLIBOBJS=$ac_ltlibobjs
20283
20284
20285if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20286 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20287Usually this means the macro was only invoked conditionally." >&5
20288echo "$as_me: error: conditional \"AMDEP\" was never defined.
20289Usually this means the macro was only invoked conditionally." >&2;}
20290 { (exit 1); exit 1; }; }
20291fi
20292if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20293 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20294Usually this means the macro was only invoked conditionally." >&5
20295echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20296Usually this means the macro was only invoked conditionally." >&2;}
20297 { (exit 1); exit 1; }; }
20298fi
20299if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20300 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20301Usually this means the macro was only invoked conditionally." >&5
20302echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20303Usually this means the macro was only invoked conditionally." >&2;}
20304 { (exit 1); exit 1; }; }
20305fi
20306if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
20307 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_STATIC\" was never defined.
20308Usually this means the macro was only invoked conditionally." >&5
20309echo "$as_me: error: conditional \"ENABLE_STATIC\" was never defined.
20310Usually this means the macro was only invoked conditionally." >&2;}
20311 { (exit 1); exit 1; }; }
20312fi
20313if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
20314 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SHARED\" was never defined.
20315Usually this means the macro was only invoked conditionally." >&5
20316echo "$as_me: error: conditional \"ENABLE_SHARED\" was never defined.
20317Usually this means the macro was only invoked conditionally." >&2;}
20318 { (exit 1); exit 1; }; }
20319fi
20320if test -z "${ENABLE_IPV4_TRUE}" && test -z "${ENABLE_IPV4_FALSE}"; then
20321 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IPV4\" was never defined.
20322Usually this means the macro was only invoked conditionally." >&5
20323echo "$as_me: error: conditional \"ENABLE_IPV4\" was never defined.
20324Usually this means the macro was only invoked conditionally." >&2;}
20325 { (exit 1); exit 1; }; }
20326fi
20327if test -z "${ENABLE_IPV6_TRUE}" && test -z "${ENABLE_IPV6_FALSE}"; then
20328 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IPV6\" was never defined.
20329Usually this means the macro was only invoked conditionally." >&5
20330echo "$as_me: error: conditional \"ENABLE_IPV6\" was never defined.
20331Usually this means the macro was only invoked conditionally." >&2;}
20332 { (exit 1); exit 1; }; }
20333fi
20334if test -z "${ENABLE_DEVEL_TRUE}" && test -z "${ENABLE_DEVEL_FALSE}"; then
20335 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DEVEL\" was never defined.
20336Usually this means the macro was only invoked conditionally." >&5
20337echo "$as_me: error: conditional \"ENABLE_DEVEL\" was never defined.
20338Usually this means the macro was only invoked conditionally." >&2;}
20339 { (exit 1); exit 1; }; }
20340fi
20341if test -z "${ENABLE_LIBIPQ_TRUE}" && test -z "${ENABLE_LIBIPQ_FALSE}"; then
20342 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBIPQ\" was never defined.
20343Usually this means the macro was only invoked conditionally." >&5
20344echo "$as_me: error: conditional \"ENABLE_LIBIPQ\" was never defined.
20345Usually this means the macro was only invoked conditionally." >&2;}
20346 { (exit 1); exit 1; }; }
20347fi
20348
20349: ${CONFIG_STATUS=./config.status}
20350ac_clean_files_save=$ac_clean_files
20351ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20352{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20353echo "$as_me: creating $CONFIG_STATUS" >&6;}
20354cat >$CONFIG_STATUS <<_ACEOF
20355#! $SHELL
20356# Generated by $as_me.
20357# Run this file to recreate the current configuration.
20358# Compiler output produced by configure, useful for debugging
20359# configure, is in config.log if it exists.
20360
20361debug=false
20362ac_cs_recheck=false
20363ac_cs_silent=false
20364SHELL=\${CONFIG_SHELL-$SHELL}
20365_ACEOF
20366
20367cat >>$CONFIG_STATUS <<\_ACEOF
20368## --------------------- ##
20369## M4sh Initialization. ##
20370## --------------------- ##
20371
20372# Be more Bourne compatible
20373DUALCASE=1; export DUALCASE # for MKS sh
20374if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20375 emulate sh
20376 NULLCMD=:
20377 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20378 # is contrary to our usage. Disable this feature.
20379 alias -g '${1+"$@"}'='"$@"'
20380 setopt NO_GLOB_SUBST
20381else
20382 case `(set -o) 2>/dev/null` in
20383 *posix*) set -o posix ;;
20384esac
20385
20386fi
20387
20388
20389
20390
20391# PATH needs CR
20392# Avoid depending upon Character Ranges.
20393as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20394as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20395as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20396as_cr_digits='0123456789'
20397as_cr_alnum=$as_cr_Letters$as_cr_digits
20398
20399# The user is always right.
20400if test "${PATH_SEPARATOR+set}" != set; then
20401 echo "#! /bin/sh" >conf$$.sh
20402 echo "exit 0" >>conf$$.sh
20403 chmod +x conf$$.sh
20404 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20405 PATH_SEPARATOR=';'
20406 else
20407 PATH_SEPARATOR=:
20408 fi
20409 rm -f conf$$.sh
20410fi
20411
20412# Support unset when possible.
20413if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20414 as_unset=unset
20415else
20416 as_unset=false
20417fi
20418
20419
20420# IFS
20421# We need space, tab and new line, in precisely that order. Quoting is
20422# there to prevent editors from complaining about space-tab.
20423# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20424# splitting by setting IFS to empty value.)
20425as_nl='
20426'
20427IFS=" "" $as_nl"
20428
20429# Find who we are. Look in the path if we contain no directory separator.
20430case $0 in
20431 *[\\/]* ) as_myself=$0 ;;
20432 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20433for as_dir in $PATH
20434do
20435 IFS=$as_save_IFS
20436 test -z "$as_dir" && as_dir=.
20437 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20438done
20439IFS=$as_save_IFS
20440
20441 ;;
20442esac
20443# We did not find ourselves, most probably we were run as `sh COMMAND'
20444# in which case we are not to be found in the path.
20445if test "x$as_myself" = x; then
20446 as_myself=$0
20447fi
20448if test ! -f "$as_myself"; then
20449 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20450 { (exit 1); exit 1; }
20451fi
20452
20453# Work around bugs in pre-3.0 UWIN ksh.
20454for as_var in ENV MAIL MAILPATH
20455do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20456done
20457PS1='$ '
20458PS2='> '
20459PS4='+ '
20460
20461# NLS nuisances.
20462for as_var in \
20463 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20464 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20465 LC_TELEPHONE LC_TIME
20466do
20467 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20468 eval $as_var=C; export $as_var
20469 else
20470 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20471 fi
20472done
20473
20474# Required to use basename.
20475if expr a : '\(a\)' >/dev/null 2>&1 &&
20476 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20477 as_expr=expr
20478else
20479 as_expr=false
20480fi
20481
20482if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20483 as_basename=basename
20484else
20485 as_basename=false
20486fi
20487
20488
20489# Name of the executable.
20490as_me=`$as_basename -- "$0" ||
20491$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20492 X"$0" : 'X\(//\)$' \| \
20493 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20494echo X/"$0" |
20495 sed '/^.*\/\([^/][^/]*\)\/*$/{
20496 s//\1/
20497 q
20498 }
20499 /^X\/\(\/\/\)$/{
20500 s//\1/
20501 q
20502 }
20503 /^X\/\(\/\).*/{
20504 s//\1/
20505 q
20506 }
20507 s/.*/./; q'`
20508
20509# CDPATH.
20510$as_unset CDPATH
20511
20512
20513
20514 as_lineno_1=$LINENO
20515 as_lineno_2=$LINENO
20516 test "x$as_lineno_1" != "x$as_lineno_2" &&
20517 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20518
20519 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20520 # uniformly replaced by the line number. The first 'sed' inserts a
20521 # line-number line after each line using $LINENO; the second 'sed'
20522 # does the real work. The second script uses 'N' to pair each
20523 # line-number line with the line containing $LINENO, and appends
20524 # trailing '-' during substitution so that $LINENO is not a special
20525 # case at line end.
20526 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20527 # scripts with optimization help from Paolo Bonzini. Blame Lee
20528 # E. McMahon (1931-1989) for sed's syntax. :-)
20529 sed -n '
20530 p
20531 /[$]LINENO/=
20532 ' <$as_myself |
20533 sed '
20534 s/[$]LINENO.*/&-/
20535 t lineno
20536 b
20537 :lineno
20538 N
20539 :loop
20540 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20541 t loop
20542 s/-\n.*//
20543 ' >$as_me.lineno &&
20544 chmod +x "$as_me.lineno" ||
20545 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20546 { (exit 1); exit 1; }; }
20547
20548 # Don't try to exec as it changes $[0], causing all sort of problems
20549 # (the dirname of $[0] is not the place where we might find the
20550 # original and so on. Autoconf is especially sensitive to this).
20551 . "./$as_me.lineno"
20552 # Exit status is that of the last command.
20553 exit
20554}
20555
20556
20557if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20558 as_dirname=dirname
20559else
20560 as_dirname=false
20561fi
20562
20563ECHO_C= ECHO_N= ECHO_T=
20564case `echo -n x` in
20565-n*)
20566 case `echo 'x\c'` in
20567 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20568 *) ECHO_C='\c';;
20569 esac;;
20570*)
20571 ECHO_N='-n';;
20572esac
20573
20574if expr a : '\(a\)' >/dev/null 2>&1 &&
20575 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20576 as_expr=expr
20577else
20578 as_expr=false
20579fi
20580
20581rm -f conf$$ conf$$.exe conf$$.file
20582if test -d conf$$.dir; then
20583 rm -f conf$$.dir/conf$$.file
20584else
20585 rm -f conf$$.dir
20586 mkdir conf$$.dir
20587fi
20588echo >conf$$.file
20589if ln -s conf$$.file conf$$ 2>/dev/null; then
20590 as_ln_s='ln -s'
20591 # ... but there are two gotchas:
20592 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20593 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20594 # In both cases, we have to default to `cp -p'.
20595 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20596 as_ln_s='cp -p'
20597elif ln conf$$.file conf$$ 2>/dev/null; then
20598 as_ln_s=ln
20599else
20600 as_ln_s='cp -p'
20601fi
20602rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20603rmdir conf$$.dir 2>/dev/null
20604
20605if mkdir -p . 2>/dev/null; then
20606 as_mkdir_p=:
20607else
20608 test -d ./-p && rmdir ./-p
20609 as_mkdir_p=false
20610fi
20611
20612if test -x / >/dev/null 2>&1; then
20613 as_test_x='test -x'
20614else
20615 if ls -dL / >/dev/null 2>&1; then
20616 as_ls_L_option=L
20617 else
20618 as_ls_L_option=
20619 fi
20620 as_test_x='
20621 eval sh -c '\''
20622 if test -d "$1"; then
20623 test -d "$1/.";
20624 else
20625 case $1 in
20626 -*)set "./$1";;
20627 esac;
20628 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20629 ???[sx]*):;;*)false;;esac;fi
20630 '\'' sh
20631 '
20632fi
20633as_executable_p=$as_test_x
20634
20635# Sed expression to map a string onto a valid CPP name.
20636as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20637
20638# Sed expression to map a string onto a valid variable name.
20639as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20640
20641
20642exec 6>&1
20643
20644# Save the log message, to keep $[0] and so on meaningful, and to
20645# report actual input values of CONFIG_FILES etc. instead of their
20646# values after options handling.
20647ac_log="
20648This file was extended by iptables $as_me 1.4.3.2, which was
20649generated by GNU Autoconf 2.61. Invocation command line was
20650
20651 CONFIG_FILES = $CONFIG_FILES
20652 CONFIG_HEADERS = $CONFIG_HEADERS
20653 CONFIG_LINKS = $CONFIG_LINKS
20654 CONFIG_COMMANDS = $CONFIG_COMMANDS
20655 $ $0 $@
20656
20657on `(hostname || uname -n) 2>/dev/null | sed 1q`
20658"
20659
20660_ACEOF
20661
20662cat >>$CONFIG_STATUS <<_ACEOF
20663# Files that config.status was made for.
20664config_files="$ac_config_files"
20665config_headers="$ac_config_headers"
20666config_commands="$ac_config_commands"
20667
20668_ACEOF
20669
20670cat >>$CONFIG_STATUS <<\_ACEOF
20671ac_cs_usage="\
20672\`$as_me' instantiates files from templates according to the
20673current configuration.
20674
20675Usage: $0 [OPTIONS] [FILE]...
20676
20677 -h, --help print this help, then exit
20678 -V, --version print version number and configuration settings, then exit
20679 -q, --quiet do not print progress messages
20680 -d, --debug don't remove temporary files
20681 --recheck update $as_me by reconfiguring in the same conditions
20682 --file=FILE[:TEMPLATE]
20683 instantiate the configuration file FILE
20684 --header=FILE[:TEMPLATE]
20685 instantiate the configuration header FILE
20686
20687Configuration files:
20688$config_files
20689
20690Configuration headers:
20691$config_headers
20692
20693Configuration commands:
20694$config_commands
20695
20696Report bugs to <bug-autoconf@gnu.org>."
20697
20698_ACEOF
20699cat >>$CONFIG_STATUS <<_ACEOF
20700ac_cs_version="\\
20701iptables config.status 1.4.3.2
20702configured by $0, generated by GNU Autoconf 2.61,
20703 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20704
20705Copyright (C) 2006 Free Software Foundation, Inc.
20706This config.status script is free software; the Free Software Foundation
20707gives unlimited permission to copy, distribute and modify it."
20708
20709ac_pwd='$ac_pwd'
20710srcdir='$srcdir'
20711INSTALL='$INSTALL'
20712MKDIR_P='$MKDIR_P'
20713_ACEOF
20714
20715cat >>$CONFIG_STATUS <<\_ACEOF
20716# If no file are specified by the user, then we need to provide default
20717# value. By we need to know if files were specified by the user.
20718ac_need_defaults=:
20719while test $# != 0
20720do
20721 case $1 in
20722 --*=*)
20723 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20724 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20725 ac_shift=:
20726 ;;
20727 *)
20728 ac_option=$1
20729 ac_optarg=$2
20730 ac_shift=shift
20731 ;;
20732 esac
20733
20734 case $ac_option in
20735 # Handling of the options.
20736 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20737 ac_cs_recheck=: ;;
20738 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20739 echo "$ac_cs_version"; exit ;;
20740 --debug | --debu | --deb | --de | --d | -d )
20741 debug=: ;;
20742 --file | --fil | --fi | --f )
20743 $ac_shift
20744 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20745 ac_need_defaults=false;;
20746 --header | --heade | --head | --hea )
20747 $ac_shift
20748 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20749 ac_need_defaults=false;;
20750 --he | --h)
20751 # Conflict between --help and --header
20752 { echo "$as_me: error: ambiguous option: $1
20753Try \`$0 --help' for more information." >&2
20754 { (exit 1); exit 1; }; };;
20755 --help | --hel | -h )
20756 echo "$ac_cs_usage"; exit ;;
20757 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20758 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20759 ac_cs_silent=: ;;
20760
20761 # This is an error.
20762 -*) { echo "$as_me: error: unrecognized option: $1
20763Try \`$0 --help' for more information." >&2
20764 { (exit 1); exit 1; }; } ;;
20765
20766 *) ac_config_targets="$ac_config_targets $1"
20767 ac_need_defaults=false ;;
20768
20769 esac
20770 shift
20771done
20772
20773ac_configure_extra_args=
20774
20775if $ac_cs_silent; then
20776 exec 6>/dev/null
20777 ac_configure_extra_args="$ac_configure_extra_args --silent"
20778fi
20779
20780_ACEOF
20781cat >>$CONFIG_STATUS <<_ACEOF
20782if \$ac_cs_recheck; then
20783 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20784 CONFIG_SHELL=$SHELL
20785 export CONFIG_SHELL
20786 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20787fi
20788
20789_ACEOF
20790cat >>$CONFIG_STATUS <<\_ACEOF
20791exec 5>>config.log
20792{
20793 echo
20794 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20795## Running $as_me. ##
20796_ASBOX
20797 echo "$ac_log"
20798} >&5
20799
20800_ACEOF
20801cat >>$CONFIG_STATUS <<_ACEOF
20802#
20803# INIT-COMMANDS
20804#
20805AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20806
20807_ACEOF
20808
20809cat >>$CONFIG_STATUS <<\_ACEOF
20810
20811# Handling of arguments.
20812for ac_config_target in $ac_config_targets
20813do
20814 case $ac_config_target in
20815 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20816 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20817 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20818 "extensions/GNUmakefile") CONFIG_FILES="$CONFIG_FILES extensions/GNUmakefile" ;;
20819 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20820 "libipq/Makefile") CONFIG_FILES="$CONFIG_FILES libipq/Makefile" ;;
20821 "include/xtables.h") CONFIG_FILES="$CONFIG_FILES include/xtables.h" ;;
20822 "include/iptables/internal.h") CONFIG_FILES="$CONFIG_FILES include/iptables/internal.h" ;;
20823 "libiptc.pc") CONFIG_FILES="$CONFIG_FILES libiptc.pc" ;;
20824 "xtables.pc") CONFIG_FILES="$CONFIG_FILES xtables.pc" ;;
20825
20826 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20827echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20828 { (exit 1); exit 1; }; };;
20829 esac
20830done
20831
20832
20833# If the user did not use the arguments to specify the items to instantiate,
20834# then the envvar interface is used. Set only those that are not.
20835# We use the long form for the default assignment because of an extremely
20836# bizarre bug on SunOS 4.1.3.
20837if $ac_need_defaults; then
20838 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20839 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20840 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20841fi
20842
20843# Have a temporary directory for convenience. Make it in the build tree
20844# simply because there is no reason against having it here, and in addition,
20845# creating and moving files from /tmp can sometimes cause problems.
20846# Hook for its removal unless debugging.
20847# Note that there is a small window in which the directory will not be cleaned:
20848# after its creation but before its name has been assigned to `$tmp'.
20849$debug ||
20850{
20851 tmp=
20852 trap 'exit_status=$?
20853 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20854' 0
20855 trap '{ (exit 1); exit 1; }' 1 2 13 15
20856}
20857# Create a (secure) tmp directory for tmp files.
20858
20859{
20860 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20861 test -n "$tmp" && test -d "$tmp"
20862} ||
20863{
20864 tmp=./conf$$-$RANDOM
20865 (umask 077 && mkdir "$tmp")
20866} ||
20867{
20868 echo "$me: cannot create a temporary directory in ." >&2
20869 { (exit 1); exit 1; }
20870}
20871
20872#
20873# Set up the sed scripts for CONFIG_FILES section.
20874#
20875
20876# No need to generate the scripts if there are no CONFIG_FILES.
20877# This happens for instance when ./config.status config.h
20878if test -n "$CONFIG_FILES"; then
20879
20880_ACEOF
20881
20882
20883
20884ac_delim='%!_!# '
20885for ac_last_try in false false false false false :; do
20886 cat >conf$$subs.sed <<_ACEOF
20887SHELL!$SHELL$ac_delim
20888PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20889PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20890PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20891PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20892PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20893PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20894exec_prefix!$exec_prefix$ac_delim
20895prefix!$prefix$ac_delim
20896program_transform_name!$program_transform_name$ac_delim
20897bindir!$bindir$ac_delim
20898sbindir!$sbindir$ac_delim
20899libexecdir!$libexecdir$ac_delim
20900datarootdir!$datarootdir$ac_delim
20901datadir!$datadir$ac_delim
20902sysconfdir!$sysconfdir$ac_delim
20903sharedstatedir!$sharedstatedir$ac_delim
20904localstatedir!$localstatedir$ac_delim
20905includedir!$includedir$ac_delim
20906oldincludedir!$oldincludedir$ac_delim
20907docdir!$docdir$ac_delim
20908infodir!$infodir$ac_delim
20909htmldir!$htmldir$ac_delim
20910dvidir!$dvidir$ac_delim
20911pdfdir!$pdfdir$ac_delim
20912psdir!$psdir$ac_delim
20913libdir!$libdir$ac_delim
20914localedir!$localedir$ac_delim
20915mandir!$mandir$ac_delim
20916DEFS!$DEFS$ac_delim
20917ECHO_C!$ECHO_C$ac_delim
20918ECHO_N!$ECHO_N$ac_delim
20919ECHO_T!$ECHO_T$ac_delim
20920LIBS!$LIBS$ac_delim
20921build_alias!$build_alias$ac_delim
20922host_alias!$host_alias$ac_delim
20923target_alias!$target_alias$ac_delim
20924INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20925INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20926INSTALL_DATA!$INSTALL_DATA$ac_delim
20927am__isrc!$am__isrc$ac_delim
20928CYGPATH_W!$CYGPATH_W$ac_delim
20929PACKAGE!$PACKAGE$ac_delim
20930VERSION!$VERSION$ac_delim
20931ACLOCAL!$ACLOCAL$ac_delim
20932AUTOCONF!$AUTOCONF$ac_delim
20933AUTOMAKE!$AUTOMAKE$ac_delim
20934AUTOHEADER!$AUTOHEADER$ac_delim
20935MAKEINFO!$MAKEINFO$ac_delim
20936install_sh!$install_sh$ac_delim
20937STRIP!$STRIP$ac_delim
20938INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20939mkdir_p!$mkdir_p$ac_delim
20940AWK!$AWK$ac_delim
20941SET_MAKE!$SET_MAKE$ac_delim
20942am__leading_dot!$am__leading_dot$ac_delim
20943AMTAR!$AMTAR$ac_delim
20944am__tar!$am__tar$ac_delim
20945am__untar!$am__untar$ac_delim
20946CC!$CC$ac_delim
20947CFLAGS!$CFLAGS$ac_delim
20948LDFLAGS!$LDFLAGS$ac_delim
20949CPPFLAGS!$CPPFLAGS$ac_delim
20950ac_ct_CC!$ac_ct_CC$ac_delim
20951EXEEXT!$EXEEXT$ac_delim
20952OBJEXT!$OBJEXT$ac_delim
20953DEPDIR!$DEPDIR$ac_delim
20954am__include!$am__include$ac_delim
20955am__quote!$am__quote$ac_delim
20956AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20957AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20958AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20959CCDEPMODE!$CCDEPMODE$ac_delim
20960am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20961am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20962build!$build$ac_delim
20963build_cpu!$build_cpu$ac_delim
20964build_vendor!$build_vendor$ac_delim
20965build_os!$build_os$ac_delim
20966host!$host$ac_delim
20967host_cpu!$host_cpu$ac_delim
20968host_vendor!$host_vendor$ac_delim
20969host_os!$host_os$ac_delim
20970SED!$SED$ac_delim
20971GREP!$GREP$ac_delim
20972EGREP!$EGREP$ac_delim
20973LN_S!$LN_S$ac_delim
20974ECHO!$ECHO$ac_delim
20975AR!$AR$ac_delim
20976RANLIB!$RANLIB$ac_delim
20977DSYMUTIL!$DSYMUTIL$ac_delim
20978NMEDIT!$NMEDIT$ac_delim
20979CPP!$CPP$ac_delim
20980CXX!$CXX$ac_delim
20981CXXFLAGS!$CXXFLAGS$ac_delim
20982ac_ct_CXX!$ac_ct_CXX$ac_delim
20983CXXDEPMODE!$CXXDEPMODE$ac_delim
20984_ACEOF
20985
20986 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20987 break
20988 elif $ac_last_try; then
20989 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20990echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20991 { (exit 1); exit 1; }; }
20992 else
20993 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20994 fi
20995done
20996
20997ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20998if test -n "$ac_eof"; then
20999 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21000 ac_eof=`expr $ac_eof + 1`
21001fi
21002
21003cat >>$CONFIG_STATUS <<_ACEOF
21004cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21005/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21006_ACEOF
21007sed '
21008s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21009s/^/s,@/; s/!/@,|#_!!_#|/
21010:n
21011t n
21012s/'"$ac_delim"'$/,g/; t
21013s/$/\\/; p
21014N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21015' >>$CONFIG_STATUS <conf$$subs.sed
21016rm -f conf$$subs.sed
21017cat >>$CONFIG_STATUS <<_ACEOF
21018CEOF$ac_eof
21019_ACEOF
21020
21021
21022ac_delim='%!_!# '
21023for ac_last_try in false false false false false :; do
21024 cat >conf$$subs.sed <<_ACEOF
21025am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21026am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21027CXXCPP!$CXXCPP$ac_delim
21028F77!$F77$ac_delim
21029FFLAGS!$FFLAGS$ac_delim
21030ac_ct_F77!$ac_ct_F77$ac_delim
21031LIBTOOL!$LIBTOOL$ac_delim
21032blacklist_modules!$blacklist_modules$ac_delim
21033ENABLE_STATIC_TRUE!$ENABLE_STATIC_TRUE$ac_delim
21034ENABLE_STATIC_FALSE!$ENABLE_STATIC_FALSE$ac_delim
21035ENABLE_SHARED_TRUE!$ENABLE_SHARED_TRUE$ac_delim
21036ENABLE_SHARED_FALSE!$ENABLE_SHARED_FALSE$ac_delim
21037ENABLE_IPV4_TRUE!$ENABLE_IPV4_TRUE$ac_delim
21038ENABLE_IPV4_FALSE!$ENABLE_IPV4_FALSE$ac_delim
21039ENABLE_IPV6_TRUE!$ENABLE_IPV6_TRUE$ac_delim
21040ENABLE_IPV6_FALSE!$ENABLE_IPV6_FALSE$ac_delim
21041ENABLE_DEVEL_TRUE!$ENABLE_DEVEL_TRUE$ac_delim
21042ENABLE_DEVEL_FALSE!$ENABLE_DEVEL_FALSE$ac_delim
21043ENABLE_LIBIPQ_TRUE!$ENABLE_LIBIPQ_TRUE$ac_delim
21044ENABLE_LIBIPQ_FALSE!$ENABLE_LIBIPQ_FALSE$ac_delim
21045regular_CFLAGS!$regular_CFLAGS$ac_delim
21046kinclude_CFLAGS!$kinclude_CFLAGS$ac_delim
21047kbuilddir!$kbuilddir$ac_delim
21048ksourcedir!$ksourcedir$ac_delim
21049xtlibdir!$xtlibdir$ac_delim
21050pkgconfigdir!$pkgconfigdir$ac_delim
21051libxtables_vcurrent!$libxtables_vcurrent$ac_delim
21052libxtables_vage!$libxtables_vage$ac_delim
21053libxtables_vmajor!$libxtables_vmajor$ac_delim
21054LIBOBJS!$LIBOBJS$ac_delim
21055LTLIBOBJS!$LTLIBOBJS$ac_delim
21056_ACEOF
21057
21058 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 31; then
21059 break
21060 elif $ac_last_try; then
21061 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21062echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21063 { (exit 1); exit 1; }; }
21064 else
21065 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21066 fi
21067done
21068
21069ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21070if test -n "$ac_eof"; then
21071 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21072 ac_eof=`expr $ac_eof + 1`
21073fi
21074
21075cat >>$CONFIG_STATUS <<_ACEOF
21076cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21077/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21078_ACEOF
21079sed '
21080s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21081s/^/s,@/; s/!/@,|#_!!_#|/
21082:n
21083t n
21084s/'"$ac_delim"'$/,g/; t
21085s/$/\\/; p
21086N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21087' >>$CONFIG_STATUS <conf$$subs.sed
21088rm -f conf$$subs.sed
21089cat >>$CONFIG_STATUS <<_ACEOF
21090:end
21091s/|#_!!_#|//g
21092CEOF$ac_eof
21093_ACEOF
21094
21095
21096# VPATH may cause trouble with some makes, so we remove $(srcdir),
21097# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21098# trailing colons and then remove the whole line if VPATH becomes empty
21099# (actually we leave an empty line to preserve line numbers).
21100if test "x$srcdir" = x.; then
21101 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21102s/:*\$(srcdir):*/:/
21103s/:*\${srcdir}:*/:/
21104s/:*@srcdir@:*/:/
21105s/^\([^=]*=[ ]*\):*/\1/
21106s/:*$//
21107s/^[^=]*=[ ]*$//
21108}'
21109fi
21110
21111cat >>$CONFIG_STATUS <<\_ACEOF
21112fi # test -n "$CONFIG_FILES"
21113
21114
21115for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21116do
21117 case $ac_tag in
21118 :[FHLC]) ac_mode=$ac_tag; continue;;
21119 esac
21120 case $ac_mode$ac_tag in
21121 :[FHL]*:*);;
21122 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21123echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21124 { (exit 1); exit 1; }; };;
21125 :[FH]-) ac_tag=-:-;;
21126 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21127 esac
21128 ac_save_IFS=$IFS
21129 IFS=:
21130 set x $ac_tag
21131 IFS=$ac_save_IFS
21132 shift
21133 ac_file=$1
21134 shift
21135
21136 case $ac_mode in
21137 :L) ac_source=$1;;
21138 :[FH])
21139 ac_file_inputs=
21140 for ac_f
21141 do
21142 case $ac_f in
21143 -) ac_f="$tmp/stdin";;
21144 *) # Look for the file first in the build tree, then in the source tree
21145 # (if the path is not absolute). The absolute path cannot be DOS-style,
21146 # because $ac_f cannot contain `:'.
21147 test -f "$ac_f" ||
21148 case $ac_f in
21149 [\\/$]*) false;;
21150 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21151 esac ||
21152 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21153echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21154 { (exit 1); exit 1; }; };;
21155 esac
21156 ac_file_inputs="$ac_file_inputs $ac_f"
21157 done
21158
21159 # Let's still pretend it is `configure' which instantiates (i.e., don't
21160 # use $as_me), people would be surprised to read:
21161 # /* config.h. Generated by config.status. */
21162 configure_input="Generated from "`IFS=:
21163 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21164 if test x"$ac_file" != x-; then
21165 configure_input="$ac_file. $configure_input"
21166 { echo "$as_me:$LINENO: creating $ac_file" >&5
21167echo "$as_me: creating $ac_file" >&6;}
21168 fi
21169
21170 case $ac_tag in
21171 *:-:* | *:-) cat >"$tmp/stdin";;
21172 esac
21173 ;;
21174 esac
21175
21176 ac_dir=`$as_dirname -- "$ac_file" ||
21177$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21178 X"$ac_file" : 'X\(//\)[^/]' \| \
21179 X"$ac_file" : 'X\(//\)$' \| \
21180 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21181echo X"$ac_file" |
21182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21183 s//\1/
21184 q
21185 }
21186 /^X\(\/\/\)[^/].*/{
21187 s//\1/
21188 q
21189 }
21190 /^X\(\/\/\)$/{
21191 s//\1/
21192 q
21193 }
21194 /^X\(\/\).*/{
21195 s//\1/
21196 q
21197 }
21198 s/.*/./; q'`
21199 { as_dir="$ac_dir"
21200 case $as_dir in #(
21201 -*) as_dir=./$as_dir;;
21202 esac
21203 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21204 as_dirs=
21205 while :; do
21206 case $as_dir in #(
21207 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21208 *) as_qdir=$as_dir;;
21209 esac
21210 as_dirs="'$as_qdir' $as_dirs"
21211 as_dir=`$as_dirname -- "$as_dir" ||
21212$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21213 X"$as_dir" : 'X\(//\)[^/]' \| \
21214 X"$as_dir" : 'X\(//\)$' \| \
21215 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21216echo X"$as_dir" |
21217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21218 s//\1/
21219 q
21220 }
21221 /^X\(\/\/\)[^/].*/{
21222 s//\1/
21223 q
21224 }
21225 /^X\(\/\/\)$/{
21226 s//\1/
21227 q
21228 }
21229 /^X\(\/\).*/{
21230 s//\1/
21231 q
21232 }
21233 s/.*/./; q'`
21234 test -d "$as_dir" && break
21235 done
21236 test -z "$as_dirs" || eval "mkdir $as_dirs"
21237 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21238echo "$as_me: error: cannot create directory $as_dir" >&2;}
21239 { (exit 1); exit 1; }; }; }
21240 ac_builddir=.
21241
21242case "$ac_dir" in
21243.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21244*)
21245 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21246 # A ".." for each directory in $ac_dir_suffix.
21247 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21248 case $ac_top_builddir_sub in
21249 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21250 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21251 esac ;;
21252esac
21253ac_abs_top_builddir=$ac_pwd
21254ac_abs_builddir=$ac_pwd$ac_dir_suffix
21255# for backward compatibility:
21256ac_top_builddir=$ac_top_build_prefix
21257
21258case $srcdir in
21259 .) # We are building in place.
21260 ac_srcdir=.
21261 ac_top_srcdir=$ac_top_builddir_sub
21262 ac_abs_top_srcdir=$ac_pwd ;;
21263 [\\/]* | ?:[\\/]* ) # Absolute name.
21264 ac_srcdir=$srcdir$ac_dir_suffix;
21265 ac_top_srcdir=$srcdir
21266 ac_abs_top_srcdir=$srcdir ;;
21267 *) # Relative name.
21268 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21269 ac_top_srcdir=$ac_top_build_prefix$srcdir
21270 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21271esac
21272ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21273
21274
21275 case $ac_mode in
21276 :F)
21277 #
21278 # CONFIG_FILE
21279 #
21280
21281 case $INSTALL in
21282 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21283 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21284 esac
21285 ac_MKDIR_P=$MKDIR_P
21286 case $MKDIR_P in
21287 [\\/$]* | ?:[\\/]* ) ;;
21288 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21289 esac
21290_ACEOF
21291
21292cat >>$CONFIG_STATUS <<\_ACEOF
21293# If the template does not know about datarootdir, expand it.
21294# FIXME: This hack should be removed a few years after 2.60.
21295ac_datarootdir_hack=; ac_datarootdir_seen=
21296
21297case `sed -n '/datarootdir/ {
21298 p
21299 q
21300}
21301/@datadir@/p
21302/@docdir@/p
21303/@infodir@/p
21304/@localedir@/p
21305/@mandir@/p
21306' $ac_file_inputs` in
21307*datarootdir*) ac_datarootdir_seen=yes;;
21308*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21309 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21310echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21311_ACEOF
21312cat >>$CONFIG_STATUS <<_ACEOF
21313 ac_datarootdir_hack='
21314 s&@datadir@&$datadir&g
21315 s&@docdir@&$docdir&g
21316 s&@infodir@&$infodir&g
21317 s&@localedir@&$localedir&g
21318 s&@mandir@&$mandir&g
21319 s&\\\${datarootdir}&$datarootdir&g' ;;
21320esac
21321_ACEOF
21322
21323# Neutralize VPATH when `$srcdir' = `.'.
21324# Shell code in configure.ac might set extrasub.
21325# FIXME: do we really want to maintain this feature?
21326cat >>$CONFIG_STATUS <<_ACEOF
21327 sed "$ac_vpsub
21328$extrasub
21329_ACEOF
21330cat >>$CONFIG_STATUS <<\_ACEOF
21331:t
21332/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21333s&@configure_input@&$configure_input&;t t
21334s&@top_builddir@&$ac_top_builddir_sub&;t t
21335s&@srcdir@&$ac_srcdir&;t t
21336s&@abs_srcdir@&$ac_abs_srcdir&;t t
21337s&@top_srcdir@&$ac_top_srcdir&;t t
21338s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21339s&@builddir@&$ac_builddir&;t t
21340s&@abs_builddir@&$ac_abs_builddir&;t t
21341s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21342s&@INSTALL@&$ac_INSTALL&;t t
21343s&@MKDIR_P@&$ac_MKDIR_P&;t t
21344$ac_datarootdir_hack
21345" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21346
21347test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21348 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21349 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21350 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21351which seems to be undefined. Please make sure it is defined." >&5
21352echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21353which seems to be undefined. Please make sure it is defined." >&2;}
21354
21355 rm -f "$tmp/stdin"
21356 case $ac_file in
21357 -) cat "$tmp/out"; rm -f "$tmp/out";;
21358 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21359 esac
21360 ;;
21361 :H)
21362 #
21363 # CONFIG_HEADER
21364 #
21365_ACEOF
21366
21367# Transform confdefs.h into a sed script `conftest.defines', that
21368# substitutes the proper values into config.h.in to produce config.h.
21369rm -f conftest.defines conftest.tail
21370# First, append a space to every undef/define line, to ease matching.
21371echo 's/$/ /' >conftest.defines
21372# Then, protect against being on the right side of a sed subst, or in
21373# an unquoted here document, in config.status. If some macros were
21374# called several times there might be several #defines for the same
21375# symbol, which is useless. But do not sort them, since the last
21376# AC_DEFINE must be honored.
21377ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21378# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21379# NAME is the cpp macro being defined, VALUE is the value it is being given.
21380# PARAMS is the parameter list in the macro definition--in most cases, it's
21381# just an empty string.
21382ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21383ac_dB='\\)[ (].*,\\1define\\2'
21384ac_dC=' '
21385ac_dD=' ,'
21386
21387uniq confdefs.h |
21388 sed -n '
21389 t rset
21390 :rset
21391 s/^[ ]*#[ ]*define[ ][ ]*//
21392 t ok
21393 d
21394 :ok
21395 s/[\\&,]/\\&/g
21396 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21397 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21398 ' >>conftest.defines
21399
21400# Remove the space that was appended to ease matching.
21401# Then replace #undef with comments. This is necessary, for
21402# example, in the case of _POSIX_SOURCE, which is predefined and required
21403# on some systems where configure will not decide to define it.
21404# (The regexp can be short, since the line contains either #define or #undef.)
21405echo 's/ $//
21406s,^[ #]*u.*,/* & */,' >>conftest.defines
21407
21408# Break up conftest.defines:
21409ac_max_sed_lines=50
21410
21411# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21412# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21413# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21414# et cetera.
21415ac_in='$ac_file_inputs'
21416ac_out='"$tmp/out1"'
21417ac_nxt='"$tmp/out2"'
21418
21419while :
21420do
21421 # Write a here document:
21422 cat >>$CONFIG_STATUS <<_ACEOF
21423 # First, check the format of the line:
21424 cat >"\$tmp/defines.sed" <<\\CEOF
21425/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21426/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21427b
21428:def
21429_ACEOF
21430 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21431 echo 'CEOF
21432 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21433 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21434 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21435 grep . conftest.tail >/dev/null || break
21436 rm -f conftest.defines
21437 mv conftest.tail conftest.defines
21438done
21439rm -f conftest.defines conftest.tail
21440
21441echo "ac_result=$ac_in" >>$CONFIG_STATUS
21442cat >>$CONFIG_STATUS <<\_ACEOF
21443 if test x"$ac_file" != x-; then
21444 echo "/* $configure_input */" >"$tmp/config.h"
21445 cat "$ac_result" >>"$tmp/config.h"
21446 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21447 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21448echo "$as_me: $ac_file is unchanged" >&6;}
21449 else
21450 rm -f $ac_file
21451 mv "$tmp/config.h" $ac_file
21452 fi
21453 else
21454 echo "/* $configure_input */"
21455 cat "$ac_result"
21456 fi
21457 rm -f "$tmp/out12"
21458# Compute $ac_file's index in $config_headers.
21459_am_arg=$ac_file
21460_am_stamp_count=1
21461for _am_header in $config_headers :; do
21462 case $_am_header in
21463 $_am_arg | $_am_arg:* )
21464 break ;;
21465 * )
21466 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21467 esac
21468done
21469echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21470$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21471 X"$_am_arg" : 'X\(//\)[^/]' \| \
21472 X"$_am_arg" : 'X\(//\)$' \| \
21473 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21474echo X"$_am_arg" |
21475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21476 s//\1/
21477 q
21478 }
21479 /^X\(\/\/\)[^/].*/{
21480 s//\1/
21481 q
21482 }
21483 /^X\(\/\/\)$/{
21484 s//\1/
21485 q
21486 }
21487 /^X\(\/\).*/{
21488 s//\1/
21489 q
21490 }
21491 s/.*/./; q'`/stamp-h$_am_stamp_count
21492 ;;
21493
21494 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21495echo "$as_me: executing $ac_file commands" >&6;}
21496 ;;
21497 esac
21498
21499
21500 case $ac_file$ac_mode in
21501 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21502 # Strip MF so we end up with the name of the file.
21503 mf=`echo "$mf" | sed -e 's/:.*$//'`
21504 # Check whether this is an Automake generated Makefile or not.
21505 # We used to match only the files named `Makefile.in', but
21506 # some people rename them; so instead we look at the file content.
21507 # Grep'ing the first line is not enough: some people post-process
21508 # each Makefile.in and add a new line on top of each file to say so.
21509 # Grep'ing the whole file is not good either: AIX grep has a line
21510 # limit of 2048, but all sed's we know have understand at least 4000.
21511 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21512 dirpart=`$as_dirname -- "$mf" ||
21513$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21514 X"$mf" : 'X\(//\)[^/]' \| \
21515 X"$mf" : 'X\(//\)$' \| \
21516 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21517echo X"$mf" |
21518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21519 s//\1/
21520 q
21521 }
21522 /^X\(\/\/\)[^/].*/{
21523 s//\1/
21524 q
21525 }
21526 /^X\(\/\/\)$/{
21527 s//\1/
21528 q
21529 }
21530 /^X\(\/\).*/{
21531 s//\1/
21532 q
21533 }
21534 s/.*/./; q'`
21535 else
21536 continue
21537 fi
21538 # Extract the definition of DEPDIR, am__include, and am__quote
21539 # from the Makefile without running `make'.
21540 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21541 test -z "$DEPDIR" && continue
21542 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21543 test -z "am__include" && continue
21544 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21545 # When using ansi2knr, U may be empty or an underscore; expand it
21546 U=`sed -n 's/^U = //p' < "$mf"`
21547 # Find all dependency output files, they are included files with
21548 # $(DEPDIR) in their names. We invoke sed twice because it is the
21549 # simplest approach to changing $(DEPDIR) to its actual value in the
21550 # expansion.
21551 for file in `sed -n "
21552 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21553 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21554 # Make sure the directory exists.
21555 test -f "$dirpart/$file" && continue
21556 fdir=`$as_dirname -- "$file" ||
21557$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21558 X"$file" : 'X\(//\)[^/]' \| \
21559 X"$file" : 'X\(//\)$' \| \
21560 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21561echo X"$file" |
21562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21563 s//\1/
21564 q
21565 }
21566 /^X\(\/\/\)[^/].*/{
21567 s//\1/
21568 q
21569 }
21570 /^X\(\/\/\)$/{
21571 s//\1/
21572 q
21573 }
21574 /^X\(\/\).*/{
21575 s//\1/
21576 q
21577 }
21578 s/.*/./; q'`
21579 { as_dir=$dirpart/$fdir
21580 case $as_dir in #(
21581 -*) as_dir=./$as_dir;;
21582 esac
21583 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21584 as_dirs=
21585 while :; do
21586 case $as_dir in #(
21587 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21588 *) as_qdir=$as_dir;;
21589 esac
21590 as_dirs="'$as_qdir' $as_dirs"
21591 as_dir=`$as_dirname -- "$as_dir" ||
21592$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21593 X"$as_dir" : 'X\(//\)[^/]' \| \
21594 X"$as_dir" : 'X\(//\)$' \| \
21595 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21596echo X"$as_dir" |
21597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21598 s//\1/
21599 q
21600 }
21601 /^X\(\/\/\)[^/].*/{
21602 s//\1/
21603 q
21604 }
21605 /^X\(\/\/\)$/{
21606 s//\1/
21607 q
21608 }
21609 /^X\(\/\).*/{
21610 s//\1/
21611 q
21612 }
21613 s/.*/./; q'`
21614 test -d "$as_dir" && break
21615 done
21616 test -z "$as_dirs" || eval "mkdir $as_dirs"
21617 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21618echo "$as_me: error: cannot create directory $as_dir" >&2;}
21619 { (exit 1); exit 1; }; }; }
21620 # echo "creating $dirpart/$file"
21621 echo '# dummy' > "$dirpart/$file"
21622 done
21623done
21624 ;;
21625
21626 esac
21627done # for ac_tag
21628
21629
21630{ (exit 0); exit 0; }
21631_ACEOF
21632chmod +x $CONFIG_STATUS
21633ac_clean_files=$ac_clean_files_save
21634
21635
21636# configure is writing to config.log, and then calls config.status.
21637# config.status does its own redirection, appending to config.log.
21638# Unfortunately, on DOS this fails, as config.log is still kept open
21639# by configure, so config.status won't be able to write to it; its
21640# output is simply discarded. So we exec the FD to /dev/null,
21641# effectively closing config.log, so it can be properly (re)opened and
21642# appended to by config.status. When coming back to configure, we
21643# need to make the FD available again.
21644if test "$no_create" != yes; then
21645 ac_cs_success=:
21646 ac_config_status_args=
21647 test "$silent" = yes &&
21648 ac_config_status_args="$ac_config_status_args --quiet"
21649 exec 5>/dev/null
21650 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21651 exec 5>>config.log
21652 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21653 # would make configure fail if this is the last instruction.
21654 $ac_cs_success || { (exit 1); exit 1; }
21655fi
21656