Import Debian package 0.61.0-1+lenny1
[hcoop/debian/courier-authlib.git] / libltdl / configure
CommitLineData
d9898ee8 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
64ff59ba 3# Generated by GNU Autoconf 2.61 for libltdl 1.2.
d9898ee8 4#
5# Report bugs to <bug-libtool@gnu.org>.
6#
64ff59ba 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
d9898ee8 9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
64ff59ba 15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
d9898ee8 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
64ff59ba 23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
d9898ee8 53fi
d9898ee8 54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58else
59 as_unset=false
60fi
61
62
64ff59ba 63# IFS
64# We need space, tab and new line, in precisely that order. Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" "" $as_nl"
71
72# Find who we are. Look in the path if we contain no directory separator.
73case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84 ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89 as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94fi
95
d9898ee8 96# Work around bugs in pre-3.0 UWIN ksh.
64ff59ba 97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
d9898ee8 100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
64ff59ba 113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
d9898ee8 114 fi
115done
116
117# Required to use basename.
64ff59ba 118if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 120 as_expr=expr
121else
122 as_expr=false
123fi
124
64ff59ba 125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d9898ee8 126 as_basename=basename
127else
128 as_basename=false
129fi
130
131
132# Name of the executable.
64ff59ba 133as_me=`$as_basename -- "$0" ||
d9898ee8 134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
64ff59ba 136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 137echo X/"$0" |
64ff59ba 138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
d9898ee8 151
64ff59ba 152# CDPATH.
153$as_unset CDPATH
d9898ee8 154
d9898ee8 155
64ff59ba 156if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159else
160 as_have_required=no
d9898ee8 161fi
162
64ff59ba 163 if test $as_have_required = yes && (eval ":
164(as_func_return () {
165 (exit \$1)
166}
167as_func_success () {
168 as_func_return 0
169}
170as_func_failure () {
171 as_func_return 1
172}
173as_func_ret_success () {
174 return 0
175}
176as_func_ret_failure () {
177 return 1
178}
d9898ee8 179
64ff59ba 180exitcode=0
181if as_func_success; then
182 :
183else
184 exitcode=1
185 echo as_func_success failed.
186fi
d9898ee8 187
64ff59ba 188if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194 :
195else
196 exitcode=1
197 echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207else
208 exitcode=1
209 echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220 :
221else
222 as_candidate_shells=
d9898ee8 223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
64ff59ba 228 case $as_dir in
d9898ee8 229 /*)
64ff59ba 230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234done
235IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280 (exit $1)
281}
282as_func_success () {
283 as_func_return 0
284}
285as_func_failure () {
286 as_func_return 1
287}
288as_func_ret_success () {
289 return 0
290}
291as_func_ret_failure () {
292 return 1
293}
294
295exitcode=0
296if as_func_success; then
297 :
298else
299 exitcode=1
300 echo as_func_success failed.
301fi
302
303if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309 :
310else
311 exitcode=1
312 echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322else
323 exitcode=1
324 echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
d9898ee8 330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
d9898ee8 332 test "x$as_lineno_1" != "x$as_lineno_2" &&
64ff59ba 333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337 break
338fi
339
340fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369 (exit \$1)
370}
371as_func_success () {
372 as_func_return 0
373}
374as_func_failure () {
375 as_func_return 1
376}
377as_func_ret_success () {
378 return 0
379}
380as_func_ret_failure () {
381 return 1
382}
383
384exitcode=0
385if as_func_success; then
386 :
387else
388 exitcode=1
389 echo as_func_success failed.
390fi
391
392if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398 :
399else
400 exitcode=1
401 echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411else
412 exitcode=1
413 echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421}
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
64ff59ba 432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
d9898ee8 437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
64ff59ba 438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
d9898ee8 444 sed '
64ff59ba 445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
d9898ee8 449 N
64ff59ba 450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 452 t loop
64ff59ba 453 s/-\n.*//
d9898ee8 454 ' >$as_me.lineno &&
64ff59ba 455 chmod +x "$as_me.lineno" ||
d9898ee8 456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
64ff59ba 461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
d9898ee8 463 # Exit status is that of the last command.
464 exit
465}
466
467
64ff59ba 468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470else
471 as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481*)
482 ECHO_N='-n';;
d9898ee8 483esac
484
64ff59ba 485if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 487 as_expr=expr
488else
489 as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
64ff59ba 493if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498fi
d9898ee8 499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
64ff59ba 501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d9898ee8 507 as_ln_s='cp -p'
d9898ee8 508elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510else
511 as_ln_s='cp -p'
512fi
64ff59ba 513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
d9898ee8 515
516if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521fi
522
64ff59ba 523if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543fi
544as_executable_p=$as_test_x
d9898ee8 545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
d9898ee8 553
554
555# Check that we are running under the correct shell.
556SHELL=${CONFIG_SHELL-/bin/sh}
557
558case X$ECHO in
559X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562 ;;
563esac
564
565echo=${ECHO-echo}
566if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
571 :
572elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
574 :
575else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
578fi
579
580if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
584$*
585EOF
586 exit 0
587fi
588
589# The HP-UX ksh and POSIX shell print the target directory to stdout
590# if CDPATH is set.
591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593if test -z "$ECHO"; then
594if test "X${echo_test_string+set}" != Xset; then
595# find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
603 fi
604 done
605fi
606
607if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 :
611else
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
615 #
616 # So, first we look for a working echo in the user's PATH.
617
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
620 IFS="$lt_save_ifs"
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 echo="$dir/echo"
626 break
627 fi
628 done
629 IFS="$lt_save_ifs"
630
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
637 echo='print -r'
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
644 export CONFIG_SHELL
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 else
647 # Try using printf.
648 echo='printf %s\n'
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 # Cool, printf works
653 :
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 export CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
661 export SHELL
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
668 else
669 # maybe with a smaller string...
670 prev=:
671
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674 then
675 break
676 fi
677 prev="$cmd"
678 done
679
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 else
685 # Oops. We lost completely, so just stick with echo.
686 echo=echo
687 fi
688 fi
689 fi
690 fi
691fi
692fi
693
694# Copy echo and quote the copy suitably for passing to libtool from
695# the Makefile, instead of quoting the original, which is used later.
696ECHO=$echo
697if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699fi
700
701
702
703
704tagnames=${tagnames+${tagnames},}CXX
705
706tagnames=${tagnames+${tagnames},}F77
707
64ff59ba 708exec 7<&0 </dev/null 6>&1
709
d9898ee8 710# Name of the host.
711# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712# so uname gets run too.
713ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
d9898ee8 715#
716# Initializations.
717#
718ac_default_prefix=/usr/local
64ff59ba 719ac_clean_files=
d9898ee8 720ac_config_libobj_dir=.
64ff59ba 721LIBOBJS=
d9898ee8 722cross_compiling=no
723subdirs=
724MFLAGS=
725MAKEFLAGS=
726SHELL=${CONFIG_SHELL-/bin/sh}
727
d9898ee8 728# Identity of this package.
729PACKAGE_NAME='libltdl'
730PACKAGE_TARNAME='libltdl'
731PACKAGE_VERSION='1.2'
732PACKAGE_STRING='libltdl 1.2'
733PACKAGE_BUGREPORT='bug-libtool@gnu.org'
734
735ac_unique_file="ltdl.c"
736# Factoring default headers for most tests.
737ac_includes_default="\
738#include <stdio.h>
64ff59ba 739#ifdef HAVE_SYS_TYPES_H
d9898ee8 740# include <sys/types.h>
741#endif
64ff59ba 742#ifdef HAVE_SYS_STAT_H
d9898ee8 743# include <sys/stat.h>
744#endif
64ff59ba 745#ifdef STDC_HEADERS
d9898ee8 746# include <stdlib.h>
747# include <stddef.h>
748#else
64ff59ba 749# ifdef HAVE_STDLIB_H
d9898ee8 750# include <stdlib.h>
751# endif
752#endif
64ff59ba 753#ifdef HAVE_STRING_H
754# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
d9898ee8 755# include <memory.h>
756# endif
757# include <string.h>
758#endif
64ff59ba 759#ifdef HAVE_STRINGS_H
d9898ee8 760# include <strings.h>
761#endif
64ff59ba 762#ifdef HAVE_INTTYPES_H
d9898ee8 763# include <inttypes.h>
d9898ee8 764#endif
64ff59ba 765#ifdef HAVE_STDINT_H
766# include <stdint.h>
767#endif
768#ifdef HAVE_UNISTD_H
d9898ee8 769# include <unistd.h>
770#endif"
771
64ff59ba 772ac_subst_vars='SHELL
773PATH_SEPARATOR
774PACKAGE_NAME
775PACKAGE_TARNAME
776PACKAGE_VERSION
777PACKAGE_STRING
778PACKAGE_BUGREPORT
779exec_prefix
780prefix
781program_transform_name
782bindir
783sbindir
784libexecdir
785datarootdir
786datadir
787sysconfdir
788sharedstatedir
789localstatedir
790includedir
791oldincludedir
792docdir
793infodir
794htmldir
795dvidir
796pdfdir
797psdir
798libdir
799localedir
800mandir
801DEFS
802ECHO_C
803ECHO_N
804ECHO_T
805LIBS
806build_alias
807host_alias
808target_alias
809INSTALL_PROGRAM
810INSTALL_SCRIPT
811INSTALL_DATA
812am__isrc
813CYGPATH_W
814PACKAGE
815VERSION
816ACLOCAL
817AUTOCONF
818AUTOMAKE
819AUTOHEADER
820MAKEINFO
821install_sh
822STRIP
823INSTALL_STRIP_PROGRAM
824mkdir_p
825AWK
826SET_MAKE
827am__leading_dot
828AMTAR
829am__tar
830am__untar
831CC
832CFLAGS
833LDFLAGS
834CPPFLAGS
835ac_ct_CC
836EXEEXT
837OBJEXT
838DEPDIR
839am__include
840am__quote
841AMDEP_TRUE
842AMDEP_FALSE
843AMDEPBACKSLASH
844CCDEPMODE
845am__fastdepCC_TRUE
846am__fastdepCC_FALSE
847build
848build_cpu
849build_vendor
850build_os
851host
852host_cpu
853host_vendor
854host_os
855SED
856GREP
857EGREP
858LN_S
859ECHO
860AR
861RANLIB
862DLLTOOL
863AS
864OBJDUMP
865CPP
866CXX
867CXXFLAGS
868ac_ct_CXX
869CXXDEPMODE
870am__fastdepCXX_TRUE
871am__fastdepCXX_FALSE
872CXXCPP
873F77
874FFLAGS
875ac_ct_F77
876LIBTOOL
877LIBTOOL_DEPS
878INSTALL_LTDL_TRUE
879INSTALL_LTDL_FALSE
880CONVENIENCE_LTDL_TRUE
881CONVENIENCE_LTDL_FALSE
882LIBADD_DL
883LIBOBJS
884LTLIBOBJS'
d9898ee8 885ac_subst_files=''
64ff59ba 886 ac_precious_vars='build_alias
887host_alias
888target_alias
889CC
890CFLAGS
891LDFLAGS
892LIBS
893CPPFLAGS
894CPP
895CXX
896CXXFLAGS
897CCC
898CXXCPP
899F77
900FFLAGS'
901
d9898ee8 902
903# Initialize some variables set by options.
904ac_init_help=
905ac_init_version=false
906# The variables have the same names as the options, with
907# dashes changed to underlines.
908cache_file=/dev/null
909exec_prefix=NONE
910no_create=
911no_recursion=
912prefix=NONE
913program_prefix=NONE
914program_suffix=NONE
915program_transform_name=s,x,x,
916silent=
917site=
918srcdir=
919verbose=
920x_includes=NONE
921x_libraries=NONE
922
923# Installation directory options.
924# These are left unexpanded so users can "make install exec_prefix=/foo"
925# and all the variables that are supposed to be based on exec_prefix
926# by default will actually change.
927# Use braces instead of parens because sh, perl, etc. also accept them.
64ff59ba 928# (The list follows the same order as the GNU Coding Standards.)
d9898ee8 929bindir='${exec_prefix}/bin'
930sbindir='${exec_prefix}/sbin'
931libexecdir='${exec_prefix}/libexec'
64ff59ba 932datarootdir='${prefix}/share'
933datadir='${datarootdir}'
d9898ee8 934sysconfdir='${prefix}/etc'
935sharedstatedir='${prefix}/com'
936localstatedir='${prefix}/var'
d9898ee8 937includedir='${prefix}/include'
938oldincludedir='/usr/include'
64ff59ba 939docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
940infodir='${datarootdir}/info'
941htmldir='${docdir}'
942dvidir='${docdir}'
943pdfdir='${docdir}'
944psdir='${docdir}'
945libdir='${exec_prefix}/lib'
946localedir='${datarootdir}/locale'
947mandir='${datarootdir}/man'
d9898ee8 948
949ac_prev=
64ff59ba 950ac_dashdash=
d9898ee8 951for ac_option
952do
953 # If the previous option needs an argument, assign it.
954 if test -n "$ac_prev"; then
64ff59ba 955 eval $ac_prev=\$ac_option
d9898ee8 956 ac_prev=
957 continue
958 fi
959
64ff59ba 960 case $ac_option in
961 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
962 *) ac_optarg=yes ;;
963 esac
d9898ee8 964
965 # Accept the important Cygnus configure options, so we can diagnose typos.
966
64ff59ba 967 case $ac_dashdash$ac_option in
968 --)
969 ac_dashdash=yes ;;
d9898ee8 970
971 -bindir | --bindir | --bindi | --bind | --bin | --bi)
972 ac_prev=bindir ;;
973 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
974 bindir=$ac_optarg ;;
975
976 -build | --build | --buil | --bui | --bu)
977 ac_prev=build_alias ;;
978 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
979 build_alias=$ac_optarg ;;
980
981 -cache-file | --cache-file | --cache-fil | --cache-fi \
982 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
983 ac_prev=cache_file ;;
984 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
985 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
986 cache_file=$ac_optarg ;;
987
988 --config-cache | -C)
989 cache_file=config.cache ;;
990
64ff59ba 991 -datadir | --datadir | --datadi | --datad)
d9898ee8 992 ac_prev=datadir ;;
64ff59ba 993 -datadir=* | --datadir=* | --datadi=* | --datad=*)
d9898ee8 994 datadir=$ac_optarg ;;
995
64ff59ba 996 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
997 | --dataroo | --dataro | --datar)
998 ac_prev=datarootdir ;;
999 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1000 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1001 datarootdir=$ac_optarg ;;
1002
d9898ee8 1003 -disable-* | --disable-*)
1004 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1005 # Reject names that are not valid shell variable names.
64ff59ba 1006 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1007 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1008 { (exit 1); exit 1; }; }
64ff59ba 1009 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1010 eval enable_$ac_feature=no ;;
1011
1012 -docdir | --docdir | --docdi | --doc | --do)
1013 ac_prev=docdir ;;
1014 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1015 docdir=$ac_optarg ;;
1016
1017 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1018 ac_prev=dvidir ;;
1019 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1020 dvidir=$ac_optarg ;;
d9898ee8 1021
1022 -enable-* | --enable-*)
1023 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1024 # Reject names that are not valid shell variable names.
64ff59ba 1025 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1026 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1027 { (exit 1); exit 1; }; }
64ff59ba 1028 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1029 eval enable_$ac_feature=\$ac_optarg ;;
d9898ee8 1030
1031 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1032 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1033 | --exec | --exe | --ex)
1034 ac_prev=exec_prefix ;;
1035 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1036 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1037 | --exec=* | --exe=* | --ex=*)
1038 exec_prefix=$ac_optarg ;;
1039
1040 -gas | --gas | --ga | --g)
1041 # Obsolete; use --with-gas.
1042 with_gas=yes ;;
1043
1044 -help | --help | --hel | --he | -h)
1045 ac_init_help=long ;;
1046 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1047 ac_init_help=recursive ;;
1048 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1049 ac_init_help=short ;;
1050
1051 -host | --host | --hos | --ho)
1052 ac_prev=host_alias ;;
1053 -host=* | --host=* | --hos=* | --ho=*)
1054 host_alias=$ac_optarg ;;
1055
64ff59ba 1056 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1057 ac_prev=htmldir ;;
1058 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1059 | --ht=*)
1060 htmldir=$ac_optarg ;;
1061
d9898ee8 1062 -includedir | --includedir | --includedi | --included | --include \
1063 | --includ | --inclu | --incl | --inc)
1064 ac_prev=includedir ;;
1065 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1066 | --includ=* | --inclu=* | --incl=* | --inc=*)
1067 includedir=$ac_optarg ;;
1068
1069 -infodir | --infodir | --infodi | --infod | --info | --inf)
1070 ac_prev=infodir ;;
1071 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1072 infodir=$ac_optarg ;;
1073
1074 -libdir | --libdir | --libdi | --libd)
1075 ac_prev=libdir ;;
1076 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1077 libdir=$ac_optarg ;;
1078
1079 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1080 | --libexe | --libex | --libe)
1081 ac_prev=libexecdir ;;
1082 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1083 | --libexe=* | --libex=* | --libe=*)
1084 libexecdir=$ac_optarg ;;
1085
64ff59ba 1086 -localedir | --localedir | --localedi | --localed | --locale)
1087 ac_prev=localedir ;;
1088 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1089 localedir=$ac_optarg ;;
1090
d9898ee8 1091 -localstatedir | --localstatedir | --localstatedi | --localstated \
64ff59ba 1092 | --localstate | --localstat | --localsta | --localst | --locals)
d9898ee8 1093 ac_prev=localstatedir ;;
1094 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
64ff59ba 1095 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
d9898ee8 1096 localstatedir=$ac_optarg ;;
1097
1098 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1099 ac_prev=mandir ;;
1100 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1101 mandir=$ac_optarg ;;
1102
1103 -nfp | --nfp | --nf)
1104 # Obsolete; use --without-fp.
1105 with_fp=no ;;
1106
1107 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1108 | --no-cr | --no-c | -n)
1109 no_create=yes ;;
1110
1111 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1112 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1113 no_recursion=yes ;;
1114
1115 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1116 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1117 | --oldin | --oldi | --old | --ol | --o)
1118 ac_prev=oldincludedir ;;
1119 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1120 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1121 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1122 oldincludedir=$ac_optarg ;;
1123
1124 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1125 ac_prev=prefix ;;
1126 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1127 prefix=$ac_optarg ;;
1128
1129 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1130 | --program-pre | --program-pr | --program-p)
1131 ac_prev=program_prefix ;;
1132 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1133 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1134 program_prefix=$ac_optarg ;;
1135
1136 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1137 | --program-suf | --program-su | --program-s)
1138 ac_prev=program_suffix ;;
1139 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1140 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1141 program_suffix=$ac_optarg ;;
1142
1143 -program-transform-name | --program-transform-name \
1144 | --program-transform-nam | --program-transform-na \
1145 | --program-transform-n | --program-transform- \
1146 | --program-transform | --program-transfor \
1147 | --program-transfo | --program-transf \
1148 | --program-trans | --program-tran \
1149 | --progr-tra | --program-tr | --program-t)
1150 ac_prev=program_transform_name ;;
1151 -program-transform-name=* | --program-transform-name=* \
1152 | --program-transform-nam=* | --program-transform-na=* \
1153 | --program-transform-n=* | --program-transform-=* \
1154 | --program-transform=* | --program-transfor=* \
1155 | --program-transfo=* | --program-transf=* \
1156 | --program-trans=* | --program-tran=* \
1157 | --progr-tra=* | --program-tr=* | --program-t=*)
1158 program_transform_name=$ac_optarg ;;
1159
64ff59ba 1160 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1161 ac_prev=pdfdir ;;
1162 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1163 pdfdir=$ac_optarg ;;
1164
1165 -psdir | --psdir | --psdi | --psd | --ps)
1166 ac_prev=psdir ;;
1167 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1168 psdir=$ac_optarg ;;
1169
d9898ee8 1170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1171 | -silent | --silent | --silen | --sile | --sil)
1172 silent=yes ;;
1173
1174 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1175 ac_prev=sbindir ;;
1176 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1177 | --sbi=* | --sb=*)
1178 sbindir=$ac_optarg ;;
1179
1180 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1181 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1182 | --sharedst | --shareds | --shared | --share | --shar \
1183 | --sha | --sh)
1184 ac_prev=sharedstatedir ;;
1185 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1186 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1187 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1188 | --sha=* | --sh=*)
1189 sharedstatedir=$ac_optarg ;;
1190
1191 -site | --site | --sit)
1192 ac_prev=site ;;
1193 -site=* | --site=* | --sit=*)
1194 site=$ac_optarg ;;
1195
1196 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1197 ac_prev=srcdir ;;
1198 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1199 srcdir=$ac_optarg ;;
1200
1201 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1202 | --syscon | --sysco | --sysc | --sys | --sy)
1203 ac_prev=sysconfdir ;;
1204 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1205 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1206 sysconfdir=$ac_optarg ;;
1207
1208 -target | --target | --targe | --targ | --tar | --ta | --t)
1209 ac_prev=target_alias ;;
1210 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1211 target_alias=$ac_optarg ;;
1212
1213 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1214 verbose=yes ;;
1215
1216 -version | --version | --versio | --versi | --vers | -V)
1217 ac_init_version=: ;;
1218
1219 -with-* | --with-*)
1220 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1221 # Reject names that are not valid shell variable names.
64ff59ba 1222 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1223 { echo "$as_me: error: invalid package name: $ac_package" >&2
1224 { (exit 1); exit 1; }; }
64ff59ba 1225 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1226 eval with_$ac_package=\$ac_optarg ;;
d9898ee8 1227
1228 -without-* | --without-*)
1229 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1230 # Reject names that are not valid shell variable names.
64ff59ba 1231 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1232 { echo "$as_me: error: invalid package name: $ac_package" >&2
1233 { (exit 1); exit 1; }; }
64ff59ba 1234 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1235 eval with_$ac_package=no ;;
d9898ee8 1236
1237 --x)
1238 # Obsolete; use --with-x.
1239 with_x=yes ;;
1240
1241 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1242 | --x-incl | --x-inc | --x-in | --x-i)
1243 ac_prev=x_includes ;;
1244 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1245 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1246 x_includes=$ac_optarg ;;
1247
1248 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1249 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1250 ac_prev=x_libraries ;;
1251 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1252 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1253 x_libraries=$ac_optarg ;;
1254
1255 -*) { echo "$as_me: error: unrecognized option: $ac_option
1256Try \`$0 --help' for more information." >&2
1257 { (exit 1); exit 1; }; }
1258 ;;
1259
1260 *=*)
1261 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1262 # Reject names that are not valid shell variable names.
1263 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1264 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1265 { (exit 1); exit 1; }; }
64ff59ba 1266 eval $ac_envvar=\$ac_optarg
d9898ee8 1267 export $ac_envvar ;;
1268
1269 *)
1270 # FIXME: should be removed in autoconf 3.0.
1271 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1272 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1273 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1274 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1275 ;;
1276
1277 esac
1278done
1279
1280if test -n "$ac_prev"; then
1281 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1282 { echo "$as_me: error: missing argument to $ac_option" >&2
1283 { (exit 1); exit 1; }; }
1284fi
1285
64ff59ba 1286# Be sure to have absolute directory names.
1287for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1288 datadir sysconfdir sharedstatedir localstatedir includedir \
1289 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1290 libdir localedir mandir
d9898ee8 1291do
64ff59ba 1292 eval ac_val=\$$ac_var
d9898ee8 1293 case $ac_val in
64ff59ba 1294 [\\/$]* | ?:[\\/]* ) continue;;
1295 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d9898ee8 1296 esac
64ff59ba 1297 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1298 { (exit 1); exit 1; }; }
d9898ee8 1299done
1300
1301# There might be people who depend on the old broken behavior: `$host'
1302# used to hold the argument of --host etc.
1303# FIXME: To remove some day.
1304build=$build_alias
1305host=$host_alias
1306target=$target_alias
1307
1308# FIXME: To remove some day.
1309if test "x$host_alias" != x; then
1310 if test "x$build_alias" = x; then
1311 cross_compiling=maybe
1312 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1313 If a cross compiler is detected then cross compile mode will be used." >&2
1314 elif test "x$build_alias" != "x$host_alias"; then
1315 cross_compiling=yes
1316 fi
1317fi
1318
1319ac_tool_prefix=
1320test -n "$host_alias" && ac_tool_prefix=$host_alias-
1321
1322test "$silent" = yes && exec 6>/dev/null
1323
1324
64ff59ba 1325ac_pwd=`pwd` && test -n "$ac_pwd" &&
1326ac_ls_di=`ls -di .` &&
1327ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1328 { echo "$as_me: error: Working directory cannot be determined" >&2
1329 { (exit 1); exit 1; }; }
1330test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1331 { echo "$as_me: error: pwd does not report name of working directory" >&2
1332 { (exit 1); exit 1; }; }
1333
1334
d9898ee8 1335# Find the source files, if location was not specified.
1336if test -z "$srcdir"; then
1337 ac_srcdir_defaulted=yes
64ff59ba 1338 # Try the directory containing this script, then the parent directory.
1339 ac_confdir=`$as_dirname -- "$0" ||
d9898ee8 1340$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1341 X"$0" : 'X\(//\)[^/]' \| \
1342 X"$0" : 'X\(//\)$' \| \
64ff59ba 1343 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 1344echo X"$0" |
64ff59ba 1345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\/\)[^/].*/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\/\)$/{
1354 s//\1/
1355 q
1356 }
1357 /^X\(\/\).*/{
1358 s//\1/
1359 q
1360 }
1361 s/.*/./; q'`
d9898ee8 1362 srcdir=$ac_confdir
64ff59ba 1363 if test ! -r "$srcdir/$ac_unique_file"; then
d9898ee8 1364 srcdir=..
1365 fi
1366else
1367 ac_srcdir_defaulted=no
1368fi
64ff59ba 1369if test ! -r "$srcdir/$ac_unique_file"; then
1370 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1371 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
d9898ee8 1372 { (exit 1); exit 1; }; }
d9898ee8 1373fi
64ff59ba 1374ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1375ac_abs_confdir=`(
1376 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
d9898ee8 1377 { (exit 1); exit 1; }; }
64ff59ba 1378 pwd)`
1379# When building in place, set srcdir=.
1380if test "$ac_abs_confdir" = "$ac_pwd"; then
1381 srcdir=.
1382fi
1383# Remove unnecessary trailing slashes from srcdir.
1384# Double slashes in file names in object file debugging info
1385# mess up M-x gdb in Emacs.
1386case $srcdir in
1387*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1388esac
1389for ac_var in $ac_precious_vars; do
1390 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1391 eval ac_env_${ac_var}_value=\$${ac_var}
1392 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1393 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1394done
d9898ee8 1395
1396#
1397# Report the --help message.
1398#
1399if test "$ac_init_help" = "long"; then
1400 # Omit some internal or obsolete options to make the list less imposing.
1401 # This message is too long to be a string in the A/UX 3.1 sh.
1402 cat <<_ACEOF
1403\`configure' configures libltdl 1.2 to adapt to many kinds of systems.
1404
1405Usage: $0 [OPTION]... [VAR=VALUE]...
1406
1407To assign environment variables (e.g., CC, CFLAGS...), specify them as
1408VAR=VALUE. See below for descriptions of some of the useful variables.
1409
1410Defaults for the options are specified in brackets.
1411
1412Configuration:
1413 -h, --help display this help and exit
1414 --help=short display options specific to this package
1415 --help=recursive display the short help of all the included packages
1416 -V, --version display version information and exit
1417 -q, --quiet, --silent do not print \`checking...' messages
1418 --cache-file=FILE cache test results in FILE [disabled]
1419 -C, --config-cache alias for \`--cache-file=config.cache'
1420 -n, --no-create do not create output files
1421 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1422
d9898ee8 1423Installation directories:
1424 --prefix=PREFIX install architecture-independent files in PREFIX
1425 [$ac_default_prefix]
1426 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1427 [PREFIX]
1428
1429By default, \`make install' will install all the files in
1430\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1431an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1432for instance \`--prefix=\$HOME'.
1433
1434For better control, use the options below.
1435
1436Fine tuning of the installation directories:
1437 --bindir=DIR user executables [EPREFIX/bin]
1438 --sbindir=DIR system admin executables [EPREFIX/sbin]
1439 --libexecdir=DIR program executables [EPREFIX/libexec]
d9898ee8 1440 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1441 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1442 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1443 --libdir=DIR object code libraries [EPREFIX/lib]
1444 --includedir=DIR C header files [PREFIX/include]
1445 --oldincludedir=DIR C header files for non-gcc [/usr/include]
64ff59ba 1446 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1447 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1448 --infodir=DIR info documentation [DATAROOTDIR/info]
1449 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1450 --mandir=DIR man documentation [DATAROOTDIR/man]
1451 --docdir=DIR documentation root [DATAROOTDIR/doc/libltdl]
1452 --htmldir=DIR html documentation [DOCDIR]
1453 --dvidir=DIR dvi documentation [DOCDIR]
1454 --pdfdir=DIR pdf documentation [DOCDIR]
1455 --psdir=DIR ps documentation [DOCDIR]
d9898ee8 1456_ACEOF
1457
1458 cat <<\_ACEOF
1459
1460Program names:
1461 --program-prefix=PREFIX prepend PREFIX to installed program names
1462 --program-suffix=SUFFIX append SUFFIX to installed program names
1463 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1464
1465System types:
1466 --build=BUILD configure for building on BUILD [guessed]
1467 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1468_ACEOF
1469fi
1470
1471if test -n "$ac_init_help"; then
1472 case $ac_init_help in
1473 short | recursive ) echo "Configuration of libltdl 1.2:";;
1474 esac
1475 cat <<\_ACEOF
1476
1477Optional Features:
1478 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1479 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1480 --disable-dependency-tracking speeds up one-time build
1481 --enable-dependency-tracking do not reject slow dependency extractors
64ff59ba 1482 --enable-shared[=PKGS] build shared libraries [default=yes]
1483 --enable-static[=PKGS] build static libraries [default=yes]
d9898ee8 1484 --enable-fast-install[=PKGS]
1485 optimize for fast installation [default=yes]
1486 --disable-libtool-lock avoid locking (might break parallel builds)
1487 --enable-ltdl-install install libltdl
1488
1489Optional Packages:
1490 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1491 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1492 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1493 --with-pic try to use only PIC/non-PIC objects [default=use
1494 both]
64ff59ba 1495 --with-tags[=TAGS] include additional configurations [automatic]
d9898ee8 1496
1497Some influential environment variables:
1498 CC C compiler command
1499 CFLAGS C compiler flags
1500 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1501 nonstandard directory <lib dir>
64ff59ba 1502 LIBS libraries to pass to the linker, e.g. -l<library>
1503 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1504 you have headers in a nonstandard directory <include dir>
d9898ee8 1505 CPP C preprocessor
1506 CXX C++ compiler command
1507 CXXFLAGS C++ compiler flags
1508 CXXCPP C++ preprocessor
1509 F77 Fortran 77 compiler command
1510 FFLAGS Fortran 77 compiler flags
1511
1512Use these variables to override the choices made by `configure' or to help
1513it to find libraries and programs with nonstandard names/locations.
1514
1515Report bugs to <bug-libtool@gnu.org>.
1516_ACEOF
64ff59ba 1517ac_status=$?
d9898ee8 1518fi
1519
1520if test "$ac_init_help" = "recursive"; then
1521 # If there are subdirs, report their specific --help.
d9898ee8 1522 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
64ff59ba 1523 test -d "$ac_dir" || continue
d9898ee8 1524 ac_builddir=.
1525
64ff59ba 1526case "$ac_dir" in
1527.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528*)
d9898ee8 1529 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
64ff59ba 1530 # A ".." for each directory in $ac_dir_suffix.
1531 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1532 case $ac_top_builddir_sub in
1533 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1535 esac ;;
1536esac
1537ac_abs_top_builddir=$ac_pwd
1538ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539# for backward compatibility:
1540ac_top_builddir=$ac_top_build_prefix
d9898ee8 1541
1542case $srcdir in
64ff59ba 1543 .) # We are building in place.
d9898ee8 1544 ac_srcdir=.
64ff59ba 1545 ac_top_srcdir=$ac_top_builddir_sub
1546 ac_abs_top_srcdir=$ac_pwd ;;
1547 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 1548 ac_srcdir=$srcdir$ac_dir_suffix;
64ff59ba 1549 ac_top_srcdir=$srcdir
1550 ac_abs_top_srcdir=$srcdir ;;
1551 *) # Relative name.
1552 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1553 ac_top_srcdir=$ac_top_build_prefix$srcdir
1554 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 1555esac
64ff59ba 1556ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557
1558 cd "$ac_dir" || { ac_status=$?; continue; }
1559 # Check for guested configure.
1560 if test -f "$ac_srcdir/configure.gnu"; then
1561 echo &&
1562 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563 elif test -f "$ac_srcdir/configure"; then
1564 echo &&
1565 $SHELL "$ac_srcdir/configure" --help=recursive
d9898ee8 1566 else
1567 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
64ff59ba 1568 fi || ac_status=$?
1569 cd "$ac_pwd" || { ac_status=$?; break; }
d9898ee8 1570 done
1571fi
1572
64ff59ba 1573test -n "$ac_init_help" && exit $ac_status
d9898ee8 1574if $ac_init_version; then
1575 cat <<\_ACEOF
1576libltdl configure 1.2
64ff59ba 1577generated by GNU Autoconf 2.61
d9898ee8 1578
64ff59ba 1579Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15802002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
d9898ee8 1581This configure script is free software; the Free Software Foundation
1582gives unlimited permission to copy, distribute and modify it.
1583_ACEOF
64ff59ba 1584 exit
d9898ee8 1585fi
64ff59ba 1586cat >config.log <<_ACEOF
d9898ee8 1587This file contains any messages produced by compilers while
1588running configure, to aid debugging if configure makes a mistake.
1589
1590It was created by libltdl $as_me 1.2, which was
64ff59ba 1591generated by GNU Autoconf 2.61. Invocation command line was
d9898ee8 1592
1593 $ $0 $@
1594
1595_ACEOF
64ff59ba 1596exec 5>>config.log
d9898ee8 1597{
1598cat <<_ASUNAME
1599## --------- ##
1600## Platform. ##
1601## --------- ##
1602
1603hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1604uname -m = `(uname -m) 2>/dev/null || echo unknown`
1605uname -r = `(uname -r) 2>/dev/null || echo unknown`
1606uname -s = `(uname -s) 2>/dev/null || echo unknown`
1607uname -v = `(uname -v) 2>/dev/null || echo unknown`
1608
1609/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1610/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1611
1612/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1613/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1614/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
64ff59ba 1615/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
d9898ee8 1616/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1617/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1618/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1619
1620_ASUNAME
1621
1622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1623for as_dir in $PATH
1624do
1625 IFS=$as_save_IFS
1626 test -z "$as_dir" && as_dir=.
1627 echo "PATH: $as_dir"
1628done
64ff59ba 1629IFS=$as_save_IFS
d9898ee8 1630
1631} >&5
1632
1633cat >&5 <<_ACEOF
1634
1635
1636## ----------- ##
1637## Core tests. ##
1638## ----------- ##
1639
1640_ACEOF
1641
1642
1643# Keep a trace of the command line.
1644# Strip out --no-create and --no-recursion so they do not pile up.
1645# Strip out --silent because we don't want to record it for future runs.
1646# Also quote any args containing shell meta-characters.
1647# Make two passes to allow for proper duplicate-argument suppression.
1648ac_configure_args=
1649ac_configure_args0=
1650ac_configure_args1=
d9898ee8 1651ac_must_keep_next=false
1652for ac_pass in 1 2
1653do
1654 for ac_arg
1655 do
1656 case $ac_arg in
1657 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1658 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1659 | -silent | --silent | --silen | --sile | --sil)
1660 continue ;;
64ff59ba 1661 *\'*)
d9898ee8 1662 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1663 esac
1664 case $ac_pass in
1665 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1666 2)
1667 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1668 if test $ac_must_keep_next = true; then
1669 ac_must_keep_next=false # Got value, back to normal.
1670 else
1671 case $ac_arg in
1672 *=* | --config-cache | -C | -disable-* | --disable-* \
1673 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1674 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1675 | -with-* | --with-* | -without-* | --without-* | --x)
1676 case "$ac_configure_args0 " in
1677 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1678 esac
1679 ;;
1680 -* ) ac_must_keep_next=true ;;
1681 esac
1682 fi
64ff59ba 1683 ac_configure_args="$ac_configure_args '$ac_arg'"
d9898ee8 1684 ;;
1685 esac
1686 done
1687done
1688$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1689$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1690
1691# When interrupted or exit'd, cleanup temporary files, and complete
1692# config.log. We remove comments because anyway the quotes in there
1693# would cause problems or look ugly.
64ff59ba 1694# WARNING: Use '\'' to represent an apostrophe within the trap.
1695# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
d9898ee8 1696trap 'exit_status=$?
1697 # Save into config.log some information that might help in debugging.
1698 {
1699 echo
1700
1701 cat <<\_ASBOX
1702## ---------------- ##
1703## Cache variables. ##
1704## ---------------- ##
1705_ASBOX
1706 echo
1707 # The following way of writing the cache mishandles newlines in values,
64ff59ba 1708(
1709 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1710 eval ac_val=\$$ac_var
1711 case $ac_val in #(
1712 *${as_nl}*)
1713 case $ac_var in #(
1714 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1715echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1716 esac
1717 case $ac_var in #(
1718 _ | IFS | as_nl) ;; #(
1719 *) $as_unset $ac_var ;;
1720 esac ;;
1721 esac
1722 done
d9898ee8 1723 (set) 2>&1 |
64ff59ba 1724 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1725 *${as_nl}ac_space=\ *)
d9898ee8 1726 sed -n \
64ff59ba 1727 "s/'\''/'\''\\\\'\'''\''/g;
1728 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1729 ;; #(
d9898ee8 1730 *)
64ff59ba 1731 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 1732 ;;
64ff59ba 1733 esac |
1734 sort
1735)
d9898ee8 1736 echo
1737
1738 cat <<\_ASBOX
1739## ----------------- ##
1740## Output variables. ##
1741## ----------------- ##
1742_ASBOX
1743 echo
1744 for ac_var in $ac_subst_vars
1745 do
64ff59ba 1746 eval ac_val=\$$ac_var
1747 case $ac_val in
1748 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1749 esac
1750 echo "$ac_var='\''$ac_val'\''"
d9898ee8 1751 done | sort
1752 echo
1753
1754 if test -n "$ac_subst_files"; then
1755 cat <<\_ASBOX
64ff59ba 1756## ------------------- ##
1757## File substitutions. ##
1758## ------------------- ##
d9898ee8 1759_ASBOX
1760 echo
1761 for ac_var in $ac_subst_files
1762 do
64ff59ba 1763 eval ac_val=\$$ac_var
1764 case $ac_val in
1765 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1766 esac
1767 echo "$ac_var='\''$ac_val'\''"
d9898ee8 1768 done | sort
1769 echo
1770 fi
1771
1772 if test -s confdefs.h; then
1773 cat <<\_ASBOX
1774## ----------- ##
1775## confdefs.h. ##
1776## ----------- ##
1777_ASBOX
1778 echo
64ff59ba 1779 cat confdefs.h
d9898ee8 1780 echo
1781 fi
1782 test "$ac_signal" != 0 &&
1783 echo "$as_me: caught signal $ac_signal"
1784 echo "$as_me: exit $exit_status"
1785 } >&5
64ff59ba 1786 rm -f core *.core core.conftest.* &&
1787 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
d9898ee8 1788 exit $exit_status
64ff59ba 1789' 0
d9898ee8 1790for ac_signal in 1 2 13 15; do
1791 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1792done
1793ac_signal=0
1794
1795# confdefs.h avoids OS command line length limits that DEFS can exceed.
64ff59ba 1796rm -f -r conftest* confdefs.h
d9898ee8 1797
1798# Predefined preprocessor variables.
1799
1800cat >>confdefs.h <<_ACEOF
1801#define PACKAGE_NAME "$PACKAGE_NAME"
1802_ACEOF
1803
1804
1805cat >>confdefs.h <<_ACEOF
1806#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1807_ACEOF
1808
1809
1810cat >>confdefs.h <<_ACEOF
1811#define PACKAGE_VERSION "$PACKAGE_VERSION"
1812_ACEOF
1813
1814
1815cat >>confdefs.h <<_ACEOF
1816#define PACKAGE_STRING "$PACKAGE_STRING"
1817_ACEOF
1818
1819
1820cat >>confdefs.h <<_ACEOF
1821#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1822_ACEOF
1823
1824
1825# Let the site file select an alternate cache file if it wants to.
1826# Prefer explicitly selected file to automatically selected ones.
64ff59ba 1827if test -n "$CONFIG_SITE"; then
1828 set x "$CONFIG_SITE"
1829elif test "x$prefix" != xNONE; then
1830 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1831else
1832 set x "$ac_default_prefix/share/config.site" \
1833 "$ac_default_prefix/etc/config.site"
d9898ee8 1834fi
64ff59ba 1835shift
1836for ac_site_file
1837do
d9898ee8 1838 if test -r "$ac_site_file"; then
1839 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1840echo "$as_me: loading site script $ac_site_file" >&6;}
1841 sed 's/^/| /' "$ac_site_file" >&5
1842 . "$ac_site_file"
1843 fi
1844done
1845
1846if test -r "$cache_file"; then
1847 # Some versions of bash will fail to source /dev/null (special
1848 # files actually), so we avoid doing that.
1849 if test -f "$cache_file"; then
1850 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1851echo "$as_me: loading cache $cache_file" >&6;}
1852 case $cache_file in
64ff59ba 1853 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1854 *) . "./$cache_file";;
d9898ee8 1855 esac
1856 fi
1857else
1858 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1859echo "$as_me: creating cache $cache_file" >&6;}
1860 >$cache_file
1861fi
1862
1863# Check that the precious variables saved in the cache have kept the same
1864# value.
1865ac_cache_corrupted=false
64ff59ba 1866for ac_var in $ac_precious_vars; do
d9898ee8 1867 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1868 eval ac_new_set=\$ac_env_${ac_var}_set
64ff59ba 1869 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1870 eval ac_new_val=\$ac_env_${ac_var}_value
d9898ee8 1871 case $ac_old_set,$ac_new_set in
1872 set,)
1873 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1874echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1875 ac_cache_corrupted=: ;;
1876 ,set)
1877 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1878echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1879 ac_cache_corrupted=: ;;
1880 ,);;
1881 *)
1882 if test "x$ac_old_val" != "x$ac_new_val"; then
1883 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1884echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1885 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1886echo "$as_me: former value: $ac_old_val" >&2;}
1887 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1888echo "$as_me: current value: $ac_new_val" >&2;}
1889 ac_cache_corrupted=:
1890 fi;;
1891 esac
1892 # Pass precious variables to config.status.
1893 if test "$ac_new_set" = set; then
1894 case $ac_new_val in
64ff59ba 1895 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 1896 *) ac_arg=$ac_var=$ac_new_val ;;
1897 esac
1898 case " $ac_configure_args " in
1899 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1900 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1901 esac
1902 fi
1903done
1904if $ac_cache_corrupted; then
1905 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1906echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1907 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1908echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1909 { (exit 1); exit 1; }; }
1910fi
1911
d9898ee8 1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
64ff59ba 1936ac_ext=c
1937ac_cpp='$CPP $CPPFLAGS'
1938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1940ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 1941
1942
1943
1944
1945
1946## ------------------------------- ##
1947## Libltdl specific configuration. ##
1948## ------------------------------- ##
1949
1950ac_aux_dir=
64ff59ba 1951for ac_dir in . "$srcdir"/.; do
1952 if test -f "$ac_dir/install-sh"; then
d9898ee8 1953 ac_aux_dir=$ac_dir
1954 ac_install_sh="$ac_aux_dir/install-sh -c"
1955 break
64ff59ba 1956 elif test -f "$ac_dir/install.sh"; then
d9898ee8 1957 ac_aux_dir=$ac_dir
1958 ac_install_sh="$ac_aux_dir/install.sh -c"
1959 break
64ff59ba 1960 elif test -f "$ac_dir/shtool"; then
d9898ee8 1961 ac_aux_dir=$ac_dir
1962 ac_install_sh="$ac_aux_dir/shtool install -c"
1963 break
1964 fi
1965done
1966if test -z "$ac_aux_dir"; then
64ff59ba 1967 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
1968echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
d9898ee8 1969 { (exit 1); exit 1; }; }
1970fi
64ff59ba 1971
1972# These three variables are undocumented and unsupported,
1973# and are intended to be withdrawn in a future Autoconf release.
1974# They can cause serious problems if a builder's source tree is in a directory
1975# whose full name contains unusual characters.
1976ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1977ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1978ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1979
d9898ee8 1980
1981
1982if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
1983 if test -f ${srcdir}/ltmain.sh; then
1984 # if libltdl is libtoolized, it is assumed to be stand-alone and
1985 # installed unless the command line overrides it (tested above)
1986 enable_ltdl_install=yes
1987 else
1988 { echo "$as_me:$LINENO: WARNING: *** The top-level configure must select either" >&5
1989echo "$as_me: WARNING: *** The top-level configure must select either" >&2;}
1990 { echo "$as_me:$LINENO: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5
1991echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;}
1992 { { echo "$as_me:$LINENO: error: *** Maybe you want to --enable-ltdl-install?" >&5
1993echo "$as_me: error: *** Maybe you want to --enable-ltdl-install?" >&2;}
1994 { (exit 1); exit 1; }; }
1995 fi
1996fi
1997
1998
1999## ------------------------ ##
2000## Automake Initialisation. ##
2001## ------------------------ ##
64ff59ba 2002am__api_version='1.10'
2003
d9898ee8 2004# Find a good install program. We prefer a C program (faster),
2005# so one script is as good as another. But avoid the broken or
2006# incompatible versions:
2007# SysV /etc/install, /usr/sbin/install
2008# SunOS /usr/etc/install
2009# IRIX /sbin/install
2010# AIX /bin/install
2011# AmigaOS /C/install, which installs bootblocks on floppy discs
2012# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2013# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2014# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2015# OS/2's system install, which has a completely different semantic
2016# ./install, which can be erroneously created by make from ./install.sh.
64ff59ba 2017{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2018echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
d9898ee8 2019if test -z "$INSTALL"; then
2020if test "${ac_cv_path_install+set}" = set; then
2021 echo $ECHO_N "(cached) $ECHO_C" >&6
2022else
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024for as_dir in $PATH
2025do
2026 IFS=$as_save_IFS
2027 test -z "$as_dir" && as_dir=.
2028 # Account for people who put trailing slashes in PATH elements.
2029case $as_dir/ in
2030 ./ | .// | /cC/* | \
2031 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2032 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2033 /usr/ucb/* ) ;;
2034 *)
2035 # OSF1 and SCO ODT 3.0 have their own names for install.
2036 # Don't use installbsd from OSF since it installs stuff as root
2037 # by default.
2038 for ac_prog in ginstall scoinst install; do
2039 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2040 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 2041 if test $ac_prog = install &&
2042 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2043 # AIX install. It has an incompatible calling convention.
2044 :
2045 elif test $ac_prog = install &&
2046 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2047 # program-specific install script used by HP pwplus--don't use.
2048 :
2049 else
2050 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2051 break 3
2052 fi
2053 fi
2054 done
2055 done
2056 ;;
2057esac
2058done
64ff59ba 2059IFS=$as_save_IFS
d9898ee8 2060
2061
2062fi
2063 if test "${ac_cv_path_install+set}" = set; then
2064 INSTALL=$ac_cv_path_install
2065 else
64ff59ba 2066 # As a last resort, use the slow shell script. Don't cache a
2067 # value for INSTALL within a source directory, because that will
d9898ee8 2068 # break other packages using the cache if that directory is
64ff59ba 2069 # removed, or if the value is a relative name.
d9898ee8 2070 INSTALL=$ac_install_sh
2071 fi
2072fi
64ff59ba 2073{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2074echo "${ECHO_T}$INSTALL" >&6; }
d9898ee8 2075
2076# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2077# It thinks the first close brace ends the variable substitution.
2078test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2079
2080test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2081
2082test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2083
64ff59ba 2084{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2085echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
d9898ee8 2086# Just in case
2087sleep 1
2088echo timestamp > conftest.file
2089# Do `set' in a subshell so we don't clobber the current shell's
2090# arguments. Must try -L first in case configure is actually a
2091# symlink; some systems play weird games with the mod time of symlinks
2092# (eg FreeBSD returns the mod time of the symlink's containing
2093# directory).
2094if (
2095 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2096 if test "$*" = "X"; then
2097 # -L didn't work.
2098 set X `ls -t $srcdir/configure conftest.file`
2099 fi
2100 rm -f conftest.file
2101 if test "$*" != "X $srcdir/configure conftest.file" \
2102 && test "$*" != "X conftest.file $srcdir/configure"; then
2103
2104 # If neither matched, then we have a broken ls. This can happen
2105 # if, for instance, CONFIG_SHELL is bash and it inherits a
2106 # broken ls alias from the environment. This has actually
2107 # happened. Such a system could not be considered "sane".
2108 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2109alias in your environment" >&5
2110echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2111alias in your environment" >&2;}
2112 { (exit 1); exit 1; }; }
2113 fi
2114
2115 test "$2" = conftest.file
2116 )
2117then
2118 # Ok.
2119 :
2120else
2121 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2122Check your system clock" >&5
2123echo "$as_me: error: newly created file is older than distributed files!
2124Check your system clock" >&2;}
2125 { (exit 1); exit 1; }; }
2126fi
64ff59ba 2127{ echo "$as_me:$LINENO: result: yes" >&5
2128echo "${ECHO_T}yes" >&6; }
d9898ee8 2129test "$program_prefix" != NONE &&
64ff59ba 2130 program_transform_name="s&^&$program_prefix&;$program_transform_name"
d9898ee8 2131# Use a double $ so make ignores it.
2132test "$program_suffix" != NONE &&
64ff59ba 2133 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
d9898ee8 2134# Double any \ or $. echo might interpret backslashes.
2135# By default was `s,x,x', remove it if useless.
2136cat <<\_ACEOF >conftest.sed
2137s/[\\$]/&&/g;s/;s,x,x,$//
2138_ACEOF
2139program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
64ff59ba 2140rm -f conftest.sed
d9898ee8 2141
2142# expand $ac_aux_dir to an absolute path
2143am_aux_dir=`cd $ac_aux_dir && pwd`
2144
2145test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2146# Use eval to expand $SHELL
2147if eval "$MISSING --run true"; then
2148 am_missing_run="$MISSING --run "
2149else
2150 am_missing_run=
2151 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2152echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2153fi
2154
64ff59ba 2155{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2156echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2157if test -z "$MKDIR_P"; then
2158 if test "${ac_cv_path_mkdir+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2160else
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2163do
2164 IFS=$as_save_IFS
2165 test -z "$as_dir" && as_dir=.
2166 for ac_prog in mkdir gmkdir; do
2167 for ac_exec_ext in '' $ac_executable_extensions; do
2168 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2169 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2170 'mkdir (GNU coreutils) '* | \
2171 'mkdir (coreutils) '* | \
2172 'mkdir (fileutils) '4.1*)
2173 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2174 break 3;;
2175 esac
2176 done
2177 done
2178done
2179IFS=$as_save_IFS
2180
2181fi
2182
2183 if test "${ac_cv_path_mkdir+set}" = set; then
2184 MKDIR_P="$ac_cv_path_mkdir -p"
d9898ee8 2185 else
64ff59ba 2186 # As a last resort, use the slow shell script. Don't cache a
2187 # value for MKDIR_P within a source directory, because that will
2188 # break other packages using the cache if that directory is
2189 # removed, or if the value is a relative name.
2190 test -d ./--version && rmdir ./--version
2191 MKDIR_P="$ac_install_sh -d"
d9898ee8 2192 fi
2193fi
64ff59ba 2194{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2195echo "${ECHO_T}$MKDIR_P" >&6; }
2196
2197mkdir_p="$MKDIR_P"
2198case $mkdir_p in
2199 [\\/$]* | ?:[\\/]*) ;;
2200 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2201esac
d9898ee8 2202
2203for ac_prog in gawk mawk nawk awk
2204do
2205 # Extract the first word of "$ac_prog", so it can be a program name with args.
2206set dummy $ac_prog; ac_word=$2
64ff59ba 2207{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2209if test "${ac_cv_prog_AWK+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2211else
2212 if test -n "$AWK"; then
2213 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2214else
2215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216for as_dir in $PATH
2217do
2218 IFS=$as_save_IFS
2219 test -z "$as_dir" && as_dir=.
2220 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2222 ac_cv_prog_AWK="$ac_prog"
2223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2224 break 2
2225 fi
2226done
2227done
64ff59ba 2228IFS=$as_save_IFS
d9898ee8 2229
2230fi
2231fi
2232AWK=$ac_cv_prog_AWK
2233if test -n "$AWK"; then
64ff59ba 2234 { echo "$as_me:$LINENO: result: $AWK" >&5
2235echo "${ECHO_T}$AWK" >&6; }
d9898ee8 2236else
64ff59ba 2237 { echo "$as_me:$LINENO: result: no" >&5
2238echo "${ECHO_T}no" >&6; }
d9898ee8 2239fi
2240
64ff59ba 2241
d9898ee8 2242 test -n "$AWK" && break
2243done
2244
64ff59ba 2245{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2246echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2247set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2248if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2250else
2251 cat >conftest.make <<\_ACEOF
64ff59ba 2252SHELL = /bin/sh
d9898ee8 2253all:
64ff59ba 2254 @echo '@@@%%%=$(MAKE)=@@@%%%'
d9898ee8 2255_ACEOF
2256# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
64ff59ba 2257case `${MAKE-make} -f conftest.make 2>/dev/null` in
2258 *@@@%%%=?*=@@@%%%*)
2259 eval ac_cv_prog_make_${ac_make}_set=yes;;
2260 *)
2261 eval ac_cv_prog_make_${ac_make}_set=no;;
2262esac
d9898ee8 2263rm -f conftest.make
2264fi
64ff59ba 2265if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2266 { echo "$as_me:$LINENO: result: yes" >&5
2267echo "${ECHO_T}yes" >&6; }
d9898ee8 2268 SET_MAKE=
2269else
64ff59ba 2270 { echo "$as_me:$LINENO: result: no" >&5
2271echo "${ECHO_T}no" >&6; }
d9898ee8 2272 SET_MAKE="MAKE=${MAKE-make}"
2273fi
2274
2275rm -rf .tst 2>/dev/null
2276mkdir .tst 2>/dev/null
2277if test -d .tst; then
2278 am__leading_dot=.
2279else
2280 am__leading_dot=_
2281fi
2282rmdir .tst 2>/dev/null
2283
64ff59ba 2284if test "`cd $srcdir && pwd`" != "`pwd`"; then
2285 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2286 # is not polluted with repeated "-I."
2287 am__isrc=' -I$(srcdir)'
2288 # test to see if srcdir already configured
2289 if test -f $srcdir/config.status; then
2290 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
d9898ee8 2291echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2292 { (exit 1); exit 1; }; }
64ff59ba 2293 fi
d9898ee8 2294fi
2295
2296# test whether we have cygpath
2297if test -z "$CYGPATH_W"; then
2298 if (cygpath --version) >/dev/null 2>/dev/null; then
2299 CYGPATH_W='cygpath -w'
2300 else
2301 CYGPATH_W=echo
2302 fi
2303fi
2304
2305
2306# Define the identity of the package.
2307 PACKAGE=libltdl
2308 VERSION=1.2
2309
2310
2311# Some tools Automake needs.
2312
2313ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2314
2315
2316AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2317
2318
2319AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2320
2321
2322AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2323
2324
2325MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2326
64ff59ba 2327install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
d9898ee8 2328
2329# Installed binaries are usually stripped using `strip' when the user
2330# run `make install-strip'. However `strip' might not be the right
2331# tool to use in cross-compilation environments, therefore Automake
2332# will honor the `STRIP' environment variable to overrule this program.
2333if test "$cross_compiling" != no; then
2334 if test -n "$ac_tool_prefix"; then
2335 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2336set dummy ${ac_tool_prefix}strip; ac_word=$2
64ff59ba 2337{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2339if test "${ac_cv_prog_STRIP+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2341else
2342 if test -n "$STRIP"; then
2343 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2344else
2345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346for as_dir in $PATH
2347do
2348 IFS=$as_save_IFS
2349 test -z "$as_dir" && as_dir=.
2350 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2352 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2354 break 2
2355 fi
2356done
2357done
64ff59ba 2358IFS=$as_save_IFS
d9898ee8 2359
2360fi
2361fi
2362STRIP=$ac_cv_prog_STRIP
2363if test -n "$STRIP"; then
64ff59ba 2364 { echo "$as_me:$LINENO: result: $STRIP" >&5
2365echo "${ECHO_T}$STRIP" >&6; }
d9898ee8 2366else
64ff59ba 2367 { echo "$as_me:$LINENO: result: no" >&5
2368echo "${ECHO_T}no" >&6; }
d9898ee8 2369fi
2370
64ff59ba 2371
d9898ee8 2372fi
2373if test -z "$ac_cv_prog_STRIP"; then
2374 ac_ct_STRIP=$STRIP
2375 # Extract the first word of "strip", so it can be a program name with args.
2376set dummy strip; ac_word=$2
64ff59ba 2377{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2379if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2381else
2382 if test -n "$ac_ct_STRIP"; then
2383 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2384else
2385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386for as_dir in $PATH
2387do
2388 IFS=$as_save_IFS
2389 test -z "$as_dir" && as_dir=.
2390 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2392 ac_cv_prog_ac_ct_STRIP="strip"
2393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2394 break 2
2395 fi
2396done
2397done
64ff59ba 2398IFS=$as_save_IFS
d9898ee8 2399
d9898ee8 2400fi
2401fi
2402ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2403if test -n "$ac_ct_STRIP"; then
64ff59ba 2404 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2405echo "${ECHO_T}$ac_ct_STRIP" >&6; }
d9898ee8 2406else
64ff59ba 2407 { echo "$as_me:$LINENO: result: no" >&5
2408echo "${ECHO_T}no" >&6; }
d9898ee8 2409fi
2410
64ff59ba 2411 if test "x$ac_ct_STRIP" = x; then
2412 STRIP=":"
2413 else
2414 case $cross_compiling:$ac_tool_warned in
2415yes:)
2416{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2417whose name does not start with the host triplet. If you think this
2418configuration is useful to you, please write to autoconf@gnu.org." >&5
2419echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2420whose name does not start with the host triplet. If you think this
2421configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2422ac_tool_warned=yes ;;
2423esac
2424 STRIP=$ac_ct_STRIP
2425 fi
d9898ee8 2426else
2427 STRIP="$ac_cv_prog_STRIP"
2428fi
2429
2430fi
64ff59ba 2431INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
d9898ee8 2432
2433# We need awk for the "check" target. The system "awk" is bad on
2434# some platforms.
2435# Always define AMTAR for backward compatibility.
2436
2437AMTAR=${AMTAR-"${am_missing_run}tar"}
2438
2439am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2440
2441
2442
2443
2444
64ff59ba 2445ac_config_headers="$ac_config_headers config.h:config-h.in"
d9898ee8 2446
2447
2448
2449## ------------------ ##
2450## C compiler checks. ##
2451## ------------------ ##
2452ac_ext=c
2453ac_cpp='$CPP $CPPFLAGS'
2454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2456ac_compiler_gnu=$ac_cv_c_compiler_gnu
2457if test -n "$ac_tool_prefix"; then
2458 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2459set dummy ${ac_tool_prefix}gcc; ac_word=$2
64ff59ba 2460{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2462if test "${ac_cv_prog_CC+set}" = set; then
2463 echo $ECHO_N "(cached) $ECHO_C" >&6
2464else
2465 if test -n "$CC"; then
2466 ac_cv_prog_CC="$CC" # Let the user override the test.
2467else
2468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469for as_dir in $PATH
2470do
2471 IFS=$as_save_IFS
2472 test -z "$as_dir" && as_dir=.
2473 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2475 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2477 break 2
2478 fi
2479done
2480done
64ff59ba 2481IFS=$as_save_IFS
d9898ee8 2482
2483fi
2484fi
2485CC=$ac_cv_prog_CC
2486if test -n "$CC"; then
64ff59ba 2487 { echo "$as_me:$LINENO: result: $CC" >&5
2488echo "${ECHO_T}$CC" >&6; }
d9898ee8 2489else
64ff59ba 2490 { echo "$as_me:$LINENO: result: no" >&5
2491echo "${ECHO_T}no" >&6; }
d9898ee8 2492fi
2493
64ff59ba 2494
d9898ee8 2495fi
2496if test -z "$ac_cv_prog_CC"; then
2497 ac_ct_CC=$CC
2498 # Extract the first word of "gcc", so it can be a program name with args.
2499set dummy gcc; ac_word=$2
64ff59ba 2500{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2502if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2503 echo $ECHO_N "(cached) $ECHO_C" >&6
2504else
2505 if test -n "$ac_ct_CC"; then
2506 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2507else
2508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509for as_dir in $PATH
2510do
2511 IFS=$as_save_IFS
2512 test -z "$as_dir" && as_dir=.
2513 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2515 ac_cv_prog_ac_ct_CC="gcc"
2516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2517 break 2
2518 fi
2519done
2520done
64ff59ba 2521IFS=$as_save_IFS
d9898ee8 2522
2523fi
2524fi
2525ac_ct_CC=$ac_cv_prog_ac_ct_CC
2526if test -n "$ac_ct_CC"; then
64ff59ba 2527 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2528echo "${ECHO_T}$ac_ct_CC" >&6; }
d9898ee8 2529else
64ff59ba 2530 { echo "$as_me:$LINENO: result: no" >&5
2531echo "${ECHO_T}no" >&6; }
d9898ee8 2532fi
2533
64ff59ba 2534 if test "x$ac_ct_CC" = x; then
2535 CC=""
2536 else
2537 case $cross_compiling:$ac_tool_warned in
2538yes:)
2539{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2540whose name does not start with the host triplet. If you think this
2541configuration is useful to you, please write to autoconf@gnu.org." >&5
2542echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2543whose name does not start with the host triplet. If you think this
2544configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2545ac_tool_warned=yes ;;
2546esac
2547 CC=$ac_ct_CC
2548 fi
d9898ee8 2549else
2550 CC="$ac_cv_prog_CC"
2551fi
2552
2553if test -z "$CC"; then
64ff59ba 2554 if test -n "$ac_tool_prefix"; then
2555 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 2556set dummy ${ac_tool_prefix}cc; ac_word=$2
64ff59ba 2557{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2559if test "${ac_cv_prog_CC+set}" = set; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2561else
2562 if test -n "$CC"; then
2563 ac_cv_prog_CC="$CC" # Let the user override the test.
2564else
2565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566for as_dir in $PATH
2567do
2568 IFS=$as_save_IFS
2569 test -z "$as_dir" && as_dir=.
2570 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2572 ac_cv_prog_CC="${ac_tool_prefix}cc"
2573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2574 break 2
2575 fi
2576done
2577done
64ff59ba 2578IFS=$as_save_IFS
d9898ee8 2579
2580fi
2581fi
2582CC=$ac_cv_prog_CC
2583if test -n "$CC"; then
64ff59ba 2584 { echo "$as_me:$LINENO: result: $CC" >&5
2585echo "${ECHO_T}$CC" >&6; }
d9898ee8 2586else
64ff59ba 2587 { echo "$as_me:$LINENO: result: no" >&5
2588echo "${ECHO_T}no" >&6; }
d9898ee8 2589fi
2590
d9898ee8 2591
64ff59ba 2592 fi
d9898ee8 2593fi
2594if test -z "$CC"; then
2595 # Extract the first word of "cc", so it can be a program name with args.
2596set dummy cc; ac_word=$2
64ff59ba 2597{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2599if test "${ac_cv_prog_CC+set}" = set; then
2600 echo $ECHO_N "(cached) $ECHO_C" >&6
2601else
2602 if test -n "$CC"; then
2603 ac_cv_prog_CC="$CC" # Let the user override the test.
2604else
2605 ac_prog_rejected=no
2606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607for as_dir in $PATH
2608do
2609 IFS=$as_save_IFS
2610 test -z "$as_dir" && as_dir=.
2611 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2613 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2614 ac_prog_rejected=yes
2615 continue
2616 fi
2617 ac_cv_prog_CC="cc"
2618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2619 break 2
2620 fi
2621done
2622done
64ff59ba 2623IFS=$as_save_IFS
d9898ee8 2624
2625if test $ac_prog_rejected = yes; then
2626 # We found a bogon in the path, so make sure we never use it.
2627 set dummy $ac_cv_prog_CC
2628 shift
2629 if test $# != 0; then
2630 # We chose a different compiler from the bogus one.
2631 # However, it has the same basename, so the bogon will be chosen
2632 # first if we set CC to just the basename; use the full file name.
2633 shift
2634 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2635 fi
2636fi
2637fi
2638fi
2639CC=$ac_cv_prog_CC
2640if test -n "$CC"; then
64ff59ba 2641 { echo "$as_me:$LINENO: result: $CC" >&5
2642echo "${ECHO_T}$CC" >&6; }
d9898ee8 2643else
64ff59ba 2644 { echo "$as_me:$LINENO: result: no" >&5
2645echo "${ECHO_T}no" >&6; }
d9898ee8 2646fi
2647
64ff59ba 2648
d9898ee8 2649fi
2650if test -z "$CC"; then
2651 if test -n "$ac_tool_prefix"; then
64ff59ba 2652 for ac_prog in cl.exe
d9898ee8 2653 do
2654 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2655set dummy $ac_tool_prefix$ac_prog; ac_word=$2
64ff59ba 2656{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2658if test "${ac_cv_prog_CC+set}" = set; then
2659 echo $ECHO_N "(cached) $ECHO_C" >&6
2660else
2661 if test -n "$CC"; then
2662 ac_cv_prog_CC="$CC" # Let the user override the test.
2663else
2664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665for as_dir in $PATH
2666do
2667 IFS=$as_save_IFS
2668 test -z "$as_dir" && as_dir=.
2669 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2671 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2673 break 2
2674 fi
2675done
2676done
64ff59ba 2677IFS=$as_save_IFS
d9898ee8 2678
2679fi
2680fi
2681CC=$ac_cv_prog_CC
2682if test -n "$CC"; then
64ff59ba 2683 { echo "$as_me:$LINENO: result: $CC" >&5
2684echo "${ECHO_T}$CC" >&6; }
d9898ee8 2685else
64ff59ba 2686 { echo "$as_me:$LINENO: result: no" >&5
2687echo "${ECHO_T}no" >&6; }
d9898ee8 2688fi
2689
64ff59ba 2690
d9898ee8 2691 test -n "$CC" && break
2692 done
2693fi
2694if test -z "$CC"; then
2695 ac_ct_CC=$CC
64ff59ba 2696 for ac_prog in cl.exe
d9898ee8 2697do
2698 # Extract the first word of "$ac_prog", so it can be a program name with args.
2699set dummy $ac_prog; ac_word=$2
64ff59ba 2700{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2702if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2703 echo $ECHO_N "(cached) $ECHO_C" >&6
2704else
2705 if test -n "$ac_ct_CC"; then
2706 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2707else
2708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709for as_dir in $PATH
2710do
2711 IFS=$as_save_IFS
2712 test -z "$as_dir" && as_dir=.
2713 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2715 ac_cv_prog_ac_ct_CC="$ac_prog"
2716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2717 break 2
2718 fi
2719done
2720done
64ff59ba 2721IFS=$as_save_IFS
d9898ee8 2722
2723fi
2724fi
2725ac_ct_CC=$ac_cv_prog_ac_ct_CC
2726if test -n "$ac_ct_CC"; then
64ff59ba 2727 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2728echo "${ECHO_T}$ac_ct_CC" >&6; }
d9898ee8 2729else
64ff59ba 2730 { echo "$as_me:$LINENO: result: no" >&5
2731echo "${ECHO_T}no" >&6; }
d9898ee8 2732fi
2733
64ff59ba 2734
d9898ee8 2735 test -n "$ac_ct_CC" && break
2736done
2737
64ff59ba 2738 if test "x$ac_ct_CC" = x; then
2739 CC=""
2740 else
2741 case $cross_compiling:$ac_tool_warned in
2742yes:)
2743{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2744whose name does not start with the host triplet. If you think this
2745configuration is useful to you, please write to autoconf@gnu.org." >&5
2746echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2747whose name does not start with the host triplet. If you think this
2748configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2749ac_tool_warned=yes ;;
2750esac
2751 CC=$ac_ct_CC
2752 fi
d9898ee8 2753fi
2754
2755fi
2756
2757
2758test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2759See \`config.log' for more details." >&5
2760echo "$as_me: error: no acceptable C compiler found in \$PATH
2761See \`config.log' for more details." >&2;}
2762 { (exit 1); exit 1; }; }
2763
2764# Provide some information about the compiler.
64ff59ba 2765echo "$as_me:$LINENO: checking for C compiler version" >&5
d9898ee8 2766ac_compiler=`set X $ac_compile; echo $2`
64ff59ba 2767{ (ac_try="$ac_compiler --version >&5"
2768case "(($ac_try" in
2769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770 *) ac_try_echo=$ac_try;;
2771esac
2772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2773 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 2774 ac_status=$?
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }
64ff59ba 2777{ (ac_try="$ac_compiler -v >&5"
2778case "(($ac_try" in
2779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780 *) ac_try_echo=$ac_try;;
2781esac
2782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2783 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 2784 ac_status=$?
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }
64ff59ba 2787{ (ac_try="$ac_compiler -V >&5"
2788case "(($ac_try" in
2789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2790 *) ac_try_echo=$ac_try;;
2791esac
2792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2793 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 2794 ac_status=$?
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }
2797
2798cat >conftest.$ac_ext <<_ACEOF
2799/* confdefs.h. */
2800_ACEOF
2801cat confdefs.h >>conftest.$ac_ext
2802cat >>conftest.$ac_ext <<_ACEOF
2803/* end confdefs.h. */
2804
2805int
2806main ()
2807{
2808
2809 ;
2810 return 0;
2811}
2812_ACEOF
2813ac_clean_files_save=$ac_clean_files
2814ac_clean_files="$ac_clean_files a.out a.exe b.out"
2815# Try to create an executable without -o first, disregard a.out.
2816# It will help us diagnose broken compilers, and finding out an intuition
2817# of exeext.
64ff59ba 2818{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2819echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
d9898ee8 2820ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
64ff59ba 2821#
2822# List of possible output files, starting from the most likely.
2823# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2824# only as a last resort. b.out is created by i960 compilers.
2825ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2826#
2827# The IRIX 6 linker writes into existing files which may not be
2828# executable, retaining their permissions. Remove them first so a
2829# subsequent execution test works.
2830ac_rmfiles=
2831for ac_file in $ac_files
2832do
2833 case $ac_file in
2834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2835 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2836 esac
2837done
2838rm -f $ac_rmfiles
2839
2840if { (ac_try="$ac_link_default"
2841case "(($ac_try" in
2842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2843 *) ac_try_echo=$ac_try;;
2844esac
2845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2846 (eval "$ac_link_default") 2>&5
d9898ee8 2847 ac_status=$?
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); }; then
64ff59ba 2850 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2851# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2852# in a Makefile. We should not override ac_cv_exeext if it was cached,
2853# so that the user can short-circuit this test for compilers unknown to
2854# Autoconf.
2855for ac_file in $ac_files ''
d9898ee8 2856do
2857 test -f "$ac_file" || continue
2858 case $ac_file in
64ff59ba 2859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
d9898ee8 2860 ;;
2861 [ab].out )
2862 # We found the default executable, but exeext='' is most
2863 # certainly right.
2864 break;;
2865 *.* )
64ff59ba 2866 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2867 then :; else
2868 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2869 fi
2870 # We set ac_cv_exeext here because the later test for it is not
2871 # safe: cross compilers may not add the suffix if given an `-o'
2872 # argument, so we may need to know it at that point already.
2873 # Even if this section looks crufty: it has the advantage of
2874 # actually working.
d9898ee8 2875 break;;
2876 * )
2877 break;;
2878 esac
2879done
64ff59ba 2880test "$ac_cv_exeext" = no && ac_cv_exeext=
2881
d9898ee8 2882else
64ff59ba 2883 ac_file=''
2884fi
2885
2886{ echo "$as_me:$LINENO: result: $ac_file" >&5
2887echo "${ECHO_T}$ac_file" >&6; }
2888if test -z "$ac_file"; then
d9898ee8 2889 echo "$as_me: failed program was:" >&5
2890sed 's/^/| /' conftest.$ac_ext >&5
2891
2892{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2893See \`config.log' for more details." >&5
2894echo "$as_me: error: C compiler cannot create executables
2895See \`config.log' for more details." >&2;}
2896 { (exit 77); exit 77; }; }
2897fi
2898
2899ac_exeext=$ac_cv_exeext
d9898ee8 2900
64ff59ba 2901# Check that the compiler produces executables we can run. If not, either
d9898ee8 2902# the compiler is broken, or we cross compile.
64ff59ba 2903{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2904echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
d9898ee8 2905# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2906# If not cross compiling, check that we can run a simple program.
2907if test "$cross_compiling" != yes; then
2908 if { ac_try='./$ac_file'
64ff59ba 2909 { (case "(($ac_try" in
2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911 *) ac_try_echo=$ac_try;;
2912esac
2913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914 (eval "$ac_try") 2>&5
d9898ee8 2915 ac_status=$?
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }; }; then
2918 cross_compiling=no
2919 else
2920 if test "$cross_compiling" = maybe; then
2921 cross_compiling=yes
2922 else
2923 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2924If you meant to cross compile, use \`--host'.
2925See \`config.log' for more details." >&5
2926echo "$as_me: error: cannot run C compiled programs.
2927If you meant to cross compile, use \`--host'.
2928See \`config.log' for more details." >&2;}
2929 { (exit 1); exit 1; }; }
2930 fi
2931 fi
2932fi
64ff59ba 2933{ echo "$as_me:$LINENO: result: yes" >&5
2934echo "${ECHO_T}yes" >&6; }
d9898ee8 2935
2936rm -f a.out a.exe conftest$ac_cv_exeext b.out
2937ac_clean_files=$ac_clean_files_save
64ff59ba 2938# Check that the compiler produces executables we can run. If not, either
d9898ee8 2939# the compiler is broken, or we cross compile.
64ff59ba 2940{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2941echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2942{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2943echo "${ECHO_T}$cross_compiling" >&6; }
2944
2945{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2946echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2947if { (ac_try="$ac_link"
2948case "(($ac_try" in
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2951esac
2952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_link") 2>&5
d9898ee8 2954 ac_status=$?
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }; then
2957 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2958# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2959# work properly (i.e., refer to `conftest.exe'), while it won't with
2960# `rm'.
2961for ac_file in conftest.exe conftest conftest.*; do
2962 test -f "$ac_file" || continue
2963 case $ac_file in
64ff59ba 2964 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
d9898ee8 2965 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
d9898ee8 2966 break;;
2967 * ) break;;
2968 esac
2969done
2970else
2971 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2972See \`config.log' for more details." >&5
2973echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2974See \`config.log' for more details." >&2;}
2975 { (exit 1); exit 1; }; }
2976fi
2977
2978rm -f conftest$ac_cv_exeext
64ff59ba 2979{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2980echo "${ECHO_T}$ac_cv_exeext" >&6; }
d9898ee8 2981
2982rm -f conftest.$ac_ext
2983EXEEXT=$ac_cv_exeext
2984ac_exeext=$EXEEXT
64ff59ba 2985{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2986echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
d9898ee8 2987if test "${ac_cv_objext+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2989else
2990 cat >conftest.$ac_ext <<_ACEOF
2991/* confdefs.h. */
2992_ACEOF
2993cat confdefs.h >>conftest.$ac_ext
2994cat >>conftest.$ac_ext <<_ACEOF
2995/* end confdefs.h. */
2996
2997int
2998main ()
2999{
3000
3001 ;
3002 return 0;
3003}
3004_ACEOF
3005rm -f conftest.o conftest.obj
64ff59ba 3006if { (ac_try="$ac_compile"
3007case "(($ac_try" in
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3010esac
3011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_compile") 2>&5
d9898ee8 3013 ac_status=$?
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }; then
64ff59ba 3016 for ac_file in conftest.o conftest.obj conftest.*; do
3017 test -f "$ac_file" || continue;
d9898ee8 3018 case $ac_file in
64ff59ba 3019 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
d9898ee8 3020 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3021 break;;
3022 esac
3023done
3024else
3025 echo "$as_me: failed program was:" >&5
3026sed 's/^/| /' conftest.$ac_ext >&5
3027
3028{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3029See \`config.log' for more details." >&5
3030echo "$as_me: error: cannot compute suffix of object files: cannot compile
3031See \`config.log' for more details." >&2;}
3032 { (exit 1); exit 1; }; }
3033fi
3034
3035rm -f conftest.$ac_cv_objext conftest.$ac_ext
3036fi
64ff59ba 3037{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3038echo "${ECHO_T}$ac_cv_objext" >&6; }
d9898ee8 3039OBJEXT=$ac_cv_objext
3040ac_objext=$OBJEXT
64ff59ba 3041{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3042echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
d9898ee8 3043if test "${ac_cv_c_compiler_gnu+set}" = set; then
3044 echo $ECHO_N "(cached) $ECHO_C" >&6
3045else
3046 cat >conftest.$ac_ext <<_ACEOF
3047/* confdefs.h. */
3048_ACEOF
3049cat confdefs.h >>conftest.$ac_ext
3050cat >>conftest.$ac_ext <<_ACEOF
3051/* end confdefs.h. */
3052
3053int
3054main ()
3055{
3056#ifndef __GNUC__
3057 choke me
3058#endif
3059
3060 ;
3061 return 0;
3062}
3063_ACEOF
3064rm -f conftest.$ac_objext
64ff59ba 3065if { (ac_try="$ac_compile"
3066case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3069esac
3070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3072 ac_status=$?
3073 grep -v '^ *+' conftest.er1 >conftest.err
3074 rm -f conftest.er1
3075 cat conftest.err >&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3077 (exit $ac_status); } && {
3078 test -z "$ac_c_werror_flag" ||
3079 test ! -s conftest.err
3080 } && test -s conftest.$ac_objext; then
d9898ee8 3081 ac_compiler_gnu=yes
3082else
3083 echo "$as_me: failed program was:" >&5
3084sed 's/^/| /' conftest.$ac_ext >&5
3085
64ff59ba 3086 ac_compiler_gnu=no
d9898ee8 3087fi
64ff59ba 3088
3089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3090ac_cv_c_compiler_gnu=$ac_compiler_gnu
3091
3092fi
64ff59ba 3093{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3094echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
d9898ee8 3095GCC=`test $ac_compiler_gnu = yes && echo yes`
3096ac_test_CFLAGS=${CFLAGS+set}
3097ac_save_CFLAGS=$CFLAGS
64ff59ba 3098{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3099echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
d9898ee8 3100if test "${ac_cv_prog_cc_g+set}" = set; then
3101 echo $ECHO_N "(cached) $ECHO_C" >&6
3102else
64ff59ba 3103 ac_save_c_werror_flag=$ac_c_werror_flag
3104 ac_c_werror_flag=yes
3105 ac_cv_prog_cc_g=no
3106 CFLAGS="-g"
3107 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 3108/* confdefs.h. */
3109_ACEOF
3110cat confdefs.h >>conftest.$ac_ext
3111cat >>conftest.$ac_ext <<_ACEOF
3112/* end confdefs.h. */
3113
3114int
3115main ()
3116{
3117
3118 ;
3119 return 0;
3120}
3121_ACEOF
3122rm -f conftest.$ac_objext
64ff59ba 3123if { (ac_try="$ac_compile"
3124case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127esac
3128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3130 ac_status=$?
3131 grep -v '^ *+' conftest.er1 >conftest.err
3132 rm -f conftest.er1
3133 cat conftest.err >&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3135 (exit $ac_status); } && {
3136 test -z "$ac_c_werror_flag" ||
3137 test ! -s conftest.err
3138 } && test -s conftest.$ac_objext; then
3139 ac_cv_prog_cc_g=yes
3140else
3141 echo "$as_me: failed program was:" >&5
3142sed 's/^/| /' conftest.$ac_ext >&5
3143
3144 CFLAGS=""
3145 cat >conftest.$ac_ext <<_ACEOF
3146/* confdefs.h. */
3147_ACEOF
3148cat confdefs.h >>conftest.$ac_ext
3149cat >>conftest.$ac_ext <<_ACEOF
3150/* end confdefs.h. */
3151
3152int
3153main ()
3154{
3155
3156 ;
3157 return 0;
3158}
3159_ACEOF
3160rm -f conftest.$ac_objext
3161if { (ac_try="$ac_compile"
3162case "(($ac_try" in
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3165esac
3166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3168 ac_status=$?
64ff59ba 3169 grep -v '^ *+' conftest.er1 >conftest.err
3170 rm -f conftest.er1
3171 cat conftest.err >&5
d9898ee8 3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3173 (exit $ac_status); } && {
3174 test -z "$ac_c_werror_flag" ||
3175 test ! -s conftest.err
3176 } && test -s conftest.$ac_objext; then
3177 :
3178else
3179 echo "$as_me: failed program was:" >&5
3180sed 's/^/| /' conftest.$ac_ext >&5
3181
3182 ac_c_werror_flag=$ac_save_c_werror_flag
3183 CFLAGS="-g"
3184 cat >conftest.$ac_ext <<_ACEOF
3185/* confdefs.h. */
3186_ACEOF
3187cat confdefs.h >>conftest.$ac_ext
3188cat >>conftest.$ac_ext <<_ACEOF
3189/* end confdefs.h. */
3190
3191int
3192main ()
3193{
3194
3195 ;
3196 return 0;
3197}
3198_ACEOF
3199rm -f conftest.$ac_objext
3200if { (ac_try="$ac_compile"
3201case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3204esac
3205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3207 ac_status=$?
64ff59ba 3208 grep -v '^ *+' conftest.er1 >conftest.err
3209 rm -f conftest.er1
3210 cat conftest.err >&5
d9898ee8 3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3212 (exit $ac_status); } && {
3213 test -z "$ac_c_werror_flag" ||
3214 test ! -s conftest.err
3215 } && test -s conftest.$ac_objext; then
d9898ee8 3216 ac_cv_prog_cc_g=yes
3217else
3218 echo "$as_me: failed program was:" >&5
3219sed 's/^/| /' conftest.$ac_ext >&5
3220
64ff59ba 3221
3222fi
3223
3224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225fi
3226
3227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3228fi
64ff59ba 3229
3230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 3232fi
64ff59ba 3233{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3234echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
d9898ee8 3235if test "$ac_test_CFLAGS" = set; then
3236 CFLAGS=$ac_save_CFLAGS
3237elif test $ac_cv_prog_cc_g = yes; then
3238 if test "$GCC" = yes; then
3239 CFLAGS="-g -O2"
3240 else
3241 CFLAGS="-g"
3242 fi
3243else
3244 if test "$GCC" = yes; then
3245 CFLAGS="-O2"
3246 else
3247 CFLAGS=
3248 fi
3249fi
64ff59ba 3250{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3251echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3252if test "${ac_cv_prog_cc_c89+set}" = set; then
d9898ee8 3253 echo $ECHO_N "(cached) $ECHO_C" >&6
3254else
64ff59ba 3255 ac_cv_prog_cc_c89=no
d9898ee8 3256ac_save_CC=$CC
3257cat >conftest.$ac_ext <<_ACEOF
3258/* confdefs.h. */
3259_ACEOF
3260cat confdefs.h >>conftest.$ac_ext
3261cat >>conftest.$ac_ext <<_ACEOF
3262/* end confdefs.h. */
3263#include <stdarg.h>
3264#include <stdio.h>
3265#include <sys/types.h>
3266#include <sys/stat.h>
3267/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3268struct buf { int x; };
3269FILE * (*rcsopen) (struct buf *, struct stat *, int);
3270static char *e (p, i)
3271 char **p;
3272 int i;
3273{
3274 return p[i];
3275}
3276static char *f (char * (*g) (char **, int), char **p, ...)
3277{
3278 char *s;
3279 va_list v;
3280 va_start (v,p);
3281 s = g (p, va_arg (v,int));
3282 va_end (v);
3283 return s;
3284}
3285
3286/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3287 function prototypes and stuff, but not '\xHH' hex character constants.
3288 These don't provoke an error unfortunately, instead are silently treated
64ff59ba 3289 as 'x'. The following induces an error, until -std is added to get
d9898ee8 3290 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3291 array size at least. It's necessary to write '\x00'==0 to get something
64ff59ba 3292 that's true only with -std. */
d9898ee8 3293int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3294
64ff59ba 3295/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3296 inside strings and character constants. */
3297#define FOO(x) 'x'
3298int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3299
d9898ee8 3300int test (int i, double x);
3301struct s1 {int (*f) (int a);};
3302struct s2 {int (*f) (double a);};
3303int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3304int argc;
3305char **argv;
3306int
3307main ()
3308{
3309return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3310 ;
3311 return 0;
3312}
3313_ACEOF
64ff59ba 3314for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3315 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 3316do
3317 CC="$ac_save_CC $ac_arg"
3318 rm -f conftest.$ac_objext
64ff59ba 3319if { (ac_try="$ac_compile"
3320case "(($ac_try" in
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3323esac
3324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3325 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3326 ac_status=$?
3327 grep -v '^ *+' conftest.er1 >conftest.err
3328 rm -f conftest.er1
3329 cat conftest.err >&5
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3331 (exit $ac_status); } && {
3332 test -z "$ac_c_werror_flag" ||
3333 test ! -s conftest.err
3334 } && test -s conftest.$ac_objext; then
3335 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 3336else
3337 echo "$as_me: failed program was:" >&5
3338sed 's/^/| /' conftest.$ac_ext >&5
3339
64ff59ba 3340
d9898ee8 3341fi
64ff59ba 3342
3343rm -f core conftest.err conftest.$ac_objext
3344 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 3345done
64ff59ba 3346rm -f conftest.$ac_ext
d9898ee8 3347CC=$ac_save_CC
3348
3349fi
64ff59ba 3350# AC_CACHE_VAL
3351case "x$ac_cv_prog_cc_c89" in
3352 x)
3353 { echo "$as_me:$LINENO: result: none needed" >&5
3354echo "${ECHO_T}none needed" >&6; } ;;
3355 xno)
3356 { echo "$as_me:$LINENO: result: unsupported" >&5
3357echo "${ECHO_T}unsupported" >&6; } ;;
d9898ee8 3358 *)
64ff59ba 3359 CC="$CC $ac_cv_prog_cc_c89"
3360 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3361echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 3362esac
3363
d9898ee8 3364
d9898ee8 3365ac_ext=c
3366ac_cpp='$CPP $CPPFLAGS'
3367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3369ac_compiler_gnu=$ac_cv_c_compiler_gnu
3370DEPDIR="${am__leading_dot}deps"
3371
64ff59ba 3372ac_config_commands="$ac_config_commands depfiles"
d9898ee8 3373
3374
3375am_make=${MAKE-make}
3376cat > confinc << 'END'
3377am__doit:
3378 @echo done
3379.PHONY: am__doit
3380END
3381# If we don't find an include directive, just comment out the code.
64ff59ba 3382{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3383echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
d9898ee8 3384am__include="#"
3385am__quote=
3386_am_result=none
3387# First try GNU make style include.
3388echo "include confinc" > confmf
3389# We grep out `Entering directory' and `Leaving directory'
3390# messages which can occur if `w' ends up in MAKEFLAGS.
3391# In particular we don't look at `^make:' because GNU make might
3392# be invoked under some other name (usually "gmake"), in which
3393# case it prints its new name instead of `make'.
3394if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3395 am__include=include
3396 am__quote=
3397 _am_result=GNU
3398fi
3399# Now try BSD make style include.
3400if test "$am__include" = "#"; then
3401 echo '.include "confinc"' > confmf
3402 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3403 am__include=.include
3404 am__quote="\""
3405 _am_result=BSD
3406 fi
3407fi
3408
3409
64ff59ba 3410{ echo "$as_me:$LINENO: result: $_am_result" >&5
3411echo "${ECHO_T}$_am_result" >&6; }
d9898ee8 3412rm -f confinc confmf
3413
64ff59ba 3414# Check whether --enable-dependency-tracking was given.
d9898ee8 3415if test "${enable_dependency_tracking+set}" = set; then
64ff59ba 3416 enableval=$enable_dependency_tracking;
3417fi
d9898ee8 3418
d9898ee8 3419if test "x$enable_dependency_tracking" != xno; then
3420 am_depcomp="$ac_aux_dir/depcomp"
3421 AMDEPBACKSLASH='\'
3422fi
64ff59ba 3423 if test "x$enable_dependency_tracking" != xno; then
d9898ee8 3424 AMDEP_TRUE=
3425 AMDEP_FALSE='#'
3426else
3427 AMDEP_TRUE='#'
3428 AMDEP_FALSE=
3429fi
3430
3431
3432
d9898ee8 3433depcc="$CC" am_compiler_list=
3434
64ff59ba 3435{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3436echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
d9898ee8 3437if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3439else
3440 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3441 # We make a subdir and do the tests there. Otherwise we can end up
3442 # making bogus files that we don't know about and never remove. For
3443 # instance it was reported that on HP-UX the gcc test will end up
3444 # making a dummy file named `D' -- because `-MD' means `put the output
3445 # in D'.
3446 mkdir conftest.dir
3447 # Copy depcomp to subdir because otherwise we won't find it if we're
3448 # using a relative directory.
3449 cp "$am_depcomp" conftest.dir
3450 cd conftest.dir
3451 # We will build objects and dependencies in a subdirectory because
3452 # it helps to detect inapplicable dependency modes. For instance
3453 # both Tru64's cc and ICC support -MD to output dependencies as a
3454 # side effect of compilation, but ICC will put the dependencies in
3455 # the current directory while Tru64 will put them in the object
3456 # directory.
3457 mkdir sub
3458
3459 am_cv_CC_dependencies_compiler_type=none
3460 if test "$am_compiler_list" = ""; then
3461 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3462 fi
3463 for depmode in $am_compiler_list; do
3464 # Setup a source with many dependencies, because some compilers
3465 # like to wrap large dependency lists on column 80 (with \), and
3466 # we should not choose a depcomp mode which is confused by this.
3467 #
3468 # We need to recreate these files for each test, as the compiler may
3469 # overwrite some of them when testing with obscure command lines.
3470 # This happens at least with the AIX C compiler.
3471 : > sub/conftest.c
3472 for i in 1 2 3 4 5 6; do
3473 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3474 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3475 # Solaris 8's {/usr,}/bin/sh.
3476 touch sub/conftst$i.h
3477 done
3478 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3479
3480 case $depmode in
3481 nosideeffect)
3482 # after this tag, mechanisms are not by side-effect, so they'll
3483 # only be used when explicitly requested
3484 if test "x$enable_dependency_tracking" = xyes; then
3485 continue
3486 else
3487 break
3488 fi
3489 ;;
3490 none) break ;;
3491 esac
3492 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3493 # mode. It turns out that the SunPro C++ compiler does not properly
3494 # handle `-M -o', and we need to detect this.
3495 if depmode=$depmode \
3496 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3497 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3498 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3499 >/dev/null 2>conftest.err &&
64ff59ba 3500 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3501 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3502 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3503 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3504 # icc doesn't choke on unknown options, it will just issue warnings
3505 # or remarks (even with -Werror). So we grep stderr for any message
3506 # that says an option was ignored or not supported.
3507 # When given -MP, icc 7.0 and 7.1 complain thusly:
3508 # icc: Command line warning: ignoring option '-M'; no argument required
3509 # The diagnosis changed in icc 8.0:
3510 # icc: Command line remark: option '-MP' not supported
3511 if (grep 'ignoring option' conftest.err ||
3512 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3513 am_cv_CC_dependencies_compiler_type=$depmode
3514 break
3515 fi
3516 fi
3517 done
3518
3519 cd ..
3520 rm -rf conftest.dir
3521else
3522 am_cv_CC_dependencies_compiler_type=none
3523fi
3524
3525fi
64ff59ba 3526{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3527echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 3528CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3529
64ff59ba 3530 if
d9898ee8 3531 test "x$enable_dependency_tracking" != xno \
3532 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3533 am__fastdepCC_TRUE=
3534 am__fastdepCC_FALSE='#'
3535else
3536 am__fastdepCC_TRUE='#'
3537 am__fastdepCC_FALSE=
3538fi
3539
3540
3541
64ff59ba 3542{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3543echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
d9898ee8 3544if test "${ac_cv_c_const+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3546else
3547 cat >conftest.$ac_ext <<_ACEOF
3548/* confdefs.h. */
3549_ACEOF
3550cat confdefs.h >>conftest.$ac_ext
3551cat >>conftest.$ac_ext <<_ACEOF
3552/* end confdefs.h. */
3553
3554int
3555main ()
3556{
3557/* FIXME: Include the comments suggested by Paul. */
3558#ifndef __cplusplus
3559 /* Ultrix mips cc rejects this. */
3560 typedef int charset[2];
64ff59ba 3561 const charset cs;
d9898ee8 3562 /* SunOS 4.1.1 cc rejects this. */
64ff59ba 3563 char const *const *pcpcc;
3564 char **ppc;
d9898ee8 3565 /* NEC SVR4.0.2 mips cc rejects this. */
3566 struct point {int x, y;};
3567 static struct point const zero = {0,0};
3568 /* AIX XL C 1.02.0.0 rejects this.
3569 It does not let you subtract one const X* pointer from another in
3570 an arm of an if-expression whose if-part is not a constant
3571 expression */
3572 const char *g = "string";
64ff59ba 3573 pcpcc = &g + (g ? g-g : 0);
d9898ee8 3574 /* HPUX 7.0 cc rejects these. */
64ff59ba 3575 ++pcpcc;
3576 ppc = (char**) pcpcc;
3577 pcpcc = (char const *const *) ppc;
d9898ee8 3578 { /* SCO 3.2v4 cc rejects this. */
3579 char *t;
3580 char const *s = 0 ? (char *) 0 : (char const *) 0;
3581
3582 *t++ = 0;
64ff59ba 3583 if (s) return 0;
d9898ee8 3584 }
3585 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3586 int x[] = {25, 17};
3587 const int *foo = &x[0];
3588 ++foo;
3589 }
3590 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3591 typedef const int *iptr;
3592 iptr p = 0;
3593 ++p;
3594 }
3595 { /* AIX XL C 1.02.0.0 rejects this saying
3596 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3597 struct s { int j; const int *ap[3]; };
3598 struct s *b; b->j = 5;
3599 }
3600 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3601 const int foo = 10;
64ff59ba 3602 if (!foo) return 0;
d9898ee8 3603 }
64ff59ba 3604 return !cs[0] && !zero.x;
d9898ee8 3605#endif
3606
3607 ;
3608 return 0;
3609}
3610_ACEOF
3611rm -f conftest.$ac_objext
64ff59ba 3612if { (ac_try="$ac_compile"
3613case "(($ac_try" in
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3616esac
3617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3618 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3619 ac_status=$?
3620 grep -v '^ *+' conftest.er1 >conftest.err
3621 rm -f conftest.er1
3622 cat conftest.err >&5
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3624 (exit $ac_status); } && {
3625 test -z "$ac_c_werror_flag" ||
3626 test ! -s conftest.err
3627 } && test -s conftest.$ac_objext; then
d9898ee8 3628 ac_cv_c_const=yes
3629else
3630 echo "$as_me: failed program was:" >&5
3631sed 's/^/| /' conftest.$ac_ext >&5
3632
64ff59ba 3633 ac_cv_c_const=no
d9898ee8 3634fi
64ff59ba 3635
3636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3637fi
64ff59ba 3638{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3639echo "${ECHO_T}$ac_cv_c_const" >&6; }
d9898ee8 3640if test $ac_cv_c_const = no; then
3641
3642cat >>confdefs.h <<\_ACEOF
3643#define const
3644_ACEOF
3645
3646fi
3647
64ff59ba 3648{ echo "$as_me:$LINENO: checking for inline" >&5
3649echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
d9898ee8 3650if test "${ac_cv_c_inline+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3652else
3653 ac_cv_c_inline=no
3654for ac_kw in inline __inline__ __inline; do
3655 cat >conftest.$ac_ext <<_ACEOF
3656/* confdefs.h. */
3657_ACEOF
3658cat confdefs.h >>conftest.$ac_ext
3659cat >>conftest.$ac_ext <<_ACEOF
3660/* end confdefs.h. */
3661#ifndef __cplusplus
3662typedef int foo_t;
3663static $ac_kw foo_t static_foo () {return 0; }
3664$ac_kw foo_t foo () {return 0; }
3665#endif
3666
3667_ACEOF
3668rm -f conftest.$ac_objext
64ff59ba 3669if { (ac_try="$ac_compile"
3670case "(($ac_try" in
3671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672 *) ac_try_echo=$ac_try;;
3673esac
3674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3676 ac_status=$?
3677 grep -v '^ *+' conftest.er1 >conftest.err
3678 rm -f conftest.er1
3679 cat conftest.err >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3681 (exit $ac_status); } && {
3682 test -z "$ac_c_werror_flag" ||
3683 test ! -s conftest.err
3684 } && test -s conftest.$ac_objext; then
3685 ac_cv_c_inline=$ac_kw
d9898ee8 3686else
3687 echo "$as_me: failed program was:" >&5
3688sed 's/^/| /' conftest.$ac_ext >&5
3689
64ff59ba 3690
d9898ee8 3691fi
64ff59ba 3692
3693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3694 test "$ac_cv_c_inline" != no && break
d9898ee8 3695done
3696
3697fi
64ff59ba 3698{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3699echo "${ECHO_T}$ac_cv_c_inline" >&6; }
d9898ee8 3700
3701
3702case $ac_cv_c_inline in
3703 inline | yes) ;;
3704 *)
3705 case $ac_cv_c_inline in
3706 no) ac_val=;;
3707 *) ac_val=$ac_cv_c_inline;;
3708 esac
3709 cat >>confdefs.h <<_ACEOF
3710#ifndef __cplusplus
3711#define inline $ac_val
3712#endif
3713_ACEOF
3714 ;;
3715esac
3716
3717
3718
3719## ----------------------- ##
3720## Libtool initialisation. ##
3721## ----------------------- ##
3722
3723
64ff59ba 3724# Check whether --enable-shared was given.
d9898ee8 3725if test "${enable_shared+set}" = set; then
64ff59ba 3726 enableval=$enable_shared; p=${PACKAGE-default}
d9898ee8 3727 case $enableval in
3728 yes) enable_shared=yes ;;
3729 no) enable_shared=no ;;
3730 *)
3731 enable_shared=no
3732 # Look at the argument we got. We use all the common list separators.
3733 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3734 for pkg in $enableval; do
3735 IFS="$lt_save_ifs"
3736 if test "X$pkg" = "X$p"; then
3737 enable_shared=yes
3738 fi
3739 done
3740 IFS="$lt_save_ifs"
3741 ;;
3742 esac
3743else
3744 enable_shared=yes
64ff59ba 3745fi
3746
d9898ee8 3747
64ff59ba 3748# Check whether --enable-static was given.
d9898ee8 3749if test "${enable_static+set}" = set; then
64ff59ba 3750 enableval=$enable_static; p=${PACKAGE-default}
d9898ee8 3751 case $enableval in
3752 yes) enable_static=yes ;;
3753 no) enable_static=no ;;
3754 *)
3755 enable_static=no
3756 # Look at the argument we got. We use all the common list separators.
3757 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3758 for pkg in $enableval; do
3759 IFS="$lt_save_ifs"
3760 if test "X$pkg" = "X$p"; then
3761 enable_static=yes
3762 fi
3763 done
3764 IFS="$lt_save_ifs"
3765 ;;
3766 esac
3767else
3768 enable_static=yes
64ff59ba 3769fi
3770
d9898ee8 3771
64ff59ba 3772# Check whether --enable-fast-install was given.
d9898ee8 3773if test "${enable_fast_install+set}" = set; then
64ff59ba 3774 enableval=$enable_fast_install; p=${PACKAGE-default}
d9898ee8 3775 case $enableval in
3776 yes) enable_fast_install=yes ;;
3777 no) enable_fast_install=no ;;
3778 *)
3779 enable_fast_install=no
3780 # Look at the argument we got. We use all the common list separators.
3781 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3782 for pkg in $enableval; do
3783 IFS="$lt_save_ifs"
3784 if test "X$pkg" = "X$p"; then
3785 enable_fast_install=yes
3786 fi
3787 done
3788 IFS="$lt_save_ifs"
3789 ;;
3790 esac
3791else
3792 enable_fast_install=yes
64ff59ba 3793fi
3794
d9898ee8 3795
3796# Make sure we can run config.sub.
64ff59ba 3797$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3798 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3799echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
d9898ee8 3800 { (exit 1); exit 1; }; }
3801
64ff59ba 3802{ echo "$as_me:$LINENO: checking build system type" >&5
3803echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
d9898ee8 3804if test "${ac_cv_build+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3806else
64ff59ba 3807 ac_build_alias=$build_alias
3808test "x$ac_build_alias" = x &&
3809 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3810test "x$ac_build_alias" = x &&
d9898ee8 3811 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3812echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3813 { (exit 1); exit 1; }; }
64ff59ba 3814ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3815 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3816echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
d9898ee8 3817 { (exit 1); exit 1; }; }
3818
3819fi
64ff59ba 3820{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3821echo "${ECHO_T}$ac_cv_build" >&6; }
3822case $ac_cv_build in
3823*-*-*) ;;
3824*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3825echo "$as_me: error: invalid value of canonical build" >&2;}
3826 { (exit 1); exit 1; }; };;
3827esac
d9898ee8 3828build=$ac_cv_build
64ff59ba 3829ac_save_IFS=$IFS; IFS='-'
3830set x $ac_cv_build
3831shift
3832build_cpu=$1
3833build_vendor=$2
3834shift; shift
3835# Remember, the first character of IFS is used to create $*,
3836# except with old shells:
3837build_os=$*
3838IFS=$ac_save_IFS
3839case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3840
3841
3842{ echo "$as_me:$LINENO: checking host system type" >&5
3843echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
d9898ee8 3844if test "${ac_cv_host+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3846else
64ff59ba 3847 if test "x$host_alias" = x; then
3848 ac_cv_host=$ac_cv_build
3849else
3850 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3851 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3852echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
d9898ee8 3853 { (exit 1); exit 1; }; }
64ff59ba 3854fi
d9898ee8 3855
3856fi
64ff59ba 3857{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3858echo "${ECHO_T}$ac_cv_host" >&6; }
3859case $ac_cv_host in
3860*-*-*) ;;
3861*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3862echo "$as_me: error: invalid value of canonical host" >&2;}
3863 { (exit 1); exit 1; }; };;
3864esac
d9898ee8 3865host=$ac_cv_host
64ff59ba 3866ac_save_IFS=$IFS; IFS='-'
3867set x $ac_cv_host
3868shift
3869host_cpu=$1
3870host_vendor=$2
3871shift; shift
3872# Remember, the first character of IFS is used to create $*,
3873# except with old shells:
3874host_os=$*
3875IFS=$ac_save_IFS
3876case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3877
3878
3879{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3880echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
d9898ee8 3881if test "${lt_cv_path_SED+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3883else
3884 # Loop through the user's path and test for sed and gsed.
3885# Then use that list of sed's as ones to test for truncation.
3886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887for as_dir in $PATH
3888do
3889 IFS=$as_save_IFS
3890 test -z "$as_dir" && as_dir=.
3891 for lt_ac_prog in sed gsed; do
3892 for ac_exec_ext in '' $ac_executable_extensions; do
0fde1ce3 3893 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
d9898ee8 3894 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3895 fi
3896 done
3897 done
3898done
3899IFS=$as_save_IFS
3900lt_ac_max=0
3901lt_ac_count=0
3902# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3903# along with /bin/sed that truncates output.
3904for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3905 test ! -f $lt_ac_sed && continue
3906 cat /dev/null > conftest.in
3907 lt_ac_count=0
3908 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3909 # Check for GNU sed and select it if it is found.
3910 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3911 lt_cv_path_SED=$lt_ac_sed
3912 break
3913 fi
3914 while true; do
3915 cat conftest.in conftest.in >conftest.tmp
3916 mv conftest.tmp conftest.in
3917 cp conftest.in conftest.nl
3918 echo >>conftest.nl
3919 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3920 cmp -s conftest.out conftest.nl || break
3921 # 10000 chars as input seems more than enough
3922 test $lt_ac_count -gt 10 && break
3923 lt_ac_count=`expr $lt_ac_count + 1`
3924 if test $lt_ac_count -gt $lt_ac_max; then
3925 lt_ac_max=$lt_ac_count
3926 lt_cv_path_SED=$lt_ac_sed
3927 fi
3928 done
3929done
3930
3931fi
3932
3933SED=$lt_cv_path_SED
3934
64ff59ba 3935{ echo "$as_me:$LINENO: result: $SED" >&5
3936echo "${ECHO_T}$SED" >&6; }
3937
3938{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3939echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3940if test "${ac_cv_path_GREP+set}" = set; then
3941 echo $ECHO_N "(cached) $ECHO_C" >&6
3942else
3943 # Extract the first word of "grep ggrep" to use in msg output
3944if test -z "$GREP"; then
3945set dummy grep ggrep; ac_prog_name=$2
3946if test "${ac_cv_path_GREP+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3948else
3949 ac_path_GREP_found=false
3950# Loop through the user's path and test for each of PROGNAME-LIST
3951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3953do
3954 IFS=$as_save_IFS
3955 test -z "$as_dir" && as_dir=.
3956 for ac_prog in grep ggrep; do
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3959 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3960 # Check for GNU ac_path_GREP and select it if it is found.
3961 # Check for GNU $ac_path_GREP
3962case `"$ac_path_GREP" --version 2>&1` in
3963*GNU*)
3964 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3965*)
3966 ac_count=0
3967 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3968 while :
3969 do
3970 cat "conftest.in" "conftest.in" >"conftest.tmp"
3971 mv "conftest.tmp" "conftest.in"
3972 cp "conftest.in" "conftest.nl"
3973 echo 'GREP' >> "conftest.nl"
3974 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3975 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3976 ac_count=`expr $ac_count + 1`
3977 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3978 # Best one so far, save it but keep looking for a better one
3979 ac_cv_path_GREP="$ac_path_GREP"
3980 ac_path_GREP_max=$ac_count
3981 fi
3982 # 10*(2^10) chars as input seems more than enough
3983 test $ac_count -gt 10 && break
3984 done
3985 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3986esac
3987
3988
3989 $ac_path_GREP_found && break 3
3990 done
3991done
3992
3993done
3994IFS=$as_save_IFS
3995
3996
3997fi
3998
3999GREP="$ac_cv_path_GREP"
4000if test -z "$GREP"; then
4001 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4002echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4003 { (exit 1); exit 1; }; }
4004fi
4005
4006else
4007 ac_cv_path_GREP=$GREP
4008fi
4009
4010
4011fi
4012{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4013echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4014 GREP="$ac_cv_path_GREP"
4015
d9898ee8 4016
64ff59ba 4017{ echo "$as_me:$LINENO: checking for egrep" >&5
4018echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4019if test "${ac_cv_path_EGREP+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4021else
4022 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4023 then ac_cv_path_EGREP="$GREP -E"
4024 else
4025 # Extract the first word of "egrep" to use in msg output
4026if test -z "$EGREP"; then
4027set dummy egrep; ac_prog_name=$2
4028if test "${ac_cv_path_EGREP+set}" = set; then
d9898ee8 4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4030else
64ff59ba 4031 ac_path_EGREP_found=false
4032# Loop through the user's path and test for each of PROGNAME-LIST
4033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4035do
4036 IFS=$as_save_IFS
4037 test -z "$as_dir" && as_dir=.
4038 for ac_prog in egrep; do
4039 for ac_exec_ext in '' $ac_executable_extensions; do
4040 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4041 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4042 # Check for GNU ac_path_EGREP and select it if it is found.
4043 # Check for GNU $ac_path_EGREP
4044case `"$ac_path_EGREP" --version 2>&1` in
4045*GNU*)
4046 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4047*)
4048 ac_count=0
4049 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4050 while :
4051 do
4052 cat "conftest.in" "conftest.in" >"conftest.tmp"
4053 mv "conftest.tmp" "conftest.in"
4054 cp "conftest.in" "conftest.nl"
4055 echo 'EGREP' >> "conftest.nl"
4056 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4057 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4058 ac_count=`expr $ac_count + 1`
4059 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4060 # Best one so far, save it but keep looking for a better one
4061 ac_cv_path_EGREP="$ac_path_EGREP"
4062 ac_path_EGREP_max=$ac_count
d9898ee8 4063 fi
64ff59ba 4064 # 10*(2^10) chars as input seems more than enough
4065 test $ac_count -gt 10 && break
4066 done
4067 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4068esac
4069
4070
4071 $ac_path_EGREP_found && break 3
4072 done
4073done
4074
4075done
4076IFS=$as_save_IFS
4077
4078
4079fi
4080
4081EGREP="$ac_cv_path_EGREP"
4082if test -z "$EGREP"; then
4083 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4084echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4085 { (exit 1); exit 1; }; }
4086fi
4087
4088else
4089 ac_cv_path_EGREP=$EGREP
d9898ee8 4090fi
64ff59ba 4091
4092
4093 fi
4094fi
4095{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4096echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4097 EGREP="$ac_cv_path_EGREP"
d9898ee8 4098
4099
4100
64ff59ba 4101# Check whether --with-gnu-ld was given.
d9898ee8 4102if test "${with_gnu_ld+set}" = set; then
64ff59ba 4103 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 4104else
4105 with_gnu_ld=no
64ff59ba 4106fi
4107
d9898ee8 4108ac_prog=ld
4109if test "$GCC" = yes; then
4110 # Check if gcc -print-prog-name=ld gives a path.
64ff59ba 4111 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4112echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d9898ee8 4113 case $host in
4114 *-*-mingw*)
4115 # gcc leaves a trailing carriage return which upsets mingw
4116 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4117 *)
4118 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4119 esac
4120 case $ac_prog in
4121 # Accept absolute paths.
4122 [\\/]* | ?:[\\/]*)
4123 re_direlt='/[^/][^/]*/\.\./'
4124 # Canonicalize the pathname of ld
4125 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4126 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4127 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4128 done
4129 test -z "$LD" && LD="$ac_prog"
4130 ;;
4131 "")
4132 # If it fails, then pretend we aren't using GCC.
4133 ac_prog=ld
4134 ;;
4135 *)
4136 # If it is relative, then search for the first ld in PATH.
4137 with_gnu_ld=unknown
4138 ;;
4139 esac
4140elif test "$with_gnu_ld" = yes; then
64ff59ba 4141 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4142echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d9898ee8 4143else
64ff59ba 4144 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4145echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d9898ee8 4146fi
4147if test "${lt_cv_path_LD+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4149else
4150 if test -z "$LD"; then
4151 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4152 for ac_dir in $PATH; do
4153 IFS="$lt_save_ifs"
4154 test -z "$ac_dir" && ac_dir=.
4155 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4156 lt_cv_path_LD="$ac_dir/$ac_prog"
4157 # Check to see if the program is GNU ld. I'd rather use --version,
4158 # but apparently some variants of GNU ld only accept -v.
4159 # Break only if it was the GNU/non-GNU ld that we prefer.
4160 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4161 *GNU* | *'with BFD'*)
4162 test "$with_gnu_ld" != no && break
4163 ;;
4164 *)
4165 test "$with_gnu_ld" != yes && break
4166 ;;
4167 esac
4168 fi
4169 done
4170 IFS="$lt_save_ifs"
4171else
4172 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4173fi
4174fi
4175
4176LD="$lt_cv_path_LD"
4177if test -n "$LD"; then
64ff59ba 4178 { echo "$as_me:$LINENO: result: $LD" >&5
4179echo "${ECHO_T}$LD" >&6; }
d9898ee8 4180else
64ff59ba 4181 { echo "$as_me:$LINENO: result: no" >&5
4182echo "${ECHO_T}no" >&6; }
d9898ee8 4183fi
4184test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4185echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4186 { (exit 1); exit 1; }; }
64ff59ba 4187{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4188echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d9898ee8 4189if test "${lt_cv_prog_gnu_ld+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4191else
4192 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4193case `$LD -v 2>&1 </dev/null` in
4194*GNU* | *'with BFD'*)
4195 lt_cv_prog_gnu_ld=yes
4196 ;;
4197*)
4198 lt_cv_prog_gnu_ld=no
4199 ;;
4200esac
4201fi
64ff59ba 4202{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4203echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 4204with_gnu_ld=$lt_cv_prog_gnu_ld
4205
4206
64ff59ba 4207{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4208echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
d9898ee8 4209if test "${lt_cv_ld_reload_flag+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4211else
4212 lt_cv_ld_reload_flag='-r'
4213fi
64ff59ba 4214{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4215echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
d9898ee8 4216reload_flag=$lt_cv_ld_reload_flag
4217case $reload_flag in
4218"" | " "*) ;;
4219*) reload_flag=" $reload_flag" ;;
4220esac
4221reload_cmds='$LD$reload_flag -o $output$reload_objs'
4222case $host_os in
4223 darwin*)
4224 if test "$GCC" = yes; then
4225 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4226 else
4227 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4228 fi
4229 ;;
4230esac
4231
64ff59ba 4232{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4233echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
d9898ee8 4234if test "${lt_cv_path_NM+set}" = set; then
4235 echo $ECHO_N "(cached) $ECHO_C" >&6
4236else
4237 if test -n "$NM"; then
4238 # Let the user override the test.
4239 lt_cv_path_NM="$NM"
4240else
4241 lt_nm_to_check="${ac_tool_prefix}nm"
4242 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4243 lt_nm_to_check="$lt_nm_to_check nm"
4244 fi
4245 for lt_tmp_nm in $lt_nm_to_check; do
4246 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4247 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4248 IFS="$lt_save_ifs"
4249 test -z "$ac_dir" && ac_dir=.
4250 tmp_nm="$ac_dir/$lt_tmp_nm"
4251 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4252 # Check to see if the nm accepts a BSD-compat flag.
4253 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4254 # nm: unknown option "B" ignored
4255 # Tru64's nm complains that /dev/null is an invalid object file
4256 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4257 */dev/null* | *'Invalid file or object type'*)
4258 lt_cv_path_NM="$tmp_nm -B"
4259 break
4260 ;;
4261 *)
4262 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4263 */dev/null*)
4264 lt_cv_path_NM="$tmp_nm -p"
4265 break
4266 ;;
4267 *)
4268 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4269 continue # so that we can try to find one that supports BSD flags
4270 ;;
4271 esac
4272 ;;
4273 esac
4274 fi
4275 done
4276 IFS="$lt_save_ifs"
4277 done
4278 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4279fi
4280fi
64ff59ba 4281{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4282echo "${ECHO_T}$lt_cv_path_NM" >&6; }
d9898ee8 4283NM="$lt_cv_path_NM"
4284
64ff59ba 4285{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4286echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
d9898ee8 4287LN_S=$as_ln_s
4288if test "$LN_S" = "ln -s"; then
64ff59ba 4289 { echo "$as_me:$LINENO: result: yes" >&5
4290echo "${ECHO_T}yes" >&6; }
d9898ee8 4291else
64ff59ba 4292 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4293echo "${ECHO_T}no, using $LN_S" >&6; }
d9898ee8 4294fi
4295
0fde1ce3 4296{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4297echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
d9898ee8 4298if test "${lt_cv_deplibs_check_method+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4300else
4301 lt_cv_file_magic_cmd='$MAGIC_CMD'
4302lt_cv_file_magic_test_file=
4303lt_cv_deplibs_check_method='unknown'
4304# Need to set the preceding variable on all platforms that support
4305# interlibrary dependencies.
4306# 'none' -- dependencies not supported.
4307# `unknown' -- same as none, but documents that we really don't know.
4308# 'pass_all' -- all dependencies passed with no checks.
4309# 'test_compile' -- check by making test program.
4310# 'file_magic [[regex]]' -- check by looking for files in library path
4311# which responds to the $file_magic_cmd with a given extended regex.
4312# If you have `file' or equivalent on your system and you're not sure
4313# whether `pass_all' will *always* work, you probably want this one.
4314
4315case $host_os in
4316aix4* | aix5*)
4317 lt_cv_deplibs_check_method=pass_all
4318 ;;
4319
4320beos*)
4321 lt_cv_deplibs_check_method=pass_all
4322 ;;
4323
4324bsdi[45]*)
4325 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4326 lt_cv_file_magic_cmd='/usr/bin/file -L'
4327 lt_cv_file_magic_test_file=/shlib/libc.so
4328 ;;
4329
4330cygwin*)
4331 # func_win32_libid is a shell function defined in ltmain.sh
4332 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4333 lt_cv_file_magic_cmd='func_win32_libid'
4334 ;;
4335
4336mingw* | pw32*)
4337 # Base MSYS/MinGW do not provide the 'file' command needed by
0fde1ce3 4338 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4339 # unless we find 'file', for example because we are cross-compiling.
4340 if ( file / ) >/dev/null 2>&1; then
4341 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4342 lt_cv_file_magic_cmd='func_win32_libid'
4343 else
4344 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4345 lt_cv_file_magic_cmd='$OBJDUMP -f'
4346 fi
d9898ee8 4347 ;;
4348
4349darwin* | rhapsody*)
4350 lt_cv_deplibs_check_method=pass_all
4351 ;;
4352
0fde1ce3 4353freebsd* | dragonfly*)
d9898ee8 4354 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4355 case $host_cpu in
4356 i*86 )
4357 # Not sure whether the presence of OpenBSD here was a mistake.
4358 # Let's accept both of them until this is cleared up.
4359 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4360 lt_cv_file_magic_cmd=/usr/bin/file
4361 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4362 ;;
4363 esac
4364 else
4365 lt_cv_deplibs_check_method=pass_all
4366 fi
4367 ;;
4368
4369gnu*)
4370 lt_cv_deplibs_check_method=pass_all
4371 ;;
4372
4373hpux10.20* | hpux11*)
4374 lt_cv_file_magic_cmd=/usr/bin/file
4375 case $host_cpu in
4376 ia64*)
4377 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4378 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4379 ;;
4380 hppa*64*)
4381 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]'
4382 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4383 ;;
4384 *)
4385 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4386 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4387 ;;
4388 esac
4389 ;;
4390
0fde1ce3 4391interix[3-9]*)
d9898ee8 4392 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4393 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4394 ;;
4395
4396irix5* | irix6* | nonstopux*)
4397 case $LD in
4398 *-32|*"-32 ") libmagic=32-bit;;
4399 *-n32|*"-n32 ") libmagic=N32;;
4400 *-64|*"-64 ") libmagic=64-bit;;
4401 *) libmagic=never-match;;
4402 esac
4403 lt_cv_deplibs_check_method=pass_all
4404 ;;
4405
4406# This must be Linux ELF.
0fde1ce3 4407linux* | k*bsd*-gnu)
d9898ee8 4408 lt_cv_deplibs_check_method=pass_all
4409 ;;
4410
4411netbsd*)
4412 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4413 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4414 else
4415 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4416 fi
4417 ;;
4418
4419newos6*)
4420 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4421 lt_cv_file_magic_cmd=/usr/bin/file
4422 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4423 ;;
4424
4425nto-qnx*)
4426 lt_cv_deplibs_check_method=unknown
4427 ;;
4428
4429openbsd*)
4430 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4431 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4432 else
4433 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4434 fi
4435 ;;
4436
4437osf3* | osf4* | osf5*)
4438 lt_cv_deplibs_check_method=pass_all
4439 ;;
4440
0fde1ce3 4441rdos*)
4442 lt_cv_deplibs_check_method=pass_all
4443 ;;
4444
d9898ee8 4445solaris*)
4446 lt_cv_deplibs_check_method=pass_all
4447 ;;
4448
4449sysv4 | sysv4.3*)
4450 case $host_vendor in
4451 motorola)
4452 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]'
4453 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4454 ;;
4455 ncr)
4456 lt_cv_deplibs_check_method=pass_all
4457 ;;
4458 sequent)
4459 lt_cv_file_magic_cmd='/bin/file'
4460 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4461 ;;
4462 sni)
4463 lt_cv_file_magic_cmd='/bin/file'
4464 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4465 lt_cv_file_magic_test_file=/lib/libc.so
4466 ;;
4467 siemens)
4468 lt_cv_deplibs_check_method=pass_all
4469 ;;
4470 pc)
4471 lt_cv_deplibs_check_method=pass_all
4472 ;;
4473 esac
4474 ;;
4475
4476sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4477 lt_cv_deplibs_check_method=pass_all
4478 ;;
4479esac
4480
4481fi
64ff59ba 4482{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4483echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
d9898ee8 4484file_magic_cmd=$lt_cv_file_magic_cmd
4485deplibs_check_method=$lt_cv_deplibs_check_method
4486test -z "$deplibs_check_method" && deplibs_check_method=unknown
4487
4488
4489
4490
4491# If no C compiler was specified, use CC.
4492LTCC=${LTCC-"$CC"}
4493
4494# If no C compiler flags were specified, use CFLAGS.
4495LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4496
4497# Allow CC to be a program name with arguments.
4498compiler=$CC
4499
64ff59ba 4500# Check whether --enable-libtool-lock was given.
d9898ee8 4501if test "${enable_libtool_lock+set}" = set; then
64ff59ba 4502 enableval=$enable_libtool_lock;
4503fi
d9898ee8 4504
d9898ee8 4505test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4506
4507# Some flags need to be propagated to the compiler or linker for good
4508# libtool support.
4509case $host in
4510ia64-*-hpux*)
4511 # Find out which ABI we are using.
4512 echo 'int i;' > conftest.$ac_ext
4513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4514 (eval $ac_compile) 2>&5
4515 ac_status=$?
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); }; then
4518 case `/usr/bin/file conftest.$ac_objext` in
4519 *ELF-32*)
4520 HPUX_IA64_MODE="32"
4521 ;;
4522 *ELF-64*)
4523 HPUX_IA64_MODE="64"
4524 ;;
4525 esac
4526 fi
4527 rm -rf conftest*
4528 ;;
4529*-*-irix6*)
4530 # Find out which ABI we are using.
0fde1ce3 4531 echo '#line 4531 "configure"' > conftest.$ac_ext
d9898ee8 4532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4533 (eval $ac_compile) 2>&5
4534 ac_status=$?
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); }; then
4537 if test "$lt_cv_prog_gnu_ld" = yes; then
4538 case `/usr/bin/file conftest.$ac_objext` in
4539 *32-bit*)
4540 LD="${LD-ld} -melf32bsmip"
4541 ;;
4542 *N32*)
4543 LD="${LD-ld} -melf32bmipn32"
4544 ;;
4545 *64-bit*)
4546 LD="${LD-ld} -melf64bmip"
4547 ;;
4548 esac
4549 else
4550 case `/usr/bin/file conftest.$ac_objext` in
4551 *32-bit*)
4552 LD="${LD-ld} -32"
4553 ;;
4554 *N32*)
4555 LD="${LD-ld} -n32"
4556 ;;
4557 *64-bit*)
4558 LD="${LD-ld} -64"
4559 ;;
4560 esac
4561 fi
4562 fi
4563 rm -rf conftest*
4564 ;;
4565
0fde1ce3 4566x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4567s390*-*linux*|sparc*-*linux*)
d9898ee8 4568 # Find out which ABI we are using.
4569 echo 'int i;' > conftest.$ac_ext
4570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4571 (eval $ac_compile) 2>&5
4572 ac_status=$?
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }; then
4575 case `/usr/bin/file conftest.o` in
4576 *32-bit*)
4577 case $host in
0fde1ce3 4578 x86_64-*kfreebsd*-gnu)
4579 LD="${LD-ld} -m elf_i386_fbsd"
4580 ;;
d9898ee8 4581 x86_64-*linux*)
4582 LD="${LD-ld} -m elf_i386"
4583 ;;
4584 ppc64-*linux*|powerpc64-*linux*)
4585 LD="${LD-ld} -m elf32ppclinux"
4586 ;;
4587 s390x-*linux*)
4588 LD="${LD-ld} -m elf_s390"
4589 ;;
4590 sparc64-*linux*)
4591 LD="${LD-ld} -m elf32_sparc"
4592 ;;
4593 esac
4594 ;;
4595 *64-bit*)
0fde1ce3 4596 libsuff=64
d9898ee8 4597 case $host in
0fde1ce3 4598 x86_64-*kfreebsd*-gnu)
4599 LD="${LD-ld} -m elf_x86_64_fbsd"
4600 ;;
d9898ee8 4601 x86_64-*linux*)
4602 LD="${LD-ld} -m elf_x86_64"
4603 ;;
4604 ppc*-*linux*|powerpc*-*linux*)
4605 LD="${LD-ld} -m elf64ppc"
4606 ;;
4607 s390*-*linux*)
4608 LD="${LD-ld} -m elf64_s390"
4609 ;;
4610 sparc*-*linux*)
4611 LD="${LD-ld} -m elf64_sparc"
4612 ;;
4613 esac
4614 ;;
4615 esac
4616 fi
4617 rm -rf conftest*
4618 ;;
4619
4620*-*-sco3.2v5*)
4621 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4622 SAVE_CFLAGS="$CFLAGS"
4623 CFLAGS="$CFLAGS -belf"
64ff59ba 4624 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4625echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
d9898ee8 4626if test "${lt_cv_cc_needs_belf+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4628else
4629 ac_ext=c
4630ac_cpp='$CPP $CPPFLAGS'
4631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4633ac_compiler_gnu=$ac_cv_c_compiler_gnu
4634
4635 cat >conftest.$ac_ext <<_ACEOF
4636/* confdefs.h. */
4637_ACEOF
4638cat confdefs.h >>conftest.$ac_ext
4639cat >>conftest.$ac_ext <<_ACEOF
4640/* end confdefs.h. */
4641
4642int
4643main ()
4644{
4645
4646 ;
4647 return 0;
4648}
4649_ACEOF
4650rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 4651if { (ac_try="$ac_link"
4652case "(($ac_try" in
4653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4654 *) ac_try_echo=$ac_try;;
4655esac
4656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4657 (eval "$ac_link") 2>conftest.er1
d9898ee8 4658 ac_status=$?
4659 grep -v '^ *+' conftest.er1 >conftest.err
4660 rm -f conftest.er1
4661 cat conftest.err >&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4663 (exit $ac_status); } && {
4664 test -z "$ac_c_werror_flag" ||
4665 test ! -s conftest.err
4666 } && test -s conftest$ac_exeext &&
4667 $as_test_x conftest$ac_exeext; then
d9898ee8 4668 lt_cv_cc_needs_belf=yes
4669else
4670 echo "$as_me: failed program was:" >&5
4671sed 's/^/| /' conftest.$ac_ext >&5
4672
64ff59ba 4673 lt_cv_cc_needs_belf=no
d9898ee8 4674fi
64ff59ba 4675
4676rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 4677 conftest$ac_exeext conftest.$ac_ext
4678 ac_ext=c
4679ac_cpp='$CPP $CPPFLAGS'
4680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4682ac_compiler_gnu=$ac_cv_c_compiler_gnu
4683
4684fi
64ff59ba 4685{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4686echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
d9898ee8 4687 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4688 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4689 CFLAGS="$SAVE_CFLAGS"
4690 fi
4691 ;;
4692sparc*-*solaris*)
4693 # Find out which ABI we are using.
4694 echo 'int i;' > conftest.$ac_ext
4695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4696 (eval $ac_compile) 2>&5
4697 ac_status=$?
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); }; then
4700 case `/usr/bin/file conftest.o` in
4701 *64-bit*)
4702 case $lt_cv_prog_gnu_ld in
4703 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4704 *) LD="${LD-ld} -64" ;;
4705 esac
4706 ;;
4707 esac
4708 fi
4709 rm -rf conftest*
4710 ;;
4711
4712*-*-cygwin* | *-*-mingw* | *-*-pw32*)
4713 if test -n "$ac_tool_prefix"; then
4714 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4715set dummy ${ac_tool_prefix}dlltool; ac_word=$2
64ff59ba 4716{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 4718if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4719 echo $ECHO_N "(cached) $ECHO_C" >&6
4720else
4721 if test -n "$DLLTOOL"; then
4722 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4723else
4724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725for as_dir in $PATH
4726do
4727 IFS=$as_save_IFS
4728 test -z "$as_dir" && as_dir=.
4729 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 4730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 4731 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4733 break 2
4734 fi
4735done
4736done
64ff59ba 4737IFS=$as_save_IFS
d9898ee8 4738
4739fi
4740fi
4741DLLTOOL=$ac_cv_prog_DLLTOOL
4742if test -n "$DLLTOOL"; then
64ff59ba 4743 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4744echo "${ECHO_T}$DLLTOOL" >&6; }
d9898ee8 4745else
64ff59ba 4746 { echo "$as_me:$LINENO: result: no" >&5
4747echo "${ECHO_T}no" >&6; }
d9898ee8 4748fi
4749
64ff59ba 4750
d9898ee8 4751fi
4752if test -z "$ac_cv_prog_DLLTOOL"; then
4753 ac_ct_DLLTOOL=$DLLTOOL
4754 # Extract the first word of "dlltool", so it can be a program name with args.
4755set dummy dlltool; ac_word=$2
64ff59ba 4756{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 4758if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4760else
4761 if test -n "$ac_ct_DLLTOOL"; then
4762 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4763else
4764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765for as_dir in $PATH
4766do
4767 IFS=$as_save_IFS
4768 test -z "$as_dir" && as_dir=.
4769 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 4770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 4771 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4773 break 2
4774 fi
4775done
4776done
64ff59ba 4777IFS=$as_save_IFS
d9898ee8 4778
d9898ee8 4779fi
4780fi
4781ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4782if test -n "$ac_ct_DLLTOOL"; then
64ff59ba 4783 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4784echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
d9898ee8 4785else
64ff59ba 4786 { echo "$as_me:$LINENO: result: no" >&5
4787echo "${ECHO_T}no" >&6; }
d9898ee8 4788fi
4789
64ff59ba 4790 if test "x$ac_ct_DLLTOOL" = x; then
4791 DLLTOOL="false"
4792 else
4793 case $cross_compiling:$ac_tool_warned in
4794yes:)
4795{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4796whose name does not start with the host triplet. If you think this
4797configuration is useful to you, please write to autoconf@gnu.org." >&5
4798echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4799whose name does not start with the host triplet. If you think this
4800configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4801ac_tool_warned=yes ;;
4802esac
4803 DLLTOOL=$ac_ct_DLLTOOL
4804 fi
d9898ee8 4805else
4806 DLLTOOL="$ac_cv_prog_DLLTOOL"
4807fi
4808
4809 if test -n "$ac_tool_prefix"; then
4810 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4811set dummy ${ac_tool_prefix}as; ac_word=$2
64ff59ba 4812{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 4814if test "${ac_cv_prog_AS+set}" = set; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4816else
4817 if test -n "$AS"; then
4818 ac_cv_prog_AS="$AS" # Let the user override the test.
4819else
4820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821for as_dir in $PATH
4822do
4823 IFS=$as_save_IFS
4824 test -z "$as_dir" && as_dir=.
4825 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 4826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 4827 ac_cv_prog_AS="${ac_tool_prefix}as"
4828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4829 break 2
4830 fi
4831done
4832done
64ff59ba 4833IFS=$as_save_IFS
d9898ee8 4834
4835fi
4836fi
4837AS=$ac_cv_prog_AS
4838if test -n "$AS"; then
64ff59ba 4839 { echo "$as_me:$LINENO: result: $AS" >&5
4840echo "${ECHO_T}$AS" >&6; }
d9898ee8 4841else
64ff59ba 4842 { echo "$as_me:$LINENO: result: no" >&5
4843echo "${ECHO_T}no" >&6; }
d9898ee8 4844fi
4845
64ff59ba 4846
d9898ee8 4847fi
4848if test -z "$ac_cv_prog_AS"; then
4849 ac_ct_AS=$AS
4850 # Extract the first word of "as", so it can be a program name with args.
4851set dummy as; ac_word=$2
64ff59ba 4852{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 4854if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
4856else
4857 if test -n "$ac_ct_AS"; then
4858 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4859else
4860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861for as_dir in $PATH
4862do
4863 IFS=$as_save_IFS
4864 test -z "$as_dir" && as_dir=.
4865 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 4866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 4867 ac_cv_prog_ac_ct_AS="as"
4868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4869 break 2
4870 fi
4871done
4872done
64ff59ba 4873IFS=$as_save_IFS
d9898ee8 4874
d9898ee8 4875fi
4876fi
4877ac_ct_AS=$ac_cv_prog_ac_ct_AS
4878if test -n "$ac_ct_AS"; then
64ff59ba 4879 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4880echo "${ECHO_T}$ac_ct_AS" >&6; }
d9898ee8 4881else
64ff59ba 4882 { echo "$as_me:$LINENO: result: no" >&5
4883echo "${ECHO_T}no" >&6; }
d9898ee8 4884fi
4885
64ff59ba 4886 if test "x$ac_ct_AS" = x; then
4887 AS="false"
4888 else
4889 case $cross_compiling:$ac_tool_warned in
4890yes:)
4891{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4892whose name does not start with the host triplet. If you think this
4893configuration is useful to you, please write to autoconf@gnu.org." >&5
4894echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4895whose name does not start with the host triplet. If you think this
4896configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4897ac_tool_warned=yes ;;
4898esac
4899 AS=$ac_ct_AS
4900 fi
d9898ee8 4901else
4902 AS="$ac_cv_prog_AS"
4903fi
4904
4905 if test -n "$ac_tool_prefix"; then
4906 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4907set dummy ${ac_tool_prefix}objdump; ac_word=$2
64ff59ba 4908{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 4910if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
4912else
4913 if test -n "$OBJDUMP"; then
4914 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4915else
4916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917for as_dir in $PATH
4918do
4919 IFS=$as_save_IFS
4920 test -z "$as_dir" && as_dir=.
4921 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 4922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 4923 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4925 break 2
4926 fi
4927done
4928done
64ff59ba 4929IFS=$as_save_IFS
d9898ee8 4930
4931fi
4932fi
4933OBJDUMP=$ac_cv_prog_OBJDUMP
4934if test -n "$OBJDUMP"; then
64ff59ba 4935 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4936echo "${ECHO_T}$OBJDUMP" >&6; }
d9898ee8 4937else
64ff59ba 4938 { echo "$as_me:$LINENO: result: no" >&5
4939echo "${ECHO_T}no" >&6; }
d9898ee8 4940fi
4941
64ff59ba 4942
d9898ee8 4943fi
4944if test -z "$ac_cv_prog_OBJDUMP"; then
4945 ac_ct_OBJDUMP=$OBJDUMP
4946 # Extract the first word of "objdump", so it can be a program name with args.
4947set dummy objdump; ac_word=$2
64ff59ba 4948{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 4950if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4951 echo $ECHO_N "(cached) $ECHO_C" >&6
4952else
4953 if test -n "$ac_ct_OBJDUMP"; then
4954 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4955else
4956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957for as_dir in $PATH
4958do
4959 IFS=$as_save_IFS
4960 test -z "$as_dir" && as_dir=.
4961 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 4962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 4963 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4965 break 2
4966 fi
4967done
4968done
64ff59ba 4969IFS=$as_save_IFS
d9898ee8 4970
d9898ee8 4971fi
4972fi
4973ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4974if test -n "$ac_ct_OBJDUMP"; then
64ff59ba 4975 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4976echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
d9898ee8 4977else
64ff59ba 4978 { echo "$as_me:$LINENO: result: no" >&5
4979echo "${ECHO_T}no" >&6; }
d9898ee8 4980fi
4981
64ff59ba 4982 if test "x$ac_ct_OBJDUMP" = x; then
4983 OBJDUMP="false"
4984 else
4985 case $cross_compiling:$ac_tool_warned in
4986yes:)
4987{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4988whose name does not start with the host triplet. If you think this
4989configuration is useful to you, please write to autoconf@gnu.org." >&5
4990echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4991whose name does not start with the host triplet. If you think this
4992configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4993ac_tool_warned=yes ;;
4994esac
4995 OBJDUMP=$ac_ct_OBJDUMP
4996 fi
d9898ee8 4997else
4998 OBJDUMP="$ac_cv_prog_OBJDUMP"
4999fi
5000
5001 ;;
5002
5003esac
5004
5005need_locks="$enable_libtool_lock"
5006
5007
5008ac_ext=c
5009ac_cpp='$CPP $CPPFLAGS'
5010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5012ac_compiler_gnu=$ac_cv_c_compiler_gnu
64ff59ba 5013{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5014echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
d9898ee8 5015# On Suns, sometimes $CPP names a directory.
5016if test -n "$CPP" && test -d "$CPP"; then
5017 CPP=
5018fi
5019if test -z "$CPP"; then
5020 if test "${ac_cv_prog_CPP+set}" = set; then
5021 echo $ECHO_N "(cached) $ECHO_C" >&6
5022else
5023 # Double quotes because CPP needs to be expanded
5024 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5025 do
5026 ac_preproc_ok=false
5027for ac_c_preproc_warn_flag in '' yes
5028do
5029 # Use a header file that comes with gcc, so configuring glibc
5030 # with a fresh cross-compiler works.
5031 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5032 # <limits.h> exists even on freestanding compilers.
5033 # On the NeXT, cc -E runs the code through the compiler's parser,
5034 # not just through cpp. "Syntax error" is here to catch this case.
5035 cat >conftest.$ac_ext <<_ACEOF
5036/* confdefs.h. */
5037_ACEOF
5038cat confdefs.h >>conftest.$ac_ext
5039cat >>conftest.$ac_ext <<_ACEOF
5040/* end confdefs.h. */
5041#ifdef __STDC__
5042# include <limits.h>
5043#else
5044# include <assert.h>
5045#endif
5046 Syntax error
5047_ACEOF
64ff59ba 5048if { (ac_try="$ac_cpp conftest.$ac_ext"
5049case "(($ac_try" in
5050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5051 *) ac_try_echo=$ac_try;;
5052esac
5053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5055 ac_status=$?
5056 grep -v '^ *+' conftest.er1 >conftest.err
5057 rm -f conftest.er1
5058 cat conftest.err >&5
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5060 (exit $ac_status); } >/dev/null && {
5061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5062 test ! -s conftest.err
5063 }; then
d9898ee8 5064 :
5065else
5066 echo "$as_me: failed program was:" >&5
5067sed 's/^/| /' conftest.$ac_ext >&5
5068
5069 # Broken: fails on valid input.
5070continue
5071fi
64ff59ba 5072
d9898ee8 5073rm -f conftest.err conftest.$ac_ext
5074
64ff59ba 5075 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 5076 # can be detected and how.
5077 cat >conftest.$ac_ext <<_ACEOF
5078/* confdefs.h. */
5079_ACEOF
5080cat confdefs.h >>conftest.$ac_ext
5081cat >>conftest.$ac_ext <<_ACEOF
5082/* end confdefs.h. */
5083#include <ac_nonexistent.h>
5084_ACEOF
64ff59ba 5085if { (ac_try="$ac_cpp conftest.$ac_ext"
5086case "(($ac_try" in
5087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088 *) ac_try_echo=$ac_try;;
5089esac
5090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5092 ac_status=$?
5093 grep -v '^ *+' conftest.er1 >conftest.err
5094 rm -f conftest.er1
5095 cat conftest.err >&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5097 (exit $ac_status); } >/dev/null && {
5098 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5099 test ! -s conftest.err
5100 }; then
d9898ee8 5101 # Broken: success on invalid input.
5102continue
5103else
5104 echo "$as_me: failed program was:" >&5
5105sed 's/^/| /' conftest.$ac_ext >&5
5106
5107 # Passes both tests.
5108ac_preproc_ok=:
5109break
5110fi
64ff59ba 5111
d9898ee8 5112rm -f conftest.err conftest.$ac_ext
5113
5114done
5115# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5116rm -f conftest.err conftest.$ac_ext
5117if $ac_preproc_ok; then
5118 break
5119fi
5120
5121 done
5122 ac_cv_prog_CPP=$CPP
5123
5124fi
5125 CPP=$ac_cv_prog_CPP
5126else
5127 ac_cv_prog_CPP=$CPP
5128fi
64ff59ba 5129{ echo "$as_me:$LINENO: result: $CPP" >&5
5130echo "${ECHO_T}$CPP" >&6; }
d9898ee8 5131ac_preproc_ok=false
5132for ac_c_preproc_warn_flag in '' yes
5133do
5134 # Use a header file that comes with gcc, so configuring glibc
5135 # with a fresh cross-compiler works.
5136 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5137 # <limits.h> exists even on freestanding compilers.
5138 # On the NeXT, cc -E runs the code through the compiler's parser,
5139 # not just through cpp. "Syntax error" is here to catch this case.
5140 cat >conftest.$ac_ext <<_ACEOF
5141/* confdefs.h. */
5142_ACEOF
5143cat confdefs.h >>conftest.$ac_ext
5144cat >>conftest.$ac_ext <<_ACEOF
5145/* end confdefs.h. */
5146#ifdef __STDC__
5147# include <limits.h>
5148#else
5149# include <assert.h>
5150#endif
5151 Syntax error
5152_ACEOF
64ff59ba 5153if { (ac_try="$ac_cpp conftest.$ac_ext"
5154case "(($ac_try" in
5155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5156 *) ac_try_echo=$ac_try;;
5157esac
5158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5159 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5160 ac_status=$?
5161 grep -v '^ *+' conftest.er1 >conftest.err
5162 rm -f conftest.er1
5163 cat conftest.err >&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5165 (exit $ac_status); } >/dev/null && {
5166 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5167 test ! -s conftest.err
5168 }; then
d9898ee8 5169 :
5170else
5171 echo "$as_me: failed program was:" >&5
5172sed 's/^/| /' conftest.$ac_ext >&5
5173
5174 # Broken: fails on valid input.
5175continue
5176fi
64ff59ba 5177
d9898ee8 5178rm -f conftest.err conftest.$ac_ext
5179
64ff59ba 5180 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 5181 # can be detected and how.
5182 cat >conftest.$ac_ext <<_ACEOF
5183/* confdefs.h. */
5184_ACEOF
5185cat confdefs.h >>conftest.$ac_ext
5186cat >>conftest.$ac_ext <<_ACEOF
5187/* end confdefs.h. */
5188#include <ac_nonexistent.h>
5189_ACEOF
64ff59ba 5190if { (ac_try="$ac_cpp conftest.$ac_ext"
5191case "(($ac_try" in
5192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5193 *) ac_try_echo=$ac_try;;
5194esac
5195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5197 ac_status=$?
5198 grep -v '^ *+' conftest.er1 >conftest.err
5199 rm -f conftest.er1
5200 cat conftest.err >&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5202 (exit $ac_status); } >/dev/null && {
5203 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5204 test ! -s conftest.err
5205 }; then
d9898ee8 5206 # Broken: success on invalid input.
5207continue
5208else
5209 echo "$as_me: failed program was:" >&5
5210sed 's/^/| /' conftest.$ac_ext >&5
5211
5212 # Passes both tests.
5213ac_preproc_ok=:
5214break
5215fi
64ff59ba 5216
d9898ee8 5217rm -f conftest.err conftest.$ac_ext
5218
5219done
5220# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5221rm -f conftest.err conftest.$ac_ext
5222if $ac_preproc_ok; then
5223 :
5224else
5225 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5226See \`config.log' for more details." >&5
5227echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5228See \`config.log' for more details." >&2;}
5229 { (exit 1); exit 1; }; }
5230fi
5231
5232ac_ext=c
5233ac_cpp='$CPP $CPPFLAGS'
5234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5236ac_compiler_gnu=$ac_cv_c_compiler_gnu
5237
5238
64ff59ba 5239{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5240echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
d9898ee8 5241if test "${ac_cv_header_stdc+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5243else
5244 cat >conftest.$ac_ext <<_ACEOF
5245/* confdefs.h. */
5246_ACEOF
5247cat confdefs.h >>conftest.$ac_ext
5248cat >>conftest.$ac_ext <<_ACEOF
5249/* end confdefs.h. */
5250#include <stdlib.h>
5251#include <stdarg.h>
5252#include <string.h>
5253#include <float.h>
5254
5255int
5256main ()
5257{
5258
5259 ;
5260 return 0;
5261}
5262_ACEOF
5263rm -f conftest.$ac_objext
64ff59ba 5264if { (ac_try="$ac_compile"
5265case "(($ac_try" in
5266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5267 *) ac_try_echo=$ac_try;;
5268esac
5269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5270 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5271 ac_status=$?
5272 grep -v '^ *+' conftest.er1 >conftest.err
5273 rm -f conftest.er1
5274 cat conftest.err >&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5276 (exit $ac_status); } && {
5277 test -z "$ac_c_werror_flag" ||
5278 test ! -s conftest.err
5279 } && test -s conftest.$ac_objext; then
d9898ee8 5280 ac_cv_header_stdc=yes
5281else
5282 echo "$as_me: failed program was:" >&5
5283sed 's/^/| /' conftest.$ac_ext >&5
5284
64ff59ba 5285 ac_cv_header_stdc=no
d9898ee8 5286fi
64ff59ba 5287
5288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5289
5290if test $ac_cv_header_stdc = yes; then
5291 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5292 cat >conftest.$ac_ext <<_ACEOF
5293/* confdefs.h. */
5294_ACEOF
5295cat confdefs.h >>conftest.$ac_ext
5296cat >>conftest.$ac_ext <<_ACEOF
5297/* end confdefs.h. */
5298#include <string.h>
5299
5300_ACEOF
5301if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5302 $EGREP "memchr" >/dev/null 2>&1; then
5303 :
5304else
5305 ac_cv_header_stdc=no
5306fi
5307rm -f conftest*
5308
5309fi
5310
5311if test $ac_cv_header_stdc = yes; then
5312 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5313 cat >conftest.$ac_ext <<_ACEOF
5314/* confdefs.h. */
5315_ACEOF
5316cat confdefs.h >>conftest.$ac_ext
5317cat >>conftest.$ac_ext <<_ACEOF
5318/* end confdefs.h. */
5319#include <stdlib.h>
5320
5321_ACEOF
5322if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5323 $EGREP "free" >/dev/null 2>&1; then
5324 :
5325else
5326 ac_cv_header_stdc=no
5327fi
5328rm -f conftest*
5329
5330fi
5331
5332if test $ac_cv_header_stdc = yes; then
5333 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5334 if test "$cross_compiling" = yes; then
5335 :
5336else
5337 cat >conftest.$ac_ext <<_ACEOF
5338/* confdefs.h. */
5339_ACEOF
5340cat confdefs.h >>conftest.$ac_ext
5341cat >>conftest.$ac_ext <<_ACEOF
5342/* end confdefs.h. */
5343#include <ctype.h>
64ff59ba 5344#include <stdlib.h>
d9898ee8 5345#if ((' ' & 0x0FF) == 0x020)
5346# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5347# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5348#else
5349# define ISLOWER(c) \
5350 (('a' <= (c) && (c) <= 'i') \
5351 || ('j' <= (c) && (c) <= 'r') \
5352 || ('s' <= (c) && (c) <= 'z'))
5353# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5354#endif
5355
5356#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5357int
5358main ()
5359{
5360 int i;
5361 for (i = 0; i < 256; i++)
5362 if (XOR (islower (i), ISLOWER (i))
5363 || toupper (i) != TOUPPER (i))
64ff59ba 5364 return 2;
5365 return 0;
d9898ee8 5366}
5367_ACEOF
5368rm -f conftest$ac_exeext
64ff59ba 5369if { (ac_try="$ac_link"
5370case "(($ac_try" in
5371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5372 *) ac_try_echo=$ac_try;;
5373esac
5374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5375 (eval "$ac_link") 2>&5
d9898ee8 5376 ac_status=$?
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
64ff59ba 5379 { (case "(($ac_try" in
5380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5381 *) ac_try_echo=$ac_try;;
5382esac
5383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5384 (eval "$ac_try") 2>&5
d9898ee8 5385 ac_status=$?
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); }; }; then
5388 :
5389else
5390 echo "$as_me: program exited with status $ac_status" >&5
5391echo "$as_me: failed program was:" >&5
5392sed 's/^/| /' conftest.$ac_ext >&5
5393
5394( exit $ac_status )
5395ac_cv_header_stdc=no
5396fi
64ff59ba 5397rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 5398fi
64ff59ba 5399
5400
d9898ee8 5401fi
5402fi
64ff59ba 5403{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5404echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
d9898ee8 5405if test $ac_cv_header_stdc = yes; then
5406
5407cat >>confdefs.h <<\_ACEOF
5408#define STDC_HEADERS 1
5409_ACEOF
5410
5411fi
5412
5413# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5424 inttypes.h stdint.h unistd.h
5425do
5426as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 5427{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5428echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5429if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5431else
5432 cat >conftest.$ac_ext <<_ACEOF
5433/* confdefs.h. */
5434_ACEOF
5435cat confdefs.h >>conftest.$ac_ext
5436cat >>conftest.$ac_ext <<_ACEOF
5437/* end confdefs.h. */
5438$ac_includes_default
5439
5440#include <$ac_header>
5441_ACEOF
5442rm -f conftest.$ac_objext
64ff59ba 5443if { (ac_try="$ac_compile"
5444case "(($ac_try" in
5445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446 *) ac_try_echo=$ac_try;;
5447esac
5448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5449 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5450 ac_status=$?
5451 grep -v '^ *+' conftest.er1 >conftest.err
5452 rm -f conftest.er1
5453 cat conftest.err >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5455 (exit $ac_status); } && {
5456 test -z "$ac_c_werror_flag" ||
5457 test ! -s conftest.err
5458 } && test -s conftest.$ac_objext; then
d9898ee8 5459 eval "$as_ac_Header=yes"
5460else
5461 echo "$as_me: failed program was:" >&5
5462sed 's/^/| /' conftest.$ac_ext >&5
5463
64ff59ba 5464 eval "$as_ac_Header=no"
d9898ee8 5465fi
64ff59ba 5466
5467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5468fi
64ff59ba 5469ac_res=`eval echo '${'$as_ac_Header'}'`
5470 { echo "$as_me:$LINENO: result: $ac_res" >&5
5471echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5472if test `eval echo '${'$as_ac_Header'}'` = yes; then
5473 cat >>confdefs.h <<_ACEOF
5474#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5475_ACEOF
5476
5477fi
5478
5479done
5480
5481
5482
5483for ac_header in dlfcn.h
5484do
5485as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 5486if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5487 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5488echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5489if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5490 echo $ECHO_N "(cached) $ECHO_C" >&6
5491fi
64ff59ba 5492ac_res=`eval echo '${'$as_ac_Header'}'`
5493 { echo "$as_me:$LINENO: result: $ac_res" >&5
5494echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5495else
5496 # Is the header compilable?
64ff59ba 5497{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5498echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 5499cat >conftest.$ac_ext <<_ACEOF
5500/* confdefs.h. */
5501_ACEOF
5502cat confdefs.h >>conftest.$ac_ext
5503cat >>conftest.$ac_ext <<_ACEOF
5504/* end confdefs.h. */
5505$ac_includes_default
5506#include <$ac_header>
5507_ACEOF
5508rm -f conftest.$ac_objext
64ff59ba 5509if { (ac_try="$ac_compile"
5510case "(($ac_try" in
5511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5512 *) ac_try_echo=$ac_try;;
5513esac
5514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5515 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5516 ac_status=$?
5517 grep -v '^ *+' conftest.er1 >conftest.err
5518 rm -f conftest.er1
5519 cat conftest.err >&5
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5521 (exit $ac_status); } && {
5522 test -z "$ac_c_werror_flag" ||
5523 test ! -s conftest.err
5524 } && test -s conftest.$ac_objext; then
d9898ee8 5525 ac_header_compiler=yes
5526else
5527 echo "$as_me: failed program was:" >&5
5528sed 's/^/| /' conftest.$ac_ext >&5
5529
64ff59ba 5530 ac_header_compiler=no
d9898ee8 5531fi
64ff59ba 5532
5533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5534{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5535echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 5536
5537# Is the header present?
64ff59ba 5538{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5539echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 5540cat >conftest.$ac_ext <<_ACEOF
5541/* confdefs.h. */
5542_ACEOF
5543cat confdefs.h >>conftest.$ac_ext
5544cat >>conftest.$ac_ext <<_ACEOF
5545/* end confdefs.h. */
5546#include <$ac_header>
5547_ACEOF
64ff59ba 5548if { (ac_try="$ac_cpp conftest.$ac_ext"
5549case "(($ac_try" in
5550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551 *) ac_try_echo=$ac_try;;
5552esac
5553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5555 ac_status=$?
5556 grep -v '^ *+' conftest.er1 >conftest.err
5557 rm -f conftest.er1
5558 cat conftest.err >&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5560 (exit $ac_status); } >/dev/null && {
5561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5562 test ! -s conftest.err
5563 }; then
d9898ee8 5564 ac_header_preproc=yes
5565else
5566 echo "$as_me: failed program was:" >&5
5567sed 's/^/| /' conftest.$ac_ext >&5
5568
5569 ac_header_preproc=no
5570fi
64ff59ba 5571
d9898ee8 5572rm -f conftest.err conftest.$ac_ext
64ff59ba 5573{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5574echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 5575
5576# So? What about this header?
5577case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5578 yes:no: )
5579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5580echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5582echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5583 ac_header_preproc=yes
5584 ;;
5585 no:yes:* )
5586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5587echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5589echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5590 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5591echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5592 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5593echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5595echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5596 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5597echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64ff59ba 5598 ( cat <<\_ASBOX
d9898ee8 5599## ---------------------------------- ##
5600## Report this to bug-libtool@gnu.org ##
5601## ---------------------------------- ##
5602_ASBOX
64ff59ba 5603 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 5604 ;;
5605esac
64ff59ba 5606{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5607echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5608if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5609 echo $ECHO_N "(cached) $ECHO_C" >&6
5610else
5611 eval "$as_ac_Header=\$ac_header_preproc"
5612fi
64ff59ba 5613ac_res=`eval echo '${'$as_ac_Header'}'`
5614 { echo "$as_me:$LINENO: result: $ac_res" >&5
5615echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5616
5617fi
5618if test `eval echo '${'$as_ac_Header'}'` = yes; then
5619 cat >>confdefs.h <<_ACEOF
5620#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5621_ACEOF
5622
5623fi
5624
5625done
5626
64ff59ba 5627ac_ext=cpp
d9898ee8 5628ac_cpp='$CXXCPP $CPPFLAGS'
5629ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5630ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5631ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
64ff59ba 5632if test -z "$CXX"; then
5633 if test -n "$CCC"; then
5634 CXX=$CCC
5635 else
5636 if test -n "$ac_tool_prefix"; then
5637 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d9898ee8 5638 do
5639 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5640set dummy $ac_tool_prefix$ac_prog; ac_word=$2
64ff59ba 5641{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5643if test "${ac_cv_prog_CXX+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5645else
5646 if test -n "$CXX"; then
5647 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5648else
5649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650for as_dir in $PATH
5651do
5652 IFS=$as_save_IFS
5653 test -z "$as_dir" && as_dir=.
5654 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 5655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5656 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5658 break 2
5659 fi
5660done
5661done
64ff59ba 5662IFS=$as_save_IFS
d9898ee8 5663
5664fi
5665fi
5666CXX=$ac_cv_prog_CXX
5667if test -n "$CXX"; then
64ff59ba 5668 { echo "$as_me:$LINENO: result: $CXX" >&5
5669echo "${ECHO_T}$CXX" >&6; }
d9898ee8 5670else
64ff59ba 5671 { echo "$as_me:$LINENO: result: no" >&5
5672echo "${ECHO_T}no" >&6; }
d9898ee8 5673fi
5674
64ff59ba 5675
d9898ee8 5676 test -n "$CXX" && break
5677 done
5678fi
5679if test -z "$CXX"; then
5680 ac_ct_CXX=$CXX
64ff59ba 5681 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d9898ee8 5682do
5683 # Extract the first word of "$ac_prog", so it can be a program name with args.
5684set dummy $ac_prog; ac_word=$2
64ff59ba 5685{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5687if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5688 echo $ECHO_N "(cached) $ECHO_C" >&6
5689else
5690 if test -n "$ac_ct_CXX"; then
5691 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5692else
5693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694for as_dir in $PATH
5695do
5696 IFS=$as_save_IFS
5697 test -z "$as_dir" && as_dir=.
5698 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 5699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5700 ac_cv_prog_ac_ct_CXX="$ac_prog"
5701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5702 break 2
5703 fi
5704done
5705done
64ff59ba 5706IFS=$as_save_IFS
d9898ee8 5707
5708fi
5709fi
5710ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5711if test -n "$ac_ct_CXX"; then
64ff59ba 5712 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5713echo "${ECHO_T}$ac_ct_CXX" >&6; }
d9898ee8 5714else
64ff59ba 5715 { echo "$as_me:$LINENO: result: no" >&5
5716echo "${ECHO_T}no" >&6; }
d9898ee8 5717fi
5718
64ff59ba 5719
d9898ee8 5720 test -n "$ac_ct_CXX" && break
5721done
d9898ee8 5722
64ff59ba 5723 if test "x$ac_ct_CXX" = x; then
5724 CXX="g++"
5725 else
5726 case $cross_compiling:$ac_tool_warned in
5727yes:)
5728{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5729whose name does not start with the host triplet. If you think this
5730configuration is useful to you, please write to autoconf@gnu.org." >&5
5731echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5732whose name does not start with the host triplet. If you think this
5733configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5734ac_tool_warned=yes ;;
5735esac
5736 CXX=$ac_ct_CXX
5737 fi
d9898ee8 5738fi
5739
64ff59ba 5740 fi
5741fi
d9898ee8 5742# Provide some information about the compiler.
64ff59ba 5743echo "$as_me:$LINENO: checking for C++ compiler version" >&5
d9898ee8 5744ac_compiler=`set X $ac_compile; echo $2`
64ff59ba 5745{ (ac_try="$ac_compiler --version >&5"
5746case "(($ac_try" in
5747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5748 *) ac_try_echo=$ac_try;;
5749esac
5750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5751 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 5752 ac_status=$?
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); }
64ff59ba 5755{ (ac_try="$ac_compiler -v >&5"
5756case "(($ac_try" in
5757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5758 *) ac_try_echo=$ac_try;;
5759esac
5760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5761 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 5762 ac_status=$?
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); }
64ff59ba 5765{ (ac_try="$ac_compiler -V >&5"
5766case "(($ac_try" in
5767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5768 *) ac_try_echo=$ac_try;;
5769esac
5770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5771 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 5772 ac_status=$?
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }
5775
64ff59ba 5776{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5777echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
d9898ee8 5778if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5779 echo $ECHO_N "(cached) $ECHO_C" >&6
5780else
5781 cat >conftest.$ac_ext <<_ACEOF
5782/* confdefs.h. */
5783_ACEOF
5784cat confdefs.h >>conftest.$ac_ext
5785cat >>conftest.$ac_ext <<_ACEOF
5786/* end confdefs.h. */
5787
5788int
5789main ()
5790{
5791#ifndef __GNUC__
5792 choke me
5793#endif
5794
5795 ;
5796 return 0;
5797}
5798_ACEOF
5799rm -f conftest.$ac_objext
64ff59ba 5800if { (ac_try="$ac_compile"
5801case "(($ac_try" in
5802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5803 *) ac_try_echo=$ac_try;;
5804esac
5805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5806 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5807 ac_status=$?
5808 grep -v '^ *+' conftest.er1 >conftest.err
5809 rm -f conftest.er1
5810 cat conftest.err >&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5812 (exit $ac_status); } && {
5813 test -z "$ac_cxx_werror_flag" ||
5814 test ! -s conftest.err
5815 } && test -s conftest.$ac_objext; then
d9898ee8 5816 ac_compiler_gnu=yes
5817else
5818 echo "$as_me: failed program was:" >&5
5819sed 's/^/| /' conftest.$ac_ext >&5
5820
64ff59ba 5821 ac_compiler_gnu=no
d9898ee8 5822fi
64ff59ba 5823
5824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5825ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5826
5827fi
64ff59ba 5828{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5829echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
d9898ee8 5830GXX=`test $ac_compiler_gnu = yes && echo yes`
5831ac_test_CXXFLAGS=${CXXFLAGS+set}
5832ac_save_CXXFLAGS=$CXXFLAGS
64ff59ba 5833{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5834echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
d9898ee8 5835if test "${ac_cv_prog_cxx_g+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5837else
64ff59ba 5838 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5839 ac_cxx_werror_flag=yes
5840 ac_cv_prog_cxx_g=no
5841 CXXFLAGS="-g"
5842 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5843/* confdefs.h. */
5844_ACEOF
5845cat confdefs.h >>conftest.$ac_ext
5846cat >>conftest.$ac_ext <<_ACEOF
5847/* end confdefs.h. */
5848
5849int
5850main ()
5851{
5852
5853 ;
5854 return 0;
5855}
5856_ACEOF
5857rm -f conftest.$ac_objext
64ff59ba 5858if { (ac_try="$ac_compile"
5859case "(($ac_try" in
5860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5861 *) ac_try_echo=$ac_try;;
5862esac
5863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5864 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5865 ac_status=$?
5866 grep -v '^ *+' conftest.er1 >conftest.err
5867 rm -f conftest.er1
5868 cat conftest.err >&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5870 (exit $ac_status); } && {
5871 test -z "$ac_cxx_werror_flag" ||
5872 test ! -s conftest.err
5873 } && test -s conftest.$ac_objext; then
d9898ee8 5874 ac_cv_prog_cxx_g=yes
5875else
5876 echo "$as_me: failed program was:" >&5
5877sed 's/^/| /' conftest.$ac_ext >&5
5878
64ff59ba 5879 CXXFLAGS=""
5880 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5881/* confdefs.h. */
5882_ACEOF
5883cat confdefs.h >>conftest.$ac_ext
5884cat >>conftest.$ac_ext <<_ACEOF
5885/* end confdefs.h. */
64ff59ba 5886
d9898ee8 5887int
5888main ()
5889{
64ff59ba 5890
d9898ee8 5891 ;
5892 return 0;
5893}
5894_ACEOF
5895rm -f conftest.$ac_objext
64ff59ba 5896if { (ac_try="$ac_compile"
5897case "(($ac_try" in
5898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5899 *) ac_try_echo=$ac_try;;
5900esac
5901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5902 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5903 ac_status=$?
5904 grep -v '^ *+' conftest.er1 >conftest.err
5905 rm -f conftest.er1
5906 cat conftest.err >&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5908 (exit $ac_status); } && {
5909 test -z "$ac_cxx_werror_flag" ||
5910 test ! -s conftest.err
5911 } && test -s conftest.$ac_objext; then
d9898ee8 5912 :
5913else
5914 echo "$as_me: failed program was:" >&5
5915sed 's/^/| /' conftest.$ac_ext >&5
5916
64ff59ba 5917 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5918 CXXFLAGS="-g"
5919 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5920/* confdefs.h. */
5921_ACEOF
5922cat confdefs.h >>conftest.$ac_ext
5923cat >>conftest.$ac_ext <<_ACEOF
5924/* end confdefs.h. */
64ff59ba 5925
d9898ee8 5926int
5927main ()
5928{
64ff59ba 5929
d9898ee8 5930 ;
5931 return 0;
5932}
5933_ACEOF
5934rm -f conftest.$ac_objext
64ff59ba 5935if { (ac_try="$ac_compile"
5936case "(($ac_try" in
5937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938 *) ac_try_echo=$ac_try;;
5939esac
5940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5941 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5942 ac_status=$?
5943 grep -v '^ *+' conftest.er1 >conftest.err
5944 rm -f conftest.er1
5945 cat conftest.err >&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5947 (exit $ac_status); } && {
5948 test -z "$ac_cxx_werror_flag" ||
5949 test ! -s conftest.err
5950 } && test -s conftest.$ac_objext; then
5951 ac_cv_prog_cxx_g=yes
d9898ee8 5952else
5953 echo "$as_me: failed program was:" >&5
5954sed 's/^/| /' conftest.$ac_ext >&5
5955
64ff59ba 5956
d9898ee8 5957fi
64ff59ba 5958
5959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5960fi
5961
5962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5963fi
5964
64ff59ba 5965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5966 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5967fi
5968{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5969echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5970if test "$ac_test_CXXFLAGS" = set; then
5971 CXXFLAGS=$ac_save_CXXFLAGS
5972elif test $ac_cv_prog_cxx_g = yes; then
5973 if test "$GXX" = yes; then
5974 CXXFLAGS="-g -O2"
5975 else
5976 CXXFLAGS="-g"
5977 fi
5978else
5979 if test "$GXX" = yes; then
5980 CXXFLAGS="-O2"
5981 else
5982 CXXFLAGS=
5983 fi
5984fi
5985ac_ext=cpp
d9898ee8 5986ac_cpp='$CXXCPP $CPPFLAGS'
5987ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5988ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5989ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5990
5991depcc="$CXX" am_compiler_list=
5992
64ff59ba 5993{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5994echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
d9898ee8 5995if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5996 echo $ECHO_N "(cached) $ECHO_C" >&6
5997else
5998 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5999 # We make a subdir and do the tests there. Otherwise we can end up
6000 # making bogus files that we don't know about and never remove. For
6001 # instance it was reported that on HP-UX the gcc test will end up
6002 # making a dummy file named `D' -- because `-MD' means `put the output
6003 # in D'.
6004 mkdir conftest.dir
6005 # Copy depcomp to subdir because otherwise we won't find it if we're
6006 # using a relative directory.
6007 cp "$am_depcomp" conftest.dir
6008 cd conftest.dir
6009 # We will build objects and dependencies in a subdirectory because
6010 # it helps to detect inapplicable dependency modes. For instance
6011 # both Tru64's cc and ICC support -MD to output dependencies as a
6012 # side effect of compilation, but ICC will put the dependencies in
6013 # the current directory while Tru64 will put them in the object
6014 # directory.
6015 mkdir sub
6016
6017 am_cv_CXX_dependencies_compiler_type=none
6018 if test "$am_compiler_list" = ""; then
6019 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6020 fi
6021 for depmode in $am_compiler_list; do
6022 # Setup a source with many dependencies, because some compilers
6023 # like to wrap large dependency lists on column 80 (with \), and
6024 # we should not choose a depcomp mode which is confused by this.
6025 #
6026 # We need to recreate these files for each test, as the compiler may
6027 # overwrite some of them when testing with obscure command lines.
6028 # This happens at least with the AIX C compiler.
6029 : > sub/conftest.c
6030 for i in 1 2 3 4 5 6; do
6031 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6032 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6033 # Solaris 8's {/usr,}/bin/sh.
6034 touch sub/conftst$i.h
6035 done
6036 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6037
6038 case $depmode in
6039 nosideeffect)
6040 # after this tag, mechanisms are not by side-effect, so they'll
6041 # only be used when explicitly requested
6042 if test "x$enable_dependency_tracking" = xyes; then
6043 continue
6044 else
6045 break
6046 fi
6047 ;;
6048 none) break ;;
6049 esac
6050 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6051 # mode. It turns out that the SunPro C++ compiler does not properly
6052 # handle `-M -o', and we need to detect this.
6053 if depmode=$depmode \
6054 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6055 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6056 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6057 >/dev/null 2>conftest.err &&
64ff59ba 6058 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 6059 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6060 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6061 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6062 # icc doesn't choke on unknown options, it will just issue warnings
6063 # or remarks (even with -Werror). So we grep stderr for any message
6064 # that says an option was ignored or not supported.
6065 # When given -MP, icc 7.0 and 7.1 complain thusly:
6066 # icc: Command line warning: ignoring option '-M'; no argument required
6067 # The diagnosis changed in icc 8.0:
6068 # icc: Command line remark: option '-MP' not supported
6069 if (grep 'ignoring option' conftest.err ||
6070 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6071 am_cv_CXX_dependencies_compiler_type=$depmode
6072 break
6073 fi
6074 fi
6075 done
6076
6077 cd ..
6078 rm -rf conftest.dir
6079else
6080 am_cv_CXX_dependencies_compiler_type=none
6081fi
6082
6083fi
64ff59ba 6084{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6085echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
d9898ee8 6086CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6087
64ff59ba 6088 if
d9898ee8 6089 test "x$enable_dependency_tracking" != xno \
6090 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6091 am__fastdepCXX_TRUE=
6092 am__fastdepCXX_FALSE='#'
6093else
6094 am__fastdepCXX_TRUE='#'
6095 am__fastdepCXX_FALSE=
6096fi
6097
6098
6099
6100
6101if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6102 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6103 (test "X$CXX" != "Xg++"))) ; then
64ff59ba 6104 ac_ext=cpp
d9898ee8 6105ac_cpp='$CXXCPP $CPPFLAGS'
6106ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6107ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6108ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
64ff59ba 6109{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6110echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
d9898ee8 6111if test -z "$CXXCPP"; then
6112 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
6114else
6115 # Double quotes because CXXCPP needs to be expanded
6116 for CXXCPP in "$CXX -E" "/lib/cpp"
6117 do
6118 ac_preproc_ok=false
6119for ac_cxx_preproc_warn_flag in '' yes
6120do
6121 # Use a header file that comes with gcc, so configuring glibc
6122 # with a fresh cross-compiler works.
6123 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6124 # <limits.h> exists even on freestanding compilers.
6125 # On the NeXT, cc -E runs the code through the compiler's parser,
6126 # not just through cpp. "Syntax error" is here to catch this case.
6127 cat >conftest.$ac_ext <<_ACEOF
6128/* confdefs.h. */
6129_ACEOF
6130cat confdefs.h >>conftest.$ac_ext
6131cat >>conftest.$ac_ext <<_ACEOF
6132/* end confdefs.h. */
6133#ifdef __STDC__
6134# include <limits.h>
6135#else
6136# include <assert.h>
6137#endif
6138 Syntax error
6139_ACEOF
64ff59ba 6140if { (ac_try="$ac_cpp conftest.$ac_ext"
6141case "(($ac_try" in
6142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6143 *) ac_try_echo=$ac_try;;
6144esac
6145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 6147 ac_status=$?
6148 grep -v '^ *+' conftest.er1 >conftest.err
6149 rm -f conftest.er1
6150 cat conftest.err >&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6152 (exit $ac_status); } >/dev/null && {
6153 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6154 test ! -s conftest.err
6155 }; then
d9898ee8 6156 :
6157else
6158 echo "$as_me: failed program was:" >&5
6159sed 's/^/| /' conftest.$ac_ext >&5
6160
6161 # Broken: fails on valid input.
6162continue
6163fi
64ff59ba 6164
d9898ee8 6165rm -f conftest.err conftest.$ac_ext
6166
64ff59ba 6167 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 6168 # can be detected and how.
6169 cat >conftest.$ac_ext <<_ACEOF
6170/* confdefs.h. */
6171_ACEOF
6172cat confdefs.h >>conftest.$ac_ext
6173cat >>conftest.$ac_ext <<_ACEOF
6174/* end confdefs.h. */
6175#include <ac_nonexistent.h>
6176_ACEOF
64ff59ba 6177if { (ac_try="$ac_cpp conftest.$ac_ext"
6178case "(($ac_try" in
6179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6180 *) ac_try_echo=$ac_try;;
6181esac
6182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 6184 ac_status=$?
6185 grep -v '^ *+' conftest.er1 >conftest.err
6186 rm -f conftest.er1
6187 cat conftest.err >&5
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6189 (exit $ac_status); } >/dev/null && {
6190 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6191 test ! -s conftest.err
6192 }; then
d9898ee8 6193 # Broken: success on invalid input.
6194continue
6195else
6196 echo "$as_me: failed program was:" >&5
6197sed 's/^/| /' conftest.$ac_ext >&5
6198
6199 # Passes both tests.
6200ac_preproc_ok=:
6201break
6202fi
64ff59ba 6203
d9898ee8 6204rm -f conftest.err conftest.$ac_ext
6205
6206done
6207# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6208rm -f conftest.err conftest.$ac_ext
6209if $ac_preproc_ok; then
6210 break
6211fi
6212
6213 done
6214 ac_cv_prog_CXXCPP=$CXXCPP
6215
6216fi
6217 CXXCPP=$ac_cv_prog_CXXCPP
6218else
6219 ac_cv_prog_CXXCPP=$CXXCPP
6220fi
64ff59ba 6221{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6222echo "${ECHO_T}$CXXCPP" >&6; }
d9898ee8 6223ac_preproc_ok=false
6224for ac_cxx_preproc_warn_flag in '' yes
6225do
6226 # Use a header file that comes with gcc, so configuring glibc
6227 # with a fresh cross-compiler works.
6228 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6229 # <limits.h> exists even on freestanding compilers.
6230 # On the NeXT, cc -E runs the code through the compiler's parser,
6231 # not just through cpp. "Syntax error" is here to catch this case.
6232 cat >conftest.$ac_ext <<_ACEOF
6233/* confdefs.h. */
6234_ACEOF
6235cat confdefs.h >>conftest.$ac_ext
6236cat >>conftest.$ac_ext <<_ACEOF
6237/* end confdefs.h. */
6238#ifdef __STDC__
6239# include <limits.h>
6240#else
6241# include <assert.h>
6242#endif
6243 Syntax error
6244_ACEOF
64ff59ba 6245if { (ac_try="$ac_cpp conftest.$ac_ext"
6246case "(($ac_try" in
6247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6248 *) ac_try_echo=$ac_try;;
6249esac
6250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 6252 ac_status=$?
6253 grep -v '^ *+' conftest.er1 >conftest.err
6254 rm -f conftest.er1
6255 cat conftest.err >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6257 (exit $ac_status); } >/dev/null && {
6258 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6259 test ! -s conftest.err
6260 }; then
d9898ee8 6261 :
6262else
6263 echo "$as_me: failed program was:" >&5
6264sed 's/^/| /' conftest.$ac_ext >&5
6265
6266 # Broken: fails on valid input.
6267continue
6268fi
64ff59ba 6269
d9898ee8 6270rm -f conftest.err conftest.$ac_ext
6271
64ff59ba 6272 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 6273 # can be detected and how.
6274 cat >conftest.$ac_ext <<_ACEOF
6275/* confdefs.h. */
6276_ACEOF
6277cat confdefs.h >>conftest.$ac_ext
6278cat >>conftest.$ac_ext <<_ACEOF
6279/* end confdefs.h. */
6280#include <ac_nonexistent.h>
6281_ACEOF
64ff59ba 6282if { (ac_try="$ac_cpp conftest.$ac_ext"
6283case "(($ac_try" in
6284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6285 *) ac_try_echo=$ac_try;;
6286esac
6287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 6289 ac_status=$?
6290 grep -v '^ *+' conftest.er1 >conftest.err
6291 rm -f conftest.er1
6292 cat conftest.err >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6294 (exit $ac_status); } >/dev/null && {
6295 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6296 test ! -s conftest.err
6297 }; then
d9898ee8 6298 # Broken: success on invalid input.
6299continue
6300else
6301 echo "$as_me: failed program was:" >&5
6302sed 's/^/| /' conftest.$ac_ext >&5
6303
6304 # Passes both tests.
6305ac_preproc_ok=:
6306break
6307fi
64ff59ba 6308
d9898ee8 6309rm -f conftest.err conftest.$ac_ext
6310
6311done
6312# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6313rm -f conftest.err conftest.$ac_ext
6314if $ac_preproc_ok; then
6315 :
6316else
6317 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6318See \`config.log' for more details." >&5
6319echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6320See \`config.log' for more details." >&2;}
6321 { (exit 1); exit 1; }; }
6322fi
6323
64ff59ba 6324ac_ext=cpp
d9898ee8 6325ac_cpp='$CXXCPP $CPPFLAGS'
6326ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6327ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6328ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6329
6330fi
6331
6332
6333ac_ext=f
6334ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6335ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6336ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6337if test -n "$ac_tool_prefix"; then
64ff59ba 6338 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
d9898ee8 6339 do
6340 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6341set dummy $ac_tool_prefix$ac_prog; ac_word=$2
64ff59ba 6342{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6344if test "${ac_cv_prog_F77+set}" = set; then
6345 echo $ECHO_N "(cached) $ECHO_C" >&6
6346else
6347 if test -n "$F77"; then
6348 ac_cv_prog_F77="$F77" # Let the user override the test.
6349else
6350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351for as_dir in $PATH
6352do
6353 IFS=$as_save_IFS
6354 test -z "$as_dir" && as_dir=.
6355 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6357 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6359 break 2
6360 fi
6361done
6362done
64ff59ba 6363IFS=$as_save_IFS
d9898ee8 6364
6365fi
6366fi
6367F77=$ac_cv_prog_F77
6368if test -n "$F77"; then
64ff59ba 6369 { echo "$as_me:$LINENO: result: $F77" >&5
6370echo "${ECHO_T}$F77" >&6; }
d9898ee8 6371else
64ff59ba 6372 { echo "$as_me:$LINENO: result: no" >&5
6373echo "${ECHO_T}no" >&6; }
d9898ee8 6374fi
6375
64ff59ba 6376
d9898ee8 6377 test -n "$F77" && break
6378 done
6379fi
6380if test -z "$F77"; then
6381 ac_ct_F77=$F77
64ff59ba 6382 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
d9898ee8 6383do
6384 # Extract the first word of "$ac_prog", so it can be a program name with args.
6385set dummy $ac_prog; ac_word=$2
64ff59ba 6386{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6388if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6390else
6391 if test -n "$ac_ct_F77"; then
6392 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6393else
6394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395for as_dir in $PATH
6396do
6397 IFS=$as_save_IFS
6398 test -z "$as_dir" && as_dir=.
6399 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6401 ac_cv_prog_ac_ct_F77="$ac_prog"
6402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6403 break 2
6404 fi
6405done
6406done
64ff59ba 6407IFS=$as_save_IFS
d9898ee8 6408
6409fi
6410fi
6411ac_ct_F77=$ac_cv_prog_ac_ct_F77
6412if test -n "$ac_ct_F77"; then
64ff59ba 6413 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6414echo "${ECHO_T}$ac_ct_F77" >&6; }
d9898ee8 6415else
64ff59ba 6416 { echo "$as_me:$LINENO: result: no" >&5
6417echo "${ECHO_T}no" >&6; }
d9898ee8 6418fi
6419
64ff59ba 6420
d9898ee8 6421 test -n "$ac_ct_F77" && break
6422done
6423
64ff59ba 6424 if test "x$ac_ct_F77" = x; then
6425 F77=""
6426 else
6427 case $cross_compiling:$ac_tool_warned in
6428yes:)
6429{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6430whose name does not start with the host triplet. If you think this
6431configuration is useful to you, please write to autoconf@gnu.org." >&5
6432echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6433whose name does not start with the host triplet. If you think this
6434configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6435ac_tool_warned=yes ;;
6436esac
6437 F77=$ac_ct_F77
6438 fi
d9898ee8 6439fi
6440
6441
6442# Provide some information about the compiler.
64ff59ba 6443echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
d9898ee8 6444ac_compiler=`set X $ac_compile; echo $2`
64ff59ba 6445{ (ac_try="$ac_compiler --version >&5"
6446case "(($ac_try" in
6447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6448 *) ac_try_echo=$ac_try;;
6449esac
6450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6451 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 6452 ac_status=$?
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); }
64ff59ba 6455{ (ac_try="$ac_compiler -v >&5"
6456case "(($ac_try" in
6457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6458 *) ac_try_echo=$ac_try;;
6459esac
6460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6461 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 6462 ac_status=$?
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); }
64ff59ba 6465{ (ac_try="$ac_compiler -V >&5"
6466case "(($ac_try" in
6467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6468 *) ac_try_echo=$ac_try;;
6469esac
6470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6471 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 6472 ac_status=$?
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); }
6475rm -f a.out
6476
6477# If we don't use `.F' as extension, the preprocessor is not run on the
6478# input file. (Note that this only needs to work for GNU compilers.)
6479ac_save_ext=$ac_ext
6480ac_ext=F
64ff59ba 6481{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6482echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
d9898ee8 6483if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
6485else
6486 cat >conftest.$ac_ext <<_ACEOF
6487 program main
6488#ifndef __GNUC__
6489 choke me
6490#endif
6491
6492 end
6493_ACEOF
6494rm -f conftest.$ac_objext
64ff59ba 6495if { (ac_try="$ac_compile"
6496case "(($ac_try" in
6497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6498 *) ac_try_echo=$ac_try;;
6499esac
6500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6501 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6502 ac_status=$?
6503 grep -v '^ *+' conftest.er1 >conftest.err
6504 rm -f conftest.er1
6505 cat conftest.err >&5
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6507 (exit $ac_status); } && {
6508 test -z "$ac_f77_werror_flag" ||
6509 test ! -s conftest.err
6510 } && test -s conftest.$ac_objext; then
d9898ee8 6511 ac_compiler_gnu=yes
6512else
6513 echo "$as_me: failed program was:" >&5
6514sed 's/^/| /' conftest.$ac_ext >&5
6515
64ff59ba 6516 ac_compiler_gnu=no
d9898ee8 6517fi
64ff59ba 6518
6519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6520ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6521
6522fi
64ff59ba 6523{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6524echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
d9898ee8 6525ac_ext=$ac_save_ext
6526ac_test_FFLAGS=${FFLAGS+set}
6527ac_save_FFLAGS=$FFLAGS
6528FFLAGS=
64ff59ba 6529{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6530echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
d9898ee8 6531if test "${ac_cv_prog_f77_g+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6533else
6534 FFLAGS=-g
6535cat >conftest.$ac_ext <<_ACEOF
6536 program main
6537
6538 end
6539_ACEOF
6540rm -f conftest.$ac_objext
64ff59ba 6541if { (ac_try="$ac_compile"
6542case "(($ac_try" in
6543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6544 *) ac_try_echo=$ac_try;;
6545esac
6546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6547 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6548 ac_status=$?
6549 grep -v '^ *+' conftest.er1 >conftest.err
6550 rm -f conftest.er1
6551 cat conftest.err >&5
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6553 (exit $ac_status); } && {
6554 test -z "$ac_f77_werror_flag" ||
6555 test ! -s conftest.err
6556 } && test -s conftest.$ac_objext; then
d9898ee8 6557 ac_cv_prog_f77_g=yes
6558else
6559 echo "$as_me: failed program was:" >&5
6560sed 's/^/| /' conftest.$ac_ext >&5
6561
64ff59ba 6562 ac_cv_prog_f77_g=no
d9898ee8 6563fi
64ff59ba 6564
6565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6566
6567fi
64ff59ba 6568{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6569echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
d9898ee8 6570if test "$ac_test_FFLAGS" = set; then
6571 FFLAGS=$ac_save_FFLAGS
6572elif test $ac_cv_prog_f77_g = yes; then
6573 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6574 FFLAGS="-g -O2"
6575 else
6576 FFLAGS="-g"
6577 fi
6578else
6579 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6580 FFLAGS="-O2"
6581 else
6582 FFLAGS=
6583 fi
6584fi
6585
6586G77=`test $ac_compiler_gnu = yes && echo yes`
6587ac_ext=c
6588ac_cpp='$CPP $CPPFLAGS'
6589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6591ac_compiler_gnu=$ac_cv_c_compiler_gnu
6592
6593
6594
6595# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6596
6597# find the maximum length of command line arguments
64ff59ba 6598{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6599echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
d9898ee8 6600if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6601 echo $ECHO_N "(cached) $ECHO_C" >&6
6602else
6603 i=0
6604 teststring="ABCD"
6605
6606 case $build_os in
6607 msdosdjgpp*)
6608 # On DJGPP, this test can blow up pretty badly due to problems in libc
6609 # (any single argument exceeding 2000 bytes causes a buffer overrun
6610 # during glob expansion). Even if it were fixed, the result of this
6611 # check would be larger than it should be.
6612 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6613 ;;
6614
6615 gnu*)
6616 # Under GNU Hurd, this test is not required because there is
6617 # no limit to the length of command line arguments.
6618 # Libtool will interpret -1 as no limit whatsoever
6619 lt_cv_sys_max_cmd_len=-1;
6620 ;;
6621
6622 cygwin* | mingw*)
6623 # On Win9x/ME, this test blows up -- it succeeds, but takes
6624 # about 5 minutes as the teststring grows exponentially.
6625 # Worse, since 9x/ME are not pre-emptively multitasking,
6626 # you end up with a "frozen" computer, even though with patience
6627 # the test eventually succeeds (with a max line length of 256k).
6628 # Instead, let's just punt: use the minimum linelength reported by
6629 # all of the supported platforms: 8192 (on NT/2K/XP).
6630 lt_cv_sys_max_cmd_len=8192;
6631 ;;
6632
6633 amigaos*)
6634 # On AmigaOS with pdksh, this test takes hours, literally.
6635 # So we just punt and use a minimum line length of 8192.
6636 lt_cv_sys_max_cmd_len=8192;
6637 ;;
6638
6639 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6640 # This has been around since 386BSD, at least. Likely further.
6641 if test -x /sbin/sysctl; then
6642 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6643 elif test -x /usr/sbin/sysctl; then
6644 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6645 else
6646 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6647 fi
6648 # And add a safety zone
6649 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6650 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6651 ;;
6652
6653 interix*)
6654 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6655 lt_cv_sys_max_cmd_len=196608
6656 ;;
6657
6658 osf*)
6659 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6660 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6661 # nice to cause kernel panics so lets avoid the loop below.
6662 # First set a reasonable default.
6663 lt_cv_sys_max_cmd_len=16384
6664 #
6665 if test -x /sbin/sysconfig; then
6666 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6667 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6668 esac
6669 fi
6670 ;;
6671 sco3.2v5*)
6672 lt_cv_sys_max_cmd_len=102400
6673 ;;
6674 sysv5* | sco5v6* | sysv4.2uw2*)
6675 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6676 if test -n "$kargmax"; then
6677 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6678 else
6679 lt_cv_sys_max_cmd_len=32768
6680 fi
6681 ;;
6682 *)
0fde1ce3 6683 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6684 if test -n "$lt_cv_sys_max_cmd_len"; then
6685 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6686 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6687 else
6688 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6689 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
d9898ee8 6690 = "XX$teststring") >/dev/null 2>&1 &&
0fde1ce3 6691 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6692 lt_cv_sys_max_cmd_len=$new_result &&
6693 test $i != 17 # 1/2 MB should be enough
6694 do
6695 i=`expr $i + 1`
6696 teststring=$teststring$teststring
6697 done
6698 teststring=
6699 # Add a significant safety factor because C++ compilers can tack on massive
6700 # amounts of additional arguments before passing them to the linker.
6701 # It appears as though 1/2 is a usable value.
6702 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6703 fi
d9898ee8 6704 ;;
6705 esac
6706
6707fi
6708
6709if test -n $lt_cv_sys_max_cmd_len ; then
64ff59ba 6710 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6711echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
d9898ee8 6712else
64ff59ba 6713 { echo "$as_me:$LINENO: result: none" >&5
6714echo "${ECHO_T}none" >&6; }
d9898ee8 6715fi
6716
6717
6718
6719
0fde1ce3 6720
d9898ee8 6721# Check for command to grab the raw symbol name followed by C symbol from nm.
64ff59ba 6722{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6723echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
d9898ee8 6724if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
6726else
6727
6728# These are sane defaults that work on at least a few old systems.
6729# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6730
6731# Character class describing NM global symbol codes.
6732symcode='[BCDEGRST]'
6733
6734# Regexp to match symbols that can be accessed directly from C.
6735sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6736
6737# Transform an extracted symbol line into a proper C declaration
6738lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6739
6740# Transform an extracted symbol line into symbol name and symbol address
6741lt_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'"
6742
6743# Define system-specific variables.
6744case $host_os in
6745aix*)
6746 symcode='[BCDT]'
6747 ;;
6748cygwin* | mingw* | pw32*)
6749 symcode='[ABCDGISTW]'
6750 ;;
6751hpux*) # Its linker distinguishes data from code symbols
6752 if test "$host_cpu" = ia64; then
6753 symcode='[ABCDEGRST]'
6754 fi
6755 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6756 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'"
6757 ;;
0fde1ce3 6758linux* | k*bsd*-gnu)
d9898ee8 6759 if test "$host_cpu" = ia64; then
6760 symcode='[ABCDGIRSTW]'
6761 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6762 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'"
6763 fi
6764 ;;
6765irix* | nonstopux*)
6766 symcode='[BCDEGRST]'
6767 ;;
6768osf*)
6769 symcode='[BCDEGQRST]'
6770 ;;
6771solaris*)
6772 symcode='[BDRT]'
6773 ;;
6774sco3.2v5*)
6775 symcode='[DT]'
6776 ;;
6777sysv4.2uw2*)
6778 symcode='[DT]'
6779 ;;
6780sysv5* | sco5v6* | unixware* | OpenUNIX*)
6781 symcode='[ABDT]'
6782 ;;
6783sysv4)
6784 symcode='[DFNSTU]'
6785 ;;
6786esac
6787
6788# Handle CRLF in mingw tool chain
6789opt_cr=
6790case $build_os in
6791mingw*)
6792 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6793 ;;
6794esac
6795
6796# If we're using GNU nm, then use its standard symbol codes.
6797case `$NM -V 2>&1` in
6798*GNU* | *'with BFD'*)
6799 symcode='[ABCDGIRSTW]' ;;
6800esac
6801
6802# Try without a prefix undercore, then with it.
6803for ac_symprfx in "" "_"; do
6804
6805 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6806 symxfrm="\\1 $ac_symprfx\\2 \\2"
6807
6808 # Write the raw and C identifiers.
6809 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6810
6811 # Check to see that the pipe works correctly.
6812 pipe_works=no
6813
6814 rm -f conftest*
6815 cat > conftest.$ac_ext <<EOF
6816#ifdef __cplusplus
6817extern "C" {
6818#endif
6819char nm_test_var;
6820void nm_test_func(){}
6821#ifdef __cplusplus
6822}
6823#endif
6824int main(){nm_test_var='a';nm_test_func();return(0);}
6825EOF
6826
6827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6828 (eval $ac_compile) 2>&5
6829 ac_status=$?
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; then
6832 # Now try to grab the symbols.
6833 nlist=conftest.nm
6834 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6835 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6836 ac_status=$?
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); } && test -s "$nlist"; then
6839 # Try sorting and uniquifying the output.
6840 if sort "$nlist" | uniq > "$nlist"T; then
6841 mv -f "$nlist"T "$nlist"
6842 else
6843 rm -f "$nlist"T
6844 fi
6845
6846 # Make sure that we snagged all the symbols we need.
6847 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6848 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6849 cat <<EOF > conftest.$ac_ext
6850#ifdef __cplusplus
6851extern "C" {
6852#endif
6853
6854EOF
6855 # Now generate the symbol file.
6856 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6857
6858 cat <<EOF >> conftest.$ac_ext
6859#if defined (__STDC__) && __STDC__
6860# define lt_ptr_t void *
6861#else
6862# define lt_ptr_t char *
6863# define const
6864#endif
6865
6866/* The mapping between symbol names and symbols. */
6867const struct {
6868 const char *name;
6869 lt_ptr_t address;
6870}
6871lt_preloaded_symbols[] =
6872{
6873EOF
6874 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6875 cat <<\EOF >> conftest.$ac_ext
6876 {0, (lt_ptr_t) 0}
6877};
6878
6879#ifdef __cplusplus
6880}
6881#endif
6882EOF
6883 # Now try linking the two files.
6884 mv conftest.$ac_objext conftstm.$ac_objext
6885 lt_save_LIBS="$LIBS"
6886 lt_save_CFLAGS="$CFLAGS"
6887 LIBS="conftstm.$ac_objext"
6888 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6890 (eval $ac_link) 2>&5
6891 ac_status=$?
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6894 pipe_works=yes
6895 fi
6896 LIBS="$lt_save_LIBS"
6897 CFLAGS="$lt_save_CFLAGS"
6898 else
6899 echo "cannot find nm_test_func in $nlist" >&5
6900 fi
6901 else
6902 echo "cannot find nm_test_var in $nlist" >&5
6903 fi
6904 else
6905 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6906 fi
6907 else
6908 echo "$progname: failed program was:" >&5
6909 cat conftest.$ac_ext >&5
6910 fi
6911 rm -f conftest* conftst*
6912
6913 # Do not use the global_symbol_pipe unless it works.
6914 if test "$pipe_works" = yes; then
6915 break
6916 else
6917 lt_cv_sys_global_symbol_pipe=
6918 fi
6919done
6920
6921fi
6922
6923if test -z "$lt_cv_sys_global_symbol_pipe"; then
6924 lt_cv_sys_global_symbol_to_cdecl=
6925fi
6926if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
64ff59ba 6927 { echo "$as_me:$LINENO: result: failed" >&5
6928echo "${ECHO_T}failed" >&6; }
d9898ee8 6929else
64ff59ba 6930 { echo "$as_me:$LINENO: result: ok" >&5
6931echo "${ECHO_T}ok" >&6; }
d9898ee8 6932fi
6933
64ff59ba 6934{ echo "$as_me:$LINENO: checking for objdir" >&5
6935echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
d9898ee8 6936if test "${lt_cv_objdir+set}" = set; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
6938else
6939 rm -f .libs 2>/dev/null
6940mkdir .libs 2>/dev/null
6941if test -d .libs; then
6942 lt_cv_objdir=.libs
6943else
6944 # MS-DOS does not allow filenames that begin with a dot.
6945 lt_cv_objdir=_libs
6946fi
6947rmdir .libs 2>/dev/null
6948fi
64ff59ba 6949{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6950echo "${ECHO_T}$lt_cv_objdir" >&6; }
d9898ee8 6951objdir=$lt_cv_objdir
6952
6953
6954
6955
6956
6957case $host_os in
6958aix3*)
6959 # AIX sometimes has problems with the GCC collect2 program. For some
6960 # reason, if we set the COLLECT_NAMES environment variable, the problems
6961 # vanish in a puff of smoke.
6962 if test "X${COLLECT_NAMES+set}" != Xset; then
6963 COLLECT_NAMES=
6964 export COLLECT_NAMES
6965 fi
6966 ;;
6967esac
6968
6969# Sed substitution that helps us do robust quoting. It backslashifies
6970# metacharacters that are still active within double-quoted strings.
6971Xsed='sed -e 1s/^X//'
6972sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6973
6974# Same as above, but do not quote variable references.
6975double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6976
6977# Sed substitution to delay expansion of an escaped shell variable in a
6978# double_quote_subst'ed string.
6979delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6980
6981# Sed substitution to avoid accidental globbing in evaled expressions
6982no_glob_subst='s/\*/\\\*/g'
6983
6984# Constants:
6985rm="rm -f"
6986
6987# Global variables:
6988default_ofile=libtool
6989can_build_shared=yes
6990
6991# All known linkers require a `.a' archive for static linking (except MSVC,
6992# which needs '.lib').
6993libext=a
6994ltmain="$ac_aux_dir/ltmain.sh"
6995ofile="$default_ofile"
6996with_gnu_ld="$lt_cv_prog_gnu_ld"
6997
6998if test -n "$ac_tool_prefix"; then
6999 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7000set dummy ${ac_tool_prefix}ar; ac_word=$2
64ff59ba 7001{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 7003if test "${ac_cv_prog_AR+set}" = set; then
7004 echo $ECHO_N "(cached) $ECHO_C" >&6
7005else
7006 if test -n "$AR"; then
7007 ac_cv_prog_AR="$AR" # Let the user override the test.
7008else
7009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010for as_dir in $PATH
7011do
7012 IFS=$as_save_IFS
7013 test -z "$as_dir" && as_dir=.
7014 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 7015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 7016 ac_cv_prog_AR="${ac_tool_prefix}ar"
7017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7018 break 2
7019 fi
7020done
7021done
64ff59ba 7022IFS=$as_save_IFS
d9898ee8 7023
7024fi
7025fi
7026AR=$ac_cv_prog_AR
7027if test -n "$AR"; then
64ff59ba 7028 { echo "$as_me:$LINENO: result: $AR" >&5
7029echo "${ECHO_T}$AR" >&6; }
d9898ee8 7030else
64ff59ba 7031 { echo "$as_me:$LINENO: result: no" >&5
7032echo "${ECHO_T}no" >&6; }
d9898ee8 7033fi
7034
64ff59ba 7035
d9898ee8 7036fi
7037if test -z "$ac_cv_prog_AR"; then
7038 ac_ct_AR=$AR
7039 # Extract the first word of "ar", so it can be a program name with args.
7040set dummy ar; ac_word=$2
64ff59ba 7041{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 7043if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7045else
7046 if test -n "$ac_ct_AR"; then
7047 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7048else
7049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050for as_dir in $PATH
7051do
7052 IFS=$as_save_IFS
7053 test -z "$as_dir" && as_dir=.
7054 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 7055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 7056 ac_cv_prog_ac_ct_AR="ar"
7057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7058 break 2
7059 fi
7060done
7061done
64ff59ba 7062IFS=$as_save_IFS
d9898ee8 7063
d9898ee8 7064fi
7065fi
7066ac_ct_AR=$ac_cv_prog_ac_ct_AR
7067if test -n "$ac_ct_AR"; then
64ff59ba 7068 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7069echo "${ECHO_T}$ac_ct_AR" >&6; }
d9898ee8 7070else
64ff59ba 7071 { echo "$as_me:$LINENO: result: no" >&5
7072echo "${ECHO_T}no" >&6; }
d9898ee8 7073fi
7074
64ff59ba 7075 if test "x$ac_ct_AR" = x; then
7076 AR="false"
7077 else
7078 case $cross_compiling:$ac_tool_warned in
7079yes:)
7080{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7081whose name does not start with the host triplet. If you think this
7082configuration is useful to you, please write to autoconf@gnu.org." >&5
7083echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7084whose name does not start with the host triplet. If you think this
7085configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7086ac_tool_warned=yes ;;
7087esac
7088 AR=$ac_ct_AR
7089 fi
d9898ee8 7090else
7091 AR="$ac_cv_prog_AR"
7092fi
7093
7094if test -n "$ac_tool_prefix"; then
7095 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7096set dummy ${ac_tool_prefix}ranlib; ac_word=$2
64ff59ba 7097{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 7099if test "${ac_cv_prog_RANLIB+set}" = set; then
7100 echo $ECHO_N "(cached) $ECHO_C" >&6
7101else
7102 if test -n "$RANLIB"; then
7103 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7104else
7105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106for as_dir in $PATH
7107do
7108 IFS=$as_save_IFS
7109 test -z "$as_dir" && as_dir=.
7110 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 7111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 7112 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7114 break 2
7115 fi
7116done
7117done
64ff59ba 7118IFS=$as_save_IFS
d9898ee8 7119
7120fi
7121fi
7122RANLIB=$ac_cv_prog_RANLIB
7123if test -n "$RANLIB"; then
64ff59ba 7124 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7125echo "${ECHO_T}$RANLIB" >&6; }
d9898ee8 7126else
64ff59ba 7127 { echo "$as_me:$LINENO: result: no" >&5
7128echo "${ECHO_T}no" >&6; }
d9898ee8 7129fi
7130
64ff59ba 7131
d9898ee8 7132fi
7133if test -z "$ac_cv_prog_RANLIB"; then
7134 ac_ct_RANLIB=$RANLIB
7135 # Extract the first word of "ranlib", so it can be a program name with args.
7136set dummy ranlib; ac_word=$2
64ff59ba 7137{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 7139if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7141else
7142 if test -n "$ac_ct_RANLIB"; then
7143 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7144else
7145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146for as_dir in $PATH
7147do
7148 IFS=$as_save_IFS
7149 test -z "$as_dir" && as_dir=.
7150 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 7151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 7152 ac_cv_prog_ac_ct_RANLIB="ranlib"
7153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7154 break 2
7155 fi
7156done
7157done
64ff59ba 7158IFS=$as_save_IFS
d9898ee8 7159
d9898ee8 7160fi
7161fi
7162ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7163if test -n "$ac_ct_RANLIB"; then
64ff59ba 7164 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7165echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
d9898ee8 7166else
64ff59ba 7167 { echo "$as_me:$LINENO: result: no" >&5
7168echo "${ECHO_T}no" >&6; }
d9898ee8 7169fi
7170
64ff59ba 7171 if test "x$ac_ct_RANLIB" = x; then
7172 RANLIB=":"
7173 else
7174 case $cross_compiling:$ac_tool_warned in
7175yes:)
7176{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7177whose name does not start with the host triplet. If you think this
7178configuration is useful to you, please write to autoconf@gnu.org." >&5
7179echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7180whose name does not start with the host triplet. If you think this
7181configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7182ac_tool_warned=yes ;;
7183esac
7184 RANLIB=$ac_ct_RANLIB
7185 fi
d9898ee8 7186else
7187 RANLIB="$ac_cv_prog_RANLIB"
7188fi
7189
7190if test -n "$ac_tool_prefix"; then
7191 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7192set dummy ${ac_tool_prefix}strip; ac_word=$2
64ff59ba 7193{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 7195if test "${ac_cv_prog_STRIP+set}" = set; then
7196 echo $ECHO_N "(cached) $ECHO_C" >&6
7197else
7198 if test -n "$STRIP"; then
7199 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7200else
7201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202for as_dir in $PATH
7203do
7204 IFS=$as_save_IFS
7205 test -z "$as_dir" && as_dir=.
7206 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 7207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 7208 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7210 break 2
7211 fi
7212done
7213done
64ff59ba 7214IFS=$as_save_IFS
d9898ee8 7215
7216fi
7217fi
7218STRIP=$ac_cv_prog_STRIP
7219if test -n "$STRIP"; then
64ff59ba 7220 { echo "$as_me:$LINENO: result: $STRIP" >&5
7221echo "${ECHO_T}$STRIP" >&6; }
d9898ee8 7222else
64ff59ba 7223 { echo "$as_me:$LINENO: result: no" >&5
7224echo "${ECHO_T}no" >&6; }
d9898ee8 7225fi
7226
64ff59ba 7227
d9898ee8 7228fi
7229if test -z "$ac_cv_prog_STRIP"; then
7230 ac_ct_STRIP=$STRIP
7231 # Extract the first word of "strip", so it can be a program name with args.
7232set dummy strip; ac_word=$2
64ff59ba 7233{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 7235if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7236 echo $ECHO_N "(cached) $ECHO_C" >&6
7237else
7238 if test -n "$ac_ct_STRIP"; then
7239 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7240else
7241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242for as_dir in $PATH
7243do
7244 IFS=$as_save_IFS
7245 test -z "$as_dir" && as_dir=.
7246 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 7247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 7248 ac_cv_prog_ac_ct_STRIP="strip"
7249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7250 break 2
7251 fi
7252done
7253done
64ff59ba 7254IFS=$as_save_IFS
d9898ee8 7255
d9898ee8 7256fi
7257fi
7258ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7259if test -n "$ac_ct_STRIP"; then
64ff59ba 7260 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7261echo "${ECHO_T}$ac_ct_STRIP" >&6; }
d9898ee8 7262else
64ff59ba 7263 { echo "$as_me:$LINENO: result: no" >&5
7264echo "${ECHO_T}no" >&6; }
d9898ee8 7265fi
7266
64ff59ba 7267 if test "x$ac_ct_STRIP" = x; then
7268 STRIP=":"
7269 else
7270 case $cross_compiling:$ac_tool_warned in
7271yes:)
7272{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7273whose name does not start with the host triplet. If you think this
7274configuration is useful to you, please write to autoconf@gnu.org." >&5
7275echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7276whose name does not start with the host triplet. If you think this
7277configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7278ac_tool_warned=yes ;;
7279esac
7280 STRIP=$ac_ct_STRIP
7281 fi
d9898ee8 7282else
7283 STRIP="$ac_cv_prog_STRIP"
7284fi
7285
7286
7287old_CC="$CC"
7288old_CFLAGS="$CFLAGS"
7289
7290# Set sane defaults for various variables
7291test -z "$AR" && AR=ar
7292test -z "$AR_FLAGS" && AR_FLAGS=cru
7293test -z "$AS" && AS=as
7294test -z "$CC" && CC=cc
7295test -z "$LTCC" && LTCC=$CC
7296test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7297test -z "$DLLTOOL" && DLLTOOL=dlltool
7298test -z "$LD" && LD=ld
7299test -z "$LN_S" && LN_S="ln -s"
7300test -z "$MAGIC_CMD" && MAGIC_CMD=file
7301test -z "$NM" && NM=nm
7302test -z "$SED" && SED=sed
7303test -z "$OBJDUMP" && OBJDUMP=objdump
7304test -z "$RANLIB" && RANLIB=:
7305test -z "$STRIP" && STRIP=:
7306test -z "$ac_objext" && ac_objext=o
7307
7308# Determine commands to create old-style static archives.
0fde1ce3 7309old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
d9898ee8 7310old_postinstall_cmds='chmod 644 $oldlib'
7311old_postuninstall_cmds=
7312
7313if test -n "$RANLIB"; then
7314 case $host_os in
7315 openbsd*)
7316 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7317 ;;
7318 *)
7319 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7320 ;;
7321 esac
7322 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7323fi
7324
7325for cc_temp in $compiler""; do
7326 case $cc_temp in
7327 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7328 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7329 \-*) ;;
7330 *) break;;
7331 esac
7332done
7333cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7334
7335
7336# Only perform the check for file, if the check method requires it
7337case $deplibs_check_method in
7338file_magic*)
7339 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
64ff59ba 7340 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7341echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
d9898ee8 7342if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7343 echo $ECHO_N "(cached) $ECHO_C" >&6
7344else
7345 case $MAGIC_CMD in
7346[\\/*] | ?:[\\/]*)
7347 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7348 ;;
7349*)
7350 lt_save_MAGIC_CMD="$MAGIC_CMD"
7351 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7352 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7353 for ac_dir in $ac_dummy; do
7354 IFS="$lt_save_ifs"
7355 test -z "$ac_dir" && ac_dir=.
7356 if test -f $ac_dir/${ac_tool_prefix}file; then
7357 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7358 if test -n "$file_magic_test_file"; then
7359 case $deplibs_check_method in
7360 "file_magic "*)
7361 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7362 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7363 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7364 $EGREP "$file_magic_regex" > /dev/null; then
7365 :
7366 else
7367 cat <<EOF 1>&2
7368
7369*** Warning: the command libtool uses to detect shared libraries,
7370*** $file_magic_cmd, produces output that libtool cannot recognize.
7371*** The result is that libtool may fail to recognize shared libraries
7372*** as such. This will affect the creation of libtool libraries that
7373*** depend on shared libraries, but programs linked with such libtool
7374*** libraries will work regardless of this problem. Nevertheless, you
7375*** may want to report the problem to your system manager and/or to
7376*** bug-libtool@gnu.org
7377
7378EOF
7379 fi ;;
7380 esac
7381 fi
7382 break
7383 fi
7384 done
7385 IFS="$lt_save_ifs"
7386 MAGIC_CMD="$lt_save_MAGIC_CMD"
7387 ;;
7388esac
7389fi
7390
7391MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7392if test -n "$MAGIC_CMD"; then
64ff59ba 7393 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7394echo "${ECHO_T}$MAGIC_CMD" >&6; }
d9898ee8 7395else
64ff59ba 7396 { echo "$as_me:$LINENO: result: no" >&5
7397echo "${ECHO_T}no" >&6; }
d9898ee8 7398fi
7399
7400if test -z "$lt_cv_path_MAGIC_CMD"; then
7401 if test -n "$ac_tool_prefix"; then
64ff59ba 7402 { echo "$as_me:$LINENO: checking for file" >&5
7403echo $ECHO_N "checking for file... $ECHO_C" >&6; }
d9898ee8 7404if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7406else
7407 case $MAGIC_CMD in
7408[\\/*] | ?:[\\/]*)
7409 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7410 ;;
7411*)
7412 lt_save_MAGIC_CMD="$MAGIC_CMD"
7413 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7414 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7415 for ac_dir in $ac_dummy; do
7416 IFS="$lt_save_ifs"
7417 test -z "$ac_dir" && ac_dir=.
7418 if test -f $ac_dir/file; then
7419 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7420 if test -n "$file_magic_test_file"; then
7421 case $deplibs_check_method in
7422 "file_magic "*)
7423 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7424 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7425 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7426 $EGREP "$file_magic_regex" > /dev/null; then
7427 :
7428 else
7429 cat <<EOF 1>&2
7430
7431*** Warning: the command libtool uses to detect shared libraries,
7432*** $file_magic_cmd, produces output that libtool cannot recognize.
7433*** The result is that libtool may fail to recognize shared libraries
7434*** as such. This will affect the creation of libtool libraries that
7435*** depend on shared libraries, but programs linked with such libtool
7436*** libraries will work regardless of this problem. Nevertheless, you
7437*** may want to report the problem to your system manager and/or to
7438*** bug-libtool@gnu.org
7439
7440EOF
7441 fi ;;
7442 esac
7443 fi
7444 break
7445 fi
7446 done
7447 IFS="$lt_save_ifs"
7448 MAGIC_CMD="$lt_save_MAGIC_CMD"
7449 ;;
7450esac
7451fi
7452
7453MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7454if test -n "$MAGIC_CMD"; then
64ff59ba 7455 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7456echo "${ECHO_T}$MAGIC_CMD" >&6; }
d9898ee8 7457else
64ff59ba 7458 { echo "$as_me:$LINENO: result: no" >&5
7459echo "${ECHO_T}no" >&6; }
d9898ee8 7460fi
7461
7462 else
7463 MAGIC_CMD=:
7464 fi
7465fi
7466
7467 fi
7468 ;;
7469esac
7470
7471enable_dlopen=no
7472enable_win32_dll=yes
7473
64ff59ba 7474# Check whether --enable-libtool-lock was given.
d9898ee8 7475if test "${enable_libtool_lock+set}" = set; then
64ff59ba 7476 enableval=$enable_libtool_lock;
7477fi
d9898ee8 7478
d9898ee8 7479test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7480
7481
64ff59ba 7482# Check whether --with-pic was given.
d9898ee8 7483if test "${with_pic+set}" = set; then
64ff59ba 7484 withval=$with_pic; pic_mode="$withval"
d9898ee8 7485else
7486 pic_mode=default
64ff59ba 7487fi
7488
d9898ee8 7489test -z "$pic_mode" && pic_mode=default
7490
7491# Use C for the default configuration in the libtool script
7492tagname=
7493lt_save_CC="$CC"
7494ac_ext=c
7495ac_cpp='$CPP $CPPFLAGS'
7496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7498ac_compiler_gnu=$ac_cv_c_compiler_gnu
7499
7500
7501# Source file extension for C test sources.
7502ac_ext=c
7503
7504# Object file extension for compiled C test sources.
7505objext=o
7506objext=$objext
7507
7508# Code to be used in simple compile tests
0fde1ce3 7509lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 7510
7511# Code to be used in simple link tests
0fde1ce3 7512lt_simple_link_test_code='int main(){return(0);}'
d9898ee8 7513
7514
7515# If no C compiler was specified, use CC.
7516LTCC=${LTCC-"$CC"}
7517
7518# If no C compiler flags were specified, use CFLAGS.
7519LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7520
7521# Allow CC to be a program name with arguments.
7522compiler=$CC
7523
7524
7525# save warnings/boilerplate of simple test code
7526ac_outfile=conftest.$ac_objext
0fde1ce3 7527echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 7528eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7529_lt_compiler_boilerplate=`cat conftest.err`
7530$rm conftest*
7531
7532ac_outfile=conftest.$ac_objext
0fde1ce3 7533echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 7534eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7535_lt_linker_boilerplate=`cat conftest.err`
7536$rm conftest*
7537
7538
7539## CAVEAT EMPTOR:
7540## There is no encapsulation within the following macros, do not change
7541## the running order or otherwise move them around unless you know exactly
7542## what you are doing...
7543
7544lt_prog_compiler_no_builtin_flag=
7545
7546if test "$GCC" = yes; then
7547 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7548
7549
64ff59ba 7550{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7551echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d9898ee8 7552if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7554else
7555 lt_cv_prog_compiler_rtti_exceptions=no
7556 ac_outfile=conftest.$ac_objext
0fde1ce3 7557 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 7558 lt_compiler_flag="-fno-rtti -fno-exceptions"
7559 # Insert the option either (1) after the last *FLAGS variable, or
7560 # (2) before a word containing "conftest.", or (3) at the end.
7561 # Note that $ac_compile itself does not contain backslashes and begins
7562 # with a dollar sign (not a hyphen), so the echo should work correctly.
7563 # The option is referenced via a variable to avoid confusing sed.
7564 lt_compile=`echo "$ac_compile" | $SED \
7565 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7566 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7567 -e 's:$: $lt_compiler_flag:'`
0fde1ce3 7568 (eval echo "\"\$as_me:7568: $lt_compile\"" >&5)
d9898ee8 7569 (eval "$lt_compile" 2>conftest.err)
7570 ac_status=$?
7571 cat conftest.err >&5
0fde1ce3 7572 echo "$as_me:7572: \$? = $ac_status" >&5
d9898ee8 7573 if (exit $ac_status) && test -s "$ac_outfile"; then
7574 # The compiler can only warn and ignore the option if not recognized
7575 # So say no if there are warnings other than the usual output.
7576 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7577 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7578 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7579 lt_cv_prog_compiler_rtti_exceptions=yes
7580 fi
7581 fi
7582 $rm conftest*
7583
7584fi
64ff59ba 7585{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7586echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 7587
7588if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7589 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7590else
7591 :
7592fi
7593
7594fi
7595
7596lt_prog_compiler_wl=
7597lt_prog_compiler_pic=
7598lt_prog_compiler_static=
7599
64ff59ba 7600{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7601echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 7602
7603 if test "$GCC" = yes; then
7604 lt_prog_compiler_wl='-Wl,'
7605 lt_prog_compiler_static='-static'
7606
7607 case $host_os in
7608 aix*)
7609 # All AIX code is PIC.
7610 if test "$host_cpu" = ia64; then
7611 # AIX 5 now supports IA64 processor
7612 lt_prog_compiler_static='-Bstatic'
7613 fi
7614 ;;
7615
7616 amigaos*)
7617 # FIXME: we need at least 68020 code to build shared libraries, but
7618 # adding the `-m68020' flag to GCC prevents building anything better,
7619 # like `-m68040'.
7620 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7621 ;;
7622
0fde1ce3 7623 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 7624 # PIC is the default for these OSes.
7625 ;;
7626
0fde1ce3 7627 mingw* | cygwin* | pw32* | os2*)
d9898ee8 7628 # This hack is so that the source file can tell whether it is being
7629 # built for inclusion in a dll (and should export symbols for example).
0fde1ce3 7630 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7631 # (--disable-auto-import) libraries
d9898ee8 7632 lt_prog_compiler_pic='-DDLL_EXPORT'
7633 ;;
7634
7635 darwin* | rhapsody*)
7636 # PIC is the default on this platform
7637 # Common symbols not allowed in MH_DYLIB files
7638 lt_prog_compiler_pic='-fno-common'
7639 ;;
7640
0fde1ce3 7641 interix[3-9]*)
d9898ee8 7642 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7643 # Instead, we relocate shared libraries at runtime.
7644 ;;
7645
7646 msdosdjgpp*)
7647 # Just because we use GCC doesn't mean we suddenly get shared libraries
7648 # on systems that don't support them.
7649 lt_prog_compiler_can_build_shared=no
7650 enable_shared=no
7651 ;;
7652
7653 sysv4*MP*)
7654 if test -d /usr/nec; then
7655 lt_prog_compiler_pic=-Kconform_pic
7656 fi
7657 ;;
7658
7659 hpux*)
7660 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7661 # not for PA HP-UX.
7662 case $host_cpu in
7663 hppa*64*|ia64*)
7664 # +Z the default
7665 ;;
7666 *)
7667 lt_prog_compiler_pic='-fPIC'
7668 ;;
7669 esac
7670 ;;
7671
7672 *)
7673 lt_prog_compiler_pic='-fPIC'
7674 ;;
7675 esac
7676 else
7677 # PORTME Check for flag to pass linker flags through the system compiler.
7678 case $host_os in
7679 aix*)
7680 lt_prog_compiler_wl='-Wl,'
7681 if test "$host_cpu" = ia64; then
7682 # AIX 5 now supports IA64 processor
7683 lt_prog_compiler_static='-Bstatic'
7684 else
7685 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7686 fi
7687 ;;
7688 darwin*)
7689 # PIC is the default on this platform
7690 # Common symbols not allowed in MH_DYLIB files
7691 case $cc_basename in
7692 xlc*)
7693 lt_prog_compiler_pic='-qnocommon'
7694 lt_prog_compiler_wl='-Wl,'
7695 ;;
7696 esac
7697 ;;
7698
0fde1ce3 7699 mingw* | cygwin* | pw32* | os2*)
d9898ee8 7700 # This hack is so that the source file can tell whether it is being
7701 # built for inclusion in a dll (and should export symbols for example).
7702 lt_prog_compiler_pic='-DDLL_EXPORT'
7703 ;;
7704
7705 hpux9* | hpux10* | hpux11*)
7706 lt_prog_compiler_wl='-Wl,'
7707 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7708 # not for PA HP-UX.
7709 case $host_cpu in
7710 hppa*64*|ia64*)
7711 # +Z the default
7712 ;;
7713 *)
7714 lt_prog_compiler_pic='+Z'
7715 ;;
7716 esac
7717 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7718 lt_prog_compiler_static='${wl}-a ${wl}archive'
7719 ;;
7720
7721 irix5* | irix6* | nonstopux*)
7722 lt_prog_compiler_wl='-Wl,'
7723 # PIC (with -KPIC) is the default.
7724 lt_prog_compiler_static='-non_shared'
7725 ;;
7726
7727 newsos6)
7728 lt_prog_compiler_pic='-KPIC'
7729 lt_prog_compiler_static='-Bstatic'
7730 ;;
7731
0fde1ce3 7732 linux* | k*bsd*-gnu)
d9898ee8 7733 case $cc_basename in
7734 icc* | ecc*)
7735 lt_prog_compiler_wl='-Wl,'
7736 lt_prog_compiler_pic='-KPIC'
7737 lt_prog_compiler_static='-static'
7738 ;;
7739 pgcc* | pgf77* | pgf90* | pgf95*)
7740 # Portland Group compilers (*not* the Pentium gcc compiler,
7741 # which looks to be a dead project)
7742 lt_prog_compiler_wl='-Wl,'
7743 lt_prog_compiler_pic='-fpic'
7744 lt_prog_compiler_static='-Bstatic'
7745 ;;
7746 ccc*)
7747 lt_prog_compiler_wl='-Wl,'
7748 # All Alpha code is PIC.
7749 lt_prog_compiler_static='-non_shared'
7750 ;;
0fde1ce3 7751 *)
7752 case `$CC -V 2>&1 | sed 5q` in
7753 *Sun\ C*)
7754 # Sun C 5.9
7755 lt_prog_compiler_pic='-KPIC'
7756 lt_prog_compiler_static='-Bstatic'
7757 lt_prog_compiler_wl='-Wl,'
7758 ;;
7759 *Sun\ F*)
7760 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7761 lt_prog_compiler_pic='-KPIC'
7762 lt_prog_compiler_static='-Bstatic'
7763 lt_prog_compiler_wl=''
7764 ;;
7765 esac
7766 ;;
d9898ee8 7767 esac
7768 ;;
7769
7770 osf3* | osf4* | osf5*)
7771 lt_prog_compiler_wl='-Wl,'
7772 # All OSF/1 code is PIC.
7773 lt_prog_compiler_static='-non_shared'
7774 ;;
7775
0fde1ce3 7776 rdos*)
7777 lt_prog_compiler_static='-non_shared'
7778 ;;
7779
d9898ee8 7780 solaris*)
7781 lt_prog_compiler_pic='-KPIC'
7782 lt_prog_compiler_static='-Bstatic'
7783 case $cc_basename in
7784 f77* | f90* | f95*)
7785 lt_prog_compiler_wl='-Qoption ld ';;
7786 *)
7787 lt_prog_compiler_wl='-Wl,';;
7788 esac
7789 ;;
7790
7791 sunos4*)
7792 lt_prog_compiler_wl='-Qoption ld '
7793 lt_prog_compiler_pic='-PIC'
7794 lt_prog_compiler_static='-Bstatic'
7795 ;;
7796
7797 sysv4 | sysv4.2uw2* | sysv4.3*)
7798 lt_prog_compiler_wl='-Wl,'
7799 lt_prog_compiler_pic='-KPIC'
7800 lt_prog_compiler_static='-Bstatic'
7801 ;;
7802
7803 sysv4*MP*)
7804 if test -d /usr/nec ;then
7805 lt_prog_compiler_pic='-Kconform_pic'
7806 lt_prog_compiler_static='-Bstatic'
7807 fi
7808 ;;
7809
7810 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7811 lt_prog_compiler_wl='-Wl,'
7812 lt_prog_compiler_pic='-KPIC'
7813 lt_prog_compiler_static='-Bstatic'
7814 ;;
7815
7816 unicos*)
7817 lt_prog_compiler_wl='-Wl,'
7818 lt_prog_compiler_can_build_shared=no
7819 ;;
7820
7821 uts4*)
7822 lt_prog_compiler_pic='-pic'
7823 lt_prog_compiler_static='-Bstatic'
7824 ;;
7825
7826 *)
7827 lt_prog_compiler_can_build_shared=no
7828 ;;
7829 esac
7830 fi
7831
64ff59ba 7832{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7833echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
d9898ee8 7834
7835#
7836# Check to make sure the PIC flag actually works.
7837#
7838if test -n "$lt_prog_compiler_pic"; then
7839
64ff59ba 7840{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7841echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
d9898ee8 7842if test "${lt_prog_compiler_pic_works+set}" = set; then
7843 echo $ECHO_N "(cached) $ECHO_C" >&6
7844else
7845 lt_prog_compiler_pic_works=no
7846 ac_outfile=conftest.$ac_objext
0fde1ce3 7847 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 7848 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7849 # Insert the option either (1) after the last *FLAGS variable, or
7850 # (2) before a word containing "conftest.", or (3) at the end.
7851 # Note that $ac_compile itself does not contain backslashes and begins
7852 # with a dollar sign (not a hyphen), so the echo should work correctly.
7853 # The option is referenced via a variable to avoid confusing sed.
7854 lt_compile=`echo "$ac_compile" | $SED \
7855 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7856 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7857 -e 's:$: $lt_compiler_flag:'`
0fde1ce3 7858 (eval echo "\"\$as_me:7858: $lt_compile\"" >&5)
d9898ee8 7859 (eval "$lt_compile" 2>conftest.err)
7860 ac_status=$?
7861 cat conftest.err >&5
0fde1ce3 7862 echo "$as_me:7862: \$? = $ac_status" >&5
d9898ee8 7863 if (exit $ac_status) && test -s "$ac_outfile"; then
7864 # The compiler can only warn and ignore the option if not recognized
7865 # So say no if there are warnings other than the usual output.
7866 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7867 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7868 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7869 lt_prog_compiler_pic_works=yes
7870 fi
7871 fi
7872 $rm conftest*
7873
7874fi
64ff59ba 7875{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7876echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
d9898ee8 7877
7878if test x"$lt_prog_compiler_pic_works" = xyes; then
7879 case $lt_prog_compiler_pic in
7880 "" | " "*) ;;
7881 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7882 esac
7883else
7884 lt_prog_compiler_pic=
7885 lt_prog_compiler_can_build_shared=no
7886fi
7887
7888fi
7889case $host_os in
7890 # For platforms which do not support PIC, -DPIC is meaningless:
7891 *djgpp*)
7892 lt_prog_compiler_pic=
7893 ;;
7894 *)
7895 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7896 ;;
7897esac
7898
7899#
7900# Check to make sure the static flag actually works.
7901#
7902wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
64ff59ba 7903{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7904echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 7905if test "${lt_prog_compiler_static_works+set}" = set; then
7906 echo $ECHO_N "(cached) $ECHO_C" >&6
7907else
7908 lt_prog_compiler_static_works=no
7909 save_LDFLAGS="$LDFLAGS"
7910 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
0fde1ce3 7911 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 7912 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7913 # The linker can only warn and ignore the option if not recognized
7914 # So say no if there are warnings
7915 if test -s conftest.err; then
7916 # Append any errors to the config.log.
7917 cat conftest.err 1>&5
7918 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7919 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7920 if diff conftest.exp conftest.er2 >/dev/null; then
7921 lt_prog_compiler_static_works=yes
7922 fi
7923 else
7924 lt_prog_compiler_static_works=yes
7925 fi
7926 fi
7927 $rm conftest*
7928 LDFLAGS="$save_LDFLAGS"
7929
7930fi
64ff59ba 7931{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7932echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
d9898ee8 7933
7934if test x"$lt_prog_compiler_static_works" = xyes; then
7935 :
7936else
7937 lt_prog_compiler_static=
7938fi
7939
7940
64ff59ba 7941{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7942echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 7943if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7945else
7946 lt_cv_prog_compiler_c_o=no
7947 $rm -r conftest 2>/dev/null
7948 mkdir conftest
7949 cd conftest
7950 mkdir out
0fde1ce3 7951 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 7952
7953 lt_compiler_flag="-o out/conftest2.$ac_objext"
7954 # Insert the option either (1) after the last *FLAGS variable, or
7955 # (2) before a word containing "conftest.", or (3) at the end.
7956 # Note that $ac_compile itself does not contain backslashes and begins
7957 # with a dollar sign (not a hyphen), so the echo should work correctly.
7958 lt_compile=`echo "$ac_compile" | $SED \
7959 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7960 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7961 -e 's:$: $lt_compiler_flag:'`
0fde1ce3 7962 (eval echo "\"\$as_me:7962: $lt_compile\"" >&5)
d9898ee8 7963 (eval "$lt_compile" 2>out/conftest.err)
7964 ac_status=$?
7965 cat out/conftest.err >&5
0fde1ce3 7966 echo "$as_me:7966: \$? = $ac_status" >&5
d9898ee8 7967 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7968 then
7969 # The compiler can only warn and ignore the option if not recognized
7970 # So say no if there are warnings
7971 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7972 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7973 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7974 lt_cv_prog_compiler_c_o=yes
7975 fi
7976 fi
7977 chmod u+w . 2>&5
7978 $rm conftest*
7979 # SGI C++ compiler will create directory out/ii_files/ for
7980 # template instantiation
7981 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7982 $rm out/* && rmdir out
7983 cd ..
7984 rmdir conftest
7985 $rm conftest*
7986
7987fi
64ff59ba 7988{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7989echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 7990
7991
7992hard_links="nottested"
7993if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7994 # do not overwrite the value of need_locks provided by the user
64ff59ba 7995 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7996echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 7997 hard_links=yes
7998 $rm conftest*
7999 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8000 touch conftest.a
8001 ln conftest.a conftest.b 2>&5 || hard_links=no
8002 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 8003 { echo "$as_me:$LINENO: result: $hard_links" >&5
8004echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 8005 if test "$hard_links" = no; then
8006 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8007echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8008 need_locks=warn
8009 fi
8010else
8011 need_locks=no
8012fi
8013
64ff59ba 8014{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8015echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 8016
8017 runpath_var=
8018 allow_undefined_flag=
8019 enable_shared_with_static_runtimes=no
8020 archive_cmds=
8021 archive_expsym_cmds=
8022 old_archive_From_new_cmds=
8023 old_archive_from_expsyms_cmds=
8024 export_dynamic_flag_spec=
8025 whole_archive_flag_spec=
8026 thread_safe_flag_spec=
8027 hardcode_libdir_flag_spec=
8028 hardcode_libdir_flag_spec_ld=
8029 hardcode_libdir_separator=
8030 hardcode_direct=no
8031 hardcode_minus_L=no
8032 hardcode_shlibpath_var=unsupported
8033 link_all_deplibs=unknown
8034 hardcode_automatic=no
8035 module_cmds=
8036 module_expsym_cmds=
8037 always_export_symbols=no
8038 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8039 # include_expsyms should be a list of space-separated symbols to be *always*
8040 # included in the symbol list
8041 include_expsyms=
8042 # exclude_expsyms can be an extended regexp of symbols to exclude
8043 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8044 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8045 # as well as any symbol that contains `d'.
8046 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8047 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8048 # platforms (ab)use it in PIC code, but their linkers get confused if
8049 # the symbol is explicitly referenced. Since portable code cannot
8050 # rely on this symbol name, it's probably fine to never include it in
8051 # preloaded symbol tables.
8052 extract_expsyms_cmds=
8053 # Just being paranoid about ensuring that cc_basename is set.
8054 for cc_temp in $compiler""; do
8055 case $cc_temp in
8056 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8057 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8058 \-*) ;;
8059 *) break;;
8060 esac
8061done
8062cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8063
8064 case $host_os in
8065 cygwin* | mingw* | pw32*)
8066 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8067 # When not using gcc, we currently assume that we are using
8068 # Microsoft Visual C++.
8069 if test "$GCC" != yes; then
8070 with_gnu_ld=no
8071 fi
8072 ;;
8073 interix*)
8074 # we just hope/assume this is gcc and not c89 (= MSVC++)
8075 with_gnu_ld=yes
8076 ;;
8077 openbsd*)
8078 with_gnu_ld=no
8079 ;;
8080 esac
8081
8082 ld_shlibs=yes
8083 if test "$with_gnu_ld" = yes; then
8084 # If archive_cmds runs LD, not CC, wlarc should be empty
8085 wlarc='${wl}'
8086
8087 # Set some defaults for GNU ld with shared library support. These
8088 # are reset later if shared libraries are not supported. Putting them
8089 # here allows them to be overridden if necessary.
8090 runpath_var=LD_RUN_PATH
8091 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8092 export_dynamic_flag_spec='${wl}--export-dynamic'
8093 # ancient GNU ld didn't support --whole-archive et. al.
8094 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8095 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8096 else
8097 whole_archive_flag_spec=
8098 fi
8099 supports_anon_versioning=no
8100 case `$LD -v 2>/dev/null` in
8101 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8102 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8103 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8104 *\ 2.11.*) ;; # other 2.11 versions
8105 *) supports_anon_versioning=yes ;;
8106 esac
8107
8108 # See if GNU ld supports shared libraries.
8109 case $host_os in
8110 aix3* | aix4* | aix5*)
8111 # On AIX/PPC, the GNU linker is very broken
8112 if test "$host_cpu" != ia64; then
8113 ld_shlibs=no
8114 cat <<EOF 1>&2
8115
8116*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8117*** to be unable to reliably create shared libraries on AIX.
8118*** Therefore, libtool is disabling shared libraries support. If you
8119*** really care for shared libraries, you may want to modify your PATH
8120*** so that a non-GNU linker is found, and then restart.
8121
8122EOF
8123 fi
8124 ;;
8125
8126 amigaos*)
8127 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)'
8128 hardcode_libdir_flag_spec='-L$libdir'
8129 hardcode_minus_L=yes
8130
8131 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8132 # that the semantics of dynamic libraries on AmigaOS, at least up
8133 # to version 4, is to share data among multiple programs linked
8134 # with the same dynamic library. Since this doesn't match the
8135 # behavior of shared libraries on other platforms, we can't use
8136 # them.
8137 ld_shlibs=no
8138 ;;
8139
8140 beos*)
8141 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8142 allow_undefined_flag=unsupported
8143 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8144 # support --undefined. This deserves some investigation. FIXME
8145 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8146 else
8147 ld_shlibs=no
8148 fi
8149 ;;
8150
8151 cygwin* | mingw* | pw32*)
8152 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8153 # as there is no search path for DLLs.
8154 hardcode_libdir_flag_spec='-L$libdir'
8155 allow_undefined_flag=unsupported
8156 always_export_symbols=no
8157 enable_shared_with_static_runtimes=yes
0fde1ce3 8158 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d9898ee8 8159
8160 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8161 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8162 # If the export-symbols file already is a .def file (1st line
8163 # is EXPORTS), use it as is; otherwise, prepend...
8164 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8165 cp $export_symbols $output_objdir/$soname.def;
8166 else
8167 echo EXPORTS > $output_objdir/$soname.def;
8168 cat $export_symbols >> $output_objdir/$soname.def;
8169 fi~
8170 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8171 else
8172 ld_shlibs=no
8173 fi
8174 ;;
8175
0fde1ce3 8176 interix[3-9]*)
d9898ee8 8177 hardcode_direct=no
8178 hardcode_shlibpath_var=no
8179 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8180 export_dynamic_flag_spec='${wl}-E'
8181 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8182 # Instead, shared libraries are loaded at an image base (0x10000000 by
8183 # default) and relocated if they conflict, which is a slow very memory
8184 # consuming and fragmenting process. To avoid this, we pick a random,
8185 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8186 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8187 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8188 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'
8189 ;;
8190
0fde1ce3 8191 gnu* | linux* | k*bsd*-gnu)
d9898ee8 8192 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8193 tmp_addflag=
8194 case $cc_basename,$host_cpu in
8195 pgcc*) # Portland Group C compiler
8196 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'
8197 tmp_addflag=' $pic_flag'
8198 ;;
8199 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8200 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'
8201 tmp_addflag=' $pic_flag -Mnomain' ;;
8202 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8203 tmp_addflag=' -i_dynamic' ;;
8204 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8205 tmp_addflag=' -i_dynamic -nofor_main' ;;
8206 ifc* | ifort*) # Intel Fortran compiler
8207 tmp_addflag=' -nofor_main' ;;
8208 esac
0fde1ce3 8209 case `$CC -V 2>&1 | sed 5q` in
8210 *Sun\ C*) # Sun C 5.9
8211 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'
8212 tmp_sharedflag='-G' ;;
8213 *Sun\ F*) # Sun Fortran 8.3
8214 tmp_sharedflag='-G' ;;
8215 *)
8216 tmp_sharedflag='-shared' ;;
8217 esac
8218 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 8219
8220 if test $supports_anon_versioning = yes; then
8221 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8222 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8223 $echo "local: *; };" >> $output_objdir/$libname.ver~
0fde1ce3 8224 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
d9898ee8 8225 fi
8226 else
8227 ld_shlibs=no
8228 fi
8229 ;;
8230
8231 netbsd*)
8232 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8233 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8234 wlarc=
8235 else
8236 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8237 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8238 fi
8239 ;;
8240
8241 solaris*)
8242 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8243 ld_shlibs=no
8244 cat <<EOF 1>&2
8245
8246*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8247*** create shared libraries on Solaris systems. Therefore, libtool
8248*** is disabling shared libraries support. We urge you to upgrade GNU
8249*** binutils to release 2.9.1 or newer. Another option is to modify
8250*** your PATH or compiler configuration so that the native linker is
8251*** used, and then restart.
8252
8253EOF
8254 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8255 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8256 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8257 else
8258 ld_shlibs=no
8259 fi
8260 ;;
8261
8262 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8263 case `$LD -v 2>&1` in
8264 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8265 ld_shlibs=no
8266 cat <<_LT_EOF 1>&2
8267
8268*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8269*** reliably create shared libraries on SCO systems. Therefore, libtool
8270*** is disabling shared libraries support. We urge you to upgrade GNU
8271*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8272*** your PATH or compiler configuration so that the native linker is
8273*** used, and then restart.
8274
8275_LT_EOF
8276 ;;
8277 *)
8278 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8279 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8280 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8281 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8282 else
8283 ld_shlibs=no
8284 fi
8285 ;;
8286 esac
8287 ;;
8288
8289 sunos4*)
8290 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8291 wlarc=
8292 hardcode_direct=yes
8293 hardcode_shlibpath_var=no
8294 ;;
8295
8296 *)
8297 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8298 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8299 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8300 else
8301 ld_shlibs=no
8302 fi
8303 ;;
8304 esac
8305
8306 if test "$ld_shlibs" = no; then
8307 runpath_var=
8308 hardcode_libdir_flag_spec=
8309 export_dynamic_flag_spec=
8310 whole_archive_flag_spec=
8311 fi
8312 else
8313 # PORTME fill in a description of your system's linker (not GNU ld)
8314 case $host_os in
8315 aix3*)
8316 allow_undefined_flag=unsupported
8317 always_export_symbols=yes
8318 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'
8319 # Note: this linker hardcodes the directories in LIBPATH if there
8320 # are no directories specified by -L.
8321 hardcode_minus_L=yes
8322 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8323 # Neither direct hardcoding nor static linking is supported with a
8324 # broken collect2.
8325 hardcode_direct=unsupported
8326 fi
8327 ;;
8328
8329 aix4* | aix5*)
8330 if test "$host_cpu" = ia64; then
8331 # On IA64, the linker does run time linking by default, so we don't
8332 # have to do anything special.
8333 aix_use_runtimelinking=no
8334 exp_sym_flag='-Bexport'
8335 no_entry_flag=""
8336 else
8337 # If we're using GNU nm, then we don't want the "-C" option.
8338 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8339 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8340 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'
8341 else
8342 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'
8343 fi
8344 aix_use_runtimelinking=no
8345
8346 # Test if we are trying to use run time linking or normal
8347 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8348 # need to do runtime linking.
8349 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8350 for ld_flag in $LDFLAGS; do
8351 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8352 aix_use_runtimelinking=yes
8353 break
8354 fi
8355 done
8356 ;;
8357 esac
8358
8359 exp_sym_flag='-bexport'
8360 no_entry_flag='-bnoentry'
8361 fi
8362
8363 # When large executables or shared objects are built, AIX ld can
8364 # have problems creating the table of contents. If linking a library
8365 # or program results in "error TOC overflow" add -mminimal-toc to
8366 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8367 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8368
8369 archive_cmds=''
8370 hardcode_direct=yes
8371 hardcode_libdir_separator=':'
8372 link_all_deplibs=yes
8373
8374 if test "$GCC" = yes; then
8375 case $host_os in aix4.[012]|aix4.[012].*)
8376 # We only want to do this on AIX 4.2 and lower, the check
8377 # below for broken collect2 doesn't work under 4.3+
8378 collect2name=`${CC} -print-prog-name=collect2`
8379 if test -f "$collect2name" && \
8380 strings "$collect2name" | grep resolve_lib_name >/dev/null
8381 then
8382 # We have reworked collect2
0fde1ce3 8383 :
d9898ee8 8384 else
8385 # We have old collect2
8386 hardcode_direct=unsupported
8387 # It fails to find uninstalled libraries when the uninstalled
8388 # path is not listed in the libpath. Setting hardcode_minus_L
8389 # to unsupported forces relinking
8390 hardcode_minus_L=yes
8391 hardcode_libdir_flag_spec='-L$libdir'
8392 hardcode_libdir_separator=
8393 fi
8394 ;;
8395 esac
8396 shared_flag='-shared'
8397 if test "$aix_use_runtimelinking" = yes; then
8398 shared_flag="$shared_flag "'${wl}-G'
8399 fi
8400 else
8401 # not using gcc
8402 if test "$host_cpu" = ia64; then
8403 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8404 # chokes on -Wl,-G. The following line is correct:
8405 shared_flag='-G'
8406 else
8407 if test "$aix_use_runtimelinking" = yes; then
8408 shared_flag='${wl}-G'
8409 else
8410 shared_flag='${wl}-bM:SRE'
8411 fi
8412 fi
8413 fi
8414
8415 # It seems that -bexpall does not export symbols beginning with
8416 # underscore (_), so it is better to generate a list of symbols to export.
8417 always_export_symbols=yes
8418 if test "$aix_use_runtimelinking" = yes; then
8419 # Warning - without using the other runtime loading flags (-brtl),
8420 # -berok will link without error, but may produce a broken library.
8421 allow_undefined_flag='-berok'
8422 # Determine the default libpath from the value encoded in an empty executable.
8423 cat >conftest.$ac_ext <<_ACEOF
8424/* confdefs.h. */
8425_ACEOF
8426cat confdefs.h >>conftest.$ac_ext
8427cat >>conftest.$ac_ext <<_ACEOF
8428/* end confdefs.h. */
8429
8430int
8431main ()
8432{
8433
8434 ;
8435 return 0;
8436}
8437_ACEOF
8438rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 8439if { (ac_try="$ac_link"
8440case "(($ac_try" in
8441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8442 *) ac_try_echo=$ac_try;;
8443esac
8444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8445 (eval "$ac_link") 2>conftest.er1
d9898ee8 8446 ac_status=$?
8447 grep -v '^ *+' conftest.er1 >conftest.err
8448 rm -f conftest.er1
8449 cat conftest.err >&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 8451 (exit $ac_status); } && {
8452 test -z "$ac_c_werror_flag" ||
8453 test ! -s conftest.err
8454 } && test -s conftest$ac_exeext &&
8455 $as_test_x conftest$ac_exeext; then
d9898ee8 8456
0fde1ce3 8457lt_aix_libpath_sed='
8458 /Import File Strings/,/^$/ {
8459 /^0/ {
8460 s/^0 *\(.*\)$/\1/
8461 p
8462 }
8463 }'
8464aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 8465# Check for a 64-bit object if we didn't find anything.
0fde1ce3 8466if test -z "$aix_libpath"; then
8467 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8468fi
d9898ee8 8469else
8470 echo "$as_me: failed program was:" >&5
8471sed 's/^/| /' conftest.$ac_ext >&5
8472
64ff59ba 8473
d9898ee8 8474fi
64ff59ba 8475
8476rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8477 conftest$ac_exeext conftest.$ac_ext
8478if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8479
8480 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8481 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"
8482 else
8483 if test "$host_cpu" = ia64; then
8484 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8485 allow_undefined_flag="-z nodefs"
8486 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"
8487 else
8488 # Determine the default libpath from the value encoded in an empty executable.
8489 cat >conftest.$ac_ext <<_ACEOF
8490/* confdefs.h. */
8491_ACEOF
8492cat confdefs.h >>conftest.$ac_ext
8493cat >>conftest.$ac_ext <<_ACEOF
8494/* end confdefs.h. */
8495
8496int
8497main ()
8498{
8499
8500 ;
8501 return 0;
8502}
8503_ACEOF
8504rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 8505if { (ac_try="$ac_link"
8506case "(($ac_try" in
8507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8508 *) ac_try_echo=$ac_try;;
8509esac
8510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8511 (eval "$ac_link") 2>conftest.er1
d9898ee8 8512 ac_status=$?
8513 grep -v '^ *+' conftest.er1 >conftest.err
8514 rm -f conftest.er1
8515 cat conftest.err >&5
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 8517 (exit $ac_status); } && {
8518 test -z "$ac_c_werror_flag" ||
8519 test ! -s conftest.err
8520 } && test -s conftest$ac_exeext &&
8521 $as_test_x conftest$ac_exeext; then
d9898ee8 8522
0fde1ce3 8523lt_aix_libpath_sed='
8524 /Import File Strings/,/^$/ {
8525 /^0/ {
8526 s/^0 *\(.*\)$/\1/
8527 p
8528 }
8529 }'
8530aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 8531# Check for a 64-bit object if we didn't find anything.
0fde1ce3 8532if test -z "$aix_libpath"; then
8533 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8534fi
d9898ee8 8535else
8536 echo "$as_me: failed program was:" >&5
8537sed 's/^/| /' conftest.$ac_ext >&5
8538
64ff59ba 8539
d9898ee8 8540fi
64ff59ba 8541
8542rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8543 conftest$ac_exeext conftest.$ac_ext
8544if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8545
8546 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8547 # Warning - without using the other run time loading flags,
8548 # -berok will link without error, but may produce a broken library.
8549 no_undefined_flag=' ${wl}-bernotok'
8550 allow_undefined_flag=' ${wl}-berok'
8551 # Exported symbols can be pulled into shared objects from archives
8552 whole_archive_flag_spec='$convenience'
8553 archive_cmds_need_lc=yes
8554 # This is similar to how AIX traditionally builds its shared libraries.
8555 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'
8556 fi
8557 fi
8558 ;;
8559
8560 amigaos*)
8561 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)'
8562 hardcode_libdir_flag_spec='-L$libdir'
8563 hardcode_minus_L=yes
8564 # see comment about different semantics on the GNU ld section
8565 ld_shlibs=no
8566 ;;
8567
8568 bsdi[45]*)
8569 export_dynamic_flag_spec=-rdynamic
8570 ;;
8571
8572 cygwin* | mingw* | pw32*)
8573 # When not using gcc, we currently assume that we are using
8574 # Microsoft Visual C++.
8575 # hardcode_libdir_flag_spec is actually meaningless, as there is
8576 # no search path for DLLs.
8577 hardcode_libdir_flag_spec=' '
8578 allow_undefined_flag=unsupported
8579 # Tell ltmain to make .lib files, not .a files.
8580 libext=lib
8581 # Tell ltmain to make .dll files, not .so files.
8582 shrext_cmds=".dll"
8583 # FIXME: Setting linknames here is a bad hack.
8584 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8585 # The linker will automatically build a .lib file if we build a DLL.
8586 old_archive_From_new_cmds='true'
8587 # FIXME: Should let the user specify the lib program.
0fde1ce3 8588 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
d9898ee8 8589 fix_srcfile_path='`cygpath -w "$srcfile"`'
8590 enable_shared_with_static_runtimes=yes
8591 ;;
8592
8593 darwin* | rhapsody*)
8594 case $host_os in
8595 rhapsody* | darwin1.[012])
8596 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8597 ;;
8598 *) # Darwin 1.3 on
8599 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8600 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8601 else
8602 case ${MACOSX_DEPLOYMENT_TARGET} in
8603 10.[012])
8604 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8605 ;;
8606 10.*)
8607 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8608 ;;
8609 esac
8610 fi
8611 ;;
8612 esac
8613 archive_cmds_need_lc=no
8614 hardcode_direct=no
8615 hardcode_automatic=yes
8616 hardcode_shlibpath_var=unsupported
8617 whole_archive_flag_spec=''
8618 link_all_deplibs=yes
8619 if test "$GCC" = yes ; then
8620 output_verbose_link_cmd='echo'
8621 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8622 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8623 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8624 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8625 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}'
8626 else
8627 case $cc_basename in
8628 xlc*)
8629 output_verbose_link_cmd='echo'
0fde1ce3 8630 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
d9898ee8 8631 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8632 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
0fde1ce3 8633 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}'
d9898ee8 8634 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}'
8635 ;;
8636 *)
8637 ld_shlibs=no
8638 ;;
8639 esac
8640 fi
8641 ;;
8642
8643 dgux*)
8644 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8645 hardcode_libdir_flag_spec='-L$libdir'
8646 hardcode_shlibpath_var=no
8647 ;;
8648
8649 freebsd1*)
8650 ld_shlibs=no
8651 ;;
8652
8653 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8654 # support. Future versions do this automatically, but an explicit c++rt0.o
8655 # does not break anything, and helps significantly (at the cost of a little
8656 # extra space).
8657 freebsd2.2*)
8658 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8659 hardcode_libdir_flag_spec='-R$libdir'
8660 hardcode_direct=yes
8661 hardcode_shlibpath_var=no
8662 ;;
8663
8664 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8665 freebsd2*)
8666 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8667 hardcode_direct=yes
8668 hardcode_minus_L=yes
8669 hardcode_shlibpath_var=no
8670 ;;
8671
8672 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
0fde1ce3 8673 freebsd* | dragonfly*)
d9898ee8 8674 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8675 hardcode_libdir_flag_spec='-R$libdir'
8676 hardcode_direct=yes
8677 hardcode_shlibpath_var=no
8678 ;;
8679
8680 hpux9*)
8681 if test "$GCC" = yes; then
8682 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'
8683 else
8684 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'
8685 fi
8686 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8687 hardcode_libdir_separator=:
8688 hardcode_direct=yes
8689
8690 # hardcode_minus_L: Not really in the search PATH,
8691 # but as the default location of the library.
8692 hardcode_minus_L=yes
8693 export_dynamic_flag_spec='${wl}-E'
8694 ;;
8695
8696 hpux10*)
8697 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8698 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8699 else
8700 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8701 fi
8702 if test "$with_gnu_ld" = no; then
8703 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8704 hardcode_libdir_separator=:
8705
8706 hardcode_direct=yes
8707 export_dynamic_flag_spec='${wl}-E'
8708
8709 # hardcode_minus_L: Not really in the search PATH,
8710 # but as the default location of the library.
8711 hardcode_minus_L=yes
8712 fi
8713 ;;
8714
8715 hpux11*)
8716 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8717 case $host_cpu in
8718 hppa*64*)
8719 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8720 ;;
8721 ia64*)
8722 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8723 ;;
8724 *)
8725 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8726 ;;
8727 esac
8728 else
8729 case $host_cpu in
8730 hppa*64*)
8731 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8732 ;;
8733 ia64*)
8734 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8735 ;;
8736 *)
8737 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8738 ;;
8739 esac
8740 fi
8741 if test "$with_gnu_ld" = no; then
8742 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8743 hardcode_libdir_separator=:
8744
8745 case $host_cpu in
8746 hppa*64*|ia64*)
8747 hardcode_libdir_flag_spec_ld='+b $libdir'
8748 hardcode_direct=no
8749 hardcode_shlibpath_var=no
8750 ;;
8751 *)
8752 hardcode_direct=yes
8753 export_dynamic_flag_spec='${wl}-E'
8754
8755 # hardcode_minus_L: Not really in the search PATH,
8756 # but as the default location of the library.
8757 hardcode_minus_L=yes
8758 ;;
8759 esac
8760 fi
8761 ;;
8762
8763 irix5* | irix6* | nonstopux*)
8764 if test "$GCC" = yes; then
8765 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'
8766 else
8767 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'
8768 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8769 fi
8770 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8771 hardcode_libdir_separator=:
8772 link_all_deplibs=yes
8773 ;;
8774
8775 netbsd*)
8776 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8777 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8778 else
8779 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8780 fi
8781 hardcode_libdir_flag_spec='-R$libdir'
8782 hardcode_direct=yes
8783 hardcode_shlibpath_var=no
8784 ;;
8785
8786 newsos6)
8787 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8788 hardcode_direct=yes
8789 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8790 hardcode_libdir_separator=:
8791 hardcode_shlibpath_var=no
8792 ;;
8793
8794 openbsd*)
0fde1ce3 8795 if test -f /usr/libexec/ld.so; then
8796 hardcode_direct=yes
8797 hardcode_shlibpath_var=no
8798 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8799 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8800 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8801 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8802 export_dynamic_flag_spec='${wl}-E'
8803 else
8804 case $host_os in
8805 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8806 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8807 hardcode_libdir_flag_spec='-R$libdir'
8808 ;;
8809 *)
8810 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8811 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8812 ;;
8813 esac
8814 fi
d9898ee8 8815 else
0fde1ce3 8816 ld_shlibs=no
d9898ee8 8817 fi
8818 ;;
8819
8820 os2*)
8821 hardcode_libdir_flag_spec='-L$libdir'
8822 hardcode_minus_L=yes
8823 allow_undefined_flag=unsupported
8824 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'
8825 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8826 ;;
8827
8828 osf3*)
8829 if test "$GCC" = yes; then
8830 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8831 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'
8832 else
8833 allow_undefined_flag=' -expect_unresolved \*'
8834 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'
8835 fi
8836 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8837 hardcode_libdir_separator=:
8838 ;;
8839
8840 osf4* | osf5*) # as osf3* with the addition of -msym flag
8841 if test "$GCC" = yes; then
8842 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8843 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'
8844 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8845 else
8846 allow_undefined_flag=' -expect_unresolved \*'
8847 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'
8848 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8849 $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'
8850
8851 # Both c and cxx compiler support -rpath directly
8852 hardcode_libdir_flag_spec='-rpath $libdir'
8853 fi
8854 hardcode_libdir_separator=:
8855 ;;
8856
8857 solaris*)
8858 no_undefined_flag=' -z text'
8859 if test "$GCC" = yes; then
8860 wlarc='${wl}'
8861 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8862 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8863 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8864 else
8865 wlarc=''
8866 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8867 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8868 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8869 fi
8870 hardcode_libdir_flag_spec='-R$libdir'
8871 hardcode_shlibpath_var=no
8872 case $host_os in
8873 solaris2.[0-5] | solaris2.[0-5].*) ;;
8874 *)
0fde1ce3 8875 # The compiler driver will combine and reorder linker options,
8876 # but understands `-z linker_flag'. GCC discards it without `$wl',
8877 # but is careful enough not to reorder.
d9898ee8 8878 # Supported since Solaris 2.6 (maybe 2.5.1?)
0fde1ce3 8879 if test "$GCC" = yes; then
8880 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8881 else
8882 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8883 fi
8884 ;;
d9898ee8 8885 esac
8886 link_all_deplibs=yes
8887 ;;
8888
8889 sunos4*)
8890 if test "x$host_vendor" = xsequent; then
8891 # Use $CC to link under sequent, because it throws in some extra .o
8892 # files that make .init and .fini sections work.
8893 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8894 else
8895 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8896 fi
8897 hardcode_libdir_flag_spec='-L$libdir'
8898 hardcode_direct=yes
8899 hardcode_minus_L=yes
8900 hardcode_shlibpath_var=no
8901 ;;
8902
8903 sysv4)
8904 case $host_vendor in
8905 sni)
8906 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8907 hardcode_direct=yes # is this really true???
8908 ;;
8909 siemens)
8910 ## LD is ld it makes a PLAMLIB
8911 ## CC just makes a GrossModule.
8912 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8913 reload_cmds='$CC -r -o $output$reload_objs'
8914 hardcode_direct=no
8915 ;;
8916 motorola)
8917 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8918 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8919 ;;
8920 esac
8921 runpath_var='LD_RUN_PATH'
8922 hardcode_shlibpath_var=no
8923 ;;
8924
8925 sysv4.3*)
8926 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8927 hardcode_shlibpath_var=no
8928 export_dynamic_flag_spec='-Bexport'
8929 ;;
8930
8931 sysv4*MP*)
8932 if test -d /usr/nec; then
8933 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8934 hardcode_shlibpath_var=no
8935 runpath_var=LD_RUN_PATH
8936 hardcode_runpath_var=yes
8937 ld_shlibs=yes
8938 fi
8939 ;;
8940
0fde1ce3 8941 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
d9898ee8 8942 no_undefined_flag='${wl}-z,text'
8943 archive_cmds_need_lc=no
8944 hardcode_shlibpath_var=no
8945 runpath_var='LD_RUN_PATH'
8946
8947 if test "$GCC" = yes; then
8948 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8949 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8950 else
8951 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8952 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8953 fi
8954 ;;
8955
8956 sysv5* | sco3.2v5* | sco5v6*)
8957 # Note: We can NOT use -z defs as we might desire, because we do not
8958 # link with -lc, and that would cause any symbols used from libc to
8959 # always be unresolved, which means just about no library would
8960 # ever link correctly. If we're not using GNU ld we use -z text
8961 # though, which does catch some bad symbols but isn't as heavy-handed
8962 # as -z defs.
8963 no_undefined_flag='${wl}-z,text'
8964 allow_undefined_flag='${wl}-z,nodefs'
8965 archive_cmds_need_lc=no
8966 hardcode_shlibpath_var=no
8967 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8968 hardcode_libdir_separator=':'
8969 link_all_deplibs=yes
8970 export_dynamic_flag_spec='${wl}-Bexport'
8971 runpath_var='LD_RUN_PATH'
8972
8973 if test "$GCC" = yes; then
8974 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8975 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8976 else
8977 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8978 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8979 fi
8980 ;;
8981
8982 uts4*)
8983 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8984 hardcode_libdir_flag_spec='-L$libdir'
8985 hardcode_shlibpath_var=no
8986 ;;
8987
8988 *)
8989 ld_shlibs=no
8990 ;;
8991 esac
8992 fi
8993
64ff59ba 8994{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8995echo "${ECHO_T}$ld_shlibs" >&6; }
d9898ee8 8996test "$ld_shlibs" = no && can_build_shared=no
8997
8998#
8999# Do we need to explicitly link libc?
9000#
9001case "x$archive_cmds_need_lc" in
9002x|xyes)
9003 # Assume -lc should be added
9004 archive_cmds_need_lc=yes
9005
9006 if test "$enable_shared" = yes && test "$GCC" = yes; then
9007 case $archive_cmds in
9008 *'~'*)
9009 # FIXME: we may have to deal with multi-command sequences.
9010 ;;
9011 '$CC '*)
9012 # Test whether the compiler implicitly links with -lc since on some
9013 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9014 # to ld, don't add -lc before -lgcc.
64ff59ba 9015 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9016echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 9017 $rm conftest*
0fde1ce3 9018 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 9019
9020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9021 (eval $ac_compile) 2>&5
9022 ac_status=$?
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); } 2>conftest.err; then
9025 soname=conftest
9026 lib=conftest
9027 libobjs=conftest.$ac_objext
9028 deplibs=
9029 wl=$lt_prog_compiler_wl
9030 pic_flag=$lt_prog_compiler_pic
9031 compiler_flags=-v
9032 linker_flags=-v
9033 verstring=
9034 output_objdir=.
9035 libname=conftest
9036 lt_save_allow_undefined_flag=$allow_undefined_flag
9037 allow_undefined_flag=
9038 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9039 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9040 ac_status=$?
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); }
9043 then
9044 archive_cmds_need_lc=no
9045 else
9046 archive_cmds_need_lc=yes
9047 fi
9048 allow_undefined_flag=$lt_save_allow_undefined_flag
9049 else
9050 cat conftest.err 1>&5
9051 fi
9052 $rm conftest*
64ff59ba 9053 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9054echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
d9898ee8 9055 ;;
9056 esac
9057 fi
9058 ;;
9059esac
9060
64ff59ba 9061{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9062echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 9063library_names_spec=
9064libname_spec='lib$name'
9065soname_spec=
9066shrext_cmds=".so"
9067postinstall_cmds=
9068postuninstall_cmds=
9069finish_cmds=
9070finish_eval=
9071shlibpath_var=
9072shlibpath_overrides_runpath=unknown
9073version_type=none
9074dynamic_linker="$host_os ld.so"
9075sys_lib_dlsearch_path_spec="/lib /usr/lib"
0fde1ce3 9076
d9898ee8 9077if test "$GCC" = yes; then
0fde1ce3 9078 case $host_os in
9079 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9080 *) lt_awk_arg="/^libraries:/" ;;
9081 esac
9082 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9083 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
d9898ee8 9084 # if the path contains ";" then we assume it to be the separator
9085 # otherwise default to the standard path separator (i.e. ":") - it is
9086 # assumed that no part of a normal pathname contains ";" but that should
9087 # okay in the real world where ";" in dirpaths is itself problematic.
0fde1ce3 9088 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
d9898ee8 9089 else
0fde1ce3 9090 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
d9898ee8 9091 fi
0fde1ce3 9092 # Ok, now we have the path, separated by spaces, we can step through it
9093 # and add multilib dir if necessary.
9094 lt_tmp_lt_search_path_spec=
9095 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9096 for lt_sys_path in $lt_search_path_spec; do
9097 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9098 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9099 else
9100 test -d "$lt_sys_path" && \
9101 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9102 fi
9103 done
9104 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9105BEGIN {RS=" "; FS="/|\n";} {
9106 lt_foo="";
9107 lt_count=0;
9108 for (lt_i = NF; lt_i > 0; lt_i--) {
9109 if ($lt_i != "" && $lt_i != ".") {
9110 if ($lt_i == "..") {
9111 lt_count++;
9112 } else {
9113 if (lt_count == 0) {
9114 lt_foo="/" $lt_i lt_foo;
9115 } else {
9116 lt_count--;
9117 }
9118 }
9119 }
9120 }
9121 if (lt_foo != "") { lt_freq[lt_foo]++; }
9122 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9123}'`
9124 sys_lib_search_path_spec=`echo $lt_search_path_spec`
d9898ee8 9125else
9126 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9127fi
9128need_lib_prefix=unknown
9129hardcode_into_libs=no
9130
9131# when you set need_version to no, make sure it does not cause -set_version
9132# flags to be left without arguments
9133need_version=unknown
9134
9135case $host_os in
9136aix3*)
9137 version_type=linux
9138 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9139 shlibpath_var=LIBPATH
9140
9141 # AIX 3 has no versioning support, so we append a major version to the name.
9142 soname_spec='${libname}${release}${shared_ext}$major'
9143 ;;
9144
9145aix4* | aix5*)
9146 version_type=linux
9147 need_lib_prefix=no
9148 need_version=no
9149 hardcode_into_libs=yes
9150 if test "$host_cpu" = ia64; then
9151 # AIX 5 supports IA64
9152 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9153 shlibpath_var=LD_LIBRARY_PATH
9154 else
9155 # With GCC up to 2.95.x, collect2 would create an import file
9156 # for dependence libraries. The import file would start with
9157 # the line `#! .'. This would cause the generated library to
9158 # depend on `.', always an invalid library. This was fixed in
9159 # development snapshots of GCC prior to 3.0.
9160 case $host_os in
9161 aix4 | aix4.[01] | aix4.[01].*)
9162 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9163 echo ' yes '
9164 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9165 :
9166 else
9167 can_build_shared=no
9168 fi
9169 ;;
9170 esac
9171 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9172 # soname into executable. Probably we can add versioning support to
9173 # collect2, so additional links can be useful in future.
9174 if test "$aix_use_runtimelinking" = yes; then
9175 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9176 # instead of lib<name>.a to let people know that these are not
9177 # typical AIX shared libraries.
9178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9179 else
9180 # We preserve .a as extension for shared libraries through AIX4.2
9181 # and later when we are not doing run time linking.
9182 library_names_spec='${libname}${release}.a $libname.a'
9183 soname_spec='${libname}${release}${shared_ext}$major'
9184 fi
9185 shlibpath_var=LIBPATH
9186 fi
9187 ;;
9188
9189amigaos*)
9190 library_names_spec='$libname.ixlibrary $libname.a'
9191 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9192 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'
9193 ;;
9194
9195beos*)
9196 library_names_spec='${libname}${shared_ext}'
9197 dynamic_linker="$host_os ld.so"
9198 shlibpath_var=LIBRARY_PATH
9199 ;;
9200
9201bsdi[45]*)
9202 version_type=linux
9203 need_version=no
9204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9205 soname_spec='${libname}${release}${shared_ext}$major'
9206 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9207 shlibpath_var=LD_LIBRARY_PATH
9208 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9209 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9210 # the default ld.so.conf also contains /usr/contrib/lib and
9211 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9212 # libtool to hard-code these into programs
9213 ;;
9214
9215cygwin* | mingw* | pw32*)
9216 version_type=windows
9217 shrext_cmds=".dll"
9218 need_version=no
9219 need_lib_prefix=no
9220
9221 case $GCC,$host_os in
9222 yes,cygwin* | yes,mingw* | yes,pw32*)
9223 library_names_spec='$libname.dll.a'
9224 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9225 postinstall_cmds='base_file=`basename \${file}`~
9226 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9227 dldir=$destdir/`dirname \$dlpath`~
9228 test -d \$dldir || mkdir -p \$dldir~
9229 $install_prog $dir/$dlname \$dldir/$dlname~
9230 chmod a+x \$dldir/$dlname'
9231 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9232 dlpath=$dir/\$dldll~
9233 $rm \$dlpath'
9234 shlibpath_overrides_runpath=yes
9235
9236 case $host_os in
9237 cygwin*)
9238 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9239 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9240 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9241 ;;
9242 mingw*)
9243 # MinGW DLLs use traditional 'lib' prefix
9244 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9245 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9246 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9247 # It is most probably a Windows format PATH printed by
9248 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9249 # path with ; separators, and with drive letters. We can handle the
9250 # drive letters (cygwin fileutils understands them), so leave them,
9251 # especially as we might pass files found there to a mingw objdump,
9252 # which wouldn't understand a cygwinified path. Ahh.
9253 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9254 else
9255 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9256 fi
9257 ;;
9258 pw32*)
9259 # pw32 DLLs use 'pw' prefix rather than 'lib'
9260 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9261 ;;
9262 esac
9263 ;;
9264
9265 *)
9266 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9267 ;;
9268 esac
9269 dynamic_linker='Win32 ld.exe'
9270 # FIXME: first we should search . and the directory the executable is in
9271 shlibpath_var=PATH
9272 ;;
9273
9274darwin* | rhapsody*)
9275 dynamic_linker="$host_os dyld"
9276 version_type=darwin
9277 need_lib_prefix=no
9278 need_version=no
9279 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9280 soname_spec='${libname}${release}${major}$shared_ext'
9281 shlibpath_overrides_runpath=yes
9282 shlibpath_var=DYLD_LIBRARY_PATH
9283 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
0fde1ce3 9284
9285 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
d9898ee8 9286 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9287 ;;
9288
9289dgux*)
9290 version_type=linux
9291 need_lib_prefix=no
9292 need_version=no
9293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9294 soname_spec='${libname}${release}${shared_ext}$major'
9295 shlibpath_var=LD_LIBRARY_PATH
9296 ;;
9297
9298freebsd1*)
9299 dynamic_linker=no
9300 ;;
9301
d9898ee8 9302freebsd* | dragonfly*)
9303 # DragonFly does not have aout. When/if they implement a new
9304 # versioning mechanism, adjust this.
9305 if test -x /usr/bin/objformat; then
9306 objformat=`/usr/bin/objformat`
9307 else
9308 case $host_os in
9309 freebsd[123]*) objformat=aout ;;
9310 *) objformat=elf ;;
9311 esac
9312 fi
9313 version_type=freebsd-$objformat
9314 case $version_type in
9315 freebsd-elf*)
9316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9317 need_version=no
9318 need_lib_prefix=no
9319 ;;
9320 freebsd-*)
9321 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9322 need_version=yes
9323 ;;
9324 esac
9325 shlibpath_var=LD_LIBRARY_PATH
9326 case $host_os in
9327 freebsd2*)
9328 shlibpath_overrides_runpath=yes
9329 ;;
9330 freebsd3.[01]* | freebsdelf3.[01]*)
9331 shlibpath_overrides_runpath=yes
9332 hardcode_into_libs=yes
9333 ;;
9334 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9335 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9336 shlibpath_overrides_runpath=no
9337 hardcode_into_libs=yes
9338 ;;
0fde1ce3 9339 *) # from 4.6 on, and DragonFly
d9898ee8 9340 shlibpath_overrides_runpath=yes
9341 hardcode_into_libs=yes
9342 ;;
9343 esac
9344 ;;
9345
9346gnu*)
9347 version_type=linux
9348 need_lib_prefix=no
9349 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
9353 hardcode_into_libs=yes
9354 ;;
9355
9356hpux9* | hpux10* | hpux11*)
9357 # Give a soname corresponding to the major version so that dld.sl refuses to
9358 # link against other versions.
9359 version_type=sunos
9360 need_lib_prefix=no
9361 need_version=no
9362 case $host_cpu in
9363 ia64*)
9364 shrext_cmds='.so'
9365 hardcode_into_libs=yes
9366 dynamic_linker="$host_os dld.so"
9367 shlibpath_var=LD_LIBRARY_PATH
9368 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9370 soname_spec='${libname}${release}${shared_ext}$major'
9371 if test "X$HPUX_IA64_MODE" = X32; then
9372 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9373 else
9374 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9375 fi
9376 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9377 ;;
9378 hppa*64*)
9379 shrext_cmds='.sl'
9380 hardcode_into_libs=yes
9381 dynamic_linker="$host_os dld.sl"
9382 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9383 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9385 soname_spec='${libname}${release}${shared_ext}$major'
9386 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9387 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9388 ;;
9389 *)
9390 shrext_cmds='.sl'
9391 dynamic_linker="$host_os dld.sl"
9392 shlibpath_var=SHLIB_PATH
9393 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9395 soname_spec='${libname}${release}${shared_ext}$major'
9396 ;;
9397 esac
9398 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9399 postinstall_cmds='chmod 555 $lib'
9400 ;;
9401
0fde1ce3 9402interix[3-9]*)
d9898ee8 9403 version_type=linux
9404 need_lib_prefix=no
9405 need_version=no
9406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9407 soname_spec='${libname}${release}${shared_ext}$major'
9408 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9409 shlibpath_var=LD_LIBRARY_PATH
9410 shlibpath_overrides_runpath=no
9411 hardcode_into_libs=yes
9412 ;;
9413
9414irix5* | irix6* | nonstopux*)
9415 case $host_os in
9416 nonstopux*) version_type=nonstopux ;;
9417 *)
9418 if test "$lt_cv_prog_gnu_ld" = yes; then
9419 version_type=linux
9420 else
9421 version_type=irix
9422 fi ;;
9423 esac
9424 need_lib_prefix=no
9425 need_version=no
9426 soname_spec='${libname}${release}${shared_ext}$major'
9427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9428 case $host_os in
9429 irix5* | nonstopux*)
9430 libsuff= shlibsuff=
9431 ;;
9432 *)
9433 case $LD in # libtool.m4 will add one of these switches to LD
9434 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9435 libsuff= shlibsuff= libmagic=32-bit;;
9436 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9437 libsuff=32 shlibsuff=N32 libmagic=N32;;
9438 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9439 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9440 *) libsuff= shlibsuff= libmagic=never-match;;
9441 esac
9442 ;;
9443 esac
9444 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9445 shlibpath_overrides_runpath=no
9446 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9447 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9448 hardcode_into_libs=yes
9449 ;;
9450
9451# No shared lib support for Linux oldld, aout, or coff.
9452linux*oldld* | linux*aout* | linux*coff*)
9453 dynamic_linker=no
9454 ;;
9455
9456# This must be Linux ELF.
0fde1ce3 9457linux* | k*bsd*-gnu)
d9898ee8 9458 version_type=linux
9459 need_lib_prefix=no
9460 need_version=no
9461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9462 soname_spec='${libname}${release}${shared_ext}$major'
9463 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9464 shlibpath_var=LD_LIBRARY_PATH
9465 shlibpath_overrides_runpath=no
9466 # This implies no fast_install, which is unacceptable.
9467 # Some rework will be needed to allow for fast_install
9468 # before this can be enabled.
9469 hardcode_into_libs=yes
0fde1ce3 9470 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9471 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
d9898ee8 9472
9473 # Append ld.so.conf contents to the search path
9474 if test -f /etc/ld.so.conf; then
0fde1ce3 9475 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' ' '`
9476 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 9477 fi
9478
9479 # We used to test for /lib/ld.so.1 and disable shared libraries on
9480 # powerpc, because MkLinux only supported shared libraries with the
9481 # GNU dynamic linker. Since this was broken with cross compilers,
9482 # most powerpc-linux boxes support dynamic linking these days and
9483 # people can always --disable-shared, the test was removed, and we
9484 # assume the GNU/Linux dynamic linker is in use.
9485 dynamic_linker='GNU/Linux ld.so'
9486 ;;
9487
d9898ee8 9488netbsd*)
9489 version_type=sunos
9490 need_lib_prefix=no
9491 need_version=no
9492 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9494 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9495 dynamic_linker='NetBSD (a.out) ld.so'
9496 else
9497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9498 soname_spec='${libname}${release}${shared_ext}$major'
9499 dynamic_linker='NetBSD ld.elf_so'
9500 fi
9501 shlibpath_var=LD_LIBRARY_PATH
9502 shlibpath_overrides_runpath=yes
9503 hardcode_into_libs=yes
9504 ;;
9505
9506newsos6)
9507 version_type=linux
9508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9509 shlibpath_var=LD_LIBRARY_PATH
9510 shlibpath_overrides_runpath=yes
9511 ;;
9512
9513nto-qnx*)
9514 version_type=linux
9515 need_lib_prefix=no
9516 need_version=no
9517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9518 soname_spec='${libname}${release}${shared_ext}$major'
9519 shlibpath_var=LD_LIBRARY_PATH
9520 shlibpath_overrides_runpath=yes
9521 ;;
9522
9523openbsd*)
9524 version_type=sunos
9525 sys_lib_dlsearch_path_spec="/usr/lib"
9526 need_lib_prefix=no
9527 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9528 case $host_os in
9529 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9530 *) need_version=no ;;
9531 esac
9532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9533 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9534 shlibpath_var=LD_LIBRARY_PATH
9535 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9536 case $host_os in
9537 openbsd2.[89] | openbsd2.[89].*)
9538 shlibpath_overrides_runpath=no
9539 ;;
9540 *)
9541 shlibpath_overrides_runpath=yes
9542 ;;
9543 esac
9544 else
9545 shlibpath_overrides_runpath=yes
9546 fi
9547 ;;
9548
9549os2*)
9550 libname_spec='$name'
9551 shrext_cmds=".dll"
9552 need_lib_prefix=no
9553 library_names_spec='$libname${shared_ext} $libname.a'
9554 dynamic_linker='OS/2 ld.exe'
9555 shlibpath_var=LIBPATH
9556 ;;
9557
9558osf3* | osf4* | osf5*)
9559 version_type=osf
9560 need_lib_prefix=no
9561 need_version=no
9562 soname_spec='${libname}${release}${shared_ext}$major'
9563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9564 shlibpath_var=LD_LIBRARY_PATH
9565 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9566 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9567 ;;
9568
0fde1ce3 9569rdos*)
9570 dynamic_linker=no
9571 ;;
9572
d9898ee8 9573solaris*)
9574 version_type=linux
9575 need_lib_prefix=no
9576 need_version=no
9577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9578 soname_spec='${libname}${release}${shared_ext}$major'
9579 shlibpath_var=LD_LIBRARY_PATH
9580 shlibpath_overrides_runpath=yes
9581 hardcode_into_libs=yes
9582 # ldd complains unless libraries are executable
9583 postinstall_cmds='chmod +x $lib'
9584 ;;
9585
9586sunos4*)
9587 version_type=sunos
9588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9589 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9590 shlibpath_var=LD_LIBRARY_PATH
9591 shlibpath_overrides_runpath=yes
9592 if test "$with_gnu_ld" = yes; then
9593 need_lib_prefix=no
9594 fi
9595 need_version=yes
9596 ;;
9597
9598sysv4 | sysv4.3*)
9599 version_type=linux
9600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9601 soname_spec='${libname}${release}${shared_ext}$major'
9602 shlibpath_var=LD_LIBRARY_PATH
9603 case $host_vendor in
9604 sni)
9605 shlibpath_overrides_runpath=no
9606 need_lib_prefix=no
9607 export_dynamic_flag_spec='${wl}-Blargedynsym'
9608 runpath_var=LD_RUN_PATH
9609 ;;
9610 siemens)
9611 need_lib_prefix=no
9612 ;;
9613 motorola)
9614 need_lib_prefix=no
9615 need_version=no
9616 shlibpath_overrides_runpath=no
9617 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9618 ;;
9619 esac
9620 ;;
9621
9622sysv4*MP*)
9623 if test -d /usr/nec ;then
9624 version_type=linux
9625 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9626 soname_spec='$libname${shared_ext}.$major'
9627 shlibpath_var=LD_LIBRARY_PATH
9628 fi
9629 ;;
9630
9631sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9632 version_type=freebsd-elf
9633 need_lib_prefix=no
9634 need_version=no
9635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9636 soname_spec='${libname}${release}${shared_ext}$major'
9637 shlibpath_var=LD_LIBRARY_PATH
9638 hardcode_into_libs=yes
9639 if test "$with_gnu_ld" = yes; then
9640 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9641 shlibpath_overrides_runpath=no
9642 else
9643 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9644 shlibpath_overrides_runpath=yes
9645 case $host_os in
9646 sco3.2v5*)
9647 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9648 ;;
9649 esac
9650 fi
9651 sys_lib_dlsearch_path_spec='/usr/lib'
9652 ;;
9653
9654uts4*)
9655 version_type=linux
9656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9657 soname_spec='${libname}${release}${shared_ext}$major'
9658 shlibpath_var=LD_LIBRARY_PATH
9659 ;;
9660
9661*)
9662 dynamic_linker=no
9663 ;;
9664esac
64ff59ba 9665{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9666echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 9667test "$dynamic_linker" = no && can_build_shared=no
9668
9669variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9670if test "$GCC" = yes; then
9671 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9672fi
9673
64ff59ba 9674{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9675echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 9676hardcode_action=
9677if test -n "$hardcode_libdir_flag_spec" || \
9678 test -n "$runpath_var" || \
9679 test "X$hardcode_automatic" = "Xyes" ; then
9680
9681 # We can hardcode non-existant directories.
9682 if test "$hardcode_direct" != no &&
9683 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9684 # have to relink, otherwise we might link with an installed library
9685 # when we should be linking with a yet-to-be-installed one
9686 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9687 test "$hardcode_minus_L" != no; then
9688 # Linking always hardcodes the temporary library directory.
9689 hardcode_action=relink
9690 else
9691 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9692 hardcode_action=immediate
9693 fi
9694else
9695 # We cannot hardcode anything, or else we can only hardcode existing
9696 # directories.
9697 hardcode_action=unsupported
9698fi
64ff59ba 9699{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9700echo "${ECHO_T}$hardcode_action" >&6; }
d9898ee8 9701
9702if test "$hardcode_action" = relink; then
9703 # Fast installation is not supported
9704 enable_fast_install=no
9705elif test "$shlibpath_overrides_runpath" = yes ||
9706 test "$enable_shared" = no; then
9707 # Fast installation is not necessary
9708 enable_fast_install=needless
9709fi
9710
9711striplib=
9712old_striplib=
64ff59ba 9713{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9714echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
d9898ee8 9715if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9716 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9717 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
64ff59ba 9718 { echo "$as_me:$LINENO: result: yes" >&5
9719echo "${ECHO_T}yes" >&6; }
d9898ee8 9720else
9721# FIXME - insert some real tests, host_os isn't really good enough
9722 case $host_os in
9723 darwin*)
9724 if test -n "$STRIP" ; then
9725 striplib="$STRIP -x"
0fde1ce3 9726 old_striplib="$STRIP -S"
64ff59ba 9727 { echo "$as_me:$LINENO: result: yes" >&5
9728echo "${ECHO_T}yes" >&6; }
d9898ee8 9729 else
64ff59ba 9730 { echo "$as_me:$LINENO: result: no" >&5
9731echo "${ECHO_T}no" >&6; }
d9898ee8 9732fi
9733 ;;
9734 *)
64ff59ba 9735 { echo "$as_me:$LINENO: result: no" >&5
9736echo "${ECHO_T}no" >&6; }
d9898ee8 9737 ;;
9738 esac
9739fi
9740
9741if test "x$enable_dlopen" != xyes; then
9742 enable_dlopen=unknown
9743 enable_dlopen_self=unknown
9744 enable_dlopen_self_static=unknown
9745else
9746 lt_cv_dlopen=no
9747 lt_cv_dlopen_libs=
9748
9749 case $host_os in
9750 beos*)
9751 lt_cv_dlopen="load_add_on"
9752 lt_cv_dlopen_libs=
9753 lt_cv_dlopen_self=yes
9754 ;;
9755
9756 mingw* | pw32*)
9757 lt_cv_dlopen="LoadLibrary"
9758 lt_cv_dlopen_libs=
9759 ;;
9760
9761 cygwin*)
9762 lt_cv_dlopen="dlopen"
9763 lt_cv_dlopen_libs=
9764 ;;
9765
9766 darwin*)
9767 # if libdl is installed we need to link against it
64ff59ba 9768 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9769echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 9770if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9771 echo $ECHO_N "(cached) $ECHO_C" >&6
9772else
9773 ac_check_lib_save_LIBS=$LIBS
9774LIBS="-ldl $LIBS"
9775cat >conftest.$ac_ext <<_ACEOF
9776/* confdefs.h. */
9777_ACEOF
9778cat confdefs.h >>conftest.$ac_ext
9779cat >>conftest.$ac_ext <<_ACEOF
9780/* end confdefs.h. */
9781
64ff59ba 9782/* Override any GCC internal prototype to avoid an error.
9783 Use char because int might match the return type of a GCC
9784 builtin and then its argument prototype would still apply. */
d9898ee8 9785#ifdef __cplusplus
9786extern "C"
9787#endif
d9898ee8 9788char dlopen ();
9789int
9790main ()
9791{
64ff59ba 9792return dlopen ();
d9898ee8 9793 ;
9794 return 0;
9795}
9796_ACEOF
9797rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9798if { (ac_try="$ac_link"
9799case "(($ac_try" in
9800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9801 *) ac_try_echo=$ac_try;;
9802esac
9803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9804 (eval "$ac_link") 2>conftest.er1
d9898ee8 9805 ac_status=$?
9806 grep -v '^ *+' conftest.er1 >conftest.err
9807 rm -f conftest.er1
9808 cat conftest.err >&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9810 (exit $ac_status); } && {
9811 test -z "$ac_c_werror_flag" ||
9812 test ! -s conftest.err
9813 } && test -s conftest$ac_exeext &&
9814 $as_test_x conftest$ac_exeext; then
d9898ee8 9815 ac_cv_lib_dl_dlopen=yes
9816else
9817 echo "$as_me: failed program was:" >&5
9818sed 's/^/| /' conftest.$ac_ext >&5
9819
64ff59ba 9820 ac_cv_lib_dl_dlopen=no
d9898ee8 9821fi
64ff59ba 9822
9823rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9824 conftest$ac_exeext conftest.$ac_ext
9825LIBS=$ac_check_lib_save_LIBS
9826fi
64ff59ba 9827{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9828echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 9829if test $ac_cv_lib_dl_dlopen = yes; then
9830 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9831else
9832
9833 lt_cv_dlopen="dyld"
9834 lt_cv_dlopen_libs=
9835 lt_cv_dlopen_self=yes
9836
9837fi
9838
9839 ;;
9840
9841 *)
64ff59ba 9842 { echo "$as_me:$LINENO: checking for shl_load" >&5
9843echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
d9898ee8 9844if test "${ac_cv_func_shl_load+set}" = set; then
9845 echo $ECHO_N "(cached) $ECHO_C" >&6
9846else
9847 cat >conftest.$ac_ext <<_ACEOF
9848/* confdefs.h. */
9849_ACEOF
9850cat confdefs.h >>conftest.$ac_ext
9851cat >>conftest.$ac_ext <<_ACEOF
9852/* end confdefs.h. */
9853/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9855#define shl_load innocuous_shl_load
9856
9857/* System header to define __stub macros and hopefully few prototypes,
9858 which can conflict with char shl_load (); below.
9859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9860 <limits.h> exists even on freestanding compilers. */
9861
9862#ifdef __STDC__
9863# include <limits.h>
9864#else
9865# include <assert.h>
9866#endif
9867
9868#undef shl_load
9869
64ff59ba 9870/* Override any GCC internal prototype to avoid an error.
9871 Use char because int might match the return type of a GCC
9872 builtin and then its argument prototype would still apply. */
d9898ee8 9873#ifdef __cplusplus
9874extern "C"
d9898ee8 9875#endif
d9898ee8 9876char shl_load ();
9877/* The GNU C library defines this for functions which it implements
9878 to always fail with ENOSYS. Some functions are actually named
9879 something starting with __ and the normal name is an alias. */
64ff59ba 9880#if defined __stub_shl_load || defined __stub___shl_load
d9898ee8 9881choke me
d9898ee8 9882#endif
9883
9884int
9885main ()
9886{
64ff59ba 9887return shl_load ();
d9898ee8 9888 ;
9889 return 0;
9890}
9891_ACEOF
9892rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9893if { (ac_try="$ac_link"
9894case "(($ac_try" in
9895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896 *) ac_try_echo=$ac_try;;
9897esac
9898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899 (eval "$ac_link") 2>conftest.er1
d9898ee8 9900 ac_status=$?
9901 grep -v '^ *+' conftest.er1 >conftest.err
9902 rm -f conftest.er1
9903 cat conftest.err >&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9905 (exit $ac_status); } && {
9906 test -z "$ac_c_werror_flag" ||
9907 test ! -s conftest.err
9908 } && test -s conftest$ac_exeext &&
9909 $as_test_x conftest$ac_exeext; then
d9898ee8 9910 ac_cv_func_shl_load=yes
9911else
9912 echo "$as_me: failed program was:" >&5
9913sed 's/^/| /' conftest.$ac_ext >&5
9914
64ff59ba 9915 ac_cv_func_shl_load=no
d9898ee8 9916fi
64ff59ba 9917
9918rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9919 conftest$ac_exeext conftest.$ac_ext
9920fi
64ff59ba 9921{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9922echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
d9898ee8 9923if test $ac_cv_func_shl_load = yes; then
9924 lt_cv_dlopen="shl_load"
9925else
64ff59ba 9926 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9927echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
d9898ee8 9928if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9929 echo $ECHO_N "(cached) $ECHO_C" >&6
9930else
9931 ac_check_lib_save_LIBS=$LIBS
9932LIBS="-ldld $LIBS"
9933cat >conftest.$ac_ext <<_ACEOF
9934/* confdefs.h. */
9935_ACEOF
9936cat confdefs.h >>conftest.$ac_ext
9937cat >>conftest.$ac_ext <<_ACEOF
9938/* end confdefs.h. */
9939
64ff59ba 9940/* Override any GCC internal prototype to avoid an error.
9941 Use char because int might match the return type of a GCC
9942 builtin and then its argument prototype would still apply. */
d9898ee8 9943#ifdef __cplusplus
9944extern "C"
9945#endif
d9898ee8 9946char shl_load ();
9947int
9948main ()
9949{
64ff59ba 9950return shl_load ();
d9898ee8 9951 ;
9952 return 0;
9953}
9954_ACEOF
9955rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9956if { (ac_try="$ac_link"
9957case "(($ac_try" in
9958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959 *) ac_try_echo=$ac_try;;
9960esac
9961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962 (eval "$ac_link") 2>conftest.er1
d9898ee8 9963 ac_status=$?
9964 grep -v '^ *+' conftest.er1 >conftest.err
9965 rm -f conftest.er1
9966 cat conftest.err >&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9968 (exit $ac_status); } && {
9969 test -z "$ac_c_werror_flag" ||
9970 test ! -s conftest.err
9971 } && test -s conftest$ac_exeext &&
9972 $as_test_x conftest$ac_exeext; then
d9898ee8 9973 ac_cv_lib_dld_shl_load=yes
9974else
9975 echo "$as_me: failed program was:" >&5
9976sed 's/^/| /' conftest.$ac_ext >&5
9977
64ff59ba 9978 ac_cv_lib_dld_shl_load=no
d9898ee8 9979fi
64ff59ba 9980
9981rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9982 conftest$ac_exeext conftest.$ac_ext
9983LIBS=$ac_check_lib_save_LIBS
9984fi
64ff59ba 9985{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9986echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
d9898ee8 9987if test $ac_cv_lib_dld_shl_load = yes; then
9988 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9989else
64ff59ba 9990 { echo "$as_me:$LINENO: checking for dlopen" >&5
9991echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
d9898ee8 9992if test "${ac_cv_func_dlopen+set}" = set; then
9993 echo $ECHO_N "(cached) $ECHO_C" >&6
9994else
9995 cat >conftest.$ac_ext <<_ACEOF
9996/* confdefs.h. */
9997_ACEOF
9998cat confdefs.h >>conftest.$ac_ext
9999cat >>conftest.$ac_ext <<_ACEOF
10000/* end confdefs.h. */
10001/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10003#define dlopen innocuous_dlopen
10004
10005/* System header to define __stub macros and hopefully few prototypes,
10006 which can conflict with char dlopen (); below.
10007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10008 <limits.h> exists even on freestanding compilers. */
10009
10010#ifdef __STDC__
10011# include <limits.h>
10012#else
10013# include <assert.h>
10014#endif
10015
10016#undef dlopen
10017
64ff59ba 10018/* Override any GCC internal prototype to avoid an error.
10019 Use char because int might match the return type of a GCC
10020 builtin and then its argument prototype would still apply. */
d9898ee8 10021#ifdef __cplusplus
10022extern "C"
d9898ee8 10023#endif
d9898ee8 10024char dlopen ();
10025/* The GNU C library defines this for functions which it implements
10026 to always fail with ENOSYS. Some functions are actually named
10027 something starting with __ and the normal name is an alias. */
64ff59ba 10028#if defined __stub_dlopen || defined __stub___dlopen
d9898ee8 10029choke me
d9898ee8 10030#endif
10031
10032int
10033main ()
10034{
64ff59ba 10035return dlopen ();
d9898ee8 10036 ;
10037 return 0;
10038}
10039_ACEOF
10040rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 10041if { (ac_try="$ac_link"
10042case "(($ac_try" in
10043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10044 *) ac_try_echo=$ac_try;;
10045esac
10046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10047 (eval "$ac_link") 2>conftest.er1
d9898ee8 10048 ac_status=$?
10049 grep -v '^ *+' conftest.er1 >conftest.err
10050 rm -f conftest.er1
10051 cat conftest.err >&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 10053 (exit $ac_status); } && {
10054 test -z "$ac_c_werror_flag" ||
10055 test ! -s conftest.err
10056 } && test -s conftest$ac_exeext &&
10057 $as_test_x conftest$ac_exeext; then
d9898ee8 10058 ac_cv_func_dlopen=yes
10059else
10060 echo "$as_me: failed program was:" >&5
10061sed 's/^/| /' conftest.$ac_ext >&5
10062
64ff59ba 10063 ac_cv_func_dlopen=no
d9898ee8 10064fi
64ff59ba 10065
10066rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 10067 conftest$ac_exeext conftest.$ac_ext
10068fi
64ff59ba 10069{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10070echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
d9898ee8 10071if test $ac_cv_func_dlopen = yes; then
10072 lt_cv_dlopen="dlopen"
10073else
64ff59ba 10074 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10075echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 10076if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10077 echo $ECHO_N "(cached) $ECHO_C" >&6
10078else
10079 ac_check_lib_save_LIBS=$LIBS
10080LIBS="-ldl $LIBS"
10081cat >conftest.$ac_ext <<_ACEOF
10082/* confdefs.h. */
10083_ACEOF
10084cat confdefs.h >>conftest.$ac_ext
10085cat >>conftest.$ac_ext <<_ACEOF
10086/* end confdefs.h. */
10087
64ff59ba 10088/* Override any GCC internal prototype to avoid an error.
10089 Use char because int might match the return type of a GCC
10090 builtin and then its argument prototype would still apply. */
d9898ee8 10091#ifdef __cplusplus
10092extern "C"
10093#endif
d9898ee8 10094char dlopen ();
10095int
10096main ()
10097{
64ff59ba 10098return dlopen ();
d9898ee8 10099 ;
10100 return 0;
10101}
10102_ACEOF
10103rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 10104if { (ac_try="$ac_link"
10105case "(($ac_try" in
10106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10107 *) ac_try_echo=$ac_try;;
10108esac
10109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10110 (eval "$ac_link") 2>conftest.er1
d9898ee8 10111 ac_status=$?
10112 grep -v '^ *+' conftest.er1 >conftest.err
10113 rm -f conftest.er1
10114 cat conftest.err >&5
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 10116 (exit $ac_status); } && {
10117 test -z "$ac_c_werror_flag" ||
10118 test ! -s conftest.err
10119 } && test -s conftest$ac_exeext &&
10120 $as_test_x conftest$ac_exeext; then
d9898ee8 10121 ac_cv_lib_dl_dlopen=yes
10122else
10123 echo "$as_me: failed program was:" >&5
10124sed 's/^/| /' conftest.$ac_ext >&5
10125
64ff59ba 10126 ac_cv_lib_dl_dlopen=no
d9898ee8 10127fi
64ff59ba 10128
10129rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 10130 conftest$ac_exeext conftest.$ac_ext
10131LIBS=$ac_check_lib_save_LIBS
10132fi
64ff59ba 10133{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10134echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 10135if test $ac_cv_lib_dl_dlopen = yes; then
10136 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10137else
64ff59ba 10138 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10139echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
d9898ee8 10140if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10141 echo $ECHO_N "(cached) $ECHO_C" >&6
10142else
10143 ac_check_lib_save_LIBS=$LIBS
10144LIBS="-lsvld $LIBS"
10145cat >conftest.$ac_ext <<_ACEOF
10146/* confdefs.h. */
10147_ACEOF
10148cat confdefs.h >>conftest.$ac_ext
10149cat >>conftest.$ac_ext <<_ACEOF
10150/* end confdefs.h. */
10151
64ff59ba 10152/* Override any GCC internal prototype to avoid an error.
10153 Use char because int might match the return type of a GCC
10154 builtin and then its argument prototype would still apply. */
d9898ee8 10155#ifdef __cplusplus
10156extern "C"
10157#endif
d9898ee8 10158char dlopen ();
10159int
10160main ()
10161{
64ff59ba 10162return dlopen ();
d9898ee8 10163 ;
10164 return 0;
10165}
10166_ACEOF
10167rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 10168if { (ac_try="$ac_link"
10169case "(($ac_try" in
10170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10171 *) ac_try_echo=$ac_try;;
10172esac
10173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10174 (eval "$ac_link") 2>conftest.er1
d9898ee8 10175 ac_status=$?
10176 grep -v '^ *+' conftest.er1 >conftest.err
10177 rm -f conftest.er1
10178 cat conftest.err >&5
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 10180 (exit $ac_status); } && {
10181 test -z "$ac_c_werror_flag" ||
10182 test ! -s conftest.err
10183 } && test -s conftest$ac_exeext &&
10184 $as_test_x conftest$ac_exeext; then
d9898ee8 10185 ac_cv_lib_svld_dlopen=yes
10186else
10187 echo "$as_me: failed program was:" >&5
10188sed 's/^/| /' conftest.$ac_ext >&5
10189
64ff59ba 10190 ac_cv_lib_svld_dlopen=no
d9898ee8 10191fi
64ff59ba 10192
10193rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 10194 conftest$ac_exeext conftest.$ac_ext
10195LIBS=$ac_check_lib_save_LIBS
10196fi
64ff59ba 10197{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10198echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
d9898ee8 10199if test $ac_cv_lib_svld_dlopen = yes; then
10200 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10201else
64ff59ba 10202 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10203echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
d9898ee8 10204if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10205 echo $ECHO_N "(cached) $ECHO_C" >&6
10206else
10207 ac_check_lib_save_LIBS=$LIBS
10208LIBS="-ldld $LIBS"
10209cat >conftest.$ac_ext <<_ACEOF
10210/* confdefs.h. */
10211_ACEOF
10212cat confdefs.h >>conftest.$ac_ext
10213cat >>conftest.$ac_ext <<_ACEOF
10214/* end confdefs.h. */
10215
64ff59ba 10216/* Override any GCC internal prototype to avoid an error.
10217 Use char because int might match the return type of a GCC
10218 builtin and then its argument prototype would still apply. */
d9898ee8 10219#ifdef __cplusplus
10220extern "C"
10221#endif
d9898ee8 10222char dld_link ();
10223int
10224main ()
10225{
64ff59ba 10226return dld_link ();
d9898ee8 10227 ;
10228 return 0;
10229}
10230_ACEOF
10231rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 10232if { (ac_try="$ac_link"
10233case "(($ac_try" in
10234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10235 *) ac_try_echo=$ac_try;;
10236esac
10237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10238 (eval "$ac_link") 2>conftest.er1
d9898ee8 10239 ac_status=$?
10240 grep -v '^ *+' conftest.er1 >conftest.err
10241 rm -f conftest.er1
10242 cat conftest.err >&5
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 10244 (exit $ac_status); } && {
10245 test -z "$ac_c_werror_flag" ||
10246 test ! -s conftest.err
10247 } && test -s conftest$ac_exeext &&
10248 $as_test_x conftest$ac_exeext; then
d9898ee8 10249 ac_cv_lib_dld_dld_link=yes
10250else
10251 echo "$as_me: failed program was:" >&5
10252sed 's/^/| /' conftest.$ac_ext >&5
10253
64ff59ba 10254 ac_cv_lib_dld_dld_link=no
d9898ee8 10255fi
64ff59ba 10256
10257rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 10258 conftest$ac_exeext conftest.$ac_ext
10259LIBS=$ac_check_lib_save_LIBS
10260fi
64ff59ba 10261{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10262echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
d9898ee8 10263if test $ac_cv_lib_dld_dld_link = yes; then
10264 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10265fi
10266
10267
10268fi
10269
10270
10271fi
10272
10273
10274fi
10275
10276
10277fi
10278
10279
10280fi
10281
10282 ;;
10283 esac
10284
10285 if test "x$lt_cv_dlopen" != xno; then
10286 enable_dlopen=yes
10287 else
10288 enable_dlopen=no
10289 fi
10290
10291 case $lt_cv_dlopen in
10292 dlopen)
10293 save_CPPFLAGS="$CPPFLAGS"
10294 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10295
10296 save_LDFLAGS="$LDFLAGS"
10297 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10298
10299 save_LIBS="$LIBS"
10300 LIBS="$lt_cv_dlopen_libs $LIBS"
10301
64ff59ba 10302 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10303echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
d9898ee8 10304if test "${lt_cv_dlopen_self+set}" = set; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10306else
10307 if test "$cross_compiling" = yes; then :
10308 lt_cv_dlopen_self=cross
10309else
10310 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10311 lt_status=$lt_dlunknown
10312 cat > conftest.$ac_ext <<EOF
0fde1ce3 10313#line 10313 "configure"
d9898ee8 10314#include "confdefs.h"
10315
10316#if HAVE_DLFCN_H
10317#include <dlfcn.h>
10318#endif
10319
10320#include <stdio.h>
10321
10322#ifdef RTLD_GLOBAL
10323# define LT_DLGLOBAL RTLD_GLOBAL
10324#else
10325# ifdef DL_GLOBAL
10326# define LT_DLGLOBAL DL_GLOBAL
10327# else
10328# define LT_DLGLOBAL 0
10329# endif
10330#endif
10331
10332/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10333 find out it does not work in some platform. */
10334#ifndef LT_DLLAZY_OR_NOW
10335# ifdef RTLD_LAZY
10336# define LT_DLLAZY_OR_NOW RTLD_LAZY
10337# else
10338# ifdef DL_LAZY
10339# define LT_DLLAZY_OR_NOW DL_LAZY
10340# else
10341# ifdef RTLD_NOW
10342# define LT_DLLAZY_OR_NOW RTLD_NOW
10343# else
10344# ifdef DL_NOW
10345# define LT_DLLAZY_OR_NOW DL_NOW
10346# else
10347# define LT_DLLAZY_OR_NOW 0
10348# endif
10349# endif
10350# endif
10351# endif
10352#endif
10353
10354#ifdef __cplusplus
10355extern "C" void exit (int);
10356#endif
10357
10358void fnord() { int i=42;}
10359int main ()
10360{
10361 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10362 int status = $lt_dlunknown;
10363
10364 if (self)
10365 {
10366 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10367 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10368 /* dlclose (self); */
10369 }
10370 else
10371 puts (dlerror ());
10372
10373 exit (status);
10374}
10375EOF
10376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10377 (eval $ac_link) 2>&5
10378 ac_status=$?
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10381 (./conftest; exit; ) >&5 2>/dev/null
10382 lt_status=$?
10383 case x$lt_status in
10384 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10385 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10386 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10387 esac
10388 else :
10389 # compilation failed
10390 lt_cv_dlopen_self=no
10391 fi
10392fi
10393rm -fr conftest*
10394
10395
10396fi
64ff59ba 10397{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10398echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
d9898ee8 10399
10400 if test "x$lt_cv_dlopen_self" = xyes; then
10401 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
64ff59ba 10402 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10403echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
d9898ee8 10404if test "${lt_cv_dlopen_self_static+set}" = set; then
10405 echo $ECHO_N "(cached) $ECHO_C" >&6
10406else
10407 if test "$cross_compiling" = yes; then :
10408 lt_cv_dlopen_self_static=cross
10409else
10410 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10411 lt_status=$lt_dlunknown
10412 cat > conftest.$ac_ext <<EOF
0fde1ce3 10413#line 10413 "configure"
d9898ee8 10414#include "confdefs.h"
10415
10416#if HAVE_DLFCN_H
10417#include <dlfcn.h>
10418#endif
10419
10420#include <stdio.h>
10421
10422#ifdef RTLD_GLOBAL
10423# define LT_DLGLOBAL RTLD_GLOBAL
10424#else
10425# ifdef DL_GLOBAL
10426# define LT_DLGLOBAL DL_GLOBAL
10427# else
10428# define LT_DLGLOBAL 0
10429# endif
10430#endif
10431
10432/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10433 find out it does not work in some platform. */
10434#ifndef LT_DLLAZY_OR_NOW
10435# ifdef RTLD_LAZY
10436# define LT_DLLAZY_OR_NOW RTLD_LAZY
10437# else
10438# ifdef DL_LAZY
10439# define LT_DLLAZY_OR_NOW DL_LAZY
10440# else
10441# ifdef RTLD_NOW
10442# define LT_DLLAZY_OR_NOW RTLD_NOW
10443# else
10444# ifdef DL_NOW
10445# define LT_DLLAZY_OR_NOW DL_NOW
10446# else
10447# define LT_DLLAZY_OR_NOW 0
10448# endif
10449# endif
10450# endif
10451# endif
10452#endif
10453
10454#ifdef __cplusplus
10455extern "C" void exit (int);
10456#endif
10457
10458void fnord() { int i=42;}
10459int main ()
10460{
10461 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10462 int status = $lt_dlunknown;
10463
10464 if (self)
10465 {
10466 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10467 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10468 /* dlclose (self); */
10469 }
10470 else
10471 puts (dlerror ());
10472
10473 exit (status);
10474}
10475EOF
10476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10477 (eval $ac_link) 2>&5
10478 ac_status=$?
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10481 (./conftest; exit; ) >&5 2>/dev/null
10482 lt_status=$?
10483 case x$lt_status in
10484 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10485 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10486 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10487 esac
10488 else :
10489 # compilation failed
10490 lt_cv_dlopen_self_static=no
10491 fi
10492fi
10493rm -fr conftest*
10494
10495
10496fi
64ff59ba 10497{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10498echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
d9898ee8 10499 fi
10500
10501 CPPFLAGS="$save_CPPFLAGS"
10502 LDFLAGS="$save_LDFLAGS"
10503 LIBS="$save_LIBS"
10504 ;;
10505 esac
10506
10507 case $lt_cv_dlopen_self in
10508 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10509 *) enable_dlopen_self=unknown ;;
10510 esac
10511
10512 case $lt_cv_dlopen_self_static in
10513 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10514 *) enable_dlopen_self_static=unknown ;;
10515 esac
10516fi
10517
10518
10519# Report which library types will actually be built
64ff59ba 10520{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10521echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10522{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10523echo "${ECHO_T}$can_build_shared" >&6; }
d9898ee8 10524
64ff59ba 10525{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10526echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d9898ee8 10527test "$can_build_shared" = "no" && enable_shared=no
10528
10529# On AIX, shared libraries and static libraries use the same namespace, and
10530# are all built from PIC.
10531case $host_os in
10532aix3*)
10533 test "$enable_shared" = yes && enable_static=no
10534 if test -n "$RANLIB"; then
10535 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10536 postinstall_cmds='$RANLIB $lib'
10537 fi
10538 ;;
10539
10540aix4* | aix5*)
10541 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10542 test "$enable_shared" = yes && enable_static=no
10543 fi
10544 ;;
10545esac
64ff59ba 10546{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10547echo "${ECHO_T}$enable_shared" >&6; }
d9898ee8 10548
64ff59ba 10549{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10550echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d9898ee8 10551# Make sure either enable_shared or enable_static is yes.
10552test "$enable_shared" = yes || enable_static=yes
64ff59ba 10553{ echo "$as_me:$LINENO: result: $enable_static" >&5
10554echo "${ECHO_T}$enable_static" >&6; }
d9898ee8 10555
10556# The else clause should only fire when bootstrapping the
10557# libtool distribution, otherwise you forgot to ship ltmain.sh
10558# with your package, and you will get complaints that there are
10559# no rules to generate ltmain.sh.
10560if test -f "$ltmain"; then
10561 # See if we are running on zsh, and set the options which allow our commands through
10562 # without removal of \ escapes.
10563 if test -n "${ZSH_VERSION+set}" ; then
10564 setopt NO_GLOB_SUBST
10565 fi
10566 # Now quote all the things that may contain metacharacters while being
10567 # careful not to overquote the AC_SUBSTed values. We take copies of the
10568 # variables and quote the copies for generation of the libtool script.
10569 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10570 SED SHELL STRIP \
10571 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10572 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10573 deplibs_check_method reload_flag reload_cmds need_locks \
10574 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10575 lt_cv_sys_global_symbol_to_c_name_address \
10576 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10577 old_postinstall_cmds old_postuninstall_cmds \
10578 compiler \
10579 CC \
10580 LD \
10581 lt_prog_compiler_wl \
10582 lt_prog_compiler_pic \
10583 lt_prog_compiler_static \
10584 lt_prog_compiler_no_builtin_flag \
10585 export_dynamic_flag_spec \
10586 thread_safe_flag_spec \
10587 whole_archive_flag_spec \
10588 enable_shared_with_static_runtimes \
10589 old_archive_cmds \
10590 old_archive_from_new_cmds \
10591 predep_objects \
10592 postdep_objects \
10593 predeps \
10594 postdeps \
10595 compiler_lib_search_path \
10596 archive_cmds \
10597 archive_expsym_cmds \
10598 postinstall_cmds \
10599 postuninstall_cmds \
10600 old_archive_from_expsyms_cmds \
10601 allow_undefined_flag \
10602 no_undefined_flag \
10603 export_symbols_cmds \
10604 hardcode_libdir_flag_spec \
10605 hardcode_libdir_flag_spec_ld \
10606 hardcode_libdir_separator \
10607 hardcode_automatic \
10608 module_cmds \
10609 module_expsym_cmds \
10610 lt_cv_prog_compiler_c_o \
0fde1ce3 10611 fix_srcfile_path \
d9898ee8 10612 exclude_expsyms \
10613 include_expsyms; do
10614
10615 case $var in
10616 old_archive_cmds | \
10617 old_archive_from_new_cmds | \
10618 archive_cmds | \
10619 archive_expsym_cmds | \
10620 module_cmds | \
10621 module_expsym_cmds | \
10622 old_archive_from_expsyms_cmds | \
10623 export_symbols_cmds | \
10624 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10625 postinstall_cmds | postuninstall_cmds | \
10626 old_postinstall_cmds | old_postuninstall_cmds | \
10627 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10628 # Double-quote double-evaled strings.
10629 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10630 ;;
10631 *)
10632 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10633 ;;
10634 esac
10635 done
10636
10637 case $lt_echo in
10638 *'\$0 --fallback-echo"')
10639 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10640 ;;
10641 esac
10642
10643cfgfile="${ofile}T"
10644 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10645 $rm -f "$cfgfile"
10646 { echo "$as_me:$LINENO: creating $ofile" >&5
10647echo "$as_me: creating $ofile" >&6;}
10648
10649 cat <<__EOF__ >> "$cfgfile"
10650#! $SHELL
10651
10652# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10653# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10654# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10655#
0fde1ce3 10656# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
d9898ee8 10657# Free Software Foundation, Inc.
10658#
10659# This file is part of GNU Libtool:
10660# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10661#
10662# This program is free software; you can redistribute it and/or modify
10663# it under the terms of the GNU General Public License as published by
10664# the Free Software Foundation; either version 2 of the License, or
10665# (at your option) any later version.
10666#
10667# This program is distributed in the hope that it will be useful, but
10668# WITHOUT ANY WARRANTY; without even the implied warranty of
10669# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10670# General Public License for more details.
10671#
10672# You should have received a copy of the GNU General Public License
10673# along with this program; if not, write to the Free Software
10674# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10675#
10676# As a special exception to the GNU General Public License, if you
10677# distribute this file as part of a program that contains a
10678# configuration script generated by Autoconf, you may include it under
10679# the same distribution terms that you use for the rest of that program.
10680
10681# A sed program that does not truncate output.
10682SED=$lt_SED
10683
10684# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10685Xsed="$SED -e 1s/^X//"
10686
10687# The HP-UX ksh and POSIX shell print the target directory to stdout
10688# if CDPATH is set.
10689(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10690
10691# The names of the tagged configurations supported by this script.
10692available_tags=
10693
10694# ### BEGIN LIBTOOL CONFIG
10695
10696# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10697
10698# Shell to use when invoking shell scripts.
10699SHELL=$lt_SHELL
10700
10701# Whether or not to build shared libraries.
10702build_libtool_libs=$enable_shared
10703
10704# Whether or not to build static libraries.
10705build_old_libs=$enable_static
10706
10707# Whether or not to add -lc for building shared libraries.
10708build_libtool_need_lc=$archive_cmds_need_lc
10709
10710# Whether or not to disallow shared libs when runtime libs are static
10711allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10712
10713# Whether or not to optimize for fast installation.
10714fast_install=$enable_fast_install
10715
10716# The host system.
10717host_alias=$host_alias
10718host=$host
10719host_os=$host_os
10720
10721# The build system.
10722build_alias=$build_alias
10723build=$build
10724build_os=$build_os
10725
10726# An echo program that does not interpret backslashes.
10727echo=$lt_echo
10728
10729# The archiver.
10730AR=$lt_AR
10731AR_FLAGS=$lt_AR_FLAGS
10732
10733# A C compiler.
10734LTCC=$lt_LTCC
10735
10736# LTCC compiler flags.
10737LTCFLAGS=$lt_LTCFLAGS
10738
10739# A language-specific compiler.
10740CC=$lt_compiler
10741
10742# Is the compiler the GNU C compiler?
10743with_gcc=$GCC
10744
d9898ee8 10745# An ERE matcher.
10746EGREP=$lt_EGREP
10747
10748# The linker used to build libraries.
10749LD=$lt_LD
10750
10751# Whether we need hard or soft links.
10752LN_S=$lt_LN_S
10753
10754# A BSD-compatible nm program.
10755NM=$lt_NM
10756
10757# A symbol stripping program
10758STRIP=$lt_STRIP
10759
10760# Used to examine libraries when file_magic_cmd begins "file"
10761MAGIC_CMD=$MAGIC_CMD
10762
10763# Used on cygwin: DLL creation program.
10764DLLTOOL="$DLLTOOL"
10765
10766# Used on cygwin: object dumper.
10767OBJDUMP="$OBJDUMP"
10768
10769# Used on cygwin: assembler.
10770AS="$AS"
10771
10772# The name of the directory that contains temporary libtool files.
10773objdir=$objdir
10774
10775# How to create reloadable object files.
10776reload_flag=$lt_reload_flag
10777reload_cmds=$lt_reload_cmds
10778
10779# How to pass a linker flag through the compiler.
10780wl=$lt_lt_prog_compiler_wl
10781
10782# Object file suffix (normally "o").
10783objext="$ac_objext"
10784
10785# Old archive suffix (normally "a").
10786libext="$libext"
10787
10788# Shared library suffix (normally ".so").
10789shrext_cmds='$shrext_cmds'
10790
10791# Executable file suffix (normally "").
10792exeext="$exeext"
10793
10794# Additional compiler flags for building library objects.
10795pic_flag=$lt_lt_prog_compiler_pic
10796pic_mode=$pic_mode
10797
10798# What is the maximum length of a command?
10799max_cmd_len=$lt_cv_sys_max_cmd_len
10800
10801# Does compiler simultaneously support -c and -o options?
10802compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10803
10804# Must we lock files when doing compilation?
10805need_locks=$lt_need_locks
10806
10807# Do we need the lib prefix for modules?
10808need_lib_prefix=$need_lib_prefix
10809
10810# Do we need a version for libraries?
10811need_version=$need_version
10812
10813# Whether dlopen is supported.
10814dlopen_support=$enable_dlopen
10815
10816# Whether dlopen of programs is supported.
10817dlopen_self=$enable_dlopen_self
10818
10819# Whether dlopen of statically linked programs is supported.
10820dlopen_self_static=$enable_dlopen_self_static
10821
10822# Compiler flag to prevent dynamic linking.
10823link_static_flag=$lt_lt_prog_compiler_static
10824
10825# Compiler flag to turn off builtin functions.
10826no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10827
10828# Compiler flag to allow reflexive dlopens.
10829export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10830
10831# Compiler flag to generate shared objects directly from archives.
10832whole_archive_flag_spec=$lt_whole_archive_flag_spec
10833
10834# Compiler flag to generate thread-safe objects.
10835thread_safe_flag_spec=$lt_thread_safe_flag_spec
10836
10837# Library versioning type.
10838version_type=$version_type
10839
10840# Format of library name prefix.
10841libname_spec=$lt_libname_spec
10842
10843# List of archive names. First name is the real one, the rest are links.
10844# The last name is the one that the linker finds with -lNAME.
10845library_names_spec=$lt_library_names_spec
10846
10847# The coded name of the library, if different from the real name.
10848soname_spec=$lt_soname_spec
10849
10850# Commands used to build and install an old-style archive.
10851RANLIB=$lt_RANLIB
10852old_archive_cmds=$lt_old_archive_cmds
10853old_postinstall_cmds=$lt_old_postinstall_cmds
10854old_postuninstall_cmds=$lt_old_postuninstall_cmds
10855
10856# Create an old-style archive from a shared archive.
10857old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10858
10859# Create a temporary old-style archive to link instead of a shared archive.
10860old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10861
10862# Commands used to build and install a shared archive.
10863archive_cmds=$lt_archive_cmds
10864archive_expsym_cmds=$lt_archive_expsym_cmds
10865postinstall_cmds=$lt_postinstall_cmds
10866postuninstall_cmds=$lt_postuninstall_cmds
10867
10868# Commands used to build a loadable module (assumed same as above if empty)
10869module_cmds=$lt_module_cmds
10870module_expsym_cmds=$lt_module_expsym_cmds
10871
10872# Commands to strip libraries.
10873old_striplib=$lt_old_striplib
10874striplib=$lt_striplib
10875
10876# Dependencies to place before the objects being linked to create a
10877# shared library.
64ff59ba 10878predep_objects=$lt_predep_objects
d9898ee8 10879
10880# Dependencies to place after the objects being linked to create a
10881# shared library.
64ff59ba 10882postdep_objects=$lt_postdep_objects
d9898ee8 10883
10884# Dependencies to place before the objects being linked to create a
10885# shared library.
10886predeps=$lt_predeps
10887
10888# Dependencies to place after the objects being linked to create a
10889# shared library.
10890postdeps=$lt_postdeps
10891
10892# The library search path used internally by the compiler when linking
10893# a shared library.
64ff59ba 10894compiler_lib_search_path=$lt_compiler_lib_search_path
d9898ee8 10895
10896# Method to check whether dependent libraries are shared objects.
10897deplibs_check_method=$lt_deplibs_check_method
10898
10899# Command to use when deplibs_check_method == file_magic.
10900file_magic_cmd=$lt_file_magic_cmd
10901
10902# Flag that allows shared libraries with undefined symbols to be built.
10903allow_undefined_flag=$lt_allow_undefined_flag
10904
10905# Flag that forces no undefined symbols.
10906no_undefined_flag=$lt_no_undefined_flag
10907
10908# Commands used to finish a libtool library installation in a directory.
10909finish_cmds=$lt_finish_cmds
10910
10911# Same as above, but a single script fragment to be evaled but not shown.
10912finish_eval=$lt_finish_eval
10913
10914# Take the output of nm and produce a listing of raw symbols and C names.
10915global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10916
10917# Transform the output of nm in a proper C declaration
10918global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10919
10920# Transform the output of nm in a C name address pair
10921global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10922
10923# This is the shared library runtime path variable.
10924runpath_var=$runpath_var
10925
10926# This is the shared library path variable.
10927shlibpath_var=$shlibpath_var
10928
10929# Is shlibpath searched before the hard-coded library search path?
10930shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10931
10932# How to hardcode a shared library path into an executable.
10933hardcode_action=$hardcode_action
10934
10935# Whether we should hardcode library paths into libraries.
10936hardcode_into_libs=$hardcode_into_libs
10937
10938# Flag to hardcode \$libdir into a binary during linking.
10939# This must work even if \$libdir does not exist.
10940hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10941
10942# If ld is used when linking, flag to hardcode \$libdir into
10943# a binary during linking. This must work even if \$libdir does
10944# not exist.
10945hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10946
10947# Whether we need a single -rpath flag with a separated argument.
10948hardcode_libdir_separator=$lt_hardcode_libdir_separator
10949
10950# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10951# resulting binary.
10952hardcode_direct=$hardcode_direct
10953
10954# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10955# resulting binary.
10956hardcode_minus_L=$hardcode_minus_L
10957
10958# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10959# the resulting binary.
10960hardcode_shlibpath_var=$hardcode_shlibpath_var
10961
10962# Set to yes if building a shared library automatically hardcodes DIR into the library
10963# and all subsequent libraries and executables linked against it.
10964hardcode_automatic=$hardcode_automatic
10965
10966# Variables whose values should be saved in libtool wrapper scripts and
10967# restored at relink time.
10968variables_saved_for_relink="$variables_saved_for_relink"
10969
10970# Whether libtool must link a program against all its dependency libraries.
10971link_all_deplibs=$link_all_deplibs
10972
10973# Compile-time system search path for libraries
64ff59ba 10974sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 10975
10976# Run-time system search path for libraries
10977sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10978
10979# Fix the shell variable \$srcfile for the compiler.
0fde1ce3 10980fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 10981
10982# Set to yes if exported symbols are required.
10983always_export_symbols=$always_export_symbols
10984
10985# The commands to list exported symbols.
10986export_symbols_cmds=$lt_export_symbols_cmds
10987
10988# The commands to extract the exported symbol list from a shared archive.
10989extract_expsyms_cmds=$lt_extract_expsyms_cmds
10990
10991# Symbols that should not be listed in the preloaded symbols.
10992exclude_expsyms=$lt_exclude_expsyms
10993
10994# Symbols that must always be exported.
10995include_expsyms=$lt_include_expsyms
10996
10997# ### END LIBTOOL CONFIG
10998
10999__EOF__
11000
11001
11002 case $host_os in
11003 aix3*)
11004 cat <<\EOF >> "$cfgfile"
11005
11006# AIX sometimes has problems with the GCC collect2 program. For some
11007# reason, if we set the COLLECT_NAMES environment variable, the problems
11008# vanish in a puff of smoke.
11009if test "X${COLLECT_NAMES+set}" != Xset; then
11010 COLLECT_NAMES=
11011 export COLLECT_NAMES
11012fi
11013EOF
11014 ;;
11015 esac
11016
11017 # We use sed instead of cat because bash on DJGPP gets confused if
11018 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11019 # text mode, it properly converts lines to CR/LF. This bash problem
11020 # is reportedly fixed, but why not run on old versions too?
11021 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11022
11023 mv -f "$cfgfile" "$ofile" || \
11024 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11025 chmod +x "$ofile"
11026
11027else
11028 # If there is no Makefile yet, we rely on a make rule to execute
11029 # `config.status --recheck' to rerun these tests and create the
11030 # libtool script then.
11031 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11032 if test -f "$ltmain_in"; then
11033 test -f Makefile && make "$ltmain"
11034 fi
11035fi
11036
11037
11038ac_ext=c
11039ac_cpp='$CPP $CPPFLAGS'
11040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11042ac_compiler_gnu=$ac_cv_c_compiler_gnu
11043
11044CC="$lt_save_CC"
11045
11046
64ff59ba 11047# Check whether --with-tags was given.
d9898ee8 11048if test "${with_tags+set}" = set; then
64ff59ba 11049 withval=$with_tags; tagnames="$withval"
11050fi
11051
d9898ee8 11052
11053if test -f "$ltmain" && test -n "$tagnames"; then
11054 if test ! -f "${ofile}"; then
11055 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11056echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11057 fi
11058
11059 if test -z "$LTCC"; then
11060 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11061 if test -z "$LTCC"; then
11062 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11063echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11064 else
11065 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11066echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11067 fi
11068 fi
11069 if test -z "$LTCFLAGS"; then
11070 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11071 fi
11072
11073 # Extract list of available tagged configurations in $ofile.
11074 # Note that this assumes the entire list is on one line.
11075 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11076
11077 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11078 for tagname in $tagnames; do
11079 IFS="$lt_save_ifs"
11080 # Check whether tagname contains only valid characters
11081 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11082 "") ;;
11083 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11084echo "$as_me: error: invalid tag name: $tagname" >&2;}
11085 { (exit 1); exit 1; }; }
11086 ;;
11087 esac
11088
11089 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11090 then
11091 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11092echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11093 { (exit 1); exit 1; }; }
11094 fi
11095
11096 # Update the list of available tags.
11097 if test -n "$tagname"; then
11098 echo appending configuration tag \"$tagname\" to $ofile
11099
11100 case $tagname in
11101 CXX)
11102 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11103 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11104 (test "X$CXX" != "Xg++"))) ; then
64ff59ba 11105 ac_ext=cpp
d9898ee8 11106ac_cpp='$CXXCPP $CPPFLAGS'
11107ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11108ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11109ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11110
11111
11112
11113
11114archive_cmds_need_lc_CXX=no
11115allow_undefined_flag_CXX=
11116always_export_symbols_CXX=no
11117archive_expsym_cmds_CXX=
11118export_dynamic_flag_spec_CXX=
11119hardcode_direct_CXX=no
11120hardcode_libdir_flag_spec_CXX=
11121hardcode_libdir_flag_spec_ld_CXX=
11122hardcode_libdir_separator_CXX=
11123hardcode_minus_L_CXX=no
11124hardcode_shlibpath_var_CXX=unsupported
11125hardcode_automatic_CXX=no
11126module_cmds_CXX=
11127module_expsym_cmds_CXX=
11128link_all_deplibs_CXX=unknown
11129old_archive_cmds_CXX=$old_archive_cmds
11130no_undefined_flag_CXX=
11131whole_archive_flag_spec_CXX=
11132enable_shared_with_static_runtimes_CXX=no
11133
11134# Dependencies to place before and after the object being linked:
11135predep_objects_CXX=
11136postdep_objects_CXX=
11137predeps_CXX=
11138postdeps_CXX=
11139compiler_lib_search_path_CXX=
11140
11141# Source file extension for C++ test sources.
11142ac_ext=cpp
11143
11144# Object file extension for compiled C++ test sources.
11145objext=o
11146objext_CXX=$objext
11147
11148# Code to be used in simple compile tests
0fde1ce3 11149lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 11150
11151# Code to be used in simple link tests
0fde1ce3 11152lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
d9898ee8 11153
11154# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11155
11156# If no C compiler was specified, use CC.
11157LTCC=${LTCC-"$CC"}
11158
11159# If no C compiler flags were specified, use CFLAGS.
11160LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11161
11162# Allow CC to be a program name with arguments.
11163compiler=$CC
11164
11165
11166# save warnings/boilerplate of simple test code
11167ac_outfile=conftest.$ac_objext
0fde1ce3 11168echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 11169eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11170_lt_compiler_boilerplate=`cat conftest.err`
11171$rm conftest*
11172
11173ac_outfile=conftest.$ac_objext
0fde1ce3 11174echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 11175eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11176_lt_linker_boilerplate=`cat conftest.err`
11177$rm conftest*
11178
11179
11180# Allow CC to be a program name with arguments.
11181lt_save_CC=$CC
11182lt_save_LD=$LD
11183lt_save_GCC=$GCC
11184GCC=$GXX
11185lt_save_with_gnu_ld=$with_gnu_ld
11186lt_save_path_LD=$lt_cv_path_LD
11187if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11188 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11189else
11190 $as_unset lt_cv_prog_gnu_ld
11191fi
11192if test -n "${lt_cv_path_LDCXX+set}"; then
11193 lt_cv_path_LD=$lt_cv_path_LDCXX
11194else
11195 $as_unset lt_cv_path_LD
11196fi
11197test -z "${LDCXX+set}" || LD=$LDCXX
11198CC=${CXX-"c++"}
11199compiler=$CC
11200compiler_CXX=$CC
11201for cc_temp in $compiler""; do
11202 case $cc_temp in
11203 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11204 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11205 \-*) ;;
11206 *) break;;
11207 esac
11208done
11209cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11210
11211
11212# We don't want -fno-exception wen compiling C++ code, so set the
11213# no_builtin_flag separately
11214if test "$GXX" = yes; then
11215 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11216else
11217 lt_prog_compiler_no_builtin_flag_CXX=
11218fi
11219
11220if test "$GXX" = yes; then
11221 # Set up default GNU C++ configuration
11222
11223
64ff59ba 11224# Check whether --with-gnu-ld was given.
d9898ee8 11225if test "${with_gnu_ld+set}" = set; then
64ff59ba 11226 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 11227else
11228 with_gnu_ld=no
64ff59ba 11229fi
11230
d9898ee8 11231ac_prog=ld
11232if test "$GCC" = yes; then
11233 # Check if gcc -print-prog-name=ld gives a path.
64ff59ba 11234 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11235echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d9898ee8 11236 case $host in
11237 *-*-mingw*)
11238 # gcc leaves a trailing carriage return which upsets mingw
11239 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11240 *)
11241 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11242 esac
11243 case $ac_prog in
11244 # Accept absolute paths.
11245 [\\/]* | ?:[\\/]*)
11246 re_direlt='/[^/][^/]*/\.\./'
11247 # Canonicalize the pathname of ld
11248 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11249 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11250 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11251 done
11252 test -z "$LD" && LD="$ac_prog"
11253 ;;
11254 "")
11255 # If it fails, then pretend we aren't using GCC.
11256 ac_prog=ld
11257 ;;
11258 *)
11259 # If it is relative, then search for the first ld in PATH.
11260 with_gnu_ld=unknown
11261 ;;
11262 esac
11263elif test "$with_gnu_ld" = yes; then
64ff59ba 11264 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11265echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d9898ee8 11266else
64ff59ba 11267 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11268echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d9898ee8 11269fi
11270if test "${lt_cv_path_LD+set}" = set; then
11271 echo $ECHO_N "(cached) $ECHO_C" >&6
11272else
11273 if test -z "$LD"; then
11274 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11275 for ac_dir in $PATH; do
11276 IFS="$lt_save_ifs"
11277 test -z "$ac_dir" && ac_dir=.
11278 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11279 lt_cv_path_LD="$ac_dir/$ac_prog"
11280 # Check to see if the program is GNU ld. I'd rather use --version,
11281 # but apparently some variants of GNU ld only accept -v.
11282 # Break only if it was the GNU/non-GNU ld that we prefer.
11283 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11284 *GNU* | *'with BFD'*)
11285 test "$with_gnu_ld" != no && break
11286 ;;
11287 *)
11288 test "$with_gnu_ld" != yes && break
11289 ;;
11290 esac
11291 fi
11292 done
11293 IFS="$lt_save_ifs"
11294else
11295 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11296fi
11297fi
11298
11299LD="$lt_cv_path_LD"
11300if test -n "$LD"; then
64ff59ba 11301 { echo "$as_me:$LINENO: result: $LD" >&5
11302echo "${ECHO_T}$LD" >&6; }
d9898ee8 11303else
64ff59ba 11304 { echo "$as_me:$LINENO: result: no" >&5
11305echo "${ECHO_T}no" >&6; }
d9898ee8 11306fi
11307test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11308echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11309 { (exit 1); exit 1; }; }
64ff59ba 11310{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11311echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d9898ee8 11312if test "${lt_cv_prog_gnu_ld+set}" = set; then
11313 echo $ECHO_N "(cached) $ECHO_C" >&6
11314else
11315 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11316case `$LD -v 2>&1 </dev/null` in
11317*GNU* | *'with BFD'*)
11318 lt_cv_prog_gnu_ld=yes
11319 ;;
11320*)
11321 lt_cv_prog_gnu_ld=no
11322 ;;
11323esac
11324fi
64ff59ba 11325{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11326echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 11327with_gnu_ld=$lt_cv_prog_gnu_ld
11328
11329
11330
11331 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11332 # archiving commands below assume that GNU ld is being used.
11333 if test "$with_gnu_ld" = yes; then
11334 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11335 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'
11336
11337 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11338 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11339
11340 # If archive_cmds runs LD, not CC, wlarc should be empty
11341 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11342 # investigate it a little bit more. (MM)
11343 wlarc='${wl}'
11344
11345 # ancient GNU ld didn't support --whole-archive et. al.
11346 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11347 grep 'no-whole-archive' > /dev/null; then
11348 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11349 else
11350 whole_archive_flag_spec_CXX=
11351 fi
11352 else
11353 with_gnu_ld=no
11354 wlarc=
11355
11356 # A generic and very simple default shared library creation
11357 # command for GNU C++ for the case where it uses the native
11358 # linker, instead of GNU ld. If possible, this setting should
11359 # overridden to take advantage of the native linker features on
11360 # the platform it is being used on.
11361 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11362 fi
11363
11364 # Commands to make compiler produce verbose output that lists
11365 # what "hidden" libraries, object files and flags are used when
11366 # linking a shared library.
11367 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11368
11369else
11370 GXX=no
11371 with_gnu_ld=no
11372 wlarc=
11373fi
11374
11375# PORTME: fill in a description of your system's C++ link characteristics
64ff59ba 11376{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11377echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 11378ld_shlibs_CXX=yes
11379case $host_os in
11380 aix3*)
11381 # FIXME: insert proper C++ library support
11382 ld_shlibs_CXX=no
11383 ;;
11384 aix4* | aix5*)
11385 if test "$host_cpu" = ia64; then
11386 # On IA64, the linker does run time linking by default, so we don't
11387 # have to do anything special.
11388 aix_use_runtimelinking=no
11389 exp_sym_flag='-Bexport'
11390 no_entry_flag=""
11391 else
11392 aix_use_runtimelinking=no
11393
11394 # Test if we are trying to use run time linking or normal
11395 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11396 # need to do runtime linking.
11397 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11398 for ld_flag in $LDFLAGS; do
11399 case $ld_flag in
11400 *-brtl*)
11401 aix_use_runtimelinking=yes
11402 break
11403 ;;
11404 esac
11405 done
11406 ;;
11407 esac
11408
11409 exp_sym_flag='-bexport'
11410 no_entry_flag='-bnoentry'
11411 fi
11412
11413 # When large executables or shared objects are built, AIX ld can
11414 # have problems creating the table of contents. If linking a library
11415 # or program results in "error TOC overflow" add -mminimal-toc to
11416 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11417 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11418
11419 archive_cmds_CXX=''
11420 hardcode_direct_CXX=yes
11421 hardcode_libdir_separator_CXX=':'
11422 link_all_deplibs_CXX=yes
11423
11424 if test "$GXX" = yes; then
11425 case $host_os in aix4.[012]|aix4.[012].*)
11426 # We only want to do this on AIX 4.2 and lower, the check
11427 # below for broken collect2 doesn't work under 4.3+
11428 collect2name=`${CC} -print-prog-name=collect2`
11429 if test -f "$collect2name" && \
11430 strings "$collect2name" | grep resolve_lib_name >/dev/null
11431 then
11432 # We have reworked collect2
0fde1ce3 11433 :
d9898ee8 11434 else
11435 # We have old collect2
11436 hardcode_direct_CXX=unsupported
11437 # It fails to find uninstalled libraries when the uninstalled
11438 # path is not listed in the libpath. Setting hardcode_minus_L
11439 # to unsupported forces relinking
11440 hardcode_minus_L_CXX=yes
11441 hardcode_libdir_flag_spec_CXX='-L$libdir'
11442 hardcode_libdir_separator_CXX=
11443 fi
11444 ;;
11445 esac
11446 shared_flag='-shared'
11447 if test "$aix_use_runtimelinking" = yes; then
11448 shared_flag="$shared_flag "'${wl}-G'
11449 fi
11450 else
11451 # not using gcc
11452 if test "$host_cpu" = ia64; then
11453 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11454 # chokes on -Wl,-G. The following line is correct:
11455 shared_flag='-G'
11456 else
11457 if test "$aix_use_runtimelinking" = yes; then
11458 shared_flag='${wl}-G'
11459 else
11460 shared_flag='${wl}-bM:SRE'
11461 fi
11462 fi
11463 fi
11464
11465 # It seems that -bexpall does not export symbols beginning with
11466 # underscore (_), so it is better to generate a list of symbols to export.
11467 always_export_symbols_CXX=yes
11468 if test "$aix_use_runtimelinking" = yes; then
11469 # Warning - without using the other runtime loading flags (-brtl),
11470 # -berok will link without error, but may produce a broken library.
11471 allow_undefined_flag_CXX='-berok'
11472 # Determine the default libpath from the value encoded in an empty executable.
11473 cat >conftest.$ac_ext <<_ACEOF
11474/* confdefs.h. */
11475_ACEOF
11476cat confdefs.h >>conftest.$ac_ext
11477cat >>conftest.$ac_ext <<_ACEOF
11478/* end confdefs.h. */
11479
11480int
11481main ()
11482{
11483
11484 ;
11485 return 0;
11486}
11487_ACEOF
11488rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 11489if { (ac_try="$ac_link"
11490case "(($ac_try" in
11491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11492 *) ac_try_echo=$ac_try;;
11493esac
11494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11495 (eval "$ac_link") 2>conftest.er1
d9898ee8 11496 ac_status=$?
11497 grep -v '^ *+' conftest.er1 >conftest.err
11498 rm -f conftest.er1
11499 cat conftest.err >&5
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 11501 (exit $ac_status); } && {
11502 test -z "$ac_cxx_werror_flag" ||
11503 test ! -s conftest.err
11504 } && test -s conftest$ac_exeext &&
11505 $as_test_x conftest$ac_exeext; then
d9898ee8 11506
0fde1ce3 11507lt_aix_libpath_sed='
11508 /Import File Strings/,/^$/ {
11509 /^0/ {
11510 s/^0 *\(.*\)$/\1/
11511 p
11512 }
11513 }'
11514aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 11515# Check for a 64-bit object if we didn't find anything.
0fde1ce3 11516if test -z "$aix_libpath"; then
11517 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11518fi
d9898ee8 11519else
11520 echo "$as_me: failed program was:" >&5
11521sed 's/^/| /' conftest.$ac_ext >&5
11522
64ff59ba 11523
d9898ee8 11524fi
64ff59ba 11525
11526rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 11527 conftest$ac_exeext conftest.$ac_ext
11528if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11529
11530 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11531
11532 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"
11533 else
11534 if test "$host_cpu" = ia64; then
11535 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11536 allow_undefined_flag_CXX="-z nodefs"
11537 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"
11538 else
11539 # Determine the default libpath from the value encoded in an empty executable.
11540 cat >conftest.$ac_ext <<_ACEOF
11541/* confdefs.h. */
11542_ACEOF
11543cat confdefs.h >>conftest.$ac_ext
11544cat >>conftest.$ac_ext <<_ACEOF
11545/* end confdefs.h. */
11546
11547int
11548main ()
11549{
11550
11551 ;
11552 return 0;
11553}
11554_ACEOF
11555rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 11556if { (ac_try="$ac_link"
11557case "(($ac_try" in
11558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11559 *) ac_try_echo=$ac_try;;
11560esac
11561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11562 (eval "$ac_link") 2>conftest.er1
d9898ee8 11563 ac_status=$?
11564 grep -v '^ *+' conftest.er1 >conftest.err
11565 rm -f conftest.er1
11566 cat conftest.err >&5
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 11568 (exit $ac_status); } && {
11569 test -z "$ac_cxx_werror_flag" ||
11570 test ! -s conftest.err
11571 } && test -s conftest$ac_exeext &&
11572 $as_test_x conftest$ac_exeext; then
d9898ee8 11573
0fde1ce3 11574lt_aix_libpath_sed='
11575 /Import File Strings/,/^$/ {
11576 /^0/ {
11577 s/^0 *\(.*\)$/\1/
11578 p
11579 }
11580 }'
11581aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 11582# Check for a 64-bit object if we didn't find anything.
0fde1ce3 11583if test -z "$aix_libpath"; then
11584 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11585fi
d9898ee8 11586else
11587 echo "$as_me: failed program was:" >&5
11588sed 's/^/| /' conftest.$ac_ext >&5
11589
64ff59ba 11590
d9898ee8 11591fi
64ff59ba 11592
11593rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 11594 conftest$ac_exeext conftest.$ac_ext
11595if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11596
11597 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11598 # Warning - without using the other run time loading flags,
11599 # -berok will link without error, but may produce a broken library.
11600 no_undefined_flag_CXX=' ${wl}-bernotok'
11601 allow_undefined_flag_CXX=' ${wl}-berok'
11602 # Exported symbols can be pulled into shared objects from archives
11603 whole_archive_flag_spec_CXX='$convenience'
11604 archive_cmds_need_lc_CXX=yes
11605 # This is similar to how AIX traditionally builds its shared libraries.
11606 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'
11607 fi
11608 fi
11609 ;;
11610
11611 beos*)
11612 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11613 allow_undefined_flag_CXX=unsupported
11614 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11615 # support --undefined. This deserves some investigation. FIXME
11616 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11617 else
11618 ld_shlibs_CXX=no
11619 fi
11620 ;;
11621
11622 chorus*)
11623 case $cc_basename in
11624 *)
11625 # FIXME: insert proper C++ library support
11626 ld_shlibs_CXX=no
11627 ;;
11628 esac
11629 ;;
11630
11631 cygwin* | mingw* | pw32*)
11632 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11633 # as there is no search path for DLLs.
11634 hardcode_libdir_flag_spec_CXX='-L$libdir'
11635 allow_undefined_flag_CXX=unsupported
11636 always_export_symbols_CXX=no
11637 enable_shared_with_static_runtimes_CXX=yes
11638
11639 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11640 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'
11641 # If the export-symbols file already is a .def file (1st line
11642 # is EXPORTS), use it as is; otherwise, prepend...
11643 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11644 cp $export_symbols $output_objdir/$soname.def;
11645 else
11646 echo EXPORTS > $output_objdir/$soname.def;
11647 cat $export_symbols >> $output_objdir/$soname.def;
11648 fi~
11649 $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'
11650 else
11651 ld_shlibs_CXX=no
11652 fi
11653 ;;
11654 darwin* | rhapsody*)
11655 case $host_os in
11656 rhapsody* | darwin1.[012])
11657 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11658 ;;
11659 *) # Darwin 1.3 on
11660 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11661 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11662 else
11663 case ${MACOSX_DEPLOYMENT_TARGET} in
11664 10.[012])
11665 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11666 ;;
11667 10.*)
11668 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11669 ;;
11670 esac
11671 fi
11672 ;;
11673 esac
11674 archive_cmds_need_lc_CXX=no
11675 hardcode_direct_CXX=no
11676 hardcode_automatic_CXX=yes
11677 hardcode_shlibpath_var_CXX=unsupported
11678 whole_archive_flag_spec_CXX=''
11679 link_all_deplibs_CXX=yes
11680
11681 if test "$GXX" = yes ; then
11682 lt_int_apple_cc_single_mod=no
11683 output_verbose_link_cmd='echo'
11684 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11685 lt_int_apple_cc_single_mod=yes
11686 fi
11687 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11688 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11689 else
11690 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'
11691 fi
11692 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11693 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11694 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11695 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11696 else
11697 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11698 fi
11699 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}'
11700 else
11701 case $cc_basename in
11702 xlc*)
11703 output_verbose_link_cmd='echo'
0fde1ce3 11704 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'
d9898ee8 11705 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11706 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
0fde1ce3 11707 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}'
d9898ee8 11708 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}'
11709 ;;
11710 *)
11711 ld_shlibs_CXX=no
11712 ;;
11713 esac
11714 fi
11715 ;;
11716
11717 dgux*)
11718 case $cc_basename in
11719 ec++*)
11720 # FIXME: insert proper C++ library support
11721 ld_shlibs_CXX=no
11722 ;;
11723 ghcx*)
11724 # Green Hills C++ Compiler
11725 # FIXME: insert proper C++ library support
11726 ld_shlibs_CXX=no
11727 ;;
11728 *)
11729 # FIXME: insert proper C++ library support
11730 ld_shlibs_CXX=no
11731 ;;
11732 esac
11733 ;;
11734 freebsd[12]*)
11735 # C++ shared libraries reported to be fairly broken before switch to ELF
11736 ld_shlibs_CXX=no
11737 ;;
11738 freebsd-elf*)
11739 archive_cmds_need_lc_CXX=no
11740 ;;
0fde1ce3 11741 freebsd* | dragonfly*)
d9898ee8 11742 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11743 # conventions
11744 ld_shlibs_CXX=yes
11745 ;;
11746 gnu*)
11747 ;;
11748 hpux9*)
11749 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11750 hardcode_libdir_separator_CXX=:
11751 export_dynamic_flag_spec_CXX='${wl}-E'
11752 hardcode_direct_CXX=yes
11753 hardcode_minus_L_CXX=yes # Not in the search PATH,
11754 # but as the default
11755 # location of the library.
11756
11757 case $cc_basename in
11758 CC*)
11759 # FIXME: insert proper C++ library support
11760 ld_shlibs_CXX=no
11761 ;;
11762 aCC*)
11763 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'
11764 # Commands to make compiler produce verbose output that lists
11765 # what "hidden" libraries, object files and flags are used when
11766 # linking a shared library.
11767 #
11768 # There doesn't appear to be a way to prevent this compiler from
11769 # explicitly linking system object files so we need to strip them
11770 # from the output so that they don't get included in the library
11771 # dependencies.
11772 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'
11773 ;;
11774 *)
11775 if test "$GXX" = yes; then
11776 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'
11777 else
11778 # FIXME: insert proper C++ library support
11779 ld_shlibs_CXX=no
11780 fi
11781 ;;
11782 esac
11783 ;;
11784 hpux10*|hpux11*)
11785 if test $with_gnu_ld = no; then
11786 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11787 hardcode_libdir_separator_CXX=:
11788
11789 case $host_cpu in
0fde1ce3 11790 hppa*64*|ia64*) ;;
d9898ee8 11791 *)
11792 export_dynamic_flag_spec_CXX='${wl}-E'
11793 ;;
11794 esac
11795 fi
11796 case $host_cpu in
11797 hppa*64*|ia64*)
11798 hardcode_direct_CXX=no
11799 hardcode_shlibpath_var_CXX=no
11800 ;;
11801 *)
11802 hardcode_direct_CXX=yes
11803 hardcode_minus_L_CXX=yes # Not in the search PATH,
11804 # but as the default
11805 # location of the library.
11806 ;;
11807 esac
11808
11809 case $cc_basename in
11810 CC*)
11811 # FIXME: insert proper C++ library support
11812 ld_shlibs_CXX=no
11813 ;;
11814 aCC*)
11815 case $host_cpu in
11816 hppa*64*)
11817 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11818 ;;
11819 ia64*)
11820 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11821 ;;
11822 *)
11823 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11824 ;;
11825 esac
11826 # Commands to make compiler produce verbose output that lists
11827 # what "hidden" libraries, object files and flags are used when
11828 # linking a shared library.
11829 #
11830 # There doesn't appear to be a way to prevent this compiler from
11831 # explicitly linking system object files so we need to strip them
11832 # from the output so that they don't get included in the library
11833 # dependencies.
11834 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'
11835 ;;
11836 *)
11837 if test "$GXX" = yes; then
11838 if test $with_gnu_ld = no; then
11839 case $host_cpu in
11840 hppa*64*)
11841 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11842 ;;
11843 ia64*)
11844 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11845 ;;
11846 *)
11847 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'
11848 ;;
11849 esac
11850 fi
11851 else
11852 # FIXME: insert proper C++ library support
11853 ld_shlibs_CXX=no
11854 fi
11855 ;;
11856 esac
11857 ;;
0fde1ce3 11858 interix[3-9]*)
d9898ee8 11859 hardcode_direct_CXX=no
11860 hardcode_shlibpath_var_CXX=no
11861 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11862 export_dynamic_flag_spec_CXX='${wl}-E'
11863 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11864 # Instead, shared libraries are loaded at an image base (0x10000000 by
11865 # default) and relocated if they conflict, which is a slow very memory
11866 # consuming and fragmenting process. To avoid this, we pick a random,
11867 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11868 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11869 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'
11870 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'
11871 ;;
11872 irix5* | irix6*)
11873 case $cc_basename in
11874 CC*)
11875 # SGI C++
11876 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'
11877
11878 # Archives containing C++ object files must be created using
11879 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11880 # necessary to make sure instantiated templates are included
11881 # in the archive.
11882 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11883 ;;
11884 *)
11885 if test "$GXX" = yes; then
11886 if test "$with_gnu_ld" = no; then
11887 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'
11888 else
11889 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'
11890 fi
11891 fi
11892 link_all_deplibs_CXX=yes
11893 ;;
11894 esac
11895 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11896 hardcode_libdir_separator_CXX=:
11897 ;;
0fde1ce3 11898 linux* | k*bsd*-gnu)
d9898ee8 11899 case $cc_basename in
11900 KCC*)
11901 # Kuck and Associates, Inc. (KAI) C++ Compiler
11902
11903 # KCC will only create a shared library if the output file
11904 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11905 # to its proper name (with version) after linking.
11906 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'
11907 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'
11908 # Commands to make compiler produce verbose output that lists
11909 # what "hidden" libraries, object files and flags are used when
11910 # linking a shared library.
11911 #
11912 # There doesn't appear to be a way to prevent this compiler from
11913 # explicitly linking system object files so we need to strip them
11914 # from the output so that they don't get included in the library
11915 # dependencies.
11916 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'
11917
11918 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11919 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11920
11921 # Archives containing C++ object files must be created using
11922 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11923 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11924 ;;
11925 icpc*)
11926 # Intel C++
11927 with_gnu_ld=yes
11928 # version 8.0 and above of icpc choke on multiply defined symbols
11929 # if we add $predep_objects and $postdep_objects, however 7.1 and
11930 # earlier do not add the objects themselves.
11931 case `$CC -V 2>&1` in
11932 *"Version 7."*)
11933 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11934 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'
11935 ;;
11936 *) # Version 8.0 or newer
11937 tmp_idyn=
11938 case $host_cpu in
11939 ia64*) tmp_idyn=' -i_dynamic';;
11940 esac
11941 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11942 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'
11943 ;;
11944 esac
11945 archive_cmds_need_lc_CXX=no
11946 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11947 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11948 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11949 ;;
11950 pgCC*)
11951 # Portland Group C++ compiler
11952 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11953 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'
11954
11955 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11956 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11957 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'
11958 ;;
11959 cxx*)
11960 # Compaq C++
11961 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11962 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'
11963
11964 runpath_var=LD_RUN_PATH
11965 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11966 hardcode_libdir_separator_CXX=:
11967
11968 # Commands to make compiler produce verbose output that lists
11969 # what "hidden" libraries, object files and flags are used when
11970 # linking a shared library.
11971 #
11972 # There doesn't appear to be a way to prevent this compiler from
11973 # explicitly linking system object files so we need to strip them
11974 # from the output so that they don't get included in the library
11975 # dependencies.
11976 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'
11977 ;;
0fde1ce3 11978 *)
11979 case `$CC -V 2>&1 | sed 5q` in
11980 *Sun\ C*)
11981 # Sun C++ 5.9
11982 no_undefined_flag_CXX=' -zdefs'
11983 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11984 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'
11985 hardcode_libdir_flag_spec_CXX='-R$libdir'
11986 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'
11987
11988 # Not sure whether something based on
11989 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11990 # would be better.
11991 output_verbose_link_cmd='echo'
11992
11993 # Archives containing C++ object files must be created using
11994 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11995 # necessary to make sure instantiated templates are included
11996 # in the archive.
11997 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11998 ;;
11999 esac
12000 ;;
d9898ee8 12001 esac
12002 ;;
12003 lynxos*)
12004 # FIXME: insert proper C++ library support
12005 ld_shlibs_CXX=no
12006 ;;
12007 m88k*)
12008 # FIXME: insert proper C++ library support
12009 ld_shlibs_CXX=no
12010 ;;
12011 mvs*)
12012 case $cc_basename in
12013 cxx*)
12014 # FIXME: insert proper C++ library support
12015 ld_shlibs_CXX=no
12016 ;;
12017 *)
12018 # FIXME: insert proper C++ library support
12019 ld_shlibs_CXX=no
12020 ;;
12021 esac
12022 ;;
12023 netbsd*)
12024 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12025 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12026 wlarc=
12027 hardcode_libdir_flag_spec_CXX='-R$libdir'
12028 hardcode_direct_CXX=yes
12029 hardcode_shlibpath_var_CXX=no
12030 fi
12031 # Workaround some broken pre-1.5 toolchains
12032 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12033 ;;
12034 openbsd2*)
12035 # C++ shared libraries are fairly broken
12036 ld_shlibs_CXX=no
12037 ;;
12038 openbsd*)
0fde1ce3 12039 if test -f /usr/libexec/ld.so; then
12040 hardcode_direct_CXX=yes
12041 hardcode_shlibpath_var_CXX=no
12042 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12043 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12044 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12045 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12046 export_dynamic_flag_spec_CXX='${wl}-E'
12047 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12048 fi
12049 output_verbose_link_cmd='echo'
12050 else
12051 ld_shlibs_CXX=no
d9898ee8 12052 fi
d9898ee8 12053 ;;
12054 osf3*)
12055 case $cc_basename in
12056 KCC*)
12057 # Kuck and Associates, Inc. (KAI) C++ Compiler
12058
12059 # KCC will only create a shared library if the output file
12060 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12061 # to its proper name (with version) after linking.
12062 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'
12063
12064 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12065 hardcode_libdir_separator_CXX=:
12066
12067 # Archives containing C++ object files must be created using
12068 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12069 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12070
12071 ;;
12072 RCC*)
12073 # Rational C++ 2.4.1
12074 # FIXME: insert proper C++ library support
12075 ld_shlibs_CXX=no
12076 ;;
12077 cxx*)
12078 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12079 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'
12080
12081 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12082 hardcode_libdir_separator_CXX=:
12083
12084 # Commands to make compiler produce verbose output that lists
12085 # what "hidden" libraries, object files and flags are used when
12086 # linking a shared library.
12087 #
12088 # There doesn't appear to be a way to prevent this compiler from
12089 # explicitly linking system object files so we need to strip them
12090 # from the output so that they don't get included in the library
12091 # dependencies.
12092 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'
12093 ;;
12094 *)
12095 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12096 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12097 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'
12098
12099 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12100 hardcode_libdir_separator_CXX=:
12101
12102 # Commands to make compiler produce verbose output that lists
12103 # what "hidden" libraries, object files and flags are used when
12104 # linking a shared library.
12105 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12106
12107 else
12108 # FIXME: insert proper C++ library support
12109 ld_shlibs_CXX=no
12110 fi
12111 ;;
12112 esac
12113 ;;
12114 osf4* | osf5*)
12115 case $cc_basename in
12116 KCC*)
12117 # Kuck and Associates, Inc. (KAI) C++ Compiler
12118
12119 # KCC will only create a shared library if the output file
12120 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12121 # to its proper name (with version) after linking.
12122 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'
12123
12124 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12125 hardcode_libdir_separator_CXX=:
12126
12127 # Archives containing C++ object files must be created using
12128 # the KAI C++ compiler.
12129 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12130 ;;
12131 RCC*)
12132 # Rational C++ 2.4.1
12133 # FIXME: insert proper C++ library support
12134 ld_shlibs_CXX=no
12135 ;;
12136 cxx*)
12137 allow_undefined_flag_CXX=' -expect_unresolved \*'
12138 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'
12139 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12140 echo "-hidden">> $lib.exp~
12141 $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~
12142 $rm $lib.exp'
12143
12144 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12145 hardcode_libdir_separator_CXX=:
12146
12147 # Commands to make compiler produce verbose output that lists
12148 # what "hidden" libraries, object files and flags are used when
12149 # linking a shared library.
12150 #
12151 # There doesn't appear to be a way to prevent this compiler from
12152 # explicitly linking system object files so we need to strip them
12153 # from the output so that they don't get included in the library
12154 # dependencies.
12155 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'
12156 ;;
12157 *)
12158 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12159 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12160 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'
12161
12162 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12163 hardcode_libdir_separator_CXX=:
12164
12165 # Commands to make compiler produce verbose output that lists
12166 # what "hidden" libraries, object files and flags are used when
12167 # linking a shared library.
12168 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12169
12170 else
12171 # FIXME: insert proper C++ library support
12172 ld_shlibs_CXX=no
12173 fi
12174 ;;
12175 esac
12176 ;;
12177 psos*)
12178 # FIXME: insert proper C++ library support
12179 ld_shlibs_CXX=no
12180 ;;
12181 sunos4*)
12182 case $cc_basename in
12183 CC*)
12184 # Sun C++ 4.x
12185 # FIXME: insert proper C++ library support
12186 ld_shlibs_CXX=no
12187 ;;
12188 lcc*)
12189 # Lucid
12190 # FIXME: insert proper C++ library support
12191 ld_shlibs_CXX=no
12192 ;;
12193 *)
12194 # FIXME: insert proper C++ library support
12195 ld_shlibs_CXX=no
12196 ;;
12197 esac
12198 ;;
12199 solaris*)
12200 case $cc_basename in
12201 CC*)
12202 # Sun C++ 4.2, 5.x and Centerline C++
12203 archive_cmds_need_lc_CXX=yes
12204 no_undefined_flag_CXX=' -zdefs'
12205 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12206 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12207 $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'
12208
12209 hardcode_libdir_flag_spec_CXX='-R$libdir'
12210 hardcode_shlibpath_var_CXX=no
12211 case $host_os in
12212 solaris2.[0-5] | solaris2.[0-5].*) ;;
12213 *)
0fde1ce3 12214 # The compiler driver will combine and reorder linker options,
12215 # but understands `-z linker_flag'.
d9898ee8 12216 # Supported since Solaris 2.6 (maybe 2.5.1?)
0fde1ce3 12217 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
d9898ee8 12218 ;;
12219 esac
12220 link_all_deplibs_CXX=yes
12221
12222 output_verbose_link_cmd='echo'
12223
12224 # Archives containing C++ object files must be created using
12225 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12226 # necessary to make sure instantiated templates are included
12227 # in the archive.
12228 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12229 ;;
12230 gcx*)
12231 # Green Hills C++ Compiler
12232 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12233
12234 # The C++ compiler must be used to create the archive.
12235 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12236 ;;
12237 *)
12238 # GNU C++ compiler with Solaris linker
12239 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12240 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12241 if $CC --version | grep -v '^2\.7' > /dev/null; then
12242 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12243 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12244 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12245
12246 # Commands to make compiler produce verbose output that lists
12247 # what "hidden" libraries, object files and flags are used when
12248 # linking a shared library.
12249 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12250 else
12251 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12252 # platform.
12253 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12254 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12255 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12256
12257 # Commands to make compiler produce verbose output that lists
12258 # what "hidden" libraries, object files and flags are used when
12259 # linking a shared library.
12260 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12261 fi
12262
12263 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
0fde1ce3 12264 case $host_os in
12265 solaris2.[0-5] | solaris2.[0-5].*) ;;
12266 *)
12267 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12268 ;;
12269 esac
d9898ee8 12270 fi
12271 ;;
12272 esac
12273 ;;
12274 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12275 no_undefined_flag_CXX='${wl}-z,text'
12276 archive_cmds_need_lc_CXX=no
12277 hardcode_shlibpath_var_CXX=no
12278 runpath_var='LD_RUN_PATH'
12279
12280 case $cc_basename in
12281 CC*)
12282 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12283 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12284 ;;
12285 *)
12286 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12287 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12288 ;;
12289 esac
12290 ;;
12291 sysv5* | sco3.2v5* | sco5v6*)
12292 # Note: We can NOT use -z defs as we might desire, because we do not
12293 # link with -lc, and that would cause any symbols used from libc to
12294 # always be unresolved, which means just about no library would
12295 # ever link correctly. If we're not using GNU ld we use -z text
12296 # though, which does catch some bad symbols but isn't as heavy-handed
12297 # as -z defs.
12298 # For security reasons, it is highly recommended that you always
12299 # use absolute paths for naming shared libraries, and exclude the
12300 # DT_RUNPATH tag from executables and libraries. But doing so
12301 # requires that you compile everything twice, which is a pain.
12302 # So that behaviour is only enabled if SCOABSPATH is set to a
12303 # non-empty value in the environment. Most likely only useful for
12304 # creating official distributions of packages.
12305 # This is a hack until libtool officially supports absolute path
12306 # names for shared libraries.
12307 no_undefined_flag_CXX='${wl}-z,text'
12308 allow_undefined_flag_CXX='${wl}-z,nodefs'
12309 archive_cmds_need_lc_CXX=no
12310 hardcode_shlibpath_var_CXX=no
12311 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12312 hardcode_libdir_separator_CXX=':'
12313 link_all_deplibs_CXX=yes
12314 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12315 runpath_var='LD_RUN_PATH'
12316
12317 case $cc_basename in
12318 CC*)
12319 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12320 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12321 ;;
12322 *)
12323 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12324 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12325 ;;
12326 esac
12327 ;;
12328 tandem*)
12329 case $cc_basename in
12330 NCC*)
12331 # NonStop-UX NCC 3.20
12332 # FIXME: insert proper C++ library support
12333 ld_shlibs_CXX=no
12334 ;;
12335 *)
12336 # FIXME: insert proper C++ library support
12337 ld_shlibs_CXX=no
12338 ;;
12339 esac
12340 ;;
12341 vxworks*)
12342 # FIXME: insert proper C++ library support
12343 ld_shlibs_CXX=no
12344 ;;
12345 *)
12346 # FIXME: insert proper C++ library support
12347 ld_shlibs_CXX=no
12348 ;;
12349esac
64ff59ba 12350{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12351echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d9898ee8 12352test "$ld_shlibs_CXX" = no && can_build_shared=no
12353
12354GCC_CXX="$GXX"
12355LD_CXX="$LD"
12356
12357## CAVEAT EMPTOR:
12358## There is no encapsulation within the following macros, do not change
12359## the running order or otherwise move them around unless you know exactly
12360## what you are doing...
12361
12362cat > conftest.$ac_ext <<EOF
12363class Foo
12364{
12365public:
12366 Foo (void) { a = 0; }
12367private:
12368 int a;
12369};
12370EOF
12371
12372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12373 (eval $ac_compile) 2>&5
12374 ac_status=$?
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); }; then
12377 # Parse the compiler output and extract the necessary
12378 # objects, libraries and library flags.
12379
12380 # Sentinel used to keep track of whether or not we are before
12381 # the conftest object file.
12382 pre_test_object_deps_done=no
12383
12384 # The `*' in the case matches for architectures that use `case' in
12385 # $output_verbose_cmd can trigger glob expansion during the loop
12386 # eval without this substitution.
12387 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12388
12389 for p in `eval $output_verbose_link_cmd`; do
12390 case $p in
12391
12392 -L* | -R* | -l*)
12393 # Some compilers place space between "-{L,R}" and the path.
12394 # Remove the space.
12395 if test $p = "-L" \
12396 || test $p = "-R"; then
12397 prev=$p
12398 continue
12399 else
12400 prev=
12401 fi
12402
12403 if test "$pre_test_object_deps_done" = no; then
12404 case $p in
12405 -L* | -R*)
12406 # Internal compiler library paths should come after those
12407 # provided the user. The postdeps already come after the
12408 # user supplied libs so there is no need to process them.
12409 if test -z "$compiler_lib_search_path_CXX"; then
12410 compiler_lib_search_path_CXX="${prev}${p}"
12411 else
12412 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12413 fi
12414 ;;
12415 # The "-l" case would never come before the object being
12416 # linked, so don't bother handling this case.
12417 esac
12418 else
12419 if test -z "$postdeps_CXX"; then
12420 postdeps_CXX="${prev}${p}"
12421 else
12422 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12423 fi
12424 fi
12425 ;;
12426
12427 *.$objext)
12428 # This assumes that the test object file only shows up
12429 # once in the compiler output.
12430 if test "$p" = "conftest.$objext"; then
12431 pre_test_object_deps_done=yes
12432 continue
12433 fi
12434
12435 if test "$pre_test_object_deps_done" = no; then
12436 if test -z "$predep_objects_CXX"; then
12437 predep_objects_CXX="$p"
12438 else
12439 predep_objects_CXX="$predep_objects_CXX $p"
12440 fi
12441 else
12442 if test -z "$postdep_objects_CXX"; then
12443 postdep_objects_CXX="$p"
12444 else
12445 postdep_objects_CXX="$postdep_objects_CXX $p"
12446 fi
12447 fi
12448 ;;
12449
12450 *) ;; # Ignore the rest.
12451
12452 esac
12453 done
12454
12455 # Clean up.
12456 rm -f a.out a.exe
12457else
12458 echo "libtool.m4: error: problem compiling CXX test program"
12459fi
12460
12461$rm -f confest.$objext
12462
12463# PORTME: override above test on systems where it is broken
12464case $host_os in
0fde1ce3 12465interix[3-9]*)
d9898ee8 12466 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12467 # hack all around it, let's just trust "g++" to DTRT.
12468 predep_objects_CXX=
12469 postdep_objects_CXX=
12470 postdeps_CXX=
12471 ;;
12472
0fde1ce3 12473linux*)
12474 case `$CC -V 2>&1 | sed 5q` in
12475 *Sun\ C*)
12476 # Sun C++ 5.9
12477 #
12478 # The more standards-conforming stlport4 library is
12479 # incompatible with the Cstd library. Avoid specifying
12480 # it if it's in CXXFLAGS. Ignore libCrun as
12481 # -library=stlport4 depends on it.
12482 case " $CXX $CXXFLAGS " in
12483 *" -library=stlport4 "*)
12484 solaris_use_stlport4=yes
12485 ;;
12486 esac
12487 if test "$solaris_use_stlport4" != yes; then
12488 postdeps_CXX='-library=Cstd -library=Crun'
12489 fi
12490 ;;
12491 esac
12492 ;;
12493
d9898ee8 12494solaris*)
12495 case $cc_basename in
12496 CC*)
0fde1ce3 12497 # The more standards-conforming stlport4 library is
12498 # incompatible with the Cstd library. Avoid specifying
12499 # it if it's in CXXFLAGS. Ignore libCrun as
12500 # -library=stlport4 depends on it.
12501 case " $CXX $CXXFLAGS " in
12502 *" -library=stlport4 "*)
12503 solaris_use_stlport4=yes
12504 ;;
12505 esac
12506
d9898ee8 12507 # Adding this requires a known-good setup of shared libraries for
12508 # Sun compiler versions before 5.6, else PIC objects from an old
12509 # archive will be linked into the output, leading to subtle bugs.
0fde1ce3 12510 if test "$solaris_use_stlport4" != yes; then
12511 postdeps_CXX='-library=Cstd -library=Crun'
12512 fi
d9898ee8 12513 ;;
12514 esac
12515 ;;
12516esac
12517
12518
12519case " $postdeps_CXX " in
12520*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12521esac
12522
12523lt_prog_compiler_wl_CXX=
12524lt_prog_compiler_pic_CXX=
12525lt_prog_compiler_static_CXX=
12526
64ff59ba 12527{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12528echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 12529
12530 # C++ specific cases for pic, static, wl, etc.
12531 if test "$GXX" = yes; then
12532 lt_prog_compiler_wl_CXX='-Wl,'
12533 lt_prog_compiler_static_CXX='-static'
12534
12535 case $host_os in
12536 aix*)
12537 # All AIX code is PIC.
12538 if test "$host_cpu" = ia64; then
12539 # AIX 5 now supports IA64 processor
12540 lt_prog_compiler_static_CXX='-Bstatic'
12541 fi
12542 ;;
12543 amigaos*)
12544 # FIXME: we need at least 68020 code to build shared libraries, but
12545 # adding the `-m68020' flag to GCC prevents building anything better,
12546 # like `-m68040'.
12547 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12548 ;;
0fde1ce3 12549 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 12550 # PIC is the default for these OSes.
12551 ;;
0fde1ce3 12552 mingw* | cygwin* | os2* | pw32*)
d9898ee8 12553 # This hack is so that the source file can tell whether it is being
12554 # built for inclusion in a dll (and should export symbols for example).
0fde1ce3 12555 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12556 # (--disable-auto-import) libraries
d9898ee8 12557 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12558 ;;
12559 darwin* | rhapsody*)
12560 # PIC is the default on this platform
12561 # Common symbols not allowed in MH_DYLIB files
12562 lt_prog_compiler_pic_CXX='-fno-common'
12563 ;;
12564 *djgpp*)
12565 # DJGPP does not support shared libraries at all
12566 lt_prog_compiler_pic_CXX=
12567 ;;
0fde1ce3 12568 interix[3-9]*)
d9898ee8 12569 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12570 # Instead, we relocate shared libraries at runtime.
12571 ;;
12572 sysv4*MP*)
12573 if test -d /usr/nec; then
12574 lt_prog_compiler_pic_CXX=-Kconform_pic
12575 fi
12576 ;;
12577 hpux*)
12578 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12579 # not for PA HP-UX.
12580 case $host_cpu in
12581 hppa*64*|ia64*)
12582 ;;
12583 *)
12584 lt_prog_compiler_pic_CXX='-fPIC'
12585 ;;
12586 esac
12587 ;;
12588 *)
12589 lt_prog_compiler_pic_CXX='-fPIC'
12590 ;;
12591 esac
12592 else
12593 case $host_os in
12594 aix4* | aix5*)
12595 # All AIX code is PIC.
12596 if test "$host_cpu" = ia64; then
12597 # AIX 5 now supports IA64 processor
12598 lt_prog_compiler_static_CXX='-Bstatic'
12599 else
12600 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12601 fi
12602 ;;
12603 chorus*)
12604 case $cc_basename in
12605 cxch68*)
12606 # Green Hills C++ Compiler
12607 # _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"
12608 ;;
12609 esac
12610 ;;
12611 darwin*)
12612 # PIC is the default on this platform
12613 # Common symbols not allowed in MH_DYLIB files
12614 case $cc_basename in
12615 xlc*)
12616 lt_prog_compiler_pic_CXX='-qnocommon'
12617 lt_prog_compiler_wl_CXX='-Wl,'
12618 ;;
12619 esac
12620 ;;
12621 dgux*)
12622 case $cc_basename in
12623 ec++*)
12624 lt_prog_compiler_pic_CXX='-KPIC'
12625 ;;
12626 ghcx*)
12627 # Green Hills C++ Compiler
12628 lt_prog_compiler_pic_CXX='-pic'
12629 ;;
12630 *)
12631 ;;
12632 esac
12633 ;;
0fde1ce3 12634 freebsd* | dragonfly*)
d9898ee8 12635 # FreeBSD uses GNU C++
12636 ;;
12637 hpux9* | hpux10* | hpux11*)
12638 case $cc_basename in
12639 CC*)
12640 lt_prog_compiler_wl_CXX='-Wl,'
12641 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12642 if test "$host_cpu" != ia64; then
12643 lt_prog_compiler_pic_CXX='+Z'
12644 fi
12645 ;;
12646 aCC*)
12647 lt_prog_compiler_wl_CXX='-Wl,'
12648 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12649 case $host_cpu in
12650 hppa*64*|ia64*)
12651 # +Z the default
12652 ;;
12653 *)
12654 lt_prog_compiler_pic_CXX='+Z'
12655 ;;
12656 esac
12657 ;;
12658 *)
12659 ;;
12660 esac
12661 ;;
12662 interix*)
12663 # This is c89, which is MS Visual C++ (no shared libs)
12664 # Anyone wants to do a port?
12665 ;;
12666 irix5* | irix6* | nonstopux*)
12667 case $cc_basename in
12668 CC*)
12669 lt_prog_compiler_wl_CXX='-Wl,'
12670 lt_prog_compiler_static_CXX='-non_shared'
12671 # CC pic flag -KPIC is the default.
12672 ;;
12673 *)
12674 ;;
12675 esac
12676 ;;
0fde1ce3 12677 linux* | k*bsd*-gnu)
d9898ee8 12678 case $cc_basename in
12679 KCC*)
12680 # KAI C++ Compiler
12681 lt_prog_compiler_wl_CXX='--backend -Wl,'
12682 lt_prog_compiler_pic_CXX='-fPIC'
12683 ;;
12684 icpc* | ecpc*)
12685 # Intel C++
12686 lt_prog_compiler_wl_CXX='-Wl,'
12687 lt_prog_compiler_pic_CXX='-KPIC'
12688 lt_prog_compiler_static_CXX='-static'
12689 ;;
12690 pgCC*)
12691 # Portland Group C++ compiler.
12692 lt_prog_compiler_wl_CXX='-Wl,'
12693 lt_prog_compiler_pic_CXX='-fpic'
12694 lt_prog_compiler_static_CXX='-Bstatic'
12695 ;;
12696 cxx*)
12697 # Compaq C++
12698 # Make sure the PIC flag is empty. It appears that all Alpha
12699 # Linux and Compaq Tru64 Unix objects are PIC.
12700 lt_prog_compiler_pic_CXX=
12701 lt_prog_compiler_static_CXX='-non_shared'
12702 ;;
12703 *)
0fde1ce3 12704 case `$CC -V 2>&1 | sed 5q` in
12705 *Sun\ C*)
12706 # Sun C++ 5.9
12707 lt_prog_compiler_pic_CXX='-KPIC'
12708 lt_prog_compiler_static_CXX='-Bstatic'
12709 lt_prog_compiler_wl_CXX='-Qoption ld '
12710 ;;
12711 esac
d9898ee8 12712 ;;
12713 esac
12714 ;;
12715 lynxos*)
12716 ;;
12717 m88k*)
12718 ;;
12719 mvs*)
12720 case $cc_basename in
12721 cxx*)
12722 lt_prog_compiler_pic_CXX='-W c,exportall'
12723 ;;
12724 *)
12725 ;;
12726 esac
12727 ;;
12728 netbsd*)
12729 ;;
12730 osf3* | osf4* | osf5*)
12731 case $cc_basename in
12732 KCC*)
12733 lt_prog_compiler_wl_CXX='--backend -Wl,'
12734 ;;
12735 RCC*)
12736 # Rational C++ 2.4.1
12737 lt_prog_compiler_pic_CXX='-pic'
12738 ;;
12739 cxx*)
12740 # Digital/Compaq C++
12741 lt_prog_compiler_wl_CXX='-Wl,'
12742 # Make sure the PIC flag is empty. It appears that all Alpha
12743 # Linux and Compaq Tru64 Unix objects are PIC.
12744 lt_prog_compiler_pic_CXX=
12745 lt_prog_compiler_static_CXX='-non_shared'
12746 ;;
12747 *)
12748 ;;
12749 esac
12750 ;;
12751 psos*)
12752 ;;
12753 solaris*)
12754 case $cc_basename in
12755 CC*)
12756 # Sun C++ 4.2, 5.x and Centerline C++
12757 lt_prog_compiler_pic_CXX='-KPIC'
12758 lt_prog_compiler_static_CXX='-Bstatic'
12759 lt_prog_compiler_wl_CXX='-Qoption ld '
12760 ;;
12761 gcx*)
12762 # Green Hills C++ Compiler
12763 lt_prog_compiler_pic_CXX='-PIC'
12764 ;;
12765 *)
12766 ;;
12767 esac
12768 ;;
12769 sunos4*)
12770 case $cc_basename in
12771 CC*)
12772 # Sun C++ 4.x
12773 lt_prog_compiler_pic_CXX='-pic'
12774 lt_prog_compiler_static_CXX='-Bstatic'
12775 ;;
12776 lcc*)
12777 # Lucid
12778 lt_prog_compiler_pic_CXX='-pic'
12779 ;;
12780 *)
12781 ;;
12782 esac
12783 ;;
12784 tandem*)
12785 case $cc_basename in
12786 NCC*)
12787 # NonStop-UX NCC 3.20
12788 lt_prog_compiler_pic_CXX='-KPIC'
12789 ;;
12790 *)
12791 ;;
12792 esac
12793 ;;
12794 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12795 case $cc_basename in
12796 CC*)
12797 lt_prog_compiler_wl_CXX='-Wl,'
12798 lt_prog_compiler_pic_CXX='-KPIC'
12799 lt_prog_compiler_static_CXX='-Bstatic'
12800 ;;
12801 esac
12802 ;;
12803 vxworks*)
12804 ;;
12805 *)
12806 lt_prog_compiler_can_build_shared_CXX=no
12807 ;;
12808 esac
12809 fi
12810
64ff59ba 12811{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12812echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
d9898ee8 12813
12814#
12815# Check to make sure the PIC flag actually works.
12816#
12817if test -n "$lt_prog_compiler_pic_CXX"; then
12818
64ff59ba 12819{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12820echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
d9898ee8 12821if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12822 echo $ECHO_N "(cached) $ECHO_C" >&6
12823else
12824 lt_prog_compiler_pic_works_CXX=no
12825 ac_outfile=conftest.$ac_objext
0fde1ce3 12826 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 12827 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12828 # Insert the option either (1) after the last *FLAGS variable, or
12829 # (2) before a word containing "conftest.", or (3) at the end.
12830 # Note that $ac_compile itself does not contain backslashes and begins
12831 # with a dollar sign (not a hyphen), so the echo should work correctly.
12832 # The option is referenced via a variable to avoid confusing sed.
12833 lt_compile=`echo "$ac_compile" | $SED \
12834 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12835 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12836 -e 's:$: $lt_compiler_flag:'`
0fde1ce3 12837 (eval echo "\"\$as_me:12837: $lt_compile\"" >&5)
d9898ee8 12838 (eval "$lt_compile" 2>conftest.err)
12839 ac_status=$?
12840 cat conftest.err >&5
0fde1ce3 12841 echo "$as_me:12841: \$? = $ac_status" >&5
d9898ee8 12842 if (exit $ac_status) && test -s "$ac_outfile"; then
12843 # The compiler can only warn and ignore the option if not recognized
12844 # So say no if there are warnings other than the usual output.
12845 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12846 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12847 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12848 lt_prog_compiler_pic_works_CXX=yes
12849 fi
12850 fi
12851 $rm conftest*
12852
12853fi
64ff59ba 12854{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12855echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
d9898ee8 12856
12857if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12858 case $lt_prog_compiler_pic_CXX in
12859 "" | " "*) ;;
12860 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12861 esac
12862else
12863 lt_prog_compiler_pic_CXX=
12864 lt_prog_compiler_can_build_shared_CXX=no
12865fi
12866
12867fi
12868case $host_os in
12869 # For platforms which do not support PIC, -DPIC is meaningless:
12870 *djgpp*)
12871 lt_prog_compiler_pic_CXX=
12872 ;;
12873 *)
12874 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12875 ;;
12876esac
12877
12878#
12879# Check to make sure the static flag actually works.
12880#
12881wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
64ff59ba 12882{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12883echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 12884if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12885 echo $ECHO_N "(cached) $ECHO_C" >&6
12886else
12887 lt_prog_compiler_static_works_CXX=no
12888 save_LDFLAGS="$LDFLAGS"
12889 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
0fde1ce3 12890 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 12891 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12892 # The linker can only warn and ignore the option if not recognized
12893 # So say no if there are warnings
12894 if test -s conftest.err; then
12895 # Append any errors to the config.log.
12896 cat conftest.err 1>&5
12897 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12898 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12899 if diff conftest.exp conftest.er2 >/dev/null; then
12900 lt_prog_compiler_static_works_CXX=yes
12901 fi
12902 else
12903 lt_prog_compiler_static_works_CXX=yes
12904 fi
12905 fi
12906 $rm conftest*
12907 LDFLAGS="$save_LDFLAGS"
12908
12909fi
64ff59ba 12910{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12911echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
d9898ee8 12912
12913if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12914 :
12915else
12916 lt_prog_compiler_static_CXX=
12917fi
12918
12919
64ff59ba 12920{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12921echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 12922if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12923 echo $ECHO_N "(cached) $ECHO_C" >&6
12924else
12925 lt_cv_prog_compiler_c_o_CXX=no
12926 $rm -r conftest 2>/dev/null
12927 mkdir conftest
12928 cd conftest
12929 mkdir out
0fde1ce3 12930 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 12931
12932 lt_compiler_flag="-o out/conftest2.$ac_objext"
12933 # Insert the option either (1) after the last *FLAGS variable, or
12934 # (2) before a word containing "conftest.", or (3) at the end.
12935 # Note that $ac_compile itself does not contain backslashes and begins
12936 # with a dollar sign (not a hyphen), so the echo should work correctly.
12937 lt_compile=`echo "$ac_compile" | $SED \
12938 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12939 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12940 -e 's:$: $lt_compiler_flag:'`
0fde1ce3 12941 (eval echo "\"\$as_me:12941: $lt_compile\"" >&5)
d9898ee8 12942 (eval "$lt_compile" 2>out/conftest.err)
12943 ac_status=$?
12944 cat out/conftest.err >&5
0fde1ce3 12945 echo "$as_me:12945: \$? = $ac_status" >&5
d9898ee8 12946 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12947 then
12948 # The compiler can only warn and ignore the option if not recognized
12949 # So say no if there are warnings
12950 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12951 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12952 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12953 lt_cv_prog_compiler_c_o_CXX=yes
12954 fi
12955 fi
12956 chmod u+w . 2>&5
12957 $rm conftest*
12958 # SGI C++ compiler will create directory out/ii_files/ for
12959 # template instantiation
12960 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12961 $rm out/* && rmdir out
12962 cd ..
12963 rmdir conftest
12964 $rm conftest*
12965
12966fi
64ff59ba 12967{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12968echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
d9898ee8 12969
12970
12971hard_links="nottested"
12972if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12973 # do not overwrite the value of need_locks provided by the user
64ff59ba 12974 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12975echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 12976 hard_links=yes
12977 $rm conftest*
12978 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12979 touch conftest.a
12980 ln conftest.a conftest.b 2>&5 || hard_links=no
12981 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 12982 { echo "$as_me:$LINENO: result: $hard_links" >&5
12983echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 12984 if test "$hard_links" = no; then
12985 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12986echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12987 need_locks=warn
12988 fi
12989else
12990 need_locks=no
12991fi
12992
64ff59ba 12993{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12994echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 12995
12996 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12997 case $host_os in
12998 aix4* | aix5*)
12999 # If we're using GNU nm, then we don't want the "-C" option.
13000 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13001 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13002 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'
13003 else
13004 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'
13005 fi
13006 ;;
13007 pw32*)
13008 export_symbols_cmds_CXX="$ltdll_cmds"
13009 ;;
13010 cygwin* | mingw*)
0fde1ce3 13011 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'
d9898ee8 13012 ;;
13013 *)
13014 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13015 ;;
13016 esac
13017
64ff59ba 13018{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13019echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d9898ee8 13020test "$ld_shlibs_CXX" = no && can_build_shared=no
13021
13022#
13023# Do we need to explicitly link libc?
13024#
13025case "x$archive_cmds_need_lc_CXX" in
13026x|xyes)
13027 # Assume -lc should be added
13028 archive_cmds_need_lc_CXX=yes
13029
13030 if test "$enable_shared" = yes && test "$GCC" = yes; then
13031 case $archive_cmds_CXX in
13032 *'~'*)
13033 # FIXME: we may have to deal with multi-command sequences.
13034 ;;
13035 '$CC '*)
13036 # Test whether the compiler implicitly links with -lc since on some
13037 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13038 # to ld, don't add -lc before -lgcc.
64ff59ba 13039 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13040echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 13041 $rm conftest*
0fde1ce3 13042 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 13043
13044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13045 (eval $ac_compile) 2>&5
13046 ac_status=$?
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); } 2>conftest.err; then
13049 soname=conftest
13050 lib=conftest
13051 libobjs=conftest.$ac_objext
13052 deplibs=
13053 wl=$lt_prog_compiler_wl_CXX
13054 pic_flag=$lt_prog_compiler_pic_CXX
13055 compiler_flags=-v
13056 linker_flags=-v
13057 verstring=
13058 output_objdir=.
13059 libname=conftest
13060 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13061 allow_undefined_flag_CXX=
13062 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13063 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13064 ac_status=$?
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); }
13067 then
13068 archive_cmds_need_lc_CXX=no
13069 else
13070 archive_cmds_need_lc_CXX=yes
13071 fi
13072 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13073 else
13074 cat conftest.err 1>&5
13075 fi
13076 $rm conftest*
64ff59ba 13077 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13078echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
d9898ee8 13079 ;;
13080 esac
13081 fi
13082 ;;
13083esac
13084
64ff59ba 13085{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13086echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 13087library_names_spec=
13088libname_spec='lib$name'
13089soname_spec=
13090shrext_cmds=".so"
13091postinstall_cmds=
13092postuninstall_cmds=
13093finish_cmds=
13094finish_eval=
13095shlibpath_var=
13096shlibpath_overrides_runpath=unknown
13097version_type=none
13098dynamic_linker="$host_os ld.so"
13099sys_lib_dlsearch_path_spec="/lib /usr/lib"
0fde1ce3 13100
d9898ee8 13101need_lib_prefix=unknown
13102hardcode_into_libs=no
13103
13104# when you set need_version to no, make sure it does not cause -set_version
13105# flags to be left without arguments
13106need_version=unknown
13107
13108case $host_os in
13109aix3*)
13110 version_type=linux
13111 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13112 shlibpath_var=LIBPATH
13113
13114 # AIX 3 has no versioning support, so we append a major version to the name.
13115 soname_spec='${libname}${release}${shared_ext}$major'
13116 ;;
13117
13118aix4* | aix5*)
13119 version_type=linux
13120 need_lib_prefix=no
13121 need_version=no
13122 hardcode_into_libs=yes
13123 if test "$host_cpu" = ia64; then
13124 # AIX 5 supports IA64
13125 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13126 shlibpath_var=LD_LIBRARY_PATH
13127 else
13128 # With GCC up to 2.95.x, collect2 would create an import file
13129 # for dependence libraries. The import file would start with
13130 # the line `#! .'. This would cause the generated library to
13131 # depend on `.', always an invalid library. This was fixed in
13132 # development snapshots of GCC prior to 3.0.
13133 case $host_os in
13134 aix4 | aix4.[01] | aix4.[01].*)
13135 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13136 echo ' yes '
13137 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13138 :
13139 else
13140 can_build_shared=no
13141 fi
13142 ;;
13143 esac
13144 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13145 # soname into executable. Probably we can add versioning support to
13146 # collect2, so additional links can be useful in future.
13147 if test "$aix_use_runtimelinking" = yes; then
13148 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13149 # instead of lib<name>.a to let people know that these are not
13150 # typical AIX shared libraries.
13151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13152 else
13153 # We preserve .a as extension for shared libraries through AIX4.2
13154 # and later when we are not doing run time linking.
13155 library_names_spec='${libname}${release}.a $libname.a'
13156 soname_spec='${libname}${release}${shared_ext}$major'
13157 fi
13158 shlibpath_var=LIBPATH
13159 fi
13160 ;;
13161
13162amigaos*)
13163 library_names_spec='$libname.ixlibrary $libname.a'
13164 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13165 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'
13166 ;;
13167
13168beos*)
13169 library_names_spec='${libname}${shared_ext}'
13170 dynamic_linker="$host_os ld.so"
13171 shlibpath_var=LIBRARY_PATH
13172 ;;
13173
13174bsdi[45]*)
13175 version_type=linux
13176 need_version=no
13177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13178 soname_spec='${libname}${release}${shared_ext}$major'
13179 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13180 shlibpath_var=LD_LIBRARY_PATH
13181 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13182 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13183 # the default ld.so.conf also contains /usr/contrib/lib and
13184 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13185 # libtool to hard-code these into programs
13186 ;;
13187
13188cygwin* | mingw* | pw32*)
13189 version_type=windows
13190 shrext_cmds=".dll"
13191 need_version=no
13192 need_lib_prefix=no
13193
13194 case $GCC,$host_os in
13195 yes,cygwin* | yes,mingw* | yes,pw32*)
13196 library_names_spec='$libname.dll.a'
13197 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13198 postinstall_cmds='base_file=`basename \${file}`~
13199 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13200 dldir=$destdir/`dirname \$dlpath`~
13201 test -d \$dldir || mkdir -p \$dldir~
13202 $install_prog $dir/$dlname \$dldir/$dlname~
13203 chmod a+x \$dldir/$dlname'
13204 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13205 dlpath=$dir/\$dldll~
13206 $rm \$dlpath'
13207 shlibpath_overrides_runpath=yes
13208
13209 case $host_os in
13210 cygwin*)
13211 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13212 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13213 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13214 ;;
13215 mingw*)
13216 # MinGW DLLs use traditional 'lib' prefix
13217 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13218 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13219 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13220 # It is most probably a Windows format PATH printed by
13221 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13222 # path with ; separators, and with drive letters. We can handle the
13223 # drive letters (cygwin fileutils understands them), so leave them,
13224 # especially as we might pass files found there to a mingw objdump,
13225 # which wouldn't understand a cygwinified path. Ahh.
13226 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13227 else
13228 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13229 fi
13230 ;;
13231 pw32*)
13232 # pw32 DLLs use 'pw' prefix rather than 'lib'
13233 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13234 ;;
13235 esac
13236 ;;
13237
13238 *)
13239 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13240 ;;
13241 esac
13242 dynamic_linker='Win32 ld.exe'
13243 # FIXME: first we should search . and the directory the executable is in
13244 shlibpath_var=PATH
13245 ;;
13246
13247darwin* | rhapsody*)
13248 dynamic_linker="$host_os dyld"
13249 version_type=darwin
13250 need_lib_prefix=no
13251 need_version=no
13252 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13253 soname_spec='${libname}${release}${major}$shared_ext'
13254 shlibpath_overrides_runpath=yes
13255 shlibpath_var=DYLD_LIBRARY_PATH
13256 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
0fde1ce3 13257
d9898ee8 13258 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13259 ;;
13260
13261dgux*)
13262 version_type=linux
13263 need_lib_prefix=no
13264 need_version=no
13265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13266 soname_spec='${libname}${release}${shared_ext}$major'
13267 shlibpath_var=LD_LIBRARY_PATH
13268 ;;
13269
13270freebsd1*)
13271 dynamic_linker=no
13272 ;;
13273
d9898ee8 13274freebsd* | dragonfly*)
13275 # DragonFly does not have aout. When/if they implement a new
13276 # versioning mechanism, adjust this.
13277 if test -x /usr/bin/objformat; then
13278 objformat=`/usr/bin/objformat`
13279 else
13280 case $host_os in
13281 freebsd[123]*) objformat=aout ;;
13282 *) objformat=elf ;;
13283 esac
13284 fi
13285 version_type=freebsd-$objformat
13286 case $version_type in
13287 freebsd-elf*)
13288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13289 need_version=no
13290 need_lib_prefix=no
13291 ;;
13292 freebsd-*)
13293 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13294 need_version=yes
13295 ;;
13296 esac
13297 shlibpath_var=LD_LIBRARY_PATH
13298 case $host_os in
13299 freebsd2*)
13300 shlibpath_overrides_runpath=yes
13301 ;;
13302 freebsd3.[01]* | freebsdelf3.[01]*)
13303 shlibpath_overrides_runpath=yes
13304 hardcode_into_libs=yes
13305 ;;
13306 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13307 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13308 shlibpath_overrides_runpath=no
13309 hardcode_into_libs=yes
13310 ;;
0fde1ce3 13311 *) # from 4.6 on, and DragonFly
d9898ee8 13312 shlibpath_overrides_runpath=yes
13313 hardcode_into_libs=yes
13314 ;;
13315 esac
13316 ;;
13317
13318gnu*)
13319 version_type=linux
13320 need_lib_prefix=no
13321 need_version=no
13322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13323 soname_spec='${libname}${release}${shared_ext}$major'
13324 shlibpath_var=LD_LIBRARY_PATH
13325 hardcode_into_libs=yes
13326 ;;
13327
13328hpux9* | hpux10* | hpux11*)
13329 # Give a soname corresponding to the major version so that dld.sl refuses to
13330 # link against other versions.
13331 version_type=sunos
13332 need_lib_prefix=no
13333 need_version=no
13334 case $host_cpu in
13335 ia64*)
13336 shrext_cmds='.so'
13337 hardcode_into_libs=yes
13338 dynamic_linker="$host_os dld.so"
13339 shlibpath_var=LD_LIBRARY_PATH
13340 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13342 soname_spec='${libname}${release}${shared_ext}$major'
13343 if test "X$HPUX_IA64_MODE" = X32; then
13344 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13345 else
13346 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13347 fi
13348 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13349 ;;
13350 hppa*64*)
13351 shrext_cmds='.sl'
13352 hardcode_into_libs=yes
13353 dynamic_linker="$host_os dld.sl"
13354 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13355 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13357 soname_spec='${libname}${release}${shared_ext}$major'
13358 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13359 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13360 ;;
13361 *)
13362 shrext_cmds='.sl'
13363 dynamic_linker="$host_os dld.sl"
13364 shlibpath_var=SHLIB_PATH
13365 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13367 soname_spec='${libname}${release}${shared_ext}$major'
13368 ;;
13369 esac
13370 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13371 postinstall_cmds='chmod 555 $lib'
13372 ;;
13373
0fde1ce3 13374interix[3-9]*)
d9898ee8 13375 version_type=linux
13376 need_lib_prefix=no
13377 need_version=no
13378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13379 soname_spec='${libname}${release}${shared_ext}$major'
13380 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13381 shlibpath_var=LD_LIBRARY_PATH
13382 shlibpath_overrides_runpath=no
13383 hardcode_into_libs=yes
13384 ;;
13385
13386irix5* | irix6* | nonstopux*)
13387 case $host_os in
13388 nonstopux*) version_type=nonstopux ;;
13389 *)
13390 if test "$lt_cv_prog_gnu_ld" = yes; then
13391 version_type=linux
13392 else
13393 version_type=irix
13394 fi ;;
13395 esac
13396 need_lib_prefix=no
13397 need_version=no
13398 soname_spec='${libname}${release}${shared_ext}$major'
13399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13400 case $host_os in
13401 irix5* | nonstopux*)
13402 libsuff= shlibsuff=
13403 ;;
13404 *)
13405 case $LD in # libtool.m4 will add one of these switches to LD
13406 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13407 libsuff= shlibsuff= libmagic=32-bit;;
13408 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13409 libsuff=32 shlibsuff=N32 libmagic=N32;;
13410 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13411 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13412 *) libsuff= shlibsuff= libmagic=never-match;;
13413 esac
13414 ;;
13415 esac
13416 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13417 shlibpath_overrides_runpath=no
13418 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13419 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13420 hardcode_into_libs=yes
13421 ;;
13422
13423# No shared lib support for Linux oldld, aout, or coff.
13424linux*oldld* | linux*aout* | linux*coff*)
13425 dynamic_linker=no
13426 ;;
13427
13428# This must be Linux ELF.
0fde1ce3 13429linux* | k*bsd*-gnu)
d9898ee8 13430 version_type=linux
13431 need_lib_prefix=no
13432 need_version=no
13433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13434 soname_spec='${libname}${release}${shared_ext}$major'
13435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13436 shlibpath_var=LD_LIBRARY_PATH
13437 shlibpath_overrides_runpath=no
13438 # This implies no fast_install, which is unacceptable.
13439 # Some rework will be needed to allow for fast_install
13440 # before this can be enabled.
13441 hardcode_into_libs=yes
0fde1ce3 13442 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13443 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
d9898ee8 13444
13445 # Append ld.so.conf contents to the search path
13446 if test -f /etc/ld.so.conf; then
0fde1ce3 13447 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' ' '`
13448 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 13449 fi
13450
13451 # We used to test for /lib/ld.so.1 and disable shared libraries on
13452 # powerpc, because MkLinux only supported shared libraries with the
13453 # GNU dynamic linker. Since this was broken with cross compilers,
13454 # most powerpc-linux boxes support dynamic linking these days and
13455 # people can always --disable-shared, the test was removed, and we
13456 # assume the GNU/Linux dynamic linker is in use.
13457 dynamic_linker='GNU/Linux ld.so'
13458 ;;
13459
d9898ee8 13460netbsd*)
13461 version_type=sunos
13462 need_lib_prefix=no
13463 need_version=no
13464 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13467 dynamic_linker='NetBSD (a.out) ld.so'
13468 else
13469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13470 soname_spec='${libname}${release}${shared_ext}$major'
13471 dynamic_linker='NetBSD ld.elf_so'
13472 fi
13473 shlibpath_var=LD_LIBRARY_PATH
13474 shlibpath_overrides_runpath=yes
13475 hardcode_into_libs=yes
13476 ;;
13477
13478newsos6)
13479 version_type=linux
13480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13481 shlibpath_var=LD_LIBRARY_PATH
13482 shlibpath_overrides_runpath=yes
13483 ;;
13484
13485nto-qnx*)
13486 version_type=linux
13487 need_lib_prefix=no
13488 need_version=no
13489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13490 soname_spec='${libname}${release}${shared_ext}$major'
13491 shlibpath_var=LD_LIBRARY_PATH
13492 shlibpath_overrides_runpath=yes
13493 ;;
13494
13495openbsd*)
13496 version_type=sunos
13497 sys_lib_dlsearch_path_spec="/usr/lib"
13498 need_lib_prefix=no
13499 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13500 case $host_os in
13501 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13502 *) need_version=no ;;
13503 esac
13504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13505 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13506 shlibpath_var=LD_LIBRARY_PATH
13507 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13508 case $host_os in
13509 openbsd2.[89] | openbsd2.[89].*)
13510 shlibpath_overrides_runpath=no
13511 ;;
13512 *)
13513 shlibpath_overrides_runpath=yes
13514 ;;
13515 esac
13516 else
13517 shlibpath_overrides_runpath=yes
13518 fi
13519 ;;
13520
13521os2*)
13522 libname_spec='$name'
13523 shrext_cmds=".dll"
13524 need_lib_prefix=no
13525 library_names_spec='$libname${shared_ext} $libname.a'
13526 dynamic_linker='OS/2 ld.exe'
13527 shlibpath_var=LIBPATH
13528 ;;
13529
13530osf3* | osf4* | osf5*)
13531 version_type=osf
13532 need_lib_prefix=no
13533 need_version=no
13534 soname_spec='${libname}${release}${shared_ext}$major'
13535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13536 shlibpath_var=LD_LIBRARY_PATH
13537 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13538 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13539 ;;
13540
0fde1ce3 13541rdos*)
13542 dynamic_linker=no
13543 ;;
13544
d9898ee8 13545solaris*)
13546 version_type=linux
13547 need_lib_prefix=no
13548 need_version=no
13549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13550 soname_spec='${libname}${release}${shared_ext}$major'
13551 shlibpath_var=LD_LIBRARY_PATH
13552 shlibpath_overrides_runpath=yes
13553 hardcode_into_libs=yes
13554 # ldd complains unless libraries are executable
13555 postinstall_cmds='chmod +x $lib'
13556 ;;
13557
13558sunos4*)
13559 version_type=sunos
13560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13561 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13562 shlibpath_var=LD_LIBRARY_PATH
13563 shlibpath_overrides_runpath=yes
13564 if test "$with_gnu_ld" = yes; then
13565 need_lib_prefix=no
13566 fi
13567 need_version=yes
13568 ;;
13569
13570sysv4 | sysv4.3*)
13571 version_type=linux
13572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13573 soname_spec='${libname}${release}${shared_ext}$major'
13574 shlibpath_var=LD_LIBRARY_PATH
13575 case $host_vendor in
13576 sni)
13577 shlibpath_overrides_runpath=no
13578 need_lib_prefix=no
13579 export_dynamic_flag_spec='${wl}-Blargedynsym'
13580 runpath_var=LD_RUN_PATH
13581 ;;
13582 siemens)
13583 need_lib_prefix=no
13584 ;;
13585 motorola)
13586 need_lib_prefix=no
13587 need_version=no
13588 shlibpath_overrides_runpath=no
13589 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13590 ;;
13591 esac
13592 ;;
13593
13594sysv4*MP*)
13595 if test -d /usr/nec ;then
13596 version_type=linux
13597 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13598 soname_spec='$libname${shared_ext}.$major'
13599 shlibpath_var=LD_LIBRARY_PATH
13600 fi
13601 ;;
13602
13603sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13604 version_type=freebsd-elf
13605 need_lib_prefix=no
13606 need_version=no
13607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13608 soname_spec='${libname}${release}${shared_ext}$major'
13609 shlibpath_var=LD_LIBRARY_PATH
13610 hardcode_into_libs=yes
13611 if test "$with_gnu_ld" = yes; then
13612 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13613 shlibpath_overrides_runpath=no
13614 else
13615 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13616 shlibpath_overrides_runpath=yes
13617 case $host_os in
13618 sco3.2v5*)
13619 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13620 ;;
13621 esac
13622 fi
13623 sys_lib_dlsearch_path_spec='/usr/lib'
13624 ;;
13625
13626uts4*)
13627 version_type=linux
13628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13629 soname_spec='${libname}${release}${shared_ext}$major'
13630 shlibpath_var=LD_LIBRARY_PATH
13631 ;;
13632
13633*)
13634 dynamic_linker=no
13635 ;;
13636esac
64ff59ba 13637{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13638echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 13639test "$dynamic_linker" = no && can_build_shared=no
13640
13641variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13642if test "$GCC" = yes; then
13643 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13644fi
13645
64ff59ba 13646{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13647echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 13648hardcode_action_CXX=
13649if test -n "$hardcode_libdir_flag_spec_CXX" || \
13650 test -n "$runpath_var_CXX" || \
13651 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13652
13653 # We can hardcode non-existant directories.
13654 if test "$hardcode_direct_CXX" != no &&
13655 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13656 # have to relink, otherwise we might link with an installed library
13657 # when we should be linking with a yet-to-be-installed one
13658 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13659 test "$hardcode_minus_L_CXX" != no; then
13660 # Linking always hardcodes the temporary library directory.
13661 hardcode_action_CXX=relink
13662 else
13663 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13664 hardcode_action_CXX=immediate
13665 fi
13666else
13667 # We cannot hardcode anything, or else we can only hardcode existing
13668 # directories.
13669 hardcode_action_CXX=unsupported
13670fi
64ff59ba 13671{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13672echo "${ECHO_T}$hardcode_action_CXX" >&6; }
d9898ee8 13673
13674if test "$hardcode_action_CXX" = relink; then
13675 # Fast installation is not supported
13676 enable_fast_install=no
13677elif test "$shlibpath_overrides_runpath" = yes ||
13678 test "$enable_shared" = no; then
13679 # Fast installation is not necessary
13680 enable_fast_install=needless
13681fi
13682
13683
13684# The else clause should only fire when bootstrapping the
13685# libtool distribution, otherwise you forgot to ship ltmain.sh
13686# with your package, and you will get complaints that there are
13687# no rules to generate ltmain.sh.
13688if test -f "$ltmain"; then
13689 # See if we are running on zsh, and set the options which allow our commands through
13690 # without removal of \ escapes.
13691 if test -n "${ZSH_VERSION+set}" ; then
13692 setopt NO_GLOB_SUBST
13693 fi
13694 # Now quote all the things that may contain metacharacters while being
13695 # careful not to overquote the AC_SUBSTed values. We take copies of the
13696 # variables and quote the copies for generation of the libtool script.
13697 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13698 SED SHELL STRIP \
13699 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13700 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13701 deplibs_check_method reload_flag reload_cmds need_locks \
13702 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13703 lt_cv_sys_global_symbol_to_c_name_address \
13704 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13705 old_postinstall_cmds old_postuninstall_cmds \
13706 compiler_CXX \
13707 CC_CXX \
13708 LD_CXX \
13709 lt_prog_compiler_wl_CXX \
13710 lt_prog_compiler_pic_CXX \
13711 lt_prog_compiler_static_CXX \
13712 lt_prog_compiler_no_builtin_flag_CXX \
13713 export_dynamic_flag_spec_CXX \
13714 thread_safe_flag_spec_CXX \
13715 whole_archive_flag_spec_CXX \
13716 enable_shared_with_static_runtimes_CXX \
13717 old_archive_cmds_CXX \
13718 old_archive_from_new_cmds_CXX \
13719 predep_objects_CXX \
13720 postdep_objects_CXX \
13721 predeps_CXX \
13722 postdeps_CXX \
13723 compiler_lib_search_path_CXX \
13724 archive_cmds_CXX \
13725 archive_expsym_cmds_CXX \
13726 postinstall_cmds_CXX \
13727 postuninstall_cmds_CXX \
13728 old_archive_from_expsyms_cmds_CXX \
13729 allow_undefined_flag_CXX \
13730 no_undefined_flag_CXX \
13731 export_symbols_cmds_CXX \
13732 hardcode_libdir_flag_spec_CXX \
13733 hardcode_libdir_flag_spec_ld_CXX \
13734 hardcode_libdir_separator_CXX \
13735 hardcode_automatic_CXX \
13736 module_cmds_CXX \
13737 module_expsym_cmds_CXX \
13738 lt_cv_prog_compiler_c_o_CXX \
0fde1ce3 13739 fix_srcfile_path_CXX \
d9898ee8 13740 exclude_expsyms_CXX \
13741 include_expsyms_CXX; do
13742
13743 case $var in
13744 old_archive_cmds_CXX | \
13745 old_archive_from_new_cmds_CXX | \
13746 archive_cmds_CXX | \
13747 archive_expsym_cmds_CXX | \
13748 module_cmds_CXX | \
13749 module_expsym_cmds_CXX | \
13750 old_archive_from_expsyms_cmds_CXX | \
13751 export_symbols_cmds_CXX | \
13752 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13753 postinstall_cmds | postuninstall_cmds | \
13754 old_postinstall_cmds | old_postuninstall_cmds | \
13755 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13756 # Double-quote double-evaled strings.
13757 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13758 ;;
13759 *)
13760 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13761 ;;
13762 esac
13763 done
13764
13765 case $lt_echo in
13766 *'\$0 --fallback-echo"')
13767 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13768 ;;
13769 esac
13770
13771cfgfile="$ofile"
13772
13773 cat <<__EOF__ >> "$cfgfile"
13774# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13775
13776# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13777
13778# Shell to use when invoking shell scripts.
13779SHELL=$lt_SHELL
13780
13781# Whether or not to build shared libraries.
13782build_libtool_libs=$enable_shared
13783
13784# Whether or not to build static libraries.
13785build_old_libs=$enable_static
13786
13787# Whether or not to add -lc for building shared libraries.
13788build_libtool_need_lc=$archive_cmds_need_lc_CXX
13789
13790# Whether or not to disallow shared libs when runtime libs are static
13791allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13792
13793# Whether or not to optimize for fast installation.
13794fast_install=$enable_fast_install
13795
13796# The host system.
13797host_alias=$host_alias
13798host=$host
13799host_os=$host_os
13800
13801# The build system.
13802build_alias=$build_alias
13803build=$build
13804build_os=$build_os
13805
13806# An echo program that does not interpret backslashes.
13807echo=$lt_echo
13808
13809# The archiver.
13810AR=$lt_AR
13811AR_FLAGS=$lt_AR_FLAGS
13812
13813# A C compiler.
13814LTCC=$lt_LTCC
13815
13816# LTCC compiler flags.
13817LTCFLAGS=$lt_LTCFLAGS
13818
13819# A language-specific compiler.
13820CC=$lt_compiler_CXX
13821
13822# Is the compiler the GNU C compiler?
13823with_gcc=$GCC_CXX
13824
d9898ee8 13825# An ERE matcher.
13826EGREP=$lt_EGREP
13827
13828# The linker used to build libraries.
13829LD=$lt_LD_CXX
13830
13831# Whether we need hard or soft links.
13832LN_S=$lt_LN_S
13833
13834# A BSD-compatible nm program.
13835NM=$lt_NM
13836
13837# A symbol stripping program
13838STRIP=$lt_STRIP
13839
13840# Used to examine libraries when file_magic_cmd begins "file"
13841MAGIC_CMD=$MAGIC_CMD
13842
13843# Used on cygwin: DLL creation program.
13844DLLTOOL="$DLLTOOL"
13845
13846# Used on cygwin: object dumper.
13847OBJDUMP="$OBJDUMP"
13848
13849# Used on cygwin: assembler.
13850AS="$AS"
13851
13852# The name of the directory that contains temporary libtool files.
13853objdir=$objdir
13854
13855# How to create reloadable object files.
13856reload_flag=$lt_reload_flag
13857reload_cmds=$lt_reload_cmds
13858
13859# How to pass a linker flag through the compiler.
13860wl=$lt_lt_prog_compiler_wl_CXX
13861
13862# Object file suffix (normally "o").
13863objext="$ac_objext"
13864
13865# Old archive suffix (normally "a").
13866libext="$libext"
13867
13868# Shared library suffix (normally ".so").
13869shrext_cmds='$shrext_cmds'
13870
13871# Executable file suffix (normally "").
13872exeext="$exeext"
13873
13874# Additional compiler flags for building library objects.
13875pic_flag=$lt_lt_prog_compiler_pic_CXX
13876pic_mode=$pic_mode
13877
13878# What is the maximum length of a command?
13879max_cmd_len=$lt_cv_sys_max_cmd_len
13880
13881# Does compiler simultaneously support -c and -o options?
13882compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13883
13884# Must we lock files when doing compilation?
13885need_locks=$lt_need_locks
13886
13887# Do we need the lib prefix for modules?
13888need_lib_prefix=$need_lib_prefix
13889
13890# Do we need a version for libraries?
13891need_version=$need_version
13892
13893# Whether dlopen is supported.
13894dlopen_support=$enable_dlopen
13895
13896# Whether dlopen of programs is supported.
13897dlopen_self=$enable_dlopen_self
13898
13899# Whether dlopen of statically linked programs is supported.
13900dlopen_self_static=$enable_dlopen_self_static
13901
13902# Compiler flag to prevent dynamic linking.
13903link_static_flag=$lt_lt_prog_compiler_static_CXX
13904
13905# Compiler flag to turn off builtin functions.
13906no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13907
13908# Compiler flag to allow reflexive dlopens.
13909export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13910
13911# Compiler flag to generate shared objects directly from archives.
13912whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13913
13914# Compiler flag to generate thread-safe objects.
13915thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13916
13917# Library versioning type.
13918version_type=$version_type
13919
13920# Format of library name prefix.
13921libname_spec=$lt_libname_spec
13922
13923# List of archive names. First name is the real one, the rest are links.
13924# The last name is the one that the linker finds with -lNAME.
13925library_names_spec=$lt_library_names_spec
13926
13927# The coded name of the library, if different from the real name.
13928soname_spec=$lt_soname_spec
13929
13930# Commands used to build and install an old-style archive.
13931RANLIB=$lt_RANLIB
13932old_archive_cmds=$lt_old_archive_cmds_CXX
13933old_postinstall_cmds=$lt_old_postinstall_cmds
13934old_postuninstall_cmds=$lt_old_postuninstall_cmds
13935
13936# Create an old-style archive from a shared archive.
13937old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13938
13939# Create a temporary old-style archive to link instead of a shared archive.
13940old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13941
13942# Commands used to build and install a shared archive.
13943archive_cmds=$lt_archive_cmds_CXX
13944archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13945postinstall_cmds=$lt_postinstall_cmds
13946postuninstall_cmds=$lt_postuninstall_cmds
13947
13948# Commands used to build a loadable module (assumed same as above if empty)
13949module_cmds=$lt_module_cmds_CXX
13950module_expsym_cmds=$lt_module_expsym_cmds_CXX
13951
13952# Commands to strip libraries.
13953old_striplib=$lt_old_striplib
13954striplib=$lt_striplib
13955
13956# Dependencies to place before the objects being linked to create a
13957# shared library.
64ff59ba 13958predep_objects=$lt_predep_objects_CXX
d9898ee8 13959
13960# Dependencies to place after the objects being linked to create a
13961# shared library.
64ff59ba 13962postdep_objects=$lt_postdep_objects_CXX
d9898ee8 13963
13964# Dependencies to place before the objects being linked to create a
13965# shared library.
13966predeps=$lt_predeps_CXX
13967
13968# Dependencies to place after the objects being linked to create a
13969# shared library.
13970postdeps=$lt_postdeps_CXX
13971
13972# The library search path used internally by the compiler when linking
13973# a shared library.
64ff59ba 13974compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
d9898ee8 13975
13976# Method to check whether dependent libraries are shared objects.
13977deplibs_check_method=$lt_deplibs_check_method
13978
13979# Command to use when deplibs_check_method == file_magic.
13980file_magic_cmd=$lt_file_magic_cmd
13981
13982# Flag that allows shared libraries with undefined symbols to be built.
13983allow_undefined_flag=$lt_allow_undefined_flag_CXX
13984
13985# Flag that forces no undefined symbols.
13986no_undefined_flag=$lt_no_undefined_flag_CXX
13987
13988# Commands used to finish a libtool library installation in a directory.
13989finish_cmds=$lt_finish_cmds
13990
13991# Same as above, but a single script fragment to be evaled but not shown.
13992finish_eval=$lt_finish_eval
13993
13994# Take the output of nm and produce a listing of raw symbols and C names.
13995global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13996
13997# Transform the output of nm in a proper C declaration
13998global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13999
14000# Transform the output of nm in a C name address pair
14001global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14002
14003# This is the shared library runtime path variable.
14004runpath_var=$runpath_var
14005
14006# This is the shared library path variable.
14007shlibpath_var=$shlibpath_var
14008
14009# Is shlibpath searched before the hard-coded library search path?
14010shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14011
14012# How to hardcode a shared library path into an executable.
14013hardcode_action=$hardcode_action_CXX
14014
14015# Whether we should hardcode library paths into libraries.
14016hardcode_into_libs=$hardcode_into_libs
14017
14018# Flag to hardcode \$libdir into a binary during linking.
14019# This must work even if \$libdir does not exist.
14020hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14021
14022# If ld is used when linking, flag to hardcode \$libdir into
14023# a binary during linking. This must work even if \$libdir does
14024# not exist.
14025hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14026
14027# Whether we need a single -rpath flag with a separated argument.
14028hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14029
14030# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14031# resulting binary.
14032hardcode_direct=$hardcode_direct_CXX
14033
14034# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14035# resulting binary.
14036hardcode_minus_L=$hardcode_minus_L_CXX
14037
14038# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14039# the resulting binary.
14040hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14041
14042# Set to yes if building a shared library automatically hardcodes DIR into the library
14043# and all subsequent libraries and executables linked against it.
14044hardcode_automatic=$hardcode_automatic_CXX
14045
14046# Variables whose values should be saved in libtool wrapper scripts and
14047# restored at relink time.
14048variables_saved_for_relink="$variables_saved_for_relink"
14049
14050# Whether libtool must link a program against all its dependency libraries.
14051link_all_deplibs=$link_all_deplibs_CXX
14052
14053# Compile-time system search path for libraries
64ff59ba 14054sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 14055
14056# Run-time system search path for libraries
14057sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14058
14059# Fix the shell variable \$srcfile for the compiler.
0fde1ce3 14060fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 14061
14062# Set to yes if exported symbols are required.
14063always_export_symbols=$always_export_symbols_CXX
14064
14065# The commands to list exported symbols.
14066export_symbols_cmds=$lt_export_symbols_cmds_CXX
14067
14068# The commands to extract the exported symbol list from a shared archive.
14069extract_expsyms_cmds=$lt_extract_expsyms_cmds
14070
14071# Symbols that should not be listed in the preloaded symbols.
14072exclude_expsyms=$lt_exclude_expsyms_CXX
14073
14074# Symbols that must always be exported.
14075include_expsyms=$lt_include_expsyms_CXX
14076
14077# ### END LIBTOOL TAG CONFIG: $tagname
14078
14079__EOF__
14080
14081
14082else
14083 # If there is no Makefile yet, we rely on a make rule to execute
14084 # `config.status --recheck' to rerun these tests and create the
14085 # libtool script then.
14086 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14087 if test -f "$ltmain_in"; then
14088 test -f Makefile && make "$ltmain"
14089 fi
14090fi
14091
14092
14093ac_ext=c
14094ac_cpp='$CPP $CPPFLAGS'
14095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14097ac_compiler_gnu=$ac_cv_c_compiler_gnu
14098
14099CC=$lt_save_CC
14100LDCXX=$LD
14101LD=$lt_save_LD
14102GCC=$lt_save_GCC
14103with_gnu_ldcxx=$with_gnu_ld
14104with_gnu_ld=$lt_save_with_gnu_ld
14105lt_cv_path_LDCXX=$lt_cv_path_LD
14106lt_cv_path_LD=$lt_save_path_LD
14107lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14108lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14109
14110 else
14111 tagname=""
14112 fi
14113 ;;
14114
14115 F77)
14116 if test -n "$F77" && test "X$F77" != "Xno"; then
14117
14118ac_ext=f
14119ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14120ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14121ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14122
14123
14124archive_cmds_need_lc_F77=no
14125allow_undefined_flag_F77=
14126always_export_symbols_F77=no
14127archive_expsym_cmds_F77=
14128export_dynamic_flag_spec_F77=
14129hardcode_direct_F77=no
14130hardcode_libdir_flag_spec_F77=
14131hardcode_libdir_flag_spec_ld_F77=
14132hardcode_libdir_separator_F77=
14133hardcode_minus_L_F77=no
14134hardcode_automatic_F77=no
14135module_cmds_F77=
14136module_expsym_cmds_F77=
14137link_all_deplibs_F77=unknown
14138old_archive_cmds_F77=$old_archive_cmds
14139no_undefined_flag_F77=
14140whole_archive_flag_spec_F77=
14141enable_shared_with_static_runtimes_F77=no
14142
14143# Source file extension for f77 test sources.
14144ac_ext=f
14145
14146# Object file extension for compiled f77 test sources.
14147objext=o
14148objext_F77=$objext
14149
14150# Code to be used in simple compile tests
0fde1ce3 14151lt_simple_compile_test_code="\
14152 subroutine t
14153 return
14154 end
14155"
d9898ee8 14156
14157# Code to be used in simple link tests
0fde1ce3 14158lt_simple_link_test_code="\
14159 program t
14160 end
14161"
d9898ee8 14162
14163# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14164
14165# If no C compiler was specified, use CC.
14166LTCC=${LTCC-"$CC"}
14167
14168# If no C compiler flags were specified, use CFLAGS.
14169LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14170
14171# Allow CC to be a program name with arguments.
14172compiler=$CC
14173
14174
14175# save warnings/boilerplate of simple test code
14176ac_outfile=conftest.$ac_objext
0fde1ce3 14177echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 14178eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14179_lt_compiler_boilerplate=`cat conftest.err`
14180$rm conftest*
14181
14182ac_outfile=conftest.$ac_objext
0fde1ce3 14183echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 14184eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14185_lt_linker_boilerplate=`cat conftest.err`
14186$rm conftest*
14187
14188
14189# Allow CC to be a program name with arguments.
14190lt_save_CC="$CC"
14191CC=${F77-"f77"}
14192compiler=$CC
14193compiler_F77=$CC
14194for cc_temp in $compiler""; do
14195 case $cc_temp in
14196 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14197 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14198 \-*) ;;
14199 *) break;;
14200 esac
14201done
14202cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14203
14204
64ff59ba 14205{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14206echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14207{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14208echo "${ECHO_T}$can_build_shared" >&6; }
d9898ee8 14209
64ff59ba 14210{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14211echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d9898ee8 14212test "$can_build_shared" = "no" && enable_shared=no
14213
14214# On AIX, shared libraries and static libraries use the same namespace, and
14215# are all built from PIC.
14216case $host_os in
14217aix3*)
14218 test "$enable_shared" = yes && enable_static=no
14219 if test -n "$RANLIB"; then
14220 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14221 postinstall_cmds='$RANLIB $lib'
14222 fi
14223 ;;
14224aix4* | aix5*)
14225 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14226 test "$enable_shared" = yes && enable_static=no
14227 fi
14228 ;;
14229esac
64ff59ba 14230{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14231echo "${ECHO_T}$enable_shared" >&6; }
d9898ee8 14232
64ff59ba 14233{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14234echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d9898ee8 14235# Make sure either enable_shared or enable_static is yes.
14236test "$enable_shared" = yes || enable_static=yes
64ff59ba 14237{ echo "$as_me:$LINENO: result: $enable_static" >&5
14238echo "${ECHO_T}$enable_static" >&6; }
d9898ee8 14239
14240GCC_F77="$G77"
14241LD_F77="$LD"
14242
14243lt_prog_compiler_wl_F77=
14244lt_prog_compiler_pic_F77=
14245lt_prog_compiler_static_F77=
14246
64ff59ba 14247{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14248echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 14249
14250 if test "$GCC" = yes; then
14251 lt_prog_compiler_wl_F77='-Wl,'
14252 lt_prog_compiler_static_F77='-static'
14253
14254 case $host_os in
14255 aix*)
14256 # All AIX code is PIC.
14257 if test "$host_cpu" = ia64; then
14258 # AIX 5 now supports IA64 processor
14259 lt_prog_compiler_static_F77='-Bstatic'
14260 fi
14261 ;;
14262
14263 amigaos*)
14264 # FIXME: we need at least 68020 code to build shared libraries, but
14265 # adding the `-m68020' flag to GCC prevents building anything better,
14266 # like `-m68040'.
14267 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14268 ;;
14269
0fde1ce3 14270 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 14271 # PIC is the default for these OSes.
14272 ;;
14273
0fde1ce3 14274 mingw* | cygwin* | pw32* | os2*)
d9898ee8 14275 # This hack is so that the source file can tell whether it is being
14276 # built for inclusion in a dll (and should export symbols for example).
0fde1ce3 14277 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14278 # (--disable-auto-import) libraries
d9898ee8 14279 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14280 ;;
14281
14282 darwin* | rhapsody*)
14283 # PIC is the default on this platform
14284 # Common symbols not allowed in MH_DYLIB files
14285 lt_prog_compiler_pic_F77='-fno-common'
14286 ;;
14287
0fde1ce3 14288 interix[3-9]*)
d9898ee8 14289 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14290 # Instead, we relocate shared libraries at runtime.
14291 ;;
14292
14293 msdosdjgpp*)
14294 # Just because we use GCC doesn't mean we suddenly get shared libraries
14295 # on systems that don't support them.
14296 lt_prog_compiler_can_build_shared_F77=no
14297 enable_shared=no
14298 ;;
14299
14300 sysv4*MP*)
14301 if test -d /usr/nec; then
14302 lt_prog_compiler_pic_F77=-Kconform_pic
14303 fi
14304 ;;
14305
14306 hpux*)
14307 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14308 # not for PA HP-UX.
14309 case $host_cpu in
14310 hppa*64*|ia64*)
14311 # +Z the default
14312 ;;
14313 *)
14314 lt_prog_compiler_pic_F77='-fPIC'
14315 ;;
14316 esac
14317 ;;
14318
14319 *)
14320 lt_prog_compiler_pic_F77='-fPIC'
14321 ;;
14322 esac
14323 else
14324 # PORTME Check for flag to pass linker flags through the system compiler.
14325 case $host_os in
14326 aix*)
14327 lt_prog_compiler_wl_F77='-Wl,'
14328 if test "$host_cpu" = ia64; then
14329 # AIX 5 now supports IA64 processor
14330 lt_prog_compiler_static_F77='-Bstatic'
14331 else
14332 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14333 fi
14334 ;;
14335 darwin*)
14336 # PIC is the default on this platform
14337 # Common symbols not allowed in MH_DYLIB files
14338 case $cc_basename in
14339 xlc*)
14340 lt_prog_compiler_pic_F77='-qnocommon'
14341 lt_prog_compiler_wl_F77='-Wl,'
14342 ;;
14343 esac
14344 ;;
14345
0fde1ce3 14346 mingw* | cygwin* | pw32* | os2*)
d9898ee8 14347 # This hack is so that the source file can tell whether it is being
14348 # built for inclusion in a dll (and should export symbols for example).
14349 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14350 ;;
14351
14352 hpux9* | hpux10* | hpux11*)
14353 lt_prog_compiler_wl_F77='-Wl,'
14354 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14355 # not for PA HP-UX.
14356 case $host_cpu in
14357 hppa*64*|ia64*)
14358 # +Z the default
14359 ;;
14360 *)
14361 lt_prog_compiler_pic_F77='+Z'
14362 ;;
14363 esac
14364 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14365 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14366 ;;
14367
14368 irix5* | irix6* | nonstopux*)
14369 lt_prog_compiler_wl_F77='-Wl,'
14370 # PIC (with -KPIC) is the default.
14371 lt_prog_compiler_static_F77='-non_shared'
14372 ;;
14373
14374 newsos6)
14375 lt_prog_compiler_pic_F77='-KPIC'
14376 lt_prog_compiler_static_F77='-Bstatic'
14377 ;;
14378
0fde1ce3 14379 linux* | k*bsd*-gnu)
d9898ee8 14380 case $cc_basename in
14381 icc* | ecc*)
14382 lt_prog_compiler_wl_F77='-Wl,'
14383 lt_prog_compiler_pic_F77='-KPIC'
14384 lt_prog_compiler_static_F77='-static'
14385 ;;
14386 pgcc* | pgf77* | pgf90* | pgf95*)
14387 # Portland Group compilers (*not* the Pentium gcc compiler,
14388 # which looks to be a dead project)
14389 lt_prog_compiler_wl_F77='-Wl,'
14390 lt_prog_compiler_pic_F77='-fpic'
14391 lt_prog_compiler_static_F77='-Bstatic'
14392 ;;
14393 ccc*)
14394 lt_prog_compiler_wl_F77='-Wl,'
14395 # All Alpha code is PIC.
14396 lt_prog_compiler_static_F77='-non_shared'
14397 ;;
0fde1ce3 14398 *)
14399 case `$CC -V 2>&1 | sed 5q` in
14400 *Sun\ C*)
14401 # Sun C 5.9
14402 lt_prog_compiler_pic_F77='-KPIC'
14403 lt_prog_compiler_static_F77='-Bstatic'
14404 lt_prog_compiler_wl_F77='-Wl,'
14405 ;;
14406 *Sun\ F*)
14407 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14408 lt_prog_compiler_pic_F77='-KPIC'
14409 lt_prog_compiler_static_F77='-Bstatic'
14410 lt_prog_compiler_wl_F77=''
14411 ;;
14412 esac
14413 ;;
d9898ee8 14414 esac
14415 ;;
14416
14417 osf3* | osf4* | osf5*)
14418 lt_prog_compiler_wl_F77='-Wl,'
14419 # All OSF/1 code is PIC.
14420 lt_prog_compiler_static_F77='-non_shared'
14421 ;;
14422
0fde1ce3 14423 rdos*)
14424 lt_prog_compiler_static_F77='-non_shared'
14425 ;;
14426
d9898ee8 14427 solaris*)
14428 lt_prog_compiler_pic_F77='-KPIC'
14429 lt_prog_compiler_static_F77='-Bstatic'
14430 case $cc_basename in
14431 f77* | f90* | f95*)
14432 lt_prog_compiler_wl_F77='-Qoption ld ';;
14433 *)
14434 lt_prog_compiler_wl_F77='-Wl,';;
14435 esac
14436 ;;
14437
14438 sunos4*)
14439 lt_prog_compiler_wl_F77='-Qoption ld '
14440 lt_prog_compiler_pic_F77='-PIC'
14441 lt_prog_compiler_static_F77='-Bstatic'
14442 ;;
14443
14444 sysv4 | sysv4.2uw2* | sysv4.3*)
14445 lt_prog_compiler_wl_F77='-Wl,'
14446 lt_prog_compiler_pic_F77='-KPIC'
14447 lt_prog_compiler_static_F77='-Bstatic'
14448 ;;
14449
14450 sysv4*MP*)
14451 if test -d /usr/nec ;then
14452 lt_prog_compiler_pic_F77='-Kconform_pic'
14453 lt_prog_compiler_static_F77='-Bstatic'
14454 fi
14455 ;;
14456
14457 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14458 lt_prog_compiler_wl_F77='-Wl,'
14459 lt_prog_compiler_pic_F77='-KPIC'
14460 lt_prog_compiler_static_F77='-Bstatic'
14461 ;;
14462
14463 unicos*)
14464 lt_prog_compiler_wl_F77='-Wl,'
14465 lt_prog_compiler_can_build_shared_F77=no
14466 ;;
14467
14468 uts4*)
14469 lt_prog_compiler_pic_F77='-pic'
14470 lt_prog_compiler_static_F77='-Bstatic'
14471 ;;
14472
14473 *)
14474 lt_prog_compiler_can_build_shared_F77=no
14475 ;;
14476 esac
14477 fi
14478
64ff59ba 14479{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14480echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
d9898ee8 14481
14482#
14483# Check to make sure the PIC flag actually works.
14484#
14485if test -n "$lt_prog_compiler_pic_F77"; then
14486
64ff59ba 14487{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14488echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
d9898ee8 14489if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14490 echo $ECHO_N "(cached) $ECHO_C" >&6
14491else
14492 lt_prog_compiler_pic_works_F77=no
14493 ac_outfile=conftest.$ac_objext
0fde1ce3 14494 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 14495 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14496 # Insert the option either (1) after the last *FLAGS variable, or
14497 # (2) before a word containing "conftest.", or (3) at the end.
14498 # Note that $ac_compile itself does not contain backslashes and begins
14499 # with a dollar sign (not a hyphen), so the echo should work correctly.
14500 # The option is referenced via a variable to avoid confusing sed.
14501 lt_compile=`echo "$ac_compile" | $SED \
14502 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14504 -e 's:$: $lt_compiler_flag:'`
0fde1ce3 14505 (eval echo "\"\$as_me:14505: $lt_compile\"" >&5)
d9898ee8 14506 (eval "$lt_compile" 2>conftest.err)
14507 ac_status=$?
14508 cat conftest.err >&5
0fde1ce3 14509 echo "$as_me:14509: \$? = $ac_status" >&5
d9898ee8 14510 if (exit $ac_status) && test -s "$ac_outfile"; then
14511 # The compiler can only warn and ignore the option if not recognized
14512 # So say no if there are warnings other than the usual output.
14513 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14514 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14515 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14516 lt_prog_compiler_pic_works_F77=yes
14517 fi
14518 fi
14519 $rm conftest*
14520
14521fi
64ff59ba 14522{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14523echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
d9898ee8 14524
14525if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14526 case $lt_prog_compiler_pic_F77 in
14527 "" | " "*) ;;
14528 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14529 esac
14530else
14531 lt_prog_compiler_pic_F77=
14532 lt_prog_compiler_can_build_shared_F77=no
14533fi
14534
14535fi
14536case $host_os in
14537 # For platforms which do not support PIC, -DPIC is meaningless:
14538 *djgpp*)
14539 lt_prog_compiler_pic_F77=
14540 ;;
14541 *)
14542 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14543 ;;
14544esac
14545
14546#
14547# Check to make sure the static flag actually works.
14548#
14549wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
64ff59ba 14550{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14551echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 14552if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14553 echo $ECHO_N "(cached) $ECHO_C" >&6
14554else
14555 lt_prog_compiler_static_works_F77=no
14556 save_LDFLAGS="$LDFLAGS"
14557 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
0fde1ce3 14558 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 14559 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14560 # The linker can only warn and ignore the option if not recognized
14561 # So say no if there are warnings
14562 if test -s conftest.err; then
14563 # Append any errors to the config.log.
14564 cat conftest.err 1>&5
14565 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14566 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14567 if diff conftest.exp conftest.er2 >/dev/null; then
14568 lt_prog_compiler_static_works_F77=yes
14569 fi
14570 else
14571 lt_prog_compiler_static_works_F77=yes
14572 fi
14573 fi
14574 $rm conftest*
14575 LDFLAGS="$save_LDFLAGS"
14576
14577fi
64ff59ba 14578{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14579echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
d9898ee8 14580
14581if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14582 :
14583else
14584 lt_prog_compiler_static_F77=
14585fi
14586
14587
64ff59ba 14588{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14589echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 14590if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14591 echo $ECHO_N "(cached) $ECHO_C" >&6
14592else
14593 lt_cv_prog_compiler_c_o_F77=no
14594 $rm -r conftest 2>/dev/null
14595 mkdir conftest
14596 cd conftest
14597 mkdir out
0fde1ce3 14598 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 14599
14600 lt_compiler_flag="-o out/conftest2.$ac_objext"
14601 # Insert the option either (1) after the last *FLAGS variable, or
14602 # (2) before a word containing "conftest.", or (3) at the end.
14603 # Note that $ac_compile itself does not contain backslashes and begins
14604 # with a dollar sign (not a hyphen), so the echo should work correctly.
14605 lt_compile=`echo "$ac_compile" | $SED \
14606 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14607 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14608 -e 's:$: $lt_compiler_flag:'`
0fde1ce3 14609 (eval echo "\"\$as_me:14609: $lt_compile\"" >&5)
d9898ee8 14610 (eval "$lt_compile" 2>out/conftest.err)
14611 ac_status=$?
14612 cat out/conftest.err >&5
0fde1ce3 14613 echo "$as_me:14613: \$? = $ac_status" >&5
d9898ee8 14614 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14615 then
14616 # The compiler can only warn and ignore the option if not recognized
14617 # So say no if there are warnings
14618 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14619 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14620 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14621 lt_cv_prog_compiler_c_o_F77=yes
14622 fi
14623 fi
14624 chmod u+w . 2>&5
14625 $rm conftest*
14626 # SGI C++ compiler will create directory out/ii_files/ for
14627 # template instantiation
14628 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14629 $rm out/* && rmdir out
14630 cd ..
14631 rmdir conftest
14632 $rm conftest*
14633
14634fi
64ff59ba 14635{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14636echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
d9898ee8 14637
14638
14639hard_links="nottested"
14640if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14641 # do not overwrite the value of need_locks provided by the user
64ff59ba 14642 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14643echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 14644 hard_links=yes
14645 $rm conftest*
14646 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14647 touch conftest.a
14648 ln conftest.a conftest.b 2>&5 || hard_links=no
14649 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 14650 { echo "$as_me:$LINENO: result: $hard_links" >&5
14651echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 14652 if test "$hard_links" = no; then
14653 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14654echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14655 need_locks=warn
14656 fi
14657else
14658 need_locks=no
14659fi
14660
64ff59ba 14661{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14662echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 14663
14664 runpath_var=
14665 allow_undefined_flag_F77=
14666 enable_shared_with_static_runtimes_F77=no
14667 archive_cmds_F77=
14668 archive_expsym_cmds_F77=
14669 old_archive_From_new_cmds_F77=
14670 old_archive_from_expsyms_cmds_F77=
14671 export_dynamic_flag_spec_F77=
14672 whole_archive_flag_spec_F77=
14673 thread_safe_flag_spec_F77=
14674 hardcode_libdir_flag_spec_F77=
14675 hardcode_libdir_flag_spec_ld_F77=
14676 hardcode_libdir_separator_F77=
14677 hardcode_direct_F77=no
14678 hardcode_minus_L_F77=no
14679 hardcode_shlibpath_var_F77=unsupported
14680 link_all_deplibs_F77=unknown
14681 hardcode_automatic_F77=no
14682 module_cmds_F77=
14683 module_expsym_cmds_F77=
14684 always_export_symbols_F77=no
14685 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14686 # include_expsyms should be a list of space-separated symbols to be *always*
14687 # included in the symbol list
14688 include_expsyms_F77=
14689 # exclude_expsyms can be an extended regexp of symbols to exclude
14690 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14691 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14692 # as well as any symbol that contains `d'.
14693 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14694 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14695 # platforms (ab)use it in PIC code, but their linkers get confused if
14696 # the symbol is explicitly referenced. Since portable code cannot
14697 # rely on this symbol name, it's probably fine to never include it in
14698 # preloaded symbol tables.
14699 extract_expsyms_cmds=
14700 # Just being paranoid about ensuring that cc_basename is set.
14701 for cc_temp in $compiler""; do
14702 case $cc_temp in
14703 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14704 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14705 \-*) ;;
14706 *) break;;
14707 esac
14708done
14709cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14710
14711 case $host_os in
14712 cygwin* | mingw* | pw32*)
14713 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14714 # When not using gcc, we currently assume that we are using
14715 # Microsoft Visual C++.
14716 if test "$GCC" != yes; then
14717 with_gnu_ld=no
14718 fi
14719 ;;
14720 interix*)
14721 # we just hope/assume this is gcc and not c89 (= MSVC++)
14722 with_gnu_ld=yes
14723 ;;
14724 openbsd*)
14725 with_gnu_ld=no
14726 ;;
14727 esac
14728
14729 ld_shlibs_F77=yes
14730 if test "$with_gnu_ld" = yes; then
14731 # If archive_cmds runs LD, not CC, wlarc should be empty
14732 wlarc='${wl}'
14733
14734 # Set some defaults for GNU ld with shared library support. These
14735 # are reset later if shared libraries are not supported. Putting them
14736 # here allows them to be overridden if necessary.
14737 runpath_var=LD_RUN_PATH
14738 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14739 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14740 # ancient GNU ld didn't support --whole-archive et. al.
14741 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14742 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14743 else
14744 whole_archive_flag_spec_F77=
14745 fi
14746 supports_anon_versioning=no
14747 case `$LD -v 2>/dev/null` in
14748 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14749 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14750 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14751 *\ 2.11.*) ;; # other 2.11 versions
14752 *) supports_anon_versioning=yes ;;
14753 esac
14754
14755 # See if GNU ld supports shared libraries.
14756 case $host_os in
14757 aix3* | aix4* | aix5*)
14758 # On AIX/PPC, the GNU linker is very broken
14759 if test "$host_cpu" != ia64; then
14760 ld_shlibs_F77=no
14761 cat <<EOF 1>&2
14762
14763*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14764*** to be unable to reliably create shared libraries on AIX.
14765*** Therefore, libtool is disabling shared libraries support. If you
14766*** really care for shared libraries, you may want to modify your PATH
14767*** so that a non-GNU linker is found, and then restart.
14768
14769EOF
14770 fi
14771 ;;
14772
14773 amigaos*)
14774 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)'
14775 hardcode_libdir_flag_spec_F77='-L$libdir'
14776 hardcode_minus_L_F77=yes
14777
14778 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14779 # that the semantics of dynamic libraries on AmigaOS, at least up
14780 # to version 4, is to share data among multiple programs linked
14781 # with the same dynamic library. Since this doesn't match the
14782 # behavior of shared libraries on other platforms, we can't use
14783 # them.
14784 ld_shlibs_F77=no
14785 ;;
14786
14787 beos*)
14788 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14789 allow_undefined_flag_F77=unsupported
14790 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14791 # support --undefined. This deserves some investigation. FIXME
14792 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14793 else
14794 ld_shlibs_F77=no
14795 fi
14796 ;;
14797
14798 cygwin* | mingw* | pw32*)
14799 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14800 # as there is no search path for DLLs.
14801 hardcode_libdir_flag_spec_F77='-L$libdir'
14802 allow_undefined_flag_F77=unsupported
14803 always_export_symbols_F77=no
14804 enable_shared_with_static_runtimes_F77=yes
0fde1ce3 14805 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d9898ee8 14806
14807 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14808 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14809 # If the export-symbols file already is a .def file (1st line
14810 # is EXPORTS), use it as is; otherwise, prepend...
14811 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14812 cp $export_symbols $output_objdir/$soname.def;
14813 else
14814 echo EXPORTS > $output_objdir/$soname.def;
14815 cat $export_symbols >> $output_objdir/$soname.def;
14816 fi~
14817 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14818 else
14819 ld_shlibs_F77=no
14820 fi
14821 ;;
14822
0fde1ce3 14823 interix[3-9]*)
d9898ee8 14824 hardcode_direct_F77=no
14825 hardcode_shlibpath_var_F77=no
14826 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14827 export_dynamic_flag_spec_F77='${wl}-E'
14828 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14829 # Instead, shared libraries are loaded at an image base (0x10000000 by
14830 # default) and relocated if they conflict, which is a slow very memory
14831 # consuming and fragmenting process. To avoid this, we pick a random,
14832 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14833 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14834 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'
14835 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'
14836 ;;
14837
0fde1ce3 14838 gnu* | linux* | k*bsd*-gnu)
d9898ee8 14839 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14840 tmp_addflag=
14841 case $cc_basename,$host_cpu in
14842 pgcc*) # Portland Group C compiler
14843 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'
14844 tmp_addflag=' $pic_flag'
14845 ;;
14846 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14847 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'
14848 tmp_addflag=' $pic_flag -Mnomain' ;;
14849 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14850 tmp_addflag=' -i_dynamic' ;;
14851 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14852 tmp_addflag=' -i_dynamic -nofor_main' ;;
14853 ifc* | ifort*) # Intel Fortran compiler
14854 tmp_addflag=' -nofor_main' ;;
14855 esac
0fde1ce3 14856 case `$CC -V 2>&1 | sed 5q` in
14857 *Sun\ C*) # Sun C 5.9
14858 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'
14859 tmp_sharedflag='-G' ;;
14860 *Sun\ F*) # Sun Fortran 8.3
14861 tmp_sharedflag='-G' ;;
14862 *)
14863 tmp_sharedflag='-shared' ;;
14864 esac
14865 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 14866
14867 if test $supports_anon_versioning = yes; then
14868 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14869 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14870 $echo "local: *; };" >> $output_objdir/$libname.ver~
0fde1ce3 14871 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
d9898ee8 14872 fi
14873 else
14874 ld_shlibs_F77=no
14875 fi
14876 ;;
14877
14878 netbsd*)
14879 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14880 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14881 wlarc=
14882 else
14883 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14884 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14885 fi
14886 ;;
14887
14888 solaris*)
14889 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14890 ld_shlibs_F77=no
14891 cat <<EOF 1>&2
14892
14893*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14894*** create shared libraries on Solaris systems. Therefore, libtool
14895*** is disabling shared libraries support. We urge you to upgrade GNU
14896*** binutils to release 2.9.1 or newer. Another option is to modify
14897*** your PATH or compiler configuration so that the native linker is
14898*** used, and then restart.
14899
14900EOF
14901 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14902 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14903 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14904 else
14905 ld_shlibs_F77=no
14906 fi
14907 ;;
14908
14909 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14910 case `$LD -v 2>&1` in
14911 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14912 ld_shlibs_F77=no
14913 cat <<_LT_EOF 1>&2
14914
14915*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14916*** reliably create shared libraries on SCO systems. Therefore, libtool
14917*** is disabling shared libraries support. We urge you to upgrade GNU
14918*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14919*** your PATH or compiler configuration so that the native linker is
14920*** used, and then restart.
14921
14922_LT_EOF
14923 ;;
14924 *)
14925 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14926 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14927 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14928 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14929 else
14930 ld_shlibs_F77=no
14931 fi
14932 ;;
14933 esac
14934 ;;
14935
14936 sunos4*)
14937 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14938 wlarc=
14939 hardcode_direct_F77=yes
14940 hardcode_shlibpath_var_F77=no
14941 ;;
14942
14943 *)
14944 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14945 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14946 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14947 else
14948 ld_shlibs_F77=no
14949 fi
14950 ;;
14951 esac
14952
14953 if test "$ld_shlibs_F77" = no; then
14954 runpath_var=
14955 hardcode_libdir_flag_spec_F77=
14956 export_dynamic_flag_spec_F77=
14957 whole_archive_flag_spec_F77=
14958 fi
14959 else
14960 # PORTME fill in a description of your system's linker (not GNU ld)
14961 case $host_os in
14962 aix3*)
14963 allow_undefined_flag_F77=unsupported
14964 always_export_symbols_F77=yes
14965 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'
14966 # Note: this linker hardcodes the directories in LIBPATH if there
14967 # are no directories specified by -L.
14968 hardcode_minus_L_F77=yes
14969 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14970 # Neither direct hardcoding nor static linking is supported with a
14971 # broken collect2.
14972 hardcode_direct_F77=unsupported
14973 fi
14974 ;;
14975
14976 aix4* | aix5*)
14977 if test "$host_cpu" = ia64; then
14978 # On IA64, the linker does run time linking by default, so we don't
14979 # have to do anything special.
14980 aix_use_runtimelinking=no
14981 exp_sym_flag='-Bexport'
14982 no_entry_flag=""
14983 else
14984 # If we're using GNU nm, then we don't want the "-C" option.
14985 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14986 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14987 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'
14988 else
14989 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'
14990 fi
14991 aix_use_runtimelinking=no
14992
14993 # Test if we are trying to use run time linking or normal
14994 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14995 # need to do runtime linking.
14996 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14997 for ld_flag in $LDFLAGS; do
14998 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14999 aix_use_runtimelinking=yes
15000 break
15001 fi
15002 done
15003 ;;
15004 esac
15005
15006 exp_sym_flag='-bexport'
15007 no_entry_flag='-bnoentry'
15008 fi
15009
15010 # When large executables or shared objects are built, AIX ld can
15011 # have problems creating the table of contents. If linking a library
15012 # or program results in "error TOC overflow" add -mminimal-toc to
15013 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15014 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15015
15016 archive_cmds_F77=''
15017 hardcode_direct_F77=yes
15018 hardcode_libdir_separator_F77=':'
15019 link_all_deplibs_F77=yes
15020
15021 if test "$GCC" = yes; then
15022 case $host_os in aix4.[012]|aix4.[012].*)
15023 # We only want to do this on AIX 4.2 and lower, the check
15024 # below for broken collect2 doesn't work under 4.3+
15025 collect2name=`${CC} -print-prog-name=collect2`
15026 if test -f "$collect2name" && \
15027 strings "$collect2name" | grep resolve_lib_name >/dev/null
15028 then
15029 # We have reworked collect2
0fde1ce3 15030 :
d9898ee8 15031 else
15032 # We have old collect2
15033 hardcode_direct_F77=unsupported
15034 # It fails to find uninstalled libraries when the uninstalled
15035 # path is not listed in the libpath. Setting hardcode_minus_L
15036 # to unsupported forces relinking
15037 hardcode_minus_L_F77=yes
15038 hardcode_libdir_flag_spec_F77='-L$libdir'
15039 hardcode_libdir_separator_F77=
15040 fi
15041 ;;
15042 esac
15043 shared_flag='-shared'
15044 if test "$aix_use_runtimelinking" = yes; then
15045 shared_flag="$shared_flag "'${wl}-G'
15046 fi
15047 else
15048 # not using gcc
15049 if test "$host_cpu" = ia64; then
15050 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15051 # chokes on -Wl,-G. The following line is correct:
15052 shared_flag='-G'
15053 else
15054 if test "$aix_use_runtimelinking" = yes; then
15055 shared_flag='${wl}-G'
15056 else
15057 shared_flag='${wl}-bM:SRE'
15058 fi
15059 fi
15060 fi
15061
15062 # It seems that -bexpall does not export symbols beginning with
15063 # underscore (_), so it is better to generate a list of symbols to export.
15064 always_export_symbols_F77=yes
15065 if test "$aix_use_runtimelinking" = yes; then
15066 # Warning - without using the other runtime loading flags (-brtl),
15067 # -berok will link without error, but may produce a broken library.
15068 allow_undefined_flag_F77='-berok'
15069 # Determine the default libpath from the value encoded in an empty executable.
15070 cat >conftest.$ac_ext <<_ACEOF
15071 program main
15072
15073 end
15074_ACEOF
15075rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 15076if { (ac_try="$ac_link"
15077case "(($ac_try" in
15078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15079 *) ac_try_echo=$ac_try;;
15080esac
15081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15082 (eval "$ac_link") 2>conftest.er1
d9898ee8 15083 ac_status=$?
15084 grep -v '^ *+' conftest.er1 >conftest.err
15085 rm -f conftest.er1
15086 cat conftest.err >&5
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 15088 (exit $ac_status); } && {
15089 test -z "$ac_f77_werror_flag" ||
15090 test ! -s conftest.err
15091 } && test -s conftest$ac_exeext &&
15092 $as_test_x conftest$ac_exeext; then
d9898ee8 15093
0fde1ce3 15094lt_aix_libpath_sed='
15095 /Import File Strings/,/^$/ {
15096 /^0/ {
15097 s/^0 *\(.*\)$/\1/
15098 p
15099 }
15100 }'
15101aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 15102# Check for a 64-bit object if we didn't find anything.
0fde1ce3 15103if test -z "$aix_libpath"; then
15104 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15105fi
d9898ee8 15106else
15107 echo "$as_me: failed program was:" >&5
15108sed 's/^/| /' conftest.$ac_ext >&5
15109
64ff59ba 15110
d9898ee8 15111fi
64ff59ba 15112
15113rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 15114 conftest$ac_exeext conftest.$ac_ext
15115if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15116
15117 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15118 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"
15119 else
15120 if test "$host_cpu" = ia64; then
15121 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15122 allow_undefined_flag_F77="-z nodefs"
15123 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"
15124 else
15125 # Determine the default libpath from the value encoded in an empty executable.
15126 cat >conftest.$ac_ext <<_ACEOF
15127 program main
15128
15129 end
15130_ACEOF
15131rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 15132if { (ac_try="$ac_link"
15133case "(($ac_try" in
15134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15135 *) ac_try_echo=$ac_try;;
15136esac
15137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15138 (eval "$ac_link") 2>conftest.er1
d9898ee8 15139 ac_status=$?
15140 grep -v '^ *+' conftest.er1 >conftest.err
15141 rm -f conftest.er1
15142 cat conftest.err >&5
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 15144 (exit $ac_status); } && {
15145 test -z "$ac_f77_werror_flag" ||
15146 test ! -s conftest.err
15147 } && test -s conftest$ac_exeext &&
15148 $as_test_x conftest$ac_exeext; then
d9898ee8 15149
0fde1ce3 15150lt_aix_libpath_sed='
15151 /Import File Strings/,/^$/ {
15152 /^0/ {
15153 s/^0 *\(.*\)$/\1/
15154 p
15155 }
15156 }'
15157aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 15158# Check for a 64-bit object if we didn't find anything.
0fde1ce3 15159if test -z "$aix_libpath"; then
15160 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15161fi
d9898ee8 15162else
15163 echo "$as_me: failed program was:" >&5
15164sed 's/^/| /' conftest.$ac_ext >&5
15165
64ff59ba 15166
d9898ee8 15167fi
64ff59ba 15168
15169rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 15170 conftest$ac_exeext conftest.$ac_ext
15171if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15172
15173 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15174 # Warning - without using the other run time loading flags,
15175 # -berok will link without error, but may produce a broken library.
15176 no_undefined_flag_F77=' ${wl}-bernotok'
15177 allow_undefined_flag_F77=' ${wl}-berok'
15178 # Exported symbols can be pulled into shared objects from archives
15179 whole_archive_flag_spec_F77='$convenience'
15180 archive_cmds_need_lc_F77=yes
15181 # This is similar to how AIX traditionally builds its shared libraries.
15182 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'
15183 fi
15184 fi
15185 ;;
15186
15187 amigaos*)
15188 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)'
15189 hardcode_libdir_flag_spec_F77='-L$libdir'
15190 hardcode_minus_L_F77=yes
15191 # see comment about different semantics on the GNU ld section
15192 ld_shlibs_F77=no
15193 ;;
15194
15195 bsdi[45]*)
15196 export_dynamic_flag_spec_F77=-rdynamic
15197 ;;
15198
15199 cygwin* | mingw* | pw32*)
15200 # When not using gcc, we currently assume that we are using
15201 # Microsoft Visual C++.
15202 # hardcode_libdir_flag_spec is actually meaningless, as there is
15203 # no search path for DLLs.
15204 hardcode_libdir_flag_spec_F77=' '
15205 allow_undefined_flag_F77=unsupported
15206 # Tell ltmain to make .lib files, not .a files.
15207 libext=lib
15208 # Tell ltmain to make .dll files, not .so files.
15209 shrext_cmds=".dll"
15210 # FIXME: Setting linknames here is a bad hack.
15211 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15212 # The linker will automatically build a .lib file if we build a DLL.
15213 old_archive_From_new_cmds_F77='true'
15214 # FIXME: Should let the user specify the lib program.
0fde1ce3 15215 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
d9898ee8 15216 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15217 enable_shared_with_static_runtimes_F77=yes
15218 ;;
15219
15220 darwin* | rhapsody*)
15221 case $host_os in
15222 rhapsody* | darwin1.[012])
15223 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15224 ;;
15225 *) # Darwin 1.3 on
15226 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15227 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15228 else
15229 case ${MACOSX_DEPLOYMENT_TARGET} in
15230 10.[012])
15231 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15232 ;;
15233 10.*)
15234 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15235 ;;
15236 esac
15237 fi
15238 ;;
15239 esac
15240 archive_cmds_need_lc_F77=no
15241 hardcode_direct_F77=no
15242 hardcode_automatic_F77=yes
15243 hardcode_shlibpath_var_F77=unsupported
15244 whole_archive_flag_spec_F77=''
15245 link_all_deplibs_F77=yes
15246 if test "$GCC" = yes ; then
15247 output_verbose_link_cmd='echo'
15248 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15249 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15250 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15251 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15252 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}'
15253 else
15254 case $cc_basename in
15255 xlc*)
15256 output_verbose_link_cmd='echo'
0fde1ce3 15257 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
d9898ee8 15258 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15259 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
0fde1ce3 15260 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}'
d9898ee8 15261 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}'
15262 ;;
15263 *)
15264 ld_shlibs_F77=no
15265 ;;
15266 esac
15267 fi
15268 ;;
15269
15270 dgux*)
15271 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15272 hardcode_libdir_flag_spec_F77='-L$libdir'
15273 hardcode_shlibpath_var_F77=no
15274 ;;
15275
15276 freebsd1*)
15277 ld_shlibs_F77=no
15278 ;;
15279
15280 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15281 # support. Future versions do this automatically, but an explicit c++rt0.o
15282 # does not break anything, and helps significantly (at the cost of a little
15283 # extra space).
15284 freebsd2.2*)
15285 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15286 hardcode_libdir_flag_spec_F77='-R$libdir'
15287 hardcode_direct_F77=yes
15288 hardcode_shlibpath_var_F77=no
15289 ;;
15290
15291 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15292 freebsd2*)
15293 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15294 hardcode_direct_F77=yes
15295 hardcode_minus_L_F77=yes
15296 hardcode_shlibpath_var_F77=no
15297 ;;
15298
15299 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
0fde1ce3 15300 freebsd* | dragonfly*)
d9898ee8 15301 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15302 hardcode_libdir_flag_spec_F77='-R$libdir'
15303 hardcode_direct_F77=yes
15304 hardcode_shlibpath_var_F77=no
15305 ;;
15306
15307 hpux9*)
15308 if test "$GCC" = yes; then
15309 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'
15310 else
15311 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'
15312 fi
15313 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15314 hardcode_libdir_separator_F77=:
15315 hardcode_direct_F77=yes
15316
15317 # hardcode_minus_L: Not really in the search PATH,
15318 # but as the default location of the library.
15319 hardcode_minus_L_F77=yes
15320 export_dynamic_flag_spec_F77='${wl}-E'
15321 ;;
15322
15323 hpux10*)
15324 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15325 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15326 else
15327 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15328 fi
15329 if test "$with_gnu_ld" = no; then
15330 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15331 hardcode_libdir_separator_F77=:
15332
15333 hardcode_direct_F77=yes
15334 export_dynamic_flag_spec_F77='${wl}-E'
15335
15336 # hardcode_minus_L: Not really in the search PATH,
15337 # but as the default location of the library.
15338 hardcode_minus_L_F77=yes
15339 fi
15340 ;;
15341
15342 hpux11*)
15343 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15344 case $host_cpu in
15345 hppa*64*)
15346 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15347 ;;
15348 ia64*)
15349 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15350 ;;
15351 *)
15352 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15353 ;;
15354 esac
15355 else
15356 case $host_cpu in
15357 hppa*64*)
15358 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15359 ;;
15360 ia64*)
15361 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15362 ;;
15363 *)
15364 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15365 ;;
15366 esac
15367 fi
15368 if test "$with_gnu_ld" = no; then
15369 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15370 hardcode_libdir_separator_F77=:
15371
15372 case $host_cpu in
15373 hppa*64*|ia64*)
15374 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15375 hardcode_direct_F77=no
15376 hardcode_shlibpath_var_F77=no
15377 ;;
15378 *)
15379 hardcode_direct_F77=yes
15380 export_dynamic_flag_spec_F77='${wl}-E'
15381
15382 # hardcode_minus_L: Not really in the search PATH,
15383 # but as the default location of the library.
15384 hardcode_minus_L_F77=yes
15385 ;;
15386 esac
15387 fi
15388 ;;
15389
15390 irix5* | irix6* | nonstopux*)
15391 if test "$GCC" = yes; then
15392 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'
15393 else
15394 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'
15395 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15396 fi
15397 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15398 hardcode_libdir_separator_F77=:
15399 link_all_deplibs_F77=yes
15400 ;;
15401
15402 netbsd*)
15403 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15404 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15405 else
15406 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15407 fi
15408 hardcode_libdir_flag_spec_F77='-R$libdir'
15409 hardcode_direct_F77=yes
15410 hardcode_shlibpath_var_F77=no
15411 ;;
15412
15413 newsos6)
15414 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15415 hardcode_direct_F77=yes
15416 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15417 hardcode_libdir_separator_F77=:
15418 hardcode_shlibpath_var_F77=no
15419 ;;
15420
15421 openbsd*)
0fde1ce3 15422 if test -f /usr/libexec/ld.so; then
15423 hardcode_direct_F77=yes
15424 hardcode_shlibpath_var_F77=no
15425 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15426 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15427 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15428 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15429 export_dynamic_flag_spec_F77='${wl}-E'
15430 else
15431 case $host_os in
15432 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15433 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15434 hardcode_libdir_flag_spec_F77='-R$libdir'
15435 ;;
15436 *)
15437 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15438 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15439 ;;
15440 esac
15441 fi
d9898ee8 15442 else
0fde1ce3 15443 ld_shlibs_F77=no
d9898ee8 15444 fi
15445 ;;
15446
15447 os2*)
15448 hardcode_libdir_flag_spec_F77='-L$libdir'
15449 hardcode_minus_L_F77=yes
15450 allow_undefined_flag_F77=unsupported
15451 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'
15452 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15453 ;;
15454
15455 osf3*)
15456 if test "$GCC" = yes; then
15457 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15458 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'
15459 else
15460 allow_undefined_flag_F77=' -expect_unresolved \*'
15461 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'
15462 fi
15463 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15464 hardcode_libdir_separator_F77=:
15465 ;;
15466
15467 osf4* | osf5*) # as osf3* with the addition of -msym flag
15468 if test "$GCC" = yes; then
15469 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15470 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'
15471 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15472 else
15473 allow_undefined_flag_F77=' -expect_unresolved \*'
15474 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'
15475 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~
15476 $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'
15477
15478 # Both c and cxx compiler support -rpath directly
15479 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15480 fi
15481 hardcode_libdir_separator_F77=:
15482 ;;
15483
15484 solaris*)
15485 no_undefined_flag_F77=' -z text'
15486 if test "$GCC" = yes; then
15487 wlarc='${wl}'
15488 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15489 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15490 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15491 else
15492 wlarc=''
15493 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15494 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15495 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15496 fi
15497 hardcode_libdir_flag_spec_F77='-R$libdir'
15498 hardcode_shlibpath_var_F77=no
15499 case $host_os in
15500 solaris2.[0-5] | solaris2.[0-5].*) ;;
15501 *)
0fde1ce3 15502 # The compiler driver will combine and reorder linker options,
15503 # but understands `-z linker_flag'. GCC discards it without `$wl',
15504 # but is careful enough not to reorder.
d9898ee8 15505 # Supported since Solaris 2.6 (maybe 2.5.1?)
0fde1ce3 15506 if test "$GCC" = yes; then
15507 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15508 else
15509 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15510 fi
15511 ;;
d9898ee8 15512 esac
15513 link_all_deplibs_F77=yes
15514 ;;
15515
15516 sunos4*)
15517 if test "x$host_vendor" = xsequent; then
15518 # Use $CC to link under sequent, because it throws in some extra .o
15519 # files that make .init and .fini sections work.
15520 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15521 else
15522 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15523 fi
15524 hardcode_libdir_flag_spec_F77='-L$libdir'
15525 hardcode_direct_F77=yes
15526 hardcode_minus_L_F77=yes
15527 hardcode_shlibpath_var_F77=no
15528 ;;
15529
15530 sysv4)
15531 case $host_vendor in
15532 sni)
15533 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15534 hardcode_direct_F77=yes # is this really true???
15535 ;;
15536 siemens)
15537 ## LD is ld it makes a PLAMLIB
15538 ## CC just makes a GrossModule.
15539 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15540 reload_cmds_F77='$CC -r -o $output$reload_objs'
15541 hardcode_direct_F77=no
15542 ;;
15543 motorola)
15544 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15545 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15546 ;;
15547 esac
15548 runpath_var='LD_RUN_PATH'
15549 hardcode_shlibpath_var_F77=no
15550 ;;
15551
15552 sysv4.3*)
15553 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15554 hardcode_shlibpath_var_F77=no
15555 export_dynamic_flag_spec_F77='-Bexport'
15556 ;;
15557
15558 sysv4*MP*)
15559 if test -d /usr/nec; then
15560 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15561 hardcode_shlibpath_var_F77=no
15562 runpath_var=LD_RUN_PATH
15563 hardcode_runpath_var=yes
15564 ld_shlibs_F77=yes
15565 fi
15566 ;;
15567
0fde1ce3 15568 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
d9898ee8 15569 no_undefined_flag_F77='${wl}-z,text'
15570 archive_cmds_need_lc_F77=no
15571 hardcode_shlibpath_var_F77=no
15572 runpath_var='LD_RUN_PATH'
15573
15574 if test "$GCC" = yes; then
15575 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15576 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15577 else
15578 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15579 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15580 fi
15581 ;;
15582
15583 sysv5* | sco3.2v5* | sco5v6*)
15584 # Note: We can NOT use -z defs as we might desire, because we do not
15585 # link with -lc, and that would cause any symbols used from libc to
15586 # always be unresolved, which means just about no library would
15587 # ever link correctly. If we're not using GNU ld we use -z text
15588 # though, which does catch some bad symbols but isn't as heavy-handed
15589 # as -z defs.
15590 no_undefined_flag_F77='${wl}-z,text'
15591 allow_undefined_flag_F77='${wl}-z,nodefs'
15592 archive_cmds_need_lc_F77=no
15593 hardcode_shlibpath_var_F77=no
15594 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15595 hardcode_libdir_separator_F77=':'
15596 link_all_deplibs_F77=yes
15597 export_dynamic_flag_spec_F77='${wl}-Bexport'
15598 runpath_var='LD_RUN_PATH'
15599
15600 if test "$GCC" = yes; then
15601 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15602 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15603 else
15604 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15605 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15606 fi
15607 ;;
15608
15609 uts4*)
15610 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15611 hardcode_libdir_flag_spec_F77='-L$libdir'
15612 hardcode_shlibpath_var_F77=no
15613 ;;
15614
15615 *)
15616 ld_shlibs_F77=no
15617 ;;
15618 esac
15619 fi
15620
64ff59ba 15621{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15622echo "${ECHO_T}$ld_shlibs_F77" >&6; }
d9898ee8 15623test "$ld_shlibs_F77" = no && can_build_shared=no
15624
15625#
15626# Do we need to explicitly link libc?
15627#
15628case "x$archive_cmds_need_lc_F77" in
15629x|xyes)
15630 # Assume -lc should be added
15631 archive_cmds_need_lc_F77=yes
15632
15633 if test "$enable_shared" = yes && test "$GCC" = yes; then
15634 case $archive_cmds_F77 in
15635 *'~'*)
15636 # FIXME: we may have to deal with multi-command sequences.
15637 ;;
15638 '$CC '*)
15639 # Test whether the compiler implicitly links with -lc since on some
15640 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15641 # to ld, don't add -lc before -lgcc.
64ff59ba 15642 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15643echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 15644 $rm conftest*
0fde1ce3 15645 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 15646
15647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15648 (eval $ac_compile) 2>&5
15649 ac_status=$?
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); } 2>conftest.err; then
15652 soname=conftest
15653 lib=conftest
15654 libobjs=conftest.$ac_objext
15655 deplibs=
15656 wl=$lt_prog_compiler_wl_F77
15657 pic_flag=$lt_prog_compiler_pic_F77
15658 compiler_flags=-v
15659 linker_flags=-v
15660 verstring=
15661 output_objdir=.
15662 libname=conftest
15663 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15664 allow_undefined_flag_F77=
15665 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15666 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15667 ac_status=$?
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); }
15670 then
15671 archive_cmds_need_lc_F77=no
15672 else
15673 archive_cmds_need_lc_F77=yes
15674 fi
15675 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15676 else
15677 cat conftest.err 1>&5
15678 fi
15679 $rm conftest*
64ff59ba 15680 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15681echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
d9898ee8 15682 ;;
15683 esac
15684 fi
15685 ;;
15686esac
15687
64ff59ba 15688{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15689echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 15690library_names_spec=
15691libname_spec='lib$name'
15692soname_spec=
15693shrext_cmds=".so"
15694postinstall_cmds=
15695postuninstall_cmds=
15696finish_cmds=
15697finish_eval=
15698shlibpath_var=
15699shlibpath_overrides_runpath=unknown
15700version_type=none
15701dynamic_linker="$host_os ld.so"
15702sys_lib_dlsearch_path_spec="/lib /usr/lib"
0fde1ce3 15703
d9898ee8 15704need_lib_prefix=unknown
15705hardcode_into_libs=no
15706
15707# when you set need_version to no, make sure it does not cause -set_version
15708# flags to be left without arguments
15709need_version=unknown
15710
15711case $host_os in
15712aix3*)
15713 version_type=linux
15714 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15715 shlibpath_var=LIBPATH
15716
15717 # AIX 3 has no versioning support, so we append a major version to the name.
15718 soname_spec='${libname}${release}${shared_ext}$major'
15719 ;;
15720
15721aix4* | aix5*)
15722 version_type=linux
15723 need_lib_prefix=no
15724 need_version=no
15725 hardcode_into_libs=yes
15726 if test "$host_cpu" = ia64; then
15727 # AIX 5 supports IA64
15728 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15729 shlibpath_var=LD_LIBRARY_PATH
15730 else
15731 # With GCC up to 2.95.x, collect2 would create an import file
15732 # for dependence libraries. The import file would start with
15733 # the line `#! .'. This would cause the generated library to
15734 # depend on `.', always an invalid library. This was fixed in
15735 # development snapshots of GCC prior to 3.0.
15736 case $host_os in
15737 aix4 | aix4.[01] | aix4.[01].*)
15738 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15739 echo ' yes '
15740 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15741 :
15742 else
15743 can_build_shared=no
15744 fi
15745 ;;
15746 esac
15747 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15748 # soname into executable. Probably we can add versioning support to
15749 # collect2, so additional links can be useful in future.
15750 if test "$aix_use_runtimelinking" = yes; then
15751 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15752 # instead of lib<name>.a to let people know that these are not
15753 # typical AIX shared libraries.
15754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15755 else
15756 # We preserve .a as extension for shared libraries through AIX4.2
15757 # and later when we are not doing run time linking.
15758 library_names_spec='${libname}${release}.a $libname.a'
15759 soname_spec='${libname}${release}${shared_ext}$major'
15760 fi
15761 shlibpath_var=LIBPATH
15762 fi
15763 ;;
15764
15765amigaos*)
15766 library_names_spec='$libname.ixlibrary $libname.a'
15767 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15768 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'
15769 ;;
15770
15771beos*)
15772 library_names_spec='${libname}${shared_ext}'
15773 dynamic_linker="$host_os ld.so"
15774 shlibpath_var=LIBRARY_PATH
15775 ;;
15776
15777bsdi[45]*)
15778 version_type=linux
15779 need_version=no
15780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15781 soname_spec='${libname}${release}${shared_ext}$major'
15782 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15783 shlibpath_var=LD_LIBRARY_PATH
15784 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15785 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15786 # the default ld.so.conf also contains /usr/contrib/lib and
15787 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15788 # libtool to hard-code these into programs
15789 ;;
15790
15791cygwin* | mingw* | pw32*)
15792 version_type=windows
15793 shrext_cmds=".dll"
15794 need_version=no
15795 need_lib_prefix=no
15796
15797 case $GCC,$host_os in
15798 yes,cygwin* | yes,mingw* | yes,pw32*)
15799 library_names_spec='$libname.dll.a'
15800 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15801 postinstall_cmds='base_file=`basename \${file}`~
15802 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15803 dldir=$destdir/`dirname \$dlpath`~
15804 test -d \$dldir || mkdir -p \$dldir~
15805 $install_prog $dir/$dlname \$dldir/$dlname~
15806 chmod a+x \$dldir/$dlname'
15807 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15808 dlpath=$dir/\$dldll~
15809 $rm \$dlpath'
15810 shlibpath_overrides_runpath=yes
15811
15812 case $host_os in
15813 cygwin*)
15814 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15815 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15816 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15817 ;;
15818 mingw*)
15819 # MinGW DLLs use traditional 'lib' prefix
15820 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15821 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15822 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15823 # It is most probably a Windows format PATH printed by
15824 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15825 # path with ; separators, and with drive letters. We can handle the
15826 # drive letters (cygwin fileutils understands them), so leave them,
15827 # especially as we might pass files found there to a mingw objdump,
15828 # which wouldn't understand a cygwinified path. Ahh.
15829 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15830 else
15831 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15832 fi
15833 ;;
15834 pw32*)
15835 # pw32 DLLs use 'pw' prefix rather than 'lib'
15836 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15837 ;;
15838 esac
15839 ;;
15840
15841 *)
15842 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15843 ;;
15844 esac
15845 dynamic_linker='Win32 ld.exe'
15846 # FIXME: first we should search . and the directory the executable is in
15847 shlibpath_var=PATH
15848 ;;
15849
15850darwin* | rhapsody*)
15851 dynamic_linker="$host_os dyld"
15852 version_type=darwin
15853 need_lib_prefix=no
15854 need_version=no
15855 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15856 soname_spec='${libname}${release}${major}$shared_ext'
15857 shlibpath_overrides_runpath=yes
15858 shlibpath_var=DYLD_LIBRARY_PATH
15859 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
0fde1ce3 15860
d9898ee8 15861 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15862 ;;
15863
15864dgux*)
15865 version_type=linux
15866 need_lib_prefix=no
15867 need_version=no
15868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15869 soname_spec='${libname}${release}${shared_ext}$major'
15870 shlibpath_var=LD_LIBRARY_PATH
15871 ;;
15872
15873freebsd1*)
15874 dynamic_linker=no
15875 ;;
15876
d9898ee8 15877freebsd* | dragonfly*)
15878 # DragonFly does not have aout. When/if they implement a new
15879 # versioning mechanism, adjust this.
15880 if test -x /usr/bin/objformat; then
15881 objformat=`/usr/bin/objformat`
15882 else
15883 case $host_os in
15884 freebsd[123]*) objformat=aout ;;
15885 *) objformat=elf ;;
15886 esac
15887 fi
15888 version_type=freebsd-$objformat
15889 case $version_type in
15890 freebsd-elf*)
15891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15892 need_version=no
15893 need_lib_prefix=no
15894 ;;
15895 freebsd-*)
15896 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15897 need_version=yes
15898 ;;
15899 esac
15900 shlibpath_var=LD_LIBRARY_PATH
15901 case $host_os in
15902 freebsd2*)
15903 shlibpath_overrides_runpath=yes
15904 ;;
15905 freebsd3.[01]* | freebsdelf3.[01]*)
15906 shlibpath_overrides_runpath=yes
15907 hardcode_into_libs=yes
15908 ;;
15909 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15910 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15911 shlibpath_overrides_runpath=no
15912 hardcode_into_libs=yes
15913 ;;
0fde1ce3 15914 *) # from 4.6 on, and DragonFly
d9898ee8 15915 shlibpath_overrides_runpath=yes
15916 hardcode_into_libs=yes
15917 ;;
15918 esac
15919 ;;
15920
15921gnu*)
15922 version_type=linux
15923 need_lib_prefix=no
15924 need_version=no
15925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15926 soname_spec='${libname}${release}${shared_ext}$major'
15927 shlibpath_var=LD_LIBRARY_PATH
15928 hardcode_into_libs=yes
15929 ;;
15930
15931hpux9* | hpux10* | hpux11*)
15932 # Give a soname corresponding to the major version so that dld.sl refuses to
15933 # link against other versions.
15934 version_type=sunos
15935 need_lib_prefix=no
15936 need_version=no
15937 case $host_cpu in
15938 ia64*)
15939 shrext_cmds='.so'
15940 hardcode_into_libs=yes
15941 dynamic_linker="$host_os dld.so"
15942 shlibpath_var=LD_LIBRARY_PATH
15943 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15945 soname_spec='${libname}${release}${shared_ext}$major'
15946 if test "X$HPUX_IA64_MODE" = X32; then
15947 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15948 else
15949 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15950 fi
15951 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15952 ;;
15953 hppa*64*)
15954 shrext_cmds='.sl'
15955 hardcode_into_libs=yes
15956 dynamic_linker="$host_os dld.sl"
15957 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15958 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15960 soname_spec='${libname}${release}${shared_ext}$major'
15961 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15962 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15963 ;;
15964 *)
15965 shrext_cmds='.sl'
15966 dynamic_linker="$host_os dld.sl"
15967 shlibpath_var=SHLIB_PATH
15968 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15970 soname_spec='${libname}${release}${shared_ext}$major'
15971 ;;
15972 esac
15973 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15974 postinstall_cmds='chmod 555 $lib'
15975 ;;
15976
0fde1ce3 15977interix[3-9]*)
d9898ee8 15978 version_type=linux
15979 need_lib_prefix=no
15980 need_version=no
15981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15982 soname_spec='${libname}${release}${shared_ext}$major'
15983 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15984 shlibpath_var=LD_LIBRARY_PATH
15985 shlibpath_overrides_runpath=no
15986 hardcode_into_libs=yes
15987 ;;
15988
15989irix5* | irix6* | nonstopux*)
15990 case $host_os in
15991 nonstopux*) version_type=nonstopux ;;
15992 *)
15993 if test "$lt_cv_prog_gnu_ld" = yes; then
15994 version_type=linux
15995 else
15996 version_type=irix
15997 fi ;;
15998 esac
15999 need_lib_prefix=no
16000 need_version=no
16001 soname_spec='${libname}${release}${shared_ext}$major'
16002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16003 case $host_os in
16004 irix5* | nonstopux*)
16005 libsuff= shlibsuff=
16006 ;;
16007 *)
16008 case $LD in # libtool.m4 will add one of these switches to LD
16009 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16010 libsuff= shlibsuff= libmagic=32-bit;;
16011 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16012 libsuff=32 shlibsuff=N32 libmagic=N32;;
16013 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16014 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16015 *) libsuff= shlibsuff= libmagic=never-match;;
16016 esac
16017 ;;
16018 esac
16019 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16020 shlibpath_overrides_runpath=no
16021 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16022 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16023 hardcode_into_libs=yes
16024 ;;
16025
16026# No shared lib support for Linux oldld, aout, or coff.
16027linux*oldld* | linux*aout* | linux*coff*)
16028 dynamic_linker=no
16029 ;;
16030
16031# This must be Linux ELF.
0fde1ce3 16032linux* | k*bsd*-gnu)
d9898ee8 16033 version_type=linux
16034 need_lib_prefix=no
16035 need_version=no
16036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16037 soname_spec='${libname}${release}${shared_ext}$major'
16038 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16039 shlibpath_var=LD_LIBRARY_PATH
16040 shlibpath_overrides_runpath=no
16041 # This implies no fast_install, which is unacceptable.
16042 # Some rework will be needed to allow for fast_install
16043 # before this can be enabled.
16044 hardcode_into_libs=yes
0fde1ce3 16045 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16046 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
d9898ee8 16047
16048 # Append ld.so.conf contents to the search path
16049 if test -f /etc/ld.so.conf; then
0fde1ce3 16050 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' ' '`
16051 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 16052 fi
16053
16054 # We used to test for /lib/ld.so.1 and disable shared libraries on
16055 # powerpc, because MkLinux only supported shared libraries with the
16056 # GNU dynamic linker. Since this was broken with cross compilers,
16057 # most powerpc-linux boxes support dynamic linking these days and
16058 # people can always --disable-shared, the test was removed, and we
16059 # assume the GNU/Linux dynamic linker is in use.
16060 dynamic_linker='GNU/Linux ld.so'
16061 ;;
16062
d9898ee8 16063netbsd*)
16064 version_type=sunos
16065 need_lib_prefix=no
16066 need_version=no
16067 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16069 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16070 dynamic_linker='NetBSD (a.out) ld.so'
16071 else
16072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16073 soname_spec='${libname}${release}${shared_ext}$major'
16074 dynamic_linker='NetBSD ld.elf_so'
16075 fi
16076 shlibpath_var=LD_LIBRARY_PATH
16077 shlibpath_overrides_runpath=yes
16078 hardcode_into_libs=yes
16079 ;;
16080
16081newsos6)
16082 version_type=linux
16083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16084 shlibpath_var=LD_LIBRARY_PATH
16085 shlibpath_overrides_runpath=yes
16086 ;;
16087
16088nto-qnx*)
16089 version_type=linux
16090 need_lib_prefix=no
16091 need_version=no
16092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16093 soname_spec='${libname}${release}${shared_ext}$major'
16094 shlibpath_var=LD_LIBRARY_PATH
16095 shlibpath_overrides_runpath=yes
16096 ;;
16097
16098openbsd*)
16099 version_type=sunos
16100 sys_lib_dlsearch_path_spec="/usr/lib"
16101 need_lib_prefix=no
16102 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16103 case $host_os in
16104 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16105 *) need_version=no ;;
16106 esac
16107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16108 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16109 shlibpath_var=LD_LIBRARY_PATH
16110 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16111 case $host_os in
16112 openbsd2.[89] | openbsd2.[89].*)
16113 shlibpath_overrides_runpath=no
16114 ;;
16115 *)
16116 shlibpath_overrides_runpath=yes
16117 ;;
16118 esac
16119 else
16120 shlibpath_overrides_runpath=yes
16121 fi
16122 ;;
16123
16124os2*)
16125 libname_spec='$name'
16126 shrext_cmds=".dll"
16127 need_lib_prefix=no
16128 library_names_spec='$libname${shared_ext} $libname.a'
16129 dynamic_linker='OS/2 ld.exe'
16130 shlibpath_var=LIBPATH
16131 ;;
16132
16133osf3* | osf4* | osf5*)
16134 version_type=osf
16135 need_lib_prefix=no
16136 need_version=no
16137 soname_spec='${libname}${release}${shared_ext}$major'
16138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16139 shlibpath_var=LD_LIBRARY_PATH
16140 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16141 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16142 ;;
16143
0fde1ce3 16144rdos*)
16145 dynamic_linker=no
16146 ;;
16147
d9898ee8 16148solaris*)
16149 version_type=linux
16150 need_lib_prefix=no
16151 need_version=no
16152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16153 soname_spec='${libname}${release}${shared_ext}$major'
16154 shlibpath_var=LD_LIBRARY_PATH
16155 shlibpath_overrides_runpath=yes
16156 hardcode_into_libs=yes
16157 # ldd complains unless libraries are executable
16158 postinstall_cmds='chmod +x $lib'
16159 ;;
16160
16161sunos4*)
16162 version_type=sunos
16163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16164 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16165 shlibpath_var=LD_LIBRARY_PATH
16166 shlibpath_overrides_runpath=yes
16167 if test "$with_gnu_ld" = yes; then
16168 need_lib_prefix=no
16169 fi
16170 need_version=yes
16171 ;;
16172
16173sysv4 | sysv4.3*)
16174 version_type=linux
16175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16176 soname_spec='${libname}${release}${shared_ext}$major'
16177 shlibpath_var=LD_LIBRARY_PATH
16178 case $host_vendor in
16179 sni)
16180 shlibpath_overrides_runpath=no
16181 need_lib_prefix=no
16182 export_dynamic_flag_spec='${wl}-Blargedynsym'
16183 runpath_var=LD_RUN_PATH
16184 ;;
16185 siemens)
16186 need_lib_prefix=no
16187 ;;
16188 motorola)
16189 need_lib_prefix=no
16190 need_version=no
16191 shlibpath_overrides_runpath=no
16192 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16193 ;;
16194 esac
16195 ;;
16196
16197sysv4*MP*)
16198 if test -d /usr/nec ;then
16199 version_type=linux
16200 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16201 soname_spec='$libname${shared_ext}.$major'
16202 shlibpath_var=LD_LIBRARY_PATH
16203 fi
16204 ;;
16205
16206sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16207 version_type=freebsd-elf
16208 need_lib_prefix=no
16209 need_version=no
16210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16211 soname_spec='${libname}${release}${shared_ext}$major'
16212 shlibpath_var=LD_LIBRARY_PATH
16213 hardcode_into_libs=yes
16214 if test "$with_gnu_ld" = yes; then
16215 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16216 shlibpath_overrides_runpath=no
16217 else
16218 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16219 shlibpath_overrides_runpath=yes
16220 case $host_os in
16221 sco3.2v5*)
16222 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16223 ;;
16224 esac
16225 fi
16226 sys_lib_dlsearch_path_spec='/usr/lib'
16227 ;;
16228
16229uts4*)
16230 version_type=linux
16231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16232 soname_spec='${libname}${release}${shared_ext}$major'
16233 shlibpath_var=LD_LIBRARY_PATH
16234 ;;
16235
16236*)
16237 dynamic_linker=no
16238 ;;
16239esac
64ff59ba 16240{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16241echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 16242test "$dynamic_linker" = no && can_build_shared=no
16243
16244variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16245if test "$GCC" = yes; then
16246 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16247fi
16248
64ff59ba 16249{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16250echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 16251hardcode_action_F77=
16252if test -n "$hardcode_libdir_flag_spec_F77" || \
16253 test -n "$runpath_var_F77" || \
16254 test "X$hardcode_automatic_F77" = "Xyes" ; then
16255
16256 # We can hardcode non-existant directories.
16257 if test "$hardcode_direct_F77" != no &&
16258 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16259 # have to relink, otherwise we might link with an installed library
16260 # when we should be linking with a yet-to-be-installed one
16261 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16262 test "$hardcode_minus_L_F77" != no; then
16263 # Linking always hardcodes the temporary library directory.
16264 hardcode_action_F77=relink
16265 else
16266 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16267 hardcode_action_F77=immediate
16268 fi
16269else
16270 # We cannot hardcode anything, or else we can only hardcode existing
16271 # directories.
16272 hardcode_action_F77=unsupported
16273fi
64ff59ba 16274{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16275echo "${ECHO_T}$hardcode_action_F77" >&6; }
d9898ee8 16276
16277if test "$hardcode_action_F77" = relink; then
16278 # Fast installation is not supported
16279 enable_fast_install=no
16280elif test "$shlibpath_overrides_runpath" = yes ||
16281 test "$enable_shared" = no; then
16282 # Fast installation is not necessary
16283 enable_fast_install=needless
16284fi
16285
16286
16287# The else clause should only fire when bootstrapping the
16288# libtool distribution, otherwise you forgot to ship ltmain.sh
16289# with your package, and you will get complaints that there are
16290# no rules to generate ltmain.sh.
16291if test -f "$ltmain"; then
16292 # See if we are running on zsh, and set the options which allow our commands through
16293 # without removal of \ escapes.
16294 if test -n "${ZSH_VERSION+set}" ; then
16295 setopt NO_GLOB_SUBST
16296 fi
16297 # Now quote all the things that may contain metacharacters while being
16298 # careful not to overquote the AC_SUBSTed values. We take copies of the
16299 # variables and quote the copies for generation of the libtool script.
16300 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16301 SED SHELL STRIP \
16302 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16303 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16304 deplibs_check_method reload_flag reload_cmds need_locks \
16305 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16306 lt_cv_sys_global_symbol_to_c_name_address \
16307 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16308 old_postinstall_cmds old_postuninstall_cmds \
16309 compiler_F77 \
16310 CC_F77 \
16311 LD_F77 \
16312 lt_prog_compiler_wl_F77 \
16313 lt_prog_compiler_pic_F77 \
16314 lt_prog_compiler_static_F77 \
16315 lt_prog_compiler_no_builtin_flag_F77 \
16316 export_dynamic_flag_spec_F77 \
16317 thread_safe_flag_spec_F77 \
16318 whole_archive_flag_spec_F77 \
16319 enable_shared_with_static_runtimes_F77 \
16320 old_archive_cmds_F77 \
16321 old_archive_from_new_cmds_F77 \
16322 predep_objects_F77 \
16323 postdep_objects_F77 \
16324 predeps_F77 \
16325 postdeps_F77 \
16326 compiler_lib_search_path_F77 \
16327 archive_cmds_F77 \
16328 archive_expsym_cmds_F77 \
16329 postinstall_cmds_F77 \
16330 postuninstall_cmds_F77 \
16331 old_archive_from_expsyms_cmds_F77 \
16332 allow_undefined_flag_F77 \
16333 no_undefined_flag_F77 \
16334 export_symbols_cmds_F77 \
16335 hardcode_libdir_flag_spec_F77 \
16336 hardcode_libdir_flag_spec_ld_F77 \
16337 hardcode_libdir_separator_F77 \
16338 hardcode_automatic_F77 \
16339 module_cmds_F77 \
16340 module_expsym_cmds_F77 \
16341 lt_cv_prog_compiler_c_o_F77 \
0fde1ce3 16342 fix_srcfile_path_F77 \
d9898ee8 16343 exclude_expsyms_F77 \
16344 include_expsyms_F77; do
16345
16346 case $var in
16347 old_archive_cmds_F77 | \
16348 old_archive_from_new_cmds_F77 | \
16349 archive_cmds_F77 | \
16350 archive_expsym_cmds_F77 | \
16351 module_cmds_F77 | \
16352 module_expsym_cmds_F77 | \
16353 old_archive_from_expsyms_cmds_F77 | \
16354 export_symbols_cmds_F77 | \
16355 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16356 postinstall_cmds | postuninstall_cmds | \
16357 old_postinstall_cmds | old_postuninstall_cmds | \
16358 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16359 # Double-quote double-evaled strings.
16360 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16361 ;;
16362 *)
16363 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16364 ;;
16365 esac
16366 done
16367
16368 case $lt_echo in
16369 *'\$0 --fallback-echo"')
16370 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16371 ;;
16372 esac
16373
16374cfgfile="$ofile"
16375
16376 cat <<__EOF__ >> "$cfgfile"
16377# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16378
16379# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16380
16381# Shell to use when invoking shell scripts.
16382SHELL=$lt_SHELL
16383
16384# Whether or not to build shared libraries.
16385build_libtool_libs=$enable_shared
16386
16387# Whether or not to build static libraries.
16388build_old_libs=$enable_static
16389
16390# Whether or not to add -lc for building shared libraries.
16391build_libtool_need_lc=$archive_cmds_need_lc_F77
16392
16393# Whether or not to disallow shared libs when runtime libs are static
16394allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16395
16396# Whether or not to optimize for fast installation.
16397fast_install=$enable_fast_install
16398
16399# The host system.
16400host_alias=$host_alias
16401host=$host
16402host_os=$host_os
16403
16404# The build system.
16405build_alias=$build_alias
16406build=$build
16407build_os=$build_os
16408
16409# An echo program that does not interpret backslashes.
16410echo=$lt_echo
16411
16412# The archiver.
16413AR=$lt_AR
16414AR_FLAGS=$lt_AR_FLAGS
16415
16416# A C compiler.
16417LTCC=$lt_LTCC
16418
16419# LTCC compiler flags.
16420LTCFLAGS=$lt_LTCFLAGS
16421
16422# A language-specific compiler.
16423CC=$lt_compiler_F77
16424
16425# Is the compiler the GNU C compiler?
16426with_gcc=$GCC_F77
16427
d9898ee8 16428# An ERE matcher.
16429EGREP=$lt_EGREP
16430
16431# The linker used to build libraries.
16432LD=$lt_LD_F77
16433
16434# Whether we need hard or soft links.
16435LN_S=$lt_LN_S
16436
16437# A BSD-compatible nm program.
16438NM=$lt_NM
16439
16440# A symbol stripping program
16441STRIP=$lt_STRIP
16442
16443# Used to examine libraries when file_magic_cmd begins "file"
16444MAGIC_CMD=$MAGIC_CMD
16445
16446# Used on cygwin: DLL creation program.
16447DLLTOOL="$DLLTOOL"
16448
16449# Used on cygwin: object dumper.
16450OBJDUMP="$OBJDUMP"
16451
16452# Used on cygwin: assembler.
16453AS="$AS"
16454
16455# The name of the directory that contains temporary libtool files.
16456objdir=$objdir
16457
16458# How to create reloadable object files.
16459reload_flag=$lt_reload_flag
16460reload_cmds=$lt_reload_cmds
16461
16462# How to pass a linker flag through the compiler.
16463wl=$lt_lt_prog_compiler_wl_F77
16464
16465# Object file suffix (normally "o").
16466objext="$ac_objext"
16467
16468# Old archive suffix (normally "a").
16469libext="$libext"
16470
16471# Shared library suffix (normally ".so").
16472shrext_cmds='$shrext_cmds'
16473
16474# Executable file suffix (normally "").
16475exeext="$exeext"
16476
16477# Additional compiler flags for building library objects.
16478pic_flag=$lt_lt_prog_compiler_pic_F77
16479pic_mode=$pic_mode
16480
16481# What is the maximum length of a command?
16482max_cmd_len=$lt_cv_sys_max_cmd_len
16483
16484# Does compiler simultaneously support -c and -o options?
16485compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16486
16487# Must we lock files when doing compilation?
16488need_locks=$lt_need_locks
16489
16490# Do we need the lib prefix for modules?
16491need_lib_prefix=$need_lib_prefix
16492
16493# Do we need a version for libraries?
16494need_version=$need_version
16495
16496# Whether dlopen is supported.
16497dlopen_support=$enable_dlopen
16498
16499# Whether dlopen of programs is supported.
16500dlopen_self=$enable_dlopen_self
16501
16502# Whether dlopen of statically linked programs is supported.
16503dlopen_self_static=$enable_dlopen_self_static
16504
16505# Compiler flag to prevent dynamic linking.
16506link_static_flag=$lt_lt_prog_compiler_static_F77
16507
16508# Compiler flag to turn off builtin functions.
16509no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16510
16511# Compiler flag to allow reflexive dlopens.
16512export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16513
16514# Compiler flag to generate shared objects directly from archives.
16515whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16516
16517# Compiler flag to generate thread-safe objects.
16518thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16519
16520# Library versioning type.
16521version_type=$version_type
16522
16523# Format of library name prefix.
16524libname_spec=$lt_libname_spec
16525
16526# List of archive names. First name is the real one, the rest are links.
16527# The last name is the one that the linker finds with -lNAME.
16528library_names_spec=$lt_library_names_spec
16529
16530# The coded name of the library, if different from the real name.
16531soname_spec=$lt_soname_spec
16532
16533# Commands used to build and install an old-style archive.
16534RANLIB=$lt_RANLIB
16535old_archive_cmds=$lt_old_archive_cmds_F77
16536old_postinstall_cmds=$lt_old_postinstall_cmds
16537old_postuninstall_cmds=$lt_old_postuninstall_cmds
16538
16539# Create an old-style archive from a shared archive.
16540old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16541
16542# Create a temporary old-style archive to link instead of a shared archive.
16543old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16544
16545# Commands used to build and install a shared archive.
16546archive_cmds=$lt_archive_cmds_F77
16547archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16548postinstall_cmds=$lt_postinstall_cmds
16549postuninstall_cmds=$lt_postuninstall_cmds
16550
16551# Commands used to build a loadable module (assumed same as above if empty)
16552module_cmds=$lt_module_cmds_F77
16553module_expsym_cmds=$lt_module_expsym_cmds_F77
16554
16555# Commands to strip libraries.
16556old_striplib=$lt_old_striplib
16557striplib=$lt_striplib
16558
16559# Dependencies to place before the objects being linked to create a
16560# shared library.
64ff59ba 16561predep_objects=$lt_predep_objects_F77
d9898ee8 16562
16563# Dependencies to place after the objects being linked to create a
16564# shared library.
64ff59ba 16565postdep_objects=$lt_postdep_objects_F77
d9898ee8 16566
16567# Dependencies to place before the objects being linked to create a
16568# shared library.
16569predeps=$lt_predeps_F77
16570
16571# Dependencies to place after the objects being linked to create a
16572# shared library.
16573postdeps=$lt_postdeps_F77
16574
16575# The library search path used internally by the compiler when linking
16576# a shared library.
64ff59ba 16577compiler_lib_search_path=$lt_compiler_lib_search_path_F77
d9898ee8 16578
16579# Method to check whether dependent libraries are shared objects.
16580deplibs_check_method=$lt_deplibs_check_method
16581
16582# Command to use when deplibs_check_method == file_magic.
16583file_magic_cmd=$lt_file_magic_cmd
16584
16585# Flag that allows shared libraries with undefined symbols to be built.
16586allow_undefined_flag=$lt_allow_undefined_flag_F77
16587
16588# Flag that forces no undefined symbols.
16589no_undefined_flag=$lt_no_undefined_flag_F77
16590
16591# Commands used to finish a libtool library installation in a directory.
16592finish_cmds=$lt_finish_cmds
16593
16594# Same as above, but a single script fragment to be evaled but not shown.
16595finish_eval=$lt_finish_eval
16596
16597# Take the output of nm and produce a listing of raw symbols and C names.
16598global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16599
16600# Transform the output of nm in a proper C declaration
16601global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16602
16603# Transform the output of nm in a C name address pair
16604global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16605
16606# This is the shared library runtime path variable.
16607runpath_var=$runpath_var
16608
16609# This is the shared library path variable.
16610shlibpath_var=$shlibpath_var
16611
16612# Is shlibpath searched before the hard-coded library search path?
16613shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16614
16615# How to hardcode a shared library path into an executable.
16616hardcode_action=$hardcode_action_F77
16617
16618# Whether we should hardcode library paths into libraries.
16619hardcode_into_libs=$hardcode_into_libs
16620
16621# Flag to hardcode \$libdir into a binary during linking.
16622# This must work even if \$libdir does not exist.
16623hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16624
16625# If ld is used when linking, flag to hardcode \$libdir into
16626# a binary during linking. This must work even if \$libdir does
16627# not exist.
16628hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16629
16630# Whether we need a single -rpath flag with a separated argument.
16631hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16632
16633# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16634# resulting binary.
16635hardcode_direct=$hardcode_direct_F77
16636
16637# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16638# resulting binary.
16639hardcode_minus_L=$hardcode_minus_L_F77
16640
16641# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16642# the resulting binary.
16643hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16644
16645# Set to yes if building a shared library automatically hardcodes DIR into the library
16646# and all subsequent libraries and executables linked against it.
16647hardcode_automatic=$hardcode_automatic_F77
16648
16649# Variables whose values should be saved in libtool wrapper scripts and
16650# restored at relink time.
16651variables_saved_for_relink="$variables_saved_for_relink"
16652
16653# Whether libtool must link a program against all its dependency libraries.
16654link_all_deplibs=$link_all_deplibs_F77
16655
16656# Compile-time system search path for libraries
64ff59ba 16657sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 16658
16659# Run-time system search path for libraries
16660sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16661
16662# Fix the shell variable \$srcfile for the compiler.
0fde1ce3 16663fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 16664
16665# Set to yes if exported symbols are required.
16666always_export_symbols=$always_export_symbols_F77
16667
16668# The commands to list exported symbols.
16669export_symbols_cmds=$lt_export_symbols_cmds_F77
16670
16671# The commands to extract the exported symbol list from a shared archive.
16672extract_expsyms_cmds=$lt_extract_expsyms_cmds
16673
16674# Symbols that should not be listed in the preloaded symbols.
16675exclude_expsyms=$lt_exclude_expsyms_F77
16676
16677# Symbols that must always be exported.
16678include_expsyms=$lt_include_expsyms_F77
16679
16680# ### END LIBTOOL TAG CONFIG: $tagname
16681
16682__EOF__
16683
16684
16685else
16686 # If there is no Makefile yet, we rely on a make rule to execute
16687 # `config.status --recheck' to rerun these tests and create the
16688 # libtool script then.
16689 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16690 if test -f "$ltmain_in"; then
16691 test -f Makefile && make "$ltmain"
16692 fi
16693fi
16694
16695
16696ac_ext=c
16697ac_cpp='$CPP $CPPFLAGS'
16698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16700ac_compiler_gnu=$ac_cv_c_compiler_gnu
16701
16702CC="$lt_save_CC"
16703
16704 else
16705 tagname=""
16706 fi
16707 ;;
16708
16709 GCJ)
16710 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16711
16712
d9898ee8 16713# Source file extension for Java test sources.
16714ac_ext=java
16715
16716# Object file extension for compiled Java test sources.
16717objext=o
16718objext_GCJ=$objext
16719
16720# Code to be used in simple compile tests
0fde1ce3 16721lt_simple_compile_test_code="class foo {}"
d9898ee8 16722
16723# Code to be used in simple link tests
0fde1ce3 16724lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
d9898ee8 16725
16726# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16727
16728# If no C compiler was specified, use CC.
16729LTCC=${LTCC-"$CC"}
16730
16731# If no C compiler flags were specified, use CFLAGS.
16732LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16733
16734# Allow CC to be a program name with arguments.
16735compiler=$CC
16736
16737
16738# save warnings/boilerplate of simple test code
16739ac_outfile=conftest.$ac_objext
0fde1ce3 16740echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 16741eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16742_lt_compiler_boilerplate=`cat conftest.err`
16743$rm conftest*
16744
16745ac_outfile=conftest.$ac_objext
0fde1ce3 16746echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 16747eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16748_lt_linker_boilerplate=`cat conftest.err`
16749$rm conftest*
16750
16751
16752# Allow CC to be a program name with arguments.
16753lt_save_CC="$CC"
16754CC=${GCJ-"gcj"}
16755compiler=$CC
16756compiler_GCJ=$CC
16757for cc_temp in $compiler""; do
16758 case $cc_temp in
16759 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16760 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16761 \-*) ;;
16762 *) break;;
16763 esac
16764done
16765cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16766
16767
16768# GCJ did not exist at the time GCC didn't implicitly link libc in.
16769archive_cmds_need_lc_GCJ=no
16770
16771old_archive_cmds_GCJ=$old_archive_cmds
16772
16773## CAVEAT EMPTOR:
16774## There is no encapsulation within the following macros, do not change
16775## the running order or otherwise move them around unless you know exactly
16776## what you are doing...
16777
16778lt_prog_compiler_no_builtin_flag_GCJ=
16779
16780if test "$GCC" = yes; then
16781 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16782
16783
64ff59ba 16784{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16785echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d9898ee8 16786if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16787 echo $ECHO_N "(cached) $ECHO_C" >&6
16788else
16789 lt_cv_prog_compiler_rtti_exceptions=no
16790 ac_outfile=conftest.$ac_objext
0fde1ce3 16791 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 16792 lt_compiler_flag="-fno-rtti -fno-exceptions"
16793 # Insert the option either (1) after the last *FLAGS variable, or
16794 # (2) before a word containing "conftest.", or (3) at the end.
16795 # Note that $ac_compile itself does not contain backslashes and begins
16796 # with a dollar sign (not a hyphen), so the echo should work correctly.
16797 # The option is referenced via a variable to avoid confusing sed.
16798 lt_compile=`echo "$ac_compile" | $SED \
16799 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16800 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16801 -e 's:$: $lt_compiler_flag:'`
0fde1ce3 16802 (eval echo "\"\$as_me:16802: $lt_compile\"" >&5)
d9898ee8 16803 (eval "$lt_compile" 2>conftest.err)
16804 ac_status=$?
16805 cat conftest.err >&5
0fde1ce3 16806 echo "$as_me:16806: \$? = $ac_status" >&5
d9898ee8 16807 if (exit $ac_status) && test -s "$ac_outfile"; then
16808 # The compiler can only warn and ignore the option if not recognized
16809 # So say no if there are warnings other than the usual output.
16810 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16811 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16812 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16813 lt_cv_prog_compiler_rtti_exceptions=yes
16814 fi
16815 fi
16816 $rm conftest*
16817
16818fi
64ff59ba 16819{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16820echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 16821
16822if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16823 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16824else
16825 :
16826fi
16827
16828fi
16829
16830lt_prog_compiler_wl_GCJ=
16831lt_prog_compiler_pic_GCJ=
16832lt_prog_compiler_static_GCJ=
16833
64ff59ba 16834{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16835echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 16836
16837 if test "$GCC" = yes; then
16838 lt_prog_compiler_wl_GCJ='-Wl,'
16839 lt_prog_compiler_static_GCJ='-static'
16840
16841 case $host_os in
16842 aix*)
16843 # All AIX code is PIC.
16844 if test "$host_cpu" = ia64; then
16845 # AIX 5 now supports IA64 processor
16846 lt_prog_compiler_static_GCJ='-Bstatic'
16847 fi
16848 ;;
16849
16850 amigaos*)
16851 # FIXME: we need at least 68020 code to build shared libraries, but
16852 # adding the `-m68020' flag to GCC prevents building anything better,
16853 # like `-m68040'.
16854 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16855 ;;
16856
0fde1ce3 16857 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 16858 # PIC is the default for these OSes.
16859 ;;
16860
0fde1ce3 16861 mingw* | cygwin* | pw32* | os2*)
d9898ee8 16862 # This hack is so that the source file can tell whether it is being
16863 # built for inclusion in a dll (and should export symbols for example).
0fde1ce3 16864 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16865 # (--disable-auto-import) libraries
d9898ee8 16866 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16867 ;;
16868
16869 darwin* | rhapsody*)
16870 # PIC is the default on this platform
16871 # Common symbols not allowed in MH_DYLIB files
16872 lt_prog_compiler_pic_GCJ='-fno-common'
16873 ;;
16874
0fde1ce3 16875 interix[3-9]*)
d9898ee8 16876 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16877 # Instead, we relocate shared libraries at runtime.
16878 ;;
16879
16880 msdosdjgpp*)
16881 # Just because we use GCC doesn't mean we suddenly get shared libraries
16882 # on systems that don't support them.
16883 lt_prog_compiler_can_build_shared_GCJ=no
16884 enable_shared=no
16885 ;;
16886
16887 sysv4*MP*)
16888 if test -d /usr/nec; then
16889 lt_prog_compiler_pic_GCJ=-Kconform_pic
16890 fi
16891 ;;
16892
16893 hpux*)
16894 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16895 # not for PA HP-UX.
16896 case $host_cpu in
16897 hppa*64*|ia64*)
16898 # +Z the default
16899 ;;
16900 *)
16901 lt_prog_compiler_pic_GCJ='-fPIC'
16902 ;;
16903 esac
16904 ;;
16905
16906 *)
16907 lt_prog_compiler_pic_GCJ='-fPIC'
16908 ;;
16909 esac
16910 else
16911 # PORTME Check for flag to pass linker flags through the system compiler.
16912 case $host_os in
16913 aix*)
16914 lt_prog_compiler_wl_GCJ='-Wl,'
16915 if test "$host_cpu" = ia64; then
16916 # AIX 5 now supports IA64 processor
16917 lt_prog_compiler_static_GCJ='-Bstatic'
16918 else
16919 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16920 fi
16921 ;;
16922 darwin*)
16923 # PIC is the default on this platform
16924 # Common symbols not allowed in MH_DYLIB files
16925 case $cc_basename in
16926 xlc*)
16927 lt_prog_compiler_pic_GCJ='-qnocommon'
16928 lt_prog_compiler_wl_GCJ='-Wl,'
16929 ;;
16930 esac
16931 ;;
16932
0fde1ce3 16933 mingw* | cygwin* | pw32* | os2*)
d9898ee8 16934 # This hack is so that the source file can tell whether it is being
16935 # built for inclusion in a dll (and should export symbols for example).
16936 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16937 ;;
16938
16939 hpux9* | hpux10* | hpux11*)
16940 lt_prog_compiler_wl_GCJ='-Wl,'
16941 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16942 # not for PA HP-UX.
16943 case $host_cpu in
16944 hppa*64*|ia64*)
16945 # +Z the default
16946 ;;
16947 *)
16948 lt_prog_compiler_pic_GCJ='+Z'
16949 ;;
16950 esac
16951 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16952 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16953 ;;
16954
16955 irix5* | irix6* | nonstopux*)
16956 lt_prog_compiler_wl_GCJ='-Wl,'
16957 # PIC (with -KPIC) is the default.
16958 lt_prog_compiler_static_GCJ='-non_shared'
16959 ;;
16960
16961 newsos6)
16962 lt_prog_compiler_pic_GCJ='-KPIC'
16963 lt_prog_compiler_static_GCJ='-Bstatic'
16964 ;;
16965
0fde1ce3 16966 linux* | k*bsd*-gnu)
d9898ee8 16967 case $cc_basename in
16968 icc* | ecc*)
16969 lt_prog_compiler_wl_GCJ='-Wl,'
16970 lt_prog_compiler_pic_GCJ='-KPIC'
16971 lt_prog_compiler_static_GCJ='-static'
16972 ;;
16973 pgcc* | pgf77* | pgf90* | pgf95*)
16974 # Portland Group compilers (*not* the Pentium gcc compiler,
16975 # which looks to be a dead project)
16976 lt_prog_compiler_wl_GCJ='-Wl,'
16977 lt_prog_compiler_pic_GCJ='-fpic'
16978 lt_prog_compiler_static_GCJ='-Bstatic'
16979 ;;
16980 ccc*)
16981 lt_prog_compiler_wl_GCJ='-Wl,'
16982 # All Alpha code is PIC.
16983 lt_prog_compiler_static_GCJ='-non_shared'
16984 ;;
0fde1ce3 16985 *)
16986 case `$CC -V 2>&1 | sed 5q` in
16987 *Sun\ C*)
16988 # Sun C 5.9
16989 lt_prog_compiler_pic_GCJ='-KPIC'
16990 lt_prog_compiler_static_GCJ='-Bstatic'
16991 lt_prog_compiler_wl_GCJ='-Wl,'
16992 ;;
16993 *Sun\ F*)
16994 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16995 lt_prog_compiler_pic_GCJ='-KPIC'
16996 lt_prog_compiler_static_GCJ='-Bstatic'
16997 lt_prog_compiler_wl_GCJ=''
16998 ;;
16999 esac
17000 ;;
d9898ee8 17001 esac
17002 ;;
17003
17004 osf3* | osf4* | osf5*)
17005 lt_prog_compiler_wl_GCJ='-Wl,'
17006 # All OSF/1 code is PIC.
17007 lt_prog_compiler_static_GCJ='-non_shared'
17008 ;;
17009
0fde1ce3 17010 rdos*)
17011 lt_prog_compiler_static_GCJ='-non_shared'
17012 ;;
17013
d9898ee8 17014 solaris*)
17015 lt_prog_compiler_pic_GCJ='-KPIC'
17016 lt_prog_compiler_static_GCJ='-Bstatic'
17017 case $cc_basename in
17018 f77* | f90* | f95*)
17019 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17020 *)
17021 lt_prog_compiler_wl_GCJ='-Wl,';;
17022 esac
17023 ;;
17024
17025 sunos4*)
17026 lt_prog_compiler_wl_GCJ='-Qoption ld '
17027 lt_prog_compiler_pic_GCJ='-PIC'
17028 lt_prog_compiler_static_GCJ='-Bstatic'
17029 ;;
17030
17031 sysv4 | sysv4.2uw2* | sysv4.3*)
17032 lt_prog_compiler_wl_GCJ='-Wl,'
17033 lt_prog_compiler_pic_GCJ='-KPIC'
17034 lt_prog_compiler_static_GCJ='-Bstatic'
17035 ;;
17036
17037 sysv4*MP*)
17038 if test -d /usr/nec ;then
17039 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17040 lt_prog_compiler_static_GCJ='-Bstatic'
17041 fi
17042 ;;
17043
17044 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17045 lt_prog_compiler_wl_GCJ='-Wl,'
17046 lt_prog_compiler_pic_GCJ='-KPIC'
17047 lt_prog_compiler_static_GCJ='-Bstatic'
17048 ;;
17049
17050 unicos*)
17051 lt_prog_compiler_wl_GCJ='-Wl,'
17052 lt_prog_compiler_can_build_shared_GCJ=no
17053 ;;
17054
17055 uts4*)
17056 lt_prog_compiler_pic_GCJ='-pic'
17057 lt_prog_compiler_static_GCJ='-Bstatic'
17058 ;;
17059
17060 *)
17061 lt_prog_compiler_can_build_shared_GCJ=no
17062 ;;
17063 esac
17064 fi
17065
64ff59ba 17066{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17067echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
d9898ee8 17068
17069#
17070# Check to make sure the PIC flag actually works.
17071#
17072if test -n "$lt_prog_compiler_pic_GCJ"; then
17073
64ff59ba 17074{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17075echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
d9898ee8 17076if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17077 echo $ECHO_N "(cached) $ECHO_C" >&6
17078else
17079 lt_prog_compiler_pic_works_GCJ=no
17080 ac_outfile=conftest.$ac_objext
0fde1ce3 17081 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 17082 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17083 # Insert the option either (1) after the last *FLAGS variable, or
17084 # (2) before a word containing "conftest.", or (3) at the end.
17085 # Note that $ac_compile itself does not contain backslashes and begins
17086 # with a dollar sign (not a hyphen), so the echo should work correctly.
17087 # The option is referenced via a variable to avoid confusing sed.
17088 lt_compile=`echo "$ac_compile" | $SED \
17089 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17090 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17091 -e 's:$: $lt_compiler_flag:'`
0fde1ce3 17092 (eval echo "\"\$as_me:17092: $lt_compile\"" >&5)
d9898ee8 17093 (eval "$lt_compile" 2>conftest.err)
17094 ac_status=$?
17095 cat conftest.err >&5
0fde1ce3 17096 echo "$as_me:17096: \$? = $ac_status" >&5
d9898ee8 17097 if (exit $ac_status) && test -s "$ac_outfile"; then
17098 # The compiler can only warn and ignore the option if not recognized
17099 # So say no if there are warnings other than the usual output.
17100 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17101 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17102 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17103 lt_prog_compiler_pic_works_GCJ=yes
17104 fi
17105 fi
17106 $rm conftest*
17107
17108fi
64ff59ba 17109{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17110echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
d9898ee8 17111
17112if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17113 case $lt_prog_compiler_pic_GCJ in
17114 "" | " "*) ;;
17115 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17116 esac
17117else
17118 lt_prog_compiler_pic_GCJ=
17119 lt_prog_compiler_can_build_shared_GCJ=no
17120fi
17121
17122fi
17123case $host_os in
17124 # For platforms which do not support PIC, -DPIC is meaningless:
17125 *djgpp*)
17126 lt_prog_compiler_pic_GCJ=
17127 ;;
17128 *)
17129 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17130 ;;
17131esac
17132
17133#
17134# Check to make sure the static flag actually works.
17135#
17136wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
64ff59ba 17137{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17138echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 17139if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17140 echo $ECHO_N "(cached) $ECHO_C" >&6
17141else
17142 lt_prog_compiler_static_works_GCJ=no
17143 save_LDFLAGS="$LDFLAGS"
17144 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
0fde1ce3 17145 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 17146 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17147 # The linker can only warn and ignore the option if not recognized
17148 # So say no if there are warnings
17149 if test -s conftest.err; then
17150 # Append any errors to the config.log.
17151 cat conftest.err 1>&5
17152 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17153 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17154 if diff conftest.exp conftest.er2 >/dev/null; then
17155 lt_prog_compiler_static_works_GCJ=yes
17156 fi
17157 else
17158 lt_prog_compiler_static_works_GCJ=yes
17159 fi
17160 fi
17161 $rm conftest*
17162 LDFLAGS="$save_LDFLAGS"
17163
17164fi
64ff59ba 17165{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17166echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
d9898ee8 17167
17168if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17169 :
17170else
17171 lt_prog_compiler_static_GCJ=
17172fi
17173
17174
64ff59ba 17175{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17176echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 17177if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17178 echo $ECHO_N "(cached) $ECHO_C" >&6
17179else
17180 lt_cv_prog_compiler_c_o_GCJ=no
17181 $rm -r conftest 2>/dev/null
17182 mkdir conftest
17183 cd conftest
17184 mkdir out
0fde1ce3 17185 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 17186
17187 lt_compiler_flag="-o out/conftest2.$ac_objext"
17188 # Insert the option either (1) after the last *FLAGS variable, or
17189 # (2) before a word containing "conftest.", or (3) at the end.
17190 # Note that $ac_compile itself does not contain backslashes and begins
17191 # with a dollar sign (not a hyphen), so the echo should work correctly.
17192 lt_compile=`echo "$ac_compile" | $SED \
17193 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17194 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17195 -e 's:$: $lt_compiler_flag:'`
0fde1ce3 17196 (eval echo "\"\$as_me:17196: $lt_compile\"" >&5)
d9898ee8 17197 (eval "$lt_compile" 2>out/conftest.err)
17198 ac_status=$?
17199 cat out/conftest.err >&5
0fde1ce3 17200 echo "$as_me:17200: \$? = $ac_status" >&5
d9898ee8 17201 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17202 then
17203 # The compiler can only warn and ignore the option if not recognized
17204 # So say no if there are warnings
17205 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17206 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17207 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17208 lt_cv_prog_compiler_c_o_GCJ=yes
17209 fi
17210 fi
17211 chmod u+w . 2>&5
17212 $rm conftest*
17213 # SGI C++ compiler will create directory out/ii_files/ for
17214 # template instantiation
17215 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17216 $rm out/* && rmdir out
17217 cd ..
17218 rmdir conftest
17219 $rm conftest*
17220
17221fi
64ff59ba 17222{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17223echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
d9898ee8 17224
17225
17226hard_links="nottested"
17227if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17228 # do not overwrite the value of need_locks provided by the user
64ff59ba 17229 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17230echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 17231 hard_links=yes
17232 $rm conftest*
17233 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17234 touch conftest.a
17235 ln conftest.a conftest.b 2>&5 || hard_links=no
17236 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 17237 { echo "$as_me:$LINENO: result: $hard_links" >&5
17238echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 17239 if test "$hard_links" = no; then
17240 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17241echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17242 need_locks=warn
17243 fi
17244else
17245 need_locks=no
17246fi
17247
64ff59ba 17248{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17249echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 17250
17251 runpath_var=
17252 allow_undefined_flag_GCJ=
17253 enable_shared_with_static_runtimes_GCJ=no
17254 archive_cmds_GCJ=
17255 archive_expsym_cmds_GCJ=
17256 old_archive_From_new_cmds_GCJ=
17257 old_archive_from_expsyms_cmds_GCJ=
17258 export_dynamic_flag_spec_GCJ=
17259 whole_archive_flag_spec_GCJ=
17260 thread_safe_flag_spec_GCJ=
17261 hardcode_libdir_flag_spec_GCJ=
17262 hardcode_libdir_flag_spec_ld_GCJ=
17263 hardcode_libdir_separator_GCJ=
17264 hardcode_direct_GCJ=no
17265 hardcode_minus_L_GCJ=no
17266 hardcode_shlibpath_var_GCJ=unsupported
17267 link_all_deplibs_GCJ=unknown
17268 hardcode_automatic_GCJ=no
17269 module_cmds_GCJ=
17270 module_expsym_cmds_GCJ=
17271 always_export_symbols_GCJ=no
17272 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17273 # include_expsyms should be a list of space-separated symbols to be *always*
17274 # included in the symbol list
17275 include_expsyms_GCJ=
17276 # exclude_expsyms can be an extended regexp of symbols to exclude
17277 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17278 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17279 # as well as any symbol that contains `d'.
17280 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17281 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17282 # platforms (ab)use it in PIC code, but their linkers get confused if
17283 # the symbol is explicitly referenced. Since portable code cannot
17284 # rely on this symbol name, it's probably fine to never include it in
17285 # preloaded symbol tables.
17286 extract_expsyms_cmds=
17287 # Just being paranoid about ensuring that cc_basename is set.
17288 for cc_temp in $compiler""; do
17289 case $cc_temp in
17290 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17291 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17292 \-*) ;;
17293 *) break;;
17294 esac
17295done
17296cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17297
17298 case $host_os in
17299 cygwin* | mingw* | pw32*)
17300 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17301 # When not using gcc, we currently assume that we are using
17302 # Microsoft Visual C++.
17303 if test "$GCC" != yes; then
17304 with_gnu_ld=no
17305 fi
17306 ;;
17307 interix*)
17308 # we just hope/assume this is gcc and not c89 (= MSVC++)
17309 with_gnu_ld=yes
17310 ;;
17311 openbsd*)
17312 with_gnu_ld=no
17313 ;;
17314 esac
17315
17316 ld_shlibs_GCJ=yes
17317 if test "$with_gnu_ld" = yes; then
17318 # If archive_cmds runs LD, not CC, wlarc should be empty
17319 wlarc='${wl}'
17320
17321 # Set some defaults for GNU ld with shared library support. These
17322 # are reset later if shared libraries are not supported. Putting them
17323 # here allows them to be overridden if necessary.
17324 runpath_var=LD_RUN_PATH
17325 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17326 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17327 # ancient GNU ld didn't support --whole-archive et. al.
17328 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17329 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17330 else
17331 whole_archive_flag_spec_GCJ=
17332 fi
17333 supports_anon_versioning=no
17334 case `$LD -v 2>/dev/null` in
17335 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17336 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17337 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17338 *\ 2.11.*) ;; # other 2.11 versions
17339 *) supports_anon_versioning=yes ;;
17340 esac
17341
17342 # See if GNU ld supports shared libraries.
17343 case $host_os in
17344 aix3* | aix4* | aix5*)
17345 # On AIX/PPC, the GNU linker is very broken
17346 if test "$host_cpu" != ia64; then
17347 ld_shlibs_GCJ=no
17348 cat <<EOF 1>&2
17349
17350*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17351*** to be unable to reliably create shared libraries on AIX.
17352*** Therefore, libtool is disabling shared libraries support. If you
17353*** really care for shared libraries, you may want to modify your PATH
17354*** so that a non-GNU linker is found, and then restart.
17355
17356EOF
17357 fi
17358 ;;
17359
17360 amigaos*)
17361 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)'
17362 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17363 hardcode_minus_L_GCJ=yes
17364
17365 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17366 # that the semantics of dynamic libraries on AmigaOS, at least up
17367 # to version 4, is to share data among multiple programs linked
17368 # with the same dynamic library. Since this doesn't match the
17369 # behavior of shared libraries on other platforms, we can't use
17370 # them.
17371 ld_shlibs_GCJ=no
17372 ;;
17373
17374 beos*)
17375 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17376 allow_undefined_flag_GCJ=unsupported
17377 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17378 # support --undefined. This deserves some investigation. FIXME
17379 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17380 else
17381 ld_shlibs_GCJ=no
17382 fi
17383 ;;
17384
17385 cygwin* | mingw* | pw32*)
17386 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17387 # as there is no search path for DLLs.
17388 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17389 allow_undefined_flag_GCJ=unsupported
17390 always_export_symbols_GCJ=no
17391 enable_shared_with_static_runtimes_GCJ=yes
0fde1ce3 17392 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d9898ee8 17393
17394 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17395 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17396 # If the export-symbols file already is a .def file (1st line
17397 # is EXPORTS), use it as is; otherwise, prepend...
17398 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17399 cp $export_symbols $output_objdir/$soname.def;
17400 else
17401 echo EXPORTS > $output_objdir/$soname.def;
17402 cat $export_symbols >> $output_objdir/$soname.def;
17403 fi~
17404 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17405 else
17406 ld_shlibs_GCJ=no
17407 fi
17408 ;;
17409
0fde1ce3 17410 interix[3-9]*)
d9898ee8 17411 hardcode_direct_GCJ=no
17412 hardcode_shlibpath_var_GCJ=no
17413 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17414 export_dynamic_flag_spec_GCJ='${wl}-E'
17415 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17416 # Instead, shared libraries are loaded at an image base (0x10000000 by
17417 # default) and relocated if they conflict, which is a slow very memory
17418 # consuming and fragmenting process. To avoid this, we pick a random,
17419 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17420 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17421 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'
17422 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'
17423 ;;
17424
0fde1ce3 17425 gnu* | linux* | k*bsd*-gnu)
d9898ee8 17426 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17427 tmp_addflag=
17428 case $cc_basename,$host_cpu in
17429 pgcc*) # Portland Group C compiler
17430 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'
17431 tmp_addflag=' $pic_flag'
17432 ;;
17433 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17434 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'
17435 tmp_addflag=' $pic_flag -Mnomain' ;;
17436 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17437 tmp_addflag=' -i_dynamic' ;;
17438 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17439 tmp_addflag=' -i_dynamic -nofor_main' ;;
17440 ifc* | ifort*) # Intel Fortran compiler
17441 tmp_addflag=' -nofor_main' ;;
17442 esac
0fde1ce3 17443 case `$CC -V 2>&1 | sed 5q` in
17444 *Sun\ C*) # Sun C 5.9
17445 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'
17446 tmp_sharedflag='-G' ;;
17447 *Sun\ F*) # Sun Fortran 8.3
17448 tmp_sharedflag='-G' ;;
17449 *)
17450 tmp_sharedflag='-shared' ;;
17451 esac
17452 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 17453
17454 if test $supports_anon_versioning = yes; then
17455 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17456 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17457 $echo "local: *; };" >> $output_objdir/$libname.ver~
0fde1ce3 17458 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
d9898ee8 17459 fi
17460 else
17461 ld_shlibs_GCJ=no
17462 fi
17463 ;;
17464
17465 netbsd*)
17466 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17467 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17468 wlarc=
17469 else
17470 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17471 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17472 fi
17473 ;;
17474
17475 solaris*)
17476 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17477 ld_shlibs_GCJ=no
17478 cat <<EOF 1>&2
17479
17480*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17481*** create shared libraries on Solaris systems. Therefore, libtool
17482*** is disabling shared libraries support. We urge you to upgrade GNU
17483*** binutils to release 2.9.1 or newer. Another option is to modify
17484*** your PATH or compiler configuration so that the native linker is
17485*** used, and then restart.
17486
17487EOF
17488 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17489 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17490 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17491 else
17492 ld_shlibs_GCJ=no
17493 fi
17494 ;;
17495
17496 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17497 case `$LD -v 2>&1` in
17498 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17499 ld_shlibs_GCJ=no
17500 cat <<_LT_EOF 1>&2
17501
17502*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17503*** reliably create shared libraries on SCO systems. Therefore, libtool
17504*** is disabling shared libraries support. We urge you to upgrade GNU
17505*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17506*** your PATH or compiler configuration so that the native linker is
17507*** used, and then restart.
17508
17509_LT_EOF
17510 ;;
17511 *)
17512 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17513 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17514 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17515 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17516 else
17517 ld_shlibs_GCJ=no
17518 fi
17519 ;;
17520 esac
17521 ;;
17522
17523 sunos4*)
17524 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17525 wlarc=
17526 hardcode_direct_GCJ=yes
17527 hardcode_shlibpath_var_GCJ=no
17528 ;;
17529
17530 *)
17531 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17532 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17533 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17534 else
17535 ld_shlibs_GCJ=no
17536 fi
17537 ;;
17538 esac
17539
17540 if test "$ld_shlibs_GCJ" = no; then
17541 runpath_var=
17542 hardcode_libdir_flag_spec_GCJ=
17543 export_dynamic_flag_spec_GCJ=
17544 whole_archive_flag_spec_GCJ=
17545 fi
17546 else
17547 # PORTME fill in a description of your system's linker (not GNU ld)
17548 case $host_os in
17549 aix3*)
17550 allow_undefined_flag_GCJ=unsupported
17551 always_export_symbols_GCJ=yes
17552 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'
17553 # Note: this linker hardcodes the directories in LIBPATH if there
17554 # are no directories specified by -L.
17555 hardcode_minus_L_GCJ=yes
17556 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17557 # Neither direct hardcoding nor static linking is supported with a
17558 # broken collect2.
17559 hardcode_direct_GCJ=unsupported
17560 fi
17561 ;;
17562
17563 aix4* | aix5*)
17564 if test "$host_cpu" = ia64; then
17565 # On IA64, the linker does run time linking by default, so we don't
17566 # have to do anything special.
17567 aix_use_runtimelinking=no
17568 exp_sym_flag='-Bexport'
17569 no_entry_flag=""
17570 else
17571 # If we're using GNU nm, then we don't want the "-C" option.
17572 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17573 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17574 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'
17575 else
17576 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'
17577 fi
17578 aix_use_runtimelinking=no
17579
17580 # Test if we are trying to use run time linking or normal
17581 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17582 # need to do runtime linking.
17583 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17584 for ld_flag in $LDFLAGS; do
17585 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17586 aix_use_runtimelinking=yes
17587 break
17588 fi
17589 done
17590 ;;
17591 esac
17592
17593 exp_sym_flag='-bexport'
17594 no_entry_flag='-bnoentry'
17595 fi
17596
17597 # When large executables or shared objects are built, AIX ld can
17598 # have problems creating the table of contents. If linking a library
17599 # or program results in "error TOC overflow" add -mminimal-toc to
17600 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17601 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17602
17603 archive_cmds_GCJ=''
17604 hardcode_direct_GCJ=yes
17605 hardcode_libdir_separator_GCJ=':'
17606 link_all_deplibs_GCJ=yes
17607
17608 if test "$GCC" = yes; then
17609 case $host_os in aix4.[012]|aix4.[012].*)
17610 # We only want to do this on AIX 4.2 and lower, the check
17611 # below for broken collect2 doesn't work under 4.3+
17612 collect2name=`${CC} -print-prog-name=collect2`
17613 if test -f "$collect2name" && \
17614 strings "$collect2name" | grep resolve_lib_name >/dev/null
17615 then
17616 # We have reworked collect2
0fde1ce3 17617 :
d9898ee8 17618 else
17619 # We have old collect2
17620 hardcode_direct_GCJ=unsupported
17621 # It fails to find uninstalled libraries when the uninstalled
17622 # path is not listed in the libpath. Setting hardcode_minus_L
17623 # to unsupported forces relinking
17624 hardcode_minus_L_GCJ=yes
17625 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17626 hardcode_libdir_separator_GCJ=
17627 fi
17628 ;;
17629 esac
17630 shared_flag='-shared'
17631 if test "$aix_use_runtimelinking" = yes; then
17632 shared_flag="$shared_flag "'${wl}-G'
17633 fi
17634 else
17635 # not using gcc
17636 if test "$host_cpu" = ia64; then
17637 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17638 # chokes on -Wl,-G. The following line is correct:
17639 shared_flag='-G'
17640 else
17641 if test "$aix_use_runtimelinking" = yes; then
17642 shared_flag='${wl}-G'
17643 else
17644 shared_flag='${wl}-bM:SRE'
17645 fi
17646 fi
17647 fi
17648
17649 # It seems that -bexpall does not export symbols beginning with
17650 # underscore (_), so it is better to generate a list of symbols to export.
17651 always_export_symbols_GCJ=yes
17652 if test "$aix_use_runtimelinking" = yes; then
17653 # Warning - without using the other runtime loading flags (-brtl),
17654 # -berok will link without error, but may produce a broken library.
17655 allow_undefined_flag_GCJ='-berok'
17656 # Determine the default libpath from the value encoded in an empty executable.
17657 cat >conftest.$ac_ext <<_ACEOF
17658/* confdefs.h. */
17659_ACEOF
17660cat confdefs.h >>conftest.$ac_ext
17661cat >>conftest.$ac_ext <<_ACEOF
17662/* end confdefs.h. */
17663
17664int
17665main ()
17666{
17667
17668 ;
17669 return 0;
17670}
17671_ACEOF
17672rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 17673if { (ac_try="$ac_link"
17674case "(($ac_try" in
17675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17676 *) ac_try_echo=$ac_try;;
17677esac
17678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17679 (eval "$ac_link") 2>conftest.er1
d9898ee8 17680 ac_status=$?
17681 grep -v '^ *+' conftest.er1 >conftest.err
17682 rm -f conftest.er1
17683 cat conftest.err >&5
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 17685 (exit $ac_status); } && {
17686 test -z "$ac_c_werror_flag" ||
17687 test ! -s conftest.err
17688 } && test -s conftest$ac_exeext &&
17689 $as_test_x conftest$ac_exeext; then
d9898ee8 17690
0fde1ce3 17691lt_aix_libpath_sed='
17692 /Import File Strings/,/^$/ {
17693 /^0/ {
17694 s/^0 *\(.*\)$/\1/
17695 p
17696 }
17697 }'
17698aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 17699# Check for a 64-bit object if we didn't find anything.
0fde1ce3 17700if test -z "$aix_libpath"; then
17701 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17702fi
d9898ee8 17703else
17704 echo "$as_me: failed program was:" >&5
17705sed 's/^/| /' conftest.$ac_ext >&5
17706
64ff59ba 17707
d9898ee8 17708fi
64ff59ba 17709
17710rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17711 conftest$ac_exeext conftest.$ac_ext
17712if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17713
17714 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17715 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"
17716 else
17717 if test "$host_cpu" = ia64; then
17718 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17719 allow_undefined_flag_GCJ="-z nodefs"
17720 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"
17721 else
17722 # Determine the default libpath from the value encoded in an empty executable.
17723 cat >conftest.$ac_ext <<_ACEOF
17724/* confdefs.h. */
17725_ACEOF
17726cat confdefs.h >>conftest.$ac_ext
17727cat >>conftest.$ac_ext <<_ACEOF
17728/* end confdefs.h. */
17729
17730int
17731main ()
17732{
17733
17734 ;
17735 return 0;
17736}
17737_ACEOF
17738rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 17739if { (ac_try="$ac_link"
17740case "(($ac_try" in
17741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17742 *) ac_try_echo=$ac_try;;
17743esac
17744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17745 (eval "$ac_link") 2>conftest.er1
d9898ee8 17746 ac_status=$?
17747 grep -v '^ *+' conftest.er1 >conftest.err
17748 rm -f conftest.er1
17749 cat conftest.err >&5
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 17751 (exit $ac_status); } && {
17752 test -z "$ac_c_werror_flag" ||
17753 test ! -s conftest.err
17754 } && test -s conftest$ac_exeext &&
17755 $as_test_x conftest$ac_exeext; then
d9898ee8 17756
0fde1ce3 17757lt_aix_libpath_sed='
17758 /Import File Strings/,/^$/ {
17759 /^0/ {
17760 s/^0 *\(.*\)$/\1/
17761 p
17762 }
17763 }'
17764aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 17765# Check for a 64-bit object if we didn't find anything.
0fde1ce3 17766if test -z "$aix_libpath"; then
17767 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17768fi
d9898ee8 17769else
17770 echo "$as_me: failed program was:" >&5
17771sed 's/^/| /' conftest.$ac_ext >&5
17772
64ff59ba 17773
d9898ee8 17774fi
64ff59ba 17775
17776rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17777 conftest$ac_exeext conftest.$ac_ext
17778if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17779
17780 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17781 # Warning - without using the other run time loading flags,
17782 # -berok will link without error, but may produce a broken library.
17783 no_undefined_flag_GCJ=' ${wl}-bernotok'
17784 allow_undefined_flag_GCJ=' ${wl}-berok'
17785 # Exported symbols can be pulled into shared objects from archives
17786 whole_archive_flag_spec_GCJ='$convenience'
17787 archive_cmds_need_lc_GCJ=yes
17788 # This is similar to how AIX traditionally builds its shared libraries.
17789 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'
17790 fi
17791 fi
17792 ;;
17793
17794 amigaos*)
17795 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)'
17796 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17797 hardcode_minus_L_GCJ=yes
17798 # see comment about different semantics on the GNU ld section
17799 ld_shlibs_GCJ=no
17800 ;;
17801
17802 bsdi[45]*)
17803 export_dynamic_flag_spec_GCJ=-rdynamic
17804 ;;
17805
17806 cygwin* | mingw* | pw32*)
17807 # When not using gcc, we currently assume that we are using
17808 # Microsoft Visual C++.
17809 # hardcode_libdir_flag_spec is actually meaningless, as there is
17810 # no search path for DLLs.
17811 hardcode_libdir_flag_spec_GCJ=' '
17812 allow_undefined_flag_GCJ=unsupported
17813 # Tell ltmain to make .lib files, not .a files.
17814 libext=lib
17815 # Tell ltmain to make .dll files, not .so files.
17816 shrext_cmds=".dll"
17817 # FIXME: Setting linknames here is a bad hack.
17818 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17819 # The linker will automatically build a .lib file if we build a DLL.
17820 old_archive_From_new_cmds_GCJ='true'
17821 # FIXME: Should let the user specify the lib program.
0fde1ce3 17822 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
d9898ee8 17823 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17824 enable_shared_with_static_runtimes_GCJ=yes
17825 ;;
17826
17827 darwin* | rhapsody*)
17828 case $host_os in
17829 rhapsody* | darwin1.[012])
17830 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17831 ;;
17832 *) # Darwin 1.3 on
17833 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17834 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17835 else
17836 case ${MACOSX_DEPLOYMENT_TARGET} in
17837 10.[012])
17838 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17839 ;;
17840 10.*)
17841 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17842 ;;
17843 esac
17844 fi
17845 ;;
17846 esac
17847 archive_cmds_need_lc_GCJ=no
17848 hardcode_direct_GCJ=no
17849 hardcode_automatic_GCJ=yes
17850 hardcode_shlibpath_var_GCJ=unsupported
17851 whole_archive_flag_spec_GCJ=''
17852 link_all_deplibs_GCJ=yes
17853 if test "$GCC" = yes ; then
17854 output_verbose_link_cmd='echo'
17855 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17856 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17857 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17858 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17859 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}'
17860 else
17861 case $cc_basename in
17862 xlc*)
17863 output_verbose_link_cmd='echo'
0fde1ce3 17864 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
d9898ee8 17865 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17866 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
0fde1ce3 17867 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}'
d9898ee8 17868 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}'
17869 ;;
17870 *)
17871 ld_shlibs_GCJ=no
17872 ;;
17873 esac
17874 fi
17875 ;;
17876
17877 dgux*)
17878 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17879 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17880 hardcode_shlibpath_var_GCJ=no
17881 ;;
17882
17883 freebsd1*)
17884 ld_shlibs_GCJ=no
17885 ;;
17886
17887 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17888 # support. Future versions do this automatically, but an explicit c++rt0.o
17889 # does not break anything, and helps significantly (at the cost of a little
17890 # extra space).
17891 freebsd2.2*)
17892 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17893 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17894 hardcode_direct_GCJ=yes
17895 hardcode_shlibpath_var_GCJ=no
17896 ;;
17897
17898 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17899 freebsd2*)
17900 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17901 hardcode_direct_GCJ=yes
17902 hardcode_minus_L_GCJ=yes
17903 hardcode_shlibpath_var_GCJ=no
17904 ;;
17905
17906 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
0fde1ce3 17907 freebsd* | dragonfly*)
d9898ee8 17908 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17909 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17910 hardcode_direct_GCJ=yes
17911 hardcode_shlibpath_var_GCJ=no
17912 ;;
17913
17914 hpux9*)
17915 if test "$GCC" = yes; then
17916 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'
17917 else
17918 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'
17919 fi
17920 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17921 hardcode_libdir_separator_GCJ=:
17922 hardcode_direct_GCJ=yes
17923
17924 # hardcode_minus_L: Not really in the search PATH,
17925 # but as the default location of the library.
17926 hardcode_minus_L_GCJ=yes
17927 export_dynamic_flag_spec_GCJ='${wl}-E'
17928 ;;
17929
17930 hpux10*)
17931 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17932 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17933 else
17934 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17935 fi
17936 if test "$with_gnu_ld" = no; then
17937 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17938 hardcode_libdir_separator_GCJ=:
17939
17940 hardcode_direct_GCJ=yes
17941 export_dynamic_flag_spec_GCJ='${wl}-E'
17942
17943 # hardcode_minus_L: Not really in the search PATH,
17944 # but as the default location of the library.
17945 hardcode_minus_L_GCJ=yes
17946 fi
17947 ;;
17948
17949 hpux11*)
17950 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17951 case $host_cpu in
17952 hppa*64*)
17953 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17954 ;;
17955 ia64*)
17956 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17957 ;;
17958 *)
17959 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17960 ;;
17961 esac
17962 else
17963 case $host_cpu in
17964 hppa*64*)
17965 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17966 ;;
17967 ia64*)
17968 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17969 ;;
17970 *)
17971 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17972 ;;
17973 esac
17974 fi
17975 if test "$with_gnu_ld" = no; then
17976 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17977 hardcode_libdir_separator_GCJ=:
17978
17979 case $host_cpu in
17980 hppa*64*|ia64*)
17981 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17982 hardcode_direct_GCJ=no
17983 hardcode_shlibpath_var_GCJ=no
17984 ;;
17985 *)
17986 hardcode_direct_GCJ=yes
17987 export_dynamic_flag_spec_GCJ='${wl}-E'
17988
17989 # hardcode_minus_L: Not really in the search PATH,
17990 # but as the default location of the library.
17991 hardcode_minus_L_GCJ=yes
17992 ;;
17993 esac
17994 fi
17995 ;;
17996
17997 irix5* | irix6* | nonstopux*)
17998 if test "$GCC" = yes; then
17999 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'
18000 else
18001 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'
18002 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18003 fi
18004 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18005 hardcode_libdir_separator_GCJ=:
18006 link_all_deplibs_GCJ=yes
18007 ;;
18008
18009 netbsd*)
18010 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18011 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18012 else
18013 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18014 fi
18015 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18016 hardcode_direct_GCJ=yes
18017 hardcode_shlibpath_var_GCJ=no
18018 ;;
18019
18020 newsos6)
18021 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18022 hardcode_direct_GCJ=yes
18023 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18024 hardcode_libdir_separator_GCJ=:
18025 hardcode_shlibpath_var_GCJ=no
18026 ;;
18027
18028 openbsd*)
0fde1ce3 18029 if test -f /usr/libexec/ld.so; then
18030 hardcode_direct_GCJ=yes
18031 hardcode_shlibpath_var_GCJ=no
18032 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18033 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18034 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18035 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18036 export_dynamic_flag_spec_GCJ='${wl}-E'
18037 else
18038 case $host_os in
18039 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18040 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18041 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18042 ;;
18043 *)
18044 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18045 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18046 ;;
18047 esac
18048 fi
d9898ee8 18049 else
0fde1ce3 18050 ld_shlibs_GCJ=no
d9898ee8 18051 fi
18052 ;;
18053
18054 os2*)
18055 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18056 hardcode_minus_L_GCJ=yes
18057 allow_undefined_flag_GCJ=unsupported
18058 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'
18059 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18060 ;;
18061
18062 osf3*)
18063 if test "$GCC" = yes; then
18064 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18065 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'
18066 else
18067 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18068 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'
18069 fi
18070 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18071 hardcode_libdir_separator_GCJ=:
18072 ;;
18073
18074 osf4* | osf5*) # as osf3* with the addition of -msym flag
18075 if test "$GCC" = yes; then
18076 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18077 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'
18078 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18079 else
18080 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18081 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'
18082 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~
18083 $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'
18084
18085 # Both c and cxx compiler support -rpath directly
18086 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18087 fi
18088 hardcode_libdir_separator_GCJ=:
18089 ;;
18090
18091 solaris*)
18092 no_undefined_flag_GCJ=' -z text'
18093 if test "$GCC" = yes; then
18094 wlarc='${wl}'
18095 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18096 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18097 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18098 else
18099 wlarc=''
18100 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18101 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18102 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18103 fi
18104 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18105 hardcode_shlibpath_var_GCJ=no
18106 case $host_os in
18107 solaris2.[0-5] | solaris2.[0-5].*) ;;
18108 *)
0fde1ce3 18109 # The compiler driver will combine and reorder linker options,
18110 # but understands `-z linker_flag'. GCC discards it without `$wl',
18111 # but is careful enough not to reorder.
d9898ee8 18112 # Supported since Solaris 2.6 (maybe 2.5.1?)
0fde1ce3 18113 if test "$GCC" = yes; then
18114 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18115 else
18116 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18117 fi
18118 ;;
d9898ee8 18119 esac
18120 link_all_deplibs_GCJ=yes
18121 ;;
18122
18123 sunos4*)
18124 if test "x$host_vendor" = xsequent; then
18125 # Use $CC to link under sequent, because it throws in some extra .o
18126 # files that make .init and .fini sections work.
18127 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18128 else
18129 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18130 fi
18131 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18132 hardcode_direct_GCJ=yes
18133 hardcode_minus_L_GCJ=yes
18134 hardcode_shlibpath_var_GCJ=no
18135 ;;
18136
18137 sysv4)
18138 case $host_vendor in
18139 sni)
18140 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18141 hardcode_direct_GCJ=yes # is this really true???
18142 ;;
18143 siemens)
18144 ## LD is ld it makes a PLAMLIB
18145 ## CC just makes a GrossModule.
18146 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18147 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18148 hardcode_direct_GCJ=no
18149 ;;
18150 motorola)
18151 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18152 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18153 ;;
18154 esac
18155 runpath_var='LD_RUN_PATH'
18156 hardcode_shlibpath_var_GCJ=no
18157 ;;
18158
18159 sysv4.3*)
18160 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18161 hardcode_shlibpath_var_GCJ=no
18162 export_dynamic_flag_spec_GCJ='-Bexport'
18163 ;;
18164
18165 sysv4*MP*)
18166 if test -d /usr/nec; then
18167 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18168 hardcode_shlibpath_var_GCJ=no
18169 runpath_var=LD_RUN_PATH
18170 hardcode_runpath_var=yes
18171 ld_shlibs_GCJ=yes
18172 fi
18173 ;;
18174
0fde1ce3 18175 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
d9898ee8 18176 no_undefined_flag_GCJ='${wl}-z,text'
18177 archive_cmds_need_lc_GCJ=no
18178 hardcode_shlibpath_var_GCJ=no
18179 runpath_var='LD_RUN_PATH'
18180
18181 if test "$GCC" = yes; then
18182 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18183 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18184 else
18185 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18186 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18187 fi
18188 ;;
18189
18190 sysv5* | sco3.2v5* | sco5v6*)
18191 # Note: We can NOT use -z defs as we might desire, because we do not
18192 # link with -lc, and that would cause any symbols used from libc to
18193 # always be unresolved, which means just about no library would
18194 # ever link correctly. If we're not using GNU ld we use -z text
18195 # though, which does catch some bad symbols but isn't as heavy-handed
18196 # as -z defs.
18197 no_undefined_flag_GCJ='${wl}-z,text'
18198 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18199 archive_cmds_need_lc_GCJ=no
18200 hardcode_shlibpath_var_GCJ=no
18201 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18202 hardcode_libdir_separator_GCJ=':'
18203 link_all_deplibs_GCJ=yes
18204 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18205 runpath_var='LD_RUN_PATH'
18206
18207 if test "$GCC" = yes; then
18208 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18209 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18210 else
18211 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18212 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18213 fi
18214 ;;
18215
18216 uts4*)
18217 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18218 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18219 hardcode_shlibpath_var_GCJ=no
18220 ;;
18221
18222 *)
18223 ld_shlibs_GCJ=no
18224 ;;
18225 esac
18226 fi
18227
64ff59ba 18228{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18229echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
d9898ee8 18230test "$ld_shlibs_GCJ" = no && can_build_shared=no
18231
18232#
18233# Do we need to explicitly link libc?
18234#
18235case "x$archive_cmds_need_lc_GCJ" in
18236x|xyes)
18237 # Assume -lc should be added
18238 archive_cmds_need_lc_GCJ=yes
18239
18240 if test "$enable_shared" = yes && test "$GCC" = yes; then
18241 case $archive_cmds_GCJ in
18242 *'~'*)
18243 # FIXME: we may have to deal with multi-command sequences.
18244 ;;
18245 '$CC '*)
18246 # Test whether the compiler implicitly links with -lc since on some
18247 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18248 # to ld, don't add -lc before -lgcc.
64ff59ba 18249 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18250echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 18251 $rm conftest*
0fde1ce3 18252 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 18253
18254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18255 (eval $ac_compile) 2>&5
18256 ac_status=$?
18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); } 2>conftest.err; then
18259 soname=conftest
18260 lib=conftest
18261 libobjs=conftest.$ac_objext
18262 deplibs=
18263 wl=$lt_prog_compiler_wl_GCJ
18264 pic_flag=$lt_prog_compiler_pic_GCJ
18265 compiler_flags=-v
18266 linker_flags=-v
18267 verstring=
18268 output_objdir=.
18269 libname=conftest
18270 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18271 allow_undefined_flag_GCJ=
18272 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18273 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18274 ac_status=$?
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); }
18277 then
18278 archive_cmds_need_lc_GCJ=no
18279 else
18280 archive_cmds_need_lc_GCJ=yes
18281 fi
18282 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18283 else
18284 cat conftest.err 1>&5
18285 fi
18286 $rm conftest*
64ff59ba 18287 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18288echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
d9898ee8 18289 ;;
18290 esac
18291 fi
18292 ;;
18293esac
18294
64ff59ba 18295{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18296echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 18297library_names_spec=
18298libname_spec='lib$name'
18299soname_spec=
18300shrext_cmds=".so"
18301postinstall_cmds=
18302postuninstall_cmds=
18303finish_cmds=
18304finish_eval=
18305shlibpath_var=
18306shlibpath_overrides_runpath=unknown
18307version_type=none
18308dynamic_linker="$host_os ld.so"
18309sys_lib_dlsearch_path_spec="/lib /usr/lib"
0fde1ce3 18310
d9898ee8 18311need_lib_prefix=unknown
18312hardcode_into_libs=no
18313
18314# when you set need_version to no, make sure it does not cause -set_version
18315# flags to be left without arguments
18316need_version=unknown
18317
18318case $host_os in
18319aix3*)
18320 version_type=linux
18321 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18322 shlibpath_var=LIBPATH
18323
18324 # AIX 3 has no versioning support, so we append a major version to the name.
18325 soname_spec='${libname}${release}${shared_ext}$major'
18326 ;;
18327
18328aix4* | aix5*)
18329 version_type=linux
18330 need_lib_prefix=no
18331 need_version=no
18332 hardcode_into_libs=yes
18333 if test "$host_cpu" = ia64; then
18334 # AIX 5 supports IA64
18335 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18336 shlibpath_var=LD_LIBRARY_PATH
18337 else
18338 # With GCC up to 2.95.x, collect2 would create an import file
18339 # for dependence libraries. The import file would start with
18340 # the line `#! .'. This would cause the generated library to
18341 # depend on `.', always an invalid library. This was fixed in
18342 # development snapshots of GCC prior to 3.0.
18343 case $host_os in
18344 aix4 | aix4.[01] | aix4.[01].*)
18345 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18346 echo ' yes '
18347 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18348 :
18349 else
18350 can_build_shared=no
18351 fi
18352 ;;
18353 esac
18354 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18355 # soname into executable. Probably we can add versioning support to
18356 # collect2, so additional links can be useful in future.
18357 if test "$aix_use_runtimelinking" = yes; then
18358 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18359 # instead of lib<name>.a to let people know that these are not
18360 # typical AIX shared libraries.
18361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18362 else
18363 # We preserve .a as extension for shared libraries through AIX4.2
18364 # and later when we are not doing run time linking.
18365 library_names_spec='${libname}${release}.a $libname.a'
18366 soname_spec='${libname}${release}${shared_ext}$major'
18367 fi
18368 shlibpath_var=LIBPATH
18369 fi
18370 ;;
18371
18372amigaos*)
18373 library_names_spec='$libname.ixlibrary $libname.a'
18374 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18375 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'
18376 ;;
18377
18378beos*)
18379 library_names_spec='${libname}${shared_ext}'
18380 dynamic_linker="$host_os ld.so"
18381 shlibpath_var=LIBRARY_PATH
18382 ;;
18383
18384bsdi[45]*)
18385 version_type=linux
18386 need_version=no
18387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18388 soname_spec='${libname}${release}${shared_ext}$major'
18389 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18390 shlibpath_var=LD_LIBRARY_PATH
18391 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18392 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18393 # the default ld.so.conf also contains /usr/contrib/lib and
18394 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18395 # libtool to hard-code these into programs
18396 ;;
18397
18398cygwin* | mingw* | pw32*)
18399 version_type=windows
18400 shrext_cmds=".dll"
18401 need_version=no
18402 need_lib_prefix=no
18403
18404 case $GCC,$host_os in
18405 yes,cygwin* | yes,mingw* | yes,pw32*)
18406 library_names_spec='$libname.dll.a'
18407 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18408 postinstall_cmds='base_file=`basename \${file}`~
18409 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18410 dldir=$destdir/`dirname \$dlpath`~
18411 test -d \$dldir || mkdir -p \$dldir~
18412 $install_prog $dir/$dlname \$dldir/$dlname~
18413 chmod a+x \$dldir/$dlname'
18414 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18415 dlpath=$dir/\$dldll~
18416 $rm \$dlpath'
18417 shlibpath_overrides_runpath=yes
18418
18419 case $host_os in
18420 cygwin*)
18421 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18422 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18423 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18424 ;;
18425 mingw*)
18426 # MinGW DLLs use traditional 'lib' prefix
18427 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18428 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18429 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18430 # It is most probably a Windows format PATH printed by
18431 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18432 # path with ; separators, and with drive letters. We can handle the
18433 # drive letters (cygwin fileutils understands them), so leave them,
18434 # especially as we might pass files found there to a mingw objdump,
18435 # which wouldn't understand a cygwinified path. Ahh.
18436 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18437 else
18438 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18439 fi
18440 ;;
18441 pw32*)
18442 # pw32 DLLs use 'pw' prefix rather than 'lib'
18443 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18444 ;;
18445 esac
18446 ;;
18447
18448 *)
18449 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18450 ;;
18451 esac
18452 dynamic_linker='Win32 ld.exe'
18453 # FIXME: first we should search . and the directory the executable is in
18454 shlibpath_var=PATH
18455 ;;
18456
18457darwin* | rhapsody*)
18458 dynamic_linker="$host_os dyld"
18459 version_type=darwin
18460 need_lib_prefix=no
18461 need_version=no
18462 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18463 soname_spec='${libname}${release}${major}$shared_ext'
18464 shlibpath_overrides_runpath=yes
18465 shlibpath_var=DYLD_LIBRARY_PATH
18466 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
0fde1ce3 18467
d9898ee8 18468 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18469 ;;
18470
18471dgux*)
18472 version_type=linux
18473 need_lib_prefix=no
18474 need_version=no
18475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18476 soname_spec='${libname}${release}${shared_ext}$major'
18477 shlibpath_var=LD_LIBRARY_PATH
18478 ;;
18479
18480freebsd1*)
18481 dynamic_linker=no
18482 ;;
18483
d9898ee8 18484freebsd* | dragonfly*)
18485 # DragonFly does not have aout. When/if they implement a new
18486 # versioning mechanism, adjust this.
18487 if test -x /usr/bin/objformat; then
18488 objformat=`/usr/bin/objformat`
18489 else
18490 case $host_os in
18491 freebsd[123]*) objformat=aout ;;
18492 *) objformat=elf ;;
18493 esac
18494 fi
18495 version_type=freebsd-$objformat
18496 case $version_type in
18497 freebsd-elf*)
18498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18499 need_version=no
18500 need_lib_prefix=no
18501 ;;
18502 freebsd-*)
18503 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18504 need_version=yes
18505 ;;
18506 esac
18507 shlibpath_var=LD_LIBRARY_PATH
18508 case $host_os in
18509 freebsd2*)
18510 shlibpath_overrides_runpath=yes
18511 ;;
18512 freebsd3.[01]* | freebsdelf3.[01]*)
18513 shlibpath_overrides_runpath=yes
18514 hardcode_into_libs=yes
18515 ;;
18516 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18517 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18518 shlibpath_overrides_runpath=no
18519 hardcode_into_libs=yes
18520 ;;
0fde1ce3 18521 *) # from 4.6 on, and DragonFly
d9898ee8 18522 shlibpath_overrides_runpath=yes
18523 hardcode_into_libs=yes
18524 ;;
18525 esac
18526 ;;
18527
18528gnu*)
18529 version_type=linux
18530 need_lib_prefix=no
18531 need_version=no
18532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18533 soname_spec='${libname}${release}${shared_ext}$major'
18534 shlibpath_var=LD_LIBRARY_PATH
18535 hardcode_into_libs=yes
18536 ;;
18537
18538hpux9* | hpux10* | hpux11*)
18539 # Give a soname corresponding to the major version so that dld.sl refuses to
18540 # link against other versions.
18541 version_type=sunos
18542 need_lib_prefix=no
18543 need_version=no
18544 case $host_cpu in
18545 ia64*)
18546 shrext_cmds='.so'
18547 hardcode_into_libs=yes
18548 dynamic_linker="$host_os dld.so"
18549 shlibpath_var=LD_LIBRARY_PATH
18550 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18552 soname_spec='${libname}${release}${shared_ext}$major'
18553 if test "X$HPUX_IA64_MODE" = X32; then
18554 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18555 else
18556 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18557 fi
18558 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18559 ;;
18560 hppa*64*)
18561 shrext_cmds='.sl'
18562 hardcode_into_libs=yes
18563 dynamic_linker="$host_os dld.sl"
18564 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18565 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18567 soname_spec='${libname}${release}${shared_ext}$major'
18568 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18569 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18570 ;;
18571 *)
18572 shrext_cmds='.sl'
18573 dynamic_linker="$host_os dld.sl"
18574 shlibpath_var=SHLIB_PATH
18575 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18577 soname_spec='${libname}${release}${shared_ext}$major'
18578 ;;
18579 esac
18580 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18581 postinstall_cmds='chmod 555 $lib'
18582 ;;
18583
0fde1ce3 18584interix[3-9]*)
d9898ee8 18585 version_type=linux
18586 need_lib_prefix=no
18587 need_version=no
18588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18589 soname_spec='${libname}${release}${shared_ext}$major'
18590 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18591 shlibpath_var=LD_LIBRARY_PATH
18592 shlibpath_overrides_runpath=no
18593 hardcode_into_libs=yes
18594 ;;
18595
18596irix5* | irix6* | nonstopux*)
18597 case $host_os in
18598 nonstopux*) version_type=nonstopux ;;
18599 *)
18600 if test "$lt_cv_prog_gnu_ld" = yes; then
18601 version_type=linux
18602 else
18603 version_type=irix
18604 fi ;;
18605 esac
18606 need_lib_prefix=no
18607 need_version=no
18608 soname_spec='${libname}${release}${shared_ext}$major'
18609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18610 case $host_os in
18611 irix5* | nonstopux*)
18612 libsuff= shlibsuff=
18613 ;;
18614 *)
18615 case $LD in # libtool.m4 will add one of these switches to LD
18616 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18617 libsuff= shlibsuff= libmagic=32-bit;;
18618 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18619 libsuff=32 shlibsuff=N32 libmagic=N32;;
18620 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18621 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18622 *) libsuff= shlibsuff= libmagic=never-match;;
18623 esac
18624 ;;
18625 esac
18626 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18627 shlibpath_overrides_runpath=no
18628 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18629 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18630 hardcode_into_libs=yes
18631 ;;
18632
18633# No shared lib support for Linux oldld, aout, or coff.
18634linux*oldld* | linux*aout* | linux*coff*)
18635 dynamic_linker=no
18636 ;;
18637
18638# This must be Linux ELF.
0fde1ce3 18639linux* | k*bsd*-gnu)
d9898ee8 18640 version_type=linux
18641 need_lib_prefix=no
18642 need_version=no
18643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18644 soname_spec='${libname}${release}${shared_ext}$major'
18645 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18646 shlibpath_var=LD_LIBRARY_PATH
18647 shlibpath_overrides_runpath=no
18648 # This implies no fast_install, which is unacceptable.
18649 # Some rework will be needed to allow for fast_install
18650 # before this can be enabled.
18651 hardcode_into_libs=yes
0fde1ce3 18652 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18653 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
d9898ee8 18654
18655 # Append ld.so.conf contents to the search path
18656 if test -f /etc/ld.so.conf; then
0fde1ce3 18657 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' ' '`
18658 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 18659 fi
18660
18661 # We used to test for /lib/ld.so.1 and disable shared libraries on
18662 # powerpc, because MkLinux only supported shared libraries with the
18663 # GNU dynamic linker. Since this was broken with cross compilers,
18664 # most powerpc-linux boxes support dynamic linking these days and
18665 # people can always --disable-shared, the test was removed, and we
18666 # assume the GNU/Linux dynamic linker is in use.
18667 dynamic_linker='GNU/Linux ld.so'
18668 ;;
18669
d9898ee8 18670netbsd*)
18671 version_type=sunos
18672 need_lib_prefix=no
18673 need_version=no
18674 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18676 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18677 dynamic_linker='NetBSD (a.out) ld.so'
18678 else
18679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18680 soname_spec='${libname}${release}${shared_ext}$major'
18681 dynamic_linker='NetBSD ld.elf_so'
18682 fi
18683 shlibpath_var=LD_LIBRARY_PATH
18684 shlibpath_overrides_runpath=yes
18685 hardcode_into_libs=yes
18686 ;;
18687
18688newsos6)
18689 version_type=linux
18690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18691 shlibpath_var=LD_LIBRARY_PATH
18692 shlibpath_overrides_runpath=yes
18693 ;;
18694
18695nto-qnx*)
18696 version_type=linux
18697 need_lib_prefix=no
18698 need_version=no
18699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18700 soname_spec='${libname}${release}${shared_ext}$major'
18701 shlibpath_var=LD_LIBRARY_PATH
18702 shlibpath_overrides_runpath=yes
18703 ;;
18704
18705openbsd*)
18706 version_type=sunos
18707 sys_lib_dlsearch_path_spec="/usr/lib"
18708 need_lib_prefix=no
18709 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18710 case $host_os in
18711 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18712 *) need_version=no ;;
18713 esac
18714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18715 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18716 shlibpath_var=LD_LIBRARY_PATH
18717 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18718 case $host_os in
18719 openbsd2.[89] | openbsd2.[89].*)
18720 shlibpath_overrides_runpath=no
18721 ;;
18722 *)
18723 shlibpath_overrides_runpath=yes
18724 ;;
18725 esac
18726 else
18727 shlibpath_overrides_runpath=yes
18728 fi
18729 ;;
18730
18731os2*)
18732 libname_spec='$name'
18733 shrext_cmds=".dll"
18734 need_lib_prefix=no
18735 library_names_spec='$libname${shared_ext} $libname.a'
18736 dynamic_linker='OS/2 ld.exe'
18737 shlibpath_var=LIBPATH
18738 ;;
18739
18740osf3* | osf4* | osf5*)
18741 version_type=osf
18742 need_lib_prefix=no
18743 need_version=no
18744 soname_spec='${libname}${release}${shared_ext}$major'
18745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18746 shlibpath_var=LD_LIBRARY_PATH
18747 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18748 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18749 ;;
18750
0fde1ce3 18751rdos*)
18752 dynamic_linker=no
18753 ;;
18754
d9898ee8 18755solaris*)
18756 version_type=linux
18757 need_lib_prefix=no
18758 need_version=no
18759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18760 soname_spec='${libname}${release}${shared_ext}$major'
18761 shlibpath_var=LD_LIBRARY_PATH
18762 shlibpath_overrides_runpath=yes
18763 hardcode_into_libs=yes
18764 # ldd complains unless libraries are executable
18765 postinstall_cmds='chmod +x $lib'
18766 ;;
18767
18768sunos4*)
18769 version_type=sunos
18770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18771 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18772 shlibpath_var=LD_LIBRARY_PATH
18773 shlibpath_overrides_runpath=yes
18774 if test "$with_gnu_ld" = yes; then
18775 need_lib_prefix=no
18776 fi
18777 need_version=yes
18778 ;;
18779
18780sysv4 | sysv4.3*)
18781 version_type=linux
18782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18783 soname_spec='${libname}${release}${shared_ext}$major'
18784 shlibpath_var=LD_LIBRARY_PATH
18785 case $host_vendor in
18786 sni)
18787 shlibpath_overrides_runpath=no
18788 need_lib_prefix=no
18789 export_dynamic_flag_spec='${wl}-Blargedynsym'
18790 runpath_var=LD_RUN_PATH
18791 ;;
18792 siemens)
18793 need_lib_prefix=no
18794 ;;
18795 motorola)
18796 need_lib_prefix=no
18797 need_version=no
18798 shlibpath_overrides_runpath=no
18799 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18800 ;;
18801 esac
18802 ;;
18803
18804sysv4*MP*)
18805 if test -d /usr/nec ;then
18806 version_type=linux
18807 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18808 soname_spec='$libname${shared_ext}.$major'
18809 shlibpath_var=LD_LIBRARY_PATH
18810 fi
18811 ;;
18812
18813sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18814 version_type=freebsd-elf
18815 need_lib_prefix=no
18816 need_version=no
18817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18818 soname_spec='${libname}${release}${shared_ext}$major'
18819 shlibpath_var=LD_LIBRARY_PATH
18820 hardcode_into_libs=yes
18821 if test "$with_gnu_ld" = yes; then
18822 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18823 shlibpath_overrides_runpath=no
18824 else
18825 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18826 shlibpath_overrides_runpath=yes
18827 case $host_os in
18828 sco3.2v5*)
18829 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18830 ;;
18831 esac
18832 fi
18833 sys_lib_dlsearch_path_spec='/usr/lib'
18834 ;;
18835
18836uts4*)
18837 version_type=linux
18838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18839 soname_spec='${libname}${release}${shared_ext}$major'
18840 shlibpath_var=LD_LIBRARY_PATH
18841 ;;
18842
18843*)
18844 dynamic_linker=no
18845 ;;
18846esac
64ff59ba 18847{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18848echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 18849test "$dynamic_linker" = no && can_build_shared=no
18850
18851variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18852if test "$GCC" = yes; then
18853 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18854fi
18855
64ff59ba 18856{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18857echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 18858hardcode_action_GCJ=
18859if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18860 test -n "$runpath_var_GCJ" || \
18861 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18862
18863 # We can hardcode non-existant directories.
18864 if test "$hardcode_direct_GCJ" != no &&
18865 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18866 # have to relink, otherwise we might link with an installed library
18867 # when we should be linking with a yet-to-be-installed one
18868 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18869 test "$hardcode_minus_L_GCJ" != no; then
18870 # Linking always hardcodes the temporary library directory.
18871 hardcode_action_GCJ=relink
18872 else
18873 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18874 hardcode_action_GCJ=immediate
18875 fi
18876else
18877 # We cannot hardcode anything, or else we can only hardcode existing
18878 # directories.
18879 hardcode_action_GCJ=unsupported
18880fi
64ff59ba 18881{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18882echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
d9898ee8 18883
18884if test "$hardcode_action_GCJ" = relink; then
18885 # Fast installation is not supported
18886 enable_fast_install=no
18887elif test "$shlibpath_overrides_runpath" = yes ||
18888 test "$enable_shared" = no; then
18889 # Fast installation is not necessary
18890 enable_fast_install=needless
18891fi
18892
18893
18894# The else clause should only fire when bootstrapping the
18895# libtool distribution, otherwise you forgot to ship ltmain.sh
18896# with your package, and you will get complaints that there are
18897# no rules to generate ltmain.sh.
18898if test -f "$ltmain"; then
18899 # See if we are running on zsh, and set the options which allow our commands through
18900 # without removal of \ escapes.
18901 if test -n "${ZSH_VERSION+set}" ; then
18902 setopt NO_GLOB_SUBST
18903 fi
18904 # Now quote all the things that may contain metacharacters while being
18905 # careful not to overquote the AC_SUBSTed values. We take copies of the
18906 # variables and quote the copies for generation of the libtool script.
18907 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18908 SED SHELL STRIP \
18909 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18910 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18911 deplibs_check_method reload_flag reload_cmds need_locks \
18912 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18913 lt_cv_sys_global_symbol_to_c_name_address \
18914 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18915 old_postinstall_cmds old_postuninstall_cmds \
18916 compiler_GCJ \
18917 CC_GCJ \
18918 LD_GCJ \
18919 lt_prog_compiler_wl_GCJ \
18920 lt_prog_compiler_pic_GCJ \
18921 lt_prog_compiler_static_GCJ \
18922 lt_prog_compiler_no_builtin_flag_GCJ \
18923 export_dynamic_flag_spec_GCJ \
18924 thread_safe_flag_spec_GCJ \
18925 whole_archive_flag_spec_GCJ \
18926 enable_shared_with_static_runtimes_GCJ \
18927 old_archive_cmds_GCJ \
18928 old_archive_from_new_cmds_GCJ \
18929 predep_objects_GCJ \
18930 postdep_objects_GCJ \
18931 predeps_GCJ \
18932 postdeps_GCJ \
18933 compiler_lib_search_path_GCJ \
18934 archive_cmds_GCJ \
18935 archive_expsym_cmds_GCJ \
18936 postinstall_cmds_GCJ \
18937 postuninstall_cmds_GCJ \
18938 old_archive_from_expsyms_cmds_GCJ \
18939 allow_undefined_flag_GCJ \
18940 no_undefined_flag_GCJ \
18941 export_symbols_cmds_GCJ \
18942 hardcode_libdir_flag_spec_GCJ \
18943 hardcode_libdir_flag_spec_ld_GCJ \
18944 hardcode_libdir_separator_GCJ \
18945 hardcode_automatic_GCJ \
18946 module_cmds_GCJ \
18947 module_expsym_cmds_GCJ \
18948 lt_cv_prog_compiler_c_o_GCJ \
0fde1ce3 18949 fix_srcfile_path_GCJ \
d9898ee8 18950 exclude_expsyms_GCJ \
18951 include_expsyms_GCJ; do
18952
18953 case $var in
18954 old_archive_cmds_GCJ | \
18955 old_archive_from_new_cmds_GCJ | \
18956 archive_cmds_GCJ | \
18957 archive_expsym_cmds_GCJ | \
18958 module_cmds_GCJ | \
18959 module_expsym_cmds_GCJ | \
18960 old_archive_from_expsyms_cmds_GCJ | \
18961 export_symbols_cmds_GCJ | \
18962 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18963 postinstall_cmds | postuninstall_cmds | \
18964 old_postinstall_cmds | old_postuninstall_cmds | \
18965 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18966 # Double-quote double-evaled strings.
18967 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18968 ;;
18969 *)
18970 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18971 ;;
18972 esac
18973 done
18974
18975 case $lt_echo in
18976 *'\$0 --fallback-echo"')
18977 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18978 ;;
18979 esac
18980
18981cfgfile="$ofile"
18982
18983 cat <<__EOF__ >> "$cfgfile"
18984# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18985
18986# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18987
18988# Shell to use when invoking shell scripts.
18989SHELL=$lt_SHELL
18990
18991# Whether or not to build shared libraries.
18992build_libtool_libs=$enable_shared
18993
18994# Whether or not to build static libraries.
18995build_old_libs=$enable_static
18996
18997# Whether or not to add -lc for building shared libraries.
18998build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18999
19000# Whether or not to disallow shared libs when runtime libs are static
19001allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19002
19003# Whether or not to optimize for fast installation.
19004fast_install=$enable_fast_install
19005
19006# The host system.
19007host_alias=$host_alias
19008host=$host
19009host_os=$host_os
19010
19011# The build system.
19012build_alias=$build_alias
19013build=$build
19014build_os=$build_os
19015
19016# An echo program that does not interpret backslashes.
19017echo=$lt_echo
19018
19019# The archiver.
19020AR=$lt_AR
19021AR_FLAGS=$lt_AR_FLAGS
19022
19023# A C compiler.
19024LTCC=$lt_LTCC
19025
19026# LTCC compiler flags.
19027LTCFLAGS=$lt_LTCFLAGS
19028
19029# A language-specific compiler.
19030CC=$lt_compiler_GCJ
19031
19032# Is the compiler the GNU C compiler?
19033with_gcc=$GCC_GCJ
19034
d9898ee8 19035# An ERE matcher.
19036EGREP=$lt_EGREP
19037
19038# The linker used to build libraries.
19039LD=$lt_LD_GCJ
19040
19041# Whether we need hard or soft links.
19042LN_S=$lt_LN_S
19043
19044# A BSD-compatible nm program.
19045NM=$lt_NM
19046
19047# A symbol stripping program
19048STRIP=$lt_STRIP
19049
19050# Used to examine libraries when file_magic_cmd begins "file"
19051MAGIC_CMD=$MAGIC_CMD
19052
19053# Used on cygwin: DLL creation program.
19054DLLTOOL="$DLLTOOL"
19055
19056# Used on cygwin: object dumper.
19057OBJDUMP="$OBJDUMP"
19058
19059# Used on cygwin: assembler.
19060AS="$AS"
19061
19062# The name of the directory that contains temporary libtool files.
19063objdir=$objdir
19064
19065# How to create reloadable object files.
19066reload_flag=$lt_reload_flag
19067reload_cmds=$lt_reload_cmds
19068
19069# How to pass a linker flag through the compiler.
19070wl=$lt_lt_prog_compiler_wl_GCJ
19071
19072# Object file suffix (normally "o").
19073objext="$ac_objext"
19074
19075# Old archive suffix (normally "a").
19076libext="$libext"
19077
19078# Shared library suffix (normally ".so").
19079shrext_cmds='$shrext_cmds'
19080
19081# Executable file suffix (normally "").
19082exeext="$exeext"
19083
19084# Additional compiler flags for building library objects.
19085pic_flag=$lt_lt_prog_compiler_pic_GCJ
19086pic_mode=$pic_mode
19087
19088# What is the maximum length of a command?
19089max_cmd_len=$lt_cv_sys_max_cmd_len
19090
19091# Does compiler simultaneously support -c and -o options?
19092compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19093
19094# Must we lock files when doing compilation?
19095need_locks=$lt_need_locks
19096
19097# Do we need the lib prefix for modules?
19098need_lib_prefix=$need_lib_prefix
19099
19100# Do we need a version for libraries?
19101need_version=$need_version
19102
19103# Whether dlopen is supported.
19104dlopen_support=$enable_dlopen
19105
19106# Whether dlopen of programs is supported.
19107dlopen_self=$enable_dlopen_self
19108
19109# Whether dlopen of statically linked programs is supported.
19110dlopen_self_static=$enable_dlopen_self_static
19111
19112# Compiler flag to prevent dynamic linking.
19113link_static_flag=$lt_lt_prog_compiler_static_GCJ
19114
19115# Compiler flag to turn off builtin functions.
19116no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19117
19118# Compiler flag to allow reflexive dlopens.
19119export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19120
19121# Compiler flag to generate shared objects directly from archives.
19122whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19123
19124# Compiler flag to generate thread-safe objects.
19125thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19126
19127# Library versioning type.
19128version_type=$version_type
19129
19130# Format of library name prefix.
19131libname_spec=$lt_libname_spec
19132
19133# List of archive names. First name is the real one, the rest are links.
19134# The last name is the one that the linker finds with -lNAME.
19135library_names_spec=$lt_library_names_spec
19136
19137# The coded name of the library, if different from the real name.
19138soname_spec=$lt_soname_spec
19139
19140# Commands used to build and install an old-style archive.
19141RANLIB=$lt_RANLIB
19142old_archive_cmds=$lt_old_archive_cmds_GCJ
19143old_postinstall_cmds=$lt_old_postinstall_cmds
19144old_postuninstall_cmds=$lt_old_postuninstall_cmds
19145
19146# Create an old-style archive from a shared archive.
19147old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19148
19149# Create a temporary old-style archive to link instead of a shared archive.
19150old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19151
19152# Commands used to build and install a shared archive.
19153archive_cmds=$lt_archive_cmds_GCJ
19154archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19155postinstall_cmds=$lt_postinstall_cmds
19156postuninstall_cmds=$lt_postuninstall_cmds
19157
19158# Commands used to build a loadable module (assumed same as above if empty)
19159module_cmds=$lt_module_cmds_GCJ
19160module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19161
19162# Commands to strip libraries.
19163old_striplib=$lt_old_striplib
19164striplib=$lt_striplib
19165
19166# Dependencies to place before the objects being linked to create a
19167# shared library.
64ff59ba 19168predep_objects=$lt_predep_objects_GCJ
d9898ee8 19169
19170# Dependencies to place after the objects being linked to create a
19171# shared library.
64ff59ba 19172postdep_objects=$lt_postdep_objects_GCJ
d9898ee8 19173
19174# Dependencies to place before the objects being linked to create a
19175# shared library.
19176predeps=$lt_predeps_GCJ
19177
19178# Dependencies to place after the objects being linked to create a
19179# shared library.
19180postdeps=$lt_postdeps_GCJ
19181
19182# The library search path used internally by the compiler when linking
19183# a shared library.
64ff59ba 19184compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
d9898ee8 19185
19186# Method to check whether dependent libraries are shared objects.
19187deplibs_check_method=$lt_deplibs_check_method
19188
19189# Command to use when deplibs_check_method == file_magic.
19190file_magic_cmd=$lt_file_magic_cmd
19191
19192# Flag that allows shared libraries with undefined symbols to be built.
19193allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19194
19195# Flag that forces no undefined symbols.
19196no_undefined_flag=$lt_no_undefined_flag_GCJ
19197
19198# Commands used to finish a libtool library installation in a directory.
19199finish_cmds=$lt_finish_cmds
19200
19201# Same as above, but a single script fragment to be evaled but not shown.
19202finish_eval=$lt_finish_eval
19203
19204# Take the output of nm and produce a listing of raw symbols and C names.
19205global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19206
19207# Transform the output of nm in a proper C declaration
19208global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19209
19210# Transform the output of nm in a C name address pair
19211global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19212
19213# This is the shared library runtime path variable.
19214runpath_var=$runpath_var
19215
19216# This is the shared library path variable.
19217shlibpath_var=$shlibpath_var
19218
19219# Is shlibpath searched before the hard-coded library search path?
19220shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19221
19222# How to hardcode a shared library path into an executable.
19223hardcode_action=$hardcode_action_GCJ
19224
19225# Whether we should hardcode library paths into libraries.
19226hardcode_into_libs=$hardcode_into_libs
19227
19228# Flag to hardcode \$libdir into a binary during linking.
19229# This must work even if \$libdir does not exist.
19230hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19231
19232# If ld is used when linking, flag to hardcode \$libdir into
19233# a binary during linking. This must work even if \$libdir does
19234# not exist.
19235hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19236
19237# Whether we need a single -rpath flag with a separated argument.
19238hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19239
19240# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19241# resulting binary.
19242hardcode_direct=$hardcode_direct_GCJ
19243
19244# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19245# resulting binary.
19246hardcode_minus_L=$hardcode_minus_L_GCJ
19247
19248# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19249# the resulting binary.
19250hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19251
19252# Set to yes if building a shared library automatically hardcodes DIR into the library
19253# and all subsequent libraries and executables linked against it.
19254hardcode_automatic=$hardcode_automatic_GCJ
19255
19256# Variables whose values should be saved in libtool wrapper scripts and
19257# restored at relink time.
19258variables_saved_for_relink="$variables_saved_for_relink"
19259
19260# Whether libtool must link a program against all its dependency libraries.
19261link_all_deplibs=$link_all_deplibs_GCJ
19262
19263# Compile-time system search path for libraries
64ff59ba 19264sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 19265
19266# Run-time system search path for libraries
19267sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19268
19269# Fix the shell variable \$srcfile for the compiler.
0fde1ce3 19270fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 19271
19272# Set to yes if exported symbols are required.
19273always_export_symbols=$always_export_symbols_GCJ
19274
19275# The commands to list exported symbols.
19276export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19277
19278# The commands to extract the exported symbol list from a shared archive.
19279extract_expsyms_cmds=$lt_extract_expsyms_cmds
19280
19281# Symbols that should not be listed in the preloaded symbols.
19282exclude_expsyms=$lt_exclude_expsyms_GCJ
19283
19284# Symbols that must always be exported.
19285include_expsyms=$lt_include_expsyms_GCJ
19286
19287# ### END LIBTOOL TAG CONFIG: $tagname
19288
19289__EOF__
19290
19291
19292else
19293 # If there is no Makefile yet, we rely on a make rule to execute
19294 # `config.status --recheck' to rerun these tests and create the
19295 # libtool script then.
19296 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19297 if test -f "$ltmain_in"; then
19298 test -f Makefile && make "$ltmain"
19299 fi
19300fi
19301
19302
19303ac_ext=c
19304ac_cpp='$CPP $CPPFLAGS'
19305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19307ac_compiler_gnu=$ac_cv_c_compiler_gnu
19308
19309CC="$lt_save_CC"
19310
19311 else
19312 tagname=""
19313 fi
19314 ;;
19315
19316 RC)
19317
19318
d9898ee8 19319# Source file extension for RC test sources.
19320ac_ext=rc
19321
19322# Object file extension for compiled RC test sources.
19323objext=o
19324objext_RC=$objext
19325
19326# Code to be used in simple compile tests
0fde1ce3 19327lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
d9898ee8 19328
19329# Code to be used in simple link tests
19330lt_simple_link_test_code="$lt_simple_compile_test_code"
19331
19332# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19333
19334# If no C compiler was specified, use CC.
19335LTCC=${LTCC-"$CC"}
19336
19337# If no C compiler flags were specified, use CFLAGS.
19338LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19339
19340# Allow CC to be a program name with arguments.
19341compiler=$CC
19342
19343
19344# save warnings/boilerplate of simple test code
19345ac_outfile=conftest.$ac_objext
0fde1ce3 19346echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 19347eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19348_lt_compiler_boilerplate=`cat conftest.err`
19349$rm conftest*
19350
19351ac_outfile=conftest.$ac_objext
0fde1ce3 19352echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 19353eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19354_lt_linker_boilerplate=`cat conftest.err`
19355$rm conftest*
19356
19357
19358# Allow CC to be a program name with arguments.
19359lt_save_CC="$CC"
19360CC=${RC-"windres"}
19361compiler=$CC
19362compiler_RC=$CC
19363for cc_temp in $compiler""; do
19364 case $cc_temp in
19365 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19366 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19367 \-*) ;;
19368 *) break;;
19369 esac
19370done
19371cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19372
19373lt_cv_prog_compiler_c_o_RC=yes
19374
19375# The else clause should only fire when bootstrapping the
19376# libtool distribution, otherwise you forgot to ship ltmain.sh
19377# with your package, and you will get complaints that there are
19378# no rules to generate ltmain.sh.
19379if test -f "$ltmain"; then
19380 # See if we are running on zsh, and set the options which allow our commands through
19381 # without removal of \ escapes.
19382 if test -n "${ZSH_VERSION+set}" ; then
19383 setopt NO_GLOB_SUBST
19384 fi
19385 # Now quote all the things that may contain metacharacters while being
19386 # careful not to overquote the AC_SUBSTed values. We take copies of the
19387 # variables and quote the copies for generation of the libtool script.
19388 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19389 SED SHELL STRIP \
19390 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19391 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19392 deplibs_check_method reload_flag reload_cmds need_locks \
19393 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19394 lt_cv_sys_global_symbol_to_c_name_address \
19395 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19396 old_postinstall_cmds old_postuninstall_cmds \
19397 compiler_RC \
19398 CC_RC \
19399 LD_RC \
19400 lt_prog_compiler_wl_RC \
19401 lt_prog_compiler_pic_RC \
19402 lt_prog_compiler_static_RC \
19403 lt_prog_compiler_no_builtin_flag_RC \
19404 export_dynamic_flag_spec_RC \
19405 thread_safe_flag_spec_RC \
19406 whole_archive_flag_spec_RC \
19407 enable_shared_with_static_runtimes_RC \
19408 old_archive_cmds_RC \
19409 old_archive_from_new_cmds_RC \
19410 predep_objects_RC \
19411 postdep_objects_RC \
19412 predeps_RC \
19413 postdeps_RC \
19414 compiler_lib_search_path_RC \
19415 archive_cmds_RC \
19416 archive_expsym_cmds_RC \
19417 postinstall_cmds_RC \
19418 postuninstall_cmds_RC \
19419 old_archive_from_expsyms_cmds_RC \
19420 allow_undefined_flag_RC \
19421 no_undefined_flag_RC \
19422 export_symbols_cmds_RC \
19423 hardcode_libdir_flag_spec_RC \
19424 hardcode_libdir_flag_spec_ld_RC \
19425 hardcode_libdir_separator_RC \
19426 hardcode_automatic_RC \
19427 module_cmds_RC \
19428 module_expsym_cmds_RC \
19429 lt_cv_prog_compiler_c_o_RC \
0fde1ce3 19430 fix_srcfile_path_RC \
d9898ee8 19431 exclude_expsyms_RC \
19432 include_expsyms_RC; do
19433
19434 case $var in
19435 old_archive_cmds_RC | \
19436 old_archive_from_new_cmds_RC | \
19437 archive_cmds_RC | \
19438 archive_expsym_cmds_RC | \
19439 module_cmds_RC | \
19440 module_expsym_cmds_RC | \
19441 old_archive_from_expsyms_cmds_RC | \
19442 export_symbols_cmds_RC | \
19443 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19444 postinstall_cmds | postuninstall_cmds | \
19445 old_postinstall_cmds | old_postuninstall_cmds | \
19446 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19447 # Double-quote double-evaled strings.
19448 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19449 ;;
19450 *)
19451 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19452 ;;
19453 esac
19454 done
19455
19456 case $lt_echo in
19457 *'\$0 --fallback-echo"')
19458 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19459 ;;
19460 esac
19461
19462cfgfile="$ofile"
19463
19464 cat <<__EOF__ >> "$cfgfile"
19465# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19466
19467# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19468
19469# Shell to use when invoking shell scripts.
19470SHELL=$lt_SHELL
19471
19472# Whether or not to build shared libraries.
19473build_libtool_libs=$enable_shared
19474
19475# Whether or not to build static libraries.
19476build_old_libs=$enable_static
19477
19478# Whether or not to add -lc for building shared libraries.
19479build_libtool_need_lc=$archive_cmds_need_lc_RC
19480
19481# Whether or not to disallow shared libs when runtime libs are static
19482allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19483
19484# Whether or not to optimize for fast installation.
19485fast_install=$enable_fast_install
19486
19487# The host system.
19488host_alias=$host_alias
19489host=$host
19490host_os=$host_os
19491
19492# The build system.
19493build_alias=$build_alias
19494build=$build
19495build_os=$build_os
19496
19497# An echo program that does not interpret backslashes.
19498echo=$lt_echo
19499
19500# The archiver.
19501AR=$lt_AR
19502AR_FLAGS=$lt_AR_FLAGS
19503
19504# A C compiler.
19505LTCC=$lt_LTCC
19506
19507# LTCC compiler flags.
19508LTCFLAGS=$lt_LTCFLAGS
19509
19510# A language-specific compiler.
19511CC=$lt_compiler_RC
19512
19513# Is the compiler the GNU C compiler?
19514with_gcc=$GCC_RC
19515
d9898ee8 19516# An ERE matcher.
19517EGREP=$lt_EGREP
19518
19519# The linker used to build libraries.
19520LD=$lt_LD_RC
19521
19522# Whether we need hard or soft links.
19523LN_S=$lt_LN_S
19524
19525# A BSD-compatible nm program.
19526NM=$lt_NM
19527
19528# A symbol stripping program
19529STRIP=$lt_STRIP
19530
19531# Used to examine libraries when file_magic_cmd begins "file"
19532MAGIC_CMD=$MAGIC_CMD
19533
19534# Used on cygwin: DLL creation program.
19535DLLTOOL="$DLLTOOL"
19536
19537# Used on cygwin: object dumper.
19538OBJDUMP="$OBJDUMP"
19539
19540# Used on cygwin: assembler.
19541AS="$AS"
19542
19543# The name of the directory that contains temporary libtool files.
19544objdir=$objdir
19545
19546# How to create reloadable object files.
19547reload_flag=$lt_reload_flag
19548reload_cmds=$lt_reload_cmds
19549
19550# How to pass a linker flag through the compiler.
19551wl=$lt_lt_prog_compiler_wl_RC
19552
19553# Object file suffix (normally "o").
19554objext="$ac_objext"
19555
19556# Old archive suffix (normally "a").
19557libext="$libext"
19558
19559# Shared library suffix (normally ".so").
19560shrext_cmds='$shrext_cmds'
19561
19562# Executable file suffix (normally "").
19563exeext="$exeext"
19564
19565# Additional compiler flags for building library objects.
19566pic_flag=$lt_lt_prog_compiler_pic_RC
19567pic_mode=$pic_mode
19568
19569# What is the maximum length of a command?
19570max_cmd_len=$lt_cv_sys_max_cmd_len
19571
19572# Does compiler simultaneously support -c and -o options?
19573compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19574
19575# Must we lock files when doing compilation?
19576need_locks=$lt_need_locks
19577
19578# Do we need the lib prefix for modules?
19579need_lib_prefix=$need_lib_prefix
19580
19581# Do we need a version for libraries?
19582need_version=$need_version
19583
19584# Whether dlopen is supported.
19585dlopen_support=$enable_dlopen
19586
19587# Whether dlopen of programs is supported.
19588dlopen_self=$enable_dlopen_self
19589
19590# Whether dlopen of statically linked programs is supported.
19591dlopen_self_static=$enable_dlopen_self_static
19592
19593# Compiler flag to prevent dynamic linking.
19594link_static_flag=$lt_lt_prog_compiler_static_RC
19595
19596# Compiler flag to turn off builtin functions.
19597no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19598
19599# Compiler flag to allow reflexive dlopens.
19600export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19601
19602# Compiler flag to generate shared objects directly from archives.
19603whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19604
19605# Compiler flag to generate thread-safe objects.
19606thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19607
19608# Library versioning type.
19609version_type=$version_type
19610
19611# Format of library name prefix.
19612libname_spec=$lt_libname_spec
19613
19614# List of archive names. First name is the real one, the rest are links.
19615# The last name is the one that the linker finds with -lNAME.
19616library_names_spec=$lt_library_names_spec
19617
19618# The coded name of the library, if different from the real name.
19619soname_spec=$lt_soname_spec
19620
19621# Commands used to build and install an old-style archive.
19622RANLIB=$lt_RANLIB
19623old_archive_cmds=$lt_old_archive_cmds_RC
19624old_postinstall_cmds=$lt_old_postinstall_cmds
19625old_postuninstall_cmds=$lt_old_postuninstall_cmds
19626
19627# Create an old-style archive from a shared archive.
19628old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19629
19630# Create a temporary old-style archive to link instead of a shared archive.
19631old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19632
19633# Commands used to build and install a shared archive.
19634archive_cmds=$lt_archive_cmds_RC
19635archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19636postinstall_cmds=$lt_postinstall_cmds
19637postuninstall_cmds=$lt_postuninstall_cmds
19638
19639# Commands used to build a loadable module (assumed same as above if empty)
19640module_cmds=$lt_module_cmds_RC
19641module_expsym_cmds=$lt_module_expsym_cmds_RC
19642
19643# Commands to strip libraries.
19644old_striplib=$lt_old_striplib
19645striplib=$lt_striplib
19646
19647# Dependencies to place before the objects being linked to create a
19648# shared library.
64ff59ba 19649predep_objects=$lt_predep_objects_RC
d9898ee8 19650
19651# Dependencies to place after the objects being linked to create a
19652# shared library.
64ff59ba 19653postdep_objects=$lt_postdep_objects_RC
d9898ee8 19654
19655# Dependencies to place before the objects being linked to create a
19656# shared library.
19657predeps=$lt_predeps_RC
19658
19659# Dependencies to place after the objects being linked to create a
19660# shared library.
19661postdeps=$lt_postdeps_RC
19662
19663# The library search path used internally by the compiler when linking
19664# a shared library.
64ff59ba 19665compiler_lib_search_path=$lt_compiler_lib_search_path_RC
d9898ee8 19666
19667# Method to check whether dependent libraries are shared objects.
19668deplibs_check_method=$lt_deplibs_check_method
19669
19670# Command to use when deplibs_check_method == file_magic.
19671file_magic_cmd=$lt_file_magic_cmd
19672
19673# Flag that allows shared libraries with undefined symbols to be built.
19674allow_undefined_flag=$lt_allow_undefined_flag_RC
19675
19676# Flag that forces no undefined symbols.
19677no_undefined_flag=$lt_no_undefined_flag_RC
19678
19679# Commands used to finish a libtool library installation in a directory.
19680finish_cmds=$lt_finish_cmds
19681
19682# Same as above, but a single script fragment to be evaled but not shown.
19683finish_eval=$lt_finish_eval
19684
19685# Take the output of nm and produce a listing of raw symbols and C names.
19686global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19687
19688# Transform the output of nm in a proper C declaration
19689global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19690
19691# Transform the output of nm in a C name address pair
19692global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19693
19694# This is the shared library runtime path variable.
19695runpath_var=$runpath_var
19696
19697# This is the shared library path variable.
19698shlibpath_var=$shlibpath_var
19699
19700# Is shlibpath searched before the hard-coded library search path?
19701shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19702
19703# How to hardcode a shared library path into an executable.
19704hardcode_action=$hardcode_action_RC
19705
19706# Whether we should hardcode library paths into libraries.
19707hardcode_into_libs=$hardcode_into_libs
19708
19709# Flag to hardcode \$libdir into a binary during linking.
19710# This must work even if \$libdir does not exist.
19711hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19712
19713# If ld is used when linking, flag to hardcode \$libdir into
19714# a binary during linking. This must work even if \$libdir does
19715# not exist.
19716hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19717
19718# Whether we need a single -rpath flag with a separated argument.
19719hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19720
19721# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19722# resulting binary.
19723hardcode_direct=$hardcode_direct_RC
19724
19725# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19726# resulting binary.
19727hardcode_minus_L=$hardcode_minus_L_RC
19728
19729# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19730# the resulting binary.
19731hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19732
19733# Set to yes if building a shared library automatically hardcodes DIR into the library
19734# and all subsequent libraries and executables linked against it.
19735hardcode_automatic=$hardcode_automatic_RC
19736
19737# Variables whose values should be saved in libtool wrapper scripts and
19738# restored at relink time.
19739variables_saved_for_relink="$variables_saved_for_relink"
19740
19741# Whether libtool must link a program against all its dependency libraries.
19742link_all_deplibs=$link_all_deplibs_RC
19743
19744# Compile-time system search path for libraries
64ff59ba 19745sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 19746
19747# Run-time system search path for libraries
19748sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19749
19750# Fix the shell variable \$srcfile for the compiler.
0fde1ce3 19751fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 19752
19753# Set to yes if exported symbols are required.
19754always_export_symbols=$always_export_symbols_RC
19755
19756# The commands to list exported symbols.
19757export_symbols_cmds=$lt_export_symbols_cmds_RC
19758
19759# The commands to extract the exported symbol list from a shared archive.
19760extract_expsyms_cmds=$lt_extract_expsyms_cmds
19761
19762# Symbols that should not be listed in the preloaded symbols.
19763exclude_expsyms=$lt_exclude_expsyms_RC
19764
19765# Symbols that must always be exported.
19766include_expsyms=$lt_include_expsyms_RC
19767
19768# ### END LIBTOOL TAG CONFIG: $tagname
19769
19770__EOF__
19771
19772
19773else
19774 # If there is no Makefile yet, we rely on a make rule to execute
19775 # `config.status --recheck' to rerun these tests and create the
19776 # libtool script then.
19777 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19778 if test -f "$ltmain_in"; then
19779 test -f Makefile && make "$ltmain"
19780 fi
19781fi
19782
19783
19784ac_ext=c
19785ac_cpp='$CPP $CPPFLAGS'
19786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19788ac_compiler_gnu=$ac_cv_c_compiler_gnu
19789
19790CC="$lt_save_CC"
19791
19792 ;;
19793
19794 *)
19795 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19796echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19797 { (exit 1); exit 1; }; }
19798 ;;
19799 esac
19800
19801 # Append the new tag name to the list of available tags.
19802 if test -n "$tagname" ; then
19803 available_tags="$available_tags $tagname"
19804 fi
19805 fi
19806 done
19807 IFS="$lt_save_ifs"
19808
19809 # Now substitute the updated list of available tags.
19810 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19811 mv "${ofile}T" "$ofile"
19812 chmod +x "$ofile"
19813 else
19814 rm -f "${ofile}T"
19815 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19816echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19817 { (exit 1); exit 1; }; }
19818 fi
19819fi
19820
19821
19822
19823# This can be used to rebuild libtool when needed
19824LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19825
19826# Always use our own libtool.
19827LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19828
19829# Prevent multiple expansion
19830
19831
19832
19833
19834
19835
19836
19837
19838
19839
19840
19841
19842
19843
19844
19845
19846
19847
19848
19849
19850
19851
19852
19853
19854
19855
19856
19857ac_header_dirent=no
19858for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19859 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
64ff59ba 19860{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19861echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
19862if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 19863 echo $ECHO_N "(cached) $ECHO_C" >&6
19864else
19865 cat >conftest.$ac_ext <<_ACEOF
19866/* confdefs.h. */
19867_ACEOF
19868cat confdefs.h >>conftest.$ac_ext
19869cat >>conftest.$ac_ext <<_ACEOF
19870/* end confdefs.h. */
19871#include <sys/types.h>
19872#include <$ac_hdr>
19873
19874int
19875main ()
19876{
19877if ((DIR *) 0)
19878return 0;
19879 ;
19880 return 0;
19881}
19882_ACEOF
19883rm -f conftest.$ac_objext
64ff59ba 19884if { (ac_try="$ac_compile"
19885case "(($ac_try" in
19886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19887 *) ac_try_echo=$ac_try;;
19888esac
19889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19890 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19891 ac_status=$?
19892 grep -v '^ *+' conftest.er1 >conftest.err
19893 rm -f conftest.er1
19894 cat conftest.err >&5
19895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19896 (exit $ac_status); } && {
19897 test -z "$ac_c_werror_flag" ||
19898 test ! -s conftest.err
19899 } && test -s conftest.$ac_objext; then
d9898ee8 19900 eval "$as_ac_Header=yes"
19901else
19902 echo "$as_me: failed program was:" >&5
19903sed 's/^/| /' conftest.$ac_ext >&5
19904
64ff59ba 19905 eval "$as_ac_Header=no"
d9898ee8 19906fi
64ff59ba 19907
19908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 19909fi
64ff59ba 19910ac_res=`eval echo '${'$as_ac_Header'}'`
19911 { echo "$as_me:$LINENO: result: $ac_res" >&5
19912echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 19913if test `eval echo '${'$as_ac_Header'}'` = yes; then
19914 cat >>confdefs.h <<_ACEOF
19915#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19916_ACEOF
19917
19918ac_header_dirent=$ac_hdr; break
19919fi
19920
19921done
19922# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19923if test $ac_header_dirent = dirent.h; then
64ff59ba 19924 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19925echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
d9898ee8 19926if test "${ac_cv_search_opendir+set}" = set; then
19927 echo $ECHO_N "(cached) $ECHO_C" >&6
19928else
19929 ac_func_search_save_LIBS=$LIBS
d9898ee8 19930cat >conftest.$ac_ext <<_ACEOF
19931/* confdefs.h. */
19932_ACEOF
19933cat confdefs.h >>conftest.$ac_ext
19934cat >>conftest.$ac_ext <<_ACEOF
19935/* end confdefs.h. */
19936
64ff59ba 19937/* Override any GCC internal prototype to avoid an error.
19938 Use char because int might match the return type of a GCC
19939 builtin and then its argument prototype would still apply. */
d9898ee8 19940#ifdef __cplusplus
19941extern "C"
19942#endif
d9898ee8 19943char opendir ();
19944int
19945main ()
19946{
64ff59ba 19947return opendir ();
d9898ee8 19948 ;
19949 return 0;
19950}
19951_ACEOF
64ff59ba 19952for ac_lib in '' dir; do
19953 if test -z "$ac_lib"; then
19954 ac_res="none required"
19955 else
19956 ac_res=-l$ac_lib
19957 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19958 fi
19959 rm -f conftest.$ac_objext conftest$ac_exeext
19960if { (ac_try="$ac_link"
19961case "(($ac_try" in
19962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19963 *) ac_try_echo=$ac_try;;
19964esac
19965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19966 (eval "$ac_link") 2>conftest.er1
d9898ee8 19967 ac_status=$?
19968 grep -v '^ *+' conftest.er1 >conftest.err
19969 rm -f conftest.er1
19970 cat conftest.err >&5
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19972 (exit $ac_status); } && {
19973 test -z "$ac_c_werror_flag" ||
19974 test ! -s conftest.err
19975 } && test -s conftest$ac_exeext &&
19976 $as_test_x conftest$ac_exeext; then
19977 ac_cv_search_opendir=$ac_res
d9898ee8 19978else
19979 echo "$as_me: failed program was:" >&5
19980sed 's/^/| /' conftest.$ac_ext >&5
19981
d9898ee8 19982
64ff59ba 19983fi
d9898ee8 19984
64ff59ba 19985rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19986 conftest$ac_exeext
19987 if test "${ac_cv_search_opendir+set}" = set; then
19988 break
d9898ee8 19989fi
64ff59ba 19990done
19991if test "${ac_cv_search_opendir+set}" = set; then
19992 :
19993else
19994 ac_cv_search_opendir=no
d9898ee8 19995fi
64ff59ba 19996rm conftest.$ac_ext
d9898ee8 19997LIBS=$ac_func_search_save_LIBS
19998fi
64ff59ba 19999{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20000echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20001ac_res=$ac_cv_search_opendir
20002if test "$ac_res" != no; then
20003 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d9898ee8 20004
20005fi
20006
20007else
64ff59ba 20008 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20009echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
d9898ee8 20010if test "${ac_cv_search_opendir+set}" = set; then
20011 echo $ECHO_N "(cached) $ECHO_C" >&6
20012else
20013 ac_func_search_save_LIBS=$LIBS
d9898ee8 20014cat >conftest.$ac_ext <<_ACEOF
20015/* confdefs.h. */
20016_ACEOF
20017cat confdefs.h >>conftest.$ac_ext
20018cat >>conftest.$ac_ext <<_ACEOF
20019/* end confdefs.h. */
20020
64ff59ba 20021/* Override any GCC internal prototype to avoid an error.
20022 Use char because int might match the return type of a GCC
20023 builtin and then its argument prototype would still apply. */
d9898ee8 20024#ifdef __cplusplus
20025extern "C"
20026#endif
d9898ee8 20027char opendir ();
20028int
20029main ()
20030{
64ff59ba 20031return opendir ();
d9898ee8 20032 ;
20033 return 0;
20034}
20035_ACEOF
64ff59ba 20036for ac_lib in '' x; do
20037 if test -z "$ac_lib"; then
20038 ac_res="none required"
20039 else
20040 ac_res=-l$ac_lib
20041 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20042 fi
20043 rm -f conftest.$ac_objext conftest$ac_exeext
20044if { (ac_try="$ac_link"
20045case "(($ac_try" in
20046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20047 *) ac_try_echo=$ac_try;;
20048esac
20049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20050 (eval "$ac_link") 2>conftest.er1
d9898ee8 20051 ac_status=$?
20052 grep -v '^ *+' conftest.er1 >conftest.err
20053 rm -f conftest.er1
20054 cat conftest.err >&5
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20056 (exit $ac_status); } && {
20057 test -z "$ac_c_werror_flag" ||
20058 test ! -s conftest.err
20059 } && test -s conftest$ac_exeext &&
20060 $as_test_x conftest$ac_exeext; then
20061 ac_cv_search_opendir=$ac_res
d9898ee8 20062else
20063 echo "$as_me: failed program was:" >&5
20064sed 's/^/| /' conftest.$ac_ext >&5
20065
d9898ee8 20066
64ff59ba 20067fi
d9898ee8 20068
64ff59ba 20069rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20070 conftest$ac_exeext
20071 if test "${ac_cv_search_opendir+set}" = set; then
20072 break
d9898ee8 20073fi
64ff59ba 20074done
20075if test "${ac_cv_search_opendir+set}" = set; then
20076 :
20077else
20078 ac_cv_search_opendir=no
d9898ee8 20079fi
64ff59ba 20080rm conftest.$ac_ext
d9898ee8 20081LIBS=$ac_func_search_save_LIBS
20082fi
64ff59ba 20083{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20084echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20085ac_res=$ac_cv_search_opendir
20086if test "$ac_res" != no; then
20087 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d9898ee8 20088
20089fi
20090
20091fi
20092
64ff59ba 20093# Check whether --enable-ltdl-install was given.
d9898ee8 20094if test "${enable_ltdl_install+set}" = set; then
64ff59ba 20095 enableval=$enable_ltdl_install;
20096fi
d9898ee8 20097
20098
64ff59ba 20099 if test x"${enable_ltdl_install-no}" != xno; then
d9898ee8 20100 INSTALL_LTDL_TRUE=
20101 INSTALL_LTDL_FALSE='#'
20102else
20103 INSTALL_LTDL_TRUE='#'
20104 INSTALL_LTDL_FALSE=
20105fi
20106
64ff59ba 20107 if test x"${enable_ltdl_convenience-no}" != xno; then
d9898ee8 20108 CONVENIENCE_LTDL_TRUE=
20109 CONVENIENCE_LTDL_FALSE='#'
20110else
20111 CONVENIENCE_LTDL_TRUE='#'
20112 CONVENIENCE_LTDL_FALSE=
20113fi
20114
20115
20116
64ff59ba 20117{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
20118echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
d9898ee8 20119if test "${libltdl_cv_shlibext+set}" = set; then
20120 echo $ECHO_N "(cached) $ECHO_C" >&6
20121else
20122
20123module=yes
20124eval libltdl_cv_shlibext=$shrext_cmds
20125
20126fi
64ff59ba 20127{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
20128echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
d9898ee8 20129if test -n "$libltdl_cv_shlibext"; then
20130
20131cat >>confdefs.h <<_ACEOF
20132#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
20133_ACEOF
20134
20135fi
20136
20137
64ff59ba 20138{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
20139echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
d9898ee8 20140if test "${libltdl_cv_shlibpath_var+set}" = set; then
20141 echo $ECHO_N "(cached) $ECHO_C" >&6
20142else
20143 libltdl_cv_shlibpath_var="$shlibpath_var"
20144fi
64ff59ba 20145{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
20146echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
d9898ee8 20147if test -n "$libltdl_cv_shlibpath_var"; then
20148
20149cat >>confdefs.h <<_ACEOF
20150#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
20151_ACEOF
20152
20153fi
20154
20155
64ff59ba 20156{ echo "$as_me:$LINENO: checking for the default library search path" >&5
20157echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
d9898ee8 20158if test "${libltdl_cv_sys_search_path+set}" = set; then
20159 echo $ECHO_N "(cached) $ECHO_C" >&6
20160else
20161 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
20162fi
64ff59ba 20163{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
20164echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
d9898ee8 20165if test -n "$libltdl_cv_sys_search_path"; then
20166 sys_search_path=
20167 for dir in $libltdl_cv_sys_search_path; do
20168 if test -z "$sys_search_path"; then
20169 sys_search_path="$dir"
20170 else
20171 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
20172 fi
20173 done
20174
20175cat >>confdefs.h <<_ACEOF
20176#define LTDL_SYSSEARCHPATH "$sys_search_path"
20177_ACEOF
20178
20179fi
20180
64ff59ba 20181{ echo "$as_me:$LINENO: checking for objdir" >&5
20182echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
d9898ee8 20183if test "${libltdl_cv_objdir+set}" = set; then
20184 echo $ECHO_N "(cached) $ECHO_C" >&6
20185else
20186 libltdl_cv_objdir="$objdir"
20187 if test -n "$objdir"; then
20188 :
20189 else
20190 rm -f .libs 2>/dev/null
20191 mkdir .libs 2>/dev/null
20192 if test -d .libs; then
20193 libltdl_cv_objdir=.libs
20194 else
20195 # MS-DOS does not allow filenames that begin with a dot.
20196 libltdl_cv_objdir=_libs
20197 fi
20198 rmdir .libs 2>/dev/null
20199 fi
20200
20201fi
64ff59ba 20202{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
20203echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
d9898ee8 20204
20205cat >>confdefs.h <<_ACEOF
20206#define LTDL_OBJDIR "$libltdl_cv_objdir/"
20207_ACEOF
20208
20209
20210
64ff59ba 20211{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
20212echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
d9898ee8 20213if test "${libltdl_cv_preloaded_symbols+set}" = set; then
20214 echo $ECHO_N "(cached) $ECHO_C" >&6
20215else
20216 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20217 libltdl_cv_preloaded_symbols=yes
20218 else
20219 libltdl_cv_preloaded_symbols=no
20220 fi
20221
20222fi
64ff59ba 20223{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
20224echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
d9898ee8 20225if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20226
20227cat >>confdefs.h <<\_ACEOF
20228#define HAVE_PRELOADED_SYMBOLS 1
20229_ACEOF
20230
20231fi
20232
20233LIBADD_DL=
20234
20235ac_ext=c
20236ac_cpp='$CPP $CPPFLAGS'
20237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20239ac_compiler_gnu=$ac_cv_c_compiler_gnu
20240
20241
64ff59ba 20242{ echo "$as_me:$LINENO: checking for shl_load" >&5
20243echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
d9898ee8 20244if test "${ac_cv_func_shl_load+set}" = set; then
20245 echo $ECHO_N "(cached) $ECHO_C" >&6
20246else
20247 cat >conftest.$ac_ext <<_ACEOF
20248/* confdefs.h. */
20249_ACEOF
20250cat confdefs.h >>conftest.$ac_ext
20251cat >>conftest.$ac_ext <<_ACEOF
20252/* end confdefs.h. */
20253/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20255#define shl_load innocuous_shl_load
20256
20257/* System header to define __stub macros and hopefully few prototypes,
20258 which can conflict with char shl_load (); below.
20259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20260 <limits.h> exists even on freestanding compilers. */
20261
20262#ifdef __STDC__
20263# include <limits.h>
20264#else
20265# include <assert.h>
20266#endif
20267
20268#undef shl_load
20269
64ff59ba 20270/* Override any GCC internal prototype to avoid an error.
20271 Use char because int might match the return type of a GCC
20272 builtin and then its argument prototype would still apply. */
d9898ee8 20273#ifdef __cplusplus
20274extern "C"
d9898ee8 20275#endif
d9898ee8 20276char shl_load ();
20277/* The GNU C library defines this for functions which it implements
20278 to always fail with ENOSYS. Some functions are actually named
20279 something starting with __ and the normal name is an alias. */
64ff59ba 20280#if defined __stub_shl_load || defined __stub___shl_load
d9898ee8 20281choke me
d9898ee8 20282#endif
20283
20284int
20285main ()
20286{
64ff59ba 20287return shl_load ();
d9898ee8 20288 ;
20289 return 0;
20290}
20291_ACEOF
20292rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20293if { (ac_try="$ac_link"
20294case "(($ac_try" in
20295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20296 *) ac_try_echo=$ac_try;;
20297esac
20298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20299 (eval "$ac_link") 2>conftest.er1
d9898ee8 20300 ac_status=$?
20301 grep -v '^ *+' conftest.er1 >conftest.err
20302 rm -f conftest.er1
20303 cat conftest.err >&5
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20305 (exit $ac_status); } && {
20306 test -z "$ac_c_werror_flag" ||
20307 test ! -s conftest.err
20308 } && test -s conftest$ac_exeext &&
20309 $as_test_x conftest$ac_exeext; then
d9898ee8 20310 ac_cv_func_shl_load=yes
20311else
20312 echo "$as_me: failed program was:" >&5
20313sed 's/^/| /' conftest.$ac_ext >&5
20314
64ff59ba 20315 ac_cv_func_shl_load=no
d9898ee8 20316fi
64ff59ba 20317
20318rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20319 conftest$ac_exeext conftest.$ac_ext
20320fi
64ff59ba 20321{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20322echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
d9898ee8 20323if test $ac_cv_func_shl_load = yes; then
20324
20325cat >>confdefs.h <<\_ACEOF
20326#define HAVE_SHL_LOAD 1
20327_ACEOF
20328
20329else
64ff59ba 20330 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20331echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
d9898ee8 20332if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20333 echo $ECHO_N "(cached) $ECHO_C" >&6
20334else
20335 ac_check_lib_save_LIBS=$LIBS
20336LIBS="-ldld $LIBS"
20337cat >conftest.$ac_ext <<_ACEOF
20338/* confdefs.h. */
20339_ACEOF
20340cat confdefs.h >>conftest.$ac_ext
20341cat >>conftest.$ac_ext <<_ACEOF
20342/* end confdefs.h. */
20343
64ff59ba 20344/* Override any GCC internal prototype to avoid an error.
20345 Use char because int might match the return type of a GCC
20346 builtin and then its argument prototype would still apply. */
d9898ee8 20347#ifdef __cplusplus
20348extern "C"
20349#endif
d9898ee8 20350char shl_load ();
20351int
20352main ()
20353{
64ff59ba 20354return shl_load ();
d9898ee8 20355 ;
20356 return 0;
20357}
20358_ACEOF
20359rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20360if { (ac_try="$ac_link"
20361case "(($ac_try" in
20362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20363 *) ac_try_echo=$ac_try;;
20364esac
20365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20366 (eval "$ac_link") 2>conftest.er1
d9898ee8 20367 ac_status=$?
20368 grep -v '^ *+' conftest.er1 >conftest.err
20369 rm -f conftest.er1
20370 cat conftest.err >&5
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20372 (exit $ac_status); } && {
20373 test -z "$ac_c_werror_flag" ||
20374 test ! -s conftest.err
20375 } && test -s conftest$ac_exeext &&
20376 $as_test_x conftest$ac_exeext; then
d9898ee8 20377 ac_cv_lib_dld_shl_load=yes
20378else
20379 echo "$as_me: failed program was:" >&5
20380sed 's/^/| /' conftest.$ac_ext >&5
20381
64ff59ba 20382 ac_cv_lib_dld_shl_load=no
d9898ee8 20383fi
64ff59ba 20384
20385rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20386 conftest$ac_exeext conftest.$ac_ext
20387LIBS=$ac_check_lib_save_LIBS
20388fi
64ff59ba 20389{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20390echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
d9898ee8 20391if test $ac_cv_lib_dld_shl_load = yes; then
20392
20393cat >>confdefs.h <<\_ACEOF
20394#define HAVE_SHL_LOAD 1
20395_ACEOF
20396
20397 LIBADD_DL="$LIBADD_DL -ldld"
20398else
64ff59ba 20399 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20400echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 20401if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20402 echo $ECHO_N "(cached) $ECHO_C" >&6
20403else
20404 ac_check_lib_save_LIBS=$LIBS
20405LIBS="-ldl $LIBS"
20406cat >conftest.$ac_ext <<_ACEOF
20407/* confdefs.h. */
20408_ACEOF
20409cat confdefs.h >>conftest.$ac_ext
20410cat >>conftest.$ac_ext <<_ACEOF
20411/* end confdefs.h. */
20412
64ff59ba 20413/* Override any GCC internal prototype to avoid an error.
20414 Use char because int might match the return type of a GCC
20415 builtin and then its argument prototype would still apply. */
d9898ee8 20416#ifdef __cplusplus
20417extern "C"
20418#endif
d9898ee8 20419char dlopen ();
20420int
20421main ()
20422{
64ff59ba 20423return dlopen ();
d9898ee8 20424 ;
20425 return 0;
20426}
20427_ACEOF
20428rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20429if { (ac_try="$ac_link"
20430case "(($ac_try" in
20431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20432 *) ac_try_echo=$ac_try;;
20433esac
20434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20435 (eval "$ac_link") 2>conftest.er1
d9898ee8 20436 ac_status=$?
20437 grep -v '^ *+' conftest.er1 >conftest.err
20438 rm -f conftest.er1
20439 cat conftest.err >&5
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20441 (exit $ac_status); } && {
20442 test -z "$ac_c_werror_flag" ||
20443 test ! -s conftest.err
20444 } && test -s conftest$ac_exeext &&
20445 $as_test_x conftest$ac_exeext; then
d9898ee8 20446 ac_cv_lib_dl_dlopen=yes
20447else
20448 echo "$as_me: failed program was:" >&5
20449sed 's/^/| /' conftest.$ac_ext >&5
20450
64ff59ba 20451 ac_cv_lib_dl_dlopen=no
d9898ee8 20452fi
64ff59ba 20453
20454rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20455 conftest$ac_exeext conftest.$ac_ext
20456LIBS=$ac_check_lib_save_LIBS
20457fi
64ff59ba 20458{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20459echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 20460if test $ac_cv_lib_dl_dlopen = yes; then
20461
20462cat >>confdefs.h <<\_ACEOF
20463#define HAVE_LIBDL 1
20464_ACEOF
20465
20466 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
20467else
20468 cat >conftest.$ac_ext <<_ACEOF
20469/* confdefs.h. */
20470_ACEOF
20471cat confdefs.h >>conftest.$ac_ext
20472cat >>conftest.$ac_ext <<_ACEOF
20473/* end confdefs.h. */
20474#if HAVE_DLFCN_H
20475# include <dlfcn.h>
20476#endif
20477
20478int
20479main ()
20480{
20481dlopen(0, 0);
20482 ;
20483 return 0;
20484}
20485_ACEOF
20486rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20487if { (ac_try="$ac_link"
20488case "(($ac_try" in
20489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20490 *) ac_try_echo=$ac_try;;
20491esac
20492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20493 (eval "$ac_link") 2>conftest.er1
d9898ee8 20494 ac_status=$?
20495 grep -v '^ *+' conftest.er1 >conftest.err
20496 rm -f conftest.er1
20497 cat conftest.err >&5
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20499 (exit $ac_status); } && {
20500 test -z "$ac_c_werror_flag" ||
20501 test ! -s conftest.err
20502 } && test -s conftest$ac_exeext &&
20503 $as_test_x conftest$ac_exeext; then
d9898ee8 20504
20505cat >>confdefs.h <<\_ACEOF
20506#define HAVE_LIBDL 1
20507_ACEOF
20508 libltdl_cv_func_dlopen="yes"
20509else
20510 echo "$as_me: failed program was:" >&5
20511sed 's/^/| /' conftest.$ac_ext >&5
20512
64ff59ba 20513 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20514echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
d9898ee8 20515if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20516 echo $ECHO_N "(cached) $ECHO_C" >&6
20517else
20518 ac_check_lib_save_LIBS=$LIBS
20519LIBS="-lsvld $LIBS"
20520cat >conftest.$ac_ext <<_ACEOF
20521/* confdefs.h. */
20522_ACEOF
20523cat confdefs.h >>conftest.$ac_ext
20524cat >>conftest.$ac_ext <<_ACEOF
20525/* end confdefs.h. */
20526
64ff59ba 20527/* Override any GCC internal prototype to avoid an error.
20528 Use char because int might match the return type of a GCC
20529 builtin and then its argument prototype would still apply. */
d9898ee8 20530#ifdef __cplusplus
20531extern "C"
20532#endif
d9898ee8 20533char dlopen ();
20534int
20535main ()
20536{
64ff59ba 20537return dlopen ();
d9898ee8 20538 ;
20539 return 0;
20540}
20541_ACEOF
20542rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20543if { (ac_try="$ac_link"
20544case "(($ac_try" in
20545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20546 *) ac_try_echo=$ac_try;;
20547esac
20548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20549 (eval "$ac_link") 2>conftest.er1
d9898ee8 20550 ac_status=$?
20551 grep -v '^ *+' conftest.er1 >conftest.err
20552 rm -f conftest.er1
20553 cat conftest.err >&5
20554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20555 (exit $ac_status); } && {
20556 test -z "$ac_c_werror_flag" ||
20557 test ! -s conftest.err
20558 } && test -s conftest$ac_exeext &&
20559 $as_test_x conftest$ac_exeext; then
d9898ee8 20560 ac_cv_lib_svld_dlopen=yes
20561else
20562 echo "$as_me: failed program was:" >&5
20563sed 's/^/| /' conftest.$ac_ext >&5
20564
64ff59ba 20565 ac_cv_lib_svld_dlopen=no
d9898ee8 20566fi
64ff59ba 20567
20568rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20569 conftest$ac_exeext conftest.$ac_ext
20570LIBS=$ac_check_lib_save_LIBS
20571fi
64ff59ba 20572{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20573echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
d9898ee8 20574if test $ac_cv_lib_svld_dlopen = yes; then
20575
20576cat >>confdefs.h <<\_ACEOF
20577#define HAVE_LIBDL 1
20578_ACEOF
20579
20580 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
20581else
64ff59ba 20582 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20583echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
d9898ee8 20584if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20585 echo $ECHO_N "(cached) $ECHO_C" >&6
20586else
20587 ac_check_lib_save_LIBS=$LIBS
20588LIBS="-ldld $LIBS"
20589cat >conftest.$ac_ext <<_ACEOF
20590/* confdefs.h. */
20591_ACEOF
20592cat confdefs.h >>conftest.$ac_ext
20593cat >>conftest.$ac_ext <<_ACEOF
20594/* end confdefs.h. */
20595
64ff59ba 20596/* Override any GCC internal prototype to avoid an error.
20597 Use char because int might match the return type of a GCC
20598 builtin and then its argument prototype would still apply. */
d9898ee8 20599#ifdef __cplusplus
20600extern "C"
20601#endif
d9898ee8 20602char dld_link ();
20603int
20604main ()
20605{
64ff59ba 20606return dld_link ();
d9898ee8 20607 ;
20608 return 0;
20609}
20610_ACEOF
20611rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20612if { (ac_try="$ac_link"
20613case "(($ac_try" in
20614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20615 *) ac_try_echo=$ac_try;;
20616esac
20617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20618 (eval "$ac_link") 2>conftest.er1
d9898ee8 20619 ac_status=$?
20620 grep -v '^ *+' conftest.er1 >conftest.err
20621 rm -f conftest.er1
20622 cat conftest.err >&5
20623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20624 (exit $ac_status); } && {
20625 test -z "$ac_c_werror_flag" ||
20626 test ! -s conftest.err
20627 } && test -s conftest$ac_exeext &&
20628 $as_test_x conftest$ac_exeext; then
d9898ee8 20629 ac_cv_lib_dld_dld_link=yes
20630else
20631 echo "$as_me: failed program was:" >&5
20632sed 's/^/| /' conftest.$ac_ext >&5
20633
64ff59ba 20634 ac_cv_lib_dld_dld_link=no
d9898ee8 20635fi
64ff59ba 20636
20637rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20638 conftest$ac_exeext conftest.$ac_ext
20639LIBS=$ac_check_lib_save_LIBS
20640fi
64ff59ba 20641{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20642echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
d9898ee8 20643if test $ac_cv_lib_dld_dld_link = yes; then
20644
20645cat >>confdefs.h <<\_ACEOF
20646#define HAVE_DLD 1
20647_ACEOF
20648
20649 LIBADD_DL="$LIBADD_DL -ldld"
20650else
64ff59ba 20651 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
20652echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
d9898ee8 20653if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
20654 echo $ECHO_N "(cached) $ECHO_C" >&6
20655else
20656 cat >conftest.$ac_ext <<_ACEOF
20657/* confdefs.h. */
20658_ACEOF
20659cat confdefs.h >>conftest.$ac_ext
20660cat >>conftest.$ac_ext <<_ACEOF
20661/* end confdefs.h. */
20662/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
20663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20664#define _dyld_func_lookup innocuous__dyld_func_lookup
20665
20666/* System header to define __stub macros and hopefully few prototypes,
20667 which can conflict with char _dyld_func_lookup (); below.
20668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20669 <limits.h> exists even on freestanding compilers. */
20670
20671#ifdef __STDC__
20672# include <limits.h>
20673#else
20674# include <assert.h>
20675#endif
20676
20677#undef _dyld_func_lookup
20678
64ff59ba 20679/* Override any GCC internal prototype to avoid an error.
20680 Use char because int might match the return type of a GCC
20681 builtin and then its argument prototype would still apply. */
d9898ee8 20682#ifdef __cplusplus
20683extern "C"
d9898ee8 20684#endif
d9898ee8 20685char _dyld_func_lookup ();
20686/* The GNU C library defines this for functions which it implements
20687 to always fail with ENOSYS. Some functions are actually named
20688 something starting with __ and the normal name is an alias. */
64ff59ba 20689#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
d9898ee8 20690choke me
d9898ee8 20691#endif
20692
20693int
20694main ()
20695{
64ff59ba 20696return _dyld_func_lookup ();
d9898ee8 20697 ;
20698 return 0;
20699}
20700_ACEOF
20701rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20702if { (ac_try="$ac_link"
20703case "(($ac_try" in
20704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20705 *) ac_try_echo=$ac_try;;
20706esac
20707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20708 (eval "$ac_link") 2>conftest.er1
d9898ee8 20709 ac_status=$?
20710 grep -v '^ *+' conftest.er1 >conftest.err
20711 rm -f conftest.er1
20712 cat conftest.err >&5
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20714 (exit $ac_status); } && {
20715 test -z "$ac_c_werror_flag" ||
20716 test ! -s conftest.err
20717 } && test -s conftest$ac_exeext &&
20718 $as_test_x conftest$ac_exeext; then
d9898ee8 20719 ac_cv_func__dyld_func_lookup=yes
20720else
20721 echo "$as_me: failed program was:" >&5
20722sed 's/^/| /' conftest.$ac_ext >&5
20723
64ff59ba 20724 ac_cv_func__dyld_func_lookup=no
d9898ee8 20725fi
64ff59ba 20726
20727rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20728 conftest$ac_exeext conftest.$ac_ext
20729fi
64ff59ba 20730{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
20731echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
d9898ee8 20732if test $ac_cv_func__dyld_func_lookup = yes; then
20733
20734cat >>confdefs.h <<\_ACEOF
20735#define HAVE_DYLD 1
20736_ACEOF
20737
20738fi
20739
20740
20741fi
20742
20743
20744fi
20745
20746
20747fi
64ff59ba 20748
20749rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20750 conftest$ac_exeext conftest.$ac_ext
20751
20752fi
20753
20754
20755fi
20756
20757
20758fi
20759
20760
20761if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20762then
20763 lt_save_LIBS="$LIBS"
20764 LIBS="$LIBS $LIBADD_DL"
20765
20766for ac_func in dlerror
20767do
20768as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64ff59ba 20769{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20770echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20771if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 20772 echo $ECHO_N "(cached) $ECHO_C" >&6
20773else
20774 cat >conftest.$ac_ext <<_ACEOF
20775/* confdefs.h. */
20776_ACEOF
20777cat confdefs.h >>conftest.$ac_ext
20778cat >>conftest.$ac_ext <<_ACEOF
20779/* end confdefs.h. */
20780/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20782#define $ac_func innocuous_$ac_func
20783
20784/* System header to define __stub macros and hopefully few prototypes,
20785 which can conflict with char $ac_func (); below.
20786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20787 <limits.h> exists even on freestanding compilers. */
20788
20789#ifdef __STDC__
20790# include <limits.h>
20791#else
20792# include <assert.h>
20793#endif
20794
20795#undef $ac_func
20796
64ff59ba 20797/* Override any GCC internal prototype to avoid an error.
20798 Use char because int might match the return type of a GCC
20799 builtin and then its argument prototype would still apply. */
d9898ee8 20800#ifdef __cplusplus
20801extern "C"
d9898ee8 20802#endif
d9898ee8 20803char $ac_func ();
20804/* The GNU C library defines this for functions which it implements
20805 to always fail with ENOSYS. Some functions are actually named
20806 something starting with __ and the normal name is an alias. */
64ff59ba 20807#if defined __stub_$ac_func || defined __stub___$ac_func
d9898ee8 20808choke me
d9898ee8 20809#endif
20810
20811int
20812main ()
20813{
64ff59ba 20814return $ac_func ();
d9898ee8 20815 ;
20816 return 0;
20817}
20818_ACEOF
20819rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20820if { (ac_try="$ac_link"
20821case "(($ac_try" in
20822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20823 *) ac_try_echo=$ac_try;;
20824esac
20825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20826 (eval "$ac_link") 2>conftest.er1
d9898ee8 20827 ac_status=$?
20828 grep -v '^ *+' conftest.er1 >conftest.err
20829 rm -f conftest.er1
20830 cat conftest.err >&5
20831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20832 (exit $ac_status); } && {
20833 test -z "$ac_c_werror_flag" ||
20834 test ! -s conftest.err
20835 } && test -s conftest$ac_exeext &&
20836 $as_test_x conftest$ac_exeext; then
d9898ee8 20837 eval "$as_ac_var=yes"
20838else
20839 echo "$as_me: failed program was:" >&5
20840sed 's/^/| /' conftest.$ac_ext >&5
20841
64ff59ba 20842 eval "$as_ac_var=no"
d9898ee8 20843fi
64ff59ba 20844
20845rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20846 conftest$ac_exeext conftest.$ac_ext
20847fi
64ff59ba 20848ac_res=`eval echo '${'$as_ac_var'}'`
20849 { echo "$as_me:$LINENO: result: $ac_res" >&5
20850echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 20851if test `eval echo '${'$as_ac_var'}'` = yes; then
20852 cat >>confdefs.h <<_ACEOF
20853#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20854_ACEOF
20855
20856fi
20857done
20858
20859 LIBS="$lt_save_LIBS"
20860fi
20861ac_ext=c
20862ac_cpp='$CPP $CPPFLAGS'
20863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20865ac_compiler_gnu=$ac_cv_c_compiler_gnu
20866
20867
20868
64ff59ba 20869{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
20870echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
d9898ee8 20871if test "${ac_cv_sys_symbol_underscore+set}" = set; then
20872 echo $ECHO_N "(cached) $ECHO_C" >&6
20873else
20874 ac_cv_sys_symbol_underscore=no
20875 cat > conftest.$ac_ext <<EOF
20876void nm_test_func(){}
20877int main(){nm_test_func;return 0;}
20878EOF
20879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20880 (eval $ac_compile) 2>&5
20881 ac_status=$?
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); }; then
20884 # Now try to grab the symbols.
20885 ac_nlist=conftest.nm
20886 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
20887 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20888 ac_status=$?
20889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890 (exit $ac_status); } && test -s "$ac_nlist"; then
20891 # See whether the symbols have a leading underscore.
20892 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20893 ac_cv_sys_symbol_underscore=yes
20894 else
20895 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20896 :
20897 else
20898 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20899 fi
20900 fi
20901 else
20902 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20903 fi
20904 else
20905 echo "configure: failed program was:" >&5
20906 cat conftest.c >&5
20907 fi
20908 rm -rf conftest*
20909
20910fi
64ff59ba 20911{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
20912echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
d9898ee8 20913
20914
20915if test x"$ac_cv_sys_symbol_underscore" = xyes; then
20916 if test x"$libltdl_cv_func_dlopen" = xyes ||
20917 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
64ff59ba 20918 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
20919echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
d9898ee8 20920if test "${libltdl_cv_need_uscore+set}" = set; then
20921 echo $ECHO_N "(cached) $ECHO_C" >&6
20922else
20923 libltdl_cv_need_uscore=unknown
20924 save_LIBS="$LIBS"
20925 LIBS="$LIBS $LIBADD_DL"
20926 if test "$cross_compiling" = yes; then :
20927 libltdl_cv_need_uscore=cross
20928else
20929 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20930 lt_status=$lt_dlunknown
20931 cat > conftest.$ac_ext <<EOF
0fde1ce3 20932#line 20932 "configure"
d9898ee8 20933#include "confdefs.h"
20934
20935#if HAVE_DLFCN_H
20936#include <dlfcn.h>
20937#endif
20938
20939#include <stdio.h>
20940
20941#ifdef RTLD_GLOBAL
20942# define LT_DLGLOBAL RTLD_GLOBAL
20943#else
20944# ifdef DL_GLOBAL
20945# define LT_DLGLOBAL DL_GLOBAL
20946# else
20947# define LT_DLGLOBAL 0
20948# endif
20949#endif
20950
20951/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20952 find out it does not work in some platform. */
20953#ifndef LT_DLLAZY_OR_NOW
20954# ifdef RTLD_LAZY
20955# define LT_DLLAZY_OR_NOW RTLD_LAZY
20956# else
20957# ifdef DL_LAZY
20958# define LT_DLLAZY_OR_NOW DL_LAZY
20959# else
20960# ifdef RTLD_NOW
20961# define LT_DLLAZY_OR_NOW RTLD_NOW
20962# else
20963# ifdef DL_NOW
20964# define LT_DLLAZY_OR_NOW DL_NOW
20965# else
20966# define LT_DLLAZY_OR_NOW 0
20967# endif
20968# endif
20969# endif
20970# endif
20971#endif
20972
20973#ifdef __cplusplus
20974extern "C" void exit (int);
20975#endif
20976
20977void fnord() { int i=42;}
20978int main ()
20979{
20980 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20981 int status = $lt_dlunknown;
20982
20983 if (self)
20984 {
20985 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20986 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20987 /* dlclose (self); */
20988 }
20989 else
20990 puts (dlerror ());
20991
20992 exit (status);
20993}
20994EOF
20995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20996 (eval $ac_link) 2>&5
20997 ac_status=$?
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21000 (./conftest; exit; ) >&5 2>/dev/null
21001 lt_status=$?
21002 case x$lt_status in
21003 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
21004 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
21005 x$lt_dlunknown|x*) ;;
21006 esac
21007 else :
21008 # compilation failed
21009
21010 fi
21011fi
21012rm -fr conftest*
21013
21014 LIBS="$save_LIBS"
21015
21016fi
64ff59ba 21017{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
21018echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
d9898ee8 21019 fi
21020fi
21021
21022if test x"$libltdl_cv_need_uscore" = xyes; then
21023
21024cat >>confdefs.h <<\_ACEOF
21025#define NEED_USCORE 1
21026_ACEOF
21027
21028fi
21029
21030
64ff59ba 21031{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
21032echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
d9898ee8 21033if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
21034 echo $ECHO_N "(cached) $ECHO_C" >&6
21035else
21036 # PORTME does your system automatically load deplibs for dlopen?
21037 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21038 # For now, we just catch OSes we know something about -- in the
21039 # future, we'll try test this programmatically.
21040 libltdl_cv_sys_dlopen_deplibs=unknown
21041 case "$host_os" in
21042 aix3*|aix4.1.*|aix4.2.*)
21043 # Unknown whether this is true for these versions of AIX, but
21044 # we want this `case' here to explicitly catch those versions.
21045 libltdl_cv_sys_dlopen_deplibs=unknown
21046 ;;
21047 aix[45]*)
21048 libltdl_cv_sys_dlopen_deplibs=yes
21049 ;;
21050 darwin*)
21051 # Assuming the user has installed a libdl from somewhere, this is true
21052 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21053 libltdl_cv_sys_dlopen_deplibs=yes
21054 ;;
0fde1ce3 21055 freebsd* | dragonfly*)
21056 libltdl_cv_sys_dlopen_deplibs=yes
21057 ;;
21058 gnu* | linux* | k*bsd*-gnu)
d9898ee8 21059 # GNU and its variants, using gnu ld.so (Glibc)
21060 libltdl_cv_sys_dlopen_deplibs=yes
21061 ;;
21062 hpux10*|hpux11*)
21063 libltdl_cv_sys_dlopen_deplibs=yes
21064 ;;
21065 interix*)
21066 libltdl_cv_sys_dlopen_deplibs=yes
21067 ;;
21068 irix[12345]*|irix6.[01]*)
21069 # Catch all versions of IRIX before 6.2, and indicate that we don't
21070 # know how it worked for any of those versions.
21071 libltdl_cv_sys_dlopen_deplibs=unknown
21072 ;;
21073 irix*)
21074 # The case above catches anything before 6.2, and it's known that
21075 # at 6.2 and later dlopen does load deplibs.
21076 libltdl_cv_sys_dlopen_deplibs=yes
21077 ;;
21078 netbsd*)
21079 libltdl_cv_sys_dlopen_deplibs=yes
21080 ;;
21081 openbsd*)
21082 libltdl_cv_sys_dlopen_deplibs=yes
21083 ;;
21084 osf[1234]*)
21085 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21086 # it did *not* use an RPATH in a shared library to find objects the
21087 # library depends on, so we explictly say `no'.
21088 libltdl_cv_sys_dlopen_deplibs=no
21089 ;;
21090 osf5.0|osf5.0a|osf5.1)
21091 # dlopen *does* load deplibs and with the right loader patch applied
21092 # it even uses RPATH in a shared library to search for shared objects
21093 # that the library depends on, but there's no easy way to know if that
21094 # patch is installed. Since this is the case, all we can really
21095 # say is unknown -- it depends on the patch being installed. If
21096 # it is, this changes to `yes'. Without it, it would be `no'.
21097 libltdl_cv_sys_dlopen_deplibs=unknown
21098 ;;
21099 osf*)
21100 # the two cases above should catch all versions of osf <= 5.1. Read
21101 # the comments above for what we know about them.
21102 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21103 # is used to find them so we can finally say `yes'.
21104 libltdl_cv_sys_dlopen_deplibs=yes
21105 ;;
21106 solaris*)
21107 libltdl_cv_sys_dlopen_deplibs=yes
21108 ;;
21109 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21110 libltdl_cv_sys_dlopen_deplibs=yes
21111 ;;
21112 esac
21113
21114fi
64ff59ba 21115{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
21116echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
d9898ee8 21117if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
21118
21119cat >>confdefs.h <<\_ACEOF
21120#define LTDL_DLOPEN_DEPLIBS 1
21121_ACEOF
21122
21123fi
21124
21125
21126for ac_header in argz.h
21127do
21128as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 21129if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21130 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21131echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21132if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 21133 echo $ECHO_N "(cached) $ECHO_C" >&6
21134fi
64ff59ba 21135ac_res=`eval echo '${'$as_ac_Header'}'`
21136 { echo "$as_me:$LINENO: result: $ac_res" >&5
21137echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 21138else
21139 # Is the header compilable?
64ff59ba 21140{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21141echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 21142cat >conftest.$ac_ext <<_ACEOF
21143/* confdefs.h. */
21144_ACEOF
21145cat confdefs.h >>conftest.$ac_ext
21146cat >>conftest.$ac_ext <<_ACEOF
21147/* end confdefs.h. */
21148$ac_includes_default
21149#include <$ac_header>
21150_ACEOF
21151rm -f conftest.$ac_objext
64ff59ba 21152if { (ac_try="$ac_compile"
21153case "(($ac_try" in
21154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21155 *) ac_try_echo=$ac_try;;
21156esac
21157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21158 (eval "$ac_compile") 2>conftest.er1
d9898ee8 21159 ac_status=$?
21160 grep -v '^ *+' conftest.er1 >conftest.err
21161 rm -f conftest.er1
21162 cat conftest.err >&5
21163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 21164 (exit $ac_status); } && {
21165 test -z "$ac_c_werror_flag" ||
21166 test ! -s conftest.err
21167 } && test -s conftest.$ac_objext; then
d9898ee8 21168 ac_header_compiler=yes
21169else
21170 echo "$as_me: failed program was:" >&5
21171sed 's/^/| /' conftest.$ac_ext >&5
21172
64ff59ba 21173 ac_header_compiler=no
d9898ee8 21174fi
64ff59ba 21175
21176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21177{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21178echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 21179
21180# Is the header present?
64ff59ba 21181{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21182echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 21183cat >conftest.$ac_ext <<_ACEOF
21184/* confdefs.h. */
21185_ACEOF
21186cat confdefs.h >>conftest.$ac_ext
21187cat >>conftest.$ac_ext <<_ACEOF
21188/* end confdefs.h. */
21189#include <$ac_header>
21190_ACEOF
64ff59ba 21191if { (ac_try="$ac_cpp conftest.$ac_ext"
21192case "(($ac_try" in
21193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21194 *) ac_try_echo=$ac_try;;
21195esac
21196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 21198 ac_status=$?
21199 grep -v '^ *+' conftest.er1 >conftest.err
21200 rm -f conftest.er1
21201 cat conftest.err >&5
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 21203 (exit $ac_status); } >/dev/null && {
21204 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21205 test ! -s conftest.err
21206 }; then
d9898ee8 21207 ac_header_preproc=yes
21208else
21209 echo "$as_me: failed program was:" >&5
21210sed 's/^/| /' conftest.$ac_ext >&5
21211
21212 ac_header_preproc=no
21213fi
64ff59ba 21214
d9898ee8 21215rm -f conftest.err conftest.$ac_ext
64ff59ba 21216{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21217echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 21218
21219# So? What about this header?
21220case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21221 yes:no: )
21222 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21223echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21225echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21226 ac_header_preproc=yes
21227 ;;
21228 no:yes:* )
21229 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21230echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21231 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21232echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21233 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21234echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21235 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21236echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21238echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21239 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21240echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64ff59ba 21241 ( cat <<\_ASBOX
d9898ee8 21242## ---------------------------------- ##
21243## Report this to bug-libtool@gnu.org ##
21244## ---------------------------------- ##
21245_ASBOX
64ff59ba 21246 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 21247 ;;
21248esac
64ff59ba 21249{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21250echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21251if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 21252 echo $ECHO_N "(cached) $ECHO_C" >&6
21253else
21254 eval "$as_ac_Header=\$ac_header_preproc"
21255fi
64ff59ba 21256ac_res=`eval echo '${'$as_ac_Header'}'`
21257 { echo "$as_me:$LINENO: result: $ac_res" >&5
21258echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 21259
21260fi
21261if test `eval echo '${'$as_ac_Header'}'` = yes; then
21262 cat >>confdefs.h <<_ACEOF
21263#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21264_ACEOF
21265
21266fi
21267
21268done
21269
21270
64ff59ba 21271{ echo "$as_me:$LINENO: checking for error_t" >&5
21272echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
d9898ee8 21273if test "${ac_cv_type_error_t+set}" = set; then
21274 echo $ECHO_N "(cached) $ECHO_C" >&6
21275else
21276 cat >conftest.$ac_ext <<_ACEOF
21277/* confdefs.h. */
21278_ACEOF
21279cat confdefs.h >>conftest.$ac_ext
21280cat >>conftest.$ac_ext <<_ACEOF
21281/* end confdefs.h. */
21282#if HAVE_ARGZ_H
21283# include <argz.h>
21284#endif
21285
64ff59ba 21286typedef error_t ac__type_new_;
d9898ee8 21287int
21288main ()
21289{
64ff59ba 21290if ((ac__type_new_ *) 0)
d9898ee8 21291 return 0;
64ff59ba 21292if (sizeof (ac__type_new_))
d9898ee8 21293 return 0;
21294 ;
21295 return 0;
21296}
21297_ACEOF
21298rm -f conftest.$ac_objext
64ff59ba 21299if { (ac_try="$ac_compile"
21300case "(($ac_try" in
21301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21302 *) ac_try_echo=$ac_try;;
21303esac
21304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21305 (eval "$ac_compile") 2>conftest.er1
d9898ee8 21306 ac_status=$?
21307 grep -v '^ *+' conftest.er1 >conftest.err
21308 rm -f conftest.er1
21309 cat conftest.err >&5
21310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 21311 (exit $ac_status); } && {
21312 test -z "$ac_c_werror_flag" ||
21313 test ! -s conftest.err
21314 } && test -s conftest.$ac_objext; then
d9898ee8 21315 ac_cv_type_error_t=yes
21316else
21317 echo "$as_me: failed program was:" >&5
21318sed 's/^/| /' conftest.$ac_ext >&5
21319
64ff59ba 21320 ac_cv_type_error_t=no
d9898ee8 21321fi
64ff59ba 21322
21323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 21324fi
64ff59ba 21325{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
21326echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
d9898ee8 21327if test $ac_cv_type_error_t = yes; then
21328
21329cat >>confdefs.h <<_ACEOF
21330#define HAVE_ERROR_T 1
21331_ACEOF
21332
21333
21334else
21335
21336cat >>confdefs.h <<\_ACEOF
21337#define error_t int
21338_ACEOF
21339
21340fi
21341
21342
21343
21344
21345
21346
21347
21348for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
21349do
21350as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64ff59ba 21351{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21352echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21353if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 21354 echo $ECHO_N "(cached) $ECHO_C" >&6
21355else
21356 cat >conftest.$ac_ext <<_ACEOF
21357/* confdefs.h. */
21358_ACEOF
21359cat confdefs.h >>conftest.$ac_ext
21360cat >>conftest.$ac_ext <<_ACEOF
21361/* end confdefs.h. */
21362/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21364#define $ac_func innocuous_$ac_func
21365
21366/* System header to define __stub macros and hopefully few prototypes,
21367 which can conflict with char $ac_func (); below.
21368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21369 <limits.h> exists even on freestanding compilers. */
21370
21371#ifdef __STDC__
21372# include <limits.h>
21373#else
21374# include <assert.h>
21375#endif
21376
21377#undef $ac_func
21378
64ff59ba 21379/* Override any GCC internal prototype to avoid an error.
21380 Use char because int might match the return type of a GCC
21381 builtin and then its argument prototype would still apply. */
d9898ee8 21382#ifdef __cplusplus
21383extern "C"
d9898ee8 21384#endif
d9898ee8 21385char $ac_func ();
21386/* The GNU C library defines this for functions which it implements
21387 to always fail with ENOSYS. Some functions are actually named
21388 something starting with __ and the normal name is an alias. */
64ff59ba 21389#if defined __stub_$ac_func || defined __stub___$ac_func
d9898ee8 21390choke me
d9898ee8 21391#endif
21392
21393int
21394main ()
21395{
64ff59ba 21396return $ac_func ();
d9898ee8 21397 ;
21398 return 0;
21399}
21400_ACEOF
21401rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 21402if { (ac_try="$ac_link"
21403case "(($ac_try" in
21404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21405 *) ac_try_echo=$ac_try;;
21406esac
21407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21408 (eval "$ac_link") 2>conftest.er1
d9898ee8 21409 ac_status=$?
21410 grep -v '^ *+' conftest.er1 >conftest.err
21411 rm -f conftest.er1
21412 cat conftest.err >&5
21413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 21414 (exit $ac_status); } && {
21415 test -z "$ac_c_werror_flag" ||
21416 test ! -s conftest.err
21417 } && test -s conftest$ac_exeext &&
21418 $as_test_x conftest$ac_exeext; then
d9898ee8 21419 eval "$as_ac_var=yes"
21420else
21421 echo "$as_me: failed program was:" >&5
21422sed 's/^/| /' conftest.$ac_ext >&5
21423
64ff59ba 21424 eval "$as_ac_var=no"
d9898ee8 21425fi
64ff59ba 21426
21427rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 21428 conftest$ac_exeext conftest.$ac_ext
21429fi
64ff59ba 21430ac_res=`eval echo '${'$as_ac_var'}'`
21431 { echo "$as_me:$LINENO: result: $ac_res" >&5
21432echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 21433if test `eval echo '${'$as_ac_var'}'` = yes; then
21434 cat >>confdefs.h <<_ACEOF
21435#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21436_ACEOF
21437
21438fi
21439done
21440
21441
21442
21443
21444
21445
21446
21447
21448
21449
21450
21451
21452
21453
21454
21455
21456
21457
21458
21459
21460
21461
21462
21463
21464
21465
21466
21467
21468for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
21469 stdio.h unistd.h
21470do
21471as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 21472if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21474echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21475if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 21476 echo $ECHO_N "(cached) $ECHO_C" >&6
21477fi
64ff59ba 21478ac_res=`eval echo '${'$as_ac_Header'}'`
21479 { echo "$as_me:$LINENO: result: $ac_res" >&5
21480echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 21481else
21482 # Is the header compilable?
64ff59ba 21483{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21484echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 21485cat >conftest.$ac_ext <<_ACEOF
21486/* confdefs.h. */
21487_ACEOF
21488cat confdefs.h >>conftest.$ac_ext
21489cat >>conftest.$ac_ext <<_ACEOF
21490/* end confdefs.h. */
21491$ac_includes_default
21492#include <$ac_header>
21493_ACEOF
21494rm -f conftest.$ac_objext
64ff59ba 21495if { (ac_try="$ac_compile"
21496case "(($ac_try" in
21497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21498 *) ac_try_echo=$ac_try;;
21499esac
21500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21501 (eval "$ac_compile") 2>conftest.er1
d9898ee8 21502 ac_status=$?
21503 grep -v '^ *+' conftest.er1 >conftest.err
21504 rm -f conftest.er1
21505 cat conftest.err >&5
21506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 21507 (exit $ac_status); } && {
21508 test -z "$ac_c_werror_flag" ||
21509 test ! -s conftest.err
21510 } && test -s conftest.$ac_objext; then
d9898ee8 21511 ac_header_compiler=yes
21512else
21513 echo "$as_me: failed program was:" >&5
21514sed 's/^/| /' conftest.$ac_ext >&5
21515
64ff59ba 21516 ac_header_compiler=no
d9898ee8 21517fi
64ff59ba 21518
21519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21520{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21521echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 21522
21523# Is the header present?
64ff59ba 21524{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21525echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 21526cat >conftest.$ac_ext <<_ACEOF
21527/* confdefs.h. */
21528_ACEOF
21529cat confdefs.h >>conftest.$ac_ext
21530cat >>conftest.$ac_ext <<_ACEOF
21531/* end confdefs.h. */
21532#include <$ac_header>
21533_ACEOF
64ff59ba 21534if { (ac_try="$ac_cpp conftest.$ac_ext"
21535case "(($ac_try" in
21536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21537 *) ac_try_echo=$ac_try;;
21538esac
21539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 21541 ac_status=$?
21542 grep -v '^ *+' conftest.er1 >conftest.err
21543 rm -f conftest.er1
21544 cat conftest.err >&5
21545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 21546 (exit $ac_status); } >/dev/null && {
21547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21548 test ! -s conftest.err
21549 }; then
d9898ee8 21550 ac_header_preproc=yes
21551else
21552 echo "$as_me: failed program was:" >&5
21553sed 's/^/| /' conftest.$ac_ext >&5
21554
21555 ac_header_preproc=no
21556fi
64ff59ba 21557
d9898ee8 21558rm -f conftest.err conftest.$ac_ext
64ff59ba 21559{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21560echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 21561
21562# So? What about this header?
21563case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21564 yes:no: )
21565 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21566echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21568echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21569 ac_header_preproc=yes
21570 ;;
21571 no:yes:* )
21572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21573echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21575echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21576 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21577echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21578 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21579echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21581echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21582 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21583echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64ff59ba 21584 ( cat <<\_ASBOX
d9898ee8 21585## ---------------------------------- ##
21586## Report this to bug-libtool@gnu.org ##
21587## ---------------------------------- ##
21588_ASBOX
64ff59ba 21589 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 21590 ;;
21591esac
64ff59ba 21592{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21593echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21594if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 21595 echo $ECHO_N "(cached) $ECHO_C" >&6
21596else
21597 eval "$as_ac_Header=\$ac_header_preproc"
21598fi
64ff59ba 21599ac_res=`eval echo '${'$as_ac_Header'}'`
21600 { echo "$as_me:$LINENO: result: $ac_res" >&5
21601echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 21602
21603fi
21604if test `eval echo '${'$as_ac_Header'}'` = yes; then
21605 cat >>confdefs.h <<_ACEOF
21606#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21607_ACEOF
21608
21609fi
21610
21611done
21612
21613
21614
21615
21616
21617for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
21618do
21619as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 21620if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21621 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21622echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21623if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 21624 echo $ECHO_N "(cached) $ECHO_C" >&6
21625fi
64ff59ba 21626ac_res=`eval echo '${'$as_ac_Header'}'`
21627 { echo "$as_me:$LINENO: result: $ac_res" >&5
21628echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 21629else
21630 # Is the header compilable?
64ff59ba 21631{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21632echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 21633cat >conftest.$ac_ext <<_ACEOF
21634/* confdefs.h. */
21635_ACEOF
21636cat confdefs.h >>conftest.$ac_ext
21637cat >>conftest.$ac_ext <<_ACEOF
21638/* end confdefs.h. */
21639$ac_includes_default
21640#include <$ac_header>
21641_ACEOF
21642rm -f conftest.$ac_objext
64ff59ba 21643if { (ac_try="$ac_compile"
21644case "(($ac_try" in
21645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21646 *) ac_try_echo=$ac_try;;
21647esac
21648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21649 (eval "$ac_compile") 2>conftest.er1
d9898ee8 21650 ac_status=$?
21651 grep -v '^ *+' conftest.er1 >conftest.err
21652 rm -f conftest.er1
21653 cat conftest.err >&5
21654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 21655 (exit $ac_status); } && {
21656 test -z "$ac_c_werror_flag" ||
21657 test ! -s conftest.err
21658 } && test -s conftest.$ac_objext; then
d9898ee8 21659 ac_header_compiler=yes
21660else
21661 echo "$as_me: failed program was:" >&5
21662sed 's/^/| /' conftest.$ac_ext >&5
21663
64ff59ba 21664 ac_header_compiler=no
d9898ee8 21665fi
64ff59ba 21666
21667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21668{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21669echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 21670
21671# Is the header present?
64ff59ba 21672{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21673echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 21674cat >conftest.$ac_ext <<_ACEOF
21675/* confdefs.h. */
21676_ACEOF
21677cat confdefs.h >>conftest.$ac_ext
21678cat >>conftest.$ac_ext <<_ACEOF
21679/* end confdefs.h. */
21680#include <$ac_header>
21681_ACEOF
64ff59ba 21682if { (ac_try="$ac_cpp conftest.$ac_ext"
21683case "(($ac_try" in
21684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21685 *) ac_try_echo=$ac_try;;
21686esac
21687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 21689 ac_status=$?
21690 grep -v '^ *+' conftest.er1 >conftest.err
21691 rm -f conftest.er1
21692 cat conftest.err >&5
21693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 21694 (exit $ac_status); } >/dev/null && {
21695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21696 test ! -s conftest.err
21697 }; then
d9898ee8 21698 ac_header_preproc=yes
21699else
21700 echo "$as_me: failed program was:" >&5
21701sed 's/^/| /' conftest.$ac_ext >&5
21702
21703 ac_header_preproc=no
21704fi
64ff59ba 21705
d9898ee8 21706rm -f conftest.err conftest.$ac_ext
64ff59ba 21707{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21708echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 21709
21710# So? What about this header?
21711case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21712 yes:no: )
21713 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21714echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21716echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21717 ac_header_preproc=yes
21718 ;;
21719 no:yes:* )
21720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21721echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21723echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21724 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21725echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21726 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21727echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21729echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21730 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21731echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64ff59ba 21732 ( cat <<\_ASBOX
d9898ee8 21733## ---------------------------------- ##
21734## Report this to bug-libtool@gnu.org ##
21735## ---------------------------------- ##
21736_ASBOX
64ff59ba 21737 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 21738 ;;
21739esac
64ff59ba 21740{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21741echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21742if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 21743 echo $ECHO_N "(cached) $ECHO_C" >&6
21744else
21745 eval "$as_ac_Header=\$ac_header_preproc"
21746fi
64ff59ba 21747ac_res=`eval echo '${'$as_ac_Header'}'`
21748 { echo "$as_me:$LINENO: result: $ac_res" >&5
21749echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 21750
21751fi
21752if test `eval echo '${'$as_ac_Header'}'` = yes; then
21753 cat >>confdefs.h <<_ACEOF
21754#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21755_ACEOF
21756
21757fi
21758
21759done
21760
21761
21762
21763for ac_header in string.h strings.h
21764do
21765as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 21766if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21768echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21769if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 21770 echo $ECHO_N "(cached) $ECHO_C" >&6
21771fi
64ff59ba 21772ac_res=`eval echo '${'$as_ac_Header'}'`
21773 { echo "$as_me:$LINENO: result: $ac_res" >&5
21774echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 21775else
21776 # Is the header compilable?
64ff59ba 21777{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21778echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 21779cat >conftest.$ac_ext <<_ACEOF
21780/* confdefs.h. */
21781_ACEOF
21782cat confdefs.h >>conftest.$ac_ext
21783cat >>conftest.$ac_ext <<_ACEOF
21784/* end confdefs.h. */
21785$ac_includes_default
21786#include <$ac_header>
21787_ACEOF
21788rm -f conftest.$ac_objext
64ff59ba 21789if { (ac_try="$ac_compile"
21790case "(($ac_try" in
21791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21792 *) ac_try_echo=$ac_try;;
21793esac
21794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21795 (eval "$ac_compile") 2>conftest.er1
d9898ee8 21796 ac_status=$?
21797 grep -v '^ *+' conftest.er1 >conftest.err
21798 rm -f conftest.er1
21799 cat conftest.err >&5
21800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 21801 (exit $ac_status); } && {
21802 test -z "$ac_c_werror_flag" ||
21803 test ! -s conftest.err
21804 } && test -s conftest.$ac_objext; then
d9898ee8 21805 ac_header_compiler=yes
21806else
21807 echo "$as_me: failed program was:" >&5
21808sed 's/^/| /' conftest.$ac_ext >&5
21809
64ff59ba 21810 ac_header_compiler=no
d9898ee8 21811fi
64ff59ba 21812
21813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21814{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21815echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 21816
21817# Is the header present?
64ff59ba 21818{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21819echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 21820cat >conftest.$ac_ext <<_ACEOF
21821/* confdefs.h. */
21822_ACEOF
21823cat confdefs.h >>conftest.$ac_ext
21824cat >>conftest.$ac_ext <<_ACEOF
21825/* end confdefs.h. */
21826#include <$ac_header>
21827_ACEOF
64ff59ba 21828if { (ac_try="$ac_cpp conftest.$ac_ext"
21829case "(($ac_try" in
21830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21831 *) ac_try_echo=$ac_try;;
21832esac
21833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 21835 ac_status=$?
21836 grep -v '^ *+' conftest.er1 >conftest.err
21837 rm -f conftest.er1
21838 cat conftest.err >&5
21839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 21840 (exit $ac_status); } >/dev/null && {
21841 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21842 test ! -s conftest.err
21843 }; then
d9898ee8 21844 ac_header_preproc=yes
21845else
21846 echo "$as_me: failed program was:" >&5
21847sed 's/^/| /' conftest.$ac_ext >&5
21848
21849 ac_header_preproc=no
21850fi
64ff59ba 21851
d9898ee8 21852rm -f conftest.err conftest.$ac_ext
64ff59ba 21853{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21854echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 21855
21856# So? What about this header?
21857case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21858 yes:no: )
21859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21860echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21862echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21863 ac_header_preproc=yes
21864 ;;
21865 no:yes:* )
21866 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21867echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21868 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21869echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21870 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21871echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21872 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21873echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21875echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21876 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21877echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64ff59ba 21878 ( cat <<\_ASBOX
d9898ee8 21879## ---------------------------------- ##
21880## Report this to bug-libtool@gnu.org ##
21881## ---------------------------------- ##
21882_ASBOX
64ff59ba 21883 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 21884 ;;
21885esac
64ff59ba 21886{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21887echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21888if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 21889 echo $ECHO_N "(cached) $ECHO_C" >&6
21890else
21891 eval "$as_ac_Header=\$ac_header_preproc"
21892fi
64ff59ba 21893ac_res=`eval echo '${'$as_ac_Header'}'`
21894 { echo "$as_me:$LINENO: result: $ac_res" >&5
21895echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 21896
21897fi
21898if test `eval echo '${'$as_ac_Header'}'` = yes; then
21899 cat >>confdefs.h <<_ACEOF
21900#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21901_ACEOF
21902 break
21903fi
21904
21905done
21906
21907
21908
21909
21910for ac_func in strchr index
21911do
21912as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64ff59ba 21913{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21914echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21915if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 21916 echo $ECHO_N "(cached) $ECHO_C" >&6
21917else
21918 cat >conftest.$ac_ext <<_ACEOF
21919/* confdefs.h. */
21920_ACEOF
21921cat confdefs.h >>conftest.$ac_ext
21922cat >>conftest.$ac_ext <<_ACEOF
21923/* end confdefs.h. */
21924/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21926#define $ac_func innocuous_$ac_func
21927
21928/* System header to define __stub macros and hopefully few prototypes,
21929 which can conflict with char $ac_func (); below.
21930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21931 <limits.h> exists even on freestanding compilers. */
21932
21933#ifdef __STDC__
21934# include <limits.h>
21935#else
21936# include <assert.h>
21937#endif
21938
21939#undef $ac_func
21940
64ff59ba 21941/* Override any GCC internal prototype to avoid an error.
21942 Use char because int might match the return type of a GCC
21943 builtin and then its argument prototype would still apply. */
d9898ee8 21944#ifdef __cplusplus
21945extern "C"
d9898ee8 21946#endif
d9898ee8 21947char $ac_func ();
21948/* The GNU C library defines this for functions which it implements
21949 to always fail with ENOSYS. Some functions are actually named
21950 something starting with __ and the normal name is an alias. */
64ff59ba 21951#if defined __stub_$ac_func || defined __stub___$ac_func
d9898ee8 21952choke me
d9898ee8 21953#endif
21954
21955int
21956main ()
21957{
64ff59ba 21958return $ac_func ();
d9898ee8 21959 ;
21960 return 0;
21961}
21962_ACEOF
21963rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 21964if { (ac_try="$ac_link"
21965case "(($ac_try" in
21966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21967 *) ac_try_echo=$ac_try;;
21968esac
21969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21970 (eval "$ac_link") 2>conftest.er1
d9898ee8 21971 ac_status=$?
21972 grep -v '^ *+' conftest.er1 >conftest.err
21973 rm -f conftest.er1
21974 cat conftest.err >&5
21975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 21976 (exit $ac_status); } && {
21977 test -z "$ac_c_werror_flag" ||
21978 test ! -s conftest.err
21979 } && test -s conftest$ac_exeext &&
21980 $as_test_x conftest$ac_exeext; then
d9898ee8 21981 eval "$as_ac_var=yes"
21982else
21983 echo "$as_me: failed program was:" >&5
21984sed 's/^/| /' conftest.$ac_ext >&5
21985
64ff59ba 21986 eval "$as_ac_var=no"
d9898ee8 21987fi
64ff59ba 21988
21989rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 21990 conftest$ac_exeext conftest.$ac_ext
21991fi
64ff59ba 21992ac_res=`eval echo '${'$as_ac_var'}'`
21993 { echo "$as_me:$LINENO: result: $ac_res" >&5
21994echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 21995if test `eval echo '${'$as_ac_var'}'` = yes; then
21996 cat >>confdefs.h <<_ACEOF
21997#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21998_ACEOF
21999 break
22000fi
22001done
22002
22003
22004
22005for ac_func in strrchr rindex
22006do
22007as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64ff59ba 22008{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22009echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22010if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 22011 echo $ECHO_N "(cached) $ECHO_C" >&6
22012else
22013 cat >conftest.$ac_ext <<_ACEOF
22014/* confdefs.h. */
22015_ACEOF
22016cat confdefs.h >>conftest.$ac_ext
22017cat >>conftest.$ac_ext <<_ACEOF
22018/* end confdefs.h. */
22019/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22021#define $ac_func innocuous_$ac_func
22022
22023/* System header to define __stub macros and hopefully few prototypes,
22024 which can conflict with char $ac_func (); below.
22025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22026 <limits.h> exists even on freestanding compilers. */
22027
22028#ifdef __STDC__
22029# include <limits.h>
22030#else
22031# include <assert.h>
22032#endif
22033
22034#undef $ac_func
22035
64ff59ba 22036/* Override any GCC internal prototype to avoid an error.
22037 Use char because int might match the return type of a GCC
22038 builtin and then its argument prototype would still apply. */
d9898ee8 22039#ifdef __cplusplus
22040extern "C"
d9898ee8 22041#endif
d9898ee8 22042char $ac_func ();
22043/* The GNU C library defines this for functions which it implements
22044 to always fail with ENOSYS. Some functions are actually named
22045 something starting with __ and the normal name is an alias. */
64ff59ba 22046#if defined __stub_$ac_func || defined __stub___$ac_func
d9898ee8 22047choke me
d9898ee8 22048#endif
22049
22050int
22051main ()
22052{
64ff59ba 22053return $ac_func ();
d9898ee8 22054 ;
22055 return 0;
22056}
22057_ACEOF
22058rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 22059if { (ac_try="$ac_link"
22060case "(($ac_try" in
22061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22062 *) ac_try_echo=$ac_try;;
22063esac
22064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22065 (eval "$ac_link") 2>conftest.er1
d9898ee8 22066 ac_status=$?
22067 grep -v '^ *+' conftest.er1 >conftest.err
22068 rm -f conftest.er1
22069 cat conftest.err >&5
22070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 22071 (exit $ac_status); } && {
22072 test -z "$ac_c_werror_flag" ||
22073 test ! -s conftest.err
22074 } && test -s conftest$ac_exeext &&
22075 $as_test_x conftest$ac_exeext; then
d9898ee8 22076 eval "$as_ac_var=yes"
22077else
22078 echo "$as_me: failed program was:" >&5
22079sed 's/^/| /' conftest.$ac_ext >&5
22080
64ff59ba 22081 eval "$as_ac_var=no"
d9898ee8 22082fi
64ff59ba 22083
22084rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 22085 conftest$ac_exeext conftest.$ac_ext
22086fi
64ff59ba 22087ac_res=`eval echo '${'$as_ac_var'}'`
22088 { echo "$as_me:$LINENO: result: $ac_res" >&5
22089echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 22090if test `eval echo '${'$as_ac_var'}'` = yes; then
22091 cat >>confdefs.h <<_ACEOF
22092#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22093_ACEOF
22094 break
22095fi
22096done
22097
22098
22099
22100for ac_func in memcpy bcopy
22101do
22102as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64ff59ba 22103{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22104echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22105if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 22106 echo $ECHO_N "(cached) $ECHO_C" >&6
22107else
22108 cat >conftest.$ac_ext <<_ACEOF
22109/* confdefs.h. */
22110_ACEOF
22111cat confdefs.h >>conftest.$ac_ext
22112cat >>conftest.$ac_ext <<_ACEOF
22113/* end confdefs.h. */
22114/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22116#define $ac_func innocuous_$ac_func
22117
22118/* System header to define __stub macros and hopefully few prototypes,
22119 which can conflict with char $ac_func (); below.
22120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22121 <limits.h> exists even on freestanding compilers. */
22122
22123#ifdef __STDC__
22124# include <limits.h>
22125#else
22126# include <assert.h>
22127#endif
22128
22129#undef $ac_func
22130
64ff59ba 22131/* Override any GCC internal prototype to avoid an error.
22132 Use char because int might match the return type of a GCC
22133 builtin and then its argument prototype would still apply. */
d9898ee8 22134#ifdef __cplusplus
22135extern "C"
d9898ee8 22136#endif
d9898ee8 22137char $ac_func ();
22138/* The GNU C library defines this for functions which it implements
22139 to always fail with ENOSYS. Some functions are actually named
22140 something starting with __ and the normal name is an alias. */
64ff59ba 22141#if defined __stub_$ac_func || defined __stub___$ac_func
d9898ee8 22142choke me
d9898ee8 22143#endif
22144
22145int
22146main ()
22147{
64ff59ba 22148return $ac_func ();
d9898ee8 22149 ;
22150 return 0;
22151}
22152_ACEOF
22153rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 22154if { (ac_try="$ac_link"
22155case "(($ac_try" in
22156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22157 *) ac_try_echo=$ac_try;;
22158esac
22159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22160 (eval "$ac_link") 2>conftest.er1
d9898ee8 22161 ac_status=$?
22162 grep -v '^ *+' conftest.er1 >conftest.err
22163 rm -f conftest.er1
22164 cat conftest.err >&5
22165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 22166 (exit $ac_status); } && {
22167 test -z "$ac_c_werror_flag" ||
22168 test ! -s conftest.err
22169 } && test -s conftest$ac_exeext &&
22170 $as_test_x conftest$ac_exeext; then
d9898ee8 22171 eval "$as_ac_var=yes"
22172else
22173 echo "$as_me: failed program was:" >&5
22174sed 's/^/| /' conftest.$ac_ext >&5
22175
64ff59ba 22176 eval "$as_ac_var=no"
d9898ee8 22177fi
64ff59ba 22178
22179rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 22180 conftest$ac_exeext conftest.$ac_ext
22181fi
64ff59ba 22182ac_res=`eval echo '${'$as_ac_var'}'`
22183 { echo "$as_me:$LINENO: result: $ac_res" >&5
22184echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 22185if test `eval echo '${'$as_ac_var'}'` = yes; then
22186 cat >>confdefs.h <<_ACEOF
22187#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22188_ACEOF
22189 break
22190fi
22191done
22192
22193
22194
22195for ac_func in memmove strcmp
22196do
22197as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64ff59ba 22198{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22199echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22200if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 22201 echo $ECHO_N "(cached) $ECHO_C" >&6
22202else
22203 cat >conftest.$ac_ext <<_ACEOF
22204/* confdefs.h. */
22205_ACEOF
22206cat confdefs.h >>conftest.$ac_ext
22207cat >>conftest.$ac_ext <<_ACEOF
22208/* end confdefs.h. */
22209/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22211#define $ac_func innocuous_$ac_func
22212
22213/* System header to define __stub macros and hopefully few prototypes,
22214 which can conflict with char $ac_func (); below.
22215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22216 <limits.h> exists even on freestanding compilers. */
22217
22218#ifdef __STDC__
22219# include <limits.h>
22220#else
22221# include <assert.h>
22222#endif
22223
22224#undef $ac_func
22225
64ff59ba 22226/* Override any GCC internal prototype to avoid an error.
22227 Use char because int might match the return type of a GCC
22228 builtin and then its argument prototype would still apply. */
d9898ee8 22229#ifdef __cplusplus
22230extern "C"
d9898ee8 22231#endif
d9898ee8 22232char $ac_func ();
22233/* The GNU C library defines this for functions which it implements
22234 to always fail with ENOSYS. Some functions are actually named
22235 something starting with __ and the normal name is an alias. */
64ff59ba 22236#if defined __stub_$ac_func || defined __stub___$ac_func
d9898ee8 22237choke me
d9898ee8 22238#endif
22239
22240int
22241main ()
22242{
64ff59ba 22243return $ac_func ();
d9898ee8 22244 ;
22245 return 0;
22246}
22247_ACEOF
22248rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 22249if { (ac_try="$ac_link"
22250case "(($ac_try" in
22251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22252 *) ac_try_echo=$ac_try;;
22253esac
22254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22255 (eval "$ac_link") 2>conftest.er1
d9898ee8 22256 ac_status=$?
22257 grep -v '^ *+' conftest.er1 >conftest.err
22258 rm -f conftest.er1
22259 cat conftest.err >&5
22260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 22261 (exit $ac_status); } && {
22262 test -z "$ac_c_werror_flag" ||
22263 test ! -s conftest.err
22264 } && test -s conftest$ac_exeext &&
22265 $as_test_x conftest$ac_exeext; then
d9898ee8 22266 eval "$as_ac_var=yes"
22267else
22268 echo "$as_me: failed program was:" >&5
22269sed 's/^/| /' conftest.$ac_ext >&5
22270
64ff59ba 22271 eval "$as_ac_var=no"
d9898ee8 22272fi
64ff59ba 22273
22274rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 22275 conftest$ac_exeext conftest.$ac_ext
22276fi
64ff59ba 22277ac_res=`eval echo '${'$as_ac_var'}'`
22278 { echo "$as_me:$LINENO: result: $ac_res" >&5
22279echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 22280if test `eval echo '${'$as_ac_var'}'` = yes; then
22281 cat >>confdefs.h <<_ACEOF
22282#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22283_ACEOF
22284
22285fi
22286done
22287
22288
22289
22290
22291for ac_func in closedir opendir readdir
22292do
22293as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64ff59ba 22294{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22295echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22296if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 22297 echo $ECHO_N "(cached) $ECHO_C" >&6
22298else
22299 cat >conftest.$ac_ext <<_ACEOF
22300/* confdefs.h. */
22301_ACEOF
22302cat confdefs.h >>conftest.$ac_ext
22303cat >>conftest.$ac_ext <<_ACEOF
22304/* end confdefs.h. */
22305/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22307#define $ac_func innocuous_$ac_func
22308
22309/* System header to define __stub macros and hopefully few prototypes,
22310 which can conflict with char $ac_func (); below.
22311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22312 <limits.h> exists even on freestanding compilers. */
22313
22314#ifdef __STDC__
22315# include <limits.h>
22316#else
22317# include <assert.h>
22318#endif
22319
22320#undef $ac_func
22321
64ff59ba 22322/* Override any GCC internal prototype to avoid an error.
22323 Use char because int might match the return type of a GCC
22324 builtin and then its argument prototype would still apply. */
d9898ee8 22325#ifdef __cplusplus
22326extern "C"
d9898ee8 22327#endif
d9898ee8 22328char $ac_func ();
22329/* The GNU C library defines this for functions which it implements
22330 to always fail with ENOSYS. Some functions are actually named
22331 something starting with __ and the normal name is an alias. */
64ff59ba 22332#if defined __stub_$ac_func || defined __stub___$ac_func
d9898ee8 22333choke me
d9898ee8 22334#endif
22335
22336int
22337main ()
22338{
64ff59ba 22339return $ac_func ();
d9898ee8 22340 ;
22341 return 0;
22342}
22343_ACEOF
22344rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 22345if { (ac_try="$ac_link"
22346case "(($ac_try" in
22347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22348 *) ac_try_echo=$ac_try;;
22349esac
22350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22351 (eval "$ac_link") 2>conftest.er1
d9898ee8 22352 ac_status=$?
22353 grep -v '^ *+' conftest.er1 >conftest.err
22354 rm -f conftest.er1
22355 cat conftest.err >&5
22356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 22357 (exit $ac_status); } && {
22358 test -z "$ac_c_werror_flag" ||
22359 test ! -s conftest.err
22360 } && test -s conftest$ac_exeext &&
22361 $as_test_x conftest$ac_exeext; then
d9898ee8 22362 eval "$as_ac_var=yes"
22363else
22364 echo "$as_me: failed program was:" >&5
22365sed 's/^/| /' conftest.$ac_ext >&5
22366
64ff59ba 22367 eval "$as_ac_var=no"
d9898ee8 22368fi
64ff59ba 22369
22370rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 22371 conftest$ac_exeext conftest.$ac_ext
22372fi
64ff59ba 22373ac_res=`eval echo '${'$as_ac_var'}'`
22374 { echo "$as_me:$LINENO: result: $ac_res" >&5
22375echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 22376if test `eval echo '${'$as_ac_var'}'` = yes; then
22377 cat >>confdefs.h <<_ACEOF
22378#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22379_ACEOF
22380
22381fi
22382done
22383
22384
22385
22386
22387## -------- ##
22388## Outputs. ##
22389## -------- ##
64ff59ba 22390ac_config_files="$ac_config_files Makefile"
d9898ee8 22391
22392cat >confcache <<\_ACEOF
22393# This file is a shell script that caches the results of configure
22394# tests run on this system so they can be shared between configure
22395# scripts and configure runs, see configure's option --config-cache.
22396# It is not useful on other systems. If it contains results you don't
22397# want to keep, you may remove or edit it.
22398#
22399# config.status only pays attention to the cache file if you give it
22400# the --recheck option to rerun configure.
22401#
22402# `ac_cv_env_foo' variables (set or unset) will be overridden when
22403# loading this file, other *unset* `ac_cv_foo' will be assigned the
22404# following values.
22405
22406_ACEOF
22407
22408# The following way of writing the cache mishandles newlines in values,
22409# but we know of no workaround that is simple, portable, and efficient.
64ff59ba 22410# So, we kill variables containing newlines.
d9898ee8 22411# Ultrix sh set writes to stderr and can't be redirected directly,
22412# and sets the high bit in the cache file unless we assign to the vars.
64ff59ba 22413(
22414 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22415 eval ac_val=\$$ac_var
22416 case $ac_val in #(
22417 *${as_nl}*)
22418 case $ac_var in #(
22419 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22420echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22421 esac
22422 case $ac_var in #(
22423 _ | IFS | as_nl) ;; #(
22424 *) $as_unset $ac_var ;;
22425 esac ;;
22426 esac
22427 done
22428
d9898ee8 22429 (set) 2>&1 |
64ff59ba 22430 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22431 *${as_nl}ac_space=\ *)
d9898ee8 22432 # `set' does not quote correctly, so add quotes (double-quote
22433 # substitution turns \\\\ into \\, and sed turns \\ into \).
22434 sed -n \
22435 "s/'/'\\\\''/g;
22436 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
64ff59ba 22437 ;; #(
d9898ee8 22438 *)
22439 # `set' quotes correctly as required by POSIX, so do not add quotes.
64ff59ba 22440 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 22441 ;;
64ff59ba 22442 esac |
22443 sort
22444) |
d9898ee8 22445 sed '
64ff59ba 22446 /^ac_cv_env_/b end
d9898ee8 22447 t clear
64ff59ba 22448 :clear
d9898ee8 22449 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22450 t end
64ff59ba 22451 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22452 :end' >>confcache
22453if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22454 if test -w "$cache_file"; then
22455 test "x$cache_file" != "x/dev/null" &&
22456 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22457echo "$as_me: updating cache $cache_file" >&6;}
d9898ee8 22458 cat confcache >$cache_file
22459 else
64ff59ba 22460 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22461echo "$as_me: not updating unwritable cache $cache_file" >&6;}
d9898ee8 22462 fi
22463fi
22464rm -f confcache
22465
22466test "x$prefix" = xNONE && prefix=$ac_default_prefix
22467# Let make expand exec_prefix.
22468test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22469
d9898ee8 22470DEFS=-DHAVE_CONFIG_H
22471
22472ac_libobjs=
22473ac_ltlibobjs=
22474for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22475 # 1. Remove the extension, and $U if already installed.
64ff59ba 22476 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22477 ac_i=`echo "$ac_i" | sed "$ac_script"`
22478 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22479 # will be set to the directory where LIBOBJS objects are built.
22480 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22481 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
d9898ee8 22482done
22483LIBOBJS=$ac_libobjs
22484
22485LTLIBOBJS=$ac_ltlibobjs
22486
22487
22488if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22489 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22490Usually this means the macro was only invoked conditionally." >&5
22491echo "$as_me: error: conditional \"AMDEP\" was never defined.
22492Usually this means the macro was only invoked conditionally." >&2;}
22493 { (exit 1); exit 1; }; }
22494fi
22495if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22496 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22497Usually this means the macro was only invoked conditionally." >&5
22498echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22499Usually this means the macro was only invoked conditionally." >&2;}
22500 { (exit 1); exit 1; }; }
22501fi
22502if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22503 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22504Usually this means the macro was only invoked conditionally." >&5
22505echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22506Usually this means the macro was only invoked conditionally." >&2;}
22507 { (exit 1); exit 1; }; }
22508fi
22509if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22510 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22511Usually this means the macro was only invoked conditionally." >&5
22512echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22513Usually this means the macro was only invoked conditionally." >&2;}
22514 { (exit 1); exit 1; }; }
22515fi
22516if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22517 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22518Usually this means the macro was only invoked conditionally." >&5
22519echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22520Usually this means the macro was only invoked conditionally." >&2;}
22521 { (exit 1); exit 1; }; }
22522fi
22523
22524: ${CONFIG_STATUS=./config.status}
22525ac_clean_files_save=$ac_clean_files
22526ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22527{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22528echo "$as_me: creating $CONFIG_STATUS" >&6;}
22529cat >$CONFIG_STATUS <<_ACEOF
22530#! $SHELL
22531# Generated by $as_me.
22532# Run this file to recreate the current configuration.
22533# Compiler output produced by configure, useful for debugging
22534# configure, is in config.log if it exists.
22535
22536debug=false
22537ac_cs_recheck=false
22538ac_cs_silent=false
22539SHELL=\${CONFIG_SHELL-$SHELL}
22540_ACEOF
22541
22542cat >>$CONFIG_STATUS <<\_ACEOF
22543## --------------------- ##
22544## M4sh Initialization. ##
22545## --------------------- ##
22546
64ff59ba 22547# Be more Bourne compatible
22548DUALCASE=1; export DUALCASE # for MKS sh
d9898ee8 22549if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22550 emulate sh
22551 NULLCMD=:
22552 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22553 # is contrary to our usage. Disable this feature.
22554 alias -g '${1+"$@"}'='"$@"'
64ff59ba 22555 setopt NO_GLOB_SUBST
22556else
22557 case `(set -o) 2>/dev/null` in
22558 *posix*) set -o posix ;;
22559esac
22560
22561fi
22562
22563
22564
22565
22566# PATH needs CR
22567# Avoid depending upon Character Ranges.
22568as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22569as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22570as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22571as_cr_digits='0123456789'
22572as_cr_alnum=$as_cr_Letters$as_cr_digits
22573
22574# The user is always right.
22575if test "${PATH_SEPARATOR+set}" != set; then
22576 echo "#! /bin/sh" >conf$$.sh
22577 echo "exit 0" >>conf$$.sh
22578 chmod +x conf$$.sh
22579 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22580 PATH_SEPARATOR=';'
22581 else
22582 PATH_SEPARATOR=:
22583 fi
22584 rm -f conf$$.sh
d9898ee8 22585fi
d9898ee8 22586
22587# Support unset when possible.
22588if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22589 as_unset=unset
22590else
22591 as_unset=false
22592fi
22593
22594
64ff59ba 22595# IFS
22596# We need space, tab and new line, in precisely that order. Quoting is
22597# there to prevent editors from complaining about space-tab.
22598# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22599# splitting by setting IFS to empty value.)
22600as_nl='
22601'
22602IFS=" "" $as_nl"
d9898ee8 22603
64ff59ba 22604# Find who we are. Look in the path if we contain no directory separator.
22605case $0 in
22606 *[\\/]* ) as_myself=$0 ;;
22607 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22608for as_dir in $PATH
22609do
22610 IFS=$as_save_IFS
22611 test -z "$as_dir" && as_dir=.
22612 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22613done
22614IFS=$as_save_IFS
22615
22616 ;;
22617esac
22618# We did not find ourselves, most probably we were run as `sh COMMAND'
22619# in which case we are not to be found in the path.
22620if test "x$as_myself" = x; then
22621 as_myself=$0
22622fi
22623if test ! -f "$as_myself"; then
22624 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22625 { (exit 1); exit 1; }
22626fi
22627
22628# Work around bugs in pre-3.0 UWIN ksh.
22629for as_var in ENV MAIL MAILPATH
22630do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22631done
22632PS1='$ '
22633PS2='> '
22634PS4='+ '
22635
22636# NLS nuisances.
22637for as_var in \
22638 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
d9898ee8 22639 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22640 LC_TELEPHONE LC_TIME
22641do
22642 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22643 eval $as_var=C; export $as_var
22644 else
64ff59ba 22645 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
d9898ee8 22646 fi
22647done
22648
22649# Required to use basename.
64ff59ba 22650if expr a : '\(a\)' >/dev/null 2>&1 &&
22651 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 22652 as_expr=expr
22653else
22654 as_expr=false
22655fi
22656
64ff59ba 22657if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d9898ee8 22658 as_basename=basename
22659else
22660 as_basename=false
22661fi
22662
22663
22664# Name of the executable.
64ff59ba 22665as_me=`$as_basename -- "$0" ||
d9898ee8 22666$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22667 X"$0" : 'X\(//\)$' \| \
64ff59ba 22668 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 22669echo X/"$0" |
64ff59ba 22670 sed '/^.*\/\([^/][^/]*\)\/*$/{
22671 s//\1/
22672 q
22673 }
22674 /^X\/\(\/\/\)$/{
22675 s//\1/
22676 q
22677 }
22678 /^X\/\(\/\).*/{
22679 s//\1/
22680 q
22681 }
22682 s/.*/./; q'`
d9898ee8 22683
64ff59ba 22684# CDPATH.
22685$as_unset CDPATH
d9898ee8 22686
d9898ee8 22687
22688
22689 as_lineno_1=$LINENO
22690 as_lineno_2=$LINENO
d9898ee8 22691 test "x$as_lineno_1" != "x$as_lineno_2" &&
64ff59ba 22692 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 22693
22694 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22695 # uniformly replaced by the line number. The first 'sed' inserts a
64ff59ba 22696 # line-number line after each line using $LINENO; the second 'sed'
22697 # does the real work. The second script uses 'N' to pair each
22698 # line-number line with the line containing $LINENO, and appends
22699 # trailing '-' during substitution so that $LINENO is not a special
22700 # case at line end.
d9898ee8 22701 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
64ff59ba 22702 # scripts with optimization help from Paolo Bonzini. Blame Lee
22703 # E. McMahon (1931-1989) for sed's syntax. :-)
22704 sed -n '
22705 p
22706 /[$]LINENO/=
22707 ' <$as_myself |
d9898ee8 22708 sed '
64ff59ba 22709 s/[$]LINENO.*/&-/
22710 t lineno
22711 b
22712 :lineno
d9898ee8 22713 N
64ff59ba 22714 :loop
22715 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 22716 t loop
64ff59ba 22717 s/-\n.*//
d9898ee8 22718 ' >$as_me.lineno &&
64ff59ba 22719 chmod +x "$as_me.lineno" ||
22720 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
d9898ee8 22721 { (exit 1); exit 1; }; }
22722
22723 # Don't try to exec as it changes $[0], causing all sort of problems
22724 # (the dirname of $[0] is not the place where we might find the
64ff59ba 22725 # original and so on. Autoconf is especially sensitive to this).
22726 . "./$as_me.lineno"
d9898ee8 22727 # Exit status is that of the last command.
22728 exit
22729}
22730
22731
64ff59ba 22732if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22733 as_dirname=dirname
22734else
22735 as_dirname=false
22736fi
22737
22738ECHO_C= ECHO_N= ECHO_T=
22739case `echo -n x` in
22740-n*)
22741 case `echo 'x\c'` in
22742 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22743 *) ECHO_C='\c';;
22744 esac;;
22745*)
22746 ECHO_N='-n';;
d9898ee8 22747esac
22748
64ff59ba 22749if expr a : '\(a\)' >/dev/null 2>&1 &&
22750 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 22751 as_expr=expr
22752else
22753 as_expr=false
22754fi
22755
22756rm -f conf$$ conf$$.exe conf$$.file
64ff59ba 22757if test -d conf$$.dir; then
22758 rm -f conf$$.dir/conf$$.file
22759else
22760 rm -f conf$$.dir
22761 mkdir conf$$.dir
22762fi
d9898ee8 22763echo >conf$$.file
22764if ln -s conf$$.file conf$$ 2>/dev/null; then
64ff59ba 22765 as_ln_s='ln -s'
22766 # ... but there are two gotchas:
22767 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22768 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22769 # In both cases, we have to default to `cp -p'.
22770 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d9898ee8 22771 as_ln_s='cp -p'
d9898ee8 22772elif ln conf$$.file conf$$ 2>/dev/null; then
22773 as_ln_s=ln
22774else
22775 as_ln_s='cp -p'
22776fi
64ff59ba 22777rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22778rmdir conf$$.dir 2>/dev/null
d9898ee8 22779
22780if mkdir -p . 2>/dev/null; then
22781 as_mkdir_p=:
22782else
22783 test -d ./-p && rmdir ./-p
22784 as_mkdir_p=false
22785fi
22786
64ff59ba 22787if test -x / >/dev/null 2>&1; then
22788 as_test_x='test -x'
22789else
22790 if ls -dL / >/dev/null 2>&1; then
22791 as_ls_L_option=L
22792 else
22793 as_ls_L_option=
22794 fi
22795 as_test_x='
22796 eval sh -c '\''
22797 if test -d "$1"; then
22798 test -d "$1/.";
22799 else
22800 case $1 in
22801 -*)set "./$1";;
22802 esac;
22803 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22804 ???[sx]*):;;*)false;;esac;fi
22805 '\'' sh
22806 '
22807fi
22808as_executable_p=$as_test_x
d9898ee8 22809
22810# Sed expression to map a string onto a valid CPP name.
22811as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22812
22813# Sed expression to map a string onto a valid variable name.
22814as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22815
22816
d9898ee8 22817exec 6>&1
22818
64ff59ba 22819# Save the log message, to keep $[0] and so on meaningful, and to
d9898ee8 22820# report actual input values of CONFIG_FILES etc. instead of their
64ff59ba 22821# values after options handling.
22822ac_log="
d9898ee8 22823This file was extended by libltdl $as_me 1.2, which was
64ff59ba 22824generated by GNU Autoconf 2.61. Invocation command line was
d9898ee8 22825
22826 CONFIG_FILES = $CONFIG_FILES
22827 CONFIG_HEADERS = $CONFIG_HEADERS
22828 CONFIG_LINKS = $CONFIG_LINKS
22829 CONFIG_COMMANDS = $CONFIG_COMMANDS
22830 $ $0 $@
22831
64ff59ba 22832on `(hostname || uname -n) 2>/dev/null | sed 1q`
22833"
22834
d9898ee8 22835_ACEOF
22836
64ff59ba 22837cat >>$CONFIG_STATUS <<_ACEOF
d9898ee8 22838# Files that config.status was made for.
64ff59ba 22839config_files="$ac_config_files"
22840config_headers="$ac_config_headers"
22841config_commands="$ac_config_commands"
d9898ee8 22842
64ff59ba 22843_ACEOF
d9898ee8 22844
22845cat >>$CONFIG_STATUS <<\_ACEOF
d9898ee8 22846ac_cs_usage="\
22847\`$as_me' instantiates files from templates according to the
22848current configuration.
22849
22850Usage: $0 [OPTIONS] [FILE]...
22851
22852 -h, --help print this help, then exit
64ff59ba 22853 -V, --version print version number and configuration settings, then exit
d9898ee8 22854 -q, --quiet do not print progress messages
22855 -d, --debug don't remove temporary files
22856 --recheck update $as_me by reconfiguring in the same conditions
22857 --file=FILE[:TEMPLATE]
22858 instantiate the configuration file FILE
22859 --header=FILE[:TEMPLATE]
22860 instantiate the configuration header FILE
22861
22862Configuration files:
22863$config_files
22864
22865Configuration headers:
22866$config_headers
22867
22868Configuration commands:
22869$config_commands
22870
22871Report bugs to <bug-autoconf@gnu.org>."
d9898ee8 22872
64ff59ba 22873_ACEOF
d9898ee8 22874cat >>$CONFIG_STATUS <<_ACEOF
22875ac_cs_version="\\
22876libltdl config.status 1.2
64ff59ba 22877configured by $0, generated by GNU Autoconf 2.61,
22878 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
d9898ee8 22879
64ff59ba 22880Copyright (C) 2006 Free Software Foundation, Inc.
d9898ee8 22881This config.status script is free software; the Free Software Foundation
22882gives unlimited permission to copy, distribute and modify it."
64ff59ba 22883
22884ac_pwd='$ac_pwd'
22885srcdir='$srcdir'
22886INSTALL='$INSTALL'
22887MKDIR_P='$MKDIR_P'
d9898ee8 22888_ACEOF
22889
22890cat >>$CONFIG_STATUS <<\_ACEOF
22891# If no file are specified by the user, then we need to provide default
22892# value. By we need to know if files were specified by the user.
22893ac_need_defaults=:
22894while test $# != 0
22895do
22896 case $1 in
22897 --*=*)
64ff59ba 22898 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22899 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
d9898ee8 22900 ac_shift=:
22901 ;;
64ff59ba 22902 *)
d9898ee8 22903 ac_option=$1
22904 ac_optarg=$2
22905 ac_shift=shift
22906 ;;
d9898ee8 22907 esac
22908
22909 case $ac_option in
22910 # Handling of the options.
d9898ee8 22911 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22912 ac_cs_recheck=: ;;
64ff59ba 22913 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22914 echo "$ac_cs_version"; exit ;;
22915 --debug | --debu | --deb | --de | --d | -d )
d9898ee8 22916 debug=: ;;
22917 --file | --fil | --fi | --f )
22918 $ac_shift
22919 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22920 ac_need_defaults=false;;
22921 --header | --heade | --head | --hea )
22922 $ac_shift
22923 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22924 ac_need_defaults=false;;
64ff59ba 22925 --he | --h)
22926 # Conflict between --help and --header
22927 { echo "$as_me: error: ambiguous option: $1
22928Try \`$0 --help' for more information." >&2
22929 { (exit 1); exit 1; }; };;
22930 --help | --hel | -h )
22931 echo "$ac_cs_usage"; exit ;;
d9898ee8 22932 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22933 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22934 ac_cs_silent=: ;;
22935
22936 # This is an error.
64ff59ba 22937 -*) { echo "$as_me: error: unrecognized option: $1
22938Try \`$0 --help' for more information." >&2
d9898ee8 22939 { (exit 1); exit 1; }; } ;;
22940
64ff59ba 22941 *) ac_config_targets="$ac_config_targets $1"
22942 ac_need_defaults=false ;;
d9898ee8 22943
22944 esac
22945 shift
22946done
22947
22948ac_configure_extra_args=
22949
22950if $ac_cs_silent; then
22951 exec 6>/dev/null
22952 ac_configure_extra_args="$ac_configure_extra_args --silent"
22953fi
22954
22955_ACEOF
22956cat >>$CONFIG_STATUS <<_ACEOF
22957if \$ac_cs_recheck; then
64ff59ba 22958 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22959 CONFIG_SHELL=$SHELL
22960 export CONFIG_SHELL
22961 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
d9898ee8 22962fi
22963
22964_ACEOF
64ff59ba 22965cat >>$CONFIG_STATUS <<\_ACEOF
22966exec 5>>config.log
22967{
22968 echo
22969 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22970## Running $as_me. ##
22971_ASBOX
22972 echo "$ac_log"
22973} >&5
d9898ee8 22974
64ff59ba 22975_ACEOF
d9898ee8 22976cat >>$CONFIG_STATUS <<_ACEOF
22977#
64ff59ba 22978# INIT-COMMANDS
d9898ee8 22979#
d9898ee8 22980AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22981
22982_ACEOF
22983
d9898ee8 22984cat >>$CONFIG_STATUS <<\_ACEOF
64ff59ba 22985
22986# Handling of arguments.
d9898ee8 22987for ac_config_target in $ac_config_targets
22988do
64ff59ba 22989 case $ac_config_target in
22990 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
22991 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22992 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22993
d9898ee8 22994 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22995echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22996 { (exit 1); exit 1; }; };;
22997 esac
22998done
22999
64ff59ba 23000
d9898ee8 23001# If the user did not use the arguments to specify the items to instantiate,
23002# then the envvar interface is used. Set only those that are not.
23003# We use the long form for the default assignment because of an extremely
23004# bizarre bug on SunOS 4.1.3.
23005if $ac_need_defaults; then
23006 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23007 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23008 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23009fi
23010
23011# Have a temporary directory for convenience. Make it in the build tree
64ff59ba 23012# simply because there is no reason against having it here, and in addition,
d9898ee8 23013# creating and moving files from /tmp can sometimes cause problems.
64ff59ba 23014# Hook for its removal unless debugging.
23015# Note that there is a small window in which the directory will not be cleaned:
23016# after its creation but before its name has been assigned to `$tmp'.
d9898ee8 23017$debug ||
23018{
64ff59ba 23019 tmp=
23020 trap 'exit_status=$?
23021 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23022' 0
d9898ee8 23023 trap '{ (exit 1); exit 1; }' 1 2 13 15
23024}
d9898ee8 23025# Create a (secure) tmp directory for tmp files.
23026
23027{
64ff59ba 23028 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d9898ee8 23029 test -n "$tmp" && test -d "$tmp"
23030} ||
23031{
64ff59ba 23032 tmp=./conf$$-$RANDOM
23033 (umask 077 && mkdir "$tmp")
d9898ee8 23034} ||
23035{
23036 echo "$me: cannot create a temporary directory in ." >&2
23037 { (exit 1); exit 1; }
23038}
23039
d9898ee8 23040#
64ff59ba 23041# Set up the sed scripts for CONFIG_FILES section.
d9898ee8 23042#
23043
23044# No need to generate the scripts if there are no CONFIG_FILES.
23045# This happens for instance when ./config.status config.h
64ff59ba 23046if test -n "$CONFIG_FILES"; then
d9898ee8 23047
23048_ACEOF
23049
64ff59ba 23050
23051
23052ac_delim='%!_!# '
23053for ac_last_try in false false false false false :; do
23054 cat >conf$$subs.sed <<_ACEOF
23055SHELL!$SHELL$ac_delim
23056PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23057PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23058PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23059PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23060PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23061PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23062exec_prefix!$exec_prefix$ac_delim
23063prefix!$prefix$ac_delim
23064program_transform_name!$program_transform_name$ac_delim
23065bindir!$bindir$ac_delim
23066sbindir!$sbindir$ac_delim
23067libexecdir!$libexecdir$ac_delim
23068datarootdir!$datarootdir$ac_delim
23069datadir!$datadir$ac_delim
23070sysconfdir!$sysconfdir$ac_delim
23071sharedstatedir!$sharedstatedir$ac_delim
23072localstatedir!$localstatedir$ac_delim
23073includedir!$includedir$ac_delim
23074oldincludedir!$oldincludedir$ac_delim
23075docdir!$docdir$ac_delim
23076infodir!$infodir$ac_delim
23077htmldir!$htmldir$ac_delim
23078dvidir!$dvidir$ac_delim
23079pdfdir!$pdfdir$ac_delim
23080psdir!$psdir$ac_delim
23081libdir!$libdir$ac_delim
23082localedir!$localedir$ac_delim
23083mandir!$mandir$ac_delim
23084DEFS!$DEFS$ac_delim
23085ECHO_C!$ECHO_C$ac_delim
23086ECHO_N!$ECHO_N$ac_delim
23087ECHO_T!$ECHO_T$ac_delim
23088LIBS!$LIBS$ac_delim
23089build_alias!$build_alias$ac_delim
23090host_alias!$host_alias$ac_delim
23091target_alias!$target_alias$ac_delim
23092INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23093INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23094INSTALL_DATA!$INSTALL_DATA$ac_delim
23095am__isrc!$am__isrc$ac_delim
23096CYGPATH_W!$CYGPATH_W$ac_delim
23097PACKAGE!$PACKAGE$ac_delim
23098VERSION!$VERSION$ac_delim
23099ACLOCAL!$ACLOCAL$ac_delim
23100AUTOCONF!$AUTOCONF$ac_delim
23101AUTOMAKE!$AUTOMAKE$ac_delim
23102AUTOHEADER!$AUTOHEADER$ac_delim
23103MAKEINFO!$MAKEINFO$ac_delim
23104install_sh!$install_sh$ac_delim
23105STRIP!$STRIP$ac_delim
23106INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23107mkdir_p!$mkdir_p$ac_delim
23108AWK!$AWK$ac_delim
23109SET_MAKE!$SET_MAKE$ac_delim
23110am__leading_dot!$am__leading_dot$ac_delim
23111AMTAR!$AMTAR$ac_delim
23112am__tar!$am__tar$ac_delim
23113am__untar!$am__untar$ac_delim
23114CC!$CC$ac_delim
23115CFLAGS!$CFLAGS$ac_delim
23116LDFLAGS!$LDFLAGS$ac_delim
23117CPPFLAGS!$CPPFLAGS$ac_delim
23118ac_ct_CC!$ac_ct_CC$ac_delim
23119EXEEXT!$EXEEXT$ac_delim
23120OBJEXT!$OBJEXT$ac_delim
23121DEPDIR!$DEPDIR$ac_delim
23122am__include!$am__include$ac_delim
23123am__quote!$am__quote$ac_delim
23124AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23125AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23126AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23127CCDEPMODE!$CCDEPMODE$ac_delim
23128am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23129am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23130build!$build$ac_delim
23131build_cpu!$build_cpu$ac_delim
23132build_vendor!$build_vendor$ac_delim
23133build_os!$build_os$ac_delim
23134host!$host$ac_delim
23135host_cpu!$host_cpu$ac_delim
23136host_vendor!$host_vendor$ac_delim
23137host_os!$host_os$ac_delim
23138SED!$SED$ac_delim
23139GREP!$GREP$ac_delim
23140EGREP!$EGREP$ac_delim
23141LN_S!$LN_S$ac_delim
23142ECHO!$ECHO$ac_delim
23143AR!$AR$ac_delim
23144RANLIB!$RANLIB$ac_delim
23145DLLTOOL!$DLLTOOL$ac_delim
23146AS!$AS$ac_delim
23147OBJDUMP!$OBJDUMP$ac_delim
23148CPP!$CPP$ac_delim
23149CXX!$CXX$ac_delim
23150CXXFLAGS!$CXXFLAGS$ac_delim
23151ac_ct_CXX!$ac_ct_CXX$ac_delim
23152_ACEOF
23153
23154 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23155 break
23156 elif $ac_last_try; then
23157 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23158echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23159 { (exit 1); exit 1; }; }
23160 else
23161 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
d9898ee8 23162 fi
64ff59ba 23163done
23164
23165ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23166if test -n "$ac_eof"; then
23167 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23168 ac_eof=`expr $ac_eof + 1`
23169fi
23170
23171cat >>$CONFIG_STATUS <<_ACEOF
23172cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23173/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23174_ACEOF
23175sed '
23176s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23177s/^/s,@/; s/!/@,|#_!!_#|/
23178:n
23179t n
23180s/'"$ac_delim"'$/,g/; t
23181s/$/\\/; p
23182N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23183' >>$CONFIG_STATUS <conf$$subs.sed
23184rm -f conf$$subs.sed
23185cat >>$CONFIG_STATUS <<_ACEOF
23186CEOF$ac_eof
23187_ACEOF
d9898ee8 23188
64ff59ba 23189
23190ac_delim='%!_!# '
23191for ac_last_try in false false false false false :; do
23192 cat >conf$$subs.sed <<_ACEOF
23193CXXDEPMODE!$CXXDEPMODE$ac_delim
23194am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23195am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23196CXXCPP!$CXXCPP$ac_delim
23197F77!$F77$ac_delim
23198FFLAGS!$FFLAGS$ac_delim
23199ac_ct_F77!$ac_ct_F77$ac_delim
23200LIBTOOL!$LIBTOOL$ac_delim
23201LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
23202INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23203INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23204CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23205CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23206LIBADD_DL!$LIBADD_DL$ac_delim
23207LIBOBJS!$LIBOBJS$ac_delim
23208LTLIBOBJS!$LTLIBOBJS$ac_delim
d9898ee8 23209_ACEOF
64ff59ba 23210
23211 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then
23212 break
23213 elif $ac_last_try; then
23214 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23215echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23216 { (exit 1); exit 1; }; }
23217 else
23218 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23219 fi
23220done
23221
23222ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23223if test -n "$ac_eof"; then
23224 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23225 ac_eof=`expr $ac_eof + 1`
23226fi
23227
23228cat >>$CONFIG_STATUS <<_ACEOF
23229cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23230/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23231_ACEOF
23232sed '
23233s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23234s/^/s,@/; s/!/@,|#_!!_#|/
23235:n
23236t n
23237s/'"$ac_delim"'$/,g/; t
23238s/$/\\/; p
23239N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23240' >>$CONFIG_STATUS <conf$$subs.sed
23241rm -f conf$$subs.sed
23242cat >>$CONFIG_STATUS <<_ACEOF
23243:end
23244s/|#_!!_#|//g
23245CEOF$ac_eof
23246_ACEOF
23247
23248
23249# VPATH may cause trouble with some makes, so we remove $(srcdir),
23250# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23251# trailing colons and then remove the whole line if VPATH becomes empty
23252# (actually we leave an empty line to preserve line numbers).
23253if test "x$srcdir" = x.; then
23254 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23255s/:*\$(srcdir):*/:/
23256s/:*\${srcdir}:*/:/
23257s/:*@srcdir@:*/:/
23258s/^\([^=]*=[ ]*\):*/\1/
23259s/:*$//
23260s/^[^=]*=[ ]*$//
23261}'
23262fi
23263
d9898ee8 23264cat >>$CONFIG_STATUS <<\_ACEOF
64ff59ba 23265fi # test -n "$CONFIG_FILES"
23266
23267
23268for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23269do
23270 case $ac_tag in
23271 :[FHLC]) ac_mode=$ac_tag; continue;;
23272 esac
23273 case $ac_mode$ac_tag in
23274 :[FHL]*:*);;
23275 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23276echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23277 { (exit 1); exit 1; }; };;
23278 :[FH]-) ac_tag=-:-;;
23279 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23280 esac
23281 ac_save_IFS=$IFS
23282 IFS=:
23283 set x $ac_tag
23284 IFS=$ac_save_IFS
23285 shift
23286 ac_file=$1
23287 shift
23288
23289 case $ac_mode in
23290 :L) ac_source=$1;;
23291 :[FH])
23292 ac_file_inputs=
23293 for ac_f
23294 do
23295 case $ac_f in
23296 -) ac_f="$tmp/stdin";;
23297 *) # Look for the file first in the build tree, then in the source tree
23298 # (if the path is not absolute). The absolute path cannot be DOS-style,
23299 # because $ac_f cannot contain `:'.
23300 test -f "$ac_f" ||
23301 case $ac_f in
23302 [\\/$]*) false;;
23303 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23304 esac ||
23305 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23306echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23307 { (exit 1); exit 1; }; };;
23308 esac
23309 ac_file_inputs="$ac_file_inputs $ac_f"
23310 done
23311
23312 # Let's still pretend it is `configure' which instantiates (i.e., don't
23313 # use $as_me), people would be surprised to read:
23314 # /* config.h. Generated by config.status. */
23315 configure_input="Generated from "`IFS=:
23316 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23317 if test x"$ac_file" != x-; then
23318 configure_input="$ac_file. $configure_input"
23319 { echo "$as_me:$LINENO: creating $ac_file" >&5
23320echo "$as_me: creating $ac_file" >&6;}
23321 fi
23322
23323 case $ac_tag in
23324 *:-:* | *:-) cat >"$tmp/stdin";;
23325 esac
23326 ;;
d9898ee8 23327 esac
23328
64ff59ba 23329 ac_dir=`$as_dirname -- "$ac_file" ||
d9898ee8 23330$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23331 X"$ac_file" : 'X\(//\)[^/]' \| \
23332 X"$ac_file" : 'X\(//\)$' \| \
64ff59ba 23333 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 23334echo X"$ac_file" |
64ff59ba 23335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23336 s//\1/
23337 q
23338 }
23339 /^X\(\/\/\)[^/].*/{
23340 s//\1/
23341 q
23342 }
23343 /^X\(\/\/\)$/{
23344 s//\1/
23345 q
23346 }
23347 /^X\(\/\).*/{
23348 s//\1/
23349 q
23350 }
23351 s/.*/./; q'`
23352 { as_dir="$ac_dir"
23353 case $as_dir in #(
23354 -*) as_dir=./$as_dir;;
23355 esac
23356 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 23357 as_dirs=
64ff59ba 23358 while :; do
23359 case $as_dir in #(
23360 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23361 *) as_qdir=$as_dir;;
23362 esac
23363 as_dirs="'$as_qdir' $as_dirs"
23364 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 23365$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23366 X"$as_dir" : 'X\(//\)[^/]' \| \
23367 X"$as_dir" : 'X\(//\)$' \| \
64ff59ba 23368 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 23369echo X"$as_dir" |
64ff59ba 23370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23371 s//\1/
23372 q
23373 }
23374 /^X\(\/\/\)[^/].*/{
23375 s//\1/
23376 q
23377 }
23378 /^X\(\/\/\)$/{
23379 s//\1/
23380 q
23381 }
23382 /^X\(\/\).*/{
23383 s//\1/
23384 q
23385 }
23386 s/.*/./; q'`
23387 test -d "$as_dir" && break
d9898ee8 23388 done
64ff59ba 23389 test -z "$as_dirs" || eval "mkdir $as_dirs"
23390 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23391echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 23392 { (exit 1); exit 1; }; }; }
d9898ee8 23393 ac_builddir=.
23394
64ff59ba 23395case "$ac_dir" in
23396.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23397*)
d9898ee8 23398 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
64ff59ba 23399 # A ".." for each directory in $ac_dir_suffix.
23400 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23401 case $ac_top_builddir_sub in
23402 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23403 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23404 esac ;;
23405esac
23406ac_abs_top_builddir=$ac_pwd
23407ac_abs_builddir=$ac_pwd$ac_dir_suffix
23408# for backward compatibility:
23409ac_top_builddir=$ac_top_build_prefix
d9898ee8 23410
23411case $srcdir in
64ff59ba 23412 .) # We are building in place.
d9898ee8 23413 ac_srcdir=.
64ff59ba 23414 ac_top_srcdir=$ac_top_builddir_sub
23415 ac_abs_top_srcdir=$ac_pwd ;;
23416 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 23417 ac_srcdir=$srcdir$ac_dir_suffix;
64ff59ba 23418 ac_top_srcdir=$srcdir
23419 ac_abs_top_srcdir=$srcdir ;;
23420 *) # Relative name.
23421 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23422 ac_top_srcdir=$ac_top_build_prefix$srcdir
23423 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 23424esac
64ff59ba 23425ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 23426
d9898ee8 23427
64ff59ba 23428 case $ac_mode in
23429 :F)
23430 #
23431 # CONFIG_FILE
23432 #
d9898ee8 23433
23434 case $INSTALL in
23435 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
64ff59ba 23436 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
d9898ee8 23437 esac
64ff59ba 23438 ac_MKDIR_P=$MKDIR_P
23439 case $MKDIR_P in
23440 [\\/$]* | ?:[\\/]* ) ;;
23441 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23442 esac
23443_ACEOF
d9898ee8 23444
64ff59ba 23445cat >>$CONFIG_STATUS <<\_ACEOF
23446# If the template does not know about datarootdir, expand it.
23447# FIXME: This hack should be removed a few years after 2.60.
23448ac_datarootdir_hack=; ac_datarootdir_seen=
23449
23450case `sed -n '/datarootdir/ {
23451 p
23452 q
23453}
23454/@datadir@/p
23455/@docdir@/p
23456/@infodir@/p
23457/@localedir@/p
23458/@mandir@/p
23459' $ac_file_inputs` in
23460*datarootdir*) ac_datarootdir_seen=yes;;
23461*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23462 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23463echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23464_ACEOF
23465cat >>$CONFIG_STATUS <<_ACEOF
23466 ac_datarootdir_hack='
23467 s&@datadir@&$datadir&g
23468 s&@docdir@&$docdir&g
23469 s&@infodir@&$infodir&g
23470 s&@localedir@&$localedir&g
23471 s&@mandir@&$mandir&g
23472 s&\\\${datarootdir}&$datarootdir&g' ;;
23473esac
d9898ee8 23474_ACEOF
64ff59ba 23475
23476# Neutralize VPATH when `$srcdir' = `.'.
23477# Shell code in configure.ac might set extrasub.
23478# FIXME: do we really want to maintain this feature?
d9898ee8 23479cat >>$CONFIG_STATUS <<_ACEOF
23480 sed "$ac_vpsub
23481$extrasub
23482_ACEOF
23483cat >>$CONFIG_STATUS <<\_ACEOF
23484:t
23485/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
64ff59ba 23486s&@configure_input@&$configure_input&;t t
23487s&@top_builddir@&$ac_top_builddir_sub&;t t
23488s&@srcdir@&$ac_srcdir&;t t
23489s&@abs_srcdir@&$ac_abs_srcdir&;t t
23490s&@top_srcdir@&$ac_top_srcdir&;t t
23491s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23492s&@builddir@&$ac_builddir&;t t
23493s&@abs_builddir@&$ac_abs_builddir&;t t
23494s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23495s&@INSTALL@&$ac_INSTALL&;t t
23496s&@MKDIR_P@&$ac_MKDIR_P&;t t
23497$ac_datarootdir_hack
23498" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23499
23500test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23501 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23502 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23503 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23504which seems to be undefined. Please make sure it is defined." >&5
23505echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23506which seems to be undefined. Please make sure it is defined." >&2;}
23507
23508 rm -f "$tmp/stdin"
d9898ee8 23509 case $ac_file in
64ff59ba 23510 -) cat "$tmp/out"; rm -f "$tmp/out";;
23511 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
d9898ee8 23512 esac
64ff59ba 23513 ;;
23514 :H)
23515 #
23516 # CONFIG_HEADER
23517 #
d9898ee8 23518_ACEOF
23519
64ff59ba 23520# Transform confdefs.h into a sed script `conftest.defines', that
23521# substitutes the proper values into config.h.in to produce config.h.
23522rm -f conftest.defines conftest.tail
23523# First, append a space to every undef/define line, to ease matching.
23524echo 's/$/ /' >conftest.defines
23525# Then, protect against being on the right side of a sed subst, or in
23526# an unquoted here document, in config.status. If some macros were
23527# called several times there might be several #defines for the same
23528# symbol, which is useless. But do not sort them, since the last
23529# AC_DEFINE must be honored.
23530ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23531# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23532# NAME is the cpp macro being defined, VALUE is the value it is being given.
23533# PARAMS is the parameter list in the macro definition--in most cases, it's
23534# just an empty string.
23535ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23536ac_dB='\\)[ (].*,\\1define\\2'
23537ac_dC=' '
23538ac_dD=' ,'
23539
23540uniq confdefs.h |
23541 sed -n '
23542 t rset
23543 :rset
23544 s/^[ ]*#[ ]*define[ ][ ]*//
23545 t ok
23546 d
23547 :ok
23548 s/[\\&,]/\\&/g
23549 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23550 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23551 ' >>conftest.defines
23552
23553# Remove the space that was appended to ease matching.
23554# Then replace #undef with comments. This is necessary, for
d9898ee8 23555# example, in the case of _POSIX_SOURCE, which is predefined and required
23556# on some systems where configure will not decide to define it.
64ff59ba 23557# (The regexp can be short, since the line contains either #define or #undef.)
23558echo 's/ $//
23559s,^[ #]*u.*,/* & */,' >>conftest.defines
23560
23561# Break up conftest.defines:
23562ac_max_sed_lines=50
23563
23564# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23565# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23566# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23567# et cetera.
23568ac_in='$ac_file_inputs'
23569ac_out='"$tmp/out1"'
23570ac_nxt='"$tmp/out2"'
23571
23572while :
d9898ee8 23573do
64ff59ba 23574 # Write a here document:
23575 cat >>$CONFIG_STATUS <<_ACEOF
23576 # First, check the format of the line:
23577 cat >"\$tmp/defines.sed" <<\\CEOF
23578/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23579/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23580b
23581:def
23582_ACEOF
23583 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
d9898ee8 23584 echo 'CEOF
64ff59ba 23585 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23586 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23587 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23588 grep . conftest.tail >/dev/null || break
d9898ee8 23589 rm -f conftest.defines
23590 mv conftest.tail conftest.defines
23591done
64ff59ba 23592rm -f conftest.defines conftest.tail
d9898ee8 23593
64ff59ba 23594echo "ac_result=$ac_in" >>$CONFIG_STATUS
d9898ee8 23595cat >>$CONFIG_STATUS <<\_ACEOF
d9898ee8 23596 if test x"$ac_file" != x-; then
64ff59ba 23597 echo "/* $configure_input */" >"$tmp/config.h"
23598 cat "$ac_result" >>"$tmp/config.h"
23599 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
d9898ee8 23600 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23601echo "$as_me: $ac_file is unchanged" >&6;}
23602 else
d9898ee8 23603 rm -f $ac_file
64ff59ba 23604 mv "$tmp/config.h" $ac_file
d9898ee8 23605 fi
23606 else
64ff59ba 23607 echo "/* $configure_input */"
23608 cat "$ac_result"
d9898ee8 23609 fi
64ff59ba 23610 rm -f "$tmp/out12"
d9898ee8 23611# Compute $ac_file's index in $config_headers.
0fde1ce3 23612_am_arg=$ac_file
d9898ee8 23613_am_stamp_count=1
23614for _am_header in $config_headers :; do
23615 case $_am_header in
0fde1ce3 23616 $_am_arg | $_am_arg:* )
d9898ee8 23617 break ;;
23618 * )
23619 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23620 esac
23621done
0fde1ce3 23622echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23623$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23624 X"$_am_arg" : 'X\(//\)[^/]' \| \
23625 X"$_am_arg" : 'X\(//\)$' \| \
23626 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23627echo X"$_am_arg" |
64ff59ba 23628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23629 s//\1/
23630 q
23631 }
23632 /^X\(\/\/\)[^/].*/{
23633 s//\1/
23634 q
23635 }
23636 /^X\(\/\/\)$/{
23637 s//\1/
23638 q
23639 }
23640 /^X\(\/\).*/{
23641 s//\1/
23642 q
23643 }
23644 s/.*/./; q'`/stamp-h$_am_stamp_count
23645 ;;
d9898ee8 23646
64ff59ba 23647 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23648echo "$as_me: executing $ac_file commands" >&6;}
23649 ;;
23650 esac
d9898ee8 23651
23652
64ff59ba 23653 case $ac_file$ac_mode in
23654 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
d9898ee8 23655 # Strip MF so we end up with the name of the file.
23656 mf=`echo "$mf" | sed -e 's/:.*$//'`
23657 # Check whether this is an Automake generated Makefile or not.
23658 # We used to match only the files named `Makefile.in', but
23659 # some people rename them; so instead we look at the file content.
23660 # Grep'ing the first line is not enough: some people post-process
23661 # each Makefile.in and add a new line on top of each file to say so.
64ff59ba 23662 # Grep'ing the whole file is not good either: AIX grep has a line
23663 # limit of 2048, but all sed's we know have understand at least 4000.
0fde1ce3 23664 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
64ff59ba 23665 dirpart=`$as_dirname -- "$mf" ||
d9898ee8 23666$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23667 X"$mf" : 'X\(//\)[^/]' \| \
23668 X"$mf" : 'X\(//\)$' \| \
64ff59ba 23669 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 23670echo X"$mf" |
64ff59ba 23671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23672 s//\1/
23673 q
23674 }
23675 /^X\(\/\/\)[^/].*/{
23676 s//\1/
23677 q
23678 }
23679 /^X\(\/\/\)$/{
23680 s//\1/
23681 q
23682 }
23683 /^X\(\/\).*/{
23684 s//\1/
23685 q
23686 }
23687 s/.*/./; q'`
d9898ee8 23688 else
23689 continue
23690 fi
23691 # Extract the definition of DEPDIR, am__include, and am__quote
23692 # from the Makefile without running `make'.
23693 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23694 test -z "$DEPDIR" && continue
23695 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23696 test -z "am__include" && continue
23697 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23698 # When using ansi2knr, U may be empty or an underscore; expand it
23699 U=`sed -n 's/^U = //p' < "$mf"`
23700 # Find all dependency output files, they are included files with
23701 # $(DEPDIR) in their names. We invoke sed twice because it is the
23702 # simplest approach to changing $(DEPDIR) to its actual value in the
23703 # expansion.
23704 for file in `sed -n "
23705 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23706 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23707 # Make sure the directory exists.
23708 test -f "$dirpart/$file" && continue
64ff59ba 23709 fdir=`$as_dirname -- "$file" ||
d9898ee8 23710$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23711 X"$file" : 'X\(//\)[^/]' \| \
23712 X"$file" : 'X\(//\)$' \| \
64ff59ba 23713 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 23714echo X"$file" |
64ff59ba 23715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23716 s//\1/
23717 q
23718 }
23719 /^X\(\/\/\)[^/].*/{
23720 s//\1/
23721 q
23722 }
23723 /^X\(\/\/\)$/{
23724 s//\1/
23725 q
23726 }
23727 /^X\(\/\).*/{
23728 s//\1/
23729 q
23730 }
23731 s/.*/./; q'`
23732 { as_dir=$dirpart/$fdir
23733 case $as_dir in #(
23734 -*) as_dir=./$as_dir;;
23735 esac
23736 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 23737 as_dirs=
64ff59ba 23738 while :; do
23739 case $as_dir in #(
23740 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23741 *) as_qdir=$as_dir;;
23742 esac
23743 as_dirs="'$as_qdir' $as_dirs"
23744 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 23745$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23746 X"$as_dir" : 'X\(//\)[^/]' \| \
23747 X"$as_dir" : 'X\(//\)$' \| \
64ff59ba 23748 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 23749echo X"$as_dir" |
64ff59ba 23750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23751 s//\1/
23752 q
23753 }
23754 /^X\(\/\/\)[^/].*/{
23755 s//\1/
23756 q
23757 }
23758 /^X\(\/\/\)$/{
23759 s//\1/
23760 q
23761 }
23762 /^X\(\/\).*/{
23763 s//\1/
23764 q
23765 }
23766 s/.*/./; q'`
23767 test -d "$as_dir" && break
d9898ee8 23768 done
64ff59ba 23769 test -z "$as_dirs" || eval "mkdir $as_dirs"
23770 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23771echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 23772 { (exit 1); exit 1; }; }; }
d9898ee8 23773 # echo "creating $dirpart/$file"
23774 echo '# dummy' > "$dirpart/$file"
23775 done
23776done
23777 ;;
64ff59ba 23778
d9898ee8 23779 esac
64ff59ba 23780done # for ac_tag
d9898ee8 23781
d9898ee8 23782
23783{ (exit 0); exit 0; }
23784_ACEOF
23785chmod +x $CONFIG_STATUS
23786ac_clean_files=$ac_clean_files_save
23787
23788
23789# configure is writing to config.log, and then calls config.status.
23790# config.status does its own redirection, appending to config.log.
23791# Unfortunately, on DOS this fails, as config.log is still kept open
23792# by configure, so config.status won't be able to write to it; its
23793# output is simply discarded. So we exec the FD to /dev/null,
23794# effectively closing config.log, so it can be properly (re)opened and
23795# appended to by config.status. When coming back to configure, we
23796# need to make the FD available again.
23797if test "$no_create" != yes; then
23798 ac_cs_success=:
23799 ac_config_status_args=
23800 test "$silent" = yes &&
23801 ac_config_status_args="$ac_config_status_args --quiet"
23802 exec 5>/dev/null
23803 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23804 exec 5>>config.log
23805 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23806 # would make configure fail if this is the last instruction.
23807 $ac_cs_success || { (exit 1); exit 1; }
23808fi
23809