Import Debian package 0.61.0-1+lenny1
[hcoop/debian/courier-authlib.git] / numlib / 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 numlib 0.10.
d9898ee8 4#
5# Report bugs to <courier-users@lists.sourceforge.net>.
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='numlib'
730PACKAGE_TARNAME='numlib'
731PACKAGE_VERSION='0.10'
732PACKAGE_STRING='numlib 0.10'
733PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
734
735ac_unique_file="atotimet.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
847LN_S
848build
849build_cpu
850build_vendor
851build_os
852host
853host_cpu
854host_vendor
855host_os
856SED
857GREP
858EGREP
859ECHO
860AR
861RANLIB
862CPP
863CXX
864CXXFLAGS
865ac_ct_CXX
866CXXDEPMODE
867am__fastdepCXX_TRUE
868am__fastdepCXX_FALSE
869CXXCPP
870F77
871FFLAGS
872ac_ct_F77
873LIBTOOL
874LIBOBJS
875LTLIBOBJS'
d9898ee8 876ac_subst_files=''
64ff59ba 877 ac_precious_vars='build_alias
878host_alias
879target_alias
880CC
881CFLAGS
882LDFLAGS
883LIBS
884CPPFLAGS
885CPP
886CXX
887CXXFLAGS
888CCC
889CXXCPP
890F77
891FFLAGS'
892
d9898ee8 893
894# Initialize some variables set by options.
895ac_init_help=
896ac_init_version=false
897# The variables have the same names as the options, with
898# dashes changed to underlines.
899cache_file=/dev/null
900exec_prefix=NONE
901no_create=
902no_recursion=
903prefix=NONE
904program_prefix=NONE
905program_suffix=NONE
906program_transform_name=s,x,x,
907silent=
908site=
909srcdir=
910verbose=
911x_includes=NONE
912x_libraries=NONE
913
914# Installation directory options.
915# These are left unexpanded so users can "make install exec_prefix=/foo"
916# and all the variables that are supposed to be based on exec_prefix
917# by default will actually change.
918# Use braces instead of parens because sh, perl, etc. also accept them.
64ff59ba 919# (The list follows the same order as the GNU Coding Standards.)
d9898ee8 920bindir='${exec_prefix}/bin'
921sbindir='${exec_prefix}/sbin'
922libexecdir='${exec_prefix}/libexec'
64ff59ba 923datarootdir='${prefix}/share'
924datadir='${datarootdir}'
d9898ee8 925sysconfdir='${prefix}/etc'
926sharedstatedir='${prefix}/com'
927localstatedir='${prefix}/var'
d9898ee8 928includedir='${prefix}/include'
929oldincludedir='/usr/include'
64ff59ba 930docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
931infodir='${datarootdir}/info'
932htmldir='${docdir}'
933dvidir='${docdir}'
934pdfdir='${docdir}'
935psdir='${docdir}'
936libdir='${exec_prefix}/lib'
937localedir='${datarootdir}/locale'
938mandir='${datarootdir}/man'
d9898ee8 939
940ac_prev=
64ff59ba 941ac_dashdash=
d9898ee8 942for ac_option
943do
944 # If the previous option needs an argument, assign it.
945 if test -n "$ac_prev"; then
64ff59ba 946 eval $ac_prev=\$ac_option
d9898ee8 947 ac_prev=
948 continue
949 fi
950
64ff59ba 951 case $ac_option in
952 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
953 *) ac_optarg=yes ;;
954 esac
d9898ee8 955
956 # Accept the important Cygnus configure options, so we can diagnose typos.
957
64ff59ba 958 case $ac_dashdash$ac_option in
959 --)
960 ac_dashdash=yes ;;
d9898ee8 961
962 -bindir | --bindir | --bindi | --bind | --bin | --bi)
963 ac_prev=bindir ;;
964 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
965 bindir=$ac_optarg ;;
966
967 -build | --build | --buil | --bui | --bu)
968 ac_prev=build_alias ;;
969 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
970 build_alias=$ac_optarg ;;
971
972 -cache-file | --cache-file | --cache-fil | --cache-fi \
973 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
974 ac_prev=cache_file ;;
975 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
976 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
977 cache_file=$ac_optarg ;;
978
979 --config-cache | -C)
980 cache_file=config.cache ;;
981
64ff59ba 982 -datadir | --datadir | --datadi | --datad)
d9898ee8 983 ac_prev=datadir ;;
64ff59ba 984 -datadir=* | --datadir=* | --datadi=* | --datad=*)
d9898ee8 985 datadir=$ac_optarg ;;
986
64ff59ba 987 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
988 | --dataroo | --dataro | --datar)
989 ac_prev=datarootdir ;;
990 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
991 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
992 datarootdir=$ac_optarg ;;
993
d9898ee8 994 -disable-* | --disable-*)
995 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
996 # Reject names that are not valid shell variable names.
64ff59ba 997 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 998 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
999 { (exit 1); exit 1; }; }
64ff59ba 1000 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1001 eval enable_$ac_feature=no ;;
1002
1003 -docdir | --docdir | --docdi | --doc | --do)
1004 ac_prev=docdir ;;
1005 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1006 docdir=$ac_optarg ;;
1007
1008 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1009 ac_prev=dvidir ;;
1010 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1011 dvidir=$ac_optarg ;;
d9898ee8 1012
1013 -enable-* | --enable-*)
1014 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1015 # Reject names that are not valid shell variable names.
64ff59ba 1016 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1017 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1018 { (exit 1); exit 1; }; }
64ff59ba 1019 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1020 eval enable_$ac_feature=\$ac_optarg ;;
d9898ee8 1021
1022 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1023 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1024 | --exec | --exe | --ex)
1025 ac_prev=exec_prefix ;;
1026 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1027 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1028 | --exec=* | --exe=* | --ex=*)
1029 exec_prefix=$ac_optarg ;;
1030
1031 -gas | --gas | --ga | --g)
1032 # Obsolete; use --with-gas.
1033 with_gas=yes ;;
1034
1035 -help | --help | --hel | --he | -h)
1036 ac_init_help=long ;;
1037 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1038 ac_init_help=recursive ;;
1039 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1040 ac_init_help=short ;;
1041
1042 -host | --host | --hos | --ho)
1043 ac_prev=host_alias ;;
1044 -host=* | --host=* | --hos=* | --ho=*)
1045 host_alias=$ac_optarg ;;
1046
64ff59ba 1047 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1048 ac_prev=htmldir ;;
1049 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1050 | --ht=*)
1051 htmldir=$ac_optarg ;;
1052
d9898ee8 1053 -includedir | --includedir | --includedi | --included | --include \
1054 | --includ | --inclu | --incl | --inc)
1055 ac_prev=includedir ;;
1056 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1057 | --includ=* | --inclu=* | --incl=* | --inc=*)
1058 includedir=$ac_optarg ;;
1059
1060 -infodir | --infodir | --infodi | --infod | --info | --inf)
1061 ac_prev=infodir ;;
1062 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1063 infodir=$ac_optarg ;;
1064
1065 -libdir | --libdir | --libdi | --libd)
1066 ac_prev=libdir ;;
1067 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1068 libdir=$ac_optarg ;;
1069
1070 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1071 | --libexe | --libex | --libe)
1072 ac_prev=libexecdir ;;
1073 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1074 | --libexe=* | --libex=* | --libe=*)
1075 libexecdir=$ac_optarg ;;
1076
64ff59ba 1077 -localedir | --localedir | --localedi | --localed | --locale)
1078 ac_prev=localedir ;;
1079 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1080 localedir=$ac_optarg ;;
1081
d9898ee8 1082 -localstatedir | --localstatedir | --localstatedi | --localstated \
64ff59ba 1083 | --localstate | --localstat | --localsta | --localst | --locals)
d9898ee8 1084 ac_prev=localstatedir ;;
1085 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
64ff59ba 1086 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
d9898ee8 1087 localstatedir=$ac_optarg ;;
1088
1089 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1090 ac_prev=mandir ;;
1091 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1092 mandir=$ac_optarg ;;
1093
1094 -nfp | --nfp | --nf)
1095 # Obsolete; use --without-fp.
1096 with_fp=no ;;
1097
1098 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1099 | --no-cr | --no-c | -n)
1100 no_create=yes ;;
1101
1102 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1103 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1104 no_recursion=yes ;;
1105
1106 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1107 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1108 | --oldin | --oldi | --old | --ol | --o)
1109 ac_prev=oldincludedir ;;
1110 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1111 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1112 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1113 oldincludedir=$ac_optarg ;;
1114
1115 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1116 ac_prev=prefix ;;
1117 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1118 prefix=$ac_optarg ;;
1119
1120 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1121 | --program-pre | --program-pr | --program-p)
1122 ac_prev=program_prefix ;;
1123 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1124 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1125 program_prefix=$ac_optarg ;;
1126
1127 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1128 | --program-suf | --program-su | --program-s)
1129 ac_prev=program_suffix ;;
1130 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1131 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1132 program_suffix=$ac_optarg ;;
1133
1134 -program-transform-name | --program-transform-name \
1135 | --program-transform-nam | --program-transform-na \
1136 | --program-transform-n | --program-transform- \
1137 | --program-transform | --program-transfor \
1138 | --program-transfo | --program-transf \
1139 | --program-trans | --program-tran \
1140 | --progr-tra | --program-tr | --program-t)
1141 ac_prev=program_transform_name ;;
1142 -program-transform-name=* | --program-transform-name=* \
1143 | --program-transform-nam=* | --program-transform-na=* \
1144 | --program-transform-n=* | --program-transform-=* \
1145 | --program-transform=* | --program-transfor=* \
1146 | --program-transfo=* | --program-transf=* \
1147 | --program-trans=* | --program-tran=* \
1148 | --progr-tra=* | --program-tr=* | --program-t=*)
1149 program_transform_name=$ac_optarg ;;
1150
64ff59ba 1151 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1152 ac_prev=pdfdir ;;
1153 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1154 pdfdir=$ac_optarg ;;
1155
1156 -psdir | --psdir | --psdi | --psd | --ps)
1157 ac_prev=psdir ;;
1158 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1159 psdir=$ac_optarg ;;
1160
d9898ee8 1161 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1162 | -silent | --silent | --silen | --sile | --sil)
1163 silent=yes ;;
1164
1165 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1166 ac_prev=sbindir ;;
1167 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1168 | --sbi=* | --sb=*)
1169 sbindir=$ac_optarg ;;
1170
1171 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1172 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1173 | --sharedst | --shareds | --shared | --share | --shar \
1174 | --sha | --sh)
1175 ac_prev=sharedstatedir ;;
1176 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1177 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1178 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1179 | --sha=* | --sh=*)
1180 sharedstatedir=$ac_optarg ;;
1181
1182 -site | --site | --sit)
1183 ac_prev=site ;;
1184 -site=* | --site=* | --sit=*)
1185 site=$ac_optarg ;;
1186
1187 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1188 ac_prev=srcdir ;;
1189 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1190 srcdir=$ac_optarg ;;
1191
1192 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1193 | --syscon | --sysco | --sysc | --sys | --sy)
1194 ac_prev=sysconfdir ;;
1195 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1196 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1197 sysconfdir=$ac_optarg ;;
1198
1199 -target | --target | --targe | --targ | --tar | --ta | --t)
1200 ac_prev=target_alias ;;
1201 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1202 target_alias=$ac_optarg ;;
1203
1204 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1205 verbose=yes ;;
1206
1207 -version | --version | --versio | --versi | --vers | -V)
1208 ac_init_version=: ;;
1209
1210 -with-* | --with-*)
1211 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1212 # Reject names that are not valid shell variable names.
64ff59ba 1213 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1214 { echo "$as_me: error: invalid package name: $ac_package" >&2
1215 { (exit 1); exit 1; }; }
64ff59ba 1216 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1217 eval with_$ac_package=\$ac_optarg ;;
d9898ee8 1218
1219 -without-* | --without-*)
1220 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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=no ;;
d9898ee8 1227
1228 --x)
1229 # Obsolete; use --with-x.
1230 with_x=yes ;;
1231
1232 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1233 | --x-incl | --x-inc | --x-in | --x-i)
1234 ac_prev=x_includes ;;
1235 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1236 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1237 x_includes=$ac_optarg ;;
1238
1239 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1240 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1241 ac_prev=x_libraries ;;
1242 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1243 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1244 x_libraries=$ac_optarg ;;
1245
1246 -*) { echo "$as_me: error: unrecognized option: $ac_option
1247Try \`$0 --help' for more information." >&2
1248 { (exit 1); exit 1; }; }
1249 ;;
1250
1251 *=*)
1252 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1253 # Reject names that are not valid shell variable names.
1254 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1255 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1256 { (exit 1); exit 1; }; }
64ff59ba 1257 eval $ac_envvar=\$ac_optarg
d9898ee8 1258 export $ac_envvar ;;
1259
1260 *)
1261 # FIXME: should be removed in autoconf 3.0.
1262 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1263 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1264 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1265 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1266 ;;
1267
1268 esac
1269done
1270
1271if test -n "$ac_prev"; then
1272 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1273 { echo "$as_me: error: missing argument to $ac_option" >&2
1274 { (exit 1); exit 1; }; }
1275fi
1276
64ff59ba 1277# Be sure to have absolute directory names.
1278for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1279 datadir sysconfdir sharedstatedir localstatedir includedir \
1280 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1281 libdir localedir mandir
d9898ee8 1282do
64ff59ba 1283 eval ac_val=\$$ac_var
d9898ee8 1284 case $ac_val in
64ff59ba 1285 [\\/$]* | ?:[\\/]* ) continue;;
1286 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d9898ee8 1287 esac
64ff59ba 1288 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1289 { (exit 1); exit 1; }; }
d9898ee8 1290done
1291
1292# There might be people who depend on the old broken behavior: `$host'
1293# used to hold the argument of --host etc.
1294# FIXME: To remove some day.
1295build=$build_alias
1296host=$host_alias
1297target=$target_alias
1298
1299# FIXME: To remove some day.
1300if test "x$host_alias" != x; then
1301 if test "x$build_alias" = x; then
1302 cross_compiling=maybe
1303 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1304 If a cross compiler is detected then cross compile mode will be used." >&2
1305 elif test "x$build_alias" != "x$host_alias"; then
1306 cross_compiling=yes
1307 fi
1308fi
1309
1310ac_tool_prefix=
1311test -n "$host_alias" && ac_tool_prefix=$host_alias-
1312
1313test "$silent" = yes && exec 6>/dev/null
1314
1315
64ff59ba 1316ac_pwd=`pwd` && test -n "$ac_pwd" &&
1317ac_ls_di=`ls -di .` &&
1318ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1319 { echo "$as_me: error: Working directory cannot be determined" >&2
1320 { (exit 1); exit 1; }; }
1321test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1322 { echo "$as_me: error: pwd does not report name of working directory" >&2
1323 { (exit 1); exit 1; }; }
1324
1325
d9898ee8 1326# Find the source files, if location was not specified.
1327if test -z "$srcdir"; then
1328 ac_srcdir_defaulted=yes
64ff59ba 1329 # Try the directory containing this script, then the parent directory.
1330 ac_confdir=`$as_dirname -- "$0" ||
d9898ee8 1331$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1332 X"$0" : 'X\(//\)[^/]' \| \
1333 X"$0" : 'X\(//\)$' \| \
64ff59ba 1334 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 1335echo X"$0" |
64ff59ba 1336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1337 s//\1/
1338 q
1339 }
1340 /^X\(\/\/\)[^/].*/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\/\)$/{
1345 s//\1/
1346 q
1347 }
1348 /^X\(\/\).*/{
1349 s//\1/
1350 q
1351 }
1352 s/.*/./; q'`
d9898ee8 1353 srcdir=$ac_confdir
64ff59ba 1354 if test ! -r "$srcdir/$ac_unique_file"; then
d9898ee8 1355 srcdir=..
1356 fi
1357else
1358 ac_srcdir_defaulted=no
1359fi
64ff59ba 1360if test ! -r "$srcdir/$ac_unique_file"; then
1361 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1362 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
d9898ee8 1363 { (exit 1); exit 1; }; }
d9898ee8 1364fi
64ff59ba 1365ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1366ac_abs_confdir=`(
1367 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
d9898ee8 1368 { (exit 1); exit 1; }; }
64ff59ba 1369 pwd)`
1370# When building in place, set srcdir=.
1371if test "$ac_abs_confdir" = "$ac_pwd"; then
1372 srcdir=.
1373fi
1374# Remove unnecessary trailing slashes from srcdir.
1375# Double slashes in file names in object file debugging info
1376# mess up M-x gdb in Emacs.
1377case $srcdir in
1378*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1379esac
1380for ac_var in $ac_precious_vars; do
1381 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_env_${ac_var}_value=\$${ac_var}
1383 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1385done
d9898ee8 1386
1387#
1388# Report the --help message.
1389#
1390if test "$ac_init_help" = "long"; then
1391 # Omit some internal or obsolete options to make the list less imposing.
1392 # This message is too long to be a string in the A/UX 3.1 sh.
1393 cat <<_ACEOF
1394\`configure' configures numlib 0.10 to adapt to many kinds of systems.
1395
1396Usage: $0 [OPTION]... [VAR=VALUE]...
1397
1398To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399VAR=VALUE. See below for descriptions of some of the useful variables.
1400
1401Defaults for the options are specified in brackets.
1402
1403Configuration:
1404 -h, --help display this help and exit
1405 --help=short display options specific to this package
1406 --help=recursive display the short help of all the included packages
1407 -V, --version display version information and exit
1408 -q, --quiet, --silent do not print \`checking...' messages
1409 --cache-file=FILE cache test results in FILE [disabled]
1410 -C, --config-cache alias for \`--cache-file=config.cache'
1411 -n, --no-create do not create output files
1412 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1413
d9898ee8 1414Installation directories:
1415 --prefix=PREFIX install architecture-independent files in PREFIX
1416 [$ac_default_prefix]
1417 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1418 [PREFIX]
1419
1420By default, \`make install' will install all the files in
1421\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1422an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423for instance \`--prefix=\$HOME'.
1424
1425For better control, use the options below.
1426
1427Fine tuning of the installation directories:
1428 --bindir=DIR user executables [EPREFIX/bin]
1429 --sbindir=DIR system admin executables [EPREFIX/sbin]
1430 --libexecdir=DIR program executables [EPREFIX/libexec]
d9898ee8 1431 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1432 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1433 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1434 --libdir=DIR object code libraries [EPREFIX/lib]
1435 --includedir=DIR C header files [PREFIX/include]
1436 --oldincludedir=DIR C header files for non-gcc [/usr/include]
64ff59ba 1437 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1438 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1439 --infodir=DIR info documentation [DATAROOTDIR/info]
1440 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1441 --mandir=DIR man documentation [DATAROOTDIR/man]
1442 --docdir=DIR documentation root [DATAROOTDIR/doc/numlib]
1443 --htmldir=DIR html documentation [DOCDIR]
1444 --dvidir=DIR dvi documentation [DOCDIR]
1445 --pdfdir=DIR pdf documentation [DOCDIR]
1446 --psdir=DIR ps documentation [DOCDIR]
d9898ee8 1447_ACEOF
1448
1449 cat <<\_ACEOF
1450
1451Program names:
1452 --program-prefix=PREFIX prepend PREFIX to installed program names
1453 --program-suffix=SUFFIX append SUFFIX to installed program names
1454 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1455
1456System types:
1457 --build=BUILD configure for building on BUILD [guessed]
1458 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1459_ACEOF
1460fi
1461
1462if test -n "$ac_init_help"; then
1463 case $ac_init_help in
1464 short | recursive ) echo "Configuration of numlib 0.10:";;
1465 esac
1466 cat <<\_ACEOF
1467
1468Optional Features:
1469 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1470 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1471 --disable-dependency-tracking speeds up one-time build
1472 --enable-dependency-tracking do not reject slow dependency extractors
64ff59ba 1473 --enable-shared[=PKGS] build shared libraries [default=yes]
1474 --enable-static[=PKGS] build static libraries [default=yes]
d9898ee8 1475 --enable-fast-install[=PKGS]
1476 optimize for fast installation [default=yes]
1477 --disable-libtool-lock avoid locking (might break parallel builds)
1478
1479Optional Packages:
1480 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1481 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1482 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1483 --with-pic try to use only PIC/non-PIC objects [default=use
1484 both]
64ff59ba 1485 --with-tags[=TAGS] include additional configurations [automatic]
d9898ee8 1486
1487Some influential environment variables:
1488 CC C compiler command
1489 CFLAGS C compiler flags
1490 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1491 nonstandard directory <lib dir>
64ff59ba 1492 LIBS libraries to pass to the linker, e.g. -l<library>
1493 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1494 you have headers in a nonstandard directory <include dir>
d9898ee8 1495 CPP C preprocessor
1496 CXX C++ compiler command
1497 CXXFLAGS C++ compiler flags
1498 CXXCPP C++ preprocessor
1499 F77 Fortran 77 compiler command
1500 FFLAGS Fortran 77 compiler flags
1501
1502Use these variables to override the choices made by `configure' or to help
1503it to find libraries and programs with nonstandard names/locations.
1504
1505Report bugs to <courier-users@lists.sourceforge.net>.
1506_ACEOF
64ff59ba 1507ac_status=$?
d9898ee8 1508fi
1509
1510if test "$ac_init_help" = "recursive"; then
1511 # If there are subdirs, report their specific --help.
d9898ee8 1512 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
64ff59ba 1513 test -d "$ac_dir" || continue
d9898ee8 1514 ac_builddir=.
1515
64ff59ba 1516case "$ac_dir" in
1517.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518*)
d9898ee8 1519 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
64ff59ba 1520 # A ".." for each directory in $ac_dir_suffix.
1521 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1522 case $ac_top_builddir_sub in
1523 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1525 esac ;;
1526esac
1527ac_abs_top_builddir=$ac_pwd
1528ac_abs_builddir=$ac_pwd$ac_dir_suffix
1529# for backward compatibility:
1530ac_top_builddir=$ac_top_build_prefix
d9898ee8 1531
1532case $srcdir in
64ff59ba 1533 .) # We are building in place.
d9898ee8 1534 ac_srcdir=.
64ff59ba 1535 ac_top_srcdir=$ac_top_builddir_sub
1536 ac_abs_top_srcdir=$ac_pwd ;;
1537 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 1538 ac_srcdir=$srcdir$ac_dir_suffix;
64ff59ba 1539 ac_top_srcdir=$srcdir
1540 ac_abs_top_srcdir=$srcdir ;;
1541 *) # Relative name.
1542 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1543 ac_top_srcdir=$ac_top_build_prefix$srcdir
1544 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 1545esac
64ff59ba 1546ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1547
1548 cd "$ac_dir" || { ac_status=$?; continue; }
1549 # Check for guested configure.
1550 if test -f "$ac_srcdir/configure.gnu"; then
1551 echo &&
1552 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1553 elif test -f "$ac_srcdir/configure"; then
1554 echo &&
1555 $SHELL "$ac_srcdir/configure" --help=recursive
d9898ee8 1556 else
1557 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
64ff59ba 1558 fi || ac_status=$?
1559 cd "$ac_pwd" || { ac_status=$?; break; }
d9898ee8 1560 done
1561fi
1562
64ff59ba 1563test -n "$ac_init_help" && exit $ac_status
d9898ee8 1564if $ac_init_version; then
1565 cat <<\_ACEOF
1566numlib configure 0.10
64ff59ba 1567generated by GNU Autoconf 2.61
d9898ee8 1568
64ff59ba 1569Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15702002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
d9898ee8 1571This configure script is free software; the Free Software Foundation
1572gives unlimited permission to copy, distribute and modify it.
1573_ACEOF
64ff59ba 1574 exit
d9898ee8 1575fi
64ff59ba 1576cat >config.log <<_ACEOF
d9898ee8 1577This file contains any messages produced by compilers while
1578running configure, to aid debugging if configure makes a mistake.
1579
1580It was created by numlib $as_me 0.10, which was
64ff59ba 1581generated by GNU Autoconf 2.61. Invocation command line was
d9898ee8 1582
1583 $ $0 $@
1584
1585_ACEOF
64ff59ba 1586exec 5>>config.log
d9898ee8 1587{
1588cat <<_ASUNAME
1589## --------- ##
1590## Platform. ##
1591## --------- ##
1592
1593hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1594uname -m = `(uname -m) 2>/dev/null || echo unknown`
1595uname -r = `(uname -r) 2>/dev/null || echo unknown`
1596uname -s = `(uname -s) 2>/dev/null || echo unknown`
1597uname -v = `(uname -v) 2>/dev/null || echo unknown`
1598
1599/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1600/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1601
1602/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1603/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1604/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
64ff59ba 1605/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
d9898ee8 1606/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1607/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1608/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1609
1610_ASUNAME
1611
1612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613for as_dir in $PATH
1614do
1615 IFS=$as_save_IFS
1616 test -z "$as_dir" && as_dir=.
1617 echo "PATH: $as_dir"
1618done
64ff59ba 1619IFS=$as_save_IFS
d9898ee8 1620
1621} >&5
1622
1623cat >&5 <<_ACEOF
1624
1625
1626## ----------- ##
1627## Core tests. ##
1628## ----------- ##
1629
1630_ACEOF
1631
1632
1633# Keep a trace of the command line.
1634# Strip out --no-create and --no-recursion so they do not pile up.
1635# Strip out --silent because we don't want to record it for future runs.
1636# Also quote any args containing shell meta-characters.
1637# Make two passes to allow for proper duplicate-argument suppression.
1638ac_configure_args=
1639ac_configure_args0=
1640ac_configure_args1=
d9898ee8 1641ac_must_keep_next=false
1642for ac_pass in 1 2
1643do
1644 for ac_arg
1645 do
1646 case $ac_arg in
1647 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1648 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1649 | -silent | --silent | --silen | --sile | --sil)
1650 continue ;;
64ff59ba 1651 *\'*)
d9898ee8 1652 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1653 esac
1654 case $ac_pass in
1655 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1656 2)
1657 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1658 if test $ac_must_keep_next = true; then
1659 ac_must_keep_next=false # Got value, back to normal.
1660 else
1661 case $ac_arg in
1662 *=* | --config-cache | -C | -disable-* | --disable-* \
1663 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1664 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1665 | -with-* | --with-* | -without-* | --without-* | --x)
1666 case "$ac_configure_args0 " in
1667 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1668 esac
1669 ;;
1670 -* ) ac_must_keep_next=true ;;
1671 esac
1672 fi
64ff59ba 1673 ac_configure_args="$ac_configure_args '$ac_arg'"
d9898ee8 1674 ;;
1675 esac
1676 done
1677done
1678$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1679$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1680
1681# When interrupted or exit'd, cleanup temporary files, and complete
1682# config.log. We remove comments because anyway the quotes in there
1683# would cause problems or look ugly.
64ff59ba 1684# WARNING: Use '\'' to represent an apostrophe within the trap.
1685# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
d9898ee8 1686trap 'exit_status=$?
1687 # Save into config.log some information that might help in debugging.
1688 {
1689 echo
1690
1691 cat <<\_ASBOX
1692## ---------------- ##
1693## Cache variables. ##
1694## ---------------- ##
1695_ASBOX
1696 echo
1697 # The following way of writing the cache mishandles newlines in values,
64ff59ba 1698(
1699 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1700 eval ac_val=\$$ac_var
1701 case $ac_val in #(
1702 *${as_nl}*)
1703 case $ac_var in #(
1704 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1705echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1706 esac
1707 case $ac_var in #(
1708 _ | IFS | as_nl) ;; #(
1709 *) $as_unset $ac_var ;;
1710 esac ;;
1711 esac
1712 done
d9898ee8 1713 (set) 2>&1 |
64ff59ba 1714 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1715 *${as_nl}ac_space=\ *)
d9898ee8 1716 sed -n \
64ff59ba 1717 "s/'\''/'\''\\\\'\'''\''/g;
1718 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1719 ;; #(
d9898ee8 1720 *)
64ff59ba 1721 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 1722 ;;
64ff59ba 1723 esac |
1724 sort
1725)
d9898ee8 1726 echo
1727
1728 cat <<\_ASBOX
1729## ----------------- ##
1730## Output variables. ##
1731## ----------------- ##
1732_ASBOX
1733 echo
1734 for ac_var in $ac_subst_vars
1735 do
64ff59ba 1736 eval ac_val=\$$ac_var
1737 case $ac_val in
1738 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1739 esac
1740 echo "$ac_var='\''$ac_val'\''"
d9898ee8 1741 done | sort
1742 echo
1743
1744 if test -n "$ac_subst_files"; then
1745 cat <<\_ASBOX
64ff59ba 1746## ------------------- ##
1747## File substitutions. ##
1748## ------------------- ##
d9898ee8 1749_ASBOX
1750 echo
1751 for ac_var in $ac_subst_files
1752 do
64ff59ba 1753 eval ac_val=\$$ac_var
1754 case $ac_val in
1755 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1756 esac
1757 echo "$ac_var='\''$ac_val'\''"
d9898ee8 1758 done | sort
1759 echo
1760 fi
1761
1762 if test -s confdefs.h; then
1763 cat <<\_ASBOX
1764## ----------- ##
1765## confdefs.h. ##
1766## ----------- ##
1767_ASBOX
1768 echo
64ff59ba 1769 cat confdefs.h
d9898ee8 1770 echo
1771 fi
1772 test "$ac_signal" != 0 &&
1773 echo "$as_me: caught signal $ac_signal"
1774 echo "$as_me: exit $exit_status"
1775 } >&5
64ff59ba 1776 rm -f core *.core core.conftest.* &&
1777 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
d9898ee8 1778 exit $exit_status
64ff59ba 1779' 0
d9898ee8 1780for ac_signal in 1 2 13 15; do
1781 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1782done
1783ac_signal=0
1784
1785# confdefs.h avoids OS command line length limits that DEFS can exceed.
64ff59ba 1786rm -f -r conftest* confdefs.h
d9898ee8 1787
1788# Predefined preprocessor variables.
1789
1790cat >>confdefs.h <<_ACEOF
1791#define PACKAGE_NAME "$PACKAGE_NAME"
1792_ACEOF
1793
1794
1795cat >>confdefs.h <<_ACEOF
1796#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1797_ACEOF
1798
1799
1800cat >>confdefs.h <<_ACEOF
1801#define PACKAGE_VERSION "$PACKAGE_VERSION"
1802_ACEOF
1803
1804
1805cat >>confdefs.h <<_ACEOF
1806#define PACKAGE_STRING "$PACKAGE_STRING"
1807_ACEOF
1808
1809
1810cat >>confdefs.h <<_ACEOF
1811#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1812_ACEOF
1813
1814
1815# Let the site file select an alternate cache file if it wants to.
1816# Prefer explicitly selected file to automatically selected ones.
64ff59ba 1817if test -n "$CONFIG_SITE"; then
1818 set x "$CONFIG_SITE"
1819elif test "x$prefix" != xNONE; then
1820 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1821else
1822 set x "$ac_default_prefix/share/config.site" \
1823 "$ac_default_prefix/etc/config.site"
d9898ee8 1824fi
64ff59ba 1825shift
1826for ac_site_file
1827do
d9898ee8 1828 if test -r "$ac_site_file"; then
1829 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1830echo "$as_me: loading site script $ac_site_file" >&6;}
1831 sed 's/^/| /' "$ac_site_file" >&5
1832 . "$ac_site_file"
1833 fi
1834done
1835
1836if test -r "$cache_file"; then
1837 # Some versions of bash will fail to source /dev/null (special
1838 # files actually), so we avoid doing that.
1839 if test -f "$cache_file"; then
1840 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1841echo "$as_me: loading cache $cache_file" >&6;}
1842 case $cache_file in
64ff59ba 1843 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1844 *) . "./$cache_file";;
d9898ee8 1845 esac
1846 fi
1847else
1848 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1849echo "$as_me: creating cache $cache_file" >&6;}
1850 >$cache_file
1851fi
1852
1853# Check that the precious variables saved in the cache have kept the same
1854# value.
1855ac_cache_corrupted=false
64ff59ba 1856for ac_var in $ac_precious_vars; do
d9898ee8 1857 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1858 eval ac_new_set=\$ac_env_${ac_var}_set
64ff59ba 1859 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1860 eval ac_new_val=\$ac_env_${ac_var}_value
d9898ee8 1861 case $ac_old_set,$ac_new_set in
1862 set,)
1863 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1864echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1865 ac_cache_corrupted=: ;;
1866 ,set)
1867 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1868echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1869 ac_cache_corrupted=: ;;
1870 ,);;
1871 *)
1872 if test "x$ac_old_val" != "x$ac_new_val"; then
1873 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1874echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1875 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1876echo "$as_me: former value: $ac_old_val" >&2;}
1877 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1878echo "$as_me: current value: $ac_new_val" >&2;}
1879 ac_cache_corrupted=:
1880 fi;;
1881 esac
1882 # Pass precious variables to config.status.
1883 if test "$ac_new_set" = set; then
1884 case $ac_new_val in
64ff59ba 1885 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 1886 *) ac_arg=$ac_var=$ac_new_val ;;
1887 esac
1888 case " $ac_configure_args " in
1889 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1890 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1891 esac
1892 fi
1893done
1894if $ac_cache_corrupted; then
1895 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1896echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1897 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1898echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1899 { (exit 1); exit 1; }; }
1900fi
1901
d9898ee8 1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
64ff59ba 1926ac_ext=c
1927ac_cpp='$CPP $CPPFLAGS'
1928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1930ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 1931
1932
1933
1934>confdefs.h # Kill PACKAGE_ macros
1935
1936
64ff59ba 1937ac_config_headers="$ac_config_headers config.h"
1938
1939am__api_version='1.10'
d9898ee8 1940
d9898ee8 1941ac_aux_dir=
64ff59ba 1942for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1943 if test -f "$ac_dir/install-sh"; then
d9898ee8 1944 ac_aux_dir=$ac_dir
1945 ac_install_sh="$ac_aux_dir/install-sh -c"
1946 break
64ff59ba 1947 elif test -f "$ac_dir/install.sh"; then
d9898ee8 1948 ac_aux_dir=$ac_dir
1949 ac_install_sh="$ac_aux_dir/install.sh -c"
1950 break
64ff59ba 1951 elif test -f "$ac_dir/shtool"; then
d9898ee8 1952 ac_aux_dir=$ac_dir
1953 ac_install_sh="$ac_aux_dir/shtool install -c"
1954 break
1955 fi
1956done
1957if test -z "$ac_aux_dir"; then
64ff59ba 1958 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1959echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
d9898ee8 1960 { (exit 1); exit 1; }; }
1961fi
64ff59ba 1962
1963# These three variables are undocumented and unsupported,
1964# and are intended to be withdrawn in a future Autoconf release.
1965# They can cause serious problems if a builder's source tree is in a directory
1966# whose full name contains unusual characters.
1967ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1968ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1969ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1970
d9898ee8 1971
1972# Find a good install program. We prefer a C program (faster),
1973# so one script is as good as another. But avoid the broken or
1974# incompatible versions:
1975# SysV /etc/install, /usr/sbin/install
1976# SunOS /usr/etc/install
1977# IRIX /sbin/install
1978# AIX /bin/install
1979# AmigaOS /C/install, which installs bootblocks on floppy discs
1980# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1981# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1982# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1983# OS/2's system install, which has a completely different semantic
1984# ./install, which can be erroneously created by make from ./install.sh.
64ff59ba 1985{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1986echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
d9898ee8 1987if test -z "$INSTALL"; then
1988if test "${ac_cv_path_install+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
1990else
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992for as_dir in $PATH
1993do
1994 IFS=$as_save_IFS
1995 test -z "$as_dir" && as_dir=.
1996 # Account for people who put trailing slashes in PATH elements.
1997case $as_dir/ in
1998 ./ | .// | /cC/* | \
1999 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2000 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2001 /usr/ucb/* ) ;;
2002 *)
2003 # OSF1 and SCO ODT 3.0 have their own names for install.
2004 # Don't use installbsd from OSF since it installs stuff as root
2005 # by default.
2006 for ac_prog in ginstall scoinst install; do
2007 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2008 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 2009 if test $ac_prog = install &&
2010 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2011 # AIX install. It has an incompatible calling convention.
2012 :
2013 elif test $ac_prog = install &&
2014 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2015 # program-specific install script used by HP pwplus--don't use.
2016 :
2017 else
2018 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2019 break 3
2020 fi
2021 fi
2022 done
2023 done
2024 ;;
2025esac
2026done
64ff59ba 2027IFS=$as_save_IFS
d9898ee8 2028
2029
2030fi
2031 if test "${ac_cv_path_install+set}" = set; then
2032 INSTALL=$ac_cv_path_install
2033 else
64ff59ba 2034 # As a last resort, use the slow shell script. Don't cache a
2035 # value for INSTALL within a source directory, because that will
d9898ee8 2036 # break other packages using the cache if that directory is
64ff59ba 2037 # removed, or if the value is a relative name.
d9898ee8 2038 INSTALL=$ac_install_sh
2039 fi
2040fi
64ff59ba 2041{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2042echo "${ECHO_T}$INSTALL" >&6; }
d9898ee8 2043
2044# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2045# It thinks the first close brace ends the variable substitution.
2046test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2047
2048test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2049
2050test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2051
64ff59ba 2052{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2053echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
d9898ee8 2054# Just in case
2055sleep 1
2056echo timestamp > conftest.file
2057# Do `set' in a subshell so we don't clobber the current shell's
2058# arguments. Must try -L first in case configure is actually a
2059# symlink; some systems play weird games with the mod time of symlinks
2060# (eg FreeBSD returns the mod time of the symlink's containing
2061# directory).
2062if (
2063 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2064 if test "$*" = "X"; then
2065 # -L didn't work.
2066 set X `ls -t $srcdir/configure conftest.file`
2067 fi
2068 rm -f conftest.file
2069 if test "$*" != "X $srcdir/configure conftest.file" \
2070 && test "$*" != "X conftest.file $srcdir/configure"; then
2071
2072 # If neither matched, then we have a broken ls. This can happen
2073 # if, for instance, CONFIG_SHELL is bash and it inherits a
2074 # broken ls alias from the environment. This has actually
2075 # happened. Such a system could not be considered "sane".
2076 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2077alias in your environment" >&5
2078echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2079alias in your environment" >&2;}
2080 { (exit 1); exit 1; }; }
2081 fi
2082
2083 test "$2" = conftest.file
2084 )
2085then
2086 # Ok.
2087 :
2088else
2089 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2090Check your system clock" >&5
2091echo "$as_me: error: newly created file is older than distributed files!
2092Check your system clock" >&2;}
2093 { (exit 1); exit 1; }; }
2094fi
64ff59ba 2095{ echo "$as_me:$LINENO: result: yes" >&5
2096echo "${ECHO_T}yes" >&6; }
d9898ee8 2097test "$program_prefix" != NONE &&
64ff59ba 2098 program_transform_name="s&^&$program_prefix&;$program_transform_name"
d9898ee8 2099# Use a double $ so make ignores it.
2100test "$program_suffix" != NONE &&
64ff59ba 2101 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
d9898ee8 2102# Double any \ or $. echo might interpret backslashes.
2103# By default was `s,x,x', remove it if useless.
2104cat <<\_ACEOF >conftest.sed
2105s/[\\$]/&&/g;s/;s,x,x,$//
2106_ACEOF
2107program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
64ff59ba 2108rm -f conftest.sed
d9898ee8 2109
2110# expand $ac_aux_dir to an absolute path
2111am_aux_dir=`cd $ac_aux_dir && pwd`
2112
2113test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2114# Use eval to expand $SHELL
2115if eval "$MISSING --run true"; then
2116 am_missing_run="$MISSING --run "
2117else
2118 am_missing_run=
2119 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2120echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2121fi
2122
64ff59ba 2123{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2124echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2125if test -z "$MKDIR_P"; then
2126 if test "${ac_cv_path_mkdir+set}" = set; then
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
2128else
2129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2131do
2132 IFS=$as_save_IFS
2133 test -z "$as_dir" && as_dir=.
2134 for ac_prog in mkdir gmkdir; do
2135 for ac_exec_ext in '' $ac_executable_extensions; do
2136 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2137 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2138 'mkdir (GNU coreutils) '* | \
2139 'mkdir (coreutils) '* | \
2140 'mkdir (fileutils) '4.1*)
2141 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2142 break 3;;
2143 esac
2144 done
2145 done
2146done
2147IFS=$as_save_IFS
2148
2149fi
2150
2151 if test "${ac_cv_path_mkdir+set}" = set; then
2152 MKDIR_P="$ac_cv_path_mkdir -p"
d9898ee8 2153 else
64ff59ba 2154 # As a last resort, use the slow shell script. Don't cache a
2155 # value for MKDIR_P within a source directory, because that will
2156 # break other packages using the cache if that directory is
2157 # removed, or if the value is a relative name.
2158 test -d ./--version && rmdir ./--version
2159 MKDIR_P="$ac_install_sh -d"
d9898ee8 2160 fi
2161fi
64ff59ba 2162{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2163echo "${ECHO_T}$MKDIR_P" >&6; }
2164
2165mkdir_p="$MKDIR_P"
2166case $mkdir_p in
2167 [\\/$]* | ?:[\\/]*) ;;
2168 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2169esac
d9898ee8 2170
2171for ac_prog in gawk mawk nawk awk
2172do
2173 # Extract the first word of "$ac_prog", so it can be a program name with args.
2174set dummy $ac_prog; ac_word=$2
64ff59ba 2175{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2177if test "${ac_cv_prog_AWK+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2179else
2180 if test -n "$AWK"; then
2181 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2182else
2183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184for as_dir in $PATH
2185do
2186 IFS=$as_save_IFS
2187 test -z "$as_dir" && as_dir=.
2188 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2190 ac_cv_prog_AWK="$ac_prog"
2191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2192 break 2
2193 fi
2194done
2195done
64ff59ba 2196IFS=$as_save_IFS
d9898ee8 2197
2198fi
2199fi
2200AWK=$ac_cv_prog_AWK
2201if test -n "$AWK"; then
64ff59ba 2202 { echo "$as_me:$LINENO: result: $AWK" >&5
2203echo "${ECHO_T}$AWK" >&6; }
d9898ee8 2204else
64ff59ba 2205 { echo "$as_me:$LINENO: result: no" >&5
2206echo "${ECHO_T}no" >&6; }
d9898ee8 2207fi
2208
64ff59ba 2209
d9898ee8 2210 test -n "$AWK" && break
2211done
2212
64ff59ba 2213{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2214echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2215set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2216if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 2217 echo $ECHO_N "(cached) $ECHO_C" >&6
2218else
2219 cat >conftest.make <<\_ACEOF
64ff59ba 2220SHELL = /bin/sh
d9898ee8 2221all:
64ff59ba 2222 @echo '@@@%%%=$(MAKE)=@@@%%%'
d9898ee8 2223_ACEOF
2224# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
64ff59ba 2225case `${MAKE-make} -f conftest.make 2>/dev/null` in
2226 *@@@%%%=?*=@@@%%%*)
2227 eval ac_cv_prog_make_${ac_make}_set=yes;;
2228 *)
2229 eval ac_cv_prog_make_${ac_make}_set=no;;
2230esac
d9898ee8 2231rm -f conftest.make
2232fi
64ff59ba 2233if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2234 { echo "$as_me:$LINENO: result: yes" >&5
2235echo "${ECHO_T}yes" >&6; }
d9898ee8 2236 SET_MAKE=
2237else
64ff59ba 2238 { echo "$as_me:$LINENO: result: no" >&5
2239echo "${ECHO_T}no" >&6; }
d9898ee8 2240 SET_MAKE="MAKE=${MAKE-make}"
2241fi
2242
2243rm -rf .tst 2>/dev/null
2244mkdir .tst 2>/dev/null
2245if test -d .tst; then
2246 am__leading_dot=.
2247else
2248 am__leading_dot=_
2249fi
2250rmdir .tst 2>/dev/null
2251
64ff59ba 2252if test "`cd $srcdir && pwd`" != "`pwd`"; then
2253 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2254 # is not polluted with repeated "-I."
2255 am__isrc=' -I$(srcdir)'
2256 # test to see if srcdir already configured
2257 if test -f $srcdir/config.status; then
2258 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
d9898ee8 2259echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2260 { (exit 1); exit 1; }; }
64ff59ba 2261 fi
d9898ee8 2262fi
2263
2264# test whether we have cygpath
2265if test -z "$CYGPATH_W"; then
2266 if (cygpath --version) >/dev/null 2>/dev/null; then
2267 CYGPATH_W='cygpath -w'
2268 else
2269 CYGPATH_W=echo
2270 fi
2271fi
2272
2273
2274# Define the identity of the package.
2275 PACKAGE='numlib'
2276 VERSION='0.10'
2277
2278
2279# Some tools Automake needs.
2280
2281ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2282
2283
2284AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2285
2286
2287AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2288
2289
2290AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2291
2292
2293MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2294
64ff59ba 2295install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
d9898ee8 2296
2297# Installed binaries are usually stripped using `strip' when the user
2298# run `make install-strip'. However `strip' might not be the right
2299# tool to use in cross-compilation environments, therefore Automake
2300# will honor the `STRIP' environment variable to overrule this program.
2301if test "$cross_compiling" != no; then
2302 if test -n "$ac_tool_prefix"; then
2303 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2304set dummy ${ac_tool_prefix}strip; ac_word=$2
64ff59ba 2305{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2307if test "${ac_cv_prog_STRIP+set}" = set; then
2308 echo $ECHO_N "(cached) $ECHO_C" >&6
2309else
2310 if test -n "$STRIP"; then
2311 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2312else
2313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314for as_dir in $PATH
2315do
2316 IFS=$as_save_IFS
2317 test -z "$as_dir" && as_dir=.
2318 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2320 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2322 break 2
2323 fi
2324done
2325done
64ff59ba 2326IFS=$as_save_IFS
d9898ee8 2327
2328fi
2329fi
2330STRIP=$ac_cv_prog_STRIP
2331if test -n "$STRIP"; then
64ff59ba 2332 { echo "$as_me:$LINENO: result: $STRIP" >&5
2333echo "${ECHO_T}$STRIP" >&6; }
d9898ee8 2334else
64ff59ba 2335 { echo "$as_me:$LINENO: result: no" >&5
2336echo "${ECHO_T}no" >&6; }
d9898ee8 2337fi
2338
64ff59ba 2339
d9898ee8 2340fi
2341if test -z "$ac_cv_prog_STRIP"; then
2342 ac_ct_STRIP=$STRIP
2343 # Extract the first word of "strip", so it can be a program name with args.
2344set dummy strip; ac_word=$2
64ff59ba 2345{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2347if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
2349else
2350 if test -n "$ac_ct_STRIP"; then
2351 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2352else
2353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354for as_dir in $PATH
2355do
2356 IFS=$as_save_IFS
2357 test -z "$as_dir" && as_dir=.
2358 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2360 ac_cv_prog_ac_ct_STRIP="strip"
2361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2362 break 2
2363 fi
2364done
2365done
64ff59ba 2366IFS=$as_save_IFS
d9898ee8 2367
d9898ee8 2368fi
2369fi
2370ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2371if test -n "$ac_ct_STRIP"; then
64ff59ba 2372 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2373echo "${ECHO_T}$ac_ct_STRIP" >&6; }
d9898ee8 2374else
64ff59ba 2375 { echo "$as_me:$LINENO: result: no" >&5
2376echo "${ECHO_T}no" >&6; }
d9898ee8 2377fi
2378
64ff59ba 2379 if test "x$ac_ct_STRIP" = x; then
2380 STRIP=":"
2381 else
2382 case $cross_compiling:$ac_tool_warned in
2383yes:)
2384{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2385whose name does not start with the host triplet. If you think this
2386configuration is useful to you, please write to autoconf@gnu.org." >&5
2387echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2388whose name does not start with the host triplet. If you think this
2389configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2390ac_tool_warned=yes ;;
2391esac
2392 STRIP=$ac_ct_STRIP
2393 fi
d9898ee8 2394else
2395 STRIP="$ac_cv_prog_STRIP"
2396fi
2397
2398fi
64ff59ba 2399INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
d9898ee8 2400
2401# We need awk for the "check" target. The system "awk" is bad on
2402# some platforms.
2403# Always define AMTAR for backward compatibility.
2404
2405AMTAR=${AMTAR-"${am_missing_run}tar"}
2406
2407am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2408
2409
2410
2411
2412
2413
2414for ac_prog in gawk mawk nawk awk
2415do
2416 # Extract the first word of "$ac_prog", so it can be a program name with args.
2417set dummy $ac_prog; ac_word=$2
64ff59ba 2418{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2420if test "${ac_cv_prog_AWK+set}" = set; then
2421 echo $ECHO_N "(cached) $ECHO_C" >&6
2422else
2423 if test -n "$AWK"; then
2424 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2425else
2426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427for as_dir in $PATH
2428do
2429 IFS=$as_save_IFS
2430 test -z "$as_dir" && as_dir=.
2431 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2433 ac_cv_prog_AWK="$ac_prog"
2434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2435 break 2
2436 fi
2437done
2438done
64ff59ba 2439IFS=$as_save_IFS
d9898ee8 2440
2441fi
2442fi
2443AWK=$ac_cv_prog_AWK
2444if test -n "$AWK"; then
64ff59ba 2445 { echo "$as_me:$LINENO: result: $AWK" >&5
2446echo "${ECHO_T}$AWK" >&6; }
d9898ee8 2447else
64ff59ba 2448 { echo "$as_me:$LINENO: result: no" >&5
2449echo "${ECHO_T}no" >&6; }
d9898ee8 2450fi
2451
64ff59ba 2452
d9898ee8 2453 test -n "$AWK" && break
2454done
2455
2456ac_ext=c
2457ac_cpp='$CPP $CPPFLAGS'
2458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2460ac_compiler_gnu=$ac_cv_c_compiler_gnu
2461if test -n "$ac_tool_prefix"; then
2462 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2463set dummy ${ac_tool_prefix}gcc; ac_word=$2
64ff59ba 2464{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2466if test "${ac_cv_prog_CC+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2468else
2469 if test -n "$CC"; then
2470 ac_cv_prog_CC="$CC" # Let the user override the test.
2471else
2472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473for as_dir in $PATH
2474do
2475 IFS=$as_save_IFS
2476 test -z "$as_dir" && as_dir=.
2477 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2479 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2481 break 2
2482 fi
2483done
2484done
64ff59ba 2485IFS=$as_save_IFS
d9898ee8 2486
2487fi
2488fi
2489CC=$ac_cv_prog_CC
2490if test -n "$CC"; then
64ff59ba 2491 { echo "$as_me:$LINENO: result: $CC" >&5
2492echo "${ECHO_T}$CC" >&6; }
d9898ee8 2493else
64ff59ba 2494 { echo "$as_me:$LINENO: result: no" >&5
2495echo "${ECHO_T}no" >&6; }
d9898ee8 2496fi
2497
64ff59ba 2498
d9898ee8 2499fi
2500if test -z "$ac_cv_prog_CC"; then
2501 ac_ct_CC=$CC
2502 # Extract the first word of "gcc", so it can be a program name with args.
2503set dummy gcc; ac_word=$2
64ff59ba 2504{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2506if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2508else
2509 if test -n "$ac_ct_CC"; then
2510 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2511else
2512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513for as_dir in $PATH
2514do
2515 IFS=$as_save_IFS
2516 test -z "$as_dir" && as_dir=.
2517 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2519 ac_cv_prog_ac_ct_CC="gcc"
2520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2521 break 2
2522 fi
2523done
2524done
64ff59ba 2525IFS=$as_save_IFS
d9898ee8 2526
2527fi
2528fi
2529ac_ct_CC=$ac_cv_prog_ac_ct_CC
2530if test -n "$ac_ct_CC"; then
64ff59ba 2531 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2532echo "${ECHO_T}$ac_ct_CC" >&6; }
d9898ee8 2533else
64ff59ba 2534 { echo "$as_me:$LINENO: result: no" >&5
2535echo "${ECHO_T}no" >&6; }
d9898ee8 2536fi
2537
64ff59ba 2538 if test "x$ac_ct_CC" = x; then
2539 CC=""
2540 else
2541 case $cross_compiling:$ac_tool_warned in
2542yes:)
2543{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2544whose name does not start with the host triplet. If you think this
2545configuration is useful to you, please write to autoconf@gnu.org." >&5
2546echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2547whose name does not start with the host triplet. If you think this
2548configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2549ac_tool_warned=yes ;;
2550esac
2551 CC=$ac_ct_CC
2552 fi
d9898ee8 2553else
2554 CC="$ac_cv_prog_CC"
2555fi
2556
2557if test -z "$CC"; then
64ff59ba 2558 if test -n "$ac_tool_prefix"; then
2559 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 2560set dummy ${ac_tool_prefix}cc; ac_word=$2
64ff59ba 2561{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2563if test "${ac_cv_prog_CC+set}" = set; then
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
2565else
2566 if test -n "$CC"; then
2567 ac_cv_prog_CC="$CC" # Let the user override the test.
2568else
2569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570for as_dir in $PATH
2571do
2572 IFS=$as_save_IFS
2573 test -z "$as_dir" && as_dir=.
2574 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2576 ac_cv_prog_CC="${ac_tool_prefix}cc"
2577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2578 break 2
2579 fi
2580done
2581done
64ff59ba 2582IFS=$as_save_IFS
d9898ee8 2583
2584fi
2585fi
2586CC=$ac_cv_prog_CC
2587if test -n "$CC"; then
64ff59ba 2588 { echo "$as_me:$LINENO: result: $CC" >&5
2589echo "${ECHO_T}$CC" >&6; }
d9898ee8 2590else
64ff59ba 2591 { echo "$as_me:$LINENO: result: no" >&5
2592echo "${ECHO_T}no" >&6; }
d9898ee8 2593fi
2594
d9898ee8 2595
64ff59ba 2596 fi
d9898ee8 2597fi
2598if test -z "$CC"; then
2599 # Extract the first word of "cc", so it can be a program name with args.
2600set dummy cc; ac_word=$2
64ff59ba 2601{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2603if test "${ac_cv_prog_CC+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
2605else
2606 if test -n "$CC"; then
2607 ac_cv_prog_CC="$CC" # Let the user override the test.
2608else
2609 ac_prog_rejected=no
2610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611for as_dir in $PATH
2612do
2613 IFS=$as_save_IFS
2614 test -z "$as_dir" && as_dir=.
2615 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2617 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2618 ac_prog_rejected=yes
2619 continue
2620 fi
2621 ac_cv_prog_CC="cc"
2622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2623 break 2
2624 fi
2625done
2626done
64ff59ba 2627IFS=$as_save_IFS
d9898ee8 2628
2629if test $ac_prog_rejected = yes; then
2630 # We found a bogon in the path, so make sure we never use it.
2631 set dummy $ac_cv_prog_CC
2632 shift
2633 if test $# != 0; then
2634 # We chose a different compiler from the bogus one.
2635 # However, it has the same basename, so the bogon will be chosen
2636 # first if we set CC to just the basename; use the full file name.
2637 shift
2638 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2639 fi
2640fi
2641fi
2642fi
2643CC=$ac_cv_prog_CC
2644if test -n "$CC"; then
64ff59ba 2645 { echo "$as_me:$LINENO: result: $CC" >&5
2646echo "${ECHO_T}$CC" >&6; }
d9898ee8 2647else
64ff59ba 2648 { echo "$as_me:$LINENO: result: no" >&5
2649echo "${ECHO_T}no" >&6; }
d9898ee8 2650fi
2651
64ff59ba 2652
d9898ee8 2653fi
2654if test -z "$CC"; then
2655 if test -n "$ac_tool_prefix"; then
64ff59ba 2656 for ac_prog in cl.exe
d9898ee8 2657 do
2658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2659set dummy $ac_tool_prefix$ac_prog; ac_word=$2
64ff59ba 2660{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2662if test "${ac_cv_prog_CC+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2664else
2665 if test -n "$CC"; then
2666 ac_cv_prog_CC="$CC" # Let the user override the test.
2667else
2668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669for as_dir in $PATH
2670do
2671 IFS=$as_save_IFS
2672 test -z "$as_dir" && as_dir=.
2673 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2675 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2677 break 2
2678 fi
2679done
2680done
64ff59ba 2681IFS=$as_save_IFS
d9898ee8 2682
2683fi
2684fi
2685CC=$ac_cv_prog_CC
2686if test -n "$CC"; then
64ff59ba 2687 { echo "$as_me:$LINENO: result: $CC" >&5
2688echo "${ECHO_T}$CC" >&6; }
d9898ee8 2689else
64ff59ba 2690 { echo "$as_me:$LINENO: result: no" >&5
2691echo "${ECHO_T}no" >&6; }
d9898ee8 2692fi
2693
64ff59ba 2694
d9898ee8 2695 test -n "$CC" && break
2696 done
2697fi
2698if test -z "$CC"; then
2699 ac_ct_CC=$CC
64ff59ba 2700 for ac_prog in cl.exe
d9898ee8 2701do
2702 # Extract the first word of "$ac_prog", so it can be a program name with args.
2703set dummy $ac_prog; ac_word=$2
64ff59ba 2704{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2706if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2707 echo $ECHO_N "(cached) $ECHO_C" >&6
2708else
2709 if test -n "$ac_ct_CC"; then
2710 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2711else
2712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713for as_dir in $PATH
2714do
2715 IFS=$as_save_IFS
2716 test -z "$as_dir" && as_dir=.
2717 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2719 ac_cv_prog_ac_ct_CC="$ac_prog"
2720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2721 break 2
2722 fi
2723done
2724done
64ff59ba 2725IFS=$as_save_IFS
d9898ee8 2726
2727fi
2728fi
2729ac_ct_CC=$ac_cv_prog_ac_ct_CC
2730if test -n "$ac_ct_CC"; then
64ff59ba 2731 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2732echo "${ECHO_T}$ac_ct_CC" >&6; }
d9898ee8 2733else
64ff59ba 2734 { echo "$as_me:$LINENO: result: no" >&5
2735echo "${ECHO_T}no" >&6; }
d9898ee8 2736fi
2737
64ff59ba 2738
d9898ee8 2739 test -n "$ac_ct_CC" && break
2740done
2741
64ff59ba 2742 if test "x$ac_ct_CC" = x; then
2743 CC=""
2744 else
2745 case $cross_compiling:$ac_tool_warned in
2746yes:)
2747{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2748whose name does not start with the host triplet. If you think this
2749configuration is useful to you, please write to autoconf@gnu.org." >&5
2750echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2751whose name does not start with the host triplet. If you think this
2752configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2753ac_tool_warned=yes ;;
2754esac
2755 CC=$ac_ct_CC
2756 fi
d9898ee8 2757fi
2758
2759fi
2760
2761
2762test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2763See \`config.log' for more details." >&5
2764echo "$as_me: error: no acceptable C compiler found in \$PATH
2765See \`config.log' for more details." >&2;}
2766 { (exit 1); exit 1; }; }
2767
2768# Provide some information about the compiler.
64ff59ba 2769echo "$as_me:$LINENO: checking for C compiler version" >&5
d9898ee8 2770ac_compiler=`set X $ac_compile; echo $2`
64ff59ba 2771{ (ac_try="$ac_compiler --version >&5"
2772case "(($ac_try" in
2773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774 *) ac_try_echo=$ac_try;;
2775esac
2776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2777 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 2778 ac_status=$?
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }
64ff59ba 2781{ (ac_try="$ac_compiler -v >&5"
2782case "(($ac_try" in
2783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2784 *) ac_try_echo=$ac_try;;
2785esac
2786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2787 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 2788 ac_status=$?
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); }
64ff59ba 2791{ (ac_try="$ac_compiler -V >&5"
2792case "(($ac_try" in
2793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2794 *) ac_try_echo=$ac_try;;
2795esac
2796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2797 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 2798 ac_status=$?
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }
2801
2802cat >conftest.$ac_ext <<_ACEOF
2803/* confdefs.h. */
2804_ACEOF
2805cat confdefs.h >>conftest.$ac_ext
2806cat >>conftest.$ac_ext <<_ACEOF
2807/* end confdefs.h. */
2808
2809int
2810main ()
2811{
2812
2813 ;
2814 return 0;
2815}
2816_ACEOF
2817ac_clean_files_save=$ac_clean_files
2818ac_clean_files="$ac_clean_files a.out a.exe b.out"
2819# Try to create an executable without -o first, disregard a.out.
2820# It will help us diagnose broken compilers, and finding out an intuition
2821# of exeext.
64ff59ba 2822{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2823echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
d9898ee8 2824ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
64ff59ba 2825#
2826# List of possible output files, starting from the most likely.
2827# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2828# only as a last resort. b.out is created by i960 compilers.
2829ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2830#
2831# The IRIX 6 linker writes into existing files which may not be
2832# executable, retaining their permissions. Remove them first so a
2833# subsequent execution test works.
2834ac_rmfiles=
2835for ac_file in $ac_files
2836do
2837 case $ac_file in
2838 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2839 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2840 esac
2841done
2842rm -f $ac_rmfiles
2843
2844if { (ac_try="$ac_link_default"
2845case "(($ac_try" in
2846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847 *) ac_try_echo=$ac_try;;
2848esac
2849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2850 (eval "$ac_link_default") 2>&5
d9898ee8 2851 ac_status=$?
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }; then
64ff59ba 2854 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2855# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2856# in a Makefile. We should not override ac_cv_exeext if it was cached,
2857# so that the user can short-circuit this test for compilers unknown to
2858# Autoconf.
2859for ac_file in $ac_files ''
d9898ee8 2860do
2861 test -f "$ac_file" || continue
2862 case $ac_file in
64ff59ba 2863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
d9898ee8 2864 ;;
2865 [ab].out )
2866 # We found the default executable, but exeext='' is most
2867 # certainly right.
2868 break;;
2869 *.* )
64ff59ba 2870 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2871 then :; else
2872 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2873 fi
2874 # We set ac_cv_exeext here because the later test for it is not
2875 # safe: cross compilers may not add the suffix if given an `-o'
2876 # argument, so we may need to know it at that point already.
2877 # Even if this section looks crufty: it has the advantage of
2878 # actually working.
d9898ee8 2879 break;;
2880 * )
2881 break;;
2882 esac
2883done
64ff59ba 2884test "$ac_cv_exeext" = no && ac_cv_exeext=
2885
d9898ee8 2886else
64ff59ba 2887 ac_file=''
2888fi
2889
2890{ echo "$as_me:$LINENO: result: $ac_file" >&5
2891echo "${ECHO_T}$ac_file" >&6; }
2892if test -z "$ac_file"; then
d9898ee8 2893 echo "$as_me: failed program was:" >&5
2894sed 's/^/| /' conftest.$ac_ext >&5
2895
2896{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2897See \`config.log' for more details." >&5
2898echo "$as_me: error: C compiler cannot create executables
2899See \`config.log' for more details." >&2;}
2900 { (exit 77); exit 77; }; }
2901fi
2902
2903ac_exeext=$ac_cv_exeext
d9898ee8 2904
64ff59ba 2905# Check that the compiler produces executables we can run. If not, either
d9898ee8 2906# the compiler is broken, or we cross compile.
64ff59ba 2907{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2908echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
d9898ee8 2909# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2910# If not cross compiling, check that we can run a simple program.
2911if test "$cross_compiling" != yes; then
2912 if { ac_try='./$ac_file'
64ff59ba 2913 { (case "(($ac_try" in
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2916esac
2917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918 (eval "$ac_try") 2>&5
d9898ee8 2919 ac_status=$?
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }; }; then
2922 cross_compiling=no
2923 else
2924 if test "$cross_compiling" = maybe; then
2925 cross_compiling=yes
2926 else
2927 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2928If you meant to cross compile, use \`--host'.
2929See \`config.log' for more details." >&5
2930echo "$as_me: error: cannot run C compiled programs.
2931If you meant to cross compile, use \`--host'.
2932See \`config.log' for more details." >&2;}
2933 { (exit 1); exit 1; }; }
2934 fi
2935 fi
2936fi
64ff59ba 2937{ echo "$as_me:$LINENO: result: yes" >&5
2938echo "${ECHO_T}yes" >&6; }
d9898ee8 2939
2940rm -f a.out a.exe conftest$ac_cv_exeext b.out
2941ac_clean_files=$ac_clean_files_save
64ff59ba 2942# Check that the compiler produces executables we can run. If not, either
d9898ee8 2943# the compiler is broken, or we cross compile.
64ff59ba 2944{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2945echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2946{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2947echo "${ECHO_T}$cross_compiling" >&6; }
2948
2949{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2950echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2951if { (ac_try="$ac_link"
2952case "(($ac_try" in
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2955esac
2956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957 (eval "$ac_link") 2>&5
d9898ee8 2958 ac_status=$?
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }; then
2961 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2962# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2963# work properly (i.e., refer to `conftest.exe'), while it won't with
2964# `rm'.
2965for ac_file in conftest.exe conftest conftest.*; do
2966 test -f "$ac_file" || continue
2967 case $ac_file in
64ff59ba 2968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
d9898ee8 2969 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
d9898ee8 2970 break;;
2971 * ) break;;
2972 esac
2973done
2974else
2975 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2976See \`config.log' for more details." >&5
2977echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2978See \`config.log' for more details." >&2;}
2979 { (exit 1); exit 1; }; }
2980fi
2981
2982rm -f conftest$ac_cv_exeext
64ff59ba 2983{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2984echo "${ECHO_T}$ac_cv_exeext" >&6; }
d9898ee8 2985
2986rm -f conftest.$ac_ext
2987EXEEXT=$ac_cv_exeext
2988ac_exeext=$EXEEXT
64ff59ba 2989{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2990echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
d9898ee8 2991if test "${ac_cv_objext+set}" = set; then
2992 echo $ECHO_N "(cached) $ECHO_C" >&6
2993else
2994 cat >conftest.$ac_ext <<_ACEOF
2995/* confdefs.h. */
2996_ACEOF
2997cat confdefs.h >>conftest.$ac_ext
2998cat >>conftest.$ac_ext <<_ACEOF
2999/* end confdefs.h. */
3000
3001int
3002main ()
3003{
3004
3005 ;
3006 return 0;
3007}
3008_ACEOF
3009rm -f conftest.o conftest.obj
64ff59ba 3010if { (ac_try="$ac_compile"
3011case "(($ac_try" in
3012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013 *) ac_try_echo=$ac_try;;
3014esac
3015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3016 (eval "$ac_compile") 2>&5
d9898ee8 3017 ac_status=$?
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); }; then
64ff59ba 3020 for ac_file in conftest.o conftest.obj conftest.*; do
3021 test -f "$ac_file" || continue;
d9898ee8 3022 case $ac_file in
64ff59ba 3023 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
d9898ee8 3024 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3025 break;;
3026 esac
3027done
3028else
3029 echo "$as_me: failed program was:" >&5
3030sed 's/^/| /' conftest.$ac_ext >&5
3031
3032{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3033See \`config.log' for more details." >&5
3034echo "$as_me: error: cannot compute suffix of object files: cannot compile
3035See \`config.log' for more details." >&2;}
3036 { (exit 1); exit 1; }; }
3037fi
3038
3039rm -f conftest.$ac_cv_objext conftest.$ac_ext
3040fi
64ff59ba 3041{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3042echo "${ECHO_T}$ac_cv_objext" >&6; }
d9898ee8 3043OBJEXT=$ac_cv_objext
3044ac_objext=$OBJEXT
64ff59ba 3045{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3046echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
d9898ee8 3047if test "${ac_cv_c_compiler_gnu+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
3049else
3050 cat >conftest.$ac_ext <<_ACEOF
3051/* confdefs.h. */
3052_ACEOF
3053cat confdefs.h >>conftest.$ac_ext
3054cat >>conftest.$ac_ext <<_ACEOF
3055/* end confdefs.h. */
3056
3057int
3058main ()
3059{
3060#ifndef __GNUC__
3061 choke me
3062#endif
3063
3064 ;
3065 return 0;
3066}
3067_ACEOF
3068rm -f conftest.$ac_objext
64ff59ba 3069if { (ac_try="$ac_compile"
3070case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3073esac
3074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3076 ac_status=$?
3077 grep -v '^ *+' conftest.er1 >conftest.err
3078 rm -f conftest.er1
3079 cat conftest.err >&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3081 (exit $ac_status); } && {
3082 test -z "$ac_c_werror_flag" ||
3083 test ! -s conftest.err
3084 } && test -s conftest.$ac_objext; then
d9898ee8 3085 ac_compiler_gnu=yes
3086else
3087 echo "$as_me: failed program was:" >&5
3088sed 's/^/| /' conftest.$ac_ext >&5
3089
64ff59ba 3090 ac_compiler_gnu=no
d9898ee8 3091fi
64ff59ba 3092
3093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3094ac_cv_c_compiler_gnu=$ac_compiler_gnu
3095
3096fi
64ff59ba 3097{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3098echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
d9898ee8 3099GCC=`test $ac_compiler_gnu = yes && echo yes`
3100ac_test_CFLAGS=${CFLAGS+set}
3101ac_save_CFLAGS=$CFLAGS
64ff59ba 3102{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3103echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
d9898ee8 3104if test "${ac_cv_prog_cc_g+set}" = set; then
3105 echo $ECHO_N "(cached) $ECHO_C" >&6
3106else
64ff59ba 3107 ac_save_c_werror_flag=$ac_c_werror_flag
3108 ac_c_werror_flag=yes
3109 ac_cv_prog_cc_g=no
3110 CFLAGS="-g"
3111 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 3112/* confdefs.h. */
3113_ACEOF
3114cat confdefs.h >>conftest.$ac_ext
3115cat >>conftest.$ac_ext <<_ACEOF
3116/* end confdefs.h. */
3117
3118int
3119main ()
3120{
3121
3122 ;
3123 return 0;
3124}
3125_ACEOF
3126rm -f conftest.$ac_objext
64ff59ba 3127if { (ac_try="$ac_compile"
3128case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131esac
3132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3134 ac_status=$?
3135 grep -v '^ *+' conftest.er1 >conftest.err
3136 rm -f conftest.er1
3137 cat conftest.err >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3139 (exit $ac_status); } && {
3140 test -z "$ac_c_werror_flag" ||
3141 test ! -s conftest.err
3142 } && test -s conftest.$ac_objext; then
3143 ac_cv_prog_cc_g=yes
3144else
3145 echo "$as_me: failed program was:" >&5
3146sed 's/^/| /' conftest.$ac_ext >&5
3147
3148 CFLAGS=""
3149 cat >conftest.$ac_ext <<_ACEOF
3150/* confdefs.h. */
3151_ACEOF
3152cat confdefs.h >>conftest.$ac_ext
3153cat >>conftest.$ac_ext <<_ACEOF
3154/* end confdefs.h. */
3155
3156int
3157main ()
3158{
3159
3160 ;
3161 return 0;
3162}
3163_ACEOF
3164rm -f conftest.$ac_objext
3165if { (ac_try="$ac_compile"
3166case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169esac
3170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3172 ac_status=$?
64ff59ba 3173 grep -v '^ *+' conftest.er1 >conftest.err
3174 rm -f conftest.er1
3175 cat conftest.err >&5
d9898ee8 3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3177 (exit $ac_status); } && {
3178 test -z "$ac_c_werror_flag" ||
3179 test ! -s conftest.err
3180 } && test -s conftest.$ac_objext; then
3181 :
3182else
3183 echo "$as_me: failed program was:" >&5
3184sed 's/^/| /' conftest.$ac_ext >&5
3185
3186 ac_c_werror_flag=$ac_save_c_werror_flag
3187 CFLAGS="-g"
3188 cat >conftest.$ac_ext <<_ACEOF
3189/* confdefs.h. */
3190_ACEOF
3191cat confdefs.h >>conftest.$ac_ext
3192cat >>conftest.$ac_ext <<_ACEOF
3193/* end confdefs.h. */
3194
3195int
3196main ()
3197{
3198
3199 ;
3200 return 0;
3201}
3202_ACEOF
3203rm -f conftest.$ac_objext
3204if { (ac_try="$ac_compile"
3205case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3208esac
3209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3211 ac_status=$?
64ff59ba 3212 grep -v '^ *+' conftest.er1 >conftest.err
3213 rm -f conftest.er1
3214 cat conftest.err >&5
d9898ee8 3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3216 (exit $ac_status); } && {
3217 test -z "$ac_c_werror_flag" ||
3218 test ! -s conftest.err
3219 } && test -s conftest.$ac_objext; then
d9898ee8 3220 ac_cv_prog_cc_g=yes
3221else
3222 echo "$as_me: failed program was:" >&5
3223sed 's/^/| /' conftest.$ac_ext >&5
3224
64ff59ba 3225
3226fi
3227
3228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229fi
3230
3231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3232fi
64ff59ba 3233
3234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 3236fi
64ff59ba 3237{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3238echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
d9898ee8 3239if test "$ac_test_CFLAGS" = set; then
3240 CFLAGS=$ac_save_CFLAGS
3241elif test $ac_cv_prog_cc_g = yes; then
3242 if test "$GCC" = yes; then
3243 CFLAGS="-g -O2"
3244 else
3245 CFLAGS="-g"
3246 fi
3247else
3248 if test "$GCC" = yes; then
3249 CFLAGS="-O2"
3250 else
3251 CFLAGS=
3252 fi
3253fi
64ff59ba 3254{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3255echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3256if test "${ac_cv_prog_cc_c89+set}" = set; then
d9898ee8 3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3258else
64ff59ba 3259 ac_cv_prog_cc_c89=no
d9898ee8 3260ac_save_CC=$CC
3261cat >conftest.$ac_ext <<_ACEOF
3262/* confdefs.h. */
3263_ACEOF
3264cat confdefs.h >>conftest.$ac_ext
3265cat >>conftest.$ac_ext <<_ACEOF
3266/* end confdefs.h. */
3267#include <stdarg.h>
3268#include <stdio.h>
3269#include <sys/types.h>
3270#include <sys/stat.h>
3271/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3272struct buf { int x; };
3273FILE * (*rcsopen) (struct buf *, struct stat *, int);
3274static char *e (p, i)
3275 char **p;
3276 int i;
3277{
3278 return p[i];
3279}
3280static char *f (char * (*g) (char **, int), char **p, ...)
3281{
3282 char *s;
3283 va_list v;
3284 va_start (v,p);
3285 s = g (p, va_arg (v,int));
3286 va_end (v);
3287 return s;
3288}
3289
3290/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3291 function prototypes and stuff, but not '\xHH' hex character constants.
3292 These don't provoke an error unfortunately, instead are silently treated
64ff59ba 3293 as 'x'. The following induces an error, until -std is added to get
d9898ee8 3294 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3295 array size at least. It's necessary to write '\x00'==0 to get something
64ff59ba 3296 that's true only with -std. */
d9898ee8 3297int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3298
64ff59ba 3299/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3300 inside strings and character constants. */
3301#define FOO(x) 'x'
3302int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3303
d9898ee8 3304int test (int i, double x);
3305struct s1 {int (*f) (int a);};
3306struct s2 {int (*f) (double a);};
3307int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3308int argc;
3309char **argv;
3310int
3311main ()
3312{
3313return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3314 ;
3315 return 0;
3316}
3317_ACEOF
64ff59ba 3318for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3319 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 3320do
3321 CC="$ac_save_CC $ac_arg"
3322 rm -f conftest.$ac_objext
64ff59ba 3323if { (ac_try="$ac_compile"
3324case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3327esac
3328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3329 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3330 ac_status=$?
3331 grep -v '^ *+' conftest.er1 >conftest.err
3332 rm -f conftest.er1
3333 cat conftest.err >&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3335 (exit $ac_status); } && {
3336 test -z "$ac_c_werror_flag" ||
3337 test ! -s conftest.err
3338 } && test -s conftest.$ac_objext; then
3339 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 3340else
3341 echo "$as_me: failed program was:" >&5
3342sed 's/^/| /' conftest.$ac_ext >&5
3343
64ff59ba 3344
d9898ee8 3345fi
64ff59ba 3346
3347rm -f core conftest.err conftest.$ac_objext
3348 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 3349done
64ff59ba 3350rm -f conftest.$ac_ext
d9898ee8 3351CC=$ac_save_CC
3352
3353fi
64ff59ba 3354# AC_CACHE_VAL
3355case "x$ac_cv_prog_cc_c89" in
3356 x)
3357 { echo "$as_me:$LINENO: result: none needed" >&5
3358echo "${ECHO_T}none needed" >&6; } ;;
3359 xno)
3360 { echo "$as_me:$LINENO: result: unsupported" >&5
3361echo "${ECHO_T}unsupported" >&6; } ;;
d9898ee8 3362 *)
64ff59ba 3363 CC="$CC $ac_cv_prog_cc_c89"
3364 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3365echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 3366esac
3367
d9898ee8 3368
d9898ee8 3369ac_ext=c
3370ac_cpp='$CPP $CPPFLAGS'
3371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3373ac_compiler_gnu=$ac_cv_c_compiler_gnu
3374DEPDIR="${am__leading_dot}deps"
3375
64ff59ba 3376ac_config_commands="$ac_config_commands depfiles"
d9898ee8 3377
3378
3379am_make=${MAKE-make}
3380cat > confinc << 'END'
3381am__doit:
3382 @echo done
3383.PHONY: am__doit
3384END
3385# If we don't find an include directive, just comment out the code.
64ff59ba 3386{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3387echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
d9898ee8 3388am__include="#"
3389am__quote=
3390_am_result=none
3391# First try GNU make style include.
3392echo "include confinc" > confmf
3393# We grep out `Entering directory' and `Leaving directory'
3394# messages which can occur if `w' ends up in MAKEFLAGS.
3395# In particular we don't look at `^make:' because GNU make might
3396# be invoked under some other name (usually "gmake"), in which
3397# case it prints its new name instead of `make'.
3398if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3399 am__include=include
3400 am__quote=
3401 _am_result=GNU
3402fi
3403# Now try BSD make style include.
3404if test "$am__include" = "#"; then
3405 echo '.include "confinc"' > confmf
3406 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3407 am__include=.include
3408 am__quote="\""
3409 _am_result=BSD
3410 fi
3411fi
3412
3413
64ff59ba 3414{ echo "$as_me:$LINENO: result: $_am_result" >&5
3415echo "${ECHO_T}$_am_result" >&6; }
d9898ee8 3416rm -f confinc confmf
3417
64ff59ba 3418# Check whether --enable-dependency-tracking was given.
d9898ee8 3419if test "${enable_dependency_tracking+set}" = set; then
64ff59ba 3420 enableval=$enable_dependency_tracking;
3421fi
d9898ee8 3422
d9898ee8 3423if test "x$enable_dependency_tracking" != xno; then
3424 am_depcomp="$ac_aux_dir/depcomp"
3425 AMDEPBACKSLASH='\'
3426fi
64ff59ba 3427 if test "x$enable_dependency_tracking" != xno; then
d9898ee8 3428 AMDEP_TRUE=
3429 AMDEP_FALSE='#'
3430else
3431 AMDEP_TRUE='#'
3432 AMDEP_FALSE=
3433fi
3434
3435
3436
d9898ee8 3437depcc="$CC" am_compiler_list=
3438
64ff59ba 3439{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3440echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
d9898ee8 3441if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3443else
3444 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3445 # We make a subdir and do the tests there. Otherwise we can end up
3446 # making bogus files that we don't know about and never remove. For
3447 # instance it was reported that on HP-UX the gcc test will end up
3448 # making a dummy file named `D' -- because `-MD' means `put the output
3449 # in D'.
3450 mkdir conftest.dir
3451 # Copy depcomp to subdir because otherwise we won't find it if we're
3452 # using a relative directory.
3453 cp "$am_depcomp" conftest.dir
3454 cd conftest.dir
3455 # We will build objects and dependencies in a subdirectory because
3456 # it helps to detect inapplicable dependency modes. For instance
3457 # both Tru64's cc and ICC support -MD to output dependencies as a
3458 # side effect of compilation, but ICC will put the dependencies in
3459 # the current directory while Tru64 will put them in the object
3460 # directory.
3461 mkdir sub
3462
3463 am_cv_CC_dependencies_compiler_type=none
3464 if test "$am_compiler_list" = ""; then
3465 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3466 fi
3467 for depmode in $am_compiler_list; do
3468 # Setup a source with many dependencies, because some compilers
3469 # like to wrap large dependency lists on column 80 (with \), and
3470 # we should not choose a depcomp mode which is confused by this.
3471 #
3472 # We need to recreate these files for each test, as the compiler may
3473 # overwrite some of them when testing with obscure command lines.
3474 # This happens at least with the AIX C compiler.
3475 : > sub/conftest.c
3476 for i in 1 2 3 4 5 6; do
3477 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3478 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3479 # Solaris 8's {/usr,}/bin/sh.
3480 touch sub/conftst$i.h
3481 done
3482 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3483
3484 case $depmode in
3485 nosideeffect)
3486 # after this tag, mechanisms are not by side-effect, so they'll
3487 # only be used when explicitly requested
3488 if test "x$enable_dependency_tracking" = xyes; then
3489 continue
3490 else
3491 break
3492 fi
3493 ;;
3494 none) break ;;
3495 esac
3496 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3497 # mode. It turns out that the SunPro C++ compiler does not properly
3498 # handle `-M -o', and we need to detect this.
3499 if depmode=$depmode \
3500 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3501 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3502 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3503 >/dev/null 2>conftest.err &&
64ff59ba 3504 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3505 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3506 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3507 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3508 # icc doesn't choke on unknown options, it will just issue warnings
3509 # or remarks (even with -Werror). So we grep stderr for any message
3510 # that says an option was ignored or not supported.
3511 # When given -MP, icc 7.0 and 7.1 complain thusly:
3512 # icc: Command line warning: ignoring option '-M'; no argument required
3513 # The diagnosis changed in icc 8.0:
3514 # icc: Command line remark: option '-MP' not supported
3515 if (grep 'ignoring option' conftest.err ||
3516 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3517 am_cv_CC_dependencies_compiler_type=$depmode
3518 break
3519 fi
3520 fi
3521 done
3522
3523 cd ..
3524 rm -rf conftest.dir
3525else
3526 am_cv_CC_dependencies_compiler_type=none
3527fi
3528
3529fi
64ff59ba 3530{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3531echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 3532CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3533
64ff59ba 3534 if
d9898ee8 3535 test "x$enable_dependency_tracking" != xno \
3536 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3537 am__fastdepCC_TRUE=
3538 am__fastdepCC_FALSE='#'
3539else
3540 am__fastdepCC_TRUE='#'
3541 am__fastdepCC_FALSE=
3542fi
3543
3544
3545# Find a good install program. We prefer a C program (faster),
3546# so one script is as good as another. But avoid the broken or
3547# incompatible versions:
3548# SysV /etc/install, /usr/sbin/install
3549# SunOS /usr/etc/install
3550# IRIX /sbin/install
3551# AIX /bin/install
3552# AmigaOS /C/install, which installs bootblocks on floppy discs
3553# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3554# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3555# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3556# OS/2's system install, which has a completely different semantic
3557# ./install, which can be erroneously created by make from ./install.sh.
64ff59ba 3558{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3559echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
d9898ee8 3560if test -z "$INSTALL"; then
3561if test "${ac_cv_path_install+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3563else
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565for as_dir in $PATH
3566do
3567 IFS=$as_save_IFS
3568 test -z "$as_dir" && as_dir=.
3569 # Account for people who put trailing slashes in PATH elements.
3570case $as_dir/ in
3571 ./ | .// | /cC/* | \
3572 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3573 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3574 /usr/ucb/* ) ;;
3575 *)
3576 # OSF1 and SCO ODT 3.0 have their own names for install.
3577 # Don't use installbsd from OSF since it installs stuff as root
3578 # by default.
3579 for ac_prog in ginstall scoinst install; do
3580 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 3581 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 3582 if test $ac_prog = install &&
3583 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3584 # AIX install. It has an incompatible calling convention.
3585 :
3586 elif test $ac_prog = install &&
3587 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3588 # program-specific install script used by HP pwplus--don't use.
3589 :
3590 else
3591 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3592 break 3
3593 fi
3594 fi
3595 done
3596 done
3597 ;;
3598esac
3599done
64ff59ba 3600IFS=$as_save_IFS
d9898ee8 3601
3602
3603fi
3604 if test "${ac_cv_path_install+set}" = set; then
3605 INSTALL=$ac_cv_path_install
3606 else
64ff59ba 3607 # As a last resort, use the slow shell script. Don't cache a
3608 # value for INSTALL within a source directory, because that will
d9898ee8 3609 # break other packages using the cache if that directory is
64ff59ba 3610 # removed, or if the value is a relative name.
d9898ee8 3611 INSTALL=$ac_install_sh
3612 fi
3613fi
64ff59ba 3614{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3615echo "${ECHO_T}$INSTALL" >&6; }
d9898ee8 3616
3617# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3618# It thinks the first close brace ends the variable substitution.
3619test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3620
3621test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3622
3623test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3624
64ff59ba 3625{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3626echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
d9898ee8 3627LN_S=$as_ln_s
3628if test "$LN_S" = "ln -s"; then
64ff59ba 3629 { echo "$as_me:$LINENO: result: yes" >&5
3630echo "${ECHO_T}yes" >&6; }
d9898ee8 3631else
64ff59ba 3632 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3633echo "${ECHO_T}no, using $LN_S" >&6; }
d9898ee8 3634fi
3635
64ff59ba 3636# Check whether --enable-shared was given.
d9898ee8 3637if test "${enable_shared+set}" = set; then
64ff59ba 3638 enableval=$enable_shared; p=${PACKAGE-default}
d9898ee8 3639 case $enableval in
3640 yes) enable_shared=yes ;;
3641 no) enable_shared=no ;;
3642 *)
3643 enable_shared=no
3644 # Look at the argument we got. We use all the common list separators.
3645 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3646 for pkg in $enableval; do
3647 IFS="$lt_save_ifs"
3648 if test "X$pkg" = "X$p"; then
3649 enable_shared=yes
3650 fi
3651 done
3652 IFS="$lt_save_ifs"
3653 ;;
3654 esac
3655else
3656 enable_shared=yes
64ff59ba 3657fi
d9898ee8 3658
64ff59ba 3659
3660# Check whether --enable-static was given.
d9898ee8 3661if test "${enable_static+set}" = set; then
64ff59ba 3662 enableval=$enable_static; p=${PACKAGE-default}
d9898ee8 3663 case $enableval in
3664 yes) enable_static=yes ;;
3665 no) enable_static=no ;;
3666 *)
3667 enable_static=no
3668 # Look at the argument we got. We use all the common list separators.
3669 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3670 for pkg in $enableval; do
3671 IFS="$lt_save_ifs"
3672 if test "X$pkg" = "X$p"; then
3673 enable_static=yes
3674 fi
3675 done
3676 IFS="$lt_save_ifs"
3677 ;;
3678 esac
3679else
3680 enable_static=yes
64ff59ba 3681fi
d9898ee8 3682
64ff59ba 3683
3684# Check whether --enable-fast-install was given.
d9898ee8 3685if test "${enable_fast_install+set}" = set; then
64ff59ba 3686 enableval=$enable_fast_install; p=${PACKAGE-default}
d9898ee8 3687 case $enableval in
3688 yes) enable_fast_install=yes ;;
3689 no) enable_fast_install=no ;;
3690 *)
3691 enable_fast_install=no
3692 # Look at the argument we got. We use all the common list separators.
3693 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3694 for pkg in $enableval; do
3695 IFS="$lt_save_ifs"
3696 if test "X$pkg" = "X$p"; then
3697 enable_fast_install=yes
3698 fi
3699 done
3700 IFS="$lt_save_ifs"
3701 ;;
3702 esac
3703else
3704 enable_fast_install=yes
64ff59ba 3705fi
3706
d9898ee8 3707
3708# Make sure we can run config.sub.
64ff59ba 3709$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3710 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3711echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
d9898ee8 3712 { (exit 1); exit 1; }; }
3713
64ff59ba 3714{ echo "$as_me:$LINENO: checking build system type" >&5
3715echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
d9898ee8 3716if test "${ac_cv_build+set}" = set; then
3717 echo $ECHO_N "(cached) $ECHO_C" >&6
3718else
64ff59ba 3719 ac_build_alias=$build_alias
3720test "x$ac_build_alias" = x &&
3721 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3722test "x$ac_build_alias" = x &&
d9898ee8 3723 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3724echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3725 { (exit 1); exit 1; }; }
64ff59ba 3726ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3727 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3728echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
d9898ee8 3729 { (exit 1); exit 1; }; }
3730
3731fi
64ff59ba 3732{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3733echo "${ECHO_T}$ac_cv_build" >&6; }
3734case $ac_cv_build in
3735*-*-*) ;;
3736*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3737echo "$as_me: error: invalid value of canonical build" >&2;}
3738 { (exit 1); exit 1; }; };;
3739esac
d9898ee8 3740build=$ac_cv_build
64ff59ba 3741ac_save_IFS=$IFS; IFS='-'
3742set x $ac_cv_build
3743shift
3744build_cpu=$1
3745build_vendor=$2
3746shift; shift
3747# Remember, the first character of IFS is used to create $*,
3748# except with old shells:
3749build_os=$*
3750IFS=$ac_save_IFS
3751case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3752
3753
3754{ echo "$as_me:$LINENO: checking host system type" >&5
3755echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
d9898ee8 3756if test "${ac_cv_host+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3758else
64ff59ba 3759 if test "x$host_alias" = x; then
3760 ac_cv_host=$ac_cv_build
3761else
3762 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3763 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3764echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
d9898ee8 3765 { (exit 1); exit 1; }; }
64ff59ba 3766fi
d9898ee8 3767
3768fi
64ff59ba 3769{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3770echo "${ECHO_T}$ac_cv_host" >&6; }
3771case $ac_cv_host in
3772*-*-*) ;;
3773*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3774echo "$as_me: error: invalid value of canonical host" >&2;}
3775 { (exit 1); exit 1; }; };;
3776esac
d9898ee8 3777host=$ac_cv_host
64ff59ba 3778ac_save_IFS=$IFS; IFS='-'
3779set x $ac_cv_host
3780shift
3781host_cpu=$1
3782host_vendor=$2
3783shift; shift
3784# Remember, the first character of IFS is used to create $*,
3785# except with old shells:
3786host_os=$*
3787IFS=$ac_save_IFS
3788case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3789
3790
3791{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3792echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
d9898ee8 3793if test "${lt_cv_path_SED+set}" = set; then
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
3795else
3796 # Loop through the user's path and test for sed and gsed.
3797# Then use that list of sed's as ones to test for truncation.
3798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799for as_dir in $PATH
3800do
3801 IFS=$as_save_IFS
3802 test -z "$as_dir" && as_dir=.
3803 for lt_ac_prog in sed gsed; do
3804 for ac_exec_ext in '' $ac_executable_extensions; do
0fde1ce3 3805 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
d9898ee8 3806 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3807 fi
3808 done
3809 done
3810done
3811IFS=$as_save_IFS
3812lt_ac_max=0
3813lt_ac_count=0
3814# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3815# along with /bin/sed that truncates output.
3816for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3817 test ! -f $lt_ac_sed && continue
3818 cat /dev/null > conftest.in
3819 lt_ac_count=0
3820 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3821 # Check for GNU sed and select it if it is found.
3822 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3823 lt_cv_path_SED=$lt_ac_sed
3824 break
3825 fi
3826 while true; do
3827 cat conftest.in conftest.in >conftest.tmp
3828 mv conftest.tmp conftest.in
3829 cp conftest.in conftest.nl
3830 echo >>conftest.nl
3831 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3832 cmp -s conftest.out conftest.nl || break
3833 # 10000 chars as input seems more than enough
3834 test $lt_ac_count -gt 10 && break
3835 lt_ac_count=`expr $lt_ac_count + 1`
3836 if test $lt_ac_count -gt $lt_ac_max; then
3837 lt_ac_max=$lt_ac_count
3838 lt_cv_path_SED=$lt_ac_sed
3839 fi
3840 done
3841done
3842
3843fi
3844
3845SED=$lt_cv_path_SED
3846
64ff59ba 3847{ echo "$as_me:$LINENO: result: $SED" >&5
3848echo "${ECHO_T}$SED" >&6; }
3849
3850{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3851echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3852if test "${ac_cv_path_GREP+set}" = set; then
3853 echo $ECHO_N "(cached) $ECHO_C" >&6
3854else
3855 # Extract the first word of "grep ggrep" to use in msg output
3856if test -z "$GREP"; then
3857set dummy grep ggrep; ac_prog_name=$2
3858if test "${ac_cv_path_GREP+set}" = set; then
3859 echo $ECHO_N "(cached) $ECHO_C" >&6
3860else
3861 ac_path_GREP_found=false
3862# Loop through the user's path and test for each of PROGNAME-LIST
3863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3865do
3866 IFS=$as_save_IFS
3867 test -z "$as_dir" && as_dir=.
3868 for ac_prog in grep ggrep; do
3869 for ac_exec_ext in '' $ac_executable_extensions; do
3870 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3871 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3872 # Check for GNU ac_path_GREP and select it if it is found.
3873 # Check for GNU $ac_path_GREP
3874case `"$ac_path_GREP" --version 2>&1` in
3875*GNU*)
3876 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3877*)
3878 ac_count=0
3879 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3880 while :
3881 do
3882 cat "conftest.in" "conftest.in" >"conftest.tmp"
3883 mv "conftest.tmp" "conftest.in"
3884 cp "conftest.in" "conftest.nl"
3885 echo 'GREP' >> "conftest.nl"
3886 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3887 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3888 ac_count=`expr $ac_count + 1`
3889 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3890 # Best one so far, save it but keep looking for a better one
3891 ac_cv_path_GREP="$ac_path_GREP"
3892 ac_path_GREP_max=$ac_count
3893 fi
3894 # 10*(2^10) chars as input seems more than enough
3895 test $ac_count -gt 10 && break
3896 done
3897 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3898esac
3899
3900
3901 $ac_path_GREP_found && break 3
3902 done
3903done
3904
3905done
3906IFS=$as_save_IFS
3907
3908
3909fi
3910
3911GREP="$ac_cv_path_GREP"
3912if test -z "$GREP"; then
3913 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3914echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3915 { (exit 1); exit 1; }; }
3916fi
3917
3918else
3919 ac_cv_path_GREP=$GREP
3920fi
3921
3922
3923fi
3924{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3925echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3926 GREP="$ac_cv_path_GREP"
3927
d9898ee8 3928
64ff59ba 3929{ echo "$as_me:$LINENO: checking for egrep" >&5
3930echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3931if test "${ac_cv_path_EGREP+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3933else
3934 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3935 then ac_cv_path_EGREP="$GREP -E"
3936 else
3937 # Extract the first word of "egrep" to use in msg output
3938if test -z "$EGREP"; then
3939set dummy egrep; ac_prog_name=$2
3940if test "${ac_cv_path_EGREP+set}" = set; then
d9898ee8 3941 echo $ECHO_N "(cached) $ECHO_C" >&6
3942else
64ff59ba 3943 ac_path_EGREP_found=false
3944# Loop through the user's path and test for each of PROGNAME-LIST
3945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3947do
3948 IFS=$as_save_IFS
3949 test -z "$as_dir" && as_dir=.
3950 for ac_prog in egrep; do
3951 for ac_exec_ext in '' $ac_executable_extensions; do
3952 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3953 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3954 # Check for GNU ac_path_EGREP and select it if it is found.
3955 # Check for GNU $ac_path_EGREP
3956case `"$ac_path_EGREP" --version 2>&1` in
3957*GNU*)
3958 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3959*)
3960 ac_count=0
3961 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3962 while :
3963 do
3964 cat "conftest.in" "conftest.in" >"conftest.tmp"
3965 mv "conftest.tmp" "conftest.in"
3966 cp "conftest.in" "conftest.nl"
3967 echo 'EGREP' >> "conftest.nl"
3968 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3969 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3970 ac_count=`expr $ac_count + 1`
3971 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3972 # Best one so far, save it but keep looking for a better one
3973 ac_cv_path_EGREP="$ac_path_EGREP"
3974 ac_path_EGREP_max=$ac_count
d9898ee8 3975 fi
64ff59ba 3976 # 10*(2^10) chars as input seems more than enough
3977 test $ac_count -gt 10 && break
3978 done
3979 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3980esac
3981
3982
3983 $ac_path_EGREP_found && break 3
3984 done
3985done
3986
3987done
3988IFS=$as_save_IFS
3989
3990
3991fi
3992
3993EGREP="$ac_cv_path_EGREP"
3994if test -z "$EGREP"; then
3995 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3996echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3997 { (exit 1); exit 1; }; }
3998fi
3999
4000else
4001 ac_cv_path_EGREP=$EGREP
4002fi
4003
4004
4005 fi
d9898ee8 4006fi
64ff59ba 4007{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4008echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4009 EGREP="$ac_cv_path_EGREP"
d9898ee8 4010
4011
4012
64ff59ba 4013# Check whether --with-gnu-ld was given.
d9898ee8 4014if test "${with_gnu_ld+set}" = set; then
64ff59ba 4015 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 4016else
4017 with_gnu_ld=no
64ff59ba 4018fi
4019
d9898ee8 4020ac_prog=ld
4021if test "$GCC" = yes; then
4022 # Check if gcc -print-prog-name=ld gives a path.
64ff59ba 4023 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4024echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d9898ee8 4025 case $host in
4026 *-*-mingw*)
4027 # gcc leaves a trailing carriage return which upsets mingw
4028 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4029 *)
4030 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4031 esac
4032 case $ac_prog in
4033 # Accept absolute paths.
4034 [\\/]* | ?:[\\/]*)
4035 re_direlt='/[^/][^/]*/\.\./'
4036 # Canonicalize the pathname of ld
4037 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4038 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4039 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4040 done
4041 test -z "$LD" && LD="$ac_prog"
4042 ;;
4043 "")
4044 # If it fails, then pretend we aren't using GCC.
4045 ac_prog=ld
4046 ;;
4047 *)
4048 # If it is relative, then search for the first ld in PATH.
4049 with_gnu_ld=unknown
4050 ;;
4051 esac
4052elif test "$with_gnu_ld" = yes; then
64ff59ba 4053 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4054echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d9898ee8 4055else
64ff59ba 4056 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4057echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d9898ee8 4058fi
4059if test "${lt_cv_path_LD+set}" = set; then
4060 echo $ECHO_N "(cached) $ECHO_C" >&6
4061else
4062 if test -z "$LD"; then
4063 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4064 for ac_dir in $PATH; do
4065 IFS="$lt_save_ifs"
4066 test -z "$ac_dir" && ac_dir=.
4067 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4068 lt_cv_path_LD="$ac_dir/$ac_prog"
4069 # Check to see if the program is GNU ld. I'd rather use --version,
4070 # but apparently some variants of GNU ld only accept -v.
4071 # Break only if it was the GNU/non-GNU ld that we prefer.
4072 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4073 *GNU* | *'with BFD'*)
4074 test "$with_gnu_ld" != no && break
4075 ;;
4076 *)
4077 test "$with_gnu_ld" != yes && break
4078 ;;
4079 esac
4080 fi
4081 done
4082 IFS="$lt_save_ifs"
4083else
4084 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4085fi
4086fi
4087
4088LD="$lt_cv_path_LD"
4089if test -n "$LD"; then
64ff59ba 4090 { echo "$as_me:$LINENO: result: $LD" >&5
4091echo "${ECHO_T}$LD" >&6; }
d9898ee8 4092else
64ff59ba 4093 { echo "$as_me:$LINENO: result: no" >&5
4094echo "${ECHO_T}no" >&6; }
d9898ee8 4095fi
4096test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4097echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4098 { (exit 1); exit 1; }; }
64ff59ba 4099{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4100echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d9898ee8 4101if test "${lt_cv_prog_gnu_ld+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4103else
4104 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4105case `$LD -v 2>&1 </dev/null` in
4106*GNU* | *'with BFD'*)
4107 lt_cv_prog_gnu_ld=yes
4108 ;;
4109*)
4110 lt_cv_prog_gnu_ld=no
4111 ;;
4112esac
4113fi
64ff59ba 4114{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4115echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 4116with_gnu_ld=$lt_cv_prog_gnu_ld
4117
4118
64ff59ba 4119{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4120echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
d9898ee8 4121if test "${lt_cv_ld_reload_flag+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4123else
4124 lt_cv_ld_reload_flag='-r'
4125fi
64ff59ba 4126{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4127echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
d9898ee8 4128reload_flag=$lt_cv_ld_reload_flag
4129case $reload_flag in
4130"" | " "*) ;;
4131*) reload_flag=" $reload_flag" ;;
4132esac
4133reload_cmds='$LD$reload_flag -o $output$reload_objs'
4134case $host_os in
4135 darwin*)
4136 if test "$GCC" = yes; then
4137 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4138 else
4139 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4140 fi
4141 ;;
4142esac
4143
64ff59ba 4144{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4145echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
d9898ee8 4146if test "${lt_cv_path_NM+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4148else
4149 if test -n "$NM"; then
4150 # Let the user override the test.
4151 lt_cv_path_NM="$NM"
4152else
4153 lt_nm_to_check="${ac_tool_prefix}nm"
4154 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4155 lt_nm_to_check="$lt_nm_to_check nm"
4156 fi
4157 for lt_tmp_nm in $lt_nm_to_check; do
4158 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4159 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4160 IFS="$lt_save_ifs"
4161 test -z "$ac_dir" && ac_dir=.
4162 tmp_nm="$ac_dir/$lt_tmp_nm"
4163 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4164 # Check to see if the nm accepts a BSD-compat flag.
4165 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4166 # nm: unknown option "B" ignored
4167 # Tru64's nm complains that /dev/null is an invalid object file
4168 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4169 */dev/null* | *'Invalid file or object type'*)
4170 lt_cv_path_NM="$tmp_nm -B"
4171 break
4172 ;;
4173 *)
4174 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4175 */dev/null*)
4176 lt_cv_path_NM="$tmp_nm -p"
4177 break
4178 ;;
4179 *)
4180 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4181 continue # so that we can try to find one that supports BSD flags
4182 ;;
4183 esac
4184 ;;
4185 esac
4186 fi
4187 done
4188 IFS="$lt_save_ifs"
4189 done
4190 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4191fi
4192fi
64ff59ba 4193{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4194echo "${ECHO_T}$lt_cv_path_NM" >&6; }
d9898ee8 4195NM="$lt_cv_path_NM"
4196
0fde1ce3 4197{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4198echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
d9898ee8 4199if test "${lt_cv_deplibs_check_method+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4201else
4202 lt_cv_file_magic_cmd='$MAGIC_CMD'
4203lt_cv_file_magic_test_file=
4204lt_cv_deplibs_check_method='unknown'
4205# Need to set the preceding variable on all platforms that support
4206# interlibrary dependencies.
4207# 'none' -- dependencies not supported.
4208# `unknown' -- same as none, but documents that we really don't know.
4209# 'pass_all' -- all dependencies passed with no checks.
4210# 'test_compile' -- check by making test program.
4211# 'file_magic [[regex]]' -- check by looking for files in library path
4212# which responds to the $file_magic_cmd with a given extended regex.
4213# If you have `file' or equivalent on your system and you're not sure
4214# whether `pass_all' will *always* work, you probably want this one.
4215
4216case $host_os in
4217aix4* | aix5*)
4218 lt_cv_deplibs_check_method=pass_all
4219 ;;
4220
4221beos*)
4222 lt_cv_deplibs_check_method=pass_all
4223 ;;
4224
4225bsdi[45]*)
4226 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4227 lt_cv_file_magic_cmd='/usr/bin/file -L'
4228 lt_cv_file_magic_test_file=/shlib/libc.so
4229 ;;
4230
4231cygwin*)
4232 # func_win32_libid is a shell function defined in ltmain.sh
4233 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4234 lt_cv_file_magic_cmd='func_win32_libid'
4235 ;;
4236
4237mingw* | pw32*)
4238 # Base MSYS/MinGW do not provide the 'file' command needed by
0fde1ce3 4239 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4240 # unless we find 'file', for example because we are cross-compiling.
4241 if ( file / ) >/dev/null 2>&1; then
4242 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4243 lt_cv_file_magic_cmd='func_win32_libid'
4244 else
4245 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4246 lt_cv_file_magic_cmd='$OBJDUMP -f'
4247 fi
d9898ee8 4248 ;;
4249
4250darwin* | rhapsody*)
4251 lt_cv_deplibs_check_method=pass_all
4252 ;;
4253
0fde1ce3 4254freebsd* | dragonfly*)
d9898ee8 4255 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4256 case $host_cpu in
4257 i*86 )
4258 # Not sure whether the presence of OpenBSD here was a mistake.
4259 # Let's accept both of them until this is cleared up.
4260 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4261 lt_cv_file_magic_cmd=/usr/bin/file
4262 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4263 ;;
4264 esac
4265 else
4266 lt_cv_deplibs_check_method=pass_all
4267 fi
4268 ;;
4269
4270gnu*)
4271 lt_cv_deplibs_check_method=pass_all
4272 ;;
4273
4274hpux10.20* | hpux11*)
4275 lt_cv_file_magic_cmd=/usr/bin/file
4276 case $host_cpu in
4277 ia64*)
4278 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4279 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4280 ;;
4281 hppa*64*)
4282 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]'
4283 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4284 ;;
4285 *)
4286 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4287 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4288 ;;
4289 esac
4290 ;;
4291
0fde1ce3 4292interix[3-9]*)
d9898ee8 4293 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4294 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4295 ;;
4296
4297irix5* | irix6* | nonstopux*)
4298 case $LD in
4299 *-32|*"-32 ") libmagic=32-bit;;
4300 *-n32|*"-n32 ") libmagic=N32;;
4301 *-64|*"-64 ") libmagic=64-bit;;
4302 *) libmagic=never-match;;
4303 esac
4304 lt_cv_deplibs_check_method=pass_all
4305 ;;
4306
4307# This must be Linux ELF.
0fde1ce3 4308linux* | k*bsd*-gnu)
d9898ee8 4309 lt_cv_deplibs_check_method=pass_all
4310 ;;
4311
4312netbsd*)
4313 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4314 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4315 else
4316 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4317 fi
4318 ;;
4319
4320newos6*)
4321 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4322 lt_cv_file_magic_cmd=/usr/bin/file
4323 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4324 ;;
4325
4326nto-qnx*)
4327 lt_cv_deplibs_check_method=unknown
4328 ;;
4329
4330openbsd*)
4331 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4332 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4333 else
4334 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4335 fi
4336 ;;
4337
4338osf3* | osf4* | osf5*)
4339 lt_cv_deplibs_check_method=pass_all
4340 ;;
4341
0fde1ce3 4342rdos*)
4343 lt_cv_deplibs_check_method=pass_all
4344 ;;
4345
d9898ee8 4346solaris*)
4347 lt_cv_deplibs_check_method=pass_all
4348 ;;
4349
4350sysv4 | sysv4.3*)
4351 case $host_vendor in
4352 motorola)
4353 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]'
4354 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4355 ;;
4356 ncr)
4357 lt_cv_deplibs_check_method=pass_all
4358 ;;
4359 sequent)
4360 lt_cv_file_magic_cmd='/bin/file'
4361 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4362 ;;
4363 sni)
4364 lt_cv_file_magic_cmd='/bin/file'
4365 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4366 lt_cv_file_magic_test_file=/lib/libc.so
4367 ;;
4368 siemens)
4369 lt_cv_deplibs_check_method=pass_all
4370 ;;
4371 pc)
4372 lt_cv_deplibs_check_method=pass_all
4373 ;;
4374 esac
4375 ;;
4376
4377sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4378 lt_cv_deplibs_check_method=pass_all
4379 ;;
4380esac
4381
4382fi
64ff59ba 4383{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4384echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
d9898ee8 4385file_magic_cmd=$lt_cv_file_magic_cmd
4386deplibs_check_method=$lt_cv_deplibs_check_method
4387test -z "$deplibs_check_method" && deplibs_check_method=unknown
4388
4389
4390
4391
4392# If no C compiler was specified, use CC.
4393LTCC=${LTCC-"$CC"}
4394
4395# If no C compiler flags were specified, use CFLAGS.
4396LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4397
4398# Allow CC to be a program name with arguments.
4399compiler=$CC
4400
4401
64ff59ba 4402# Check whether --enable-libtool-lock was given.
d9898ee8 4403if test "${enable_libtool_lock+set}" = set; then
64ff59ba 4404 enableval=$enable_libtool_lock;
4405fi
d9898ee8 4406
d9898ee8 4407test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4408
4409# Some flags need to be propagated to the compiler or linker for good
4410# libtool support.
4411case $host in
4412ia64-*-hpux*)
4413 # Find out which ABI we are using.
4414 echo 'int i;' > conftest.$ac_ext
4415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4416 (eval $ac_compile) 2>&5
4417 ac_status=$?
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); }; then
4420 case `/usr/bin/file conftest.$ac_objext` in
4421 *ELF-32*)
4422 HPUX_IA64_MODE="32"
4423 ;;
4424 *ELF-64*)
4425 HPUX_IA64_MODE="64"
4426 ;;
4427 esac
4428 fi
4429 rm -rf conftest*
4430 ;;
4431*-*-irix6*)
4432 # Find out which ABI we are using.
0fde1ce3 4433 echo '#line 4433 "configure"' > conftest.$ac_ext
d9898ee8 4434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4435 (eval $ac_compile) 2>&5
4436 ac_status=$?
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); }; then
4439 if test "$lt_cv_prog_gnu_ld" = yes; then
4440 case `/usr/bin/file conftest.$ac_objext` in
4441 *32-bit*)
4442 LD="${LD-ld} -melf32bsmip"
4443 ;;
4444 *N32*)
4445 LD="${LD-ld} -melf32bmipn32"
4446 ;;
4447 *64-bit*)
4448 LD="${LD-ld} -melf64bmip"
4449 ;;
4450 esac
4451 else
4452 case `/usr/bin/file conftest.$ac_objext` in
4453 *32-bit*)
4454 LD="${LD-ld} -32"
4455 ;;
4456 *N32*)
4457 LD="${LD-ld} -n32"
4458 ;;
4459 *64-bit*)
4460 LD="${LD-ld} -64"
4461 ;;
4462 esac
4463 fi
4464 fi
4465 rm -rf conftest*
4466 ;;
4467
0fde1ce3 4468x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4469s390*-*linux*|sparc*-*linux*)
d9898ee8 4470 # Find out which ABI we are using.
4471 echo 'int i;' > conftest.$ac_ext
4472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4473 (eval $ac_compile) 2>&5
4474 ac_status=$?
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; then
4477 case `/usr/bin/file conftest.o` in
4478 *32-bit*)
4479 case $host in
0fde1ce3 4480 x86_64-*kfreebsd*-gnu)
4481 LD="${LD-ld} -m elf_i386_fbsd"
4482 ;;
d9898ee8 4483 x86_64-*linux*)
4484 LD="${LD-ld} -m elf_i386"
4485 ;;
4486 ppc64-*linux*|powerpc64-*linux*)
4487 LD="${LD-ld} -m elf32ppclinux"
4488 ;;
4489 s390x-*linux*)
4490 LD="${LD-ld} -m elf_s390"
4491 ;;
4492 sparc64-*linux*)
4493 LD="${LD-ld} -m elf32_sparc"
4494 ;;
4495 esac
4496 ;;
4497 *64-bit*)
0fde1ce3 4498 libsuff=64
d9898ee8 4499 case $host in
0fde1ce3 4500 x86_64-*kfreebsd*-gnu)
4501 LD="${LD-ld} -m elf_x86_64_fbsd"
4502 ;;
d9898ee8 4503 x86_64-*linux*)
4504 LD="${LD-ld} -m elf_x86_64"
4505 ;;
4506 ppc*-*linux*|powerpc*-*linux*)
4507 LD="${LD-ld} -m elf64ppc"
4508 ;;
4509 s390*-*linux*)
4510 LD="${LD-ld} -m elf64_s390"
4511 ;;
4512 sparc*-*linux*)
4513 LD="${LD-ld} -m elf64_sparc"
4514 ;;
4515 esac
4516 ;;
4517 esac
4518 fi
4519 rm -rf conftest*
4520 ;;
4521
4522*-*-sco3.2v5*)
4523 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4524 SAVE_CFLAGS="$CFLAGS"
4525 CFLAGS="$CFLAGS -belf"
64ff59ba 4526 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4527echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
d9898ee8 4528if test "${lt_cv_cc_needs_belf+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4530else
4531 ac_ext=c
4532ac_cpp='$CPP $CPPFLAGS'
4533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535ac_compiler_gnu=$ac_cv_c_compiler_gnu
4536
4537 cat >conftest.$ac_ext <<_ACEOF
4538/* confdefs.h. */
4539_ACEOF
4540cat confdefs.h >>conftest.$ac_ext
4541cat >>conftest.$ac_ext <<_ACEOF
4542/* end confdefs.h. */
4543
4544int
4545main ()
4546{
4547
4548 ;
4549 return 0;
4550}
4551_ACEOF
4552rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 4553if { (ac_try="$ac_link"
4554case "(($ac_try" in
4555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556 *) ac_try_echo=$ac_try;;
4557esac
4558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4559 (eval "$ac_link") 2>conftest.er1
d9898ee8 4560 ac_status=$?
4561 grep -v '^ *+' conftest.er1 >conftest.err
4562 rm -f conftest.er1
4563 cat conftest.err >&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4565 (exit $ac_status); } && {
4566 test -z "$ac_c_werror_flag" ||
4567 test ! -s conftest.err
4568 } && test -s conftest$ac_exeext &&
4569 $as_test_x conftest$ac_exeext; then
d9898ee8 4570 lt_cv_cc_needs_belf=yes
4571else
4572 echo "$as_me: failed program was:" >&5
4573sed 's/^/| /' conftest.$ac_ext >&5
4574
64ff59ba 4575 lt_cv_cc_needs_belf=no
d9898ee8 4576fi
64ff59ba 4577
4578rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 4579 conftest$ac_exeext conftest.$ac_ext
4580 ac_ext=c
4581ac_cpp='$CPP $CPPFLAGS'
4582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4584ac_compiler_gnu=$ac_cv_c_compiler_gnu
4585
4586fi
64ff59ba 4587{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4588echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
d9898ee8 4589 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4590 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4591 CFLAGS="$SAVE_CFLAGS"
4592 fi
4593 ;;
4594sparc*-*solaris*)
4595 # Find out which ABI we are using.
4596 echo 'int i;' > conftest.$ac_ext
4597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4598 (eval $ac_compile) 2>&5
4599 ac_status=$?
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); }; then
4602 case `/usr/bin/file conftest.o` in
4603 *64-bit*)
4604 case $lt_cv_prog_gnu_ld in
4605 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4606 *) LD="${LD-ld} -64" ;;
4607 esac
4608 ;;
4609 esac
4610 fi
4611 rm -rf conftest*
4612 ;;
4613
4614
4615esac
4616
4617need_locks="$enable_libtool_lock"
4618
4619
4620ac_ext=c
4621ac_cpp='$CPP $CPPFLAGS'
4622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4624ac_compiler_gnu=$ac_cv_c_compiler_gnu
64ff59ba 4625{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4626echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
d9898ee8 4627# On Suns, sometimes $CPP names a directory.
4628if test -n "$CPP" && test -d "$CPP"; then
4629 CPP=
4630fi
4631if test -z "$CPP"; then
4632 if test "${ac_cv_prog_CPP+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4634else
4635 # Double quotes because CPP needs to be expanded
4636 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4637 do
4638 ac_preproc_ok=false
4639for ac_c_preproc_warn_flag in '' yes
4640do
4641 # Use a header file that comes with gcc, so configuring glibc
4642 # with a fresh cross-compiler works.
4643 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4644 # <limits.h> exists even on freestanding compilers.
4645 # On the NeXT, cc -E runs the code through the compiler's parser,
4646 # not just through cpp. "Syntax error" is here to catch this case.
4647 cat >conftest.$ac_ext <<_ACEOF
4648/* confdefs.h. */
4649_ACEOF
4650cat confdefs.h >>conftest.$ac_ext
4651cat >>conftest.$ac_ext <<_ACEOF
4652/* end confdefs.h. */
4653#ifdef __STDC__
4654# include <limits.h>
4655#else
4656# include <assert.h>
4657#endif
4658 Syntax error
4659_ACEOF
64ff59ba 4660if { (ac_try="$ac_cpp conftest.$ac_ext"
4661case "(($ac_try" in
4662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4663 *) ac_try_echo=$ac_try;;
4664esac
4665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4667 ac_status=$?
4668 grep -v '^ *+' conftest.er1 >conftest.err
4669 rm -f conftest.er1
4670 cat conftest.err >&5
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4672 (exit $ac_status); } >/dev/null && {
4673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4674 test ! -s conftest.err
4675 }; then
d9898ee8 4676 :
4677else
4678 echo "$as_me: failed program was:" >&5
4679sed 's/^/| /' conftest.$ac_ext >&5
4680
4681 # Broken: fails on valid input.
4682continue
4683fi
64ff59ba 4684
d9898ee8 4685rm -f conftest.err conftest.$ac_ext
4686
64ff59ba 4687 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 4688 # can be detected and how.
4689 cat >conftest.$ac_ext <<_ACEOF
4690/* confdefs.h. */
4691_ACEOF
4692cat confdefs.h >>conftest.$ac_ext
4693cat >>conftest.$ac_ext <<_ACEOF
4694/* end confdefs.h. */
4695#include <ac_nonexistent.h>
4696_ACEOF
64ff59ba 4697if { (ac_try="$ac_cpp conftest.$ac_ext"
4698case "(($ac_try" in
4699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4700 *) ac_try_echo=$ac_try;;
4701esac
4702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4704 ac_status=$?
4705 grep -v '^ *+' conftest.er1 >conftest.err
4706 rm -f conftest.er1
4707 cat conftest.err >&5
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4709 (exit $ac_status); } >/dev/null && {
4710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4711 test ! -s conftest.err
4712 }; then
d9898ee8 4713 # Broken: success on invalid input.
4714continue
4715else
4716 echo "$as_me: failed program was:" >&5
4717sed 's/^/| /' conftest.$ac_ext >&5
4718
4719 # Passes both tests.
4720ac_preproc_ok=:
4721break
4722fi
64ff59ba 4723
d9898ee8 4724rm -f conftest.err conftest.$ac_ext
4725
4726done
4727# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4728rm -f conftest.err conftest.$ac_ext
4729if $ac_preproc_ok; then
4730 break
4731fi
4732
4733 done
4734 ac_cv_prog_CPP=$CPP
4735
4736fi
4737 CPP=$ac_cv_prog_CPP
4738else
4739 ac_cv_prog_CPP=$CPP
4740fi
64ff59ba 4741{ echo "$as_me:$LINENO: result: $CPP" >&5
4742echo "${ECHO_T}$CPP" >&6; }
d9898ee8 4743ac_preproc_ok=false
4744for ac_c_preproc_warn_flag in '' yes
4745do
4746 # Use a header file that comes with gcc, so configuring glibc
4747 # with a fresh cross-compiler works.
4748 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4749 # <limits.h> exists even on freestanding compilers.
4750 # On the NeXT, cc -E runs the code through the compiler's parser,
4751 # not just through cpp. "Syntax error" is here to catch this case.
4752 cat >conftest.$ac_ext <<_ACEOF
4753/* confdefs.h. */
4754_ACEOF
4755cat confdefs.h >>conftest.$ac_ext
4756cat >>conftest.$ac_ext <<_ACEOF
4757/* end confdefs.h. */
4758#ifdef __STDC__
4759# include <limits.h>
4760#else
4761# include <assert.h>
4762#endif
4763 Syntax error
4764_ACEOF
64ff59ba 4765if { (ac_try="$ac_cpp conftest.$ac_ext"
4766case "(($ac_try" in
4767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4768 *) ac_try_echo=$ac_try;;
4769esac
4770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4772 ac_status=$?
4773 grep -v '^ *+' conftest.er1 >conftest.err
4774 rm -f conftest.er1
4775 cat conftest.err >&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4777 (exit $ac_status); } >/dev/null && {
4778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4779 test ! -s conftest.err
4780 }; then
d9898ee8 4781 :
4782else
4783 echo "$as_me: failed program was:" >&5
4784sed 's/^/| /' conftest.$ac_ext >&5
4785
4786 # Broken: fails on valid input.
4787continue
4788fi
64ff59ba 4789
d9898ee8 4790rm -f conftest.err conftest.$ac_ext
4791
64ff59ba 4792 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 4793 # can be detected and how.
4794 cat >conftest.$ac_ext <<_ACEOF
4795/* confdefs.h. */
4796_ACEOF
4797cat confdefs.h >>conftest.$ac_ext
4798cat >>conftest.$ac_ext <<_ACEOF
4799/* end confdefs.h. */
4800#include <ac_nonexistent.h>
4801_ACEOF
64ff59ba 4802if { (ac_try="$ac_cpp conftest.$ac_ext"
4803case "(($ac_try" in
4804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4805 *) ac_try_echo=$ac_try;;
4806esac
4807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4809 ac_status=$?
4810 grep -v '^ *+' conftest.er1 >conftest.err
4811 rm -f conftest.er1
4812 cat conftest.err >&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4814 (exit $ac_status); } >/dev/null && {
4815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4816 test ! -s conftest.err
4817 }; then
d9898ee8 4818 # Broken: success on invalid input.
4819continue
4820else
4821 echo "$as_me: failed program was:" >&5
4822sed 's/^/| /' conftest.$ac_ext >&5
4823
4824 # Passes both tests.
4825ac_preproc_ok=:
4826break
4827fi
64ff59ba 4828
d9898ee8 4829rm -f conftest.err conftest.$ac_ext
4830
4831done
4832# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4833rm -f conftest.err conftest.$ac_ext
4834if $ac_preproc_ok; then
4835 :
4836else
4837 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4838See \`config.log' for more details." >&5
4839echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4840See \`config.log' for more details." >&2;}
4841 { (exit 1); exit 1; }; }
4842fi
4843
4844ac_ext=c
4845ac_cpp='$CPP $CPPFLAGS'
4846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4848ac_compiler_gnu=$ac_cv_c_compiler_gnu
4849
4850
64ff59ba 4851{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4852echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
d9898ee8 4853if test "${ac_cv_header_stdc+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4855else
4856 cat >conftest.$ac_ext <<_ACEOF
4857/* confdefs.h. */
4858_ACEOF
4859cat confdefs.h >>conftest.$ac_ext
4860cat >>conftest.$ac_ext <<_ACEOF
4861/* end confdefs.h. */
4862#include <stdlib.h>
4863#include <stdarg.h>
4864#include <string.h>
4865#include <float.h>
4866
4867int
4868main ()
4869{
4870
4871 ;
4872 return 0;
4873}
4874_ACEOF
4875rm -f conftest.$ac_objext
64ff59ba 4876if { (ac_try="$ac_compile"
4877case "(($ac_try" in
4878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4879 *) ac_try_echo=$ac_try;;
4880esac
4881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4882 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4883 ac_status=$?
4884 grep -v '^ *+' conftest.er1 >conftest.err
4885 rm -f conftest.er1
4886 cat conftest.err >&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4888 (exit $ac_status); } && {
4889 test -z "$ac_c_werror_flag" ||
4890 test ! -s conftest.err
4891 } && test -s conftest.$ac_objext; then
d9898ee8 4892 ac_cv_header_stdc=yes
4893else
4894 echo "$as_me: failed program was:" >&5
4895sed 's/^/| /' conftest.$ac_ext >&5
4896
64ff59ba 4897 ac_cv_header_stdc=no
d9898ee8 4898fi
64ff59ba 4899
4900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 4901
4902if test $ac_cv_header_stdc = yes; then
4903 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4904 cat >conftest.$ac_ext <<_ACEOF
4905/* confdefs.h. */
4906_ACEOF
4907cat confdefs.h >>conftest.$ac_ext
4908cat >>conftest.$ac_ext <<_ACEOF
4909/* end confdefs.h. */
4910#include <string.h>
4911
4912_ACEOF
4913if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4914 $EGREP "memchr" >/dev/null 2>&1; then
4915 :
4916else
4917 ac_cv_header_stdc=no
4918fi
4919rm -f conftest*
4920
4921fi
4922
4923if test $ac_cv_header_stdc = yes; then
4924 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4925 cat >conftest.$ac_ext <<_ACEOF
4926/* confdefs.h. */
4927_ACEOF
4928cat confdefs.h >>conftest.$ac_ext
4929cat >>conftest.$ac_ext <<_ACEOF
4930/* end confdefs.h. */
4931#include <stdlib.h>
4932
4933_ACEOF
4934if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4935 $EGREP "free" >/dev/null 2>&1; then
4936 :
4937else
4938 ac_cv_header_stdc=no
4939fi
4940rm -f conftest*
4941
4942fi
4943
4944if test $ac_cv_header_stdc = yes; then
4945 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4946 if test "$cross_compiling" = yes; then
4947 :
4948else
4949 cat >conftest.$ac_ext <<_ACEOF
4950/* confdefs.h. */
4951_ACEOF
4952cat confdefs.h >>conftest.$ac_ext
4953cat >>conftest.$ac_ext <<_ACEOF
4954/* end confdefs.h. */
4955#include <ctype.h>
64ff59ba 4956#include <stdlib.h>
d9898ee8 4957#if ((' ' & 0x0FF) == 0x020)
4958# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4959# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4960#else
4961# define ISLOWER(c) \
4962 (('a' <= (c) && (c) <= 'i') \
4963 || ('j' <= (c) && (c) <= 'r') \
4964 || ('s' <= (c) && (c) <= 'z'))
4965# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4966#endif
4967
4968#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4969int
4970main ()
4971{
4972 int i;
4973 for (i = 0; i < 256; i++)
4974 if (XOR (islower (i), ISLOWER (i))
4975 || toupper (i) != TOUPPER (i))
64ff59ba 4976 return 2;
4977 return 0;
d9898ee8 4978}
4979_ACEOF
4980rm -f conftest$ac_exeext
64ff59ba 4981if { (ac_try="$ac_link"
4982case "(($ac_try" in
4983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4984 *) ac_try_echo=$ac_try;;
4985esac
4986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4987 (eval "$ac_link") 2>&5
d9898ee8 4988 ac_status=$?
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
64ff59ba 4991 { (case "(($ac_try" in
4992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4993 *) ac_try_echo=$ac_try;;
4994esac
4995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4996 (eval "$ac_try") 2>&5
d9898ee8 4997 ac_status=$?
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); }; }; then
5000 :
5001else
5002 echo "$as_me: program exited with status $ac_status" >&5
5003echo "$as_me: failed program was:" >&5
5004sed 's/^/| /' conftest.$ac_ext >&5
5005
5006( exit $ac_status )
5007ac_cv_header_stdc=no
5008fi
64ff59ba 5009rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 5010fi
64ff59ba 5011
5012
d9898ee8 5013fi
5014fi
64ff59ba 5015{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5016echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
d9898ee8 5017if test $ac_cv_header_stdc = yes; then
5018
5019cat >>confdefs.h <<\_ACEOF
5020#define STDC_HEADERS 1
5021_ACEOF
5022
5023fi
5024
5025# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5036 inttypes.h stdint.h unistd.h
5037do
5038as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 5039{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5040echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5041if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5042 echo $ECHO_N "(cached) $ECHO_C" >&6
5043else
5044 cat >conftest.$ac_ext <<_ACEOF
5045/* confdefs.h. */
5046_ACEOF
5047cat confdefs.h >>conftest.$ac_ext
5048cat >>conftest.$ac_ext <<_ACEOF
5049/* end confdefs.h. */
5050$ac_includes_default
5051
5052#include <$ac_header>
5053_ACEOF
5054rm -f conftest.$ac_objext
64ff59ba 5055if { (ac_try="$ac_compile"
5056case "(($ac_try" in
5057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5058 *) ac_try_echo=$ac_try;;
5059esac
5060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5061 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5062 ac_status=$?
5063 grep -v '^ *+' conftest.er1 >conftest.err
5064 rm -f conftest.er1
5065 cat conftest.err >&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5067 (exit $ac_status); } && {
5068 test -z "$ac_c_werror_flag" ||
5069 test ! -s conftest.err
5070 } && test -s conftest.$ac_objext; then
d9898ee8 5071 eval "$as_ac_Header=yes"
5072else
5073 echo "$as_me: failed program was:" >&5
5074sed 's/^/| /' conftest.$ac_ext >&5
5075
64ff59ba 5076 eval "$as_ac_Header=no"
d9898ee8 5077fi
64ff59ba 5078
5079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5080fi
64ff59ba 5081ac_res=`eval echo '${'$as_ac_Header'}'`
5082 { echo "$as_me:$LINENO: result: $ac_res" >&5
5083echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5084if test `eval echo '${'$as_ac_Header'}'` = yes; then
5085 cat >>confdefs.h <<_ACEOF
5086#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5087_ACEOF
5088
5089fi
5090
5091done
5092
5093
5094
5095for ac_header in dlfcn.h
5096do
5097as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 5098if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5101if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5103fi
64ff59ba 5104ac_res=`eval echo '${'$as_ac_Header'}'`
5105 { echo "$as_me:$LINENO: result: $ac_res" >&5
5106echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5107else
5108 # Is the header compilable?
64ff59ba 5109{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5110echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 5111cat >conftest.$ac_ext <<_ACEOF
5112/* confdefs.h. */
5113_ACEOF
5114cat confdefs.h >>conftest.$ac_ext
5115cat >>conftest.$ac_ext <<_ACEOF
5116/* end confdefs.h. */
5117$ac_includes_default
5118#include <$ac_header>
5119_ACEOF
5120rm -f conftest.$ac_objext
64ff59ba 5121if { (ac_try="$ac_compile"
5122case "(($ac_try" in
5123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5124 *) ac_try_echo=$ac_try;;
5125esac
5126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5127 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5128 ac_status=$?
5129 grep -v '^ *+' conftest.er1 >conftest.err
5130 rm -f conftest.er1
5131 cat conftest.err >&5
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5133 (exit $ac_status); } && {
5134 test -z "$ac_c_werror_flag" ||
5135 test ! -s conftest.err
5136 } && test -s conftest.$ac_objext; then
d9898ee8 5137 ac_header_compiler=yes
5138else
5139 echo "$as_me: failed program was:" >&5
5140sed 's/^/| /' conftest.$ac_ext >&5
5141
64ff59ba 5142 ac_header_compiler=no
d9898ee8 5143fi
64ff59ba 5144
5145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5146{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5147echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 5148
5149# Is the header present?
64ff59ba 5150{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5151echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 5152cat >conftest.$ac_ext <<_ACEOF
5153/* confdefs.h. */
5154_ACEOF
5155cat confdefs.h >>conftest.$ac_ext
5156cat >>conftest.$ac_ext <<_ACEOF
5157/* end confdefs.h. */
5158#include <$ac_header>
5159_ACEOF
64ff59ba 5160if { (ac_try="$ac_cpp conftest.$ac_ext"
5161case "(($ac_try" in
5162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5163 *) ac_try_echo=$ac_try;;
5164esac
5165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5167 ac_status=$?
5168 grep -v '^ *+' conftest.er1 >conftest.err
5169 rm -f conftest.er1
5170 cat conftest.err >&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5172 (exit $ac_status); } >/dev/null && {
5173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5174 test ! -s conftest.err
5175 }; then
d9898ee8 5176 ac_header_preproc=yes
5177else
5178 echo "$as_me: failed program was:" >&5
5179sed 's/^/| /' conftest.$ac_ext >&5
5180
5181 ac_header_preproc=no
5182fi
64ff59ba 5183
d9898ee8 5184rm -f conftest.err conftest.$ac_ext
64ff59ba 5185{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5186echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 5187
5188# So? What about this header?
5189case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5190 yes:no: )
5191 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5192echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5194echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5195 ac_header_preproc=yes
5196 ;;
5197 no:yes:* )
5198 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5199echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5200 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5201echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5202 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5203echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5204 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5205echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5207echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5208 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5209echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64ff59ba 5210 ( cat <<\_ASBOX
d9898ee8 5211## -------------------------------------------------- ##
5212## Report this to courier-users@lists.sourceforge.net ##
5213## -------------------------------------------------- ##
5214_ASBOX
64ff59ba 5215 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 5216 ;;
5217esac
64ff59ba 5218{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5219echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5220if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5221 echo $ECHO_N "(cached) $ECHO_C" >&6
5222else
5223 eval "$as_ac_Header=\$ac_header_preproc"
5224fi
64ff59ba 5225ac_res=`eval echo '${'$as_ac_Header'}'`
5226 { echo "$as_me:$LINENO: result: $ac_res" >&5
5227echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5228
5229fi
5230if test `eval echo '${'$as_ac_Header'}'` = yes; then
5231 cat >>confdefs.h <<_ACEOF
5232#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5233_ACEOF
5234
5235fi
5236
5237done
5238
64ff59ba 5239ac_ext=cpp
d9898ee8 5240ac_cpp='$CXXCPP $CPPFLAGS'
5241ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5242ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5243ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
64ff59ba 5244if test -z "$CXX"; then
5245 if test -n "$CCC"; then
5246 CXX=$CCC
5247 else
5248 if test -n "$ac_tool_prefix"; then
5249 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d9898ee8 5250 do
5251 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5252set dummy $ac_tool_prefix$ac_prog; ac_word=$2
64ff59ba 5253{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5255if test "${ac_cv_prog_CXX+set}" = set; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5257else
5258 if test -n "$CXX"; then
5259 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5260else
5261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262for as_dir in $PATH
5263do
5264 IFS=$as_save_IFS
5265 test -z "$as_dir" && as_dir=.
5266 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 5267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5268 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5270 break 2
5271 fi
5272done
5273done
64ff59ba 5274IFS=$as_save_IFS
d9898ee8 5275
5276fi
5277fi
5278CXX=$ac_cv_prog_CXX
5279if test -n "$CXX"; then
64ff59ba 5280 { echo "$as_me:$LINENO: result: $CXX" >&5
5281echo "${ECHO_T}$CXX" >&6; }
d9898ee8 5282else
64ff59ba 5283 { echo "$as_me:$LINENO: result: no" >&5
5284echo "${ECHO_T}no" >&6; }
d9898ee8 5285fi
5286
64ff59ba 5287
d9898ee8 5288 test -n "$CXX" && break
5289 done
5290fi
5291if test -z "$CXX"; then
5292 ac_ct_CXX=$CXX
64ff59ba 5293 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d9898ee8 5294do
5295 # Extract the first word of "$ac_prog", so it can be a program name with args.
5296set dummy $ac_prog; ac_word=$2
64ff59ba 5297{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5299if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5300 echo $ECHO_N "(cached) $ECHO_C" >&6
5301else
5302 if test -n "$ac_ct_CXX"; then
5303 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5304else
5305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306for as_dir in $PATH
5307do
5308 IFS=$as_save_IFS
5309 test -z "$as_dir" && as_dir=.
5310 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 5311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5312 ac_cv_prog_ac_ct_CXX="$ac_prog"
5313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5314 break 2
5315 fi
5316done
5317done
64ff59ba 5318IFS=$as_save_IFS
d9898ee8 5319
5320fi
5321fi
5322ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5323if test -n "$ac_ct_CXX"; then
64ff59ba 5324 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5325echo "${ECHO_T}$ac_ct_CXX" >&6; }
d9898ee8 5326else
64ff59ba 5327 { echo "$as_me:$LINENO: result: no" >&5
5328echo "${ECHO_T}no" >&6; }
d9898ee8 5329fi
5330
64ff59ba 5331
d9898ee8 5332 test -n "$ac_ct_CXX" && break
5333done
d9898ee8 5334
64ff59ba 5335 if test "x$ac_ct_CXX" = x; then
5336 CXX="g++"
5337 else
5338 case $cross_compiling:$ac_tool_warned in
5339yes:)
5340{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5341whose name does not start with the host triplet. If you think this
5342configuration is useful to you, please write to autoconf@gnu.org." >&5
5343echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5344whose name does not start with the host triplet. If you think this
5345configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5346ac_tool_warned=yes ;;
5347esac
5348 CXX=$ac_ct_CXX
5349 fi
d9898ee8 5350fi
5351
64ff59ba 5352 fi
5353fi
d9898ee8 5354# Provide some information about the compiler.
64ff59ba 5355echo "$as_me:$LINENO: checking for C++ compiler version" >&5
d9898ee8 5356ac_compiler=`set X $ac_compile; echo $2`
64ff59ba 5357{ (ac_try="$ac_compiler --version >&5"
5358case "(($ac_try" in
5359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5360 *) ac_try_echo=$ac_try;;
5361esac
5362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5363 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 5364 ac_status=$?
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); }
64ff59ba 5367{ (ac_try="$ac_compiler -v >&5"
5368case "(($ac_try" in
5369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5370 *) ac_try_echo=$ac_try;;
5371esac
5372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5373 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 5374 ac_status=$?
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); }
64ff59ba 5377{ (ac_try="$ac_compiler -V >&5"
5378case "(($ac_try" in
5379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5380 *) ac_try_echo=$ac_try;;
5381esac
5382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5383 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 5384 ac_status=$?
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); }
5387
64ff59ba 5388{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5389echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
d9898ee8 5390if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5391 echo $ECHO_N "(cached) $ECHO_C" >&6
5392else
5393 cat >conftest.$ac_ext <<_ACEOF
5394/* confdefs.h. */
5395_ACEOF
5396cat confdefs.h >>conftest.$ac_ext
5397cat >>conftest.$ac_ext <<_ACEOF
5398/* end confdefs.h. */
5399
5400int
5401main ()
5402{
5403#ifndef __GNUC__
5404 choke me
5405#endif
5406
5407 ;
5408 return 0;
5409}
5410_ACEOF
5411rm -f conftest.$ac_objext
64ff59ba 5412if { (ac_try="$ac_compile"
5413case "(($ac_try" in
5414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5415 *) ac_try_echo=$ac_try;;
5416esac
5417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5418 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5419 ac_status=$?
5420 grep -v '^ *+' conftest.er1 >conftest.err
5421 rm -f conftest.er1
5422 cat conftest.err >&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5424 (exit $ac_status); } && {
5425 test -z "$ac_cxx_werror_flag" ||
5426 test ! -s conftest.err
5427 } && test -s conftest.$ac_objext; then
d9898ee8 5428 ac_compiler_gnu=yes
5429else
5430 echo "$as_me: failed program was:" >&5
5431sed 's/^/| /' conftest.$ac_ext >&5
5432
64ff59ba 5433 ac_compiler_gnu=no
d9898ee8 5434fi
64ff59ba 5435
5436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5437ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5438
5439fi
64ff59ba 5440{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5441echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
d9898ee8 5442GXX=`test $ac_compiler_gnu = yes && echo yes`
5443ac_test_CXXFLAGS=${CXXFLAGS+set}
5444ac_save_CXXFLAGS=$CXXFLAGS
64ff59ba 5445{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5446echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
d9898ee8 5447if test "${ac_cv_prog_cxx_g+set}" = set; then
5448 echo $ECHO_N "(cached) $ECHO_C" >&6
5449else
64ff59ba 5450 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5451 ac_cxx_werror_flag=yes
5452 ac_cv_prog_cxx_g=no
5453 CXXFLAGS="-g"
5454 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5455/* confdefs.h. */
5456_ACEOF
5457cat confdefs.h >>conftest.$ac_ext
5458cat >>conftest.$ac_ext <<_ACEOF
5459/* end confdefs.h. */
5460
5461int
5462main ()
5463{
5464
5465 ;
5466 return 0;
5467}
5468_ACEOF
5469rm -f conftest.$ac_objext
64ff59ba 5470if { (ac_try="$ac_compile"
5471case "(($ac_try" in
5472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5473 *) ac_try_echo=$ac_try;;
5474esac
5475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5476 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5477 ac_status=$?
5478 grep -v '^ *+' conftest.er1 >conftest.err
5479 rm -f conftest.er1
5480 cat conftest.err >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5482 (exit $ac_status); } && {
5483 test -z "$ac_cxx_werror_flag" ||
5484 test ! -s conftest.err
5485 } && test -s conftest.$ac_objext; then
d9898ee8 5486 ac_cv_prog_cxx_g=yes
5487else
5488 echo "$as_me: failed program was:" >&5
5489sed 's/^/| /' conftest.$ac_ext >&5
5490
64ff59ba 5491 CXXFLAGS=""
5492 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5493/* confdefs.h. */
5494_ACEOF
5495cat confdefs.h >>conftest.$ac_ext
5496cat >>conftest.$ac_ext <<_ACEOF
5497/* end confdefs.h. */
64ff59ba 5498
d9898ee8 5499int
5500main ()
5501{
64ff59ba 5502
d9898ee8 5503 ;
5504 return 0;
5505}
5506_ACEOF
5507rm -f conftest.$ac_objext
64ff59ba 5508if { (ac_try="$ac_compile"
5509case "(($ac_try" in
5510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5511 *) ac_try_echo=$ac_try;;
5512esac
5513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5514 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5515 ac_status=$?
5516 grep -v '^ *+' conftest.er1 >conftest.err
5517 rm -f conftest.er1
5518 cat conftest.err >&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5520 (exit $ac_status); } && {
5521 test -z "$ac_cxx_werror_flag" ||
5522 test ! -s conftest.err
5523 } && test -s conftest.$ac_objext; then
d9898ee8 5524 :
5525else
5526 echo "$as_me: failed program was:" >&5
5527sed 's/^/| /' conftest.$ac_ext >&5
5528
64ff59ba 5529 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5530 CXXFLAGS="-g"
5531 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5532/* confdefs.h. */
5533_ACEOF
5534cat confdefs.h >>conftest.$ac_ext
5535cat >>conftest.$ac_ext <<_ACEOF
5536/* end confdefs.h. */
64ff59ba 5537
d9898ee8 5538int
5539main ()
5540{
64ff59ba 5541
d9898ee8 5542 ;
5543 return 0;
5544}
5545_ACEOF
5546rm -f conftest.$ac_objext
64ff59ba 5547if { (ac_try="$ac_compile"
5548case "(($ac_try" in
5549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5550 *) ac_try_echo=$ac_try;;
5551esac
5552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5553 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5554 ac_status=$?
5555 grep -v '^ *+' conftest.er1 >conftest.err
5556 rm -f conftest.er1
5557 cat conftest.err >&5
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5559 (exit $ac_status); } && {
5560 test -z "$ac_cxx_werror_flag" ||
5561 test ! -s conftest.err
5562 } && test -s conftest.$ac_objext; then
5563 ac_cv_prog_cxx_g=yes
d9898ee8 5564else
5565 echo "$as_me: failed program was:" >&5
5566sed 's/^/| /' conftest.$ac_ext >&5
5567
64ff59ba 5568
d9898ee8 5569fi
64ff59ba 5570
5571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5572fi
5573
64ff59ba 5574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5575fi
5576
5577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5579fi
5580{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5581echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5582if test "$ac_test_CXXFLAGS" = set; then
5583 CXXFLAGS=$ac_save_CXXFLAGS
5584elif test $ac_cv_prog_cxx_g = yes; then
5585 if test "$GXX" = yes; then
5586 CXXFLAGS="-g -O2"
5587 else
5588 CXXFLAGS="-g"
5589 fi
5590else
5591 if test "$GXX" = yes; then
5592 CXXFLAGS="-O2"
5593 else
5594 CXXFLAGS=
5595 fi
5596fi
5597ac_ext=cpp
d9898ee8 5598ac_cpp='$CXXCPP $CPPFLAGS'
5599ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5600ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5601ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5602
5603depcc="$CXX" am_compiler_list=
5604
64ff59ba 5605{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5606echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
d9898ee8 5607if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5608 echo $ECHO_N "(cached) $ECHO_C" >&6
5609else
5610 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5611 # We make a subdir and do the tests there. Otherwise we can end up
5612 # making bogus files that we don't know about and never remove. For
5613 # instance it was reported that on HP-UX the gcc test will end up
5614 # making a dummy file named `D' -- because `-MD' means `put the output
5615 # in D'.
5616 mkdir conftest.dir
5617 # Copy depcomp to subdir because otherwise we won't find it if we're
5618 # using a relative directory.
5619 cp "$am_depcomp" conftest.dir
5620 cd conftest.dir
5621 # We will build objects and dependencies in a subdirectory because
5622 # it helps to detect inapplicable dependency modes. For instance
5623 # both Tru64's cc and ICC support -MD to output dependencies as a
5624 # side effect of compilation, but ICC will put the dependencies in
5625 # the current directory while Tru64 will put them in the object
5626 # directory.
5627 mkdir sub
5628
5629 am_cv_CXX_dependencies_compiler_type=none
5630 if test "$am_compiler_list" = ""; then
5631 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5632 fi
5633 for depmode in $am_compiler_list; do
5634 # Setup a source with many dependencies, because some compilers
5635 # like to wrap large dependency lists on column 80 (with \), and
5636 # we should not choose a depcomp mode which is confused by this.
5637 #
5638 # We need to recreate these files for each test, as the compiler may
5639 # overwrite some of them when testing with obscure command lines.
5640 # This happens at least with the AIX C compiler.
5641 : > sub/conftest.c
5642 for i in 1 2 3 4 5 6; do
5643 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5644 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5645 # Solaris 8's {/usr,}/bin/sh.
5646 touch sub/conftst$i.h
5647 done
5648 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5649
5650 case $depmode in
5651 nosideeffect)
5652 # after this tag, mechanisms are not by side-effect, so they'll
5653 # only be used when explicitly requested
5654 if test "x$enable_dependency_tracking" = xyes; then
5655 continue
5656 else
5657 break
5658 fi
5659 ;;
5660 none) break ;;
5661 esac
5662 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5663 # mode. It turns out that the SunPro C++ compiler does not properly
5664 # handle `-M -o', and we need to detect this.
5665 if depmode=$depmode \
5666 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5667 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5668 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5669 >/dev/null 2>conftest.err &&
64ff59ba 5670 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 5671 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5672 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5673 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5674 # icc doesn't choke on unknown options, it will just issue warnings
5675 # or remarks (even with -Werror). So we grep stderr for any message
5676 # that says an option was ignored or not supported.
5677 # When given -MP, icc 7.0 and 7.1 complain thusly:
5678 # icc: Command line warning: ignoring option '-M'; no argument required
5679 # The diagnosis changed in icc 8.0:
5680 # icc: Command line remark: option '-MP' not supported
5681 if (grep 'ignoring option' conftest.err ||
5682 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5683 am_cv_CXX_dependencies_compiler_type=$depmode
5684 break
5685 fi
5686 fi
5687 done
5688
5689 cd ..
5690 rm -rf conftest.dir
5691else
5692 am_cv_CXX_dependencies_compiler_type=none
5693fi
5694
5695fi
64ff59ba 5696{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5697echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
d9898ee8 5698CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5699
64ff59ba 5700 if
d9898ee8 5701 test "x$enable_dependency_tracking" != xno \
5702 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5703 am__fastdepCXX_TRUE=
5704 am__fastdepCXX_FALSE='#'
5705else
5706 am__fastdepCXX_TRUE='#'
5707 am__fastdepCXX_FALSE=
5708fi
5709
5710
5711
5712
5713if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5714 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5715 (test "X$CXX" != "Xg++"))) ; then
64ff59ba 5716 ac_ext=cpp
d9898ee8 5717ac_cpp='$CXXCPP $CPPFLAGS'
5718ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5719ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5720ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
64ff59ba 5721{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5722echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
d9898ee8 5723if test -z "$CXXCPP"; then
5724 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5725 echo $ECHO_N "(cached) $ECHO_C" >&6
5726else
5727 # Double quotes because CXXCPP needs to be expanded
5728 for CXXCPP in "$CXX -E" "/lib/cpp"
5729 do
5730 ac_preproc_ok=false
5731for ac_cxx_preproc_warn_flag in '' yes
5732do
5733 # Use a header file that comes with gcc, so configuring glibc
5734 # with a fresh cross-compiler works.
5735 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5736 # <limits.h> exists even on freestanding compilers.
5737 # On the NeXT, cc -E runs the code through the compiler's parser,
5738 # not just through cpp. "Syntax error" is here to catch this case.
5739 cat >conftest.$ac_ext <<_ACEOF
5740/* confdefs.h. */
5741_ACEOF
5742cat confdefs.h >>conftest.$ac_ext
5743cat >>conftest.$ac_ext <<_ACEOF
5744/* end confdefs.h. */
5745#ifdef __STDC__
5746# include <limits.h>
5747#else
5748# include <assert.h>
5749#endif
5750 Syntax error
5751_ACEOF
64ff59ba 5752if { (ac_try="$ac_cpp conftest.$ac_ext"
5753case "(($ac_try" in
5754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755 *) ac_try_echo=$ac_try;;
5756esac
5757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5759 ac_status=$?
5760 grep -v '^ *+' conftest.er1 >conftest.err
5761 rm -f conftest.er1
5762 cat conftest.err >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5764 (exit $ac_status); } >/dev/null && {
5765 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5766 test ! -s conftest.err
5767 }; then
d9898ee8 5768 :
5769else
5770 echo "$as_me: failed program was:" >&5
5771sed 's/^/| /' conftest.$ac_ext >&5
5772
5773 # Broken: fails on valid input.
5774continue
5775fi
64ff59ba 5776
d9898ee8 5777rm -f conftest.err conftest.$ac_ext
5778
64ff59ba 5779 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 5780 # can be detected and how.
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#include <ac_nonexistent.h>
5788_ACEOF
64ff59ba 5789if { (ac_try="$ac_cpp conftest.$ac_ext"
5790case "(($ac_try" in
5791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792 *) ac_try_echo=$ac_try;;
5793esac
5794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5796 ac_status=$?
5797 grep -v '^ *+' conftest.er1 >conftest.err
5798 rm -f conftest.er1
5799 cat conftest.err >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5801 (exit $ac_status); } >/dev/null && {
5802 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5803 test ! -s conftest.err
5804 }; then
d9898ee8 5805 # Broken: success on invalid input.
5806continue
5807else
5808 echo "$as_me: failed program was:" >&5
5809sed 's/^/| /' conftest.$ac_ext >&5
5810
5811 # Passes both tests.
5812ac_preproc_ok=:
5813break
5814fi
64ff59ba 5815
d9898ee8 5816rm -f conftest.err conftest.$ac_ext
5817
5818done
5819# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5820rm -f conftest.err conftest.$ac_ext
5821if $ac_preproc_ok; then
5822 break
5823fi
5824
5825 done
5826 ac_cv_prog_CXXCPP=$CXXCPP
5827
5828fi
5829 CXXCPP=$ac_cv_prog_CXXCPP
5830else
5831 ac_cv_prog_CXXCPP=$CXXCPP
5832fi
64ff59ba 5833{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5834echo "${ECHO_T}$CXXCPP" >&6; }
d9898ee8 5835ac_preproc_ok=false
5836for ac_cxx_preproc_warn_flag in '' yes
5837do
5838 # Use a header file that comes with gcc, so configuring glibc
5839 # with a fresh cross-compiler works.
5840 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5841 # <limits.h> exists even on freestanding compilers.
5842 # On the NeXT, cc -E runs the code through the compiler's parser,
5843 # not just through cpp. "Syntax error" is here to catch this case.
5844 cat >conftest.$ac_ext <<_ACEOF
5845/* confdefs.h. */
5846_ACEOF
5847cat confdefs.h >>conftest.$ac_ext
5848cat >>conftest.$ac_ext <<_ACEOF
5849/* end confdefs.h. */
5850#ifdef __STDC__
5851# include <limits.h>
5852#else
5853# include <assert.h>
5854#endif
5855 Syntax error
5856_ACEOF
64ff59ba 5857if { (ac_try="$ac_cpp conftest.$ac_ext"
5858case "(($ac_try" in
5859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5860 *) ac_try_echo=$ac_try;;
5861esac
5862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5864 ac_status=$?
5865 grep -v '^ *+' conftest.er1 >conftest.err
5866 rm -f conftest.er1
5867 cat conftest.err >&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5869 (exit $ac_status); } >/dev/null && {
5870 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5871 test ! -s conftest.err
5872 }; then
d9898ee8 5873 :
5874else
5875 echo "$as_me: failed program was:" >&5
5876sed 's/^/| /' conftest.$ac_ext >&5
5877
5878 # Broken: fails on valid input.
5879continue
5880fi
64ff59ba 5881
d9898ee8 5882rm -f conftest.err conftest.$ac_ext
5883
64ff59ba 5884 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 5885 # can be detected and how.
5886 cat >conftest.$ac_ext <<_ACEOF
5887/* confdefs.h. */
5888_ACEOF
5889cat confdefs.h >>conftest.$ac_ext
5890cat >>conftest.$ac_ext <<_ACEOF
5891/* end confdefs.h. */
5892#include <ac_nonexistent.h>
5893_ACEOF
64ff59ba 5894if { (ac_try="$ac_cpp conftest.$ac_ext"
5895case "(($ac_try" in
5896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5897 *) ac_try_echo=$ac_try;;
5898esac
5899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5901 ac_status=$?
5902 grep -v '^ *+' conftest.er1 >conftest.err
5903 rm -f conftest.er1
5904 cat conftest.err >&5
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5906 (exit $ac_status); } >/dev/null && {
5907 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5908 test ! -s conftest.err
5909 }; then
d9898ee8 5910 # Broken: success on invalid input.
5911continue
5912else
5913 echo "$as_me: failed program was:" >&5
5914sed 's/^/| /' conftest.$ac_ext >&5
5915
5916 # Passes both tests.
5917ac_preproc_ok=:
5918break
5919fi
64ff59ba 5920
d9898ee8 5921rm -f conftest.err conftest.$ac_ext
5922
5923done
5924# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5925rm -f conftest.err conftest.$ac_ext
5926if $ac_preproc_ok; then
5927 :
5928else
5929 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5930See \`config.log' for more details." >&5
5931echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5932See \`config.log' for more details." >&2;}
5933 { (exit 1); exit 1; }; }
5934fi
5935
64ff59ba 5936ac_ext=cpp
d9898ee8 5937ac_cpp='$CXXCPP $CPPFLAGS'
5938ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5939ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5940ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5941
5942fi
5943
5944
5945ac_ext=f
5946ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5947ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5948ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5949if test -n "$ac_tool_prefix"; then
64ff59ba 5950 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 5951 do
5952 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5953set dummy $ac_tool_prefix$ac_prog; ac_word=$2
64ff59ba 5954{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5956if test "${ac_cv_prog_F77+set}" = set; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5958else
5959 if test -n "$F77"; then
5960 ac_cv_prog_F77="$F77" # Let the user override the test.
5961else
5962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963for as_dir in $PATH
5964do
5965 IFS=$as_save_IFS
5966 test -z "$as_dir" && as_dir=.
5967 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 5968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5969 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5971 break 2
5972 fi
5973done
5974done
64ff59ba 5975IFS=$as_save_IFS
d9898ee8 5976
5977fi
5978fi
5979F77=$ac_cv_prog_F77
5980if test -n "$F77"; then
64ff59ba 5981 { echo "$as_me:$LINENO: result: $F77" >&5
5982echo "${ECHO_T}$F77" >&6; }
d9898ee8 5983else
64ff59ba 5984 { echo "$as_me:$LINENO: result: no" >&5
5985echo "${ECHO_T}no" >&6; }
d9898ee8 5986fi
5987
64ff59ba 5988
d9898ee8 5989 test -n "$F77" && break
5990 done
5991fi
5992if test -z "$F77"; then
5993 ac_ct_F77=$F77
64ff59ba 5994 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 5995do
5996 # Extract the first word of "$ac_prog", so it can be a program name with args.
5997set dummy $ac_prog; ac_word=$2
64ff59ba 5998{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6000if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6001 echo $ECHO_N "(cached) $ECHO_C" >&6
6002else
6003 if test -n "$ac_ct_F77"; then
6004 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6005else
6006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007for as_dir in $PATH
6008do
6009 IFS=$as_save_IFS
6010 test -z "$as_dir" && as_dir=.
6011 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6013 ac_cv_prog_ac_ct_F77="$ac_prog"
6014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6015 break 2
6016 fi
6017done
6018done
64ff59ba 6019IFS=$as_save_IFS
d9898ee8 6020
6021fi
6022fi
6023ac_ct_F77=$ac_cv_prog_ac_ct_F77
6024if test -n "$ac_ct_F77"; then
64ff59ba 6025 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6026echo "${ECHO_T}$ac_ct_F77" >&6; }
d9898ee8 6027else
64ff59ba 6028 { echo "$as_me:$LINENO: result: no" >&5
6029echo "${ECHO_T}no" >&6; }
d9898ee8 6030fi
6031
64ff59ba 6032
d9898ee8 6033 test -n "$ac_ct_F77" && break
6034done
6035
64ff59ba 6036 if test "x$ac_ct_F77" = x; then
6037 F77=""
6038 else
6039 case $cross_compiling:$ac_tool_warned in
6040yes:)
6041{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6042whose name does not start with the host triplet. If you think this
6043configuration is useful to you, please write to autoconf@gnu.org." >&5
6044echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6045whose name does not start with the host triplet. If you think this
6046configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6047ac_tool_warned=yes ;;
6048esac
6049 F77=$ac_ct_F77
6050 fi
d9898ee8 6051fi
6052
6053
6054# Provide some information about the compiler.
64ff59ba 6055echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
d9898ee8 6056ac_compiler=`set X $ac_compile; echo $2`
64ff59ba 6057{ (ac_try="$ac_compiler --version >&5"
6058case "(($ac_try" in
6059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6060 *) ac_try_echo=$ac_try;;
6061esac
6062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6063 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 6064 ac_status=$?
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); }
64ff59ba 6067{ (ac_try="$ac_compiler -v >&5"
6068case "(($ac_try" in
6069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6070 *) ac_try_echo=$ac_try;;
6071esac
6072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6073 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 6074 ac_status=$?
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); }
64ff59ba 6077{ (ac_try="$ac_compiler -V >&5"
6078case "(($ac_try" in
6079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6080 *) ac_try_echo=$ac_try;;
6081esac
6082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6083 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 6084 ac_status=$?
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }
6087rm -f a.out
6088
6089# If we don't use `.F' as extension, the preprocessor is not run on the
6090# input file. (Note that this only needs to work for GNU compilers.)
6091ac_save_ext=$ac_ext
6092ac_ext=F
64ff59ba 6093{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6094echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
d9898ee8 6095if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
6097else
6098 cat >conftest.$ac_ext <<_ACEOF
6099 program main
6100#ifndef __GNUC__
6101 choke me
6102#endif
6103
6104 end
6105_ACEOF
6106rm -f conftest.$ac_objext
64ff59ba 6107if { (ac_try="$ac_compile"
6108case "(($ac_try" in
6109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6110 *) ac_try_echo=$ac_try;;
6111esac
6112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6113 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6114 ac_status=$?
6115 grep -v '^ *+' conftest.er1 >conftest.err
6116 rm -f conftest.er1
6117 cat conftest.err >&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6119 (exit $ac_status); } && {
6120 test -z "$ac_f77_werror_flag" ||
6121 test ! -s conftest.err
6122 } && test -s conftest.$ac_objext; then
d9898ee8 6123 ac_compiler_gnu=yes
6124else
6125 echo "$as_me: failed program was:" >&5
6126sed 's/^/| /' conftest.$ac_ext >&5
6127
64ff59ba 6128 ac_compiler_gnu=no
d9898ee8 6129fi
64ff59ba 6130
6131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6132ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6133
6134fi
64ff59ba 6135{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6136echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
d9898ee8 6137ac_ext=$ac_save_ext
6138ac_test_FFLAGS=${FFLAGS+set}
6139ac_save_FFLAGS=$FFLAGS
6140FFLAGS=
64ff59ba 6141{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6142echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
d9898ee8 6143if test "${ac_cv_prog_f77_g+set}" = set; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6145else
6146 FFLAGS=-g
6147cat >conftest.$ac_ext <<_ACEOF
6148 program main
6149
6150 end
6151_ACEOF
6152rm -f conftest.$ac_objext
64ff59ba 6153if { (ac_try="$ac_compile"
6154case "(($ac_try" in
6155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6156 *) ac_try_echo=$ac_try;;
6157esac
6158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6159 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6160 ac_status=$?
6161 grep -v '^ *+' conftest.er1 >conftest.err
6162 rm -f conftest.er1
6163 cat conftest.err >&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6165 (exit $ac_status); } && {
6166 test -z "$ac_f77_werror_flag" ||
6167 test ! -s conftest.err
6168 } && test -s conftest.$ac_objext; then
d9898ee8 6169 ac_cv_prog_f77_g=yes
6170else
6171 echo "$as_me: failed program was:" >&5
6172sed 's/^/| /' conftest.$ac_ext >&5
6173
64ff59ba 6174 ac_cv_prog_f77_g=no
d9898ee8 6175fi
64ff59ba 6176
6177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6178
6179fi
64ff59ba 6180{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6181echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
d9898ee8 6182if test "$ac_test_FFLAGS" = set; then
6183 FFLAGS=$ac_save_FFLAGS
6184elif test $ac_cv_prog_f77_g = yes; then
6185 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6186 FFLAGS="-g -O2"
6187 else
6188 FFLAGS="-g"
6189 fi
6190else
6191 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6192 FFLAGS="-O2"
6193 else
6194 FFLAGS=
6195 fi
6196fi
6197
6198G77=`test $ac_compiler_gnu = yes && echo yes`
6199ac_ext=c
6200ac_cpp='$CPP $CPPFLAGS'
6201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6203ac_compiler_gnu=$ac_cv_c_compiler_gnu
6204
6205
6206
6207# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6208
6209# find the maximum length of command line arguments
64ff59ba 6210{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6211echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
d9898ee8 6212if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6214else
6215 i=0
6216 teststring="ABCD"
6217
6218 case $build_os in
6219 msdosdjgpp*)
6220 # On DJGPP, this test can blow up pretty badly due to problems in libc
6221 # (any single argument exceeding 2000 bytes causes a buffer overrun
6222 # during glob expansion). Even if it were fixed, the result of this
6223 # check would be larger than it should be.
6224 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6225 ;;
6226
6227 gnu*)
6228 # Under GNU Hurd, this test is not required because there is
6229 # no limit to the length of command line arguments.
6230 # Libtool will interpret -1 as no limit whatsoever
6231 lt_cv_sys_max_cmd_len=-1;
6232 ;;
6233
6234 cygwin* | mingw*)
6235 # On Win9x/ME, this test blows up -- it succeeds, but takes
6236 # about 5 minutes as the teststring grows exponentially.
6237 # Worse, since 9x/ME are not pre-emptively multitasking,
6238 # you end up with a "frozen" computer, even though with patience
6239 # the test eventually succeeds (with a max line length of 256k).
6240 # Instead, let's just punt: use the minimum linelength reported by
6241 # all of the supported platforms: 8192 (on NT/2K/XP).
6242 lt_cv_sys_max_cmd_len=8192;
6243 ;;
6244
6245 amigaos*)
6246 # On AmigaOS with pdksh, this test takes hours, literally.
6247 # So we just punt and use a minimum line length of 8192.
6248 lt_cv_sys_max_cmd_len=8192;
6249 ;;
6250
6251 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6252 # This has been around since 386BSD, at least. Likely further.
6253 if test -x /sbin/sysctl; then
6254 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6255 elif test -x /usr/sbin/sysctl; then
6256 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6257 else
6258 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6259 fi
6260 # And add a safety zone
6261 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6262 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6263 ;;
6264
6265 interix*)
6266 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6267 lt_cv_sys_max_cmd_len=196608
6268 ;;
6269
6270 osf*)
6271 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6272 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6273 # nice to cause kernel panics so lets avoid the loop below.
6274 # First set a reasonable default.
6275 lt_cv_sys_max_cmd_len=16384
6276 #
6277 if test -x /sbin/sysconfig; then
6278 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6279 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6280 esac
6281 fi
6282 ;;
6283 sco3.2v5*)
6284 lt_cv_sys_max_cmd_len=102400
6285 ;;
6286 sysv5* | sco5v6* | sysv4.2uw2*)
6287 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6288 if test -n "$kargmax"; then
6289 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6290 else
6291 lt_cv_sys_max_cmd_len=32768
6292 fi
6293 ;;
6294 *)
0fde1ce3 6295 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6296 if test -n "$lt_cv_sys_max_cmd_len"; then
6297 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6298 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6299 else
6300 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6301 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
d9898ee8 6302 = "XX$teststring") >/dev/null 2>&1 &&
0fde1ce3 6303 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6304 lt_cv_sys_max_cmd_len=$new_result &&
6305 test $i != 17 # 1/2 MB should be enough
6306 do
6307 i=`expr $i + 1`
6308 teststring=$teststring$teststring
6309 done
6310 teststring=
6311 # Add a significant safety factor because C++ compilers can tack on massive
6312 # amounts of additional arguments before passing them to the linker.
6313 # It appears as though 1/2 is a usable value.
6314 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6315 fi
d9898ee8 6316 ;;
6317 esac
6318
6319fi
6320
6321if test -n $lt_cv_sys_max_cmd_len ; then
64ff59ba 6322 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6323echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
d9898ee8 6324else
64ff59ba 6325 { echo "$as_me:$LINENO: result: none" >&5
6326echo "${ECHO_T}none" >&6; }
d9898ee8 6327fi
6328
6329
6330
6331
0fde1ce3 6332
d9898ee8 6333# Check for command to grab the raw symbol name followed by C symbol from nm.
64ff59ba 6334{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6335echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
d9898ee8 6336if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
6338else
6339
6340# These are sane defaults that work on at least a few old systems.
6341# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6342
6343# Character class describing NM global symbol codes.
6344symcode='[BCDEGRST]'
6345
6346# Regexp to match symbols that can be accessed directly from C.
6347sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6348
6349# Transform an extracted symbol line into a proper C declaration
6350lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6351
6352# Transform an extracted symbol line into symbol name and symbol address
6353lt_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'"
6354
6355# Define system-specific variables.
6356case $host_os in
6357aix*)
6358 symcode='[BCDT]'
6359 ;;
6360cygwin* | mingw* | pw32*)
6361 symcode='[ABCDGISTW]'
6362 ;;
6363hpux*) # Its linker distinguishes data from code symbols
6364 if test "$host_cpu" = ia64; then
6365 symcode='[ABCDEGRST]'
6366 fi
6367 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6368 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'"
6369 ;;
0fde1ce3 6370linux* | k*bsd*-gnu)
d9898ee8 6371 if test "$host_cpu" = ia64; then
6372 symcode='[ABCDGIRSTW]'
6373 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6374 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'"
6375 fi
6376 ;;
6377irix* | nonstopux*)
6378 symcode='[BCDEGRST]'
6379 ;;
6380osf*)
6381 symcode='[BCDEGQRST]'
6382 ;;
6383solaris*)
6384 symcode='[BDRT]'
6385 ;;
6386sco3.2v5*)
6387 symcode='[DT]'
6388 ;;
6389sysv4.2uw2*)
6390 symcode='[DT]'
6391 ;;
6392sysv5* | sco5v6* | unixware* | OpenUNIX*)
6393 symcode='[ABDT]'
6394 ;;
6395sysv4)
6396 symcode='[DFNSTU]'
6397 ;;
6398esac
6399
6400# Handle CRLF in mingw tool chain
6401opt_cr=
6402case $build_os in
6403mingw*)
6404 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6405 ;;
6406esac
6407
6408# If we're using GNU nm, then use its standard symbol codes.
6409case `$NM -V 2>&1` in
6410*GNU* | *'with BFD'*)
6411 symcode='[ABCDGIRSTW]' ;;
6412esac
6413
6414# Try without a prefix undercore, then with it.
6415for ac_symprfx in "" "_"; do
6416
6417 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6418 symxfrm="\\1 $ac_symprfx\\2 \\2"
6419
6420 # Write the raw and C identifiers.
6421 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6422
6423 # Check to see that the pipe works correctly.
6424 pipe_works=no
6425
6426 rm -f conftest*
6427 cat > conftest.$ac_ext <<EOF
6428#ifdef __cplusplus
6429extern "C" {
6430#endif
6431char nm_test_var;
6432void nm_test_func(){}
6433#ifdef __cplusplus
6434}
6435#endif
6436int main(){nm_test_var='a';nm_test_func();return(0);}
6437EOF
6438
6439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6440 (eval $ac_compile) 2>&5
6441 ac_status=$?
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; then
6444 # Now try to grab the symbols.
6445 nlist=conftest.nm
6446 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6447 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6448 ac_status=$?
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); } && test -s "$nlist"; then
6451 # Try sorting and uniquifying the output.
6452 if sort "$nlist" | uniq > "$nlist"T; then
6453 mv -f "$nlist"T "$nlist"
6454 else
6455 rm -f "$nlist"T
6456 fi
6457
6458 # Make sure that we snagged all the symbols we need.
6459 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6460 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6461 cat <<EOF > conftest.$ac_ext
6462#ifdef __cplusplus
6463extern "C" {
6464#endif
6465
6466EOF
6467 # Now generate the symbol file.
6468 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6469
6470 cat <<EOF >> conftest.$ac_ext
6471#if defined (__STDC__) && __STDC__
6472# define lt_ptr_t void *
6473#else
6474# define lt_ptr_t char *
6475# define const
6476#endif
6477
6478/* The mapping between symbol names and symbols. */
6479const struct {
6480 const char *name;
6481 lt_ptr_t address;
6482}
6483lt_preloaded_symbols[] =
6484{
6485EOF
6486 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6487 cat <<\EOF >> conftest.$ac_ext
6488 {0, (lt_ptr_t) 0}
6489};
6490
6491#ifdef __cplusplus
6492}
6493#endif
6494EOF
6495 # Now try linking the two files.
6496 mv conftest.$ac_objext conftstm.$ac_objext
6497 lt_save_LIBS="$LIBS"
6498 lt_save_CFLAGS="$CFLAGS"
6499 LIBS="conftstm.$ac_objext"
6500 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6502 (eval $ac_link) 2>&5
6503 ac_status=$?
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6506 pipe_works=yes
6507 fi
6508 LIBS="$lt_save_LIBS"
6509 CFLAGS="$lt_save_CFLAGS"
6510 else
6511 echo "cannot find nm_test_func in $nlist" >&5
6512 fi
6513 else
6514 echo "cannot find nm_test_var in $nlist" >&5
6515 fi
6516 else
6517 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6518 fi
6519 else
6520 echo "$progname: failed program was:" >&5
6521 cat conftest.$ac_ext >&5
6522 fi
6523 rm -f conftest* conftst*
6524
6525 # Do not use the global_symbol_pipe unless it works.
6526 if test "$pipe_works" = yes; then
6527 break
6528 else
6529 lt_cv_sys_global_symbol_pipe=
6530 fi
6531done
6532
6533fi
6534
6535if test -z "$lt_cv_sys_global_symbol_pipe"; then
6536 lt_cv_sys_global_symbol_to_cdecl=
6537fi
6538if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
64ff59ba 6539 { echo "$as_me:$LINENO: result: failed" >&5
6540echo "${ECHO_T}failed" >&6; }
d9898ee8 6541else
64ff59ba 6542 { echo "$as_me:$LINENO: result: ok" >&5
6543echo "${ECHO_T}ok" >&6; }
d9898ee8 6544fi
6545
64ff59ba 6546{ echo "$as_me:$LINENO: checking for objdir" >&5
6547echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
d9898ee8 6548if test "${lt_cv_objdir+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6550else
6551 rm -f .libs 2>/dev/null
6552mkdir .libs 2>/dev/null
6553if test -d .libs; then
6554 lt_cv_objdir=.libs
6555else
6556 # MS-DOS does not allow filenames that begin with a dot.
6557 lt_cv_objdir=_libs
6558fi
6559rmdir .libs 2>/dev/null
6560fi
64ff59ba 6561{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6562echo "${ECHO_T}$lt_cv_objdir" >&6; }
d9898ee8 6563objdir=$lt_cv_objdir
6564
6565
6566
6567
6568
6569case $host_os in
6570aix3*)
6571 # AIX sometimes has problems with the GCC collect2 program. For some
6572 # reason, if we set the COLLECT_NAMES environment variable, the problems
6573 # vanish in a puff of smoke.
6574 if test "X${COLLECT_NAMES+set}" != Xset; then
6575 COLLECT_NAMES=
6576 export COLLECT_NAMES
6577 fi
6578 ;;
6579esac
6580
6581# Sed substitution that helps us do robust quoting. It backslashifies
6582# metacharacters that are still active within double-quoted strings.
6583Xsed='sed -e 1s/^X//'
6584sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6585
6586# Same as above, but do not quote variable references.
6587double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6588
6589# Sed substitution to delay expansion of an escaped shell variable in a
6590# double_quote_subst'ed string.
6591delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6592
6593# Sed substitution to avoid accidental globbing in evaled expressions
6594no_glob_subst='s/\*/\\\*/g'
6595
6596# Constants:
6597rm="rm -f"
6598
6599# Global variables:
6600default_ofile=libtool
6601can_build_shared=yes
6602
6603# All known linkers require a `.a' archive for static linking (except MSVC,
6604# which needs '.lib').
6605libext=a
6606ltmain="$ac_aux_dir/ltmain.sh"
6607ofile="$default_ofile"
6608with_gnu_ld="$lt_cv_prog_gnu_ld"
6609
6610if test -n "$ac_tool_prefix"; then
6611 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6612set dummy ${ac_tool_prefix}ar; ac_word=$2
64ff59ba 6613{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6615if test "${ac_cv_prog_AR+set}" = set; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6617else
6618 if test -n "$AR"; then
6619 ac_cv_prog_AR="$AR" # Let the user override the test.
6620else
6621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622for as_dir in $PATH
6623do
6624 IFS=$as_save_IFS
6625 test -z "$as_dir" && as_dir=.
6626 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6628 ac_cv_prog_AR="${ac_tool_prefix}ar"
6629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6630 break 2
6631 fi
6632done
6633done
64ff59ba 6634IFS=$as_save_IFS
d9898ee8 6635
6636fi
6637fi
6638AR=$ac_cv_prog_AR
6639if test -n "$AR"; then
64ff59ba 6640 { echo "$as_me:$LINENO: result: $AR" >&5
6641echo "${ECHO_T}$AR" >&6; }
d9898ee8 6642else
64ff59ba 6643 { echo "$as_me:$LINENO: result: no" >&5
6644echo "${ECHO_T}no" >&6; }
d9898ee8 6645fi
6646
64ff59ba 6647
d9898ee8 6648fi
6649if test -z "$ac_cv_prog_AR"; then
6650 ac_ct_AR=$AR
6651 # Extract the first word of "ar", so it can be a program name with args.
6652set dummy ar; ac_word=$2
64ff59ba 6653{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6655if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6656 echo $ECHO_N "(cached) $ECHO_C" >&6
6657else
6658 if test -n "$ac_ct_AR"; then
6659 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6660else
6661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662for as_dir in $PATH
6663do
6664 IFS=$as_save_IFS
6665 test -z "$as_dir" && as_dir=.
6666 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6668 ac_cv_prog_ac_ct_AR="ar"
6669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6670 break 2
6671 fi
6672done
6673done
64ff59ba 6674IFS=$as_save_IFS
d9898ee8 6675
d9898ee8 6676fi
6677fi
6678ac_ct_AR=$ac_cv_prog_ac_ct_AR
6679if test -n "$ac_ct_AR"; then
64ff59ba 6680 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6681echo "${ECHO_T}$ac_ct_AR" >&6; }
d9898ee8 6682else
64ff59ba 6683 { echo "$as_me:$LINENO: result: no" >&5
6684echo "${ECHO_T}no" >&6; }
d9898ee8 6685fi
6686
64ff59ba 6687 if test "x$ac_ct_AR" = x; then
6688 AR="false"
6689 else
6690 case $cross_compiling:$ac_tool_warned in
6691yes:)
6692{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6693whose name does not start with the host triplet. If you think this
6694configuration is useful to you, please write to autoconf@gnu.org." >&5
6695echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6696whose name does not start with the host triplet. If you think this
6697configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6698ac_tool_warned=yes ;;
6699esac
6700 AR=$ac_ct_AR
6701 fi
d9898ee8 6702else
6703 AR="$ac_cv_prog_AR"
6704fi
6705
6706if test -n "$ac_tool_prefix"; then
6707 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6708set dummy ${ac_tool_prefix}ranlib; ac_word=$2
64ff59ba 6709{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6711if test "${ac_cv_prog_RANLIB+set}" = set; then
6712 echo $ECHO_N "(cached) $ECHO_C" >&6
6713else
6714 if test -n "$RANLIB"; then
6715 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6716else
6717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718for as_dir in $PATH
6719do
6720 IFS=$as_save_IFS
6721 test -z "$as_dir" && as_dir=.
6722 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6724 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6726 break 2
6727 fi
6728done
6729done
64ff59ba 6730IFS=$as_save_IFS
d9898ee8 6731
6732fi
6733fi
6734RANLIB=$ac_cv_prog_RANLIB
6735if test -n "$RANLIB"; then
64ff59ba 6736 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6737echo "${ECHO_T}$RANLIB" >&6; }
d9898ee8 6738else
64ff59ba 6739 { echo "$as_me:$LINENO: result: no" >&5
6740echo "${ECHO_T}no" >&6; }
d9898ee8 6741fi
6742
64ff59ba 6743
d9898ee8 6744fi
6745if test -z "$ac_cv_prog_RANLIB"; then
6746 ac_ct_RANLIB=$RANLIB
6747 # Extract the first word of "ranlib", so it can be a program name with args.
6748set dummy ranlib; ac_word=$2
64ff59ba 6749{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6751if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6752 echo $ECHO_N "(cached) $ECHO_C" >&6
6753else
6754 if test -n "$ac_ct_RANLIB"; then
6755 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6756else
6757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758for as_dir in $PATH
6759do
6760 IFS=$as_save_IFS
6761 test -z "$as_dir" && as_dir=.
6762 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6764 ac_cv_prog_ac_ct_RANLIB="ranlib"
6765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6766 break 2
6767 fi
6768done
6769done
64ff59ba 6770IFS=$as_save_IFS
d9898ee8 6771
d9898ee8 6772fi
6773fi
6774ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6775if test -n "$ac_ct_RANLIB"; then
64ff59ba 6776 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6777echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
d9898ee8 6778else
64ff59ba 6779 { echo "$as_me:$LINENO: result: no" >&5
6780echo "${ECHO_T}no" >&6; }
d9898ee8 6781fi
6782
64ff59ba 6783 if test "x$ac_ct_RANLIB" = x; then
6784 RANLIB=":"
6785 else
6786 case $cross_compiling:$ac_tool_warned in
6787yes:)
6788{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6789whose name does not start with the host triplet. If you think this
6790configuration is useful to you, please write to autoconf@gnu.org." >&5
6791echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6792whose name does not start with the host triplet. If you think this
6793configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6794ac_tool_warned=yes ;;
6795esac
6796 RANLIB=$ac_ct_RANLIB
6797 fi
d9898ee8 6798else
6799 RANLIB="$ac_cv_prog_RANLIB"
6800fi
6801
6802if test -n "$ac_tool_prefix"; then
6803 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6804set dummy ${ac_tool_prefix}strip; ac_word=$2
64ff59ba 6805{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6807if test "${ac_cv_prog_STRIP+set}" = set; then
6808 echo $ECHO_N "(cached) $ECHO_C" >&6
6809else
6810 if test -n "$STRIP"; then
6811 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6812else
6813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6814for as_dir in $PATH
6815do
6816 IFS=$as_save_IFS
6817 test -z "$as_dir" && as_dir=.
6818 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6820 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6822 break 2
6823 fi
6824done
6825done
64ff59ba 6826IFS=$as_save_IFS
d9898ee8 6827
6828fi
6829fi
6830STRIP=$ac_cv_prog_STRIP
6831if test -n "$STRIP"; then
64ff59ba 6832 { echo "$as_me:$LINENO: result: $STRIP" >&5
6833echo "${ECHO_T}$STRIP" >&6; }
d9898ee8 6834else
64ff59ba 6835 { echo "$as_me:$LINENO: result: no" >&5
6836echo "${ECHO_T}no" >&6; }
d9898ee8 6837fi
6838
64ff59ba 6839
d9898ee8 6840fi
6841if test -z "$ac_cv_prog_STRIP"; then
6842 ac_ct_STRIP=$STRIP
6843 # Extract the first word of "strip", so it can be a program name with args.
6844set dummy strip; ac_word=$2
64ff59ba 6845{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6847if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6848 echo $ECHO_N "(cached) $ECHO_C" >&6
6849else
6850 if test -n "$ac_ct_STRIP"; then
6851 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6852else
6853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854for as_dir in $PATH
6855do
6856 IFS=$as_save_IFS
6857 test -z "$as_dir" && as_dir=.
6858 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6860 ac_cv_prog_ac_ct_STRIP="strip"
6861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6862 break 2
6863 fi
6864done
6865done
64ff59ba 6866IFS=$as_save_IFS
d9898ee8 6867
d9898ee8 6868fi
6869fi
6870ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6871if test -n "$ac_ct_STRIP"; then
64ff59ba 6872 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6873echo "${ECHO_T}$ac_ct_STRIP" >&6; }
d9898ee8 6874else
64ff59ba 6875 { echo "$as_me:$LINENO: result: no" >&5
6876echo "${ECHO_T}no" >&6; }
d9898ee8 6877fi
6878
64ff59ba 6879 if test "x$ac_ct_STRIP" = x; then
6880 STRIP=":"
6881 else
6882 case $cross_compiling:$ac_tool_warned in
6883yes:)
6884{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6885whose name does not start with the host triplet. If you think this
6886configuration is useful to you, please write to autoconf@gnu.org." >&5
6887echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6888whose name does not start with the host triplet. If you think this
6889configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6890ac_tool_warned=yes ;;
6891esac
6892 STRIP=$ac_ct_STRIP
6893 fi
d9898ee8 6894else
6895 STRIP="$ac_cv_prog_STRIP"
6896fi
6897
6898
6899old_CC="$CC"
6900old_CFLAGS="$CFLAGS"
6901
6902# Set sane defaults for various variables
6903test -z "$AR" && AR=ar
6904test -z "$AR_FLAGS" && AR_FLAGS=cru
6905test -z "$AS" && AS=as
6906test -z "$CC" && CC=cc
6907test -z "$LTCC" && LTCC=$CC
6908test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6909test -z "$DLLTOOL" && DLLTOOL=dlltool
6910test -z "$LD" && LD=ld
6911test -z "$LN_S" && LN_S="ln -s"
6912test -z "$MAGIC_CMD" && MAGIC_CMD=file
6913test -z "$NM" && NM=nm
6914test -z "$SED" && SED=sed
6915test -z "$OBJDUMP" && OBJDUMP=objdump
6916test -z "$RANLIB" && RANLIB=:
6917test -z "$STRIP" && STRIP=:
6918test -z "$ac_objext" && ac_objext=o
6919
6920# Determine commands to create old-style static archives.
0fde1ce3 6921old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
d9898ee8 6922old_postinstall_cmds='chmod 644 $oldlib'
6923old_postuninstall_cmds=
6924
6925if test -n "$RANLIB"; then
6926 case $host_os in
6927 openbsd*)
6928 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6929 ;;
6930 *)
6931 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6932 ;;
6933 esac
6934 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6935fi
6936
6937for cc_temp in $compiler""; do
6938 case $cc_temp in
6939 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6940 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6941 \-*) ;;
6942 *) break;;
6943 esac
6944done
6945cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6946
6947
6948# Only perform the check for file, if the check method requires it
6949case $deplibs_check_method in
6950file_magic*)
6951 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
64ff59ba 6952 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6953echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
d9898ee8 6954if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6955 echo $ECHO_N "(cached) $ECHO_C" >&6
6956else
6957 case $MAGIC_CMD in
6958[\\/*] | ?:[\\/]*)
6959 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6960 ;;
6961*)
6962 lt_save_MAGIC_CMD="$MAGIC_CMD"
6963 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6964 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6965 for ac_dir in $ac_dummy; do
6966 IFS="$lt_save_ifs"
6967 test -z "$ac_dir" && ac_dir=.
6968 if test -f $ac_dir/${ac_tool_prefix}file; then
6969 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6970 if test -n "$file_magic_test_file"; then
6971 case $deplibs_check_method in
6972 "file_magic "*)
6973 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6974 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6975 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6976 $EGREP "$file_magic_regex" > /dev/null; then
6977 :
6978 else
6979 cat <<EOF 1>&2
6980
6981*** Warning: the command libtool uses to detect shared libraries,
6982*** $file_magic_cmd, produces output that libtool cannot recognize.
6983*** The result is that libtool may fail to recognize shared libraries
6984*** as such. This will affect the creation of libtool libraries that
6985*** depend on shared libraries, but programs linked with such libtool
6986*** libraries will work regardless of this problem. Nevertheless, you
6987*** may want to report the problem to your system manager and/or to
6988*** bug-libtool@gnu.org
6989
6990EOF
6991 fi ;;
6992 esac
6993 fi
6994 break
6995 fi
6996 done
6997 IFS="$lt_save_ifs"
6998 MAGIC_CMD="$lt_save_MAGIC_CMD"
6999 ;;
7000esac
7001fi
7002
7003MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7004if test -n "$MAGIC_CMD"; then
64ff59ba 7005 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7006echo "${ECHO_T}$MAGIC_CMD" >&6; }
d9898ee8 7007else
64ff59ba 7008 { echo "$as_me:$LINENO: result: no" >&5
7009echo "${ECHO_T}no" >&6; }
d9898ee8 7010fi
7011
7012if test -z "$lt_cv_path_MAGIC_CMD"; then
7013 if test -n "$ac_tool_prefix"; then
64ff59ba 7014 { echo "$as_me:$LINENO: checking for file" >&5
7015echo $ECHO_N "checking for file... $ECHO_C" >&6; }
d9898ee8 7016if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
7018else
7019 case $MAGIC_CMD in
7020[\\/*] | ?:[\\/]*)
7021 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7022 ;;
7023*)
7024 lt_save_MAGIC_CMD="$MAGIC_CMD"
7025 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7026 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7027 for ac_dir in $ac_dummy; do
7028 IFS="$lt_save_ifs"
7029 test -z "$ac_dir" && ac_dir=.
7030 if test -f $ac_dir/file; then
7031 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7032 if test -n "$file_magic_test_file"; then
7033 case $deplibs_check_method in
7034 "file_magic "*)
7035 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7036 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7037 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7038 $EGREP "$file_magic_regex" > /dev/null; then
7039 :
7040 else
7041 cat <<EOF 1>&2
7042
7043*** Warning: the command libtool uses to detect shared libraries,
7044*** $file_magic_cmd, produces output that libtool cannot recognize.
7045*** The result is that libtool may fail to recognize shared libraries
7046*** as such. This will affect the creation of libtool libraries that
7047*** depend on shared libraries, but programs linked with such libtool
7048*** libraries will work regardless of this problem. Nevertheless, you
7049*** may want to report the problem to your system manager and/or to
7050*** bug-libtool@gnu.org
7051
7052EOF
7053 fi ;;
7054 esac
7055 fi
7056 break
7057 fi
7058 done
7059 IFS="$lt_save_ifs"
7060 MAGIC_CMD="$lt_save_MAGIC_CMD"
7061 ;;
7062esac
7063fi
7064
7065MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7066if test -n "$MAGIC_CMD"; then
64ff59ba 7067 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7068echo "${ECHO_T}$MAGIC_CMD" >&6; }
d9898ee8 7069else
64ff59ba 7070 { echo "$as_me:$LINENO: result: no" >&5
7071echo "${ECHO_T}no" >&6; }
d9898ee8 7072fi
7073
7074 else
7075 MAGIC_CMD=:
7076 fi
7077fi
7078
7079 fi
7080 ;;
7081esac
7082
7083enable_dlopen=no
7084enable_win32_dll=no
7085
64ff59ba 7086# Check whether --enable-libtool-lock was given.
d9898ee8 7087if test "${enable_libtool_lock+set}" = set; then
64ff59ba 7088 enableval=$enable_libtool_lock;
7089fi
d9898ee8 7090
d9898ee8 7091test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7092
7093
64ff59ba 7094# Check whether --with-pic was given.
d9898ee8 7095if test "${with_pic+set}" = set; then
64ff59ba 7096 withval=$with_pic; pic_mode="$withval"
d9898ee8 7097else
7098 pic_mode=default
64ff59ba 7099fi
7100
d9898ee8 7101test -z "$pic_mode" && pic_mode=default
7102
7103# Use C for the default configuration in the libtool script
7104tagname=
7105lt_save_CC="$CC"
7106ac_ext=c
7107ac_cpp='$CPP $CPPFLAGS'
7108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7110ac_compiler_gnu=$ac_cv_c_compiler_gnu
7111
7112
7113# Source file extension for C test sources.
7114ac_ext=c
7115
7116# Object file extension for compiled C test sources.
7117objext=o
7118objext=$objext
7119
7120# Code to be used in simple compile tests
0fde1ce3 7121lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 7122
7123# Code to be used in simple link tests
0fde1ce3 7124lt_simple_link_test_code='int main(){return(0);}'
d9898ee8 7125
7126
7127# If no C compiler was specified, use CC.
7128LTCC=${LTCC-"$CC"}
7129
7130# If no C compiler flags were specified, use CFLAGS.
7131LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7132
7133# Allow CC to be a program name with arguments.
7134compiler=$CC
7135
7136
7137# save warnings/boilerplate of simple test code
7138ac_outfile=conftest.$ac_objext
0fde1ce3 7139echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 7140eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7141_lt_compiler_boilerplate=`cat conftest.err`
7142$rm conftest*
7143
7144ac_outfile=conftest.$ac_objext
0fde1ce3 7145echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 7146eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7147_lt_linker_boilerplate=`cat conftest.err`
7148$rm conftest*
7149
7150
7151
7152lt_prog_compiler_no_builtin_flag=
7153
7154if test "$GCC" = yes; then
7155 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7156
7157
64ff59ba 7158{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7159echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d9898ee8 7160if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7161 echo $ECHO_N "(cached) $ECHO_C" >&6
7162else
7163 lt_cv_prog_compiler_rtti_exceptions=no
7164 ac_outfile=conftest.$ac_objext
0fde1ce3 7165 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 7166 lt_compiler_flag="-fno-rtti -fno-exceptions"
7167 # Insert the option either (1) after the last *FLAGS variable, or
7168 # (2) before a word containing "conftest.", or (3) at the end.
7169 # Note that $ac_compile itself does not contain backslashes and begins
7170 # with a dollar sign (not a hyphen), so the echo should work correctly.
7171 # The option is referenced via a variable to avoid confusing sed.
7172 lt_compile=`echo "$ac_compile" | $SED \
7173 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7174 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7175 -e 's:$: $lt_compiler_flag:'`
0fde1ce3 7176 (eval echo "\"\$as_me:7176: $lt_compile\"" >&5)
d9898ee8 7177 (eval "$lt_compile" 2>conftest.err)
7178 ac_status=$?
7179 cat conftest.err >&5
0fde1ce3 7180 echo "$as_me:7180: \$? = $ac_status" >&5
d9898ee8 7181 if (exit $ac_status) && test -s "$ac_outfile"; then
7182 # The compiler can only warn and ignore the option if not recognized
7183 # So say no if there are warnings other than the usual output.
7184 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7185 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7186 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7187 lt_cv_prog_compiler_rtti_exceptions=yes
7188 fi
7189 fi
7190 $rm conftest*
7191
7192fi
64ff59ba 7193{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7194echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 7195
7196if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7197 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7198else
7199 :
7200fi
7201
7202fi
7203
7204lt_prog_compiler_wl=
7205lt_prog_compiler_pic=
7206lt_prog_compiler_static=
7207
64ff59ba 7208{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7209echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 7210
7211 if test "$GCC" = yes; then
7212 lt_prog_compiler_wl='-Wl,'
7213 lt_prog_compiler_static='-static'
7214
7215 case $host_os in
7216 aix*)
7217 # All AIX code is PIC.
7218 if test "$host_cpu" = ia64; then
7219 # AIX 5 now supports IA64 processor
7220 lt_prog_compiler_static='-Bstatic'
7221 fi
7222 ;;
7223
7224 amigaos*)
7225 # FIXME: we need at least 68020 code to build shared libraries, but
7226 # adding the `-m68020' flag to GCC prevents building anything better,
7227 # like `-m68040'.
7228 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7229 ;;
7230
0fde1ce3 7231 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 7232 # PIC is the default for these OSes.
7233 ;;
7234
0fde1ce3 7235 mingw* | cygwin* | pw32* | os2*)
d9898ee8 7236 # This hack is so that the source file can tell whether it is being
7237 # built for inclusion in a dll (and should export symbols for example).
0fde1ce3 7238 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7239 # (--disable-auto-import) libraries
d9898ee8 7240 lt_prog_compiler_pic='-DDLL_EXPORT'
7241 ;;
7242
7243 darwin* | rhapsody*)
7244 # PIC is the default on this platform
7245 # Common symbols not allowed in MH_DYLIB files
7246 lt_prog_compiler_pic='-fno-common'
7247 ;;
7248
0fde1ce3 7249 interix[3-9]*)
d9898ee8 7250 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7251 # Instead, we relocate shared libraries at runtime.
7252 ;;
7253
7254 msdosdjgpp*)
7255 # Just because we use GCC doesn't mean we suddenly get shared libraries
7256 # on systems that don't support them.
7257 lt_prog_compiler_can_build_shared=no
7258 enable_shared=no
7259 ;;
7260
7261 sysv4*MP*)
7262 if test -d /usr/nec; then
7263 lt_prog_compiler_pic=-Kconform_pic
7264 fi
7265 ;;
7266
7267 hpux*)
7268 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7269 # not for PA HP-UX.
7270 case $host_cpu in
7271 hppa*64*|ia64*)
7272 # +Z the default
7273 ;;
7274 *)
7275 lt_prog_compiler_pic='-fPIC'
7276 ;;
7277 esac
7278 ;;
7279
7280 *)
7281 lt_prog_compiler_pic='-fPIC'
7282 ;;
7283 esac
7284 else
7285 # PORTME Check for flag to pass linker flags through the system compiler.
7286 case $host_os in
7287 aix*)
7288 lt_prog_compiler_wl='-Wl,'
7289 if test "$host_cpu" = ia64; then
7290 # AIX 5 now supports IA64 processor
7291 lt_prog_compiler_static='-Bstatic'
7292 else
7293 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7294 fi
7295 ;;
7296 darwin*)
7297 # PIC is the default on this platform
7298 # Common symbols not allowed in MH_DYLIB files
7299 case $cc_basename in
7300 xlc*)
7301 lt_prog_compiler_pic='-qnocommon'
7302 lt_prog_compiler_wl='-Wl,'
7303 ;;
7304 esac
7305 ;;
7306
0fde1ce3 7307 mingw* | cygwin* | pw32* | os2*)
d9898ee8 7308 # This hack is so that the source file can tell whether it is being
7309 # built for inclusion in a dll (and should export symbols for example).
7310 lt_prog_compiler_pic='-DDLL_EXPORT'
7311 ;;
7312
7313 hpux9* | hpux10* | hpux11*)
7314 lt_prog_compiler_wl='-Wl,'
7315 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7316 # not for PA HP-UX.
7317 case $host_cpu in
7318 hppa*64*|ia64*)
7319 # +Z the default
7320 ;;
7321 *)
7322 lt_prog_compiler_pic='+Z'
7323 ;;
7324 esac
7325 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7326 lt_prog_compiler_static='${wl}-a ${wl}archive'
7327 ;;
7328
7329 irix5* | irix6* | nonstopux*)
7330 lt_prog_compiler_wl='-Wl,'
7331 # PIC (with -KPIC) is the default.
7332 lt_prog_compiler_static='-non_shared'
7333 ;;
7334
7335 newsos6)
7336 lt_prog_compiler_pic='-KPIC'
7337 lt_prog_compiler_static='-Bstatic'
7338 ;;
7339
0fde1ce3 7340 linux* | k*bsd*-gnu)
d9898ee8 7341 case $cc_basename in
7342 icc* | ecc*)
7343 lt_prog_compiler_wl='-Wl,'
7344 lt_prog_compiler_pic='-KPIC'
7345 lt_prog_compiler_static='-static'
7346 ;;
7347 pgcc* | pgf77* | pgf90* | pgf95*)
7348 # Portland Group compilers (*not* the Pentium gcc compiler,
7349 # which looks to be a dead project)
7350 lt_prog_compiler_wl='-Wl,'
7351 lt_prog_compiler_pic='-fpic'
7352 lt_prog_compiler_static='-Bstatic'
7353 ;;
7354 ccc*)
7355 lt_prog_compiler_wl='-Wl,'
7356 # All Alpha code is PIC.
7357 lt_prog_compiler_static='-non_shared'
7358 ;;
0fde1ce3 7359 *)
7360 case `$CC -V 2>&1 | sed 5q` in
7361 *Sun\ C*)
7362 # Sun C 5.9
7363 lt_prog_compiler_pic='-KPIC'
7364 lt_prog_compiler_static='-Bstatic'
7365 lt_prog_compiler_wl='-Wl,'
7366 ;;
7367 *Sun\ F*)
7368 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7369 lt_prog_compiler_pic='-KPIC'
7370 lt_prog_compiler_static='-Bstatic'
7371 lt_prog_compiler_wl=''
7372 ;;
7373 esac
7374 ;;
d9898ee8 7375 esac
7376 ;;
7377
7378 osf3* | osf4* | osf5*)
7379 lt_prog_compiler_wl='-Wl,'
7380 # All OSF/1 code is PIC.
7381 lt_prog_compiler_static='-non_shared'
7382 ;;
7383
0fde1ce3 7384 rdos*)
7385 lt_prog_compiler_static='-non_shared'
7386 ;;
7387
d9898ee8 7388 solaris*)
7389 lt_prog_compiler_pic='-KPIC'
7390 lt_prog_compiler_static='-Bstatic'
7391 case $cc_basename in
7392 f77* | f90* | f95*)
7393 lt_prog_compiler_wl='-Qoption ld ';;
7394 *)
7395 lt_prog_compiler_wl='-Wl,';;
7396 esac
7397 ;;
7398
7399 sunos4*)
7400 lt_prog_compiler_wl='-Qoption ld '
7401 lt_prog_compiler_pic='-PIC'
7402 lt_prog_compiler_static='-Bstatic'
7403 ;;
7404
7405 sysv4 | sysv4.2uw2* | sysv4.3*)
7406 lt_prog_compiler_wl='-Wl,'
7407 lt_prog_compiler_pic='-KPIC'
7408 lt_prog_compiler_static='-Bstatic'
7409 ;;
7410
7411 sysv4*MP*)
7412 if test -d /usr/nec ;then
7413 lt_prog_compiler_pic='-Kconform_pic'
7414 lt_prog_compiler_static='-Bstatic'
7415 fi
7416 ;;
7417
7418 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7419 lt_prog_compiler_wl='-Wl,'
7420 lt_prog_compiler_pic='-KPIC'
7421 lt_prog_compiler_static='-Bstatic'
7422 ;;
7423
7424 unicos*)
7425 lt_prog_compiler_wl='-Wl,'
7426 lt_prog_compiler_can_build_shared=no
7427 ;;
7428
7429 uts4*)
7430 lt_prog_compiler_pic='-pic'
7431 lt_prog_compiler_static='-Bstatic'
7432 ;;
7433
7434 *)
7435 lt_prog_compiler_can_build_shared=no
7436 ;;
7437 esac
7438 fi
7439
64ff59ba 7440{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7441echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
d9898ee8 7442
7443#
7444# Check to make sure the PIC flag actually works.
7445#
7446if test -n "$lt_prog_compiler_pic"; then
7447
64ff59ba 7448{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7449echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
d9898ee8 7450if test "${lt_prog_compiler_pic_works+set}" = set; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7452else
7453 lt_prog_compiler_pic_works=no
7454 ac_outfile=conftest.$ac_objext
0fde1ce3 7455 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 7456 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7457 # Insert the option either (1) after the last *FLAGS variable, or
7458 # (2) before a word containing "conftest.", or (3) at the end.
7459 # Note that $ac_compile itself does not contain backslashes and begins
7460 # with a dollar sign (not a hyphen), so the echo should work correctly.
7461 # The option is referenced via a variable to avoid confusing sed.
7462 lt_compile=`echo "$ac_compile" | $SED \
7463 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7464 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7465 -e 's:$: $lt_compiler_flag:'`
0fde1ce3 7466 (eval echo "\"\$as_me:7466: $lt_compile\"" >&5)
d9898ee8 7467 (eval "$lt_compile" 2>conftest.err)
7468 ac_status=$?
7469 cat conftest.err >&5
0fde1ce3 7470 echo "$as_me:7470: \$? = $ac_status" >&5
d9898ee8 7471 if (exit $ac_status) && test -s "$ac_outfile"; then
7472 # The compiler can only warn and ignore the option if not recognized
7473 # So say no if there are warnings other than the usual output.
7474 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7475 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7476 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7477 lt_prog_compiler_pic_works=yes
7478 fi
7479 fi
7480 $rm conftest*
7481
7482fi
64ff59ba 7483{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7484echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
d9898ee8 7485
7486if test x"$lt_prog_compiler_pic_works" = xyes; then
7487 case $lt_prog_compiler_pic in
7488 "" | " "*) ;;
7489 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7490 esac
7491else
7492 lt_prog_compiler_pic=
7493 lt_prog_compiler_can_build_shared=no
7494fi
7495
7496fi
7497case $host_os in
7498 # For platforms which do not support PIC, -DPIC is meaningless:
7499 *djgpp*)
7500 lt_prog_compiler_pic=
7501 ;;
7502 *)
7503 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7504 ;;
7505esac
7506
7507#
7508# Check to make sure the static flag actually works.
7509#
7510wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
64ff59ba 7511{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7512echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 7513if test "${lt_prog_compiler_static_works+set}" = set; then
7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7515else
7516 lt_prog_compiler_static_works=no
7517 save_LDFLAGS="$LDFLAGS"
7518 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
0fde1ce3 7519 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 7520 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7521 # The linker can only warn and ignore the option if not recognized
7522 # So say no if there are warnings
7523 if test -s conftest.err; then
7524 # Append any errors to the config.log.
7525 cat conftest.err 1>&5
7526 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7527 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7528 if diff conftest.exp conftest.er2 >/dev/null; then
7529 lt_prog_compiler_static_works=yes
7530 fi
7531 else
7532 lt_prog_compiler_static_works=yes
7533 fi
7534 fi
7535 $rm conftest*
7536 LDFLAGS="$save_LDFLAGS"
7537
7538fi
64ff59ba 7539{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7540echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
d9898ee8 7541
7542if test x"$lt_prog_compiler_static_works" = xyes; then
7543 :
7544else
7545 lt_prog_compiler_static=
7546fi
7547
7548
64ff59ba 7549{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7550echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 7551if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7553else
7554 lt_cv_prog_compiler_c_o=no
7555 $rm -r conftest 2>/dev/null
7556 mkdir conftest
7557 cd conftest
7558 mkdir out
0fde1ce3 7559 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 7560
7561 lt_compiler_flag="-o out/conftest2.$ac_objext"
7562 # Insert the option either (1) after the last *FLAGS variable, or
7563 # (2) before a word containing "conftest.", or (3) at the end.
7564 # Note that $ac_compile itself does not contain backslashes and begins
7565 # with a dollar sign (not a hyphen), so the echo should work correctly.
7566 lt_compile=`echo "$ac_compile" | $SED \
7567 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7568 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7569 -e 's:$: $lt_compiler_flag:'`
0fde1ce3 7570 (eval echo "\"\$as_me:7570: $lt_compile\"" >&5)
d9898ee8 7571 (eval "$lt_compile" 2>out/conftest.err)
7572 ac_status=$?
7573 cat out/conftest.err >&5
0fde1ce3 7574 echo "$as_me:7574: \$? = $ac_status" >&5
d9898ee8 7575 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7576 then
7577 # The compiler can only warn and ignore the option if not recognized
7578 # So say no if there are warnings
7579 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7580 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7581 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7582 lt_cv_prog_compiler_c_o=yes
7583 fi
7584 fi
7585 chmod u+w . 2>&5
7586 $rm conftest*
7587 # SGI C++ compiler will create directory out/ii_files/ for
7588 # template instantiation
7589 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7590 $rm out/* && rmdir out
7591 cd ..
7592 rmdir conftest
7593 $rm conftest*
7594
7595fi
64ff59ba 7596{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7597echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 7598
7599
7600hard_links="nottested"
7601if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7602 # do not overwrite the value of need_locks provided by the user
64ff59ba 7603 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7604echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 7605 hard_links=yes
7606 $rm conftest*
7607 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7608 touch conftest.a
7609 ln conftest.a conftest.b 2>&5 || hard_links=no
7610 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 7611 { echo "$as_me:$LINENO: result: $hard_links" >&5
7612echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 7613 if test "$hard_links" = no; then
7614 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7615echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7616 need_locks=warn
7617 fi
7618else
7619 need_locks=no
7620fi
7621
64ff59ba 7622{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7623echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 7624
7625 runpath_var=
7626 allow_undefined_flag=
7627 enable_shared_with_static_runtimes=no
7628 archive_cmds=
7629 archive_expsym_cmds=
7630 old_archive_From_new_cmds=
7631 old_archive_from_expsyms_cmds=
7632 export_dynamic_flag_spec=
7633 whole_archive_flag_spec=
7634 thread_safe_flag_spec=
7635 hardcode_libdir_flag_spec=
7636 hardcode_libdir_flag_spec_ld=
7637 hardcode_libdir_separator=
7638 hardcode_direct=no
7639 hardcode_minus_L=no
7640 hardcode_shlibpath_var=unsupported
7641 link_all_deplibs=unknown
7642 hardcode_automatic=no
7643 module_cmds=
7644 module_expsym_cmds=
7645 always_export_symbols=no
7646 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7647 # include_expsyms should be a list of space-separated symbols to be *always*
7648 # included in the symbol list
7649 include_expsyms=
7650 # exclude_expsyms can be an extended regexp of symbols to exclude
7651 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7652 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7653 # as well as any symbol that contains `d'.
7654 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7655 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7656 # platforms (ab)use it in PIC code, but their linkers get confused if
7657 # the symbol is explicitly referenced. Since portable code cannot
7658 # rely on this symbol name, it's probably fine to never include it in
7659 # preloaded symbol tables.
7660 extract_expsyms_cmds=
7661 # Just being paranoid about ensuring that cc_basename is set.
7662 for cc_temp in $compiler""; do
7663 case $cc_temp in
7664 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7665 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7666 \-*) ;;
7667 *) break;;
7668 esac
7669done
7670cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7671
7672 case $host_os in
7673 cygwin* | mingw* | pw32*)
7674 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7675 # When not using gcc, we currently assume that we are using
7676 # Microsoft Visual C++.
7677 if test "$GCC" != yes; then
7678 with_gnu_ld=no
7679 fi
7680 ;;
7681 interix*)
7682 # we just hope/assume this is gcc and not c89 (= MSVC++)
7683 with_gnu_ld=yes
7684 ;;
7685 openbsd*)
7686 with_gnu_ld=no
7687 ;;
7688 esac
7689
7690 ld_shlibs=yes
7691 if test "$with_gnu_ld" = yes; then
7692 # If archive_cmds runs LD, not CC, wlarc should be empty
7693 wlarc='${wl}'
7694
7695 # Set some defaults for GNU ld with shared library support. These
7696 # are reset later if shared libraries are not supported. Putting them
7697 # here allows them to be overridden if necessary.
7698 runpath_var=LD_RUN_PATH
7699 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7700 export_dynamic_flag_spec='${wl}--export-dynamic'
7701 # ancient GNU ld didn't support --whole-archive et. al.
7702 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7703 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7704 else
7705 whole_archive_flag_spec=
7706 fi
7707 supports_anon_versioning=no
7708 case `$LD -v 2>/dev/null` in
7709 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7710 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7711 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7712 *\ 2.11.*) ;; # other 2.11 versions
7713 *) supports_anon_versioning=yes ;;
7714 esac
7715
7716 # See if GNU ld supports shared libraries.
7717 case $host_os in
7718 aix3* | aix4* | aix5*)
7719 # On AIX/PPC, the GNU linker is very broken
7720 if test "$host_cpu" != ia64; then
7721 ld_shlibs=no
7722 cat <<EOF 1>&2
7723
7724*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7725*** to be unable to reliably create shared libraries on AIX.
7726*** Therefore, libtool is disabling shared libraries support. If you
7727*** really care for shared libraries, you may want to modify your PATH
7728*** so that a non-GNU linker is found, and then restart.
7729
7730EOF
7731 fi
7732 ;;
7733
7734 amigaos*)
7735 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)'
7736 hardcode_libdir_flag_spec='-L$libdir'
7737 hardcode_minus_L=yes
7738
7739 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7740 # that the semantics of dynamic libraries on AmigaOS, at least up
7741 # to version 4, is to share data among multiple programs linked
7742 # with the same dynamic library. Since this doesn't match the
7743 # behavior of shared libraries on other platforms, we can't use
7744 # them.
7745 ld_shlibs=no
7746 ;;
7747
7748 beos*)
7749 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7750 allow_undefined_flag=unsupported
7751 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7752 # support --undefined. This deserves some investigation. FIXME
7753 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7754 else
7755 ld_shlibs=no
7756 fi
7757 ;;
7758
7759 cygwin* | mingw* | pw32*)
7760 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7761 # as there is no search path for DLLs.
7762 hardcode_libdir_flag_spec='-L$libdir'
7763 allow_undefined_flag=unsupported
7764 always_export_symbols=no
7765 enable_shared_with_static_runtimes=yes
0fde1ce3 7766 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d9898ee8 7767
7768 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7769 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7770 # If the export-symbols file already is a .def file (1st line
7771 # is EXPORTS), use it as is; otherwise, prepend...
7772 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7773 cp $export_symbols $output_objdir/$soname.def;
7774 else
7775 echo EXPORTS > $output_objdir/$soname.def;
7776 cat $export_symbols >> $output_objdir/$soname.def;
7777 fi~
7778 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7779 else
7780 ld_shlibs=no
7781 fi
7782 ;;
7783
0fde1ce3 7784 interix[3-9]*)
d9898ee8 7785 hardcode_direct=no
7786 hardcode_shlibpath_var=no
7787 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7788 export_dynamic_flag_spec='${wl}-E'
7789 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7790 # Instead, shared libraries are loaded at an image base (0x10000000 by
7791 # default) and relocated if they conflict, which is a slow very memory
7792 # consuming and fragmenting process. To avoid this, we pick a random,
7793 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7794 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7795 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7796 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'
7797 ;;
7798
0fde1ce3 7799 gnu* | linux* | k*bsd*-gnu)
d9898ee8 7800 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7801 tmp_addflag=
7802 case $cc_basename,$host_cpu in
7803 pgcc*) # Portland Group C compiler
7804 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'
7805 tmp_addflag=' $pic_flag'
7806 ;;
7807 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7808 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'
7809 tmp_addflag=' $pic_flag -Mnomain' ;;
7810 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7811 tmp_addflag=' -i_dynamic' ;;
7812 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7813 tmp_addflag=' -i_dynamic -nofor_main' ;;
7814 ifc* | ifort*) # Intel Fortran compiler
7815 tmp_addflag=' -nofor_main' ;;
7816 esac
0fde1ce3 7817 case `$CC -V 2>&1 | sed 5q` in
7818 *Sun\ C*) # Sun C 5.9
7819 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'
7820 tmp_sharedflag='-G' ;;
7821 *Sun\ F*) # Sun Fortran 8.3
7822 tmp_sharedflag='-G' ;;
7823 *)
7824 tmp_sharedflag='-shared' ;;
7825 esac
7826 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 7827
7828 if test $supports_anon_versioning = yes; then
7829 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7830 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7831 $echo "local: *; };" >> $output_objdir/$libname.ver~
0fde1ce3 7832 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
d9898ee8 7833 fi
7834 else
7835 ld_shlibs=no
7836 fi
7837 ;;
7838
7839 netbsd*)
7840 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7841 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7842 wlarc=
7843 else
7844 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7845 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7846 fi
7847 ;;
7848
7849 solaris*)
7850 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7851 ld_shlibs=no
7852 cat <<EOF 1>&2
7853
7854*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7855*** create shared libraries on Solaris systems. Therefore, libtool
7856*** is disabling shared libraries support. We urge you to upgrade GNU
7857*** binutils to release 2.9.1 or newer. Another option is to modify
7858*** your PATH or compiler configuration so that the native linker is
7859*** used, and then restart.
7860
7861EOF
7862 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7863 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7864 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7865 else
7866 ld_shlibs=no
7867 fi
7868 ;;
7869
7870 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7871 case `$LD -v 2>&1` in
7872 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7873 ld_shlibs=no
7874 cat <<_LT_EOF 1>&2
7875
7876*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7877*** reliably create shared libraries on SCO systems. Therefore, libtool
7878*** is disabling shared libraries support. We urge you to upgrade GNU
7879*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7880*** your PATH or compiler configuration so that the native linker is
7881*** used, and then restart.
7882
7883_LT_EOF
7884 ;;
7885 *)
7886 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7887 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7888 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7889 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7890 else
7891 ld_shlibs=no
7892 fi
7893 ;;
7894 esac
7895 ;;
7896
7897 sunos4*)
7898 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7899 wlarc=
7900 hardcode_direct=yes
7901 hardcode_shlibpath_var=no
7902 ;;
7903
7904 *)
7905 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7906 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7907 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7908 else
7909 ld_shlibs=no
7910 fi
7911 ;;
7912 esac
7913
7914 if test "$ld_shlibs" = no; then
7915 runpath_var=
7916 hardcode_libdir_flag_spec=
7917 export_dynamic_flag_spec=
7918 whole_archive_flag_spec=
7919 fi
7920 else
7921 # PORTME fill in a description of your system's linker (not GNU ld)
7922 case $host_os in
7923 aix3*)
7924 allow_undefined_flag=unsupported
7925 always_export_symbols=yes
7926 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'
7927 # Note: this linker hardcodes the directories in LIBPATH if there
7928 # are no directories specified by -L.
7929 hardcode_minus_L=yes
7930 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7931 # Neither direct hardcoding nor static linking is supported with a
7932 # broken collect2.
7933 hardcode_direct=unsupported
7934 fi
7935 ;;
7936
7937 aix4* | aix5*)
7938 if test "$host_cpu" = ia64; then
7939 # On IA64, the linker does run time linking by default, so we don't
7940 # have to do anything special.
7941 aix_use_runtimelinking=no
7942 exp_sym_flag='-Bexport'
7943 no_entry_flag=""
7944 else
7945 # If we're using GNU nm, then we don't want the "-C" option.
7946 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7947 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7948 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'
7949 else
7950 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'
7951 fi
7952 aix_use_runtimelinking=no
7953
7954 # Test if we are trying to use run time linking or normal
7955 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7956 # need to do runtime linking.
7957 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7958 for ld_flag in $LDFLAGS; do
7959 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7960 aix_use_runtimelinking=yes
7961 break
7962 fi
7963 done
7964 ;;
7965 esac
7966
7967 exp_sym_flag='-bexport'
7968 no_entry_flag='-bnoentry'
7969 fi
7970
7971 # When large executables or shared objects are built, AIX ld can
7972 # have problems creating the table of contents. If linking a library
7973 # or program results in "error TOC overflow" add -mminimal-toc to
7974 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7975 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7976
7977 archive_cmds=''
7978 hardcode_direct=yes
7979 hardcode_libdir_separator=':'
7980 link_all_deplibs=yes
7981
7982 if test "$GCC" = yes; then
7983 case $host_os in aix4.[012]|aix4.[012].*)
7984 # We only want to do this on AIX 4.2 and lower, the check
7985 # below for broken collect2 doesn't work under 4.3+
7986 collect2name=`${CC} -print-prog-name=collect2`
7987 if test -f "$collect2name" && \
7988 strings "$collect2name" | grep resolve_lib_name >/dev/null
7989 then
7990 # We have reworked collect2
0fde1ce3 7991 :
d9898ee8 7992 else
7993 # We have old collect2
7994 hardcode_direct=unsupported
7995 # It fails to find uninstalled libraries when the uninstalled
7996 # path is not listed in the libpath. Setting hardcode_minus_L
7997 # to unsupported forces relinking
7998 hardcode_minus_L=yes
7999 hardcode_libdir_flag_spec='-L$libdir'
8000 hardcode_libdir_separator=
8001 fi
8002 ;;
8003 esac
8004 shared_flag='-shared'
8005 if test "$aix_use_runtimelinking" = yes; then
8006 shared_flag="$shared_flag "'${wl}-G'
8007 fi
8008 else
8009 # not using gcc
8010 if test "$host_cpu" = ia64; then
8011 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8012 # chokes on -Wl,-G. The following line is correct:
8013 shared_flag='-G'
8014 else
8015 if test "$aix_use_runtimelinking" = yes; then
8016 shared_flag='${wl}-G'
8017 else
8018 shared_flag='${wl}-bM:SRE'
8019 fi
8020 fi
8021 fi
8022
8023 # It seems that -bexpall does not export symbols beginning with
8024 # underscore (_), so it is better to generate a list of symbols to export.
8025 always_export_symbols=yes
8026 if test "$aix_use_runtimelinking" = yes; then
8027 # Warning - without using the other runtime loading flags (-brtl),
8028 # -berok will link without error, but may produce a broken library.
8029 allow_undefined_flag='-berok'
8030 # Determine the default libpath from the value encoded in an empty executable.
8031 cat >conftest.$ac_ext <<_ACEOF
8032/* confdefs.h. */
8033_ACEOF
8034cat confdefs.h >>conftest.$ac_ext
8035cat >>conftest.$ac_ext <<_ACEOF
8036/* end confdefs.h. */
8037
8038int
8039main ()
8040{
8041
8042 ;
8043 return 0;
8044}
8045_ACEOF
8046rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 8047if { (ac_try="$ac_link"
8048case "(($ac_try" in
8049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8050 *) ac_try_echo=$ac_try;;
8051esac
8052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8053 (eval "$ac_link") 2>conftest.er1
d9898ee8 8054 ac_status=$?
8055 grep -v '^ *+' conftest.er1 >conftest.err
8056 rm -f conftest.er1
8057 cat conftest.err >&5
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 8059 (exit $ac_status); } && {
8060 test -z "$ac_c_werror_flag" ||
8061 test ! -s conftest.err
8062 } && test -s conftest$ac_exeext &&
8063 $as_test_x conftest$ac_exeext; then
d9898ee8 8064
0fde1ce3 8065lt_aix_libpath_sed='
8066 /Import File Strings/,/^$/ {
8067 /^0/ {
8068 s/^0 *\(.*\)$/\1/
8069 p
8070 }
8071 }'
8072aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 8073# Check for a 64-bit object if we didn't find anything.
0fde1ce3 8074if test -z "$aix_libpath"; then
8075 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8076fi
d9898ee8 8077else
8078 echo "$as_me: failed program was:" >&5
8079sed 's/^/| /' conftest.$ac_ext >&5
8080
64ff59ba 8081
d9898ee8 8082fi
64ff59ba 8083
8084rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8085 conftest$ac_exeext conftest.$ac_ext
8086if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8087
8088 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8089 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"
8090 else
8091 if test "$host_cpu" = ia64; then
8092 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8093 allow_undefined_flag="-z nodefs"
8094 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"
8095 else
8096 # Determine the default libpath from the value encoded in an empty executable.
8097 cat >conftest.$ac_ext <<_ACEOF
8098/* confdefs.h. */
8099_ACEOF
8100cat confdefs.h >>conftest.$ac_ext
8101cat >>conftest.$ac_ext <<_ACEOF
8102/* end confdefs.h. */
8103
8104int
8105main ()
8106{
8107
8108 ;
8109 return 0;
8110}
8111_ACEOF
8112rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 8113if { (ac_try="$ac_link"
8114case "(($ac_try" in
8115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8116 *) ac_try_echo=$ac_try;;
8117esac
8118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8119 (eval "$ac_link") 2>conftest.er1
d9898ee8 8120 ac_status=$?
8121 grep -v '^ *+' conftest.er1 >conftest.err
8122 rm -f conftest.er1
8123 cat conftest.err >&5
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 8125 (exit $ac_status); } && {
8126 test -z "$ac_c_werror_flag" ||
8127 test ! -s conftest.err
8128 } && test -s conftest$ac_exeext &&
8129 $as_test_x conftest$ac_exeext; then
d9898ee8 8130
0fde1ce3 8131lt_aix_libpath_sed='
8132 /Import File Strings/,/^$/ {
8133 /^0/ {
8134 s/^0 *\(.*\)$/\1/
8135 p
8136 }
8137 }'
8138aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 8139# Check for a 64-bit object if we didn't find anything.
0fde1ce3 8140if test -z "$aix_libpath"; then
8141 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8142fi
d9898ee8 8143else
8144 echo "$as_me: failed program was:" >&5
8145sed 's/^/| /' conftest.$ac_ext >&5
8146
64ff59ba 8147
d9898ee8 8148fi
64ff59ba 8149
8150rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8151 conftest$ac_exeext conftest.$ac_ext
8152if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8153
8154 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8155 # Warning - without using the other run time loading flags,
8156 # -berok will link without error, but may produce a broken library.
8157 no_undefined_flag=' ${wl}-bernotok'
8158 allow_undefined_flag=' ${wl}-berok'
8159 # Exported symbols can be pulled into shared objects from archives
8160 whole_archive_flag_spec='$convenience'
8161 archive_cmds_need_lc=yes
8162 # This is similar to how AIX traditionally builds its shared libraries.
8163 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'
8164 fi
8165 fi
8166 ;;
8167
8168 amigaos*)
8169 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)'
8170 hardcode_libdir_flag_spec='-L$libdir'
8171 hardcode_minus_L=yes
8172 # see comment about different semantics on the GNU ld section
8173 ld_shlibs=no
8174 ;;
8175
8176 bsdi[45]*)
8177 export_dynamic_flag_spec=-rdynamic
8178 ;;
8179
8180 cygwin* | mingw* | pw32*)
8181 # When not using gcc, we currently assume that we are using
8182 # Microsoft Visual C++.
8183 # hardcode_libdir_flag_spec is actually meaningless, as there is
8184 # no search path for DLLs.
8185 hardcode_libdir_flag_spec=' '
8186 allow_undefined_flag=unsupported
8187 # Tell ltmain to make .lib files, not .a files.
8188 libext=lib
8189 # Tell ltmain to make .dll files, not .so files.
8190 shrext_cmds=".dll"
8191 # FIXME: Setting linknames here is a bad hack.
8192 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8193 # The linker will automatically build a .lib file if we build a DLL.
8194 old_archive_From_new_cmds='true'
8195 # FIXME: Should let the user specify the lib program.
0fde1ce3 8196 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
d9898ee8 8197 fix_srcfile_path='`cygpath -w "$srcfile"`'
8198 enable_shared_with_static_runtimes=yes
8199 ;;
8200
8201 darwin* | rhapsody*)
8202 case $host_os in
8203 rhapsody* | darwin1.[012])
8204 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8205 ;;
8206 *) # Darwin 1.3 on
8207 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8208 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8209 else
8210 case ${MACOSX_DEPLOYMENT_TARGET} in
8211 10.[012])
8212 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8213 ;;
8214 10.*)
8215 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8216 ;;
8217 esac
8218 fi
8219 ;;
8220 esac
8221 archive_cmds_need_lc=no
8222 hardcode_direct=no
8223 hardcode_automatic=yes
8224 hardcode_shlibpath_var=unsupported
8225 whole_archive_flag_spec=''
8226 link_all_deplibs=yes
8227 if test "$GCC" = yes ; then
8228 output_verbose_link_cmd='echo'
8229 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8230 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8231 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8232 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}'
8233 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}'
8234 else
8235 case $cc_basename in
8236 xlc*)
8237 output_verbose_link_cmd='echo'
0fde1ce3 8238 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
d9898ee8 8239 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8240 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
0fde1ce3 8241 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 8242 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}'
8243 ;;
8244 *)
8245 ld_shlibs=no
8246 ;;
8247 esac
8248 fi
8249 ;;
8250
8251 dgux*)
8252 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8253 hardcode_libdir_flag_spec='-L$libdir'
8254 hardcode_shlibpath_var=no
8255 ;;
8256
8257 freebsd1*)
8258 ld_shlibs=no
8259 ;;
8260
8261 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8262 # support. Future versions do this automatically, but an explicit c++rt0.o
8263 # does not break anything, and helps significantly (at the cost of a little
8264 # extra space).
8265 freebsd2.2*)
8266 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8267 hardcode_libdir_flag_spec='-R$libdir'
8268 hardcode_direct=yes
8269 hardcode_shlibpath_var=no
8270 ;;
8271
8272 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8273 freebsd2*)
8274 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8275 hardcode_direct=yes
8276 hardcode_minus_L=yes
8277 hardcode_shlibpath_var=no
8278 ;;
8279
8280 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
0fde1ce3 8281 freebsd* | dragonfly*)
d9898ee8 8282 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8283 hardcode_libdir_flag_spec='-R$libdir'
8284 hardcode_direct=yes
8285 hardcode_shlibpath_var=no
8286 ;;
8287
8288 hpux9*)
8289 if test "$GCC" = yes; then
8290 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'
8291 else
8292 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'
8293 fi
8294 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8295 hardcode_libdir_separator=:
8296 hardcode_direct=yes
8297
8298 # hardcode_minus_L: Not really in the search PATH,
8299 # but as the default location of the library.
8300 hardcode_minus_L=yes
8301 export_dynamic_flag_spec='${wl}-E'
8302 ;;
8303
8304 hpux10*)
8305 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8306 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8307 else
8308 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8309 fi
8310 if test "$with_gnu_ld" = no; then
8311 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8312 hardcode_libdir_separator=:
8313
8314 hardcode_direct=yes
8315 export_dynamic_flag_spec='${wl}-E'
8316
8317 # hardcode_minus_L: Not really in the search PATH,
8318 # but as the default location of the library.
8319 hardcode_minus_L=yes
8320 fi
8321 ;;
8322
8323 hpux11*)
8324 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8325 case $host_cpu in
8326 hppa*64*)
8327 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8328 ;;
8329 ia64*)
8330 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8331 ;;
8332 *)
8333 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8334 ;;
8335 esac
8336 else
8337 case $host_cpu in
8338 hppa*64*)
8339 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8340 ;;
8341 ia64*)
8342 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8343 ;;
8344 *)
8345 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8346 ;;
8347 esac
8348 fi
8349 if test "$with_gnu_ld" = no; then
8350 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8351 hardcode_libdir_separator=:
8352
8353 case $host_cpu in
8354 hppa*64*|ia64*)
8355 hardcode_libdir_flag_spec_ld='+b $libdir'
8356 hardcode_direct=no
8357 hardcode_shlibpath_var=no
8358 ;;
8359 *)
8360 hardcode_direct=yes
8361 export_dynamic_flag_spec='${wl}-E'
8362
8363 # hardcode_minus_L: Not really in the search PATH,
8364 # but as the default location of the library.
8365 hardcode_minus_L=yes
8366 ;;
8367 esac
8368 fi
8369 ;;
8370
8371 irix5* | irix6* | nonstopux*)
8372 if test "$GCC" = yes; then
8373 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'
8374 else
8375 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'
8376 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8377 fi
8378 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8379 hardcode_libdir_separator=:
8380 link_all_deplibs=yes
8381 ;;
8382
8383 netbsd*)
8384 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8385 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8386 else
8387 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8388 fi
8389 hardcode_libdir_flag_spec='-R$libdir'
8390 hardcode_direct=yes
8391 hardcode_shlibpath_var=no
8392 ;;
8393
8394 newsos6)
8395 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8396 hardcode_direct=yes
8397 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8398 hardcode_libdir_separator=:
8399 hardcode_shlibpath_var=no
8400 ;;
8401
8402 openbsd*)
0fde1ce3 8403 if test -f /usr/libexec/ld.so; then
8404 hardcode_direct=yes
8405 hardcode_shlibpath_var=no
8406 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8407 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8408 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8409 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8410 export_dynamic_flag_spec='${wl}-E'
8411 else
8412 case $host_os in
8413 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8414 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8415 hardcode_libdir_flag_spec='-R$libdir'
8416 ;;
8417 *)
8418 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8419 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8420 ;;
8421 esac
8422 fi
d9898ee8 8423 else
0fde1ce3 8424 ld_shlibs=no
d9898ee8 8425 fi
8426 ;;
8427
8428 os2*)
8429 hardcode_libdir_flag_spec='-L$libdir'
8430 hardcode_minus_L=yes
8431 allow_undefined_flag=unsupported
8432 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'
8433 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8434 ;;
8435
8436 osf3*)
8437 if test "$GCC" = yes; then
8438 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8439 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'
8440 else
8441 allow_undefined_flag=' -expect_unresolved \*'
8442 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'
8443 fi
8444 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8445 hardcode_libdir_separator=:
8446 ;;
8447
8448 osf4* | osf5*) # as osf3* with the addition of -msym flag
8449 if test "$GCC" = yes; then
8450 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8451 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'
8452 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8453 else
8454 allow_undefined_flag=' -expect_unresolved \*'
8455 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'
8456 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8457 $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'
8458
8459 # Both c and cxx compiler support -rpath directly
8460 hardcode_libdir_flag_spec='-rpath $libdir'
8461 fi
8462 hardcode_libdir_separator=:
8463 ;;
8464
8465 solaris*)
8466 no_undefined_flag=' -z text'
8467 if test "$GCC" = yes; then
8468 wlarc='${wl}'
8469 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8470 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8471 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8472 else
8473 wlarc=''
8474 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8475 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8476 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8477 fi
8478 hardcode_libdir_flag_spec='-R$libdir'
8479 hardcode_shlibpath_var=no
8480 case $host_os in
8481 solaris2.[0-5] | solaris2.[0-5].*) ;;
8482 *)
0fde1ce3 8483 # The compiler driver will combine and reorder linker options,
8484 # but understands `-z linker_flag'. GCC discards it without `$wl',
8485 # but is careful enough not to reorder.
d9898ee8 8486 # Supported since Solaris 2.6 (maybe 2.5.1?)
0fde1ce3 8487 if test "$GCC" = yes; then
8488 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8489 else
8490 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8491 fi
8492 ;;
d9898ee8 8493 esac
8494 link_all_deplibs=yes
8495 ;;
8496
8497 sunos4*)
8498 if test "x$host_vendor" = xsequent; then
8499 # Use $CC to link under sequent, because it throws in some extra .o
8500 # files that make .init and .fini sections work.
8501 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8502 else
8503 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8504 fi
8505 hardcode_libdir_flag_spec='-L$libdir'
8506 hardcode_direct=yes
8507 hardcode_minus_L=yes
8508 hardcode_shlibpath_var=no
8509 ;;
8510
8511 sysv4)
8512 case $host_vendor in
8513 sni)
8514 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8515 hardcode_direct=yes # is this really true???
8516 ;;
8517 siemens)
8518 ## LD is ld it makes a PLAMLIB
8519 ## CC just makes a GrossModule.
8520 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8521 reload_cmds='$CC -r -o $output$reload_objs'
8522 hardcode_direct=no
8523 ;;
8524 motorola)
8525 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8526 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8527 ;;
8528 esac
8529 runpath_var='LD_RUN_PATH'
8530 hardcode_shlibpath_var=no
8531 ;;
8532
8533 sysv4.3*)
8534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8535 hardcode_shlibpath_var=no
8536 export_dynamic_flag_spec='-Bexport'
8537 ;;
8538
8539 sysv4*MP*)
8540 if test -d /usr/nec; then
8541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8542 hardcode_shlibpath_var=no
8543 runpath_var=LD_RUN_PATH
8544 hardcode_runpath_var=yes
8545 ld_shlibs=yes
8546 fi
8547 ;;
8548
0fde1ce3 8549 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
d9898ee8 8550 no_undefined_flag='${wl}-z,text'
8551 archive_cmds_need_lc=no
8552 hardcode_shlibpath_var=no
8553 runpath_var='LD_RUN_PATH'
8554
8555 if test "$GCC" = yes; then
8556 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8557 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8558 else
8559 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8560 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8561 fi
8562 ;;
8563
8564 sysv5* | sco3.2v5* | sco5v6*)
8565 # Note: We can NOT use -z defs as we might desire, because we do not
8566 # link with -lc, and that would cause any symbols used from libc to
8567 # always be unresolved, which means just about no library would
8568 # ever link correctly. If we're not using GNU ld we use -z text
8569 # though, which does catch some bad symbols but isn't as heavy-handed
8570 # as -z defs.
8571 no_undefined_flag='${wl}-z,text'
8572 allow_undefined_flag='${wl}-z,nodefs'
8573 archive_cmds_need_lc=no
8574 hardcode_shlibpath_var=no
8575 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8576 hardcode_libdir_separator=':'
8577 link_all_deplibs=yes
8578 export_dynamic_flag_spec='${wl}-Bexport'
8579 runpath_var='LD_RUN_PATH'
8580
8581 if test "$GCC" = yes; then
8582 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8583 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8584 else
8585 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8586 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8587 fi
8588 ;;
8589
8590 uts4*)
8591 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8592 hardcode_libdir_flag_spec='-L$libdir'
8593 hardcode_shlibpath_var=no
8594 ;;
8595
8596 *)
8597 ld_shlibs=no
8598 ;;
8599 esac
8600 fi
8601
64ff59ba 8602{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8603echo "${ECHO_T}$ld_shlibs" >&6; }
d9898ee8 8604test "$ld_shlibs" = no && can_build_shared=no
8605
8606#
8607# Do we need to explicitly link libc?
8608#
8609case "x$archive_cmds_need_lc" in
8610x|xyes)
8611 # Assume -lc should be added
8612 archive_cmds_need_lc=yes
8613
8614 if test "$enable_shared" = yes && test "$GCC" = yes; then
8615 case $archive_cmds in
8616 *'~'*)
8617 # FIXME: we may have to deal with multi-command sequences.
8618 ;;
8619 '$CC '*)
8620 # Test whether the compiler implicitly links with -lc since on some
8621 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8622 # to ld, don't add -lc before -lgcc.
64ff59ba 8623 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8624echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 8625 $rm conftest*
0fde1ce3 8626 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 8627
8628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8629 (eval $ac_compile) 2>&5
8630 ac_status=$?
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); } 2>conftest.err; then
8633 soname=conftest
8634 lib=conftest
8635 libobjs=conftest.$ac_objext
8636 deplibs=
8637 wl=$lt_prog_compiler_wl
8638 pic_flag=$lt_prog_compiler_pic
8639 compiler_flags=-v
8640 linker_flags=-v
8641 verstring=
8642 output_objdir=.
8643 libname=conftest
8644 lt_save_allow_undefined_flag=$allow_undefined_flag
8645 allow_undefined_flag=
8646 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8647 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8648 ac_status=$?
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); }
8651 then
8652 archive_cmds_need_lc=no
8653 else
8654 archive_cmds_need_lc=yes
8655 fi
8656 allow_undefined_flag=$lt_save_allow_undefined_flag
8657 else
8658 cat conftest.err 1>&5
8659 fi
8660 $rm conftest*
64ff59ba 8661 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8662echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
d9898ee8 8663 ;;
8664 esac
8665 fi
8666 ;;
8667esac
8668
64ff59ba 8669{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8670echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 8671library_names_spec=
8672libname_spec='lib$name'
8673soname_spec=
8674shrext_cmds=".so"
8675postinstall_cmds=
8676postuninstall_cmds=
8677finish_cmds=
8678finish_eval=
8679shlibpath_var=
8680shlibpath_overrides_runpath=unknown
8681version_type=none
8682dynamic_linker="$host_os ld.so"
8683sys_lib_dlsearch_path_spec="/lib /usr/lib"
0fde1ce3 8684
d9898ee8 8685if test "$GCC" = yes; then
0fde1ce3 8686 case $host_os in
8687 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8688 *) lt_awk_arg="/^libraries:/" ;;
8689 esac
8690 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8691 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
d9898ee8 8692 # if the path contains ";" then we assume it to be the separator
8693 # otherwise default to the standard path separator (i.e. ":") - it is
8694 # assumed that no part of a normal pathname contains ";" but that should
8695 # okay in the real world where ";" in dirpaths is itself problematic.
0fde1ce3 8696 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
d9898ee8 8697 else
0fde1ce3 8698 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
d9898ee8 8699 fi
0fde1ce3 8700 # Ok, now we have the path, separated by spaces, we can step through it
8701 # and add multilib dir if necessary.
8702 lt_tmp_lt_search_path_spec=
8703 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8704 for lt_sys_path in $lt_search_path_spec; do
8705 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8706 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8707 else
8708 test -d "$lt_sys_path" && \
8709 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8710 fi
8711 done
8712 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8713BEGIN {RS=" "; FS="/|\n";} {
8714 lt_foo="";
8715 lt_count=0;
8716 for (lt_i = NF; lt_i > 0; lt_i--) {
8717 if ($lt_i != "" && $lt_i != ".") {
8718 if ($lt_i == "..") {
8719 lt_count++;
8720 } else {
8721 if (lt_count == 0) {
8722 lt_foo="/" $lt_i lt_foo;
8723 } else {
8724 lt_count--;
8725 }
8726 }
8727 }
8728 }
8729 if (lt_foo != "") { lt_freq[lt_foo]++; }
8730 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8731}'`
8732 sys_lib_search_path_spec=`echo $lt_search_path_spec`
d9898ee8 8733else
8734 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8735fi
8736need_lib_prefix=unknown
8737hardcode_into_libs=no
8738
8739# when you set need_version to no, make sure it does not cause -set_version
8740# flags to be left without arguments
8741need_version=unknown
8742
8743case $host_os in
8744aix3*)
8745 version_type=linux
8746 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8747 shlibpath_var=LIBPATH
8748
8749 # AIX 3 has no versioning support, so we append a major version to the name.
8750 soname_spec='${libname}${release}${shared_ext}$major'
8751 ;;
8752
8753aix4* | aix5*)
8754 version_type=linux
8755 need_lib_prefix=no
8756 need_version=no
8757 hardcode_into_libs=yes
8758 if test "$host_cpu" = ia64; then
8759 # AIX 5 supports IA64
8760 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8761 shlibpath_var=LD_LIBRARY_PATH
8762 else
8763 # With GCC up to 2.95.x, collect2 would create an import file
8764 # for dependence libraries. The import file would start with
8765 # the line `#! .'. This would cause the generated library to
8766 # depend on `.', always an invalid library. This was fixed in
8767 # development snapshots of GCC prior to 3.0.
8768 case $host_os in
8769 aix4 | aix4.[01] | aix4.[01].*)
8770 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8771 echo ' yes '
8772 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8773 :
8774 else
8775 can_build_shared=no
8776 fi
8777 ;;
8778 esac
8779 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8780 # soname into executable. Probably we can add versioning support to
8781 # collect2, so additional links can be useful in future.
8782 if test "$aix_use_runtimelinking" = yes; then
8783 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8784 # instead of lib<name>.a to let people know that these are not
8785 # typical AIX shared libraries.
8786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8787 else
8788 # We preserve .a as extension for shared libraries through AIX4.2
8789 # and later when we are not doing run time linking.
8790 library_names_spec='${libname}${release}.a $libname.a'
8791 soname_spec='${libname}${release}${shared_ext}$major'
8792 fi
8793 shlibpath_var=LIBPATH
8794 fi
8795 ;;
8796
8797amigaos*)
8798 library_names_spec='$libname.ixlibrary $libname.a'
8799 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8800 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'
8801 ;;
8802
8803beos*)
8804 library_names_spec='${libname}${shared_ext}'
8805 dynamic_linker="$host_os ld.so"
8806 shlibpath_var=LIBRARY_PATH
8807 ;;
8808
8809bsdi[45]*)
8810 version_type=linux
8811 need_version=no
8812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8813 soname_spec='${libname}${release}${shared_ext}$major'
8814 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8815 shlibpath_var=LD_LIBRARY_PATH
8816 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8817 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8818 # the default ld.so.conf also contains /usr/contrib/lib and
8819 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8820 # libtool to hard-code these into programs
8821 ;;
8822
8823cygwin* | mingw* | pw32*)
8824 version_type=windows
8825 shrext_cmds=".dll"
8826 need_version=no
8827 need_lib_prefix=no
8828
8829 case $GCC,$host_os in
8830 yes,cygwin* | yes,mingw* | yes,pw32*)
8831 library_names_spec='$libname.dll.a'
8832 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8833 postinstall_cmds='base_file=`basename \${file}`~
8834 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8835 dldir=$destdir/`dirname \$dlpath`~
8836 test -d \$dldir || mkdir -p \$dldir~
8837 $install_prog $dir/$dlname \$dldir/$dlname~
8838 chmod a+x \$dldir/$dlname'
8839 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8840 dlpath=$dir/\$dldll~
8841 $rm \$dlpath'
8842 shlibpath_overrides_runpath=yes
8843
8844 case $host_os in
8845 cygwin*)
8846 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8847 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8848 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8849 ;;
8850 mingw*)
8851 # MinGW DLLs use traditional 'lib' prefix
8852 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8853 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8854 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8855 # It is most probably a Windows format PATH printed by
8856 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8857 # path with ; separators, and with drive letters. We can handle the
8858 # drive letters (cygwin fileutils understands them), so leave them,
8859 # especially as we might pass files found there to a mingw objdump,
8860 # which wouldn't understand a cygwinified path. Ahh.
8861 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8862 else
8863 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8864 fi
8865 ;;
8866 pw32*)
8867 # pw32 DLLs use 'pw' prefix rather than 'lib'
8868 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8869 ;;
8870 esac
8871 ;;
8872
8873 *)
8874 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8875 ;;
8876 esac
8877 dynamic_linker='Win32 ld.exe'
8878 # FIXME: first we should search . and the directory the executable is in
8879 shlibpath_var=PATH
8880 ;;
8881
8882darwin* | rhapsody*)
8883 dynamic_linker="$host_os dyld"
8884 version_type=darwin
8885 need_lib_prefix=no
8886 need_version=no
8887 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8888 soname_spec='${libname}${release}${major}$shared_ext'
8889 shlibpath_overrides_runpath=yes
8890 shlibpath_var=DYLD_LIBRARY_PATH
8891 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
0fde1ce3 8892
8893 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
d9898ee8 8894 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8895 ;;
8896
8897dgux*)
8898 version_type=linux
8899 need_lib_prefix=no
8900 need_version=no
8901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8902 soname_spec='${libname}${release}${shared_ext}$major'
8903 shlibpath_var=LD_LIBRARY_PATH
8904 ;;
8905
8906freebsd1*)
8907 dynamic_linker=no
8908 ;;
8909
d9898ee8 8910freebsd* | dragonfly*)
8911 # DragonFly does not have aout. When/if they implement a new
8912 # versioning mechanism, adjust this.
8913 if test -x /usr/bin/objformat; then
8914 objformat=`/usr/bin/objformat`
8915 else
8916 case $host_os in
8917 freebsd[123]*) objformat=aout ;;
8918 *) objformat=elf ;;
8919 esac
8920 fi
8921 version_type=freebsd-$objformat
8922 case $version_type in
8923 freebsd-elf*)
8924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8925 need_version=no
8926 need_lib_prefix=no
8927 ;;
8928 freebsd-*)
8929 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8930 need_version=yes
8931 ;;
8932 esac
8933 shlibpath_var=LD_LIBRARY_PATH
8934 case $host_os in
8935 freebsd2*)
8936 shlibpath_overrides_runpath=yes
8937 ;;
8938 freebsd3.[01]* | freebsdelf3.[01]*)
8939 shlibpath_overrides_runpath=yes
8940 hardcode_into_libs=yes
8941 ;;
8942 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8943 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8944 shlibpath_overrides_runpath=no
8945 hardcode_into_libs=yes
8946 ;;
0fde1ce3 8947 *) # from 4.6 on, and DragonFly
d9898ee8 8948 shlibpath_overrides_runpath=yes
8949 hardcode_into_libs=yes
8950 ;;
8951 esac
8952 ;;
8953
8954gnu*)
8955 version_type=linux
8956 need_lib_prefix=no
8957 need_version=no
8958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8959 soname_spec='${libname}${release}${shared_ext}$major'
8960 shlibpath_var=LD_LIBRARY_PATH
8961 hardcode_into_libs=yes
8962 ;;
8963
8964hpux9* | hpux10* | hpux11*)
8965 # Give a soname corresponding to the major version so that dld.sl refuses to
8966 # link against other versions.
8967 version_type=sunos
8968 need_lib_prefix=no
8969 need_version=no
8970 case $host_cpu in
8971 ia64*)
8972 shrext_cmds='.so'
8973 hardcode_into_libs=yes
8974 dynamic_linker="$host_os dld.so"
8975 shlibpath_var=LD_LIBRARY_PATH
8976 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8978 soname_spec='${libname}${release}${shared_ext}$major'
8979 if test "X$HPUX_IA64_MODE" = X32; then
8980 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8981 else
8982 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8983 fi
8984 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8985 ;;
8986 hppa*64*)
8987 shrext_cmds='.sl'
8988 hardcode_into_libs=yes
8989 dynamic_linker="$host_os dld.sl"
8990 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8991 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8993 soname_spec='${libname}${release}${shared_ext}$major'
8994 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8995 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8996 ;;
8997 *)
8998 shrext_cmds='.sl'
8999 dynamic_linker="$host_os dld.sl"
9000 shlibpath_var=SHLIB_PATH
9001 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9003 soname_spec='${libname}${release}${shared_ext}$major'
9004 ;;
9005 esac
9006 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9007 postinstall_cmds='chmod 555 $lib'
9008 ;;
9009
0fde1ce3 9010interix[3-9]*)
d9898ee8 9011 version_type=linux
9012 need_lib_prefix=no
9013 need_version=no
9014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9015 soname_spec='${libname}${release}${shared_ext}$major'
9016 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9017 shlibpath_var=LD_LIBRARY_PATH
9018 shlibpath_overrides_runpath=no
9019 hardcode_into_libs=yes
9020 ;;
9021
9022irix5* | irix6* | nonstopux*)
9023 case $host_os in
9024 nonstopux*) version_type=nonstopux ;;
9025 *)
9026 if test "$lt_cv_prog_gnu_ld" = yes; then
9027 version_type=linux
9028 else
9029 version_type=irix
9030 fi ;;
9031 esac
9032 need_lib_prefix=no
9033 need_version=no
9034 soname_spec='${libname}${release}${shared_ext}$major'
9035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9036 case $host_os in
9037 irix5* | nonstopux*)
9038 libsuff= shlibsuff=
9039 ;;
9040 *)
9041 case $LD in # libtool.m4 will add one of these switches to LD
9042 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9043 libsuff= shlibsuff= libmagic=32-bit;;
9044 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9045 libsuff=32 shlibsuff=N32 libmagic=N32;;
9046 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9047 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9048 *) libsuff= shlibsuff= libmagic=never-match;;
9049 esac
9050 ;;
9051 esac
9052 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9053 shlibpath_overrides_runpath=no
9054 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9055 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9056 hardcode_into_libs=yes
9057 ;;
9058
9059# No shared lib support for Linux oldld, aout, or coff.
9060linux*oldld* | linux*aout* | linux*coff*)
9061 dynamic_linker=no
9062 ;;
9063
9064# This must be Linux ELF.
0fde1ce3 9065linux* | k*bsd*-gnu)
d9898ee8 9066 version_type=linux
9067 need_lib_prefix=no
9068 need_version=no
9069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9070 soname_spec='${libname}${release}${shared_ext}$major'
9071 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9072 shlibpath_var=LD_LIBRARY_PATH
9073 shlibpath_overrides_runpath=no
9074 # This implies no fast_install, which is unacceptable.
9075 # Some rework will be needed to allow for fast_install
9076 # before this can be enabled.
9077 hardcode_into_libs=yes
0fde1ce3 9078 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9079 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
d9898ee8 9080
9081 # Append ld.so.conf contents to the search path
9082 if test -f /etc/ld.so.conf; then
0fde1ce3 9083 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' ' '`
9084 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 9085 fi
9086
9087 # We used to test for /lib/ld.so.1 and disable shared libraries on
9088 # powerpc, because MkLinux only supported shared libraries with the
9089 # GNU dynamic linker. Since this was broken with cross compilers,
9090 # most powerpc-linux boxes support dynamic linking these days and
9091 # people can always --disable-shared, the test was removed, and we
9092 # assume the GNU/Linux dynamic linker is in use.
9093 dynamic_linker='GNU/Linux ld.so'
9094 ;;
9095
d9898ee8 9096netbsd*)
9097 version_type=sunos
9098 need_lib_prefix=no
9099 need_version=no
9100 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9102 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9103 dynamic_linker='NetBSD (a.out) ld.so'
9104 else
9105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9106 soname_spec='${libname}${release}${shared_ext}$major'
9107 dynamic_linker='NetBSD ld.elf_so'
9108 fi
9109 shlibpath_var=LD_LIBRARY_PATH
9110 shlibpath_overrides_runpath=yes
9111 hardcode_into_libs=yes
9112 ;;
9113
9114newsos6)
9115 version_type=linux
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9117 shlibpath_var=LD_LIBRARY_PATH
9118 shlibpath_overrides_runpath=yes
9119 ;;
9120
9121nto-qnx*)
9122 version_type=linux
9123 need_lib_prefix=no
9124 need_version=no
9125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9126 soname_spec='${libname}${release}${shared_ext}$major'
9127 shlibpath_var=LD_LIBRARY_PATH
9128 shlibpath_overrides_runpath=yes
9129 ;;
9130
9131openbsd*)
9132 version_type=sunos
9133 sys_lib_dlsearch_path_spec="/usr/lib"
9134 need_lib_prefix=no
9135 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9136 case $host_os in
9137 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9138 *) need_version=no ;;
9139 esac
9140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9141 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9142 shlibpath_var=LD_LIBRARY_PATH
9143 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9144 case $host_os in
9145 openbsd2.[89] | openbsd2.[89].*)
9146 shlibpath_overrides_runpath=no
9147 ;;
9148 *)
9149 shlibpath_overrides_runpath=yes
9150 ;;
9151 esac
9152 else
9153 shlibpath_overrides_runpath=yes
9154 fi
9155 ;;
9156
9157os2*)
9158 libname_spec='$name'
9159 shrext_cmds=".dll"
9160 need_lib_prefix=no
9161 library_names_spec='$libname${shared_ext} $libname.a'
9162 dynamic_linker='OS/2 ld.exe'
9163 shlibpath_var=LIBPATH
9164 ;;
9165
9166osf3* | osf4* | osf5*)
9167 version_type=osf
9168 need_lib_prefix=no
9169 need_version=no
9170 soname_spec='${libname}${release}${shared_ext}$major'
9171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9172 shlibpath_var=LD_LIBRARY_PATH
9173 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9174 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9175 ;;
9176
0fde1ce3 9177rdos*)
9178 dynamic_linker=no
9179 ;;
9180
d9898ee8 9181solaris*)
9182 version_type=linux
9183 need_lib_prefix=no
9184 need_version=no
9185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9186 soname_spec='${libname}${release}${shared_ext}$major'
9187 shlibpath_var=LD_LIBRARY_PATH
9188 shlibpath_overrides_runpath=yes
9189 hardcode_into_libs=yes
9190 # ldd complains unless libraries are executable
9191 postinstall_cmds='chmod +x $lib'
9192 ;;
9193
9194sunos4*)
9195 version_type=sunos
9196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9197 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9198 shlibpath_var=LD_LIBRARY_PATH
9199 shlibpath_overrides_runpath=yes
9200 if test "$with_gnu_ld" = yes; then
9201 need_lib_prefix=no
9202 fi
9203 need_version=yes
9204 ;;
9205
9206sysv4 | sysv4.3*)
9207 version_type=linux
9208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9209 soname_spec='${libname}${release}${shared_ext}$major'
9210 shlibpath_var=LD_LIBRARY_PATH
9211 case $host_vendor in
9212 sni)
9213 shlibpath_overrides_runpath=no
9214 need_lib_prefix=no
9215 export_dynamic_flag_spec='${wl}-Blargedynsym'
9216 runpath_var=LD_RUN_PATH
9217 ;;
9218 siemens)
9219 need_lib_prefix=no
9220 ;;
9221 motorola)
9222 need_lib_prefix=no
9223 need_version=no
9224 shlibpath_overrides_runpath=no
9225 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9226 ;;
9227 esac
9228 ;;
9229
9230sysv4*MP*)
9231 if test -d /usr/nec ;then
9232 version_type=linux
9233 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9234 soname_spec='$libname${shared_ext}.$major'
9235 shlibpath_var=LD_LIBRARY_PATH
9236 fi
9237 ;;
9238
9239sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9240 version_type=freebsd-elf
9241 need_lib_prefix=no
9242 need_version=no
9243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9244 soname_spec='${libname}${release}${shared_ext}$major'
9245 shlibpath_var=LD_LIBRARY_PATH
9246 hardcode_into_libs=yes
9247 if test "$with_gnu_ld" = yes; then
9248 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9249 shlibpath_overrides_runpath=no
9250 else
9251 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9252 shlibpath_overrides_runpath=yes
9253 case $host_os in
9254 sco3.2v5*)
9255 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9256 ;;
9257 esac
9258 fi
9259 sys_lib_dlsearch_path_spec='/usr/lib'
9260 ;;
9261
9262uts4*)
9263 version_type=linux
9264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9265 soname_spec='${libname}${release}${shared_ext}$major'
9266 shlibpath_var=LD_LIBRARY_PATH
9267 ;;
9268
9269*)
9270 dynamic_linker=no
9271 ;;
9272esac
64ff59ba 9273{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9274echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 9275test "$dynamic_linker" = no && can_build_shared=no
9276
9277variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9278if test "$GCC" = yes; then
9279 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9280fi
9281
64ff59ba 9282{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9283echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 9284hardcode_action=
9285if test -n "$hardcode_libdir_flag_spec" || \
9286 test -n "$runpath_var" || \
9287 test "X$hardcode_automatic" = "Xyes" ; then
9288
9289 # We can hardcode non-existant directories.
9290 if test "$hardcode_direct" != no &&
9291 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9292 # have to relink, otherwise we might link with an installed library
9293 # when we should be linking with a yet-to-be-installed one
9294 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9295 test "$hardcode_minus_L" != no; then
9296 # Linking always hardcodes the temporary library directory.
9297 hardcode_action=relink
9298 else
9299 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9300 hardcode_action=immediate
9301 fi
9302else
9303 # We cannot hardcode anything, or else we can only hardcode existing
9304 # directories.
9305 hardcode_action=unsupported
9306fi
64ff59ba 9307{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9308echo "${ECHO_T}$hardcode_action" >&6; }
d9898ee8 9309
9310if test "$hardcode_action" = relink; then
9311 # Fast installation is not supported
9312 enable_fast_install=no
9313elif test "$shlibpath_overrides_runpath" = yes ||
9314 test "$enable_shared" = no; then
9315 # Fast installation is not necessary
9316 enable_fast_install=needless
9317fi
9318
9319striplib=
9320old_striplib=
64ff59ba 9321{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9322echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
d9898ee8 9323if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9324 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9325 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
64ff59ba 9326 { echo "$as_me:$LINENO: result: yes" >&5
9327echo "${ECHO_T}yes" >&6; }
d9898ee8 9328else
9329# FIXME - insert some real tests, host_os isn't really good enough
9330 case $host_os in
9331 darwin*)
9332 if test -n "$STRIP" ; then
9333 striplib="$STRIP -x"
0fde1ce3 9334 old_striplib="$STRIP -S"
64ff59ba 9335 { echo "$as_me:$LINENO: result: yes" >&5
9336echo "${ECHO_T}yes" >&6; }
d9898ee8 9337 else
64ff59ba 9338 { echo "$as_me:$LINENO: result: no" >&5
9339echo "${ECHO_T}no" >&6; }
d9898ee8 9340fi
9341 ;;
9342 *)
64ff59ba 9343 { echo "$as_me:$LINENO: result: no" >&5
9344echo "${ECHO_T}no" >&6; }
d9898ee8 9345 ;;
9346 esac
9347fi
9348
9349if test "x$enable_dlopen" != xyes; then
9350 enable_dlopen=unknown
9351 enable_dlopen_self=unknown
9352 enable_dlopen_self_static=unknown
9353else
9354 lt_cv_dlopen=no
9355 lt_cv_dlopen_libs=
9356
9357 case $host_os in
9358 beos*)
9359 lt_cv_dlopen="load_add_on"
9360 lt_cv_dlopen_libs=
9361 lt_cv_dlopen_self=yes
9362 ;;
9363
9364 mingw* | pw32*)
9365 lt_cv_dlopen="LoadLibrary"
9366 lt_cv_dlopen_libs=
9367 ;;
9368
9369 cygwin*)
9370 lt_cv_dlopen="dlopen"
9371 lt_cv_dlopen_libs=
9372 ;;
9373
9374 darwin*)
9375 # if libdl is installed we need to link against it
64ff59ba 9376 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9377echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 9378if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9379 echo $ECHO_N "(cached) $ECHO_C" >&6
9380else
9381 ac_check_lib_save_LIBS=$LIBS
9382LIBS="-ldl $LIBS"
9383cat >conftest.$ac_ext <<_ACEOF
9384/* confdefs.h. */
9385_ACEOF
9386cat confdefs.h >>conftest.$ac_ext
9387cat >>conftest.$ac_ext <<_ACEOF
9388/* end confdefs.h. */
9389
64ff59ba 9390/* Override any GCC internal prototype to avoid an error.
9391 Use char because int might match the return type of a GCC
9392 builtin and then its argument prototype would still apply. */
d9898ee8 9393#ifdef __cplusplus
9394extern "C"
9395#endif
d9898ee8 9396char dlopen ();
9397int
9398main ()
9399{
64ff59ba 9400return dlopen ();
d9898ee8 9401 ;
9402 return 0;
9403}
9404_ACEOF
9405rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9406if { (ac_try="$ac_link"
9407case "(($ac_try" in
9408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9409 *) ac_try_echo=$ac_try;;
9410esac
9411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9412 (eval "$ac_link") 2>conftest.er1
d9898ee8 9413 ac_status=$?
9414 grep -v '^ *+' conftest.er1 >conftest.err
9415 rm -f conftest.er1
9416 cat conftest.err >&5
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9418 (exit $ac_status); } && {
9419 test -z "$ac_c_werror_flag" ||
9420 test ! -s conftest.err
9421 } && test -s conftest$ac_exeext &&
9422 $as_test_x conftest$ac_exeext; then
d9898ee8 9423 ac_cv_lib_dl_dlopen=yes
9424else
9425 echo "$as_me: failed program was:" >&5
9426sed 's/^/| /' conftest.$ac_ext >&5
9427
64ff59ba 9428 ac_cv_lib_dl_dlopen=no
d9898ee8 9429fi
64ff59ba 9430
9431rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9432 conftest$ac_exeext conftest.$ac_ext
9433LIBS=$ac_check_lib_save_LIBS
9434fi
64ff59ba 9435{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9436echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 9437if test $ac_cv_lib_dl_dlopen = yes; then
9438 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9439else
9440
9441 lt_cv_dlopen="dyld"
9442 lt_cv_dlopen_libs=
9443 lt_cv_dlopen_self=yes
9444
9445fi
9446
9447 ;;
9448
9449 *)
64ff59ba 9450 { echo "$as_me:$LINENO: checking for shl_load" >&5
9451echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
d9898ee8 9452if test "${ac_cv_func_shl_load+set}" = set; then
9453 echo $ECHO_N "(cached) $ECHO_C" >&6
9454else
9455 cat >conftest.$ac_ext <<_ACEOF
9456/* confdefs.h. */
9457_ACEOF
9458cat confdefs.h >>conftest.$ac_ext
9459cat >>conftest.$ac_ext <<_ACEOF
9460/* end confdefs.h. */
9461/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9463#define shl_load innocuous_shl_load
9464
9465/* System header to define __stub macros and hopefully few prototypes,
9466 which can conflict with char shl_load (); below.
9467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9468 <limits.h> exists even on freestanding compilers. */
9469
9470#ifdef __STDC__
9471# include <limits.h>
9472#else
9473# include <assert.h>
9474#endif
9475
9476#undef shl_load
9477
64ff59ba 9478/* Override any GCC internal prototype to avoid an error.
9479 Use char because int might match the return type of a GCC
9480 builtin and then its argument prototype would still apply. */
d9898ee8 9481#ifdef __cplusplus
9482extern "C"
d9898ee8 9483#endif
d9898ee8 9484char shl_load ();
9485/* The GNU C library defines this for functions which it implements
9486 to always fail with ENOSYS. Some functions are actually named
9487 something starting with __ and the normal name is an alias. */
64ff59ba 9488#if defined __stub_shl_load || defined __stub___shl_load
d9898ee8 9489choke me
d9898ee8 9490#endif
9491
9492int
9493main ()
9494{
64ff59ba 9495return shl_load ();
d9898ee8 9496 ;
9497 return 0;
9498}
9499_ACEOF
9500rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9501if { (ac_try="$ac_link"
9502case "(($ac_try" in
9503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9504 *) ac_try_echo=$ac_try;;
9505esac
9506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9507 (eval "$ac_link") 2>conftest.er1
d9898ee8 9508 ac_status=$?
9509 grep -v '^ *+' conftest.er1 >conftest.err
9510 rm -f conftest.er1
9511 cat conftest.err >&5
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9513 (exit $ac_status); } && {
9514 test -z "$ac_c_werror_flag" ||
9515 test ! -s conftest.err
9516 } && test -s conftest$ac_exeext &&
9517 $as_test_x conftest$ac_exeext; then
d9898ee8 9518 ac_cv_func_shl_load=yes
9519else
9520 echo "$as_me: failed program was:" >&5
9521sed 's/^/| /' conftest.$ac_ext >&5
9522
64ff59ba 9523 ac_cv_func_shl_load=no
d9898ee8 9524fi
64ff59ba 9525
9526rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9527 conftest$ac_exeext conftest.$ac_ext
9528fi
64ff59ba 9529{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9530echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
d9898ee8 9531if test $ac_cv_func_shl_load = yes; then
9532 lt_cv_dlopen="shl_load"
9533else
64ff59ba 9534 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9535echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
d9898ee8 9536if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9537 echo $ECHO_N "(cached) $ECHO_C" >&6
9538else
9539 ac_check_lib_save_LIBS=$LIBS
9540LIBS="-ldld $LIBS"
9541cat >conftest.$ac_ext <<_ACEOF
9542/* confdefs.h. */
9543_ACEOF
9544cat confdefs.h >>conftest.$ac_ext
9545cat >>conftest.$ac_ext <<_ACEOF
9546/* end confdefs.h. */
9547
64ff59ba 9548/* Override any GCC internal prototype to avoid an error.
9549 Use char because int might match the return type of a GCC
9550 builtin and then its argument prototype would still apply. */
d9898ee8 9551#ifdef __cplusplus
9552extern "C"
9553#endif
d9898ee8 9554char shl_load ();
9555int
9556main ()
9557{
64ff59ba 9558return shl_load ();
d9898ee8 9559 ;
9560 return 0;
9561}
9562_ACEOF
9563rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9564if { (ac_try="$ac_link"
9565case "(($ac_try" in
9566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9567 *) ac_try_echo=$ac_try;;
9568esac
9569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9570 (eval "$ac_link") 2>conftest.er1
d9898ee8 9571 ac_status=$?
9572 grep -v '^ *+' conftest.er1 >conftest.err
9573 rm -f conftest.er1
9574 cat conftest.err >&5
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9576 (exit $ac_status); } && {
9577 test -z "$ac_c_werror_flag" ||
9578 test ! -s conftest.err
9579 } && test -s conftest$ac_exeext &&
9580 $as_test_x conftest$ac_exeext; then
d9898ee8 9581 ac_cv_lib_dld_shl_load=yes
9582else
9583 echo "$as_me: failed program was:" >&5
9584sed 's/^/| /' conftest.$ac_ext >&5
9585
64ff59ba 9586 ac_cv_lib_dld_shl_load=no
d9898ee8 9587fi
64ff59ba 9588
9589rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9590 conftest$ac_exeext conftest.$ac_ext
9591LIBS=$ac_check_lib_save_LIBS
9592fi
64ff59ba 9593{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9594echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
d9898ee8 9595if test $ac_cv_lib_dld_shl_load = yes; then
9596 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9597else
64ff59ba 9598 { echo "$as_me:$LINENO: checking for dlopen" >&5
9599echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
d9898ee8 9600if test "${ac_cv_func_dlopen+set}" = set; then
9601 echo $ECHO_N "(cached) $ECHO_C" >&6
9602else
9603 cat >conftest.$ac_ext <<_ACEOF
9604/* confdefs.h. */
9605_ACEOF
9606cat confdefs.h >>conftest.$ac_ext
9607cat >>conftest.$ac_ext <<_ACEOF
9608/* end confdefs.h. */
9609/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9611#define dlopen innocuous_dlopen
9612
9613/* System header to define __stub macros and hopefully few prototypes,
9614 which can conflict with char dlopen (); below.
9615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9616 <limits.h> exists even on freestanding compilers. */
9617
9618#ifdef __STDC__
9619# include <limits.h>
9620#else
9621# include <assert.h>
9622#endif
9623
9624#undef dlopen
9625
64ff59ba 9626/* Override any GCC internal prototype to avoid an error.
9627 Use char because int might match the return type of a GCC
9628 builtin and then its argument prototype would still apply. */
d9898ee8 9629#ifdef __cplusplus
9630extern "C"
d9898ee8 9631#endif
d9898ee8 9632char dlopen ();
9633/* The GNU C library defines this for functions which it implements
9634 to always fail with ENOSYS. Some functions are actually named
9635 something starting with __ and the normal name is an alias. */
64ff59ba 9636#if defined __stub_dlopen || defined __stub___dlopen
d9898ee8 9637choke me
d9898ee8 9638#endif
9639
9640int
9641main ()
9642{
64ff59ba 9643return dlopen ();
d9898ee8 9644 ;
9645 return 0;
9646}
9647_ACEOF
9648rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9649if { (ac_try="$ac_link"
9650case "(($ac_try" in
9651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9652 *) ac_try_echo=$ac_try;;
9653esac
9654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9655 (eval "$ac_link") 2>conftest.er1
d9898ee8 9656 ac_status=$?
9657 grep -v '^ *+' conftest.er1 >conftest.err
9658 rm -f conftest.er1
9659 cat conftest.err >&5
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9661 (exit $ac_status); } && {
9662 test -z "$ac_c_werror_flag" ||
9663 test ! -s conftest.err
9664 } && test -s conftest$ac_exeext &&
9665 $as_test_x conftest$ac_exeext; then
d9898ee8 9666 ac_cv_func_dlopen=yes
9667else
9668 echo "$as_me: failed program was:" >&5
9669sed 's/^/| /' conftest.$ac_ext >&5
9670
64ff59ba 9671 ac_cv_func_dlopen=no
d9898ee8 9672fi
64ff59ba 9673
9674rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9675 conftest$ac_exeext conftest.$ac_ext
9676fi
64ff59ba 9677{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9678echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
d9898ee8 9679if test $ac_cv_func_dlopen = yes; then
9680 lt_cv_dlopen="dlopen"
9681else
64ff59ba 9682 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9683echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 9684if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9685 echo $ECHO_N "(cached) $ECHO_C" >&6
9686else
9687 ac_check_lib_save_LIBS=$LIBS
9688LIBS="-ldl $LIBS"
9689cat >conftest.$ac_ext <<_ACEOF
9690/* confdefs.h. */
9691_ACEOF
9692cat confdefs.h >>conftest.$ac_ext
9693cat >>conftest.$ac_ext <<_ACEOF
9694/* end confdefs.h. */
9695
64ff59ba 9696/* Override any GCC internal prototype to avoid an error.
9697 Use char because int might match the return type of a GCC
9698 builtin and then its argument prototype would still apply. */
d9898ee8 9699#ifdef __cplusplus
9700extern "C"
9701#endif
d9898ee8 9702char dlopen ();
9703int
9704main ()
9705{
64ff59ba 9706return dlopen ();
d9898ee8 9707 ;
9708 return 0;
9709}
9710_ACEOF
9711rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9712if { (ac_try="$ac_link"
9713case "(($ac_try" in
9714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9715 *) ac_try_echo=$ac_try;;
9716esac
9717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9718 (eval "$ac_link") 2>conftest.er1
d9898ee8 9719 ac_status=$?
9720 grep -v '^ *+' conftest.er1 >conftest.err
9721 rm -f conftest.er1
9722 cat conftest.err >&5
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9724 (exit $ac_status); } && {
9725 test -z "$ac_c_werror_flag" ||
9726 test ! -s conftest.err
9727 } && test -s conftest$ac_exeext &&
9728 $as_test_x conftest$ac_exeext; then
d9898ee8 9729 ac_cv_lib_dl_dlopen=yes
9730else
9731 echo "$as_me: failed program was:" >&5
9732sed 's/^/| /' conftest.$ac_ext >&5
9733
64ff59ba 9734 ac_cv_lib_dl_dlopen=no
d9898ee8 9735fi
64ff59ba 9736
9737rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9738 conftest$ac_exeext conftest.$ac_ext
9739LIBS=$ac_check_lib_save_LIBS
9740fi
64ff59ba 9741{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9742echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 9743if test $ac_cv_lib_dl_dlopen = yes; then
9744 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9745else
64ff59ba 9746 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9747echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
d9898ee8 9748if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9749 echo $ECHO_N "(cached) $ECHO_C" >&6
9750else
9751 ac_check_lib_save_LIBS=$LIBS
9752LIBS="-lsvld $LIBS"
9753cat >conftest.$ac_ext <<_ACEOF
9754/* confdefs.h. */
9755_ACEOF
9756cat confdefs.h >>conftest.$ac_ext
9757cat >>conftest.$ac_ext <<_ACEOF
9758/* end confdefs.h. */
9759
64ff59ba 9760/* Override any GCC internal prototype to avoid an error.
9761 Use char because int might match the return type of a GCC
9762 builtin and then its argument prototype would still apply. */
d9898ee8 9763#ifdef __cplusplus
9764extern "C"
9765#endif
d9898ee8 9766char dlopen ();
9767int
9768main ()
9769{
64ff59ba 9770return dlopen ();
d9898ee8 9771 ;
9772 return 0;
9773}
9774_ACEOF
9775rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9776if { (ac_try="$ac_link"
9777case "(($ac_try" in
9778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9779 *) ac_try_echo=$ac_try;;
9780esac
9781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9782 (eval "$ac_link") 2>conftest.er1
d9898ee8 9783 ac_status=$?
9784 grep -v '^ *+' conftest.er1 >conftest.err
9785 rm -f conftest.er1
9786 cat conftest.err >&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9788 (exit $ac_status); } && {
9789 test -z "$ac_c_werror_flag" ||
9790 test ! -s conftest.err
9791 } && test -s conftest$ac_exeext &&
9792 $as_test_x conftest$ac_exeext; then
d9898ee8 9793 ac_cv_lib_svld_dlopen=yes
9794else
9795 echo "$as_me: failed program was:" >&5
9796sed 's/^/| /' conftest.$ac_ext >&5
9797
64ff59ba 9798 ac_cv_lib_svld_dlopen=no
d9898ee8 9799fi
64ff59ba 9800
9801rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9802 conftest$ac_exeext conftest.$ac_ext
9803LIBS=$ac_check_lib_save_LIBS
9804fi
64ff59ba 9805{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9806echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
d9898ee8 9807if test $ac_cv_lib_svld_dlopen = yes; then
9808 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9809else
64ff59ba 9810 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9811echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
d9898ee8 9812if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9813 echo $ECHO_N "(cached) $ECHO_C" >&6
9814else
9815 ac_check_lib_save_LIBS=$LIBS
9816LIBS="-ldld $LIBS"
9817cat >conftest.$ac_ext <<_ACEOF
9818/* confdefs.h. */
9819_ACEOF
9820cat confdefs.h >>conftest.$ac_ext
9821cat >>conftest.$ac_ext <<_ACEOF
9822/* end confdefs.h. */
9823
64ff59ba 9824/* Override any GCC internal prototype to avoid an error.
9825 Use char because int might match the return type of a GCC
9826 builtin and then its argument prototype would still apply. */
d9898ee8 9827#ifdef __cplusplus
9828extern "C"
9829#endif
d9898ee8 9830char dld_link ();
9831int
9832main ()
9833{
64ff59ba 9834return dld_link ();
d9898ee8 9835 ;
9836 return 0;
9837}
9838_ACEOF
9839rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9840if { (ac_try="$ac_link"
9841case "(($ac_try" in
9842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9843 *) ac_try_echo=$ac_try;;
9844esac
9845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9846 (eval "$ac_link") 2>conftest.er1
d9898ee8 9847 ac_status=$?
9848 grep -v '^ *+' conftest.er1 >conftest.err
9849 rm -f conftest.er1
9850 cat conftest.err >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9852 (exit $ac_status); } && {
9853 test -z "$ac_c_werror_flag" ||
9854 test ! -s conftest.err
9855 } && test -s conftest$ac_exeext &&
9856 $as_test_x conftest$ac_exeext; then
d9898ee8 9857 ac_cv_lib_dld_dld_link=yes
9858else
9859 echo "$as_me: failed program was:" >&5
9860sed 's/^/| /' conftest.$ac_ext >&5
9861
64ff59ba 9862 ac_cv_lib_dld_dld_link=no
d9898ee8 9863fi
64ff59ba 9864
9865rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9866 conftest$ac_exeext conftest.$ac_ext
9867LIBS=$ac_check_lib_save_LIBS
9868fi
64ff59ba 9869{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9870echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
d9898ee8 9871if test $ac_cv_lib_dld_dld_link = yes; then
9872 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9873fi
9874
9875
9876fi
9877
9878
9879fi
9880
9881
9882fi
9883
9884
9885fi
9886
9887
9888fi
9889
9890 ;;
9891 esac
9892
9893 if test "x$lt_cv_dlopen" != xno; then
9894 enable_dlopen=yes
9895 else
9896 enable_dlopen=no
9897 fi
9898
9899 case $lt_cv_dlopen in
9900 dlopen)
9901 save_CPPFLAGS="$CPPFLAGS"
9902 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9903
9904 save_LDFLAGS="$LDFLAGS"
9905 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9906
9907 save_LIBS="$LIBS"
9908 LIBS="$lt_cv_dlopen_libs $LIBS"
9909
64ff59ba 9910 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9911echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
d9898ee8 9912if test "${lt_cv_dlopen_self+set}" = set; then
9913 echo $ECHO_N "(cached) $ECHO_C" >&6
9914else
9915 if test "$cross_compiling" = yes; then :
9916 lt_cv_dlopen_self=cross
9917else
9918 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9919 lt_status=$lt_dlunknown
9920 cat > conftest.$ac_ext <<EOF
0fde1ce3 9921#line 9921 "configure"
d9898ee8 9922#include "confdefs.h"
9923
9924#if HAVE_DLFCN_H
9925#include <dlfcn.h>
9926#endif
9927
9928#include <stdio.h>
9929
9930#ifdef RTLD_GLOBAL
9931# define LT_DLGLOBAL RTLD_GLOBAL
9932#else
9933# ifdef DL_GLOBAL
9934# define LT_DLGLOBAL DL_GLOBAL
9935# else
9936# define LT_DLGLOBAL 0
9937# endif
9938#endif
9939
9940/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9941 find out it does not work in some platform. */
9942#ifndef LT_DLLAZY_OR_NOW
9943# ifdef RTLD_LAZY
9944# define LT_DLLAZY_OR_NOW RTLD_LAZY
9945# else
9946# ifdef DL_LAZY
9947# define LT_DLLAZY_OR_NOW DL_LAZY
9948# else
9949# ifdef RTLD_NOW
9950# define LT_DLLAZY_OR_NOW RTLD_NOW
9951# else
9952# ifdef DL_NOW
9953# define LT_DLLAZY_OR_NOW DL_NOW
9954# else
9955# define LT_DLLAZY_OR_NOW 0
9956# endif
9957# endif
9958# endif
9959# endif
9960#endif
9961
9962#ifdef __cplusplus
9963extern "C" void exit (int);
9964#endif
9965
9966void fnord() { int i=42;}
9967int main ()
9968{
9969 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9970 int status = $lt_dlunknown;
9971
9972 if (self)
9973 {
9974 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9975 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9976 /* dlclose (self); */
9977 }
9978 else
9979 puts (dlerror ());
9980
9981 exit (status);
9982}
9983EOF
9984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9985 (eval $ac_link) 2>&5
9986 ac_status=$?
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9989 (./conftest; exit; ) >&5 2>/dev/null
9990 lt_status=$?
9991 case x$lt_status in
9992 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9993 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9994 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9995 esac
9996 else :
9997 # compilation failed
9998 lt_cv_dlopen_self=no
9999 fi
10000fi
10001rm -fr conftest*
10002
10003
10004fi
64ff59ba 10005{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10006echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
d9898ee8 10007
10008 if test "x$lt_cv_dlopen_self" = xyes; then
10009 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
64ff59ba 10010 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10011echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
d9898ee8 10012if test "${lt_cv_dlopen_self_static+set}" = set; then
10013 echo $ECHO_N "(cached) $ECHO_C" >&6
10014else
10015 if test "$cross_compiling" = yes; then :
10016 lt_cv_dlopen_self_static=cross
10017else
10018 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10019 lt_status=$lt_dlunknown
10020 cat > conftest.$ac_ext <<EOF
0fde1ce3 10021#line 10021 "configure"
d9898ee8 10022#include "confdefs.h"
10023
10024#if HAVE_DLFCN_H
10025#include <dlfcn.h>
10026#endif
10027
10028#include <stdio.h>
10029
10030#ifdef RTLD_GLOBAL
10031# define LT_DLGLOBAL RTLD_GLOBAL
10032#else
10033# ifdef DL_GLOBAL
10034# define LT_DLGLOBAL DL_GLOBAL
10035# else
10036# define LT_DLGLOBAL 0
10037# endif
10038#endif
10039
10040/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10041 find out it does not work in some platform. */
10042#ifndef LT_DLLAZY_OR_NOW
10043# ifdef RTLD_LAZY
10044# define LT_DLLAZY_OR_NOW RTLD_LAZY
10045# else
10046# ifdef DL_LAZY
10047# define LT_DLLAZY_OR_NOW DL_LAZY
10048# else
10049# ifdef RTLD_NOW
10050# define LT_DLLAZY_OR_NOW RTLD_NOW
10051# else
10052# ifdef DL_NOW
10053# define LT_DLLAZY_OR_NOW DL_NOW
10054# else
10055# define LT_DLLAZY_OR_NOW 0
10056# endif
10057# endif
10058# endif
10059# endif
10060#endif
10061
10062#ifdef __cplusplus
10063extern "C" void exit (int);
10064#endif
10065
10066void fnord() { int i=42;}
10067int main ()
10068{
10069 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10070 int status = $lt_dlunknown;
10071
10072 if (self)
10073 {
10074 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10075 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10076 /* dlclose (self); */
10077 }
10078 else
10079 puts (dlerror ());
10080
10081 exit (status);
10082}
10083EOF
10084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10085 (eval $ac_link) 2>&5
10086 ac_status=$?
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10089 (./conftest; exit; ) >&5 2>/dev/null
10090 lt_status=$?
10091 case x$lt_status in
10092 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10093 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10094 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10095 esac
10096 else :
10097 # compilation failed
10098 lt_cv_dlopen_self_static=no
10099 fi
10100fi
10101rm -fr conftest*
10102
10103
10104fi
64ff59ba 10105{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10106echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
d9898ee8 10107 fi
10108
10109 CPPFLAGS="$save_CPPFLAGS"
10110 LDFLAGS="$save_LDFLAGS"
10111 LIBS="$save_LIBS"
10112 ;;
10113 esac
10114
10115 case $lt_cv_dlopen_self in
10116 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10117 *) enable_dlopen_self=unknown ;;
10118 esac
10119
10120 case $lt_cv_dlopen_self_static in
10121 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10122 *) enable_dlopen_self_static=unknown ;;
10123 esac
10124fi
10125
10126
10127# Report which library types will actually be built
64ff59ba 10128{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10129echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10130{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10131echo "${ECHO_T}$can_build_shared" >&6; }
d9898ee8 10132
64ff59ba 10133{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10134echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d9898ee8 10135test "$can_build_shared" = "no" && enable_shared=no
10136
10137# On AIX, shared libraries and static libraries use the same namespace, and
10138# are all built from PIC.
10139case $host_os in
10140aix3*)
10141 test "$enable_shared" = yes && enable_static=no
10142 if test -n "$RANLIB"; then
10143 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10144 postinstall_cmds='$RANLIB $lib'
10145 fi
10146 ;;
10147
10148aix4* | aix5*)
10149 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10150 test "$enable_shared" = yes && enable_static=no
10151 fi
10152 ;;
10153esac
64ff59ba 10154{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10155echo "${ECHO_T}$enable_shared" >&6; }
d9898ee8 10156
64ff59ba 10157{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10158echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d9898ee8 10159# Make sure either enable_shared or enable_static is yes.
10160test "$enable_shared" = yes || enable_static=yes
64ff59ba 10161{ echo "$as_me:$LINENO: result: $enable_static" >&5
10162echo "${ECHO_T}$enable_static" >&6; }
d9898ee8 10163
10164# The else clause should only fire when bootstrapping the
10165# libtool distribution, otherwise you forgot to ship ltmain.sh
10166# with your package, and you will get complaints that there are
10167# no rules to generate ltmain.sh.
10168if test -f "$ltmain"; then
10169 # See if we are running on zsh, and set the options which allow our commands through
10170 # without removal of \ escapes.
10171 if test -n "${ZSH_VERSION+set}" ; then
10172 setopt NO_GLOB_SUBST
10173 fi
10174 # Now quote all the things that may contain metacharacters while being
10175 # careful not to overquote the AC_SUBSTed values. We take copies of the
10176 # variables and quote the copies for generation of the libtool script.
10177 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10178 SED SHELL STRIP \
10179 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10180 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10181 deplibs_check_method reload_flag reload_cmds need_locks \
10182 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10183 lt_cv_sys_global_symbol_to_c_name_address \
10184 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10185 old_postinstall_cmds old_postuninstall_cmds \
10186 compiler \
10187 CC \
10188 LD \
10189 lt_prog_compiler_wl \
10190 lt_prog_compiler_pic \
10191 lt_prog_compiler_static \
10192 lt_prog_compiler_no_builtin_flag \
10193 export_dynamic_flag_spec \
10194 thread_safe_flag_spec \
10195 whole_archive_flag_spec \
10196 enable_shared_with_static_runtimes \
10197 old_archive_cmds \
10198 old_archive_from_new_cmds \
10199 predep_objects \
10200 postdep_objects \
10201 predeps \
10202 postdeps \
10203 compiler_lib_search_path \
10204 archive_cmds \
10205 archive_expsym_cmds \
10206 postinstall_cmds \
10207 postuninstall_cmds \
10208 old_archive_from_expsyms_cmds \
10209 allow_undefined_flag \
10210 no_undefined_flag \
10211 export_symbols_cmds \
10212 hardcode_libdir_flag_spec \
10213 hardcode_libdir_flag_spec_ld \
10214 hardcode_libdir_separator \
10215 hardcode_automatic \
10216 module_cmds \
10217 module_expsym_cmds \
10218 lt_cv_prog_compiler_c_o \
0fde1ce3 10219 fix_srcfile_path \
d9898ee8 10220 exclude_expsyms \
10221 include_expsyms; do
10222
10223 case $var in
10224 old_archive_cmds | \
10225 old_archive_from_new_cmds | \
10226 archive_cmds | \
10227 archive_expsym_cmds | \
10228 module_cmds | \
10229 module_expsym_cmds | \
10230 old_archive_from_expsyms_cmds | \
10231 export_symbols_cmds | \
10232 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10233 postinstall_cmds | postuninstall_cmds | \
10234 old_postinstall_cmds | old_postuninstall_cmds | \
10235 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10236 # Double-quote double-evaled strings.
10237 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10238 ;;
10239 *)
10240 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10241 ;;
10242 esac
10243 done
10244
10245 case $lt_echo in
10246 *'\$0 --fallback-echo"')
10247 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10248 ;;
10249 esac
10250
10251cfgfile="${ofile}T"
10252 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10253 $rm -f "$cfgfile"
10254 { echo "$as_me:$LINENO: creating $ofile" >&5
10255echo "$as_me: creating $ofile" >&6;}
10256
10257 cat <<__EOF__ >> "$cfgfile"
10258#! $SHELL
10259
10260# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10261# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10262# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10263#
0fde1ce3 10264# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
d9898ee8 10265# Free Software Foundation, Inc.
10266#
10267# This file is part of GNU Libtool:
10268# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10269#
10270# This program is free software; you can redistribute it and/or modify
10271# it under the terms of the GNU General Public License as published by
10272# the Free Software Foundation; either version 2 of the License, or
10273# (at your option) any later version.
10274#
10275# This program is distributed in the hope that it will be useful, but
10276# WITHOUT ANY WARRANTY; without even the implied warranty of
10277# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10278# General Public License for more details.
10279#
10280# You should have received a copy of the GNU General Public License
10281# along with this program; if not, write to the Free Software
10282# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10283#
10284# As a special exception to the GNU General Public License, if you
10285# distribute this file as part of a program that contains a
10286# configuration script generated by Autoconf, you may include it under
10287# the same distribution terms that you use for the rest of that program.
10288
10289# A sed program that does not truncate output.
10290SED=$lt_SED
10291
10292# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10293Xsed="$SED -e 1s/^X//"
10294
10295# The HP-UX ksh and POSIX shell print the target directory to stdout
10296# if CDPATH is set.
10297(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10298
10299# The names of the tagged configurations supported by this script.
10300available_tags=
10301
10302# ### BEGIN LIBTOOL CONFIG
10303
10304# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10305
10306# Shell to use when invoking shell scripts.
10307SHELL=$lt_SHELL
10308
10309# Whether or not to build shared libraries.
10310build_libtool_libs=$enable_shared
10311
10312# Whether or not to build static libraries.
10313build_old_libs=$enable_static
10314
10315# Whether or not to add -lc for building shared libraries.
10316build_libtool_need_lc=$archive_cmds_need_lc
10317
10318# Whether or not to disallow shared libs when runtime libs are static
10319allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10320
10321# Whether or not to optimize for fast installation.
10322fast_install=$enable_fast_install
10323
10324# The host system.
10325host_alias=$host_alias
10326host=$host
10327host_os=$host_os
10328
10329# The build system.
10330build_alias=$build_alias
10331build=$build
10332build_os=$build_os
10333
10334# An echo program that does not interpret backslashes.
10335echo=$lt_echo
10336
10337# The archiver.
10338AR=$lt_AR
10339AR_FLAGS=$lt_AR_FLAGS
10340
10341# A C compiler.
10342LTCC=$lt_LTCC
10343
10344# LTCC compiler flags.
10345LTCFLAGS=$lt_LTCFLAGS
10346
10347# A language-specific compiler.
10348CC=$lt_compiler
10349
10350# Is the compiler the GNU C compiler?
10351with_gcc=$GCC
10352
d9898ee8 10353# An ERE matcher.
10354EGREP=$lt_EGREP
10355
10356# The linker used to build libraries.
10357LD=$lt_LD
10358
10359# Whether we need hard or soft links.
10360LN_S=$lt_LN_S
10361
10362# A BSD-compatible nm program.
10363NM=$lt_NM
10364
10365# A symbol stripping program
10366STRIP=$lt_STRIP
10367
10368# Used to examine libraries when file_magic_cmd begins "file"
10369MAGIC_CMD=$MAGIC_CMD
10370
10371# Used on cygwin: DLL creation program.
10372DLLTOOL="$DLLTOOL"
10373
10374# Used on cygwin: object dumper.
10375OBJDUMP="$OBJDUMP"
10376
10377# Used on cygwin: assembler.
10378AS="$AS"
10379
10380# The name of the directory that contains temporary libtool files.
10381objdir=$objdir
10382
10383# How to create reloadable object files.
10384reload_flag=$lt_reload_flag
10385reload_cmds=$lt_reload_cmds
10386
10387# How to pass a linker flag through the compiler.
10388wl=$lt_lt_prog_compiler_wl
10389
10390# Object file suffix (normally "o").
10391objext="$ac_objext"
10392
10393# Old archive suffix (normally "a").
10394libext="$libext"
10395
10396# Shared library suffix (normally ".so").
10397shrext_cmds='$shrext_cmds'
10398
10399# Executable file suffix (normally "").
10400exeext="$exeext"
10401
10402# Additional compiler flags for building library objects.
10403pic_flag=$lt_lt_prog_compiler_pic
10404pic_mode=$pic_mode
10405
10406# What is the maximum length of a command?
10407max_cmd_len=$lt_cv_sys_max_cmd_len
10408
10409# Does compiler simultaneously support -c and -o options?
10410compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10411
10412# Must we lock files when doing compilation?
10413need_locks=$lt_need_locks
10414
10415# Do we need the lib prefix for modules?
10416need_lib_prefix=$need_lib_prefix
10417
10418# Do we need a version for libraries?
10419need_version=$need_version
10420
10421# Whether dlopen is supported.
10422dlopen_support=$enable_dlopen
10423
10424# Whether dlopen of programs is supported.
10425dlopen_self=$enable_dlopen_self
10426
10427# Whether dlopen of statically linked programs is supported.
10428dlopen_self_static=$enable_dlopen_self_static
10429
10430# Compiler flag to prevent dynamic linking.
10431link_static_flag=$lt_lt_prog_compiler_static
10432
10433# Compiler flag to turn off builtin functions.
10434no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10435
10436# Compiler flag to allow reflexive dlopens.
10437export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10438
10439# Compiler flag to generate shared objects directly from archives.
10440whole_archive_flag_spec=$lt_whole_archive_flag_spec
10441
10442# Compiler flag to generate thread-safe objects.
10443thread_safe_flag_spec=$lt_thread_safe_flag_spec
10444
10445# Library versioning type.
10446version_type=$version_type
10447
10448# Format of library name prefix.
10449libname_spec=$lt_libname_spec
10450
10451# List of archive names. First name is the real one, the rest are links.
10452# The last name is the one that the linker finds with -lNAME.
10453library_names_spec=$lt_library_names_spec
10454
10455# The coded name of the library, if different from the real name.
10456soname_spec=$lt_soname_spec
10457
10458# Commands used to build and install an old-style archive.
10459RANLIB=$lt_RANLIB
10460old_archive_cmds=$lt_old_archive_cmds
10461old_postinstall_cmds=$lt_old_postinstall_cmds
10462old_postuninstall_cmds=$lt_old_postuninstall_cmds
10463
10464# Create an old-style archive from a shared archive.
10465old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10466
10467# Create a temporary old-style archive to link instead of a shared archive.
10468old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10469
10470# Commands used to build and install a shared archive.
10471archive_cmds=$lt_archive_cmds
10472archive_expsym_cmds=$lt_archive_expsym_cmds
10473postinstall_cmds=$lt_postinstall_cmds
10474postuninstall_cmds=$lt_postuninstall_cmds
10475
10476# Commands used to build a loadable module (assumed same as above if empty)
10477module_cmds=$lt_module_cmds
10478module_expsym_cmds=$lt_module_expsym_cmds
10479
10480# Commands to strip libraries.
10481old_striplib=$lt_old_striplib
10482striplib=$lt_striplib
10483
10484# Dependencies to place before the objects being linked to create a
10485# shared library.
64ff59ba 10486predep_objects=$lt_predep_objects
d9898ee8 10487
10488# Dependencies to place after the objects being linked to create a
10489# shared library.
64ff59ba 10490postdep_objects=$lt_postdep_objects
d9898ee8 10491
10492# Dependencies to place before the objects being linked to create a
10493# shared library.
10494predeps=$lt_predeps
10495
10496# Dependencies to place after the objects being linked to create a
10497# shared library.
10498postdeps=$lt_postdeps
10499
10500# The library search path used internally by the compiler when linking
10501# a shared library.
64ff59ba 10502compiler_lib_search_path=$lt_compiler_lib_search_path
d9898ee8 10503
10504# Method to check whether dependent libraries are shared objects.
10505deplibs_check_method=$lt_deplibs_check_method
10506
10507# Command to use when deplibs_check_method == file_magic.
10508file_magic_cmd=$lt_file_magic_cmd
10509
10510# Flag that allows shared libraries with undefined symbols to be built.
10511allow_undefined_flag=$lt_allow_undefined_flag
10512
10513# Flag that forces no undefined symbols.
10514no_undefined_flag=$lt_no_undefined_flag
10515
10516# Commands used to finish a libtool library installation in a directory.
10517finish_cmds=$lt_finish_cmds
10518
10519# Same as above, but a single script fragment to be evaled but not shown.
10520finish_eval=$lt_finish_eval
10521
10522# Take the output of nm and produce a listing of raw symbols and C names.
10523global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10524
10525# Transform the output of nm in a proper C declaration
10526global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10527
10528# Transform the output of nm in a C name address pair
10529global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10530
10531# This is the shared library runtime path variable.
10532runpath_var=$runpath_var
10533
10534# This is the shared library path variable.
10535shlibpath_var=$shlibpath_var
10536
10537# Is shlibpath searched before the hard-coded library search path?
10538shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10539
10540# How to hardcode a shared library path into an executable.
10541hardcode_action=$hardcode_action
10542
10543# Whether we should hardcode library paths into libraries.
10544hardcode_into_libs=$hardcode_into_libs
10545
10546# Flag to hardcode \$libdir into a binary during linking.
10547# This must work even if \$libdir does not exist.
10548hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10549
10550# If ld is used when linking, flag to hardcode \$libdir into
10551# a binary during linking. This must work even if \$libdir does
10552# not exist.
10553hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10554
10555# Whether we need a single -rpath flag with a separated argument.
10556hardcode_libdir_separator=$lt_hardcode_libdir_separator
10557
10558# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10559# resulting binary.
10560hardcode_direct=$hardcode_direct
10561
10562# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10563# resulting binary.
10564hardcode_minus_L=$hardcode_minus_L
10565
10566# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10567# the resulting binary.
10568hardcode_shlibpath_var=$hardcode_shlibpath_var
10569
10570# Set to yes if building a shared library automatically hardcodes DIR into the library
10571# and all subsequent libraries and executables linked against it.
10572hardcode_automatic=$hardcode_automatic
10573
10574# Variables whose values should be saved in libtool wrapper scripts and
10575# restored at relink time.
10576variables_saved_for_relink="$variables_saved_for_relink"
10577
10578# Whether libtool must link a program against all its dependency libraries.
10579link_all_deplibs=$link_all_deplibs
10580
10581# Compile-time system search path for libraries
64ff59ba 10582sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 10583
10584# Run-time system search path for libraries
10585sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10586
10587# Fix the shell variable \$srcfile for the compiler.
0fde1ce3 10588fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 10589
10590# Set to yes if exported symbols are required.
10591always_export_symbols=$always_export_symbols
10592
10593# The commands to list exported symbols.
10594export_symbols_cmds=$lt_export_symbols_cmds
10595
10596# The commands to extract the exported symbol list from a shared archive.
10597extract_expsyms_cmds=$lt_extract_expsyms_cmds
10598
10599# Symbols that should not be listed in the preloaded symbols.
10600exclude_expsyms=$lt_exclude_expsyms
10601
10602# Symbols that must always be exported.
10603include_expsyms=$lt_include_expsyms
10604
10605# ### END LIBTOOL CONFIG
10606
10607__EOF__
10608
10609
10610 case $host_os in
10611 aix3*)
10612 cat <<\EOF >> "$cfgfile"
10613
10614# AIX sometimes has problems with the GCC collect2 program. For some
10615# reason, if we set the COLLECT_NAMES environment variable, the problems
10616# vanish in a puff of smoke.
10617if test "X${COLLECT_NAMES+set}" != Xset; then
10618 COLLECT_NAMES=
10619 export COLLECT_NAMES
10620fi
10621EOF
10622 ;;
10623 esac
10624
10625 # We use sed instead of cat because bash on DJGPP gets confused if
10626 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10627 # text mode, it properly converts lines to CR/LF. This bash problem
10628 # is reportedly fixed, but why not run on old versions too?
10629 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10630
10631 mv -f "$cfgfile" "$ofile" || \
10632 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10633 chmod +x "$ofile"
10634
10635else
10636 # If there is no Makefile yet, we rely on a make rule to execute
10637 # `config.status --recheck' to rerun these tests and create the
10638 # libtool script then.
10639 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10640 if test -f "$ltmain_in"; then
10641 test -f Makefile && make "$ltmain"
10642 fi
10643fi
10644
10645
10646ac_ext=c
10647ac_cpp='$CPP $CPPFLAGS'
10648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10650ac_compiler_gnu=$ac_cv_c_compiler_gnu
10651
10652CC="$lt_save_CC"
10653
10654
64ff59ba 10655# Check whether --with-tags was given.
d9898ee8 10656if test "${with_tags+set}" = set; then
64ff59ba 10657 withval=$with_tags; tagnames="$withval"
10658fi
10659
d9898ee8 10660
10661if test -f "$ltmain" && test -n "$tagnames"; then
10662 if test ! -f "${ofile}"; then
10663 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10664echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10665 fi
10666
10667 if test -z "$LTCC"; then
10668 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10669 if test -z "$LTCC"; then
10670 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10671echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10672 else
10673 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10674echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10675 fi
10676 fi
10677 if test -z "$LTCFLAGS"; then
10678 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10679 fi
10680
10681 # Extract list of available tagged configurations in $ofile.
10682 # Note that this assumes the entire list is on one line.
10683 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10684
10685 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10686 for tagname in $tagnames; do
10687 IFS="$lt_save_ifs"
10688 # Check whether tagname contains only valid characters
10689 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10690 "") ;;
10691 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10692echo "$as_me: error: invalid tag name: $tagname" >&2;}
10693 { (exit 1); exit 1; }; }
10694 ;;
10695 esac
10696
10697 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10698 then
10699 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10700echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10701 { (exit 1); exit 1; }; }
10702 fi
10703
10704 # Update the list of available tags.
10705 if test -n "$tagname"; then
10706 echo appending configuration tag \"$tagname\" to $ofile
10707
10708 case $tagname in
10709 CXX)
10710 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10711 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10712 (test "X$CXX" != "Xg++"))) ; then
64ff59ba 10713 ac_ext=cpp
d9898ee8 10714ac_cpp='$CXXCPP $CPPFLAGS'
10715ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10716ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10717ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10718
10719
10720
10721
10722archive_cmds_need_lc_CXX=no
10723allow_undefined_flag_CXX=
10724always_export_symbols_CXX=no
10725archive_expsym_cmds_CXX=
10726export_dynamic_flag_spec_CXX=
10727hardcode_direct_CXX=no
10728hardcode_libdir_flag_spec_CXX=
10729hardcode_libdir_flag_spec_ld_CXX=
10730hardcode_libdir_separator_CXX=
10731hardcode_minus_L_CXX=no
10732hardcode_shlibpath_var_CXX=unsupported
10733hardcode_automatic_CXX=no
10734module_cmds_CXX=
10735module_expsym_cmds_CXX=
10736link_all_deplibs_CXX=unknown
10737old_archive_cmds_CXX=$old_archive_cmds
10738no_undefined_flag_CXX=
10739whole_archive_flag_spec_CXX=
10740enable_shared_with_static_runtimes_CXX=no
10741
10742# Dependencies to place before and after the object being linked:
10743predep_objects_CXX=
10744postdep_objects_CXX=
10745predeps_CXX=
10746postdeps_CXX=
10747compiler_lib_search_path_CXX=
10748
10749# Source file extension for C++ test sources.
10750ac_ext=cpp
10751
10752# Object file extension for compiled C++ test sources.
10753objext=o
10754objext_CXX=$objext
10755
10756# Code to be used in simple compile tests
0fde1ce3 10757lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 10758
10759# Code to be used in simple link tests
0fde1ce3 10760lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
d9898ee8 10761
10762# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10763
10764# If no C compiler was specified, use CC.
10765LTCC=${LTCC-"$CC"}
10766
10767# If no C compiler flags were specified, use CFLAGS.
10768LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10769
10770# Allow CC to be a program name with arguments.
10771compiler=$CC
10772
10773
10774# save warnings/boilerplate of simple test code
10775ac_outfile=conftest.$ac_objext
0fde1ce3 10776echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 10777eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10778_lt_compiler_boilerplate=`cat conftest.err`
10779$rm conftest*
10780
10781ac_outfile=conftest.$ac_objext
0fde1ce3 10782echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 10783eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10784_lt_linker_boilerplate=`cat conftest.err`
10785$rm conftest*
10786
10787
10788# Allow CC to be a program name with arguments.
10789lt_save_CC=$CC
10790lt_save_LD=$LD
10791lt_save_GCC=$GCC
10792GCC=$GXX
10793lt_save_with_gnu_ld=$with_gnu_ld
10794lt_save_path_LD=$lt_cv_path_LD
10795if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10796 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10797else
10798 $as_unset lt_cv_prog_gnu_ld
10799fi
10800if test -n "${lt_cv_path_LDCXX+set}"; then
10801 lt_cv_path_LD=$lt_cv_path_LDCXX
10802else
10803 $as_unset lt_cv_path_LD
10804fi
10805test -z "${LDCXX+set}" || LD=$LDCXX
10806CC=${CXX-"c++"}
10807compiler=$CC
10808compiler_CXX=$CC
10809for cc_temp in $compiler""; do
10810 case $cc_temp in
10811 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10812 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10813 \-*) ;;
10814 *) break;;
10815 esac
10816done
10817cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10818
10819
10820# We don't want -fno-exception wen compiling C++ code, so set the
10821# no_builtin_flag separately
10822if test "$GXX" = yes; then
10823 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10824else
10825 lt_prog_compiler_no_builtin_flag_CXX=
10826fi
10827
10828if test "$GXX" = yes; then
10829 # Set up default GNU C++ configuration
10830
10831
64ff59ba 10832# Check whether --with-gnu-ld was given.
d9898ee8 10833if test "${with_gnu_ld+set}" = set; then
64ff59ba 10834 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 10835else
10836 with_gnu_ld=no
64ff59ba 10837fi
10838
d9898ee8 10839ac_prog=ld
10840if test "$GCC" = yes; then
10841 # Check if gcc -print-prog-name=ld gives a path.
64ff59ba 10842 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10843echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d9898ee8 10844 case $host in
10845 *-*-mingw*)
10846 # gcc leaves a trailing carriage return which upsets mingw
10847 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10848 *)
10849 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10850 esac
10851 case $ac_prog in
10852 # Accept absolute paths.
10853 [\\/]* | ?:[\\/]*)
10854 re_direlt='/[^/][^/]*/\.\./'
10855 # Canonicalize the pathname of ld
10856 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10857 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10858 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10859 done
10860 test -z "$LD" && LD="$ac_prog"
10861 ;;
10862 "")
10863 # If it fails, then pretend we aren't using GCC.
10864 ac_prog=ld
10865 ;;
10866 *)
10867 # If it is relative, then search for the first ld in PATH.
10868 with_gnu_ld=unknown
10869 ;;
10870 esac
10871elif test "$with_gnu_ld" = yes; then
64ff59ba 10872 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10873echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d9898ee8 10874else
64ff59ba 10875 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10876echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d9898ee8 10877fi
10878if test "${lt_cv_path_LD+set}" = set; then
10879 echo $ECHO_N "(cached) $ECHO_C" >&6
10880else
10881 if test -z "$LD"; then
10882 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10883 for ac_dir in $PATH; do
10884 IFS="$lt_save_ifs"
10885 test -z "$ac_dir" && ac_dir=.
10886 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10887 lt_cv_path_LD="$ac_dir/$ac_prog"
10888 # Check to see if the program is GNU ld. I'd rather use --version,
10889 # but apparently some variants of GNU ld only accept -v.
10890 # Break only if it was the GNU/non-GNU ld that we prefer.
10891 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10892 *GNU* | *'with BFD'*)
10893 test "$with_gnu_ld" != no && break
10894 ;;
10895 *)
10896 test "$with_gnu_ld" != yes && break
10897 ;;
10898 esac
10899 fi
10900 done
10901 IFS="$lt_save_ifs"
10902else
10903 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10904fi
10905fi
10906
10907LD="$lt_cv_path_LD"
10908if test -n "$LD"; then
64ff59ba 10909 { echo "$as_me:$LINENO: result: $LD" >&5
10910echo "${ECHO_T}$LD" >&6; }
d9898ee8 10911else
64ff59ba 10912 { echo "$as_me:$LINENO: result: no" >&5
10913echo "${ECHO_T}no" >&6; }
d9898ee8 10914fi
10915test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10916echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10917 { (exit 1); exit 1; }; }
64ff59ba 10918{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10919echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d9898ee8 10920if test "${lt_cv_prog_gnu_ld+set}" = set; then
10921 echo $ECHO_N "(cached) $ECHO_C" >&6
10922else
10923 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10924case `$LD -v 2>&1 </dev/null` in
10925*GNU* | *'with BFD'*)
10926 lt_cv_prog_gnu_ld=yes
10927 ;;
10928*)
10929 lt_cv_prog_gnu_ld=no
10930 ;;
10931esac
10932fi
64ff59ba 10933{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10934echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 10935with_gnu_ld=$lt_cv_prog_gnu_ld
10936
10937
10938
10939 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10940 # archiving commands below assume that GNU ld is being used.
10941 if test "$with_gnu_ld" = yes; then
10942 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10943 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'
10944
10945 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10946 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10947
10948 # If archive_cmds runs LD, not CC, wlarc should be empty
10949 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10950 # investigate it a little bit more. (MM)
10951 wlarc='${wl}'
10952
10953 # ancient GNU ld didn't support --whole-archive et. al.
10954 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10955 grep 'no-whole-archive' > /dev/null; then
10956 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10957 else
10958 whole_archive_flag_spec_CXX=
10959 fi
10960 else
10961 with_gnu_ld=no
10962 wlarc=
10963
10964 # A generic and very simple default shared library creation
10965 # command for GNU C++ for the case where it uses the native
10966 # linker, instead of GNU ld. If possible, this setting should
10967 # overridden to take advantage of the native linker features on
10968 # the platform it is being used on.
10969 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10970 fi
10971
10972 # Commands to make compiler produce verbose output that lists
10973 # what "hidden" libraries, object files and flags are used when
10974 # linking a shared library.
10975 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10976
10977else
10978 GXX=no
10979 with_gnu_ld=no
10980 wlarc=
10981fi
10982
10983# PORTME: fill in a description of your system's C++ link characteristics
64ff59ba 10984{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10985echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 10986ld_shlibs_CXX=yes
10987case $host_os in
10988 aix3*)
10989 # FIXME: insert proper C++ library support
10990 ld_shlibs_CXX=no
10991 ;;
10992 aix4* | aix5*)
10993 if test "$host_cpu" = ia64; then
10994 # On IA64, the linker does run time linking by default, so we don't
10995 # have to do anything special.
10996 aix_use_runtimelinking=no
10997 exp_sym_flag='-Bexport'
10998 no_entry_flag=""
10999 else
11000 aix_use_runtimelinking=no
11001
11002 # Test if we are trying to use run time linking or normal
11003 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11004 # need to do runtime linking.
11005 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11006 for ld_flag in $LDFLAGS; do
11007 case $ld_flag in
11008 *-brtl*)
11009 aix_use_runtimelinking=yes
11010 break
11011 ;;
11012 esac
11013 done
11014 ;;
11015 esac
11016
11017 exp_sym_flag='-bexport'
11018 no_entry_flag='-bnoentry'
11019 fi
11020
11021 # When large executables or shared objects are built, AIX ld can
11022 # have problems creating the table of contents. If linking a library
11023 # or program results in "error TOC overflow" add -mminimal-toc to
11024 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11025 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11026
11027 archive_cmds_CXX=''
11028 hardcode_direct_CXX=yes
11029 hardcode_libdir_separator_CXX=':'
11030 link_all_deplibs_CXX=yes
11031
11032 if test "$GXX" = yes; then
11033 case $host_os in aix4.[012]|aix4.[012].*)
11034 # We only want to do this on AIX 4.2 and lower, the check
11035 # below for broken collect2 doesn't work under 4.3+
11036 collect2name=`${CC} -print-prog-name=collect2`
11037 if test -f "$collect2name" && \
11038 strings "$collect2name" | grep resolve_lib_name >/dev/null
11039 then
11040 # We have reworked collect2
0fde1ce3 11041 :
d9898ee8 11042 else
11043 # We have old collect2
11044 hardcode_direct_CXX=unsupported
11045 # It fails to find uninstalled libraries when the uninstalled
11046 # path is not listed in the libpath. Setting hardcode_minus_L
11047 # to unsupported forces relinking
11048 hardcode_minus_L_CXX=yes
11049 hardcode_libdir_flag_spec_CXX='-L$libdir'
11050 hardcode_libdir_separator_CXX=
11051 fi
11052 ;;
11053 esac
11054 shared_flag='-shared'
11055 if test "$aix_use_runtimelinking" = yes; then
11056 shared_flag="$shared_flag "'${wl}-G'
11057 fi
11058 else
11059 # not using gcc
11060 if test "$host_cpu" = ia64; then
11061 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11062 # chokes on -Wl,-G. The following line is correct:
11063 shared_flag='-G'
11064 else
11065 if test "$aix_use_runtimelinking" = yes; then
11066 shared_flag='${wl}-G'
11067 else
11068 shared_flag='${wl}-bM:SRE'
11069 fi
11070 fi
11071 fi
11072
11073 # It seems that -bexpall does not export symbols beginning with
11074 # underscore (_), so it is better to generate a list of symbols to export.
11075 always_export_symbols_CXX=yes
11076 if test "$aix_use_runtimelinking" = yes; then
11077 # Warning - without using the other runtime loading flags (-brtl),
11078 # -berok will link without error, but may produce a broken library.
11079 allow_undefined_flag_CXX='-berok'
11080 # Determine the default libpath from the value encoded in an empty executable.
11081 cat >conftest.$ac_ext <<_ACEOF
11082/* confdefs.h. */
11083_ACEOF
11084cat confdefs.h >>conftest.$ac_ext
11085cat >>conftest.$ac_ext <<_ACEOF
11086/* end confdefs.h. */
11087
11088int
11089main ()
11090{
11091
11092 ;
11093 return 0;
11094}
11095_ACEOF
11096rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 11097if { (ac_try="$ac_link"
11098case "(($ac_try" in
11099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11100 *) ac_try_echo=$ac_try;;
11101esac
11102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11103 (eval "$ac_link") 2>conftest.er1
d9898ee8 11104 ac_status=$?
11105 grep -v '^ *+' conftest.er1 >conftest.err
11106 rm -f conftest.er1
11107 cat conftest.err >&5
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 11109 (exit $ac_status); } && {
11110 test -z "$ac_cxx_werror_flag" ||
11111 test ! -s conftest.err
11112 } && test -s conftest$ac_exeext &&
11113 $as_test_x conftest$ac_exeext; then
d9898ee8 11114
0fde1ce3 11115lt_aix_libpath_sed='
11116 /Import File Strings/,/^$/ {
11117 /^0/ {
11118 s/^0 *\(.*\)$/\1/
11119 p
11120 }
11121 }'
11122aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 11123# Check for a 64-bit object if we didn't find anything.
0fde1ce3 11124if test -z "$aix_libpath"; then
11125 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11126fi
d9898ee8 11127else
11128 echo "$as_me: failed program was:" >&5
11129sed 's/^/| /' conftest.$ac_ext >&5
11130
64ff59ba 11131
d9898ee8 11132fi
64ff59ba 11133
11134rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 11135 conftest$ac_exeext conftest.$ac_ext
11136if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11137
11138 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11139
11140 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"
11141 else
11142 if test "$host_cpu" = ia64; then
11143 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11144 allow_undefined_flag_CXX="-z nodefs"
11145 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"
11146 else
11147 # Determine the default libpath from the value encoded in an empty executable.
11148 cat >conftest.$ac_ext <<_ACEOF
11149/* confdefs.h. */
11150_ACEOF
11151cat confdefs.h >>conftest.$ac_ext
11152cat >>conftest.$ac_ext <<_ACEOF
11153/* end confdefs.h. */
11154
11155int
11156main ()
11157{
11158
11159 ;
11160 return 0;
11161}
11162_ACEOF
11163rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 11164if { (ac_try="$ac_link"
11165case "(($ac_try" in
11166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11167 *) ac_try_echo=$ac_try;;
11168esac
11169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11170 (eval "$ac_link") 2>conftest.er1
d9898ee8 11171 ac_status=$?
11172 grep -v '^ *+' conftest.er1 >conftest.err
11173 rm -f conftest.er1
11174 cat conftest.err >&5
11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 11176 (exit $ac_status); } && {
11177 test -z "$ac_cxx_werror_flag" ||
11178 test ! -s conftest.err
11179 } && test -s conftest$ac_exeext &&
11180 $as_test_x conftest$ac_exeext; then
d9898ee8 11181
0fde1ce3 11182lt_aix_libpath_sed='
11183 /Import File Strings/,/^$/ {
11184 /^0/ {
11185 s/^0 *\(.*\)$/\1/
11186 p
11187 }
11188 }'
11189aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 11190# Check for a 64-bit object if we didn't find anything.
0fde1ce3 11191if test -z "$aix_libpath"; then
11192 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11193fi
d9898ee8 11194else
11195 echo "$as_me: failed program was:" >&5
11196sed 's/^/| /' conftest.$ac_ext >&5
11197
64ff59ba 11198
d9898ee8 11199fi
64ff59ba 11200
11201rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 11202 conftest$ac_exeext conftest.$ac_ext
11203if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11204
11205 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11206 # Warning - without using the other run time loading flags,
11207 # -berok will link without error, but may produce a broken library.
11208 no_undefined_flag_CXX=' ${wl}-bernotok'
11209 allow_undefined_flag_CXX=' ${wl}-berok'
11210 # Exported symbols can be pulled into shared objects from archives
11211 whole_archive_flag_spec_CXX='$convenience'
11212 archive_cmds_need_lc_CXX=yes
11213 # This is similar to how AIX traditionally builds its shared libraries.
11214 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'
11215 fi
11216 fi
11217 ;;
11218
11219 beos*)
11220 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11221 allow_undefined_flag_CXX=unsupported
11222 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11223 # support --undefined. This deserves some investigation. FIXME
11224 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11225 else
11226 ld_shlibs_CXX=no
11227 fi
11228 ;;
11229
11230 chorus*)
11231 case $cc_basename in
11232 *)
11233 # FIXME: insert proper C++ library support
11234 ld_shlibs_CXX=no
11235 ;;
11236 esac
11237 ;;
11238
11239 cygwin* | mingw* | pw32*)
11240 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11241 # as there is no search path for DLLs.
11242 hardcode_libdir_flag_spec_CXX='-L$libdir'
11243 allow_undefined_flag_CXX=unsupported
11244 always_export_symbols_CXX=no
11245 enable_shared_with_static_runtimes_CXX=yes
11246
11247 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11248 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'
11249 # If the export-symbols file already is a .def file (1st line
11250 # is EXPORTS), use it as is; otherwise, prepend...
11251 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11252 cp $export_symbols $output_objdir/$soname.def;
11253 else
11254 echo EXPORTS > $output_objdir/$soname.def;
11255 cat $export_symbols >> $output_objdir/$soname.def;
11256 fi~
11257 $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'
11258 else
11259 ld_shlibs_CXX=no
11260 fi
11261 ;;
11262 darwin* | rhapsody*)
11263 case $host_os in
11264 rhapsody* | darwin1.[012])
11265 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11266 ;;
11267 *) # Darwin 1.3 on
11268 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11269 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11270 else
11271 case ${MACOSX_DEPLOYMENT_TARGET} in
11272 10.[012])
11273 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11274 ;;
11275 10.*)
11276 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11277 ;;
11278 esac
11279 fi
11280 ;;
11281 esac
11282 archive_cmds_need_lc_CXX=no
11283 hardcode_direct_CXX=no
11284 hardcode_automatic_CXX=yes
11285 hardcode_shlibpath_var_CXX=unsupported
11286 whole_archive_flag_spec_CXX=''
11287 link_all_deplibs_CXX=yes
11288
11289 if test "$GXX" = yes ; then
11290 lt_int_apple_cc_single_mod=no
11291 output_verbose_link_cmd='echo'
11292 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11293 lt_int_apple_cc_single_mod=yes
11294 fi
11295 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11296 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11297 else
11298 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'
11299 fi
11300 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11301 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11302 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11303 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}'
11304 else
11305 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}'
11306 fi
11307 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}'
11308 else
11309 case $cc_basename in
11310 xlc*)
11311 output_verbose_link_cmd='echo'
0fde1ce3 11312 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 11313 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11314 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
0fde1ce3 11315 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 11316 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}'
11317 ;;
11318 *)
11319 ld_shlibs_CXX=no
11320 ;;
11321 esac
11322 fi
11323 ;;
11324
11325 dgux*)
11326 case $cc_basename in
11327 ec++*)
11328 # FIXME: insert proper C++ library support
11329 ld_shlibs_CXX=no
11330 ;;
11331 ghcx*)
11332 # Green Hills C++ Compiler
11333 # FIXME: insert proper C++ library support
11334 ld_shlibs_CXX=no
11335 ;;
11336 *)
11337 # FIXME: insert proper C++ library support
11338 ld_shlibs_CXX=no
11339 ;;
11340 esac
11341 ;;
11342 freebsd[12]*)
11343 # C++ shared libraries reported to be fairly broken before switch to ELF
11344 ld_shlibs_CXX=no
11345 ;;
11346 freebsd-elf*)
11347 archive_cmds_need_lc_CXX=no
11348 ;;
0fde1ce3 11349 freebsd* | dragonfly*)
d9898ee8 11350 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11351 # conventions
11352 ld_shlibs_CXX=yes
11353 ;;
11354 gnu*)
11355 ;;
11356 hpux9*)
11357 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11358 hardcode_libdir_separator_CXX=:
11359 export_dynamic_flag_spec_CXX='${wl}-E'
11360 hardcode_direct_CXX=yes
11361 hardcode_minus_L_CXX=yes # Not in the search PATH,
11362 # but as the default
11363 # location of the library.
11364
11365 case $cc_basename in
11366 CC*)
11367 # FIXME: insert proper C++ library support
11368 ld_shlibs_CXX=no
11369 ;;
11370 aCC*)
11371 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'
11372 # Commands to make compiler produce verbose output that lists
11373 # what "hidden" libraries, object files and flags are used when
11374 # linking a shared library.
11375 #
11376 # There doesn't appear to be a way to prevent this compiler from
11377 # explicitly linking system object files so we need to strip them
11378 # from the output so that they don't get included in the library
11379 # dependencies.
11380 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'
11381 ;;
11382 *)
11383 if test "$GXX" = yes; then
11384 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'
11385 else
11386 # FIXME: insert proper C++ library support
11387 ld_shlibs_CXX=no
11388 fi
11389 ;;
11390 esac
11391 ;;
11392 hpux10*|hpux11*)
11393 if test $with_gnu_ld = no; then
11394 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11395 hardcode_libdir_separator_CXX=:
11396
11397 case $host_cpu in
0fde1ce3 11398 hppa*64*|ia64*) ;;
d9898ee8 11399 *)
11400 export_dynamic_flag_spec_CXX='${wl}-E'
11401 ;;
11402 esac
11403 fi
11404 case $host_cpu in
11405 hppa*64*|ia64*)
11406 hardcode_direct_CXX=no
11407 hardcode_shlibpath_var_CXX=no
11408 ;;
11409 *)
11410 hardcode_direct_CXX=yes
11411 hardcode_minus_L_CXX=yes # Not in the search PATH,
11412 # but as the default
11413 # location of the library.
11414 ;;
11415 esac
11416
11417 case $cc_basename in
11418 CC*)
11419 # FIXME: insert proper C++ library support
11420 ld_shlibs_CXX=no
11421 ;;
11422 aCC*)
11423 case $host_cpu in
11424 hppa*64*)
11425 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11426 ;;
11427 ia64*)
11428 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11429 ;;
11430 *)
11431 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11432 ;;
11433 esac
11434 # Commands to make compiler produce verbose output that lists
11435 # what "hidden" libraries, object files and flags are used when
11436 # linking a shared library.
11437 #
11438 # There doesn't appear to be a way to prevent this compiler from
11439 # explicitly linking system object files so we need to strip them
11440 # from the output so that they don't get included in the library
11441 # dependencies.
11442 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'
11443 ;;
11444 *)
11445 if test "$GXX" = yes; then
11446 if test $with_gnu_ld = no; then
11447 case $host_cpu in
11448 hppa*64*)
11449 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11450 ;;
11451 ia64*)
11452 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11453 ;;
11454 *)
11455 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'
11456 ;;
11457 esac
11458 fi
11459 else
11460 # FIXME: insert proper C++ library support
11461 ld_shlibs_CXX=no
11462 fi
11463 ;;
11464 esac
11465 ;;
0fde1ce3 11466 interix[3-9]*)
d9898ee8 11467 hardcode_direct_CXX=no
11468 hardcode_shlibpath_var_CXX=no
11469 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11470 export_dynamic_flag_spec_CXX='${wl}-E'
11471 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11472 # Instead, shared libraries are loaded at an image base (0x10000000 by
11473 # default) and relocated if they conflict, which is a slow very memory
11474 # consuming and fragmenting process. To avoid this, we pick a random,
11475 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11476 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11477 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'
11478 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'
11479 ;;
11480 irix5* | irix6*)
11481 case $cc_basename in
11482 CC*)
11483 # SGI C++
11484 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'
11485
11486 # Archives containing C++ object files must be created using
11487 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11488 # necessary to make sure instantiated templates are included
11489 # in the archive.
11490 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11491 ;;
11492 *)
11493 if test "$GXX" = yes; then
11494 if test "$with_gnu_ld" = no; then
11495 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'
11496 else
11497 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'
11498 fi
11499 fi
11500 link_all_deplibs_CXX=yes
11501 ;;
11502 esac
11503 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11504 hardcode_libdir_separator_CXX=:
11505 ;;
0fde1ce3 11506 linux* | k*bsd*-gnu)
d9898ee8 11507 case $cc_basename in
11508 KCC*)
11509 # Kuck and Associates, Inc. (KAI) C++ Compiler
11510
11511 # KCC will only create a shared library if the output file
11512 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11513 # to its proper name (with version) after linking.
11514 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'
11515 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'
11516 # Commands to make compiler produce verbose output that lists
11517 # what "hidden" libraries, object files and flags are used when
11518 # linking a shared library.
11519 #
11520 # There doesn't appear to be a way to prevent this compiler from
11521 # explicitly linking system object files so we need to strip them
11522 # from the output so that they don't get included in the library
11523 # dependencies.
11524 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'
11525
11526 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11527 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11528
11529 # Archives containing C++ object files must be created using
11530 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11531 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11532 ;;
11533 icpc*)
11534 # Intel C++
11535 with_gnu_ld=yes
11536 # version 8.0 and above of icpc choke on multiply defined symbols
11537 # if we add $predep_objects and $postdep_objects, however 7.1 and
11538 # earlier do not add the objects themselves.
11539 case `$CC -V 2>&1` in
11540 *"Version 7."*)
11541 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11542 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'
11543 ;;
11544 *) # Version 8.0 or newer
11545 tmp_idyn=
11546 case $host_cpu in
11547 ia64*) tmp_idyn=' -i_dynamic';;
11548 esac
11549 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11550 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'
11551 ;;
11552 esac
11553 archive_cmds_need_lc_CXX=no
11554 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11555 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11556 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11557 ;;
11558 pgCC*)
11559 # Portland Group C++ compiler
11560 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11561 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'
11562
11563 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11564 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11565 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'
11566 ;;
11567 cxx*)
11568 # Compaq C++
11569 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11570 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'
11571
11572 runpath_var=LD_RUN_PATH
11573 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11574 hardcode_libdir_separator_CXX=:
11575
11576 # Commands to make compiler produce verbose output that lists
11577 # what "hidden" libraries, object files and flags are used when
11578 # linking a shared library.
11579 #
11580 # There doesn't appear to be a way to prevent this compiler from
11581 # explicitly linking system object files so we need to strip them
11582 # from the output so that they don't get included in the library
11583 # dependencies.
11584 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'
11585 ;;
0fde1ce3 11586 *)
11587 case `$CC -V 2>&1 | sed 5q` in
11588 *Sun\ C*)
11589 # Sun C++ 5.9
11590 no_undefined_flag_CXX=' -zdefs'
11591 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11592 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'
11593 hardcode_libdir_flag_spec_CXX='-R$libdir'
11594 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'
11595
11596 # Not sure whether something based on
11597 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11598 # would be better.
11599 output_verbose_link_cmd='echo'
11600
11601 # Archives containing C++ object files must be created using
11602 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11603 # necessary to make sure instantiated templates are included
11604 # in the archive.
11605 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11606 ;;
11607 esac
11608 ;;
d9898ee8 11609 esac
11610 ;;
11611 lynxos*)
11612 # FIXME: insert proper C++ library support
11613 ld_shlibs_CXX=no
11614 ;;
11615 m88k*)
11616 # FIXME: insert proper C++ library support
11617 ld_shlibs_CXX=no
11618 ;;
11619 mvs*)
11620 case $cc_basename in
11621 cxx*)
11622 # FIXME: insert proper C++ library support
11623 ld_shlibs_CXX=no
11624 ;;
11625 *)
11626 # FIXME: insert proper C++ library support
11627 ld_shlibs_CXX=no
11628 ;;
11629 esac
11630 ;;
11631 netbsd*)
11632 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11633 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11634 wlarc=
11635 hardcode_libdir_flag_spec_CXX='-R$libdir'
11636 hardcode_direct_CXX=yes
11637 hardcode_shlibpath_var_CXX=no
11638 fi
11639 # Workaround some broken pre-1.5 toolchains
11640 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11641 ;;
11642 openbsd2*)
11643 # C++ shared libraries are fairly broken
11644 ld_shlibs_CXX=no
11645 ;;
11646 openbsd*)
0fde1ce3 11647 if test -f /usr/libexec/ld.so; then
11648 hardcode_direct_CXX=yes
11649 hardcode_shlibpath_var_CXX=no
11650 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11651 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11652 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11653 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11654 export_dynamic_flag_spec_CXX='${wl}-E'
11655 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11656 fi
11657 output_verbose_link_cmd='echo'
11658 else
11659 ld_shlibs_CXX=no
d9898ee8 11660 fi
d9898ee8 11661 ;;
11662 osf3*)
11663 case $cc_basename in
11664 KCC*)
11665 # Kuck and Associates, Inc. (KAI) C++ Compiler
11666
11667 # KCC will only create a shared library if the output file
11668 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11669 # to its proper name (with version) after linking.
11670 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'
11671
11672 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11673 hardcode_libdir_separator_CXX=:
11674
11675 # Archives containing C++ object files must be created using
11676 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11677 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11678
11679 ;;
11680 RCC*)
11681 # Rational C++ 2.4.1
11682 # FIXME: insert proper C++ library support
11683 ld_shlibs_CXX=no
11684 ;;
11685 cxx*)
11686 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11687 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'
11688
11689 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11690 hardcode_libdir_separator_CXX=:
11691
11692 # Commands to make compiler produce verbose output that lists
11693 # what "hidden" libraries, object files and flags are used when
11694 # linking a shared library.
11695 #
11696 # There doesn't appear to be a way to prevent this compiler from
11697 # explicitly linking system object files so we need to strip them
11698 # from the output so that they don't get included in the library
11699 # dependencies.
11700 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'
11701 ;;
11702 *)
11703 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11704 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11705 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'
11706
11707 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11708 hardcode_libdir_separator_CXX=:
11709
11710 # Commands to make compiler produce verbose output that lists
11711 # what "hidden" libraries, object files and flags are used when
11712 # linking a shared library.
11713 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11714
11715 else
11716 # FIXME: insert proper C++ library support
11717 ld_shlibs_CXX=no
11718 fi
11719 ;;
11720 esac
11721 ;;
11722 osf4* | osf5*)
11723 case $cc_basename in
11724 KCC*)
11725 # Kuck and Associates, Inc. (KAI) C++ Compiler
11726
11727 # KCC will only create a shared library if the output file
11728 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11729 # to its proper name (with version) after linking.
11730 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'
11731
11732 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11733 hardcode_libdir_separator_CXX=:
11734
11735 # Archives containing C++ object files must be created using
11736 # the KAI C++ compiler.
11737 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11738 ;;
11739 RCC*)
11740 # Rational C++ 2.4.1
11741 # FIXME: insert proper C++ library support
11742 ld_shlibs_CXX=no
11743 ;;
11744 cxx*)
11745 allow_undefined_flag_CXX=' -expect_unresolved \*'
11746 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'
11747 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11748 echo "-hidden">> $lib.exp~
11749 $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~
11750 $rm $lib.exp'
11751
11752 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11753 hardcode_libdir_separator_CXX=:
11754
11755 # Commands to make compiler produce verbose output that lists
11756 # what "hidden" libraries, object files and flags are used when
11757 # linking a shared library.
11758 #
11759 # There doesn't appear to be a way to prevent this compiler from
11760 # explicitly linking system object files so we need to strip them
11761 # from the output so that they don't get included in the library
11762 # dependencies.
11763 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'
11764 ;;
11765 *)
11766 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11767 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11768 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'
11769
11770 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11771 hardcode_libdir_separator_CXX=:
11772
11773 # Commands to make compiler produce verbose output that lists
11774 # what "hidden" libraries, object files and flags are used when
11775 # linking a shared library.
11776 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11777
11778 else
11779 # FIXME: insert proper C++ library support
11780 ld_shlibs_CXX=no
11781 fi
11782 ;;
11783 esac
11784 ;;
11785 psos*)
11786 # FIXME: insert proper C++ library support
11787 ld_shlibs_CXX=no
11788 ;;
11789 sunos4*)
11790 case $cc_basename in
11791 CC*)
11792 # Sun C++ 4.x
11793 # FIXME: insert proper C++ library support
11794 ld_shlibs_CXX=no
11795 ;;
11796 lcc*)
11797 # Lucid
11798 # FIXME: insert proper C++ library support
11799 ld_shlibs_CXX=no
11800 ;;
11801 *)
11802 # FIXME: insert proper C++ library support
11803 ld_shlibs_CXX=no
11804 ;;
11805 esac
11806 ;;
11807 solaris*)
11808 case $cc_basename in
11809 CC*)
11810 # Sun C++ 4.2, 5.x and Centerline C++
11811 archive_cmds_need_lc_CXX=yes
11812 no_undefined_flag_CXX=' -zdefs'
11813 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11814 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11815 $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'
11816
11817 hardcode_libdir_flag_spec_CXX='-R$libdir'
11818 hardcode_shlibpath_var_CXX=no
11819 case $host_os in
11820 solaris2.[0-5] | solaris2.[0-5].*) ;;
11821 *)
0fde1ce3 11822 # The compiler driver will combine and reorder linker options,
11823 # but understands `-z linker_flag'.
d9898ee8 11824 # Supported since Solaris 2.6 (maybe 2.5.1?)
0fde1ce3 11825 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
d9898ee8 11826 ;;
11827 esac
11828 link_all_deplibs_CXX=yes
11829
11830 output_verbose_link_cmd='echo'
11831
11832 # Archives containing C++ object files must be created using
11833 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11834 # necessary to make sure instantiated templates are included
11835 # in the archive.
11836 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11837 ;;
11838 gcx*)
11839 # Green Hills C++ Compiler
11840 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11841
11842 # The C++ compiler must be used to create the archive.
11843 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11844 ;;
11845 *)
11846 # GNU C++ compiler with Solaris linker
11847 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11848 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11849 if $CC --version | grep -v '^2\.7' > /dev/null; then
11850 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11851 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11852 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11853
11854 # Commands to make compiler produce verbose output that lists
11855 # what "hidden" libraries, object files and flags are used when
11856 # linking a shared library.
11857 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11858 else
11859 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11860 # platform.
11861 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11862 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11863 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11864
11865 # Commands to make compiler produce verbose output that lists
11866 # what "hidden" libraries, object files and flags are used when
11867 # linking a shared library.
11868 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11869 fi
11870
11871 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
0fde1ce3 11872 case $host_os in
11873 solaris2.[0-5] | solaris2.[0-5].*) ;;
11874 *)
11875 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11876 ;;
11877 esac
d9898ee8 11878 fi
11879 ;;
11880 esac
11881 ;;
11882 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11883 no_undefined_flag_CXX='${wl}-z,text'
11884 archive_cmds_need_lc_CXX=no
11885 hardcode_shlibpath_var_CXX=no
11886 runpath_var='LD_RUN_PATH'
11887
11888 case $cc_basename in
11889 CC*)
11890 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11891 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11892 ;;
11893 *)
11894 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11895 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11896 ;;
11897 esac
11898 ;;
11899 sysv5* | sco3.2v5* | sco5v6*)
11900 # Note: We can NOT use -z defs as we might desire, because we do not
11901 # link with -lc, and that would cause any symbols used from libc to
11902 # always be unresolved, which means just about no library would
11903 # ever link correctly. If we're not using GNU ld we use -z text
11904 # though, which does catch some bad symbols but isn't as heavy-handed
11905 # as -z defs.
11906 # For security reasons, it is highly recommended that you always
11907 # use absolute paths for naming shared libraries, and exclude the
11908 # DT_RUNPATH tag from executables and libraries. But doing so
11909 # requires that you compile everything twice, which is a pain.
11910 # So that behaviour is only enabled if SCOABSPATH is set to a
11911 # non-empty value in the environment. Most likely only useful for
11912 # creating official distributions of packages.
11913 # This is a hack until libtool officially supports absolute path
11914 # names for shared libraries.
11915 no_undefined_flag_CXX='${wl}-z,text'
11916 allow_undefined_flag_CXX='${wl}-z,nodefs'
11917 archive_cmds_need_lc_CXX=no
11918 hardcode_shlibpath_var_CXX=no
11919 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11920 hardcode_libdir_separator_CXX=':'
11921 link_all_deplibs_CXX=yes
11922 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11923 runpath_var='LD_RUN_PATH'
11924
11925 case $cc_basename in
11926 CC*)
11927 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11928 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11929 ;;
11930 *)
11931 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11932 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11933 ;;
11934 esac
11935 ;;
11936 tandem*)
11937 case $cc_basename in
11938 NCC*)
11939 # NonStop-UX NCC 3.20
11940 # FIXME: insert proper C++ library support
11941 ld_shlibs_CXX=no
11942 ;;
11943 *)
11944 # FIXME: insert proper C++ library support
11945 ld_shlibs_CXX=no
11946 ;;
11947 esac
11948 ;;
11949 vxworks*)
11950 # FIXME: insert proper C++ library support
11951 ld_shlibs_CXX=no
11952 ;;
11953 *)
11954 # FIXME: insert proper C++ library support
11955 ld_shlibs_CXX=no
11956 ;;
11957esac
64ff59ba 11958{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11959echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d9898ee8 11960test "$ld_shlibs_CXX" = no && can_build_shared=no
11961
11962GCC_CXX="$GXX"
11963LD_CXX="$LD"
11964
11965
11966cat > conftest.$ac_ext <<EOF
11967class Foo
11968{
11969public:
11970 Foo (void) { a = 0; }
11971private:
11972 int a;
11973};
11974EOF
11975
11976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11977 (eval $ac_compile) 2>&5
11978 ac_status=$?
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); }; then
11981 # Parse the compiler output and extract the necessary
11982 # objects, libraries and library flags.
11983
11984 # Sentinel used to keep track of whether or not we are before
11985 # the conftest object file.
11986 pre_test_object_deps_done=no
11987
11988 # The `*' in the case matches for architectures that use `case' in
11989 # $output_verbose_cmd can trigger glob expansion during the loop
11990 # eval without this substitution.
11991 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11992
11993 for p in `eval $output_verbose_link_cmd`; do
11994 case $p in
11995
11996 -L* | -R* | -l*)
11997 # Some compilers place space between "-{L,R}" and the path.
11998 # Remove the space.
11999 if test $p = "-L" \
12000 || test $p = "-R"; then
12001 prev=$p
12002 continue
12003 else
12004 prev=
12005 fi
12006
12007 if test "$pre_test_object_deps_done" = no; then
12008 case $p in
12009 -L* | -R*)
12010 # Internal compiler library paths should come after those
12011 # provided the user. The postdeps already come after the
12012 # user supplied libs so there is no need to process them.
12013 if test -z "$compiler_lib_search_path_CXX"; then
12014 compiler_lib_search_path_CXX="${prev}${p}"
12015 else
12016 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12017 fi
12018 ;;
12019 # The "-l" case would never come before the object being
12020 # linked, so don't bother handling this case.
12021 esac
12022 else
12023 if test -z "$postdeps_CXX"; then
12024 postdeps_CXX="${prev}${p}"
12025 else
12026 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12027 fi
12028 fi
12029 ;;
12030
12031 *.$objext)
12032 # This assumes that the test object file only shows up
12033 # once in the compiler output.
12034 if test "$p" = "conftest.$objext"; then
12035 pre_test_object_deps_done=yes
12036 continue
12037 fi
12038
12039 if test "$pre_test_object_deps_done" = no; then
12040 if test -z "$predep_objects_CXX"; then
12041 predep_objects_CXX="$p"
12042 else
12043 predep_objects_CXX="$predep_objects_CXX $p"
12044 fi
12045 else
12046 if test -z "$postdep_objects_CXX"; then
12047 postdep_objects_CXX="$p"
12048 else
12049 postdep_objects_CXX="$postdep_objects_CXX $p"
12050 fi
12051 fi
12052 ;;
12053
12054 *) ;; # Ignore the rest.
12055
12056 esac
12057 done
12058
12059 # Clean up.
12060 rm -f a.out a.exe
12061else
12062 echo "libtool.m4: error: problem compiling CXX test program"
12063fi
12064
12065$rm -f confest.$objext
12066
12067# PORTME: override above test on systems where it is broken
12068case $host_os in
0fde1ce3 12069interix[3-9]*)
d9898ee8 12070 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12071 # hack all around it, let's just trust "g++" to DTRT.
12072 predep_objects_CXX=
12073 postdep_objects_CXX=
12074 postdeps_CXX=
12075 ;;
12076
0fde1ce3 12077linux*)
12078 case `$CC -V 2>&1 | sed 5q` in
12079 *Sun\ C*)
12080 # Sun C++ 5.9
12081 #
12082 # The more standards-conforming stlport4 library is
12083 # incompatible with the Cstd library. Avoid specifying
12084 # it if it's in CXXFLAGS. Ignore libCrun as
12085 # -library=stlport4 depends on it.
12086 case " $CXX $CXXFLAGS " in
12087 *" -library=stlport4 "*)
12088 solaris_use_stlport4=yes
12089 ;;
12090 esac
12091 if test "$solaris_use_stlport4" != yes; then
12092 postdeps_CXX='-library=Cstd -library=Crun'
12093 fi
12094 ;;
12095 esac
12096 ;;
12097
d9898ee8 12098solaris*)
12099 case $cc_basename in
12100 CC*)
0fde1ce3 12101 # The more standards-conforming stlport4 library is
12102 # incompatible with the Cstd library. Avoid specifying
12103 # it if it's in CXXFLAGS. Ignore libCrun as
12104 # -library=stlport4 depends on it.
12105 case " $CXX $CXXFLAGS " in
12106 *" -library=stlport4 "*)
12107 solaris_use_stlport4=yes
12108 ;;
12109 esac
12110
d9898ee8 12111 # Adding this requires a known-good setup of shared libraries for
12112 # Sun compiler versions before 5.6, else PIC objects from an old
12113 # archive will be linked into the output, leading to subtle bugs.
0fde1ce3 12114 if test "$solaris_use_stlport4" != yes; then
12115 postdeps_CXX='-library=Cstd -library=Crun'
12116 fi
d9898ee8 12117 ;;
12118 esac
12119 ;;
12120esac
12121
12122
12123case " $postdeps_CXX " in
12124*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12125esac
12126
12127lt_prog_compiler_wl_CXX=
12128lt_prog_compiler_pic_CXX=
12129lt_prog_compiler_static_CXX=
12130
64ff59ba 12131{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12132echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 12133
12134 # C++ specific cases for pic, static, wl, etc.
12135 if test "$GXX" = yes; then
12136 lt_prog_compiler_wl_CXX='-Wl,'
12137 lt_prog_compiler_static_CXX='-static'
12138
12139 case $host_os in
12140 aix*)
12141 # All AIX code is PIC.
12142 if test "$host_cpu" = ia64; then
12143 # AIX 5 now supports IA64 processor
12144 lt_prog_compiler_static_CXX='-Bstatic'
12145 fi
12146 ;;
12147 amigaos*)
12148 # FIXME: we need at least 68020 code to build shared libraries, but
12149 # adding the `-m68020' flag to GCC prevents building anything better,
12150 # like `-m68040'.
12151 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12152 ;;
0fde1ce3 12153 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 12154 # PIC is the default for these OSes.
12155 ;;
0fde1ce3 12156 mingw* | cygwin* | os2* | pw32*)
d9898ee8 12157 # This hack is so that the source file can tell whether it is being
12158 # built for inclusion in a dll (and should export symbols for example).
0fde1ce3 12159 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12160 # (--disable-auto-import) libraries
d9898ee8 12161 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12162 ;;
12163 darwin* | rhapsody*)
12164 # PIC is the default on this platform
12165 # Common symbols not allowed in MH_DYLIB files
12166 lt_prog_compiler_pic_CXX='-fno-common'
12167 ;;
12168 *djgpp*)
12169 # DJGPP does not support shared libraries at all
12170 lt_prog_compiler_pic_CXX=
12171 ;;
0fde1ce3 12172 interix[3-9]*)
d9898ee8 12173 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12174 # Instead, we relocate shared libraries at runtime.
12175 ;;
12176 sysv4*MP*)
12177 if test -d /usr/nec; then
12178 lt_prog_compiler_pic_CXX=-Kconform_pic
12179 fi
12180 ;;
12181 hpux*)
12182 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12183 # not for PA HP-UX.
12184 case $host_cpu in
12185 hppa*64*|ia64*)
12186 ;;
12187 *)
12188 lt_prog_compiler_pic_CXX='-fPIC'
12189 ;;
12190 esac
12191 ;;
12192 *)
12193 lt_prog_compiler_pic_CXX='-fPIC'
12194 ;;
12195 esac
12196 else
12197 case $host_os in
12198 aix4* | aix5*)
12199 # All AIX code is PIC.
12200 if test "$host_cpu" = ia64; then
12201 # AIX 5 now supports IA64 processor
12202 lt_prog_compiler_static_CXX='-Bstatic'
12203 else
12204 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12205 fi
12206 ;;
12207 chorus*)
12208 case $cc_basename in
12209 cxch68*)
12210 # Green Hills C++ Compiler
12211 # _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"
12212 ;;
12213 esac
12214 ;;
12215 darwin*)
12216 # PIC is the default on this platform
12217 # Common symbols not allowed in MH_DYLIB files
12218 case $cc_basename in
12219 xlc*)
12220 lt_prog_compiler_pic_CXX='-qnocommon'
12221 lt_prog_compiler_wl_CXX='-Wl,'
12222 ;;
12223 esac
12224 ;;
12225 dgux*)
12226 case $cc_basename in
12227 ec++*)
12228 lt_prog_compiler_pic_CXX='-KPIC'
12229 ;;
12230 ghcx*)
12231 # Green Hills C++ Compiler
12232 lt_prog_compiler_pic_CXX='-pic'
12233 ;;
12234 *)
12235 ;;
12236 esac
12237 ;;
0fde1ce3 12238 freebsd* | dragonfly*)
d9898ee8 12239 # FreeBSD uses GNU C++
12240 ;;
12241 hpux9* | hpux10* | hpux11*)
12242 case $cc_basename in
12243 CC*)
12244 lt_prog_compiler_wl_CXX='-Wl,'
12245 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12246 if test "$host_cpu" != ia64; then
12247 lt_prog_compiler_pic_CXX='+Z'
12248 fi
12249 ;;
12250 aCC*)
12251 lt_prog_compiler_wl_CXX='-Wl,'
12252 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12253 case $host_cpu in
12254 hppa*64*|ia64*)
12255 # +Z the default
12256 ;;
12257 *)
12258 lt_prog_compiler_pic_CXX='+Z'
12259 ;;
12260 esac
12261 ;;
12262 *)
12263 ;;
12264 esac
12265 ;;
12266 interix*)
12267 # This is c89, which is MS Visual C++ (no shared libs)
12268 # Anyone wants to do a port?
12269 ;;
12270 irix5* | irix6* | nonstopux*)
12271 case $cc_basename in
12272 CC*)
12273 lt_prog_compiler_wl_CXX='-Wl,'
12274 lt_prog_compiler_static_CXX='-non_shared'
12275 # CC pic flag -KPIC is the default.
12276 ;;
12277 *)
12278 ;;
12279 esac
12280 ;;
0fde1ce3 12281 linux* | k*bsd*-gnu)
d9898ee8 12282 case $cc_basename in
12283 KCC*)
12284 # KAI C++ Compiler
12285 lt_prog_compiler_wl_CXX='--backend -Wl,'
12286 lt_prog_compiler_pic_CXX='-fPIC'
12287 ;;
12288 icpc* | ecpc*)
12289 # Intel C++
12290 lt_prog_compiler_wl_CXX='-Wl,'
12291 lt_prog_compiler_pic_CXX='-KPIC'
12292 lt_prog_compiler_static_CXX='-static'
12293 ;;
12294 pgCC*)
12295 # Portland Group C++ compiler.
12296 lt_prog_compiler_wl_CXX='-Wl,'
12297 lt_prog_compiler_pic_CXX='-fpic'
12298 lt_prog_compiler_static_CXX='-Bstatic'
12299 ;;
12300 cxx*)
12301 # Compaq C++
12302 # Make sure the PIC flag is empty. It appears that all Alpha
12303 # Linux and Compaq Tru64 Unix objects are PIC.
12304 lt_prog_compiler_pic_CXX=
12305 lt_prog_compiler_static_CXX='-non_shared'
12306 ;;
12307 *)
0fde1ce3 12308 case `$CC -V 2>&1 | sed 5q` in
12309 *Sun\ C*)
12310 # Sun C++ 5.9
12311 lt_prog_compiler_pic_CXX='-KPIC'
12312 lt_prog_compiler_static_CXX='-Bstatic'
12313 lt_prog_compiler_wl_CXX='-Qoption ld '
12314 ;;
12315 esac
d9898ee8 12316 ;;
12317 esac
12318 ;;
12319 lynxos*)
12320 ;;
12321 m88k*)
12322 ;;
12323 mvs*)
12324 case $cc_basename in
12325 cxx*)
12326 lt_prog_compiler_pic_CXX='-W c,exportall'
12327 ;;
12328 *)
12329 ;;
12330 esac
12331 ;;
12332 netbsd*)
12333 ;;
12334 osf3* | osf4* | osf5*)
12335 case $cc_basename in
12336 KCC*)
12337 lt_prog_compiler_wl_CXX='--backend -Wl,'
12338 ;;
12339 RCC*)
12340 # Rational C++ 2.4.1
12341 lt_prog_compiler_pic_CXX='-pic'
12342 ;;
12343 cxx*)
12344 # Digital/Compaq C++
12345 lt_prog_compiler_wl_CXX='-Wl,'
12346 # Make sure the PIC flag is empty. It appears that all Alpha
12347 # Linux and Compaq Tru64 Unix objects are PIC.
12348 lt_prog_compiler_pic_CXX=
12349 lt_prog_compiler_static_CXX='-non_shared'
12350 ;;
12351 *)
12352 ;;
12353 esac
12354 ;;
12355 psos*)
12356 ;;
12357 solaris*)
12358 case $cc_basename in
12359 CC*)
12360 # Sun C++ 4.2, 5.x and Centerline C++
12361 lt_prog_compiler_pic_CXX='-KPIC'
12362 lt_prog_compiler_static_CXX='-Bstatic'
12363 lt_prog_compiler_wl_CXX='-Qoption ld '
12364 ;;
12365 gcx*)
12366 # Green Hills C++ Compiler
12367 lt_prog_compiler_pic_CXX='-PIC'
12368 ;;
12369 *)
12370 ;;
12371 esac
12372 ;;
12373 sunos4*)
12374 case $cc_basename in
12375 CC*)
12376 # Sun C++ 4.x
12377 lt_prog_compiler_pic_CXX='-pic'
12378 lt_prog_compiler_static_CXX='-Bstatic'
12379 ;;
12380 lcc*)
12381 # Lucid
12382 lt_prog_compiler_pic_CXX='-pic'
12383 ;;
12384 *)
12385 ;;
12386 esac
12387 ;;
12388 tandem*)
12389 case $cc_basename in
12390 NCC*)
12391 # NonStop-UX NCC 3.20
12392 lt_prog_compiler_pic_CXX='-KPIC'
12393 ;;
12394 *)
12395 ;;
12396 esac
12397 ;;
12398 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12399 case $cc_basename in
12400 CC*)
12401 lt_prog_compiler_wl_CXX='-Wl,'
12402 lt_prog_compiler_pic_CXX='-KPIC'
12403 lt_prog_compiler_static_CXX='-Bstatic'
12404 ;;
12405 esac
12406 ;;
12407 vxworks*)
12408 ;;
12409 *)
12410 lt_prog_compiler_can_build_shared_CXX=no
12411 ;;
12412 esac
12413 fi
12414
64ff59ba 12415{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12416echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
d9898ee8 12417
12418#
12419# Check to make sure the PIC flag actually works.
12420#
12421if test -n "$lt_prog_compiler_pic_CXX"; then
12422
64ff59ba 12423{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12424echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
d9898ee8 12425if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12426 echo $ECHO_N "(cached) $ECHO_C" >&6
12427else
12428 lt_prog_compiler_pic_works_CXX=no
12429 ac_outfile=conftest.$ac_objext
0fde1ce3 12430 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 12431 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12432 # Insert the option either (1) after the last *FLAGS variable, or
12433 # (2) before a word containing "conftest.", or (3) at the end.
12434 # Note that $ac_compile itself does not contain backslashes and begins
12435 # with a dollar sign (not a hyphen), so the echo should work correctly.
12436 # The option is referenced via a variable to avoid confusing sed.
12437 lt_compile=`echo "$ac_compile" | $SED \
12438 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12439 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12440 -e 's:$: $lt_compiler_flag:'`
0fde1ce3 12441 (eval echo "\"\$as_me:12441: $lt_compile\"" >&5)
d9898ee8 12442 (eval "$lt_compile" 2>conftest.err)
12443 ac_status=$?
12444 cat conftest.err >&5
0fde1ce3 12445 echo "$as_me:12445: \$? = $ac_status" >&5
d9898ee8 12446 if (exit $ac_status) && test -s "$ac_outfile"; then
12447 # The compiler can only warn and ignore the option if not recognized
12448 # So say no if there are warnings other than the usual output.
12449 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12450 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12451 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12452 lt_prog_compiler_pic_works_CXX=yes
12453 fi
12454 fi
12455 $rm conftest*
12456
12457fi
64ff59ba 12458{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12459echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
d9898ee8 12460
12461if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12462 case $lt_prog_compiler_pic_CXX in
12463 "" | " "*) ;;
12464 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12465 esac
12466else
12467 lt_prog_compiler_pic_CXX=
12468 lt_prog_compiler_can_build_shared_CXX=no
12469fi
12470
12471fi
12472case $host_os in
12473 # For platforms which do not support PIC, -DPIC is meaningless:
12474 *djgpp*)
12475 lt_prog_compiler_pic_CXX=
12476 ;;
12477 *)
12478 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12479 ;;
12480esac
12481
12482#
12483# Check to make sure the static flag actually works.
12484#
12485wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
64ff59ba 12486{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12487echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 12488if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12489 echo $ECHO_N "(cached) $ECHO_C" >&6
12490else
12491 lt_prog_compiler_static_works_CXX=no
12492 save_LDFLAGS="$LDFLAGS"
12493 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
0fde1ce3 12494 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 12495 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12496 # The linker can only warn and ignore the option if not recognized
12497 # So say no if there are warnings
12498 if test -s conftest.err; then
12499 # Append any errors to the config.log.
12500 cat conftest.err 1>&5
12501 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12502 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12503 if diff conftest.exp conftest.er2 >/dev/null; then
12504 lt_prog_compiler_static_works_CXX=yes
12505 fi
12506 else
12507 lt_prog_compiler_static_works_CXX=yes
12508 fi
12509 fi
12510 $rm conftest*
12511 LDFLAGS="$save_LDFLAGS"
12512
12513fi
64ff59ba 12514{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12515echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
d9898ee8 12516
12517if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12518 :
12519else
12520 lt_prog_compiler_static_CXX=
12521fi
12522
12523
64ff59ba 12524{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12525echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 12526if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12527 echo $ECHO_N "(cached) $ECHO_C" >&6
12528else
12529 lt_cv_prog_compiler_c_o_CXX=no
12530 $rm -r conftest 2>/dev/null
12531 mkdir conftest
12532 cd conftest
12533 mkdir out
0fde1ce3 12534 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 12535
12536 lt_compiler_flag="-o out/conftest2.$ac_objext"
12537 # Insert the option either (1) after the last *FLAGS variable, or
12538 # (2) before a word containing "conftest.", or (3) at the end.
12539 # Note that $ac_compile itself does not contain backslashes and begins
12540 # with a dollar sign (not a hyphen), so the echo should work correctly.
12541 lt_compile=`echo "$ac_compile" | $SED \
12542 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12543 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12544 -e 's:$: $lt_compiler_flag:'`
0fde1ce3 12545 (eval echo "\"\$as_me:12545: $lt_compile\"" >&5)
d9898ee8 12546 (eval "$lt_compile" 2>out/conftest.err)
12547 ac_status=$?
12548 cat out/conftest.err >&5
0fde1ce3 12549 echo "$as_me:12549: \$? = $ac_status" >&5
d9898ee8 12550 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12551 then
12552 # The compiler can only warn and ignore the option if not recognized
12553 # So say no if there are warnings
12554 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12555 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12556 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12557 lt_cv_prog_compiler_c_o_CXX=yes
12558 fi
12559 fi
12560 chmod u+w . 2>&5
12561 $rm conftest*
12562 # SGI C++ compiler will create directory out/ii_files/ for
12563 # template instantiation
12564 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12565 $rm out/* && rmdir out
12566 cd ..
12567 rmdir conftest
12568 $rm conftest*
12569
12570fi
64ff59ba 12571{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12572echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
d9898ee8 12573
12574
12575hard_links="nottested"
12576if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12577 # do not overwrite the value of need_locks provided by the user
64ff59ba 12578 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12579echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 12580 hard_links=yes
12581 $rm conftest*
12582 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12583 touch conftest.a
12584 ln conftest.a conftest.b 2>&5 || hard_links=no
12585 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 12586 { echo "$as_me:$LINENO: result: $hard_links" >&5
12587echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 12588 if test "$hard_links" = no; then
12589 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12590echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12591 need_locks=warn
12592 fi
12593else
12594 need_locks=no
12595fi
12596
64ff59ba 12597{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12598echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 12599
12600 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12601 case $host_os in
12602 aix4* | aix5*)
12603 # If we're using GNU nm, then we don't want the "-C" option.
12604 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12605 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12606 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'
12607 else
12608 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'
12609 fi
12610 ;;
12611 pw32*)
12612 export_symbols_cmds_CXX="$ltdll_cmds"
12613 ;;
12614 cygwin* | mingw*)
0fde1ce3 12615 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 12616 ;;
12617 *)
12618 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12619 ;;
12620 esac
12621
64ff59ba 12622{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12623echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d9898ee8 12624test "$ld_shlibs_CXX" = no && can_build_shared=no
12625
12626#
12627# Do we need to explicitly link libc?
12628#
12629case "x$archive_cmds_need_lc_CXX" in
12630x|xyes)
12631 # Assume -lc should be added
12632 archive_cmds_need_lc_CXX=yes
12633
12634 if test "$enable_shared" = yes && test "$GCC" = yes; then
12635 case $archive_cmds_CXX in
12636 *'~'*)
12637 # FIXME: we may have to deal with multi-command sequences.
12638 ;;
12639 '$CC '*)
12640 # Test whether the compiler implicitly links with -lc since on some
12641 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12642 # to ld, don't add -lc before -lgcc.
64ff59ba 12643 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12644echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 12645 $rm conftest*
0fde1ce3 12646 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 12647
12648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12649 (eval $ac_compile) 2>&5
12650 ac_status=$?
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); } 2>conftest.err; then
12653 soname=conftest
12654 lib=conftest
12655 libobjs=conftest.$ac_objext
12656 deplibs=
12657 wl=$lt_prog_compiler_wl_CXX
12658 pic_flag=$lt_prog_compiler_pic_CXX
12659 compiler_flags=-v
12660 linker_flags=-v
12661 verstring=
12662 output_objdir=.
12663 libname=conftest
12664 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12665 allow_undefined_flag_CXX=
12666 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12667 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12668 ac_status=$?
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); }
12671 then
12672 archive_cmds_need_lc_CXX=no
12673 else
12674 archive_cmds_need_lc_CXX=yes
12675 fi
12676 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12677 else
12678 cat conftest.err 1>&5
12679 fi
12680 $rm conftest*
64ff59ba 12681 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12682echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
d9898ee8 12683 ;;
12684 esac
12685 fi
12686 ;;
12687esac
12688
64ff59ba 12689{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12690echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 12691library_names_spec=
12692libname_spec='lib$name'
12693soname_spec=
12694shrext_cmds=".so"
12695postinstall_cmds=
12696postuninstall_cmds=
12697finish_cmds=
12698finish_eval=
12699shlibpath_var=
12700shlibpath_overrides_runpath=unknown
12701version_type=none
12702dynamic_linker="$host_os ld.so"
12703sys_lib_dlsearch_path_spec="/lib /usr/lib"
0fde1ce3 12704
d9898ee8 12705need_lib_prefix=unknown
12706hardcode_into_libs=no
12707
12708# when you set need_version to no, make sure it does not cause -set_version
12709# flags to be left without arguments
12710need_version=unknown
12711
12712case $host_os in
12713aix3*)
12714 version_type=linux
12715 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12716 shlibpath_var=LIBPATH
12717
12718 # AIX 3 has no versioning support, so we append a major version to the name.
12719 soname_spec='${libname}${release}${shared_ext}$major'
12720 ;;
12721
12722aix4* | aix5*)
12723 version_type=linux
12724 need_lib_prefix=no
12725 need_version=no
12726 hardcode_into_libs=yes
12727 if test "$host_cpu" = ia64; then
12728 # AIX 5 supports IA64
12729 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12730 shlibpath_var=LD_LIBRARY_PATH
12731 else
12732 # With GCC up to 2.95.x, collect2 would create an import file
12733 # for dependence libraries. The import file would start with
12734 # the line `#! .'. This would cause the generated library to
12735 # depend on `.', always an invalid library. This was fixed in
12736 # development snapshots of GCC prior to 3.0.
12737 case $host_os in
12738 aix4 | aix4.[01] | aix4.[01].*)
12739 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12740 echo ' yes '
12741 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12742 :
12743 else
12744 can_build_shared=no
12745 fi
12746 ;;
12747 esac
12748 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12749 # soname into executable. Probably we can add versioning support to
12750 # collect2, so additional links can be useful in future.
12751 if test "$aix_use_runtimelinking" = yes; then
12752 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12753 # instead of lib<name>.a to let people know that these are not
12754 # typical AIX shared libraries.
12755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12756 else
12757 # We preserve .a as extension for shared libraries through AIX4.2
12758 # and later when we are not doing run time linking.
12759 library_names_spec='${libname}${release}.a $libname.a'
12760 soname_spec='${libname}${release}${shared_ext}$major'
12761 fi
12762 shlibpath_var=LIBPATH
12763 fi
12764 ;;
12765
12766amigaos*)
12767 library_names_spec='$libname.ixlibrary $libname.a'
12768 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12769 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'
12770 ;;
12771
12772beos*)
12773 library_names_spec='${libname}${shared_ext}'
12774 dynamic_linker="$host_os ld.so"
12775 shlibpath_var=LIBRARY_PATH
12776 ;;
12777
12778bsdi[45]*)
12779 version_type=linux
12780 need_version=no
12781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12782 soname_spec='${libname}${release}${shared_ext}$major'
12783 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12784 shlibpath_var=LD_LIBRARY_PATH
12785 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12786 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12787 # the default ld.so.conf also contains /usr/contrib/lib and
12788 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12789 # libtool to hard-code these into programs
12790 ;;
12791
12792cygwin* | mingw* | pw32*)
12793 version_type=windows
12794 shrext_cmds=".dll"
12795 need_version=no
12796 need_lib_prefix=no
12797
12798 case $GCC,$host_os in
12799 yes,cygwin* | yes,mingw* | yes,pw32*)
12800 library_names_spec='$libname.dll.a'
12801 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12802 postinstall_cmds='base_file=`basename \${file}`~
12803 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12804 dldir=$destdir/`dirname \$dlpath`~
12805 test -d \$dldir || mkdir -p \$dldir~
12806 $install_prog $dir/$dlname \$dldir/$dlname~
12807 chmod a+x \$dldir/$dlname'
12808 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12809 dlpath=$dir/\$dldll~
12810 $rm \$dlpath'
12811 shlibpath_overrides_runpath=yes
12812
12813 case $host_os in
12814 cygwin*)
12815 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12816 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12817 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12818 ;;
12819 mingw*)
12820 # MinGW DLLs use traditional 'lib' prefix
12821 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12822 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12823 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12824 # It is most probably a Windows format PATH printed by
12825 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12826 # path with ; separators, and with drive letters. We can handle the
12827 # drive letters (cygwin fileutils understands them), so leave them,
12828 # especially as we might pass files found there to a mingw objdump,
12829 # which wouldn't understand a cygwinified path. Ahh.
12830 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12831 else
12832 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12833 fi
12834 ;;
12835 pw32*)
12836 # pw32 DLLs use 'pw' prefix rather than 'lib'
12837 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12838 ;;
12839 esac
12840 ;;
12841
12842 *)
12843 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12844 ;;
12845 esac
12846 dynamic_linker='Win32 ld.exe'
12847 # FIXME: first we should search . and the directory the executable is in
12848 shlibpath_var=PATH
12849 ;;
12850
12851darwin* | rhapsody*)
12852 dynamic_linker="$host_os dyld"
12853 version_type=darwin
12854 need_lib_prefix=no
12855 need_version=no
12856 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12857 soname_spec='${libname}${release}${major}$shared_ext'
12858 shlibpath_overrides_runpath=yes
12859 shlibpath_var=DYLD_LIBRARY_PATH
12860 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
0fde1ce3 12861
d9898ee8 12862 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12863 ;;
12864
12865dgux*)
12866 version_type=linux
12867 need_lib_prefix=no
12868 need_version=no
12869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12870 soname_spec='${libname}${release}${shared_ext}$major'
12871 shlibpath_var=LD_LIBRARY_PATH
12872 ;;
12873
12874freebsd1*)
12875 dynamic_linker=no
12876 ;;
12877
d9898ee8 12878freebsd* | dragonfly*)
12879 # DragonFly does not have aout. When/if they implement a new
12880 # versioning mechanism, adjust this.
12881 if test -x /usr/bin/objformat; then
12882 objformat=`/usr/bin/objformat`
12883 else
12884 case $host_os in
12885 freebsd[123]*) objformat=aout ;;
12886 *) objformat=elf ;;
12887 esac
12888 fi
12889 version_type=freebsd-$objformat
12890 case $version_type in
12891 freebsd-elf*)
12892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12893 need_version=no
12894 need_lib_prefix=no
12895 ;;
12896 freebsd-*)
12897 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12898 need_version=yes
12899 ;;
12900 esac
12901 shlibpath_var=LD_LIBRARY_PATH
12902 case $host_os in
12903 freebsd2*)
12904 shlibpath_overrides_runpath=yes
12905 ;;
12906 freebsd3.[01]* | freebsdelf3.[01]*)
12907 shlibpath_overrides_runpath=yes
12908 hardcode_into_libs=yes
12909 ;;
12910 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12911 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12912 shlibpath_overrides_runpath=no
12913 hardcode_into_libs=yes
12914 ;;
0fde1ce3 12915 *) # from 4.6 on, and DragonFly
d9898ee8 12916 shlibpath_overrides_runpath=yes
12917 hardcode_into_libs=yes
12918 ;;
12919 esac
12920 ;;
12921
12922gnu*)
12923 version_type=linux
12924 need_lib_prefix=no
12925 need_version=no
12926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12927 soname_spec='${libname}${release}${shared_ext}$major'
12928 shlibpath_var=LD_LIBRARY_PATH
12929 hardcode_into_libs=yes
12930 ;;
12931
12932hpux9* | hpux10* | hpux11*)
12933 # Give a soname corresponding to the major version so that dld.sl refuses to
12934 # link against other versions.
12935 version_type=sunos
12936 need_lib_prefix=no
12937 need_version=no
12938 case $host_cpu in
12939 ia64*)
12940 shrext_cmds='.so'
12941 hardcode_into_libs=yes
12942 dynamic_linker="$host_os dld.so"
12943 shlibpath_var=LD_LIBRARY_PATH
12944 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12946 soname_spec='${libname}${release}${shared_ext}$major'
12947 if test "X$HPUX_IA64_MODE" = X32; then
12948 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12949 else
12950 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12951 fi
12952 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12953 ;;
12954 hppa*64*)
12955 shrext_cmds='.sl'
12956 hardcode_into_libs=yes
12957 dynamic_linker="$host_os dld.sl"
12958 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12959 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12961 soname_spec='${libname}${release}${shared_ext}$major'
12962 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12963 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12964 ;;
12965 *)
12966 shrext_cmds='.sl'
12967 dynamic_linker="$host_os dld.sl"
12968 shlibpath_var=SHLIB_PATH
12969 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12971 soname_spec='${libname}${release}${shared_ext}$major'
12972 ;;
12973 esac
12974 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12975 postinstall_cmds='chmod 555 $lib'
12976 ;;
12977
0fde1ce3 12978interix[3-9]*)
d9898ee8 12979 version_type=linux
12980 need_lib_prefix=no
12981 need_version=no
12982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12983 soname_spec='${libname}${release}${shared_ext}$major'
12984 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12985 shlibpath_var=LD_LIBRARY_PATH
12986 shlibpath_overrides_runpath=no
12987 hardcode_into_libs=yes
12988 ;;
12989
12990irix5* | irix6* | nonstopux*)
12991 case $host_os in
12992 nonstopux*) version_type=nonstopux ;;
12993 *)
12994 if test "$lt_cv_prog_gnu_ld" = yes; then
12995 version_type=linux
12996 else
12997 version_type=irix
12998 fi ;;
12999 esac
13000 need_lib_prefix=no
13001 need_version=no
13002 soname_spec='${libname}${release}${shared_ext}$major'
13003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13004 case $host_os in
13005 irix5* | nonstopux*)
13006 libsuff= shlibsuff=
13007 ;;
13008 *)
13009 case $LD in # libtool.m4 will add one of these switches to LD
13010 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13011 libsuff= shlibsuff= libmagic=32-bit;;
13012 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13013 libsuff=32 shlibsuff=N32 libmagic=N32;;
13014 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13015 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13016 *) libsuff= shlibsuff= libmagic=never-match;;
13017 esac
13018 ;;
13019 esac
13020 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13021 shlibpath_overrides_runpath=no
13022 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13023 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13024 hardcode_into_libs=yes
13025 ;;
13026
13027# No shared lib support for Linux oldld, aout, or coff.
13028linux*oldld* | linux*aout* | linux*coff*)
13029 dynamic_linker=no
13030 ;;
13031
13032# This must be Linux ELF.
0fde1ce3 13033linux* | k*bsd*-gnu)
d9898ee8 13034 version_type=linux
13035 need_lib_prefix=no
13036 need_version=no
13037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13038 soname_spec='${libname}${release}${shared_ext}$major'
13039 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13040 shlibpath_var=LD_LIBRARY_PATH
13041 shlibpath_overrides_runpath=no
13042 # This implies no fast_install, which is unacceptable.
13043 # Some rework will be needed to allow for fast_install
13044 # before this can be enabled.
13045 hardcode_into_libs=yes
0fde1ce3 13046 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13047 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
d9898ee8 13048
13049 # Append ld.so.conf contents to the search path
13050 if test -f /etc/ld.so.conf; then
0fde1ce3 13051 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' ' '`
13052 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 13053 fi
13054
13055 # We used to test for /lib/ld.so.1 and disable shared libraries on
13056 # powerpc, because MkLinux only supported shared libraries with the
13057 # GNU dynamic linker. Since this was broken with cross compilers,
13058 # most powerpc-linux boxes support dynamic linking these days and
13059 # people can always --disable-shared, the test was removed, and we
13060 # assume the GNU/Linux dynamic linker is in use.
13061 dynamic_linker='GNU/Linux ld.so'
13062 ;;
13063
d9898ee8 13064netbsd*)
13065 version_type=sunos
13066 need_lib_prefix=no
13067 need_version=no
13068 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13070 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13071 dynamic_linker='NetBSD (a.out) ld.so'
13072 else
13073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13074 soname_spec='${libname}${release}${shared_ext}$major'
13075 dynamic_linker='NetBSD ld.elf_so'
13076 fi
13077 shlibpath_var=LD_LIBRARY_PATH
13078 shlibpath_overrides_runpath=yes
13079 hardcode_into_libs=yes
13080 ;;
13081
13082newsos6)
13083 version_type=linux
13084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13085 shlibpath_var=LD_LIBRARY_PATH
13086 shlibpath_overrides_runpath=yes
13087 ;;
13088
13089nto-qnx*)
13090 version_type=linux
13091 need_lib_prefix=no
13092 need_version=no
13093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13094 soname_spec='${libname}${release}${shared_ext}$major'
13095 shlibpath_var=LD_LIBRARY_PATH
13096 shlibpath_overrides_runpath=yes
13097 ;;
13098
13099openbsd*)
13100 version_type=sunos
13101 sys_lib_dlsearch_path_spec="/usr/lib"
13102 need_lib_prefix=no
13103 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13104 case $host_os in
13105 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13106 *) need_version=no ;;
13107 esac
13108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13109 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13110 shlibpath_var=LD_LIBRARY_PATH
13111 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13112 case $host_os in
13113 openbsd2.[89] | openbsd2.[89].*)
13114 shlibpath_overrides_runpath=no
13115 ;;
13116 *)
13117 shlibpath_overrides_runpath=yes
13118 ;;
13119 esac
13120 else
13121 shlibpath_overrides_runpath=yes
13122 fi
13123 ;;
13124
13125os2*)
13126 libname_spec='$name'
13127 shrext_cmds=".dll"
13128 need_lib_prefix=no
13129 library_names_spec='$libname${shared_ext} $libname.a'
13130 dynamic_linker='OS/2 ld.exe'
13131 shlibpath_var=LIBPATH
13132 ;;
13133
13134osf3* | osf4* | osf5*)
13135 version_type=osf
13136 need_lib_prefix=no
13137 need_version=no
13138 soname_spec='${libname}${release}${shared_ext}$major'
13139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13140 shlibpath_var=LD_LIBRARY_PATH
13141 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13142 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13143 ;;
13144
0fde1ce3 13145rdos*)
13146 dynamic_linker=no
13147 ;;
13148
d9898ee8 13149solaris*)
13150 version_type=linux
13151 need_lib_prefix=no
13152 need_version=no
13153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13154 soname_spec='${libname}${release}${shared_ext}$major'
13155 shlibpath_var=LD_LIBRARY_PATH
13156 shlibpath_overrides_runpath=yes
13157 hardcode_into_libs=yes
13158 # ldd complains unless libraries are executable
13159 postinstall_cmds='chmod +x $lib'
13160 ;;
13161
13162sunos4*)
13163 version_type=sunos
13164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13165 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13166 shlibpath_var=LD_LIBRARY_PATH
13167 shlibpath_overrides_runpath=yes
13168 if test "$with_gnu_ld" = yes; then
13169 need_lib_prefix=no
13170 fi
13171 need_version=yes
13172 ;;
13173
13174sysv4 | sysv4.3*)
13175 version_type=linux
13176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13177 soname_spec='${libname}${release}${shared_ext}$major'
13178 shlibpath_var=LD_LIBRARY_PATH
13179 case $host_vendor in
13180 sni)
13181 shlibpath_overrides_runpath=no
13182 need_lib_prefix=no
13183 export_dynamic_flag_spec='${wl}-Blargedynsym'
13184 runpath_var=LD_RUN_PATH
13185 ;;
13186 siemens)
13187 need_lib_prefix=no
13188 ;;
13189 motorola)
13190 need_lib_prefix=no
13191 need_version=no
13192 shlibpath_overrides_runpath=no
13193 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13194 ;;
13195 esac
13196 ;;
13197
13198sysv4*MP*)
13199 if test -d /usr/nec ;then
13200 version_type=linux
13201 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13202 soname_spec='$libname${shared_ext}.$major'
13203 shlibpath_var=LD_LIBRARY_PATH
13204 fi
13205 ;;
13206
13207sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13208 version_type=freebsd-elf
13209 need_lib_prefix=no
13210 need_version=no
13211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13212 soname_spec='${libname}${release}${shared_ext}$major'
13213 shlibpath_var=LD_LIBRARY_PATH
13214 hardcode_into_libs=yes
13215 if test "$with_gnu_ld" = yes; then
13216 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13217 shlibpath_overrides_runpath=no
13218 else
13219 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13220 shlibpath_overrides_runpath=yes
13221 case $host_os in
13222 sco3.2v5*)
13223 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13224 ;;
13225 esac
13226 fi
13227 sys_lib_dlsearch_path_spec='/usr/lib'
13228 ;;
13229
13230uts4*)
13231 version_type=linux
13232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13233 soname_spec='${libname}${release}${shared_ext}$major'
13234 shlibpath_var=LD_LIBRARY_PATH
13235 ;;
13236
13237*)
13238 dynamic_linker=no
13239 ;;
13240esac
64ff59ba 13241{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13242echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 13243test "$dynamic_linker" = no && can_build_shared=no
13244
13245variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13246if test "$GCC" = yes; then
13247 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13248fi
13249
64ff59ba 13250{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13251echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 13252hardcode_action_CXX=
13253if test -n "$hardcode_libdir_flag_spec_CXX" || \
13254 test -n "$runpath_var_CXX" || \
13255 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13256
13257 # We can hardcode non-existant directories.
13258 if test "$hardcode_direct_CXX" != no &&
13259 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13260 # have to relink, otherwise we might link with an installed library
13261 # when we should be linking with a yet-to-be-installed one
13262 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13263 test "$hardcode_minus_L_CXX" != no; then
13264 # Linking always hardcodes the temporary library directory.
13265 hardcode_action_CXX=relink
13266 else
13267 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13268 hardcode_action_CXX=immediate
13269 fi
13270else
13271 # We cannot hardcode anything, or else we can only hardcode existing
13272 # directories.
13273 hardcode_action_CXX=unsupported
13274fi
64ff59ba 13275{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13276echo "${ECHO_T}$hardcode_action_CXX" >&6; }
d9898ee8 13277
13278if test "$hardcode_action_CXX" = relink; then
13279 # Fast installation is not supported
13280 enable_fast_install=no
13281elif test "$shlibpath_overrides_runpath" = yes ||
13282 test "$enable_shared" = no; then
13283 # Fast installation is not necessary
13284 enable_fast_install=needless
13285fi
13286
13287
13288# The else clause should only fire when bootstrapping the
13289# libtool distribution, otherwise you forgot to ship ltmain.sh
13290# with your package, and you will get complaints that there are
13291# no rules to generate ltmain.sh.
13292if test -f "$ltmain"; then
13293 # See if we are running on zsh, and set the options which allow our commands through
13294 # without removal of \ escapes.
13295 if test -n "${ZSH_VERSION+set}" ; then
13296 setopt NO_GLOB_SUBST
13297 fi
13298 # Now quote all the things that may contain metacharacters while being
13299 # careful not to overquote the AC_SUBSTed values. We take copies of the
13300 # variables and quote the copies for generation of the libtool script.
13301 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13302 SED SHELL STRIP \
13303 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13304 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13305 deplibs_check_method reload_flag reload_cmds need_locks \
13306 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13307 lt_cv_sys_global_symbol_to_c_name_address \
13308 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13309 old_postinstall_cmds old_postuninstall_cmds \
13310 compiler_CXX \
13311 CC_CXX \
13312 LD_CXX \
13313 lt_prog_compiler_wl_CXX \
13314 lt_prog_compiler_pic_CXX \
13315 lt_prog_compiler_static_CXX \
13316 lt_prog_compiler_no_builtin_flag_CXX \
13317 export_dynamic_flag_spec_CXX \
13318 thread_safe_flag_spec_CXX \
13319 whole_archive_flag_spec_CXX \
13320 enable_shared_with_static_runtimes_CXX \
13321 old_archive_cmds_CXX \
13322 old_archive_from_new_cmds_CXX \
13323 predep_objects_CXX \
13324 postdep_objects_CXX \
13325 predeps_CXX \
13326 postdeps_CXX \
13327 compiler_lib_search_path_CXX \
13328 archive_cmds_CXX \
13329 archive_expsym_cmds_CXX \
13330 postinstall_cmds_CXX \
13331 postuninstall_cmds_CXX \
13332 old_archive_from_expsyms_cmds_CXX \
13333 allow_undefined_flag_CXX \
13334 no_undefined_flag_CXX \
13335 export_symbols_cmds_CXX \
13336 hardcode_libdir_flag_spec_CXX \
13337 hardcode_libdir_flag_spec_ld_CXX \
13338 hardcode_libdir_separator_CXX \
13339 hardcode_automatic_CXX \
13340 module_cmds_CXX \
13341 module_expsym_cmds_CXX \
13342 lt_cv_prog_compiler_c_o_CXX \
0fde1ce3 13343 fix_srcfile_path_CXX \
d9898ee8 13344 exclude_expsyms_CXX \
13345 include_expsyms_CXX; do
13346
13347 case $var in
13348 old_archive_cmds_CXX | \
13349 old_archive_from_new_cmds_CXX | \
13350 archive_cmds_CXX | \
13351 archive_expsym_cmds_CXX | \
13352 module_cmds_CXX | \
13353 module_expsym_cmds_CXX | \
13354 old_archive_from_expsyms_cmds_CXX | \
13355 export_symbols_cmds_CXX | \
13356 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13357 postinstall_cmds | postuninstall_cmds | \
13358 old_postinstall_cmds | old_postuninstall_cmds | \
13359 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13360 # Double-quote double-evaled strings.
13361 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13362 ;;
13363 *)
13364 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13365 ;;
13366 esac
13367 done
13368
13369 case $lt_echo in
13370 *'\$0 --fallback-echo"')
13371 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13372 ;;
13373 esac
13374
13375cfgfile="$ofile"
13376
13377 cat <<__EOF__ >> "$cfgfile"
13378# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13379
13380# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13381
13382# Shell to use when invoking shell scripts.
13383SHELL=$lt_SHELL
13384
13385# Whether or not to build shared libraries.
13386build_libtool_libs=$enable_shared
13387
13388# Whether or not to build static libraries.
13389build_old_libs=$enable_static
13390
13391# Whether or not to add -lc for building shared libraries.
13392build_libtool_need_lc=$archive_cmds_need_lc_CXX
13393
13394# Whether or not to disallow shared libs when runtime libs are static
13395allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13396
13397# Whether or not to optimize for fast installation.
13398fast_install=$enable_fast_install
13399
13400# The host system.
13401host_alias=$host_alias
13402host=$host
13403host_os=$host_os
13404
13405# The build system.
13406build_alias=$build_alias
13407build=$build
13408build_os=$build_os
13409
13410# An echo program that does not interpret backslashes.
13411echo=$lt_echo
13412
13413# The archiver.
13414AR=$lt_AR
13415AR_FLAGS=$lt_AR_FLAGS
13416
13417# A C compiler.
13418LTCC=$lt_LTCC
13419
13420# LTCC compiler flags.
13421LTCFLAGS=$lt_LTCFLAGS
13422
13423# A language-specific compiler.
13424CC=$lt_compiler_CXX
13425
13426# Is the compiler the GNU C compiler?
13427with_gcc=$GCC_CXX
13428
d9898ee8 13429# An ERE matcher.
13430EGREP=$lt_EGREP
13431
13432# The linker used to build libraries.
13433LD=$lt_LD_CXX
13434
13435# Whether we need hard or soft links.
13436LN_S=$lt_LN_S
13437
13438# A BSD-compatible nm program.
13439NM=$lt_NM
13440
13441# A symbol stripping program
13442STRIP=$lt_STRIP
13443
13444# Used to examine libraries when file_magic_cmd begins "file"
13445MAGIC_CMD=$MAGIC_CMD
13446
13447# Used on cygwin: DLL creation program.
13448DLLTOOL="$DLLTOOL"
13449
13450# Used on cygwin: object dumper.
13451OBJDUMP="$OBJDUMP"
13452
13453# Used on cygwin: assembler.
13454AS="$AS"
13455
13456# The name of the directory that contains temporary libtool files.
13457objdir=$objdir
13458
13459# How to create reloadable object files.
13460reload_flag=$lt_reload_flag
13461reload_cmds=$lt_reload_cmds
13462
13463# How to pass a linker flag through the compiler.
13464wl=$lt_lt_prog_compiler_wl_CXX
13465
13466# Object file suffix (normally "o").
13467objext="$ac_objext"
13468
13469# Old archive suffix (normally "a").
13470libext="$libext"
13471
13472# Shared library suffix (normally ".so").
13473shrext_cmds='$shrext_cmds'
13474
13475# Executable file suffix (normally "").
13476exeext="$exeext"
13477
13478# Additional compiler flags for building library objects.
13479pic_flag=$lt_lt_prog_compiler_pic_CXX
13480pic_mode=$pic_mode
13481
13482# What is the maximum length of a command?
13483max_cmd_len=$lt_cv_sys_max_cmd_len
13484
13485# Does compiler simultaneously support -c and -o options?
13486compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13487
13488# Must we lock files when doing compilation?
13489need_locks=$lt_need_locks
13490
13491# Do we need the lib prefix for modules?
13492need_lib_prefix=$need_lib_prefix
13493
13494# Do we need a version for libraries?
13495need_version=$need_version
13496
13497# Whether dlopen is supported.
13498dlopen_support=$enable_dlopen
13499
13500# Whether dlopen of programs is supported.
13501dlopen_self=$enable_dlopen_self
13502
13503# Whether dlopen of statically linked programs is supported.
13504dlopen_self_static=$enable_dlopen_self_static
13505
13506# Compiler flag to prevent dynamic linking.
13507link_static_flag=$lt_lt_prog_compiler_static_CXX
13508
13509# Compiler flag to turn off builtin functions.
13510no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13511
13512# Compiler flag to allow reflexive dlopens.
13513export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13514
13515# Compiler flag to generate shared objects directly from archives.
13516whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13517
13518# Compiler flag to generate thread-safe objects.
13519thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13520
13521# Library versioning type.
13522version_type=$version_type
13523
13524# Format of library name prefix.
13525libname_spec=$lt_libname_spec
13526
13527# List of archive names. First name is the real one, the rest are links.
13528# The last name is the one that the linker finds with -lNAME.
13529library_names_spec=$lt_library_names_spec
13530
13531# The coded name of the library, if different from the real name.
13532soname_spec=$lt_soname_spec
13533
13534# Commands used to build and install an old-style archive.
13535RANLIB=$lt_RANLIB
13536old_archive_cmds=$lt_old_archive_cmds_CXX
13537old_postinstall_cmds=$lt_old_postinstall_cmds
13538old_postuninstall_cmds=$lt_old_postuninstall_cmds
13539
13540# Create an old-style archive from a shared archive.
13541old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13542
13543# Create a temporary old-style archive to link instead of a shared archive.
13544old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13545
13546# Commands used to build and install a shared archive.
13547archive_cmds=$lt_archive_cmds_CXX
13548archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13549postinstall_cmds=$lt_postinstall_cmds
13550postuninstall_cmds=$lt_postuninstall_cmds
13551
13552# Commands used to build a loadable module (assumed same as above if empty)
13553module_cmds=$lt_module_cmds_CXX
13554module_expsym_cmds=$lt_module_expsym_cmds_CXX
13555
13556# Commands to strip libraries.
13557old_striplib=$lt_old_striplib
13558striplib=$lt_striplib
13559
13560# Dependencies to place before the objects being linked to create a
13561# shared library.
64ff59ba 13562predep_objects=$lt_predep_objects_CXX
d9898ee8 13563
13564# Dependencies to place after the objects being linked to create a
13565# shared library.
64ff59ba 13566postdep_objects=$lt_postdep_objects_CXX
d9898ee8 13567
13568# Dependencies to place before the objects being linked to create a
13569# shared library.
13570predeps=$lt_predeps_CXX
13571
13572# Dependencies to place after the objects being linked to create a
13573# shared library.
13574postdeps=$lt_postdeps_CXX
13575
13576# The library search path used internally by the compiler when linking
13577# a shared library.
64ff59ba 13578compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
d9898ee8 13579
13580# Method to check whether dependent libraries are shared objects.
13581deplibs_check_method=$lt_deplibs_check_method
13582
13583# Command to use when deplibs_check_method == file_magic.
13584file_magic_cmd=$lt_file_magic_cmd
13585
13586# Flag that allows shared libraries with undefined symbols to be built.
13587allow_undefined_flag=$lt_allow_undefined_flag_CXX
13588
13589# Flag that forces no undefined symbols.
13590no_undefined_flag=$lt_no_undefined_flag_CXX
13591
13592# Commands used to finish a libtool library installation in a directory.
13593finish_cmds=$lt_finish_cmds
13594
13595# Same as above, but a single script fragment to be evaled but not shown.
13596finish_eval=$lt_finish_eval
13597
13598# Take the output of nm and produce a listing of raw symbols and C names.
13599global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13600
13601# Transform the output of nm in a proper C declaration
13602global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13603
13604# Transform the output of nm in a C name address pair
13605global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13606
13607# This is the shared library runtime path variable.
13608runpath_var=$runpath_var
13609
13610# This is the shared library path variable.
13611shlibpath_var=$shlibpath_var
13612
13613# Is shlibpath searched before the hard-coded library search path?
13614shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13615
13616# How to hardcode a shared library path into an executable.
13617hardcode_action=$hardcode_action_CXX
13618
13619# Whether we should hardcode library paths into libraries.
13620hardcode_into_libs=$hardcode_into_libs
13621
13622# Flag to hardcode \$libdir into a binary during linking.
13623# This must work even if \$libdir does not exist.
13624hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13625
13626# If ld is used when linking, flag to hardcode \$libdir into
13627# a binary during linking. This must work even if \$libdir does
13628# not exist.
13629hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13630
13631# Whether we need a single -rpath flag with a separated argument.
13632hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13633
13634# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13635# resulting binary.
13636hardcode_direct=$hardcode_direct_CXX
13637
13638# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13639# resulting binary.
13640hardcode_minus_L=$hardcode_minus_L_CXX
13641
13642# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13643# the resulting binary.
13644hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13645
13646# Set to yes if building a shared library automatically hardcodes DIR into the library
13647# and all subsequent libraries and executables linked against it.
13648hardcode_automatic=$hardcode_automatic_CXX
13649
13650# Variables whose values should be saved in libtool wrapper scripts and
13651# restored at relink time.
13652variables_saved_for_relink="$variables_saved_for_relink"
13653
13654# Whether libtool must link a program against all its dependency libraries.
13655link_all_deplibs=$link_all_deplibs_CXX
13656
13657# Compile-time system search path for libraries
64ff59ba 13658sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 13659
13660# Run-time system search path for libraries
13661sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13662
13663# Fix the shell variable \$srcfile for the compiler.
0fde1ce3 13664fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 13665
13666# Set to yes if exported symbols are required.
13667always_export_symbols=$always_export_symbols_CXX
13668
13669# The commands to list exported symbols.
13670export_symbols_cmds=$lt_export_symbols_cmds_CXX
13671
13672# The commands to extract the exported symbol list from a shared archive.
13673extract_expsyms_cmds=$lt_extract_expsyms_cmds
13674
13675# Symbols that should not be listed in the preloaded symbols.
13676exclude_expsyms=$lt_exclude_expsyms_CXX
13677
13678# Symbols that must always be exported.
13679include_expsyms=$lt_include_expsyms_CXX
13680
13681# ### END LIBTOOL TAG CONFIG: $tagname
13682
13683__EOF__
13684
13685
13686else
13687 # If there is no Makefile yet, we rely on a make rule to execute
13688 # `config.status --recheck' to rerun these tests and create the
13689 # libtool script then.
13690 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13691 if test -f "$ltmain_in"; then
13692 test -f Makefile && make "$ltmain"
13693 fi
13694fi
13695
13696
13697ac_ext=c
13698ac_cpp='$CPP $CPPFLAGS'
13699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13701ac_compiler_gnu=$ac_cv_c_compiler_gnu
13702
13703CC=$lt_save_CC
13704LDCXX=$LD
13705LD=$lt_save_LD
13706GCC=$lt_save_GCC
13707with_gnu_ldcxx=$with_gnu_ld
13708with_gnu_ld=$lt_save_with_gnu_ld
13709lt_cv_path_LDCXX=$lt_cv_path_LD
13710lt_cv_path_LD=$lt_save_path_LD
13711lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13712lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13713
13714 else
13715 tagname=""
13716 fi
13717 ;;
13718
13719 F77)
13720 if test -n "$F77" && test "X$F77" != "Xno"; then
13721
13722ac_ext=f
13723ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13724ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13725ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13726
13727
13728archive_cmds_need_lc_F77=no
13729allow_undefined_flag_F77=
13730always_export_symbols_F77=no
13731archive_expsym_cmds_F77=
13732export_dynamic_flag_spec_F77=
13733hardcode_direct_F77=no
13734hardcode_libdir_flag_spec_F77=
13735hardcode_libdir_flag_spec_ld_F77=
13736hardcode_libdir_separator_F77=
13737hardcode_minus_L_F77=no
13738hardcode_automatic_F77=no
13739module_cmds_F77=
13740module_expsym_cmds_F77=
13741link_all_deplibs_F77=unknown
13742old_archive_cmds_F77=$old_archive_cmds
13743no_undefined_flag_F77=
13744whole_archive_flag_spec_F77=
13745enable_shared_with_static_runtimes_F77=no
13746
13747# Source file extension for f77 test sources.
13748ac_ext=f
13749
13750# Object file extension for compiled f77 test sources.
13751objext=o
13752objext_F77=$objext
13753
13754# Code to be used in simple compile tests
0fde1ce3 13755lt_simple_compile_test_code="\
13756 subroutine t
13757 return
13758 end
13759"
d9898ee8 13760
13761# Code to be used in simple link tests
0fde1ce3 13762lt_simple_link_test_code="\
13763 program t
13764 end
13765"
d9898ee8 13766
13767# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13768
13769# If no C compiler was specified, use CC.
13770LTCC=${LTCC-"$CC"}
13771
13772# If no C compiler flags were specified, use CFLAGS.
13773LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13774
13775# Allow CC to be a program name with arguments.
13776compiler=$CC
13777
13778
13779# save warnings/boilerplate of simple test code
13780ac_outfile=conftest.$ac_objext
0fde1ce3 13781echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 13782eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13783_lt_compiler_boilerplate=`cat conftest.err`
13784$rm conftest*
13785
13786ac_outfile=conftest.$ac_objext
0fde1ce3 13787echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 13788eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13789_lt_linker_boilerplate=`cat conftest.err`
13790$rm conftest*
13791
13792
13793# Allow CC to be a program name with arguments.
13794lt_save_CC="$CC"
13795CC=${F77-"f77"}
13796compiler=$CC
13797compiler_F77=$CC
13798for cc_temp in $compiler""; do
13799 case $cc_temp in
13800 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13801 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13802 \-*) ;;
13803 *) break;;
13804 esac
13805done
13806cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13807
13808
64ff59ba 13809{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13810echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13811{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13812echo "${ECHO_T}$can_build_shared" >&6; }
d9898ee8 13813
64ff59ba 13814{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13815echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d9898ee8 13816test "$can_build_shared" = "no" && enable_shared=no
13817
13818# On AIX, shared libraries and static libraries use the same namespace, and
13819# are all built from PIC.
13820case $host_os in
13821aix3*)
13822 test "$enable_shared" = yes && enable_static=no
13823 if test -n "$RANLIB"; then
13824 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13825 postinstall_cmds='$RANLIB $lib'
13826 fi
13827 ;;
13828aix4* | aix5*)
13829 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13830 test "$enable_shared" = yes && enable_static=no
13831 fi
13832 ;;
13833esac
64ff59ba 13834{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13835echo "${ECHO_T}$enable_shared" >&6; }
d9898ee8 13836
64ff59ba 13837{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13838echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d9898ee8 13839# Make sure either enable_shared or enable_static is yes.
13840test "$enable_shared" = yes || enable_static=yes
64ff59ba 13841{ echo "$as_me:$LINENO: result: $enable_static" >&5
13842echo "${ECHO_T}$enable_static" >&6; }
d9898ee8 13843
13844GCC_F77="$G77"
13845LD_F77="$LD"
13846
13847lt_prog_compiler_wl_F77=
13848lt_prog_compiler_pic_F77=
13849lt_prog_compiler_static_F77=
13850
64ff59ba 13851{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13852echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 13853
13854 if test "$GCC" = yes; then
13855 lt_prog_compiler_wl_F77='-Wl,'
13856 lt_prog_compiler_static_F77='-static'
13857
13858 case $host_os in
13859 aix*)
13860 # All AIX code is PIC.
13861 if test "$host_cpu" = ia64; then
13862 # AIX 5 now supports IA64 processor
13863 lt_prog_compiler_static_F77='-Bstatic'
13864 fi
13865 ;;
13866
13867 amigaos*)
13868 # FIXME: we need at least 68020 code to build shared libraries, but
13869 # adding the `-m68020' flag to GCC prevents building anything better,
13870 # like `-m68040'.
13871 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13872 ;;
13873
0fde1ce3 13874 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 13875 # PIC is the default for these OSes.
13876 ;;
13877
0fde1ce3 13878 mingw* | cygwin* | pw32* | os2*)
d9898ee8 13879 # This hack is so that the source file can tell whether it is being
13880 # built for inclusion in a dll (and should export symbols for example).
0fde1ce3 13881 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13882 # (--disable-auto-import) libraries
d9898ee8 13883 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13884 ;;
13885
13886 darwin* | rhapsody*)
13887 # PIC is the default on this platform
13888 # Common symbols not allowed in MH_DYLIB files
13889 lt_prog_compiler_pic_F77='-fno-common'
13890 ;;
13891
0fde1ce3 13892 interix[3-9]*)
d9898ee8 13893 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13894 # Instead, we relocate shared libraries at runtime.
13895 ;;
13896
13897 msdosdjgpp*)
13898 # Just because we use GCC doesn't mean we suddenly get shared libraries
13899 # on systems that don't support them.
13900 lt_prog_compiler_can_build_shared_F77=no
13901 enable_shared=no
13902 ;;
13903
13904 sysv4*MP*)
13905 if test -d /usr/nec; then
13906 lt_prog_compiler_pic_F77=-Kconform_pic
13907 fi
13908 ;;
13909
13910 hpux*)
13911 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13912 # not for PA HP-UX.
13913 case $host_cpu in
13914 hppa*64*|ia64*)
13915 # +Z the default
13916 ;;
13917 *)
13918 lt_prog_compiler_pic_F77='-fPIC'
13919 ;;
13920 esac
13921 ;;
13922
13923 *)
13924 lt_prog_compiler_pic_F77='-fPIC'
13925 ;;
13926 esac
13927 else
13928 # PORTME Check for flag to pass linker flags through the system compiler.
13929 case $host_os in
13930 aix*)
13931 lt_prog_compiler_wl_F77='-Wl,'
13932 if test "$host_cpu" = ia64; then
13933 # AIX 5 now supports IA64 processor
13934 lt_prog_compiler_static_F77='-Bstatic'
13935 else
13936 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13937 fi
13938 ;;
13939 darwin*)
13940 # PIC is the default on this platform
13941 # Common symbols not allowed in MH_DYLIB files
13942 case $cc_basename in
13943 xlc*)
13944 lt_prog_compiler_pic_F77='-qnocommon'
13945 lt_prog_compiler_wl_F77='-Wl,'
13946 ;;
13947 esac
13948 ;;
13949
0fde1ce3 13950 mingw* | cygwin* | pw32* | os2*)
d9898ee8 13951 # This hack is so that the source file can tell whether it is being
13952 # built for inclusion in a dll (and should export symbols for example).
13953 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13954 ;;
13955
13956 hpux9* | hpux10* | hpux11*)
13957 lt_prog_compiler_wl_F77='-Wl,'
13958 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13959 # not for PA HP-UX.
13960 case $host_cpu in
13961 hppa*64*|ia64*)
13962 # +Z the default
13963 ;;
13964 *)
13965 lt_prog_compiler_pic_F77='+Z'
13966 ;;
13967 esac
13968 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13969 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13970 ;;
13971
13972 irix5* | irix6* | nonstopux*)
13973 lt_prog_compiler_wl_F77='-Wl,'
13974 # PIC (with -KPIC) is the default.
13975 lt_prog_compiler_static_F77='-non_shared'
13976 ;;
13977
13978 newsos6)
13979 lt_prog_compiler_pic_F77='-KPIC'
13980 lt_prog_compiler_static_F77='-Bstatic'
13981 ;;
13982
0fde1ce3 13983 linux* | k*bsd*-gnu)
d9898ee8 13984 case $cc_basename in
13985 icc* | ecc*)
13986 lt_prog_compiler_wl_F77='-Wl,'
13987 lt_prog_compiler_pic_F77='-KPIC'
13988 lt_prog_compiler_static_F77='-static'
13989 ;;
13990 pgcc* | pgf77* | pgf90* | pgf95*)
13991 # Portland Group compilers (*not* the Pentium gcc compiler,
13992 # which looks to be a dead project)
13993 lt_prog_compiler_wl_F77='-Wl,'
13994 lt_prog_compiler_pic_F77='-fpic'
13995 lt_prog_compiler_static_F77='-Bstatic'
13996 ;;
13997 ccc*)
13998 lt_prog_compiler_wl_F77='-Wl,'
13999 # All Alpha code is PIC.
14000 lt_prog_compiler_static_F77='-non_shared'
14001 ;;
0fde1ce3 14002 *)
14003 case `$CC -V 2>&1 | sed 5q` in
14004 *Sun\ C*)
14005 # Sun C 5.9
14006 lt_prog_compiler_pic_F77='-KPIC'
14007 lt_prog_compiler_static_F77='-Bstatic'
14008 lt_prog_compiler_wl_F77='-Wl,'
14009 ;;
14010 *Sun\ F*)
14011 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14012 lt_prog_compiler_pic_F77='-KPIC'
14013 lt_prog_compiler_static_F77='-Bstatic'
14014 lt_prog_compiler_wl_F77=''
14015 ;;
14016 esac
14017 ;;
d9898ee8 14018 esac
14019 ;;
14020
14021 osf3* | osf4* | osf5*)
14022 lt_prog_compiler_wl_F77='-Wl,'
14023 # All OSF/1 code is PIC.
14024 lt_prog_compiler_static_F77='-non_shared'
14025 ;;
14026
0fde1ce3 14027 rdos*)
14028 lt_prog_compiler_static_F77='-non_shared'
14029 ;;
14030
d9898ee8 14031 solaris*)
14032 lt_prog_compiler_pic_F77='-KPIC'
14033 lt_prog_compiler_static_F77='-Bstatic'
14034 case $cc_basename in
14035 f77* | f90* | f95*)
14036 lt_prog_compiler_wl_F77='-Qoption ld ';;
14037 *)
14038 lt_prog_compiler_wl_F77='-Wl,';;
14039 esac
14040 ;;
14041
14042 sunos4*)
14043 lt_prog_compiler_wl_F77='-Qoption ld '
14044 lt_prog_compiler_pic_F77='-PIC'
14045 lt_prog_compiler_static_F77='-Bstatic'
14046 ;;
14047
14048 sysv4 | sysv4.2uw2* | sysv4.3*)
14049 lt_prog_compiler_wl_F77='-Wl,'
14050 lt_prog_compiler_pic_F77='-KPIC'
14051 lt_prog_compiler_static_F77='-Bstatic'
14052 ;;
14053
14054 sysv4*MP*)
14055 if test -d /usr/nec ;then
14056 lt_prog_compiler_pic_F77='-Kconform_pic'
14057 lt_prog_compiler_static_F77='-Bstatic'
14058 fi
14059 ;;
14060
14061 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14062 lt_prog_compiler_wl_F77='-Wl,'
14063 lt_prog_compiler_pic_F77='-KPIC'
14064 lt_prog_compiler_static_F77='-Bstatic'
14065 ;;
14066
14067 unicos*)
14068 lt_prog_compiler_wl_F77='-Wl,'
14069 lt_prog_compiler_can_build_shared_F77=no
14070 ;;
14071
14072 uts4*)
14073 lt_prog_compiler_pic_F77='-pic'
14074 lt_prog_compiler_static_F77='-Bstatic'
14075 ;;
14076
14077 *)
14078 lt_prog_compiler_can_build_shared_F77=no
14079 ;;
14080 esac
14081 fi
14082
64ff59ba 14083{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14084echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
d9898ee8 14085
14086#
14087# Check to make sure the PIC flag actually works.
14088#
14089if test -n "$lt_prog_compiler_pic_F77"; then
14090
64ff59ba 14091{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14092echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
d9898ee8 14093if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14094 echo $ECHO_N "(cached) $ECHO_C" >&6
14095else
14096 lt_prog_compiler_pic_works_F77=no
14097 ac_outfile=conftest.$ac_objext
0fde1ce3 14098 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 14099 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14100 # Insert the option either (1) after the last *FLAGS variable, or
14101 # (2) before a word containing "conftest.", or (3) at the end.
14102 # Note that $ac_compile itself does not contain backslashes and begins
14103 # with a dollar sign (not a hyphen), so the echo should work correctly.
14104 # The option is referenced via a variable to avoid confusing sed.
14105 lt_compile=`echo "$ac_compile" | $SED \
14106 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14108 -e 's:$: $lt_compiler_flag:'`
0fde1ce3 14109 (eval echo "\"\$as_me:14109: $lt_compile\"" >&5)
d9898ee8 14110 (eval "$lt_compile" 2>conftest.err)
14111 ac_status=$?
14112 cat conftest.err >&5
0fde1ce3 14113 echo "$as_me:14113: \$? = $ac_status" >&5
d9898ee8 14114 if (exit $ac_status) && test -s "$ac_outfile"; then
14115 # The compiler can only warn and ignore the option if not recognized
14116 # So say no if there are warnings other than the usual output.
14117 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14118 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14119 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14120 lt_prog_compiler_pic_works_F77=yes
14121 fi
14122 fi
14123 $rm conftest*
14124
14125fi
64ff59ba 14126{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14127echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
d9898ee8 14128
14129if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14130 case $lt_prog_compiler_pic_F77 in
14131 "" | " "*) ;;
14132 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14133 esac
14134else
14135 lt_prog_compiler_pic_F77=
14136 lt_prog_compiler_can_build_shared_F77=no
14137fi
14138
14139fi
14140case $host_os in
14141 # For platforms which do not support PIC, -DPIC is meaningless:
14142 *djgpp*)
14143 lt_prog_compiler_pic_F77=
14144 ;;
14145 *)
14146 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14147 ;;
14148esac
14149
14150#
14151# Check to make sure the static flag actually works.
14152#
14153wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
64ff59ba 14154{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14155echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 14156if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14157 echo $ECHO_N "(cached) $ECHO_C" >&6
14158else
14159 lt_prog_compiler_static_works_F77=no
14160 save_LDFLAGS="$LDFLAGS"
14161 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
0fde1ce3 14162 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 14163 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14164 # The linker can only warn and ignore the option if not recognized
14165 # So say no if there are warnings
14166 if test -s conftest.err; then
14167 # Append any errors to the config.log.
14168 cat conftest.err 1>&5
14169 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14170 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14171 if diff conftest.exp conftest.er2 >/dev/null; then
14172 lt_prog_compiler_static_works_F77=yes
14173 fi
14174 else
14175 lt_prog_compiler_static_works_F77=yes
14176 fi
14177 fi
14178 $rm conftest*
14179 LDFLAGS="$save_LDFLAGS"
14180
14181fi
64ff59ba 14182{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14183echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
d9898ee8 14184
14185if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14186 :
14187else
14188 lt_prog_compiler_static_F77=
14189fi
14190
14191
64ff59ba 14192{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14193echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 14194if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14195 echo $ECHO_N "(cached) $ECHO_C" >&6
14196else
14197 lt_cv_prog_compiler_c_o_F77=no
14198 $rm -r conftest 2>/dev/null
14199 mkdir conftest
14200 cd conftest
14201 mkdir out
0fde1ce3 14202 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 14203
14204 lt_compiler_flag="-o out/conftest2.$ac_objext"
14205 # Insert the option either (1) after the last *FLAGS variable, or
14206 # (2) before a word containing "conftest.", or (3) at the end.
14207 # Note that $ac_compile itself does not contain backslashes and begins
14208 # with a dollar sign (not a hyphen), so the echo should work correctly.
14209 lt_compile=`echo "$ac_compile" | $SED \
14210 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14211 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14212 -e 's:$: $lt_compiler_flag:'`
0fde1ce3 14213 (eval echo "\"\$as_me:14213: $lt_compile\"" >&5)
d9898ee8 14214 (eval "$lt_compile" 2>out/conftest.err)
14215 ac_status=$?
14216 cat out/conftest.err >&5
0fde1ce3 14217 echo "$as_me:14217: \$? = $ac_status" >&5
d9898ee8 14218 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14219 then
14220 # The compiler can only warn and ignore the option if not recognized
14221 # So say no if there are warnings
14222 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14223 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14224 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14225 lt_cv_prog_compiler_c_o_F77=yes
14226 fi
14227 fi
14228 chmod u+w . 2>&5
14229 $rm conftest*
14230 # SGI C++ compiler will create directory out/ii_files/ for
14231 # template instantiation
14232 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14233 $rm out/* && rmdir out
14234 cd ..
14235 rmdir conftest
14236 $rm conftest*
14237
14238fi
64ff59ba 14239{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14240echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
d9898ee8 14241
14242
14243hard_links="nottested"
14244if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14245 # do not overwrite the value of need_locks provided by the user
64ff59ba 14246 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14247echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 14248 hard_links=yes
14249 $rm conftest*
14250 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14251 touch conftest.a
14252 ln conftest.a conftest.b 2>&5 || hard_links=no
14253 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 14254 { echo "$as_me:$LINENO: result: $hard_links" >&5
14255echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 14256 if test "$hard_links" = no; then
14257 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14258echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14259 need_locks=warn
14260 fi
14261else
14262 need_locks=no
14263fi
14264
64ff59ba 14265{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14266echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 14267
14268 runpath_var=
14269 allow_undefined_flag_F77=
14270 enable_shared_with_static_runtimes_F77=no
14271 archive_cmds_F77=
14272 archive_expsym_cmds_F77=
14273 old_archive_From_new_cmds_F77=
14274 old_archive_from_expsyms_cmds_F77=
14275 export_dynamic_flag_spec_F77=
14276 whole_archive_flag_spec_F77=
14277 thread_safe_flag_spec_F77=
14278 hardcode_libdir_flag_spec_F77=
14279 hardcode_libdir_flag_spec_ld_F77=
14280 hardcode_libdir_separator_F77=
14281 hardcode_direct_F77=no
14282 hardcode_minus_L_F77=no
14283 hardcode_shlibpath_var_F77=unsupported
14284 link_all_deplibs_F77=unknown
14285 hardcode_automatic_F77=no
14286 module_cmds_F77=
14287 module_expsym_cmds_F77=
14288 always_export_symbols_F77=no
14289 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14290 # include_expsyms should be a list of space-separated symbols to be *always*
14291 # included in the symbol list
14292 include_expsyms_F77=
14293 # exclude_expsyms can be an extended regexp of symbols to exclude
14294 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14295 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14296 # as well as any symbol that contains `d'.
14297 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14298 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14299 # platforms (ab)use it in PIC code, but their linkers get confused if
14300 # the symbol is explicitly referenced. Since portable code cannot
14301 # rely on this symbol name, it's probably fine to never include it in
14302 # preloaded symbol tables.
14303 extract_expsyms_cmds=
14304 # Just being paranoid about ensuring that cc_basename is set.
14305 for cc_temp in $compiler""; do
14306 case $cc_temp in
14307 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14308 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14309 \-*) ;;
14310 *) break;;
14311 esac
14312done
14313cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14314
14315 case $host_os in
14316 cygwin* | mingw* | pw32*)
14317 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14318 # When not using gcc, we currently assume that we are using
14319 # Microsoft Visual C++.
14320 if test "$GCC" != yes; then
14321 with_gnu_ld=no
14322 fi
14323 ;;
14324 interix*)
14325 # we just hope/assume this is gcc and not c89 (= MSVC++)
14326 with_gnu_ld=yes
14327 ;;
14328 openbsd*)
14329 with_gnu_ld=no
14330 ;;
14331 esac
14332
14333 ld_shlibs_F77=yes
14334 if test "$with_gnu_ld" = yes; then
14335 # If archive_cmds runs LD, not CC, wlarc should be empty
14336 wlarc='${wl}'
14337
14338 # Set some defaults for GNU ld with shared library support. These
14339 # are reset later if shared libraries are not supported. Putting them
14340 # here allows them to be overridden if necessary.
14341 runpath_var=LD_RUN_PATH
14342 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14343 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14344 # ancient GNU ld didn't support --whole-archive et. al.
14345 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14346 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14347 else
14348 whole_archive_flag_spec_F77=
14349 fi
14350 supports_anon_versioning=no
14351 case `$LD -v 2>/dev/null` in
14352 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14353 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14354 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14355 *\ 2.11.*) ;; # other 2.11 versions
14356 *) supports_anon_versioning=yes ;;
14357 esac
14358
14359 # See if GNU ld supports shared libraries.
14360 case $host_os in
14361 aix3* | aix4* | aix5*)
14362 # On AIX/PPC, the GNU linker is very broken
14363 if test "$host_cpu" != ia64; then
14364 ld_shlibs_F77=no
14365 cat <<EOF 1>&2
14366
14367*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14368*** to be unable to reliably create shared libraries on AIX.
14369*** Therefore, libtool is disabling shared libraries support. If you
14370*** really care for shared libraries, you may want to modify your PATH
14371*** so that a non-GNU linker is found, and then restart.
14372
14373EOF
14374 fi
14375 ;;
14376
14377 amigaos*)
14378 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)'
14379 hardcode_libdir_flag_spec_F77='-L$libdir'
14380 hardcode_minus_L_F77=yes
14381
14382 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14383 # that the semantics of dynamic libraries on AmigaOS, at least up
14384 # to version 4, is to share data among multiple programs linked
14385 # with the same dynamic library. Since this doesn't match the
14386 # behavior of shared libraries on other platforms, we can't use
14387 # them.
14388 ld_shlibs_F77=no
14389 ;;
14390
14391 beos*)
14392 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14393 allow_undefined_flag_F77=unsupported
14394 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14395 # support --undefined. This deserves some investigation. FIXME
14396 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14397 else
14398 ld_shlibs_F77=no
14399 fi
14400 ;;
14401
14402 cygwin* | mingw* | pw32*)
14403 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14404 # as there is no search path for DLLs.
14405 hardcode_libdir_flag_spec_F77='-L$libdir'
14406 allow_undefined_flag_F77=unsupported
14407 always_export_symbols_F77=no
14408 enable_shared_with_static_runtimes_F77=yes
0fde1ce3 14409 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d9898ee8 14410
14411 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14412 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14413 # If the export-symbols file already is a .def file (1st line
14414 # is EXPORTS), use it as is; otherwise, prepend...
14415 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14416 cp $export_symbols $output_objdir/$soname.def;
14417 else
14418 echo EXPORTS > $output_objdir/$soname.def;
14419 cat $export_symbols >> $output_objdir/$soname.def;
14420 fi~
14421 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14422 else
14423 ld_shlibs_F77=no
14424 fi
14425 ;;
14426
0fde1ce3 14427 interix[3-9]*)
d9898ee8 14428 hardcode_direct_F77=no
14429 hardcode_shlibpath_var_F77=no
14430 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14431 export_dynamic_flag_spec_F77='${wl}-E'
14432 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14433 # Instead, shared libraries are loaded at an image base (0x10000000 by
14434 # default) and relocated if they conflict, which is a slow very memory
14435 # consuming and fragmenting process. To avoid this, we pick a random,
14436 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14437 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14438 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'
14439 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'
14440 ;;
14441
0fde1ce3 14442 gnu* | linux* | k*bsd*-gnu)
d9898ee8 14443 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14444 tmp_addflag=
14445 case $cc_basename,$host_cpu in
14446 pgcc*) # Portland Group C compiler
14447 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'
14448 tmp_addflag=' $pic_flag'
14449 ;;
14450 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14451 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'
14452 tmp_addflag=' $pic_flag -Mnomain' ;;
14453 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14454 tmp_addflag=' -i_dynamic' ;;
14455 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14456 tmp_addflag=' -i_dynamic -nofor_main' ;;
14457 ifc* | ifort*) # Intel Fortran compiler
14458 tmp_addflag=' -nofor_main' ;;
14459 esac
0fde1ce3 14460 case `$CC -V 2>&1 | sed 5q` in
14461 *Sun\ C*) # Sun C 5.9
14462 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'
14463 tmp_sharedflag='-G' ;;
14464 *Sun\ F*) # Sun Fortran 8.3
14465 tmp_sharedflag='-G' ;;
14466 *)
14467 tmp_sharedflag='-shared' ;;
14468 esac
14469 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 14470
14471 if test $supports_anon_versioning = yes; then
14472 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14473 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14474 $echo "local: *; };" >> $output_objdir/$libname.ver~
0fde1ce3 14475 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
d9898ee8 14476 fi
14477 else
14478 ld_shlibs_F77=no
14479 fi
14480 ;;
14481
14482 netbsd*)
14483 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14484 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14485 wlarc=
14486 else
14487 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14488 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14489 fi
14490 ;;
14491
14492 solaris*)
14493 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14494 ld_shlibs_F77=no
14495 cat <<EOF 1>&2
14496
14497*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14498*** create shared libraries on Solaris systems. Therefore, libtool
14499*** is disabling shared libraries support. We urge you to upgrade GNU
14500*** binutils to release 2.9.1 or newer. Another option is to modify
14501*** your PATH or compiler configuration so that the native linker is
14502*** used, and then restart.
14503
14504EOF
14505 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14506 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14507 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14508 else
14509 ld_shlibs_F77=no
14510 fi
14511 ;;
14512
14513 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14514 case `$LD -v 2>&1` in
14515 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14516 ld_shlibs_F77=no
14517 cat <<_LT_EOF 1>&2
14518
14519*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14520*** reliably create shared libraries on SCO systems. Therefore, libtool
14521*** is disabling shared libraries support. We urge you to upgrade GNU
14522*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14523*** your PATH or compiler configuration so that the native linker is
14524*** used, and then restart.
14525
14526_LT_EOF
14527 ;;
14528 *)
14529 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14530 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14531 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14532 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14533 else
14534 ld_shlibs_F77=no
14535 fi
14536 ;;
14537 esac
14538 ;;
14539
14540 sunos4*)
14541 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14542 wlarc=
14543 hardcode_direct_F77=yes
14544 hardcode_shlibpath_var_F77=no
14545 ;;
14546
14547 *)
14548 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14549 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14550 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14551 else
14552 ld_shlibs_F77=no
14553 fi
14554 ;;
14555 esac
14556
14557 if test "$ld_shlibs_F77" = no; then
14558 runpath_var=
14559 hardcode_libdir_flag_spec_F77=
14560 export_dynamic_flag_spec_F77=
14561 whole_archive_flag_spec_F77=
14562 fi
14563 else
14564 # PORTME fill in a description of your system's linker (not GNU ld)
14565 case $host_os in
14566 aix3*)
14567 allow_undefined_flag_F77=unsupported
14568 always_export_symbols_F77=yes
14569 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'
14570 # Note: this linker hardcodes the directories in LIBPATH if there
14571 # are no directories specified by -L.
14572 hardcode_minus_L_F77=yes
14573 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14574 # Neither direct hardcoding nor static linking is supported with a
14575 # broken collect2.
14576 hardcode_direct_F77=unsupported
14577 fi
14578 ;;
14579
14580 aix4* | aix5*)
14581 if test "$host_cpu" = ia64; then
14582 # On IA64, the linker does run time linking by default, so we don't
14583 # have to do anything special.
14584 aix_use_runtimelinking=no
14585 exp_sym_flag='-Bexport'
14586 no_entry_flag=""
14587 else
14588 # If we're using GNU nm, then we don't want the "-C" option.
14589 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14590 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14591 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'
14592 else
14593 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'
14594 fi
14595 aix_use_runtimelinking=no
14596
14597 # Test if we are trying to use run time linking or normal
14598 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14599 # need to do runtime linking.
14600 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14601 for ld_flag in $LDFLAGS; do
14602 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14603 aix_use_runtimelinking=yes
14604 break
14605 fi
14606 done
14607 ;;
14608 esac
14609
14610 exp_sym_flag='-bexport'
14611 no_entry_flag='-bnoentry'
14612 fi
14613
14614 # When large executables or shared objects are built, AIX ld can
14615 # have problems creating the table of contents. If linking a library
14616 # or program results in "error TOC overflow" add -mminimal-toc to
14617 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14618 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14619
14620 archive_cmds_F77=''
14621 hardcode_direct_F77=yes
14622 hardcode_libdir_separator_F77=':'
14623 link_all_deplibs_F77=yes
14624
14625 if test "$GCC" = yes; then
14626 case $host_os in aix4.[012]|aix4.[012].*)
14627 # We only want to do this on AIX 4.2 and lower, the check
14628 # below for broken collect2 doesn't work under 4.3+
14629 collect2name=`${CC} -print-prog-name=collect2`
14630 if test -f "$collect2name" && \
14631 strings "$collect2name" | grep resolve_lib_name >/dev/null
14632 then
14633 # We have reworked collect2
0fde1ce3 14634 :
d9898ee8 14635 else
14636 # We have old collect2
14637 hardcode_direct_F77=unsupported
14638 # It fails to find uninstalled libraries when the uninstalled
14639 # path is not listed in the libpath. Setting hardcode_minus_L
14640 # to unsupported forces relinking
14641 hardcode_minus_L_F77=yes
14642 hardcode_libdir_flag_spec_F77='-L$libdir'
14643 hardcode_libdir_separator_F77=
14644 fi
14645 ;;
14646 esac
14647 shared_flag='-shared'
14648 if test "$aix_use_runtimelinking" = yes; then
14649 shared_flag="$shared_flag "'${wl}-G'
14650 fi
14651 else
14652 # not using gcc
14653 if test "$host_cpu" = ia64; then
14654 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14655 # chokes on -Wl,-G. The following line is correct:
14656 shared_flag='-G'
14657 else
14658 if test "$aix_use_runtimelinking" = yes; then
14659 shared_flag='${wl}-G'
14660 else
14661 shared_flag='${wl}-bM:SRE'
14662 fi
14663 fi
14664 fi
14665
14666 # It seems that -bexpall does not export symbols beginning with
14667 # underscore (_), so it is better to generate a list of symbols to export.
14668 always_export_symbols_F77=yes
14669 if test "$aix_use_runtimelinking" = yes; then
14670 # Warning - without using the other runtime loading flags (-brtl),
14671 # -berok will link without error, but may produce a broken library.
14672 allow_undefined_flag_F77='-berok'
14673 # Determine the default libpath from the value encoded in an empty executable.
14674 cat >conftest.$ac_ext <<_ACEOF
14675 program main
14676
14677 end
14678_ACEOF
14679rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 14680if { (ac_try="$ac_link"
14681case "(($ac_try" in
14682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14683 *) ac_try_echo=$ac_try;;
14684esac
14685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14686 (eval "$ac_link") 2>conftest.er1
d9898ee8 14687 ac_status=$?
14688 grep -v '^ *+' conftest.er1 >conftest.err
14689 rm -f conftest.er1
14690 cat conftest.err >&5
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 14692 (exit $ac_status); } && {
14693 test -z "$ac_f77_werror_flag" ||
14694 test ! -s conftest.err
14695 } && test -s conftest$ac_exeext &&
14696 $as_test_x conftest$ac_exeext; then
d9898ee8 14697
0fde1ce3 14698lt_aix_libpath_sed='
14699 /Import File Strings/,/^$/ {
14700 /^0/ {
14701 s/^0 *\(.*\)$/\1/
14702 p
14703 }
14704 }'
14705aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 14706# Check for a 64-bit object if we didn't find anything.
0fde1ce3 14707if test -z "$aix_libpath"; then
14708 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14709fi
d9898ee8 14710else
14711 echo "$as_me: failed program was:" >&5
14712sed 's/^/| /' conftest.$ac_ext >&5
14713
64ff59ba 14714
d9898ee8 14715fi
64ff59ba 14716
14717rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14718 conftest$ac_exeext conftest.$ac_ext
14719if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14720
14721 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14722 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"
14723 else
14724 if test "$host_cpu" = ia64; then
14725 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14726 allow_undefined_flag_F77="-z nodefs"
14727 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"
14728 else
14729 # Determine the default libpath from the value encoded in an empty executable.
14730 cat >conftest.$ac_ext <<_ACEOF
14731 program main
14732
14733 end
14734_ACEOF
14735rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 14736if { (ac_try="$ac_link"
14737case "(($ac_try" in
14738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14739 *) ac_try_echo=$ac_try;;
14740esac
14741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14742 (eval "$ac_link") 2>conftest.er1
d9898ee8 14743 ac_status=$?
14744 grep -v '^ *+' conftest.er1 >conftest.err
14745 rm -f conftest.er1
14746 cat conftest.err >&5
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 14748 (exit $ac_status); } && {
14749 test -z "$ac_f77_werror_flag" ||
14750 test ! -s conftest.err
14751 } && test -s conftest$ac_exeext &&
14752 $as_test_x conftest$ac_exeext; then
d9898ee8 14753
0fde1ce3 14754lt_aix_libpath_sed='
14755 /Import File Strings/,/^$/ {
14756 /^0/ {
14757 s/^0 *\(.*\)$/\1/
14758 p
14759 }
14760 }'
14761aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 14762# Check for a 64-bit object if we didn't find anything.
0fde1ce3 14763if test -z "$aix_libpath"; then
14764 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14765fi
d9898ee8 14766else
14767 echo "$as_me: failed program was:" >&5
14768sed 's/^/| /' conftest.$ac_ext >&5
14769
64ff59ba 14770
d9898ee8 14771fi
64ff59ba 14772
14773rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14774 conftest$ac_exeext conftest.$ac_ext
14775if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14776
14777 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14778 # Warning - without using the other run time loading flags,
14779 # -berok will link without error, but may produce a broken library.
14780 no_undefined_flag_F77=' ${wl}-bernotok'
14781 allow_undefined_flag_F77=' ${wl}-berok'
14782 # Exported symbols can be pulled into shared objects from archives
14783 whole_archive_flag_spec_F77='$convenience'
14784 archive_cmds_need_lc_F77=yes
14785 # This is similar to how AIX traditionally builds its shared libraries.
14786 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'
14787 fi
14788 fi
14789 ;;
14790
14791 amigaos*)
14792 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)'
14793 hardcode_libdir_flag_spec_F77='-L$libdir'
14794 hardcode_minus_L_F77=yes
14795 # see comment about different semantics on the GNU ld section
14796 ld_shlibs_F77=no
14797 ;;
14798
14799 bsdi[45]*)
14800 export_dynamic_flag_spec_F77=-rdynamic
14801 ;;
14802
14803 cygwin* | mingw* | pw32*)
14804 # When not using gcc, we currently assume that we are using
14805 # Microsoft Visual C++.
14806 # hardcode_libdir_flag_spec is actually meaningless, as there is
14807 # no search path for DLLs.
14808 hardcode_libdir_flag_spec_F77=' '
14809 allow_undefined_flag_F77=unsupported
14810 # Tell ltmain to make .lib files, not .a files.
14811 libext=lib
14812 # Tell ltmain to make .dll files, not .so files.
14813 shrext_cmds=".dll"
14814 # FIXME: Setting linknames here is a bad hack.
14815 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14816 # The linker will automatically build a .lib file if we build a DLL.
14817 old_archive_From_new_cmds_F77='true'
14818 # FIXME: Should let the user specify the lib program.
0fde1ce3 14819 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
d9898ee8 14820 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14821 enable_shared_with_static_runtimes_F77=yes
14822 ;;
14823
14824 darwin* | rhapsody*)
14825 case $host_os in
14826 rhapsody* | darwin1.[012])
14827 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14828 ;;
14829 *) # Darwin 1.3 on
14830 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14831 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14832 else
14833 case ${MACOSX_DEPLOYMENT_TARGET} in
14834 10.[012])
14835 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14836 ;;
14837 10.*)
14838 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14839 ;;
14840 esac
14841 fi
14842 ;;
14843 esac
14844 archive_cmds_need_lc_F77=no
14845 hardcode_direct_F77=no
14846 hardcode_automatic_F77=yes
14847 hardcode_shlibpath_var_F77=unsupported
14848 whole_archive_flag_spec_F77=''
14849 link_all_deplibs_F77=yes
14850 if test "$GCC" = yes ; then
14851 output_verbose_link_cmd='echo'
14852 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14853 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14854 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14855 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}'
14856 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}'
14857 else
14858 case $cc_basename in
14859 xlc*)
14860 output_verbose_link_cmd='echo'
0fde1ce3 14861 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
d9898ee8 14862 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14863 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
0fde1ce3 14864 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 14865 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}'
14866 ;;
14867 *)
14868 ld_shlibs_F77=no
14869 ;;
14870 esac
14871 fi
14872 ;;
14873
14874 dgux*)
14875 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14876 hardcode_libdir_flag_spec_F77='-L$libdir'
14877 hardcode_shlibpath_var_F77=no
14878 ;;
14879
14880 freebsd1*)
14881 ld_shlibs_F77=no
14882 ;;
14883
14884 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14885 # support. Future versions do this automatically, but an explicit c++rt0.o
14886 # does not break anything, and helps significantly (at the cost of a little
14887 # extra space).
14888 freebsd2.2*)
14889 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14890 hardcode_libdir_flag_spec_F77='-R$libdir'
14891 hardcode_direct_F77=yes
14892 hardcode_shlibpath_var_F77=no
14893 ;;
14894
14895 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14896 freebsd2*)
14897 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14898 hardcode_direct_F77=yes
14899 hardcode_minus_L_F77=yes
14900 hardcode_shlibpath_var_F77=no
14901 ;;
14902
14903 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
0fde1ce3 14904 freebsd* | dragonfly*)
d9898ee8 14905 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14906 hardcode_libdir_flag_spec_F77='-R$libdir'
14907 hardcode_direct_F77=yes
14908 hardcode_shlibpath_var_F77=no
14909 ;;
14910
14911 hpux9*)
14912 if test "$GCC" = yes; then
14913 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'
14914 else
14915 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'
14916 fi
14917 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14918 hardcode_libdir_separator_F77=:
14919 hardcode_direct_F77=yes
14920
14921 # hardcode_minus_L: Not really in the search PATH,
14922 # but as the default location of the library.
14923 hardcode_minus_L_F77=yes
14924 export_dynamic_flag_spec_F77='${wl}-E'
14925 ;;
14926
14927 hpux10*)
14928 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14929 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14930 else
14931 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14932 fi
14933 if test "$with_gnu_ld" = no; then
14934 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14935 hardcode_libdir_separator_F77=:
14936
14937 hardcode_direct_F77=yes
14938 export_dynamic_flag_spec_F77='${wl}-E'
14939
14940 # hardcode_minus_L: Not really in the search PATH,
14941 # but as the default location of the library.
14942 hardcode_minus_L_F77=yes
14943 fi
14944 ;;
14945
14946 hpux11*)
14947 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14948 case $host_cpu in
14949 hppa*64*)
14950 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14951 ;;
14952 ia64*)
14953 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14954 ;;
14955 *)
14956 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14957 ;;
14958 esac
14959 else
14960 case $host_cpu in
14961 hppa*64*)
14962 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14963 ;;
14964 ia64*)
14965 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14966 ;;
14967 *)
14968 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14969 ;;
14970 esac
14971 fi
14972 if test "$with_gnu_ld" = no; then
14973 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14974 hardcode_libdir_separator_F77=:
14975
14976 case $host_cpu in
14977 hppa*64*|ia64*)
14978 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14979 hardcode_direct_F77=no
14980 hardcode_shlibpath_var_F77=no
14981 ;;
14982 *)
14983 hardcode_direct_F77=yes
14984 export_dynamic_flag_spec_F77='${wl}-E'
14985
14986 # hardcode_minus_L: Not really in the search PATH,
14987 # but as the default location of the library.
14988 hardcode_minus_L_F77=yes
14989 ;;
14990 esac
14991 fi
14992 ;;
14993
14994 irix5* | irix6* | nonstopux*)
14995 if test "$GCC" = yes; then
14996 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'
14997 else
14998 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'
14999 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15000 fi
15001 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15002 hardcode_libdir_separator_F77=:
15003 link_all_deplibs_F77=yes
15004 ;;
15005
15006 netbsd*)
15007 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15008 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15009 else
15010 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15011 fi
15012 hardcode_libdir_flag_spec_F77='-R$libdir'
15013 hardcode_direct_F77=yes
15014 hardcode_shlibpath_var_F77=no
15015 ;;
15016
15017 newsos6)
15018 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15019 hardcode_direct_F77=yes
15020 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15021 hardcode_libdir_separator_F77=:
15022 hardcode_shlibpath_var_F77=no
15023 ;;
15024
15025 openbsd*)
0fde1ce3 15026 if test -f /usr/libexec/ld.so; then
15027 hardcode_direct_F77=yes
15028 hardcode_shlibpath_var_F77=no
15029 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15030 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15031 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15032 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15033 export_dynamic_flag_spec_F77='${wl}-E'
15034 else
15035 case $host_os in
15036 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15037 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15038 hardcode_libdir_flag_spec_F77='-R$libdir'
15039 ;;
15040 *)
15041 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15042 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15043 ;;
15044 esac
15045 fi
d9898ee8 15046 else
0fde1ce3 15047 ld_shlibs_F77=no
d9898ee8 15048 fi
15049 ;;
15050
15051 os2*)
15052 hardcode_libdir_flag_spec_F77='-L$libdir'
15053 hardcode_minus_L_F77=yes
15054 allow_undefined_flag_F77=unsupported
15055 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'
15056 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15057 ;;
15058
15059 osf3*)
15060 if test "$GCC" = yes; then
15061 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15062 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'
15063 else
15064 allow_undefined_flag_F77=' -expect_unresolved \*'
15065 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'
15066 fi
15067 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15068 hardcode_libdir_separator_F77=:
15069 ;;
15070
15071 osf4* | osf5*) # as osf3* with the addition of -msym flag
15072 if test "$GCC" = yes; then
15073 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15074 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'
15075 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15076 else
15077 allow_undefined_flag_F77=' -expect_unresolved \*'
15078 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'
15079 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~
15080 $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'
15081
15082 # Both c and cxx compiler support -rpath directly
15083 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15084 fi
15085 hardcode_libdir_separator_F77=:
15086 ;;
15087
15088 solaris*)
15089 no_undefined_flag_F77=' -z text'
15090 if test "$GCC" = yes; then
15091 wlarc='${wl}'
15092 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15093 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15094 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15095 else
15096 wlarc=''
15097 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15098 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15099 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15100 fi
15101 hardcode_libdir_flag_spec_F77='-R$libdir'
15102 hardcode_shlibpath_var_F77=no
15103 case $host_os in
15104 solaris2.[0-5] | solaris2.[0-5].*) ;;
15105 *)
0fde1ce3 15106 # The compiler driver will combine and reorder linker options,
15107 # but understands `-z linker_flag'. GCC discards it without `$wl',
15108 # but is careful enough not to reorder.
d9898ee8 15109 # Supported since Solaris 2.6 (maybe 2.5.1?)
0fde1ce3 15110 if test "$GCC" = yes; then
15111 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15112 else
15113 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15114 fi
15115 ;;
d9898ee8 15116 esac
15117 link_all_deplibs_F77=yes
15118 ;;
15119
15120 sunos4*)
15121 if test "x$host_vendor" = xsequent; then
15122 # Use $CC to link under sequent, because it throws in some extra .o
15123 # files that make .init and .fini sections work.
15124 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15125 else
15126 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15127 fi
15128 hardcode_libdir_flag_spec_F77='-L$libdir'
15129 hardcode_direct_F77=yes
15130 hardcode_minus_L_F77=yes
15131 hardcode_shlibpath_var_F77=no
15132 ;;
15133
15134 sysv4)
15135 case $host_vendor in
15136 sni)
15137 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15138 hardcode_direct_F77=yes # is this really true???
15139 ;;
15140 siemens)
15141 ## LD is ld it makes a PLAMLIB
15142 ## CC just makes a GrossModule.
15143 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15144 reload_cmds_F77='$CC -r -o $output$reload_objs'
15145 hardcode_direct_F77=no
15146 ;;
15147 motorola)
15148 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15149 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15150 ;;
15151 esac
15152 runpath_var='LD_RUN_PATH'
15153 hardcode_shlibpath_var_F77=no
15154 ;;
15155
15156 sysv4.3*)
15157 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15158 hardcode_shlibpath_var_F77=no
15159 export_dynamic_flag_spec_F77='-Bexport'
15160 ;;
15161
15162 sysv4*MP*)
15163 if test -d /usr/nec; then
15164 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15165 hardcode_shlibpath_var_F77=no
15166 runpath_var=LD_RUN_PATH
15167 hardcode_runpath_var=yes
15168 ld_shlibs_F77=yes
15169 fi
15170 ;;
15171
0fde1ce3 15172 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
d9898ee8 15173 no_undefined_flag_F77='${wl}-z,text'
15174 archive_cmds_need_lc_F77=no
15175 hardcode_shlibpath_var_F77=no
15176 runpath_var='LD_RUN_PATH'
15177
15178 if test "$GCC" = yes; then
15179 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15180 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15181 else
15182 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15183 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15184 fi
15185 ;;
15186
15187 sysv5* | sco3.2v5* | sco5v6*)
15188 # Note: We can NOT use -z defs as we might desire, because we do not
15189 # link with -lc, and that would cause any symbols used from libc to
15190 # always be unresolved, which means just about no library would
15191 # ever link correctly. If we're not using GNU ld we use -z text
15192 # though, which does catch some bad symbols but isn't as heavy-handed
15193 # as -z defs.
15194 no_undefined_flag_F77='${wl}-z,text'
15195 allow_undefined_flag_F77='${wl}-z,nodefs'
15196 archive_cmds_need_lc_F77=no
15197 hardcode_shlibpath_var_F77=no
15198 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15199 hardcode_libdir_separator_F77=':'
15200 link_all_deplibs_F77=yes
15201 export_dynamic_flag_spec_F77='${wl}-Bexport'
15202 runpath_var='LD_RUN_PATH'
15203
15204 if test "$GCC" = yes; then
15205 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15206 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15207 else
15208 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15209 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15210 fi
15211 ;;
15212
15213 uts4*)
15214 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15215 hardcode_libdir_flag_spec_F77='-L$libdir'
15216 hardcode_shlibpath_var_F77=no
15217 ;;
15218
15219 *)
15220 ld_shlibs_F77=no
15221 ;;
15222 esac
15223 fi
15224
64ff59ba 15225{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15226echo "${ECHO_T}$ld_shlibs_F77" >&6; }
d9898ee8 15227test "$ld_shlibs_F77" = no && can_build_shared=no
15228
15229#
15230# Do we need to explicitly link libc?
15231#
15232case "x$archive_cmds_need_lc_F77" in
15233x|xyes)
15234 # Assume -lc should be added
15235 archive_cmds_need_lc_F77=yes
15236
15237 if test "$enable_shared" = yes && test "$GCC" = yes; then
15238 case $archive_cmds_F77 in
15239 *'~'*)
15240 # FIXME: we may have to deal with multi-command sequences.
15241 ;;
15242 '$CC '*)
15243 # Test whether the compiler implicitly links with -lc since on some
15244 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15245 # to ld, don't add -lc before -lgcc.
64ff59ba 15246 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15247echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 15248 $rm conftest*
0fde1ce3 15249 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 15250
15251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15252 (eval $ac_compile) 2>&5
15253 ac_status=$?
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); } 2>conftest.err; then
15256 soname=conftest
15257 lib=conftest
15258 libobjs=conftest.$ac_objext
15259 deplibs=
15260 wl=$lt_prog_compiler_wl_F77
15261 pic_flag=$lt_prog_compiler_pic_F77
15262 compiler_flags=-v
15263 linker_flags=-v
15264 verstring=
15265 output_objdir=.
15266 libname=conftest
15267 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15268 allow_undefined_flag_F77=
15269 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15270 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15271 ac_status=$?
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); }
15274 then
15275 archive_cmds_need_lc_F77=no
15276 else
15277 archive_cmds_need_lc_F77=yes
15278 fi
15279 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15280 else
15281 cat conftest.err 1>&5
15282 fi
15283 $rm conftest*
64ff59ba 15284 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15285echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
d9898ee8 15286 ;;
15287 esac
15288 fi
15289 ;;
15290esac
15291
64ff59ba 15292{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15293echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 15294library_names_spec=
15295libname_spec='lib$name'
15296soname_spec=
15297shrext_cmds=".so"
15298postinstall_cmds=
15299postuninstall_cmds=
15300finish_cmds=
15301finish_eval=
15302shlibpath_var=
15303shlibpath_overrides_runpath=unknown
15304version_type=none
15305dynamic_linker="$host_os ld.so"
15306sys_lib_dlsearch_path_spec="/lib /usr/lib"
0fde1ce3 15307
d9898ee8 15308need_lib_prefix=unknown
15309hardcode_into_libs=no
15310
15311# when you set need_version to no, make sure it does not cause -set_version
15312# flags to be left without arguments
15313need_version=unknown
15314
15315case $host_os in
15316aix3*)
15317 version_type=linux
15318 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15319 shlibpath_var=LIBPATH
15320
15321 # AIX 3 has no versioning support, so we append a major version to the name.
15322 soname_spec='${libname}${release}${shared_ext}$major'
15323 ;;
15324
15325aix4* | aix5*)
15326 version_type=linux
15327 need_lib_prefix=no
15328 need_version=no
15329 hardcode_into_libs=yes
15330 if test "$host_cpu" = ia64; then
15331 # AIX 5 supports IA64
15332 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15333 shlibpath_var=LD_LIBRARY_PATH
15334 else
15335 # With GCC up to 2.95.x, collect2 would create an import file
15336 # for dependence libraries. The import file would start with
15337 # the line `#! .'. This would cause the generated library to
15338 # depend on `.', always an invalid library. This was fixed in
15339 # development snapshots of GCC prior to 3.0.
15340 case $host_os in
15341 aix4 | aix4.[01] | aix4.[01].*)
15342 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15343 echo ' yes '
15344 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15345 :
15346 else
15347 can_build_shared=no
15348 fi
15349 ;;
15350 esac
15351 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15352 # soname into executable. Probably we can add versioning support to
15353 # collect2, so additional links can be useful in future.
15354 if test "$aix_use_runtimelinking" = yes; then
15355 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15356 # instead of lib<name>.a to let people know that these are not
15357 # typical AIX shared libraries.
15358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15359 else
15360 # We preserve .a as extension for shared libraries through AIX4.2
15361 # and later when we are not doing run time linking.
15362 library_names_spec='${libname}${release}.a $libname.a'
15363 soname_spec='${libname}${release}${shared_ext}$major'
15364 fi
15365 shlibpath_var=LIBPATH
15366 fi
15367 ;;
15368
15369amigaos*)
15370 library_names_spec='$libname.ixlibrary $libname.a'
15371 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15372 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'
15373 ;;
15374
15375beos*)
15376 library_names_spec='${libname}${shared_ext}'
15377 dynamic_linker="$host_os ld.so"
15378 shlibpath_var=LIBRARY_PATH
15379 ;;
15380
15381bsdi[45]*)
15382 version_type=linux
15383 need_version=no
15384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15385 soname_spec='${libname}${release}${shared_ext}$major'
15386 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15387 shlibpath_var=LD_LIBRARY_PATH
15388 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15389 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15390 # the default ld.so.conf also contains /usr/contrib/lib and
15391 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15392 # libtool to hard-code these into programs
15393 ;;
15394
15395cygwin* | mingw* | pw32*)
15396 version_type=windows
15397 shrext_cmds=".dll"
15398 need_version=no
15399 need_lib_prefix=no
15400
15401 case $GCC,$host_os in
15402 yes,cygwin* | yes,mingw* | yes,pw32*)
15403 library_names_spec='$libname.dll.a'
15404 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15405 postinstall_cmds='base_file=`basename \${file}`~
15406 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15407 dldir=$destdir/`dirname \$dlpath`~
15408 test -d \$dldir || mkdir -p \$dldir~
15409 $install_prog $dir/$dlname \$dldir/$dlname~
15410 chmod a+x \$dldir/$dlname'
15411 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15412 dlpath=$dir/\$dldll~
15413 $rm \$dlpath'
15414 shlibpath_overrides_runpath=yes
15415
15416 case $host_os in
15417 cygwin*)
15418 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15419 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15420 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15421 ;;
15422 mingw*)
15423 # MinGW DLLs use traditional 'lib' prefix
15424 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15425 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15426 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15427 # It is most probably a Windows format PATH printed by
15428 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15429 # path with ; separators, and with drive letters. We can handle the
15430 # drive letters (cygwin fileutils understands them), so leave them,
15431 # especially as we might pass files found there to a mingw objdump,
15432 # which wouldn't understand a cygwinified path. Ahh.
15433 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15434 else
15435 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15436 fi
15437 ;;
15438 pw32*)
15439 # pw32 DLLs use 'pw' prefix rather than 'lib'
15440 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15441 ;;
15442 esac
15443 ;;
15444
15445 *)
15446 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15447 ;;
15448 esac
15449 dynamic_linker='Win32 ld.exe'
15450 # FIXME: first we should search . and the directory the executable is in
15451 shlibpath_var=PATH
15452 ;;
15453
15454darwin* | rhapsody*)
15455 dynamic_linker="$host_os dyld"
15456 version_type=darwin
15457 need_lib_prefix=no
15458 need_version=no
15459 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15460 soname_spec='${libname}${release}${major}$shared_ext'
15461 shlibpath_overrides_runpath=yes
15462 shlibpath_var=DYLD_LIBRARY_PATH
15463 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
0fde1ce3 15464
d9898ee8 15465 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15466 ;;
15467
15468dgux*)
15469 version_type=linux
15470 need_lib_prefix=no
15471 need_version=no
15472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15473 soname_spec='${libname}${release}${shared_ext}$major'
15474 shlibpath_var=LD_LIBRARY_PATH
15475 ;;
15476
15477freebsd1*)
15478 dynamic_linker=no
15479 ;;
15480
d9898ee8 15481freebsd* | dragonfly*)
15482 # DragonFly does not have aout. When/if they implement a new
15483 # versioning mechanism, adjust this.
15484 if test -x /usr/bin/objformat; then
15485 objformat=`/usr/bin/objformat`
15486 else
15487 case $host_os in
15488 freebsd[123]*) objformat=aout ;;
15489 *) objformat=elf ;;
15490 esac
15491 fi
15492 version_type=freebsd-$objformat
15493 case $version_type in
15494 freebsd-elf*)
15495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15496 need_version=no
15497 need_lib_prefix=no
15498 ;;
15499 freebsd-*)
15500 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15501 need_version=yes
15502 ;;
15503 esac
15504 shlibpath_var=LD_LIBRARY_PATH
15505 case $host_os in
15506 freebsd2*)
15507 shlibpath_overrides_runpath=yes
15508 ;;
15509 freebsd3.[01]* | freebsdelf3.[01]*)
15510 shlibpath_overrides_runpath=yes
15511 hardcode_into_libs=yes
15512 ;;
15513 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15514 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15515 shlibpath_overrides_runpath=no
15516 hardcode_into_libs=yes
15517 ;;
0fde1ce3 15518 *) # from 4.6 on, and DragonFly
d9898ee8 15519 shlibpath_overrides_runpath=yes
15520 hardcode_into_libs=yes
15521 ;;
15522 esac
15523 ;;
15524
15525gnu*)
15526 version_type=linux
15527 need_lib_prefix=no
15528 need_version=no
15529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15530 soname_spec='${libname}${release}${shared_ext}$major'
15531 shlibpath_var=LD_LIBRARY_PATH
15532 hardcode_into_libs=yes
15533 ;;
15534
15535hpux9* | hpux10* | hpux11*)
15536 # Give a soname corresponding to the major version so that dld.sl refuses to
15537 # link against other versions.
15538 version_type=sunos
15539 need_lib_prefix=no
15540 need_version=no
15541 case $host_cpu in
15542 ia64*)
15543 shrext_cmds='.so'
15544 hardcode_into_libs=yes
15545 dynamic_linker="$host_os dld.so"
15546 shlibpath_var=LD_LIBRARY_PATH
15547 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15549 soname_spec='${libname}${release}${shared_ext}$major'
15550 if test "X$HPUX_IA64_MODE" = X32; then
15551 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15552 else
15553 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15554 fi
15555 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15556 ;;
15557 hppa*64*)
15558 shrext_cmds='.sl'
15559 hardcode_into_libs=yes
15560 dynamic_linker="$host_os dld.sl"
15561 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15562 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15564 soname_spec='${libname}${release}${shared_ext}$major'
15565 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15566 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15567 ;;
15568 *)
15569 shrext_cmds='.sl'
15570 dynamic_linker="$host_os dld.sl"
15571 shlibpath_var=SHLIB_PATH
15572 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15574 soname_spec='${libname}${release}${shared_ext}$major'
15575 ;;
15576 esac
15577 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15578 postinstall_cmds='chmod 555 $lib'
15579 ;;
15580
0fde1ce3 15581interix[3-9]*)
d9898ee8 15582 version_type=linux
15583 need_lib_prefix=no
15584 need_version=no
15585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15586 soname_spec='${libname}${release}${shared_ext}$major'
15587 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15588 shlibpath_var=LD_LIBRARY_PATH
15589 shlibpath_overrides_runpath=no
15590 hardcode_into_libs=yes
15591 ;;
15592
15593irix5* | irix6* | nonstopux*)
15594 case $host_os in
15595 nonstopux*) version_type=nonstopux ;;
15596 *)
15597 if test "$lt_cv_prog_gnu_ld" = yes; then
15598 version_type=linux
15599 else
15600 version_type=irix
15601 fi ;;
15602 esac
15603 need_lib_prefix=no
15604 need_version=no
15605 soname_spec='${libname}${release}${shared_ext}$major'
15606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15607 case $host_os in
15608 irix5* | nonstopux*)
15609 libsuff= shlibsuff=
15610 ;;
15611 *)
15612 case $LD in # libtool.m4 will add one of these switches to LD
15613 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15614 libsuff= shlibsuff= libmagic=32-bit;;
15615 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15616 libsuff=32 shlibsuff=N32 libmagic=N32;;
15617 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15618 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15619 *) libsuff= shlibsuff= libmagic=never-match;;
15620 esac
15621 ;;
15622 esac
15623 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15624 shlibpath_overrides_runpath=no
15625 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15626 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15627 hardcode_into_libs=yes
15628 ;;
15629
15630# No shared lib support for Linux oldld, aout, or coff.
15631linux*oldld* | linux*aout* | linux*coff*)
15632 dynamic_linker=no
15633 ;;
15634
15635# This must be Linux ELF.
0fde1ce3 15636linux* | k*bsd*-gnu)
d9898ee8 15637 version_type=linux
15638 need_lib_prefix=no
15639 need_version=no
15640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15641 soname_spec='${libname}${release}${shared_ext}$major'
15642 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15643 shlibpath_var=LD_LIBRARY_PATH
15644 shlibpath_overrides_runpath=no
15645 # This implies no fast_install, which is unacceptable.
15646 # Some rework will be needed to allow for fast_install
15647 # before this can be enabled.
15648 hardcode_into_libs=yes
0fde1ce3 15649 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15650 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
d9898ee8 15651
15652 # Append ld.so.conf contents to the search path
15653 if test -f /etc/ld.so.conf; then
0fde1ce3 15654 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' ' '`
15655 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 15656 fi
15657
15658 # We used to test for /lib/ld.so.1 and disable shared libraries on
15659 # powerpc, because MkLinux only supported shared libraries with the
15660 # GNU dynamic linker. Since this was broken with cross compilers,
15661 # most powerpc-linux boxes support dynamic linking these days and
15662 # people can always --disable-shared, the test was removed, and we
15663 # assume the GNU/Linux dynamic linker is in use.
15664 dynamic_linker='GNU/Linux ld.so'
15665 ;;
15666
d9898ee8 15667netbsd*)
15668 version_type=sunos
15669 need_lib_prefix=no
15670 need_version=no
15671 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15673 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15674 dynamic_linker='NetBSD (a.out) ld.so'
15675 else
15676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15677 soname_spec='${libname}${release}${shared_ext}$major'
15678 dynamic_linker='NetBSD ld.elf_so'
15679 fi
15680 shlibpath_var=LD_LIBRARY_PATH
15681 shlibpath_overrides_runpath=yes
15682 hardcode_into_libs=yes
15683 ;;
15684
15685newsos6)
15686 version_type=linux
15687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15688 shlibpath_var=LD_LIBRARY_PATH
15689 shlibpath_overrides_runpath=yes
15690 ;;
15691
15692nto-qnx*)
15693 version_type=linux
15694 need_lib_prefix=no
15695 need_version=no
15696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15697 soname_spec='${libname}${release}${shared_ext}$major'
15698 shlibpath_var=LD_LIBRARY_PATH
15699 shlibpath_overrides_runpath=yes
15700 ;;
15701
15702openbsd*)
15703 version_type=sunos
15704 sys_lib_dlsearch_path_spec="/usr/lib"
15705 need_lib_prefix=no
15706 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15707 case $host_os in
15708 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15709 *) need_version=no ;;
15710 esac
15711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15712 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15713 shlibpath_var=LD_LIBRARY_PATH
15714 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15715 case $host_os in
15716 openbsd2.[89] | openbsd2.[89].*)
15717 shlibpath_overrides_runpath=no
15718 ;;
15719 *)
15720 shlibpath_overrides_runpath=yes
15721 ;;
15722 esac
15723 else
15724 shlibpath_overrides_runpath=yes
15725 fi
15726 ;;
15727
15728os2*)
15729 libname_spec='$name'
15730 shrext_cmds=".dll"
15731 need_lib_prefix=no
15732 library_names_spec='$libname${shared_ext} $libname.a'
15733 dynamic_linker='OS/2 ld.exe'
15734 shlibpath_var=LIBPATH
15735 ;;
15736
15737osf3* | osf4* | osf5*)
15738 version_type=osf
15739 need_lib_prefix=no
15740 need_version=no
15741 soname_spec='${libname}${release}${shared_ext}$major'
15742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15743 shlibpath_var=LD_LIBRARY_PATH
15744 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15745 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15746 ;;
15747
0fde1ce3 15748rdos*)
15749 dynamic_linker=no
15750 ;;
15751
d9898ee8 15752solaris*)
15753 version_type=linux
15754 need_lib_prefix=no
15755 need_version=no
15756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15757 soname_spec='${libname}${release}${shared_ext}$major'
15758 shlibpath_var=LD_LIBRARY_PATH
15759 shlibpath_overrides_runpath=yes
15760 hardcode_into_libs=yes
15761 # ldd complains unless libraries are executable
15762 postinstall_cmds='chmod +x $lib'
15763 ;;
15764
15765sunos4*)
15766 version_type=sunos
15767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15768 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15769 shlibpath_var=LD_LIBRARY_PATH
15770 shlibpath_overrides_runpath=yes
15771 if test "$with_gnu_ld" = yes; then
15772 need_lib_prefix=no
15773 fi
15774 need_version=yes
15775 ;;
15776
15777sysv4 | sysv4.3*)
15778 version_type=linux
15779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15780 soname_spec='${libname}${release}${shared_ext}$major'
15781 shlibpath_var=LD_LIBRARY_PATH
15782 case $host_vendor in
15783 sni)
15784 shlibpath_overrides_runpath=no
15785 need_lib_prefix=no
15786 export_dynamic_flag_spec='${wl}-Blargedynsym'
15787 runpath_var=LD_RUN_PATH
15788 ;;
15789 siemens)
15790 need_lib_prefix=no
15791 ;;
15792 motorola)
15793 need_lib_prefix=no
15794 need_version=no
15795 shlibpath_overrides_runpath=no
15796 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15797 ;;
15798 esac
15799 ;;
15800
15801sysv4*MP*)
15802 if test -d /usr/nec ;then
15803 version_type=linux
15804 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15805 soname_spec='$libname${shared_ext}.$major'
15806 shlibpath_var=LD_LIBRARY_PATH
15807 fi
15808 ;;
15809
15810sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15811 version_type=freebsd-elf
15812 need_lib_prefix=no
15813 need_version=no
15814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15815 soname_spec='${libname}${release}${shared_ext}$major'
15816 shlibpath_var=LD_LIBRARY_PATH
15817 hardcode_into_libs=yes
15818 if test "$with_gnu_ld" = yes; then
15819 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15820 shlibpath_overrides_runpath=no
15821 else
15822 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15823 shlibpath_overrides_runpath=yes
15824 case $host_os in
15825 sco3.2v5*)
15826 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15827 ;;
15828 esac
15829 fi
15830 sys_lib_dlsearch_path_spec='/usr/lib'
15831 ;;
15832
15833uts4*)
15834 version_type=linux
15835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15836 soname_spec='${libname}${release}${shared_ext}$major'
15837 shlibpath_var=LD_LIBRARY_PATH
15838 ;;
15839
15840*)
15841 dynamic_linker=no
15842 ;;
15843esac
64ff59ba 15844{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15845echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 15846test "$dynamic_linker" = no && can_build_shared=no
15847
15848variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15849if test "$GCC" = yes; then
15850 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15851fi
15852
64ff59ba 15853{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15854echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 15855hardcode_action_F77=
15856if test -n "$hardcode_libdir_flag_spec_F77" || \
15857 test -n "$runpath_var_F77" || \
15858 test "X$hardcode_automatic_F77" = "Xyes" ; then
15859
15860 # We can hardcode non-existant directories.
15861 if test "$hardcode_direct_F77" != no &&
15862 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15863 # have to relink, otherwise we might link with an installed library
15864 # when we should be linking with a yet-to-be-installed one
15865 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15866 test "$hardcode_minus_L_F77" != no; then
15867 # Linking always hardcodes the temporary library directory.
15868 hardcode_action_F77=relink
15869 else
15870 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15871 hardcode_action_F77=immediate
15872 fi
15873else
15874 # We cannot hardcode anything, or else we can only hardcode existing
15875 # directories.
15876 hardcode_action_F77=unsupported
15877fi
64ff59ba 15878{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15879echo "${ECHO_T}$hardcode_action_F77" >&6; }
d9898ee8 15880
15881if test "$hardcode_action_F77" = relink; then
15882 # Fast installation is not supported
15883 enable_fast_install=no
15884elif test "$shlibpath_overrides_runpath" = yes ||
15885 test "$enable_shared" = no; then
15886 # Fast installation is not necessary
15887 enable_fast_install=needless
15888fi
15889
15890
15891# The else clause should only fire when bootstrapping the
15892# libtool distribution, otherwise you forgot to ship ltmain.sh
15893# with your package, and you will get complaints that there are
15894# no rules to generate ltmain.sh.
15895if test -f "$ltmain"; then
15896 # See if we are running on zsh, and set the options which allow our commands through
15897 # without removal of \ escapes.
15898 if test -n "${ZSH_VERSION+set}" ; then
15899 setopt NO_GLOB_SUBST
15900 fi
15901 # Now quote all the things that may contain metacharacters while being
15902 # careful not to overquote the AC_SUBSTed values. We take copies of the
15903 # variables and quote the copies for generation of the libtool script.
15904 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15905 SED SHELL STRIP \
15906 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15907 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15908 deplibs_check_method reload_flag reload_cmds need_locks \
15909 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15910 lt_cv_sys_global_symbol_to_c_name_address \
15911 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15912 old_postinstall_cmds old_postuninstall_cmds \
15913 compiler_F77 \
15914 CC_F77 \
15915 LD_F77 \
15916 lt_prog_compiler_wl_F77 \
15917 lt_prog_compiler_pic_F77 \
15918 lt_prog_compiler_static_F77 \
15919 lt_prog_compiler_no_builtin_flag_F77 \
15920 export_dynamic_flag_spec_F77 \
15921 thread_safe_flag_spec_F77 \
15922 whole_archive_flag_spec_F77 \
15923 enable_shared_with_static_runtimes_F77 \
15924 old_archive_cmds_F77 \
15925 old_archive_from_new_cmds_F77 \
15926 predep_objects_F77 \
15927 postdep_objects_F77 \
15928 predeps_F77 \
15929 postdeps_F77 \
15930 compiler_lib_search_path_F77 \
15931 archive_cmds_F77 \
15932 archive_expsym_cmds_F77 \
15933 postinstall_cmds_F77 \
15934 postuninstall_cmds_F77 \
15935 old_archive_from_expsyms_cmds_F77 \
15936 allow_undefined_flag_F77 \
15937 no_undefined_flag_F77 \
15938 export_symbols_cmds_F77 \
15939 hardcode_libdir_flag_spec_F77 \
15940 hardcode_libdir_flag_spec_ld_F77 \
15941 hardcode_libdir_separator_F77 \
15942 hardcode_automatic_F77 \
15943 module_cmds_F77 \
15944 module_expsym_cmds_F77 \
15945 lt_cv_prog_compiler_c_o_F77 \
0fde1ce3 15946 fix_srcfile_path_F77 \
d9898ee8 15947 exclude_expsyms_F77 \
15948 include_expsyms_F77; do
15949
15950 case $var in
15951 old_archive_cmds_F77 | \
15952 old_archive_from_new_cmds_F77 | \
15953 archive_cmds_F77 | \
15954 archive_expsym_cmds_F77 | \
15955 module_cmds_F77 | \
15956 module_expsym_cmds_F77 | \
15957 old_archive_from_expsyms_cmds_F77 | \
15958 export_symbols_cmds_F77 | \
15959 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15960 postinstall_cmds | postuninstall_cmds | \
15961 old_postinstall_cmds | old_postuninstall_cmds | \
15962 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15963 # Double-quote double-evaled strings.
15964 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15965 ;;
15966 *)
15967 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15968 ;;
15969 esac
15970 done
15971
15972 case $lt_echo in
15973 *'\$0 --fallback-echo"')
15974 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15975 ;;
15976 esac
15977
15978cfgfile="$ofile"
15979
15980 cat <<__EOF__ >> "$cfgfile"
15981# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15982
15983# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15984
15985# Shell to use when invoking shell scripts.
15986SHELL=$lt_SHELL
15987
15988# Whether or not to build shared libraries.
15989build_libtool_libs=$enable_shared
15990
15991# Whether or not to build static libraries.
15992build_old_libs=$enable_static
15993
15994# Whether or not to add -lc for building shared libraries.
15995build_libtool_need_lc=$archive_cmds_need_lc_F77
15996
15997# Whether or not to disallow shared libs when runtime libs are static
15998allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15999
16000# Whether or not to optimize for fast installation.
16001fast_install=$enable_fast_install
16002
16003# The host system.
16004host_alias=$host_alias
16005host=$host
16006host_os=$host_os
16007
16008# The build system.
16009build_alias=$build_alias
16010build=$build
16011build_os=$build_os
16012
16013# An echo program that does not interpret backslashes.
16014echo=$lt_echo
16015
16016# The archiver.
16017AR=$lt_AR
16018AR_FLAGS=$lt_AR_FLAGS
16019
16020# A C compiler.
16021LTCC=$lt_LTCC
16022
16023# LTCC compiler flags.
16024LTCFLAGS=$lt_LTCFLAGS
16025
16026# A language-specific compiler.
16027CC=$lt_compiler_F77
16028
16029# Is the compiler the GNU C compiler?
16030with_gcc=$GCC_F77
16031
d9898ee8 16032# An ERE matcher.
16033EGREP=$lt_EGREP
16034
16035# The linker used to build libraries.
16036LD=$lt_LD_F77
16037
16038# Whether we need hard or soft links.
16039LN_S=$lt_LN_S
16040
16041# A BSD-compatible nm program.
16042NM=$lt_NM
16043
16044# A symbol stripping program
16045STRIP=$lt_STRIP
16046
16047# Used to examine libraries when file_magic_cmd begins "file"
16048MAGIC_CMD=$MAGIC_CMD
16049
16050# Used on cygwin: DLL creation program.
16051DLLTOOL="$DLLTOOL"
16052
16053# Used on cygwin: object dumper.
16054OBJDUMP="$OBJDUMP"
16055
16056# Used on cygwin: assembler.
16057AS="$AS"
16058
16059# The name of the directory that contains temporary libtool files.
16060objdir=$objdir
16061
16062# How to create reloadable object files.
16063reload_flag=$lt_reload_flag
16064reload_cmds=$lt_reload_cmds
16065
16066# How to pass a linker flag through the compiler.
16067wl=$lt_lt_prog_compiler_wl_F77
16068
16069# Object file suffix (normally "o").
16070objext="$ac_objext"
16071
16072# Old archive suffix (normally "a").
16073libext="$libext"
16074
16075# Shared library suffix (normally ".so").
16076shrext_cmds='$shrext_cmds'
16077
16078# Executable file suffix (normally "").
16079exeext="$exeext"
16080
16081# Additional compiler flags for building library objects.
16082pic_flag=$lt_lt_prog_compiler_pic_F77
16083pic_mode=$pic_mode
16084
16085# What is the maximum length of a command?
16086max_cmd_len=$lt_cv_sys_max_cmd_len
16087
16088# Does compiler simultaneously support -c and -o options?
16089compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16090
16091# Must we lock files when doing compilation?
16092need_locks=$lt_need_locks
16093
16094# Do we need the lib prefix for modules?
16095need_lib_prefix=$need_lib_prefix
16096
16097# Do we need a version for libraries?
16098need_version=$need_version
16099
16100# Whether dlopen is supported.
16101dlopen_support=$enable_dlopen
16102
16103# Whether dlopen of programs is supported.
16104dlopen_self=$enable_dlopen_self
16105
16106# Whether dlopen of statically linked programs is supported.
16107dlopen_self_static=$enable_dlopen_self_static
16108
16109# Compiler flag to prevent dynamic linking.
16110link_static_flag=$lt_lt_prog_compiler_static_F77
16111
16112# Compiler flag to turn off builtin functions.
16113no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16114
16115# Compiler flag to allow reflexive dlopens.
16116export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16117
16118# Compiler flag to generate shared objects directly from archives.
16119whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16120
16121# Compiler flag to generate thread-safe objects.
16122thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16123
16124# Library versioning type.
16125version_type=$version_type
16126
16127# Format of library name prefix.
16128libname_spec=$lt_libname_spec
16129
16130# List of archive names. First name is the real one, the rest are links.
16131# The last name is the one that the linker finds with -lNAME.
16132library_names_spec=$lt_library_names_spec
16133
16134# The coded name of the library, if different from the real name.
16135soname_spec=$lt_soname_spec
16136
16137# Commands used to build and install an old-style archive.
16138RANLIB=$lt_RANLIB
16139old_archive_cmds=$lt_old_archive_cmds_F77
16140old_postinstall_cmds=$lt_old_postinstall_cmds
16141old_postuninstall_cmds=$lt_old_postuninstall_cmds
16142
16143# Create an old-style archive from a shared archive.
16144old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16145
16146# Create a temporary old-style archive to link instead of a shared archive.
16147old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16148
16149# Commands used to build and install a shared archive.
16150archive_cmds=$lt_archive_cmds_F77
16151archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16152postinstall_cmds=$lt_postinstall_cmds
16153postuninstall_cmds=$lt_postuninstall_cmds
16154
16155# Commands used to build a loadable module (assumed same as above if empty)
16156module_cmds=$lt_module_cmds_F77
16157module_expsym_cmds=$lt_module_expsym_cmds_F77
16158
16159# Commands to strip libraries.
16160old_striplib=$lt_old_striplib
16161striplib=$lt_striplib
16162
16163# Dependencies to place before the objects being linked to create a
16164# shared library.
64ff59ba 16165predep_objects=$lt_predep_objects_F77
d9898ee8 16166
16167# Dependencies to place after the objects being linked to create a
16168# shared library.
64ff59ba 16169postdep_objects=$lt_postdep_objects_F77
d9898ee8 16170
16171# Dependencies to place before the objects being linked to create a
16172# shared library.
16173predeps=$lt_predeps_F77
16174
16175# Dependencies to place after the objects being linked to create a
16176# shared library.
16177postdeps=$lt_postdeps_F77
16178
16179# The library search path used internally by the compiler when linking
16180# a shared library.
64ff59ba 16181compiler_lib_search_path=$lt_compiler_lib_search_path_F77
d9898ee8 16182
16183# Method to check whether dependent libraries are shared objects.
16184deplibs_check_method=$lt_deplibs_check_method
16185
16186# Command to use when deplibs_check_method == file_magic.
16187file_magic_cmd=$lt_file_magic_cmd
16188
16189# Flag that allows shared libraries with undefined symbols to be built.
16190allow_undefined_flag=$lt_allow_undefined_flag_F77
16191
16192# Flag that forces no undefined symbols.
16193no_undefined_flag=$lt_no_undefined_flag_F77
16194
16195# Commands used to finish a libtool library installation in a directory.
16196finish_cmds=$lt_finish_cmds
16197
16198# Same as above, but a single script fragment to be evaled but not shown.
16199finish_eval=$lt_finish_eval
16200
16201# Take the output of nm and produce a listing of raw symbols and C names.
16202global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16203
16204# Transform the output of nm in a proper C declaration
16205global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16206
16207# Transform the output of nm in a C name address pair
16208global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16209
16210# This is the shared library runtime path variable.
16211runpath_var=$runpath_var
16212
16213# This is the shared library path variable.
16214shlibpath_var=$shlibpath_var
16215
16216# Is shlibpath searched before the hard-coded library search path?
16217shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16218
16219# How to hardcode a shared library path into an executable.
16220hardcode_action=$hardcode_action_F77
16221
16222# Whether we should hardcode library paths into libraries.
16223hardcode_into_libs=$hardcode_into_libs
16224
16225# Flag to hardcode \$libdir into a binary during linking.
16226# This must work even if \$libdir does not exist.
16227hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16228
16229# If ld is used when linking, flag to hardcode \$libdir into
16230# a binary during linking. This must work even if \$libdir does
16231# not exist.
16232hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16233
16234# Whether we need a single -rpath flag with a separated argument.
16235hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16236
16237# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16238# resulting binary.
16239hardcode_direct=$hardcode_direct_F77
16240
16241# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16242# resulting binary.
16243hardcode_minus_L=$hardcode_minus_L_F77
16244
16245# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16246# the resulting binary.
16247hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16248
16249# Set to yes if building a shared library automatically hardcodes DIR into the library
16250# and all subsequent libraries and executables linked against it.
16251hardcode_automatic=$hardcode_automatic_F77
16252
16253# Variables whose values should be saved in libtool wrapper scripts and
16254# restored at relink time.
16255variables_saved_for_relink="$variables_saved_for_relink"
16256
16257# Whether libtool must link a program against all its dependency libraries.
16258link_all_deplibs=$link_all_deplibs_F77
16259
16260# Compile-time system search path for libraries
64ff59ba 16261sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 16262
16263# Run-time system search path for libraries
16264sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16265
16266# Fix the shell variable \$srcfile for the compiler.
0fde1ce3 16267fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 16268
16269# Set to yes if exported symbols are required.
16270always_export_symbols=$always_export_symbols_F77
16271
16272# The commands to list exported symbols.
16273export_symbols_cmds=$lt_export_symbols_cmds_F77
16274
16275# The commands to extract the exported symbol list from a shared archive.
16276extract_expsyms_cmds=$lt_extract_expsyms_cmds
16277
16278# Symbols that should not be listed in the preloaded symbols.
16279exclude_expsyms=$lt_exclude_expsyms_F77
16280
16281# Symbols that must always be exported.
16282include_expsyms=$lt_include_expsyms_F77
16283
16284# ### END LIBTOOL TAG CONFIG: $tagname
16285
16286__EOF__
16287
16288
16289else
16290 # If there is no Makefile yet, we rely on a make rule to execute
16291 # `config.status --recheck' to rerun these tests and create the
16292 # libtool script then.
16293 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16294 if test -f "$ltmain_in"; then
16295 test -f Makefile && make "$ltmain"
16296 fi
16297fi
16298
16299
16300ac_ext=c
16301ac_cpp='$CPP $CPPFLAGS'
16302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16304ac_compiler_gnu=$ac_cv_c_compiler_gnu
16305
16306CC="$lt_save_CC"
16307
16308 else
16309 tagname=""
16310 fi
16311 ;;
16312
16313 GCJ)
16314 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16315
16316
d9898ee8 16317# Source file extension for Java test sources.
16318ac_ext=java
16319
16320# Object file extension for compiled Java test sources.
16321objext=o
16322objext_GCJ=$objext
16323
16324# Code to be used in simple compile tests
0fde1ce3 16325lt_simple_compile_test_code="class foo {}"
d9898ee8 16326
16327# Code to be used in simple link tests
0fde1ce3 16328lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
d9898ee8 16329
16330# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16331
16332# If no C compiler was specified, use CC.
16333LTCC=${LTCC-"$CC"}
16334
16335# If no C compiler flags were specified, use CFLAGS.
16336LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16337
16338# Allow CC to be a program name with arguments.
16339compiler=$CC
16340
16341
16342# save warnings/boilerplate of simple test code
16343ac_outfile=conftest.$ac_objext
0fde1ce3 16344echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 16345eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16346_lt_compiler_boilerplate=`cat conftest.err`
16347$rm conftest*
16348
16349ac_outfile=conftest.$ac_objext
0fde1ce3 16350echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 16351eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16352_lt_linker_boilerplate=`cat conftest.err`
16353$rm conftest*
16354
16355
16356# Allow CC to be a program name with arguments.
16357lt_save_CC="$CC"
16358CC=${GCJ-"gcj"}
16359compiler=$CC
16360compiler_GCJ=$CC
16361for cc_temp in $compiler""; do
16362 case $cc_temp in
16363 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16364 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16365 \-*) ;;
16366 *) break;;
16367 esac
16368done
16369cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16370
16371
16372# GCJ did not exist at the time GCC didn't implicitly link libc in.
16373archive_cmds_need_lc_GCJ=no
16374
16375old_archive_cmds_GCJ=$old_archive_cmds
16376
16377
16378lt_prog_compiler_no_builtin_flag_GCJ=
16379
16380if test "$GCC" = yes; then
16381 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16382
16383
64ff59ba 16384{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16385echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d9898ee8 16386if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16387 echo $ECHO_N "(cached) $ECHO_C" >&6
16388else
16389 lt_cv_prog_compiler_rtti_exceptions=no
16390 ac_outfile=conftest.$ac_objext
0fde1ce3 16391 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 16392 lt_compiler_flag="-fno-rtti -fno-exceptions"
16393 # Insert the option either (1) after the last *FLAGS variable, or
16394 # (2) before a word containing "conftest.", or (3) at the end.
16395 # Note that $ac_compile itself does not contain backslashes and begins
16396 # with a dollar sign (not a hyphen), so the echo should work correctly.
16397 # The option is referenced via a variable to avoid confusing sed.
16398 lt_compile=`echo "$ac_compile" | $SED \
16399 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16400 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16401 -e 's:$: $lt_compiler_flag:'`
0fde1ce3 16402 (eval echo "\"\$as_me:16402: $lt_compile\"" >&5)
d9898ee8 16403 (eval "$lt_compile" 2>conftest.err)
16404 ac_status=$?
16405 cat conftest.err >&5
0fde1ce3 16406 echo "$as_me:16406: \$? = $ac_status" >&5
d9898ee8 16407 if (exit $ac_status) && test -s "$ac_outfile"; then
16408 # The compiler can only warn and ignore the option if not recognized
16409 # So say no if there are warnings other than the usual output.
16410 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16411 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16412 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16413 lt_cv_prog_compiler_rtti_exceptions=yes
16414 fi
16415 fi
16416 $rm conftest*
16417
16418fi
64ff59ba 16419{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16420echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 16421
16422if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16423 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16424else
16425 :
16426fi
16427
16428fi
16429
16430lt_prog_compiler_wl_GCJ=
16431lt_prog_compiler_pic_GCJ=
16432lt_prog_compiler_static_GCJ=
16433
64ff59ba 16434{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16435echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 16436
16437 if test "$GCC" = yes; then
16438 lt_prog_compiler_wl_GCJ='-Wl,'
16439 lt_prog_compiler_static_GCJ='-static'
16440
16441 case $host_os in
16442 aix*)
16443 # All AIX code is PIC.
16444 if test "$host_cpu" = ia64; then
16445 # AIX 5 now supports IA64 processor
16446 lt_prog_compiler_static_GCJ='-Bstatic'
16447 fi
16448 ;;
16449
16450 amigaos*)
16451 # FIXME: we need at least 68020 code to build shared libraries, but
16452 # adding the `-m68020' flag to GCC prevents building anything better,
16453 # like `-m68040'.
16454 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16455 ;;
16456
0fde1ce3 16457 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 16458 # PIC is the default for these OSes.
16459 ;;
16460
0fde1ce3 16461 mingw* | cygwin* | pw32* | os2*)
d9898ee8 16462 # This hack is so that the source file can tell whether it is being
16463 # built for inclusion in a dll (and should export symbols for example).
0fde1ce3 16464 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16465 # (--disable-auto-import) libraries
d9898ee8 16466 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16467 ;;
16468
16469 darwin* | rhapsody*)
16470 # PIC is the default on this platform
16471 # Common symbols not allowed in MH_DYLIB files
16472 lt_prog_compiler_pic_GCJ='-fno-common'
16473 ;;
16474
0fde1ce3 16475 interix[3-9]*)
d9898ee8 16476 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16477 # Instead, we relocate shared libraries at runtime.
16478 ;;
16479
16480 msdosdjgpp*)
16481 # Just because we use GCC doesn't mean we suddenly get shared libraries
16482 # on systems that don't support them.
16483 lt_prog_compiler_can_build_shared_GCJ=no
16484 enable_shared=no
16485 ;;
16486
16487 sysv4*MP*)
16488 if test -d /usr/nec; then
16489 lt_prog_compiler_pic_GCJ=-Kconform_pic
16490 fi
16491 ;;
16492
16493 hpux*)
16494 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16495 # not for PA HP-UX.
16496 case $host_cpu in
16497 hppa*64*|ia64*)
16498 # +Z the default
16499 ;;
16500 *)
16501 lt_prog_compiler_pic_GCJ='-fPIC'
16502 ;;
16503 esac
16504 ;;
16505
16506 *)
16507 lt_prog_compiler_pic_GCJ='-fPIC'
16508 ;;
16509 esac
16510 else
16511 # PORTME Check for flag to pass linker flags through the system compiler.
16512 case $host_os in
16513 aix*)
16514 lt_prog_compiler_wl_GCJ='-Wl,'
16515 if test "$host_cpu" = ia64; then
16516 # AIX 5 now supports IA64 processor
16517 lt_prog_compiler_static_GCJ='-Bstatic'
16518 else
16519 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16520 fi
16521 ;;
16522 darwin*)
16523 # PIC is the default on this platform
16524 # Common symbols not allowed in MH_DYLIB files
16525 case $cc_basename in
16526 xlc*)
16527 lt_prog_compiler_pic_GCJ='-qnocommon'
16528 lt_prog_compiler_wl_GCJ='-Wl,'
16529 ;;
16530 esac
16531 ;;
16532
0fde1ce3 16533 mingw* | cygwin* | pw32* | os2*)
d9898ee8 16534 # This hack is so that the source file can tell whether it is being
16535 # built for inclusion in a dll (and should export symbols for example).
16536 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16537 ;;
16538
16539 hpux9* | hpux10* | hpux11*)
16540 lt_prog_compiler_wl_GCJ='-Wl,'
16541 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16542 # not for PA HP-UX.
16543 case $host_cpu in
16544 hppa*64*|ia64*)
16545 # +Z the default
16546 ;;
16547 *)
16548 lt_prog_compiler_pic_GCJ='+Z'
16549 ;;
16550 esac
16551 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16552 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16553 ;;
16554
16555 irix5* | irix6* | nonstopux*)
16556 lt_prog_compiler_wl_GCJ='-Wl,'
16557 # PIC (with -KPIC) is the default.
16558 lt_prog_compiler_static_GCJ='-non_shared'
16559 ;;
16560
16561 newsos6)
16562 lt_prog_compiler_pic_GCJ='-KPIC'
16563 lt_prog_compiler_static_GCJ='-Bstatic'
16564 ;;
16565
0fde1ce3 16566 linux* | k*bsd*-gnu)
d9898ee8 16567 case $cc_basename in
16568 icc* | ecc*)
16569 lt_prog_compiler_wl_GCJ='-Wl,'
16570 lt_prog_compiler_pic_GCJ='-KPIC'
16571 lt_prog_compiler_static_GCJ='-static'
16572 ;;
16573 pgcc* | pgf77* | pgf90* | pgf95*)
16574 # Portland Group compilers (*not* the Pentium gcc compiler,
16575 # which looks to be a dead project)
16576 lt_prog_compiler_wl_GCJ='-Wl,'
16577 lt_prog_compiler_pic_GCJ='-fpic'
16578 lt_prog_compiler_static_GCJ='-Bstatic'
16579 ;;
16580 ccc*)
16581 lt_prog_compiler_wl_GCJ='-Wl,'
16582 # All Alpha code is PIC.
16583 lt_prog_compiler_static_GCJ='-non_shared'
16584 ;;
0fde1ce3 16585 *)
16586 case `$CC -V 2>&1 | sed 5q` in
16587 *Sun\ C*)
16588 # Sun C 5.9
16589 lt_prog_compiler_pic_GCJ='-KPIC'
16590 lt_prog_compiler_static_GCJ='-Bstatic'
16591 lt_prog_compiler_wl_GCJ='-Wl,'
16592 ;;
16593 *Sun\ F*)
16594 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16595 lt_prog_compiler_pic_GCJ='-KPIC'
16596 lt_prog_compiler_static_GCJ='-Bstatic'
16597 lt_prog_compiler_wl_GCJ=''
16598 ;;
16599 esac
16600 ;;
d9898ee8 16601 esac
16602 ;;
16603
16604 osf3* | osf4* | osf5*)
16605 lt_prog_compiler_wl_GCJ='-Wl,'
16606 # All OSF/1 code is PIC.
16607 lt_prog_compiler_static_GCJ='-non_shared'
16608 ;;
16609
0fde1ce3 16610 rdos*)
16611 lt_prog_compiler_static_GCJ='-non_shared'
16612 ;;
16613
d9898ee8 16614 solaris*)
16615 lt_prog_compiler_pic_GCJ='-KPIC'
16616 lt_prog_compiler_static_GCJ='-Bstatic'
16617 case $cc_basename in
16618 f77* | f90* | f95*)
16619 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16620 *)
16621 lt_prog_compiler_wl_GCJ='-Wl,';;
16622 esac
16623 ;;
16624
16625 sunos4*)
16626 lt_prog_compiler_wl_GCJ='-Qoption ld '
16627 lt_prog_compiler_pic_GCJ='-PIC'
16628 lt_prog_compiler_static_GCJ='-Bstatic'
16629 ;;
16630
16631 sysv4 | sysv4.2uw2* | sysv4.3*)
16632 lt_prog_compiler_wl_GCJ='-Wl,'
16633 lt_prog_compiler_pic_GCJ='-KPIC'
16634 lt_prog_compiler_static_GCJ='-Bstatic'
16635 ;;
16636
16637 sysv4*MP*)
16638 if test -d /usr/nec ;then
16639 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16640 lt_prog_compiler_static_GCJ='-Bstatic'
16641 fi
16642 ;;
16643
16644 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16645 lt_prog_compiler_wl_GCJ='-Wl,'
16646 lt_prog_compiler_pic_GCJ='-KPIC'
16647 lt_prog_compiler_static_GCJ='-Bstatic'
16648 ;;
16649
16650 unicos*)
16651 lt_prog_compiler_wl_GCJ='-Wl,'
16652 lt_prog_compiler_can_build_shared_GCJ=no
16653 ;;
16654
16655 uts4*)
16656 lt_prog_compiler_pic_GCJ='-pic'
16657 lt_prog_compiler_static_GCJ='-Bstatic'
16658 ;;
16659
16660 *)
16661 lt_prog_compiler_can_build_shared_GCJ=no
16662 ;;
16663 esac
16664 fi
16665
64ff59ba 16666{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16667echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
d9898ee8 16668
16669#
16670# Check to make sure the PIC flag actually works.
16671#
16672if test -n "$lt_prog_compiler_pic_GCJ"; then
16673
64ff59ba 16674{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16675echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
d9898ee8 16676if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16677 echo $ECHO_N "(cached) $ECHO_C" >&6
16678else
16679 lt_prog_compiler_pic_works_GCJ=no
16680 ac_outfile=conftest.$ac_objext
0fde1ce3 16681 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 16682 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16683 # Insert the option either (1) after the last *FLAGS variable, or
16684 # (2) before a word containing "conftest.", or (3) at the end.
16685 # Note that $ac_compile itself does not contain backslashes and begins
16686 # with a dollar sign (not a hyphen), so the echo should work correctly.
16687 # The option is referenced via a variable to avoid confusing sed.
16688 lt_compile=`echo "$ac_compile" | $SED \
16689 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16691 -e 's:$: $lt_compiler_flag:'`
0fde1ce3 16692 (eval echo "\"\$as_me:16692: $lt_compile\"" >&5)
d9898ee8 16693 (eval "$lt_compile" 2>conftest.err)
16694 ac_status=$?
16695 cat conftest.err >&5
0fde1ce3 16696 echo "$as_me:16696: \$? = $ac_status" >&5
d9898ee8 16697 if (exit $ac_status) && test -s "$ac_outfile"; then
16698 # The compiler can only warn and ignore the option if not recognized
16699 # So say no if there are warnings other than the usual output.
16700 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16701 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16702 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16703 lt_prog_compiler_pic_works_GCJ=yes
16704 fi
16705 fi
16706 $rm conftest*
16707
16708fi
64ff59ba 16709{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16710echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
d9898ee8 16711
16712if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16713 case $lt_prog_compiler_pic_GCJ in
16714 "" | " "*) ;;
16715 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16716 esac
16717else
16718 lt_prog_compiler_pic_GCJ=
16719 lt_prog_compiler_can_build_shared_GCJ=no
16720fi
16721
16722fi
16723case $host_os in
16724 # For platforms which do not support PIC, -DPIC is meaningless:
16725 *djgpp*)
16726 lt_prog_compiler_pic_GCJ=
16727 ;;
16728 *)
16729 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16730 ;;
16731esac
16732
16733#
16734# Check to make sure the static flag actually works.
16735#
16736wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
64ff59ba 16737{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16738echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 16739if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16740 echo $ECHO_N "(cached) $ECHO_C" >&6
16741else
16742 lt_prog_compiler_static_works_GCJ=no
16743 save_LDFLAGS="$LDFLAGS"
16744 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
0fde1ce3 16745 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 16746 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16747 # The linker can only warn and ignore the option if not recognized
16748 # So say no if there are warnings
16749 if test -s conftest.err; then
16750 # Append any errors to the config.log.
16751 cat conftest.err 1>&5
16752 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16753 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16754 if diff conftest.exp conftest.er2 >/dev/null; then
16755 lt_prog_compiler_static_works_GCJ=yes
16756 fi
16757 else
16758 lt_prog_compiler_static_works_GCJ=yes
16759 fi
16760 fi
16761 $rm conftest*
16762 LDFLAGS="$save_LDFLAGS"
16763
16764fi
64ff59ba 16765{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16766echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
d9898ee8 16767
16768if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16769 :
16770else
16771 lt_prog_compiler_static_GCJ=
16772fi
16773
16774
64ff59ba 16775{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16776echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 16777if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16778 echo $ECHO_N "(cached) $ECHO_C" >&6
16779else
16780 lt_cv_prog_compiler_c_o_GCJ=no
16781 $rm -r conftest 2>/dev/null
16782 mkdir conftest
16783 cd conftest
16784 mkdir out
0fde1ce3 16785 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 16786
16787 lt_compiler_flag="-o out/conftest2.$ac_objext"
16788 # Insert the option either (1) after the last *FLAGS variable, or
16789 # (2) before a word containing "conftest.", or (3) at the end.
16790 # Note that $ac_compile itself does not contain backslashes and begins
16791 # with a dollar sign (not a hyphen), so the echo should work correctly.
16792 lt_compile=`echo "$ac_compile" | $SED \
16793 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16794 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16795 -e 's:$: $lt_compiler_flag:'`
0fde1ce3 16796 (eval echo "\"\$as_me:16796: $lt_compile\"" >&5)
d9898ee8 16797 (eval "$lt_compile" 2>out/conftest.err)
16798 ac_status=$?
16799 cat out/conftest.err >&5
0fde1ce3 16800 echo "$as_me:16800: \$? = $ac_status" >&5
d9898ee8 16801 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16802 then
16803 # The compiler can only warn and ignore the option if not recognized
16804 # So say no if there are warnings
16805 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16806 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16807 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16808 lt_cv_prog_compiler_c_o_GCJ=yes
16809 fi
16810 fi
16811 chmod u+w . 2>&5
16812 $rm conftest*
16813 # SGI C++ compiler will create directory out/ii_files/ for
16814 # template instantiation
16815 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16816 $rm out/* && rmdir out
16817 cd ..
16818 rmdir conftest
16819 $rm conftest*
16820
16821fi
64ff59ba 16822{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16823echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
d9898ee8 16824
16825
16826hard_links="nottested"
16827if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16828 # do not overwrite the value of need_locks provided by the user
64ff59ba 16829 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16830echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 16831 hard_links=yes
16832 $rm conftest*
16833 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16834 touch conftest.a
16835 ln conftest.a conftest.b 2>&5 || hard_links=no
16836 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 16837 { echo "$as_me:$LINENO: result: $hard_links" >&5
16838echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 16839 if test "$hard_links" = no; then
16840 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16841echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16842 need_locks=warn
16843 fi
16844else
16845 need_locks=no
16846fi
16847
64ff59ba 16848{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16849echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 16850
16851 runpath_var=
16852 allow_undefined_flag_GCJ=
16853 enable_shared_with_static_runtimes_GCJ=no
16854 archive_cmds_GCJ=
16855 archive_expsym_cmds_GCJ=
16856 old_archive_From_new_cmds_GCJ=
16857 old_archive_from_expsyms_cmds_GCJ=
16858 export_dynamic_flag_spec_GCJ=
16859 whole_archive_flag_spec_GCJ=
16860 thread_safe_flag_spec_GCJ=
16861 hardcode_libdir_flag_spec_GCJ=
16862 hardcode_libdir_flag_spec_ld_GCJ=
16863 hardcode_libdir_separator_GCJ=
16864 hardcode_direct_GCJ=no
16865 hardcode_minus_L_GCJ=no
16866 hardcode_shlibpath_var_GCJ=unsupported
16867 link_all_deplibs_GCJ=unknown
16868 hardcode_automatic_GCJ=no
16869 module_cmds_GCJ=
16870 module_expsym_cmds_GCJ=
16871 always_export_symbols_GCJ=no
16872 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16873 # include_expsyms should be a list of space-separated symbols to be *always*
16874 # included in the symbol list
16875 include_expsyms_GCJ=
16876 # exclude_expsyms can be an extended regexp of symbols to exclude
16877 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16878 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16879 # as well as any symbol that contains `d'.
16880 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16881 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16882 # platforms (ab)use it in PIC code, but their linkers get confused if
16883 # the symbol is explicitly referenced. Since portable code cannot
16884 # rely on this symbol name, it's probably fine to never include it in
16885 # preloaded symbol tables.
16886 extract_expsyms_cmds=
16887 # Just being paranoid about ensuring that cc_basename is set.
16888 for cc_temp in $compiler""; do
16889 case $cc_temp in
16890 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16891 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16892 \-*) ;;
16893 *) break;;
16894 esac
16895done
16896cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16897
16898 case $host_os in
16899 cygwin* | mingw* | pw32*)
16900 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16901 # When not using gcc, we currently assume that we are using
16902 # Microsoft Visual C++.
16903 if test "$GCC" != yes; then
16904 with_gnu_ld=no
16905 fi
16906 ;;
16907 interix*)
16908 # we just hope/assume this is gcc and not c89 (= MSVC++)
16909 with_gnu_ld=yes
16910 ;;
16911 openbsd*)
16912 with_gnu_ld=no
16913 ;;
16914 esac
16915
16916 ld_shlibs_GCJ=yes
16917 if test "$with_gnu_ld" = yes; then
16918 # If archive_cmds runs LD, not CC, wlarc should be empty
16919 wlarc='${wl}'
16920
16921 # Set some defaults for GNU ld with shared library support. These
16922 # are reset later if shared libraries are not supported. Putting them
16923 # here allows them to be overridden if necessary.
16924 runpath_var=LD_RUN_PATH
16925 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16926 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16927 # ancient GNU ld didn't support --whole-archive et. al.
16928 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16929 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16930 else
16931 whole_archive_flag_spec_GCJ=
16932 fi
16933 supports_anon_versioning=no
16934 case `$LD -v 2>/dev/null` in
16935 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16936 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16937 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16938 *\ 2.11.*) ;; # other 2.11 versions
16939 *) supports_anon_versioning=yes ;;
16940 esac
16941
16942 # See if GNU ld supports shared libraries.
16943 case $host_os in
16944 aix3* | aix4* | aix5*)
16945 # On AIX/PPC, the GNU linker is very broken
16946 if test "$host_cpu" != ia64; then
16947 ld_shlibs_GCJ=no
16948 cat <<EOF 1>&2
16949
16950*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16951*** to be unable to reliably create shared libraries on AIX.
16952*** Therefore, libtool is disabling shared libraries support. If you
16953*** really care for shared libraries, you may want to modify your PATH
16954*** so that a non-GNU linker is found, and then restart.
16955
16956EOF
16957 fi
16958 ;;
16959
16960 amigaos*)
16961 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)'
16962 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16963 hardcode_minus_L_GCJ=yes
16964
16965 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16966 # that the semantics of dynamic libraries on AmigaOS, at least up
16967 # to version 4, is to share data among multiple programs linked
16968 # with the same dynamic library. Since this doesn't match the
16969 # behavior of shared libraries on other platforms, we can't use
16970 # them.
16971 ld_shlibs_GCJ=no
16972 ;;
16973
16974 beos*)
16975 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16976 allow_undefined_flag_GCJ=unsupported
16977 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16978 # support --undefined. This deserves some investigation. FIXME
16979 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16980 else
16981 ld_shlibs_GCJ=no
16982 fi
16983 ;;
16984
16985 cygwin* | mingw* | pw32*)
16986 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16987 # as there is no search path for DLLs.
16988 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16989 allow_undefined_flag_GCJ=unsupported
16990 always_export_symbols_GCJ=no
16991 enable_shared_with_static_runtimes_GCJ=yes
0fde1ce3 16992 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d9898ee8 16993
16994 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16995 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16996 # If the export-symbols file already is a .def file (1st line
16997 # is EXPORTS), use it as is; otherwise, prepend...
16998 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16999 cp $export_symbols $output_objdir/$soname.def;
17000 else
17001 echo EXPORTS > $output_objdir/$soname.def;
17002 cat $export_symbols >> $output_objdir/$soname.def;
17003 fi~
17004 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17005 else
17006 ld_shlibs_GCJ=no
17007 fi
17008 ;;
17009
0fde1ce3 17010 interix[3-9]*)
d9898ee8 17011 hardcode_direct_GCJ=no
17012 hardcode_shlibpath_var_GCJ=no
17013 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17014 export_dynamic_flag_spec_GCJ='${wl}-E'
17015 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17016 # Instead, shared libraries are loaded at an image base (0x10000000 by
17017 # default) and relocated if they conflict, which is a slow very memory
17018 # consuming and fragmenting process. To avoid this, we pick a random,
17019 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17020 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17021 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'
17022 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'
17023 ;;
17024
0fde1ce3 17025 gnu* | linux* | k*bsd*-gnu)
d9898ee8 17026 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17027 tmp_addflag=
17028 case $cc_basename,$host_cpu in
17029 pgcc*) # Portland Group C compiler
17030 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'
17031 tmp_addflag=' $pic_flag'
17032 ;;
17033 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17034 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'
17035 tmp_addflag=' $pic_flag -Mnomain' ;;
17036 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17037 tmp_addflag=' -i_dynamic' ;;
17038 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17039 tmp_addflag=' -i_dynamic -nofor_main' ;;
17040 ifc* | ifort*) # Intel Fortran compiler
17041 tmp_addflag=' -nofor_main' ;;
17042 esac
0fde1ce3 17043 case `$CC -V 2>&1 | sed 5q` in
17044 *Sun\ C*) # Sun C 5.9
17045 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'
17046 tmp_sharedflag='-G' ;;
17047 *Sun\ F*) # Sun Fortran 8.3
17048 tmp_sharedflag='-G' ;;
17049 *)
17050 tmp_sharedflag='-shared' ;;
17051 esac
17052 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 17053
17054 if test $supports_anon_versioning = yes; then
17055 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17056 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17057 $echo "local: *; };" >> $output_objdir/$libname.ver~
0fde1ce3 17058 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
d9898ee8 17059 fi
17060 else
17061 ld_shlibs_GCJ=no
17062 fi
17063 ;;
17064
17065 netbsd*)
17066 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17067 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17068 wlarc=
17069 else
17070 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17071 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17072 fi
17073 ;;
17074
17075 solaris*)
17076 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17077 ld_shlibs_GCJ=no
17078 cat <<EOF 1>&2
17079
17080*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17081*** create shared libraries on Solaris systems. Therefore, libtool
17082*** is disabling shared libraries support. We urge you to upgrade GNU
17083*** binutils to release 2.9.1 or newer. Another option is to modify
17084*** your PATH or compiler configuration so that the native linker is
17085*** used, and then restart.
17086
17087EOF
17088 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17089 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17090 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17091 else
17092 ld_shlibs_GCJ=no
17093 fi
17094 ;;
17095
17096 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17097 case `$LD -v 2>&1` in
17098 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17099 ld_shlibs_GCJ=no
17100 cat <<_LT_EOF 1>&2
17101
17102*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17103*** reliably create shared libraries on SCO systems. Therefore, libtool
17104*** is disabling shared libraries support. We urge you to upgrade GNU
17105*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17106*** your PATH or compiler configuration so that the native linker is
17107*** used, and then restart.
17108
17109_LT_EOF
17110 ;;
17111 *)
17112 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17113 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17114 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17115 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17116 else
17117 ld_shlibs_GCJ=no
17118 fi
17119 ;;
17120 esac
17121 ;;
17122
17123 sunos4*)
17124 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17125 wlarc=
17126 hardcode_direct_GCJ=yes
17127 hardcode_shlibpath_var_GCJ=no
17128 ;;
17129
17130 *)
17131 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17132 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17133 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17134 else
17135 ld_shlibs_GCJ=no
17136 fi
17137 ;;
17138 esac
17139
17140 if test "$ld_shlibs_GCJ" = no; then
17141 runpath_var=
17142 hardcode_libdir_flag_spec_GCJ=
17143 export_dynamic_flag_spec_GCJ=
17144 whole_archive_flag_spec_GCJ=
17145 fi
17146 else
17147 # PORTME fill in a description of your system's linker (not GNU ld)
17148 case $host_os in
17149 aix3*)
17150 allow_undefined_flag_GCJ=unsupported
17151 always_export_symbols_GCJ=yes
17152 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'
17153 # Note: this linker hardcodes the directories in LIBPATH if there
17154 # are no directories specified by -L.
17155 hardcode_minus_L_GCJ=yes
17156 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17157 # Neither direct hardcoding nor static linking is supported with a
17158 # broken collect2.
17159 hardcode_direct_GCJ=unsupported
17160 fi
17161 ;;
17162
17163 aix4* | aix5*)
17164 if test "$host_cpu" = ia64; then
17165 # On IA64, the linker does run time linking by default, so we don't
17166 # have to do anything special.
17167 aix_use_runtimelinking=no
17168 exp_sym_flag='-Bexport'
17169 no_entry_flag=""
17170 else
17171 # If we're using GNU nm, then we don't want the "-C" option.
17172 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17173 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17174 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'
17175 else
17176 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'
17177 fi
17178 aix_use_runtimelinking=no
17179
17180 # Test if we are trying to use run time linking or normal
17181 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17182 # need to do runtime linking.
17183 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17184 for ld_flag in $LDFLAGS; do
17185 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17186 aix_use_runtimelinking=yes
17187 break
17188 fi
17189 done
17190 ;;
17191 esac
17192
17193 exp_sym_flag='-bexport'
17194 no_entry_flag='-bnoentry'
17195 fi
17196
17197 # When large executables or shared objects are built, AIX ld can
17198 # have problems creating the table of contents. If linking a library
17199 # or program results in "error TOC overflow" add -mminimal-toc to
17200 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17201 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17202
17203 archive_cmds_GCJ=''
17204 hardcode_direct_GCJ=yes
17205 hardcode_libdir_separator_GCJ=':'
17206 link_all_deplibs_GCJ=yes
17207
17208 if test "$GCC" = yes; then
17209 case $host_os in aix4.[012]|aix4.[012].*)
17210 # We only want to do this on AIX 4.2 and lower, the check
17211 # below for broken collect2 doesn't work under 4.3+
17212 collect2name=`${CC} -print-prog-name=collect2`
17213 if test -f "$collect2name" && \
17214 strings "$collect2name" | grep resolve_lib_name >/dev/null
17215 then
17216 # We have reworked collect2
0fde1ce3 17217 :
d9898ee8 17218 else
17219 # We have old collect2
17220 hardcode_direct_GCJ=unsupported
17221 # It fails to find uninstalled libraries when the uninstalled
17222 # path is not listed in the libpath. Setting hardcode_minus_L
17223 # to unsupported forces relinking
17224 hardcode_minus_L_GCJ=yes
17225 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17226 hardcode_libdir_separator_GCJ=
17227 fi
17228 ;;
17229 esac
17230 shared_flag='-shared'
17231 if test "$aix_use_runtimelinking" = yes; then
17232 shared_flag="$shared_flag "'${wl}-G'
17233 fi
17234 else
17235 # not using gcc
17236 if test "$host_cpu" = ia64; then
17237 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17238 # chokes on -Wl,-G. The following line is correct:
17239 shared_flag='-G'
17240 else
17241 if test "$aix_use_runtimelinking" = yes; then
17242 shared_flag='${wl}-G'
17243 else
17244 shared_flag='${wl}-bM:SRE'
17245 fi
17246 fi
17247 fi
17248
17249 # It seems that -bexpall does not export symbols beginning with
17250 # underscore (_), so it is better to generate a list of symbols to export.
17251 always_export_symbols_GCJ=yes
17252 if test "$aix_use_runtimelinking" = yes; then
17253 # Warning - without using the other runtime loading flags (-brtl),
17254 # -berok will link without error, but may produce a broken library.
17255 allow_undefined_flag_GCJ='-berok'
17256 # Determine the default libpath from the value encoded in an empty executable.
17257 cat >conftest.$ac_ext <<_ACEOF
17258/* confdefs.h. */
17259_ACEOF
17260cat confdefs.h >>conftest.$ac_ext
17261cat >>conftest.$ac_ext <<_ACEOF
17262/* end confdefs.h. */
17263
17264int
17265main ()
17266{
17267
17268 ;
17269 return 0;
17270}
17271_ACEOF
17272rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 17273if { (ac_try="$ac_link"
17274case "(($ac_try" in
17275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17276 *) ac_try_echo=$ac_try;;
17277esac
17278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17279 (eval "$ac_link") 2>conftest.er1
d9898ee8 17280 ac_status=$?
17281 grep -v '^ *+' conftest.er1 >conftest.err
17282 rm -f conftest.er1
17283 cat conftest.err >&5
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 17285 (exit $ac_status); } && {
17286 test -z "$ac_c_werror_flag" ||
17287 test ! -s conftest.err
17288 } && test -s conftest$ac_exeext &&
17289 $as_test_x conftest$ac_exeext; then
d9898ee8 17290
0fde1ce3 17291lt_aix_libpath_sed='
17292 /Import File Strings/,/^$/ {
17293 /^0/ {
17294 s/^0 *\(.*\)$/\1/
17295 p
17296 }
17297 }'
17298aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 17299# Check for a 64-bit object if we didn't find anything.
0fde1ce3 17300if test -z "$aix_libpath"; then
17301 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17302fi
d9898ee8 17303else
17304 echo "$as_me: failed program was:" >&5
17305sed 's/^/| /' conftest.$ac_ext >&5
17306
64ff59ba 17307
d9898ee8 17308fi
64ff59ba 17309
17310rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17311 conftest$ac_exeext conftest.$ac_ext
17312if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17313
17314 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17315 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"
17316 else
17317 if test "$host_cpu" = ia64; then
17318 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17319 allow_undefined_flag_GCJ="-z nodefs"
17320 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"
17321 else
17322 # Determine the default libpath from the value encoded in an empty executable.
17323 cat >conftest.$ac_ext <<_ACEOF
17324/* confdefs.h. */
17325_ACEOF
17326cat confdefs.h >>conftest.$ac_ext
17327cat >>conftest.$ac_ext <<_ACEOF
17328/* end confdefs.h. */
17329
17330int
17331main ()
17332{
17333
17334 ;
17335 return 0;
17336}
17337_ACEOF
17338rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 17339if { (ac_try="$ac_link"
17340case "(($ac_try" in
17341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17342 *) ac_try_echo=$ac_try;;
17343esac
17344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17345 (eval "$ac_link") 2>conftest.er1
d9898ee8 17346 ac_status=$?
17347 grep -v '^ *+' conftest.er1 >conftest.err
17348 rm -f conftest.er1
17349 cat conftest.err >&5
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 17351 (exit $ac_status); } && {
17352 test -z "$ac_c_werror_flag" ||
17353 test ! -s conftest.err
17354 } && test -s conftest$ac_exeext &&
17355 $as_test_x conftest$ac_exeext; then
d9898ee8 17356
0fde1ce3 17357lt_aix_libpath_sed='
17358 /Import File Strings/,/^$/ {
17359 /^0/ {
17360 s/^0 *\(.*\)$/\1/
17361 p
17362 }
17363 }'
17364aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 17365# Check for a 64-bit object if we didn't find anything.
0fde1ce3 17366if test -z "$aix_libpath"; then
17367 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17368fi
d9898ee8 17369else
17370 echo "$as_me: failed program was:" >&5
17371sed 's/^/| /' conftest.$ac_ext >&5
17372
64ff59ba 17373
d9898ee8 17374fi
64ff59ba 17375
17376rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17377 conftest$ac_exeext conftest.$ac_ext
17378if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17379
17380 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17381 # Warning - without using the other run time loading flags,
17382 # -berok will link without error, but may produce a broken library.
17383 no_undefined_flag_GCJ=' ${wl}-bernotok'
17384 allow_undefined_flag_GCJ=' ${wl}-berok'
17385 # Exported symbols can be pulled into shared objects from archives
17386 whole_archive_flag_spec_GCJ='$convenience'
17387 archive_cmds_need_lc_GCJ=yes
17388 # This is similar to how AIX traditionally builds its shared libraries.
17389 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'
17390 fi
17391 fi
17392 ;;
17393
17394 amigaos*)
17395 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)'
17396 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17397 hardcode_minus_L_GCJ=yes
17398 # see comment about different semantics on the GNU ld section
17399 ld_shlibs_GCJ=no
17400 ;;
17401
17402 bsdi[45]*)
17403 export_dynamic_flag_spec_GCJ=-rdynamic
17404 ;;
17405
17406 cygwin* | mingw* | pw32*)
17407 # When not using gcc, we currently assume that we are using
17408 # Microsoft Visual C++.
17409 # hardcode_libdir_flag_spec is actually meaningless, as there is
17410 # no search path for DLLs.
17411 hardcode_libdir_flag_spec_GCJ=' '
17412 allow_undefined_flag_GCJ=unsupported
17413 # Tell ltmain to make .lib files, not .a files.
17414 libext=lib
17415 # Tell ltmain to make .dll files, not .so files.
17416 shrext_cmds=".dll"
17417 # FIXME: Setting linknames here is a bad hack.
17418 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17419 # The linker will automatically build a .lib file if we build a DLL.
17420 old_archive_From_new_cmds_GCJ='true'
17421 # FIXME: Should let the user specify the lib program.
0fde1ce3 17422 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
d9898ee8 17423 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17424 enable_shared_with_static_runtimes_GCJ=yes
17425 ;;
17426
17427 darwin* | rhapsody*)
17428 case $host_os in
17429 rhapsody* | darwin1.[012])
17430 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17431 ;;
17432 *) # Darwin 1.3 on
17433 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17434 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17435 else
17436 case ${MACOSX_DEPLOYMENT_TARGET} in
17437 10.[012])
17438 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17439 ;;
17440 10.*)
17441 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17442 ;;
17443 esac
17444 fi
17445 ;;
17446 esac
17447 archive_cmds_need_lc_GCJ=no
17448 hardcode_direct_GCJ=no
17449 hardcode_automatic_GCJ=yes
17450 hardcode_shlibpath_var_GCJ=unsupported
17451 whole_archive_flag_spec_GCJ=''
17452 link_all_deplibs_GCJ=yes
17453 if test "$GCC" = yes ; then
17454 output_verbose_link_cmd='echo'
17455 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17456 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17457 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17458 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}'
17459 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}'
17460 else
17461 case $cc_basename in
17462 xlc*)
17463 output_verbose_link_cmd='echo'
0fde1ce3 17464 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
d9898ee8 17465 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17466 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
0fde1ce3 17467 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 17468 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}'
17469 ;;
17470 *)
17471 ld_shlibs_GCJ=no
17472 ;;
17473 esac
17474 fi
17475 ;;
17476
17477 dgux*)
17478 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17479 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17480 hardcode_shlibpath_var_GCJ=no
17481 ;;
17482
17483 freebsd1*)
17484 ld_shlibs_GCJ=no
17485 ;;
17486
17487 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17488 # support. Future versions do this automatically, but an explicit c++rt0.o
17489 # does not break anything, and helps significantly (at the cost of a little
17490 # extra space).
17491 freebsd2.2*)
17492 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17493 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17494 hardcode_direct_GCJ=yes
17495 hardcode_shlibpath_var_GCJ=no
17496 ;;
17497
17498 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17499 freebsd2*)
17500 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17501 hardcode_direct_GCJ=yes
17502 hardcode_minus_L_GCJ=yes
17503 hardcode_shlibpath_var_GCJ=no
17504 ;;
17505
17506 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
0fde1ce3 17507 freebsd* | dragonfly*)
d9898ee8 17508 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17509 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17510 hardcode_direct_GCJ=yes
17511 hardcode_shlibpath_var_GCJ=no
17512 ;;
17513
17514 hpux9*)
17515 if test "$GCC" = yes; then
17516 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'
17517 else
17518 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'
17519 fi
17520 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17521 hardcode_libdir_separator_GCJ=:
17522 hardcode_direct_GCJ=yes
17523
17524 # hardcode_minus_L: Not really in the search PATH,
17525 # but as the default location of the library.
17526 hardcode_minus_L_GCJ=yes
17527 export_dynamic_flag_spec_GCJ='${wl}-E'
17528 ;;
17529
17530 hpux10*)
17531 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17532 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17533 else
17534 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17535 fi
17536 if test "$with_gnu_ld" = no; then
17537 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17538 hardcode_libdir_separator_GCJ=:
17539
17540 hardcode_direct_GCJ=yes
17541 export_dynamic_flag_spec_GCJ='${wl}-E'
17542
17543 # hardcode_minus_L: Not really in the search PATH,
17544 # but as the default location of the library.
17545 hardcode_minus_L_GCJ=yes
17546 fi
17547 ;;
17548
17549 hpux11*)
17550 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17551 case $host_cpu in
17552 hppa*64*)
17553 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17554 ;;
17555 ia64*)
17556 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17557 ;;
17558 *)
17559 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17560 ;;
17561 esac
17562 else
17563 case $host_cpu in
17564 hppa*64*)
17565 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17566 ;;
17567 ia64*)
17568 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17569 ;;
17570 *)
17571 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17572 ;;
17573 esac
17574 fi
17575 if test "$with_gnu_ld" = no; then
17576 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17577 hardcode_libdir_separator_GCJ=:
17578
17579 case $host_cpu in
17580 hppa*64*|ia64*)
17581 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17582 hardcode_direct_GCJ=no
17583 hardcode_shlibpath_var_GCJ=no
17584 ;;
17585 *)
17586 hardcode_direct_GCJ=yes
17587 export_dynamic_flag_spec_GCJ='${wl}-E'
17588
17589 # hardcode_minus_L: Not really in the search PATH,
17590 # but as the default location of the library.
17591 hardcode_minus_L_GCJ=yes
17592 ;;
17593 esac
17594 fi
17595 ;;
17596
17597 irix5* | irix6* | nonstopux*)
17598 if test "$GCC" = yes; then
17599 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'
17600 else
17601 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'
17602 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17603 fi
17604 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17605 hardcode_libdir_separator_GCJ=:
17606 link_all_deplibs_GCJ=yes
17607 ;;
17608
17609 netbsd*)
17610 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17611 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17612 else
17613 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17614 fi
17615 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17616 hardcode_direct_GCJ=yes
17617 hardcode_shlibpath_var_GCJ=no
17618 ;;
17619
17620 newsos6)
17621 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17622 hardcode_direct_GCJ=yes
17623 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17624 hardcode_libdir_separator_GCJ=:
17625 hardcode_shlibpath_var_GCJ=no
17626 ;;
17627
17628 openbsd*)
0fde1ce3 17629 if test -f /usr/libexec/ld.so; then
17630 hardcode_direct_GCJ=yes
17631 hardcode_shlibpath_var_GCJ=no
17632 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17633 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17634 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17635 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17636 export_dynamic_flag_spec_GCJ='${wl}-E'
17637 else
17638 case $host_os in
17639 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17640 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17641 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17642 ;;
17643 *)
17644 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17645 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17646 ;;
17647 esac
17648 fi
d9898ee8 17649 else
0fde1ce3 17650 ld_shlibs_GCJ=no
d9898ee8 17651 fi
17652 ;;
17653
17654 os2*)
17655 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17656 hardcode_minus_L_GCJ=yes
17657 allow_undefined_flag_GCJ=unsupported
17658 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'
17659 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17660 ;;
17661
17662 osf3*)
17663 if test "$GCC" = yes; then
17664 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17665 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'
17666 else
17667 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17668 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'
17669 fi
17670 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17671 hardcode_libdir_separator_GCJ=:
17672 ;;
17673
17674 osf4* | osf5*) # as osf3* with the addition of -msym flag
17675 if test "$GCC" = yes; then
17676 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17677 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'
17678 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17679 else
17680 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17681 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'
17682 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~
17683 $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'
17684
17685 # Both c and cxx compiler support -rpath directly
17686 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17687 fi
17688 hardcode_libdir_separator_GCJ=:
17689 ;;
17690
17691 solaris*)
17692 no_undefined_flag_GCJ=' -z text'
17693 if test "$GCC" = yes; then
17694 wlarc='${wl}'
17695 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17696 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17697 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17698 else
17699 wlarc=''
17700 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17701 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17702 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17703 fi
17704 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17705 hardcode_shlibpath_var_GCJ=no
17706 case $host_os in
17707 solaris2.[0-5] | solaris2.[0-5].*) ;;
17708 *)
0fde1ce3 17709 # The compiler driver will combine and reorder linker options,
17710 # but understands `-z linker_flag'. GCC discards it without `$wl',
17711 # but is careful enough not to reorder.
d9898ee8 17712 # Supported since Solaris 2.6 (maybe 2.5.1?)
0fde1ce3 17713 if test "$GCC" = yes; then
17714 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17715 else
17716 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17717 fi
17718 ;;
d9898ee8 17719 esac
17720 link_all_deplibs_GCJ=yes
17721 ;;
17722
17723 sunos4*)
17724 if test "x$host_vendor" = xsequent; then
17725 # Use $CC to link under sequent, because it throws in some extra .o
17726 # files that make .init and .fini sections work.
17727 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17728 else
17729 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17730 fi
17731 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17732 hardcode_direct_GCJ=yes
17733 hardcode_minus_L_GCJ=yes
17734 hardcode_shlibpath_var_GCJ=no
17735 ;;
17736
17737 sysv4)
17738 case $host_vendor in
17739 sni)
17740 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17741 hardcode_direct_GCJ=yes # is this really true???
17742 ;;
17743 siemens)
17744 ## LD is ld it makes a PLAMLIB
17745 ## CC just makes a GrossModule.
17746 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17747 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17748 hardcode_direct_GCJ=no
17749 ;;
17750 motorola)
17751 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17752 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17753 ;;
17754 esac
17755 runpath_var='LD_RUN_PATH'
17756 hardcode_shlibpath_var_GCJ=no
17757 ;;
17758
17759 sysv4.3*)
17760 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17761 hardcode_shlibpath_var_GCJ=no
17762 export_dynamic_flag_spec_GCJ='-Bexport'
17763 ;;
17764
17765 sysv4*MP*)
17766 if test -d /usr/nec; then
17767 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17768 hardcode_shlibpath_var_GCJ=no
17769 runpath_var=LD_RUN_PATH
17770 hardcode_runpath_var=yes
17771 ld_shlibs_GCJ=yes
17772 fi
17773 ;;
17774
0fde1ce3 17775 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
d9898ee8 17776 no_undefined_flag_GCJ='${wl}-z,text'
17777 archive_cmds_need_lc_GCJ=no
17778 hardcode_shlibpath_var_GCJ=no
17779 runpath_var='LD_RUN_PATH'
17780
17781 if test "$GCC" = yes; then
17782 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17783 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17784 else
17785 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17786 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17787 fi
17788 ;;
17789
17790 sysv5* | sco3.2v5* | sco5v6*)
17791 # Note: We can NOT use -z defs as we might desire, because we do not
17792 # link with -lc, and that would cause any symbols used from libc to
17793 # always be unresolved, which means just about no library would
17794 # ever link correctly. If we're not using GNU ld we use -z text
17795 # though, which does catch some bad symbols but isn't as heavy-handed
17796 # as -z defs.
17797 no_undefined_flag_GCJ='${wl}-z,text'
17798 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17799 archive_cmds_need_lc_GCJ=no
17800 hardcode_shlibpath_var_GCJ=no
17801 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17802 hardcode_libdir_separator_GCJ=':'
17803 link_all_deplibs_GCJ=yes
17804 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17805 runpath_var='LD_RUN_PATH'
17806
17807 if test "$GCC" = yes; then
17808 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17809 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17810 else
17811 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17812 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17813 fi
17814 ;;
17815
17816 uts4*)
17817 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17818 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17819 hardcode_shlibpath_var_GCJ=no
17820 ;;
17821
17822 *)
17823 ld_shlibs_GCJ=no
17824 ;;
17825 esac
17826 fi
17827
64ff59ba 17828{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17829echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
d9898ee8 17830test "$ld_shlibs_GCJ" = no && can_build_shared=no
17831
17832#
17833# Do we need to explicitly link libc?
17834#
17835case "x$archive_cmds_need_lc_GCJ" in
17836x|xyes)
17837 # Assume -lc should be added
17838 archive_cmds_need_lc_GCJ=yes
17839
17840 if test "$enable_shared" = yes && test "$GCC" = yes; then
17841 case $archive_cmds_GCJ in
17842 *'~'*)
17843 # FIXME: we may have to deal with multi-command sequences.
17844 ;;
17845 '$CC '*)
17846 # Test whether the compiler implicitly links with -lc since on some
17847 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17848 # to ld, don't add -lc before -lgcc.
64ff59ba 17849 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17850echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 17851 $rm conftest*
0fde1ce3 17852 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 17853
17854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17855 (eval $ac_compile) 2>&5
17856 ac_status=$?
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); } 2>conftest.err; then
17859 soname=conftest
17860 lib=conftest
17861 libobjs=conftest.$ac_objext
17862 deplibs=
17863 wl=$lt_prog_compiler_wl_GCJ
17864 pic_flag=$lt_prog_compiler_pic_GCJ
17865 compiler_flags=-v
17866 linker_flags=-v
17867 verstring=
17868 output_objdir=.
17869 libname=conftest
17870 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17871 allow_undefined_flag_GCJ=
17872 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17873 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17874 ac_status=$?
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); }
17877 then
17878 archive_cmds_need_lc_GCJ=no
17879 else
17880 archive_cmds_need_lc_GCJ=yes
17881 fi
17882 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17883 else
17884 cat conftest.err 1>&5
17885 fi
17886 $rm conftest*
64ff59ba 17887 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17888echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
d9898ee8 17889 ;;
17890 esac
17891 fi
17892 ;;
17893esac
17894
64ff59ba 17895{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17896echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 17897library_names_spec=
17898libname_spec='lib$name'
17899soname_spec=
17900shrext_cmds=".so"
17901postinstall_cmds=
17902postuninstall_cmds=
17903finish_cmds=
17904finish_eval=
17905shlibpath_var=
17906shlibpath_overrides_runpath=unknown
17907version_type=none
17908dynamic_linker="$host_os ld.so"
17909sys_lib_dlsearch_path_spec="/lib /usr/lib"
0fde1ce3 17910
d9898ee8 17911need_lib_prefix=unknown
17912hardcode_into_libs=no
17913
17914# when you set need_version to no, make sure it does not cause -set_version
17915# flags to be left without arguments
17916need_version=unknown
17917
17918case $host_os in
17919aix3*)
17920 version_type=linux
17921 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17922 shlibpath_var=LIBPATH
17923
17924 # AIX 3 has no versioning support, so we append a major version to the name.
17925 soname_spec='${libname}${release}${shared_ext}$major'
17926 ;;
17927
17928aix4* | aix5*)
17929 version_type=linux
17930 need_lib_prefix=no
17931 need_version=no
17932 hardcode_into_libs=yes
17933 if test "$host_cpu" = ia64; then
17934 # AIX 5 supports IA64
17935 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17936 shlibpath_var=LD_LIBRARY_PATH
17937 else
17938 # With GCC up to 2.95.x, collect2 would create an import file
17939 # for dependence libraries. The import file would start with
17940 # the line `#! .'. This would cause the generated library to
17941 # depend on `.', always an invalid library. This was fixed in
17942 # development snapshots of GCC prior to 3.0.
17943 case $host_os in
17944 aix4 | aix4.[01] | aix4.[01].*)
17945 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17946 echo ' yes '
17947 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17948 :
17949 else
17950 can_build_shared=no
17951 fi
17952 ;;
17953 esac
17954 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17955 # soname into executable. Probably we can add versioning support to
17956 # collect2, so additional links can be useful in future.
17957 if test "$aix_use_runtimelinking" = yes; then
17958 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17959 # instead of lib<name>.a to let people know that these are not
17960 # typical AIX shared libraries.
17961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17962 else
17963 # We preserve .a as extension for shared libraries through AIX4.2
17964 # and later when we are not doing run time linking.
17965 library_names_spec='${libname}${release}.a $libname.a'
17966 soname_spec='${libname}${release}${shared_ext}$major'
17967 fi
17968 shlibpath_var=LIBPATH
17969 fi
17970 ;;
17971
17972amigaos*)
17973 library_names_spec='$libname.ixlibrary $libname.a'
17974 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17975 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'
17976 ;;
17977
17978beos*)
17979 library_names_spec='${libname}${shared_ext}'
17980 dynamic_linker="$host_os ld.so"
17981 shlibpath_var=LIBRARY_PATH
17982 ;;
17983
17984bsdi[45]*)
17985 version_type=linux
17986 need_version=no
17987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17988 soname_spec='${libname}${release}${shared_ext}$major'
17989 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17990 shlibpath_var=LD_LIBRARY_PATH
17991 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17992 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17993 # the default ld.so.conf also contains /usr/contrib/lib and
17994 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17995 # libtool to hard-code these into programs
17996 ;;
17997
17998cygwin* | mingw* | pw32*)
17999 version_type=windows
18000 shrext_cmds=".dll"
18001 need_version=no
18002 need_lib_prefix=no
18003
18004 case $GCC,$host_os in
18005 yes,cygwin* | yes,mingw* | yes,pw32*)
18006 library_names_spec='$libname.dll.a'
18007 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18008 postinstall_cmds='base_file=`basename \${file}`~
18009 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18010 dldir=$destdir/`dirname \$dlpath`~
18011 test -d \$dldir || mkdir -p \$dldir~
18012 $install_prog $dir/$dlname \$dldir/$dlname~
18013 chmod a+x \$dldir/$dlname'
18014 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18015 dlpath=$dir/\$dldll~
18016 $rm \$dlpath'
18017 shlibpath_overrides_runpath=yes
18018
18019 case $host_os in
18020 cygwin*)
18021 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18022 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18023 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18024 ;;
18025 mingw*)
18026 # MinGW DLLs use traditional 'lib' prefix
18027 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18028 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18029 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18030 # It is most probably a Windows format PATH printed by
18031 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18032 # path with ; separators, and with drive letters. We can handle the
18033 # drive letters (cygwin fileutils understands them), so leave them,
18034 # especially as we might pass files found there to a mingw objdump,
18035 # which wouldn't understand a cygwinified path. Ahh.
18036 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18037 else
18038 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18039 fi
18040 ;;
18041 pw32*)
18042 # pw32 DLLs use 'pw' prefix rather than 'lib'
18043 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18044 ;;
18045 esac
18046 ;;
18047
18048 *)
18049 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18050 ;;
18051 esac
18052 dynamic_linker='Win32 ld.exe'
18053 # FIXME: first we should search . and the directory the executable is in
18054 shlibpath_var=PATH
18055 ;;
18056
18057darwin* | rhapsody*)
18058 dynamic_linker="$host_os dyld"
18059 version_type=darwin
18060 need_lib_prefix=no
18061 need_version=no
18062 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18063 soname_spec='${libname}${release}${major}$shared_ext'
18064 shlibpath_overrides_runpath=yes
18065 shlibpath_var=DYLD_LIBRARY_PATH
18066 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
0fde1ce3 18067
d9898ee8 18068 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18069 ;;
18070
18071dgux*)
18072 version_type=linux
18073 need_lib_prefix=no
18074 need_version=no
18075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18076 soname_spec='${libname}${release}${shared_ext}$major'
18077 shlibpath_var=LD_LIBRARY_PATH
18078 ;;
18079
18080freebsd1*)
18081 dynamic_linker=no
18082 ;;
18083
d9898ee8 18084freebsd* | dragonfly*)
18085 # DragonFly does not have aout. When/if they implement a new
18086 # versioning mechanism, adjust this.
18087 if test -x /usr/bin/objformat; then
18088 objformat=`/usr/bin/objformat`
18089 else
18090 case $host_os in
18091 freebsd[123]*) objformat=aout ;;
18092 *) objformat=elf ;;
18093 esac
18094 fi
18095 version_type=freebsd-$objformat
18096 case $version_type in
18097 freebsd-elf*)
18098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18099 need_version=no
18100 need_lib_prefix=no
18101 ;;
18102 freebsd-*)
18103 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18104 need_version=yes
18105 ;;
18106 esac
18107 shlibpath_var=LD_LIBRARY_PATH
18108 case $host_os in
18109 freebsd2*)
18110 shlibpath_overrides_runpath=yes
18111 ;;
18112 freebsd3.[01]* | freebsdelf3.[01]*)
18113 shlibpath_overrides_runpath=yes
18114 hardcode_into_libs=yes
18115 ;;
18116 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18117 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18118 shlibpath_overrides_runpath=no
18119 hardcode_into_libs=yes
18120 ;;
0fde1ce3 18121 *) # from 4.6 on, and DragonFly
d9898ee8 18122 shlibpath_overrides_runpath=yes
18123 hardcode_into_libs=yes
18124 ;;
18125 esac
18126 ;;
18127
18128gnu*)
18129 version_type=linux
18130 need_lib_prefix=no
18131 need_version=no
18132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18133 soname_spec='${libname}${release}${shared_ext}$major'
18134 shlibpath_var=LD_LIBRARY_PATH
18135 hardcode_into_libs=yes
18136 ;;
18137
18138hpux9* | hpux10* | hpux11*)
18139 # Give a soname corresponding to the major version so that dld.sl refuses to
18140 # link against other versions.
18141 version_type=sunos
18142 need_lib_prefix=no
18143 need_version=no
18144 case $host_cpu in
18145 ia64*)
18146 shrext_cmds='.so'
18147 hardcode_into_libs=yes
18148 dynamic_linker="$host_os dld.so"
18149 shlibpath_var=LD_LIBRARY_PATH
18150 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18152 soname_spec='${libname}${release}${shared_ext}$major'
18153 if test "X$HPUX_IA64_MODE" = X32; then
18154 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18155 else
18156 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18157 fi
18158 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18159 ;;
18160 hppa*64*)
18161 shrext_cmds='.sl'
18162 hardcode_into_libs=yes
18163 dynamic_linker="$host_os dld.sl"
18164 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18165 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18167 soname_spec='${libname}${release}${shared_ext}$major'
18168 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18169 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18170 ;;
18171 *)
18172 shrext_cmds='.sl'
18173 dynamic_linker="$host_os dld.sl"
18174 shlibpath_var=SHLIB_PATH
18175 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18177 soname_spec='${libname}${release}${shared_ext}$major'
18178 ;;
18179 esac
18180 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18181 postinstall_cmds='chmod 555 $lib'
18182 ;;
18183
0fde1ce3 18184interix[3-9]*)
d9898ee8 18185 version_type=linux
18186 need_lib_prefix=no
18187 need_version=no
18188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18189 soname_spec='${libname}${release}${shared_ext}$major'
18190 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18191 shlibpath_var=LD_LIBRARY_PATH
18192 shlibpath_overrides_runpath=no
18193 hardcode_into_libs=yes
18194 ;;
18195
18196irix5* | irix6* | nonstopux*)
18197 case $host_os in
18198 nonstopux*) version_type=nonstopux ;;
18199 *)
18200 if test "$lt_cv_prog_gnu_ld" = yes; then
18201 version_type=linux
18202 else
18203 version_type=irix
18204 fi ;;
18205 esac
18206 need_lib_prefix=no
18207 need_version=no
18208 soname_spec='${libname}${release}${shared_ext}$major'
18209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18210 case $host_os in
18211 irix5* | nonstopux*)
18212 libsuff= shlibsuff=
18213 ;;
18214 *)
18215 case $LD in # libtool.m4 will add one of these switches to LD
18216 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18217 libsuff= shlibsuff= libmagic=32-bit;;
18218 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18219 libsuff=32 shlibsuff=N32 libmagic=N32;;
18220 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18221 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18222 *) libsuff= shlibsuff= libmagic=never-match;;
18223 esac
18224 ;;
18225 esac
18226 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18227 shlibpath_overrides_runpath=no
18228 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18229 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18230 hardcode_into_libs=yes
18231 ;;
18232
18233# No shared lib support for Linux oldld, aout, or coff.
18234linux*oldld* | linux*aout* | linux*coff*)
18235 dynamic_linker=no
18236 ;;
18237
18238# This must be Linux ELF.
0fde1ce3 18239linux* | k*bsd*-gnu)
d9898ee8 18240 version_type=linux
18241 need_lib_prefix=no
18242 need_version=no
18243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18244 soname_spec='${libname}${release}${shared_ext}$major'
18245 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18246 shlibpath_var=LD_LIBRARY_PATH
18247 shlibpath_overrides_runpath=no
18248 # This implies no fast_install, which is unacceptable.
18249 # Some rework will be needed to allow for fast_install
18250 # before this can be enabled.
18251 hardcode_into_libs=yes
0fde1ce3 18252 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18253 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
d9898ee8 18254
18255 # Append ld.so.conf contents to the search path
18256 if test -f /etc/ld.so.conf; then
0fde1ce3 18257 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' ' '`
18258 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 18259 fi
18260
18261 # We used to test for /lib/ld.so.1 and disable shared libraries on
18262 # powerpc, because MkLinux only supported shared libraries with the
18263 # GNU dynamic linker. Since this was broken with cross compilers,
18264 # most powerpc-linux boxes support dynamic linking these days and
18265 # people can always --disable-shared, the test was removed, and we
18266 # assume the GNU/Linux dynamic linker is in use.
18267 dynamic_linker='GNU/Linux ld.so'
18268 ;;
18269
d9898ee8 18270netbsd*)
18271 version_type=sunos
18272 need_lib_prefix=no
18273 need_version=no
18274 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18276 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18277 dynamic_linker='NetBSD (a.out) ld.so'
18278 else
18279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18280 soname_spec='${libname}${release}${shared_ext}$major'
18281 dynamic_linker='NetBSD ld.elf_so'
18282 fi
18283 shlibpath_var=LD_LIBRARY_PATH
18284 shlibpath_overrides_runpath=yes
18285 hardcode_into_libs=yes
18286 ;;
18287
18288newsos6)
18289 version_type=linux
18290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18291 shlibpath_var=LD_LIBRARY_PATH
18292 shlibpath_overrides_runpath=yes
18293 ;;
18294
18295nto-qnx*)
18296 version_type=linux
18297 need_lib_prefix=no
18298 need_version=no
18299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18300 soname_spec='${libname}${release}${shared_ext}$major'
18301 shlibpath_var=LD_LIBRARY_PATH
18302 shlibpath_overrides_runpath=yes
18303 ;;
18304
18305openbsd*)
18306 version_type=sunos
18307 sys_lib_dlsearch_path_spec="/usr/lib"
18308 need_lib_prefix=no
18309 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18310 case $host_os in
18311 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18312 *) need_version=no ;;
18313 esac
18314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18316 shlibpath_var=LD_LIBRARY_PATH
18317 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18318 case $host_os in
18319 openbsd2.[89] | openbsd2.[89].*)
18320 shlibpath_overrides_runpath=no
18321 ;;
18322 *)
18323 shlibpath_overrides_runpath=yes
18324 ;;
18325 esac
18326 else
18327 shlibpath_overrides_runpath=yes
18328 fi
18329 ;;
18330
18331os2*)
18332 libname_spec='$name'
18333 shrext_cmds=".dll"
18334 need_lib_prefix=no
18335 library_names_spec='$libname${shared_ext} $libname.a'
18336 dynamic_linker='OS/2 ld.exe'
18337 shlibpath_var=LIBPATH
18338 ;;
18339
18340osf3* | osf4* | osf5*)
18341 version_type=osf
18342 need_lib_prefix=no
18343 need_version=no
18344 soname_spec='${libname}${release}${shared_ext}$major'
18345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18346 shlibpath_var=LD_LIBRARY_PATH
18347 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18348 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18349 ;;
18350
0fde1ce3 18351rdos*)
18352 dynamic_linker=no
18353 ;;
18354
d9898ee8 18355solaris*)
18356 version_type=linux
18357 need_lib_prefix=no
18358 need_version=no
18359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18360 soname_spec='${libname}${release}${shared_ext}$major'
18361 shlibpath_var=LD_LIBRARY_PATH
18362 shlibpath_overrides_runpath=yes
18363 hardcode_into_libs=yes
18364 # ldd complains unless libraries are executable
18365 postinstall_cmds='chmod +x $lib'
18366 ;;
18367
18368sunos4*)
18369 version_type=sunos
18370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18371 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18372 shlibpath_var=LD_LIBRARY_PATH
18373 shlibpath_overrides_runpath=yes
18374 if test "$with_gnu_ld" = yes; then
18375 need_lib_prefix=no
18376 fi
18377 need_version=yes
18378 ;;
18379
18380sysv4 | sysv4.3*)
18381 version_type=linux
18382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18383 soname_spec='${libname}${release}${shared_ext}$major'
18384 shlibpath_var=LD_LIBRARY_PATH
18385 case $host_vendor in
18386 sni)
18387 shlibpath_overrides_runpath=no
18388 need_lib_prefix=no
18389 export_dynamic_flag_spec='${wl}-Blargedynsym'
18390 runpath_var=LD_RUN_PATH
18391 ;;
18392 siemens)
18393 need_lib_prefix=no
18394 ;;
18395 motorola)
18396 need_lib_prefix=no
18397 need_version=no
18398 shlibpath_overrides_runpath=no
18399 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18400 ;;
18401 esac
18402 ;;
18403
18404sysv4*MP*)
18405 if test -d /usr/nec ;then
18406 version_type=linux
18407 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18408 soname_spec='$libname${shared_ext}.$major'
18409 shlibpath_var=LD_LIBRARY_PATH
18410 fi
18411 ;;
18412
18413sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18414 version_type=freebsd-elf
18415 need_lib_prefix=no
18416 need_version=no
18417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18418 soname_spec='${libname}${release}${shared_ext}$major'
18419 shlibpath_var=LD_LIBRARY_PATH
18420 hardcode_into_libs=yes
18421 if test "$with_gnu_ld" = yes; then
18422 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18423 shlibpath_overrides_runpath=no
18424 else
18425 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18426 shlibpath_overrides_runpath=yes
18427 case $host_os in
18428 sco3.2v5*)
18429 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18430 ;;
18431 esac
18432 fi
18433 sys_lib_dlsearch_path_spec='/usr/lib'
18434 ;;
18435
18436uts4*)
18437 version_type=linux
18438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18439 soname_spec='${libname}${release}${shared_ext}$major'
18440 shlibpath_var=LD_LIBRARY_PATH
18441 ;;
18442
18443*)
18444 dynamic_linker=no
18445 ;;
18446esac
64ff59ba 18447{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18448echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 18449test "$dynamic_linker" = no && can_build_shared=no
18450
18451variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18452if test "$GCC" = yes; then
18453 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18454fi
18455
64ff59ba 18456{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18457echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 18458hardcode_action_GCJ=
18459if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18460 test -n "$runpath_var_GCJ" || \
18461 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18462
18463 # We can hardcode non-existant directories.
18464 if test "$hardcode_direct_GCJ" != no &&
18465 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18466 # have to relink, otherwise we might link with an installed library
18467 # when we should be linking with a yet-to-be-installed one
18468 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18469 test "$hardcode_minus_L_GCJ" != no; then
18470 # Linking always hardcodes the temporary library directory.
18471 hardcode_action_GCJ=relink
18472 else
18473 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18474 hardcode_action_GCJ=immediate
18475 fi
18476else
18477 # We cannot hardcode anything, or else we can only hardcode existing
18478 # directories.
18479 hardcode_action_GCJ=unsupported
18480fi
64ff59ba 18481{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18482echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
d9898ee8 18483
18484if test "$hardcode_action_GCJ" = relink; then
18485 # Fast installation is not supported
18486 enable_fast_install=no
18487elif test "$shlibpath_overrides_runpath" = yes ||
18488 test "$enable_shared" = no; then
18489 # Fast installation is not necessary
18490 enable_fast_install=needless
18491fi
18492
18493
18494# The else clause should only fire when bootstrapping the
18495# libtool distribution, otherwise you forgot to ship ltmain.sh
18496# with your package, and you will get complaints that there are
18497# no rules to generate ltmain.sh.
18498if test -f "$ltmain"; then
18499 # See if we are running on zsh, and set the options which allow our commands through
18500 # without removal of \ escapes.
18501 if test -n "${ZSH_VERSION+set}" ; then
18502 setopt NO_GLOB_SUBST
18503 fi
18504 # Now quote all the things that may contain metacharacters while being
18505 # careful not to overquote the AC_SUBSTed values. We take copies of the
18506 # variables and quote the copies for generation of the libtool script.
18507 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18508 SED SHELL STRIP \
18509 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18510 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18511 deplibs_check_method reload_flag reload_cmds need_locks \
18512 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18513 lt_cv_sys_global_symbol_to_c_name_address \
18514 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18515 old_postinstall_cmds old_postuninstall_cmds \
18516 compiler_GCJ \
18517 CC_GCJ \
18518 LD_GCJ \
18519 lt_prog_compiler_wl_GCJ \
18520 lt_prog_compiler_pic_GCJ \
18521 lt_prog_compiler_static_GCJ \
18522 lt_prog_compiler_no_builtin_flag_GCJ \
18523 export_dynamic_flag_spec_GCJ \
18524 thread_safe_flag_spec_GCJ \
18525 whole_archive_flag_spec_GCJ \
18526 enable_shared_with_static_runtimes_GCJ \
18527 old_archive_cmds_GCJ \
18528 old_archive_from_new_cmds_GCJ \
18529 predep_objects_GCJ \
18530 postdep_objects_GCJ \
18531 predeps_GCJ \
18532 postdeps_GCJ \
18533 compiler_lib_search_path_GCJ \
18534 archive_cmds_GCJ \
18535 archive_expsym_cmds_GCJ \
18536 postinstall_cmds_GCJ \
18537 postuninstall_cmds_GCJ \
18538 old_archive_from_expsyms_cmds_GCJ \
18539 allow_undefined_flag_GCJ \
18540 no_undefined_flag_GCJ \
18541 export_symbols_cmds_GCJ \
18542 hardcode_libdir_flag_spec_GCJ \
18543 hardcode_libdir_flag_spec_ld_GCJ \
18544 hardcode_libdir_separator_GCJ \
18545 hardcode_automatic_GCJ \
18546 module_cmds_GCJ \
18547 module_expsym_cmds_GCJ \
18548 lt_cv_prog_compiler_c_o_GCJ \
0fde1ce3 18549 fix_srcfile_path_GCJ \
d9898ee8 18550 exclude_expsyms_GCJ \
18551 include_expsyms_GCJ; do
18552
18553 case $var in
18554 old_archive_cmds_GCJ | \
18555 old_archive_from_new_cmds_GCJ | \
18556 archive_cmds_GCJ | \
18557 archive_expsym_cmds_GCJ | \
18558 module_cmds_GCJ | \
18559 module_expsym_cmds_GCJ | \
18560 old_archive_from_expsyms_cmds_GCJ | \
18561 export_symbols_cmds_GCJ | \
18562 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18563 postinstall_cmds | postuninstall_cmds | \
18564 old_postinstall_cmds | old_postuninstall_cmds | \
18565 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18566 # Double-quote double-evaled strings.
18567 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18568 ;;
18569 *)
18570 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18571 ;;
18572 esac
18573 done
18574
18575 case $lt_echo in
18576 *'\$0 --fallback-echo"')
18577 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18578 ;;
18579 esac
18580
18581cfgfile="$ofile"
18582
18583 cat <<__EOF__ >> "$cfgfile"
18584# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18585
18586# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18587
18588# Shell to use when invoking shell scripts.
18589SHELL=$lt_SHELL
18590
18591# Whether or not to build shared libraries.
18592build_libtool_libs=$enable_shared
18593
18594# Whether or not to build static libraries.
18595build_old_libs=$enable_static
18596
18597# Whether or not to add -lc for building shared libraries.
18598build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18599
18600# Whether or not to disallow shared libs when runtime libs are static
18601allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18602
18603# Whether or not to optimize for fast installation.
18604fast_install=$enable_fast_install
18605
18606# The host system.
18607host_alias=$host_alias
18608host=$host
18609host_os=$host_os
18610
18611# The build system.
18612build_alias=$build_alias
18613build=$build
18614build_os=$build_os
18615
18616# An echo program that does not interpret backslashes.
18617echo=$lt_echo
18618
18619# The archiver.
18620AR=$lt_AR
18621AR_FLAGS=$lt_AR_FLAGS
18622
18623# A C compiler.
18624LTCC=$lt_LTCC
18625
18626# LTCC compiler flags.
18627LTCFLAGS=$lt_LTCFLAGS
18628
18629# A language-specific compiler.
18630CC=$lt_compiler_GCJ
18631
18632# Is the compiler the GNU C compiler?
18633with_gcc=$GCC_GCJ
18634
d9898ee8 18635# An ERE matcher.
18636EGREP=$lt_EGREP
18637
18638# The linker used to build libraries.
18639LD=$lt_LD_GCJ
18640
18641# Whether we need hard or soft links.
18642LN_S=$lt_LN_S
18643
18644# A BSD-compatible nm program.
18645NM=$lt_NM
18646
18647# A symbol stripping program
18648STRIP=$lt_STRIP
18649
18650# Used to examine libraries when file_magic_cmd begins "file"
18651MAGIC_CMD=$MAGIC_CMD
18652
18653# Used on cygwin: DLL creation program.
18654DLLTOOL="$DLLTOOL"
18655
18656# Used on cygwin: object dumper.
18657OBJDUMP="$OBJDUMP"
18658
18659# Used on cygwin: assembler.
18660AS="$AS"
18661
18662# The name of the directory that contains temporary libtool files.
18663objdir=$objdir
18664
18665# How to create reloadable object files.
18666reload_flag=$lt_reload_flag
18667reload_cmds=$lt_reload_cmds
18668
18669# How to pass a linker flag through the compiler.
18670wl=$lt_lt_prog_compiler_wl_GCJ
18671
18672# Object file suffix (normally "o").
18673objext="$ac_objext"
18674
18675# Old archive suffix (normally "a").
18676libext="$libext"
18677
18678# Shared library suffix (normally ".so").
18679shrext_cmds='$shrext_cmds'
18680
18681# Executable file suffix (normally "").
18682exeext="$exeext"
18683
18684# Additional compiler flags for building library objects.
18685pic_flag=$lt_lt_prog_compiler_pic_GCJ
18686pic_mode=$pic_mode
18687
18688# What is the maximum length of a command?
18689max_cmd_len=$lt_cv_sys_max_cmd_len
18690
18691# Does compiler simultaneously support -c and -o options?
18692compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18693
18694# Must we lock files when doing compilation?
18695need_locks=$lt_need_locks
18696
18697# Do we need the lib prefix for modules?
18698need_lib_prefix=$need_lib_prefix
18699
18700# Do we need a version for libraries?
18701need_version=$need_version
18702
18703# Whether dlopen is supported.
18704dlopen_support=$enable_dlopen
18705
18706# Whether dlopen of programs is supported.
18707dlopen_self=$enable_dlopen_self
18708
18709# Whether dlopen of statically linked programs is supported.
18710dlopen_self_static=$enable_dlopen_self_static
18711
18712# Compiler flag to prevent dynamic linking.
18713link_static_flag=$lt_lt_prog_compiler_static_GCJ
18714
18715# Compiler flag to turn off builtin functions.
18716no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18717
18718# Compiler flag to allow reflexive dlopens.
18719export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18720
18721# Compiler flag to generate shared objects directly from archives.
18722whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18723
18724# Compiler flag to generate thread-safe objects.
18725thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18726
18727# Library versioning type.
18728version_type=$version_type
18729
18730# Format of library name prefix.
18731libname_spec=$lt_libname_spec
18732
18733# List of archive names. First name is the real one, the rest are links.
18734# The last name is the one that the linker finds with -lNAME.
18735library_names_spec=$lt_library_names_spec
18736
18737# The coded name of the library, if different from the real name.
18738soname_spec=$lt_soname_spec
18739
18740# Commands used to build and install an old-style archive.
18741RANLIB=$lt_RANLIB
18742old_archive_cmds=$lt_old_archive_cmds_GCJ
18743old_postinstall_cmds=$lt_old_postinstall_cmds
18744old_postuninstall_cmds=$lt_old_postuninstall_cmds
18745
18746# Create an old-style archive from a shared archive.
18747old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18748
18749# Create a temporary old-style archive to link instead of a shared archive.
18750old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18751
18752# Commands used to build and install a shared archive.
18753archive_cmds=$lt_archive_cmds_GCJ
18754archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18755postinstall_cmds=$lt_postinstall_cmds
18756postuninstall_cmds=$lt_postuninstall_cmds
18757
18758# Commands used to build a loadable module (assumed same as above if empty)
18759module_cmds=$lt_module_cmds_GCJ
18760module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18761
18762# Commands to strip libraries.
18763old_striplib=$lt_old_striplib
18764striplib=$lt_striplib
18765
18766# Dependencies to place before the objects being linked to create a
18767# shared library.
64ff59ba 18768predep_objects=$lt_predep_objects_GCJ
d9898ee8 18769
18770# Dependencies to place after the objects being linked to create a
18771# shared library.
64ff59ba 18772postdep_objects=$lt_postdep_objects_GCJ
d9898ee8 18773
18774# Dependencies to place before the objects being linked to create a
18775# shared library.
18776predeps=$lt_predeps_GCJ
18777
18778# Dependencies to place after the objects being linked to create a
18779# shared library.
18780postdeps=$lt_postdeps_GCJ
18781
18782# The library search path used internally by the compiler when linking
18783# a shared library.
64ff59ba 18784compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
d9898ee8 18785
18786# Method to check whether dependent libraries are shared objects.
18787deplibs_check_method=$lt_deplibs_check_method
18788
18789# Command to use when deplibs_check_method == file_magic.
18790file_magic_cmd=$lt_file_magic_cmd
18791
18792# Flag that allows shared libraries with undefined symbols to be built.
18793allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18794
18795# Flag that forces no undefined symbols.
18796no_undefined_flag=$lt_no_undefined_flag_GCJ
18797
18798# Commands used to finish a libtool library installation in a directory.
18799finish_cmds=$lt_finish_cmds
18800
18801# Same as above, but a single script fragment to be evaled but not shown.
18802finish_eval=$lt_finish_eval
18803
18804# Take the output of nm and produce a listing of raw symbols and C names.
18805global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18806
18807# Transform the output of nm in a proper C declaration
18808global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18809
18810# Transform the output of nm in a C name address pair
18811global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18812
18813# This is the shared library runtime path variable.
18814runpath_var=$runpath_var
18815
18816# This is the shared library path variable.
18817shlibpath_var=$shlibpath_var
18818
18819# Is shlibpath searched before the hard-coded library search path?
18820shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18821
18822# How to hardcode a shared library path into an executable.
18823hardcode_action=$hardcode_action_GCJ
18824
18825# Whether we should hardcode library paths into libraries.
18826hardcode_into_libs=$hardcode_into_libs
18827
18828# Flag to hardcode \$libdir into a binary during linking.
18829# This must work even if \$libdir does not exist.
18830hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18831
18832# If ld is used when linking, flag to hardcode \$libdir into
18833# a binary during linking. This must work even if \$libdir does
18834# not exist.
18835hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18836
18837# Whether we need a single -rpath flag with a separated argument.
18838hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18839
18840# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18841# resulting binary.
18842hardcode_direct=$hardcode_direct_GCJ
18843
18844# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18845# resulting binary.
18846hardcode_minus_L=$hardcode_minus_L_GCJ
18847
18848# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18849# the resulting binary.
18850hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18851
18852# Set to yes if building a shared library automatically hardcodes DIR into the library
18853# and all subsequent libraries and executables linked against it.
18854hardcode_automatic=$hardcode_automatic_GCJ
18855
18856# Variables whose values should be saved in libtool wrapper scripts and
18857# restored at relink time.
18858variables_saved_for_relink="$variables_saved_for_relink"
18859
18860# Whether libtool must link a program against all its dependency libraries.
18861link_all_deplibs=$link_all_deplibs_GCJ
18862
18863# Compile-time system search path for libraries
64ff59ba 18864sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 18865
18866# Run-time system search path for libraries
18867sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18868
18869# Fix the shell variable \$srcfile for the compiler.
0fde1ce3 18870fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 18871
18872# Set to yes if exported symbols are required.
18873always_export_symbols=$always_export_symbols_GCJ
18874
18875# The commands to list exported symbols.
18876export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18877
18878# The commands to extract the exported symbol list from a shared archive.
18879extract_expsyms_cmds=$lt_extract_expsyms_cmds
18880
18881# Symbols that should not be listed in the preloaded symbols.
18882exclude_expsyms=$lt_exclude_expsyms_GCJ
18883
18884# Symbols that must always be exported.
18885include_expsyms=$lt_include_expsyms_GCJ
18886
18887# ### END LIBTOOL TAG CONFIG: $tagname
18888
18889__EOF__
18890
18891
18892else
18893 # If there is no Makefile yet, we rely on a make rule to execute
18894 # `config.status --recheck' to rerun these tests and create the
18895 # libtool script then.
18896 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18897 if test -f "$ltmain_in"; then
18898 test -f Makefile && make "$ltmain"
18899 fi
18900fi
18901
18902
18903ac_ext=c
18904ac_cpp='$CPP $CPPFLAGS'
18905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18907ac_compiler_gnu=$ac_cv_c_compiler_gnu
18908
18909CC="$lt_save_CC"
18910
18911 else
18912 tagname=""
18913 fi
18914 ;;
18915
18916 RC)
18917
18918
d9898ee8 18919# Source file extension for RC test sources.
18920ac_ext=rc
18921
18922# Object file extension for compiled RC test sources.
18923objext=o
18924objext_RC=$objext
18925
18926# Code to be used in simple compile tests
0fde1ce3 18927lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
d9898ee8 18928
18929# Code to be used in simple link tests
18930lt_simple_link_test_code="$lt_simple_compile_test_code"
18931
18932# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18933
18934# If no C compiler was specified, use CC.
18935LTCC=${LTCC-"$CC"}
18936
18937# If no C compiler flags were specified, use CFLAGS.
18938LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18939
18940# Allow CC to be a program name with arguments.
18941compiler=$CC
18942
18943
18944# save warnings/boilerplate of simple test code
18945ac_outfile=conftest.$ac_objext
0fde1ce3 18946echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 18947eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18948_lt_compiler_boilerplate=`cat conftest.err`
18949$rm conftest*
18950
18951ac_outfile=conftest.$ac_objext
0fde1ce3 18952echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 18953eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18954_lt_linker_boilerplate=`cat conftest.err`
18955$rm conftest*
18956
18957
18958# Allow CC to be a program name with arguments.
18959lt_save_CC="$CC"
18960CC=${RC-"windres"}
18961compiler=$CC
18962compiler_RC=$CC
18963for cc_temp in $compiler""; do
18964 case $cc_temp in
18965 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18966 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18967 \-*) ;;
18968 *) break;;
18969 esac
18970done
18971cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18972
18973lt_cv_prog_compiler_c_o_RC=yes
18974
18975# The else clause should only fire when bootstrapping the
18976# libtool distribution, otherwise you forgot to ship ltmain.sh
18977# with your package, and you will get complaints that there are
18978# no rules to generate ltmain.sh.
18979if test -f "$ltmain"; then
18980 # See if we are running on zsh, and set the options which allow our commands through
18981 # without removal of \ escapes.
18982 if test -n "${ZSH_VERSION+set}" ; then
18983 setopt NO_GLOB_SUBST
18984 fi
18985 # Now quote all the things that may contain metacharacters while being
18986 # careful not to overquote the AC_SUBSTed values. We take copies of the
18987 # variables and quote the copies for generation of the libtool script.
18988 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18989 SED SHELL STRIP \
18990 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18991 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18992 deplibs_check_method reload_flag reload_cmds need_locks \
18993 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18994 lt_cv_sys_global_symbol_to_c_name_address \
18995 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18996 old_postinstall_cmds old_postuninstall_cmds \
18997 compiler_RC \
18998 CC_RC \
18999 LD_RC \
19000 lt_prog_compiler_wl_RC \
19001 lt_prog_compiler_pic_RC \
19002 lt_prog_compiler_static_RC \
19003 lt_prog_compiler_no_builtin_flag_RC \
19004 export_dynamic_flag_spec_RC \
19005 thread_safe_flag_spec_RC \
19006 whole_archive_flag_spec_RC \
19007 enable_shared_with_static_runtimes_RC \
19008 old_archive_cmds_RC \
19009 old_archive_from_new_cmds_RC \
19010 predep_objects_RC \
19011 postdep_objects_RC \
19012 predeps_RC \
19013 postdeps_RC \
19014 compiler_lib_search_path_RC \
19015 archive_cmds_RC \
19016 archive_expsym_cmds_RC \
19017 postinstall_cmds_RC \
19018 postuninstall_cmds_RC \
19019 old_archive_from_expsyms_cmds_RC \
19020 allow_undefined_flag_RC \
19021 no_undefined_flag_RC \
19022 export_symbols_cmds_RC \
19023 hardcode_libdir_flag_spec_RC \
19024 hardcode_libdir_flag_spec_ld_RC \
19025 hardcode_libdir_separator_RC \
19026 hardcode_automatic_RC \
19027 module_cmds_RC \
19028 module_expsym_cmds_RC \
19029 lt_cv_prog_compiler_c_o_RC \
0fde1ce3 19030 fix_srcfile_path_RC \
d9898ee8 19031 exclude_expsyms_RC \
19032 include_expsyms_RC; do
19033
19034 case $var in
19035 old_archive_cmds_RC | \
19036 old_archive_from_new_cmds_RC | \
19037 archive_cmds_RC | \
19038 archive_expsym_cmds_RC | \
19039 module_cmds_RC | \
19040 module_expsym_cmds_RC | \
19041 old_archive_from_expsyms_cmds_RC | \
19042 export_symbols_cmds_RC | \
19043 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19044 postinstall_cmds | postuninstall_cmds | \
19045 old_postinstall_cmds | old_postuninstall_cmds | \
19046 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19047 # Double-quote double-evaled strings.
19048 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19049 ;;
19050 *)
19051 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19052 ;;
19053 esac
19054 done
19055
19056 case $lt_echo in
19057 *'\$0 --fallback-echo"')
19058 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19059 ;;
19060 esac
19061
19062cfgfile="$ofile"
19063
19064 cat <<__EOF__ >> "$cfgfile"
19065# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19066
19067# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19068
19069# Shell to use when invoking shell scripts.
19070SHELL=$lt_SHELL
19071
19072# Whether or not to build shared libraries.
19073build_libtool_libs=$enable_shared
19074
19075# Whether or not to build static libraries.
19076build_old_libs=$enable_static
19077
19078# Whether or not to add -lc for building shared libraries.
19079build_libtool_need_lc=$archive_cmds_need_lc_RC
19080
19081# Whether or not to disallow shared libs when runtime libs are static
19082allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19083
19084# Whether or not to optimize for fast installation.
19085fast_install=$enable_fast_install
19086
19087# The host system.
19088host_alias=$host_alias
19089host=$host
19090host_os=$host_os
19091
19092# The build system.
19093build_alias=$build_alias
19094build=$build
19095build_os=$build_os
19096
19097# An echo program that does not interpret backslashes.
19098echo=$lt_echo
19099
19100# The archiver.
19101AR=$lt_AR
19102AR_FLAGS=$lt_AR_FLAGS
19103
19104# A C compiler.
19105LTCC=$lt_LTCC
19106
19107# LTCC compiler flags.
19108LTCFLAGS=$lt_LTCFLAGS
19109
19110# A language-specific compiler.
19111CC=$lt_compiler_RC
19112
19113# Is the compiler the GNU C compiler?
19114with_gcc=$GCC_RC
19115
d9898ee8 19116# An ERE matcher.
19117EGREP=$lt_EGREP
19118
19119# The linker used to build libraries.
19120LD=$lt_LD_RC
19121
19122# Whether we need hard or soft links.
19123LN_S=$lt_LN_S
19124
19125# A BSD-compatible nm program.
19126NM=$lt_NM
19127
19128# A symbol stripping program
19129STRIP=$lt_STRIP
19130
19131# Used to examine libraries when file_magic_cmd begins "file"
19132MAGIC_CMD=$MAGIC_CMD
19133
19134# Used on cygwin: DLL creation program.
19135DLLTOOL="$DLLTOOL"
19136
19137# Used on cygwin: object dumper.
19138OBJDUMP="$OBJDUMP"
19139
19140# Used on cygwin: assembler.
19141AS="$AS"
19142
19143# The name of the directory that contains temporary libtool files.
19144objdir=$objdir
19145
19146# How to create reloadable object files.
19147reload_flag=$lt_reload_flag
19148reload_cmds=$lt_reload_cmds
19149
19150# How to pass a linker flag through the compiler.
19151wl=$lt_lt_prog_compiler_wl_RC
19152
19153# Object file suffix (normally "o").
19154objext="$ac_objext"
19155
19156# Old archive suffix (normally "a").
19157libext="$libext"
19158
19159# Shared library suffix (normally ".so").
19160shrext_cmds='$shrext_cmds'
19161
19162# Executable file suffix (normally "").
19163exeext="$exeext"
19164
19165# Additional compiler flags for building library objects.
19166pic_flag=$lt_lt_prog_compiler_pic_RC
19167pic_mode=$pic_mode
19168
19169# What is the maximum length of a command?
19170max_cmd_len=$lt_cv_sys_max_cmd_len
19171
19172# Does compiler simultaneously support -c and -o options?
19173compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19174
19175# Must we lock files when doing compilation?
19176need_locks=$lt_need_locks
19177
19178# Do we need the lib prefix for modules?
19179need_lib_prefix=$need_lib_prefix
19180
19181# Do we need a version for libraries?
19182need_version=$need_version
19183
19184# Whether dlopen is supported.
19185dlopen_support=$enable_dlopen
19186
19187# Whether dlopen of programs is supported.
19188dlopen_self=$enable_dlopen_self
19189
19190# Whether dlopen of statically linked programs is supported.
19191dlopen_self_static=$enable_dlopen_self_static
19192
19193# Compiler flag to prevent dynamic linking.
19194link_static_flag=$lt_lt_prog_compiler_static_RC
19195
19196# Compiler flag to turn off builtin functions.
19197no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19198
19199# Compiler flag to allow reflexive dlopens.
19200export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19201
19202# Compiler flag to generate shared objects directly from archives.
19203whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19204
19205# Compiler flag to generate thread-safe objects.
19206thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19207
19208# Library versioning type.
19209version_type=$version_type
19210
19211# Format of library name prefix.
19212libname_spec=$lt_libname_spec
19213
19214# List of archive names. First name is the real one, the rest are links.
19215# The last name is the one that the linker finds with -lNAME.
19216library_names_spec=$lt_library_names_spec
19217
19218# The coded name of the library, if different from the real name.
19219soname_spec=$lt_soname_spec
19220
19221# Commands used to build and install an old-style archive.
19222RANLIB=$lt_RANLIB
19223old_archive_cmds=$lt_old_archive_cmds_RC
19224old_postinstall_cmds=$lt_old_postinstall_cmds
19225old_postuninstall_cmds=$lt_old_postuninstall_cmds
19226
19227# Create an old-style archive from a shared archive.
19228old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19229
19230# Create a temporary old-style archive to link instead of a shared archive.
19231old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19232
19233# Commands used to build and install a shared archive.
19234archive_cmds=$lt_archive_cmds_RC
19235archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19236postinstall_cmds=$lt_postinstall_cmds
19237postuninstall_cmds=$lt_postuninstall_cmds
19238
19239# Commands used to build a loadable module (assumed same as above if empty)
19240module_cmds=$lt_module_cmds_RC
19241module_expsym_cmds=$lt_module_expsym_cmds_RC
19242
19243# Commands to strip libraries.
19244old_striplib=$lt_old_striplib
19245striplib=$lt_striplib
19246
19247# Dependencies to place before the objects being linked to create a
19248# shared library.
64ff59ba 19249predep_objects=$lt_predep_objects_RC
d9898ee8 19250
19251# Dependencies to place after the objects being linked to create a
19252# shared library.
64ff59ba 19253postdep_objects=$lt_postdep_objects_RC
d9898ee8 19254
19255# Dependencies to place before the objects being linked to create a
19256# shared library.
19257predeps=$lt_predeps_RC
19258
19259# Dependencies to place after the objects being linked to create a
19260# shared library.
19261postdeps=$lt_postdeps_RC
19262
19263# The library search path used internally by the compiler when linking
19264# a shared library.
64ff59ba 19265compiler_lib_search_path=$lt_compiler_lib_search_path_RC
d9898ee8 19266
19267# Method to check whether dependent libraries are shared objects.
19268deplibs_check_method=$lt_deplibs_check_method
19269
19270# Command to use when deplibs_check_method == file_magic.
19271file_magic_cmd=$lt_file_magic_cmd
19272
19273# Flag that allows shared libraries with undefined symbols to be built.
19274allow_undefined_flag=$lt_allow_undefined_flag_RC
19275
19276# Flag that forces no undefined symbols.
19277no_undefined_flag=$lt_no_undefined_flag_RC
19278
19279# Commands used to finish a libtool library installation in a directory.
19280finish_cmds=$lt_finish_cmds
19281
19282# Same as above, but a single script fragment to be evaled but not shown.
19283finish_eval=$lt_finish_eval
19284
19285# Take the output of nm and produce a listing of raw symbols and C names.
19286global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19287
19288# Transform the output of nm in a proper C declaration
19289global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19290
19291# Transform the output of nm in a C name address pair
19292global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19293
19294# This is the shared library runtime path variable.
19295runpath_var=$runpath_var
19296
19297# This is the shared library path variable.
19298shlibpath_var=$shlibpath_var
19299
19300# Is shlibpath searched before the hard-coded library search path?
19301shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19302
19303# How to hardcode a shared library path into an executable.
19304hardcode_action=$hardcode_action_RC
19305
19306# Whether we should hardcode library paths into libraries.
19307hardcode_into_libs=$hardcode_into_libs
19308
19309# Flag to hardcode \$libdir into a binary during linking.
19310# This must work even if \$libdir does not exist.
19311hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19312
19313# If ld is used when linking, flag to hardcode \$libdir into
19314# a binary during linking. This must work even if \$libdir does
19315# not exist.
19316hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19317
19318# Whether we need a single -rpath flag with a separated argument.
19319hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19320
19321# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19322# resulting binary.
19323hardcode_direct=$hardcode_direct_RC
19324
19325# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19326# resulting binary.
19327hardcode_minus_L=$hardcode_minus_L_RC
19328
19329# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19330# the resulting binary.
19331hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19332
19333# Set to yes if building a shared library automatically hardcodes DIR into the library
19334# and all subsequent libraries and executables linked against it.
19335hardcode_automatic=$hardcode_automatic_RC
19336
19337# Variables whose values should be saved in libtool wrapper scripts and
19338# restored at relink time.
19339variables_saved_for_relink="$variables_saved_for_relink"
19340
19341# Whether libtool must link a program against all its dependency libraries.
19342link_all_deplibs=$link_all_deplibs_RC
19343
19344# Compile-time system search path for libraries
64ff59ba 19345sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 19346
19347# Run-time system search path for libraries
19348sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19349
19350# Fix the shell variable \$srcfile for the compiler.
0fde1ce3 19351fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 19352
19353# Set to yes if exported symbols are required.
19354always_export_symbols=$always_export_symbols_RC
19355
19356# The commands to list exported symbols.
19357export_symbols_cmds=$lt_export_symbols_cmds_RC
19358
19359# The commands to extract the exported symbol list from a shared archive.
19360extract_expsyms_cmds=$lt_extract_expsyms_cmds
19361
19362# Symbols that should not be listed in the preloaded symbols.
19363exclude_expsyms=$lt_exclude_expsyms_RC
19364
19365# Symbols that must always be exported.
19366include_expsyms=$lt_include_expsyms_RC
19367
19368# ### END LIBTOOL TAG CONFIG: $tagname
19369
19370__EOF__
19371
19372
19373else
19374 # If there is no Makefile yet, we rely on a make rule to execute
19375 # `config.status --recheck' to rerun these tests and create the
19376 # libtool script then.
19377 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19378 if test -f "$ltmain_in"; then
19379 test -f Makefile && make "$ltmain"
19380 fi
19381fi
19382
19383
19384ac_ext=c
19385ac_cpp='$CPP $CPPFLAGS'
19386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19388ac_compiler_gnu=$ac_cv_c_compiler_gnu
19389
19390CC="$lt_save_CC"
19391
19392 ;;
19393
19394 *)
19395 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19396echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19397 { (exit 1); exit 1; }; }
19398 ;;
19399 esac
19400
19401 # Append the new tag name to the list of available tags.
19402 if test -n "$tagname" ; then
19403 available_tags="$available_tags $tagname"
19404 fi
19405 fi
19406 done
19407 IFS="$lt_save_ifs"
19408
19409 # Now substitute the updated list of available tags.
19410 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19411 mv "${ofile}T" "$ofile"
19412 chmod +x "$ofile"
19413 else
19414 rm -f "${ofile}T"
19415 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19416echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19417 { (exit 1); exit 1; }; }
19418 fi
19419fi
19420
19421
19422
19423# This can be used to rebuild libtool when needed
19424LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19425
19426# Always use our own libtool.
19427LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19428
19429# Prevent multiple expansion
19430
19431
19432
19433
19434
19435
19436
19437
19438
19439
19440
19441
19442
19443
19444
19445
19446
19447
19448
19449
19450
19451if test "$GCC" = "yes"
19452then
19453 CFLAGS="$CFLAGS -Wall"
19454fi
19455
19456
19457
19458
19459for ac_header in unistd.h
19460do
19461as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 19462if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19463 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19464echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19465if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 19466 echo $ECHO_N "(cached) $ECHO_C" >&6
19467fi
64ff59ba 19468ac_res=`eval echo '${'$as_ac_Header'}'`
19469 { echo "$as_me:$LINENO: result: $ac_res" >&5
19470echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 19471else
19472 # Is the header compilable?
64ff59ba 19473{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19474echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 19475cat >conftest.$ac_ext <<_ACEOF
19476/* confdefs.h. */
19477_ACEOF
19478cat confdefs.h >>conftest.$ac_ext
19479cat >>conftest.$ac_ext <<_ACEOF
19480/* end confdefs.h. */
19481$ac_includes_default
19482#include <$ac_header>
19483_ACEOF
19484rm -f conftest.$ac_objext
64ff59ba 19485if { (ac_try="$ac_compile"
19486case "(($ac_try" in
19487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19488 *) ac_try_echo=$ac_try;;
19489esac
19490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19491 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19492 ac_status=$?
19493 grep -v '^ *+' conftest.er1 >conftest.err
19494 rm -f conftest.er1
19495 cat conftest.err >&5
19496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19497 (exit $ac_status); } && {
19498 test -z "$ac_c_werror_flag" ||
19499 test ! -s conftest.err
19500 } && test -s conftest.$ac_objext; then
d9898ee8 19501 ac_header_compiler=yes
19502else
19503 echo "$as_me: failed program was:" >&5
19504sed 's/^/| /' conftest.$ac_ext >&5
19505
64ff59ba 19506 ac_header_compiler=no
d9898ee8 19507fi
64ff59ba 19508
19509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19510{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19511echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 19512
19513# Is the header present?
64ff59ba 19514{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19515echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 19516cat >conftest.$ac_ext <<_ACEOF
19517/* confdefs.h. */
19518_ACEOF
19519cat confdefs.h >>conftest.$ac_ext
19520cat >>conftest.$ac_ext <<_ACEOF
19521/* end confdefs.h. */
19522#include <$ac_header>
19523_ACEOF
64ff59ba 19524if { (ac_try="$ac_cpp conftest.$ac_ext"
19525case "(($ac_try" in
19526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19527 *) ac_try_echo=$ac_try;;
19528esac
19529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19530 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 19531 ac_status=$?
19532 grep -v '^ *+' conftest.er1 >conftest.err
19533 rm -f conftest.er1
19534 cat conftest.err >&5
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19536 (exit $ac_status); } >/dev/null && {
19537 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19538 test ! -s conftest.err
19539 }; then
d9898ee8 19540 ac_header_preproc=yes
19541else
19542 echo "$as_me: failed program was:" >&5
19543sed 's/^/| /' conftest.$ac_ext >&5
19544
19545 ac_header_preproc=no
19546fi
64ff59ba 19547
d9898ee8 19548rm -f conftest.err conftest.$ac_ext
64ff59ba 19549{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19550echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 19551
19552# So? What about this header?
19553case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19554 yes:no: )
19555 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19556echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19558echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19559 ac_header_preproc=yes
19560 ;;
19561 no:yes:* )
19562 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19563echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19564 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19565echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19566 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19567echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19568 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19569echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19571echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19572 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19573echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64ff59ba 19574 ( cat <<\_ASBOX
d9898ee8 19575## -------------------------------------------------- ##
19576## Report this to courier-users@lists.sourceforge.net ##
19577## -------------------------------------------------- ##
19578_ASBOX
64ff59ba 19579 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 19580 ;;
19581esac
64ff59ba 19582{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19583echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19584if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 19585 echo $ECHO_N "(cached) $ECHO_C" >&6
19586else
19587 eval "$as_ac_Header=\$ac_header_preproc"
19588fi
64ff59ba 19589ac_res=`eval echo '${'$as_ac_Header'}'`
19590 { echo "$as_me:$LINENO: result: $ac_res" >&5
19591echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 19592
19593fi
19594if test `eval echo '${'$as_ac_Header'}'` = yes; then
19595 cat >>confdefs.h <<_ACEOF
19596#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19597_ACEOF
19598
19599fi
19600
19601done
19602
19603
64ff59ba 19604{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
19605echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
d9898ee8 19606if test "${ac_cv_type_uid_t+set}" = set; then
19607 echo $ECHO_N "(cached) $ECHO_C" >&6
19608else
19609 cat >conftest.$ac_ext <<_ACEOF
19610/* confdefs.h. */
19611_ACEOF
19612cat confdefs.h >>conftest.$ac_ext
19613cat >>conftest.$ac_ext <<_ACEOF
19614/* end confdefs.h. */
19615#include <sys/types.h>
19616
19617_ACEOF
19618if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19619 $EGREP "uid_t" >/dev/null 2>&1; then
19620 ac_cv_type_uid_t=yes
19621else
19622 ac_cv_type_uid_t=no
19623fi
19624rm -f conftest*
19625
19626fi
64ff59ba 19627{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
19628echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
d9898ee8 19629if test $ac_cv_type_uid_t = no; then
19630
19631cat >>confdefs.h <<\_ACEOF
19632#define uid_t int
19633_ACEOF
19634
19635
19636cat >>confdefs.h <<\_ACEOF
19637#define gid_t int
19638_ACEOF
19639
19640fi
19641
64ff59ba 19642{ echo "$as_me:$LINENO: checking for pid_t" >&5
19643echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
d9898ee8 19644if test "${ac_cv_type_pid_t+set}" = set; then
19645 echo $ECHO_N "(cached) $ECHO_C" >&6
19646else
19647 cat >conftest.$ac_ext <<_ACEOF
19648/* confdefs.h. */
19649_ACEOF
19650cat confdefs.h >>conftest.$ac_ext
19651cat >>conftest.$ac_ext <<_ACEOF
19652/* end confdefs.h. */
19653$ac_includes_default
64ff59ba 19654typedef pid_t ac__type_new_;
d9898ee8 19655int
19656main ()
19657{
64ff59ba 19658if ((ac__type_new_ *) 0)
d9898ee8 19659 return 0;
64ff59ba 19660if (sizeof (ac__type_new_))
d9898ee8 19661 return 0;
19662 ;
19663 return 0;
19664}
19665_ACEOF
19666rm -f conftest.$ac_objext
64ff59ba 19667if { (ac_try="$ac_compile"
19668case "(($ac_try" in
19669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19670 *) ac_try_echo=$ac_try;;
19671esac
19672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19673 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19674 ac_status=$?
19675 grep -v '^ *+' conftest.er1 >conftest.err
19676 rm -f conftest.er1
19677 cat conftest.err >&5
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19679 (exit $ac_status); } && {
19680 test -z "$ac_c_werror_flag" ||
19681 test ! -s conftest.err
19682 } && test -s conftest.$ac_objext; then
d9898ee8 19683 ac_cv_type_pid_t=yes
19684else
19685 echo "$as_me: failed program was:" >&5
19686sed 's/^/| /' conftest.$ac_ext >&5
19687
64ff59ba 19688 ac_cv_type_pid_t=no
d9898ee8 19689fi
64ff59ba 19690
19691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 19692fi
64ff59ba 19693{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19694echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
d9898ee8 19695if test $ac_cv_type_pid_t = yes; then
19696 :
19697else
19698
19699cat >>confdefs.h <<_ACEOF
19700#define pid_t int
19701_ACEOF
19702
19703fi
19704
19705
19706
19707
19708
19709for ac_func in setgroups initgroups
19710do
19711as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64ff59ba 19712{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19713echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19714if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 19715 echo $ECHO_N "(cached) $ECHO_C" >&6
19716else
19717 cat >conftest.$ac_ext <<_ACEOF
19718/* confdefs.h. */
19719_ACEOF
19720cat confdefs.h >>conftest.$ac_ext
19721cat >>conftest.$ac_ext <<_ACEOF
19722/* end confdefs.h. */
19723/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19725#define $ac_func innocuous_$ac_func
19726
19727/* System header to define __stub macros and hopefully few prototypes,
19728 which can conflict with char $ac_func (); below.
19729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19730 <limits.h> exists even on freestanding compilers. */
19731
19732#ifdef __STDC__
19733# include <limits.h>
19734#else
19735# include <assert.h>
19736#endif
19737
19738#undef $ac_func
19739
64ff59ba 19740/* Override any GCC internal prototype to avoid an error.
19741 Use char because int might match the return type of a GCC
19742 builtin and then its argument prototype would still apply. */
d9898ee8 19743#ifdef __cplusplus
19744extern "C"
d9898ee8 19745#endif
d9898ee8 19746char $ac_func ();
19747/* The GNU C library defines this for functions which it implements
19748 to always fail with ENOSYS. Some functions are actually named
19749 something starting with __ and the normal name is an alias. */
64ff59ba 19750#if defined __stub_$ac_func || defined __stub___$ac_func
d9898ee8 19751choke me
d9898ee8 19752#endif
19753
19754int
19755main ()
19756{
64ff59ba 19757return $ac_func ();
d9898ee8 19758 ;
19759 return 0;
19760}
19761_ACEOF
19762rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 19763if { (ac_try="$ac_link"
19764case "(($ac_try" in
19765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19766 *) ac_try_echo=$ac_try;;
19767esac
19768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19769 (eval "$ac_link") 2>conftest.er1
d9898ee8 19770 ac_status=$?
19771 grep -v '^ *+' conftest.er1 >conftest.err
19772 rm -f conftest.er1
19773 cat conftest.err >&5
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19775 (exit $ac_status); } && {
19776 test -z "$ac_c_werror_flag" ||
19777 test ! -s conftest.err
19778 } && test -s conftest$ac_exeext &&
19779 $as_test_x conftest$ac_exeext; then
d9898ee8 19780 eval "$as_ac_var=yes"
19781else
19782 echo "$as_me: failed program was:" >&5
19783sed 's/^/| /' conftest.$ac_ext >&5
19784
64ff59ba 19785 eval "$as_ac_var=no"
d9898ee8 19786fi
64ff59ba 19787
19788rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 19789 conftest$ac_exeext conftest.$ac_ext
19790fi
64ff59ba 19791ac_res=`eval echo '${'$as_ac_var'}'`
19792 { echo "$as_me:$LINENO: result: $ac_res" >&5
19793echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 19794if test `eval echo '${'$as_ac_var'}'` = yes; then
19795 cat >>confdefs.h <<_ACEOF
19796#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19797_ACEOF
19798
19799fi
19800done
19801
64ff59ba 19802ac_config_files="$ac_config_files Makefile"
19803
d9898ee8 19804cat >confcache <<\_ACEOF
19805# This file is a shell script that caches the results of configure
19806# tests run on this system so they can be shared between configure
19807# scripts and configure runs, see configure's option --config-cache.
19808# It is not useful on other systems. If it contains results you don't
19809# want to keep, you may remove or edit it.
19810#
19811# config.status only pays attention to the cache file if you give it
19812# the --recheck option to rerun configure.
19813#
19814# `ac_cv_env_foo' variables (set or unset) will be overridden when
19815# loading this file, other *unset* `ac_cv_foo' will be assigned the
19816# following values.
19817
19818_ACEOF
19819
19820# The following way of writing the cache mishandles newlines in values,
19821# but we know of no workaround that is simple, portable, and efficient.
64ff59ba 19822# So, we kill variables containing newlines.
d9898ee8 19823# Ultrix sh set writes to stderr and can't be redirected directly,
19824# and sets the high bit in the cache file unless we assign to the vars.
64ff59ba 19825(
19826 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19827 eval ac_val=\$$ac_var
19828 case $ac_val in #(
19829 *${as_nl}*)
19830 case $ac_var in #(
19831 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19832echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19833 esac
19834 case $ac_var in #(
19835 _ | IFS | as_nl) ;; #(
19836 *) $as_unset $ac_var ;;
19837 esac ;;
19838 esac
19839 done
19840
d9898ee8 19841 (set) 2>&1 |
64ff59ba 19842 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19843 *${as_nl}ac_space=\ *)
d9898ee8 19844 # `set' does not quote correctly, so add quotes (double-quote
19845 # substitution turns \\\\ into \\, and sed turns \\ into \).
19846 sed -n \
19847 "s/'/'\\\\''/g;
19848 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
64ff59ba 19849 ;; #(
d9898ee8 19850 *)
19851 # `set' quotes correctly as required by POSIX, so do not add quotes.
64ff59ba 19852 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 19853 ;;
64ff59ba 19854 esac |
19855 sort
19856) |
d9898ee8 19857 sed '
64ff59ba 19858 /^ac_cv_env_/b end
d9898ee8 19859 t clear
64ff59ba 19860 :clear
d9898ee8 19861 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19862 t end
64ff59ba 19863 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19864 :end' >>confcache
19865if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19866 if test -w "$cache_file"; then
19867 test "x$cache_file" != "x/dev/null" &&
19868 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19869echo "$as_me: updating cache $cache_file" >&6;}
d9898ee8 19870 cat confcache >$cache_file
19871 else
64ff59ba 19872 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19873echo "$as_me: not updating unwritable cache $cache_file" >&6;}
d9898ee8 19874 fi
19875fi
19876rm -f confcache
19877
19878test "x$prefix" = xNONE && prefix=$ac_default_prefix
19879# Let make expand exec_prefix.
19880test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19881
d9898ee8 19882DEFS=-DHAVE_CONFIG_H
19883
19884ac_libobjs=
19885ac_ltlibobjs=
19886for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19887 # 1. Remove the extension, and $U if already installed.
64ff59ba 19888 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19889 ac_i=`echo "$ac_i" | sed "$ac_script"`
19890 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19891 # will be set to the directory where LIBOBJS objects are built.
19892 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19893 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
d9898ee8 19894done
19895LIBOBJS=$ac_libobjs
19896
19897LTLIBOBJS=$ac_ltlibobjs
19898
19899
19900if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19901 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19902Usually this means the macro was only invoked conditionally." >&5
19903echo "$as_me: error: conditional \"AMDEP\" was never defined.
19904Usually this means the macro was only invoked conditionally." >&2;}
19905 { (exit 1); exit 1; }; }
19906fi
19907if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19908 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19909Usually this means the macro was only invoked conditionally." >&5
19910echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19911Usually this means the macro was only invoked conditionally." >&2;}
19912 { (exit 1); exit 1; }; }
19913fi
19914if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19915 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19916Usually this means the macro was only invoked conditionally." >&5
19917echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19918Usually this means the macro was only invoked conditionally." >&2;}
19919 { (exit 1); exit 1; }; }
19920fi
19921
19922: ${CONFIG_STATUS=./config.status}
19923ac_clean_files_save=$ac_clean_files
19924ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19925{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19926echo "$as_me: creating $CONFIG_STATUS" >&6;}
19927cat >$CONFIG_STATUS <<_ACEOF
19928#! $SHELL
19929# Generated by $as_me.
19930# Run this file to recreate the current configuration.
19931# Compiler output produced by configure, useful for debugging
19932# configure, is in config.log if it exists.
19933
19934debug=false
19935ac_cs_recheck=false
19936ac_cs_silent=false
19937SHELL=\${CONFIG_SHELL-$SHELL}
19938_ACEOF
19939
19940cat >>$CONFIG_STATUS <<\_ACEOF
19941## --------------------- ##
19942## M4sh Initialization. ##
19943## --------------------- ##
19944
64ff59ba 19945# Be more Bourne compatible
19946DUALCASE=1; export DUALCASE # for MKS sh
d9898ee8 19947if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19948 emulate sh
19949 NULLCMD=:
19950 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19951 # is contrary to our usage. Disable this feature.
19952 alias -g '${1+"$@"}'='"$@"'
64ff59ba 19953 setopt NO_GLOB_SUBST
19954else
19955 case `(set -o) 2>/dev/null` in
19956 *posix*) set -o posix ;;
19957esac
19958
19959fi
19960
19961
19962
19963
19964# PATH needs CR
19965# Avoid depending upon Character Ranges.
19966as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19967as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19968as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19969as_cr_digits='0123456789'
19970as_cr_alnum=$as_cr_Letters$as_cr_digits
19971
19972# The user is always right.
19973if test "${PATH_SEPARATOR+set}" != set; then
19974 echo "#! /bin/sh" >conf$$.sh
19975 echo "exit 0" >>conf$$.sh
19976 chmod +x conf$$.sh
19977 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19978 PATH_SEPARATOR=';'
19979 else
19980 PATH_SEPARATOR=:
19981 fi
19982 rm -f conf$$.sh
d9898ee8 19983fi
d9898ee8 19984
19985# Support unset when possible.
19986if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19987 as_unset=unset
19988else
19989 as_unset=false
19990fi
19991
19992
64ff59ba 19993# IFS
19994# We need space, tab and new line, in precisely that order. Quoting is
19995# there to prevent editors from complaining about space-tab.
19996# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19997# splitting by setting IFS to empty value.)
19998as_nl='
19999'
20000IFS=" "" $as_nl"
20001
20002# Find who we are. Look in the path if we contain no directory separator.
20003case $0 in
20004 *[\\/]* ) as_myself=$0 ;;
20005 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20006for as_dir in $PATH
20007do
20008 IFS=$as_save_IFS
20009 test -z "$as_dir" && as_dir=.
20010 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20011done
20012IFS=$as_save_IFS
20013
20014 ;;
20015esac
20016# We did not find ourselves, most probably we were run as `sh COMMAND'
20017# in which case we are not to be found in the path.
20018if test "x$as_myself" = x; then
20019 as_myself=$0
20020fi
20021if test ! -f "$as_myself"; then
20022 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20023 { (exit 1); exit 1; }
20024fi
20025
d9898ee8 20026# Work around bugs in pre-3.0 UWIN ksh.
64ff59ba 20027for as_var in ENV MAIL MAILPATH
20028do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20029done
d9898ee8 20030PS1='$ '
20031PS2='> '
20032PS4='+ '
20033
20034# NLS nuisances.
20035for as_var in \
20036 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20037 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20038 LC_TELEPHONE LC_TIME
20039do
20040 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20041 eval $as_var=C; export $as_var
20042 else
64ff59ba 20043 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
d9898ee8 20044 fi
20045done
20046
20047# Required to use basename.
64ff59ba 20048if expr a : '\(a\)' >/dev/null 2>&1 &&
20049 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 20050 as_expr=expr
20051else
20052 as_expr=false
20053fi
20054
64ff59ba 20055if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d9898ee8 20056 as_basename=basename
20057else
20058 as_basename=false
20059fi
20060
20061
20062# Name of the executable.
64ff59ba 20063as_me=`$as_basename -- "$0" ||
d9898ee8 20064$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20065 X"$0" : 'X\(//\)$' \| \
64ff59ba 20066 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 20067echo X/"$0" |
64ff59ba 20068 sed '/^.*\/\([^/][^/]*\)\/*$/{
20069 s//\1/
20070 q
20071 }
20072 /^X\/\(\/\/\)$/{
20073 s//\1/
20074 q
20075 }
20076 /^X\/\(\/\).*/{
20077 s//\1/
20078 q
20079 }
20080 s/.*/./; q'`
d9898ee8 20081
64ff59ba 20082# CDPATH.
20083$as_unset CDPATH
d9898ee8 20084
20085
d9898ee8 20086
d9898ee8 20087 as_lineno_1=$LINENO
20088 as_lineno_2=$LINENO
d9898ee8 20089 test "x$as_lineno_1" != "x$as_lineno_2" &&
64ff59ba 20090 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 20091
20092 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20093 # uniformly replaced by the line number. The first 'sed' inserts a
64ff59ba 20094 # line-number line after each line using $LINENO; the second 'sed'
20095 # does the real work. The second script uses 'N' to pair each
20096 # line-number line with the line containing $LINENO, and appends
20097 # trailing '-' during substitution so that $LINENO is not a special
20098 # case at line end.
d9898ee8 20099 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
64ff59ba 20100 # scripts with optimization help from Paolo Bonzini. Blame Lee
20101 # E. McMahon (1931-1989) for sed's syntax. :-)
20102 sed -n '
20103 p
20104 /[$]LINENO/=
20105 ' <$as_myself |
d9898ee8 20106 sed '
64ff59ba 20107 s/[$]LINENO.*/&-/
20108 t lineno
20109 b
20110 :lineno
d9898ee8 20111 N
64ff59ba 20112 :loop
20113 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 20114 t loop
64ff59ba 20115 s/-\n.*//
d9898ee8 20116 ' >$as_me.lineno &&
64ff59ba 20117 chmod +x "$as_me.lineno" ||
20118 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
d9898ee8 20119 { (exit 1); exit 1; }; }
20120
20121 # Don't try to exec as it changes $[0], causing all sort of problems
20122 # (the dirname of $[0] is not the place where we might find the
64ff59ba 20123 # original and so on. Autoconf is especially sensitive to this).
20124 . "./$as_me.lineno"
d9898ee8 20125 # Exit status is that of the last command.
20126 exit
20127}
20128
20129
64ff59ba 20130if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20131 as_dirname=dirname
20132else
20133 as_dirname=false
20134fi
20135
20136ECHO_C= ECHO_N= ECHO_T=
20137case `echo -n x` in
20138-n*)
20139 case `echo 'x\c'` in
20140 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20141 *) ECHO_C='\c';;
20142 esac;;
20143*)
20144 ECHO_N='-n';;
d9898ee8 20145esac
20146
64ff59ba 20147if expr a : '\(a\)' >/dev/null 2>&1 &&
20148 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 20149 as_expr=expr
20150else
20151 as_expr=false
20152fi
20153
20154rm -f conf$$ conf$$.exe conf$$.file
64ff59ba 20155if test -d conf$$.dir; then
20156 rm -f conf$$.dir/conf$$.file
20157else
20158 rm -f conf$$.dir
20159 mkdir conf$$.dir
20160fi
d9898ee8 20161echo >conf$$.file
20162if ln -s conf$$.file conf$$ 2>/dev/null; then
64ff59ba 20163 as_ln_s='ln -s'
20164 # ... but there are two gotchas:
20165 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20166 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20167 # In both cases, we have to default to `cp -p'.
20168 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d9898ee8 20169 as_ln_s='cp -p'
d9898ee8 20170elif ln conf$$.file conf$$ 2>/dev/null; then
20171 as_ln_s=ln
20172else
20173 as_ln_s='cp -p'
20174fi
64ff59ba 20175rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20176rmdir conf$$.dir 2>/dev/null
d9898ee8 20177
20178if mkdir -p . 2>/dev/null; then
20179 as_mkdir_p=:
20180else
20181 test -d ./-p && rmdir ./-p
20182 as_mkdir_p=false
20183fi
20184
64ff59ba 20185if test -x / >/dev/null 2>&1; then
20186 as_test_x='test -x'
20187else
20188 if ls -dL / >/dev/null 2>&1; then
20189 as_ls_L_option=L
20190 else
20191 as_ls_L_option=
20192 fi
20193 as_test_x='
20194 eval sh -c '\''
20195 if test -d "$1"; then
20196 test -d "$1/.";
20197 else
20198 case $1 in
20199 -*)set "./$1";;
20200 esac;
20201 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20202 ???[sx]*):;;*)false;;esac;fi
20203 '\'' sh
20204 '
20205fi
20206as_executable_p=$as_test_x
d9898ee8 20207
20208# Sed expression to map a string onto a valid CPP name.
20209as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20210
20211# Sed expression to map a string onto a valid variable name.
20212as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20213
20214
d9898ee8 20215exec 6>&1
20216
64ff59ba 20217# Save the log message, to keep $[0] and so on meaningful, and to
d9898ee8 20218# report actual input values of CONFIG_FILES etc. instead of their
64ff59ba 20219# values after options handling.
20220ac_log="
d9898ee8 20221This file was extended by numlib $as_me 0.10, which was
64ff59ba 20222generated by GNU Autoconf 2.61. Invocation command line was
d9898ee8 20223
20224 CONFIG_FILES = $CONFIG_FILES
20225 CONFIG_HEADERS = $CONFIG_HEADERS
20226 CONFIG_LINKS = $CONFIG_LINKS
20227 CONFIG_COMMANDS = $CONFIG_COMMANDS
20228 $ $0 $@
20229
64ff59ba 20230on `(hostname || uname -n) 2>/dev/null | sed 1q`
20231"
20232
d9898ee8 20233_ACEOF
20234
64ff59ba 20235cat >>$CONFIG_STATUS <<_ACEOF
d9898ee8 20236# Files that config.status was made for.
64ff59ba 20237config_files="$ac_config_files"
20238config_headers="$ac_config_headers"
20239config_commands="$ac_config_commands"
d9898ee8 20240
64ff59ba 20241_ACEOF
d9898ee8 20242
20243cat >>$CONFIG_STATUS <<\_ACEOF
d9898ee8 20244ac_cs_usage="\
20245\`$as_me' instantiates files from templates according to the
20246current configuration.
20247
20248Usage: $0 [OPTIONS] [FILE]...
20249
20250 -h, --help print this help, then exit
64ff59ba 20251 -V, --version print version number and configuration settings, then exit
d9898ee8 20252 -q, --quiet do not print progress messages
20253 -d, --debug don't remove temporary files
20254 --recheck update $as_me by reconfiguring in the same conditions
20255 --file=FILE[:TEMPLATE]
20256 instantiate the configuration file FILE
20257 --header=FILE[:TEMPLATE]
20258 instantiate the configuration header FILE
20259
20260Configuration files:
20261$config_files
20262
20263Configuration headers:
20264$config_headers
20265
20266Configuration commands:
20267$config_commands
20268
20269Report bugs to <bug-autoconf@gnu.org>."
d9898ee8 20270
64ff59ba 20271_ACEOF
d9898ee8 20272cat >>$CONFIG_STATUS <<_ACEOF
20273ac_cs_version="\\
20274numlib config.status 0.10
64ff59ba 20275configured by $0, generated by GNU Autoconf 2.61,
20276 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
d9898ee8 20277
64ff59ba 20278Copyright (C) 2006 Free Software Foundation, Inc.
d9898ee8 20279This config.status script is free software; the Free Software Foundation
20280gives unlimited permission to copy, distribute and modify it."
64ff59ba 20281
20282ac_pwd='$ac_pwd'
20283srcdir='$srcdir'
20284INSTALL='$INSTALL'
20285MKDIR_P='$MKDIR_P'
d9898ee8 20286_ACEOF
20287
20288cat >>$CONFIG_STATUS <<\_ACEOF
20289# If no file are specified by the user, then we need to provide default
20290# value. By we need to know if files were specified by the user.
20291ac_need_defaults=:
20292while test $# != 0
20293do
20294 case $1 in
20295 --*=*)
64ff59ba 20296 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20297 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
d9898ee8 20298 ac_shift=:
20299 ;;
64ff59ba 20300 *)
d9898ee8 20301 ac_option=$1
20302 ac_optarg=$2
20303 ac_shift=shift
20304 ;;
d9898ee8 20305 esac
20306
20307 case $ac_option in
20308 # Handling of the options.
d9898ee8 20309 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20310 ac_cs_recheck=: ;;
64ff59ba 20311 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20312 echo "$ac_cs_version"; exit ;;
20313 --debug | --debu | --deb | --de | --d | -d )
d9898ee8 20314 debug=: ;;
20315 --file | --fil | --fi | --f )
20316 $ac_shift
20317 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20318 ac_need_defaults=false;;
20319 --header | --heade | --head | --hea )
20320 $ac_shift
20321 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20322 ac_need_defaults=false;;
64ff59ba 20323 --he | --h)
20324 # Conflict between --help and --header
20325 { echo "$as_me: error: ambiguous option: $1
20326Try \`$0 --help' for more information." >&2
20327 { (exit 1); exit 1; }; };;
20328 --help | --hel | -h )
20329 echo "$ac_cs_usage"; exit ;;
d9898ee8 20330 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20331 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20332 ac_cs_silent=: ;;
20333
20334 # This is an error.
64ff59ba 20335 -*) { echo "$as_me: error: unrecognized option: $1
20336Try \`$0 --help' for more information." >&2
d9898ee8 20337 { (exit 1); exit 1; }; } ;;
20338
64ff59ba 20339 *) ac_config_targets="$ac_config_targets $1"
20340 ac_need_defaults=false ;;
d9898ee8 20341
20342 esac
20343 shift
20344done
20345
20346ac_configure_extra_args=
20347
20348if $ac_cs_silent; then
20349 exec 6>/dev/null
20350 ac_configure_extra_args="$ac_configure_extra_args --silent"
20351fi
20352
20353_ACEOF
20354cat >>$CONFIG_STATUS <<_ACEOF
20355if \$ac_cs_recheck; then
64ff59ba 20356 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20357 CONFIG_SHELL=$SHELL
20358 export CONFIG_SHELL
20359 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
d9898ee8 20360fi
20361
20362_ACEOF
64ff59ba 20363cat >>$CONFIG_STATUS <<\_ACEOF
20364exec 5>>config.log
20365{
20366 echo
20367 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20368## Running $as_me. ##
20369_ASBOX
20370 echo "$ac_log"
20371} >&5
d9898ee8 20372
64ff59ba 20373_ACEOF
d9898ee8 20374cat >>$CONFIG_STATUS <<_ACEOF
20375#
64ff59ba 20376# INIT-COMMANDS
d9898ee8 20377#
d9898ee8 20378AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20379
20380_ACEOF
20381
d9898ee8 20382cat >>$CONFIG_STATUS <<\_ACEOF
64ff59ba 20383
20384# Handling of arguments.
d9898ee8 20385for ac_config_target in $ac_config_targets
20386do
64ff59ba 20387 case $ac_config_target in
20388 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20389 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20390 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20391
d9898ee8 20392 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20393echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20394 { (exit 1); exit 1; }; };;
20395 esac
20396done
20397
64ff59ba 20398
d9898ee8 20399# If the user did not use the arguments to specify the items to instantiate,
20400# then the envvar interface is used. Set only those that are not.
20401# We use the long form for the default assignment because of an extremely
20402# bizarre bug on SunOS 4.1.3.
20403if $ac_need_defaults; then
20404 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20405 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20406 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20407fi
20408
20409# Have a temporary directory for convenience. Make it in the build tree
64ff59ba 20410# simply because there is no reason against having it here, and in addition,
d9898ee8 20411# creating and moving files from /tmp can sometimes cause problems.
64ff59ba 20412# Hook for its removal unless debugging.
20413# Note that there is a small window in which the directory will not be cleaned:
20414# after its creation but before its name has been assigned to `$tmp'.
d9898ee8 20415$debug ||
20416{
64ff59ba 20417 tmp=
20418 trap 'exit_status=$?
20419 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20420' 0
d9898ee8 20421 trap '{ (exit 1); exit 1; }' 1 2 13 15
20422}
d9898ee8 20423# Create a (secure) tmp directory for tmp files.
20424
20425{
64ff59ba 20426 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d9898ee8 20427 test -n "$tmp" && test -d "$tmp"
20428} ||
20429{
64ff59ba 20430 tmp=./conf$$-$RANDOM
20431 (umask 077 && mkdir "$tmp")
d9898ee8 20432} ||
20433{
20434 echo "$me: cannot create a temporary directory in ." >&2
20435 { (exit 1); exit 1; }
20436}
20437
d9898ee8 20438#
64ff59ba 20439# Set up the sed scripts for CONFIG_FILES section.
d9898ee8 20440#
20441
20442# No need to generate the scripts if there are no CONFIG_FILES.
20443# This happens for instance when ./config.status config.h
64ff59ba 20444if test -n "$CONFIG_FILES"; then
d9898ee8 20445
20446_ACEOF
20447
64ff59ba 20448
20449
20450ac_delim='%!_!# '
20451for ac_last_try in false false false false false :; do
20452 cat >conf$$subs.sed <<_ACEOF
20453SHELL!$SHELL$ac_delim
20454PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20455PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20456PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20457PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20458PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20459PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20460exec_prefix!$exec_prefix$ac_delim
20461prefix!$prefix$ac_delim
20462program_transform_name!$program_transform_name$ac_delim
20463bindir!$bindir$ac_delim
20464sbindir!$sbindir$ac_delim
20465libexecdir!$libexecdir$ac_delim
20466datarootdir!$datarootdir$ac_delim
20467datadir!$datadir$ac_delim
20468sysconfdir!$sysconfdir$ac_delim
20469sharedstatedir!$sharedstatedir$ac_delim
20470localstatedir!$localstatedir$ac_delim
20471includedir!$includedir$ac_delim
20472oldincludedir!$oldincludedir$ac_delim
20473docdir!$docdir$ac_delim
20474infodir!$infodir$ac_delim
20475htmldir!$htmldir$ac_delim
20476dvidir!$dvidir$ac_delim
20477pdfdir!$pdfdir$ac_delim
20478psdir!$psdir$ac_delim
20479libdir!$libdir$ac_delim
20480localedir!$localedir$ac_delim
20481mandir!$mandir$ac_delim
20482DEFS!$DEFS$ac_delim
20483ECHO_C!$ECHO_C$ac_delim
20484ECHO_N!$ECHO_N$ac_delim
20485ECHO_T!$ECHO_T$ac_delim
20486LIBS!$LIBS$ac_delim
20487build_alias!$build_alias$ac_delim
20488host_alias!$host_alias$ac_delim
20489target_alias!$target_alias$ac_delim
20490INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20491INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20492INSTALL_DATA!$INSTALL_DATA$ac_delim
20493am__isrc!$am__isrc$ac_delim
20494CYGPATH_W!$CYGPATH_W$ac_delim
20495PACKAGE!$PACKAGE$ac_delim
20496VERSION!$VERSION$ac_delim
20497ACLOCAL!$ACLOCAL$ac_delim
20498AUTOCONF!$AUTOCONF$ac_delim
20499AUTOMAKE!$AUTOMAKE$ac_delim
20500AUTOHEADER!$AUTOHEADER$ac_delim
20501MAKEINFO!$MAKEINFO$ac_delim
20502install_sh!$install_sh$ac_delim
20503STRIP!$STRIP$ac_delim
20504INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20505mkdir_p!$mkdir_p$ac_delim
20506AWK!$AWK$ac_delim
20507SET_MAKE!$SET_MAKE$ac_delim
20508am__leading_dot!$am__leading_dot$ac_delim
20509AMTAR!$AMTAR$ac_delim
20510am__tar!$am__tar$ac_delim
20511am__untar!$am__untar$ac_delim
20512CC!$CC$ac_delim
20513CFLAGS!$CFLAGS$ac_delim
20514LDFLAGS!$LDFLAGS$ac_delim
20515CPPFLAGS!$CPPFLAGS$ac_delim
20516ac_ct_CC!$ac_ct_CC$ac_delim
20517EXEEXT!$EXEEXT$ac_delim
20518OBJEXT!$OBJEXT$ac_delim
20519DEPDIR!$DEPDIR$ac_delim
20520am__include!$am__include$ac_delim
20521am__quote!$am__quote$ac_delim
20522AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20523AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20524AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20525CCDEPMODE!$CCDEPMODE$ac_delim
20526am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20527am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20528LN_S!$LN_S$ac_delim
20529build!$build$ac_delim
20530build_cpu!$build_cpu$ac_delim
20531build_vendor!$build_vendor$ac_delim
20532build_os!$build_os$ac_delim
20533host!$host$ac_delim
20534host_cpu!$host_cpu$ac_delim
20535host_vendor!$host_vendor$ac_delim
20536host_os!$host_os$ac_delim
20537SED!$SED$ac_delim
20538GREP!$GREP$ac_delim
20539EGREP!$EGREP$ac_delim
20540ECHO!$ECHO$ac_delim
20541AR!$AR$ac_delim
20542RANLIB!$RANLIB$ac_delim
20543CPP!$CPP$ac_delim
20544CXX!$CXX$ac_delim
20545CXXFLAGS!$CXXFLAGS$ac_delim
20546ac_ct_CXX!$ac_ct_CXX$ac_delim
20547CXXDEPMODE!$CXXDEPMODE$ac_delim
20548am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20549am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20550_ACEOF
20551
20552 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20553 break
20554 elif $ac_last_try; then
20555 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20556echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20557 { (exit 1); exit 1; }; }
20558 else
20559 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
d9898ee8 20560 fi
64ff59ba 20561done
20562
20563ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20564if test -n "$ac_eof"; then
20565 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20566 ac_eof=`expr $ac_eof + 1`
20567fi
20568
20569cat >>$CONFIG_STATUS <<_ACEOF
20570cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20571/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20572_ACEOF
20573sed '
20574s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20575s/^/s,@/; s/!/@,|#_!!_#|/
20576:n
20577t n
20578s/'"$ac_delim"'$/,g/; t
20579s/$/\\/; p
20580N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20581' >>$CONFIG_STATUS <conf$$subs.sed
20582rm -f conf$$subs.sed
20583cat >>$CONFIG_STATUS <<_ACEOF
20584CEOF$ac_eof
20585_ACEOF
20586
20587
20588ac_delim='%!_!# '
20589for ac_last_try in false false false false false :; do
20590 cat >conf$$subs.sed <<_ACEOF
20591CXXCPP!$CXXCPP$ac_delim
20592F77!$F77$ac_delim
20593FFLAGS!$FFLAGS$ac_delim
20594ac_ct_F77!$ac_ct_F77$ac_delim
20595LIBTOOL!$LIBTOOL$ac_delim
20596LIBOBJS!$LIBOBJS$ac_delim
20597LTLIBOBJS!$LTLIBOBJS$ac_delim
20598_ACEOF
20599
20600 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
20601 break
20602 elif $ac_last_try; then
20603 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20604echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20605 { (exit 1); exit 1; }; }
20606 else
20607 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20608 fi
20609done
20610
20611ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20612if test -n "$ac_eof"; then
20613 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20614 ac_eof=`expr $ac_eof + 1`
20615fi
d9898ee8 20616
64ff59ba 20617cat >>$CONFIG_STATUS <<_ACEOF
20618cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20619/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20620_ACEOF
20621sed '
20622s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20623s/^/s,@/; s/!/@,|#_!!_#|/
20624:n
20625t n
20626s/'"$ac_delim"'$/,g/; t
20627s/$/\\/; p
20628N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20629' >>$CONFIG_STATUS <conf$$subs.sed
20630rm -f conf$$subs.sed
20631cat >>$CONFIG_STATUS <<_ACEOF
20632:end
20633s/|#_!!_#|//g
20634CEOF$ac_eof
d9898ee8 20635_ACEOF
64ff59ba 20636
20637
20638# VPATH may cause trouble with some makes, so we remove $(srcdir),
20639# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20640# trailing colons and then remove the whole line if VPATH becomes empty
20641# (actually we leave an empty line to preserve line numbers).
20642if test "x$srcdir" = x.; then
20643 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20644s/:*\$(srcdir):*/:/
20645s/:*\${srcdir}:*/:/
20646s/:*@srcdir@:*/:/
20647s/^\([^=]*=[ ]*\):*/\1/
20648s/:*$//
20649s/^[^=]*=[ ]*$//
20650}'
20651fi
20652
d9898ee8 20653cat >>$CONFIG_STATUS <<\_ACEOF
64ff59ba 20654fi # test -n "$CONFIG_FILES"
20655
20656
20657for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20658do
20659 case $ac_tag in
20660 :[FHLC]) ac_mode=$ac_tag; continue;;
20661 esac
20662 case $ac_mode$ac_tag in
20663 :[FHL]*:*);;
20664 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20665echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20666 { (exit 1); exit 1; }; };;
20667 :[FH]-) ac_tag=-:-;;
20668 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
d9898ee8 20669 esac
64ff59ba 20670 ac_save_IFS=$IFS
20671 IFS=:
20672 set x $ac_tag
20673 IFS=$ac_save_IFS
20674 shift
20675 ac_file=$1
20676 shift
20677
20678 case $ac_mode in
20679 :L) ac_source=$1;;
20680 :[FH])
20681 ac_file_inputs=
20682 for ac_f
20683 do
20684 case $ac_f in
20685 -) ac_f="$tmp/stdin";;
20686 *) # Look for the file first in the build tree, then in the source tree
20687 # (if the path is not absolute). The absolute path cannot be DOS-style,
20688 # because $ac_f cannot contain `:'.
20689 test -f "$ac_f" ||
20690 case $ac_f in
20691 [\\/$]*) false;;
20692 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20693 esac ||
20694 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20695echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20696 { (exit 1); exit 1; }; };;
20697 esac
20698 ac_file_inputs="$ac_file_inputs $ac_f"
20699 done
20700
20701 # Let's still pretend it is `configure' which instantiates (i.e., don't
20702 # use $as_me), people would be surprised to read:
20703 # /* config.h. Generated by config.status. */
20704 configure_input="Generated from "`IFS=:
20705 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20706 if test x"$ac_file" != x-; then
20707 configure_input="$ac_file. $configure_input"
20708 { echo "$as_me:$LINENO: creating $ac_file" >&5
20709echo "$as_me: creating $ac_file" >&6;}
20710 fi
d9898ee8 20711
64ff59ba 20712 case $ac_tag in
20713 *:-:* | *:-) cat >"$tmp/stdin";;
20714 esac
20715 ;;
20716 esac
20717
20718 ac_dir=`$as_dirname -- "$ac_file" ||
d9898ee8 20719$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20720 X"$ac_file" : 'X\(//\)[^/]' \| \
20721 X"$ac_file" : 'X\(//\)$' \| \
64ff59ba 20722 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 20723echo X"$ac_file" |
64ff59ba 20724 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20725 s//\1/
20726 q
20727 }
20728 /^X\(\/\/\)[^/].*/{
20729 s//\1/
20730 q
20731 }
20732 /^X\(\/\/\)$/{
20733 s//\1/
20734 q
20735 }
20736 /^X\(\/\).*/{
20737 s//\1/
20738 q
20739 }
20740 s/.*/./; q'`
20741 { as_dir="$ac_dir"
20742 case $as_dir in #(
20743 -*) as_dir=./$as_dir;;
20744 esac
20745 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 20746 as_dirs=
64ff59ba 20747 while :; do
20748 case $as_dir in #(
20749 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20750 *) as_qdir=$as_dir;;
20751 esac
20752 as_dirs="'$as_qdir' $as_dirs"
20753 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 20754$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20755 X"$as_dir" : 'X\(//\)[^/]' \| \
20756 X"$as_dir" : 'X\(//\)$' \| \
64ff59ba 20757 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 20758echo X"$as_dir" |
64ff59ba 20759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20760 s//\1/
20761 q
20762 }
20763 /^X\(\/\/\)[^/].*/{
20764 s//\1/
20765 q
20766 }
20767 /^X\(\/\/\)$/{
20768 s//\1/
20769 q
20770 }
20771 /^X\(\/\).*/{
20772 s//\1/
20773 q
20774 }
20775 s/.*/./; q'`
20776 test -d "$as_dir" && break
d9898ee8 20777 done
64ff59ba 20778 test -z "$as_dirs" || eval "mkdir $as_dirs"
20779 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20780echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 20781 { (exit 1); exit 1; }; }; }
d9898ee8 20782 ac_builddir=.
20783
64ff59ba 20784case "$ac_dir" in
20785.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20786*)
d9898ee8 20787 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
64ff59ba 20788 # A ".." for each directory in $ac_dir_suffix.
20789 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20790 case $ac_top_builddir_sub in
20791 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20792 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20793 esac ;;
20794esac
20795ac_abs_top_builddir=$ac_pwd
20796ac_abs_builddir=$ac_pwd$ac_dir_suffix
20797# for backward compatibility:
20798ac_top_builddir=$ac_top_build_prefix
d9898ee8 20799
20800case $srcdir in
64ff59ba 20801 .) # We are building in place.
d9898ee8 20802 ac_srcdir=.
64ff59ba 20803 ac_top_srcdir=$ac_top_builddir_sub
20804 ac_abs_top_srcdir=$ac_pwd ;;
20805 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 20806 ac_srcdir=$srcdir$ac_dir_suffix;
64ff59ba 20807 ac_top_srcdir=$srcdir
20808 ac_abs_top_srcdir=$srcdir ;;
20809 *) # Relative name.
20810 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20811 ac_top_srcdir=$ac_top_build_prefix$srcdir
20812 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 20813esac
64ff59ba 20814ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 20815
d9898ee8 20816
64ff59ba 20817 case $ac_mode in
20818 :F)
20819 #
20820 # CONFIG_FILE
20821 #
d9898ee8 20822
20823 case $INSTALL in
20824 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
64ff59ba 20825 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20826 esac
20827 ac_MKDIR_P=$MKDIR_P
20828 case $MKDIR_P in
20829 [\\/$]* | ?:[\\/]* ) ;;
20830 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
d9898ee8 20831 esac
64ff59ba 20832_ACEOF
d9898ee8 20833
64ff59ba 20834cat >>$CONFIG_STATUS <<\_ACEOF
20835# If the template does not know about datarootdir, expand it.
20836# FIXME: This hack should be removed a few years after 2.60.
20837ac_datarootdir_hack=; ac_datarootdir_seen=
20838
20839case `sed -n '/datarootdir/ {
20840 p
20841 q
20842}
20843/@datadir@/p
20844/@docdir@/p
20845/@infodir@/p
20846/@localedir@/p
20847/@mandir@/p
20848' $ac_file_inputs` in
20849*datarootdir*) ac_datarootdir_seen=yes;;
20850*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20851 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20852echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
d9898ee8 20853_ACEOF
64ff59ba 20854cat >>$CONFIG_STATUS <<_ACEOF
20855 ac_datarootdir_hack='
20856 s&@datadir@&$datadir&g
20857 s&@docdir@&$docdir&g
20858 s&@infodir@&$infodir&g
20859 s&@localedir@&$localedir&g
20860 s&@mandir@&$mandir&g
20861 s&\\\${datarootdir}&$datarootdir&g' ;;
20862esac
20863_ACEOF
20864
20865# Neutralize VPATH when `$srcdir' = `.'.
20866# Shell code in configure.ac might set extrasub.
20867# FIXME: do we really want to maintain this feature?
d9898ee8 20868cat >>$CONFIG_STATUS <<_ACEOF
20869 sed "$ac_vpsub
20870$extrasub
20871_ACEOF
20872cat >>$CONFIG_STATUS <<\_ACEOF
20873:t
20874/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
64ff59ba 20875s&@configure_input@&$configure_input&;t t
20876s&@top_builddir@&$ac_top_builddir_sub&;t t
20877s&@srcdir@&$ac_srcdir&;t t
20878s&@abs_srcdir@&$ac_abs_srcdir&;t t
20879s&@top_srcdir@&$ac_top_srcdir&;t t
20880s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20881s&@builddir@&$ac_builddir&;t t
20882s&@abs_builddir@&$ac_abs_builddir&;t t
20883s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20884s&@INSTALL@&$ac_INSTALL&;t t
20885s&@MKDIR_P@&$ac_MKDIR_P&;t t
20886$ac_datarootdir_hack
20887" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
20888
20889test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20890 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20891 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20892 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20893which seems to be undefined. Please make sure it is defined." >&5
20894echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20895which seems to be undefined. Please make sure it is defined." >&2;}
20896
20897 rm -f "$tmp/stdin"
d9898ee8 20898 case $ac_file in
64ff59ba 20899 -) cat "$tmp/out"; rm -f "$tmp/out";;
20900 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
d9898ee8 20901 esac
64ff59ba 20902 ;;
20903 :H)
20904 #
20905 # CONFIG_HEADER
20906 #
d9898ee8 20907_ACEOF
20908
64ff59ba 20909# Transform confdefs.h into a sed script `conftest.defines', that
20910# substitutes the proper values into config.h.in to produce config.h.
20911rm -f conftest.defines conftest.tail
20912# First, append a space to every undef/define line, to ease matching.
20913echo 's/$/ /' >conftest.defines
20914# Then, protect against being on the right side of a sed subst, or in
20915# an unquoted here document, in config.status. If some macros were
20916# called several times there might be several #defines for the same
20917# symbol, which is useless. But do not sort them, since the last
20918# AC_DEFINE must be honored.
20919ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20920# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20921# NAME is the cpp macro being defined, VALUE is the value it is being given.
20922# PARAMS is the parameter list in the macro definition--in most cases, it's
20923# just an empty string.
20924ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
20925ac_dB='\\)[ (].*,\\1define\\2'
20926ac_dC=' '
20927ac_dD=' ,'
20928
20929uniq confdefs.h |
20930 sed -n '
20931 t rset
20932 :rset
20933 s/^[ ]*#[ ]*define[ ][ ]*//
20934 t ok
20935 d
20936 :ok
20937 s/[\\&,]/\\&/g
20938 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20939 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20940 ' >>conftest.defines
20941
20942# Remove the space that was appended to ease matching.
20943# Then replace #undef with comments. This is necessary, for
d9898ee8 20944# example, in the case of _POSIX_SOURCE, which is predefined and required
20945# on some systems where configure will not decide to define it.
64ff59ba 20946# (The regexp can be short, since the line contains either #define or #undef.)
20947echo 's/ $//
20948s,^[ #]*u.*,/* & */,' >>conftest.defines
20949
20950# Break up conftest.defines:
20951ac_max_sed_lines=50
20952
20953# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20954# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20955# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20956# et cetera.
20957ac_in='$ac_file_inputs'
20958ac_out='"$tmp/out1"'
20959ac_nxt='"$tmp/out2"'
20960
20961while :
d9898ee8 20962do
64ff59ba 20963 # Write a here document:
20964 cat >>$CONFIG_STATUS <<_ACEOF
20965 # First, check the format of the line:
20966 cat >"\$tmp/defines.sed" <<\\CEOF
20967/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
20968/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
20969b
20970:def
20971_ACEOF
20972 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
d9898ee8 20973 echo 'CEOF
64ff59ba 20974 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20975 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20976 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20977 grep . conftest.tail >/dev/null || break
d9898ee8 20978 rm -f conftest.defines
20979 mv conftest.tail conftest.defines
20980done
64ff59ba 20981rm -f conftest.defines conftest.tail
d9898ee8 20982
64ff59ba 20983echo "ac_result=$ac_in" >>$CONFIG_STATUS
d9898ee8 20984cat >>$CONFIG_STATUS <<\_ACEOF
d9898ee8 20985 if test x"$ac_file" != x-; then
64ff59ba 20986 echo "/* $configure_input */" >"$tmp/config.h"
20987 cat "$ac_result" >>"$tmp/config.h"
20988 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
d9898ee8 20989 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20990echo "$as_me: $ac_file is unchanged" >&6;}
20991 else
d9898ee8 20992 rm -f $ac_file
64ff59ba 20993 mv "$tmp/config.h" $ac_file
d9898ee8 20994 fi
20995 else
64ff59ba 20996 echo "/* $configure_input */"
20997 cat "$ac_result"
d9898ee8 20998 fi
64ff59ba 20999 rm -f "$tmp/out12"
d9898ee8 21000# Compute $ac_file's index in $config_headers.
0fde1ce3 21001_am_arg=$ac_file
d9898ee8 21002_am_stamp_count=1
21003for _am_header in $config_headers :; do
21004 case $_am_header in
0fde1ce3 21005 $_am_arg | $_am_arg:* )
d9898ee8 21006 break ;;
21007 * )
21008 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21009 esac
21010done
0fde1ce3 21011echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21012$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21013 X"$_am_arg" : 'X\(//\)[^/]' \| \
21014 X"$_am_arg" : 'X\(//\)$' \| \
21015 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21016echo X"$_am_arg" |
64ff59ba 21017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21018 s//\1/
21019 q
21020 }
21021 /^X\(\/\/\)[^/].*/{
21022 s//\1/
21023 q
21024 }
21025 /^X\(\/\/\)$/{
21026 s//\1/
21027 q
21028 }
21029 /^X\(\/\).*/{
21030 s//\1/
21031 q
21032 }
21033 s/.*/./; q'`/stamp-h$_am_stamp_count
21034 ;;
d9898ee8 21035
64ff59ba 21036 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21037echo "$as_me: executing $ac_file commands" >&6;}
21038 ;;
21039 esac
d9898ee8 21040
21041
64ff59ba 21042 case $ac_file$ac_mode in
21043 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
d9898ee8 21044 # Strip MF so we end up with the name of the file.
21045 mf=`echo "$mf" | sed -e 's/:.*$//'`
21046 # Check whether this is an Automake generated Makefile or not.
21047 # We used to match only the files named `Makefile.in', but
21048 # some people rename them; so instead we look at the file content.
21049 # Grep'ing the first line is not enough: some people post-process
21050 # each Makefile.in and add a new line on top of each file to say so.
64ff59ba 21051 # Grep'ing the whole file is not good either: AIX grep has a line
21052 # limit of 2048, but all sed's we know have understand at least 4000.
0fde1ce3 21053 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
64ff59ba 21054 dirpart=`$as_dirname -- "$mf" ||
d9898ee8 21055$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21056 X"$mf" : 'X\(//\)[^/]' \| \
21057 X"$mf" : 'X\(//\)$' \| \
64ff59ba 21058 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21059echo X"$mf" |
64ff59ba 21060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21061 s//\1/
21062 q
21063 }
21064 /^X\(\/\/\)[^/].*/{
21065 s//\1/
21066 q
21067 }
21068 /^X\(\/\/\)$/{
21069 s//\1/
21070 q
21071 }
21072 /^X\(\/\).*/{
21073 s//\1/
21074 q
21075 }
21076 s/.*/./; q'`
d9898ee8 21077 else
21078 continue
21079 fi
21080 # Extract the definition of DEPDIR, am__include, and am__quote
21081 # from the Makefile without running `make'.
21082 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21083 test -z "$DEPDIR" && continue
21084 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21085 test -z "am__include" && continue
21086 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21087 # When using ansi2knr, U may be empty or an underscore; expand it
21088 U=`sed -n 's/^U = //p' < "$mf"`
21089 # Find all dependency output files, they are included files with
21090 # $(DEPDIR) in their names. We invoke sed twice because it is the
21091 # simplest approach to changing $(DEPDIR) to its actual value in the
21092 # expansion.
21093 for file in `sed -n "
21094 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21095 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21096 # Make sure the directory exists.
21097 test -f "$dirpart/$file" && continue
64ff59ba 21098 fdir=`$as_dirname -- "$file" ||
d9898ee8 21099$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21100 X"$file" : 'X\(//\)[^/]' \| \
21101 X"$file" : 'X\(//\)$' \| \
64ff59ba 21102 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21103echo X"$file" |
64ff59ba 21104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21105 s//\1/
21106 q
21107 }
21108 /^X\(\/\/\)[^/].*/{
21109 s//\1/
21110 q
21111 }
21112 /^X\(\/\/\)$/{
21113 s//\1/
21114 q
21115 }
21116 /^X\(\/\).*/{
21117 s//\1/
21118 q
21119 }
21120 s/.*/./; q'`
21121 { as_dir=$dirpart/$fdir
21122 case $as_dir in #(
21123 -*) as_dir=./$as_dir;;
21124 esac
21125 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 21126 as_dirs=
64ff59ba 21127 while :; do
21128 case $as_dir in #(
21129 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21130 *) as_qdir=$as_dir;;
21131 esac
21132 as_dirs="'$as_qdir' $as_dirs"
21133 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 21134$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21135 X"$as_dir" : 'X\(//\)[^/]' \| \
21136 X"$as_dir" : 'X\(//\)$' \| \
64ff59ba 21137 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21138echo X"$as_dir" |
64ff59ba 21139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21140 s//\1/
21141 q
21142 }
21143 /^X\(\/\/\)[^/].*/{
21144 s//\1/
21145 q
21146 }
21147 /^X\(\/\/\)$/{
21148 s//\1/
21149 q
21150 }
21151 /^X\(\/\).*/{
21152 s//\1/
21153 q
21154 }
21155 s/.*/./; q'`
21156 test -d "$as_dir" && break
d9898ee8 21157 done
64ff59ba 21158 test -z "$as_dirs" || eval "mkdir $as_dirs"
21159 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21160echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 21161 { (exit 1); exit 1; }; }; }
d9898ee8 21162 # echo "creating $dirpart/$file"
21163 echo '# dummy' > "$dirpart/$file"
21164 done
21165done
21166 ;;
64ff59ba 21167
d9898ee8 21168 esac
64ff59ba 21169done # for ac_tag
d9898ee8 21170
d9898ee8 21171
21172{ (exit 0); exit 0; }
21173_ACEOF
21174chmod +x $CONFIG_STATUS
21175ac_clean_files=$ac_clean_files_save
21176
21177
21178# configure is writing to config.log, and then calls config.status.
21179# config.status does its own redirection, appending to config.log.
21180# Unfortunately, on DOS this fails, as config.log is still kept open
21181# by configure, so config.status won't be able to write to it; its
21182# output is simply discarded. So we exec the FD to /dev/null,
21183# effectively closing config.log, so it can be properly (re)opened and
21184# appended to by config.status. When coming back to configure, we
21185# need to make the FD available again.
21186if test "$no_create" != yes; then
21187 ac_cs_success=:
21188 ac_config_status_args=
21189 test "$silent" = yes &&
21190 ac_config_status_args="$ac_config_status_args --quiet"
21191 exec 5>/dev/null
21192 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21193 exec 5>>config.log
21194 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21195 # would make configure fail if this is the last instruction.
21196 $ac_cs_success || { (exit 1); exit 1; }
21197fi
21198