Imported Debian patch 0.60.1-1
[hcoop/debian/courier-authlib.git] / random128 / 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 random128 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='random128'
730PACKAGE_TARNAME='random128'
731PACKAGE_VERSION='0.10'
732PACKAGE_STRING='random128 0.10'
733PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
734
735ac_unique_file="random128.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
847CPP
848GREP
849EGREP
850LN_S
851PS
852W
853build
854build_cpu
855build_vendor
856build_os
857host
858host_cpu
859host_vendor
860host_os
861SED
862ECHO
863AR
864RANLIB
865CXX
866CXXFLAGS
867ac_ct_CXX
868CXXDEPMODE
869am__fastdepCXX_TRUE
870am__fastdepCXX_FALSE
871CXXCPP
872F77
873FFLAGS
874ac_ct_F77
875LIBTOOL
876LIBOBJS
877LTLIBOBJS'
d9898ee8 878ac_subst_files=''
64ff59ba 879 ac_precious_vars='build_alias
880host_alias
881target_alias
882CC
883CFLAGS
884LDFLAGS
885LIBS
886CPPFLAGS
887CPP
888CXX
889CXXFLAGS
890CCC
891CXXCPP
892F77
893FFLAGS'
894
d9898ee8 895
896# Initialize some variables set by options.
897ac_init_help=
898ac_init_version=false
899# The variables have the same names as the options, with
900# dashes changed to underlines.
901cache_file=/dev/null
902exec_prefix=NONE
903no_create=
904no_recursion=
905prefix=NONE
906program_prefix=NONE
907program_suffix=NONE
908program_transform_name=s,x,x,
909silent=
910site=
911srcdir=
912verbose=
913x_includes=NONE
914x_libraries=NONE
915
916# Installation directory options.
917# These are left unexpanded so users can "make install exec_prefix=/foo"
918# and all the variables that are supposed to be based on exec_prefix
919# by default will actually change.
920# Use braces instead of parens because sh, perl, etc. also accept them.
64ff59ba 921# (The list follows the same order as the GNU Coding Standards.)
d9898ee8 922bindir='${exec_prefix}/bin'
923sbindir='${exec_prefix}/sbin'
924libexecdir='${exec_prefix}/libexec'
64ff59ba 925datarootdir='${prefix}/share'
926datadir='${datarootdir}'
d9898ee8 927sysconfdir='${prefix}/etc'
928sharedstatedir='${prefix}/com'
929localstatedir='${prefix}/var'
d9898ee8 930includedir='${prefix}/include'
931oldincludedir='/usr/include'
64ff59ba 932docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
933infodir='${datarootdir}/info'
934htmldir='${docdir}'
935dvidir='${docdir}'
936pdfdir='${docdir}'
937psdir='${docdir}'
938libdir='${exec_prefix}/lib'
939localedir='${datarootdir}/locale'
940mandir='${datarootdir}/man'
d9898ee8 941
942ac_prev=
64ff59ba 943ac_dashdash=
d9898ee8 944for ac_option
945do
946 # If the previous option needs an argument, assign it.
947 if test -n "$ac_prev"; then
64ff59ba 948 eval $ac_prev=\$ac_option
d9898ee8 949 ac_prev=
950 continue
951 fi
952
64ff59ba 953 case $ac_option in
954 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
955 *) ac_optarg=yes ;;
956 esac
d9898ee8 957
958 # Accept the important Cygnus configure options, so we can diagnose typos.
959
64ff59ba 960 case $ac_dashdash$ac_option in
961 --)
962 ac_dashdash=yes ;;
d9898ee8 963
964 -bindir | --bindir | --bindi | --bind | --bin | --bi)
965 ac_prev=bindir ;;
966 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
967 bindir=$ac_optarg ;;
968
969 -build | --build | --buil | --bui | --bu)
970 ac_prev=build_alias ;;
971 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
972 build_alias=$ac_optarg ;;
973
974 -cache-file | --cache-file | --cache-fil | --cache-fi \
975 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
976 ac_prev=cache_file ;;
977 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
978 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
979 cache_file=$ac_optarg ;;
980
981 --config-cache | -C)
982 cache_file=config.cache ;;
983
64ff59ba 984 -datadir | --datadir | --datadi | --datad)
d9898ee8 985 ac_prev=datadir ;;
64ff59ba 986 -datadir=* | --datadir=* | --datadi=* | --datad=*)
d9898ee8 987 datadir=$ac_optarg ;;
988
64ff59ba 989 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
990 | --dataroo | --dataro | --datar)
991 ac_prev=datarootdir ;;
992 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
993 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
994 datarootdir=$ac_optarg ;;
995
d9898ee8 996 -disable-* | --disable-*)
997 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
998 # Reject names that are not valid shell variable names.
64ff59ba 999 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1000 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1001 { (exit 1); exit 1; }; }
64ff59ba 1002 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1003 eval enable_$ac_feature=no ;;
1004
1005 -docdir | --docdir | --docdi | --doc | --do)
1006 ac_prev=docdir ;;
1007 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1008 docdir=$ac_optarg ;;
1009
1010 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011 ac_prev=dvidir ;;
1012 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1013 dvidir=$ac_optarg ;;
d9898ee8 1014
1015 -enable-* | --enable-*)
1016 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1017 # Reject names that are not valid shell variable names.
64ff59ba 1018 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1019 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1020 { (exit 1); exit 1; }; }
64ff59ba 1021 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1022 eval enable_$ac_feature=\$ac_optarg ;;
d9898ee8 1023
1024 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026 | --exec | --exe | --ex)
1027 ac_prev=exec_prefix ;;
1028 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030 | --exec=* | --exe=* | --ex=*)
1031 exec_prefix=$ac_optarg ;;
1032
1033 -gas | --gas | --ga | --g)
1034 # Obsolete; use --with-gas.
1035 with_gas=yes ;;
1036
1037 -help | --help | --hel | --he | -h)
1038 ac_init_help=long ;;
1039 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040 ac_init_help=recursive ;;
1041 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042 ac_init_help=short ;;
1043
1044 -host | --host | --hos | --ho)
1045 ac_prev=host_alias ;;
1046 -host=* | --host=* | --hos=* | --ho=*)
1047 host_alias=$ac_optarg ;;
1048
64ff59ba 1049 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050 ac_prev=htmldir ;;
1051 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052 | --ht=*)
1053 htmldir=$ac_optarg ;;
1054
d9898ee8 1055 -includedir | --includedir | --includedi | --included | --include \
1056 | --includ | --inclu | --incl | --inc)
1057 ac_prev=includedir ;;
1058 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059 | --includ=* | --inclu=* | --incl=* | --inc=*)
1060 includedir=$ac_optarg ;;
1061
1062 -infodir | --infodir | --infodi | --infod | --info | --inf)
1063 ac_prev=infodir ;;
1064 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1065 infodir=$ac_optarg ;;
1066
1067 -libdir | --libdir | --libdi | --libd)
1068 ac_prev=libdir ;;
1069 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1070 libdir=$ac_optarg ;;
1071
1072 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073 | --libexe | --libex | --libe)
1074 ac_prev=libexecdir ;;
1075 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076 | --libexe=* | --libex=* | --libe=*)
1077 libexecdir=$ac_optarg ;;
1078
64ff59ba 1079 -localedir | --localedir | --localedi | --localed | --locale)
1080 ac_prev=localedir ;;
1081 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082 localedir=$ac_optarg ;;
1083
d9898ee8 1084 -localstatedir | --localstatedir | --localstatedi | --localstated \
64ff59ba 1085 | --localstate | --localstat | --localsta | --localst | --locals)
d9898ee8 1086 ac_prev=localstatedir ;;
1087 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
64ff59ba 1088 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
d9898ee8 1089 localstatedir=$ac_optarg ;;
1090
1091 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092 ac_prev=mandir ;;
1093 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1094 mandir=$ac_optarg ;;
1095
1096 -nfp | --nfp | --nf)
1097 # Obsolete; use --without-fp.
1098 with_fp=no ;;
1099
1100 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1101 | --no-cr | --no-c | -n)
1102 no_create=yes ;;
1103
1104 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106 no_recursion=yes ;;
1107
1108 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110 | --oldin | --oldi | --old | --ol | --o)
1111 ac_prev=oldincludedir ;;
1112 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1115 oldincludedir=$ac_optarg ;;
1116
1117 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118 ac_prev=prefix ;;
1119 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1120 prefix=$ac_optarg ;;
1121
1122 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123 | --program-pre | --program-pr | --program-p)
1124 ac_prev=program_prefix ;;
1125 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1127 program_prefix=$ac_optarg ;;
1128
1129 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130 | --program-suf | --program-su | --program-s)
1131 ac_prev=program_suffix ;;
1132 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1134 program_suffix=$ac_optarg ;;
1135
1136 -program-transform-name | --program-transform-name \
1137 | --program-transform-nam | --program-transform-na \
1138 | --program-transform-n | --program-transform- \
1139 | --program-transform | --program-transfor \
1140 | --program-transfo | --program-transf \
1141 | --program-trans | --program-tran \
1142 | --progr-tra | --program-tr | --program-t)
1143 ac_prev=program_transform_name ;;
1144 -program-transform-name=* | --program-transform-name=* \
1145 | --program-transform-nam=* | --program-transform-na=* \
1146 | --program-transform-n=* | --program-transform-=* \
1147 | --program-transform=* | --program-transfor=* \
1148 | --program-transfo=* | --program-transf=* \
1149 | --program-trans=* | --program-tran=* \
1150 | --progr-tra=* | --program-tr=* | --program-t=*)
1151 program_transform_name=$ac_optarg ;;
1152
64ff59ba 1153 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154 ac_prev=pdfdir ;;
1155 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156 pdfdir=$ac_optarg ;;
1157
1158 -psdir | --psdir | --psdi | --psd | --ps)
1159 ac_prev=psdir ;;
1160 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161 psdir=$ac_optarg ;;
1162
d9898ee8 1163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164 | -silent | --silent | --silen | --sile | --sil)
1165 silent=yes ;;
1166
1167 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168 ac_prev=sbindir ;;
1169 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170 | --sbi=* | --sb=*)
1171 sbindir=$ac_optarg ;;
1172
1173 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175 | --sharedst | --shareds | --shared | --share | --shar \
1176 | --sha | --sh)
1177 ac_prev=sharedstatedir ;;
1178 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181 | --sha=* | --sh=*)
1182 sharedstatedir=$ac_optarg ;;
1183
1184 -site | --site | --sit)
1185 ac_prev=site ;;
1186 -site=* | --site=* | --sit=*)
1187 site=$ac_optarg ;;
1188
1189 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190 ac_prev=srcdir ;;
1191 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1192 srcdir=$ac_optarg ;;
1193
1194 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195 | --syscon | --sysco | --sysc | --sys | --sy)
1196 ac_prev=sysconfdir ;;
1197 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1199 sysconfdir=$ac_optarg ;;
1200
1201 -target | --target | --targe | --targ | --tar | --ta | --t)
1202 ac_prev=target_alias ;;
1203 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1204 target_alias=$ac_optarg ;;
1205
1206 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207 verbose=yes ;;
1208
1209 -version | --version | --versio | --versi | --vers | -V)
1210 ac_init_version=: ;;
1211
1212 -with-* | --with-*)
1213 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1214 # Reject names that are not valid shell variable names.
64ff59ba 1215 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1216 { echo "$as_me: error: invalid package name: $ac_package" >&2
1217 { (exit 1); exit 1; }; }
64ff59ba 1218 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1219 eval with_$ac_package=\$ac_optarg ;;
d9898ee8 1220
1221 -without-* | --without-*)
1222 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1223 # Reject names that are not valid shell variable names.
64ff59ba 1224 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1225 { echo "$as_me: error: invalid package name: $ac_package" >&2
1226 { (exit 1); exit 1; }; }
64ff59ba 1227 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1228 eval with_$ac_package=no ;;
d9898ee8 1229
1230 --x)
1231 # Obsolete; use --with-x.
1232 with_x=yes ;;
1233
1234 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1235 | --x-incl | --x-inc | --x-in | --x-i)
1236 ac_prev=x_includes ;;
1237 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1238 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1239 x_includes=$ac_optarg ;;
1240
1241 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1242 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1243 ac_prev=x_libraries ;;
1244 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1245 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1246 x_libraries=$ac_optarg ;;
1247
1248 -*) { echo "$as_me: error: unrecognized option: $ac_option
1249Try \`$0 --help' for more information." >&2
1250 { (exit 1); exit 1; }; }
1251 ;;
1252
1253 *=*)
1254 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1257 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1258 { (exit 1); exit 1; }; }
64ff59ba 1259 eval $ac_envvar=\$ac_optarg
d9898ee8 1260 export $ac_envvar ;;
1261
1262 *)
1263 # FIXME: should be removed in autoconf 3.0.
1264 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1265 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1266 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1267 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1268 ;;
1269
1270 esac
1271done
1272
1273if test -n "$ac_prev"; then
1274 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1275 { echo "$as_me: error: missing argument to $ac_option" >&2
1276 { (exit 1); exit 1; }; }
1277fi
1278
64ff59ba 1279# Be sure to have absolute directory names.
1280for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1281 datadir sysconfdir sharedstatedir localstatedir includedir \
1282 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1283 libdir localedir mandir
d9898ee8 1284do
64ff59ba 1285 eval ac_val=\$$ac_var
d9898ee8 1286 case $ac_val in
64ff59ba 1287 [\\/$]* | ?:[\\/]* ) continue;;
1288 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d9898ee8 1289 esac
64ff59ba 1290 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1291 { (exit 1); exit 1; }; }
d9898ee8 1292done
1293
1294# There might be people who depend on the old broken behavior: `$host'
1295# used to hold the argument of --host etc.
1296# FIXME: To remove some day.
1297build=$build_alias
1298host=$host_alias
1299target=$target_alias
1300
1301# FIXME: To remove some day.
1302if test "x$host_alias" != x; then
1303 if test "x$build_alias" = x; then
1304 cross_compiling=maybe
1305 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1306 If a cross compiler is detected then cross compile mode will be used." >&2
1307 elif test "x$build_alias" != "x$host_alias"; then
1308 cross_compiling=yes
1309 fi
1310fi
1311
1312ac_tool_prefix=
1313test -n "$host_alias" && ac_tool_prefix=$host_alias-
1314
1315test "$silent" = yes && exec 6>/dev/null
1316
1317
64ff59ba 1318ac_pwd=`pwd` && test -n "$ac_pwd" &&
1319ac_ls_di=`ls -di .` &&
1320ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1321 { echo "$as_me: error: Working directory cannot be determined" >&2
1322 { (exit 1); exit 1; }; }
1323test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1324 { echo "$as_me: error: pwd does not report name of working directory" >&2
1325 { (exit 1); exit 1; }; }
1326
1327
d9898ee8 1328# Find the source files, if location was not specified.
1329if test -z "$srcdir"; then
1330 ac_srcdir_defaulted=yes
64ff59ba 1331 # Try the directory containing this script, then the parent directory.
1332 ac_confdir=`$as_dirname -- "$0" ||
d9898ee8 1333$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1334 X"$0" : 'X\(//\)[^/]' \| \
1335 X"$0" : 'X\(//\)$' \| \
64ff59ba 1336 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 1337echo X"$0" |
64ff59ba 1338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\/\)[^/].*/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)$/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\).*/{
1351 s//\1/
1352 q
1353 }
1354 s/.*/./; q'`
d9898ee8 1355 srcdir=$ac_confdir
64ff59ba 1356 if test ! -r "$srcdir/$ac_unique_file"; then
d9898ee8 1357 srcdir=..
1358 fi
1359else
1360 ac_srcdir_defaulted=no
1361fi
64ff59ba 1362if test ! -r "$srcdir/$ac_unique_file"; then
1363 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1364 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
d9898ee8 1365 { (exit 1); exit 1; }; }
d9898ee8 1366fi
64ff59ba 1367ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368ac_abs_confdir=`(
1369 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
d9898ee8 1370 { (exit 1); exit 1; }; }
64ff59ba 1371 pwd)`
1372# When building in place, set srcdir=.
1373if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 srcdir=.
1375fi
1376# Remove unnecessary trailing slashes from srcdir.
1377# Double slashes in file names in object file debugging info
1378# mess up M-x gdb in Emacs.
1379case $srcdir in
1380*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381esac
1382for ac_var in $ac_precious_vars; do
1383 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_${ac_var}_value=\$${ac_var}
1385 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387done
d9898ee8 1388
1389#
1390# Report the --help message.
1391#
1392if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
1395 cat <<_ACEOF
1396\`configure' configures random128 0.10 to adapt to many kinds of systems.
1397
1398Usage: $0 [OPTION]... [VAR=VALUE]...
1399
1400To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401VAR=VALUE. See below for descriptions of some of the useful variables.
1402
1403Defaults for the options are specified in brackets.
1404
1405Configuration:
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
1410 -q, --quiet, --silent do not print \`checking...' messages
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415
d9898ee8 1416Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
1418 [$ac_default_prefix]
1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 [PREFIX]
1421
1422By default, \`make install' will install all the files in
1423\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425for instance \`--prefix=\$HOME'.
1426
1427For better control, use the options below.
1428
1429Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
d9898ee8 1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
64ff59ba 1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
1444 --docdir=DIR documentation root [DATAROOTDIR/doc/random128]
1445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
d9898ee8 1449_ACEOF
1450
1451 cat <<\_ACEOF
1452
1453Program names:
1454 --program-prefix=PREFIX prepend PREFIX to installed program names
1455 --program-suffix=SUFFIX append SUFFIX to installed program names
1456 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1457
1458System types:
1459 --build=BUILD configure for building on BUILD [guessed]
1460 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1461_ACEOF
1462fi
1463
1464if test -n "$ac_init_help"; then
1465 case $ac_init_help in
1466 short | recursive ) echo "Configuration of random128 0.10:";;
1467 esac
1468 cat <<\_ACEOF
1469
1470Optional Features:
1471 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1472 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1473 --disable-dependency-tracking speeds up one-time build
1474 --enable-dependency-tracking do not reject slow dependency extractors
64ff59ba 1475 --enable-shared[=PKGS] build shared libraries [default=yes]
1476 --enable-static[=PKGS] build static libraries [default=yes]
d9898ee8 1477 --enable-fast-install[=PKGS]
1478 optimize for fast installation [default=yes]
1479 --disable-libtool-lock avoid locking (might break parallel builds)
1480
1481Optional Packages:
1482 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1483 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1484 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1485 --with-pic try to use only PIC/non-PIC objects [default=use
1486 both]
64ff59ba 1487 --with-tags[=TAGS] include additional configurations [automatic]
d9898ee8 1488 --with-random=/dev/urandom - location of the system random file generator
1489--without-random - there is no system random file generator
1490
1491Some influential environment variables:
1492 CC C compiler command
1493 CFLAGS C compiler flags
1494 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1495 nonstandard directory <lib dir>
64ff59ba 1496 LIBS libraries to pass to the linker, e.g. -l<library>
1497 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1498 you have headers in a nonstandard directory <include dir>
d9898ee8 1499 CPP C preprocessor
1500 CXX C++ compiler command
1501 CXXFLAGS C++ compiler flags
1502 CXXCPP C++ preprocessor
1503 F77 Fortran 77 compiler command
1504 FFLAGS Fortran 77 compiler flags
1505
1506Use these variables to override the choices made by `configure' or to help
1507it to find libraries and programs with nonstandard names/locations.
1508
1509Report bugs to <courier-users@lists.sourceforge.net>.
1510_ACEOF
64ff59ba 1511ac_status=$?
d9898ee8 1512fi
1513
1514if test "$ac_init_help" = "recursive"; then
1515 # If there are subdirs, report their specific --help.
d9898ee8 1516 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
64ff59ba 1517 test -d "$ac_dir" || continue
d9898ee8 1518 ac_builddir=.
1519
64ff59ba 1520case "$ac_dir" in
1521.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522*)
d9898ee8 1523 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
64ff59ba 1524 # A ".." for each directory in $ac_dir_suffix.
1525 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1526 case $ac_top_builddir_sub in
1527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529 esac ;;
1530esac
1531ac_abs_top_builddir=$ac_pwd
1532ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533# for backward compatibility:
1534ac_top_builddir=$ac_top_build_prefix
d9898ee8 1535
1536case $srcdir in
64ff59ba 1537 .) # We are building in place.
d9898ee8 1538 ac_srcdir=.
64ff59ba 1539 ac_top_srcdir=$ac_top_builddir_sub
1540 ac_abs_top_srcdir=$ac_pwd ;;
1541 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 1542 ac_srcdir=$srcdir$ac_dir_suffix;
64ff59ba 1543 ac_top_srcdir=$srcdir
1544 ac_abs_top_srcdir=$srcdir ;;
1545 *) # Relative name.
1546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547 ac_top_srcdir=$ac_top_build_prefix$srcdir
1548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 1549esac
64ff59ba 1550ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1551
1552 cd "$ac_dir" || { ac_status=$?; continue; }
1553 # Check for guested configure.
1554 if test -f "$ac_srcdir/configure.gnu"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557 elif test -f "$ac_srcdir/configure"; then
1558 echo &&
1559 $SHELL "$ac_srcdir/configure" --help=recursive
d9898ee8 1560 else
1561 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
64ff59ba 1562 fi || ac_status=$?
1563 cd "$ac_pwd" || { ac_status=$?; break; }
d9898ee8 1564 done
1565fi
1566
64ff59ba 1567test -n "$ac_init_help" && exit $ac_status
d9898ee8 1568if $ac_init_version; then
1569 cat <<\_ACEOF
1570random128 configure 0.10
64ff59ba 1571generated by GNU Autoconf 2.61
d9898ee8 1572
64ff59ba 1573Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15742002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
d9898ee8 1575This configure script is free software; the Free Software Foundation
1576gives unlimited permission to copy, distribute and modify it.
1577_ACEOF
64ff59ba 1578 exit
d9898ee8 1579fi
64ff59ba 1580cat >config.log <<_ACEOF
d9898ee8 1581This file contains any messages produced by compilers while
1582running configure, to aid debugging if configure makes a mistake.
1583
1584It was created by random128 $as_me 0.10, which was
64ff59ba 1585generated by GNU Autoconf 2.61. Invocation command line was
d9898ee8 1586
1587 $ $0 $@
1588
1589_ACEOF
64ff59ba 1590exec 5>>config.log
d9898ee8 1591{
1592cat <<_ASUNAME
1593## --------- ##
1594## Platform. ##
1595## --------- ##
1596
1597hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1598uname -m = `(uname -m) 2>/dev/null || echo unknown`
1599uname -r = `(uname -r) 2>/dev/null || echo unknown`
1600uname -s = `(uname -s) 2>/dev/null || echo unknown`
1601uname -v = `(uname -v) 2>/dev/null || echo unknown`
1602
1603/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1604/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1605
1606/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1607/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1608/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
64ff59ba 1609/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
d9898ee8 1610/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1611/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1612/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1613
1614_ASUNAME
1615
1616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617for as_dir in $PATH
1618do
1619 IFS=$as_save_IFS
1620 test -z "$as_dir" && as_dir=.
1621 echo "PATH: $as_dir"
1622done
64ff59ba 1623IFS=$as_save_IFS
d9898ee8 1624
1625} >&5
1626
1627cat >&5 <<_ACEOF
1628
1629
1630## ----------- ##
1631## Core tests. ##
1632## ----------- ##
1633
1634_ACEOF
1635
1636
1637# Keep a trace of the command line.
1638# Strip out --no-create and --no-recursion so they do not pile up.
1639# Strip out --silent because we don't want to record it for future runs.
1640# Also quote any args containing shell meta-characters.
1641# Make two passes to allow for proper duplicate-argument suppression.
1642ac_configure_args=
1643ac_configure_args0=
1644ac_configure_args1=
d9898ee8 1645ac_must_keep_next=false
1646for ac_pass in 1 2
1647do
1648 for ac_arg
1649 do
1650 case $ac_arg in
1651 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1653 | -silent | --silent | --silen | --sile | --sil)
1654 continue ;;
64ff59ba 1655 *\'*)
d9898ee8 1656 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1657 esac
1658 case $ac_pass in
1659 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1660 2)
1661 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1662 if test $ac_must_keep_next = true; then
1663 ac_must_keep_next=false # Got value, back to normal.
1664 else
1665 case $ac_arg in
1666 *=* | --config-cache | -C | -disable-* | --disable-* \
1667 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1668 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1669 | -with-* | --with-* | -without-* | --without-* | --x)
1670 case "$ac_configure_args0 " in
1671 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1672 esac
1673 ;;
1674 -* ) ac_must_keep_next=true ;;
1675 esac
1676 fi
64ff59ba 1677 ac_configure_args="$ac_configure_args '$ac_arg'"
d9898ee8 1678 ;;
1679 esac
1680 done
1681done
1682$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1683$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1684
1685# When interrupted or exit'd, cleanup temporary files, and complete
1686# config.log. We remove comments because anyway the quotes in there
1687# would cause problems or look ugly.
64ff59ba 1688# WARNING: Use '\'' to represent an apostrophe within the trap.
1689# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
d9898ee8 1690trap 'exit_status=$?
1691 # Save into config.log some information that might help in debugging.
1692 {
1693 echo
1694
1695 cat <<\_ASBOX
1696## ---------------- ##
1697## Cache variables. ##
1698## ---------------- ##
1699_ASBOX
1700 echo
1701 # The following way of writing the cache mishandles newlines in values,
64ff59ba 1702(
1703 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1704 eval ac_val=\$$ac_var
1705 case $ac_val in #(
1706 *${as_nl}*)
1707 case $ac_var in #(
1708 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1709echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1710 esac
1711 case $ac_var in #(
1712 _ | IFS | as_nl) ;; #(
1713 *) $as_unset $ac_var ;;
1714 esac ;;
1715 esac
1716 done
d9898ee8 1717 (set) 2>&1 |
64ff59ba 1718 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1719 *${as_nl}ac_space=\ *)
d9898ee8 1720 sed -n \
64ff59ba 1721 "s/'\''/'\''\\\\'\'''\''/g;
1722 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1723 ;; #(
d9898ee8 1724 *)
64ff59ba 1725 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 1726 ;;
64ff59ba 1727 esac |
1728 sort
1729)
d9898ee8 1730 echo
1731
1732 cat <<\_ASBOX
1733## ----------------- ##
1734## Output variables. ##
1735## ----------------- ##
1736_ASBOX
1737 echo
1738 for ac_var in $ac_subst_vars
1739 do
64ff59ba 1740 eval ac_val=\$$ac_var
1741 case $ac_val in
1742 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1743 esac
1744 echo "$ac_var='\''$ac_val'\''"
d9898ee8 1745 done | sort
1746 echo
1747
1748 if test -n "$ac_subst_files"; then
1749 cat <<\_ASBOX
64ff59ba 1750## ------------------- ##
1751## File substitutions. ##
1752## ------------------- ##
d9898ee8 1753_ASBOX
1754 echo
1755 for ac_var in $ac_subst_files
1756 do
64ff59ba 1757 eval ac_val=\$$ac_var
1758 case $ac_val in
1759 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1760 esac
1761 echo "$ac_var='\''$ac_val'\''"
d9898ee8 1762 done | sort
1763 echo
1764 fi
1765
1766 if test -s confdefs.h; then
1767 cat <<\_ASBOX
1768## ----------- ##
1769## confdefs.h. ##
1770## ----------- ##
1771_ASBOX
1772 echo
64ff59ba 1773 cat confdefs.h
d9898ee8 1774 echo
1775 fi
1776 test "$ac_signal" != 0 &&
1777 echo "$as_me: caught signal $ac_signal"
1778 echo "$as_me: exit $exit_status"
1779 } >&5
64ff59ba 1780 rm -f core *.core core.conftest.* &&
1781 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
d9898ee8 1782 exit $exit_status
64ff59ba 1783' 0
d9898ee8 1784for ac_signal in 1 2 13 15; do
1785 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1786done
1787ac_signal=0
1788
1789# confdefs.h avoids OS command line length limits that DEFS can exceed.
64ff59ba 1790rm -f -r conftest* confdefs.h
d9898ee8 1791
1792# Predefined preprocessor variables.
1793
1794cat >>confdefs.h <<_ACEOF
1795#define PACKAGE_NAME "$PACKAGE_NAME"
1796_ACEOF
1797
1798
1799cat >>confdefs.h <<_ACEOF
1800#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1801_ACEOF
1802
1803
1804cat >>confdefs.h <<_ACEOF
1805#define PACKAGE_VERSION "$PACKAGE_VERSION"
1806_ACEOF
1807
1808
1809cat >>confdefs.h <<_ACEOF
1810#define PACKAGE_STRING "$PACKAGE_STRING"
1811_ACEOF
1812
1813
1814cat >>confdefs.h <<_ACEOF
1815#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1816_ACEOF
1817
1818
1819# Let the site file select an alternate cache file if it wants to.
1820# Prefer explicitly selected file to automatically selected ones.
64ff59ba 1821if test -n "$CONFIG_SITE"; then
1822 set x "$CONFIG_SITE"
1823elif test "x$prefix" != xNONE; then
1824 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1825else
1826 set x "$ac_default_prefix/share/config.site" \
1827 "$ac_default_prefix/etc/config.site"
d9898ee8 1828fi
64ff59ba 1829shift
1830for ac_site_file
1831do
d9898ee8 1832 if test -r "$ac_site_file"; then
1833 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1834echo "$as_me: loading site script $ac_site_file" >&6;}
1835 sed 's/^/| /' "$ac_site_file" >&5
1836 . "$ac_site_file"
1837 fi
1838done
1839
1840if test -r "$cache_file"; then
1841 # Some versions of bash will fail to source /dev/null (special
1842 # files actually), so we avoid doing that.
1843 if test -f "$cache_file"; then
1844 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1845echo "$as_me: loading cache $cache_file" >&6;}
1846 case $cache_file in
64ff59ba 1847 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1848 *) . "./$cache_file";;
d9898ee8 1849 esac
1850 fi
1851else
1852 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1853echo "$as_me: creating cache $cache_file" >&6;}
1854 >$cache_file
1855fi
1856
1857# Check that the precious variables saved in the cache have kept the same
1858# value.
1859ac_cache_corrupted=false
64ff59ba 1860for ac_var in $ac_precious_vars; do
d9898ee8 1861 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1862 eval ac_new_set=\$ac_env_${ac_var}_set
64ff59ba 1863 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1864 eval ac_new_val=\$ac_env_${ac_var}_value
d9898ee8 1865 case $ac_old_set,$ac_new_set in
1866 set,)
1867 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1868echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1869 ac_cache_corrupted=: ;;
1870 ,set)
1871 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1872echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1873 ac_cache_corrupted=: ;;
1874 ,);;
1875 *)
1876 if test "x$ac_old_val" != "x$ac_new_val"; then
1877 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1878echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1879 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1880echo "$as_me: former value: $ac_old_val" >&2;}
1881 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1882echo "$as_me: current value: $ac_new_val" >&2;}
1883 ac_cache_corrupted=:
1884 fi;;
1885 esac
1886 # Pass precious variables to config.status.
1887 if test "$ac_new_set" = set; then
1888 case $ac_new_val in
64ff59ba 1889 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 1890 *) ac_arg=$ac_var=$ac_new_val ;;
1891 esac
1892 case " $ac_configure_args " in
1893 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1894 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1895 esac
1896 fi
1897done
1898if $ac_cache_corrupted; then
1899 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1900echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1901 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1902echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1903 { (exit 1); exit 1; }; }
1904fi
1905
d9898ee8 1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
64ff59ba 1930ac_ext=c
1931ac_cpp='$CPP $CPPFLAGS'
1932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 1935
1936
1937
1938>confdefs.h # Kill PACKAGE_ macros
1939
1940
64ff59ba 1941am__api_version='1.10'
1942
d9898ee8 1943ac_aux_dir=
64ff59ba 1944for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1945 if test -f "$ac_dir/install-sh"; then
d9898ee8 1946 ac_aux_dir=$ac_dir
1947 ac_install_sh="$ac_aux_dir/install-sh -c"
1948 break
64ff59ba 1949 elif test -f "$ac_dir/install.sh"; then
d9898ee8 1950 ac_aux_dir=$ac_dir
1951 ac_install_sh="$ac_aux_dir/install.sh -c"
1952 break
64ff59ba 1953 elif test -f "$ac_dir/shtool"; then
d9898ee8 1954 ac_aux_dir=$ac_dir
1955 ac_install_sh="$ac_aux_dir/shtool install -c"
1956 break
1957 fi
1958done
1959if test -z "$ac_aux_dir"; then
64ff59ba 1960 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1961echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
d9898ee8 1962 { (exit 1); exit 1; }; }
1963fi
64ff59ba 1964
1965# These three variables are undocumented and unsupported,
1966# and are intended to be withdrawn in a future Autoconf release.
1967# They can cause serious problems if a builder's source tree is in a directory
1968# whose full name contains unusual characters.
1969ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1970ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1971ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1972
d9898ee8 1973
1974# Find a good install program. We prefer a C program (faster),
1975# so one script is as good as another. But avoid the broken or
1976# incompatible versions:
1977# SysV /etc/install, /usr/sbin/install
1978# SunOS /usr/etc/install
1979# IRIX /sbin/install
1980# AIX /bin/install
1981# AmigaOS /C/install, which installs bootblocks on floppy discs
1982# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1983# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1984# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1985# OS/2's system install, which has a completely different semantic
1986# ./install, which can be erroneously created by make from ./install.sh.
64ff59ba 1987{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1988echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
d9898ee8 1989if test -z "$INSTALL"; then
1990if test "${ac_cv_path_install+set}" = set; then
1991 echo $ECHO_N "(cached) $ECHO_C" >&6
1992else
1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994for as_dir in $PATH
1995do
1996 IFS=$as_save_IFS
1997 test -z "$as_dir" && as_dir=.
1998 # Account for people who put trailing slashes in PATH elements.
1999case $as_dir/ in
2000 ./ | .// | /cC/* | \
2001 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2002 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2003 /usr/ucb/* ) ;;
2004 *)
2005 # OSF1 and SCO ODT 3.0 have their own names for install.
2006 # Don't use installbsd from OSF since it installs stuff as root
2007 # by default.
2008 for ac_prog in ginstall scoinst install; do
2009 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2010 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 2011 if test $ac_prog = install &&
2012 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2013 # AIX install. It has an incompatible calling convention.
2014 :
2015 elif test $ac_prog = install &&
2016 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2017 # program-specific install script used by HP pwplus--don't use.
2018 :
2019 else
2020 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2021 break 3
2022 fi
2023 fi
2024 done
2025 done
2026 ;;
2027esac
2028done
64ff59ba 2029IFS=$as_save_IFS
d9898ee8 2030
2031
2032fi
2033 if test "${ac_cv_path_install+set}" = set; then
2034 INSTALL=$ac_cv_path_install
2035 else
64ff59ba 2036 # As a last resort, use the slow shell script. Don't cache a
2037 # value for INSTALL within a source directory, because that will
d9898ee8 2038 # break other packages using the cache if that directory is
64ff59ba 2039 # removed, or if the value is a relative name.
d9898ee8 2040 INSTALL=$ac_install_sh
2041 fi
2042fi
64ff59ba 2043{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2044echo "${ECHO_T}$INSTALL" >&6; }
d9898ee8 2045
2046# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2047# It thinks the first close brace ends the variable substitution.
2048test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2049
2050test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2051
2052test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2053
64ff59ba 2054{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2055echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
d9898ee8 2056# Just in case
2057sleep 1
2058echo timestamp > conftest.file
2059# Do `set' in a subshell so we don't clobber the current shell's
2060# arguments. Must try -L first in case configure is actually a
2061# symlink; some systems play weird games with the mod time of symlinks
2062# (eg FreeBSD returns the mod time of the symlink's containing
2063# directory).
2064if (
2065 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2066 if test "$*" = "X"; then
2067 # -L didn't work.
2068 set X `ls -t $srcdir/configure conftest.file`
2069 fi
2070 rm -f conftest.file
2071 if test "$*" != "X $srcdir/configure conftest.file" \
2072 && test "$*" != "X conftest.file $srcdir/configure"; then
2073
2074 # If neither matched, then we have a broken ls. This can happen
2075 # if, for instance, CONFIG_SHELL is bash and it inherits a
2076 # broken ls alias from the environment. This has actually
2077 # happened. Such a system could not be considered "sane".
2078 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2079alias in your environment" >&5
2080echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2081alias in your environment" >&2;}
2082 { (exit 1); exit 1; }; }
2083 fi
2084
2085 test "$2" = conftest.file
2086 )
2087then
2088 # Ok.
2089 :
2090else
2091 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2092Check your system clock" >&5
2093echo "$as_me: error: newly created file is older than distributed files!
2094Check your system clock" >&2;}
2095 { (exit 1); exit 1; }; }
2096fi
64ff59ba 2097{ echo "$as_me:$LINENO: result: yes" >&5
2098echo "${ECHO_T}yes" >&6; }
d9898ee8 2099test "$program_prefix" != NONE &&
64ff59ba 2100 program_transform_name="s&^&$program_prefix&;$program_transform_name"
d9898ee8 2101# Use a double $ so make ignores it.
2102test "$program_suffix" != NONE &&
64ff59ba 2103 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
d9898ee8 2104# Double any \ or $. echo might interpret backslashes.
2105# By default was `s,x,x', remove it if useless.
2106cat <<\_ACEOF >conftest.sed
2107s/[\\$]/&&/g;s/;s,x,x,$//
2108_ACEOF
2109program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
64ff59ba 2110rm -f conftest.sed
d9898ee8 2111
2112# expand $ac_aux_dir to an absolute path
2113am_aux_dir=`cd $ac_aux_dir && pwd`
2114
2115test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2116# Use eval to expand $SHELL
2117if eval "$MISSING --run true"; then
2118 am_missing_run="$MISSING --run "
2119else
2120 am_missing_run=
2121 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2122echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2123fi
2124
64ff59ba 2125{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2126echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2127if test -z "$MKDIR_P"; then
2128 if test "${ac_cv_path_mkdir+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2130else
2131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2133do
2134 IFS=$as_save_IFS
2135 test -z "$as_dir" && as_dir=.
2136 for ac_prog in mkdir gmkdir; do
2137 for ac_exec_ext in '' $ac_executable_extensions; do
2138 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2139 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2140 'mkdir (GNU coreutils) '* | \
2141 'mkdir (coreutils) '* | \
2142 'mkdir (fileutils) '4.1*)
2143 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2144 break 3;;
2145 esac
2146 done
2147 done
2148done
2149IFS=$as_save_IFS
2150
2151fi
2152
2153 if test "${ac_cv_path_mkdir+set}" = set; then
2154 MKDIR_P="$ac_cv_path_mkdir -p"
d9898ee8 2155 else
64ff59ba 2156 # As a last resort, use the slow shell script. Don't cache a
2157 # value for MKDIR_P within a source directory, because that will
2158 # break other packages using the cache if that directory is
2159 # removed, or if the value is a relative name.
2160 test -d ./--version && rmdir ./--version
2161 MKDIR_P="$ac_install_sh -d"
d9898ee8 2162 fi
2163fi
64ff59ba 2164{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2165echo "${ECHO_T}$MKDIR_P" >&6; }
2166
2167mkdir_p="$MKDIR_P"
2168case $mkdir_p in
2169 [\\/$]* | ?:[\\/]*) ;;
2170 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2171esac
d9898ee8 2172
2173for ac_prog in gawk mawk nawk awk
2174do
2175 # Extract the first word of "$ac_prog", so it can be a program name with args.
2176set dummy $ac_prog; ac_word=$2
64ff59ba 2177{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2179if test "${ac_cv_prog_AWK+set}" = set; then
2180 echo $ECHO_N "(cached) $ECHO_C" >&6
2181else
2182 if test -n "$AWK"; then
2183 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2184else
2185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186for as_dir in $PATH
2187do
2188 IFS=$as_save_IFS
2189 test -z "$as_dir" && as_dir=.
2190 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2192 ac_cv_prog_AWK="$ac_prog"
2193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194 break 2
2195 fi
2196done
2197done
64ff59ba 2198IFS=$as_save_IFS
d9898ee8 2199
2200fi
2201fi
2202AWK=$ac_cv_prog_AWK
2203if test -n "$AWK"; then
64ff59ba 2204 { echo "$as_me:$LINENO: result: $AWK" >&5
2205echo "${ECHO_T}$AWK" >&6; }
d9898ee8 2206else
64ff59ba 2207 { echo "$as_me:$LINENO: result: no" >&5
2208echo "${ECHO_T}no" >&6; }
d9898ee8 2209fi
2210
64ff59ba 2211
d9898ee8 2212 test -n "$AWK" && break
2213done
2214
64ff59ba 2215{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2216echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2217set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2218if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2220else
2221 cat >conftest.make <<\_ACEOF
64ff59ba 2222SHELL = /bin/sh
d9898ee8 2223all:
64ff59ba 2224 @echo '@@@%%%=$(MAKE)=@@@%%%'
d9898ee8 2225_ACEOF
2226# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
64ff59ba 2227case `${MAKE-make} -f conftest.make 2>/dev/null` in
2228 *@@@%%%=?*=@@@%%%*)
2229 eval ac_cv_prog_make_${ac_make}_set=yes;;
2230 *)
2231 eval ac_cv_prog_make_${ac_make}_set=no;;
2232esac
d9898ee8 2233rm -f conftest.make
2234fi
64ff59ba 2235if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2236 { echo "$as_me:$LINENO: result: yes" >&5
2237echo "${ECHO_T}yes" >&6; }
d9898ee8 2238 SET_MAKE=
2239else
64ff59ba 2240 { echo "$as_me:$LINENO: result: no" >&5
2241echo "${ECHO_T}no" >&6; }
d9898ee8 2242 SET_MAKE="MAKE=${MAKE-make}"
2243fi
2244
2245rm -rf .tst 2>/dev/null
2246mkdir .tst 2>/dev/null
2247if test -d .tst; then
2248 am__leading_dot=.
2249else
2250 am__leading_dot=_
2251fi
2252rmdir .tst 2>/dev/null
2253
64ff59ba 2254if test "`cd $srcdir && pwd`" != "`pwd`"; then
2255 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2256 # is not polluted with repeated "-I."
2257 am__isrc=' -I$(srcdir)'
2258 # test to see if srcdir already configured
2259 if test -f $srcdir/config.status; then
2260 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
d9898ee8 2261echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2262 { (exit 1); exit 1; }; }
64ff59ba 2263 fi
d9898ee8 2264fi
2265
2266# test whether we have cygpath
2267if test -z "$CYGPATH_W"; then
2268 if (cygpath --version) >/dev/null 2>/dev/null; then
2269 CYGPATH_W='cygpath -w'
2270 else
2271 CYGPATH_W=echo
2272 fi
2273fi
2274
2275
2276# Define the identity of the package.
2277 PACKAGE='random128'
2278 VERSION='0.10'
2279
2280
2281# Some tools Automake needs.
2282
2283ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2284
2285
2286AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2287
2288
2289AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2290
2291
2292AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2293
2294
2295MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2296
64ff59ba 2297install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
d9898ee8 2298
2299# Installed binaries are usually stripped using `strip' when the user
2300# run `make install-strip'. However `strip' might not be the right
2301# tool to use in cross-compilation environments, therefore Automake
2302# will honor the `STRIP' environment variable to overrule this program.
2303if test "$cross_compiling" != no; then
2304 if test -n "$ac_tool_prefix"; then
2305 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2306set dummy ${ac_tool_prefix}strip; ac_word=$2
64ff59ba 2307{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2309if test "${ac_cv_prog_STRIP+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2311else
2312 if test -n "$STRIP"; then
2313 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2314else
2315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316for as_dir in $PATH
2317do
2318 IFS=$as_save_IFS
2319 test -z "$as_dir" && as_dir=.
2320 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2322 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2324 break 2
2325 fi
2326done
2327done
64ff59ba 2328IFS=$as_save_IFS
d9898ee8 2329
2330fi
2331fi
2332STRIP=$ac_cv_prog_STRIP
2333if test -n "$STRIP"; then
64ff59ba 2334 { echo "$as_me:$LINENO: result: $STRIP" >&5
2335echo "${ECHO_T}$STRIP" >&6; }
d9898ee8 2336else
64ff59ba 2337 { echo "$as_me:$LINENO: result: no" >&5
2338echo "${ECHO_T}no" >&6; }
d9898ee8 2339fi
2340
64ff59ba 2341
d9898ee8 2342fi
2343if test -z "$ac_cv_prog_STRIP"; then
2344 ac_ct_STRIP=$STRIP
2345 # Extract the first word of "strip", so it can be a program name with args.
2346set dummy strip; ac_word=$2
64ff59ba 2347{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2349if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2351else
2352 if test -n "$ac_ct_STRIP"; then
2353 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2354else
2355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356for as_dir in $PATH
2357do
2358 IFS=$as_save_IFS
2359 test -z "$as_dir" && as_dir=.
2360 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2362 ac_cv_prog_ac_ct_STRIP="strip"
2363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364 break 2
2365 fi
2366done
2367done
64ff59ba 2368IFS=$as_save_IFS
d9898ee8 2369
d9898ee8 2370fi
2371fi
2372ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2373if test -n "$ac_ct_STRIP"; then
64ff59ba 2374 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2375echo "${ECHO_T}$ac_ct_STRIP" >&6; }
d9898ee8 2376else
64ff59ba 2377 { echo "$as_me:$LINENO: result: no" >&5
2378echo "${ECHO_T}no" >&6; }
d9898ee8 2379fi
2380
64ff59ba 2381 if test "x$ac_ct_STRIP" = x; then
2382 STRIP=":"
2383 else
2384 case $cross_compiling:$ac_tool_warned in
2385yes:)
2386{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2387whose name does not start with the host triplet. If you think this
2388configuration is useful to you, please write to autoconf@gnu.org." >&5
2389echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2390whose name does not start with the host triplet. If you think this
2391configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2392ac_tool_warned=yes ;;
2393esac
2394 STRIP=$ac_ct_STRIP
2395 fi
d9898ee8 2396else
2397 STRIP="$ac_cv_prog_STRIP"
2398fi
2399
2400fi
64ff59ba 2401INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
d9898ee8 2402
2403# We need awk for the "check" target. The system "awk" is bad on
2404# some platforms.
2405# Always define AMTAR for backward compatibility.
2406
2407AMTAR=${AMTAR-"${am_missing_run}tar"}
2408
2409am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2410
2411
2412
2413
2414
2415LPATH="$PATH:/usr/local/bin"
2416
2417
64ff59ba 2418ac_config_headers="$ac_config_headers config.h"
d9898ee8 2419
2420DEPDIR="${am__leading_dot}deps"
2421
64ff59ba 2422ac_config_commands="$ac_config_commands depfiles"
d9898ee8 2423
2424
2425am_make=${MAKE-make}
2426cat > confinc << 'END'
2427am__doit:
2428 @echo done
2429.PHONY: am__doit
2430END
2431# If we don't find an include directive, just comment out the code.
64ff59ba 2432{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2433echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
d9898ee8 2434am__include="#"
2435am__quote=
2436_am_result=none
2437# First try GNU make style include.
2438echo "include confinc" > confmf
2439# We grep out `Entering directory' and `Leaving directory'
2440# messages which can occur if `w' ends up in MAKEFLAGS.
2441# In particular we don't look at `^make:' because GNU make might
2442# be invoked under some other name (usually "gmake"), in which
2443# case it prints its new name instead of `make'.
2444if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2445 am__include=include
2446 am__quote=
2447 _am_result=GNU
2448fi
2449# Now try BSD make style include.
2450if test "$am__include" = "#"; then
2451 echo '.include "confinc"' > confmf
2452 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2453 am__include=.include
2454 am__quote="\""
2455 _am_result=BSD
2456 fi
2457fi
2458
2459
64ff59ba 2460{ echo "$as_me:$LINENO: result: $_am_result" >&5
2461echo "${ECHO_T}$_am_result" >&6; }
d9898ee8 2462rm -f confinc confmf
2463
64ff59ba 2464# Check whether --enable-dependency-tracking was given.
d9898ee8 2465if test "${enable_dependency_tracking+set}" = set; then
64ff59ba 2466 enableval=$enable_dependency_tracking;
2467fi
d9898ee8 2468
d9898ee8 2469if test "x$enable_dependency_tracking" != xno; then
2470 am_depcomp="$ac_aux_dir/depcomp"
2471 AMDEPBACKSLASH='\'
2472fi
64ff59ba 2473 if test "x$enable_dependency_tracking" != xno; then
d9898ee8 2474 AMDEP_TRUE=
2475 AMDEP_FALSE='#'
2476else
2477 AMDEP_TRUE='#'
2478 AMDEP_FALSE=
2479fi
2480
2481
d9898ee8 2482ac_ext=c
2483ac_cpp='$CPP $CPPFLAGS'
2484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2486ac_compiler_gnu=$ac_cv_c_compiler_gnu
2487if test -n "$ac_tool_prefix"; then
2488 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2489set dummy ${ac_tool_prefix}gcc; ac_word=$2
64ff59ba 2490{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2492if test "${ac_cv_prog_CC+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
2494else
2495 if test -n "$CC"; then
2496 ac_cv_prog_CC="$CC" # Let the user override the test.
2497else
2498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499for as_dir in $PATH
2500do
2501 IFS=$as_save_IFS
2502 test -z "$as_dir" && as_dir=.
2503 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2505 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2507 break 2
2508 fi
2509done
2510done
64ff59ba 2511IFS=$as_save_IFS
d9898ee8 2512
2513fi
2514fi
2515CC=$ac_cv_prog_CC
2516if test -n "$CC"; then
64ff59ba 2517 { echo "$as_me:$LINENO: result: $CC" >&5
2518echo "${ECHO_T}$CC" >&6; }
d9898ee8 2519else
64ff59ba 2520 { echo "$as_me:$LINENO: result: no" >&5
2521echo "${ECHO_T}no" >&6; }
d9898ee8 2522fi
2523
64ff59ba 2524
d9898ee8 2525fi
2526if test -z "$ac_cv_prog_CC"; then
2527 ac_ct_CC=$CC
2528 # Extract the first word of "gcc", so it can be a program name with args.
2529set dummy gcc; ac_word=$2
64ff59ba 2530{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2532if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2534else
2535 if test -n "$ac_ct_CC"; then
2536 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2537else
2538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539for as_dir in $PATH
2540do
2541 IFS=$as_save_IFS
2542 test -z "$as_dir" && as_dir=.
2543 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2545 ac_cv_prog_ac_ct_CC="gcc"
2546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2547 break 2
2548 fi
2549done
2550done
64ff59ba 2551IFS=$as_save_IFS
d9898ee8 2552
2553fi
2554fi
2555ac_ct_CC=$ac_cv_prog_ac_ct_CC
2556if test -n "$ac_ct_CC"; then
64ff59ba 2557 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2558echo "${ECHO_T}$ac_ct_CC" >&6; }
d9898ee8 2559else
64ff59ba 2560 { echo "$as_me:$LINENO: result: no" >&5
2561echo "${ECHO_T}no" >&6; }
d9898ee8 2562fi
2563
64ff59ba 2564 if test "x$ac_ct_CC" = x; then
2565 CC=""
2566 else
2567 case $cross_compiling:$ac_tool_warned in
2568yes:)
2569{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2570whose name does not start with the host triplet. If you think this
2571configuration is useful to you, please write to autoconf@gnu.org." >&5
2572echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2573whose name does not start with the host triplet. If you think this
2574configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2575ac_tool_warned=yes ;;
2576esac
2577 CC=$ac_ct_CC
2578 fi
d9898ee8 2579else
2580 CC="$ac_cv_prog_CC"
2581fi
2582
2583if test -z "$CC"; then
64ff59ba 2584 if test -n "$ac_tool_prefix"; then
2585 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 2586set dummy ${ac_tool_prefix}cc; ac_word=$2
64ff59ba 2587{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2589if test "${ac_cv_prog_CC+set}" = set; then
2590 echo $ECHO_N "(cached) $ECHO_C" >&6
2591else
2592 if test -n "$CC"; then
2593 ac_cv_prog_CC="$CC" # Let the user override the test.
2594else
2595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596for as_dir in $PATH
2597do
2598 IFS=$as_save_IFS
2599 test -z "$as_dir" && as_dir=.
2600 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2602 ac_cv_prog_CC="${ac_tool_prefix}cc"
2603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2604 break 2
2605 fi
2606done
2607done
64ff59ba 2608IFS=$as_save_IFS
d9898ee8 2609
2610fi
2611fi
2612CC=$ac_cv_prog_CC
2613if test -n "$CC"; then
64ff59ba 2614 { echo "$as_me:$LINENO: result: $CC" >&5
2615echo "${ECHO_T}$CC" >&6; }
d9898ee8 2616else
64ff59ba 2617 { echo "$as_me:$LINENO: result: no" >&5
2618echo "${ECHO_T}no" >&6; }
d9898ee8 2619fi
2620
d9898ee8 2621
64ff59ba 2622 fi
d9898ee8 2623fi
2624if test -z "$CC"; then
2625 # Extract the first word of "cc", so it can be a program name with args.
2626set dummy cc; ac_word=$2
64ff59ba 2627{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2629if test "${ac_cv_prog_CC+set}" = set; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
2631else
2632 if test -n "$CC"; then
2633 ac_cv_prog_CC="$CC" # Let the user override the test.
2634else
2635 ac_prog_rejected=no
2636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637for as_dir in $PATH
2638do
2639 IFS=$as_save_IFS
2640 test -z "$as_dir" && as_dir=.
2641 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2643 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2644 ac_prog_rejected=yes
2645 continue
2646 fi
2647 ac_cv_prog_CC="cc"
2648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2649 break 2
2650 fi
2651done
2652done
64ff59ba 2653IFS=$as_save_IFS
d9898ee8 2654
2655if test $ac_prog_rejected = yes; then
2656 # We found a bogon in the path, so make sure we never use it.
2657 set dummy $ac_cv_prog_CC
2658 shift
2659 if test $# != 0; then
2660 # We chose a different compiler from the bogus one.
2661 # However, it has the same basename, so the bogon will be chosen
2662 # first if we set CC to just the basename; use the full file name.
2663 shift
2664 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2665 fi
2666fi
2667fi
2668fi
2669CC=$ac_cv_prog_CC
2670if test -n "$CC"; then
64ff59ba 2671 { echo "$as_me:$LINENO: result: $CC" >&5
2672echo "${ECHO_T}$CC" >&6; }
d9898ee8 2673else
64ff59ba 2674 { echo "$as_me:$LINENO: result: no" >&5
2675echo "${ECHO_T}no" >&6; }
d9898ee8 2676fi
2677
64ff59ba 2678
d9898ee8 2679fi
2680if test -z "$CC"; then
2681 if test -n "$ac_tool_prefix"; then
64ff59ba 2682 for ac_prog in cl.exe
d9898ee8 2683 do
2684 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2685set dummy $ac_tool_prefix$ac_prog; ac_word=$2
64ff59ba 2686{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2688if test "${ac_cv_prog_CC+set}" = set; then
2689 echo $ECHO_N "(cached) $ECHO_C" >&6
2690else
2691 if test -n "$CC"; then
2692 ac_cv_prog_CC="$CC" # Let the user override the test.
2693else
2694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695for as_dir in $PATH
2696do
2697 IFS=$as_save_IFS
2698 test -z "$as_dir" && as_dir=.
2699 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2701 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2703 break 2
2704 fi
2705done
2706done
64ff59ba 2707IFS=$as_save_IFS
d9898ee8 2708
2709fi
2710fi
2711CC=$ac_cv_prog_CC
2712if test -n "$CC"; then
64ff59ba 2713 { echo "$as_me:$LINENO: result: $CC" >&5
2714echo "${ECHO_T}$CC" >&6; }
d9898ee8 2715else
64ff59ba 2716 { echo "$as_me:$LINENO: result: no" >&5
2717echo "${ECHO_T}no" >&6; }
d9898ee8 2718fi
2719
64ff59ba 2720
d9898ee8 2721 test -n "$CC" && break
2722 done
2723fi
2724if test -z "$CC"; then
2725 ac_ct_CC=$CC
64ff59ba 2726 for ac_prog in cl.exe
d9898ee8 2727do
2728 # Extract the first word of "$ac_prog", so it can be a program name with args.
2729set dummy $ac_prog; ac_word=$2
64ff59ba 2730{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2732if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2733 echo $ECHO_N "(cached) $ECHO_C" >&6
2734else
2735 if test -n "$ac_ct_CC"; then
2736 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2737else
2738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739for as_dir in $PATH
2740do
2741 IFS=$as_save_IFS
2742 test -z "$as_dir" && as_dir=.
2743 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2745 ac_cv_prog_ac_ct_CC="$ac_prog"
2746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2747 break 2
2748 fi
2749done
2750done
64ff59ba 2751IFS=$as_save_IFS
d9898ee8 2752
2753fi
2754fi
2755ac_ct_CC=$ac_cv_prog_ac_ct_CC
2756if test -n "$ac_ct_CC"; then
64ff59ba 2757 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2758echo "${ECHO_T}$ac_ct_CC" >&6; }
d9898ee8 2759else
64ff59ba 2760 { echo "$as_me:$LINENO: result: no" >&5
2761echo "${ECHO_T}no" >&6; }
d9898ee8 2762fi
2763
64ff59ba 2764
d9898ee8 2765 test -n "$ac_ct_CC" && break
2766done
2767
64ff59ba 2768 if test "x$ac_ct_CC" = x; then
2769 CC=""
2770 else
2771 case $cross_compiling:$ac_tool_warned in
2772yes:)
2773{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2774whose name does not start with the host triplet. If you think this
2775configuration is useful to you, please write to autoconf@gnu.org." >&5
2776echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2777whose name does not start with the host triplet. If you think this
2778configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2779ac_tool_warned=yes ;;
2780esac
2781 CC=$ac_ct_CC
2782 fi
d9898ee8 2783fi
2784
2785fi
2786
2787
2788test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2789See \`config.log' for more details." >&5
2790echo "$as_me: error: no acceptable C compiler found in \$PATH
2791See \`config.log' for more details." >&2;}
2792 { (exit 1); exit 1; }; }
2793
2794# Provide some information about the compiler.
64ff59ba 2795echo "$as_me:$LINENO: checking for C compiler version" >&5
d9898ee8 2796ac_compiler=`set X $ac_compile; echo $2`
64ff59ba 2797{ (ac_try="$ac_compiler --version >&5"
2798case "(($ac_try" in
2799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2800 *) ac_try_echo=$ac_try;;
2801esac
2802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2803 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 2804 ac_status=$?
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); }
64ff59ba 2807{ (ac_try="$ac_compiler -v >&5"
2808case "(($ac_try" in
2809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810 *) ac_try_echo=$ac_try;;
2811esac
2812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2813 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 2814 ac_status=$?
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }
64ff59ba 2817{ (ac_try="$ac_compiler -V >&5"
2818case "(($ac_try" in
2819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820 *) ac_try_echo=$ac_try;;
2821esac
2822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2823 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 2824 ac_status=$?
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }
2827
2828cat >conftest.$ac_ext <<_ACEOF
2829/* confdefs.h. */
2830_ACEOF
2831cat confdefs.h >>conftest.$ac_ext
2832cat >>conftest.$ac_ext <<_ACEOF
2833/* end confdefs.h. */
2834
2835int
2836main ()
2837{
2838
2839 ;
2840 return 0;
2841}
2842_ACEOF
2843ac_clean_files_save=$ac_clean_files
2844ac_clean_files="$ac_clean_files a.out a.exe b.out"
2845# Try to create an executable without -o first, disregard a.out.
2846# It will help us diagnose broken compilers, and finding out an intuition
2847# of exeext.
64ff59ba 2848{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2849echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
d9898ee8 2850ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
64ff59ba 2851#
2852# List of possible output files, starting from the most likely.
2853# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2854# only as a last resort. b.out is created by i960 compilers.
2855ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2856#
2857# The IRIX 6 linker writes into existing files which may not be
2858# executable, retaining their permissions. Remove them first so a
2859# subsequent execution test works.
2860ac_rmfiles=
2861for ac_file in $ac_files
2862do
2863 case $ac_file in
2864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2865 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2866 esac
2867done
2868rm -f $ac_rmfiles
2869
2870if { (ac_try="$ac_link_default"
2871case "(($ac_try" in
2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873 *) ac_try_echo=$ac_try;;
2874esac
2875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876 (eval "$ac_link_default") 2>&5
d9898ee8 2877 ac_status=$?
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); }; then
64ff59ba 2880 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2881# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2882# in a Makefile. We should not override ac_cv_exeext if it was cached,
2883# so that the user can short-circuit this test for compilers unknown to
2884# Autoconf.
2885for ac_file in $ac_files ''
d9898ee8 2886do
2887 test -f "$ac_file" || continue
2888 case $ac_file in
64ff59ba 2889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
d9898ee8 2890 ;;
2891 [ab].out )
2892 # We found the default executable, but exeext='' is most
2893 # certainly right.
2894 break;;
2895 *.* )
64ff59ba 2896 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2897 then :; else
2898 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2899 fi
2900 # We set ac_cv_exeext here because the later test for it is not
2901 # safe: cross compilers may not add the suffix if given an `-o'
2902 # argument, so we may need to know it at that point already.
2903 # Even if this section looks crufty: it has the advantage of
2904 # actually working.
d9898ee8 2905 break;;
2906 * )
2907 break;;
2908 esac
2909done
64ff59ba 2910test "$ac_cv_exeext" = no && ac_cv_exeext=
2911
d9898ee8 2912else
64ff59ba 2913 ac_file=''
2914fi
2915
2916{ echo "$as_me:$LINENO: result: $ac_file" >&5
2917echo "${ECHO_T}$ac_file" >&6; }
2918if test -z "$ac_file"; then
d9898ee8 2919 echo "$as_me: failed program was:" >&5
2920sed 's/^/| /' conftest.$ac_ext >&5
2921
2922{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2923See \`config.log' for more details." >&5
2924echo "$as_me: error: C compiler cannot create executables
2925See \`config.log' for more details." >&2;}
2926 { (exit 77); exit 77; }; }
2927fi
2928
2929ac_exeext=$ac_cv_exeext
d9898ee8 2930
64ff59ba 2931# Check that the compiler produces executables we can run. If not, either
d9898ee8 2932# the compiler is broken, or we cross compile.
64ff59ba 2933{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2934echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
d9898ee8 2935# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2936# If not cross compiling, check that we can run a simple program.
2937if test "$cross_compiling" != yes; then
2938 if { ac_try='./$ac_file'
64ff59ba 2939 { (case "(($ac_try" in
2940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941 *) ac_try_echo=$ac_try;;
2942esac
2943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2944 (eval "$ac_try") 2>&5
d9898ee8 2945 ac_status=$?
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; }; then
2948 cross_compiling=no
2949 else
2950 if test "$cross_compiling" = maybe; then
2951 cross_compiling=yes
2952 else
2953 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2954If you meant to cross compile, use \`--host'.
2955See \`config.log' for more details." >&5
2956echo "$as_me: error: cannot run C compiled programs.
2957If you meant to cross compile, use \`--host'.
2958See \`config.log' for more details." >&2;}
2959 { (exit 1); exit 1; }; }
2960 fi
2961 fi
2962fi
64ff59ba 2963{ echo "$as_me:$LINENO: result: yes" >&5
2964echo "${ECHO_T}yes" >&6; }
d9898ee8 2965
2966rm -f a.out a.exe conftest$ac_cv_exeext b.out
2967ac_clean_files=$ac_clean_files_save
64ff59ba 2968# Check that the compiler produces executables we can run. If not, either
d9898ee8 2969# the compiler is broken, or we cross compile.
64ff59ba 2970{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2971echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2972{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2973echo "${ECHO_T}$cross_compiling" >&6; }
2974
2975{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2976echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2977if { (ac_try="$ac_link"
2978case "(($ac_try" in
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2981esac
2982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983 (eval "$ac_link") 2>&5
d9898ee8 2984 ac_status=$?
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; then
2987 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2988# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2989# work properly (i.e., refer to `conftest.exe'), while it won't with
2990# `rm'.
2991for ac_file in conftest.exe conftest conftest.*; do
2992 test -f "$ac_file" || continue
2993 case $ac_file in
64ff59ba 2994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
d9898ee8 2995 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
d9898ee8 2996 break;;
2997 * ) break;;
2998 esac
2999done
3000else
3001 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3002See \`config.log' for more details." >&5
3003echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3004See \`config.log' for more details." >&2;}
3005 { (exit 1); exit 1; }; }
3006fi
3007
3008rm -f conftest$ac_cv_exeext
64ff59ba 3009{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3010echo "${ECHO_T}$ac_cv_exeext" >&6; }
d9898ee8 3011
3012rm -f conftest.$ac_ext
3013EXEEXT=$ac_cv_exeext
3014ac_exeext=$EXEEXT
64ff59ba 3015{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3016echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
d9898ee8 3017if test "${ac_cv_objext+set}" = set; then
3018 echo $ECHO_N "(cached) $ECHO_C" >&6
3019else
3020 cat >conftest.$ac_ext <<_ACEOF
3021/* confdefs.h. */
3022_ACEOF
3023cat confdefs.h >>conftest.$ac_ext
3024cat >>conftest.$ac_ext <<_ACEOF
3025/* end confdefs.h. */
3026
3027int
3028main ()
3029{
3030
3031 ;
3032 return 0;
3033}
3034_ACEOF
3035rm -f conftest.o conftest.obj
64ff59ba 3036if { (ac_try="$ac_compile"
3037case "(($ac_try" in
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3040esac
3041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_compile") 2>&5
d9898ee8 3043 ac_status=$?
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }; then
64ff59ba 3046 for ac_file in conftest.o conftest.obj conftest.*; do
3047 test -f "$ac_file" || continue;
d9898ee8 3048 case $ac_file in
64ff59ba 3049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
d9898ee8 3050 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3051 break;;
3052 esac
3053done
3054else
3055 echo "$as_me: failed program was:" >&5
3056sed 's/^/| /' conftest.$ac_ext >&5
3057
3058{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3059See \`config.log' for more details." >&5
3060echo "$as_me: error: cannot compute suffix of object files: cannot compile
3061See \`config.log' for more details." >&2;}
3062 { (exit 1); exit 1; }; }
3063fi
3064
3065rm -f conftest.$ac_cv_objext conftest.$ac_ext
3066fi
64ff59ba 3067{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3068echo "${ECHO_T}$ac_cv_objext" >&6; }
d9898ee8 3069OBJEXT=$ac_cv_objext
3070ac_objext=$OBJEXT
64ff59ba 3071{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3072echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
d9898ee8 3073if test "${ac_cv_c_compiler_gnu+set}" = set; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
3075else
3076 cat >conftest.$ac_ext <<_ACEOF
3077/* confdefs.h. */
3078_ACEOF
3079cat confdefs.h >>conftest.$ac_ext
3080cat >>conftest.$ac_ext <<_ACEOF
3081/* end confdefs.h. */
3082
3083int
3084main ()
3085{
3086#ifndef __GNUC__
3087 choke me
3088#endif
3089
3090 ;
3091 return 0;
3092}
3093_ACEOF
3094rm -f conftest.$ac_objext
64ff59ba 3095if { (ac_try="$ac_compile"
3096case "(($ac_try" in
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3099esac
3100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3102 ac_status=$?
3103 grep -v '^ *+' conftest.er1 >conftest.err
3104 rm -f conftest.er1
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3107 (exit $ac_status); } && {
3108 test -z "$ac_c_werror_flag" ||
3109 test ! -s conftest.err
3110 } && test -s conftest.$ac_objext; then
d9898ee8 3111 ac_compiler_gnu=yes
3112else
3113 echo "$as_me: failed program was:" >&5
3114sed 's/^/| /' conftest.$ac_ext >&5
3115
64ff59ba 3116 ac_compiler_gnu=no
d9898ee8 3117fi
64ff59ba 3118
3119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3120ac_cv_c_compiler_gnu=$ac_compiler_gnu
3121
3122fi
64ff59ba 3123{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3124echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
d9898ee8 3125GCC=`test $ac_compiler_gnu = yes && echo yes`
3126ac_test_CFLAGS=${CFLAGS+set}
3127ac_save_CFLAGS=$CFLAGS
64ff59ba 3128{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3129echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
d9898ee8 3130if test "${ac_cv_prog_cc_g+set}" = set; then
3131 echo $ECHO_N "(cached) $ECHO_C" >&6
3132else
64ff59ba 3133 ac_save_c_werror_flag=$ac_c_werror_flag
3134 ac_c_werror_flag=yes
3135 ac_cv_prog_cc_g=no
3136 CFLAGS="-g"
3137 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 3138/* confdefs.h. */
3139_ACEOF
3140cat confdefs.h >>conftest.$ac_ext
3141cat >>conftest.$ac_ext <<_ACEOF
3142/* end confdefs.h. */
3143
3144int
3145main ()
3146{
3147
3148 ;
3149 return 0;
3150}
3151_ACEOF
3152rm -f conftest.$ac_objext
64ff59ba 3153if { (ac_try="$ac_compile"
3154case "(($ac_try" in
3155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156 *) ac_try_echo=$ac_try;;
3157esac
3158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3159 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3160 ac_status=$?
3161 grep -v '^ *+' conftest.er1 >conftest.err
3162 rm -f conftest.er1
3163 cat conftest.err >&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3165 (exit $ac_status); } && {
3166 test -z "$ac_c_werror_flag" ||
3167 test ! -s conftest.err
3168 } && test -s conftest.$ac_objext; then
3169 ac_cv_prog_cc_g=yes
3170else
3171 echo "$as_me: failed program was:" >&5
3172sed 's/^/| /' conftest.$ac_ext >&5
3173
3174 CFLAGS=""
3175 cat >conftest.$ac_ext <<_ACEOF
3176/* confdefs.h. */
3177_ACEOF
3178cat confdefs.h >>conftest.$ac_ext
3179cat >>conftest.$ac_ext <<_ACEOF
3180/* end confdefs.h. */
3181
3182int
3183main ()
3184{
3185
3186 ;
3187 return 0;
3188}
3189_ACEOF
3190rm -f conftest.$ac_objext
3191if { (ac_try="$ac_compile"
3192case "(($ac_try" in
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3195esac
3196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3198 ac_status=$?
64ff59ba 3199 grep -v '^ *+' conftest.er1 >conftest.err
3200 rm -f conftest.er1
3201 cat conftest.err >&5
d9898ee8 3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3203 (exit $ac_status); } && {
3204 test -z "$ac_c_werror_flag" ||
3205 test ! -s conftest.err
3206 } && test -s conftest.$ac_objext; then
3207 :
3208else
3209 echo "$as_me: failed program was:" >&5
3210sed 's/^/| /' conftest.$ac_ext >&5
3211
3212 ac_c_werror_flag=$ac_save_c_werror_flag
3213 CFLAGS="-g"
3214 cat >conftest.$ac_ext <<_ACEOF
3215/* confdefs.h. */
3216_ACEOF
3217cat confdefs.h >>conftest.$ac_ext
3218cat >>conftest.$ac_ext <<_ACEOF
3219/* end confdefs.h. */
3220
3221int
3222main ()
3223{
3224
3225 ;
3226 return 0;
3227}
3228_ACEOF
3229rm -f conftest.$ac_objext
3230if { (ac_try="$ac_compile"
3231case "(($ac_try" in
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3234esac
3235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3237 ac_status=$?
64ff59ba 3238 grep -v '^ *+' conftest.er1 >conftest.err
3239 rm -f conftest.er1
3240 cat conftest.err >&5
d9898ee8 3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3242 (exit $ac_status); } && {
3243 test -z "$ac_c_werror_flag" ||
3244 test ! -s conftest.err
3245 } && test -s conftest.$ac_objext; then
d9898ee8 3246 ac_cv_prog_cc_g=yes
3247else
3248 echo "$as_me: failed program was:" >&5
3249sed 's/^/| /' conftest.$ac_ext >&5
3250
64ff59ba 3251
3252fi
3253
3254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3255fi
3256
3257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3258fi
64ff59ba 3259
3260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3261 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 3262fi
64ff59ba 3263{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3264echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
d9898ee8 3265if test "$ac_test_CFLAGS" = set; then
3266 CFLAGS=$ac_save_CFLAGS
3267elif test $ac_cv_prog_cc_g = yes; then
3268 if test "$GCC" = yes; then
3269 CFLAGS="-g -O2"
3270 else
3271 CFLAGS="-g"
3272 fi
3273else
3274 if test "$GCC" = yes; then
3275 CFLAGS="-O2"
3276 else
3277 CFLAGS=
3278 fi
3279fi
64ff59ba 3280{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3281echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3282if test "${ac_cv_prog_cc_c89+set}" = set; then
d9898ee8 3283 echo $ECHO_N "(cached) $ECHO_C" >&6
3284else
64ff59ba 3285 ac_cv_prog_cc_c89=no
d9898ee8 3286ac_save_CC=$CC
3287cat >conftest.$ac_ext <<_ACEOF
3288/* confdefs.h. */
3289_ACEOF
3290cat confdefs.h >>conftest.$ac_ext
3291cat >>conftest.$ac_ext <<_ACEOF
3292/* end confdefs.h. */
3293#include <stdarg.h>
3294#include <stdio.h>
3295#include <sys/types.h>
3296#include <sys/stat.h>
3297/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3298struct buf { int x; };
3299FILE * (*rcsopen) (struct buf *, struct stat *, int);
3300static char *e (p, i)
3301 char **p;
3302 int i;
3303{
3304 return p[i];
3305}
3306static char *f (char * (*g) (char **, int), char **p, ...)
3307{
3308 char *s;
3309 va_list v;
3310 va_start (v,p);
3311 s = g (p, va_arg (v,int));
3312 va_end (v);
3313 return s;
3314}
3315
3316/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3317 function prototypes and stuff, but not '\xHH' hex character constants.
3318 These don't provoke an error unfortunately, instead are silently treated
64ff59ba 3319 as 'x'. The following induces an error, until -std is added to get
d9898ee8 3320 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3321 array size at least. It's necessary to write '\x00'==0 to get something
64ff59ba 3322 that's true only with -std. */
d9898ee8 3323int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3324
64ff59ba 3325/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3326 inside strings and character constants. */
3327#define FOO(x) 'x'
3328int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3329
d9898ee8 3330int test (int i, double x);
3331struct s1 {int (*f) (int a);};
3332struct s2 {int (*f) (double a);};
3333int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3334int argc;
3335char **argv;
3336int
3337main ()
3338{
3339return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3340 ;
3341 return 0;
3342}
3343_ACEOF
64ff59ba 3344for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3345 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 3346do
3347 CC="$ac_save_CC $ac_arg"
3348 rm -f conftest.$ac_objext
64ff59ba 3349if { (ac_try="$ac_compile"
3350case "(($ac_try" in
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3353esac
3354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3355 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3356 ac_status=$?
3357 grep -v '^ *+' conftest.er1 >conftest.err
3358 rm -f conftest.er1
3359 cat conftest.err >&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3361 (exit $ac_status); } && {
3362 test -z "$ac_c_werror_flag" ||
3363 test ! -s conftest.err
3364 } && test -s conftest.$ac_objext; then
3365 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 3366else
3367 echo "$as_me: failed program was:" >&5
3368sed 's/^/| /' conftest.$ac_ext >&5
3369
64ff59ba 3370
d9898ee8 3371fi
64ff59ba 3372
3373rm -f core conftest.err conftest.$ac_objext
3374 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 3375done
64ff59ba 3376rm -f conftest.$ac_ext
d9898ee8 3377CC=$ac_save_CC
3378
3379fi
64ff59ba 3380# AC_CACHE_VAL
3381case "x$ac_cv_prog_cc_c89" in
3382 x)
3383 { echo "$as_me:$LINENO: result: none needed" >&5
3384echo "${ECHO_T}none needed" >&6; } ;;
3385 xno)
3386 { echo "$as_me:$LINENO: result: unsupported" >&5
3387echo "${ECHO_T}unsupported" >&6; } ;;
d9898ee8 3388 *)
64ff59ba 3389 CC="$CC $ac_cv_prog_cc_c89"
3390 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3391echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 3392esac
3393
d9898ee8 3394
d9898ee8 3395ac_ext=c
3396ac_cpp='$CPP $CPPFLAGS'
3397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3399ac_compiler_gnu=$ac_cv_c_compiler_gnu
3400
3401depcc="$CC" am_compiler_list=
3402
64ff59ba 3403{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3404echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
d9898ee8 3405if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3407else
3408 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3409 # We make a subdir and do the tests there. Otherwise we can end up
3410 # making bogus files that we don't know about and never remove. For
3411 # instance it was reported that on HP-UX the gcc test will end up
3412 # making a dummy file named `D' -- because `-MD' means `put the output
3413 # in D'.
3414 mkdir conftest.dir
3415 # Copy depcomp to subdir because otherwise we won't find it if we're
3416 # using a relative directory.
3417 cp "$am_depcomp" conftest.dir
3418 cd conftest.dir
3419 # We will build objects and dependencies in a subdirectory because
3420 # it helps to detect inapplicable dependency modes. For instance
3421 # both Tru64's cc and ICC support -MD to output dependencies as a
3422 # side effect of compilation, but ICC will put the dependencies in
3423 # the current directory while Tru64 will put them in the object
3424 # directory.
3425 mkdir sub
3426
3427 am_cv_CC_dependencies_compiler_type=none
3428 if test "$am_compiler_list" = ""; then
3429 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3430 fi
3431 for depmode in $am_compiler_list; do
3432 # Setup a source with many dependencies, because some compilers
3433 # like to wrap large dependency lists on column 80 (with \), and
3434 # we should not choose a depcomp mode which is confused by this.
3435 #
3436 # We need to recreate these files for each test, as the compiler may
3437 # overwrite some of them when testing with obscure command lines.
3438 # This happens at least with the AIX C compiler.
3439 : > sub/conftest.c
3440 for i in 1 2 3 4 5 6; do
3441 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3442 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3443 # Solaris 8's {/usr,}/bin/sh.
3444 touch sub/conftst$i.h
3445 done
3446 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3447
3448 case $depmode in
3449 nosideeffect)
3450 # after this tag, mechanisms are not by side-effect, so they'll
3451 # only be used when explicitly requested
3452 if test "x$enable_dependency_tracking" = xyes; then
3453 continue
3454 else
3455 break
3456 fi
3457 ;;
3458 none) break ;;
3459 esac
3460 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3461 # mode. It turns out that the SunPro C++ compiler does not properly
3462 # handle `-M -o', and we need to detect this.
3463 if depmode=$depmode \
3464 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3465 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3466 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3467 >/dev/null 2>conftest.err &&
64ff59ba 3468 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3469 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3470 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3471 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3472 # icc doesn't choke on unknown options, it will just issue warnings
3473 # or remarks (even with -Werror). So we grep stderr for any message
3474 # that says an option was ignored or not supported.
3475 # When given -MP, icc 7.0 and 7.1 complain thusly:
3476 # icc: Command line warning: ignoring option '-M'; no argument required
3477 # The diagnosis changed in icc 8.0:
3478 # icc: Command line remark: option '-MP' not supported
3479 if (grep 'ignoring option' conftest.err ||
3480 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3481 am_cv_CC_dependencies_compiler_type=$depmode
3482 break
3483 fi
3484 fi
3485 done
3486
3487 cd ..
3488 rm -rf conftest.dir
3489else
3490 am_cv_CC_dependencies_compiler_type=none
3491fi
3492
3493fi
64ff59ba 3494{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3495echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 3496CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3497
64ff59ba 3498 if
d9898ee8 3499 test "x$enable_dependency_tracking" != xno \
3500 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3501 am__fastdepCC_TRUE=
3502 am__fastdepCC_FALSE='#'
3503else
3504 am__fastdepCC_TRUE='#'
3505 am__fastdepCC_FALSE=
3506fi
3507
3508
3509
3510ac_ext=c
3511ac_cpp='$CPP $CPPFLAGS'
3512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3514ac_compiler_gnu=$ac_cv_c_compiler_gnu
64ff59ba 3515{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3516echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
d9898ee8 3517# On Suns, sometimes $CPP names a directory.
3518if test -n "$CPP" && test -d "$CPP"; then
3519 CPP=
3520fi
3521if test -z "$CPP"; then
3522 if test "${ac_cv_prog_CPP+set}" = set; then
3523 echo $ECHO_N "(cached) $ECHO_C" >&6
3524else
3525 # Double quotes because CPP needs to be expanded
3526 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3527 do
3528 ac_preproc_ok=false
3529for ac_c_preproc_warn_flag in '' yes
3530do
3531 # Use a header file that comes with gcc, so configuring glibc
3532 # with a fresh cross-compiler works.
3533 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3534 # <limits.h> exists even on freestanding compilers.
3535 # On the NeXT, cc -E runs the code through the compiler's parser,
3536 # not just through cpp. "Syntax error" is here to catch this case.
3537 cat >conftest.$ac_ext <<_ACEOF
3538/* confdefs.h. */
3539_ACEOF
3540cat confdefs.h >>conftest.$ac_ext
3541cat >>conftest.$ac_ext <<_ACEOF
3542/* end confdefs.h. */
3543#ifdef __STDC__
3544# include <limits.h>
3545#else
3546# include <assert.h>
3547#endif
3548 Syntax error
3549_ACEOF
64ff59ba 3550if { (ac_try="$ac_cpp conftest.$ac_ext"
3551case "(($ac_try" in
3552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553 *) ac_try_echo=$ac_try;;
3554esac
3555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 3557 ac_status=$?
3558 grep -v '^ *+' conftest.er1 >conftest.err
3559 rm -f conftest.er1
3560 cat conftest.err >&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3562 (exit $ac_status); } >/dev/null && {
3563 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3564 test ! -s conftest.err
3565 }; then
d9898ee8 3566 :
3567else
3568 echo "$as_me: failed program was:" >&5
3569sed 's/^/| /' conftest.$ac_ext >&5
3570
3571 # Broken: fails on valid input.
3572continue
3573fi
64ff59ba 3574
d9898ee8 3575rm -f conftest.err conftest.$ac_ext
3576
64ff59ba 3577 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 3578 # can be detected and how.
3579 cat >conftest.$ac_ext <<_ACEOF
3580/* confdefs.h. */
3581_ACEOF
3582cat confdefs.h >>conftest.$ac_ext
3583cat >>conftest.$ac_ext <<_ACEOF
3584/* end confdefs.h. */
3585#include <ac_nonexistent.h>
3586_ACEOF
64ff59ba 3587if { (ac_try="$ac_cpp conftest.$ac_ext"
3588case "(($ac_try" in
3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590 *) ac_try_echo=$ac_try;;
3591esac
3592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 3594 ac_status=$?
3595 grep -v '^ *+' conftest.er1 >conftest.err
3596 rm -f conftest.er1
3597 cat conftest.err >&5
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3599 (exit $ac_status); } >/dev/null && {
3600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3601 test ! -s conftest.err
3602 }; then
d9898ee8 3603 # Broken: success on invalid input.
3604continue
3605else
3606 echo "$as_me: failed program was:" >&5
3607sed 's/^/| /' conftest.$ac_ext >&5
3608
3609 # Passes both tests.
3610ac_preproc_ok=:
3611break
3612fi
64ff59ba 3613
d9898ee8 3614rm -f conftest.err conftest.$ac_ext
3615
3616done
3617# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3618rm -f conftest.err conftest.$ac_ext
3619if $ac_preproc_ok; then
3620 break
3621fi
3622
3623 done
3624 ac_cv_prog_CPP=$CPP
3625
3626fi
3627 CPP=$ac_cv_prog_CPP
3628else
3629 ac_cv_prog_CPP=$CPP
3630fi
64ff59ba 3631{ echo "$as_me:$LINENO: result: $CPP" >&5
3632echo "${ECHO_T}$CPP" >&6; }
d9898ee8 3633ac_preproc_ok=false
3634for ac_c_preproc_warn_flag in '' yes
3635do
3636 # Use a header file that comes with gcc, so configuring glibc
3637 # with a fresh cross-compiler works.
3638 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3639 # <limits.h> exists even on freestanding compilers.
3640 # On the NeXT, cc -E runs the code through the compiler's parser,
3641 # not just through cpp. "Syntax error" is here to catch this case.
3642 cat >conftest.$ac_ext <<_ACEOF
3643/* confdefs.h. */
3644_ACEOF
3645cat confdefs.h >>conftest.$ac_ext
3646cat >>conftest.$ac_ext <<_ACEOF
3647/* end confdefs.h. */
3648#ifdef __STDC__
3649# include <limits.h>
3650#else
3651# include <assert.h>
3652#endif
3653 Syntax error
3654_ACEOF
64ff59ba 3655if { (ac_try="$ac_cpp conftest.$ac_ext"
3656case "(($ac_try" in
3657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3658 *) ac_try_echo=$ac_try;;
3659esac
3660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 3662 ac_status=$?
3663 grep -v '^ *+' conftest.er1 >conftest.err
3664 rm -f conftest.er1
3665 cat conftest.err >&5
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3667 (exit $ac_status); } >/dev/null && {
3668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3669 test ! -s conftest.err
3670 }; then
d9898ee8 3671 :
3672else
3673 echo "$as_me: failed program was:" >&5
3674sed 's/^/| /' conftest.$ac_ext >&5
3675
3676 # Broken: fails on valid input.
3677continue
3678fi
64ff59ba 3679
d9898ee8 3680rm -f conftest.err conftest.$ac_ext
3681
64ff59ba 3682 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 3683 # can be detected and how.
3684 cat >conftest.$ac_ext <<_ACEOF
3685/* confdefs.h. */
3686_ACEOF
3687cat confdefs.h >>conftest.$ac_ext
3688cat >>conftest.$ac_ext <<_ACEOF
3689/* end confdefs.h. */
3690#include <ac_nonexistent.h>
3691_ACEOF
64ff59ba 3692if { (ac_try="$ac_cpp conftest.$ac_ext"
3693case "(($ac_try" in
3694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695 *) ac_try_echo=$ac_try;;
3696esac
3697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 3699 ac_status=$?
3700 grep -v '^ *+' conftest.er1 >conftest.err
3701 rm -f conftest.er1
3702 cat conftest.err >&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3704 (exit $ac_status); } >/dev/null && {
3705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3706 test ! -s conftest.err
3707 }; then
d9898ee8 3708 # Broken: success on invalid input.
3709continue
3710else
3711 echo "$as_me: failed program was:" >&5
3712sed 's/^/| /' conftest.$ac_ext >&5
3713
3714 # Passes both tests.
3715ac_preproc_ok=:
3716break
3717fi
64ff59ba 3718
d9898ee8 3719rm -f conftest.err conftest.$ac_ext
3720
3721done
3722# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3723rm -f conftest.err conftest.$ac_ext
3724if $ac_preproc_ok; then
3725 :
3726else
3727 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3728See \`config.log' for more details." >&5
3729echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3730See \`config.log' for more details." >&2;}
3731 { (exit 1); exit 1; }; }
3732fi
3733
3734ac_ext=c
3735ac_cpp='$CPP $CPPFLAGS'
3736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3738ac_compiler_gnu=$ac_cv_c_compiler_gnu
3739
3740
64ff59ba 3741{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3742echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3743if test "${ac_cv_path_GREP+set}" = set; then
3744 echo $ECHO_N "(cached) $ECHO_C" >&6
3745else
3746 # Extract the first word of "grep ggrep" to use in msg output
3747if test -z "$GREP"; then
3748set dummy grep ggrep; ac_prog_name=$2
3749if test "${ac_cv_path_GREP+set}" = set; then
3750 echo $ECHO_N "(cached) $ECHO_C" >&6
3751else
3752 ac_path_GREP_found=false
3753# Loop through the user's path and test for each of PROGNAME-LIST
3754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3756do
3757 IFS=$as_save_IFS
3758 test -z "$as_dir" && as_dir=.
3759 for ac_prog in grep ggrep; do
3760 for ac_exec_ext in '' $ac_executable_extensions; do
3761 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3762 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3763 # Check for GNU ac_path_GREP and select it if it is found.
3764 # Check for GNU $ac_path_GREP
3765case `"$ac_path_GREP" --version 2>&1` in
3766*GNU*)
3767 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3768*)
3769 ac_count=0
3770 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3771 while :
3772 do
3773 cat "conftest.in" "conftest.in" >"conftest.tmp"
3774 mv "conftest.tmp" "conftest.in"
3775 cp "conftest.in" "conftest.nl"
3776 echo 'GREP' >> "conftest.nl"
3777 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3778 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3779 ac_count=`expr $ac_count + 1`
3780 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3781 # Best one so far, save it but keep looking for a better one
3782 ac_cv_path_GREP="$ac_path_GREP"
3783 ac_path_GREP_max=$ac_count
3784 fi
3785 # 10*(2^10) chars as input seems more than enough
3786 test $ac_count -gt 10 && break
3787 done
3788 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3789esac
3790
3791
3792 $ac_path_GREP_found && break 3
3793 done
3794done
3795
3796done
3797IFS=$as_save_IFS
3798
3799
3800fi
3801
3802GREP="$ac_cv_path_GREP"
3803if test -z "$GREP"; then
3804 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3805echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3806 { (exit 1); exit 1; }; }
3807fi
3808
3809else
3810 ac_cv_path_GREP=$GREP
3811fi
3812
3813
3814fi
3815{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3816echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3817 GREP="$ac_cv_path_GREP"
3818
3819
3820{ echo "$as_me:$LINENO: checking for egrep" >&5
3821echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3822if test "${ac_cv_path_EGREP+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3824else
3825 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3826 then ac_cv_path_EGREP="$GREP -E"
3827 else
3828 # Extract the first word of "egrep" to use in msg output
3829if test -z "$EGREP"; then
3830set dummy egrep; ac_prog_name=$2
3831if test "${ac_cv_path_EGREP+set}" = set; then
d9898ee8 3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3833else
64ff59ba 3834 ac_path_EGREP_found=false
3835# Loop through the user's path and test for each of PROGNAME-LIST
3836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3838do
3839 IFS=$as_save_IFS
3840 test -z "$as_dir" && as_dir=.
3841 for ac_prog in egrep; do
3842 for ac_exec_ext in '' $ac_executable_extensions; do
3843 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3844 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3845 # Check for GNU ac_path_EGREP and select it if it is found.
3846 # Check for GNU $ac_path_EGREP
3847case `"$ac_path_EGREP" --version 2>&1` in
3848*GNU*)
3849 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3850*)
3851 ac_count=0
3852 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3853 while :
3854 do
3855 cat "conftest.in" "conftest.in" >"conftest.tmp"
3856 mv "conftest.tmp" "conftest.in"
3857 cp "conftest.in" "conftest.nl"
3858 echo 'EGREP' >> "conftest.nl"
3859 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3860 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3861 ac_count=`expr $ac_count + 1`
3862 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3863 # Best one so far, save it but keep looking for a better one
3864 ac_cv_path_EGREP="$ac_path_EGREP"
3865 ac_path_EGREP_max=$ac_count
d9898ee8 3866 fi
64ff59ba 3867 # 10*(2^10) chars as input seems more than enough
3868 test $ac_count -gt 10 && break
3869 done
3870 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3871esac
3872
3873
3874 $ac_path_EGREP_found && break 3
3875 done
3876done
3877
3878done
3879IFS=$as_save_IFS
3880
3881
d9898ee8 3882fi
64ff59ba 3883
3884EGREP="$ac_cv_path_EGREP"
3885if test -z "$EGREP"; then
3886 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3887echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3888 { (exit 1); exit 1; }; }
3889fi
3890
3891else
3892 ac_cv_path_EGREP=$EGREP
3893fi
3894
3895
3896 fi
3897fi
3898{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3899echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3900 EGREP="$ac_cv_path_EGREP"
d9898ee8 3901
3902
3903
64ff59ba 3904{ echo "$as_me:$LINENO: checking for AIX" >&5
3905echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
d9898ee8 3906cat >conftest.$ac_ext <<_ACEOF
3907/* confdefs.h. */
3908_ACEOF
3909cat confdefs.h >>conftest.$ac_ext
3910cat >>conftest.$ac_ext <<_ACEOF
3911/* end confdefs.h. */
3912#ifdef _AIX
3913 yes
3914#endif
3915
3916_ACEOF
3917if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3918 $EGREP "yes" >/dev/null 2>&1; then
64ff59ba 3919 { echo "$as_me:$LINENO: result: yes" >&5
3920echo "${ECHO_T}yes" >&6; }
d9898ee8 3921cat >>confdefs.h <<\_ACEOF
3922#define _ALL_SOURCE 1
3923_ACEOF
3924
3925else
64ff59ba 3926 { echo "$as_me:$LINENO: result: no" >&5
3927echo "${ECHO_T}no" >&6; }
d9898ee8 3928fi
3929rm -f conftest*
3930
3931
64ff59ba 3932{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
3933echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3934if test "${ac_cv_search_strerror+set}" = set; then
d9898ee8 3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3936else
64ff59ba 3937 ac_func_search_save_LIBS=$LIBS
d9898ee8 3938cat >conftest.$ac_ext <<_ACEOF
3939/* confdefs.h. */
3940_ACEOF
3941cat confdefs.h >>conftest.$ac_ext
3942cat >>conftest.$ac_ext <<_ACEOF
3943/* end confdefs.h. */
3944
64ff59ba 3945/* Override any GCC internal prototype to avoid an error.
3946 Use char because int might match the return type of a GCC
3947 builtin and then its argument prototype would still apply. */
d9898ee8 3948#ifdef __cplusplus
3949extern "C"
3950#endif
d9898ee8 3951char strerror ();
3952int
3953main ()
3954{
64ff59ba 3955return strerror ();
d9898ee8 3956 ;
3957 return 0;
3958}
3959_ACEOF
64ff59ba 3960for ac_lib in '' cposix; do
3961 if test -z "$ac_lib"; then
3962 ac_res="none required"
3963 else
3964 ac_res=-l$ac_lib
3965 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3966 fi
3967 rm -f conftest.$ac_objext conftest$ac_exeext
3968if { (ac_try="$ac_link"
3969case "(($ac_try" in
3970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3971 *) ac_try_echo=$ac_try;;
3972esac
3973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3974 (eval "$ac_link") 2>conftest.er1
d9898ee8 3975 ac_status=$?
3976 grep -v '^ *+' conftest.er1 >conftest.err
3977 rm -f conftest.er1
3978 cat conftest.err >&5
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3980 (exit $ac_status); } && {
3981 test -z "$ac_c_werror_flag" ||
3982 test ! -s conftest.err
3983 } && test -s conftest$ac_exeext &&
3984 $as_test_x conftest$ac_exeext; then
3985 ac_cv_search_strerror=$ac_res
d9898ee8 3986else
3987 echo "$as_me: failed program was:" >&5
3988sed 's/^/| /' conftest.$ac_ext >&5
3989
64ff59ba 3990
d9898ee8 3991fi
64ff59ba 3992
3993rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3994 conftest$ac_exeext
3995 if test "${ac_cv_search_strerror+set}" = set; then
3996 break
d9898ee8 3997fi
64ff59ba 3998done
3999if test "${ac_cv_search_strerror+set}" = set; then
4000 :
4001else
4002 ac_cv_search_strerror=no
d9898ee8 4003fi
64ff59ba 4004rm conftest.$ac_ext
4005LIBS=$ac_func_search_save_LIBS
4006fi
4007{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4008echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4009ac_res=$ac_cv_search_strerror
4010if test "$ac_res" != no; then
4011 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d9898ee8 4012
64ff59ba 4013fi
d9898ee8 4014
64ff59ba 4015{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4016echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
d9898ee8 4017if test "${ac_cv_header_stdc+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4019else
4020 cat >conftest.$ac_ext <<_ACEOF
4021/* confdefs.h. */
4022_ACEOF
4023cat confdefs.h >>conftest.$ac_ext
4024cat >>conftest.$ac_ext <<_ACEOF
4025/* end confdefs.h. */
4026#include <stdlib.h>
4027#include <stdarg.h>
4028#include <string.h>
4029#include <float.h>
4030
4031int
4032main ()
4033{
4034
4035 ;
4036 return 0;
4037}
4038_ACEOF
4039rm -f conftest.$ac_objext
64ff59ba 4040if { (ac_try="$ac_compile"
4041case "(($ac_try" in
4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4044esac
4045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4046 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4047 ac_status=$?
4048 grep -v '^ *+' conftest.er1 >conftest.err
4049 rm -f conftest.er1
4050 cat conftest.err >&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4052 (exit $ac_status); } && {
4053 test -z "$ac_c_werror_flag" ||
4054 test ! -s conftest.err
4055 } && test -s conftest.$ac_objext; then
d9898ee8 4056 ac_cv_header_stdc=yes
4057else
4058 echo "$as_me: failed program was:" >&5
4059sed 's/^/| /' conftest.$ac_ext >&5
4060
64ff59ba 4061 ac_cv_header_stdc=no
d9898ee8 4062fi
64ff59ba 4063
4064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 4065
4066if test $ac_cv_header_stdc = yes; then
4067 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4068 cat >conftest.$ac_ext <<_ACEOF
4069/* confdefs.h. */
4070_ACEOF
4071cat confdefs.h >>conftest.$ac_ext
4072cat >>conftest.$ac_ext <<_ACEOF
4073/* end confdefs.h. */
4074#include <string.h>
4075
4076_ACEOF
4077if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4078 $EGREP "memchr" >/dev/null 2>&1; then
4079 :
4080else
4081 ac_cv_header_stdc=no
4082fi
4083rm -f conftest*
4084
4085fi
4086
4087if test $ac_cv_header_stdc = yes; then
4088 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4089 cat >conftest.$ac_ext <<_ACEOF
4090/* confdefs.h. */
4091_ACEOF
4092cat confdefs.h >>conftest.$ac_ext
4093cat >>conftest.$ac_ext <<_ACEOF
4094/* end confdefs.h. */
4095#include <stdlib.h>
4096
4097_ACEOF
4098if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4099 $EGREP "free" >/dev/null 2>&1; then
4100 :
4101else
4102 ac_cv_header_stdc=no
4103fi
4104rm -f conftest*
4105
4106fi
4107
4108if test $ac_cv_header_stdc = yes; then
4109 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4110 if test "$cross_compiling" = yes; then
4111 :
4112else
4113 cat >conftest.$ac_ext <<_ACEOF
4114/* confdefs.h. */
4115_ACEOF
4116cat confdefs.h >>conftest.$ac_ext
4117cat >>conftest.$ac_ext <<_ACEOF
4118/* end confdefs.h. */
4119#include <ctype.h>
64ff59ba 4120#include <stdlib.h>
d9898ee8 4121#if ((' ' & 0x0FF) == 0x020)
4122# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4123# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4124#else
4125# define ISLOWER(c) \
4126 (('a' <= (c) && (c) <= 'i') \
4127 || ('j' <= (c) && (c) <= 'r') \
4128 || ('s' <= (c) && (c) <= 'z'))
4129# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4130#endif
4131
4132#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4133int
4134main ()
4135{
4136 int i;
4137 for (i = 0; i < 256; i++)
4138 if (XOR (islower (i), ISLOWER (i))
4139 || toupper (i) != TOUPPER (i))
64ff59ba 4140 return 2;
4141 return 0;
d9898ee8 4142}
4143_ACEOF
4144rm -f conftest$ac_exeext
64ff59ba 4145if { (ac_try="$ac_link"
4146case "(($ac_try" in
4147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148 *) ac_try_echo=$ac_try;;
4149esac
4150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151 (eval "$ac_link") 2>&5
d9898ee8 4152 ac_status=$?
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
64ff59ba 4155 { (case "(($ac_try" in
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4158esac
4159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160 (eval "$ac_try") 2>&5
d9898ee8 4161 ac_status=$?
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); }; }; then
4164 :
4165else
4166 echo "$as_me: program exited with status $ac_status" >&5
4167echo "$as_me: failed program was:" >&5
4168sed 's/^/| /' conftest.$ac_ext >&5
4169
4170( exit $ac_status )
4171ac_cv_header_stdc=no
4172fi
64ff59ba 4173rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 4174fi
64ff59ba 4175
4176
d9898ee8 4177fi
4178fi
64ff59ba 4179{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4180echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
d9898ee8 4181if test $ac_cv_header_stdc = yes; then
4182
4183cat >>confdefs.h <<\_ACEOF
4184#define STDC_HEADERS 1
4185_ACEOF
4186
4187fi
4188
4189# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4200 inttypes.h stdint.h unistd.h
4201do
4202as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 4203{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4204echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4205if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4207else
4208 cat >conftest.$ac_ext <<_ACEOF
4209/* confdefs.h. */
4210_ACEOF
4211cat confdefs.h >>conftest.$ac_ext
4212cat >>conftest.$ac_ext <<_ACEOF
4213/* end confdefs.h. */
4214$ac_includes_default
4215
4216#include <$ac_header>
4217_ACEOF
4218rm -f conftest.$ac_objext
64ff59ba 4219if { (ac_try="$ac_compile"
4220case "(($ac_try" in
4221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222 *) ac_try_echo=$ac_try;;
4223esac
4224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4225 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4226 ac_status=$?
4227 grep -v '^ *+' conftest.er1 >conftest.err
4228 rm -f conftest.er1
4229 cat conftest.err >&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4231 (exit $ac_status); } && {
4232 test -z "$ac_c_werror_flag" ||
4233 test ! -s conftest.err
4234 } && test -s conftest.$ac_objext; then
d9898ee8 4235 eval "$as_ac_Header=yes"
4236else
4237 echo "$as_me: failed program was:" >&5
4238sed 's/^/| /' conftest.$ac_ext >&5
4239
64ff59ba 4240 eval "$as_ac_Header=no"
d9898ee8 4241fi
64ff59ba 4242
4243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 4244fi
64ff59ba 4245ac_res=`eval echo '${'$as_ac_Header'}'`
4246 { echo "$as_me:$LINENO: result: $ac_res" >&5
4247echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 4248if test `eval echo '${'$as_ac_Header'}'` = yes; then
4249 cat >>confdefs.h <<_ACEOF
4250#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4251_ACEOF
4252
4253fi
4254
4255done
4256
4257
4258if test "${ac_cv_header_minix_config_h+set}" = set; then
64ff59ba 4259 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4260echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
d9898ee8 4261if test "${ac_cv_header_minix_config_h+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4263fi
64ff59ba 4264{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4265echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
d9898ee8 4266else
4267 # Is the header compilable?
64ff59ba 4268{ echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4269echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
d9898ee8 4270cat >conftest.$ac_ext <<_ACEOF
4271/* confdefs.h. */
4272_ACEOF
4273cat confdefs.h >>conftest.$ac_ext
4274cat >>conftest.$ac_ext <<_ACEOF
4275/* end confdefs.h. */
4276$ac_includes_default
4277#include <minix/config.h>
4278_ACEOF
4279rm -f conftest.$ac_objext
64ff59ba 4280if { (ac_try="$ac_compile"
4281case "(($ac_try" in
4282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4284esac
4285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4286 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4287 ac_status=$?
4288 grep -v '^ *+' conftest.er1 >conftest.err
4289 rm -f conftest.er1
4290 cat conftest.err >&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4292 (exit $ac_status); } && {
4293 test -z "$ac_c_werror_flag" ||
4294 test ! -s conftest.err
4295 } && test -s conftest.$ac_objext; then
d9898ee8 4296 ac_header_compiler=yes
4297else
4298 echo "$as_me: failed program was:" >&5
4299sed 's/^/| /' conftest.$ac_ext >&5
4300
64ff59ba 4301 ac_header_compiler=no
d9898ee8 4302fi
64ff59ba 4303
4304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4306echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 4307
4308# Is the header present?
64ff59ba 4309{ echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4310echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
d9898ee8 4311cat >conftest.$ac_ext <<_ACEOF
4312/* confdefs.h. */
4313_ACEOF
4314cat confdefs.h >>conftest.$ac_ext
4315cat >>conftest.$ac_ext <<_ACEOF
4316/* end confdefs.h. */
4317#include <minix/config.h>
4318_ACEOF
64ff59ba 4319if { (ac_try="$ac_cpp conftest.$ac_ext"
4320case "(($ac_try" in
4321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4323esac
4324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4326 ac_status=$?
4327 grep -v '^ *+' conftest.er1 >conftest.err
4328 rm -f conftest.er1
4329 cat conftest.err >&5
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4331 (exit $ac_status); } >/dev/null && {
4332 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4333 test ! -s conftest.err
4334 }; then
d9898ee8 4335 ac_header_preproc=yes
4336else
4337 echo "$as_me: failed program was:" >&5
4338sed 's/^/| /' conftest.$ac_ext >&5
4339
4340 ac_header_preproc=no
4341fi
64ff59ba 4342
d9898ee8 4343rm -f conftest.err conftest.$ac_ext
64ff59ba 4344{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4345echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 4346
4347# So? What about this header?
4348case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4349 yes:no: )
4350 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4351echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4352 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4353echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4354 ac_header_preproc=yes
4355 ;;
4356 no:yes:* )
4357 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4358echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4359 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4360echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4361 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4362echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4363 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4364echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4365 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4366echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4367 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4368echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
64ff59ba 4369 ( cat <<\_ASBOX
d9898ee8 4370## -------------------------------------------------- ##
4371## Report this to courier-users@lists.sourceforge.net ##
4372## -------------------------------------------------- ##
4373_ASBOX
64ff59ba 4374 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 4375 ;;
4376esac
64ff59ba 4377{ echo "$as_me:$LINENO: checking for minix/config.h" >&5
4378echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
d9898ee8 4379if test "${ac_cv_header_minix_config_h+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4381else
4382 ac_cv_header_minix_config_h=$ac_header_preproc
4383fi
64ff59ba 4384{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4385echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
d9898ee8 4386
4387fi
4388if test $ac_cv_header_minix_config_h = yes; then
4389 MINIX=yes
4390else
4391 MINIX=
4392fi
4393
4394
4395if test "$MINIX" = yes; then
4396
4397cat >>confdefs.h <<\_ACEOF
4398#define _POSIX_SOURCE 1
4399_ACEOF
4400
4401
4402cat >>confdefs.h <<\_ACEOF
4403#define _POSIX_1_SOURCE 2
4404_ACEOF
4405
4406
4407cat >>confdefs.h <<\_ACEOF
4408#define _MINIX 1
4409_ACEOF
4410
4411fi
4412
4413# Find a good install program. We prefer a C program (faster),
4414# so one script is as good as another. But avoid the broken or
4415# incompatible versions:
4416# SysV /etc/install, /usr/sbin/install
4417# SunOS /usr/etc/install
4418# IRIX /sbin/install
4419# AIX /bin/install
4420# AmigaOS /C/install, which installs bootblocks on floppy discs
4421# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4422# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4423# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4424# OS/2's system install, which has a completely different semantic
4425# ./install, which can be erroneously created by make from ./install.sh.
64ff59ba 4426{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4427echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
d9898ee8 4428if test -z "$INSTALL"; then
4429if test "${ac_cv_path_install+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4431else
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433for as_dir in $PATH
4434do
4435 IFS=$as_save_IFS
4436 test -z "$as_dir" && as_dir=.
4437 # Account for people who put trailing slashes in PATH elements.
4438case $as_dir/ in
4439 ./ | .// | /cC/* | \
4440 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4441 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4442 /usr/ucb/* ) ;;
4443 *)
4444 # OSF1 and SCO ODT 3.0 have their own names for install.
4445 # Don't use installbsd from OSF since it installs stuff as root
4446 # by default.
4447 for ac_prog in ginstall scoinst install; do
4448 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 4449 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 4450 if test $ac_prog = install &&
4451 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4452 # AIX install. It has an incompatible calling convention.
4453 :
4454 elif test $ac_prog = install &&
4455 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4456 # program-specific install script used by HP pwplus--don't use.
4457 :
4458 else
4459 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4460 break 3
4461 fi
4462 fi
4463 done
4464 done
4465 ;;
4466esac
4467done
64ff59ba 4468IFS=$as_save_IFS
d9898ee8 4469
4470
4471fi
4472 if test "${ac_cv_path_install+set}" = set; then
4473 INSTALL=$ac_cv_path_install
4474 else
64ff59ba 4475 # As a last resort, use the slow shell script. Don't cache a
4476 # value for INSTALL within a source directory, because that will
d9898ee8 4477 # break other packages using the cache if that directory is
64ff59ba 4478 # removed, or if the value is a relative name.
d9898ee8 4479 INSTALL=$ac_install_sh
4480 fi
4481fi
64ff59ba 4482{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4483echo "${ECHO_T}$INSTALL" >&6; }
d9898ee8 4484
4485# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4486# It thinks the first close brace ends the variable substitution.
4487test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4488
4489test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4490
4491test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4492
64ff59ba 4493{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4494echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
d9898ee8 4495LN_S=$as_ln_s
4496if test "$LN_S" = "ln -s"; then
64ff59ba 4497 { echo "$as_me:$LINENO: result: yes" >&5
4498echo "${ECHO_T}yes" >&6; }
d9898ee8 4499else
64ff59ba 4500 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4501echo "${ECHO_T}no, using $LN_S" >&6; }
d9898ee8 4502fi
4503
4504ac_ext=c
4505ac_cpp='$CPP $CPPFLAGS'
4506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4508ac_compiler_gnu=$ac_cv_c_compiler_gnu
4509if test -n "$ac_tool_prefix"; then
4510 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4511set dummy ${ac_tool_prefix}gcc; ac_word=$2
64ff59ba 4512{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 4514if test "${ac_cv_prog_CC+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4516else
4517 if test -n "$CC"; then
4518 ac_cv_prog_CC="$CC" # Let the user override the test.
4519else
4520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521for as_dir in $PATH
4522do
4523 IFS=$as_save_IFS
4524 test -z "$as_dir" && as_dir=.
4525 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 4526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 4527 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 break 2
4530 fi
4531done
4532done
64ff59ba 4533IFS=$as_save_IFS
d9898ee8 4534
4535fi
4536fi
4537CC=$ac_cv_prog_CC
4538if test -n "$CC"; then
64ff59ba 4539 { echo "$as_me:$LINENO: result: $CC" >&5
4540echo "${ECHO_T}$CC" >&6; }
d9898ee8 4541else
64ff59ba 4542 { echo "$as_me:$LINENO: result: no" >&5
4543echo "${ECHO_T}no" >&6; }
d9898ee8 4544fi
4545
64ff59ba 4546
d9898ee8 4547fi
4548if test -z "$ac_cv_prog_CC"; then
4549 ac_ct_CC=$CC
4550 # Extract the first word of "gcc", so it can be a program name with args.
4551set dummy gcc; ac_word=$2
64ff59ba 4552{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 4554if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4556else
4557 if test -n "$ac_ct_CC"; then
4558 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4559else
4560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561for as_dir in $PATH
4562do
4563 IFS=$as_save_IFS
4564 test -z "$as_dir" && as_dir=.
4565 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 4566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 4567 ac_cv_prog_ac_ct_CC="gcc"
4568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4569 break 2
4570 fi
4571done
4572done
64ff59ba 4573IFS=$as_save_IFS
d9898ee8 4574
4575fi
4576fi
4577ac_ct_CC=$ac_cv_prog_ac_ct_CC
4578if test -n "$ac_ct_CC"; then
64ff59ba 4579 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4580echo "${ECHO_T}$ac_ct_CC" >&6; }
d9898ee8 4581else
64ff59ba 4582 { echo "$as_me:$LINENO: result: no" >&5
4583echo "${ECHO_T}no" >&6; }
d9898ee8 4584fi
4585
64ff59ba 4586 if test "x$ac_ct_CC" = x; then
4587 CC=""
4588 else
4589 case $cross_compiling:$ac_tool_warned in
4590yes:)
4591{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4592whose name does not start with the host triplet. If you think this
4593configuration is useful to you, please write to autoconf@gnu.org." >&5
4594echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4595whose name does not start with the host triplet. If you think this
4596configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4597ac_tool_warned=yes ;;
4598esac
4599 CC=$ac_ct_CC
4600 fi
d9898ee8 4601else
4602 CC="$ac_cv_prog_CC"
4603fi
4604
4605if test -z "$CC"; then
64ff59ba 4606 if test -n "$ac_tool_prefix"; then
4607 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 4608set dummy ${ac_tool_prefix}cc; ac_word=$2
64ff59ba 4609{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 4611if test "${ac_cv_prog_CC+set}" = set; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4613else
4614 if test -n "$CC"; then
4615 ac_cv_prog_CC="$CC" # Let the user override the test.
4616else
4617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618for as_dir in $PATH
4619do
4620 IFS=$as_save_IFS
4621 test -z "$as_dir" && as_dir=.
4622 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 4623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 4624 ac_cv_prog_CC="${ac_tool_prefix}cc"
4625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 break 2
4627 fi
4628done
4629done
64ff59ba 4630IFS=$as_save_IFS
d9898ee8 4631
4632fi
4633fi
4634CC=$ac_cv_prog_CC
4635if test -n "$CC"; then
64ff59ba 4636 { echo "$as_me:$LINENO: result: $CC" >&5
4637echo "${ECHO_T}$CC" >&6; }
d9898ee8 4638else
64ff59ba 4639 { echo "$as_me:$LINENO: result: no" >&5
4640echo "${ECHO_T}no" >&6; }
d9898ee8 4641fi
4642
d9898ee8 4643
64ff59ba 4644 fi
d9898ee8 4645fi
4646if test -z "$CC"; then
4647 # Extract the first word of "cc", so it can be a program name with args.
4648set dummy cc; ac_word=$2
64ff59ba 4649{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 4651if test "${ac_cv_prog_CC+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4653else
4654 if test -n "$CC"; then
4655 ac_cv_prog_CC="$CC" # Let the user override the test.
4656else
4657 ac_prog_rejected=no
4658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659for as_dir in $PATH
4660do
4661 IFS=$as_save_IFS
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 4664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 4665 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4666 ac_prog_rejected=yes
4667 continue
4668 fi
4669 ac_cv_prog_CC="cc"
4670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 break 2
4672 fi
4673done
4674done
64ff59ba 4675IFS=$as_save_IFS
d9898ee8 4676
4677if test $ac_prog_rejected = yes; then
4678 # We found a bogon in the path, so make sure we never use it.
4679 set dummy $ac_cv_prog_CC
4680 shift
4681 if test $# != 0; then
4682 # We chose a different compiler from the bogus one.
4683 # However, it has the same basename, so the bogon will be chosen
4684 # first if we set CC to just the basename; use the full file name.
4685 shift
4686 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4687 fi
4688fi
4689fi
4690fi
4691CC=$ac_cv_prog_CC
4692if test -n "$CC"; then
64ff59ba 4693 { echo "$as_me:$LINENO: result: $CC" >&5
4694echo "${ECHO_T}$CC" >&6; }
d9898ee8 4695else
64ff59ba 4696 { echo "$as_me:$LINENO: result: no" >&5
4697echo "${ECHO_T}no" >&6; }
d9898ee8 4698fi
4699
64ff59ba 4700
d9898ee8 4701fi
4702if test -z "$CC"; then
4703 if test -n "$ac_tool_prefix"; then
64ff59ba 4704 for ac_prog in cl.exe
d9898ee8 4705 do
4706 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4707set dummy $ac_tool_prefix$ac_prog; ac_word=$2
64ff59ba 4708{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 4710if test "${ac_cv_prog_CC+set}" = set; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4712else
4713 if test -n "$CC"; then
4714 ac_cv_prog_CC="$CC" # Let the user override the test.
4715else
4716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717for as_dir in $PATH
4718do
4719 IFS=$as_save_IFS
4720 test -z "$as_dir" && as_dir=.
4721 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 4722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 4723 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4725 break 2
4726 fi
4727done
4728done
64ff59ba 4729IFS=$as_save_IFS
d9898ee8 4730
4731fi
4732fi
4733CC=$ac_cv_prog_CC
4734if test -n "$CC"; then
64ff59ba 4735 { echo "$as_me:$LINENO: result: $CC" >&5
4736echo "${ECHO_T}$CC" >&6; }
d9898ee8 4737else
64ff59ba 4738 { echo "$as_me:$LINENO: result: no" >&5
4739echo "${ECHO_T}no" >&6; }
d9898ee8 4740fi
4741
64ff59ba 4742
d9898ee8 4743 test -n "$CC" && break
4744 done
4745fi
4746if test -z "$CC"; then
4747 ac_ct_CC=$CC
64ff59ba 4748 for ac_prog in cl.exe
d9898ee8 4749do
4750 # Extract the first word of "$ac_prog", so it can be a program name with args.
4751set dummy $ac_prog; ac_word=$2
64ff59ba 4752{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 4754if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4755 echo $ECHO_N "(cached) $ECHO_C" >&6
4756else
4757 if test -n "$ac_ct_CC"; then
4758 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4759else
4760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761for as_dir in $PATH
4762do
4763 IFS=$as_save_IFS
4764 test -z "$as_dir" && as_dir=.
4765 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 4766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 4767 ac_cv_prog_ac_ct_CC="$ac_prog"
4768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4769 break 2
4770 fi
4771done
4772done
64ff59ba 4773IFS=$as_save_IFS
d9898ee8 4774
4775fi
4776fi
4777ac_ct_CC=$ac_cv_prog_ac_ct_CC
4778if test -n "$ac_ct_CC"; then
64ff59ba 4779 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4780echo "${ECHO_T}$ac_ct_CC" >&6; }
d9898ee8 4781else
64ff59ba 4782 { echo "$as_me:$LINENO: result: no" >&5
4783echo "${ECHO_T}no" >&6; }
d9898ee8 4784fi
4785
64ff59ba 4786
d9898ee8 4787 test -n "$ac_ct_CC" && break
4788done
4789
64ff59ba 4790 if test "x$ac_ct_CC" = x; then
4791 CC=""
4792 else
4793 case $cross_compiling:$ac_tool_warned in
4794yes:)
4795{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4796whose name does not start with the host triplet. If you think this
4797configuration is useful to you, please write to autoconf@gnu.org." >&5
4798echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4799whose name does not start with the host triplet. If you think this
4800configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4801ac_tool_warned=yes ;;
4802esac
4803 CC=$ac_ct_CC
4804 fi
d9898ee8 4805fi
4806
4807fi
4808
4809
4810test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4811See \`config.log' for more details." >&5
4812echo "$as_me: error: no acceptable C compiler found in \$PATH
4813See \`config.log' for more details." >&2;}
4814 { (exit 1); exit 1; }; }
4815
4816# Provide some information about the compiler.
64ff59ba 4817echo "$as_me:$LINENO: checking for C compiler version" >&5
d9898ee8 4818ac_compiler=`set X $ac_compile; echo $2`
64ff59ba 4819{ (ac_try="$ac_compiler --version >&5"
4820case "(($ac_try" in
4821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4822 *) ac_try_echo=$ac_try;;
4823esac
4824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4825 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 4826 ac_status=$?
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }
64ff59ba 4829{ (ac_try="$ac_compiler -v >&5"
4830case "(($ac_try" in
4831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4832 *) ac_try_echo=$ac_try;;
4833esac
4834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4835 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 4836 ac_status=$?
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); }
64ff59ba 4839{ (ac_try="$ac_compiler -V >&5"
4840case "(($ac_try" in
4841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842 *) ac_try_echo=$ac_try;;
4843esac
4844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4845 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 4846 ac_status=$?
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }
4849
64ff59ba 4850{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4851echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
d9898ee8 4852if test "${ac_cv_c_compiler_gnu+set}" = set; then
4853 echo $ECHO_N "(cached) $ECHO_C" >&6
4854else
4855 cat >conftest.$ac_ext <<_ACEOF
4856/* confdefs.h. */
4857_ACEOF
4858cat confdefs.h >>conftest.$ac_ext
4859cat >>conftest.$ac_ext <<_ACEOF
4860/* end confdefs.h. */
4861
4862int
4863main ()
4864{
4865#ifndef __GNUC__
4866 choke me
4867#endif
4868
4869 ;
4870 return 0;
4871}
4872_ACEOF
4873rm -f conftest.$ac_objext
64ff59ba 4874if { (ac_try="$ac_compile"
4875case "(($ac_try" in
4876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4877 *) ac_try_echo=$ac_try;;
4878esac
4879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4880 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4881 ac_status=$?
4882 grep -v '^ *+' conftest.er1 >conftest.err
4883 rm -f conftest.er1
4884 cat conftest.err >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4886 (exit $ac_status); } && {
4887 test -z "$ac_c_werror_flag" ||
4888 test ! -s conftest.err
4889 } && test -s conftest.$ac_objext; then
d9898ee8 4890 ac_compiler_gnu=yes
4891else
4892 echo "$as_me: failed program was:" >&5
4893sed 's/^/| /' conftest.$ac_ext >&5
4894
64ff59ba 4895 ac_compiler_gnu=no
d9898ee8 4896fi
64ff59ba 4897
4898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 4899ac_cv_c_compiler_gnu=$ac_compiler_gnu
4900
4901fi
64ff59ba 4902{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4903echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
d9898ee8 4904GCC=`test $ac_compiler_gnu = yes && echo yes`
4905ac_test_CFLAGS=${CFLAGS+set}
4906ac_save_CFLAGS=$CFLAGS
64ff59ba 4907{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4908echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
d9898ee8 4909if test "${ac_cv_prog_cc_g+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4911else
64ff59ba 4912 ac_save_c_werror_flag=$ac_c_werror_flag
4913 ac_c_werror_flag=yes
4914 ac_cv_prog_cc_g=no
4915 CFLAGS="-g"
4916 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 4917/* confdefs.h. */
4918_ACEOF
4919cat confdefs.h >>conftest.$ac_ext
4920cat >>conftest.$ac_ext <<_ACEOF
4921/* end confdefs.h. */
4922
4923int
4924main ()
4925{
4926
4927 ;
4928 return 0;
4929}
4930_ACEOF
4931rm -f conftest.$ac_objext
64ff59ba 4932if { (ac_try="$ac_compile"
4933case "(($ac_try" in
4934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4935 *) ac_try_echo=$ac_try;;
4936esac
4937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4938 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4939 ac_status=$?
4940 grep -v '^ *+' conftest.er1 >conftest.err
4941 rm -f conftest.er1
4942 cat conftest.err >&5
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4944 (exit $ac_status); } && {
4945 test -z "$ac_c_werror_flag" ||
4946 test ! -s conftest.err
4947 } && test -s conftest.$ac_objext; then
4948 ac_cv_prog_cc_g=yes
4949else
4950 echo "$as_me: failed program was:" >&5
4951sed 's/^/| /' conftest.$ac_ext >&5
4952
4953 CFLAGS=""
4954 cat >conftest.$ac_ext <<_ACEOF
4955/* confdefs.h. */
4956_ACEOF
4957cat confdefs.h >>conftest.$ac_ext
4958cat >>conftest.$ac_ext <<_ACEOF
4959/* end confdefs.h. */
4960
4961int
4962main ()
4963{
4964
4965 ;
4966 return 0;
4967}
4968_ACEOF
4969rm -f conftest.$ac_objext
4970if { (ac_try="$ac_compile"
4971case "(($ac_try" in
4972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4973 *) ac_try_echo=$ac_try;;
4974esac
4975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4976 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4977 ac_status=$?
64ff59ba 4978 grep -v '^ *+' conftest.er1 >conftest.err
4979 rm -f conftest.er1
4980 cat conftest.err >&5
d9898ee8 4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4982 (exit $ac_status); } && {
4983 test -z "$ac_c_werror_flag" ||
4984 test ! -s conftest.err
4985 } && test -s conftest.$ac_objext; then
4986 :
4987else
4988 echo "$as_me: failed program was:" >&5
4989sed 's/^/| /' conftest.$ac_ext >&5
4990
4991 ac_c_werror_flag=$ac_save_c_werror_flag
4992 CFLAGS="-g"
4993 cat >conftest.$ac_ext <<_ACEOF
4994/* confdefs.h. */
4995_ACEOF
4996cat confdefs.h >>conftest.$ac_ext
4997cat >>conftest.$ac_ext <<_ACEOF
4998/* end confdefs.h. */
4999
5000int
5001main ()
5002{
5003
5004 ;
5005 return 0;
5006}
5007_ACEOF
5008rm -f conftest.$ac_objext
5009if { (ac_try="$ac_compile"
5010case "(($ac_try" in
5011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5012 *) ac_try_echo=$ac_try;;
5013esac
5014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5015 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5016 ac_status=$?
64ff59ba 5017 grep -v '^ *+' conftest.er1 >conftest.err
5018 rm -f conftest.er1
5019 cat conftest.err >&5
d9898ee8 5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5021 (exit $ac_status); } && {
5022 test -z "$ac_c_werror_flag" ||
5023 test ! -s conftest.err
5024 } && test -s conftest.$ac_objext; then
d9898ee8 5025 ac_cv_prog_cc_g=yes
5026else
5027 echo "$as_me: failed program was:" >&5
5028sed 's/^/| /' conftest.$ac_ext >&5
5029
64ff59ba 5030
5031fi
5032
5033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5034fi
5035
5036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5037fi
64ff59ba 5038
5039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5040 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 5041fi
64ff59ba 5042{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5043echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
d9898ee8 5044if test "$ac_test_CFLAGS" = set; then
5045 CFLAGS=$ac_save_CFLAGS
5046elif test $ac_cv_prog_cc_g = yes; then
5047 if test "$GCC" = yes; then
5048 CFLAGS="-g -O2"
5049 else
5050 CFLAGS="-g"
5051 fi
5052else
5053 if test "$GCC" = yes; then
5054 CFLAGS="-O2"
5055 else
5056 CFLAGS=
5057 fi
5058fi
64ff59ba 5059{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5060echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5061if test "${ac_cv_prog_cc_c89+set}" = set; then
d9898ee8 5062 echo $ECHO_N "(cached) $ECHO_C" >&6
5063else
64ff59ba 5064 ac_cv_prog_cc_c89=no
d9898ee8 5065ac_save_CC=$CC
5066cat >conftest.$ac_ext <<_ACEOF
5067/* confdefs.h. */
5068_ACEOF
5069cat confdefs.h >>conftest.$ac_ext
5070cat >>conftest.$ac_ext <<_ACEOF
5071/* end confdefs.h. */
5072#include <stdarg.h>
5073#include <stdio.h>
5074#include <sys/types.h>
5075#include <sys/stat.h>
5076/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5077struct buf { int x; };
5078FILE * (*rcsopen) (struct buf *, struct stat *, int);
5079static char *e (p, i)
5080 char **p;
5081 int i;
5082{
5083 return p[i];
5084}
5085static char *f (char * (*g) (char **, int), char **p, ...)
5086{
5087 char *s;
5088 va_list v;
5089 va_start (v,p);
5090 s = g (p, va_arg (v,int));
5091 va_end (v);
5092 return s;
5093}
5094
5095/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5096 function prototypes and stuff, but not '\xHH' hex character constants.
5097 These don't provoke an error unfortunately, instead are silently treated
64ff59ba 5098 as 'x'. The following induces an error, until -std is added to get
d9898ee8 5099 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5100 array size at least. It's necessary to write '\x00'==0 to get something
64ff59ba 5101 that's true only with -std. */
d9898ee8 5102int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5103
64ff59ba 5104/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5105 inside strings and character constants. */
5106#define FOO(x) 'x'
5107int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5108
d9898ee8 5109int test (int i, double x);
5110struct s1 {int (*f) (int a);};
5111struct s2 {int (*f) (double a);};
5112int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5113int argc;
5114char **argv;
5115int
5116main ()
5117{
5118return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5119 ;
5120 return 0;
5121}
5122_ACEOF
64ff59ba 5123for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5124 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 5125do
5126 CC="$ac_save_CC $ac_arg"
5127 rm -f conftest.$ac_objext
64ff59ba 5128if { (ac_try="$ac_compile"
5129case "(($ac_try" in
5130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5131 *) ac_try_echo=$ac_try;;
5132esac
5133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5134 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5135 ac_status=$?
5136 grep -v '^ *+' conftest.er1 >conftest.err
5137 rm -f conftest.er1
5138 cat conftest.err >&5
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5140 (exit $ac_status); } && {
5141 test -z "$ac_c_werror_flag" ||
5142 test ! -s conftest.err
5143 } && test -s conftest.$ac_objext; then
5144 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 5145else
5146 echo "$as_me: failed program was:" >&5
5147sed 's/^/| /' conftest.$ac_ext >&5
5148
64ff59ba 5149
d9898ee8 5150fi
64ff59ba 5151
5152rm -f core conftest.err conftest.$ac_objext
5153 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 5154done
64ff59ba 5155rm -f conftest.$ac_ext
d9898ee8 5156CC=$ac_save_CC
5157
5158fi
64ff59ba 5159# AC_CACHE_VAL
5160case "x$ac_cv_prog_cc_c89" in
5161 x)
5162 { echo "$as_me:$LINENO: result: none needed" >&5
5163echo "${ECHO_T}none needed" >&6; } ;;
5164 xno)
5165 { echo "$as_me:$LINENO: result: unsupported" >&5
5166echo "${ECHO_T}unsupported" >&6; } ;;
d9898ee8 5167 *)
64ff59ba 5168 CC="$CC $ac_cv_prog_cc_c89"
5169 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5170echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 5171esac
5172
d9898ee8 5173
d9898ee8 5174ac_ext=c
5175ac_cpp='$CPP $CPPFLAGS'
5176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5178ac_compiler_gnu=$ac_cv_c_compiler_gnu
5179
5180depcc="$CC" am_compiler_list=
5181
64ff59ba 5182{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5183echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
d9898ee8 5184if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5186else
5187 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5188 # We make a subdir and do the tests there. Otherwise we can end up
5189 # making bogus files that we don't know about and never remove. For
5190 # instance it was reported that on HP-UX the gcc test will end up
5191 # making a dummy file named `D' -- because `-MD' means `put the output
5192 # in D'.
5193 mkdir conftest.dir
5194 # Copy depcomp to subdir because otherwise we won't find it if we're
5195 # using a relative directory.
5196 cp "$am_depcomp" conftest.dir
5197 cd conftest.dir
5198 # We will build objects and dependencies in a subdirectory because
5199 # it helps to detect inapplicable dependency modes. For instance
5200 # both Tru64's cc and ICC support -MD to output dependencies as a
5201 # side effect of compilation, but ICC will put the dependencies in
5202 # the current directory while Tru64 will put them in the object
5203 # directory.
5204 mkdir sub
5205
5206 am_cv_CC_dependencies_compiler_type=none
5207 if test "$am_compiler_list" = ""; then
5208 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5209 fi
5210 for depmode in $am_compiler_list; do
5211 # Setup a source with many dependencies, because some compilers
5212 # like to wrap large dependency lists on column 80 (with \), and
5213 # we should not choose a depcomp mode which is confused by this.
5214 #
5215 # We need to recreate these files for each test, as the compiler may
5216 # overwrite some of them when testing with obscure command lines.
5217 # This happens at least with the AIX C compiler.
5218 : > sub/conftest.c
5219 for i in 1 2 3 4 5 6; do
5220 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5221 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5222 # Solaris 8's {/usr,}/bin/sh.
5223 touch sub/conftst$i.h
5224 done
5225 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5226
5227 case $depmode in
5228 nosideeffect)
5229 # after this tag, mechanisms are not by side-effect, so they'll
5230 # only be used when explicitly requested
5231 if test "x$enable_dependency_tracking" = xyes; then
5232 continue
5233 else
5234 break
5235 fi
5236 ;;
5237 none) break ;;
5238 esac
5239 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5240 # mode. It turns out that the SunPro C++ compiler does not properly
5241 # handle `-M -o', and we need to detect this.
5242 if depmode=$depmode \
5243 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5244 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5245 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5246 >/dev/null 2>conftest.err &&
64ff59ba 5247 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 5248 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5249 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5250 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5251 # icc doesn't choke on unknown options, it will just issue warnings
5252 # or remarks (even with -Werror). So we grep stderr for any message
5253 # that says an option was ignored or not supported.
5254 # When given -MP, icc 7.0 and 7.1 complain thusly:
5255 # icc: Command line warning: ignoring option '-M'; no argument required
5256 # The diagnosis changed in icc 8.0:
5257 # icc: Command line remark: option '-MP' not supported
5258 if (grep 'ignoring option' conftest.err ||
5259 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5260 am_cv_CC_dependencies_compiler_type=$depmode
5261 break
5262 fi
5263 fi
5264 done
5265
5266 cd ..
5267 rm -rf conftest.dir
5268else
5269 am_cv_CC_dependencies_compiler_type=none
5270fi
5271
5272fi
64ff59ba 5273{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5274echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 5275CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5276
64ff59ba 5277 if
d9898ee8 5278 test "x$enable_dependency_tracking" != xno \
5279 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5280 am__fastdepCC_TRUE=
5281 am__fastdepCC_FALSE='#'
5282else
5283 am__fastdepCC_TRUE='#'
5284 am__fastdepCC_FALSE=
5285fi
5286
5287
5288for ac_prog in ps
5289do
5290 # Extract the first word of "$ac_prog", so it can be a program name with args.
5291set dummy $ac_prog; ac_word=$2
64ff59ba 5292{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5294if test "${ac_cv_path_PS+set}" = set; then
5295 echo $ECHO_N "(cached) $ECHO_C" >&6
5296else
5297 case $PS in
5298 [\\/]* | ?:[\\/]*)
5299 ac_cv_path_PS="$PS" # Let the user override the test with a path.
5300 ;;
5301 *)
5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303for as_dir in $LPATH
5304do
5305 IFS=$as_save_IFS
5306 test -z "$as_dir" && as_dir=.
5307 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 5308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5309 ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
5310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5311 break 2
5312 fi
5313done
5314done
64ff59ba 5315IFS=$as_save_IFS
d9898ee8 5316
5317 ;;
5318esac
5319fi
5320PS=$ac_cv_path_PS
d9898ee8 5321if test -n "$PS"; then
64ff59ba 5322 { echo "$as_me:$LINENO: result: $PS" >&5
5323echo "${ECHO_T}$PS" >&6; }
d9898ee8 5324else
64ff59ba 5325 { echo "$as_me:$LINENO: result: no" >&5
5326echo "${ECHO_T}no" >&6; }
d9898ee8 5327fi
5328
64ff59ba 5329
d9898ee8 5330 test -n "$PS" && break
5331done
5332test -n "$PS" || PS="ps"
5333
5334for ac_prog in w
5335do
5336 # Extract the first word of "$ac_prog", so it can be a program name with args.
5337set dummy $ac_prog; ac_word=$2
64ff59ba 5338{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5340if test "${ac_cv_path_W+set}" = set; then
5341 echo $ECHO_N "(cached) $ECHO_C" >&6
5342else
5343 case $W in
5344 [\\/]* | ?:[\\/]*)
5345 ac_cv_path_W="$W" # Let the user override the test with a path.
5346 ;;
5347 *)
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349for as_dir in $LPATH
5350do
5351 IFS=$as_save_IFS
5352 test -z "$as_dir" && as_dir=.
5353 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 5354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5355 ac_cv_path_W="$as_dir/$ac_word$ac_exec_ext"
5356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5357 break 2
5358 fi
5359done
5360done
64ff59ba 5361IFS=$as_save_IFS
d9898ee8 5362
5363 ;;
5364esac
5365fi
5366W=$ac_cv_path_W
d9898ee8 5367if test -n "$W"; then
64ff59ba 5368 { echo "$as_me:$LINENO: result: $W" >&5
5369echo "${ECHO_T}$W" >&6; }
d9898ee8 5370else
64ff59ba 5371 { echo "$as_me:$LINENO: result: no" >&5
5372echo "${ECHO_T}no" >&6; }
d9898ee8 5373fi
5374
64ff59ba 5375
d9898ee8 5376 test -n "$W" && break
5377done
5378test -n "$W" || W="w"
5379
64ff59ba 5380# Check whether --enable-shared was given.
d9898ee8 5381if test "${enable_shared+set}" = set; then
64ff59ba 5382 enableval=$enable_shared; p=${PACKAGE-default}
d9898ee8 5383 case $enableval in
5384 yes) enable_shared=yes ;;
5385 no) enable_shared=no ;;
5386 *)
5387 enable_shared=no
5388 # Look at the argument we got. We use all the common list separators.
5389 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5390 for pkg in $enableval; do
5391 IFS="$lt_save_ifs"
5392 if test "X$pkg" = "X$p"; then
5393 enable_shared=yes
5394 fi
5395 done
5396 IFS="$lt_save_ifs"
5397 ;;
5398 esac
5399else
5400 enable_shared=yes
64ff59ba 5401fi
d9898ee8 5402
64ff59ba 5403
5404# Check whether --enable-static was given.
d9898ee8 5405if test "${enable_static+set}" = set; then
64ff59ba 5406 enableval=$enable_static; p=${PACKAGE-default}
d9898ee8 5407 case $enableval in
5408 yes) enable_static=yes ;;
5409 no) enable_static=no ;;
5410 *)
5411 enable_static=no
5412 # Look at the argument we got. We use all the common list separators.
5413 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5414 for pkg in $enableval; do
5415 IFS="$lt_save_ifs"
5416 if test "X$pkg" = "X$p"; then
5417 enable_static=yes
5418 fi
5419 done
5420 IFS="$lt_save_ifs"
5421 ;;
5422 esac
5423else
5424 enable_static=yes
64ff59ba 5425fi
d9898ee8 5426
64ff59ba 5427
5428# Check whether --enable-fast-install was given.
d9898ee8 5429if test "${enable_fast_install+set}" = set; then
64ff59ba 5430 enableval=$enable_fast_install; p=${PACKAGE-default}
d9898ee8 5431 case $enableval in
5432 yes) enable_fast_install=yes ;;
5433 no) enable_fast_install=no ;;
5434 *)
5435 enable_fast_install=no
5436 # Look at the argument we got. We use all the common list separators.
5437 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5438 for pkg in $enableval; do
5439 IFS="$lt_save_ifs"
5440 if test "X$pkg" = "X$p"; then
5441 enable_fast_install=yes
5442 fi
5443 done
5444 IFS="$lt_save_ifs"
5445 ;;
5446 esac
5447else
5448 enable_fast_install=yes
64ff59ba 5449fi
5450
d9898ee8 5451
5452# Make sure we can run config.sub.
64ff59ba 5453$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5454 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5455echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
d9898ee8 5456 { (exit 1); exit 1; }; }
5457
64ff59ba 5458{ echo "$as_me:$LINENO: checking build system type" >&5
5459echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
d9898ee8 5460if test "${ac_cv_build+set}" = set; then
5461 echo $ECHO_N "(cached) $ECHO_C" >&6
5462else
64ff59ba 5463 ac_build_alias=$build_alias
5464test "x$ac_build_alias" = x &&
5465 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5466test "x$ac_build_alias" = x &&
d9898ee8 5467 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5468echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5469 { (exit 1); exit 1; }; }
64ff59ba 5470ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5471 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5472echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
d9898ee8 5473 { (exit 1); exit 1; }; }
5474
5475fi
64ff59ba 5476{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5477echo "${ECHO_T}$ac_cv_build" >&6; }
5478case $ac_cv_build in
5479*-*-*) ;;
5480*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5481echo "$as_me: error: invalid value of canonical build" >&2;}
5482 { (exit 1); exit 1; }; };;
5483esac
d9898ee8 5484build=$ac_cv_build
64ff59ba 5485ac_save_IFS=$IFS; IFS='-'
5486set x $ac_cv_build
5487shift
5488build_cpu=$1
5489build_vendor=$2
5490shift; shift
5491# Remember, the first character of IFS is used to create $*,
5492# except with old shells:
5493build_os=$*
5494IFS=$ac_save_IFS
5495case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5496
5497
5498{ echo "$as_me:$LINENO: checking host system type" >&5
5499echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
d9898ee8 5500if test "${ac_cv_host+set}" = set; then
5501 echo $ECHO_N "(cached) $ECHO_C" >&6
5502else
64ff59ba 5503 if test "x$host_alias" = x; then
5504 ac_cv_host=$ac_cv_build
5505else
5506 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5507 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5508echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
d9898ee8 5509 { (exit 1); exit 1; }; }
64ff59ba 5510fi
d9898ee8 5511
5512fi
64ff59ba 5513{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5514echo "${ECHO_T}$ac_cv_host" >&6; }
5515case $ac_cv_host in
5516*-*-*) ;;
5517*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5518echo "$as_me: error: invalid value of canonical host" >&2;}
5519 { (exit 1); exit 1; }; };;
5520esac
d9898ee8 5521host=$ac_cv_host
64ff59ba 5522ac_save_IFS=$IFS; IFS='-'
5523set x $ac_cv_host
5524shift
5525host_cpu=$1
5526host_vendor=$2
5527shift; shift
5528# Remember, the first character of IFS is used to create $*,
5529# except with old shells:
5530host_os=$*
5531IFS=$ac_save_IFS
5532case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5533
5534
5535{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5536echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
d9898ee8 5537if test "${lt_cv_path_SED+set}" = set; then
5538 echo $ECHO_N "(cached) $ECHO_C" >&6
5539else
5540 # Loop through the user's path and test for sed and gsed.
5541# Then use that list of sed's as ones to test for truncation.
5542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543for as_dir in $PATH
5544do
5545 IFS=$as_save_IFS
5546 test -z "$as_dir" && as_dir=.
5547 for lt_ac_prog in sed gsed; do
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5550 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5551 fi
5552 done
5553 done
5554done
5555IFS=$as_save_IFS
5556lt_ac_max=0
5557lt_ac_count=0
5558# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5559# along with /bin/sed that truncates output.
5560for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5561 test ! -f $lt_ac_sed && continue
5562 cat /dev/null > conftest.in
5563 lt_ac_count=0
5564 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5565 # Check for GNU sed and select it if it is found.
5566 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5567 lt_cv_path_SED=$lt_ac_sed
5568 break
5569 fi
5570 while true; do
5571 cat conftest.in conftest.in >conftest.tmp
5572 mv conftest.tmp conftest.in
5573 cp conftest.in conftest.nl
5574 echo >>conftest.nl
5575 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5576 cmp -s conftest.out conftest.nl || break
5577 # 10000 chars as input seems more than enough
5578 test $lt_ac_count -gt 10 && break
5579 lt_ac_count=`expr $lt_ac_count + 1`
5580 if test $lt_ac_count -gt $lt_ac_max; then
5581 lt_ac_max=$lt_ac_count
5582 lt_cv_path_SED=$lt_ac_sed
5583 fi
5584 done
5585done
5586
5587fi
5588
5589SED=$lt_cv_path_SED
5590
64ff59ba 5591{ echo "$as_me:$LINENO: result: $SED" >&5
5592echo "${ECHO_T}$SED" >&6; }
d9898ee8 5593
5594
64ff59ba 5595# Check whether --with-gnu-ld was given.
d9898ee8 5596if test "${with_gnu_ld+set}" = set; then
64ff59ba 5597 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 5598else
5599 with_gnu_ld=no
64ff59ba 5600fi
5601
d9898ee8 5602ac_prog=ld
5603if test "$GCC" = yes; then
5604 # Check if gcc -print-prog-name=ld gives a path.
64ff59ba 5605 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5606echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d9898ee8 5607 case $host in
5608 *-*-mingw*)
5609 # gcc leaves a trailing carriage return which upsets mingw
5610 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5611 *)
5612 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5613 esac
5614 case $ac_prog in
5615 # Accept absolute paths.
5616 [\\/]* | ?:[\\/]*)
5617 re_direlt='/[^/][^/]*/\.\./'
5618 # Canonicalize the pathname of ld
5619 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5620 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5621 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5622 done
5623 test -z "$LD" && LD="$ac_prog"
5624 ;;
5625 "")
5626 # If it fails, then pretend we aren't using GCC.
5627 ac_prog=ld
5628 ;;
5629 *)
5630 # If it is relative, then search for the first ld in PATH.
5631 with_gnu_ld=unknown
5632 ;;
5633 esac
5634elif test "$with_gnu_ld" = yes; then
64ff59ba 5635 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5636echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d9898ee8 5637else
64ff59ba 5638 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5639echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d9898ee8 5640fi
5641if test "${lt_cv_path_LD+set}" = set; then
5642 echo $ECHO_N "(cached) $ECHO_C" >&6
5643else
5644 if test -z "$LD"; then
5645 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5646 for ac_dir in $PATH; do
5647 IFS="$lt_save_ifs"
5648 test -z "$ac_dir" && ac_dir=.
5649 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5650 lt_cv_path_LD="$ac_dir/$ac_prog"
5651 # Check to see if the program is GNU ld. I'd rather use --version,
5652 # but apparently some variants of GNU ld only accept -v.
5653 # Break only if it was the GNU/non-GNU ld that we prefer.
5654 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5655 *GNU* | *'with BFD'*)
5656 test "$with_gnu_ld" != no && break
5657 ;;
5658 *)
5659 test "$with_gnu_ld" != yes && break
5660 ;;
5661 esac
5662 fi
5663 done
5664 IFS="$lt_save_ifs"
5665else
5666 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5667fi
5668fi
5669
5670LD="$lt_cv_path_LD"
5671if test -n "$LD"; then
64ff59ba 5672 { echo "$as_me:$LINENO: result: $LD" >&5
5673echo "${ECHO_T}$LD" >&6; }
d9898ee8 5674else
64ff59ba 5675 { echo "$as_me:$LINENO: result: no" >&5
5676echo "${ECHO_T}no" >&6; }
d9898ee8 5677fi
5678test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5679echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5680 { (exit 1); exit 1; }; }
64ff59ba 5681{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5682echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d9898ee8 5683if test "${lt_cv_prog_gnu_ld+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5685else
5686 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5687case `$LD -v 2>&1 </dev/null` in
5688*GNU* | *'with BFD'*)
5689 lt_cv_prog_gnu_ld=yes
5690 ;;
5691*)
5692 lt_cv_prog_gnu_ld=no
5693 ;;
5694esac
5695fi
64ff59ba 5696{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5697echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 5698with_gnu_ld=$lt_cv_prog_gnu_ld
5699
5700
64ff59ba 5701{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5702echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
d9898ee8 5703if test "${lt_cv_ld_reload_flag+set}" = set; then
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
5705else
5706 lt_cv_ld_reload_flag='-r'
5707fi
64ff59ba 5708{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5709echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
d9898ee8 5710reload_flag=$lt_cv_ld_reload_flag
5711case $reload_flag in
5712"" | " "*) ;;
5713*) reload_flag=" $reload_flag" ;;
5714esac
5715reload_cmds='$LD$reload_flag -o $output$reload_objs'
5716case $host_os in
5717 darwin*)
5718 if test "$GCC" = yes; then
5719 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5720 else
5721 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5722 fi
5723 ;;
5724esac
5725
64ff59ba 5726{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5727echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
d9898ee8 5728if test "${lt_cv_path_NM+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5730else
5731 if test -n "$NM"; then
5732 # Let the user override the test.
5733 lt_cv_path_NM="$NM"
5734else
5735 lt_nm_to_check="${ac_tool_prefix}nm"
5736 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5737 lt_nm_to_check="$lt_nm_to_check nm"
5738 fi
5739 for lt_tmp_nm in $lt_nm_to_check; do
5740 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5741 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5742 IFS="$lt_save_ifs"
5743 test -z "$ac_dir" && ac_dir=.
5744 tmp_nm="$ac_dir/$lt_tmp_nm"
5745 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5746 # Check to see if the nm accepts a BSD-compat flag.
5747 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5748 # nm: unknown option "B" ignored
5749 # Tru64's nm complains that /dev/null is an invalid object file
5750 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5751 */dev/null* | *'Invalid file or object type'*)
5752 lt_cv_path_NM="$tmp_nm -B"
5753 break
5754 ;;
5755 *)
5756 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5757 */dev/null*)
5758 lt_cv_path_NM="$tmp_nm -p"
5759 break
5760 ;;
5761 *)
5762 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5763 continue # so that we can try to find one that supports BSD flags
5764 ;;
5765 esac
5766 ;;
5767 esac
5768 fi
5769 done
5770 IFS="$lt_save_ifs"
5771 done
5772 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5773fi
5774fi
64ff59ba 5775{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5776echo "${ECHO_T}$lt_cv_path_NM" >&6; }
d9898ee8 5777NM="$lt_cv_path_NM"
5778
64ff59ba 5779{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5780echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
d9898ee8 5781if test "${lt_cv_deplibs_check_method+set}" = set; then
5782 echo $ECHO_N "(cached) $ECHO_C" >&6
5783else
5784 lt_cv_file_magic_cmd='$MAGIC_CMD'
5785lt_cv_file_magic_test_file=
5786lt_cv_deplibs_check_method='unknown'
5787# Need to set the preceding variable on all platforms that support
5788# interlibrary dependencies.
5789# 'none' -- dependencies not supported.
5790# `unknown' -- same as none, but documents that we really don't know.
5791# 'pass_all' -- all dependencies passed with no checks.
5792# 'test_compile' -- check by making test program.
5793# 'file_magic [[regex]]' -- check by looking for files in library path
5794# which responds to the $file_magic_cmd with a given extended regex.
5795# If you have `file' or equivalent on your system and you're not sure
5796# whether `pass_all' will *always* work, you probably want this one.
5797
5798case $host_os in
5799aix4* | aix5*)
5800 lt_cv_deplibs_check_method=pass_all
5801 ;;
5802
5803beos*)
5804 lt_cv_deplibs_check_method=pass_all
5805 ;;
5806
5807bsdi[45]*)
5808 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5809 lt_cv_file_magic_cmd='/usr/bin/file -L'
5810 lt_cv_file_magic_test_file=/shlib/libc.so
5811 ;;
5812
5813cygwin*)
5814 # func_win32_libid is a shell function defined in ltmain.sh
5815 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5816 lt_cv_file_magic_cmd='func_win32_libid'
5817 ;;
5818
5819mingw* | pw32*)
5820 # Base MSYS/MinGW do not provide the 'file' command needed by
5821 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5822 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5823 lt_cv_file_magic_cmd='$OBJDUMP -f'
5824 ;;
5825
5826darwin* | rhapsody*)
5827 lt_cv_deplibs_check_method=pass_all
5828 ;;
5829
5830freebsd* | kfreebsd*-gnu | dragonfly*)
5831 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5832 case $host_cpu in
5833 i*86 )
5834 # Not sure whether the presence of OpenBSD here was a mistake.
5835 # Let's accept both of them until this is cleared up.
5836 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5837 lt_cv_file_magic_cmd=/usr/bin/file
5838 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5839 ;;
5840 esac
5841 else
5842 lt_cv_deplibs_check_method=pass_all
5843 fi
5844 ;;
5845
5846gnu*)
5847 lt_cv_deplibs_check_method=pass_all
5848 ;;
5849
5850hpux10.20* | hpux11*)
5851 lt_cv_file_magic_cmd=/usr/bin/file
5852 case $host_cpu in
5853 ia64*)
5854 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5855 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5856 ;;
5857 hppa*64*)
5858 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]'
5859 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5860 ;;
5861 *)
5862 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5863 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5864 ;;
5865 esac
5866 ;;
5867
5868interix3*)
5869 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5870 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5871 ;;
5872
5873irix5* | irix6* | nonstopux*)
5874 case $LD in
5875 *-32|*"-32 ") libmagic=32-bit;;
5876 *-n32|*"-n32 ") libmagic=N32;;
5877 *-64|*"-64 ") libmagic=64-bit;;
5878 *) libmagic=never-match;;
5879 esac
5880 lt_cv_deplibs_check_method=pass_all
5881 ;;
5882
5883# This must be Linux ELF.
5884linux*)
5885 lt_cv_deplibs_check_method=pass_all
5886 ;;
5887
5888netbsd*)
5889 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5890 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5891 else
5892 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5893 fi
5894 ;;
5895
5896newos6*)
5897 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5898 lt_cv_file_magic_cmd=/usr/bin/file
5899 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5900 ;;
5901
5902nto-qnx*)
5903 lt_cv_deplibs_check_method=unknown
5904 ;;
5905
5906openbsd*)
5907 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5908 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5909 else
5910 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5911 fi
5912 ;;
5913
5914osf3* | osf4* | osf5*)
5915 lt_cv_deplibs_check_method=pass_all
5916 ;;
5917
5918solaris*)
5919 lt_cv_deplibs_check_method=pass_all
5920 ;;
5921
5922sysv4 | sysv4.3*)
5923 case $host_vendor in
5924 motorola)
5925 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]'
5926 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5927 ;;
5928 ncr)
5929 lt_cv_deplibs_check_method=pass_all
5930 ;;
5931 sequent)
5932 lt_cv_file_magic_cmd='/bin/file'
5933 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5934 ;;
5935 sni)
5936 lt_cv_file_magic_cmd='/bin/file'
5937 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5938 lt_cv_file_magic_test_file=/lib/libc.so
5939 ;;
5940 siemens)
5941 lt_cv_deplibs_check_method=pass_all
5942 ;;
5943 pc)
5944 lt_cv_deplibs_check_method=pass_all
5945 ;;
5946 esac
5947 ;;
5948
5949sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5950 lt_cv_deplibs_check_method=pass_all
5951 ;;
5952esac
5953
5954fi
64ff59ba 5955{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5956echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
d9898ee8 5957file_magic_cmd=$lt_cv_file_magic_cmd
5958deplibs_check_method=$lt_cv_deplibs_check_method
5959test -z "$deplibs_check_method" && deplibs_check_method=unknown
5960
5961
5962
5963
5964# If no C compiler was specified, use CC.
5965LTCC=${LTCC-"$CC"}
5966
5967# If no C compiler flags were specified, use CFLAGS.
5968LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5969
5970# Allow CC to be a program name with arguments.
5971compiler=$CC
5972
64ff59ba 5973# Check whether --enable-libtool-lock was given.
d9898ee8 5974if test "${enable_libtool_lock+set}" = set; then
64ff59ba 5975 enableval=$enable_libtool_lock;
5976fi
d9898ee8 5977
d9898ee8 5978test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5979
5980# Some flags need to be propagated to the compiler or linker for good
5981# libtool support.
5982case $host in
5983ia64-*-hpux*)
5984 # Find out which ABI we are using.
5985 echo 'int i;' > conftest.$ac_ext
5986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5987 (eval $ac_compile) 2>&5
5988 ac_status=$?
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); }; then
5991 case `/usr/bin/file conftest.$ac_objext` in
5992 *ELF-32*)
5993 HPUX_IA64_MODE="32"
5994 ;;
5995 *ELF-64*)
5996 HPUX_IA64_MODE="64"
5997 ;;
5998 esac
5999 fi
6000 rm -rf conftest*
6001 ;;
6002*-*-irix6*)
6003 # Find out which ABI we are using.
64ff59ba 6004 echo '#line 6004 "configure"' > conftest.$ac_ext
d9898ee8 6005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6006 (eval $ac_compile) 2>&5
6007 ac_status=$?
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }; then
6010 if test "$lt_cv_prog_gnu_ld" = yes; then
6011 case `/usr/bin/file conftest.$ac_objext` in
6012 *32-bit*)
6013 LD="${LD-ld} -melf32bsmip"
6014 ;;
6015 *N32*)
6016 LD="${LD-ld} -melf32bmipn32"
6017 ;;
6018 *64-bit*)
6019 LD="${LD-ld} -melf64bmip"
6020 ;;
6021 esac
6022 else
6023 case `/usr/bin/file conftest.$ac_objext` in
6024 *32-bit*)
6025 LD="${LD-ld} -32"
6026 ;;
6027 *N32*)
6028 LD="${LD-ld} -n32"
6029 ;;
6030 *64-bit*)
6031 LD="${LD-ld} -64"
6032 ;;
6033 esac
6034 fi
6035 fi
6036 rm -rf conftest*
6037 ;;
6038
6039x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6040 # Find out which ABI we are using.
6041 echo 'int i;' > conftest.$ac_ext
6042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6043 (eval $ac_compile) 2>&5
6044 ac_status=$?
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); }; then
6047 case `/usr/bin/file conftest.o` in
6048 *32-bit*)
6049 case $host in
6050 x86_64-*linux*)
6051 LD="${LD-ld} -m elf_i386"
6052 ;;
6053 ppc64-*linux*|powerpc64-*linux*)
6054 LD="${LD-ld} -m elf32ppclinux"
6055 ;;
6056 s390x-*linux*)
6057 LD="${LD-ld} -m elf_s390"
6058 ;;
6059 sparc64-*linux*)
6060 LD="${LD-ld} -m elf32_sparc"
6061 ;;
6062 esac
6063 ;;
6064 *64-bit*)
6065 case $host in
6066 x86_64-*linux*)
6067 LD="${LD-ld} -m elf_x86_64"
6068 ;;
6069 ppc*-*linux*|powerpc*-*linux*)
6070 LD="${LD-ld} -m elf64ppc"
6071 ;;
6072 s390*-*linux*)
6073 LD="${LD-ld} -m elf64_s390"
6074 ;;
6075 sparc*-*linux*)
6076 LD="${LD-ld} -m elf64_sparc"
6077 ;;
6078 esac
6079 ;;
6080 esac
6081 fi
6082 rm -rf conftest*
6083 ;;
6084
6085*-*-sco3.2v5*)
6086 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6087 SAVE_CFLAGS="$CFLAGS"
6088 CFLAGS="$CFLAGS -belf"
64ff59ba 6089 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6090echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
d9898ee8 6091if test "${lt_cv_cc_needs_belf+set}" = set; then
6092 echo $ECHO_N "(cached) $ECHO_C" >&6
6093else
6094 ac_ext=c
6095ac_cpp='$CPP $CPPFLAGS'
6096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6098ac_compiler_gnu=$ac_cv_c_compiler_gnu
6099
6100 cat >conftest.$ac_ext <<_ACEOF
6101/* confdefs.h. */
6102_ACEOF
6103cat confdefs.h >>conftest.$ac_ext
6104cat >>conftest.$ac_ext <<_ACEOF
6105/* end confdefs.h. */
6106
6107int
6108main ()
6109{
6110
6111 ;
6112 return 0;
6113}
6114_ACEOF
6115rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 6116if { (ac_try="$ac_link"
6117case "(($ac_try" in
6118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6119 *) ac_try_echo=$ac_try;;
6120esac
6121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6122 (eval "$ac_link") 2>conftest.er1
d9898ee8 6123 ac_status=$?
6124 grep -v '^ *+' conftest.er1 >conftest.err
6125 rm -f conftest.er1
6126 cat conftest.err >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6128 (exit $ac_status); } && {
6129 test -z "$ac_c_werror_flag" ||
6130 test ! -s conftest.err
6131 } && test -s conftest$ac_exeext &&
6132 $as_test_x conftest$ac_exeext; then
d9898ee8 6133 lt_cv_cc_needs_belf=yes
6134else
6135 echo "$as_me: failed program was:" >&5
6136sed 's/^/| /' conftest.$ac_ext >&5
6137
64ff59ba 6138 lt_cv_cc_needs_belf=no
d9898ee8 6139fi
64ff59ba 6140
6141rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 6142 conftest$ac_exeext conftest.$ac_ext
6143 ac_ext=c
6144ac_cpp='$CPP $CPPFLAGS'
6145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6147ac_compiler_gnu=$ac_cv_c_compiler_gnu
6148
6149fi
64ff59ba 6150{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6151echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
d9898ee8 6152 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6153 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6154 CFLAGS="$SAVE_CFLAGS"
6155 fi
6156 ;;
6157sparc*-*solaris*)
6158 # Find out which ABI we are using.
6159 echo 'int i;' > conftest.$ac_ext
6160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6161 (eval $ac_compile) 2>&5
6162 ac_status=$?
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); }; then
6165 case `/usr/bin/file conftest.o` in
6166 *64-bit*)
6167 case $lt_cv_prog_gnu_ld in
6168 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6169 *) LD="${LD-ld} -64" ;;
6170 esac
6171 ;;
6172 esac
6173 fi
6174 rm -rf conftest*
6175 ;;
6176
6177
6178esac
6179
6180need_locks="$enable_libtool_lock"
6181
6182
6183
6184for ac_header in dlfcn.h
6185do
6186as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 6187if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6188 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6189echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6190if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6192fi
64ff59ba 6193ac_res=`eval echo '${'$as_ac_Header'}'`
6194 { echo "$as_me:$LINENO: result: $ac_res" >&5
6195echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 6196else
6197 # Is the header compilable?
64ff59ba 6198{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6199echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 6200cat >conftest.$ac_ext <<_ACEOF
6201/* confdefs.h. */
6202_ACEOF
6203cat confdefs.h >>conftest.$ac_ext
6204cat >>conftest.$ac_ext <<_ACEOF
6205/* end confdefs.h. */
6206$ac_includes_default
6207#include <$ac_header>
6208_ACEOF
6209rm -f conftest.$ac_objext
64ff59ba 6210if { (ac_try="$ac_compile"
6211case "(($ac_try" in
6212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6213 *) ac_try_echo=$ac_try;;
6214esac
6215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6216 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6217 ac_status=$?
6218 grep -v '^ *+' conftest.er1 >conftest.err
6219 rm -f conftest.er1
6220 cat conftest.err >&5
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6222 (exit $ac_status); } && {
6223 test -z "$ac_c_werror_flag" ||
6224 test ! -s conftest.err
6225 } && test -s conftest.$ac_objext; then
d9898ee8 6226 ac_header_compiler=yes
6227else
6228 echo "$as_me: failed program was:" >&5
6229sed 's/^/| /' conftest.$ac_ext >&5
6230
64ff59ba 6231 ac_header_compiler=no
d9898ee8 6232fi
64ff59ba 6233
6234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6235{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6236echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 6237
6238# Is the header present?
64ff59ba 6239{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6240echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 6241cat >conftest.$ac_ext <<_ACEOF
6242/* confdefs.h. */
6243_ACEOF
6244cat confdefs.h >>conftest.$ac_ext
6245cat >>conftest.$ac_ext <<_ACEOF
6246/* end confdefs.h. */
6247#include <$ac_header>
6248_ACEOF
64ff59ba 6249if { (ac_try="$ac_cpp conftest.$ac_ext"
6250case "(($ac_try" in
6251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6252 *) ac_try_echo=$ac_try;;
6253esac
6254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 6256 ac_status=$?
6257 grep -v '^ *+' conftest.er1 >conftest.err
6258 rm -f conftest.er1
6259 cat conftest.err >&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6261 (exit $ac_status); } >/dev/null && {
6262 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6263 test ! -s conftest.err
6264 }; then
d9898ee8 6265 ac_header_preproc=yes
6266else
6267 echo "$as_me: failed program was:" >&5
6268sed 's/^/| /' conftest.$ac_ext >&5
6269
6270 ac_header_preproc=no
6271fi
64ff59ba 6272
d9898ee8 6273rm -f conftest.err conftest.$ac_ext
64ff59ba 6274{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6275echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 6276
6277# So? What about this header?
6278case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6279 yes:no: )
6280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6281echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6283echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6284 ac_header_preproc=yes
6285 ;;
6286 no:yes:* )
6287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6288echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6290echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6292echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6294echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6296echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6298echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64ff59ba 6299 ( cat <<\_ASBOX
d9898ee8 6300## -------------------------------------------------- ##
6301## Report this to courier-users@lists.sourceforge.net ##
6302## -------------------------------------------------- ##
6303_ASBOX
64ff59ba 6304 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 6305 ;;
6306esac
64ff59ba 6307{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6308echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6309if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 6310 echo $ECHO_N "(cached) $ECHO_C" >&6
6311else
6312 eval "$as_ac_Header=\$ac_header_preproc"
6313fi
64ff59ba 6314ac_res=`eval echo '${'$as_ac_Header'}'`
6315 { echo "$as_me:$LINENO: result: $ac_res" >&5
6316echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 6317
6318fi
6319if test `eval echo '${'$as_ac_Header'}'` = yes; then
6320 cat >>confdefs.h <<_ACEOF
6321#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6322_ACEOF
6323
6324fi
6325
6326done
6327
64ff59ba 6328ac_ext=cpp
d9898ee8 6329ac_cpp='$CXXCPP $CPPFLAGS'
6330ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6331ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6332ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
64ff59ba 6333if test -z "$CXX"; then
6334 if test -n "$CCC"; then
6335 CXX=$CCC
6336 else
6337 if test -n "$ac_tool_prefix"; then
6338 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d9898ee8 6339 do
6340 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6341set dummy $ac_tool_prefix$ac_prog; ac_word=$2
64ff59ba 6342{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6344if test "${ac_cv_prog_CXX+set}" = set; then
6345 echo $ECHO_N "(cached) $ECHO_C" >&6
6346else
6347 if test -n "$CXX"; then
6348 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6349else
6350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351for as_dir in $PATH
6352do
6353 IFS=$as_save_IFS
6354 test -z "$as_dir" && as_dir=.
6355 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6357 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6359 break 2
6360 fi
6361done
6362done
64ff59ba 6363IFS=$as_save_IFS
d9898ee8 6364
6365fi
6366fi
6367CXX=$ac_cv_prog_CXX
6368if test -n "$CXX"; then
64ff59ba 6369 { echo "$as_me:$LINENO: result: $CXX" >&5
6370echo "${ECHO_T}$CXX" >&6; }
d9898ee8 6371else
64ff59ba 6372 { echo "$as_me:$LINENO: result: no" >&5
6373echo "${ECHO_T}no" >&6; }
d9898ee8 6374fi
6375
64ff59ba 6376
d9898ee8 6377 test -n "$CXX" && break
6378 done
6379fi
6380if test -z "$CXX"; then
6381 ac_ct_CXX=$CXX
64ff59ba 6382 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d9898ee8 6383do
6384 # Extract the first word of "$ac_prog", so it can be a program name with args.
6385set dummy $ac_prog; ac_word=$2
64ff59ba 6386{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6388if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6390else
6391 if test -n "$ac_ct_CXX"; then
6392 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6393else
6394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395for as_dir in $PATH
6396do
6397 IFS=$as_save_IFS
6398 test -z "$as_dir" && as_dir=.
6399 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6401 ac_cv_prog_ac_ct_CXX="$ac_prog"
6402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6403 break 2
6404 fi
6405done
6406done
64ff59ba 6407IFS=$as_save_IFS
d9898ee8 6408
6409fi
6410fi
6411ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6412if test -n "$ac_ct_CXX"; then
64ff59ba 6413 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6414echo "${ECHO_T}$ac_ct_CXX" >&6; }
d9898ee8 6415else
64ff59ba 6416 { echo "$as_me:$LINENO: result: no" >&5
6417echo "${ECHO_T}no" >&6; }
d9898ee8 6418fi
6419
64ff59ba 6420
d9898ee8 6421 test -n "$ac_ct_CXX" && break
6422done
d9898ee8 6423
64ff59ba 6424 if test "x$ac_ct_CXX" = x; then
6425 CXX="g++"
6426 else
6427 case $cross_compiling:$ac_tool_warned in
6428yes:)
6429{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6430whose name does not start with the host triplet. If you think this
6431configuration is useful to you, please write to autoconf@gnu.org." >&5
6432echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6433whose name does not start with the host triplet. If you think this
6434configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6435ac_tool_warned=yes ;;
6436esac
6437 CXX=$ac_ct_CXX
6438 fi
d9898ee8 6439fi
6440
64ff59ba 6441 fi
6442fi
d9898ee8 6443# Provide some information about the compiler.
64ff59ba 6444echo "$as_me:$LINENO: checking for C++ compiler version" >&5
d9898ee8 6445ac_compiler=`set X $ac_compile; echo $2`
64ff59ba 6446{ (ac_try="$ac_compiler --version >&5"
6447case "(($ac_try" in
6448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449 *) ac_try_echo=$ac_try;;
6450esac
6451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 6453 ac_status=$?
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }
64ff59ba 6456{ (ac_try="$ac_compiler -v >&5"
6457case "(($ac_try" in
6458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6459 *) ac_try_echo=$ac_try;;
6460esac
6461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6462 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 6463 ac_status=$?
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); }
64ff59ba 6466{ (ac_try="$ac_compiler -V >&5"
6467case "(($ac_try" in
6468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6469 *) ac_try_echo=$ac_try;;
6470esac
6471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6472 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 6473 ac_status=$?
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); }
6476
64ff59ba 6477{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6478echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
d9898ee8 6479if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6480 echo $ECHO_N "(cached) $ECHO_C" >&6
6481else
6482 cat >conftest.$ac_ext <<_ACEOF
6483/* confdefs.h. */
6484_ACEOF
6485cat confdefs.h >>conftest.$ac_ext
6486cat >>conftest.$ac_ext <<_ACEOF
6487/* end confdefs.h. */
6488
6489int
6490main ()
6491{
6492#ifndef __GNUC__
6493 choke me
6494#endif
6495
6496 ;
6497 return 0;
6498}
6499_ACEOF
6500rm -f conftest.$ac_objext
64ff59ba 6501if { (ac_try="$ac_compile"
6502case "(($ac_try" in
6503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6504 *) ac_try_echo=$ac_try;;
6505esac
6506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6507 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6508 ac_status=$?
6509 grep -v '^ *+' conftest.er1 >conftest.err
6510 rm -f conftest.er1
6511 cat conftest.err >&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6513 (exit $ac_status); } && {
6514 test -z "$ac_cxx_werror_flag" ||
6515 test ! -s conftest.err
6516 } && test -s conftest.$ac_objext; then
d9898ee8 6517 ac_compiler_gnu=yes
6518else
6519 echo "$as_me: failed program was:" >&5
6520sed 's/^/| /' conftest.$ac_ext >&5
6521
64ff59ba 6522 ac_compiler_gnu=no
d9898ee8 6523fi
64ff59ba 6524
6525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6526ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6527
6528fi
64ff59ba 6529{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6530echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
d9898ee8 6531GXX=`test $ac_compiler_gnu = yes && echo yes`
6532ac_test_CXXFLAGS=${CXXFLAGS+set}
6533ac_save_CXXFLAGS=$CXXFLAGS
64ff59ba 6534{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6535echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
d9898ee8 6536if test "${ac_cv_prog_cxx_g+set}" = set; then
6537 echo $ECHO_N "(cached) $ECHO_C" >&6
6538else
64ff59ba 6539 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6540 ac_cxx_werror_flag=yes
6541 ac_cv_prog_cxx_g=no
6542 CXXFLAGS="-g"
6543 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 6544/* confdefs.h. */
6545_ACEOF
6546cat confdefs.h >>conftest.$ac_ext
6547cat >>conftest.$ac_ext <<_ACEOF
6548/* end confdefs.h. */
6549
6550int
6551main ()
6552{
6553
6554 ;
6555 return 0;
6556}
6557_ACEOF
6558rm -f conftest.$ac_objext
64ff59ba 6559if { (ac_try="$ac_compile"
6560case "(($ac_try" in
6561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6562 *) ac_try_echo=$ac_try;;
6563esac
6564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6565 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6566 ac_status=$?
6567 grep -v '^ *+' conftest.er1 >conftest.err
6568 rm -f conftest.er1
6569 cat conftest.err >&5
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6571 (exit $ac_status); } && {
6572 test -z "$ac_cxx_werror_flag" ||
6573 test ! -s conftest.err
6574 } && test -s conftest.$ac_objext; then
d9898ee8 6575 ac_cv_prog_cxx_g=yes
6576else
6577 echo "$as_me: failed program was:" >&5
6578sed 's/^/| /' conftest.$ac_ext >&5
6579
64ff59ba 6580 CXXFLAGS=""
6581 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 6582/* confdefs.h. */
6583_ACEOF
6584cat confdefs.h >>conftest.$ac_ext
6585cat >>conftest.$ac_ext <<_ACEOF
6586/* end confdefs.h. */
64ff59ba 6587
d9898ee8 6588int
6589main ()
6590{
64ff59ba 6591
d9898ee8 6592 ;
6593 return 0;
6594}
6595_ACEOF
6596rm -f conftest.$ac_objext
64ff59ba 6597if { (ac_try="$ac_compile"
6598case "(($ac_try" in
6599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6600 *) ac_try_echo=$ac_try;;
6601esac
6602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6603 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6604 ac_status=$?
6605 grep -v '^ *+' conftest.er1 >conftest.err
6606 rm -f conftest.er1
6607 cat conftest.err >&5
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6609 (exit $ac_status); } && {
6610 test -z "$ac_cxx_werror_flag" ||
6611 test ! -s conftest.err
6612 } && test -s conftest.$ac_objext; then
d9898ee8 6613 :
6614else
6615 echo "$as_me: failed program was:" >&5
6616sed 's/^/| /' conftest.$ac_ext >&5
6617
64ff59ba 6618 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6619 CXXFLAGS="-g"
6620 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 6621/* confdefs.h. */
6622_ACEOF
6623cat confdefs.h >>conftest.$ac_ext
6624cat >>conftest.$ac_ext <<_ACEOF
6625/* end confdefs.h. */
64ff59ba 6626
d9898ee8 6627int
6628main ()
6629{
64ff59ba 6630
d9898ee8 6631 ;
6632 return 0;
6633}
6634_ACEOF
6635rm -f conftest.$ac_objext
64ff59ba 6636if { (ac_try="$ac_compile"
6637case "(($ac_try" in
6638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6639 *) ac_try_echo=$ac_try;;
6640esac
6641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6642 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6643 ac_status=$?
6644 grep -v '^ *+' conftest.er1 >conftest.err
6645 rm -f conftest.er1
6646 cat conftest.err >&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6648 (exit $ac_status); } && {
6649 test -z "$ac_cxx_werror_flag" ||
6650 test ! -s conftest.err
6651 } && test -s conftest.$ac_objext; then
6652 ac_cv_prog_cxx_g=yes
d9898ee8 6653else
6654 echo "$as_me: failed program was:" >&5
6655sed 's/^/| /' conftest.$ac_ext >&5
6656
64ff59ba 6657
d9898ee8 6658fi
64ff59ba 6659
6660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6661fi
6662
64ff59ba 6663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6664fi
6665
6666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6667 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6668fi
6669{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6670echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6671if test "$ac_test_CXXFLAGS" = set; then
6672 CXXFLAGS=$ac_save_CXXFLAGS
6673elif test $ac_cv_prog_cxx_g = yes; then
6674 if test "$GXX" = yes; then
6675 CXXFLAGS="-g -O2"
6676 else
6677 CXXFLAGS="-g"
6678 fi
6679else
6680 if test "$GXX" = yes; then
6681 CXXFLAGS="-O2"
6682 else
6683 CXXFLAGS=
6684 fi
6685fi
6686ac_ext=cpp
d9898ee8 6687ac_cpp='$CXXCPP $CPPFLAGS'
6688ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6689ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6690ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6691
6692depcc="$CXX" am_compiler_list=
6693
64ff59ba 6694{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6695echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
d9898ee8 6696if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6698else
6699 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6700 # We make a subdir and do the tests there. Otherwise we can end up
6701 # making bogus files that we don't know about and never remove. For
6702 # instance it was reported that on HP-UX the gcc test will end up
6703 # making a dummy file named `D' -- because `-MD' means `put the output
6704 # in D'.
6705 mkdir conftest.dir
6706 # Copy depcomp to subdir because otherwise we won't find it if we're
6707 # using a relative directory.
6708 cp "$am_depcomp" conftest.dir
6709 cd conftest.dir
6710 # We will build objects and dependencies in a subdirectory because
6711 # it helps to detect inapplicable dependency modes. For instance
6712 # both Tru64's cc and ICC support -MD to output dependencies as a
6713 # side effect of compilation, but ICC will put the dependencies in
6714 # the current directory while Tru64 will put them in the object
6715 # directory.
6716 mkdir sub
6717
6718 am_cv_CXX_dependencies_compiler_type=none
6719 if test "$am_compiler_list" = ""; then
6720 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6721 fi
6722 for depmode in $am_compiler_list; do
6723 # Setup a source with many dependencies, because some compilers
6724 # like to wrap large dependency lists on column 80 (with \), and
6725 # we should not choose a depcomp mode which is confused by this.
6726 #
6727 # We need to recreate these files for each test, as the compiler may
6728 # overwrite some of them when testing with obscure command lines.
6729 # This happens at least with the AIX C compiler.
6730 : > sub/conftest.c
6731 for i in 1 2 3 4 5 6; do
6732 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6733 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6734 # Solaris 8's {/usr,}/bin/sh.
6735 touch sub/conftst$i.h
6736 done
6737 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6738
6739 case $depmode in
6740 nosideeffect)
6741 # after this tag, mechanisms are not by side-effect, so they'll
6742 # only be used when explicitly requested
6743 if test "x$enable_dependency_tracking" = xyes; then
6744 continue
6745 else
6746 break
6747 fi
6748 ;;
6749 none) break ;;
6750 esac
6751 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6752 # mode. It turns out that the SunPro C++ compiler does not properly
6753 # handle `-M -o', and we need to detect this.
6754 if depmode=$depmode \
6755 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6756 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6757 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6758 >/dev/null 2>conftest.err &&
64ff59ba 6759 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 6760 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6761 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6762 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6763 # icc doesn't choke on unknown options, it will just issue warnings
6764 # or remarks (even with -Werror). So we grep stderr for any message
6765 # that says an option was ignored or not supported.
6766 # When given -MP, icc 7.0 and 7.1 complain thusly:
6767 # icc: Command line warning: ignoring option '-M'; no argument required
6768 # The diagnosis changed in icc 8.0:
6769 # icc: Command line remark: option '-MP' not supported
6770 if (grep 'ignoring option' conftest.err ||
6771 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6772 am_cv_CXX_dependencies_compiler_type=$depmode
6773 break
6774 fi
6775 fi
6776 done
6777
6778 cd ..
6779 rm -rf conftest.dir
6780else
6781 am_cv_CXX_dependencies_compiler_type=none
6782fi
6783
6784fi
64ff59ba 6785{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6786echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
d9898ee8 6787CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6788
64ff59ba 6789 if
d9898ee8 6790 test "x$enable_dependency_tracking" != xno \
6791 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6792 am__fastdepCXX_TRUE=
6793 am__fastdepCXX_FALSE='#'
6794else
6795 am__fastdepCXX_TRUE='#'
6796 am__fastdepCXX_FALSE=
6797fi
6798
6799
6800
6801
6802if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6803 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6804 (test "X$CXX" != "Xg++"))) ; then
64ff59ba 6805 ac_ext=cpp
d9898ee8 6806ac_cpp='$CXXCPP $CPPFLAGS'
6807ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6808ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6809ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
64ff59ba 6810{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6811echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
d9898ee8 6812if test -z "$CXXCPP"; then
6813 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6815else
6816 # Double quotes because CXXCPP needs to be expanded
6817 for CXXCPP in "$CXX -E" "/lib/cpp"
6818 do
6819 ac_preproc_ok=false
6820for ac_cxx_preproc_warn_flag in '' yes
6821do
6822 # Use a header file that comes with gcc, so configuring glibc
6823 # with a fresh cross-compiler works.
6824 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6825 # <limits.h> exists even on freestanding compilers.
6826 # On the NeXT, cc -E runs the code through the compiler's parser,
6827 # not just through cpp. "Syntax error" is here to catch this case.
6828 cat >conftest.$ac_ext <<_ACEOF
6829/* confdefs.h. */
6830_ACEOF
6831cat confdefs.h >>conftest.$ac_ext
6832cat >>conftest.$ac_ext <<_ACEOF
6833/* end confdefs.h. */
6834#ifdef __STDC__
6835# include <limits.h>
6836#else
6837# include <assert.h>
6838#endif
6839 Syntax error
6840_ACEOF
64ff59ba 6841if { (ac_try="$ac_cpp conftest.$ac_ext"
6842case "(($ac_try" in
6843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6844 *) ac_try_echo=$ac_try;;
6845esac
6846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 6848 ac_status=$?
6849 grep -v '^ *+' conftest.er1 >conftest.err
6850 rm -f conftest.er1
6851 cat conftest.err >&5
6852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6853 (exit $ac_status); } >/dev/null && {
6854 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6855 test ! -s conftest.err
6856 }; then
d9898ee8 6857 :
6858else
6859 echo "$as_me: failed program was:" >&5
6860sed 's/^/| /' conftest.$ac_ext >&5
6861
6862 # Broken: fails on valid input.
6863continue
6864fi
64ff59ba 6865
d9898ee8 6866rm -f conftest.err conftest.$ac_ext
6867
64ff59ba 6868 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 6869 # can be detected and how.
6870 cat >conftest.$ac_ext <<_ACEOF
6871/* confdefs.h. */
6872_ACEOF
6873cat confdefs.h >>conftest.$ac_ext
6874cat >>conftest.$ac_ext <<_ACEOF
6875/* end confdefs.h. */
6876#include <ac_nonexistent.h>
6877_ACEOF
64ff59ba 6878if { (ac_try="$ac_cpp conftest.$ac_ext"
6879case "(($ac_try" in
6880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6881 *) ac_try_echo=$ac_try;;
6882esac
6883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 6885 ac_status=$?
6886 grep -v '^ *+' conftest.er1 >conftest.err
6887 rm -f conftest.er1
6888 cat conftest.err >&5
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6890 (exit $ac_status); } >/dev/null && {
6891 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6892 test ! -s conftest.err
6893 }; then
d9898ee8 6894 # Broken: success on invalid input.
6895continue
6896else
6897 echo "$as_me: failed program was:" >&5
6898sed 's/^/| /' conftest.$ac_ext >&5
6899
6900 # Passes both tests.
6901ac_preproc_ok=:
6902break
6903fi
64ff59ba 6904
d9898ee8 6905rm -f conftest.err conftest.$ac_ext
6906
6907done
6908# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6909rm -f conftest.err conftest.$ac_ext
6910if $ac_preproc_ok; then
6911 break
6912fi
6913
6914 done
6915 ac_cv_prog_CXXCPP=$CXXCPP
6916
6917fi
6918 CXXCPP=$ac_cv_prog_CXXCPP
6919else
6920 ac_cv_prog_CXXCPP=$CXXCPP
6921fi
64ff59ba 6922{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6923echo "${ECHO_T}$CXXCPP" >&6; }
d9898ee8 6924ac_preproc_ok=false
6925for ac_cxx_preproc_warn_flag in '' yes
6926do
6927 # Use a header file that comes with gcc, so configuring glibc
6928 # with a fresh cross-compiler works.
6929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6930 # <limits.h> exists even on freestanding compilers.
6931 # On the NeXT, cc -E runs the code through the compiler's parser,
6932 # not just through cpp. "Syntax error" is here to catch this case.
6933 cat >conftest.$ac_ext <<_ACEOF
6934/* confdefs.h. */
6935_ACEOF
6936cat confdefs.h >>conftest.$ac_ext
6937cat >>conftest.$ac_ext <<_ACEOF
6938/* end confdefs.h. */
6939#ifdef __STDC__
6940# include <limits.h>
6941#else
6942# include <assert.h>
6943#endif
6944 Syntax error
6945_ACEOF
64ff59ba 6946if { (ac_try="$ac_cpp conftest.$ac_ext"
6947case "(($ac_try" in
6948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6949 *) ac_try_echo=$ac_try;;
6950esac
6951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 6953 ac_status=$?
6954 grep -v '^ *+' conftest.er1 >conftest.err
6955 rm -f conftest.er1
6956 cat conftest.err >&5
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6958 (exit $ac_status); } >/dev/null && {
6959 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6960 test ! -s conftest.err
6961 }; then
d9898ee8 6962 :
6963else
6964 echo "$as_me: failed program was:" >&5
6965sed 's/^/| /' conftest.$ac_ext >&5
6966
6967 # Broken: fails on valid input.
6968continue
6969fi
64ff59ba 6970
d9898ee8 6971rm -f conftest.err conftest.$ac_ext
6972
64ff59ba 6973 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 6974 # can be detected and how.
6975 cat >conftest.$ac_ext <<_ACEOF
6976/* confdefs.h. */
6977_ACEOF
6978cat confdefs.h >>conftest.$ac_ext
6979cat >>conftest.$ac_ext <<_ACEOF
6980/* end confdefs.h. */
6981#include <ac_nonexistent.h>
6982_ACEOF
64ff59ba 6983if { (ac_try="$ac_cpp conftest.$ac_ext"
6984case "(($ac_try" in
6985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6986 *) ac_try_echo=$ac_try;;
6987esac
6988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 6990 ac_status=$?
6991 grep -v '^ *+' conftest.er1 >conftest.err
6992 rm -f conftest.er1
6993 cat conftest.err >&5
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6995 (exit $ac_status); } >/dev/null && {
6996 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6997 test ! -s conftest.err
6998 }; then
d9898ee8 6999 # Broken: success on invalid input.
7000continue
7001else
7002 echo "$as_me: failed program was:" >&5
7003sed 's/^/| /' conftest.$ac_ext >&5
7004
7005 # Passes both tests.
7006ac_preproc_ok=:
7007break
7008fi
64ff59ba 7009
d9898ee8 7010rm -f conftest.err conftest.$ac_ext
7011
7012done
7013# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7014rm -f conftest.err conftest.$ac_ext
7015if $ac_preproc_ok; then
7016 :
7017else
7018 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7019See \`config.log' for more details." >&5
7020echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7021See \`config.log' for more details." >&2;}
7022 { (exit 1); exit 1; }; }
7023fi
7024
64ff59ba 7025ac_ext=cpp
d9898ee8 7026ac_cpp='$CXXCPP $CPPFLAGS'
7027ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7028ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7029ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7030
7031fi
7032
7033
7034ac_ext=f
7035ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7036ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7037ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7038if test -n "$ac_tool_prefix"; then
64ff59ba 7039 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 7040 do
7041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7042set dummy $ac_tool_prefix$ac_prog; ac_word=$2
64ff59ba 7043{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 7045if test "${ac_cv_prog_F77+set}" = set; then
7046 echo $ECHO_N "(cached) $ECHO_C" >&6
7047else
7048 if test -n "$F77"; then
7049 ac_cv_prog_F77="$F77" # Let the user override the test.
7050else
7051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052for as_dir in $PATH
7053do
7054 IFS=$as_save_IFS
7055 test -z "$as_dir" && as_dir=.
7056 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 7057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 7058 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7060 break 2
7061 fi
7062done
7063done
64ff59ba 7064IFS=$as_save_IFS
d9898ee8 7065
7066fi
7067fi
7068F77=$ac_cv_prog_F77
7069if test -n "$F77"; then
64ff59ba 7070 { echo "$as_me:$LINENO: result: $F77" >&5
7071echo "${ECHO_T}$F77" >&6; }
d9898ee8 7072else
64ff59ba 7073 { echo "$as_me:$LINENO: result: no" >&5
7074echo "${ECHO_T}no" >&6; }
d9898ee8 7075fi
7076
64ff59ba 7077
d9898ee8 7078 test -n "$F77" && break
7079 done
7080fi
7081if test -z "$F77"; then
7082 ac_ct_F77=$F77
64ff59ba 7083 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 7084do
7085 # Extract the first word of "$ac_prog", so it can be a program name with args.
7086set dummy $ac_prog; ac_word=$2
64ff59ba 7087{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 7089if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7091else
7092 if test -n "$ac_ct_F77"; then
7093 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7094else
7095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096for as_dir in $PATH
7097do
7098 IFS=$as_save_IFS
7099 test -z "$as_dir" && as_dir=.
7100 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 7101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 7102 ac_cv_prog_ac_ct_F77="$ac_prog"
7103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7104 break 2
7105 fi
7106done
7107done
64ff59ba 7108IFS=$as_save_IFS
d9898ee8 7109
7110fi
7111fi
7112ac_ct_F77=$ac_cv_prog_ac_ct_F77
7113if test -n "$ac_ct_F77"; then
64ff59ba 7114 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7115echo "${ECHO_T}$ac_ct_F77" >&6; }
d9898ee8 7116else
64ff59ba 7117 { echo "$as_me:$LINENO: result: no" >&5
7118echo "${ECHO_T}no" >&6; }
d9898ee8 7119fi
7120
64ff59ba 7121
d9898ee8 7122 test -n "$ac_ct_F77" && break
7123done
7124
64ff59ba 7125 if test "x$ac_ct_F77" = x; then
7126 F77=""
7127 else
7128 case $cross_compiling:$ac_tool_warned in
7129yes:)
7130{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7131whose name does not start with the host triplet. If you think this
7132configuration is useful to you, please write to autoconf@gnu.org." >&5
7133echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7134whose name does not start with the host triplet. If you think this
7135configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7136ac_tool_warned=yes ;;
7137esac
7138 F77=$ac_ct_F77
7139 fi
d9898ee8 7140fi
7141
7142
7143# Provide some information about the compiler.
64ff59ba 7144echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
d9898ee8 7145ac_compiler=`set X $ac_compile; echo $2`
64ff59ba 7146{ (ac_try="$ac_compiler --version >&5"
7147case "(($ac_try" in
7148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7149 *) ac_try_echo=$ac_try;;
7150esac
7151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7152 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 7153 ac_status=$?
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); }
64ff59ba 7156{ (ac_try="$ac_compiler -v >&5"
7157case "(($ac_try" in
7158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7159 *) ac_try_echo=$ac_try;;
7160esac
7161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7162 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 7163 ac_status=$?
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); }
64ff59ba 7166{ (ac_try="$ac_compiler -V >&5"
7167case "(($ac_try" in
7168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7169 *) ac_try_echo=$ac_try;;
7170esac
7171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7172 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 7173 ac_status=$?
7174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); }
7176rm -f a.out
7177
7178# If we don't use `.F' as extension, the preprocessor is not run on the
7179# input file. (Note that this only needs to work for GNU compilers.)
7180ac_save_ext=$ac_ext
7181ac_ext=F
64ff59ba 7182{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7183echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
d9898ee8 7184if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7185 echo $ECHO_N "(cached) $ECHO_C" >&6
7186else
7187 cat >conftest.$ac_ext <<_ACEOF
7188 program main
7189#ifndef __GNUC__
7190 choke me
7191#endif
7192
7193 end
7194_ACEOF
7195rm -f conftest.$ac_objext
64ff59ba 7196if { (ac_try="$ac_compile"
7197case "(($ac_try" in
7198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7199 *) ac_try_echo=$ac_try;;
7200esac
7201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7202 (eval "$ac_compile") 2>conftest.er1
d9898ee8 7203 ac_status=$?
7204 grep -v '^ *+' conftest.er1 >conftest.err
7205 rm -f conftest.er1
7206 cat conftest.err >&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 7208 (exit $ac_status); } && {
7209 test -z "$ac_f77_werror_flag" ||
7210 test ! -s conftest.err
7211 } && test -s conftest.$ac_objext; then
d9898ee8 7212 ac_compiler_gnu=yes
7213else
7214 echo "$as_me: failed program was:" >&5
7215sed 's/^/| /' conftest.$ac_ext >&5
7216
64ff59ba 7217 ac_compiler_gnu=no
d9898ee8 7218fi
64ff59ba 7219
7220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 7221ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7222
7223fi
64ff59ba 7224{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7225echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
d9898ee8 7226ac_ext=$ac_save_ext
7227ac_test_FFLAGS=${FFLAGS+set}
7228ac_save_FFLAGS=$FFLAGS
7229FFLAGS=
64ff59ba 7230{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7231echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
d9898ee8 7232if test "${ac_cv_prog_f77_g+set}" = set; then
7233 echo $ECHO_N "(cached) $ECHO_C" >&6
7234else
7235 FFLAGS=-g
7236cat >conftest.$ac_ext <<_ACEOF
7237 program main
7238
7239 end
7240_ACEOF
7241rm -f conftest.$ac_objext
64ff59ba 7242if { (ac_try="$ac_compile"
7243case "(($ac_try" in
7244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7245 *) ac_try_echo=$ac_try;;
7246esac
7247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7248 (eval "$ac_compile") 2>conftest.er1
d9898ee8 7249 ac_status=$?
7250 grep -v '^ *+' conftest.er1 >conftest.err
7251 rm -f conftest.er1
7252 cat conftest.err >&5
7253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 7254 (exit $ac_status); } && {
7255 test -z "$ac_f77_werror_flag" ||
7256 test ! -s conftest.err
7257 } && test -s conftest.$ac_objext; then
d9898ee8 7258 ac_cv_prog_f77_g=yes
7259else
7260 echo "$as_me: failed program was:" >&5
7261sed 's/^/| /' conftest.$ac_ext >&5
7262
64ff59ba 7263 ac_cv_prog_f77_g=no
d9898ee8 7264fi
64ff59ba 7265
7266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 7267
7268fi
64ff59ba 7269{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7270echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
d9898ee8 7271if test "$ac_test_FFLAGS" = set; then
7272 FFLAGS=$ac_save_FFLAGS
7273elif test $ac_cv_prog_f77_g = yes; then
7274 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7275 FFLAGS="-g -O2"
7276 else
7277 FFLAGS="-g"
7278 fi
7279else
7280 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7281 FFLAGS="-O2"
7282 else
7283 FFLAGS=
7284 fi
7285fi
7286
7287G77=`test $ac_compiler_gnu = yes && echo yes`
7288ac_ext=c
7289ac_cpp='$CPP $CPPFLAGS'
7290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7292ac_compiler_gnu=$ac_cv_c_compiler_gnu
7293
7294
7295
7296# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7297
7298# find the maximum length of command line arguments
64ff59ba 7299{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7300echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
d9898ee8 7301if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7302 echo $ECHO_N "(cached) $ECHO_C" >&6
7303else
7304 i=0
7305 teststring="ABCD"
7306
7307 case $build_os in
7308 msdosdjgpp*)
7309 # On DJGPP, this test can blow up pretty badly due to problems in libc
7310 # (any single argument exceeding 2000 bytes causes a buffer overrun
7311 # during glob expansion). Even if it were fixed, the result of this
7312 # check would be larger than it should be.
7313 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7314 ;;
7315
7316 gnu*)
7317 # Under GNU Hurd, this test is not required because there is
7318 # no limit to the length of command line arguments.
7319 # Libtool will interpret -1 as no limit whatsoever
7320 lt_cv_sys_max_cmd_len=-1;
7321 ;;
7322
7323 cygwin* | mingw*)
7324 # On Win9x/ME, this test blows up -- it succeeds, but takes
7325 # about 5 minutes as the teststring grows exponentially.
7326 # Worse, since 9x/ME are not pre-emptively multitasking,
7327 # you end up with a "frozen" computer, even though with patience
7328 # the test eventually succeeds (with a max line length of 256k).
7329 # Instead, let's just punt: use the minimum linelength reported by
7330 # all of the supported platforms: 8192 (on NT/2K/XP).
7331 lt_cv_sys_max_cmd_len=8192;
7332 ;;
7333
7334 amigaos*)
7335 # On AmigaOS with pdksh, this test takes hours, literally.
7336 # So we just punt and use a minimum line length of 8192.
7337 lt_cv_sys_max_cmd_len=8192;
7338 ;;
7339
7340 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7341 # This has been around since 386BSD, at least. Likely further.
7342 if test -x /sbin/sysctl; then
7343 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7344 elif test -x /usr/sbin/sysctl; then
7345 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7346 else
7347 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7348 fi
7349 # And add a safety zone
7350 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7351 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7352 ;;
7353
7354 interix*)
7355 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7356 lt_cv_sys_max_cmd_len=196608
7357 ;;
7358
7359 osf*)
7360 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7361 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7362 # nice to cause kernel panics so lets avoid the loop below.
7363 # First set a reasonable default.
7364 lt_cv_sys_max_cmd_len=16384
7365 #
7366 if test -x /sbin/sysconfig; then
7367 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7368 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7369 esac
7370 fi
7371 ;;
7372 sco3.2v5*)
7373 lt_cv_sys_max_cmd_len=102400
7374 ;;
7375 sysv5* | sco5v6* | sysv4.2uw2*)
7376 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7377 if test -n "$kargmax"; then
7378 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7379 else
7380 lt_cv_sys_max_cmd_len=32768
7381 fi
7382 ;;
7383 *)
7384 # If test is not a shell built-in, we'll probably end up computing a
7385 # maximum length that is only half of the actual maximum length, but
7386 # we can't tell.
7387 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7388 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7389 = "XX$teststring") >/dev/null 2>&1 &&
7390 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7391 lt_cv_sys_max_cmd_len=$new_result &&
7392 test $i != 17 # 1/2 MB should be enough
7393 do
7394 i=`expr $i + 1`
7395 teststring=$teststring$teststring
7396 done
7397 teststring=
7398 # Add a significant safety factor because C++ compilers can tack on massive
7399 # amounts of additional arguments before passing them to the linker.
7400 # It appears as though 1/2 is a usable value.
7401 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7402 ;;
7403 esac
7404
7405fi
7406
7407if test -n $lt_cv_sys_max_cmd_len ; then
64ff59ba 7408 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7409echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
d9898ee8 7410else
64ff59ba 7411 { echo "$as_me:$LINENO: result: none" >&5
7412echo "${ECHO_T}none" >&6; }
d9898ee8 7413fi
7414
7415
7416
7417
7418# Check for command to grab the raw symbol name followed by C symbol from nm.
64ff59ba 7419{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7420echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
d9898ee8 7421if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7422 echo $ECHO_N "(cached) $ECHO_C" >&6
7423else
7424
7425# These are sane defaults that work on at least a few old systems.
7426# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7427
7428# Character class describing NM global symbol codes.
7429symcode='[BCDEGRST]'
7430
7431# Regexp to match symbols that can be accessed directly from C.
7432sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7433
7434# Transform an extracted symbol line into a proper C declaration
7435lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7436
7437# Transform an extracted symbol line into symbol name and symbol address
7438lt_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'"
7439
7440# Define system-specific variables.
7441case $host_os in
7442aix*)
7443 symcode='[BCDT]'
7444 ;;
7445cygwin* | mingw* | pw32*)
7446 symcode='[ABCDGISTW]'
7447 ;;
7448hpux*) # Its linker distinguishes data from code symbols
7449 if test "$host_cpu" = ia64; then
7450 symcode='[ABCDEGRST]'
7451 fi
7452 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7453 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'"
7454 ;;
7455linux*)
7456 if test "$host_cpu" = ia64; then
7457 symcode='[ABCDGIRSTW]'
7458 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7459 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'"
7460 fi
7461 ;;
7462irix* | nonstopux*)
7463 symcode='[BCDEGRST]'
7464 ;;
7465osf*)
7466 symcode='[BCDEGQRST]'
7467 ;;
7468solaris*)
7469 symcode='[BDRT]'
7470 ;;
7471sco3.2v5*)
7472 symcode='[DT]'
7473 ;;
7474sysv4.2uw2*)
7475 symcode='[DT]'
7476 ;;
7477sysv5* | sco5v6* | unixware* | OpenUNIX*)
7478 symcode='[ABDT]'
7479 ;;
7480sysv4)
7481 symcode='[DFNSTU]'
7482 ;;
7483esac
7484
7485# Handle CRLF in mingw tool chain
7486opt_cr=
7487case $build_os in
7488mingw*)
7489 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7490 ;;
7491esac
7492
7493# If we're using GNU nm, then use its standard symbol codes.
7494case `$NM -V 2>&1` in
7495*GNU* | *'with BFD'*)
7496 symcode='[ABCDGIRSTW]' ;;
7497esac
7498
7499# Try without a prefix undercore, then with it.
7500for ac_symprfx in "" "_"; do
7501
7502 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7503 symxfrm="\\1 $ac_symprfx\\2 \\2"
7504
7505 # Write the raw and C identifiers.
7506 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7507
7508 # Check to see that the pipe works correctly.
7509 pipe_works=no
7510
7511 rm -f conftest*
7512 cat > conftest.$ac_ext <<EOF
7513#ifdef __cplusplus
7514extern "C" {
7515#endif
7516char nm_test_var;
7517void nm_test_func(){}
7518#ifdef __cplusplus
7519}
7520#endif
7521int main(){nm_test_var='a';nm_test_func();return(0);}
7522EOF
7523
7524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7525 (eval $ac_compile) 2>&5
7526 ac_status=$?
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; then
7529 # Now try to grab the symbols.
7530 nlist=conftest.nm
7531 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7532 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7533 ac_status=$?
7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); } && test -s "$nlist"; then
7536 # Try sorting and uniquifying the output.
7537 if sort "$nlist" | uniq > "$nlist"T; then
7538 mv -f "$nlist"T "$nlist"
7539 else
7540 rm -f "$nlist"T
7541 fi
7542
7543 # Make sure that we snagged all the symbols we need.
7544 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7545 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7546 cat <<EOF > conftest.$ac_ext
7547#ifdef __cplusplus
7548extern "C" {
7549#endif
7550
7551EOF
7552 # Now generate the symbol file.
7553 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7554
7555 cat <<EOF >> conftest.$ac_ext
7556#if defined (__STDC__) && __STDC__
7557# define lt_ptr_t void *
7558#else
7559# define lt_ptr_t char *
7560# define const
7561#endif
7562
7563/* The mapping between symbol names and symbols. */
7564const struct {
7565 const char *name;
7566 lt_ptr_t address;
7567}
7568lt_preloaded_symbols[] =
7569{
7570EOF
7571 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7572 cat <<\EOF >> conftest.$ac_ext
7573 {0, (lt_ptr_t) 0}
7574};
7575
7576#ifdef __cplusplus
7577}
7578#endif
7579EOF
7580 # Now try linking the two files.
7581 mv conftest.$ac_objext conftstm.$ac_objext
7582 lt_save_LIBS="$LIBS"
7583 lt_save_CFLAGS="$CFLAGS"
7584 LIBS="conftstm.$ac_objext"
7585 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7587 (eval $ac_link) 2>&5
7588 ac_status=$?
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7591 pipe_works=yes
7592 fi
7593 LIBS="$lt_save_LIBS"
7594 CFLAGS="$lt_save_CFLAGS"
7595 else
7596 echo "cannot find nm_test_func in $nlist" >&5
7597 fi
7598 else
7599 echo "cannot find nm_test_var in $nlist" >&5
7600 fi
7601 else
7602 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7603 fi
7604 else
7605 echo "$progname: failed program was:" >&5
7606 cat conftest.$ac_ext >&5
7607 fi
7608 rm -f conftest* conftst*
7609
7610 # Do not use the global_symbol_pipe unless it works.
7611 if test "$pipe_works" = yes; then
7612 break
7613 else
7614 lt_cv_sys_global_symbol_pipe=
7615 fi
7616done
7617
7618fi
7619
7620if test -z "$lt_cv_sys_global_symbol_pipe"; then
7621 lt_cv_sys_global_symbol_to_cdecl=
7622fi
7623if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
64ff59ba 7624 { echo "$as_me:$LINENO: result: failed" >&5
7625echo "${ECHO_T}failed" >&6; }
d9898ee8 7626else
64ff59ba 7627 { echo "$as_me:$LINENO: result: ok" >&5
7628echo "${ECHO_T}ok" >&6; }
d9898ee8 7629fi
7630
64ff59ba 7631{ echo "$as_me:$LINENO: checking for objdir" >&5
7632echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
d9898ee8 7633if test "${lt_cv_objdir+set}" = set; then
7634 echo $ECHO_N "(cached) $ECHO_C" >&6
7635else
7636 rm -f .libs 2>/dev/null
7637mkdir .libs 2>/dev/null
7638if test -d .libs; then
7639 lt_cv_objdir=.libs
7640else
7641 # MS-DOS does not allow filenames that begin with a dot.
7642 lt_cv_objdir=_libs
7643fi
7644rmdir .libs 2>/dev/null
7645fi
64ff59ba 7646{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7647echo "${ECHO_T}$lt_cv_objdir" >&6; }
d9898ee8 7648objdir=$lt_cv_objdir
7649
7650
7651
7652
7653
7654case $host_os in
7655aix3*)
7656 # AIX sometimes has problems with the GCC collect2 program. For some
7657 # reason, if we set the COLLECT_NAMES environment variable, the problems
7658 # vanish in a puff of smoke.
7659 if test "X${COLLECT_NAMES+set}" != Xset; then
7660 COLLECT_NAMES=
7661 export COLLECT_NAMES
7662 fi
7663 ;;
7664esac
7665
7666# Sed substitution that helps us do robust quoting. It backslashifies
7667# metacharacters that are still active within double-quoted strings.
7668Xsed='sed -e 1s/^X//'
7669sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7670
7671# Same as above, but do not quote variable references.
7672double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7673
7674# Sed substitution to delay expansion of an escaped shell variable in a
7675# double_quote_subst'ed string.
7676delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7677
7678# Sed substitution to avoid accidental globbing in evaled expressions
7679no_glob_subst='s/\*/\\\*/g'
7680
7681# Constants:
7682rm="rm -f"
7683
7684# Global variables:
7685default_ofile=libtool
7686can_build_shared=yes
7687
7688# All known linkers require a `.a' archive for static linking (except MSVC,
7689# which needs '.lib').
7690libext=a
7691ltmain="$ac_aux_dir/ltmain.sh"
7692ofile="$default_ofile"
7693with_gnu_ld="$lt_cv_prog_gnu_ld"
7694
7695if test -n "$ac_tool_prefix"; then
7696 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7697set dummy ${ac_tool_prefix}ar; ac_word=$2
64ff59ba 7698{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 7700if test "${ac_cv_prog_AR+set}" = set; then
7701 echo $ECHO_N "(cached) $ECHO_C" >&6
7702else
7703 if test -n "$AR"; then
7704 ac_cv_prog_AR="$AR" # Let the user override the test.
7705else
7706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707for as_dir in $PATH
7708do
7709 IFS=$as_save_IFS
7710 test -z "$as_dir" && as_dir=.
7711 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 7712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 7713 ac_cv_prog_AR="${ac_tool_prefix}ar"
7714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7715 break 2
7716 fi
7717done
7718done
64ff59ba 7719IFS=$as_save_IFS
d9898ee8 7720
7721fi
7722fi
7723AR=$ac_cv_prog_AR
7724if test -n "$AR"; then
64ff59ba 7725 { echo "$as_me:$LINENO: result: $AR" >&5
7726echo "${ECHO_T}$AR" >&6; }
d9898ee8 7727else
64ff59ba 7728 { echo "$as_me:$LINENO: result: no" >&5
7729echo "${ECHO_T}no" >&6; }
d9898ee8 7730fi
7731
64ff59ba 7732
d9898ee8 7733fi
7734if test -z "$ac_cv_prog_AR"; then
7735 ac_ct_AR=$AR
7736 # Extract the first word of "ar", so it can be a program name with args.
7737set dummy ar; ac_word=$2
64ff59ba 7738{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 7740if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7741 echo $ECHO_N "(cached) $ECHO_C" >&6
7742else
7743 if test -n "$ac_ct_AR"; then
7744 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7745else
7746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747for as_dir in $PATH
7748do
7749 IFS=$as_save_IFS
7750 test -z "$as_dir" && as_dir=.
7751 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 7752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 7753 ac_cv_prog_ac_ct_AR="ar"
7754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7755 break 2
7756 fi
7757done
7758done
64ff59ba 7759IFS=$as_save_IFS
d9898ee8 7760
d9898ee8 7761fi
7762fi
7763ac_ct_AR=$ac_cv_prog_ac_ct_AR
7764if test -n "$ac_ct_AR"; then
64ff59ba 7765 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7766echo "${ECHO_T}$ac_ct_AR" >&6; }
d9898ee8 7767else
64ff59ba 7768 { echo "$as_me:$LINENO: result: no" >&5
7769echo "${ECHO_T}no" >&6; }
d9898ee8 7770fi
7771
64ff59ba 7772 if test "x$ac_ct_AR" = x; then
7773 AR="false"
7774 else
7775 case $cross_compiling:$ac_tool_warned in
7776yes:)
7777{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7778whose name does not start with the host triplet. If you think this
7779configuration is useful to you, please write to autoconf@gnu.org." >&5
7780echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7781whose name does not start with the host triplet. If you think this
7782configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7783ac_tool_warned=yes ;;
7784esac
7785 AR=$ac_ct_AR
7786 fi
d9898ee8 7787else
7788 AR="$ac_cv_prog_AR"
7789fi
7790
7791if test -n "$ac_tool_prefix"; then
7792 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7793set dummy ${ac_tool_prefix}ranlib; ac_word=$2
64ff59ba 7794{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 7796if test "${ac_cv_prog_RANLIB+set}" = set; then
7797 echo $ECHO_N "(cached) $ECHO_C" >&6
7798else
7799 if test -n "$RANLIB"; then
7800 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7801else
7802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803for as_dir in $PATH
7804do
7805 IFS=$as_save_IFS
7806 test -z "$as_dir" && as_dir=.
7807 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 7808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 7809 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7811 break 2
7812 fi
7813done
7814done
64ff59ba 7815IFS=$as_save_IFS
d9898ee8 7816
7817fi
7818fi
7819RANLIB=$ac_cv_prog_RANLIB
7820if test -n "$RANLIB"; then
64ff59ba 7821 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7822echo "${ECHO_T}$RANLIB" >&6; }
d9898ee8 7823else
64ff59ba 7824 { echo "$as_me:$LINENO: result: no" >&5
7825echo "${ECHO_T}no" >&6; }
d9898ee8 7826fi
7827
64ff59ba 7828
d9898ee8 7829fi
7830if test -z "$ac_cv_prog_RANLIB"; then
7831 ac_ct_RANLIB=$RANLIB
7832 # Extract the first word of "ranlib", so it can be a program name with args.
7833set dummy ranlib; ac_word=$2
64ff59ba 7834{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 7836if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
7838else
7839 if test -n "$ac_ct_RANLIB"; then
7840 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7841else
7842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843for as_dir in $PATH
7844do
7845 IFS=$as_save_IFS
7846 test -z "$as_dir" && as_dir=.
7847 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 7848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 7849 ac_cv_prog_ac_ct_RANLIB="ranlib"
7850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7851 break 2
7852 fi
7853done
7854done
64ff59ba 7855IFS=$as_save_IFS
d9898ee8 7856
d9898ee8 7857fi
7858fi
7859ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7860if test -n "$ac_ct_RANLIB"; then
64ff59ba 7861 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7862echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
d9898ee8 7863else
64ff59ba 7864 { echo "$as_me:$LINENO: result: no" >&5
7865echo "${ECHO_T}no" >&6; }
d9898ee8 7866fi
7867
64ff59ba 7868 if test "x$ac_ct_RANLIB" = x; then
7869 RANLIB=":"
7870 else
7871 case $cross_compiling:$ac_tool_warned in
7872yes:)
7873{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7874whose name does not start with the host triplet. If you think this
7875configuration is useful to you, please write to autoconf@gnu.org." >&5
7876echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7877whose name does not start with the host triplet. If you think this
7878configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7879ac_tool_warned=yes ;;
7880esac
7881 RANLIB=$ac_ct_RANLIB
7882 fi
d9898ee8 7883else
7884 RANLIB="$ac_cv_prog_RANLIB"
7885fi
7886
7887if test -n "$ac_tool_prefix"; then
7888 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7889set dummy ${ac_tool_prefix}strip; ac_word=$2
64ff59ba 7890{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 7892if test "${ac_cv_prog_STRIP+set}" = set; then
7893 echo $ECHO_N "(cached) $ECHO_C" >&6
7894else
7895 if test -n "$STRIP"; then
7896 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7897else
7898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899for as_dir in $PATH
7900do
7901 IFS=$as_save_IFS
7902 test -z "$as_dir" && as_dir=.
7903 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 7904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 7905 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7907 break 2
7908 fi
7909done
7910done
64ff59ba 7911IFS=$as_save_IFS
d9898ee8 7912
7913fi
7914fi
7915STRIP=$ac_cv_prog_STRIP
7916if test -n "$STRIP"; then
64ff59ba 7917 { echo "$as_me:$LINENO: result: $STRIP" >&5
7918echo "${ECHO_T}$STRIP" >&6; }
d9898ee8 7919else
64ff59ba 7920 { echo "$as_me:$LINENO: result: no" >&5
7921echo "${ECHO_T}no" >&6; }
d9898ee8 7922fi
7923
64ff59ba 7924
d9898ee8 7925fi
7926if test -z "$ac_cv_prog_STRIP"; then
7927 ac_ct_STRIP=$STRIP
7928 # Extract the first word of "strip", so it can be a program name with args.
7929set dummy strip; ac_word=$2
64ff59ba 7930{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 7932if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7933 echo $ECHO_N "(cached) $ECHO_C" >&6
7934else
7935 if test -n "$ac_ct_STRIP"; then
7936 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7937else
7938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7939for as_dir in $PATH
7940do
7941 IFS=$as_save_IFS
7942 test -z "$as_dir" && as_dir=.
7943 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 7944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 7945 ac_cv_prog_ac_ct_STRIP="strip"
7946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7947 break 2
7948 fi
7949done
7950done
64ff59ba 7951IFS=$as_save_IFS
d9898ee8 7952
d9898ee8 7953fi
7954fi
7955ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7956if test -n "$ac_ct_STRIP"; then
64ff59ba 7957 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7958echo "${ECHO_T}$ac_ct_STRIP" >&6; }
d9898ee8 7959else
64ff59ba 7960 { echo "$as_me:$LINENO: result: no" >&5
7961echo "${ECHO_T}no" >&6; }
d9898ee8 7962fi
7963
64ff59ba 7964 if test "x$ac_ct_STRIP" = x; then
7965 STRIP=":"
7966 else
7967 case $cross_compiling:$ac_tool_warned in
7968yes:)
7969{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7970whose name does not start with the host triplet. If you think this
7971configuration is useful to you, please write to autoconf@gnu.org." >&5
7972echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7973whose name does not start with the host triplet. If you think this
7974configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7975ac_tool_warned=yes ;;
7976esac
7977 STRIP=$ac_ct_STRIP
7978 fi
d9898ee8 7979else
7980 STRIP="$ac_cv_prog_STRIP"
7981fi
7982
7983
7984old_CC="$CC"
7985old_CFLAGS="$CFLAGS"
7986
7987# Set sane defaults for various variables
7988test -z "$AR" && AR=ar
7989test -z "$AR_FLAGS" && AR_FLAGS=cru
7990test -z "$AS" && AS=as
7991test -z "$CC" && CC=cc
7992test -z "$LTCC" && LTCC=$CC
7993test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7994test -z "$DLLTOOL" && DLLTOOL=dlltool
7995test -z "$LD" && LD=ld
7996test -z "$LN_S" && LN_S="ln -s"
7997test -z "$MAGIC_CMD" && MAGIC_CMD=file
7998test -z "$NM" && NM=nm
7999test -z "$SED" && SED=sed
8000test -z "$OBJDUMP" && OBJDUMP=objdump
8001test -z "$RANLIB" && RANLIB=:
8002test -z "$STRIP" && STRIP=:
8003test -z "$ac_objext" && ac_objext=o
8004
8005# Determine commands to create old-style static archives.
8006old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8007old_postinstall_cmds='chmod 644 $oldlib'
8008old_postuninstall_cmds=
8009
8010if test -n "$RANLIB"; then
8011 case $host_os in
8012 openbsd*)
8013 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8014 ;;
8015 *)
8016 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8017 ;;
8018 esac
8019 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8020fi
8021
8022for cc_temp in $compiler""; do
8023 case $cc_temp in
8024 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8025 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8026 \-*) ;;
8027 *) break;;
8028 esac
8029done
8030cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8031
8032
8033# Only perform the check for file, if the check method requires it
8034case $deplibs_check_method in
8035file_magic*)
8036 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
64ff59ba 8037 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8038echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
d9898ee8 8039if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8040 echo $ECHO_N "(cached) $ECHO_C" >&6
8041else
8042 case $MAGIC_CMD in
8043[\\/*] | ?:[\\/]*)
8044 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8045 ;;
8046*)
8047 lt_save_MAGIC_CMD="$MAGIC_CMD"
8048 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8049 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8050 for ac_dir in $ac_dummy; do
8051 IFS="$lt_save_ifs"
8052 test -z "$ac_dir" && ac_dir=.
8053 if test -f $ac_dir/${ac_tool_prefix}file; then
8054 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8055 if test -n "$file_magic_test_file"; then
8056 case $deplibs_check_method in
8057 "file_magic "*)
8058 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8059 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8060 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8061 $EGREP "$file_magic_regex" > /dev/null; then
8062 :
8063 else
8064 cat <<EOF 1>&2
8065
8066*** Warning: the command libtool uses to detect shared libraries,
8067*** $file_magic_cmd, produces output that libtool cannot recognize.
8068*** The result is that libtool may fail to recognize shared libraries
8069*** as such. This will affect the creation of libtool libraries that
8070*** depend on shared libraries, but programs linked with such libtool
8071*** libraries will work regardless of this problem. Nevertheless, you
8072*** may want to report the problem to your system manager and/or to
8073*** bug-libtool@gnu.org
8074
8075EOF
8076 fi ;;
8077 esac
8078 fi
8079 break
8080 fi
8081 done
8082 IFS="$lt_save_ifs"
8083 MAGIC_CMD="$lt_save_MAGIC_CMD"
8084 ;;
8085esac
8086fi
8087
8088MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8089if test -n "$MAGIC_CMD"; then
64ff59ba 8090 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8091echo "${ECHO_T}$MAGIC_CMD" >&6; }
d9898ee8 8092else
64ff59ba 8093 { echo "$as_me:$LINENO: result: no" >&5
8094echo "${ECHO_T}no" >&6; }
d9898ee8 8095fi
8096
8097if test -z "$lt_cv_path_MAGIC_CMD"; then
8098 if test -n "$ac_tool_prefix"; then
64ff59ba 8099 { echo "$as_me:$LINENO: checking for file" >&5
8100echo $ECHO_N "checking for file... $ECHO_C" >&6; }
d9898ee8 8101if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8103else
8104 case $MAGIC_CMD in
8105[\\/*] | ?:[\\/]*)
8106 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8107 ;;
8108*)
8109 lt_save_MAGIC_CMD="$MAGIC_CMD"
8110 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8111 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8112 for ac_dir in $ac_dummy; do
8113 IFS="$lt_save_ifs"
8114 test -z "$ac_dir" && ac_dir=.
8115 if test -f $ac_dir/file; then
8116 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8117 if test -n "$file_magic_test_file"; then
8118 case $deplibs_check_method in
8119 "file_magic "*)
8120 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8121 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8122 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8123 $EGREP "$file_magic_regex" > /dev/null; then
8124 :
8125 else
8126 cat <<EOF 1>&2
8127
8128*** Warning: the command libtool uses to detect shared libraries,
8129*** $file_magic_cmd, produces output that libtool cannot recognize.
8130*** The result is that libtool may fail to recognize shared libraries
8131*** as such. This will affect the creation of libtool libraries that
8132*** depend on shared libraries, but programs linked with such libtool
8133*** libraries will work regardless of this problem. Nevertheless, you
8134*** may want to report the problem to your system manager and/or to
8135*** bug-libtool@gnu.org
8136
8137EOF
8138 fi ;;
8139 esac
8140 fi
8141 break
8142 fi
8143 done
8144 IFS="$lt_save_ifs"
8145 MAGIC_CMD="$lt_save_MAGIC_CMD"
8146 ;;
8147esac
8148fi
8149
8150MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8151if test -n "$MAGIC_CMD"; then
64ff59ba 8152 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8153echo "${ECHO_T}$MAGIC_CMD" >&6; }
d9898ee8 8154else
64ff59ba 8155 { echo "$as_me:$LINENO: result: no" >&5
8156echo "${ECHO_T}no" >&6; }
d9898ee8 8157fi
8158
8159 else
8160 MAGIC_CMD=:
8161 fi
8162fi
8163
8164 fi
8165 ;;
8166esac
8167
8168enable_dlopen=no
8169enable_win32_dll=no
8170
64ff59ba 8171# Check whether --enable-libtool-lock was given.
d9898ee8 8172if test "${enable_libtool_lock+set}" = set; then
64ff59ba 8173 enableval=$enable_libtool_lock;
8174fi
d9898ee8 8175
d9898ee8 8176test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8177
8178
64ff59ba 8179# Check whether --with-pic was given.
d9898ee8 8180if test "${with_pic+set}" = set; then
64ff59ba 8181 withval=$with_pic; pic_mode="$withval"
d9898ee8 8182else
8183 pic_mode=default
64ff59ba 8184fi
8185
d9898ee8 8186test -z "$pic_mode" && pic_mode=default
8187
8188# Use C for the default configuration in the libtool script
8189tagname=
8190lt_save_CC="$CC"
8191ac_ext=c
8192ac_cpp='$CPP $CPPFLAGS'
8193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8195ac_compiler_gnu=$ac_cv_c_compiler_gnu
8196
8197
8198# Source file extension for C test sources.
8199ac_ext=c
8200
8201# Object file extension for compiled C test sources.
8202objext=o
8203objext=$objext
8204
8205# Code to be used in simple compile tests
8206lt_simple_compile_test_code="int some_variable = 0;\n"
8207
8208# Code to be used in simple link tests
8209lt_simple_link_test_code='int main(){return(0);}\n'
8210
8211
8212# If no C compiler was specified, use CC.
8213LTCC=${LTCC-"$CC"}
8214
8215# If no C compiler flags were specified, use CFLAGS.
8216LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8217
8218# Allow CC to be a program name with arguments.
8219compiler=$CC
8220
8221
8222# save warnings/boilerplate of simple test code
8223ac_outfile=conftest.$ac_objext
8224printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8225eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8226_lt_compiler_boilerplate=`cat conftest.err`
8227$rm conftest*
8228
8229ac_outfile=conftest.$ac_objext
8230printf "$lt_simple_link_test_code" >conftest.$ac_ext
8231eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8232_lt_linker_boilerplate=`cat conftest.err`
8233$rm conftest*
8234
8235
8236
8237lt_prog_compiler_no_builtin_flag=
8238
8239if test "$GCC" = yes; then
8240 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8241
8242
64ff59ba 8243{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8244echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d9898ee8 8245if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8246 echo $ECHO_N "(cached) $ECHO_C" >&6
8247else
8248 lt_cv_prog_compiler_rtti_exceptions=no
8249 ac_outfile=conftest.$ac_objext
8250 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8251 lt_compiler_flag="-fno-rtti -fno-exceptions"
8252 # Insert the option either (1) after the last *FLAGS variable, or
8253 # (2) before a word containing "conftest.", or (3) at the end.
8254 # Note that $ac_compile itself does not contain backslashes and begins
8255 # with a dollar sign (not a hyphen), so the echo should work correctly.
8256 # The option is referenced via a variable to avoid confusing sed.
8257 lt_compile=`echo "$ac_compile" | $SED \
8258 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8259 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8260 -e 's:$: $lt_compiler_flag:'`
64ff59ba 8261 (eval echo "\"\$as_me:8261: $lt_compile\"" >&5)
d9898ee8 8262 (eval "$lt_compile" 2>conftest.err)
8263 ac_status=$?
8264 cat conftest.err >&5
64ff59ba 8265 echo "$as_me:8265: \$? = $ac_status" >&5
d9898ee8 8266 if (exit $ac_status) && test -s "$ac_outfile"; then
8267 # The compiler can only warn and ignore the option if not recognized
8268 # So say no if there are warnings other than the usual output.
8269 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8270 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8271 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8272 lt_cv_prog_compiler_rtti_exceptions=yes
8273 fi
8274 fi
8275 $rm conftest*
8276
8277fi
64ff59ba 8278{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8279echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 8280
8281if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8282 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8283else
8284 :
8285fi
8286
8287fi
8288
8289lt_prog_compiler_wl=
8290lt_prog_compiler_pic=
8291lt_prog_compiler_static=
8292
64ff59ba 8293{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8294echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 8295
8296 if test "$GCC" = yes; then
8297 lt_prog_compiler_wl='-Wl,'
8298 lt_prog_compiler_static='-static'
8299
8300 case $host_os in
8301 aix*)
8302 # All AIX code is PIC.
8303 if test "$host_cpu" = ia64; then
8304 # AIX 5 now supports IA64 processor
8305 lt_prog_compiler_static='-Bstatic'
8306 fi
8307 ;;
8308
8309 amigaos*)
8310 # FIXME: we need at least 68020 code to build shared libraries, but
8311 # adding the `-m68020' flag to GCC prevents building anything better,
8312 # like `-m68040'.
8313 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8314 ;;
8315
8316 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8317 # PIC is the default for these OSes.
8318 ;;
8319
8320 mingw* | pw32* | os2*)
8321 # This hack is so that the source file can tell whether it is being
8322 # built for inclusion in a dll (and should export symbols for example).
8323 lt_prog_compiler_pic='-DDLL_EXPORT'
8324 ;;
8325
8326 darwin* | rhapsody*)
8327 # PIC is the default on this platform
8328 # Common symbols not allowed in MH_DYLIB files
8329 lt_prog_compiler_pic='-fno-common'
8330 ;;
8331
8332 interix3*)
8333 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8334 # Instead, we relocate shared libraries at runtime.
8335 ;;
8336
8337 msdosdjgpp*)
8338 # Just because we use GCC doesn't mean we suddenly get shared libraries
8339 # on systems that don't support them.
8340 lt_prog_compiler_can_build_shared=no
8341 enable_shared=no
8342 ;;
8343
8344 sysv4*MP*)
8345 if test -d /usr/nec; then
8346 lt_prog_compiler_pic=-Kconform_pic
8347 fi
8348 ;;
8349
8350 hpux*)
8351 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8352 # not for PA HP-UX.
8353 case $host_cpu in
8354 hppa*64*|ia64*)
8355 # +Z the default
8356 ;;
8357 *)
8358 lt_prog_compiler_pic='-fPIC'
8359 ;;
8360 esac
8361 ;;
8362
8363 *)
8364 lt_prog_compiler_pic='-fPIC'
8365 ;;
8366 esac
8367 else
8368 # PORTME Check for flag to pass linker flags through the system compiler.
8369 case $host_os in
8370 aix*)
8371 lt_prog_compiler_wl='-Wl,'
8372 if test "$host_cpu" = ia64; then
8373 # AIX 5 now supports IA64 processor
8374 lt_prog_compiler_static='-Bstatic'
8375 else
8376 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8377 fi
8378 ;;
8379 darwin*)
8380 # PIC is the default on this platform
8381 # Common symbols not allowed in MH_DYLIB files
8382 case $cc_basename in
8383 xlc*)
8384 lt_prog_compiler_pic='-qnocommon'
8385 lt_prog_compiler_wl='-Wl,'
8386 ;;
8387 esac
8388 ;;
8389
8390 mingw* | pw32* | os2*)
8391 # This hack is so that the source file can tell whether it is being
8392 # built for inclusion in a dll (and should export symbols for example).
8393 lt_prog_compiler_pic='-DDLL_EXPORT'
8394 ;;
8395
8396 hpux9* | hpux10* | hpux11*)
8397 lt_prog_compiler_wl='-Wl,'
8398 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8399 # not for PA HP-UX.
8400 case $host_cpu in
8401 hppa*64*|ia64*)
8402 # +Z the default
8403 ;;
8404 *)
8405 lt_prog_compiler_pic='+Z'
8406 ;;
8407 esac
8408 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8409 lt_prog_compiler_static='${wl}-a ${wl}archive'
8410 ;;
8411
8412 irix5* | irix6* | nonstopux*)
8413 lt_prog_compiler_wl='-Wl,'
8414 # PIC (with -KPIC) is the default.
8415 lt_prog_compiler_static='-non_shared'
8416 ;;
8417
8418 newsos6)
8419 lt_prog_compiler_pic='-KPIC'
8420 lt_prog_compiler_static='-Bstatic'
8421 ;;
8422
8423 linux*)
8424 case $cc_basename in
8425 icc* | ecc*)
8426 lt_prog_compiler_wl='-Wl,'
8427 lt_prog_compiler_pic='-KPIC'
8428 lt_prog_compiler_static='-static'
8429 ;;
8430 pgcc* | pgf77* | pgf90* | pgf95*)
8431 # Portland Group compilers (*not* the Pentium gcc compiler,
8432 # which looks to be a dead project)
8433 lt_prog_compiler_wl='-Wl,'
8434 lt_prog_compiler_pic='-fpic'
8435 lt_prog_compiler_static='-Bstatic'
8436 ;;
8437 ccc*)
8438 lt_prog_compiler_wl='-Wl,'
8439 # All Alpha code is PIC.
8440 lt_prog_compiler_static='-non_shared'
8441 ;;
8442 esac
8443 ;;
8444
8445 osf3* | osf4* | osf5*)
8446 lt_prog_compiler_wl='-Wl,'
8447 # All OSF/1 code is PIC.
8448 lt_prog_compiler_static='-non_shared'
8449 ;;
8450
8451 solaris*)
8452 lt_prog_compiler_pic='-KPIC'
8453 lt_prog_compiler_static='-Bstatic'
8454 case $cc_basename in
8455 f77* | f90* | f95*)
8456 lt_prog_compiler_wl='-Qoption ld ';;
8457 *)
8458 lt_prog_compiler_wl='-Wl,';;
8459 esac
8460 ;;
8461
8462 sunos4*)
8463 lt_prog_compiler_wl='-Qoption ld '
8464 lt_prog_compiler_pic='-PIC'
8465 lt_prog_compiler_static='-Bstatic'
8466 ;;
8467
8468 sysv4 | sysv4.2uw2* | sysv4.3*)
8469 lt_prog_compiler_wl='-Wl,'
8470 lt_prog_compiler_pic='-KPIC'
8471 lt_prog_compiler_static='-Bstatic'
8472 ;;
8473
8474 sysv4*MP*)
8475 if test -d /usr/nec ;then
8476 lt_prog_compiler_pic='-Kconform_pic'
8477 lt_prog_compiler_static='-Bstatic'
8478 fi
8479 ;;
8480
8481 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8482 lt_prog_compiler_wl='-Wl,'
8483 lt_prog_compiler_pic='-KPIC'
8484 lt_prog_compiler_static='-Bstatic'
8485 ;;
8486
8487 unicos*)
8488 lt_prog_compiler_wl='-Wl,'
8489 lt_prog_compiler_can_build_shared=no
8490 ;;
8491
8492 uts4*)
8493 lt_prog_compiler_pic='-pic'
8494 lt_prog_compiler_static='-Bstatic'
8495 ;;
8496
8497 *)
8498 lt_prog_compiler_can_build_shared=no
8499 ;;
8500 esac
8501 fi
8502
64ff59ba 8503{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8504echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
d9898ee8 8505
8506#
8507# Check to make sure the PIC flag actually works.
8508#
8509if test -n "$lt_prog_compiler_pic"; then
8510
64ff59ba 8511{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8512echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
d9898ee8 8513if test "${lt_prog_compiler_pic_works+set}" = set; then
8514 echo $ECHO_N "(cached) $ECHO_C" >&6
8515else
8516 lt_prog_compiler_pic_works=no
8517 ac_outfile=conftest.$ac_objext
8518 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8519 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8520 # Insert the option either (1) after the last *FLAGS variable, or
8521 # (2) before a word containing "conftest.", or (3) at the end.
8522 # Note that $ac_compile itself does not contain backslashes and begins
8523 # with a dollar sign (not a hyphen), so the echo should work correctly.
8524 # The option is referenced via a variable to avoid confusing sed.
8525 lt_compile=`echo "$ac_compile" | $SED \
8526 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8527 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8528 -e 's:$: $lt_compiler_flag:'`
64ff59ba 8529 (eval echo "\"\$as_me:8529: $lt_compile\"" >&5)
d9898ee8 8530 (eval "$lt_compile" 2>conftest.err)
8531 ac_status=$?
8532 cat conftest.err >&5
64ff59ba 8533 echo "$as_me:8533: \$? = $ac_status" >&5
d9898ee8 8534 if (exit $ac_status) && test -s "$ac_outfile"; then
8535 # The compiler can only warn and ignore the option if not recognized
8536 # So say no if there are warnings other than the usual output.
8537 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8538 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8539 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8540 lt_prog_compiler_pic_works=yes
8541 fi
8542 fi
8543 $rm conftest*
8544
8545fi
64ff59ba 8546{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8547echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
d9898ee8 8548
8549if test x"$lt_prog_compiler_pic_works" = xyes; then
8550 case $lt_prog_compiler_pic in
8551 "" | " "*) ;;
8552 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8553 esac
8554else
8555 lt_prog_compiler_pic=
8556 lt_prog_compiler_can_build_shared=no
8557fi
8558
8559fi
8560case $host_os in
8561 # For platforms which do not support PIC, -DPIC is meaningless:
8562 *djgpp*)
8563 lt_prog_compiler_pic=
8564 ;;
8565 *)
8566 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8567 ;;
8568esac
8569
8570#
8571# Check to make sure the static flag actually works.
8572#
8573wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
64ff59ba 8574{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8575echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 8576if test "${lt_prog_compiler_static_works+set}" = set; then
8577 echo $ECHO_N "(cached) $ECHO_C" >&6
8578else
8579 lt_prog_compiler_static_works=no
8580 save_LDFLAGS="$LDFLAGS"
8581 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8582 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8583 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8584 # The linker can only warn and ignore the option if not recognized
8585 # So say no if there are warnings
8586 if test -s conftest.err; then
8587 # Append any errors to the config.log.
8588 cat conftest.err 1>&5
8589 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8590 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8591 if diff conftest.exp conftest.er2 >/dev/null; then
8592 lt_prog_compiler_static_works=yes
8593 fi
8594 else
8595 lt_prog_compiler_static_works=yes
8596 fi
8597 fi
8598 $rm conftest*
8599 LDFLAGS="$save_LDFLAGS"
8600
8601fi
64ff59ba 8602{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8603echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
d9898ee8 8604
8605if test x"$lt_prog_compiler_static_works" = xyes; then
8606 :
8607else
8608 lt_prog_compiler_static=
8609fi
8610
8611
64ff59ba 8612{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8613echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 8614if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8615 echo $ECHO_N "(cached) $ECHO_C" >&6
8616else
8617 lt_cv_prog_compiler_c_o=no
8618 $rm -r conftest 2>/dev/null
8619 mkdir conftest
8620 cd conftest
8621 mkdir out
8622 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8623
8624 lt_compiler_flag="-o out/conftest2.$ac_objext"
8625 # Insert the option either (1) after the last *FLAGS variable, or
8626 # (2) before a word containing "conftest.", or (3) at the end.
8627 # Note that $ac_compile itself does not contain backslashes and begins
8628 # with a dollar sign (not a hyphen), so the echo should work correctly.
8629 lt_compile=`echo "$ac_compile" | $SED \
8630 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8631 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8632 -e 's:$: $lt_compiler_flag:'`
64ff59ba 8633 (eval echo "\"\$as_me:8633: $lt_compile\"" >&5)
d9898ee8 8634 (eval "$lt_compile" 2>out/conftest.err)
8635 ac_status=$?
8636 cat out/conftest.err >&5
64ff59ba 8637 echo "$as_me:8637: \$? = $ac_status" >&5
d9898ee8 8638 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8639 then
8640 # The compiler can only warn and ignore the option if not recognized
8641 # So say no if there are warnings
8642 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8643 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8644 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8645 lt_cv_prog_compiler_c_o=yes
8646 fi
8647 fi
8648 chmod u+w . 2>&5
8649 $rm conftest*
8650 # SGI C++ compiler will create directory out/ii_files/ for
8651 # template instantiation
8652 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8653 $rm out/* && rmdir out
8654 cd ..
8655 rmdir conftest
8656 $rm conftest*
8657
8658fi
64ff59ba 8659{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8660echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 8661
8662
8663hard_links="nottested"
8664if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8665 # do not overwrite the value of need_locks provided by the user
64ff59ba 8666 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8667echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 8668 hard_links=yes
8669 $rm conftest*
8670 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8671 touch conftest.a
8672 ln conftest.a conftest.b 2>&5 || hard_links=no
8673 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 8674 { echo "$as_me:$LINENO: result: $hard_links" >&5
8675echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 8676 if test "$hard_links" = no; then
8677 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8678echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8679 need_locks=warn
8680 fi
8681else
8682 need_locks=no
8683fi
8684
64ff59ba 8685{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8686echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 8687
8688 runpath_var=
8689 allow_undefined_flag=
8690 enable_shared_with_static_runtimes=no
8691 archive_cmds=
8692 archive_expsym_cmds=
8693 old_archive_From_new_cmds=
8694 old_archive_from_expsyms_cmds=
8695 export_dynamic_flag_spec=
8696 whole_archive_flag_spec=
8697 thread_safe_flag_spec=
8698 hardcode_libdir_flag_spec=
8699 hardcode_libdir_flag_spec_ld=
8700 hardcode_libdir_separator=
8701 hardcode_direct=no
8702 hardcode_minus_L=no
8703 hardcode_shlibpath_var=unsupported
8704 link_all_deplibs=unknown
8705 hardcode_automatic=no
8706 module_cmds=
8707 module_expsym_cmds=
8708 always_export_symbols=no
8709 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8710 # include_expsyms should be a list of space-separated symbols to be *always*
8711 # included in the symbol list
8712 include_expsyms=
8713 # exclude_expsyms can be an extended regexp of symbols to exclude
8714 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8715 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8716 # as well as any symbol that contains `d'.
8717 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8718 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8719 # platforms (ab)use it in PIC code, but their linkers get confused if
8720 # the symbol is explicitly referenced. Since portable code cannot
8721 # rely on this symbol name, it's probably fine to never include it in
8722 # preloaded symbol tables.
8723 extract_expsyms_cmds=
8724 # Just being paranoid about ensuring that cc_basename is set.
8725 for cc_temp in $compiler""; do
8726 case $cc_temp in
8727 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8728 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8729 \-*) ;;
8730 *) break;;
8731 esac
8732done
8733cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8734
8735 case $host_os in
8736 cygwin* | mingw* | pw32*)
8737 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8738 # When not using gcc, we currently assume that we are using
8739 # Microsoft Visual C++.
8740 if test "$GCC" != yes; then
8741 with_gnu_ld=no
8742 fi
8743 ;;
8744 interix*)
8745 # we just hope/assume this is gcc and not c89 (= MSVC++)
8746 with_gnu_ld=yes
8747 ;;
8748 openbsd*)
8749 with_gnu_ld=no
8750 ;;
8751 esac
8752
8753 ld_shlibs=yes
8754 if test "$with_gnu_ld" = yes; then
8755 # If archive_cmds runs LD, not CC, wlarc should be empty
8756 wlarc='${wl}'
8757
8758 # Set some defaults for GNU ld with shared library support. These
8759 # are reset later if shared libraries are not supported. Putting them
8760 # here allows them to be overridden if necessary.
8761 runpath_var=LD_RUN_PATH
8762 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8763 export_dynamic_flag_spec='${wl}--export-dynamic'
8764 # ancient GNU ld didn't support --whole-archive et. al.
8765 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8766 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8767 else
8768 whole_archive_flag_spec=
8769 fi
8770 supports_anon_versioning=no
8771 case `$LD -v 2>/dev/null` in
8772 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8773 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8774 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8775 *\ 2.11.*) ;; # other 2.11 versions
8776 *) supports_anon_versioning=yes ;;
8777 esac
8778
8779 # See if GNU ld supports shared libraries.
8780 case $host_os in
8781 aix3* | aix4* | aix5*)
8782 # On AIX/PPC, the GNU linker is very broken
8783 if test "$host_cpu" != ia64; then
8784 ld_shlibs=no
8785 cat <<EOF 1>&2
8786
8787*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8788*** to be unable to reliably create shared libraries on AIX.
8789*** Therefore, libtool is disabling shared libraries support. If you
8790*** really care for shared libraries, you may want to modify your PATH
8791*** so that a non-GNU linker is found, and then restart.
8792
8793EOF
8794 fi
8795 ;;
8796
8797 amigaos*)
8798 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)'
8799 hardcode_libdir_flag_spec='-L$libdir'
8800 hardcode_minus_L=yes
8801
8802 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8803 # that the semantics of dynamic libraries on AmigaOS, at least up
8804 # to version 4, is to share data among multiple programs linked
8805 # with the same dynamic library. Since this doesn't match the
8806 # behavior of shared libraries on other platforms, we can't use
8807 # them.
8808 ld_shlibs=no
8809 ;;
8810
8811 beos*)
8812 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8813 allow_undefined_flag=unsupported
8814 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8815 # support --undefined. This deserves some investigation. FIXME
8816 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8817 else
8818 ld_shlibs=no
8819 fi
8820 ;;
8821
8822 cygwin* | mingw* | pw32*)
8823 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8824 # as there is no search path for DLLs.
8825 hardcode_libdir_flag_spec='-L$libdir'
8826 allow_undefined_flag=unsupported
8827 always_export_symbols=no
8828 enable_shared_with_static_runtimes=yes
8829 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8830
8831 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8832 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8833 # If the export-symbols file already is a .def file (1st line
8834 # is EXPORTS), use it as is; otherwise, prepend...
8835 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8836 cp $export_symbols $output_objdir/$soname.def;
8837 else
8838 echo EXPORTS > $output_objdir/$soname.def;
8839 cat $export_symbols >> $output_objdir/$soname.def;
8840 fi~
8841 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8842 else
8843 ld_shlibs=no
8844 fi
8845 ;;
8846
8847 interix3*)
8848 hardcode_direct=no
8849 hardcode_shlibpath_var=no
8850 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8851 export_dynamic_flag_spec='${wl}-E'
8852 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8853 # Instead, shared libraries are loaded at an image base (0x10000000 by
8854 # default) and relocated if they conflict, which is a slow very memory
8855 # consuming and fragmenting process. To avoid this, we pick a random,
8856 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8857 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8858 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8859 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'
8860 ;;
8861
8862 linux*)
8863 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8864 tmp_addflag=
8865 case $cc_basename,$host_cpu in
8866 pgcc*) # Portland Group C compiler
8867 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'
8868 tmp_addflag=' $pic_flag'
8869 ;;
8870 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8871 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'
8872 tmp_addflag=' $pic_flag -Mnomain' ;;
8873 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8874 tmp_addflag=' -i_dynamic' ;;
8875 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8876 tmp_addflag=' -i_dynamic -nofor_main' ;;
8877 ifc* | ifort*) # Intel Fortran compiler
8878 tmp_addflag=' -nofor_main' ;;
8879 esac
8880 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8881
8882 if test $supports_anon_versioning = yes; then
8883 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8884 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8885 $echo "local: *; };" >> $output_objdir/$libname.ver~
8886 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8887 fi
8888 else
8889 ld_shlibs=no
8890 fi
8891 ;;
8892
8893 netbsd*)
8894 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8895 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8896 wlarc=
8897 else
8898 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8899 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8900 fi
8901 ;;
8902
8903 solaris*)
8904 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8905 ld_shlibs=no
8906 cat <<EOF 1>&2
8907
8908*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8909*** create shared libraries on Solaris systems. Therefore, libtool
8910*** is disabling shared libraries support. We urge you to upgrade GNU
8911*** binutils to release 2.9.1 or newer. Another option is to modify
8912*** your PATH or compiler configuration so that the native linker is
8913*** used, and then restart.
8914
8915EOF
8916 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8917 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8918 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8919 else
8920 ld_shlibs=no
8921 fi
8922 ;;
8923
8924 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8925 case `$LD -v 2>&1` in
8926 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8927 ld_shlibs=no
8928 cat <<_LT_EOF 1>&2
8929
8930*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8931*** reliably create shared libraries on SCO systems. Therefore, libtool
8932*** is disabling shared libraries support. We urge you to upgrade GNU
8933*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8934*** your PATH or compiler configuration so that the native linker is
8935*** used, and then restart.
8936
8937_LT_EOF
8938 ;;
8939 *)
8940 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8941 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8942 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8943 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8944 else
8945 ld_shlibs=no
8946 fi
8947 ;;
8948 esac
8949 ;;
8950
8951 sunos4*)
8952 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8953 wlarc=
8954 hardcode_direct=yes
8955 hardcode_shlibpath_var=no
8956 ;;
8957
8958 *)
8959 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8960 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8961 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8962 else
8963 ld_shlibs=no
8964 fi
8965 ;;
8966 esac
8967
8968 if test "$ld_shlibs" = no; then
8969 runpath_var=
8970 hardcode_libdir_flag_spec=
8971 export_dynamic_flag_spec=
8972 whole_archive_flag_spec=
8973 fi
8974 else
8975 # PORTME fill in a description of your system's linker (not GNU ld)
8976 case $host_os in
8977 aix3*)
8978 allow_undefined_flag=unsupported
8979 always_export_symbols=yes
8980 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'
8981 # Note: this linker hardcodes the directories in LIBPATH if there
8982 # are no directories specified by -L.
8983 hardcode_minus_L=yes
8984 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8985 # Neither direct hardcoding nor static linking is supported with a
8986 # broken collect2.
8987 hardcode_direct=unsupported
8988 fi
8989 ;;
8990
8991 aix4* | aix5*)
8992 if test "$host_cpu" = ia64; then
8993 # On IA64, the linker does run time linking by default, so we don't
8994 # have to do anything special.
8995 aix_use_runtimelinking=no
8996 exp_sym_flag='-Bexport'
8997 no_entry_flag=""
8998 else
8999 # If we're using GNU nm, then we don't want the "-C" option.
9000 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9001 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9002 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'
9003 else
9004 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'
9005 fi
9006 aix_use_runtimelinking=no
9007
9008 # Test if we are trying to use run time linking or normal
9009 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9010 # need to do runtime linking.
9011 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9012 for ld_flag in $LDFLAGS; do
9013 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9014 aix_use_runtimelinking=yes
9015 break
9016 fi
9017 done
9018 ;;
9019 esac
9020
9021 exp_sym_flag='-bexport'
9022 no_entry_flag='-bnoentry'
9023 fi
9024
9025 # When large executables or shared objects are built, AIX ld can
9026 # have problems creating the table of contents. If linking a library
9027 # or program results in "error TOC overflow" add -mminimal-toc to
9028 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9029 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9030
9031 archive_cmds=''
9032 hardcode_direct=yes
9033 hardcode_libdir_separator=':'
9034 link_all_deplibs=yes
9035
9036 if test "$GCC" = yes; then
9037 case $host_os in aix4.[012]|aix4.[012].*)
9038 # We only want to do this on AIX 4.2 and lower, the check
9039 # below for broken collect2 doesn't work under 4.3+
9040 collect2name=`${CC} -print-prog-name=collect2`
9041 if test -f "$collect2name" && \
9042 strings "$collect2name" | grep resolve_lib_name >/dev/null
9043 then
9044 # We have reworked collect2
9045 hardcode_direct=yes
9046 else
9047 # We have old collect2
9048 hardcode_direct=unsupported
9049 # It fails to find uninstalled libraries when the uninstalled
9050 # path is not listed in the libpath. Setting hardcode_minus_L
9051 # to unsupported forces relinking
9052 hardcode_minus_L=yes
9053 hardcode_libdir_flag_spec='-L$libdir'
9054 hardcode_libdir_separator=
9055 fi
9056 ;;
9057 esac
9058 shared_flag='-shared'
9059 if test "$aix_use_runtimelinking" = yes; then
9060 shared_flag="$shared_flag "'${wl}-G'
9061 fi
9062 else
9063 # not using gcc
9064 if test "$host_cpu" = ia64; then
9065 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9066 # chokes on -Wl,-G. The following line is correct:
9067 shared_flag='-G'
9068 else
9069 if test "$aix_use_runtimelinking" = yes; then
9070 shared_flag='${wl}-G'
9071 else
9072 shared_flag='${wl}-bM:SRE'
9073 fi
9074 fi
9075 fi
9076
9077 # It seems that -bexpall does not export symbols beginning with
9078 # underscore (_), so it is better to generate a list of symbols to export.
9079 always_export_symbols=yes
9080 if test "$aix_use_runtimelinking" = yes; then
9081 # Warning - without using the other runtime loading flags (-brtl),
9082 # -berok will link without error, but may produce a broken library.
9083 allow_undefined_flag='-berok'
9084 # Determine the default libpath from the value encoded in an empty executable.
9085 cat >conftest.$ac_ext <<_ACEOF
9086/* confdefs.h. */
9087_ACEOF
9088cat confdefs.h >>conftest.$ac_ext
9089cat >>conftest.$ac_ext <<_ACEOF
9090/* end confdefs.h. */
9091
9092int
9093main ()
9094{
9095
9096 ;
9097 return 0;
9098}
9099_ACEOF
9100rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9101if { (ac_try="$ac_link"
9102case "(($ac_try" in
9103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9104 *) ac_try_echo=$ac_try;;
9105esac
9106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9107 (eval "$ac_link") 2>conftest.er1
d9898ee8 9108 ac_status=$?
9109 grep -v '^ *+' conftest.er1 >conftest.err
9110 rm -f conftest.er1
9111 cat conftest.err >&5
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9113 (exit $ac_status); } && {
9114 test -z "$ac_c_werror_flag" ||
9115 test ! -s conftest.err
9116 } && test -s conftest$ac_exeext &&
9117 $as_test_x conftest$ac_exeext; then
d9898ee8 9118
9119aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9120}'`
9121# Check for a 64-bit object if we didn't find anything.
9122if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9123}'`; fi
9124else
9125 echo "$as_me: failed program was:" >&5
9126sed 's/^/| /' conftest.$ac_ext >&5
9127
64ff59ba 9128
d9898ee8 9129fi
64ff59ba 9130
9131rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9132 conftest$ac_exeext conftest.$ac_ext
9133if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9134
9135 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9136 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"
9137 else
9138 if test "$host_cpu" = ia64; then
9139 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9140 allow_undefined_flag="-z nodefs"
9141 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"
9142 else
9143 # Determine the default libpath from the value encoded in an empty executable.
9144 cat >conftest.$ac_ext <<_ACEOF
9145/* confdefs.h. */
9146_ACEOF
9147cat confdefs.h >>conftest.$ac_ext
9148cat >>conftest.$ac_ext <<_ACEOF
9149/* end confdefs.h. */
9150
9151int
9152main ()
9153{
9154
9155 ;
9156 return 0;
9157}
9158_ACEOF
9159rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9160if { (ac_try="$ac_link"
9161case "(($ac_try" in
9162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9163 *) ac_try_echo=$ac_try;;
9164esac
9165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9166 (eval "$ac_link") 2>conftest.er1
d9898ee8 9167 ac_status=$?
9168 grep -v '^ *+' conftest.er1 >conftest.err
9169 rm -f conftest.er1
9170 cat conftest.err >&5
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9172 (exit $ac_status); } && {
9173 test -z "$ac_c_werror_flag" ||
9174 test ! -s conftest.err
9175 } && test -s conftest$ac_exeext &&
9176 $as_test_x conftest$ac_exeext; then
d9898ee8 9177
9178aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9179}'`
9180# Check for a 64-bit object if we didn't find anything.
9181if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9182}'`; fi
9183else
9184 echo "$as_me: failed program was:" >&5
9185sed 's/^/| /' conftest.$ac_ext >&5
9186
64ff59ba 9187
d9898ee8 9188fi
64ff59ba 9189
9190rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9191 conftest$ac_exeext conftest.$ac_ext
9192if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9193
9194 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9195 # Warning - without using the other run time loading flags,
9196 # -berok will link without error, but may produce a broken library.
9197 no_undefined_flag=' ${wl}-bernotok'
9198 allow_undefined_flag=' ${wl}-berok'
9199 # Exported symbols can be pulled into shared objects from archives
9200 whole_archive_flag_spec='$convenience'
9201 archive_cmds_need_lc=yes
9202 # This is similar to how AIX traditionally builds its shared libraries.
9203 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'
9204 fi
9205 fi
9206 ;;
9207
9208 amigaos*)
9209 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)'
9210 hardcode_libdir_flag_spec='-L$libdir'
9211 hardcode_minus_L=yes
9212 # see comment about different semantics on the GNU ld section
9213 ld_shlibs=no
9214 ;;
9215
9216 bsdi[45]*)
9217 export_dynamic_flag_spec=-rdynamic
9218 ;;
9219
9220 cygwin* | mingw* | pw32*)
9221 # When not using gcc, we currently assume that we are using
9222 # Microsoft Visual C++.
9223 # hardcode_libdir_flag_spec is actually meaningless, as there is
9224 # no search path for DLLs.
9225 hardcode_libdir_flag_spec=' '
9226 allow_undefined_flag=unsupported
9227 # Tell ltmain to make .lib files, not .a files.
9228 libext=lib
9229 # Tell ltmain to make .dll files, not .so files.
9230 shrext_cmds=".dll"
9231 # FIXME: Setting linknames here is a bad hack.
9232 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9233 # The linker will automatically build a .lib file if we build a DLL.
9234 old_archive_From_new_cmds='true'
9235 # FIXME: Should let the user specify the lib program.
9236 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9237 fix_srcfile_path='`cygpath -w "$srcfile"`'
9238 enable_shared_with_static_runtimes=yes
9239 ;;
9240
9241 darwin* | rhapsody*)
9242 case $host_os in
9243 rhapsody* | darwin1.[012])
9244 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9245 ;;
9246 *) # Darwin 1.3 on
9247 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9248 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9249 else
9250 case ${MACOSX_DEPLOYMENT_TARGET} in
9251 10.[012])
9252 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9253 ;;
9254 10.*)
9255 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9256 ;;
9257 esac
9258 fi
9259 ;;
9260 esac
9261 archive_cmds_need_lc=no
9262 hardcode_direct=no
9263 hardcode_automatic=yes
9264 hardcode_shlibpath_var=unsupported
9265 whole_archive_flag_spec=''
9266 link_all_deplibs=yes
9267 if test "$GCC" = yes ; then
9268 output_verbose_link_cmd='echo'
9269 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9270 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9271 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9272 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}'
9273 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}'
9274 else
9275 case $cc_basename in
9276 xlc*)
9277 output_verbose_link_cmd='echo'
9278 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9279 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9280 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9281 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9282 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}'
9283 ;;
9284 *)
9285 ld_shlibs=no
9286 ;;
9287 esac
9288 fi
9289 ;;
9290
9291 dgux*)
9292 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9293 hardcode_libdir_flag_spec='-L$libdir'
9294 hardcode_shlibpath_var=no
9295 ;;
9296
9297 freebsd1*)
9298 ld_shlibs=no
9299 ;;
9300
9301 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9302 # support. Future versions do this automatically, but an explicit c++rt0.o
9303 # does not break anything, and helps significantly (at the cost of a little
9304 # extra space).
9305 freebsd2.2*)
9306 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9307 hardcode_libdir_flag_spec='-R$libdir'
9308 hardcode_direct=yes
9309 hardcode_shlibpath_var=no
9310 ;;
9311
9312 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9313 freebsd2*)
9314 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9315 hardcode_direct=yes
9316 hardcode_minus_L=yes
9317 hardcode_shlibpath_var=no
9318 ;;
9319
9320 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9321 freebsd* | kfreebsd*-gnu | dragonfly*)
9322 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9323 hardcode_libdir_flag_spec='-R$libdir'
9324 hardcode_direct=yes
9325 hardcode_shlibpath_var=no
9326 ;;
9327
9328 hpux9*)
9329 if test "$GCC" = yes; then
9330 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'
9331 else
9332 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'
9333 fi
9334 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9335 hardcode_libdir_separator=:
9336 hardcode_direct=yes
9337
9338 # hardcode_minus_L: Not really in the search PATH,
9339 # but as the default location of the library.
9340 hardcode_minus_L=yes
9341 export_dynamic_flag_spec='${wl}-E'
9342 ;;
9343
9344 hpux10*)
9345 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9346 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9347 else
9348 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9349 fi
9350 if test "$with_gnu_ld" = no; then
9351 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9352 hardcode_libdir_separator=:
9353
9354 hardcode_direct=yes
9355 export_dynamic_flag_spec='${wl}-E'
9356
9357 # hardcode_minus_L: Not really in the search PATH,
9358 # but as the default location of the library.
9359 hardcode_minus_L=yes
9360 fi
9361 ;;
9362
9363 hpux11*)
9364 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9365 case $host_cpu in
9366 hppa*64*)
9367 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9368 ;;
9369 ia64*)
9370 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9371 ;;
9372 *)
9373 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9374 ;;
9375 esac
9376 else
9377 case $host_cpu in
9378 hppa*64*)
9379 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9380 ;;
9381 ia64*)
9382 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9383 ;;
9384 *)
9385 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9386 ;;
9387 esac
9388 fi
9389 if test "$with_gnu_ld" = no; then
9390 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9391 hardcode_libdir_separator=:
9392
9393 case $host_cpu in
9394 hppa*64*|ia64*)
9395 hardcode_libdir_flag_spec_ld='+b $libdir'
9396 hardcode_direct=no
9397 hardcode_shlibpath_var=no
9398 ;;
9399 *)
9400 hardcode_direct=yes
9401 export_dynamic_flag_spec='${wl}-E'
9402
9403 # hardcode_minus_L: Not really in the search PATH,
9404 # but as the default location of the library.
9405 hardcode_minus_L=yes
9406 ;;
9407 esac
9408 fi
9409 ;;
9410
9411 irix5* | irix6* | nonstopux*)
9412 if test "$GCC" = yes; then
9413 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'
9414 else
9415 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'
9416 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9417 fi
9418 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9419 hardcode_libdir_separator=:
9420 link_all_deplibs=yes
9421 ;;
9422
9423 netbsd*)
9424 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9425 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9426 else
9427 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9428 fi
9429 hardcode_libdir_flag_spec='-R$libdir'
9430 hardcode_direct=yes
9431 hardcode_shlibpath_var=no
9432 ;;
9433
9434 newsos6)
9435 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9436 hardcode_direct=yes
9437 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9438 hardcode_libdir_separator=:
9439 hardcode_shlibpath_var=no
9440 ;;
9441
9442 openbsd*)
9443 hardcode_direct=yes
9444 hardcode_shlibpath_var=no
9445 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9446 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9447 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9448 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9449 export_dynamic_flag_spec='${wl}-E'
9450 else
9451 case $host_os in
9452 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9453 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9454 hardcode_libdir_flag_spec='-R$libdir'
9455 ;;
9456 *)
9457 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9458 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9459 ;;
9460 esac
9461 fi
9462 ;;
9463
9464 os2*)
9465 hardcode_libdir_flag_spec='-L$libdir'
9466 hardcode_minus_L=yes
9467 allow_undefined_flag=unsupported
9468 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'
9469 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9470 ;;
9471
9472 osf3*)
9473 if test "$GCC" = yes; then
9474 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9475 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'
9476 else
9477 allow_undefined_flag=' -expect_unresolved \*'
9478 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'
9479 fi
9480 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9481 hardcode_libdir_separator=:
9482 ;;
9483
9484 osf4* | osf5*) # as osf3* with the addition of -msym flag
9485 if test "$GCC" = yes; then
9486 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9487 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'
9488 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9489 else
9490 allow_undefined_flag=' -expect_unresolved \*'
9491 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'
9492 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9493 $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'
9494
9495 # Both c and cxx compiler support -rpath directly
9496 hardcode_libdir_flag_spec='-rpath $libdir'
9497 fi
9498 hardcode_libdir_separator=:
9499 ;;
9500
9501 solaris*)
9502 no_undefined_flag=' -z text'
9503 if test "$GCC" = yes; then
9504 wlarc='${wl}'
9505 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9506 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9507 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9508 else
9509 wlarc=''
9510 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9511 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9512 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9513 fi
9514 hardcode_libdir_flag_spec='-R$libdir'
9515 hardcode_shlibpath_var=no
9516 case $host_os in
9517 solaris2.[0-5] | solaris2.[0-5].*) ;;
9518 *)
9519 # The compiler driver will combine linker options so we
9520 # cannot just pass the convience library names through
9521 # without $wl, iff we do not link with $LD.
9522 # Luckily, gcc supports the same syntax we need for Sun Studio.
9523 # Supported since Solaris 2.6 (maybe 2.5.1?)
9524 case $wlarc in
9525 '')
9526 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9527 *)
9528 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9529 esac ;;
9530 esac
9531 link_all_deplibs=yes
9532 ;;
9533
9534 sunos4*)
9535 if test "x$host_vendor" = xsequent; then
9536 # Use $CC to link under sequent, because it throws in some extra .o
9537 # files that make .init and .fini sections work.
9538 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9539 else
9540 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9541 fi
9542 hardcode_libdir_flag_spec='-L$libdir'
9543 hardcode_direct=yes
9544 hardcode_minus_L=yes
9545 hardcode_shlibpath_var=no
9546 ;;
9547
9548 sysv4)
9549 case $host_vendor in
9550 sni)
9551 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9552 hardcode_direct=yes # is this really true???
9553 ;;
9554 siemens)
9555 ## LD is ld it makes a PLAMLIB
9556 ## CC just makes a GrossModule.
9557 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9558 reload_cmds='$CC -r -o $output$reload_objs'
9559 hardcode_direct=no
9560 ;;
9561 motorola)
9562 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9563 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9564 ;;
9565 esac
9566 runpath_var='LD_RUN_PATH'
9567 hardcode_shlibpath_var=no
9568 ;;
9569
9570 sysv4.3*)
9571 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9572 hardcode_shlibpath_var=no
9573 export_dynamic_flag_spec='-Bexport'
9574 ;;
9575
9576 sysv4*MP*)
9577 if test -d /usr/nec; then
9578 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9579 hardcode_shlibpath_var=no
9580 runpath_var=LD_RUN_PATH
9581 hardcode_runpath_var=yes
9582 ld_shlibs=yes
9583 fi
9584 ;;
9585
9586 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9587 no_undefined_flag='${wl}-z,text'
9588 archive_cmds_need_lc=no
9589 hardcode_shlibpath_var=no
9590 runpath_var='LD_RUN_PATH'
9591
9592 if test "$GCC" = yes; then
9593 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9594 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9595 else
9596 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9597 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9598 fi
9599 ;;
9600
9601 sysv5* | sco3.2v5* | sco5v6*)
9602 # Note: We can NOT use -z defs as we might desire, because we do not
9603 # link with -lc, and that would cause any symbols used from libc to
9604 # always be unresolved, which means just about no library would
9605 # ever link correctly. If we're not using GNU ld we use -z text
9606 # though, which does catch some bad symbols but isn't as heavy-handed
9607 # as -z defs.
9608 no_undefined_flag='${wl}-z,text'
9609 allow_undefined_flag='${wl}-z,nodefs'
9610 archive_cmds_need_lc=no
9611 hardcode_shlibpath_var=no
9612 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9613 hardcode_libdir_separator=':'
9614 link_all_deplibs=yes
9615 export_dynamic_flag_spec='${wl}-Bexport'
9616 runpath_var='LD_RUN_PATH'
9617
9618 if test "$GCC" = yes; then
9619 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9620 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9621 else
9622 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9623 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9624 fi
9625 ;;
9626
9627 uts4*)
9628 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9629 hardcode_libdir_flag_spec='-L$libdir'
9630 hardcode_shlibpath_var=no
9631 ;;
9632
9633 *)
9634 ld_shlibs=no
9635 ;;
9636 esac
9637 fi
9638
64ff59ba 9639{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9640echo "${ECHO_T}$ld_shlibs" >&6; }
d9898ee8 9641test "$ld_shlibs" = no && can_build_shared=no
9642
9643#
9644# Do we need to explicitly link libc?
9645#
9646case "x$archive_cmds_need_lc" in
9647x|xyes)
9648 # Assume -lc should be added
9649 archive_cmds_need_lc=yes
9650
9651 if test "$enable_shared" = yes && test "$GCC" = yes; then
9652 case $archive_cmds in
9653 *'~'*)
9654 # FIXME: we may have to deal with multi-command sequences.
9655 ;;
9656 '$CC '*)
9657 # Test whether the compiler implicitly links with -lc since on some
9658 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9659 # to ld, don't add -lc before -lgcc.
64ff59ba 9660 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9661echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 9662 $rm conftest*
9663 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9664
9665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9666 (eval $ac_compile) 2>&5
9667 ac_status=$?
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); } 2>conftest.err; then
9670 soname=conftest
9671 lib=conftest
9672 libobjs=conftest.$ac_objext
9673 deplibs=
9674 wl=$lt_prog_compiler_wl
9675 pic_flag=$lt_prog_compiler_pic
9676 compiler_flags=-v
9677 linker_flags=-v
9678 verstring=
9679 output_objdir=.
9680 libname=conftest
9681 lt_save_allow_undefined_flag=$allow_undefined_flag
9682 allow_undefined_flag=
9683 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9684 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9685 ac_status=$?
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); }
9688 then
9689 archive_cmds_need_lc=no
9690 else
9691 archive_cmds_need_lc=yes
9692 fi
9693 allow_undefined_flag=$lt_save_allow_undefined_flag
9694 else
9695 cat conftest.err 1>&5
9696 fi
9697 $rm conftest*
64ff59ba 9698 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9699echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
d9898ee8 9700 ;;
9701 esac
9702 fi
9703 ;;
9704esac
9705
64ff59ba 9706{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9707echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 9708library_names_spec=
9709libname_spec='lib$name'
9710soname_spec=
9711shrext_cmds=".so"
9712postinstall_cmds=
9713postuninstall_cmds=
9714finish_cmds=
9715finish_eval=
9716shlibpath_var=
9717shlibpath_overrides_runpath=unknown
9718version_type=none
9719dynamic_linker="$host_os ld.so"
9720sys_lib_dlsearch_path_spec="/lib /usr/lib"
9721if test "$GCC" = yes; then
9722 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9723 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9724 # if the path contains ";" then we assume it to be the separator
9725 # otherwise default to the standard path separator (i.e. ":") - it is
9726 # assumed that no part of a normal pathname contains ";" but that should
9727 # okay in the real world where ";" in dirpaths is itself problematic.
9728 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9729 else
9730 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9731 fi
9732else
9733 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9734fi
9735need_lib_prefix=unknown
9736hardcode_into_libs=no
9737
9738# when you set need_version to no, make sure it does not cause -set_version
9739# flags to be left without arguments
9740need_version=unknown
9741
9742case $host_os in
9743aix3*)
9744 version_type=linux
9745 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9746 shlibpath_var=LIBPATH
9747
9748 # AIX 3 has no versioning support, so we append a major version to the name.
9749 soname_spec='${libname}${release}${shared_ext}$major'
9750 ;;
9751
9752aix4* | aix5*)
9753 version_type=linux
9754 need_lib_prefix=no
9755 need_version=no
9756 hardcode_into_libs=yes
9757 if test "$host_cpu" = ia64; then
9758 # AIX 5 supports IA64
9759 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9760 shlibpath_var=LD_LIBRARY_PATH
9761 else
9762 # With GCC up to 2.95.x, collect2 would create an import file
9763 # for dependence libraries. The import file would start with
9764 # the line `#! .'. This would cause the generated library to
9765 # depend on `.', always an invalid library. This was fixed in
9766 # development snapshots of GCC prior to 3.0.
9767 case $host_os in
9768 aix4 | aix4.[01] | aix4.[01].*)
9769 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9770 echo ' yes '
9771 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9772 :
9773 else
9774 can_build_shared=no
9775 fi
9776 ;;
9777 esac
9778 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9779 # soname into executable. Probably we can add versioning support to
9780 # collect2, so additional links can be useful in future.
9781 if test "$aix_use_runtimelinking" = yes; then
9782 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9783 # instead of lib<name>.a to let people know that these are not
9784 # typical AIX shared libraries.
9785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9786 else
9787 # We preserve .a as extension for shared libraries through AIX4.2
9788 # and later when we are not doing run time linking.
9789 library_names_spec='${libname}${release}.a $libname.a'
9790 soname_spec='${libname}${release}${shared_ext}$major'
9791 fi
9792 shlibpath_var=LIBPATH
9793 fi
9794 ;;
9795
9796amigaos*)
9797 library_names_spec='$libname.ixlibrary $libname.a'
9798 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9799 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'
9800 ;;
9801
9802beos*)
9803 library_names_spec='${libname}${shared_ext}'
9804 dynamic_linker="$host_os ld.so"
9805 shlibpath_var=LIBRARY_PATH
9806 ;;
9807
9808bsdi[45]*)
9809 version_type=linux
9810 need_version=no
9811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9812 soname_spec='${libname}${release}${shared_ext}$major'
9813 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9814 shlibpath_var=LD_LIBRARY_PATH
9815 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9816 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9817 # the default ld.so.conf also contains /usr/contrib/lib and
9818 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9819 # libtool to hard-code these into programs
9820 ;;
9821
9822cygwin* | mingw* | pw32*)
9823 version_type=windows
9824 shrext_cmds=".dll"
9825 need_version=no
9826 need_lib_prefix=no
9827
9828 case $GCC,$host_os in
9829 yes,cygwin* | yes,mingw* | yes,pw32*)
9830 library_names_spec='$libname.dll.a'
9831 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9832 postinstall_cmds='base_file=`basename \${file}`~
9833 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9834 dldir=$destdir/`dirname \$dlpath`~
9835 test -d \$dldir || mkdir -p \$dldir~
9836 $install_prog $dir/$dlname \$dldir/$dlname~
9837 chmod a+x \$dldir/$dlname'
9838 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9839 dlpath=$dir/\$dldll~
9840 $rm \$dlpath'
9841 shlibpath_overrides_runpath=yes
9842
9843 case $host_os in
9844 cygwin*)
9845 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9846 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9847 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9848 ;;
9849 mingw*)
9850 # MinGW DLLs use traditional 'lib' prefix
9851 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9852 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9853 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9854 # It is most probably a Windows format PATH printed by
9855 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9856 # path with ; separators, and with drive letters. We can handle the
9857 # drive letters (cygwin fileutils understands them), so leave them,
9858 # especially as we might pass files found there to a mingw objdump,
9859 # which wouldn't understand a cygwinified path. Ahh.
9860 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9861 else
9862 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9863 fi
9864 ;;
9865 pw32*)
9866 # pw32 DLLs use 'pw' prefix rather than 'lib'
9867 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9868 ;;
9869 esac
9870 ;;
9871
9872 *)
9873 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9874 ;;
9875 esac
9876 dynamic_linker='Win32 ld.exe'
9877 # FIXME: first we should search . and the directory the executable is in
9878 shlibpath_var=PATH
9879 ;;
9880
9881darwin* | rhapsody*)
9882 dynamic_linker="$host_os dyld"
9883 version_type=darwin
9884 need_lib_prefix=no
9885 need_version=no
9886 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9887 soname_spec='${libname}${release}${major}$shared_ext'
9888 shlibpath_overrides_runpath=yes
9889 shlibpath_var=DYLD_LIBRARY_PATH
9890 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9891 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9892 if test "$GCC" = yes; then
9893 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9894 else
9895 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9896 fi
9897 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9898 ;;
9899
9900dgux*)
9901 version_type=linux
9902 need_lib_prefix=no
9903 need_version=no
9904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9905 soname_spec='${libname}${release}${shared_ext}$major'
9906 shlibpath_var=LD_LIBRARY_PATH
9907 ;;
9908
9909freebsd1*)
9910 dynamic_linker=no
9911 ;;
9912
9913kfreebsd*-gnu)
9914 version_type=linux
9915 need_lib_prefix=no
9916 need_version=no
9917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9918 soname_spec='${libname}${release}${shared_ext}$major'
9919 shlibpath_var=LD_LIBRARY_PATH
9920 shlibpath_overrides_runpath=no
9921 hardcode_into_libs=yes
9922 dynamic_linker='GNU ld.so'
9923 ;;
9924
9925freebsd* | dragonfly*)
9926 # DragonFly does not have aout. When/if they implement a new
9927 # versioning mechanism, adjust this.
9928 if test -x /usr/bin/objformat; then
9929 objformat=`/usr/bin/objformat`
9930 else
9931 case $host_os in
9932 freebsd[123]*) objformat=aout ;;
9933 *) objformat=elf ;;
9934 esac
9935 fi
9936 version_type=freebsd-$objformat
9937 case $version_type in
9938 freebsd-elf*)
9939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9940 need_version=no
9941 need_lib_prefix=no
9942 ;;
9943 freebsd-*)
9944 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9945 need_version=yes
9946 ;;
9947 esac
9948 shlibpath_var=LD_LIBRARY_PATH
9949 case $host_os in
9950 freebsd2*)
9951 shlibpath_overrides_runpath=yes
9952 ;;
9953 freebsd3.[01]* | freebsdelf3.[01]*)
9954 shlibpath_overrides_runpath=yes
9955 hardcode_into_libs=yes
9956 ;;
9957 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9958 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9959 shlibpath_overrides_runpath=no
9960 hardcode_into_libs=yes
9961 ;;
9962 freebsd*) # from 4.6 on
9963 shlibpath_overrides_runpath=yes
9964 hardcode_into_libs=yes
9965 ;;
9966 esac
9967 ;;
9968
9969gnu*)
9970 version_type=linux
9971 need_lib_prefix=no
9972 need_version=no
9973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9974 soname_spec='${libname}${release}${shared_ext}$major'
9975 shlibpath_var=LD_LIBRARY_PATH
9976 hardcode_into_libs=yes
9977 ;;
9978
9979hpux9* | hpux10* | hpux11*)
9980 # Give a soname corresponding to the major version so that dld.sl refuses to
9981 # link against other versions.
9982 version_type=sunos
9983 need_lib_prefix=no
9984 need_version=no
9985 case $host_cpu in
9986 ia64*)
9987 shrext_cmds='.so'
9988 hardcode_into_libs=yes
9989 dynamic_linker="$host_os dld.so"
9990 shlibpath_var=LD_LIBRARY_PATH
9991 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9993 soname_spec='${libname}${release}${shared_ext}$major'
9994 if test "X$HPUX_IA64_MODE" = X32; then
9995 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9996 else
9997 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9998 fi
9999 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10000 ;;
10001 hppa*64*)
10002 shrext_cmds='.sl'
10003 hardcode_into_libs=yes
10004 dynamic_linker="$host_os dld.sl"
10005 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10006 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10008 soname_spec='${libname}${release}${shared_ext}$major'
10009 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10010 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10011 ;;
10012 *)
10013 shrext_cmds='.sl'
10014 dynamic_linker="$host_os dld.sl"
10015 shlibpath_var=SHLIB_PATH
10016 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10018 soname_spec='${libname}${release}${shared_ext}$major'
10019 ;;
10020 esac
10021 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10022 postinstall_cmds='chmod 555 $lib'
10023 ;;
10024
10025interix3*)
10026 version_type=linux
10027 need_lib_prefix=no
10028 need_version=no
10029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10030 soname_spec='${libname}${release}${shared_ext}$major'
10031 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10032 shlibpath_var=LD_LIBRARY_PATH
10033 shlibpath_overrides_runpath=no
10034 hardcode_into_libs=yes
10035 ;;
10036
10037irix5* | irix6* | nonstopux*)
10038 case $host_os in
10039 nonstopux*) version_type=nonstopux ;;
10040 *)
10041 if test "$lt_cv_prog_gnu_ld" = yes; then
10042 version_type=linux
10043 else
10044 version_type=irix
10045 fi ;;
10046 esac
10047 need_lib_prefix=no
10048 need_version=no
10049 soname_spec='${libname}${release}${shared_ext}$major'
10050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10051 case $host_os in
10052 irix5* | nonstopux*)
10053 libsuff= shlibsuff=
10054 ;;
10055 *)
10056 case $LD in # libtool.m4 will add one of these switches to LD
10057 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10058 libsuff= shlibsuff= libmagic=32-bit;;
10059 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10060 libsuff=32 shlibsuff=N32 libmagic=N32;;
10061 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10062 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10063 *) libsuff= shlibsuff= libmagic=never-match;;
10064 esac
10065 ;;
10066 esac
10067 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10068 shlibpath_overrides_runpath=no
10069 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10070 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10071 hardcode_into_libs=yes
10072 ;;
10073
10074# No shared lib support for Linux oldld, aout, or coff.
10075linux*oldld* | linux*aout* | linux*coff*)
10076 dynamic_linker=no
10077 ;;
10078
10079# This must be Linux ELF.
10080linux*)
10081 version_type=linux
10082 need_lib_prefix=no
10083 need_version=no
10084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10085 soname_spec='${libname}${release}${shared_ext}$major'
10086 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10087 shlibpath_var=LD_LIBRARY_PATH
10088 shlibpath_overrides_runpath=no
10089 # This implies no fast_install, which is unacceptable.
10090 # Some rework will be needed to allow for fast_install
10091 # before this can be enabled.
10092 hardcode_into_libs=yes
10093
10094 # find out which ABI we are using
10095 libsuff=
10096 case "$host_cpu" in
10097 x86_64*|s390x*|powerpc64*)
64ff59ba 10098 echo '#line 10098 "configure"' > conftest.$ac_ext
d9898ee8 10099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10100 (eval $ac_compile) 2>&5
10101 ac_status=$?
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); }; then
10104 case `/usr/bin/file conftest.$ac_objext` in
10105 *64-bit*)
10106 libsuff=64
10107 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
10108 ;;
10109 esac
10110 fi
10111 rm -rf conftest*
10112 ;;
10113 esac
10114
10115 # Append ld.so.conf contents to the search path
10116 if test -f /etc/ld.so.conf; then
64ff59ba 10117 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/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
d9898ee8 10118 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
10119 fi
10120
10121 # We used to test for /lib/ld.so.1 and disable shared libraries on
10122 # powerpc, because MkLinux only supported shared libraries with the
10123 # GNU dynamic linker. Since this was broken with cross compilers,
10124 # most powerpc-linux boxes support dynamic linking these days and
10125 # people can always --disable-shared, the test was removed, and we
10126 # assume the GNU/Linux dynamic linker is in use.
10127 dynamic_linker='GNU/Linux ld.so'
10128 ;;
10129
10130knetbsd*-gnu)
10131 version_type=linux
10132 need_lib_prefix=no
10133 need_version=no
10134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10135 soname_spec='${libname}${release}${shared_ext}$major'
10136 shlibpath_var=LD_LIBRARY_PATH
10137 shlibpath_overrides_runpath=no
10138 hardcode_into_libs=yes
10139 dynamic_linker='GNU ld.so'
10140 ;;
10141
10142netbsd*)
10143 version_type=sunos
10144 need_lib_prefix=no
10145 need_version=no
10146 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10148 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10149 dynamic_linker='NetBSD (a.out) ld.so'
10150 else
10151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10152 soname_spec='${libname}${release}${shared_ext}$major'
10153 dynamic_linker='NetBSD ld.elf_so'
10154 fi
10155 shlibpath_var=LD_LIBRARY_PATH
10156 shlibpath_overrides_runpath=yes
10157 hardcode_into_libs=yes
10158 ;;
10159
10160newsos6)
10161 version_type=linux
10162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10163 shlibpath_var=LD_LIBRARY_PATH
10164 shlibpath_overrides_runpath=yes
10165 ;;
10166
10167nto-qnx*)
10168 version_type=linux
10169 need_lib_prefix=no
10170 need_version=no
10171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10172 soname_spec='${libname}${release}${shared_ext}$major'
10173 shlibpath_var=LD_LIBRARY_PATH
10174 shlibpath_overrides_runpath=yes
10175 ;;
10176
10177openbsd*)
10178 version_type=sunos
10179 sys_lib_dlsearch_path_spec="/usr/lib"
10180 need_lib_prefix=no
10181 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10182 case $host_os in
10183 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10184 *) need_version=no ;;
10185 esac
10186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10187 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10188 shlibpath_var=LD_LIBRARY_PATH
10189 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10190 case $host_os in
10191 openbsd2.[89] | openbsd2.[89].*)
10192 shlibpath_overrides_runpath=no
10193 ;;
10194 *)
10195 shlibpath_overrides_runpath=yes
10196 ;;
10197 esac
10198 else
10199 shlibpath_overrides_runpath=yes
10200 fi
10201 ;;
10202
10203os2*)
10204 libname_spec='$name'
10205 shrext_cmds=".dll"
10206 need_lib_prefix=no
10207 library_names_spec='$libname${shared_ext} $libname.a'
10208 dynamic_linker='OS/2 ld.exe'
10209 shlibpath_var=LIBPATH
10210 ;;
10211
10212osf3* | osf4* | osf5*)
10213 version_type=osf
10214 need_lib_prefix=no
10215 need_version=no
10216 soname_spec='${libname}${release}${shared_ext}$major'
10217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10218 shlibpath_var=LD_LIBRARY_PATH
10219 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10220 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10221 ;;
10222
10223solaris*)
10224 version_type=linux
10225 need_lib_prefix=no
10226 need_version=no
10227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10228 soname_spec='${libname}${release}${shared_ext}$major'
10229 shlibpath_var=LD_LIBRARY_PATH
10230 shlibpath_overrides_runpath=yes
10231 hardcode_into_libs=yes
10232 # ldd complains unless libraries are executable
10233 postinstall_cmds='chmod +x $lib'
10234 ;;
10235
10236sunos4*)
10237 version_type=sunos
10238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10239 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10240 shlibpath_var=LD_LIBRARY_PATH
10241 shlibpath_overrides_runpath=yes
10242 if test "$with_gnu_ld" = yes; then
10243 need_lib_prefix=no
10244 fi
10245 need_version=yes
10246 ;;
10247
10248sysv4 | sysv4.3*)
10249 version_type=linux
10250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10251 soname_spec='${libname}${release}${shared_ext}$major'
10252 shlibpath_var=LD_LIBRARY_PATH
10253 case $host_vendor in
10254 sni)
10255 shlibpath_overrides_runpath=no
10256 need_lib_prefix=no
10257 export_dynamic_flag_spec='${wl}-Blargedynsym'
10258 runpath_var=LD_RUN_PATH
10259 ;;
10260 siemens)
10261 need_lib_prefix=no
10262 ;;
10263 motorola)
10264 need_lib_prefix=no
10265 need_version=no
10266 shlibpath_overrides_runpath=no
10267 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10268 ;;
10269 esac
10270 ;;
10271
10272sysv4*MP*)
10273 if test -d /usr/nec ;then
10274 version_type=linux
10275 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10276 soname_spec='$libname${shared_ext}.$major'
10277 shlibpath_var=LD_LIBRARY_PATH
10278 fi
10279 ;;
10280
10281sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10282 version_type=freebsd-elf
10283 need_lib_prefix=no
10284 need_version=no
10285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10286 soname_spec='${libname}${release}${shared_ext}$major'
10287 shlibpath_var=LD_LIBRARY_PATH
10288 hardcode_into_libs=yes
10289 if test "$with_gnu_ld" = yes; then
10290 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10291 shlibpath_overrides_runpath=no
10292 else
10293 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10294 shlibpath_overrides_runpath=yes
10295 case $host_os in
10296 sco3.2v5*)
10297 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10298 ;;
10299 esac
10300 fi
10301 sys_lib_dlsearch_path_spec='/usr/lib'
10302 ;;
10303
10304uts4*)
10305 version_type=linux
10306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10307 soname_spec='${libname}${release}${shared_ext}$major'
10308 shlibpath_var=LD_LIBRARY_PATH
10309 ;;
10310
10311*)
10312 dynamic_linker=no
10313 ;;
10314esac
64ff59ba 10315{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10316echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 10317test "$dynamic_linker" = no && can_build_shared=no
10318
10319variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10320if test "$GCC" = yes; then
10321 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10322fi
10323
64ff59ba 10324{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10325echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 10326hardcode_action=
10327if test -n "$hardcode_libdir_flag_spec" || \
10328 test -n "$runpath_var" || \
10329 test "X$hardcode_automatic" = "Xyes" ; then
10330
10331 # We can hardcode non-existant directories.
10332 if test "$hardcode_direct" != no &&
10333 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10334 # have to relink, otherwise we might link with an installed library
10335 # when we should be linking with a yet-to-be-installed one
10336 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10337 test "$hardcode_minus_L" != no; then
10338 # Linking always hardcodes the temporary library directory.
10339 hardcode_action=relink
10340 else
10341 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10342 hardcode_action=immediate
10343 fi
10344else
10345 # We cannot hardcode anything, or else we can only hardcode existing
10346 # directories.
10347 hardcode_action=unsupported
10348fi
64ff59ba 10349{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
10350echo "${ECHO_T}$hardcode_action" >&6; }
d9898ee8 10351
10352if test "$hardcode_action" = relink; then
10353 # Fast installation is not supported
10354 enable_fast_install=no
10355elif test "$shlibpath_overrides_runpath" = yes ||
10356 test "$enable_shared" = no; then
10357 # Fast installation is not necessary
10358 enable_fast_install=needless
10359fi
10360
10361striplib=
10362old_striplib=
64ff59ba 10363{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10364echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
d9898ee8 10365if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10366 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10367 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
64ff59ba 10368 { echo "$as_me:$LINENO: result: yes" >&5
10369echo "${ECHO_T}yes" >&6; }
d9898ee8 10370else
10371# FIXME - insert some real tests, host_os isn't really good enough
10372 case $host_os in
10373 darwin*)
10374 if test -n "$STRIP" ; then
10375 striplib="$STRIP -x"
64ff59ba 10376 { echo "$as_me:$LINENO: result: yes" >&5
10377echo "${ECHO_T}yes" >&6; }
d9898ee8 10378 else
64ff59ba 10379 { echo "$as_me:$LINENO: result: no" >&5
10380echo "${ECHO_T}no" >&6; }
d9898ee8 10381fi
10382 ;;
10383 *)
64ff59ba 10384 { echo "$as_me:$LINENO: result: no" >&5
10385echo "${ECHO_T}no" >&6; }
d9898ee8 10386 ;;
10387 esac
10388fi
10389
10390if test "x$enable_dlopen" != xyes; then
10391 enable_dlopen=unknown
10392 enable_dlopen_self=unknown
10393 enable_dlopen_self_static=unknown
10394else
10395 lt_cv_dlopen=no
10396 lt_cv_dlopen_libs=
10397
10398 case $host_os in
10399 beos*)
10400 lt_cv_dlopen="load_add_on"
10401 lt_cv_dlopen_libs=
10402 lt_cv_dlopen_self=yes
10403 ;;
10404
10405 mingw* | pw32*)
10406 lt_cv_dlopen="LoadLibrary"
10407 lt_cv_dlopen_libs=
10408 ;;
10409
10410 cygwin*)
10411 lt_cv_dlopen="dlopen"
10412 lt_cv_dlopen_libs=
10413 ;;
10414
10415 darwin*)
10416 # if libdl is installed we need to link against it
64ff59ba 10417 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10418echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 10419if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10420 echo $ECHO_N "(cached) $ECHO_C" >&6
10421else
10422 ac_check_lib_save_LIBS=$LIBS
10423LIBS="-ldl $LIBS"
10424cat >conftest.$ac_ext <<_ACEOF
10425/* confdefs.h. */
10426_ACEOF
10427cat confdefs.h >>conftest.$ac_ext
10428cat >>conftest.$ac_ext <<_ACEOF
10429/* end confdefs.h. */
10430
64ff59ba 10431/* Override any GCC internal prototype to avoid an error.
10432 Use char because int might match the return type of a GCC
10433 builtin and then its argument prototype would still apply. */
d9898ee8 10434#ifdef __cplusplus
10435extern "C"
10436#endif
d9898ee8 10437char dlopen ();
10438int
10439main ()
10440{
64ff59ba 10441return dlopen ();
d9898ee8 10442 ;
10443 return 0;
10444}
10445_ACEOF
10446rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 10447if { (ac_try="$ac_link"
10448case "(($ac_try" in
10449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10450 *) ac_try_echo=$ac_try;;
10451esac
10452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10453 (eval "$ac_link") 2>conftest.er1
d9898ee8 10454 ac_status=$?
10455 grep -v '^ *+' conftest.er1 >conftest.err
10456 rm -f conftest.er1
10457 cat conftest.err >&5
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 10459 (exit $ac_status); } && {
10460 test -z "$ac_c_werror_flag" ||
10461 test ! -s conftest.err
10462 } && test -s conftest$ac_exeext &&
10463 $as_test_x conftest$ac_exeext; then
d9898ee8 10464 ac_cv_lib_dl_dlopen=yes
10465else
10466 echo "$as_me: failed program was:" >&5
10467sed 's/^/| /' conftest.$ac_ext >&5
10468
64ff59ba 10469 ac_cv_lib_dl_dlopen=no
d9898ee8 10470fi
64ff59ba 10471
10472rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 10473 conftest$ac_exeext conftest.$ac_ext
10474LIBS=$ac_check_lib_save_LIBS
10475fi
64ff59ba 10476{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10477echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 10478if test $ac_cv_lib_dl_dlopen = yes; then
10479 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10480else
10481
10482 lt_cv_dlopen="dyld"
10483 lt_cv_dlopen_libs=
10484 lt_cv_dlopen_self=yes
10485
10486fi
10487
10488 ;;
10489
10490 *)
64ff59ba 10491 { echo "$as_me:$LINENO: checking for shl_load" >&5
10492echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
d9898ee8 10493if test "${ac_cv_func_shl_load+set}" = set; then
10494 echo $ECHO_N "(cached) $ECHO_C" >&6
10495else
10496 cat >conftest.$ac_ext <<_ACEOF
10497/* confdefs.h. */
10498_ACEOF
10499cat confdefs.h >>conftest.$ac_ext
10500cat >>conftest.$ac_ext <<_ACEOF
10501/* end confdefs.h. */
10502/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10504#define shl_load innocuous_shl_load
10505
10506/* System header to define __stub macros and hopefully few prototypes,
10507 which can conflict with char shl_load (); below.
10508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10509 <limits.h> exists even on freestanding compilers. */
10510
10511#ifdef __STDC__
10512# include <limits.h>
10513#else
10514# include <assert.h>
10515#endif
10516
10517#undef shl_load
10518
64ff59ba 10519/* Override any GCC internal prototype to avoid an error.
10520 Use char because int might match the return type of a GCC
10521 builtin and then its argument prototype would still apply. */
d9898ee8 10522#ifdef __cplusplus
10523extern "C"
d9898ee8 10524#endif
d9898ee8 10525char shl_load ();
10526/* The GNU C library defines this for functions which it implements
10527 to always fail with ENOSYS. Some functions are actually named
10528 something starting with __ and the normal name is an alias. */
64ff59ba 10529#if defined __stub_shl_load || defined __stub___shl_load
d9898ee8 10530choke me
d9898ee8 10531#endif
10532
10533int
10534main ()
10535{
64ff59ba 10536return shl_load ();
d9898ee8 10537 ;
10538 return 0;
10539}
10540_ACEOF
10541rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 10542if { (ac_try="$ac_link"
10543case "(($ac_try" in
10544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10545 *) ac_try_echo=$ac_try;;
10546esac
10547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10548 (eval "$ac_link") 2>conftest.er1
d9898ee8 10549 ac_status=$?
10550 grep -v '^ *+' conftest.er1 >conftest.err
10551 rm -f conftest.er1
10552 cat conftest.err >&5
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 10554 (exit $ac_status); } && {
10555 test -z "$ac_c_werror_flag" ||
10556 test ! -s conftest.err
10557 } && test -s conftest$ac_exeext &&
10558 $as_test_x conftest$ac_exeext; then
d9898ee8 10559 ac_cv_func_shl_load=yes
10560else
10561 echo "$as_me: failed program was:" >&5
10562sed 's/^/| /' conftest.$ac_ext >&5
10563
64ff59ba 10564 ac_cv_func_shl_load=no
d9898ee8 10565fi
64ff59ba 10566
10567rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 10568 conftest$ac_exeext conftest.$ac_ext
10569fi
64ff59ba 10570{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10571echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
d9898ee8 10572if test $ac_cv_func_shl_load = yes; then
10573 lt_cv_dlopen="shl_load"
10574else
64ff59ba 10575 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10576echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
d9898ee8 10577if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10578 echo $ECHO_N "(cached) $ECHO_C" >&6
10579else
10580 ac_check_lib_save_LIBS=$LIBS
10581LIBS="-ldld $LIBS"
10582cat >conftest.$ac_ext <<_ACEOF
10583/* confdefs.h. */
10584_ACEOF
10585cat confdefs.h >>conftest.$ac_ext
10586cat >>conftest.$ac_ext <<_ACEOF
10587/* end confdefs.h. */
10588
64ff59ba 10589/* Override any GCC internal prototype to avoid an error.
10590 Use char because int might match the return type of a GCC
10591 builtin and then its argument prototype would still apply. */
d9898ee8 10592#ifdef __cplusplus
10593extern "C"
10594#endif
d9898ee8 10595char shl_load ();
10596int
10597main ()
10598{
64ff59ba 10599return shl_load ();
d9898ee8 10600 ;
10601 return 0;
10602}
10603_ACEOF
10604rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 10605if { (ac_try="$ac_link"
10606case "(($ac_try" in
10607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10608 *) ac_try_echo=$ac_try;;
10609esac
10610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10611 (eval "$ac_link") 2>conftest.er1
d9898ee8 10612 ac_status=$?
10613 grep -v '^ *+' conftest.er1 >conftest.err
10614 rm -f conftest.er1
10615 cat conftest.err >&5
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 10617 (exit $ac_status); } && {
10618 test -z "$ac_c_werror_flag" ||
10619 test ! -s conftest.err
10620 } && test -s conftest$ac_exeext &&
10621 $as_test_x conftest$ac_exeext; then
d9898ee8 10622 ac_cv_lib_dld_shl_load=yes
10623else
10624 echo "$as_me: failed program was:" >&5
10625sed 's/^/| /' conftest.$ac_ext >&5
10626
64ff59ba 10627 ac_cv_lib_dld_shl_load=no
d9898ee8 10628fi
64ff59ba 10629
10630rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 10631 conftest$ac_exeext conftest.$ac_ext
10632LIBS=$ac_check_lib_save_LIBS
10633fi
64ff59ba 10634{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10635echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
d9898ee8 10636if test $ac_cv_lib_dld_shl_load = yes; then
10637 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10638else
64ff59ba 10639 { echo "$as_me:$LINENO: checking for dlopen" >&5
10640echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
d9898ee8 10641if test "${ac_cv_func_dlopen+set}" = set; then
10642 echo $ECHO_N "(cached) $ECHO_C" >&6
10643else
10644 cat >conftest.$ac_ext <<_ACEOF
10645/* confdefs.h. */
10646_ACEOF
10647cat confdefs.h >>conftest.$ac_ext
10648cat >>conftest.$ac_ext <<_ACEOF
10649/* end confdefs.h. */
10650/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10652#define dlopen innocuous_dlopen
10653
10654/* System header to define __stub macros and hopefully few prototypes,
10655 which can conflict with char dlopen (); below.
10656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10657 <limits.h> exists even on freestanding compilers. */
10658
10659#ifdef __STDC__
10660# include <limits.h>
10661#else
10662# include <assert.h>
10663#endif
10664
10665#undef dlopen
10666
64ff59ba 10667/* Override any GCC internal prototype to avoid an error.
10668 Use char because int might match the return type of a GCC
10669 builtin and then its argument prototype would still apply. */
d9898ee8 10670#ifdef __cplusplus
10671extern "C"
d9898ee8 10672#endif
d9898ee8 10673char dlopen ();
10674/* The GNU C library defines this for functions which it implements
10675 to always fail with ENOSYS. Some functions are actually named
10676 something starting with __ and the normal name is an alias. */
64ff59ba 10677#if defined __stub_dlopen || defined __stub___dlopen
d9898ee8 10678choke me
d9898ee8 10679#endif
10680
10681int
10682main ()
10683{
64ff59ba 10684return dlopen ();
d9898ee8 10685 ;
10686 return 0;
10687}
10688_ACEOF
10689rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 10690if { (ac_try="$ac_link"
10691case "(($ac_try" in
10692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10693 *) ac_try_echo=$ac_try;;
10694esac
10695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10696 (eval "$ac_link") 2>conftest.er1
d9898ee8 10697 ac_status=$?
10698 grep -v '^ *+' conftest.er1 >conftest.err
10699 rm -f conftest.er1
10700 cat conftest.err >&5
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 10702 (exit $ac_status); } && {
10703 test -z "$ac_c_werror_flag" ||
10704 test ! -s conftest.err
10705 } && test -s conftest$ac_exeext &&
10706 $as_test_x conftest$ac_exeext; then
d9898ee8 10707 ac_cv_func_dlopen=yes
10708else
10709 echo "$as_me: failed program was:" >&5
10710sed 's/^/| /' conftest.$ac_ext >&5
10711
64ff59ba 10712 ac_cv_func_dlopen=no
d9898ee8 10713fi
64ff59ba 10714
10715rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 10716 conftest$ac_exeext conftest.$ac_ext
10717fi
64ff59ba 10718{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10719echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
d9898ee8 10720if test $ac_cv_func_dlopen = yes; then
10721 lt_cv_dlopen="dlopen"
10722else
64ff59ba 10723 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10724echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 10725if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10726 echo $ECHO_N "(cached) $ECHO_C" >&6
10727else
10728 ac_check_lib_save_LIBS=$LIBS
10729LIBS="-ldl $LIBS"
10730cat >conftest.$ac_ext <<_ACEOF
10731/* confdefs.h. */
10732_ACEOF
10733cat confdefs.h >>conftest.$ac_ext
10734cat >>conftest.$ac_ext <<_ACEOF
10735/* end confdefs.h. */
10736
64ff59ba 10737/* Override any GCC internal prototype to avoid an error.
10738 Use char because int might match the return type of a GCC
10739 builtin and then its argument prototype would still apply. */
d9898ee8 10740#ifdef __cplusplus
10741extern "C"
10742#endif
d9898ee8 10743char dlopen ();
10744int
10745main ()
10746{
64ff59ba 10747return dlopen ();
d9898ee8 10748 ;
10749 return 0;
10750}
10751_ACEOF
10752rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 10753if { (ac_try="$ac_link"
10754case "(($ac_try" in
10755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10756 *) ac_try_echo=$ac_try;;
10757esac
10758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10759 (eval "$ac_link") 2>conftest.er1
d9898ee8 10760 ac_status=$?
10761 grep -v '^ *+' conftest.er1 >conftest.err
10762 rm -f conftest.er1
10763 cat conftest.err >&5
10764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 10765 (exit $ac_status); } && {
10766 test -z "$ac_c_werror_flag" ||
10767 test ! -s conftest.err
10768 } && test -s conftest$ac_exeext &&
10769 $as_test_x conftest$ac_exeext; then
d9898ee8 10770 ac_cv_lib_dl_dlopen=yes
10771else
10772 echo "$as_me: failed program was:" >&5
10773sed 's/^/| /' conftest.$ac_ext >&5
10774
64ff59ba 10775 ac_cv_lib_dl_dlopen=no
d9898ee8 10776fi
64ff59ba 10777
10778rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 10779 conftest$ac_exeext conftest.$ac_ext
10780LIBS=$ac_check_lib_save_LIBS
10781fi
64ff59ba 10782{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10783echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 10784if test $ac_cv_lib_dl_dlopen = yes; then
10785 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10786else
64ff59ba 10787 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10788echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
d9898ee8 10789if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10790 echo $ECHO_N "(cached) $ECHO_C" >&6
10791else
10792 ac_check_lib_save_LIBS=$LIBS
10793LIBS="-lsvld $LIBS"
10794cat >conftest.$ac_ext <<_ACEOF
10795/* confdefs.h. */
10796_ACEOF
10797cat confdefs.h >>conftest.$ac_ext
10798cat >>conftest.$ac_ext <<_ACEOF
10799/* end confdefs.h. */
10800
64ff59ba 10801/* Override any GCC internal prototype to avoid an error.
10802 Use char because int might match the return type of a GCC
10803 builtin and then its argument prototype would still apply. */
d9898ee8 10804#ifdef __cplusplus
10805extern "C"
10806#endif
d9898ee8 10807char dlopen ();
10808int
10809main ()
10810{
64ff59ba 10811return dlopen ();
d9898ee8 10812 ;
10813 return 0;
10814}
10815_ACEOF
10816rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 10817if { (ac_try="$ac_link"
10818case "(($ac_try" in
10819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10820 *) ac_try_echo=$ac_try;;
10821esac
10822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10823 (eval "$ac_link") 2>conftest.er1
d9898ee8 10824 ac_status=$?
10825 grep -v '^ *+' conftest.er1 >conftest.err
10826 rm -f conftest.er1
10827 cat conftest.err >&5
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 10829 (exit $ac_status); } && {
10830 test -z "$ac_c_werror_flag" ||
10831 test ! -s conftest.err
10832 } && test -s conftest$ac_exeext &&
10833 $as_test_x conftest$ac_exeext; then
d9898ee8 10834 ac_cv_lib_svld_dlopen=yes
10835else
10836 echo "$as_me: failed program was:" >&5
10837sed 's/^/| /' conftest.$ac_ext >&5
10838
64ff59ba 10839 ac_cv_lib_svld_dlopen=no
d9898ee8 10840fi
64ff59ba 10841
10842rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 10843 conftest$ac_exeext conftest.$ac_ext
10844LIBS=$ac_check_lib_save_LIBS
10845fi
64ff59ba 10846{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10847echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
d9898ee8 10848if test $ac_cv_lib_svld_dlopen = yes; then
10849 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10850else
64ff59ba 10851 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10852echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
d9898ee8 10853if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10854 echo $ECHO_N "(cached) $ECHO_C" >&6
10855else
10856 ac_check_lib_save_LIBS=$LIBS
10857LIBS="-ldld $LIBS"
10858cat >conftest.$ac_ext <<_ACEOF
10859/* confdefs.h. */
10860_ACEOF
10861cat confdefs.h >>conftest.$ac_ext
10862cat >>conftest.$ac_ext <<_ACEOF
10863/* end confdefs.h. */
10864
64ff59ba 10865/* Override any GCC internal prototype to avoid an error.
10866 Use char because int might match the return type of a GCC
10867 builtin and then its argument prototype would still apply. */
d9898ee8 10868#ifdef __cplusplus
10869extern "C"
10870#endif
d9898ee8 10871char dld_link ();
10872int
10873main ()
10874{
64ff59ba 10875return dld_link ();
d9898ee8 10876 ;
10877 return 0;
10878}
10879_ACEOF
10880rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 10881if { (ac_try="$ac_link"
10882case "(($ac_try" in
10883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10884 *) ac_try_echo=$ac_try;;
10885esac
10886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10887 (eval "$ac_link") 2>conftest.er1
d9898ee8 10888 ac_status=$?
10889 grep -v '^ *+' conftest.er1 >conftest.err
10890 rm -f conftest.er1
10891 cat conftest.err >&5
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 10893 (exit $ac_status); } && {
10894 test -z "$ac_c_werror_flag" ||
10895 test ! -s conftest.err
10896 } && test -s conftest$ac_exeext &&
10897 $as_test_x conftest$ac_exeext; then
d9898ee8 10898 ac_cv_lib_dld_dld_link=yes
10899else
10900 echo "$as_me: failed program was:" >&5
10901sed 's/^/| /' conftest.$ac_ext >&5
10902
64ff59ba 10903 ac_cv_lib_dld_dld_link=no
d9898ee8 10904fi
64ff59ba 10905
10906rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 10907 conftest$ac_exeext conftest.$ac_ext
10908LIBS=$ac_check_lib_save_LIBS
10909fi
64ff59ba 10910{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10911echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
d9898ee8 10912if test $ac_cv_lib_dld_dld_link = yes; then
10913 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10914fi
10915
10916
10917fi
10918
10919
10920fi
10921
10922
10923fi
10924
10925
10926fi
10927
10928
10929fi
10930
10931 ;;
10932 esac
10933
10934 if test "x$lt_cv_dlopen" != xno; then
10935 enable_dlopen=yes
10936 else
10937 enable_dlopen=no
10938 fi
10939
10940 case $lt_cv_dlopen in
10941 dlopen)
10942 save_CPPFLAGS="$CPPFLAGS"
10943 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10944
10945 save_LDFLAGS="$LDFLAGS"
10946 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10947
10948 save_LIBS="$LIBS"
10949 LIBS="$lt_cv_dlopen_libs $LIBS"
10950
64ff59ba 10951 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10952echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
d9898ee8 10953if test "${lt_cv_dlopen_self+set}" = set; then
10954 echo $ECHO_N "(cached) $ECHO_C" >&6
10955else
10956 if test "$cross_compiling" = yes; then :
10957 lt_cv_dlopen_self=cross
10958else
10959 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10960 lt_status=$lt_dlunknown
10961 cat > conftest.$ac_ext <<EOF
64ff59ba 10962#line 10962 "configure"
d9898ee8 10963#include "confdefs.h"
10964
10965#if HAVE_DLFCN_H
10966#include <dlfcn.h>
10967#endif
10968
10969#include <stdio.h>
10970
10971#ifdef RTLD_GLOBAL
10972# define LT_DLGLOBAL RTLD_GLOBAL
10973#else
10974# ifdef DL_GLOBAL
10975# define LT_DLGLOBAL DL_GLOBAL
10976# else
10977# define LT_DLGLOBAL 0
10978# endif
10979#endif
10980
10981/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10982 find out it does not work in some platform. */
10983#ifndef LT_DLLAZY_OR_NOW
10984# ifdef RTLD_LAZY
10985# define LT_DLLAZY_OR_NOW RTLD_LAZY
10986# else
10987# ifdef DL_LAZY
10988# define LT_DLLAZY_OR_NOW DL_LAZY
10989# else
10990# ifdef RTLD_NOW
10991# define LT_DLLAZY_OR_NOW RTLD_NOW
10992# else
10993# ifdef DL_NOW
10994# define LT_DLLAZY_OR_NOW DL_NOW
10995# else
10996# define LT_DLLAZY_OR_NOW 0
10997# endif
10998# endif
10999# endif
11000# endif
11001#endif
11002
11003#ifdef __cplusplus
11004extern "C" void exit (int);
11005#endif
11006
11007void fnord() { int i=42;}
11008int main ()
11009{
11010 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11011 int status = $lt_dlunknown;
11012
11013 if (self)
11014 {
11015 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11016 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11017 /* dlclose (self); */
11018 }
11019 else
11020 puts (dlerror ());
11021
11022 exit (status);
11023}
11024EOF
11025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11026 (eval $ac_link) 2>&5
11027 ac_status=$?
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11030 (./conftest; exit; ) >&5 2>/dev/null
11031 lt_status=$?
11032 case x$lt_status in
11033 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11034 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11035 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11036 esac
11037 else :
11038 # compilation failed
11039 lt_cv_dlopen_self=no
11040 fi
11041fi
11042rm -fr conftest*
11043
11044
11045fi
64ff59ba 11046{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11047echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
d9898ee8 11048
11049 if test "x$lt_cv_dlopen_self" = xyes; then
11050 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
64ff59ba 11051 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11052echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
d9898ee8 11053if test "${lt_cv_dlopen_self_static+set}" = set; then
11054 echo $ECHO_N "(cached) $ECHO_C" >&6
11055else
11056 if test "$cross_compiling" = yes; then :
11057 lt_cv_dlopen_self_static=cross
11058else
11059 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11060 lt_status=$lt_dlunknown
11061 cat > conftest.$ac_ext <<EOF
64ff59ba 11062#line 11062 "configure"
d9898ee8 11063#include "confdefs.h"
11064
11065#if HAVE_DLFCN_H
11066#include <dlfcn.h>
11067#endif
11068
11069#include <stdio.h>
11070
11071#ifdef RTLD_GLOBAL
11072# define LT_DLGLOBAL RTLD_GLOBAL
11073#else
11074# ifdef DL_GLOBAL
11075# define LT_DLGLOBAL DL_GLOBAL
11076# else
11077# define LT_DLGLOBAL 0
11078# endif
11079#endif
11080
11081/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11082 find out it does not work in some platform. */
11083#ifndef LT_DLLAZY_OR_NOW
11084# ifdef RTLD_LAZY
11085# define LT_DLLAZY_OR_NOW RTLD_LAZY
11086# else
11087# ifdef DL_LAZY
11088# define LT_DLLAZY_OR_NOW DL_LAZY
11089# else
11090# ifdef RTLD_NOW
11091# define LT_DLLAZY_OR_NOW RTLD_NOW
11092# else
11093# ifdef DL_NOW
11094# define LT_DLLAZY_OR_NOW DL_NOW
11095# else
11096# define LT_DLLAZY_OR_NOW 0
11097# endif
11098# endif
11099# endif
11100# endif
11101#endif
11102
11103#ifdef __cplusplus
11104extern "C" void exit (int);
11105#endif
11106
11107void fnord() { int i=42;}
11108int main ()
11109{
11110 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11111 int status = $lt_dlunknown;
11112
11113 if (self)
11114 {
11115 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11116 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11117 /* dlclose (self); */
11118 }
11119 else
11120 puts (dlerror ());
11121
11122 exit (status);
11123}
11124EOF
11125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11126 (eval $ac_link) 2>&5
11127 ac_status=$?
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11130 (./conftest; exit; ) >&5 2>/dev/null
11131 lt_status=$?
11132 case x$lt_status in
11133 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11134 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11135 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11136 esac
11137 else :
11138 # compilation failed
11139 lt_cv_dlopen_self_static=no
11140 fi
11141fi
11142rm -fr conftest*
11143
11144
11145fi
64ff59ba 11146{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11147echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
d9898ee8 11148 fi
11149
11150 CPPFLAGS="$save_CPPFLAGS"
11151 LDFLAGS="$save_LDFLAGS"
11152 LIBS="$save_LIBS"
11153 ;;
11154 esac
11155
11156 case $lt_cv_dlopen_self in
11157 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11158 *) enable_dlopen_self=unknown ;;
11159 esac
11160
11161 case $lt_cv_dlopen_self_static in
11162 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11163 *) enable_dlopen_self_static=unknown ;;
11164 esac
11165fi
11166
11167
11168# Report which library types will actually be built
64ff59ba 11169{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11170echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11171{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
11172echo "${ECHO_T}$can_build_shared" >&6; }
d9898ee8 11173
64ff59ba 11174{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11175echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d9898ee8 11176test "$can_build_shared" = "no" && enable_shared=no
11177
11178# On AIX, shared libraries and static libraries use the same namespace, and
11179# are all built from PIC.
11180case $host_os in
11181aix3*)
11182 test "$enable_shared" = yes && enable_static=no
11183 if test -n "$RANLIB"; then
11184 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11185 postinstall_cmds='$RANLIB $lib'
11186 fi
11187 ;;
11188
11189aix4* | aix5*)
11190 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11191 test "$enable_shared" = yes && enable_static=no
11192 fi
11193 ;;
11194esac
64ff59ba 11195{ echo "$as_me:$LINENO: result: $enable_shared" >&5
11196echo "${ECHO_T}$enable_shared" >&6; }
d9898ee8 11197
64ff59ba 11198{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11199echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d9898ee8 11200# Make sure either enable_shared or enable_static is yes.
11201test "$enable_shared" = yes || enable_static=yes
64ff59ba 11202{ echo "$as_me:$LINENO: result: $enable_static" >&5
11203echo "${ECHO_T}$enable_static" >&6; }
d9898ee8 11204
11205# The else clause should only fire when bootstrapping the
11206# libtool distribution, otherwise you forgot to ship ltmain.sh
11207# with your package, and you will get complaints that there are
11208# no rules to generate ltmain.sh.
11209if test -f "$ltmain"; then
11210 # See if we are running on zsh, and set the options which allow our commands through
11211 # without removal of \ escapes.
11212 if test -n "${ZSH_VERSION+set}" ; then
11213 setopt NO_GLOB_SUBST
11214 fi
11215 # Now quote all the things that may contain metacharacters while being
11216 # careful not to overquote the AC_SUBSTed values. We take copies of the
11217 # variables and quote the copies for generation of the libtool script.
11218 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11219 SED SHELL STRIP \
11220 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11221 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11222 deplibs_check_method reload_flag reload_cmds need_locks \
11223 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11224 lt_cv_sys_global_symbol_to_c_name_address \
11225 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11226 old_postinstall_cmds old_postuninstall_cmds \
11227 compiler \
11228 CC \
11229 LD \
11230 lt_prog_compiler_wl \
11231 lt_prog_compiler_pic \
11232 lt_prog_compiler_static \
11233 lt_prog_compiler_no_builtin_flag \
11234 export_dynamic_flag_spec \
11235 thread_safe_flag_spec \
11236 whole_archive_flag_spec \
11237 enable_shared_with_static_runtimes \
11238 old_archive_cmds \
11239 old_archive_from_new_cmds \
11240 predep_objects \
11241 postdep_objects \
11242 predeps \
11243 postdeps \
11244 compiler_lib_search_path \
11245 archive_cmds \
11246 archive_expsym_cmds \
11247 postinstall_cmds \
11248 postuninstall_cmds \
11249 old_archive_from_expsyms_cmds \
11250 allow_undefined_flag \
11251 no_undefined_flag \
11252 export_symbols_cmds \
11253 hardcode_libdir_flag_spec \
11254 hardcode_libdir_flag_spec_ld \
11255 hardcode_libdir_separator \
11256 hardcode_automatic \
11257 module_cmds \
11258 module_expsym_cmds \
11259 lt_cv_prog_compiler_c_o \
11260 exclude_expsyms \
11261 include_expsyms; do
11262
11263 case $var in
11264 old_archive_cmds | \
11265 old_archive_from_new_cmds | \
11266 archive_cmds | \
11267 archive_expsym_cmds | \
11268 module_cmds | \
11269 module_expsym_cmds | \
11270 old_archive_from_expsyms_cmds | \
11271 export_symbols_cmds | \
11272 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11273 postinstall_cmds | postuninstall_cmds | \
11274 old_postinstall_cmds | old_postuninstall_cmds | \
11275 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11276 # Double-quote double-evaled strings.
11277 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11278 ;;
11279 *)
11280 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11281 ;;
11282 esac
11283 done
11284
11285 case $lt_echo in
11286 *'\$0 --fallback-echo"')
11287 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11288 ;;
11289 esac
11290
11291cfgfile="${ofile}T"
11292 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11293 $rm -f "$cfgfile"
11294 { echo "$as_me:$LINENO: creating $ofile" >&5
11295echo "$as_me: creating $ofile" >&6;}
11296
11297 cat <<__EOF__ >> "$cfgfile"
11298#! $SHELL
11299
11300# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11301# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11302# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11303#
11304# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11305# Free Software Foundation, Inc.
11306#
11307# This file is part of GNU Libtool:
11308# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11309#
11310# This program is free software; you can redistribute it and/or modify
11311# it under the terms of the GNU General Public License as published by
11312# the Free Software Foundation; either version 2 of the License, or
11313# (at your option) any later version.
11314#
11315# This program is distributed in the hope that it will be useful, but
11316# WITHOUT ANY WARRANTY; without even the implied warranty of
11317# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11318# General Public License for more details.
11319#
11320# You should have received a copy of the GNU General Public License
11321# along with this program; if not, write to the Free Software
11322# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11323#
11324# As a special exception to the GNU General Public License, if you
11325# distribute this file as part of a program that contains a
11326# configuration script generated by Autoconf, you may include it under
11327# the same distribution terms that you use for the rest of that program.
11328
11329# A sed program that does not truncate output.
11330SED=$lt_SED
11331
11332# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11333Xsed="$SED -e 1s/^X//"
11334
11335# The HP-UX ksh and POSIX shell print the target directory to stdout
11336# if CDPATH is set.
11337(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11338
11339# The names of the tagged configurations supported by this script.
11340available_tags=
11341
11342# ### BEGIN LIBTOOL CONFIG
11343
11344# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11345
11346# Shell to use when invoking shell scripts.
11347SHELL=$lt_SHELL
11348
11349# Whether or not to build shared libraries.
11350build_libtool_libs=$enable_shared
11351
11352# Whether or not to build static libraries.
11353build_old_libs=$enable_static
11354
11355# Whether or not to add -lc for building shared libraries.
11356build_libtool_need_lc=$archive_cmds_need_lc
11357
11358# Whether or not to disallow shared libs when runtime libs are static
11359allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11360
11361# Whether or not to optimize for fast installation.
11362fast_install=$enable_fast_install
11363
11364# The host system.
11365host_alias=$host_alias
11366host=$host
11367host_os=$host_os
11368
11369# The build system.
11370build_alias=$build_alias
11371build=$build
11372build_os=$build_os
11373
11374# An echo program that does not interpret backslashes.
11375echo=$lt_echo
11376
11377# The archiver.
11378AR=$lt_AR
11379AR_FLAGS=$lt_AR_FLAGS
11380
11381# A C compiler.
11382LTCC=$lt_LTCC
11383
11384# LTCC compiler flags.
11385LTCFLAGS=$lt_LTCFLAGS
11386
11387# A language-specific compiler.
11388CC=$lt_compiler
11389
11390# Is the compiler the GNU C compiler?
11391with_gcc=$GCC
11392
d9898ee8 11393# An ERE matcher.
11394EGREP=$lt_EGREP
11395
11396# The linker used to build libraries.
11397LD=$lt_LD
11398
11399# Whether we need hard or soft links.
11400LN_S=$lt_LN_S
11401
11402# A BSD-compatible nm program.
11403NM=$lt_NM
11404
11405# A symbol stripping program
11406STRIP=$lt_STRIP
11407
11408# Used to examine libraries when file_magic_cmd begins "file"
11409MAGIC_CMD=$MAGIC_CMD
11410
11411# Used on cygwin: DLL creation program.
11412DLLTOOL="$DLLTOOL"
11413
11414# Used on cygwin: object dumper.
11415OBJDUMP="$OBJDUMP"
11416
11417# Used on cygwin: assembler.
11418AS="$AS"
11419
11420# The name of the directory that contains temporary libtool files.
11421objdir=$objdir
11422
11423# How to create reloadable object files.
11424reload_flag=$lt_reload_flag
11425reload_cmds=$lt_reload_cmds
11426
11427# How to pass a linker flag through the compiler.
11428wl=$lt_lt_prog_compiler_wl
11429
11430# Object file suffix (normally "o").
11431objext="$ac_objext"
11432
11433# Old archive suffix (normally "a").
11434libext="$libext"
11435
11436# Shared library suffix (normally ".so").
11437shrext_cmds='$shrext_cmds'
11438
11439# Executable file suffix (normally "").
11440exeext="$exeext"
11441
11442# Additional compiler flags for building library objects.
11443pic_flag=$lt_lt_prog_compiler_pic
11444pic_mode=$pic_mode
11445
11446# What is the maximum length of a command?
11447max_cmd_len=$lt_cv_sys_max_cmd_len
11448
11449# Does compiler simultaneously support -c and -o options?
11450compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11451
11452# Must we lock files when doing compilation?
11453need_locks=$lt_need_locks
11454
11455# Do we need the lib prefix for modules?
11456need_lib_prefix=$need_lib_prefix
11457
11458# Do we need a version for libraries?
11459need_version=$need_version
11460
11461# Whether dlopen is supported.
11462dlopen_support=$enable_dlopen
11463
11464# Whether dlopen of programs is supported.
11465dlopen_self=$enable_dlopen_self
11466
11467# Whether dlopen of statically linked programs is supported.
11468dlopen_self_static=$enable_dlopen_self_static
11469
11470# Compiler flag to prevent dynamic linking.
11471link_static_flag=$lt_lt_prog_compiler_static
11472
11473# Compiler flag to turn off builtin functions.
11474no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11475
11476# Compiler flag to allow reflexive dlopens.
11477export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11478
11479# Compiler flag to generate shared objects directly from archives.
11480whole_archive_flag_spec=$lt_whole_archive_flag_spec
11481
11482# Compiler flag to generate thread-safe objects.
11483thread_safe_flag_spec=$lt_thread_safe_flag_spec
11484
11485# Library versioning type.
11486version_type=$version_type
11487
11488# Format of library name prefix.
11489libname_spec=$lt_libname_spec
11490
11491# List of archive names. First name is the real one, the rest are links.
11492# The last name is the one that the linker finds with -lNAME.
11493library_names_spec=$lt_library_names_spec
11494
11495# The coded name of the library, if different from the real name.
11496soname_spec=$lt_soname_spec
11497
11498# Commands used to build and install an old-style archive.
11499RANLIB=$lt_RANLIB
11500old_archive_cmds=$lt_old_archive_cmds
11501old_postinstall_cmds=$lt_old_postinstall_cmds
11502old_postuninstall_cmds=$lt_old_postuninstall_cmds
11503
11504# Create an old-style archive from a shared archive.
11505old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11506
11507# Create a temporary old-style archive to link instead of a shared archive.
11508old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11509
11510# Commands used to build and install a shared archive.
11511archive_cmds=$lt_archive_cmds
11512archive_expsym_cmds=$lt_archive_expsym_cmds
11513postinstall_cmds=$lt_postinstall_cmds
11514postuninstall_cmds=$lt_postuninstall_cmds
11515
11516# Commands used to build a loadable module (assumed same as above if empty)
11517module_cmds=$lt_module_cmds
11518module_expsym_cmds=$lt_module_expsym_cmds
11519
11520# Commands to strip libraries.
11521old_striplib=$lt_old_striplib
11522striplib=$lt_striplib
11523
11524# Dependencies to place before the objects being linked to create a
11525# shared library.
64ff59ba 11526predep_objects=$lt_predep_objects
d9898ee8 11527
11528# Dependencies to place after the objects being linked to create a
11529# shared library.
64ff59ba 11530postdep_objects=$lt_postdep_objects
d9898ee8 11531
11532# Dependencies to place before the objects being linked to create a
11533# shared library.
11534predeps=$lt_predeps
11535
11536# Dependencies to place after the objects being linked to create a
11537# shared library.
11538postdeps=$lt_postdeps
11539
11540# The library search path used internally by the compiler when linking
11541# a shared library.
64ff59ba 11542compiler_lib_search_path=$lt_compiler_lib_search_path
d9898ee8 11543
11544# Method to check whether dependent libraries are shared objects.
11545deplibs_check_method=$lt_deplibs_check_method
11546
11547# Command to use when deplibs_check_method == file_magic.
11548file_magic_cmd=$lt_file_magic_cmd
11549
11550# Flag that allows shared libraries with undefined symbols to be built.
11551allow_undefined_flag=$lt_allow_undefined_flag
11552
11553# Flag that forces no undefined symbols.
11554no_undefined_flag=$lt_no_undefined_flag
11555
11556# Commands used to finish a libtool library installation in a directory.
11557finish_cmds=$lt_finish_cmds
11558
11559# Same as above, but a single script fragment to be evaled but not shown.
11560finish_eval=$lt_finish_eval
11561
11562# Take the output of nm and produce a listing of raw symbols and C names.
11563global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11564
11565# Transform the output of nm in a proper C declaration
11566global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11567
11568# Transform the output of nm in a C name address pair
11569global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11570
11571# This is the shared library runtime path variable.
11572runpath_var=$runpath_var
11573
11574# This is the shared library path variable.
11575shlibpath_var=$shlibpath_var
11576
11577# Is shlibpath searched before the hard-coded library search path?
11578shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11579
11580# How to hardcode a shared library path into an executable.
11581hardcode_action=$hardcode_action
11582
11583# Whether we should hardcode library paths into libraries.
11584hardcode_into_libs=$hardcode_into_libs
11585
11586# Flag to hardcode \$libdir into a binary during linking.
11587# This must work even if \$libdir does not exist.
11588hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11589
11590# If ld is used when linking, flag to hardcode \$libdir into
11591# a binary during linking. This must work even if \$libdir does
11592# not exist.
11593hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11594
11595# Whether we need a single -rpath flag with a separated argument.
11596hardcode_libdir_separator=$lt_hardcode_libdir_separator
11597
11598# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11599# resulting binary.
11600hardcode_direct=$hardcode_direct
11601
11602# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11603# resulting binary.
11604hardcode_minus_L=$hardcode_minus_L
11605
11606# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11607# the resulting binary.
11608hardcode_shlibpath_var=$hardcode_shlibpath_var
11609
11610# Set to yes if building a shared library automatically hardcodes DIR into the library
11611# and all subsequent libraries and executables linked against it.
11612hardcode_automatic=$hardcode_automatic
11613
11614# Variables whose values should be saved in libtool wrapper scripts and
11615# restored at relink time.
11616variables_saved_for_relink="$variables_saved_for_relink"
11617
11618# Whether libtool must link a program against all its dependency libraries.
11619link_all_deplibs=$link_all_deplibs
11620
11621# Compile-time system search path for libraries
64ff59ba 11622sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 11623
11624# Run-time system search path for libraries
11625sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11626
11627# Fix the shell variable \$srcfile for the compiler.
11628fix_srcfile_path="$fix_srcfile_path"
11629
11630# Set to yes if exported symbols are required.
11631always_export_symbols=$always_export_symbols
11632
11633# The commands to list exported symbols.
11634export_symbols_cmds=$lt_export_symbols_cmds
11635
11636# The commands to extract the exported symbol list from a shared archive.
11637extract_expsyms_cmds=$lt_extract_expsyms_cmds
11638
11639# Symbols that should not be listed in the preloaded symbols.
11640exclude_expsyms=$lt_exclude_expsyms
11641
11642# Symbols that must always be exported.
11643include_expsyms=$lt_include_expsyms
11644
11645# ### END LIBTOOL CONFIG
11646
11647__EOF__
11648
11649
11650 case $host_os in
11651 aix3*)
11652 cat <<\EOF >> "$cfgfile"
11653
11654# AIX sometimes has problems with the GCC collect2 program. For some
11655# reason, if we set the COLLECT_NAMES environment variable, the problems
11656# vanish in a puff of smoke.
11657if test "X${COLLECT_NAMES+set}" != Xset; then
11658 COLLECT_NAMES=
11659 export COLLECT_NAMES
11660fi
11661EOF
11662 ;;
11663 esac
11664
11665 # We use sed instead of cat because bash on DJGPP gets confused if
11666 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11667 # text mode, it properly converts lines to CR/LF. This bash problem
11668 # is reportedly fixed, but why not run on old versions too?
11669 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11670
11671 mv -f "$cfgfile" "$ofile" || \
11672 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11673 chmod +x "$ofile"
11674
11675else
11676 # If there is no Makefile yet, we rely on a make rule to execute
11677 # `config.status --recheck' to rerun these tests and create the
11678 # libtool script then.
11679 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11680 if test -f "$ltmain_in"; then
11681 test -f Makefile && make "$ltmain"
11682 fi
11683fi
11684
11685
11686ac_ext=c
11687ac_cpp='$CPP $CPPFLAGS'
11688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11690ac_compiler_gnu=$ac_cv_c_compiler_gnu
11691
11692CC="$lt_save_CC"
11693
11694
64ff59ba 11695# Check whether --with-tags was given.
d9898ee8 11696if test "${with_tags+set}" = set; then
64ff59ba 11697 withval=$with_tags; tagnames="$withval"
11698fi
11699
d9898ee8 11700
11701if test -f "$ltmain" && test -n "$tagnames"; then
11702 if test ! -f "${ofile}"; then
11703 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11704echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11705 fi
11706
11707 if test -z "$LTCC"; then
11708 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11709 if test -z "$LTCC"; then
11710 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11711echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11712 else
11713 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11714echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11715 fi
11716 fi
11717 if test -z "$LTCFLAGS"; then
11718 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11719 fi
11720
11721 # Extract list of available tagged configurations in $ofile.
11722 # Note that this assumes the entire list is on one line.
11723 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11724
11725 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11726 for tagname in $tagnames; do
11727 IFS="$lt_save_ifs"
11728 # Check whether tagname contains only valid characters
11729 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11730 "") ;;
11731 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11732echo "$as_me: error: invalid tag name: $tagname" >&2;}
11733 { (exit 1); exit 1; }; }
11734 ;;
11735 esac
11736
11737 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11738 then
11739 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11740echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11741 { (exit 1); exit 1; }; }
11742 fi
11743
11744 # Update the list of available tags.
11745 if test -n "$tagname"; then
11746 echo appending configuration tag \"$tagname\" to $ofile
11747
11748 case $tagname in
11749 CXX)
11750 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11751 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11752 (test "X$CXX" != "Xg++"))) ; then
64ff59ba 11753 ac_ext=cpp
d9898ee8 11754ac_cpp='$CXXCPP $CPPFLAGS'
11755ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11756ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11757ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11758
11759
11760
11761
11762archive_cmds_need_lc_CXX=no
11763allow_undefined_flag_CXX=
11764always_export_symbols_CXX=no
11765archive_expsym_cmds_CXX=
11766export_dynamic_flag_spec_CXX=
11767hardcode_direct_CXX=no
11768hardcode_libdir_flag_spec_CXX=
11769hardcode_libdir_flag_spec_ld_CXX=
11770hardcode_libdir_separator_CXX=
11771hardcode_minus_L_CXX=no
11772hardcode_shlibpath_var_CXX=unsupported
11773hardcode_automatic_CXX=no
11774module_cmds_CXX=
11775module_expsym_cmds_CXX=
11776link_all_deplibs_CXX=unknown
11777old_archive_cmds_CXX=$old_archive_cmds
11778no_undefined_flag_CXX=
11779whole_archive_flag_spec_CXX=
11780enable_shared_with_static_runtimes_CXX=no
11781
11782# Dependencies to place before and after the object being linked:
11783predep_objects_CXX=
11784postdep_objects_CXX=
11785predeps_CXX=
11786postdeps_CXX=
11787compiler_lib_search_path_CXX=
11788
11789# Source file extension for C++ test sources.
11790ac_ext=cpp
11791
11792# Object file extension for compiled C++ test sources.
11793objext=o
11794objext_CXX=$objext
11795
11796# Code to be used in simple compile tests
11797lt_simple_compile_test_code="int some_variable = 0;\n"
11798
11799# Code to be used in simple link tests
11800lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11801
11802# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11803
11804# If no C compiler was specified, use CC.
11805LTCC=${LTCC-"$CC"}
11806
11807# If no C compiler flags were specified, use CFLAGS.
11808LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11809
11810# Allow CC to be a program name with arguments.
11811compiler=$CC
11812
11813
11814# save warnings/boilerplate of simple test code
11815ac_outfile=conftest.$ac_objext
11816printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11817eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11818_lt_compiler_boilerplate=`cat conftest.err`
11819$rm conftest*
11820
11821ac_outfile=conftest.$ac_objext
11822printf "$lt_simple_link_test_code" >conftest.$ac_ext
11823eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11824_lt_linker_boilerplate=`cat conftest.err`
11825$rm conftest*
11826
11827
11828# Allow CC to be a program name with arguments.
11829lt_save_CC=$CC
11830lt_save_LD=$LD
11831lt_save_GCC=$GCC
11832GCC=$GXX
11833lt_save_with_gnu_ld=$with_gnu_ld
11834lt_save_path_LD=$lt_cv_path_LD
11835if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11836 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11837else
11838 $as_unset lt_cv_prog_gnu_ld
11839fi
11840if test -n "${lt_cv_path_LDCXX+set}"; then
11841 lt_cv_path_LD=$lt_cv_path_LDCXX
11842else
11843 $as_unset lt_cv_path_LD
11844fi
11845test -z "${LDCXX+set}" || LD=$LDCXX
11846CC=${CXX-"c++"}
11847compiler=$CC
11848compiler_CXX=$CC
11849for cc_temp in $compiler""; do
11850 case $cc_temp in
11851 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11852 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11853 \-*) ;;
11854 *) break;;
11855 esac
11856done
11857cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11858
11859
11860# We don't want -fno-exception wen compiling C++ code, so set the
11861# no_builtin_flag separately
11862if test "$GXX" = yes; then
11863 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11864else
11865 lt_prog_compiler_no_builtin_flag_CXX=
11866fi
11867
11868if test "$GXX" = yes; then
11869 # Set up default GNU C++ configuration
11870
11871
64ff59ba 11872# Check whether --with-gnu-ld was given.
d9898ee8 11873if test "${with_gnu_ld+set}" = set; then
64ff59ba 11874 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 11875else
11876 with_gnu_ld=no
64ff59ba 11877fi
11878
d9898ee8 11879ac_prog=ld
11880if test "$GCC" = yes; then
11881 # Check if gcc -print-prog-name=ld gives a path.
64ff59ba 11882 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11883echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d9898ee8 11884 case $host in
11885 *-*-mingw*)
11886 # gcc leaves a trailing carriage return which upsets mingw
11887 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11888 *)
11889 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11890 esac
11891 case $ac_prog in
11892 # Accept absolute paths.
11893 [\\/]* | ?:[\\/]*)
11894 re_direlt='/[^/][^/]*/\.\./'
11895 # Canonicalize the pathname of ld
11896 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11897 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11898 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11899 done
11900 test -z "$LD" && LD="$ac_prog"
11901 ;;
11902 "")
11903 # If it fails, then pretend we aren't using GCC.
11904 ac_prog=ld
11905 ;;
11906 *)
11907 # If it is relative, then search for the first ld in PATH.
11908 with_gnu_ld=unknown
11909 ;;
11910 esac
11911elif test "$with_gnu_ld" = yes; then
64ff59ba 11912 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11913echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d9898ee8 11914else
64ff59ba 11915 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11916echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d9898ee8 11917fi
11918if test "${lt_cv_path_LD+set}" = set; then
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11920else
11921 if test -z "$LD"; then
11922 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11923 for ac_dir in $PATH; do
11924 IFS="$lt_save_ifs"
11925 test -z "$ac_dir" && ac_dir=.
11926 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11927 lt_cv_path_LD="$ac_dir/$ac_prog"
11928 # Check to see if the program is GNU ld. I'd rather use --version,
11929 # but apparently some variants of GNU ld only accept -v.
11930 # Break only if it was the GNU/non-GNU ld that we prefer.
11931 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11932 *GNU* | *'with BFD'*)
11933 test "$with_gnu_ld" != no && break
11934 ;;
11935 *)
11936 test "$with_gnu_ld" != yes && break
11937 ;;
11938 esac
11939 fi
11940 done
11941 IFS="$lt_save_ifs"
11942else
11943 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11944fi
11945fi
11946
11947LD="$lt_cv_path_LD"
11948if test -n "$LD"; then
64ff59ba 11949 { echo "$as_me:$LINENO: result: $LD" >&5
11950echo "${ECHO_T}$LD" >&6; }
d9898ee8 11951else
64ff59ba 11952 { echo "$as_me:$LINENO: result: no" >&5
11953echo "${ECHO_T}no" >&6; }
d9898ee8 11954fi
11955test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11956echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11957 { (exit 1); exit 1; }; }
64ff59ba 11958{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11959echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d9898ee8 11960if test "${lt_cv_prog_gnu_ld+set}" = set; then
11961 echo $ECHO_N "(cached) $ECHO_C" >&6
11962else
11963 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11964case `$LD -v 2>&1 </dev/null` in
11965*GNU* | *'with BFD'*)
11966 lt_cv_prog_gnu_ld=yes
11967 ;;
11968*)
11969 lt_cv_prog_gnu_ld=no
11970 ;;
11971esac
11972fi
64ff59ba 11973{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11974echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 11975with_gnu_ld=$lt_cv_prog_gnu_ld
11976
11977
11978
11979 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11980 # archiving commands below assume that GNU ld is being used.
11981 if test "$with_gnu_ld" = yes; then
11982 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11983 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'
11984
11985 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11986 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11987
11988 # If archive_cmds runs LD, not CC, wlarc should be empty
11989 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11990 # investigate it a little bit more. (MM)
11991 wlarc='${wl}'
11992
11993 # ancient GNU ld didn't support --whole-archive et. al.
11994 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11995 grep 'no-whole-archive' > /dev/null; then
11996 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11997 else
11998 whole_archive_flag_spec_CXX=
11999 fi
12000 else
12001 with_gnu_ld=no
12002 wlarc=
12003
12004 # A generic and very simple default shared library creation
12005 # command for GNU C++ for the case where it uses the native
12006 # linker, instead of GNU ld. If possible, this setting should
12007 # overridden to take advantage of the native linker features on
12008 # the platform it is being used on.
12009 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12010 fi
12011
12012 # Commands to make compiler produce verbose output that lists
12013 # what "hidden" libraries, object files and flags are used when
12014 # linking a shared library.
12015 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12016
12017else
12018 GXX=no
12019 with_gnu_ld=no
12020 wlarc=
12021fi
12022
12023# PORTME: fill in a description of your system's C++ link characteristics
64ff59ba 12024{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12025echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 12026ld_shlibs_CXX=yes
12027case $host_os in
12028 aix3*)
12029 # FIXME: insert proper C++ library support
12030 ld_shlibs_CXX=no
12031 ;;
12032 aix4* | aix5*)
12033 if test "$host_cpu" = ia64; then
12034 # On IA64, the linker does run time linking by default, so we don't
12035 # have to do anything special.
12036 aix_use_runtimelinking=no
12037 exp_sym_flag='-Bexport'
12038 no_entry_flag=""
12039 else
12040 aix_use_runtimelinking=no
12041
12042 # Test if we are trying to use run time linking or normal
12043 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12044 # need to do runtime linking.
12045 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12046 for ld_flag in $LDFLAGS; do
12047 case $ld_flag in
12048 *-brtl*)
12049 aix_use_runtimelinking=yes
12050 break
12051 ;;
12052 esac
12053 done
12054 ;;
12055 esac
12056
12057 exp_sym_flag='-bexport'
12058 no_entry_flag='-bnoentry'
12059 fi
12060
12061 # When large executables or shared objects are built, AIX ld can
12062 # have problems creating the table of contents. If linking a library
12063 # or program results in "error TOC overflow" add -mminimal-toc to
12064 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12065 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12066
12067 archive_cmds_CXX=''
12068 hardcode_direct_CXX=yes
12069 hardcode_libdir_separator_CXX=':'
12070 link_all_deplibs_CXX=yes
12071
12072 if test "$GXX" = yes; then
12073 case $host_os in aix4.[012]|aix4.[012].*)
12074 # We only want to do this on AIX 4.2 and lower, the check
12075 # below for broken collect2 doesn't work under 4.3+
12076 collect2name=`${CC} -print-prog-name=collect2`
12077 if test -f "$collect2name" && \
12078 strings "$collect2name" | grep resolve_lib_name >/dev/null
12079 then
12080 # We have reworked collect2
12081 hardcode_direct_CXX=yes
12082 else
12083 # We have old collect2
12084 hardcode_direct_CXX=unsupported
12085 # It fails to find uninstalled libraries when the uninstalled
12086 # path is not listed in the libpath. Setting hardcode_minus_L
12087 # to unsupported forces relinking
12088 hardcode_minus_L_CXX=yes
12089 hardcode_libdir_flag_spec_CXX='-L$libdir'
12090 hardcode_libdir_separator_CXX=
12091 fi
12092 ;;
12093 esac
12094 shared_flag='-shared'
12095 if test "$aix_use_runtimelinking" = yes; then
12096 shared_flag="$shared_flag "'${wl}-G'
12097 fi
12098 else
12099 # not using gcc
12100 if test "$host_cpu" = ia64; then
12101 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12102 # chokes on -Wl,-G. The following line is correct:
12103 shared_flag='-G'
12104 else
12105 if test "$aix_use_runtimelinking" = yes; then
12106 shared_flag='${wl}-G'
12107 else
12108 shared_flag='${wl}-bM:SRE'
12109 fi
12110 fi
12111 fi
12112
12113 # It seems that -bexpall does not export symbols beginning with
12114 # underscore (_), so it is better to generate a list of symbols to export.
12115 always_export_symbols_CXX=yes
12116 if test "$aix_use_runtimelinking" = yes; then
12117 # Warning - without using the other runtime loading flags (-brtl),
12118 # -berok will link without error, but may produce a broken library.
12119 allow_undefined_flag_CXX='-berok'
12120 # Determine the default libpath from the value encoded in an empty executable.
12121 cat >conftest.$ac_ext <<_ACEOF
12122/* confdefs.h. */
12123_ACEOF
12124cat confdefs.h >>conftest.$ac_ext
12125cat >>conftest.$ac_ext <<_ACEOF
12126/* end confdefs.h. */
12127
12128int
12129main ()
12130{
12131
12132 ;
12133 return 0;
12134}
12135_ACEOF
12136rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 12137if { (ac_try="$ac_link"
12138case "(($ac_try" in
12139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140 *) ac_try_echo=$ac_try;;
12141esac
12142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143 (eval "$ac_link") 2>conftest.er1
d9898ee8 12144 ac_status=$?
12145 grep -v '^ *+' conftest.er1 >conftest.err
12146 rm -f conftest.er1
12147 cat conftest.err >&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 12149 (exit $ac_status); } && {
12150 test -z "$ac_cxx_werror_flag" ||
12151 test ! -s conftest.err
12152 } && test -s conftest$ac_exeext &&
12153 $as_test_x conftest$ac_exeext; then
d9898ee8 12154
12155aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12156}'`
12157# Check for a 64-bit object if we didn't find anything.
12158if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12159}'`; fi
12160else
12161 echo "$as_me: failed program was:" >&5
12162sed 's/^/| /' conftest.$ac_ext >&5
12163
64ff59ba 12164
d9898ee8 12165fi
64ff59ba 12166
12167rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 12168 conftest$ac_exeext conftest.$ac_ext
12169if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12170
12171 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12172
12173 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"
12174 else
12175 if test "$host_cpu" = ia64; then
12176 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12177 allow_undefined_flag_CXX="-z nodefs"
12178 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"
12179 else
12180 # Determine the default libpath from the value encoded in an empty executable.
12181 cat >conftest.$ac_ext <<_ACEOF
12182/* confdefs.h. */
12183_ACEOF
12184cat confdefs.h >>conftest.$ac_ext
12185cat >>conftest.$ac_ext <<_ACEOF
12186/* end confdefs.h. */
12187
12188int
12189main ()
12190{
12191
12192 ;
12193 return 0;
12194}
12195_ACEOF
12196rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 12197if { (ac_try="$ac_link"
12198case "(($ac_try" in
12199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12200 *) ac_try_echo=$ac_try;;
12201esac
12202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12203 (eval "$ac_link") 2>conftest.er1
d9898ee8 12204 ac_status=$?
12205 grep -v '^ *+' conftest.er1 >conftest.err
12206 rm -f conftest.er1
12207 cat conftest.err >&5
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 12209 (exit $ac_status); } && {
12210 test -z "$ac_cxx_werror_flag" ||
12211 test ! -s conftest.err
12212 } && test -s conftest$ac_exeext &&
12213 $as_test_x conftest$ac_exeext; then
d9898ee8 12214
12215aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12216}'`
12217# Check for a 64-bit object if we didn't find anything.
12218if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12219}'`; fi
12220else
12221 echo "$as_me: failed program was:" >&5
12222sed 's/^/| /' conftest.$ac_ext >&5
12223
64ff59ba 12224
d9898ee8 12225fi
64ff59ba 12226
12227rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 12228 conftest$ac_exeext conftest.$ac_ext
12229if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12230
12231 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12232 # Warning - without using the other run time loading flags,
12233 # -berok will link without error, but may produce a broken library.
12234 no_undefined_flag_CXX=' ${wl}-bernotok'
12235 allow_undefined_flag_CXX=' ${wl}-berok'
12236 # Exported symbols can be pulled into shared objects from archives
12237 whole_archive_flag_spec_CXX='$convenience'
12238 archive_cmds_need_lc_CXX=yes
12239 # This is similar to how AIX traditionally builds its shared libraries.
12240 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'
12241 fi
12242 fi
12243 ;;
12244
12245 beos*)
12246 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12247 allow_undefined_flag_CXX=unsupported
12248 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12249 # support --undefined. This deserves some investigation. FIXME
12250 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12251 else
12252 ld_shlibs_CXX=no
12253 fi
12254 ;;
12255
12256 chorus*)
12257 case $cc_basename in
12258 *)
12259 # FIXME: insert proper C++ library support
12260 ld_shlibs_CXX=no
12261 ;;
12262 esac
12263 ;;
12264
12265 cygwin* | mingw* | pw32*)
12266 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12267 # as there is no search path for DLLs.
12268 hardcode_libdir_flag_spec_CXX='-L$libdir'
12269 allow_undefined_flag_CXX=unsupported
12270 always_export_symbols_CXX=no
12271 enable_shared_with_static_runtimes_CXX=yes
12272
12273 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12274 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'
12275 # If the export-symbols file already is a .def file (1st line
12276 # is EXPORTS), use it as is; otherwise, prepend...
12277 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12278 cp $export_symbols $output_objdir/$soname.def;
12279 else
12280 echo EXPORTS > $output_objdir/$soname.def;
12281 cat $export_symbols >> $output_objdir/$soname.def;
12282 fi~
12283 $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'
12284 else
12285 ld_shlibs_CXX=no
12286 fi
12287 ;;
12288 darwin* | rhapsody*)
12289 case $host_os in
12290 rhapsody* | darwin1.[012])
12291 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12292 ;;
12293 *) # Darwin 1.3 on
12294 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12295 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12296 else
12297 case ${MACOSX_DEPLOYMENT_TARGET} in
12298 10.[012])
12299 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12300 ;;
12301 10.*)
12302 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12303 ;;
12304 esac
12305 fi
12306 ;;
12307 esac
12308 archive_cmds_need_lc_CXX=no
12309 hardcode_direct_CXX=no
12310 hardcode_automatic_CXX=yes
12311 hardcode_shlibpath_var_CXX=unsupported
12312 whole_archive_flag_spec_CXX=''
12313 link_all_deplibs_CXX=yes
12314
12315 if test "$GXX" = yes ; then
12316 lt_int_apple_cc_single_mod=no
12317 output_verbose_link_cmd='echo'
12318 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12319 lt_int_apple_cc_single_mod=yes
12320 fi
12321 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12322 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12323 else
12324 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'
12325 fi
12326 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12327 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12328 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12329 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}'
12330 else
12331 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}'
12332 fi
12333 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}'
12334 else
12335 case $cc_basename in
12336 xlc*)
12337 output_verbose_link_cmd='echo'
12338 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12339 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12340 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12341 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12342 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}'
12343 ;;
12344 *)
12345 ld_shlibs_CXX=no
12346 ;;
12347 esac
12348 fi
12349 ;;
12350
12351 dgux*)
12352 case $cc_basename in
12353 ec++*)
12354 # FIXME: insert proper C++ library support
12355 ld_shlibs_CXX=no
12356 ;;
12357 ghcx*)
12358 # Green Hills C++ Compiler
12359 # FIXME: insert proper C++ library support
12360 ld_shlibs_CXX=no
12361 ;;
12362 *)
12363 # FIXME: insert proper C++ library support
12364 ld_shlibs_CXX=no
12365 ;;
12366 esac
12367 ;;
12368 freebsd[12]*)
12369 # C++ shared libraries reported to be fairly broken before switch to ELF
12370 ld_shlibs_CXX=no
12371 ;;
12372 freebsd-elf*)
12373 archive_cmds_need_lc_CXX=no
12374 ;;
12375 freebsd* | kfreebsd*-gnu | dragonfly*)
12376 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12377 # conventions
12378 ld_shlibs_CXX=yes
12379 ;;
12380 gnu*)
12381 ;;
12382 hpux9*)
12383 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12384 hardcode_libdir_separator_CXX=:
12385 export_dynamic_flag_spec_CXX='${wl}-E'
12386 hardcode_direct_CXX=yes
12387 hardcode_minus_L_CXX=yes # Not in the search PATH,
12388 # but as the default
12389 # location of the library.
12390
12391 case $cc_basename in
12392 CC*)
12393 # FIXME: insert proper C++ library support
12394 ld_shlibs_CXX=no
12395 ;;
12396 aCC*)
12397 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'
12398 # Commands to make compiler produce verbose output that lists
12399 # what "hidden" libraries, object files and flags are used when
12400 # linking a shared library.
12401 #
12402 # There doesn't appear to be a way to prevent this compiler from
12403 # explicitly linking system object files so we need to strip them
12404 # from the output so that they don't get included in the library
12405 # dependencies.
12406 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'
12407 ;;
12408 *)
12409 if test "$GXX" = yes; then
12410 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'
12411 else
12412 # FIXME: insert proper C++ library support
12413 ld_shlibs_CXX=no
12414 fi
12415 ;;
12416 esac
12417 ;;
12418 hpux10*|hpux11*)
12419 if test $with_gnu_ld = no; then
12420 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12421 hardcode_libdir_separator_CXX=:
12422
12423 case $host_cpu in
12424 hppa*64*|ia64*)
12425 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12426 ;;
12427 *)
12428 export_dynamic_flag_spec_CXX='${wl}-E'
12429 ;;
12430 esac
12431 fi
12432 case $host_cpu in
12433 hppa*64*|ia64*)
12434 hardcode_direct_CXX=no
12435 hardcode_shlibpath_var_CXX=no
12436 ;;
12437 *)
12438 hardcode_direct_CXX=yes
12439 hardcode_minus_L_CXX=yes # Not in the search PATH,
12440 # but as the default
12441 # location of the library.
12442 ;;
12443 esac
12444
12445 case $cc_basename in
12446 CC*)
12447 # FIXME: insert proper C++ library support
12448 ld_shlibs_CXX=no
12449 ;;
12450 aCC*)
12451 case $host_cpu in
12452 hppa*64*)
12453 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12454 ;;
12455 ia64*)
12456 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12457 ;;
12458 *)
12459 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12460 ;;
12461 esac
12462 # Commands to make compiler produce verbose output that lists
12463 # what "hidden" libraries, object files and flags are used when
12464 # linking a shared library.
12465 #
12466 # There doesn't appear to be a way to prevent this compiler from
12467 # explicitly linking system object files so we need to strip them
12468 # from the output so that they don't get included in the library
12469 # dependencies.
12470 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'
12471 ;;
12472 *)
12473 if test "$GXX" = yes; then
12474 if test $with_gnu_ld = no; then
12475 case $host_cpu in
12476 hppa*64*)
12477 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12478 ;;
12479 ia64*)
12480 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12481 ;;
12482 *)
12483 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'
12484 ;;
12485 esac
12486 fi
12487 else
12488 # FIXME: insert proper C++ library support
12489 ld_shlibs_CXX=no
12490 fi
12491 ;;
12492 esac
12493 ;;
12494 interix3*)
12495 hardcode_direct_CXX=no
12496 hardcode_shlibpath_var_CXX=no
12497 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12498 export_dynamic_flag_spec_CXX='${wl}-E'
12499 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12500 # Instead, shared libraries are loaded at an image base (0x10000000 by
12501 # default) and relocated if they conflict, which is a slow very memory
12502 # consuming and fragmenting process. To avoid this, we pick a random,
12503 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12504 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12505 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'
12506 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'
12507 ;;
12508 irix5* | irix6*)
12509 case $cc_basename in
12510 CC*)
12511 # SGI C++
12512 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'
12513
12514 # Archives containing C++ object files must be created using
12515 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12516 # necessary to make sure instantiated templates are included
12517 # in the archive.
12518 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12519 ;;
12520 *)
12521 if test "$GXX" = yes; then
12522 if test "$with_gnu_ld" = no; then
12523 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'
12524 else
12525 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'
12526 fi
12527 fi
12528 link_all_deplibs_CXX=yes
12529 ;;
12530 esac
12531 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12532 hardcode_libdir_separator_CXX=:
12533 ;;
12534 linux*)
12535 case $cc_basename in
12536 KCC*)
12537 # Kuck and Associates, Inc. (KAI) C++ Compiler
12538
12539 # KCC will only create a shared library if the output file
12540 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12541 # to its proper name (with version) after linking.
12542 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'
12543 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'
12544 # Commands to make compiler produce verbose output that lists
12545 # what "hidden" libraries, object files and flags are used when
12546 # linking a shared library.
12547 #
12548 # There doesn't appear to be a way to prevent this compiler from
12549 # explicitly linking system object files so we need to strip them
12550 # from the output so that they don't get included in the library
12551 # dependencies.
12552 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'
12553
12554 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12555 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12556
12557 # Archives containing C++ object files must be created using
12558 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12559 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12560 ;;
12561 icpc*)
12562 # Intel C++
12563 with_gnu_ld=yes
12564 # version 8.0 and above of icpc choke on multiply defined symbols
12565 # if we add $predep_objects and $postdep_objects, however 7.1 and
12566 # earlier do not add the objects themselves.
12567 case `$CC -V 2>&1` in
12568 *"Version 7."*)
12569 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12570 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'
12571 ;;
12572 *) # Version 8.0 or newer
12573 tmp_idyn=
12574 case $host_cpu in
12575 ia64*) tmp_idyn=' -i_dynamic';;
12576 esac
12577 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12578 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'
12579 ;;
12580 esac
12581 archive_cmds_need_lc_CXX=no
12582 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12583 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12584 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12585 ;;
12586 pgCC*)
12587 # Portland Group C++ compiler
12588 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12589 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'
12590
12591 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12592 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12593 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'
12594 ;;
12595 cxx*)
12596 # Compaq C++
12597 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12598 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'
12599
12600 runpath_var=LD_RUN_PATH
12601 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12602 hardcode_libdir_separator_CXX=:
12603
12604 # Commands to make compiler produce verbose output that lists
12605 # what "hidden" libraries, object files and flags are used when
12606 # linking a shared library.
12607 #
12608 # There doesn't appear to be a way to prevent this compiler from
12609 # explicitly linking system object files so we need to strip them
12610 # from the output so that they don't get included in the library
12611 # dependencies.
12612 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'
12613 ;;
12614 esac
12615 ;;
12616 lynxos*)
12617 # FIXME: insert proper C++ library support
12618 ld_shlibs_CXX=no
12619 ;;
12620 m88k*)
12621 # FIXME: insert proper C++ library support
12622 ld_shlibs_CXX=no
12623 ;;
12624 mvs*)
12625 case $cc_basename in
12626 cxx*)
12627 # FIXME: insert proper C++ library support
12628 ld_shlibs_CXX=no
12629 ;;
12630 *)
12631 # FIXME: insert proper C++ library support
12632 ld_shlibs_CXX=no
12633 ;;
12634 esac
12635 ;;
12636 netbsd*)
12637 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12638 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12639 wlarc=
12640 hardcode_libdir_flag_spec_CXX='-R$libdir'
12641 hardcode_direct_CXX=yes
12642 hardcode_shlibpath_var_CXX=no
12643 fi
12644 # Workaround some broken pre-1.5 toolchains
12645 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12646 ;;
12647 openbsd2*)
12648 # C++ shared libraries are fairly broken
12649 ld_shlibs_CXX=no
12650 ;;
12651 openbsd*)
12652 hardcode_direct_CXX=yes
12653 hardcode_shlibpath_var_CXX=no
12654 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12655 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12656 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12657 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12658 export_dynamic_flag_spec_CXX='${wl}-E'
12659 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12660 fi
12661 output_verbose_link_cmd='echo'
12662 ;;
12663 osf3*)
12664 case $cc_basename in
12665 KCC*)
12666 # Kuck and Associates, Inc. (KAI) C++ Compiler
12667
12668 # KCC will only create a shared library if the output file
12669 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12670 # to its proper name (with version) after linking.
12671 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'
12672
12673 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12674 hardcode_libdir_separator_CXX=:
12675
12676 # Archives containing C++ object files must be created using
12677 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12678 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12679
12680 ;;
12681 RCC*)
12682 # Rational C++ 2.4.1
12683 # FIXME: insert proper C++ library support
12684 ld_shlibs_CXX=no
12685 ;;
12686 cxx*)
12687 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12688 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'
12689
12690 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12691 hardcode_libdir_separator_CXX=:
12692
12693 # Commands to make compiler produce verbose output that lists
12694 # what "hidden" libraries, object files and flags are used when
12695 # linking a shared library.
12696 #
12697 # There doesn't appear to be a way to prevent this compiler from
12698 # explicitly linking system object files so we need to strip them
12699 # from the output so that they don't get included in the library
12700 # dependencies.
12701 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'
12702 ;;
12703 *)
12704 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12705 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12706 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'
12707
12708 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12709 hardcode_libdir_separator_CXX=:
12710
12711 # Commands to make compiler produce verbose output that lists
12712 # what "hidden" libraries, object files and flags are used when
12713 # linking a shared library.
12714 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12715
12716 else
12717 # FIXME: insert proper C++ library support
12718 ld_shlibs_CXX=no
12719 fi
12720 ;;
12721 esac
12722 ;;
12723 osf4* | osf5*)
12724 case $cc_basename in
12725 KCC*)
12726 # Kuck and Associates, Inc. (KAI) C++ Compiler
12727
12728 # KCC will only create a shared library if the output file
12729 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12730 # to its proper name (with version) after linking.
12731 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'
12732
12733 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12734 hardcode_libdir_separator_CXX=:
12735
12736 # Archives containing C++ object files must be created using
12737 # the KAI C++ compiler.
12738 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12739 ;;
12740 RCC*)
12741 # Rational C++ 2.4.1
12742 # FIXME: insert proper C++ library support
12743 ld_shlibs_CXX=no
12744 ;;
12745 cxx*)
12746 allow_undefined_flag_CXX=' -expect_unresolved \*'
12747 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'
12748 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12749 echo "-hidden">> $lib.exp~
12750 $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~
12751 $rm $lib.exp'
12752
12753 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12754 hardcode_libdir_separator_CXX=:
12755
12756 # Commands to make compiler produce verbose output that lists
12757 # what "hidden" libraries, object files and flags are used when
12758 # linking a shared library.
12759 #
12760 # There doesn't appear to be a way to prevent this compiler from
12761 # explicitly linking system object files so we need to strip them
12762 # from the output so that they don't get included in the library
12763 # dependencies.
12764 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'
12765 ;;
12766 *)
12767 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12768 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12769 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'
12770
12771 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12772 hardcode_libdir_separator_CXX=:
12773
12774 # Commands to make compiler produce verbose output that lists
12775 # what "hidden" libraries, object files and flags are used when
12776 # linking a shared library.
12777 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12778
12779 else
12780 # FIXME: insert proper C++ library support
12781 ld_shlibs_CXX=no
12782 fi
12783 ;;
12784 esac
12785 ;;
12786 psos*)
12787 # FIXME: insert proper C++ library support
12788 ld_shlibs_CXX=no
12789 ;;
12790 sunos4*)
12791 case $cc_basename in
12792 CC*)
12793 # Sun C++ 4.x
12794 # FIXME: insert proper C++ library support
12795 ld_shlibs_CXX=no
12796 ;;
12797 lcc*)
12798 # Lucid
12799 # FIXME: insert proper C++ library support
12800 ld_shlibs_CXX=no
12801 ;;
12802 *)
12803 # FIXME: insert proper C++ library support
12804 ld_shlibs_CXX=no
12805 ;;
12806 esac
12807 ;;
12808 solaris*)
12809 case $cc_basename in
12810 CC*)
12811 # Sun C++ 4.2, 5.x and Centerline C++
12812 archive_cmds_need_lc_CXX=yes
12813 no_undefined_flag_CXX=' -zdefs'
12814 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12815 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12816 $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'
12817
12818 hardcode_libdir_flag_spec_CXX='-R$libdir'
12819 hardcode_shlibpath_var_CXX=no
12820 case $host_os in
12821 solaris2.[0-5] | solaris2.[0-5].*) ;;
12822 *)
12823 # The C++ compiler is used as linker so we must use $wl
12824 # flag to pass the commands to the underlying system
12825 # linker. We must also pass each convience library through
12826 # to the system linker between allextract/defaultextract.
12827 # The C++ compiler will combine linker options so we
12828 # cannot just pass the convience library names through
12829 # without $wl.
12830 # Supported since Solaris 2.6 (maybe 2.5.1?)
12831 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12832 ;;
12833 esac
12834 link_all_deplibs_CXX=yes
12835
12836 output_verbose_link_cmd='echo'
12837
12838 # Archives containing C++ object files must be created using
12839 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12840 # necessary to make sure instantiated templates are included
12841 # in the archive.
12842 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12843 ;;
12844 gcx*)
12845 # Green Hills C++ Compiler
12846 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12847
12848 # The C++ compiler must be used to create the archive.
12849 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12850 ;;
12851 *)
12852 # GNU C++ compiler with Solaris linker
12853 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12854 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12855 if $CC --version | grep -v '^2\.7' > /dev/null; then
12856 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12857 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12858 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12859
12860 # Commands to make compiler produce verbose output that lists
12861 # what "hidden" libraries, object files and flags are used when
12862 # linking a shared library.
12863 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12864 else
12865 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12866 # platform.
12867 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12868 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12869 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12870
12871 # Commands to make compiler produce verbose output that lists
12872 # what "hidden" libraries, object files and flags are used when
12873 # linking a shared library.
12874 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12875 fi
12876
12877 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12878 fi
12879 ;;
12880 esac
12881 ;;
12882 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12883 no_undefined_flag_CXX='${wl}-z,text'
12884 archive_cmds_need_lc_CXX=no
12885 hardcode_shlibpath_var_CXX=no
12886 runpath_var='LD_RUN_PATH'
12887
12888 case $cc_basename in
12889 CC*)
12890 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12891 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12892 ;;
12893 *)
12894 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12895 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12896 ;;
12897 esac
12898 ;;
12899 sysv5* | sco3.2v5* | sco5v6*)
12900 # Note: We can NOT use -z defs as we might desire, because we do not
12901 # link with -lc, and that would cause any symbols used from libc to
12902 # always be unresolved, which means just about no library would
12903 # ever link correctly. If we're not using GNU ld we use -z text
12904 # though, which does catch some bad symbols but isn't as heavy-handed
12905 # as -z defs.
12906 # For security reasons, it is highly recommended that you always
12907 # use absolute paths for naming shared libraries, and exclude the
12908 # DT_RUNPATH tag from executables and libraries. But doing so
12909 # requires that you compile everything twice, which is a pain.
12910 # So that behaviour is only enabled if SCOABSPATH is set to a
12911 # non-empty value in the environment. Most likely only useful for
12912 # creating official distributions of packages.
12913 # This is a hack until libtool officially supports absolute path
12914 # names for shared libraries.
12915 no_undefined_flag_CXX='${wl}-z,text'
12916 allow_undefined_flag_CXX='${wl}-z,nodefs'
12917 archive_cmds_need_lc_CXX=no
12918 hardcode_shlibpath_var_CXX=no
12919 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12920 hardcode_libdir_separator_CXX=':'
12921 link_all_deplibs_CXX=yes
12922 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12923 runpath_var='LD_RUN_PATH'
12924
12925 case $cc_basename in
12926 CC*)
12927 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12928 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12929 ;;
12930 *)
12931 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12932 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12933 ;;
12934 esac
12935 ;;
12936 tandem*)
12937 case $cc_basename in
12938 NCC*)
12939 # NonStop-UX NCC 3.20
12940 # FIXME: insert proper C++ library support
12941 ld_shlibs_CXX=no
12942 ;;
12943 *)
12944 # FIXME: insert proper C++ library support
12945 ld_shlibs_CXX=no
12946 ;;
12947 esac
12948 ;;
12949 vxworks*)
12950 # FIXME: insert proper C++ library support
12951 ld_shlibs_CXX=no
12952 ;;
12953 *)
12954 # FIXME: insert proper C++ library support
12955 ld_shlibs_CXX=no
12956 ;;
12957esac
64ff59ba 12958{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12959echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d9898ee8 12960test "$ld_shlibs_CXX" = no && can_build_shared=no
12961
12962GCC_CXX="$GXX"
12963LD_CXX="$LD"
12964
12965
12966cat > conftest.$ac_ext <<EOF
12967class Foo
12968{
12969public:
12970 Foo (void) { a = 0; }
12971private:
12972 int a;
12973};
12974EOF
12975
12976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12977 (eval $ac_compile) 2>&5
12978 ac_status=$?
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); }; then
12981 # Parse the compiler output and extract the necessary
12982 # objects, libraries and library flags.
12983
12984 # Sentinel used to keep track of whether or not we are before
12985 # the conftest object file.
12986 pre_test_object_deps_done=no
12987
12988 # The `*' in the case matches for architectures that use `case' in
12989 # $output_verbose_cmd can trigger glob expansion during the loop
12990 # eval without this substitution.
12991 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12992
12993 for p in `eval $output_verbose_link_cmd`; do
12994 case $p in
12995
12996 -L* | -R* | -l*)
12997 # Some compilers place space between "-{L,R}" and the path.
12998 # Remove the space.
12999 if test $p = "-L" \
13000 || test $p = "-R"; then
13001 prev=$p
13002 continue
13003 else
13004 prev=
13005 fi
13006
13007 if test "$pre_test_object_deps_done" = no; then
13008 case $p in
13009 -L* | -R*)
13010 # Internal compiler library paths should come after those
13011 # provided the user. The postdeps already come after the
13012 # user supplied libs so there is no need to process them.
13013 if test -z "$compiler_lib_search_path_CXX"; then
13014 compiler_lib_search_path_CXX="${prev}${p}"
13015 else
13016 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13017 fi
13018 ;;
13019 # The "-l" case would never come before the object being
13020 # linked, so don't bother handling this case.
13021 esac
13022 else
13023 if test -z "$postdeps_CXX"; then
13024 postdeps_CXX="${prev}${p}"
13025 else
13026 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13027 fi
13028 fi
13029 ;;
13030
13031 *.$objext)
13032 # This assumes that the test object file only shows up
13033 # once in the compiler output.
13034 if test "$p" = "conftest.$objext"; then
13035 pre_test_object_deps_done=yes
13036 continue
13037 fi
13038
13039 if test "$pre_test_object_deps_done" = no; then
13040 if test -z "$predep_objects_CXX"; then
13041 predep_objects_CXX="$p"
13042 else
13043 predep_objects_CXX="$predep_objects_CXX $p"
13044 fi
13045 else
13046 if test -z "$postdep_objects_CXX"; then
13047 postdep_objects_CXX="$p"
13048 else
13049 postdep_objects_CXX="$postdep_objects_CXX $p"
13050 fi
13051 fi
13052 ;;
13053
13054 *) ;; # Ignore the rest.
13055
13056 esac
13057 done
13058
13059 # Clean up.
13060 rm -f a.out a.exe
13061else
13062 echo "libtool.m4: error: problem compiling CXX test program"
13063fi
13064
13065$rm -f confest.$objext
13066
13067# PORTME: override above test on systems where it is broken
13068case $host_os in
13069interix3*)
13070 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13071 # hack all around it, let's just trust "g++" to DTRT.
13072 predep_objects_CXX=
13073 postdep_objects_CXX=
13074 postdeps_CXX=
13075 ;;
13076
13077solaris*)
13078 case $cc_basename in
13079 CC*)
13080 # Adding this requires a known-good setup of shared libraries for
13081 # Sun compiler versions before 5.6, else PIC objects from an old
13082 # archive will be linked into the output, leading to subtle bugs.
13083 postdeps_CXX='-lCstd -lCrun'
13084 ;;
13085 esac
13086 ;;
13087esac
13088
13089
13090case " $postdeps_CXX " in
13091*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13092esac
13093
13094lt_prog_compiler_wl_CXX=
13095lt_prog_compiler_pic_CXX=
13096lt_prog_compiler_static_CXX=
13097
64ff59ba 13098{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13099echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 13100
13101 # C++ specific cases for pic, static, wl, etc.
13102 if test "$GXX" = yes; then
13103 lt_prog_compiler_wl_CXX='-Wl,'
13104 lt_prog_compiler_static_CXX='-static'
13105
13106 case $host_os in
13107 aix*)
13108 # All AIX code is PIC.
13109 if test "$host_cpu" = ia64; then
13110 # AIX 5 now supports IA64 processor
13111 lt_prog_compiler_static_CXX='-Bstatic'
13112 fi
13113 ;;
13114 amigaos*)
13115 # FIXME: we need at least 68020 code to build shared libraries, but
13116 # adding the `-m68020' flag to GCC prevents building anything better,
13117 # like `-m68040'.
13118 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13119 ;;
13120 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13121 # PIC is the default for these OSes.
13122 ;;
13123 mingw* | os2* | pw32*)
13124 # This hack is so that the source file can tell whether it is being
13125 # built for inclusion in a dll (and should export symbols for example).
13126 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13127 ;;
13128 darwin* | rhapsody*)
13129 # PIC is the default on this platform
13130 # Common symbols not allowed in MH_DYLIB files
13131 lt_prog_compiler_pic_CXX='-fno-common'
13132 ;;
13133 *djgpp*)
13134 # DJGPP does not support shared libraries at all
13135 lt_prog_compiler_pic_CXX=
13136 ;;
13137 interix3*)
13138 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13139 # Instead, we relocate shared libraries at runtime.
13140 ;;
13141 sysv4*MP*)
13142 if test -d /usr/nec; then
13143 lt_prog_compiler_pic_CXX=-Kconform_pic
13144 fi
13145 ;;
13146 hpux*)
13147 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13148 # not for PA HP-UX.
13149 case $host_cpu in
13150 hppa*64*|ia64*)
13151 ;;
13152 *)
13153 lt_prog_compiler_pic_CXX='-fPIC'
13154 ;;
13155 esac
13156 ;;
13157 *)
13158 lt_prog_compiler_pic_CXX='-fPIC'
13159 ;;
13160 esac
13161 else
13162 case $host_os in
13163 aix4* | aix5*)
13164 # All AIX code is PIC.
13165 if test "$host_cpu" = ia64; then
13166 # AIX 5 now supports IA64 processor
13167 lt_prog_compiler_static_CXX='-Bstatic'
13168 else
13169 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13170 fi
13171 ;;
13172 chorus*)
13173 case $cc_basename in
13174 cxch68*)
13175 # Green Hills C++ Compiler
13176 # _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"
13177 ;;
13178 esac
13179 ;;
13180 darwin*)
13181 # PIC is the default on this platform
13182 # Common symbols not allowed in MH_DYLIB files
13183 case $cc_basename in
13184 xlc*)
13185 lt_prog_compiler_pic_CXX='-qnocommon'
13186 lt_prog_compiler_wl_CXX='-Wl,'
13187 ;;
13188 esac
13189 ;;
13190 dgux*)
13191 case $cc_basename in
13192 ec++*)
13193 lt_prog_compiler_pic_CXX='-KPIC'
13194 ;;
13195 ghcx*)
13196 # Green Hills C++ Compiler
13197 lt_prog_compiler_pic_CXX='-pic'
13198 ;;
13199 *)
13200 ;;
13201 esac
13202 ;;
13203 freebsd* | kfreebsd*-gnu | dragonfly*)
13204 # FreeBSD uses GNU C++
13205 ;;
13206 hpux9* | hpux10* | hpux11*)
13207 case $cc_basename in
13208 CC*)
13209 lt_prog_compiler_wl_CXX='-Wl,'
13210 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13211 if test "$host_cpu" != ia64; then
13212 lt_prog_compiler_pic_CXX='+Z'
13213 fi
13214 ;;
13215 aCC*)
13216 lt_prog_compiler_wl_CXX='-Wl,'
13217 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13218 case $host_cpu in
13219 hppa*64*|ia64*)
13220 # +Z the default
13221 ;;
13222 *)
13223 lt_prog_compiler_pic_CXX='+Z'
13224 ;;
13225 esac
13226 ;;
13227 *)
13228 ;;
13229 esac
13230 ;;
13231 interix*)
13232 # This is c89, which is MS Visual C++ (no shared libs)
13233 # Anyone wants to do a port?
13234 ;;
13235 irix5* | irix6* | nonstopux*)
13236 case $cc_basename in
13237 CC*)
13238 lt_prog_compiler_wl_CXX='-Wl,'
13239 lt_prog_compiler_static_CXX='-non_shared'
13240 # CC pic flag -KPIC is the default.
13241 ;;
13242 *)
13243 ;;
13244 esac
13245 ;;
13246 linux*)
13247 case $cc_basename in
13248 KCC*)
13249 # KAI C++ Compiler
13250 lt_prog_compiler_wl_CXX='--backend -Wl,'
13251 lt_prog_compiler_pic_CXX='-fPIC'
13252 ;;
13253 icpc* | ecpc*)
13254 # Intel C++
13255 lt_prog_compiler_wl_CXX='-Wl,'
13256 lt_prog_compiler_pic_CXX='-KPIC'
13257 lt_prog_compiler_static_CXX='-static'
13258 ;;
13259 pgCC*)
13260 # Portland Group C++ compiler.
13261 lt_prog_compiler_wl_CXX='-Wl,'
13262 lt_prog_compiler_pic_CXX='-fpic'
13263 lt_prog_compiler_static_CXX='-Bstatic'
13264 ;;
13265 cxx*)
13266 # Compaq C++
13267 # Make sure the PIC flag is empty. It appears that all Alpha
13268 # Linux and Compaq Tru64 Unix objects are PIC.
13269 lt_prog_compiler_pic_CXX=
13270 lt_prog_compiler_static_CXX='-non_shared'
13271 ;;
13272 *)
13273 ;;
13274 esac
13275 ;;
13276 lynxos*)
13277 ;;
13278 m88k*)
13279 ;;
13280 mvs*)
13281 case $cc_basename in
13282 cxx*)
13283 lt_prog_compiler_pic_CXX='-W c,exportall'
13284 ;;
13285 *)
13286 ;;
13287 esac
13288 ;;
13289 netbsd*)
13290 ;;
13291 osf3* | osf4* | osf5*)
13292 case $cc_basename in
13293 KCC*)
13294 lt_prog_compiler_wl_CXX='--backend -Wl,'
13295 ;;
13296 RCC*)
13297 # Rational C++ 2.4.1
13298 lt_prog_compiler_pic_CXX='-pic'
13299 ;;
13300 cxx*)
13301 # Digital/Compaq C++
13302 lt_prog_compiler_wl_CXX='-Wl,'
13303 # Make sure the PIC flag is empty. It appears that all Alpha
13304 # Linux and Compaq Tru64 Unix objects are PIC.
13305 lt_prog_compiler_pic_CXX=
13306 lt_prog_compiler_static_CXX='-non_shared'
13307 ;;
13308 *)
13309 ;;
13310 esac
13311 ;;
13312 psos*)
13313 ;;
13314 solaris*)
13315 case $cc_basename in
13316 CC*)
13317 # Sun C++ 4.2, 5.x and Centerline C++
13318 lt_prog_compiler_pic_CXX='-KPIC'
13319 lt_prog_compiler_static_CXX='-Bstatic'
13320 lt_prog_compiler_wl_CXX='-Qoption ld '
13321 ;;
13322 gcx*)
13323 # Green Hills C++ Compiler
13324 lt_prog_compiler_pic_CXX='-PIC'
13325 ;;
13326 *)
13327 ;;
13328 esac
13329 ;;
13330 sunos4*)
13331 case $cc_basename in
13332 CC*)
13333 # Sun C++ 4.x
13334 lt_prog_compiler_pic_CXX='-pic'
13335 lt_prog_compiler_static_CXX='-Bstatic'
13336 ;;
13337 lcc*)
13338 # Lucid
13339 lt_prog_compiler_pic_CXX='-pic'
13340 ;;
13341 *)
13342 ;;
13343 esac
13344 ;;
13345 tandem*)
13346 case $cc_basename in
13347 NCC*)
13348 # NonStop-UX NCC 3.20
13349 lt_prog_compiler_pic_CXX='-KPIC'
13350 ;;
13351 *)
13352 ;;
13353 esac
13354 ;;
13355 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13356 case $cc_basename in
13357 CC*)
13358 lt_prog_compiler_wl_CXX='-Wl,'
13359 lt_prog_compiler_pic_CXX='-KPIC'
13360 lt_prog_compiler_static_CXX='-Bstatic'
13361 ;;
13362 esac
13363 ;;
13364 vxworks*)
13365 ;;
13366 *)
13367 lt_prog_compiler_can_build_shared_CXX=no
13368 ;;
13369 esac
13370 fi
13371
64ff59ba 13372{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13373echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
d9898ee8 13374
13375#
13376# Check to make sure the PIC flag actually works.
13377#
13378if test -n "$lt_prog_compiler_pic_CXX"; then
13379
64ff59ba 13380{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13381echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
d9898ee8 13382if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13383 echo $ECHO_N "(cached) $ECHO_C" >&6
13384else
13385 lt_prog_compiler_pic_works_CXX=no
13386 ac_outfile=conftest.$ac_objext
13387 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13388 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13389 # Insert the option either (1) after the last *FLAGS variable, or
13390 # (2) before a word containing "conftest.", or (3) at the end.
13391 # Note that $ac_compile itself does not contain backslashes and begins
13392 # with a dollar sign (not a hyphen), so the echo should work correctly.
13393 # The option is referenced via a variable to avoid confusing sed.
13394 lt_compile=`echo "$ac_compile" | $SED \
13395 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13396 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13397 -e 's:$: $lt_compiler_flag:'`
64ff59ba 13398 (eval echo "\"\$as_me:13398: $lt_compile\"" >&5)
d9898ee8 13399 (eval "$lt_compile" 2>conftest.err)
13400 ac_status=$?
13401 cat conftest.err >&5
64ff59ba 13402 echo "$as_me:13402: \$? = $ac_status" >&5
d9898ee8 13403 if (exit $ac_status) && test -s "$ac_outfile"; then
13404 # The compiler can only warn and ignore the option if not recognized
13405 # So say no if there are warnings other than the usual output.
13406 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13407 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13408 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13409 lt_prog_compiler_pic_works_CXX=yes
13410 fi
13411 fi
13412 $rm conftest*
13413
13414fi
64ff59ba 13415{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13416echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
d9898ee8 13417
13418if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13419 case $lt_prog_compiler_pic_CXX in
13420 "" | " "*) ;;
13421 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13422 esac
13423else
13424 lt_prog_compiler_pic_CXX=
13425 lt_prog_compiler_can_build_shared_CXX=no
13426fi
13427
13428fi
13429case $host_os in
13430 # For platforms which do not support PIC, -DPIC is meaningless:
13431 *djgpp*)
13432 lt_prog_compiler_pic_CXX=
13433 ;;
13434 *)
13435 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13436 ;;
13437esac
13438
13439#
13440# Check to make sure the static flag actually works.
13441#
13442wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
64ff59ba 13443{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13444echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 13445if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13446 echo $ECHO_N "(cached) $ECHO_C" >&6
13447else
13448 lt_prog_compiler_static_works_CXX=no
13449 save_LDFLAGS="$LDFLAGS"
13450 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13451 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13452 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13453 # The linker can only warn and ignore the option if not recognized
13454 # So say no if there are warnings
13455 if test -s conftest.err; then
13456 # Append any errors to the config.log.
13457 cat conftest.err 1>&5
13458 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13459 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13460 if diff conftest.exp conftest.er2 >/dev/null; then
13461 lt_prog_compiler_static_works_CXX=yes
13462 fi
13463 else
13464 lt_prog_compiler_static_works_CXX=yes
13465 fi
13466 fi
13467 $rm conftest*
13468 LDFLAGS="$save_LDFLAGS"
13469
13470fi
64ff59ba 13471{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13472echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
d9898ee8 13473
13474if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13475 :
13476else
13477 lt_prog_compiler_static_CXX=
13478fi
13479
13480
64ff59ba 13481{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13482echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 13483if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13484 echo $ECHO_N "(cached) $ECHO_C" >&6
13485else
13486 lt_cv_prog_compiler_c_o_CXX=no
13487 $rm -r conftest 2>/dev/null
13488 mkdir conftest
13489 cd conftest
13490 mkdir out
13491 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13492
13493 lt_compiler_flag="-o out/conftest2.$ac_objext"
13494 # Insert the option either (1) after the last *FLAGS variable, or
13495 # (2) before a word containing "conftest.", or (3) at the end.
13496 # Note that $ac_compile itself does not contain backslashes and begins
13497 # with a dollar sign (not a hyphen), so the echo should work correctly.
13498 lt_compile=`echo "$ac_compile" | $SED \
13499 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13500 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13501 -e 's:$: $lt_compiler_flag:'`
64ff59ba 13502 (eval echo "\"\$as_me:13502: $lt_compile\"" >&5)
d9898ee8 13503 (eval "$lt_compile" 2>out/conftest.err)
13504 ac_status=$?
13505 cat out/conftest.err >&5
64ff59ba 13506 echo "$as_me:13506: \$? = $ac_status" >&5
d9898ee8 13507 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13508 then
13509 # The compiler can only warn and ignore the option if not recognized
13510 # So say no if there are warnings
13511 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13512 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13513 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13514 lt_cv_prog_compiler_c_o_CXX=yes
13515 fi
13516 fi
13517 chmod u+w . 2>&5
13518 $rm conftest*
13519 # SGI C++ compiler will create directory out/ii_files/ for
13520 # template instantiation
13521 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13522 $rm out/* && rmdir out
13523 cd ..
13524 rmdir conftest
13525 $rm conftest*
13526
13527fi
64ff59ba 13528{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13529echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
d9898ee8 13530
13531
13532hard_links="nottested"
13533if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13534 # do not overwrite the value of need_locks provided by the user
64ff59ba 13535 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13536echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 13537 hard_links=yes
13538 $rm conftest*
13539 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13540 touch conftest.a
13541 ln conftest.a conftest.b 2>&5 || hard_links=no
13542 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 13543 { echo "$as_me:$LINENO: result: $hard_links" >&5
13544echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 13545 if test "$hard_links" = no; then
13546 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13547echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13548 need_locks=warn
13549 fi
13550else
13551 need_locks=no
13552fi
13553
64ff59ba 13554{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13555echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 13556
13557 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13558 case $host_os in
13559 aix4* | aix5*)
13560 # If we're using GNU nm, then we don't want the "-C" option.
13561 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13562 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13563 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'
13564 else
13565 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'
13566 fi
13567 ;;
13568 pw32*)
13569 export_symbols_cmds_CXX="$ltdll_cmds"
13570 ;;
13571 cygwin* | mingw*)
13572 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'
13573 ;;
13574 *)
13575 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13576 ;;
13577 esac
13578
64ff59ba 13579{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13580echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d9898ee8 13581test "$ld_shlibs_CXX" = no && can_build_shared=no
13582
13583#
13584# Do we need to explicitly link libc?
13585#
13586case "x$archive_cmds_need_lc_CXX" in
13587x|xyes)
13588 # Assume -lc should be added
13589 archive_cmds_need_lc_CXX=yes
13590
13591 if test "$enable_shared" = yes && test "$GCC" = yes; then
13592 case $archive_cmds_CXX in
13593 *'~'*)
13594 # FIXME: we may have to deal with multi-command sequences.
13595 ;;
13596 '$CC '*)
13597 # Test whether the compiler implicitly links with -lc since on some
13598 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13599 # to ld, don't add -lc before -lgcc.
64ff59ba 13600 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13601echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 13602 $rm conftest*
13603 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13604
13605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13606 (eval $ac_compile) 2>&5
13607 ac_status=$?
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); } 2>conftest.err; then
13610 soname=conftest
13611 lib=conftest
13612 libobjs=conftest.$ac_objext
13613 deplibs=
13614 wl=$lt_prog_compiler_wl_CXX
13615 pic_flag=$lt_prog_compiler_pic_CXX
13616 compiler_flags=-v
13617 linker_flags=-v
13618 verstring=
13619 output_objdir=.
13620 libname=conftest
13621 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13622 allow_undefined_flag_CXX=
13623 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13624 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13625 ac_status=$?
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); }
13628 then
13629 archive_cmds_need_lc_CXX=no
13630 else
13631 archive_cmds_need_lc_CXX=yes
13632 fi
13633 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13634 else
13635 cat conftest.err 1>&5
13636 fi
13637 $rm conftest*
64ff59ba 13638 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13639echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
d9898ee8 13640 ;;
13641 esac
13642 fi
13643 ;;
13644esac
13645
64ff59ba 13646{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13647echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 13648library_names_spec=
13649libname_spec='lib$name'
13650soname_spec=
13651shrext_cmds=".so"
13652postinstall_cmds=
13653postuninstall_cmds=
13654finish_cmds=
13655finish_eval=
13656shlibpath_var=
13657shlibpath_overrides_runpath=unknown
13658version_type=none
13659dynamic_linker="$host_os ld.so"
13660sys_lib_dlsearch_path_spec="/lib /usr/lib"
13661if test "$GCC" = yes; then
13662 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13663 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13664 # if the path contains ";" then we assume it to be the separator
13665 # otherwise default to the standard path separator (i.e. ":") - it is
13666 # assumed that no part of a normal pathname contains ";" but that should
13667 # okay in the real world where ";" in dirpaths is itself problematic.
13668 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13669 else
13670 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13671 fi
13672else
13673 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13674fi
13675need_lib_prefix=unknown
13676hardcode_into_libs=no
13677
13678# when you set need_version to no, make sure it does not cause -set_version
13679# flags to be left without arguments
13680need_version=unknown
13681
13682case $host_os in
13683aix3*)
13684 version_type=linux
13685 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13686 shlibpath_var=LIBPATH
13687
13688 # AIX 3 has no versioning support, so we append a major version to the name.
13689 soname_spec='${libname}${release}${shared_ext}$major'
13690 ;;
13691
13692aix4* | aix5*)
13693 version_type=linux
13694 need_lib_prefix=no
13695 need_version=no
13696 hardcode_into_libs=yes
13697 if test "$host_cpu" = ia64; then
13698 # AIX 5 supports IA64
13699 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13700 shlibpath_var=LD_LIBRARY_PATH
13701 else
13702 # With GCC up to 2.95.x, collect2 would create an import file
13703 # for dependence libraries. The import file would start with
13704 # the line `#! .'. This would cause the generated library to
13705 # depend on `.', always an invalid library. This was fixed in
13706 # development snapshots of GCC prior to 3.0.
13707 case $host_os in
13708 aix4 | aix4.[01] | aix4.[01].*)
13709 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13710 echo ' yes '
13711 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13712 :
13713 else
13714 can_build_shared=no
13715 fi
13716 ;;
13717 esac
13718 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13719 # soname into executable. Probably we can add versioning support to
13720 # collect2, so additional links can be useful in future.
13721 if test "$aix_use_runtimelinking" = yes; then
13722 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13723 # instead of lib<name>.a to let people know that these are not
13724 # typical AIX shared libraries.
13725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13726 else
13727 # We preserve .a as extension for shared libraries through AIX4.2
13728 # and later when we are not doing run time linking.
13729 library_names_spec='${libname}${release}.a $libname.a'
13730 soname_spec='${libname}${release}${shared_ext}$major'
13731 fi
13732 shlibpath_var=LIBPATH
13733 fi
13734 ;;
13735
13736amigaos*)
13737 library_names_spec='$libname.ixlibrary $libname.a'
13738 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13739 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'
13740 ;;
13741
13742beos*)
13743 library_names_spec='${libname}${shared_ext}'
13744 dynamic_linker="$host_os ld.so"
13745 shlibpath_var=LIBRARY_PATH
13746 ;;
13747
13748bsdi[45]*)
13749 version_type=linux
13750 need_version=no
13751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13752 soname_spec='${libname}${release}${shared_ext}$major'
13753 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13754 shlibpath_var=LD_LIBRARY_PATH
13755 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13756 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13757 # the default ld.so.conf also contains /usr/contrib/lib and
13758 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13759 # libtool to hard-code these into programs
13760 ;;
13761
13762cygwin* | mingw* | pw32*)
13763 version_type=windows
13764 shrext_cmds=".dll"
13765 need_version=no
13766 need_lib_prefix=no
13767
13768 case $GCC,$host_os in
13769 yes,cygwin* | yes,mingw* | yes,pw32*)
13770 library_names_spec='$libname.dll.a'
13771 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13772 postinstall_cmds='base_file=`basename \${file}`~
13773 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13774 dldir=$destdir/`dirname \$dlpath`~
13775 test -d \$dldir || mkdir -p \$dldir~
13776 $install_prog $dir/$dlname \$dldir/$dlname~
13777 chmod a+x \$dldir/$dlname'
13778 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13779 dlpath=$dir/\$dldll~
13780 $rm \$dlpath'
13781 shlibpath_overrides_runpath=yes
13782
13783 case $host_os in
13784 cygwin*)
13785 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13786 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13787 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13788 ;;
13789 mingw*)
13790 # MinGW DLLs use traditional 'lib' prefix
13791 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13792 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13793 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13794 # It is most probably a Windows format PATH printed by
13795 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13796 # path with ; separators, and with drive letters. We can handle the
13797 # drive letters (cygwin fileutils understands them), so leave them,
13798 # especially as we might pass files found there to a mingw objdump,
13799 # which wouldn't understand a cygwinified path. Ahh.
13800 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13801 else
13802 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13803 fi
13804 ;;
13805 pw32*)
13806 # pw32 DLLs use 'pw' prefix rather than 'lib'
13807 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13808 ;;
13809 esac
13810 ;;
13811
13812 *)
13813 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13814 ;;
13815 esac
13816 dynamic_linker='Win32 ld.exe'
13817 # FIXME: first we should search . and the directory the executable is in
13818 shlibpath_var=PATH
13819 ;;
13820
13821darwin* | rhapsody*)
13822 dynamic_linker="$host_os dyld"
13823 version_type=darwin
13824 need_lib_prefix=no
13825 need_version=no
13826 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13827 soname_spec='${libname}${release}${major}$shared_ext'
13828 shlibpath_overrides_runpath=yes
13829 shlibpath_var=DYLD_LIBRARY_PATH
13830 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13831 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13832 if test "$GCC" = yes; then
13833 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13834 else
13835 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13836 fi
13837 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13838 ;;
13839
13840dgux*)
13841 version_type=linux
13842 need_lib_prefix=no
13843 need_version=no
13844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13845 soname_spec='${libname}${release}${shared_ext}$major'
13846 shlibpath_var=LD_LIBRARY_PATH
13847 ;;
13848
13849freebsd1*)
13850 dynamic_linker=no
13851 ;;
13852
13853kfreebsd*-gnu)
13854 version_type=linux
13855 need_lib_prefix=no
13856 need_version=no
13857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13858 soname_spec='${libname}${release}${shared_ext}$major'
13859 shlibpath_var=LD_LIBRARY_PATH
13860 shlibpath_overrides_runpath=no
13861 hardcode_into_libs=yes
13862 dynamic_linker='GNU ld.so'
13863 ;;
13864
13865freebsd* | dragonfly*)
13866 # DragonFly does not have aout. When/if they implement a new
13867 # versioning mechanism, adjust this.
13868 if test -x /usr/bin/objformat; then
13869 objformat=`/usr/bin/objformat`
13870 else
13871 case $host_os in
13872 freebsd[123]*) objformat=aout ;;
13873 *) objformat=elf ;;
13874 esac
13875 fi
13876 version_type=freebsd-$objformat
13877 case $version_type in
13878 freebsd-elf*)
13879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13880 need_version=no
13881 need_lib_prefix=no
13882 ;;
13883 freebsd-*)
13884 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13885 need_version=yes
13886 ;;
13887 esac
13888 shlibpath_var=LD_LIBRARY_PATH
13889 case $host_os in
13890 freebsd2*)
13891 shlibpath_overrides_runpath=yes
13892 ;;
13893 freebsd3.[01]* | freebsdelf3.[01]*)
13894 shlibpath_overrides_runpath=yes
13895 hardcode_into_libs=yes
13896 ;;
13897 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13898 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13899 shlibpath_overrides_runpath=no
13900 hardcode_into_libs=yes
13901 ;;
13902 freebsd*) # from 4.6 on
13903 shlibpath_overrides_runpath=yes
13904 hardcode_into_libs=yes
13905 ;;
13906 esac
13907 ;;
13908
13909gnu*)
13910 version_type=linux
13911 need_lib_prefix=no
13912 need_version=no
13913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13914 soname_spec='${libname}${release}${shared_ext}$major'
13915 shlibpath_var=LD_LIBRARY_PATH
13916 hardcode_into_libs=yes
13917 ;;
13918
13919hpux9* | hpux10* | hpux11*)
13920 # Give a soname corresponding to the major version so that dld.sl refuses to
13921 # link against other versions.
13922 version_type=sunos
13923 need_lib_prefix=no
13924 need_version=no
13925 case $host_cpu in
13926 ia64*)
13927 shrext_cmds='.so'
13928 hardcode_into_libs=yes
13929 dynamic_linker="$host_os dld.so"
13930 shlibpath_var=LD_LIBRARY_PATH
13931 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13933 soname_spec='${libname}${release}${shared_ext}$major'
13934 if test "X$HPUX_IA64_MODE" = X32; then
13935 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13936 else
13937 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13938 fi
13939 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13940 ;;
13941 hppa*64*)
13942 shrext_cmds='.sl'
13943 hardcode_into_libs=yes
13944 dynamic_linker="$host_os dld.sl"
13945 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13946 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13948 soname_spec='${libname}${release}${shared_ext}$major'
13949 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13950 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13951 ;;
13952 *)
13953 shrext_cmds='.sl'
13954 dynamic_linker="$host_os dld.sl"
13955 shlibpath_var=SHLIB_PATH
13956 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13958 soname_spec='${libname}${release}${shared_ext}$major'
13959 ;;
13960 esac
13961 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13962 postinstall_cmds='chmod 555 $lib'
13963 ;;
13964
13965interix3*)
13966 version_type=linux
13967 need_lib_prefix=no
13968 need_version=no
13969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13970 soname_spec='${libname}${release}${shared_ext}$major'
13971 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13972 shlibpath_var=LD_LIBRARY_PATH
13973 shlibpath_overrides_runpath=no
13974 hardcode_into_libs=yes
13975 ;;
13976
13977irix5* | irix6* | nonstopux*)
13978 case $host_os in
13979 nonstopux*) version_type=nonstopux ;;
13980 *)
13981 if test "$lt_cv_prog_gnu_ld" = yes; then
13982 version_type=linux
13983 else
13984 version_type=irix
13985 fi ;;
13986 esac
13987 need_lib_prefix=no
13988 need_version=no
13989 soname_spec='${libname}${release}${shared_ext}$major'
13990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13991 case $host_os in
13992 irix5* | nonstopux*)
13993 libsuff= shlibsuff=
13994 ;;
13995 *)
13996 case $LD in # libtool.m4 will add one of these switches to LD
13997 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13998 libsuff= shlibsuff= libmagic=32-bit;;
13999 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14000 libsuff=32 shlibsuff=N32 libmagic=N32;;
14001 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14002 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14003 *) libsuff= shlibsuff= libmagic=never-match;;
14004 esac
14005 ;;
14006 esac
14007 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14008 shlibpath_overrides_runpath=no
14009 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14010 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14011 hardcode_into_libs=yes
14012 ;;
14013
14014# No shared lib support for Linux oldld, aout, or coff.
14015linux*oldld* | linux*aout* | linux*coff*)
14016 dynamic_linker=no
14017 ;;
14018
14019# This must be Linux ELF.
14020linux*)
14021 version_type=linux
14022 need_lib_prefix=no
14023 need_version=no
14024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14025 soname_spec='${libname}${release}${shared_ext}$major'
14026 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14027 shlibpath_var=LD_LIBRARY_PATH
14028 shlibpath_overrides_runpath=no
14029 # This implies no fast_install, which is unacceptable.
14030 # Some rework will be needed to allow for fast_install
14031 # before this can be enabled.
14032 hardcode_into_libs=yes
14033
14034 # find out which ABI we are using
14035 libsuff=
14036 case "$host_cpu" in
14037 x86_64*|s390x*|powerpc64*)
64ff59ba 14038 echo '#line 14038 "configure"' > conftest.$ac_ext
d9898ee8 14039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14040 (eval $ac_compile) 2>&5
14041 ac_status=$?
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); }; then
14044 case `/usr/bin/file conftest.$ac_objext` in
14045 *64-bit*)
14046 libsuff=64
14047 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14048 ;;
14049 esac
14050 fi
14051 rm -rf conftest*
14052 ;;
14053 esac
14054
14055 # Append ld.so.conf contents to the search path
14056 if test -f /etc/ld.so.conf; then
64ff59ba 14057 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/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
d9898ee8 14058 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14059 fi
14060
14061 # We used to test for /lib/ld.so.1 and disable shared libraries on
14062 # powerpc, because MkLinux only supported shared libraries with the
14063 # GNU dynamic linker. Since this was broken with cross compilers,
14064 # most powerpc-linux boxes support dynamic linking these days and
14065 # people can always --disable-shared, the test was removed, and we
14066 # assume the GNU/Linux dynamic linker is in use.
14067 dynamic_linker='GNU/Linux ld.so'
14068 ;;
14069
14070knetbsd*-gnu)
14071 version_type=linux
14072 need_lib_prefix=no
14073 need_version=no
14074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14075 soname_spec='${libname}${release}${shared_ext}$major'
14076 shlibpath_var=LD_LIBRARY_PATH
14077 shlibpath_overrides_runpath=no
14078 hardcode_into_libs=yes
14079 dynamic_linker='GNU ld.so'
14080 ;;
14081
14082netbsd*)
14083 version_type=sunos
14084 need_lib_prefix=no
14085 need_version=no
14086 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14088 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14089 dynamic_linker='NetBSD (a.out) ld.so'
14090 else
14091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14092 soname_spec='${libname}${release}${shared_ext}$major'
14093 dynamic_linker='NetBSD ld.elf_so'
14094 fi
14095 shlibpath_var=LD_LIBRARY_PATH
14096 shlibpath_overrides_runpath=yes
14097 hardcode_into_libs=yes
14098 ;;
14099
14100newsos6)
14101 version_type=linux
14102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14103 shlibpath_var=LD_LIBRARY_PATH
14104 shlibpath_overrides_runpath=yes
14105 ;;
14106
14107nto-qnx*)
14108 version_type=linux
14109 need_lib_prefix=no
14110 need_version=no
14111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14112 soname_spec='${libname}${release}${shared_ext}$major'
14113 shlibpath_var=LD_LIBRARY_PATH
14114 shlibpath_overrides_runpath=yes
14115 ;;
14116
14117openbsd*)
14118 version_type=sunos
14119 sys_lib_dlsearch_path_spec="/usr/lib"
14120 need_lib_prefix=no
14121 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14122 case $host_os in
14123 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14124 *) need_version=no ;;
14125 esac
14126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14127 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14128 shlibpath_var=LD_LIBRARY_PATH
14129 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14130 case $host_os in
14131 openbsd2.[89] | openbsd2.[89].*)
14132 shlibpath_overrides_runpath=no
14133 ;;
14134 *)
14135 shlibpath_overrides_runpath=yes
14136 ;;
14137 esac
14138 else
14139 shlibpath_overrides_runpath=yes
14140 fi
14141 ;;
14142
14143os2*)
14144 libname_spec='$name'
14145 shrext_cmds=".dll"
14146 need_lib_prefix=no
14147 library_names_spec='$libname${shared_ext} $libname.a'
14148 dynamic_linker='OS/2 ld.exe'
14149 shlibpath_var=LIBPATH
14150 ;;
14151
14152osf3* | osf4* | osf5*)
14153 version_type=osf
14154 need_lib_prefix=no
14155 need_version=no
14156 soname_spec='${libname}${release}${shared_ext}$major'
14157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14158 shlibpath_var=LD_LIBRARY_PATH
14159 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14160 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14161 ;;
14162
14163solaris*)
14164 version_type=linux
14165 need_lib_prefix=no
14166 need_version=no
14167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14168 soname_spec='${libname}${release}${shared_ext}$major'
14169 shlibpath_var=LD_LIBRARY_PATH
14170 shlibpath_overrides_runpath=yes
14171 hardcode_into_libs=yes
14172 # ldd complains unless libraries are executable
14173 postinstall_cmds='chmod +x $lib'
14174 ;;
14175
14176sunos4*)
14177 version_type=sunos
14178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14179 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14180 shlibpath_var=LD_LIBRARY_PATH
14181 shlibpath_overrides_runpath=yes
14182 if test "$with_gnu_ld" = yes; then
14183 need_lib_prefix=no
14184 fi
14185 need_version=yes
14186 ;;
14187
14188sysv4 | sysv4.3*)
14189 version_type=linux
14190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14191 soname_spec='${libname}${release}${shared_ext}$major'
14192 shlibpath_var=LD_LIBRARY_PATH
14193 case $host_vendor in
14194 sni)
14195 shlibpath_overrides_runpath=no
14196 need_lib_prefix=no
14197 export_dynamic_flag_spec='${wl}-Blargedynsym'
14198 runpath_var=LD_RUN_PATH
14199 ;;
14200 siemens)
14201 need_lib_prefix=no
14202 ;;
14203 motorola)
14204 need_lib_prefix=no
14205 need_version=no
14206 shlibpath_overrides_runpath=no
14207 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14208 ;;
14209 esac
14210 ;;
14211
14212sysv4*MP*)
14213 if test -d /usr/nec ;then
14214 version_type=linux
14215 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14216 soname_spec='$libname${shared_ext}.$major'
14217 shlibpath_var=LD_LIBRARY_PATH
14218 fi
14219 ;;
14220
14221sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14222 version_type=freebsd-elf
14223 need_lib_prefix=no
14224 need_version=no
14225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14226 soname_spec='${libname}${release}${shared_ext}$major'
14227 shlibpath_var=LD_LIBRARY_PATH
14228 hardcode_into_libs=yes
14229 if test "$with_gnu_ld" = yes; then
14230 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14231 shlibpath_overrides_runpath=no
14232 else
14233 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14234 shlibpath_overrides_runpath=yes
14235 case $host_os in
14236 sco3.2v5*)
14237 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14238 ;;
14239 esac
14240 fi
14241 sys_lib_dlsearch_path_spec='/usr/lib'
14242 ;;
14243
14244uts4*)
14245 version_type=linux
14246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14247 soname_spec='${libname}${release}${shared_ext}$major'
14248 shlibpath_var=LD_LIBRARY_PATH
14249 ;;
14250
14251*)
14252 dynamic_linker=no
14253 ;;
14254esac
64ff59ba 14255{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14256echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 14257test "$dynamic_linker" = no && can_build_shared=no
14258
14259variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14260if test "$GCC" = yes; then
14261 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14262fi
14263
64ff59ba 14264{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14265echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 14266hardcode_action_CXX=
14267if test -n "$hardcode_libdir_flag_spec_CXX" || \
14268 test -n "$runpath_var_CXX" || \
14269 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14270
14271 # We can hardcode non-existant directories.
14272 if test "$hardcode_direct_CXX" != no &&
14273 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14274 # have to relink, otherwise we might link with an installed library
14275 # when we should be linking with a yet-to-be-installed one
14276 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14277 test "$hardcode_minus_L_CXX" != no; then
14278 # Linking always hardcodes the temporary library directory.
14279 hardcode_action_CXX=relink
14280 else
14281 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14282 hardcode_action_CXX=immediate
14283 fi
14284else
14285 # We cannot hardcode anything, or else we can only hardcode existing
14286 # directories.
14287 hardcode_action_CXX=unsupported
14288fi
64ff59ba 14289{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14290echo "${ECHO_T}$hardcode_action_CXX" >&6; }
d9898ee8 14291
14292if test "$hardcode_action_CXX" = relink; then
14293 # Fast installation is not supported
14294 enable_fast_install=no
14295elif test "$shlibpath_overrides_runpath" = yes ||
14296 test "$enable_shared" = no; then
14297 # Fast installation is not necessary
14298 enable_fast_install=needless
14299fi
14300
14301
14302# The else clause should only fire when bootstrapping the
14303# libtool distribution, otherwise you forgot to ship ltmain.sh
14304# with your package, and you will get complaints that there are
14305# no rules to generate ltmain.sh.
14306if test -f "$ltmain"; then
14307 # See if we are running on zsh, and set the options which allow our commands through
14308 # without removal of \ escapes.
14309 if test -n "${ZSH_VERSION+set}" ; then
14310 setopt NO_GLOB_SUBST
14311 fi
14312 # Now quote all the things that may contain metacharacters while being
14313 # careful not to overquote the AC_SUBSTed values. We take copies of the
14314 # variables and quote the copies for generation of the libtool script.
14315 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14316 SED SHELL STRIP \
14317 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14318 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14319 deplibs_check_method reload_flag reload_cmds need_locks \
14320 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14321 lt_cv_sys_global_symbol_to_c_name_address \
14322 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14323 old_postinstall_cmds old_postuninstall_cmds \
14324 compiler_CXX \
14325 CC_CXX \
14326 LD_CXX \
14327 lt_prog_compiler_wl_CXX \
14328 lt_prog_compiler_pic_CXX \
14329 lt_prog_compiler_static_CXX \
14330 lt_prog_compiler_no_builtin_flag_CXX \
14331 export_dynamic_flag_spec_CXX \
14332 thread_safe_flag_spec_CXX \
14333 whole_archive_flag_spec_CXX \
14334 enable_shared_with_static_runtimes_CXX \
14335 old_archive_cmds_CXX \
14336 old_archive_from_new_cmds_CXX \
14337 predep_objects_CXX \
14338 postdep_objects_CXX \
14339 predeps_CXX \
14340 postdeps_CXX \
14341 compiler_lib_search_path_CXX \
14342 archive_cmds_CXX \
14343 archive_expsym_cmds_CXX \
14344 postinstall_cmds_CXX \
14345 postuninstall_cmds_CXX \
14346 old_archive_from_expsyms_cmds_CXX \
14347 allow_undefined_flag_CXX \
14348 no_undefined_flag_CXX \
14349 export_symbols_cmds_CXX \
14350 hardcode_libdir_flag_spec_CXX \
14351 hardcode_libdir_flag_spec_ld_CXX \
14352 hardcode_libdir_separator_CXX \
14353 hardcode_automatic_CXX \
14354 module_cmds_CXX \
14355 module_expsym_cmds_CXX \
14356 lt_cv_prog_compiler_c_o_CXX \
14357 exclude_expsyms_CXX \
14358 include_expsyms_CXX; do
14359
14360 case $var in
14361 old_archive_cmds_CXX | \
14362 old_archive_from_new_cmds_CXX | \
14363 archive_cmds_CXX | \
14364 archive_expsym_cmds_CXX | \
14365 module_cmds_CXX | \
14366 module_expsym_cmds_CXX | \
14367 old_archive_from_expsyms_cmds_CXX | \
14368 export_symbols_cmds_CXX | \
14369 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14370 postinstall_cmds | postuninstall_cmds | \
14371 old_postinstall_cmds | old_postuninstall_cmds | \
14372 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14373 # Double-quote double-evaled strings.
14374 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14375 ;;
14376 *)
14377 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14378 ;;
14379 esac
14380 done
14381
14382 case $lt_echo in
14383 *'\$0 --fallback-echo"')
14384 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14385 ;;
14386 esac
14387
14388cfgfile="$ofile"
14389
14390 cat <<__EOF__ >> "$cfgfile"
14391# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14392
14393# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14394
14395# Shell to use when invoking shell scripts.
14396SHELL=$lt_SHELL
14397
14398# Whether or not to build shared libraries.
14399build_libtool_libs=$enable_shared
14400
14401# Whether or not to build static libraries.
14402build_old_libs=$enable_static
14403
14404# Whether or not to add -lc for building shared libraries.
14405build_libtool_need_lc=$archive_cmds_need_lc_CXX
14406
14407# Whether or not to disallow shared libs when runtime libs are static
14408allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14409
14410# Whether or not to optimize for fast installation.
14411fast_install=$enable_fast_install
14412
14413# The host system.
14414host_alias=$host_alias
14415host=$host
14416host_os=$host_os
14417
14418# The build system.
14419build_alias=$build_alias
14420build=$build
14421build_os=$build_os
14422
14423# An echo program that does not interpret backslashes.
14424echo=$lt_echo
14425
14426# The archiver.
14427AR=$lt_AR
14428AR_FLAGS=$lt_AR_FLAGS
14429
14430# A C compiler.
14431LTCC=$lt_LTCC
14432
14433# LTCC compiler flags.
14434LTCFLAGS=$lt_LTCFLAGS
14435
14436# A language-specific compiler.
14437CC=$lt_compiler_CXX
14438
14439# Is the compiler the GNU C compiler?
14440with_gcc=$GCC_CXX
14441
d9898ee8 14442# An ERE matcher.
14443EGREP=$lt_EGREP
14444
14445# The linker used to build libraries.
14446LD=$lt_LD_CXX
14447
14448# Whether we need hard or soft links.
14449LN_S=$lt_LN_S
14450
14451# A BSD-compatible nm program.
14452NM=$lt_NM
14453
14454# A symbol stripping program
14455STRIP=$lt_STRIP
14456
14457# Used to examine libraries when file_magic_cmd begins "file"
14458MAGIC_CMD=$MAGIC_CMD
14459
14460# Used on cygwin: DLL creation program.
14461DLLTOOL="$DLLTOOL"
14462
14463# Used on cygwin: object dumper.
14464OBJDUMP="$OBJDUMP"
14465
14466# Used on cygwin: assembler.
14467AS="$AS"
14468
14469# The name of the directory that contains temporary libtool files.
14470objdir=$objdir
14471
14472# How to create reloadable object files.
14473reload_flag=$lt_reload_flag
14474reload_cmds=$lt_reload_cmds
14475
14476# How to pass a linker flag through the compiler.
14477wl=$lt_lt_prog_compiler_wl_CXX
14478
14479# Object file suffix (normally "o").
14480objext="$ac_objext"
14481
14482# Old archive suffix (normally "a").
14483libext="$libext"
14484
14485# Shared library suffix (normally ".so").
14486shrext_cmds='$shrext_cmds'
14487
14488# Executable file suffix (normally "").
14489exeext="$exeext"
14490
14491# Additional compiler flags for building library objects.
14492pic_flag=$lt_lt_prog_compiler_pic_CXX
14493pic_mode=$pic_mode
14494
14495# What is the maximum length of a command?
14496max_cmd_len=$lt_cv_sys_max_cmd_len
14497
14498# Does compiler simultaneously support -c and -o options?
14499compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14500
14501# Must we lock files when doing compilation?
14502need_locks=$lt_need_locks
14503
14504# Do we need the lib prefix for modules?
14505need_lib_prefix=$need_lib_prefix
14506
14507# Do we need a version for libraries?
14508need_version=$need_version
14509
14510# Whether dlopen is supported.
14511dlopen_support=$enable_dlopen
14512
14513# Whether dlopen of programs is supported.
14514dlopen_self=$enable_dlopen_self
14515
14516# Whether dlopen of statically linked programs is supported.
14517dlopen_self_static=$enable_dlopen_self_static
14518
14519# Compiler flag to prevent dynamic linking.
14520link_static_flag=$lt_lt_prog_compiler_static_CXX
14521
14522# Compiler flag to turn off builtin functions.
14523no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14524
14525# Compiler flag to allow reflexive dlopens.
14526export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14527
14528# Compiler flag to generate shared objects directly from archives.
14529whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14530
14531# Compiler flag to generate thread-safe objects.
14532thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14533
14534# Library versioning type.
14535version_type=$version_type
14536
14537# Format of library name prefix.
14538libname_spec=$lt_libname_spec
14539
14540# List of archive names. First name is the real one, the rest are links.
14541# The last name is the one that the linker finds with -lNAME.
14542library_names_spec=$lt_library_names_spec
14543
14544# The coded name of the library, if different from the real name.
14545soname_spec=$lt_soname_spec
14546
14547# Commands used to build and install an old-style archive.
14548RANLIB=$lt_RANLIB
14549old_archive_cmds=$lt_old_archive_cmds_CXX
14550old_postinstall_cmds=$lt_old_postinstall_cmds
14551old_postuninstall_cmds=$lt_old_postuninstall_cmds
14552
14553# Create an old-style archive from a shared archive.
14554old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14555
14556# Create a temporary old-style archive to link instead of a shared archive.
14557old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14558
14559# Commands used to build and install a shared archive.
14560archive_cmds=$lt_archive_cmds_CXX
14561archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14562postinstall_cmds=$lt_postinstall_cmds
14563postuninstall_cmds=$lt_postuninstall_cmds
14564
14565# Commands used to build a loadable module (assumed same as above if empty)
14566module_cmds=$lt_module_cmds_CXX
14567module_expsym_cmds=$lt_module_expsym_cmds_CXX
14568
14569# Commands to strip libraries.
14570old_striplib=$lt_old_striplib
14571striplib=$lt_striplib
14572
14573# Dependencies to place before the objects being linked to create a
14574# shared library.
64ff59ba 14575predep_objects=$lt_predep_objects_CXX
d9898ee8 14576
14577# Dependencies to place after the objects being linked to create a
14578# shared library.
64ff59ba 14579postdep_objects=$lt_postdep_objects_CXX
d9898ee8 14580
14581# Dependencies to place before the objects being linked to create a
14582# shared library.
14583predeps=$lt_predeps_CXX
14584
14585# Dependencies to place after the objects being linked to create a
14586# shared library.
14587postdeps=$lt_postdeps_CXX
14588
14589# The library search path used internally by the compiler when linking
14590# a shared library.
64ff59ba 14591compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
d9898ee8 14592
14593# Method to check whether dependent libraries are shared objects.
14594deplibs_check_method=$lt_deplibs_check_method
14595
14596# Command to use when deplibs_check_method == file_magic.
14597file_magic_cmd=$lt_file_magic_cmd
14598
14599# Flag that allows shared libraries with undefined symbols to be built.
14600allow_undefined_flag=$lt_allow_undefined_flag_CXX
14601
14602# Flag that forces no undefined symbols.
14603no_undefined_flag=$lt_no_undefined_flag_CXX
14604
14605# Commands used to finish a libtool library installation in a directory.
14606finish_cmds=$lt_finish_cmds
14607
14608# Same as above, but a single script fragment to be evaled but not shown.
14609finish_eval=$lt_finish_eval
14610
14611# Take the output of nm and produce a listing of raw symbols and C names.
14612global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14613
14614# Transform the output of nm in a proper C declaration
14615global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14616
14617# Transform the output of nm in a C name address pair
14618global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14619
14620# This is the shared library runtime path variable.
14621runpath_var=$runpath_var
14622
14623# This is the shared library path variable.
14624shlibpath_var=$shlibpath_var
14625
14626# Is shlibpath searched before the hard-coded library search path?
14627shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14628
14629# How to hardcode a shared library path into an executable.
14630hardcode_action=$hardcode_action_CXX
14631
14632# Whether we should hardcode library paths into libraries.
14633hardcode_into_libs=$hardcode_into_libs
14634
14635# Flag to hardcode \$libdir into a binary during linking.
14636# This must work even if \$libdir does not exist.
14637hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14638
14639# If ld is used when linking, flag to hardcode \$libdir into
14640# a binary during linking. This must work even if \$libdir does
14641# not exist.
14642hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14643
14644# Whether we need a single -rpath flag with a separated argument.
14645hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14646
14647# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14648# resulting binary.
14649hardcode_direct=$hardcode_direct_CXX
14650
14651# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14652# resulting binary.
14653hardcode_minus_L=$hardcode_minus_L_CXX
14654
14655# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14656# the resulting binary.
14657hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14658
14659# Set to yes if building a shared library automatically hardcodes DIR into the library
14660# and all subsequent libraries and executables linked against it.
14661hardcode_automatic=$hardcode_automatic_CXX
14662
14663# Variables whose values should be saved in libtool wrapper scripts and
14664# restored at relink time.
14665variables_saved_for_relink="$variables_saved_for_relink"
14666
14667# Whether libtool must link a program against all its dependency libraries.
14668link_all_deplibs=$link_all_deplibs_CXX
14669
14670# Compile-time system search path for libraries
64ff59ba 14671sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 14672
14673# Run-time system search path for libraries
14674sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14675
14676# Fix the shell variable \$srcfile for the compiler.
14677fix_srcfile_path="$fix_srcfile_path_CXX"
14678
14679# Set to yes if exported symbols are required.
14680always_export_symbols=$always_export_symbols_CXX
14681
14682# The commands to list exported symbols.
14683export_symbols_cmds=$lt_export_symbols_cmds_CXX
14684
14685# The commands to extract the exported symbol list from a shared archive.
14686extract_expsyms_cmds=$lt_extract_expsyms_cmds
14687
14688# Symbols that should not be listed in the preloaded symbols.
14689exclude_expsyms=$lt_exclude_expsyms_CXX
14690
14691# Symbols that must always be exported.
14692include_expsyms=$lt_include_expsyms_CXX
14693
14694# ### END LIBTOOL TAG CONFIG: $tagname
14695
14696__EOF__
14697
14698
14699else
14700 # If there is no Makefile yet, we rely on a make rule to execute
14701 # `config.status --recheck' to rerun these tests and create the
14702 # libtool script then.
14703 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14704 if test -f "$ltmain_in"; then
14705 test -f Makefile && make "$ltmain"
14706 fi
14707fi
14708
14709
14710ac_ext=c
14711ac_cpp='$CPP $CPPFLAGS'
14712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14714ac_compiler_gnu=$ac_cv_c_compiler_gnu
14715
14716CC=$lt_save_CC
14717LDCXX=$LD
14718LD=$lt_save_LD
14719GCC=$lt_save_GCC
14720with_gnu_ldcxx=$with_gnu_ld
14721with_gnu_ld=$lt_save_with_gnu_ld
14722lt_cv_path_LDCXX=$lt_cv_path_LD
14723lt_cv_path_LD=$lt_save_path_LD
14724lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14725lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14726
14727 else
14728 tagname=""
14729 fi
14730 ;;
14731
14732 F77)
14733 if test -n "$F77" && test "X$F77" != "Xno"; then
14734
14735ac_ext=f
14736ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14737ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14738ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14739
14740
14741archive_cmds_need_lc_F77=no
14742allow_undefined_flag_F77=
14743always_export_symbols_F77=no
14744archive_expsym_cmds_F77=
14745export_dynamic_flag_spec_F77=
14746hardcode_direct_F77=no
14747hardcode_libdir_flag_spec_F77=
14748hardcode_libdir_flag_spec_ld_F77=
14749hardcode_libdir_separator_F77=
14750hardcode_minus_L_F77=no
14751hardcode_automatic_F77=no
14752module_cmds_F77=
14753module_expsym_cmds_F77=
14754link_all_deplibs_F77=unknown
14755old_archive_cmds_F77=$old_archive_cmds
14756no_undefined_flag_F77=
14757whole_archive_flag_spec_F77=
14758enable_shared_with_static_runtimes_F77=no
14759
14760# Source file extension for f77 test sources.
14761ac_ext=f
14762
14763# Object file extension for compiled f77 test sources.
14764objext=o
14765objext_F77=$objext
14766
14767# Code to be used in simple compile tests
14768lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14769
14770# Code to be used in simple link tests
14771lt_simple_link_test_code=" program t\n end\n"
14772
14773# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14774
14775# If no C compiler was specified, use CC.
14776LTCC=${LTCC-"$CC"}
14777
14778# If no C compiler flags were specified, use CFLAGS.
14779LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14780
14781# Allow CC to be a program name with arguments.
14782compiler=$CC
14783
14784
14785# save warnings/boilerplate of simple test code
14786ac_outfile=conftest.$ac_objext
14787printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14788eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14789_lt_compiler_boilerplate=`cat conftest.err`
14790$rm conftest*
14791
14792ac_outfile=conftest.$ac_objext
14793printf "$lt_simple_link_test_code" >conftest.$ac_ext
14794eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14795_lt_linker_boilerplate=`cat conftest.err`
14796$rm conftest*
14797
14798
14799# Allow CC to be a program name with arguments.
14800lt_save_CC="$CC"
14801CC=${F77-"f77"}
14802compiler=$CC
14803compiler_F77=$CC
14804for cc_temp in $compiler""; do
14805 case $cc_temp in
14806 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14807 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14808 \-*) ;;
14809 *) break;;
14810 esac
14811done
14812cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14813
14814
64ff59ba 14815{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14816echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14817{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14818echo "${ECHO_T}$can_build_shared" >&6; }
d9898ee8 14819
64ff59ba 14820{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14821echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d9898ee8 14822test "$can_build_shared" = "no" && enable_shared=no
14823
14824# On AIX, shared libraries and static libraries use the same namespace, and
14825# are all built from PIC.
14826case $host_os in
14827aix3*)
14828 test "$enable_shared" = yes && enable_static=no
14829 if test -n "$RANLIB"; then
14830 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14831 postinstall_cmds='$RANLIB $lib'
14832 fi
14833 ;;
14834aix4* | aix5*)
14835 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14836 test "$enable_shared" = yes && enable_static=no
14837 fi
14838 ;;
14839esac
64ff59ba 14840{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14841echo "${ECHO_T}$enable_shared" >&6; }
d9898ee8 14842
64ff59ba 14843{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14844echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d9898ee8 14845# Make sure either enable_shared or enable_static is yes.
14846test "$enable_shared" = yes || enable_static=yes
64ff59ba 14847{ echo "$as_me:$LINENO: result: $enable_static" >&5
14848echo "${ECHO_T}$enable_static" >&6; }
d9898ee8 14849
14850GCC_F77="$G77"
14851LD_F77="$LD"
14852
14853lt_prog_compiler_wl_F77=
14854lt_prog_compiler_pic_F77=
14855lt_prog_compiler_static_F77=
14856
64ff59ba 14857{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14858echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 14859
14860 if test "$GCC" = yes; then
14861 lt_prog_compiler_wl_F77='-Wl,'
14862 lt_prog_compiler_static_F77='-static'
14863
14864 case $host_os in
14865 aix*)
14866 # All AIX code is PIC.
14867 if test "$host_cpu" = ia64; then
14868 # AIX 5 now supports IA64 processor
14869 lt_prog_compiler_static_F77='-Bstatic'
14870 fi
14871 ;;
14872
14873 amigaos*)
14874 # FIXME: we need at least 68020 code to build shared libraries, but
14875 # adding the `-m68020' flag to GCC prevents building anything better,
14876 # like `-m68040'.
14877 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14878 ;;
14879
14880 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14881 # PIC is the default for these OSes.
14882 ;;
14883
14884 mingw* | pw32* | os2*)
14885 # This hack is so that the source file can tell whether it is being
14886 # built for inclusion in a dll (and should export symbols for example).
14887 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14888 ;;
14889
14890 darwin* | rhapsody*)
14891 # PIC is the default on this platform
14892 # Common symbols not allowed in MH_DYLIB files
14893 lt_prog_compiler_pic_F77='-fno-common'
14894 ;;
14895
14896 interix3*)
14897 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14898 # Instead, we relocate shared libraries at runtime.
14899 ;;
14900
14901 msdosdjgpp*)
14902 # Just because we use GCC doesn't mean we suddenly get shared libraries
14903 # on systems that don't support them.
14904 lt_prog_compiler_can_build_shared_F77=no
14905 enable_shared=no
14906 ;;
14907
14908 sysv4*MP*)
14909 if test -d /usr/nec; then
14910 lt_prog_compiler_pic_F77=-Kconform_pic
14911 fi
14912 ;;
14913
14914 hpux*)
14915 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14916 # not for PA HP-UX.
14917 case $host_cpu in
14918 hppa*64*|ia64*)
14919 # +Z the default
14920 ;;
14921 *)
14922 lt_prog_compiler_pic_F77='-fPIC'
14923 ;;
14924 esac
14925 ;;
14926
14927 *)
14928 lt_prog_compiler_pic_F77='-fPIC'
14929 ;;
14930 esac
14931 else
14932 # PORTME Check for flag to pass linker flags through the system compiler.
14933 case $host_os in
14934 aix*)
14935 lt_prog_compiler_wl_F77='-Wl,'
14936 if test "$host_cpu" = ia64; then
14937 # AIX 5 now supports IA64 processor
14938 lt_prog_compiler_static_F77='-Bstatic'
14939 else
14940 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14941 fi
14942 ;;
14943 darwin*)
14944 # PIC is the default on this platform
14945 # Common symbols not allowed in MH_DYLIB files
14946 case $cc_basename in
14947 xlc*)
14948 lt_prog_compiler_pic_F77='-qnocommon'
14949 lt_prog_compiler_wl_F77='-Wl,'
14950 ;;
14951 esac
14952 ;;
14953
14954 mingw* | pw32* | os2*)
14955 # This hack is so that the source file can tell whether it is being
14956 # built for inclusion in a dll (and should export symbols for example).
14957 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14958 ;;
14959
14960 hpux9* | hpux10* | hpux11*)
14961 lt_prog_compiler_wl_F77='-Wl,'
14962 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14963 # not for PA HP-UX.
14964 case $host_cpu in
14965 hppa*64*|ia64*)
14966 # +Z the default
14967 ;;
14968 *)
14969 lt_prog_compiler_pic_F77='+Z'
14970 ;;
14971 esac
14972 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14973 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14974 ;;
14975
14976 irix5* | irix6* | nonstopux*)
14977 lt_prog_compiler_wl_F77='-Wl,'
14978 # PIC (with -KPIC) is the default.
14979 lt_prog_compiler_static_F77='-non_shared'
14980 ;;
14981
14982 newsos6)
14983 lt_prog_compiler_pic_F77='-KPIC'
14984 lt_prog_compiler_static_F77='-Bstatic'
14985 ;;
14986
14987 linux*)
14988 case $cc_basename in
14989 icc* | ecc*)
14990 lt_prog_compiler_wl_F77='-Wl,'
14991 lt_prog_compiler_pic_F77='-KPIC'
14992 lt_prog_compiler_static_F77='-static'
14993 ;;
14994 pgcc* | pgf77* | pgf90* | pgf95*)
14995 # Portland Group compilers (*not* the Pentium gcc compiler,
14996 # which looks to be a dead project)
14997 lt_prog_compiler_wl_F77='-Wl,'
14998 lt_prog_compiler_pic_F77='-fpic'
14999 lt_prog_compiler_static_F77='-Bstatic'
15000 ;;
15001 ccc*)
15002 lt_prog_compiler_wl_F77='-Wl,'
15003 # All Alpha code is PIC.
15004 lt_prog_compiler_static_F77='-non_shared'
15005 ;;
15006 esac
15007 ;;
15008
15009 osf3* | osf4* | osf5*)
15010 lt_prog_compiler_wl_F77='-Wl,'
15011 # All OSF/1 code is PIC.
15012 lt_prog_compiler_static_F77='-non_shared'
15013 ;;
15014
15015 solaris*)
15016 lt_prog_compiler_pic_F77='-KPIC'
15017 lt_prog_compiler_static_F77='-Bstatic'
15018 case $cc_basename in
15019 f77* | f90* | f95*)
15020 lt_prog_compiler_wl_F77='-Qoption ld ';;
15021 *)
15022 lt_prog_compiler_wl_F77='-Wl,';;
15023 esac
15024 ;;
15025
15026 sunos4*)
15027 lt_prog_compiler_wl_F77='-Qoption ld '
15028 lt_prog_compiler_pic_F77='-PIC'
15029 lt_prog_compiler_static_F77='-Bstatic'
15030 ;;
15031
15032 sysv4 | sysv4.2uw2* | sysv4.3*)
15033 lt_prog_compiler_wl_F77='-Wl,'
15034 lt_prog_compiler_pic_F77='-KPIC'
15035 lt_prog_compiler_static_F77='-Bstatic'
15036 ;;
15037
15038 sysv4*MP*)
15039 if test -d /usr/nec ;then
15040 lt_prog_compiler_pic_F77='-Kconform_pic'
15041 lt_prog_compiler_static_F77='-Bstatic'
15042 fi
15043 ;;
15044
15045 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15046 lt_prog_compiler_wl_F77='-Wl,'
15047 lt_prog_compiler_pic_F77='-KPIC'
15048 lt_prog_compiler_static_F77='-Bstatic'
15049 ;;
15050
15051 unicos*)
15052 lt_prog_compiler_wl_F77='-Wl,'
15053 lt_prog_compiler_can_build_shared_F77=no
15054 ;;
15055
15056 uts4*)
15057 lt_prog_compiler_pic_F77='-pic'
15058 lt_prog_compiler_static_F77='-Bstatic'
15059 ;;
15060
15061 *)
15062 lt_prog_compiler_can_build_shared_F77=no
15063 ;;
15064 esac
15065 fi
15066
64ff59ba 15067{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15068echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
d9898ee8 15069
15070#
15071# Check to make sure the PIC flag actually works.
15072#
15073if test -n "$lt_prog_compiler_pic_F77"; then
15074
64ff59ba 15075{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15076echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
d9898ee8 15077if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15078 echo $ECHO_N "(cached) $ECHO_C" >&6
15079else
15080 lt_prog_compiler_pic_works_F77=no
15081 ac_outfile=conftest.$ac_objext
15082 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15083 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15084 # Insert the option either (1) after the last *FLAGS variable, or
15085 # (2) before a word containing "conftest.", or (3) at the end.
15086 # Note that $ac_compile itself does not contain backslashes and begins
15087 # with a dollar sign (not a hyphen), so the echo should work correctly.
15088 # The option is referenced via a variable to avoid confusing sed.
15089 lt_compile=`echo "$ac_compile" | $SED \
15090 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15091 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15092 -e 's:$: $lt_compiler_flag:'`
64ff59ba 15093 (eval echo "\"\$as_me:15093: $lt_compile\"" >&5)
d9898ee8 15094 (eval "$lt_compile" 2>conftest.err)
15095 ac_status=$?
15096 cat conftest.err >&5
64ff59ba 15097 echo "$as_me:15097: \$? = $ac_status" >&5
d9898ee8 15098 if (exit $ac_status) && test -s "$ac_outfile"; then
15099 # The compiler can only warn and ignore the option if not recognized
15100 # So say no if there are warnings other than the usual output.
15101 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15102 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15103 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15104 lt_prog_compiler_pic_works_F77=yes
15105 fi
15106 fi
15107 $rm conftest*
15108
15109fi
64ff59ba 15110{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15111echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
d9898ee8 15112
15113if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15114 case $lt_prog_compiler_pic_F77 in
15115 "" | " "*) ;;
15116 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15117 esac
15118else
15119 lt_prog_compiler_pic_F77=
15120 lt_prog_compiler_can_build_shared_F77=no
15121fi
15122
15123fi
15124case $host_os in
15125 # For platforms which do not support PIC, -DPIC is meaningless:
15126 *djgpp*)
15127 lt_prog_compiler_pic_F77=
15128 ;;
15129 *)
15130 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15131 ;;
15132esac
15133
15134#
15135# Check to make sure the static flag actually works.
15136#
15137wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
64ff59ba 15138{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15139echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 15140if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15141 echo $ECHO_N "(cached) $ECHO_C" >&6
15142else
15143 lt_prog_compiler_static_works_F77=no
15144 save_LDFLAGS="$LDFLAGS"
15145 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15146 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15147 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15148 # The linker can only warn and ignore the option if not recognized
15149 # So say no if there are warnings
15150 if test -s conftest.err; then
15151 # Append any errors to the config.log.
15152 cat conftest.err 1>&5
15153 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15154 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15155 if diff conftest.exp conftest.er2 >/dev/null; then
15156 lt_prog_compiler_static_works_F77=yes
15157 fi
15158 else
15159 lt_prog_compiler_static_works_F77=yes
15160 fi
15161 fi
15162 $rm conftest*
15163 LDFLAGS="$save_LDFLAGS"
15164
15165fi
64ff59ba 15166{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15167echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
d9898ee8 15168
15169if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15170 :
15171else
15172 lt_prog_compiler_static_F77=
15173fi
15174
15175
64ff59ba 15176{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15177echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 15178if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15179 echo $ECHO_N "(cached) $ECHO_C" >&6
15180else
15181 lt_cv_prog_compiler_c_o_F77=no
15182 $rm -r conftest 2>/dev/null
15183 mkdir conftest
15184 cd conftest
15185 mkdir out
15186 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15187
15188 lt_compiler_flag="-o out/conftest2.$ac_objext"
15189 # Insert the option either (1) after the last *FLAGS variable, or
15190 # (2) before a word containing "conftest.", or (3) at the end.
15191 # Note that $ac_compile itself does not contain backslashes and begins
15192 # with a dollar sign (not a hyphen), so the echo should work correctly.
15193 lt_compile=`echo "$ac_compile" | $SED \
15194 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15195 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15196 -e 's:$: $lt_compiler_flag:'`
64ff59ba 15197 (eval echo "\"\$as_me:15197: $lt_compile\"" >&5)
d9898ee8 15198 (eval "$lt_compile" 2>out/conftest.err)
15199 ac_status=$?
15200 cat out/conftest.err >&5
64ff59ba 15201 echo "$as_me:15201: \$? = $ac_status" >&5
d9898ee8 15202 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15203 then
15204 # The compiler can only warn and ignore the option if not recognized
15205 # So say no if there are warnings
15206 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15207 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15208 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15209 lt_cv_prog_compiler_c_o_F77=yes
15210 fi
15211 fi
15212 chmod u+w . 2>&5
15213 $rm conftest*
15214 # SGI C++ compiler will create directory out/ii_files/ for
15215 # template instantiation
15216 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15217 $rm out/* && rmdir out
15218 cd ..
15219 rmdir conftest
15220 $rm conftest*
15221
15222fi
64ff59ba 15223{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15224echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
d9898ee8 15225
15226
15227hard_links="nottested"
15228if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15229 # do not overwrite the value of need_locks provided by the user
64ff59ba 15230 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15231echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 15232 hard_links=yes
15233 $rm conftest*
15234 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15235 touch conftest.a
15236 ln conftest.a conftest.b 2>&5 || hard_links=no
15237 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 15238 { echo "$as_me:$LINENO: result: $hard_links" >&5
15239echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 15240 if test "$hard_links" = no; then
15241 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15242echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15243 need_locks=warn
15244 fi
15245else
15246 need_locks=no
15247fi
15248
64ff59ba 15249{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15250echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 15251
15252 runpath_var=
15253 allow_undefined_flag_F77=
15254 enable_shared_with_static_runtimes_F77=no
15255 archive_cmds_F77=
15256 archive_expsym_cmds_F77=
15257 old_archive_From_new_cmds_F77=
15258 old_archive_from_expsyms_cmds_F77=
15259 export_dynamic_flag_spec_F77=
15260 whole_archive_flag_spec_F77=
15261 thread_safe_flag_spec_F77=
15262 hardcode_libdir_flag_spec_F77=
15263 hardcode_libdir_flag_spec_ld_F77=
15264 hardcode_libdir_separator_F77=
15265 hardcode_direct_F77=no
15266 hardcode_minus_L_F77=no
15267 hardcode_shlibpath_var_F77=unsupported
15268 link_all_deplibs_F77=unknown
15269 hardcode_automatic_F77=no
15270 module_cmds_F77=
15271 module_expsym_cmds_F77=
15272 always_export_symbols_F77=no
15273 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15274 # include_expsyms should be a list of space-separated symbols to be *always*
15275 # included in the symbol list
15276 include_expsyms_F77=
15277 # exclude_expsyms can be an extended regexp of symbols to exclude
15278 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15279 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15280 # as well as any symbol that contains `d'.
15281 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15282 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15283 # platforms (ab)use it in PIC code, but their linkers get confused if
15284 # the symbol is explicitly referenced. Since portable code cannot
15285 # rely on this symbol name, it's probably fine to never include it in
15286 # preloaded symbol tables.
15287 extract_expsyms_cmds=
15288 # Just being paranoid about ensuring that cc_basename is set.
15289 for cc_temp in $compiler""; do
15290 case $cc_temp in
15291 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15292 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15293 \-*) ;;
15294 *) break;;
15295 esac
15296done
15297cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15298
15299 case $host_os in
15300 cygwin* | mingw* | pw32*)
15301 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15302 # When not using gcc, we currently assume that we are using
15303 # Microsoft Visual C++.
15304 if test "$GCC" != yes; then
15305 with_gnu_ld=no
15306 fi
15307 ;;
15308 interix*)
15309 # we just hope/assume this is gcc and not c89 (= MSVC++)
15310 with_gnu_ld=yes
15311 ;;
15312 openbsd*)
15313 with_gnu_ld=no
15314 ;;
15315 esac
15316
15317 ld_shlibs_F77=yes
15318 if test "$with_gnu_ld" = yes; then
15319 # If archive_cmds runs LD, not CC, wlarc should be empty
15320 wlarc='${wl}'
15321
15322 # Set some defaults for GNU ld with shared library support. These
15323 # are reset later if shared libraries are not supported. Putting them
15324 # here allows them to be overridden if necessary.
15325 runpath_var=LD_RUN_PATH
15326 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15327 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15328 # ancient GNU ld didn't support --whole-archive et. al.
15329 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15330 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15331 else
15332 whole_archive_flag_spec_F77=
15333 fi
15334 supports_anon_versioning=no
15335 case `$LD -v 2>/dev/null` in
15336 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15337 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15338 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15339 *\ 2.11.*) ;; # other 2.11 versions
15340 *) supports_anon_versioning=yes ;;
15341 esac
15342
15343 # See if GNU ld supports shared libraries.
15344 case $host_os in
15345 aix3* | aix4* | aix5*)
15346 # On AIX/PPC, the GNU linker is very broken
15347 if test "$host_cpu" != ia64; then
15348 ld_shlibs_F77=no
15349 cat <<EOF 1>&2
15350
15351*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15352*** to be unable to reliably create shared libraries on AIX.
15353*** Therefore, libtool is disabling shared libraries support. If you
15354*** really care for shared libraries, you may want to modify your PATH
15355*** so that a non-GNU linker is found, and then restart.
15356
15357EOF
15358 fi
15359 ;;
15360
15361 amigaos*)
15362 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)'
15363 hardcode_libdir_flag_spec_F77='-L$libdir'
15364 hardcode_minus_L_F77=yes
15365
15366 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15367 # that the semantics of dynamic libraries on AmigaOS, at least up
15368 # to version 4, is to share data among multiple programs linked
15369 # with the same dynamic library. Since this doesn't match the
15370 # behavior of shared libraries on other platforms, we can't use
15371 # them.
15372 ld_shlibs_F77=no
15373 ;;
15374
15375 beos*)
15376 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15377 allow_undefined_flag_F77=unsupported
15378 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15379 # support --undefined. This deserves some investigation. FIXME
15380 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15381 else
15382 ld_shlibs_F77=no
15383 fi
15384 ;;
15385
15386 cygwin* | mingw* | pw32*)
15387 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15388 # as there is no search path for DLLs.
15389 hardcode_libdir_flag_spec_F77='-L$libdir'
15390 allow_undefined_flag_F77=unsupported
15391 always_export_symbols_F77=no
15392 enable_shared_with_static_runtimes_F77=yes
15393 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15394
15395 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15396 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15397 # If the export-symbols file already is a .def file (1st line
15398 # is EXPORTS), use it as is; otherwise, prepend...
15399 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15400 cp $export_symbols $output_objdir/$soname.def;
15401 else
15402 echo EXPORTS > $output_objdir/$soname.def;
15403 cat $export_symbols >> $output_objdir/$soname.def;
15404 fi~
15405 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15406 else
15407 ld_shlibs_F77=no
15408 fi
15409 ;;
15410
15411 interix3*)
15412 hardcode_direct_F77=no
15413 hardcode_shlibpath_var_F77=no
15414 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15415 export_dynamic_flag_spec_F77='${wl}-E'
15416 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15417 # Instead, shared libraries are loaded at an image base (0x10000000 by
15418 # default) and relocated if they conflict, which is a slow very memory
15419 # consuming and fragmenting process. To avoid this, we pick a random,
15420 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15421 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15422 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'
15423 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'
15424 ;;
15425
15426 linux*)
15427 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15428 tmp_addflag=
15429 case $cc_basename,$host_cpu in
15430 pgcc*) # Portland Group C compiler
15431 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'
15432 tmp_addflag=' $pic_flag'
15433 ;;
15434 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15435 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'
15436 tmp_addflag=' $pic_flag -Mnomain' ;;
15437 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15438 tmp_addflag=' -i_dynamic' ;;
15439 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15440 tmp_addflag=' -i_dynamic -nofor_main' ;;
15441 ifc* | ifort*) # Intel Fortran compiler
15442 tmp_addflag=' -nofor_main' ;;
15443 esac
15444 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15445
15446 if test $supports_anon_versioning = yes; then
15447 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15448 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15449 $echo "local: *; };" >> $output_objdir/$libname.ver~
15450 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15451 fi
15452 else
15453 ld_shlibs_F77=no
15454 fi
15455 ;;
15456
15457 netbsd*)
15458 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15459 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15460 wlarc=
15461 else
15462 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15463 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15464 fi
15465 ;;
15466
15467 solaris*)
15468 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15469 ld_shlibs_F77=no
15470 cat <<EOF 1>&2
15471
15472*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15473*** create shared libraries on Solaris systems. Therefore, libtool
15474*** is disabling shared libraries support. We urge you to upgrade GNU
15475*** binutils to release 2.9.1 or newer. Another option is to modify
15476*** your PATH or compiler configuration so that the native linker is
15477*** used, and then restart.
15478
15479EOF
15480 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15481 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15482 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15483 else
15484 ld_shlibs_F77=no
15485 fi
15486 ;;
15487
15488 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15489 case `$LD -v 2>&1` in
15490 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15491 ld_shlibs_F77=no
15492 cat <<_LT_EOF 1>&2
15493
15494*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15495*** reliably create shared libraries on SCO systems. Therefore, libtool
15496*** is disabling shared libraries support. We urge you to upgrade GNU
15497*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15498*** your PATH or compiler configuration so that the native linker is
15499*** used, and then restart.
15500
15501_LT_EOF
15502 ;;
15503 *)
15504 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15505 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15506 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15507 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15508 else
15509 ld_shlibs_F77=no
15510 fi
15511 ;;
15512 esac
15513 ;;
15514
15515 sunos4*)
15516 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15517 wlarc=
15518 hardcode_direct_F77=yes
15519 hardcode_shlibpath_var_F77=no
15520 ;;
15521
15522 *)
15523 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15524 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15525 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15526 else
15527 ld_shlibs_F77=no
15528 fi
15529 ;;
15530 esac
15531
15532 if test "$ld_shlibs_F77" = no; then
15533 runpath_var=
15534 hardcode_libdir_flag_spec_F77=
15535 export_dynamic_flag_spec_F77=
15536 whole_archive_flag_spec_F77=
15537 fi
15538 else
15539 # PORTME fill in a description of your system's linker (not GNU ld)
15540 case $host_os in
15541 aix3*)
15542 allow_undefined_flag_F77=unsupported
15543 always_export_symbols_F77=yes
15544 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'
15545 # Note: this linker hardcodes the directories in LIBPATH if there
15546 # are no directories specified by -L.
15547 hardcode_minus_L_F77=yes
15548 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15549 # Neither direct hardcoding nor static linking is supported with a
15550 # broken collect2.
15551 hardcode_direct_F77=unsupported
15552 fi
15553 ;;
15554
15555 aix4* | aix5*)
15556 if test "$host_cpu" = ia64; then
15557 # On IA64, the linker does run time linking by default, so we don't
15558 # have to do anything special.
15559 aix_use_runtimelinking=no
15560 exp_sym_flag='-Bexport'
15561 no_entry_flag=""
15562 else
15563 # If we're using GNU nm, then we don't want the "-C" option.
15564 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15565 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15566 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'
15567 else
15568 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'
15569 fi
15570 aix_use_runtimelinking=no
15571
15572 # Test if we are trying to use run time linking or normal
15573 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15574 # need to do runtime linking.
15575 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15576 for ld_flag in $LDFLAGS; do
15577 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15578 aix_use_runtimelinking=yes
15579 break
15580 fi
15581 done
15582 ;;
15583 esac
15584
15585 exp_sym_flag='-bexport'
15586 no_entry_flag='-bnoentry'
15587 fi
15588
15589 # When large executables or shared objects are built, AIX ld can
15590 # have problems creating the table of contents. If linking a library
15591 # or program results in "error TOC overflow" add -mminimal-toc to
15592 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15593 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15594
15595 archive_cmds_F77=''
15596 hardcode_direct_F77=yes
15597 hardcode_libdir_separator_F77=':'
15598 link_all_deplibs_F77=yes
15599
15600 if test "$GCC" = yes; then
15601 case $host_os in aix4.[012]|aix4.[012].*)
15602 # We only want to do this on AIX 4.2 and lower, the check
15603 # below for broken collect2 doesn't work under 4.3+
15604 collect2name=`${CC} -print-prog-name=collect2`
15605 if test -f "$collect2name" && \
15606 strings "$collect2name" | grep resolve_lib_name >/dev/null
15607 then
15608 # We have reworked collect2
15609 hardcode_direct_F77=yes
15610 else
15611 # We have old collect2
15612 hardcode_direct_F77=unsupported
15613 # It fails to find uninstalled libraries when the uninstalled
15614 # path is not listed in the libpath. Setting hardcode_minus_L
15615 # to unsupported forces relinking
15616 hardcode_minus_L_F77=yes
15617 hardcode_libdir_flag_spec_F77='-L$libdir'
15618 hardcode_libdir_separator_F77=
15619 fi
15620 ;;
15621 esac
15622 shared_flag='-shared'
15623 if test "$aix_use_runtimelinking" = yes; then
15624 shared_flag="$shared_flag "'${wl}-G'
15625 fi
15626 else
15627 # not using gcc
15628 if test "$host_cpu" = ia64; then
15629 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15630 # chokes on -Wl,-G. The following line is correct:
15631 shared_flag='-G'
15632 else
15633 if test "$aix_use_runtimelinking" = yes; then
15634 shared_flag='${wl}-G'
15635 else
15636 shared_flag='${wl}-bM:SRE'
15637 fi
15638 fi
15639 fi
15640
15641 # It seems that -bexpall does not export symbols beginning with
15642 # underscore (_), so it is better to generate a list of symbols to export.
15643 always_export_symbols_F77=yes
15644 if test "$aix_use_runtimelinking" = yes; then
15645 # Warning - without using the other runtime loading flags (-brtl),
15646 # -berok will link without error, but may produce a broken library.
15647 allow_undefined_flag_F77='-berok'
15648 # Determine the default libpath from the value encoded in an empty executable.
15649 cat >conftest.$ac_ext <<_ACEOF
15650 program main
15651
15652 end
15653_ACEOF
15654rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 15655if { (ac_try="$ac_link"
15656case "(($ac_try" in
15657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15658 *) ac_try_echo=$ac_try;;
15659esac
15660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15661 (eval "$ac_link") 2>conftest.er1
d9898ee8 15662 ac_status=$?
15663 grep -v '^ *+' conftest.er1 >conftest.err
15664 rm -f conftest.er1
15665 cat conftest.err >&5
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 15667 (exit $ac_status); } && {
15668 test -z "$ac_f77_werror_flag" ||
15669 test ! -s conftest.err
15670 } && test -s conftest$ac_exeext &&
15671 $as_test_x conftest$ac_exeext; then
d9898ee8 15672
15673aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15674}'`
15675# Check for a 64-bit object if we didn't find anything.
15676if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15677}'`; fi
15678else
15679 echo "$as_me: failed program was:" >&5
15680sed 's/^/| /' conftest.$ac_ext >&5
15681
64ff59ba 15682
d9898ee8 15683fi
64ff59ba 15684
15685rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 15686 conftest$ac_exeext conftest.$ac_ext
15687if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15688
15689 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15690 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"
15691 else
15692 if test "$host_cpu" = ia64; then
15693 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15694 allow_undefined_flag_F77="-z nodefs"
15695 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"
15696 else
15697 # Determine the default libpath from the value encoded in an empty executable.
15698 cat >conftest.$ac_ext <<_ACEOF
15699 program main
15700
15701 end
15702_ACEOF
15703rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 15704if { (ac_try="$ac_link"
15705case "(($ac_try" in
15706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15707 *) ac_try_echo=$ac_try;;
15708esac
15709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15710 (eval "$ac_link") 2>conftest.er1
d9898ee8 15711 ac_status=$?
15712 grep -v '^ *+' conftest.er1 >conftest.err
15713 rm -f conftest.er1
15714 cat conftest.err >&5
15715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 15716 (exit $ac_status); } && {
15717 test -z "$ac_f77_werror_flag" ||
15718 test ! -s conftest.err
15719 } && test -s conftest$ac_exeext &&
15720 $as_test_x conftest$ac_exeext; then
d9898ee8 15721
15722aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15723}'`
15724# Check for a 64-bit object if we didn't find anything.
15725if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15726}'`; fi
15727else
15728 echo "$as_me: failed program was:" >&5
15729sed 's/^/| /' conftest.$ac_ext >&5
15730
64ff59ba 15731
d9898ee8 15732fi
64ff59ba 15733
15734rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 15735 conftest$ac_exeext conftest.$ac_ext
15736if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15737
15738 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15739 # Warning - without using the other run time loading flags,
15740 # -berok will link without error, but may produce a broken library.
15741 no_undefined_flag_F77=' ${wl}-bernotok'
15742 allow_undefined_flag_F77=' ${wl}-berok'
15743 # Exported symbols can be pulled into shared objects from archives
15744 whole_archive_flag_spec_F77='$convenience'
15745 archive_cmds_need_lc_F77=yes
15746 # This is similar to how AIX traditionally builds its shared libraries.
15747 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'
15748 fi
15749 fi
15750 ;;
15751
15752 amigaos*)
15753 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)'
15754 hardcode_libdir_flag_spec_F77='-L$libdir'
15755 hardcode_minus_L_F77=yes
15756 # see comment about different semantics on the GNU ld section
15757 ld_shlibs_F77=no
15758 ;;
15759
15760 bsdi[45]*)
15761 export_dynamic_flag_spec_F77=-rdynamic
15762 ;;
15763
15764 cygwin* | mingw* | pw32*)
15765 # When not using gcc, we currently assume that we are using
15766 # Microsoft Visual C++.
15767 # hardcode_libdir_flag_spec is actually meaningless, as there is
15768 # no search path for DLLs.
15769 hardcode_libdir_flag_spec_F77=' '
15770 allow_undefined_flag_F77=unsupported
15771 # Tell ltmain to make .lib files, not .a files.
15772 libext=lib
15773 # Tell ltmain to make .dll files, not .so files.
15774 shrext_cmds=".dll"
15775 # FIXME: Setting linknames here is a bad hack.
15776 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15777 # The linker will automatically build a .lib file if we build a DLL.
15778 old_archive_From_new_cmds_F77='true'
15779 # FIXME: Should let the user specify the lib program.
15780 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15781 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15782 enable_shared_with_static_runtimes_F77=yes
15783 ;;
15784
15785 darwin* | rhapsody*)
15786 case $host_os in
15787 rhapsody* | darwin1.[012])
15788 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15789 ;;
15790 *) # Darwin 1.3 on
15791 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15792 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15793 else
15794 case ${MACOSX_DEPLOYMENT_TARGET} in
15795 10.[012])
15796 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15797 ;;
15798 10.*)
15799 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15800 ;;
15801 esac
15802 fi
15803 ;;
15804 esac
15805 archive_cmds_need_lc_F77=no
15806 hardcode_direct_F77=no
15807 hardcode_automatic_F77=yes
15808 hardcode_shlibpath_var_F77=unsupported
15809 whole_archive_flag_spec_F77=''
15810 link_all_deplibs_F77=yes
15811 if test "$GCC" = yes ; then
15812 output_verbose_link_cmd='echo'
15813 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15814 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15815 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15816 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}'
15817 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}'
15818 else
15819 case $cc_basename in
15820 xlc*)
15821 output_verbose_link_cmd='echo'
15822 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15823 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15824 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15825 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15826 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}'
15827 ;;
15828 *)
15829 ld_shlibs_F77=no
15830 ;;
15831 esac
15832 fi
15833 ;;
15834
15835 dgux*)
15836 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15837 hardcode_libdir_flag_spec_F77='-L$libdir'
15838 hardcode_shlibpath_var_F77=no
15839 ;;
15840
15841 freebsd1*)
15842 ld_shlibs_F77=no
15843 ;;
15844
15845 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15846 # support. Future versions do this automatically, but an explicit c++rt0.o
15847 # does not break anything, and helps significantly (at the cost of a little
15848 # extra space).
15849 freebsd2.2*)
15850 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15851 hardcode_libdir_flag_spec_F77='-R$libdir'
15852 hardcode_direct_F77=yes
15853 hardcode_shlibpath_var_F77=no
15854 ;;
15855
15856 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15857 freebsd2*)
15858 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15859 hardcode_direct_F77=yes
15860 hardcode_minus_L_F77=yes
15861 hardcode_shlibpath_var_F77=no
15862 ;;
15863
15864 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15865 freebsd* | kfreebsd*-gnu | dragonfly*)
15866 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15867 hardcode_libdir_flag_spec_F77='-R$libdir'
15868 hardcode_direct_F77=yes
15869 hardcode_shlibpath_var_F77=no
15870 ;;
15871
15872 hpux9*)
15873 if test "$GCC" = yes; then
15874 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'
15875 else
15876 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'
15877 fi
15878 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15879 hardcode_libdir_separator_F77=:
15880 hardcode_direct_F77=yes
15881
15882 # hardcode_minus_L: Not really in the search PATH,
15883 # but as the default location of the library.
15884 hardcode_minus_L_F77=yes
15885 export_dynamic_flag_spec_F77='${wl}-E'
15886 ;;
15887
15888 hpux10*)
15889 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15890 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15891 else
15892 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15893 fi
15894 if test "$with_gnu_ld" = no; then
15895 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15896 hardcode_libdir_separator_F77=:
15897
15898 hardcode_direct_F77=yes
15899 export_dynamic_flag_spec_F77='${wl}-E'
15900
15901 # hardcode_minus_L: Not really in the search PATH,
15902 # but as the default location of the library.
15903 hardcode_minus_L_F77=yes
15904 fi
15905 ;;
15906
15907 hpux11*)
15908 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15909 case $host_cpu in
15910 hppa*64*)
15911 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15912 ;;
15913 ia64*)
15914 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15915 ;;
15916 *)
15917 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15918 ;;
15919 esac
15920 else
15921 case $host_cpu in
15922 hppa*64*)
15923 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15924 ;;
15925 ia64*)
15926 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15927 ;;
15928 *)
15929 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15930 ;;
15931 esac
15932 fi
15933 if test "$with_gnu_ld" = no; then
15934 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15935 hardcode_libdir_separator_F77=:
15936
15937 case $host_cpu in
15938 hppa*64*|ia64*)
15939 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15940 hardcode_direct_F77=no
15941 hardcode_shlibpath_var_F77=no
15942 ;;
15943 *)
15944 hardcode_direct_F77=yes
15945 export_dynamic_flag_spec_F77='${wl}-E'
15946
15947 # hardcode_minus_L: Not really in the search PATH,
15948 # but as the default location of the library.
15949 hardcode_minus_L_F77=yes
15950 ;;
15951 esac
15952 fi
15953 ;;
15954
15955 irix5* | irix6* | nonstopux*)
15956 if test "$GCC" = yes; then
15957 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'
15958 else
15959 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'
15960 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15961 fi
15962 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15963 hardcode_libdir_separator_F77=:
15964 link_all_deplibs_F77=yes
15965 ;;
15966
15967 netbsd*)
15968 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15969 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15970 else
15971 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15972 fi
15973 hardcode_libdir_flag_spec_F77='-R$libdir'
15974 hardcode_direct_F77=yes
15975 hardcode_shlibpath_var_F77=no
15976 ;;
15977
15978 newsos6)
15979 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15980 hardcode_direct_F77=yes
15981 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15982 hardcode_libdir_separator_F77=:
15983 hardcode_shlibpath_var_F77=no
15984 ;;
15985
15986 openbsd*)
15987 hardcode_direct_F77=yes
15988 hardcode_shlibpath_var_F77=no
15989 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15990 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15991 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15992 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15993 export_dynamic_flag_spec_F77='${wl}-E'
15994 else
15995 case $host_os in
15996 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15997 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15998 hardcode_libdir_flag_spec_F77='-R$libdir'
15999 ;;
16000 *)
16001 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16002 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16003 ;;
16004 esac
16005 fi
16006 ;;
16007
16008 os2*)
16009 hardcode_libdir_flag_spec_F77='-L$libdir'
16010 hardcode_minus_L_F77=yes
16011 allow_undefined_flag_F77=unsupported
16012 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'
16013 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16014 ;;
16015
16016 osf3*)
16017 if test "$GCC" = yes; then
16018 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16019 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'
16020 else
16021 allow_undefined_flag_F77=' -expect_unresolved \*'
16022 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'
16023 fi
16024 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16025 hardcode_libdir_separator_F77=:
16026 ;;
16027
16028 osf4* | osf5*) # as osf3* with the addition of -msym flag
16029 if test "$GCC" = yes; then
16030 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16031 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'
16032 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16033 else
16034 allow_undefined_flag_F77=' -expect_unresolved \*'
16035 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'
16036 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~
16037 $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'
16038
16039 # Both c and cxx compiler support -rpath directly
16040 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16041 fi
16042 hardcode_libdir_separator_F77=:
16043 ;;
16044
16045 solaris*)
16046 no_undefined_flag_F77=' -z text'
16047 if test "$GCC" = yes; then
16048 wlarc='${wl}'
16049 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16050 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16051 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16052 else
16053 wlarc=''
16054 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16055 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16056 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16057 fi
16058 hardcode_libdir_flag_spec_F77='-R$libdir'
16059 hardcode_shlibpath_var_F77=no
16060 case $host_os in
16061 solaris2.[0-5] | solaris2.[0-5].*) ;;
16062 *)
16063 # The compiler driver will combine linker options so we
16064 # cannot just pass the convience library names through
16065 # without $wl, iff we do not link with $LD.
16066 # Luckily, gcc supports the same syntax we need for Sun Studio.
16067 # Supported since Solaris 2.6 (maybe 2.5.1?)
16068 case $wlarc in
16069 '')
16070 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16071 *)
16072 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16073 esac ;;
16074 esac
16075 link_all_deplibs_F77=yes
16076 ;;
16077
16078 sunos4*)
16079 if test "x$host_vendor" = xsequent; then
16080 # Use $CC to link under sequent, because it throws in some extra .o
16081 # files that make .init and .fini sections work.
16082 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16083 else
16084 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16085 fi
16086 hardcode_libdir_flag_spec_F77='-L$libdir'
16087 hardcode_direct_F77=yes
16088 hardcode_minus_L_F77=yes
16089 hardcode_shlibpath_var_F77=no
16090 ;;
16091
16092 sysv4)
16093 case $host_vendor in
16094 sni)
16095 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16096 hardcode_direct_F77=yes # is this really true???
16097 ;;
16098 siemens)
16099 ## LD is ld it makes a PLAMLIB
16100 ## CC just makes a GrossModule.
16101 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16102 reload_cmds_F77='$CC -r -o $output$reload_objs'
16103 hardcode_direct_F77=no
16104 ;;
16105 motorola)
16106 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16107 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16108 ;;
16109 esac
16110 runpath_var='LD_RUN_PATH'
16111 hardcode_shlibpath_var_F77=no
16112 ;;
16113
16114 sysv4.3*)
16115 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16116 hardcode_shlibpath_var_F77=no
16117 export_dynamic_flag_spec_F77='-Bexport'
16118 ;;
16119
16120 sysv4*MP*)
16121 if test -d /usr/nec; then
16122 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16123 hardcode_shlibpath_var_F77=no
16124 runpath_var=LD_RUN_PATH
16125 hardcode_runpath_var=yes
16126 ld_shlibs_F77=yes
16127 fi
16128 ;;
16129
16130 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16131 no_undefined_flag_F77='${wl}-z,text'
16132 archive_cmds_need_lc_F77=no
16133 hardcode_shlibpath_var_F77=no
16134 runpath_var='LD_RUN_PATH'
16135
16136 if test "$GCC" = yes; then
16137 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16138 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16139 else
16140 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16141 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16142 fi
16143 ;;
16144
16145 sysv5* | sco3.2v5* | sco5v6*)
16146 # Note: We can NOT use -z defs as we might desire, because we do not
16147 # link with -lc, and that would cause any symbols used from libc to
16148 # always be unresolved, which means just about no library would
16149 # ever link correctly. If we're not using GNU ld we use -z text
16150 # though, which does catch some bad symbols but isn't as heavy-handed
16151 # as -z defs.
16152 no_undefined_flag_F77='${wl}-z,text'
16153 allow_undefined_flag_F77='${wl}-z,nodefs'
16154 archive_cmds_need_lc_F77=no
16155 hardcode_shlibpath_var_F77=no
16156 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16157 hardcode_libdir_separator_F77=':'
16158 link_all_deplibs_F77=yes
16159 export_dynamic_flag_spec_F77='${wl}-Bexport'
16160 runpath_var='LD_RUN_PATH'
16161
16162 if test "$GCC" = yes; then
16163 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16164 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16165 else
16166 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16167 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16168 fi
16169 ;;
16170
16171 uts4*)
16172 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16173 hardcode_libdir_flag_spec_F77='-L$libdir'
16174 hardcode_shlibpath_var_F77=no
16175 ;;
16176
16177 *)
16178 ld_shlibs_F77=no
16179 ;;
16180 esac
16181 fi
16182
64ff59ba 16183{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16184echo "${ECHO_T}$ld_shlibs_F77" >&6; }
d9898ee8 16185test "$ld_shlibs_F77" = no && can_build_shared=no
16186
16187#
16188# Do we need to explicitly link libc?
16189#
16190case "x$archive_cmds_need_lc_F77" in
16191x|xyes)
16192 # Assume -lc should be added
16193 archive_cmds_need_lc_F77=yes
16194
16195 if test "$enable_shared" = yes && test "$GCC" = yes; then
16196 case $archive_cmds_F77 in
16197 *'~'*)
16198 # FIXME: we may have to deal with multi-command sequences.
16199 ;;
16200 '$CC '*)
16201 # Test whether the compiler implicitly links with -lc since on some
16202 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16203 # to ld, don't add -lc before -lgcc.
64ff59ba 16204 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16205echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 16206 $rm conftest*
16207 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16208
16209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16210 (eval $ac_compile) 2>&5
16211 ac_status=$?
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); } 2>conftest.err; then
16214 soname=conftest
16215 lib=conftest
16216 libobjs=conftest.$ac_objext
16217 deplibs=
16218 wl=$lt_prog_compiler_wl_F77
16219 pic_flag=$lt_prog_compiler_pic_F77
16220 compiler_flags=-v
16221 linker_flags=-v
16222 verstring=
16223 output_objdir=.
16224 libname=conftest
16225 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16226 allow_undefined_flag_F77=
16227 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16228 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16229 ac_status=$?
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); }
16232 then
16233 archive_cmds_need_lc_F77=no
16234 else
16235 archive_cmds_need_lc_F77=yes
16236 fi
16237 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16238 else
16239 cat conftest.err 1>&5
16240 fi
16241 $rm conftest*
64ff59ba 16242 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16243echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
d9898ee8 16244 ;;
16245 esac
16246 fi
16247 ;;
16248esac
16249
64ff59ba 16250{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16251echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 16252library_names_spec=
16253libname_spec='lib$name'
16254soname_spec=
16255shrext_cmds=".so"
16256postinstall_cmds=
16257postuninstall_cmds=
16258finish_cmds=
16259finish_eval=
16260shlibpath_var=
16261shlibpath_overrides_runpath=unknown
16262version_type=none
16263dynamic_linker="$host_os ld.so"
16264sys_lib_dlsearch_path_spec="/lib /usr/lib"
16265if test "$GCC" = yes; then
16266 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16267 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16268 # if the path contains ";" then we assume it to be the separator
16269 # otherwise default to the standard path separator (i.e. ":") - it is
16270 # assumed that no part of a normal pathname contains ";" but that should
16271 # okay in the real world where ";" in dirpaths is itself problematic.
16272 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16273 else
16274 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16275 fi
16276else
16277 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16278fi
16279need_lib_prefix=unknown
16280hardcode_into_libs=no
16281
16282# when you set need_version to no, make sure it does not cause -set_version
16283# flags to be left without arguments
16284need_version=unknown
16285
16286case $host_os in
16287aix3*)
16288 version_type=linux
16289 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16290 shlibpath_var=LIBPATH
16291
16292 # AIX 3 has no versioning support, so we append a major version to the name.
16293 soname_spec='${libname}${release}${shared_ext}$major'
16294 ;;
16295
16296aix4* | aix5*)
16297 version_type=linux
16298 need_lib_prefix=no
16299 need_version=no
16300 hardcode_into_libs=yes
16301 if test "$host_cpu" = ia64; then
16302 # AIX 5 supports IA64
16303 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16304 shlibpath_var=LD_LIBRARY_PATH
16305 else
16306 # With GCC up to 2.95.x, collect2 would create an import file
16307 # for dependence libraries. The import file would start with
16308 # the line `#! .'. This would cause the generated library to
16309 # depend on `.', always an invalid library. This was fixed in
16310 # development snapshots of GCC prior to 3.0.
16311 case $host_os in
16312 aix4 | aix4.[01] | aix4.[01].*)
16313 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16314 echo ' yes '
16315 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16316 :
16317 else
16318 can_build_shared=no
16319 fi
16320 ;;
16321 esac
16322 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16323 # soname into executable. Probably we can add versioning support to
16324 # collect2, so additional links can be useful in future.
16325 if test "$aix_use_runtimelinking" = yes; then
16326 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16327 # instead of lib<name>.a to let people know that these are not
16328 # typical AIX shared libraries.
16329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16330 else
16331 # We preserve .a as extension for shared libraries through AIX4.2
16332 # and later when we are not doing run time linking.
16333 library_names_spec='${libname}${release}.a $libname.a'
16334 soname_spec='${libname}${release}${shared_ext}$major'
16335 fi
16336 shlibpath_var=LIBPATH
16337 fi
16338 ;;
16339
16340amigaos*)
16341 library_names_spec='$libname.ixlibrary $libname.a'
16342 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16343 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'
16344 ;;
16345
16346beos*)
16347 library_names_spec='${libname}${shared_ext}'
16348 dynamic_linker="$host_os ld.so"
16349 shlibpath_var=LIBRARY_PATH
16350 ;;
16351
16352bsdi[45]*)
16353 version_type=linux
16354 need_version=no
16355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16356 soname_spec='${libname}${release}${shared_ext}$major'
16357 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16358 shlibpath_var=LD_LIBRARY_PATH
16359 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16360 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16361 # the default ld.so.conf also contains /usr/contrib/lib and
16362 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16363 # libtool to hard-code these into programs
16364 ;;
16365
16366cygwin* | mingw* | pw32*)
16367 version_type=windows
16368 shrext_cmds=".dll"
16369 need_version=no
16370 need_lib_prefix=no
16371
16372 case $GCC,$host_os in
16373 yes,cygwin* | yes,mingw* | yes,pw32*)
16374 library_names_spec='$libname.dll.a'
16375 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16376 postinstall_cmds='base_file=`basename \${file}`~
16377 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16378 dldir=$destdir/`dirname \$dlpath`~
16379 test -d \$dldir || mkdir -p \$dldir~
16380 $install_prog $dir/$dlname \$dldir/$dlname~
16381 chmod a+x \$dldir/$dlname'
16382 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16383 dlpath=$dir/\$dldll~
16384 $rm \$dlpath'
16385 shlibpath_overrides_runpath=yes
16386
16387 case $host_os in
16388 cygwin*)
16389 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16390 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16391 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16392 ;;
16393 mingw*)
16394 # MinGW DLLs use traditional 'lib' prefix
16395 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16396 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16397 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16398 # It is most probably a Windows format PATH printed by
16399 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16400 # path with ; separators, and with drive letters. We can handle the
16401 # drive letters (cygwin fileutils understands them), so leave them,
16402 # especially as we might pass files found there to a mingw objdump,
16403 # which wouldn't understand a cygwinified path. Ahh.
16404 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16405 else
16406 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16407 fi
16408 ;;
16409 pw32*)
16410 # pw32 DLLs use 'pw' prefix rather than 'lib'
16411 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16412 ;;
16413 esac
16414 ;;
16415
16416 *)
16417 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16418 ;;
16419 esac
16420 dynamic_linker='Win32 ld.exe'
16421 # FIXME: first we should search . and the directory the executable is in
16422 shlibpath_var=PATH
16423 ;;
16424
16425darwin* | rhapsody*)
16426 dynamic_linker="$host_os dyld"
16427 version_type=darwin
16428 need_lib_prefix=no
16429 need_version=no
16430 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16431 soname_spec='${libname}${release}${major}$shared_ext'
16432 shlibpath_overrides_runpath=yes
16433 shlibpath_var=DYLD_LIBRARY_PATH
16434 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16435 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16436 if test "$GCC" = yes; then
16437 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16438 else
16439 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16440 fi
16441 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16442 ;;
16443
16444dgux*)
16445 version_type=linux
16446 need_lib_prefix=no
16447 need_version=no
16448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16449 soname_spec='${libname}${release}${shared_ext}$major'
16450 shlibpath_var=LD_LIBRARY_PATH
16451 ;;
16452
16453freebsd1*)
16454 dynamic_linker=no
16455 ;;
16456
16457kfreebsd*-gnu)
16458 version_type=linux
16459 need_lib_prefix=no
16460 need_version=no
16461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16462 soname_spec='${libname}${release}${shared_ext}$major'
16463 shlibpath_var=LD_LIBRARY_PATH
16464 shlibpath_overrides_runpath=no
16465 hardcode_into_libs=yes
16466 dynamic_linker='GNU ld.so'
16467 ;;
16468
16469freebsd* | dragonfly*)
16470 # DragonFly does not have aout. When/if they implement a new
16471 # versioning mechanism, adjust this.
16472 if test -x /usr/bin/objformat; then
16473 objformat=`/usr/bin/objformat`
16474 else
16475 case $host_os in
16476 freebsd[123]*) objformat=aout ;;
16477 *) objformat=elf ;;
16478 esac
16479 fi
16480 version_type=freebsd-$objformat
16481 case $version_type in
16482 freebsd-elf*)
16483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16484 need_version=no
16485 need_lib_prefix=no
16486 ;;
16487 freebsd-*)
16488 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16489 need_version=yes
16490 ;;
16491 esac
16492 shlibpath_var=LD_LIBRARY_PATH
16493 case $host_os in
16494 freebsd2*)
16495 shlibpath_overrides_runpath=yes
16496 ;;
16497 freebsd3.[01]* | freebsdelf3.[01]*)
16498 shlibpath_overrides_runpath=yes
16499 hardcode_into_libs=yes
16500 ;;
16501 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16502 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16503 shlibpath_overrides_runpath=no
16504 hardcode_into_libs=yes
16505 ;;
16506 freebsd*) # from 4.6 on
16507 shlibpath_overrides_runpath=yes
16508 hardcode_into_libs=yes
16509 ;;
16510 esac
16511 ;;
16512
16513gnu*)
16514 version_type=linux
16515 need_lib_prefix=no
16516 need_version=no
16517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16518 soname_spec='${libname}${release}${shared_ext}$major'
16519 shlibpath_var=LD_LIBRARY_PATH
16520 hardcode_into_libs=yes
16521 ;;
16522
16523hpux9* | hpux10* | hpux11*)
16524 # Give a soname corresponding to the major version so that dld.sl refuses to
16525 # link against other versions.
16526 version_type=sunos
16527 need_lib_prefix=no
16528 need_version=no
16529 case $host_cpu in
16530 ia64*)
16531 shrext_cmds='.so'
16532 hardcode_into_libs=yes
16533 dynamic_linker="$host_os dld.so"
16534 shlibpath_var=LD_LIBRARY_PATH
16535 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16537 soname_spec='${libname}${release}${shared_ext}$major'
16538 if test "X$HPUX_IA64_MODE" = X32; then
16539 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16540 else
16541 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16542 fi
16543 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16544 ;;
16545 hppa*64*)
16546 shrext_cmds='.sl'
16547 hardcode_into_libs=yes
16548 dynamic_linker="$host_os dld.sl"
16549 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16550 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16552 soname_spec='${libname}${release}${shared_ext}$major'
16553 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16554 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16555 ;;
16556 *)
16557 shrext_cmds='.sl'
16558 dynamic_linker="$host_os dld.sl"
16559 shlibpath_var=SHLIB_PATH
16560 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16562 soname_spec='${libname}${release}${shared_ext}$major'
16563 ;;
16564 esac
16565 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16566 postinstall_cmds='chmod 555 $lib'
16567 ;;
16568
16569interix3*)
16570 version_type=linux
16571 need_lib_prefix=no
16572 need_version=no
16573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16574 soname_spec='${libname}${release}${shared_ext}$major'
16575 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16576 shlibpath_var=LD_LIBRARY_PATH
16577 shlibpath_overrides_runpath=no
16578 hardcode_into_libs=yes
16579 ;;
16580
16581irix5* | irix6* | nonstopux*)
16582 case $host_os in
16583 nonstopux*) version_type=nonstopux ;;
16584 *)
16585 if test "$lt_cv_prog_gnu_ld" = yes; then
16586 version_type=linux
16587 else
16588 version_type=irix
16589 fi ;;
16590 esac
16591 need_lib_prefix=no
16592 need_version=no
16593 soname_spec='${libname}${release}${shared_ext}$major'
16594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16595 case $host_os in
16596 irix5* | nonstopux*)
16597 libsuff= shlibsuff=
16598 ;;
16599 *)
16600 case $LD in # libtool.m4 will add one of these switches to LD
16601 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16602 libsuff= shlibsuff= libmagic=32-bit;;
16603 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16604 libsuff=32 shlibsuff=N32 libmagic=N32;;
16605 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16606 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16607 *) libsuff= shlibsuff= libmagic=never-match;;
16608 esac
16609 ;;
16610 esac
16611 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16612 shlibpath_overrides_runpath=no
16613 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16614 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16615 hardcode_into_libs=yes
16616 ;;
16617
16618# No shared lib support for Linux oldld, aout, or coff.
16619linux*oldld* | linux*aout* | linux*coff*)
16620 dynamic_linker=no
16621 ;;
16622
16623# This must be Linux ELF.
16624linux*)
16625 version_type=linux
16626 need_lib_prefix=no
16627 need_version=no
16628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16629 soname_spec='${libname}${release}${shared_ext}$major'
16630 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16631 shlibpath_var=LD_LIBRARY_PATH
16632 shlibpath_overrides_runpath=no
16633 # This implies no fast_install, which is unacceptable.
16634 # Some rework will be needed to allow for fast_install
16635 # before this can be enabled.
16636 hardcode_into_libs=yes
16637
16638 # find out which ABI we are using
16639 libsuff=
16640 case "$host_cpu" in
16641 x86_64*|s390x*|powerpc64*)
64ff59ba 16642 echo '#line 16642 "configure"' > conftest.$ac_ext
d9898ee8 16643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16644 (eval $ac_compile) 2>&5
16645 ac_status=$?
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); }; then
16648 case `/usr/bin/file conftest.$ac_objext` in
16649 *64-bit*)
16650 libsuff=64
16651 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16652 ;;
16653 esac
16654 fi
16655 rm -rf conftest*
16656 ;;
16657 esac
16658
16659 # Append ld.so.conf contents to the search path
16660 if test -f /etc/ld.so.conf; then
64ff59ba 16661 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/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
d9898ee8 16662 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
16663 fi
16664
16665 # We used to test for /lib/ld.so.1 and disable shared libraries on
16666 # powerpc, because MkLinux only supported shared libraries with the
16667 # GNU dynamic linker. Since this was broken with cross compilers,
16668 # most powerpc-linux boxes support dynamic linking these days and
16669 # people can always --disable-shared, the test was removed, and we
16670 # assume the GNU/Linux dynamic linker is in use.
16671 dynamic_linker='GNU/Linux ld.so'
16672 ;;
16673
16674knetbsd*-gnu)
16675 version_type=linux
16676 need_lib_prefix=no
16677 need_version=no
16678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16679 soname_spec='${libname}${release}${shared_ext}$major'
16680 shlibpath_var=LD_LIBRARY_PATH
16681 shlibpath_overrides_runpath=no
16682 hardcode_into_libs=yes
16683 dynamic_linker='GNU ld.so'
16684 ;;
16685
16686netbsd*)
16687 version_type=sunos
16688 need_lib_prefix=no
16689 need_version=no
16690 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16693 dynamic_linker='NetBSD (a.out) ld.so'
16694 else
16695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16696 soname_spec='${libname}${release}${shared_ext}$major'
16697 dynamic_linker='NetBSD ld.elf_so'
16698 fi
16699 shlibpath_var=LD_LIBRARY_PATH
16700 shlibpath_overrides_runpath=yes
16701 hardcode_into_libs=yes
16702 ;;
16703
16704newsos6)
16705 version_type=linux
16706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16707 shlibpath_var=LD_LIBRARY_PATH
16708 shlibpath_overrides_runpath=yes
16709 ;;
16710
16711nto-qnx*)
16712 version_type=linux
16713 need_lib_prefix=no
16714 need_version=no
16715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16716 soname_spec='${libname}${release}${shared_ext}$major'
16717 shlibpath_var=LD_LIBRARY_PATH
16718 shlibpath_overrides_runpath=yes
16719 ;;
16720
16721openbsd*)
16722 version_type=sunos
16723 sys_lib_dlsearch_path_spec="/usr/lib"
16724 need_lib_prefix=no
16725 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16726 case $host_os in
16727 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16728 *) need_version=no ;;
16729 esac
16730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16731 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16732 shlibpath_var=LD_LIBRARY_PATH
16733 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16734 case $host_os in
16735 openbsd2.[89] | openbsd2.[89].*)
16736 shlibpath_overrides_runpath=no
16737 ;;
16738 *)
16739 shlibpath_overrides_runpath=yes
16740 ;;
16741 esac
16742 else
16743 shlibpath_overrides_runpath=yes
16744 fi
16745 ;;
16746
16747os2*)
16748 libname_spec='$name'
16749 shrext_cmds=".dll"
16750 need_lib_prefix=no
16751 library_names_spec='$libname${shared_ext} $libname.a'
16752 dynamic_linker='OS/2 ld.exe'
16753 shlibpath_var=LIBPATH
16754 ;;
16755
16756osf3* | osf4* | osf5*)
16757 version_type=osf
16758 need_lib_prefix=no
16759 need_version=no
16760 soname_spec='${libname}${release}${shared_ext}$major'
16761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16762 shlibpath_var=LD_LIBRARY_PATH
16763 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16764 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16765 ;;
16766
16767solaris*)
16768 version_type=linux
16769 need_lib_prefix=no
16770 need_version=no
16771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16772 soname_spec='${libname}${release}${shared_ext}$major'
16773 shlibpath_var=LD_LIBRARY_PATH
16774 shlibpath_overrides_runpath=yes
16775 hardcode_into_libs=yes
16776 # ldd complains unless libraries are executable
16777 postinstall_cmds='chmod +x $lib'
16778 ;;
16779
16780sunos4*)
16781 version_type=sunos
16782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16783 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16784 shlibpath_var=LD_LIBRARY_PATH
16785 shlibpath_overrides_runpath=yes
16786 if test "$with_gnu_ld" = yes; then
16787 need_lib_prefix=no
16788 fi
16789 need_version=yes
16790 ;;
16791
16792sysv4 | sysv4.3*)
16793 version_type=linux
16794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16795 soname_spec='${libname}${release}${shared_ext}$major'
16796 shlibpath_var=LD_LIBRARY_PATH
16797 case $host_vendor in
16798 sni)
16799 shlibpath_overrides_runpath=no
16800 need_lib_prefix=no
16801 export_dynamic_flag_spec='${wl}-Blargedynsym'
16802 runpath_var=LD_RUN_PATH
16803 ;;
16804 siemens)
16805 need_lib_prefix=no
16806 ;;
16807 motorola)
16808 need_lib_prefix=no
16809 need_version=no
16810 shlibpath_overrides_runpath=no
16811 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16812 ;;
16813 esac
16814 ;;
16815
16816sysv4*MP*)
16817 if test -d /usr/nec ;then
16818 version_type=linux
16819 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16820 soname_spec='$libname${shared_ext}.$major'
16821 shlibpath_var=LD_LIBRARY_PATH
16822 fi
16823 ;;
16824
16825sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16826 version_type=freebsd-elf
16827 need_lib_prefix=no
16828 need_version=no
16829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16830 soname_spec='${libname}${release}${shared_ext}$major'
16831 shlibpath_var=LD_LIBRARY_PATH
16832 hardcode_into_libs=yes
16833 if test "$with_gnu_ld" = yes; then
16834 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16835 shlibpath_overrides_runpath=no
16836 else
16837 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16838 shlibpath_overrides_runpath=yes
16839 case $host_os in
16840 sco3.2v5*)
16841 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16842 ;;
16843 esac
16844 fi
16845 sys_lib_dlsearch_path_spec='/usr/lib'
16846 ;;
16847
16848uts4*)
16849 version_type=linux
16850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16851 soname_spec='${libname}${release}${shared_ext}$major'
16852 shlibpath_var=LD_LIBRARY_PATH
16853 ;;
16854
16855*)
16856 dynamic_linker=no
16857 ;;
16858esac
64ff59ba 16859{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16860echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 16861test "$dynamic_linker" = no && can_build_shared=no
16862
16863variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16864if test "$GCC" = yes; then
16865 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16866fi
16867
64ff59ba 16868{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16869echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 16870hardcode_action_F77=
16871if test -n "$hardcode_libdir_flag_spec_F77" || \
16872 test -n "$runpath_var_F77" || \
16873 test "X$hardcode_automatic_F77" = "Xyes" ; then
16874
16875 # We can hardcode non-existant directories.
16876 if test "$hardcode_direct_F77" != no &&
16877 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16878 # have to relink, otherwise we might link with an installed library
16879 # when we should be linking with a yet-to-be-installed one
16880 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16881 test "$hardcode_minus_L_F77" != no; then
16882 # Linking always hardcodes the temporary library directory.
16883 hardcode_action_F77=relink
16884 else
16885 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16886 hardcode_action_F77=immediate
16887 fi
16888else
16889 # We cannot hardcode anything, or else we can only hardcode existing
16890 # directories.
16891 hardcode_action_F77=unsupported
16892fi
64ff59ba 16893{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16894echo "${ECHO_T}$hardcode_action_F77" >&6; }
d9898ee8 16895
16896if test "$hardcode_action_F77" = relink; then
16897 # Fast installation is not supported
16898 enable_fast_install=no
16899elif test "$shlibpath_overrides_runpath" = yes ||
16900 test "$enable_shared" = no; then
16901 # Fast installation is not necessary
16902 enable_fast_install=needless
16903fi
16904
16905
16906# The else clause should only fire when bootstrapping the
16907# libtool distribution, otherwise you forgot to ship ltmain.sh
16908# with your package, and you will get complaints that there are
16909# no rules to generate ltmain.sh.
16910if test -f "$ltmain"; then
16911 # See if we are running on zsh, and set the options which allow our commands through
16912 # without removal of \ escapes.
16913 if test -n "${ZSH_VERSION+set}" ; then
16914 setopt NO_GLOB_SUBST
16915 fi
16916 # Now quote all the things that may contain metacharacters while being
16917 # careful not to overquote the AC_SUBSTed values. We take copies of the
16918 # variables and quote the copies for generation of the libtool script.
16919 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16920 SED SHELL STRIP \
16921 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16922 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16923 deplibs_check_method reload_flag reload_cmds need_locks \
16924 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16925 lt_cv_sys_global_symbol_to_c_name_address \
16926 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16927 old_postinstall_cmds old_postuninstall_cmds \
16928 compiler_F77 \
16929 CC_F77 \
16930 LD_F77 \
16931 lt_prog_compiler_wl_F77 \
16932 lt_prog_compiler_pic_F77 \
16933 lt_prog_compiler_static_F77 \
16934 lt_prog_compiler_no_builtin_flag_F77 \
16935 export_dynamic_flag_spec_F77 \
16936 thread_safe_flag_spec_F77 \
16937 whole_archive_flag_spec_F77 \
16938 enable_shared_with_static_runtimes_F77 \
16939 old_archive_cmds_F77 \
16940 old_archive_from_new_cmds_F77 \
16941 predep_objects_F77 \
16942 postdep_objects_F77 \
16943 predeps_F77 \
16944 postdeps_F77 \
16945 compiler_lib_search_path_F77 \
16946 archive_cmds_F77 \
16947 archive_expsym_cmds_F77 \
16948 postinstall_cmds_F77 \
16949 postuninstall_cmds_F77 \
16950 old_archive_from_expsyms_cmds_F77 \
16951 allow_undefined_flag_F77 \
16952 no_undefined_flag_F77 \
16953 export_symbols_cmds_F77 \
16954 hardcode_libdir_flag_spec_F77 \
16955 hardcode_libdir_flag_spec_ld_F77 \
16956 hardcode_libdir_separator_F77 \
16957 hardcode_automatic_F77 \
16958 module_cmds_F77 \
16959 module_expsym_cmds_F77 \
16960 lt_cv_prog_compiler_c_o_F77 \
16961 exclude_expsyms_F77 \
16962 include_expsyms_F77; do
16963
16964 case $var in
16965 old_archive_cmds_F77 | \
16966 old_archive_from_new_cmds_F77 | \
16967 archive_cmds_F77 | \
16968 archive_expsym_cmds_F77 | \
16969 module_cmds_F77 | \
16970 module_expsym_cmds_F77 | \
16971 old_archive_from_expsyms_cmds_F77 | \
16972 export_symbols_cmds_F77 | \
16973 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16974 postinstall_cmds | postuninstall_cmds | \
16975 old_postinstall_cmds | old_postuninstall_cmds | \
16976 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16977 # Double-quote double-evaled strings.
16978 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16979 ;;
16980 *)
16981 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16982 ;;
16983 esac
16984 done
16985
16986 case $lt_echo in
16987 *'\$0 --fallback-echo"')
16988 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16989 ;;
16990 esac
16991
16992cfgfile="$ofile"
16993
16994 cat <<__EOF__ >> "$cfgfile"
16995# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16996
16997# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16998
16999# Shell to use when invoking shell scripts.
17000SHELL=$lt_SHELL
17001
17002# Whether or not to build shared libraries.
17003build_libtool_libs=$enable_shared
17004
17005# Whether or not to build static libraries.
17006build_old_libs=$enable_static
17007
17008# Whether or not to add -lc for building shared libraries.
17009build_libtool_need_lc=$archive_cmds_need_lc_F77
17010
17011# Whether or not to disallow shared libs when runtime libs are static
17012allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17013
17014# Whether or not to optimize for fast installation.
17015fast_install=$enable_fast_install
17016
17017# The host system.
17018host_alias=$host_alias
17019host=$host
17020host_os=$host_os
17021
17022# The build system.
17023build_alias=$build_alias
17024build=$build
17025build_os=$build_os
17026
17027# An echo program that does not interpret backslashes.
17028echo=$lt_echo
17029
17030# The archiver.
17031AR=$lt_AR
17032AR_FLAGS=$lt_AR_FLAGS
17033
17034# A C compiler.
17035LTCC=$lt_LTCC
17036
17037# LTCC compiler flags.
17038LTCFLAGS=$lt_LTCFLAGS
17039
17040# A language-specific compiler.
17041CC=$lt_compiler_F77
17042
17043# Is the compiler the GNU C compiler?
17044with_gcc=$GCC_F77
17045
d9898ee8 17046# An ERE matcher.
17047EGREP=$lt_EGREP
17048
17049# The linker used to build libraries.
17050LD=$lt_LD_F77
17051
17052# Whether we need hard or soft links.
17053LN_S=$lt_LN_S
17054
17055# A BSD-compatible nm program.
17056NM=$lt_NM
17057
17058# A symbol stripping program
17059STRIP=$lt_STRIP
17060
17061# Used to examine libraries when file_magic_cmd begins "file"
17062MAGIC_CMD=$MAGIC_CMD
17063
17064# Used on cygwin: DLL creation program.
17065DLLTOOL="$DLLTOOL"
17066
17067# Used on cygwin: object dumper.
17068OBJDUMP="$OBJDUMP"
17069
17070# Used on cygwin: assembler.
17071AS="$AS"
17072
17073# The name of the directory that contains temporary libtool files.
17074objdir=$objdir
17075
17076# How to create reloadable object files.
17077reload_flag=$lt_reload_flag
17078reload_cmds=$lt_reload_cmds
17079
17080# How to pass a linker flag through the compiler.
17081wl=$lt_lt_prog_compiler_wl_F77
17082
17083# Object file suffix (normally "o").
17084objext="$ac_objext"
17085
17086# Old archive suffix (normally "a").
17087libext="$libext"
17088
17089# Shared library suffix (normally ".so").
17090shrext_cmds='$shrext_cmds'
17091
17092# Executable file suffix (normally "").
17093exeext="$exeext"
17094
17095# Additional compiler flags for building library objects.
17096pic_flag=$lt_lt_prog_compiler_pic_F77
17097pic_mode=$pic_mode
17098
17099# What is the maximum length of a command?
17100max_cmd_len=$lt_cv_sys_max_cmd_len
17101
17102# Does compiler simultaneously support -c and -o options?
17103compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17104
17105# Must we lock files when doing compilation?
17106need_locks=$lt_need_locks
17107
17108# Do we need the lib prefix for modules?
17109need_lib_prefix=$need_lib_prefix
17110
17111# Do we need a version for libraries?
17112need_version=$need_version
17113
17114# Whether dlopen is supported.
17115dlopen_support=$enable_dlopen
17116
17117# Whether dlopen of programs is supported.
17118dlopen_self=$enable_dlopen_self
17119
17120# Whether dlopen of statically linked programs is supported.
17121dlopen_self_static=$enable_dlopen_self_static
17122
17123# Compiler flag to prevent dynamic linking.
17124link_static_flag=$lt_lt_prog_compiler_static_F77
17125
17126# Compiler flag to turn off builtin functions.
17127no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17128
17129# Compiler flag to allow reflexive dlopens.
17130export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17131
17132# Compiler flag to generate shared objects directly from archives.
17133whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17134
17135# Compiler flag to generate thread-safe objects.
17136thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17137
17138# Library versioning type.
17139version_type=$version_type
17140
17141# Format of library name prefix.
17142libname_spec=$lt_libname_spec
17143
17144# List of archive names. First name is the real one, the rest are links.
17145# The last name is the one that the linker finds with -lNAME.
17146library_names_spec=$lt_library_names_spec
17147
17148# The coded name of the library, if different from the real name.
17149soname_spec=$lt_soname_spec
17150
17151# Commands used to build and install an old-style archive.
17152RANLIB=$lt_RANLIB
17153old_archive_cmds=$lt_old_archive_cmds_F77
17154old_postinstall_cmds=$lt_old_postinstall_cmds
17155old_postuninstall_cmds=$lt_old_postuninstall_cmds
17156
17157# Create an old-style archive from a shared archive.
17158old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17159
17160# Create a temporary old-style archive to link instead of a shared archive.
17161old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17162
17163# Commands used to build and install a shared archive.
17164archive_cmds=$lt_archive_cmds_F77
17165archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17166postinstall_cmds=$lt_postinstall_cmds
17167postuninstall_cmds=$lt_postuninstall_cmds
17168
17169# Commands used to build a loadable module (assumed same as above if empty)
17170module_cmds=$lt_module_cmds_F77
17171module_expsym_cmds=$lt_module_expsym_cmds_F77
17172
17173# Commands to strip libraries.
17174old_striplib=$lt_old_striplib
17175striplib=$lt_striplib
17176
17177# Dependencies to place before the objects being linked to create a
17178# shared library.
64ff59ba 17179predep_objects=$lt_predep_objects_F77
d9898ee8 17180
17181# Dependencies to place after the objects being linked to create a
17182# shared library.
64ff59ba 17183postdep_objects=$lt_postdep_objects_F77
d9898ee8 17184
17185# Dependencies to place before the objects being linked to create a
17186# shared library.
17187predeps=$lt_predeps_F77
17188
17189# Dependencies to place after the objects being linked to create a
17190# shared library.
17191postdeps=$lt_postdeps_F77
17192
17193# The library search path used internally by the compiler when linking
17194# a shared library.
64ff59ba 17195compiler_lib_search_path=$lt_compiler_lib_search_path_F77
d9898ee8 17196
17197# Method to check whether dependent libraries are shared objects.
17198deplibs_check_method=$lt_deplibs_check_method
17199
17200# Command to use when deplibs_check_method == file_magic.
17201file_magic_cmd=$lt_file_magic_cmd
17202
17203# Flag that allows shared libraries with undefined symbols to be built.
17204allow_undefined_flag=$lt_allow_undefined_flag_F77
17205
17206# Flag that forces no undefined symbols.
17207no_undefined_flag=$lt_no_undefined_flag_F77
17208
17209# Commands used to finish a libtool library installation in a directory.
17210finish_cmds=$lt_finish_cmds
17211
17212# Same as above, but a single script fragment to be evaled but not shown.
17213finish_eval=$lt_finish_eval
17214
17215# Take the output of nm and produce a listing of raw symbols and C names.
17216global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17217
17218# Transform the output of nm in a proper C declaration
17219global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17220
17221# Transform the output of nm in a C name address pair
17222global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17223
17224# This is the shared library runtime path variable.
17225runpath_var=$runpath_var
17226
17227# This is the shared library path variable.
17228shlibpath_var=$shlibpath_var
17229
17230# Is shlibpath searched before the hard-coded library search path?
17231shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17232
17233# How to hardcode a shared library path into an executable.
17234hardcode_action=$hardcode_action_F77
17235
17236# Whether we should hardcode library paths into libraries.
17237hardcode_into_libs=$hardcode_into_libs
17238
17239# Flag to hardcode \$libdir into a binary during linking.
17240# This must work even if \$libdir does not exist.
17241hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17242
17243# If ld is used when linking, flag to hardcode \$libdir into
17244# a binary during linking. This must work even if \$libdir does
17245# not exist.
17246hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17247
17248# Whether we need a single -rpath flag with a separated argument.
17249hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17250
17251# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17252# resulting binary.
17253hardcode_direct=$hardcode_direct_F77
17254
17255# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17256# resulting binary.
17257hardcode_minus_L=$hardcode_minus_L_F77
17258
17259# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17260# the resulting binary.
17261hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17262
17263# Set to yes if building a shared library automatically hardcodes DIR into the library
17264# and all subsequent libraries and executables linked against it.
17265hardcode_automatic=$hardcode_automatic_F77
17266
17267# Variables whose values should be saved in libtool wrapper scripts and
17268# restored at relink time.
17269variables_saved_for_relink="$variables_saved_for_relink"
17270
17271# Whether libtool must link a program against all its dependency libraries.
17272link_all_deplibs=$link_all_deplibs_F77
17273
17274# Compile-time system search path for libraries
64ff59ba 17275sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 17276
17277# Run-time system search path for libraries
17278sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17279
17280# Fix the shell variable \$srcfile for the compiler.
17281fix_srcfile_path="$fix_srcfile_path_F77"
17282
17283# Set to yes if exported symbols are required.
17284always_export_symbols=$always_export_symbols_F77
17285
17286# The commands to list exported symbols.
17287export_symbols_cmds=$lt_export_symbols_cmds_F77
17288
17289# The commands to extract the exported symbol list from a shared archive.
17290extract_expsyms_cmds=$lt_extract_expsyms_cmds
17291
17292# Symbols that should not be listed in the preloaded symbols.
17293exclude_expsyms=$lt_exclude_expsyms_F77
17294
17295# Symbols that must always be exported.
17296include_expsyms=$lt_include_expsyms_F77
17297
17298# ### END LIBTOOL TAG CONFIG: $tagname
17299
17300__EOF__
17301
17302
17303else
17304 # If there is no Makefile yet, we rely on a make rule to execute
17305 # `config.status --recheck' to rerun these tests and create the
17306 # libtool script then.
17307 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17308 if test -f "$ltmain_in"; then
17309 test -f Makefile && make "$ltmain"
17310 fi
17311fi
17312
17313
17314ac_ext=c
17315ac_cpp='$CPP $CPPFLAGS'
17316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17318ac_compiler_gnu=$ac_cv_c_compiler_gnu
17319
17320CC="$lt_save_CC"
17321
17322 else
17323 tagname=""
17324 fi
17325 ;;
17326
17327 GCJ)
17328 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17329
17330
d9898ee8 17331# Source file extension for Java test sources.
17332ac_ext=java
17333
17334# Object file extension for compiled Java test sources.
17335objext=o
17336objext_GCJ=$objext
17337
17338# Code to be used in simple compile tests
17339lt_simple_compile_test_code="class foo {}\n"
17340
17341# Code to be used in simple link tests
17342lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17343
17344# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17345
17346# If no C compiler was specified, use CC.
17347LTCC=${LTCC-"$CC"}
17348
17349# If no C compiler flags were specified, use CFLAGS.
17350LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17351
17352# Allow CC to be a program name with arguments.
17353compiler=$CC
17354
17355
17356# save warnings/boilerplate of simple test code
17357ac_outfile=conftest.$ac_objext
17358printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17359eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17360_lt_compiler_boilerplate=`cat conftest.err`
17361$rm conftest*
17362
17363ac_outfile=conftest.$ac_objext
17364printf "$lt_simple_link_test_code" >conftest.$ac_ext
17365eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17366_lt_linker_boilerplate=`cat conftest.err`
17367$rm conftest*
17368
17369
17370# Allow CC to be a program name with arguments.
17371lt_save_CC="$CC"
17372CC=${GCJ-"gcj"}
17373compiler=$CC
17374compiler_GCJ=$CC
17375for cc_temp in $compiler""; do
17376 case $cc_temp in
17377 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17378 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17379 \-*) ;;
17380 *) break;;
17381 esac
17382done
17383cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17384
17385
17386# GCJ did not exist at the time GCC didn't implicitly link libc in.
17387archive_cmds_need_lc_GCJ=no
17388
17389old_archive_cmds_GCJ=$old_archive_cmds
17390
17391
17392lt_prog_compiler_no_builtin_flag_GCJ=
17393
17394if test "$GCC" = yes; then
17395 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17396
17397
64ff59ba 17398{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17399echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d9898ee8 17400if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17401 echo $ECHO_N "(cached) $ECHO_C" >&6
17402else
17403 lt_cv_prog_compiler_rtti_exceptions=no
17404 ac_outfile=conftest.$ac_objext
17405 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17406 lt_compiler_flag="-fno-rtti -fno-exceptions"
17407 # Insert the option either (1) after the last *FLAGS variable, or
17408 # (2) before a word containing "conftest.", or (3) at the end.
17409 # Note that $ac_compile itself does not contain backslashes and begins
17410 # with a dollar sign (not a hyphen), so the echo should work correctly.
17411 # The option is referenced via a variable to avoid confusing sed.
17412 lt_compile=`echo "$ac_compile" | $SED \
17413 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17415 -e 's:$: $lt_compiler_flag:'`
64ff59ba 17416 (eval echo "\"\$as_me:17416: $lt_compile\"" >&5)
d9898ee8 17417 (eval "$lt_compile" 2>conftest.err)
17418 ac_status=$?
17419 cat conftest.err >&5
64ff59ba 17420 echo "$as_me:17420: \$? = $ac_status" >&5
d9898ee8 17421 if (exit $ac_status) && test -s "$ac_outfile"; then
17422 # The compiler can only warn and ignore the option if not recognized
17423 # So say no if there are warnings other than the usual output.
17424 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17425 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17426 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17427 lt_cv_prog_compiler_rtti_exceptions=yes
17428 fi
17429 fi
17430 $rm conftest*
17431
17432fi
64ff59ba 17433{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17434echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 17435
17436if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17437 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17438else
17439 :
17440fi
17441
17442fi
17443
17444lt_prog_compiler_wl_GCJ=
17445lt_prog_compiler_pic_GCJ=
17446lt_prog_compiler_static_GCJ=
17447
64ff59ba 17448{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17449echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 17450
17451 if test "$GCC" = yes; then
17452 lt_prog_compiler_wl_GCJ='-Wl,'
17453 lt_prog_compiler_static_GCJ='-static'
17454
17455 case $host_os in
17456 aix*)
17457 # All AIX code is PIC.
17458 if test "$host_cpu" = ia64; then
17459 # AIX 5 now supports IA64 processor
17460 lt_prog_compiler_static_GCJ='-Bstatic'
17461 fi
17462 ;;
17463
17464 amigaos*)
17465 # FIXME: we need at least 68020 code to build shared libraries, but
17466 # adding the `-m68020' flag to GCC prevents building anything better,
17467 # like `-m68040'.
17468 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17469 ;;
17470
17471 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17472 # PIC is the default for these OSes.
17473 ;;
17474
17475 mingw* | pw32* | os2*)
17476 # This hack is so that the source file can tell whether it is being
17477 # built for inclusion in a dll (and should export symbols for example).
17478 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17479 ;;
17480
17481 darwin* | rhapsody*)
17482 # PIC is the default on this platform
17483 # Common symbols not allowed in MH_DYLIB files
17484 lt_prog_compiler_pic_GCJ='-fno-common'
17485 ;;
17486
17487 interix3*)
17488 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17489 # Instead, we relocate shared libraries at runtime.
17490 ;;
17491
17492 msdosdjgpp*)
17493 # Just because we use GCC doesn't mean we suddenly get shared libraries
17494 # on systems that don't support them.
17495 lt_prog_compiler_can_build_shared_GCJ=no
17496 enable_shared=no
17497 ;;
17498
17499 sysv4*MP*)
17500 if test -d /usr/nec; then
17501 lt_prog_compiler_pic_GCJ=-Kconform_pic
17502 fi
17503 ;;
17504
17505 hpux*)
17506 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17507 # not for PA HP-UX.
17508 case $host_cpu in
17509 hppa*64*|ia64*)
17510 # +Z the default
17511 ;;
17512 *)
17513 lt_prog_compiler_pic_GCJ='-fPIC'
17514 ;;
17515 esac
17516 ;;
17517
17518 *)
17519 lt_prog_compiler_pic_GCJ='-fPIC'
17520 ;;
17521 esac
17522 else
17523 # PORTME Check for flag to pass linker flags through the system compiler.
17524 case $host_os in
17525 aix*)
17526 lt_prog_compiler_wl_GCJ='-Wl,'
17527 if test "$host_cpu" = ia64; then
17528 # AIX 5 now supports IA64 processor
17529 lt_prog_compiler_static_GCJ='-Bstatic'
17530 else
17531 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17532 fi
17533 ;;
17534 darwin*)
17535 # PIC is the default on this platform
17536 # Common symbols not allowed in MH_DYLIB files
17537 case $cc_basename in
17538 xlc*)
17539 lt_prog_compiler_pic_GCJ='-qnocommon'
17540 lt_prog_compiler_wl_GCJ='-Wl,'
17541 ;;
17542 esac
17543 ;;
17544
17545 mingw* | pw32* | os2*)
17546 # This hack is so that the source file can tell whether it is being
17547 # built for inclusion in a dll (and should export symbols for example).
17548 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17549 ;;
17550
17551 hpux9* | hpux10* | hpux11*)
17552 lt_prog_compiler_wl_GCJ='-Wl,'
17553 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17554 # not for PA HP-UX.
17555 case $host_cpu in
17556 hppa*64*|ia64*)
17557 # +Z the default
17558 ;;
17559 *)
17560 lt_prog_compiler_pic_GCJ='+Z'
17561 ;;
17562 esac
17563 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17564 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17565 ;;
17566
17567 irix5* | irix6* | nonstopux*)
17568 lt_prog_compiler_wl_GCJ='-Wl,'
17569 # PIC (with -KPIC) is the default.
17570 lt_prog_compiler_static_GCJ='-non_shared'
17571 ;;
17572
17573 newsos6)
17574 lt_prog_compiler_pic_GCJ='-KPIC'
17575 lt_prog_compiler_static_GCJ='-Bstatic'
17576 ;;
17577
17578 linux*)
17579 case $cc_basename in
17580 icc* | ecc*)
17581 lt_prog_compiler_wl_GCJ='-Wl,'
17582 lt_prog_compiler_pic_GCJ='-KPIC'
17583 lt_prog_compiler_static_GCJ='-static'
17584 ;;
17585 pgcc* | pgf77* | pgf90* | pgf95*)
17586 # Portland Group compilers (*not* the Pentium gcc compiler,
17587 # which looks to be a dead project)
17588 lt_prog_compiler_wl_GCJ='-Wl,'
17589 lt_prog_compiler_pic_GCJ='-fpic'
17590 lt_prog_compiler_static_GCJ='-Bstatic'
17591 ;;
17592 ccc*)
17593 lt_prog_compiler_wl_GCJ='-Wl,'
17594 # All Alpha code is PIC.
17595 lt_prog_compiler_static_GCJ='-non_shared'
17596 ;;
17597 esac
17598 ;;
17599
17600 osf3* | osf4* | osf5*)
17601 lt_prog_compiler_wl_GCJ='-Wl,'
17602 # All OSF/1 code is PIC.
17603 lt_prog_compiler_static_GCJ='-non_shared'
17604 ;;
17605
17606 solaris*)
17607 lt_prog_compiler_pic_GCJ='-KPIC'
17608 lt_prog_compiler_static_GCJ='-Bstatic'
17609 case $cc_basename in
17610 f77* | f90* | f95*)
17611 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17612 *)
17613 lt_prog_compiler_wl_GCJ='-Wl,';;
17614 esac
17615 ;;
17616
17617 sunos4*)
17618 lt_prog_compiler_wl_GCJ='-Qoption ld '
17619 lt_prog_compiler_pic_GCJ='-PIC'
17620 lt_prog_compiler_static_GCJ='-Bstatic'
17621 ;;
17622
17623 sysv4 | sysv4.2uw2* | sysv4.3*)
17624 lt_prog_compiler_wl_GCJ='-Wl,'
17625 lt_prog_compiler_pic_GCJ='-KPIC'
17626 lt_prog_compiler_static_GCJ='-Bstatic'
17627 ;;
17628
17629 sysv4*MP*)
17630 if test -d /usr/nec ;then
17631 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17632 lt_prog_compiler_static_GCJ='-Bstatic'
17633 fi
17634 ;;
17635
17636 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17637 lt_prog_compiler_wl_GCJ='-Wl,'
17638 lt_prog_compiler_pic_GCJ='-KPIC'
17639 lt_prog_compiler_static_GCJ='-Bstatic'
17640 ;;
17641
17642 unicos*)
17643 lt_prog_compiler_wl_GCJ='-Wl,'
17644 lt_prog_compiler_can_build_shared_GCJ=no
17645 ;;
17646
17647 uts4*)
17648 lt_prog_compiler_pic_GCJ='-pic'
17649 lt_prog_compiler_static_GCJ='-Bstatic'
17650 ;;
17651
17652 *)
17653 lt_prog_compiler_can_build_shared_GCJ=no
17654 ;;
17655 esac
17656 fi
17657
64ff59ba 17658{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17659echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
d9898ee8 17660
17661#
17662# Check to make sure the PIC flag actually works.
17663#
17664if test -n "$lt_prog_compiler_pic_GCJ"; then
17665
64ff59ba 17666{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17667echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
d9898ee8 17668if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17669 echo $ECHO_N "(cached) $ECHO_C" >&6
17670else
17671 lt_prog_compiler_pic_works_GCJ=no
17672 ac_outfile=conftest.$ac_objext
17673 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17674 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17675 # Insert the option either (1) after the last *FLAGS variable, or
17676 # (2) before a word containing "conftest.", or (3) at the end.
17677 # Note that $ac_compile itself does not contain backslashes and begins
17678 # with a dollar sign (not a hyphen), so the echo should work correctly.
17679 # The option is referenced via a variable to avoid confusing sed.
17680 lt_compile=`echo "$ac_compile" | $SED \
17681 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17682 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17683 -e 's:$: $lt_compiler_flag:'`
64ff59ba 17684 (eval echo "\"\$as_me:17684: $lt_compile\"" >&5)
d9898ee8 17685 (eval "$lt_compile" 2>conftest.err)
17686 ac_status=$?
17687 cat conftest.err >&5
64ff59ba 17688 echo "$as_me:17688: \$? = $ac_status" >&5
d9898ee8 17689 if (exit $ac_status) && test -s "$ac_outfile"; then
17690 # The compiler can only warn and ignore the option if not recognized
17691 # So say no if there are warnings other than the usual output.
17692 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17693 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17694 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17695 lt_prog_compiler_pic_works_GCJ=yes
17696 fi
17697 fi
17698 $rm conftest*
17699
17700fi
64ff59ba 17701{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17702echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
d9898ee8 17703
17704if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17705 case $lt_prog_compiler_pic_GCJ in
17706 "" | " "*) ;;
17707 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17708 esac
17709else
17710 lt_prog_compiler_pic_GCJ=
17711 lt_prog_compiler_can_build_shared_GCJ=no
17712fi
17713
17714fi
17715case $host_os in
17716 # For platforms which do not support PIC, -DPIC is meaningless:
17717 *djgpp*)
17718 lt_prog_compiler_pic_GCJ=
17719 ;;
17720 *)
17721 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17722 ;;
17723esac
17724
17725#
17726# Check to make sure the static flag actually works.
17727#
17728wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
64ff59ba 17729{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17730echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 17731if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17732 echo $ECHO_N "(cached) $ECHO_C" >&6
17733else
17734 lt_prog_compiler_static_works_GCJ=no
17735 save_LDFLAGS="$LDFLAGS"
17736 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17737 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17738 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17739 # The linker can only warn and ignore the option if not recognized
17740 # So say no if there are warnings
17741 if test -s conftest.err; then
17742 # Append any errors to the config.log.
17743 cat conftest.err 1>&5
17744 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17745 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17746 if diff conftest.exp conftest.er2 >/dev/null; then
17747 lt_prog_compiler_static_works_GCJ=yes
17748 fi
17749 else
17750 lt_prog_compiler_static_works_GCJ=yes
17751 fi
17752 fi
17753 $rm conftest*
17754 LDFLAGS="$save_LDFLAGS"
17755
17756fi
64ff59ba 17757{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17758echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
d9898ee8 17759
17760if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17761 :
17762else
17763 lt_prog_compiler_static_GCJ=
17764fi
17765
17766
64ff59ba 17767{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17768echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 17769if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17770 echo $ECHO_N "(cached) $ECHO_C" >&6
17771else
17772 lt_cv_prog_compiler_c_o_GCJ=no
17773 $rm -r conftest 2>/dev/null
17774 mkdir conftest
17775 cd conftest
17776 mkdir out
17777 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17778
17779 lt_compiler_flag="-o out/conftest2.$ac_objext"
17780 # Insert the option either (1) after the last *FLAGS variable, or
17781 # (2) before a word containing "conftest.", or (3) at the end.
17782 # Note that $ac_compile itself does not contain backslashes and begins
17783 # with a dollar sign (not a hyphen), so the echo should work correctly.
17784 lt_compile=`echo "$ac_compile" | $SED \
17785 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17786 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17787 -e 's:$: $lt_compiler_flag:'`
64ff59ba 17788 (eval echo "\"\$as_me:17788: $lt_compile\"" >&5)
d9898ee8 17789 (eval "$lt_compile" 2>out/conftest.err)
17790 ac_status=$?
17791 cat out/conftest.err >&5
64ff59ba 17792 echo "$as_me:17792: \$? = $ac_status" >&5
d9898ee8 17793 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17794 then
17795 # The compiler can only warn and ignore the option if not recognized
17796 # So say no if there are warnings
17797 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17798 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17799 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17800 lt_cv_prog_compiler_c_o_GCJ=yes
17801 fi
17802 fi
17803 chmod u+w . 2>&5
17804 $rm conftest*
17805 # SGI C++ compiler will create directory out/ii_files/ for
17806 # template instantiation
17807 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17808 $rm out/* && rmdir out
17809 cd ..
17810 rmdir conftest
17811 $rm conftest*
17812
17813fi
64ff59ba 17814{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17815echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
d9898ee8 17816
17817
17818hard_links="nottested"
17819if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17820 # do not overwrite the value of need_locks provided by the user
64ff59ba 17821 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17822echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 17823 hard_links=yes
17824 $rm conftest*
17825 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17826 touch conftest.a
17827 ln conftest.a conftest.b 2>&5 || hard_links=no
17828 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 17829 { echo "$as_me:$LINENO: result: $hard_links" >&5
17830echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 17831 if test "$hard_links" = no; then
17832 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17833echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17834 need_locks=warn
17835 fi
17836else
17837 need_locks=no
17838fi
17839
64ff59ba 17840{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17841echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 17842
17843 runpath_var=
17844 allow_undefined_flag_GCJ=
17845 enable_shared_with_static_runtimes_GCJ=no
17846 archive_cmds_GCJ=
17847 archive_expsym_cmds_GCJ=
17848 old_archive_From_new_cmds_GCJ=
17849 old_archive_from_expsyms_cmds_GCJ=
17850 export_dynamic_flag_spec_GCJ=
17851 whole_archive_flag_spec_GCJ=
17852 thread_safe_flag_spec_GCJ=
17853 hardcode_libdir_flag_spec_GCJ=
17854 hardcode_libdir_flag_spec_ld_GCJ=
17855 hardcode_libdir_separator_GCJ=
17856 hardcode_direct_GCJ=no
17857 hardcode_minus_L_GCJ=no
17858 hardcode_shlibpath_var_GCJ=unsupported
17859 link_all_deplibs_GCJ=unknown
17860 hardcode_automatic_GCJ=no
17861 module_cmds_GCJ=
17862 module_expsym_cmds_GCJ=
17863 always_export_symbols_GCJ=no
17864 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17865 # include_expsyms should be a list of space-separated symbols to be *always*
17866 # included in the symbol list
17867 include_expsyms_GCJ=
17868 # exclude_expsyms can be an extended regexp of symbols to exclude
17869 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17870 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17871 # as well as any symbol that contains `d'.
17872 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17873 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17874 # platforms (ab)use it in PIC code, but their linkers get confused if
17875 # the symbol is explicitly referenced. Since portable code cannot
17876 # rely on this symbol name, it's probably fine to never include it in
17877 # preloaded symbol tables.
17878 extract_expsyms_cmds=
17879 # Just being paranoid about ensuring that cc_basename is set.
17880 for cc_temp in $compiler""; do
17881 case $cc_temp in
17882 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17883 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17884 \-*) ;;
17885 *) break;;
17886 esac
17887done
17888cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17889
17890 case $host_os in
17891 cygwin* | mingw* | pw32*)
17892 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17893 # When not using gcc, we currently assume that we are using
17894 # Microsoft Visual C++.
17895 if test "$GCC" != yes; then
17896 with_gnu_ld=no
17897 fi
17898 ;;
17899 interix*)
17900 # we just hope/assume this is gcc and not c89 (= MSVC++)
17901 with_gnu_ld=yes
17902 ;;
17903 openbsd*)
17904 with_gnu_ld=no
17905 ;;
17906 esac
17907
17908 ld_shlibs_GCJ=yes
17909 if test "$with_gnu_ld" = yes; then
17910 # If archive_cmds runs LD, not CC, wlarc should be empty
17911 wlarc='${wl}'
17912
17913 # Set some defaults for GNU ld with shared library support. These
17914 # are reset later if shared libraries are not supported. Putting them
17915 # here allows them to be overridden if necessary.
17916 runpath_var=LD_RUN_PATH
17917 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17918 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17919 # ancient GNU ld didn't support --whole-archive et. al.
17920 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17921 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17922 else
17923 whole_archive_flag_spec_GCJ=
17924 fi
17925 supports_anon_versioning=no
17926 case `$LD -v 2>/dev/null` in
17927 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17928 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17929 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17930 *\ 2.11.*) ;; # other 2.11 versions
17931 *) supports_anon_versioning=yes ;;
17932 esac
17933
17934 # See if GNU ld supports shared libraries.
17935 case $host_os in
17936 aix3* | aix4* | aix5*)
17937 # On AIX/PPC, the GNU linker is very broken
17938 if test "$host_cpu" != ia64; then
17939 ld_shlibs_GCJ=no
17940 cat <<EOF 1>&2
17941
17942*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17943*** to be unable to reliably create shared libraries on AIX.
17944*** Therefore, libtool is disabling shared libraries support. If you
17945*** really care for shared libraries, you may want to modify your PATH
17946*** so that a non-GNU linker is found, and then restart.
17947
17948EOF
17949 fi
17950 ;;
17951
17952 amigaos*)
17953 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)'
17954 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17955 hardcode_minus_L_GCJ=yes
17956
17957 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17958 # that the semantics of dynamic libraries on AmigaOS, at least up
17959 # to version 4, is to share data among multiple programs linked
17960 # with the same dynamic library. Since this doesn't match the
17961 # behavior of shared libraries on other platforms, we can't use
17962 # them.
17963 ld_shlibs_GCJ=no
17964 ;;
17965
17966 beos*)
17967 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17968 allow_undefined_flag_GCJ=unsupported
17969 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17970 # support --undefined. This deserves some investigation. FIXME
17971 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17972 else
17973 ld_shlibs_GCJ=no
17974 fi
17975 ;;
17976
17977 cygwin* | mingw* | pw32*)
17978 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17979 # as there is no search path for DLLs.
17980 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17981 allow_undefined_flag_GCJ=unsupported
17982 always_export_symbols_GCJ=no
17983 enable_shared_with_static_runtimes_GCJ=yes
17984 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17985
17986 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17987 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17988 # If the export-symbols file already is a .def file (1st line
17989 # is EXPORTS), use it as is; otherwise, prepend...
17990 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17991 cp $export_symbols $output_objdir/$soname.def;
17992 else
17993 echo EXPORTS > $output_objdir/$soname.def;
17994 cat $export_symbols >> $output_objdir/$soname.def;
17995 fi~
17996 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17997 else
17998 ld_shlibs_GCJ=no
17999 fi
18000 ;;
18001
18002 interix3*)
18003 hardcode_direct_GCJ=no
18004 hardcode_shlibpath_var_GCJ=no
18005 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18006 export_dynamic_flag_spec_GCJ='${wl}-E'
18007 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18008 # Instead, shared libraries are loaded at an image base (0x10000000 by
18009 # default) and relocated if they conflict, which is a slow very memory
18010 # consuming and fragmenting process. To avoid this, we pick a random,
18011 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18012 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18013 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'
18014 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'
18015 ;;
18016
18017 linux*)
18018 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18019 tmp_addflag=
18020 case $cc_basename,$host_cpu in
18021 pgcc*) # Portland Group C compiler
18022 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'
18023 tmp_addflag=' $pic_flag'
18024 ;;
18025 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18026 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'
18027 tmp_addflag=' $pic_flag -Mnomain' ;;
18028 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18029 tmp_addflag=' -i_dynamic' ;;
18030 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18031 tmp_addflag=' -i_dynamic -nofor_main' ;;
18032 ifc* | ifort*) # Intel Fortran compiler
18033 tmp_addflag=' -nofor_main' ;;
18034 esac
18035 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18036
18037 if test $supports_anon_versioning = yes; then
18038 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18039 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18040 $echo "local: *; };" >> $output_objdir/$libname.ver~
18041 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18042 fi
18043 else
18044 ld_shlibs_GCJ=no
18045 fi
18046 ;;
18047
18048 netbsd*)
18049 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18050 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18051 wlarc=
18052 else
18053 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18054 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18055 fi
18056 ;;
18057
18058 solaris*)
18059 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18060 ld_shlibs_GCJ=no
18061 cat <<EOF 1>&2
18062
18063*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18064*** create shared libraries on Solaris systems. Therefore, libtool
18065*** is disabling shared libraries support. We urge you to upgrade GNU
18066*** binutils to release 2.9.1 or newer. Another option is to modify
18067*** your PATH or compiler configuration so that the native linker is
18068*** used, and then restart.
18069
18070EOF
18071 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18072 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18073 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18074 else
18075 ld_shlibs_GCJ=no
18076 fi
18077 ;;
18078
18079 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18080 case `$LD -v 2>&1` in
18081 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18082 ld_shlibs_GCJ=no
18083 cat <<_LT_EOF 1>&2
18084
18085*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18086*** reliably create shared libraries on SCO systems. Therefore, libtool
18087*** is disabling shared libraries support. We urge you to upgrade GNU
18088*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18089*** your PATH or compiler configuration so that the native linker is
18090*** used, and then restart.
18091
18092_LT_EOF
18093 ;;
18094 *)
18095 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18096 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18097 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18098 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18099 else
18100 ld_shlibs_GCJ=no
18101 fi
18102 ;;
18103 esac
18104 ;;
18105
18106 sunos4*)
18107 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18108 wlarc=
18109 hardcode_direct_GCJ=yes
18110 hardcode_shlibpath_var_GCJ=no
18111 ;;
18112
18113 *)
18114 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18115 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18116 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18117 else
18118 ld_shlibs_GCJ=no
18119 fi
18120 ;;
18121 esac
18122
18123 if test "$ld_shlibs_GCJ" = no; then
18124 runpath_var=
18125 hardcode_libdir_flag_spec_GCJ=
18126 export_dynamic_flag_spec_GCJ=
18127 whole_archive_flag_spec_GCJ=
18128 fi
18129 else
18130 # PORTME fill in a description of your system's linker (not GNU ld)
18131 case $host_os in
18132 aix3*)
18133 allow_undefined_flag_GCJ=unsupported
18134 always_export_symbols_GCJ=yes
18135 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'
18136 # Note: this linker hardcodes the directories in LIBPATH if there
18137 # are no directories specified by -L.
18138 hardcode_minus_L_GCJ=yes
18139 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18140 # Neither direct hardcoding nor static linking is supported with a
18141 # broken collect2.
18142 hardcode_direct_GCJ=unsupported
18143 fi
18144 ;;
18145
18146 aix4* | aix5*)
18147 if test "$host_cpu" = ia64; then
18148 # On IA64, the linker does run time linking by default, so we don't
18149 # have to do anything special.
18150 aix_use_runtimelinking=no
18151 exp_sym_flag='-Bexport'
18152 no_entry_flag=""
18153 else
18154 # If we're using GNU nm, then we don't want the "-C" option.
18155 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18156 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18157 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'
18158 else
18159 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'
18160 fi
18161 aix_use_runtimelinking=no
18162
18163 # Test if we are trying to use run time linking or normal
18164 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18165 # need to do runtime linking.
18166 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18167 for ld_flag in $LDFLAGS; do
18168 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18169 aix_use_runtimelinking=yes
18170 break
18171 fi
18172 done
18173 ;;
18174 esac
18175
18176 exp_sym_flag='-bexport'
18177 no_entry_flag='-bnoentry'
18178 fi
18179
18180 # When large executables or shared objects are built, AIX ld can
18181 # have problems creating the table of contents. If linking a library
18182 # or program results in "error TOC overflow" add -mminimal-toc to
18183 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18184 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18185
18186 archive_cmds_GCJ=''
18187 hardcode_direct_GCJ=yes
18188 hardcode_libdir_separator_GCJ=':'
18189 link_all_deplibs_GCJ=yes
18190
18191 if test "$GCC" = yes; then
18192 case $host_os in aix4.[012]|aix4.[012].*)
18193 # We only want to do this on AIX 4.2 and lower, the check
18194 # below for broken collect2 doesn't work under 4.3+
18195 collect2name=`${CC} -print-prog-name=collect2`
18196 if test -f "$collect2name" && \
18197 strings "$collect2name" | grep resolve_lib_name >/dev/null
18198 then
18199 # We have reworked collect2
18200 hardcode_direct_GCJ=yes
18201 else
18202 # We have old collect2
18203 hardcode_direct_GCJ=unsupported
18204 # It fails to find uninstalled libraries when the uninstalled
18205 # path is not listed in the libpath. Setting hardcode_minus_L
18206 # to unsupported forces relinking
18207 hardcode_minus_L_GCJ=yes
18208 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18209 hardcode_libdir_separator_GCJ=
18210 fi
18211 ;;
18212 esac
18213 shared_flag='-shared'
18214 if test "$aix_use_runtimelinking" = yes; then
18215 shared_flag="$shared_flag "'${wl}-G'
18216 fi
18217 else
18218 # not using gcc
18219 if test "$host_cpu" = ia64; then
18220 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18221 # chokes on -Wl,-G. The following line is correct:
18222 shared_flag='-G'
18223 else
18224 if test "$aix_use_runtimelinking" = yes; then
18225 shared_flag='${wl}-G'
18226 else
18227 shared_flag='${wl}-bM:SRE'
18228 fi
18229 fi
18230 fi
18231
18232 # It seems that -bexpall does not export symbols beginning with
18233 # underscore (_), so it is better to generate a list of symbols to export.
18234 always_export_symbols_GCJ=yes
18235 if test "$aix_use_runtimelinking" = yes; then
18236 # Warning - without using the other runtime loading flags (-brtl),
18237 # -berok will link without error, but may produce a broken library.
18238 allow_undefined_flag_GCJ='-berok'
18239 # Determine the default libpath from the value encoded in an empty executable.
18240 cat >conftest.$ac_ext <<_ACEOF
18241/* confdefs.h. */
18242_ACEOF
18243cat confdefs.h >>conftest.$ac_ext
18244cat >>conftest.$ac_ext <<_ACEOF
18245/* end confdefs.h. */
18246
18247int
18248main ()
18249{
18250
18251 ;
18252 return 0;
18253}
18254_ACEOF
18255rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 18256if { (ac_try="$ac_link"
18257case "(($ac_try" in
18258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18259 *) ac_try_echo=$ac_try;;
18260esac
18261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18262 (eval "$ac_link") 2>conftest.er1
d9898ee8 18263 ac_status=$?
18264 grep -v '^ *+' conftest.er1 >conftest.err
18265 rm -f conftest.er1
18266 cat conftest.err >&5
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 18268 (exit $ac_status); } && {
18269 test -z "$ac_c_werror_flag" ||
18270 test ! -s conftest.err
18271 } && test -s conftest$ac_exeext &&
18272 $as_test_x conftest$ac_exeext; then
d9898ee8 18273
18274aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18275}'`
18276# Check for a 64-bit object if we didn't find anything.
18277if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18278}'`; fi
18279else
18280 echo "$as_me: failed program was:" >&5
18281sed 's/^/| /' conftest.$ac_ext >&5
18282
64ff59ba 18283
d9898ee8 18284fi
64ff59ba 18285
18286rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 18287 conftest$ac_exeext conftest.$ac_ext
18288if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18289
18290 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18291 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"
18292 else
18293 if test "$host_cpu" = ia64; then
18294 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18295 allow_undefined_flag_GCJ="-z nodefs"
18296 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"
18297 else
18298 # Determine the default libpath from the value encoded in an empty executable.
18299 cat >conftest.$ac_ext <<_ACEOF
18300/* confdefs.h. */
18301_ACEOF
18302cat confdefs.h >>conftest.$ac_ext
18303cat >>conftest.$ac_ext <<_ACEOF
18304/* end confdefs.h. */
18305
18306int
18307main ()
18308{
18309
18310 ;
18311 return 0;
18312}
18313_ACEOF
18314rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 18315if { (ac_try="$ac_link"
18316case "(($ac_try" in
18317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18318 *) ac_try_echo=$ac_try;;
18319esac
18320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18321 (eval "$ac_link") 2>conftest.er1
d9898ee8 18322 ac_status=$?
18323 grep -v '^ *+' conftest.er1 >conftest.err
18324 rm -f conftest.er1
18325 cat conftest.err >&5
18326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 18327 (exit $ac_status); } && {
18328 test -z "$ac_c_werror_flag" ||
18329 test ! -s conftest.err
18330 } && test -s conftest$ac_exeext &&
18331 $as_test_x conftest$ac_exeext; then
d9898ee8 18332
18333aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18334}'`
18335# Check for a 64-bit object if we didn't find anything.
18336if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18337}'`; fi
18338else
18339 echo "$as_me: failed program was:" >&5
18340sed 's/^/| /' conftest.$ac_ext >&5
18341
64ff59ba 18342
d9898ee8 18343fi
64ff59ba 18344
18345rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 18346 conftest$ac_exeext conftest.$ac_ext
18347if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18348
18349 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18350 # Warning - without using the other run time loading flags,
18351 # -berok will link without error, but may produce a broken library.
18352 no_undefined_flag_GCJ=' ${wl}-bernotok'
18353 allow_undefined_flag_GCJ=' ${wl}-berok'
18354 # Exported symbols can be pulled into shared objects from archives
18355 whole_archive_flag_spec_GCJ='$convenience'
18356 archive_cmds_need_lc_GCJ=yes
18357 # This is similar to how AIX traditionally builds its shared libraries.
18358 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'
18359 fi
18360 fi
18361 ;;
18362
18363 amigaos*)
18364 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)'
18365 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18366 hardcode_minus_L_GCJ=yes
18367 # see comment about different semantics on the GNU ld section
18368 ld_shlibs_GCJ=no
18369 ;;
18370
18371 bsdi[45]*)
18372 export_dynamic_flag_spec_GCJ=-rdynamic
18373 ;;
18374
18375 cygwin* | mingw* | pw32*)
18376 # When not using gcc, we currently assume that we are using
18377 # Microsoft Visual C++.
18378 # hardcode_libdir_flag_spec is actually meaningless, as there is
18379 # no search path for DLLs.
18380 hardcode_libdir_flag_spec_GCJ=' '
18381 allow_undefined_flag_GCJ=unsupported
18382 # Tell ltmain to make .lib files, not .a files.
18383 libext=lib
18384 # Tell ltmain to make .dll files, not .so files.
18385 shrext_cmds=".dll"
18386 # FIXME: Setting linknames here is a bad hack.
18387 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18388 # The linker will automatically build a .lib file if we build a DLL.
18389 old_archive_From_new_cmds_GCJ='true'
18390 # FIXME: Should let the user specify the lib program.
18391 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18392 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18393 enable_shared_with_static_runtimes_GCJ=yes
18394 ;;
18395
18396 darwin* | rhapsody*)
18397 case $host_os in
18398 rhapsody* | darwin1.[012])
18399 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18400 ;;
18401 *) # Darwin 1.3 on
18402 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18403 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18404 else
18405 case ${MACOSX_DEPLOYMENT_TARGET} in
18406 10.[012])
18407 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18408 ;;
18409 10.*)
18410 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18411 ;;
18412 esac
18413 fi
18414 ;;
18415 esac
18416 archive_cmds_need_lc_GCJ=no
18417 hardcode_direct_GCJ=no
18418 hardcode_automatic_GCJ=yes
18419 hardcode_shlibpath_var_GCJ=unsupported
18420 whole_archive_flag_spec_GCJ=''
18421 link_all_deplibs_GCJ=yes
18422 if test "$GCC" = yes ; then
18423 output_verbose_link_cmd='echo'
18424 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18425 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18426 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18427 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}'
18428 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}'
18429 else
18430 case $cc_basename in
18431 xlc*)
18432 output_verbose_link_cmd='echo'
18433 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18434 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18435 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18436 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18437 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}'
18438 ;;
18439 *)
18440 ld_shlibs_GCJ=no
18441 ;;
18442 esac
18443 fi
18444 ;;
18445
18446 dgux*)
18447 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18448 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18449 hardcode_shlibpath_var_GCJ=no
18450 ;;
18451
18452 freebsd1*)
18453 ld_shlibs_GCJ=no
18454 ;;
18455
18456 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18457 # support. Future versions do this automatically, but an explicit c++rt0.o
18458 # does not break anything, and helps significantly (at the cost of a little
18459 # extra space).
18460 freebsd2.2*)
18461 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18462 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18463 hardcode_direct_GCJ=yes
18464 hardcode_shlibpath_var_GCJ=no
18465 ;;
18466
18467 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18468 freebsd2*)
18469 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18470 hardcode_direct_GCJ=yes
18471 hardcode_minus_L_GCJ=yes
18472 hardcode_shlibpath_var_GCJ=no
18473 ;;
18474
18475 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18476 freebsd* | kfreebsd*-gnu | dragonfly*)
18477 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18478 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18479 hardcode_direct_GCJ=yes
18480 hardcode_shlibpath_var_GCJ=no
18481 ;;
18482
18483 hpux9*)
18484 if test "$GCC" = yes; then
18485 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'
18486 else
18487 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'
18488 fi
18489 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18490 hardcode_libdir_separator_GCJ=:
18491 hardcode_direct_GCJ=yes
18492
18493 # hardcode_minus_L: Not really in the search PATH,
18494 # but as the default location of the library.
18495 hardcode_minus_L_GCJ=yes
18496 export_dynamic_flag_spec_GCJ='${wl}-E'
18497 ;;
18498
18499 hpux10*)
18500 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18501 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18502 else
18503 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18504 fi
18505 if test "$with_gnu_ld" = no; then
18506 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18507 hardcode_libdir_separator_GCJ=:
18508
18509 hardcode_direct_GCJ=yes
18510 export_dynamic_flag_spec_GCJ='${wl}-E'
18511
18512 # hardcode_minus_L: Not really in the search PATH,
18513 # but as the default location of the library.
18514 hardcode_minus_L_GCJ=yes
18515 fi
18516 ;;
18517
18518 hpux11*)
18519 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18520 case $host_cpu in
18521 hppa*64*)
18522 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18523 ;;
18524 ia64*)
18525 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18526 ;;
18527 *)
18528 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18529 ;;
18530 esac
18531 else
18532 case $host_cpu in
18533 hppa*64*)
18534 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18535 ;;
18536 ia64*)
18537 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18538 ;;
18539 *)
18540 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18541 ;;
18542 esac
18543 fi
18544 if test "$with_gnu_ld" = no; then
18545 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18546 hardcode_libdir_separator_GCJ=:
18547
18548 case $host_cpu in
18549 hppa*64*|ia64*)
18550 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18551 hardcode_direct_GCJ=no
18552 hardcode_shlibpath_var_GCJ=no
18553 ;;
18554 *)
18555 hardcode_direct_GCJ=yes
18556 export_dynamic_flag_spec_GCJ='${wl}-E'
18557
18558 # hardcode_minus_L: Not really in the search PATH,
18559 # but as the default location of the library.
18560 hardcode_minus_L_GCJ=yes
18561 ;;
18562 esac
18563 fi
18564 ;;
18565
18566 irix5* | irix6* | nonstopux*)
18567 if test "$GCC" = yes; then
18568 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'
18569 else
18570 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'
18571 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18572 fi
18573 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18574 hardcode_libdir_separator_GCJ=:
18575 link_all_deplibs_GCJ=yes
18576 ;;
18577
18578 netbsd*)
18579 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18580 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18581 else
18582 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18583 fi
18584 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18585 hardcode_direct_GCJ=yes
18586 hardcode_shlibpath_var_GCJ=no
18587 ;;
18588
18589 newsos6)
18590 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18591 hardcode_direct_GCJ=yes
18592 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18593 hardcode_libdir_separator_GCJ=:
18594 hardcode_shlibpath_var_GCJ=no
18595 ;;
18596
18597 openbsd*)
18598 hardcode_direct_GCJ=yes
18599 hardcode_shlibpath_var_GCJ=no
18600 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18601 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18602 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18603 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18604 export_dynamic_flag_spec_GCJ='${wl}-E'
18605 else
18606 case $host_os in
18607 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18608 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18609 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18610 ;;
18611 *)
18612 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18613 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18614 ;;
18615 esac
18616 fi
18617 ;;
18618
18619 os2*)
18620 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18621 hardcode_minus_L_GCJ=yes
18622 allow_undefined_flag_GCJ=unsupported
18623 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'
18624 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18625 ;;
18626
18627 osf3*)
18628 if test "$GCC" = yes; then
18629 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18630 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'
18631 else
18632 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18633 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'
18634 fi
18635 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18636 hardcode_libdir_separator_GCJ=:
18637 ;;
18638
18639 osf4* | osf5*) # as osf3* with the addition of -msym flag
18640 if test "$GCC" = yes; then
18641 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18642 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'
18643 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18644 else
18645 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18646 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'
18647 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~
18648 $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'
18649
18650 # Both c and cxx compiler support -rpath directly
18651 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18652 fi
18653 hardcode_libdir_separator_GCJ=:
18654 ;;
18655
18656 solaris*)
18657 no_undefined_flag_GCJ=' -z text'
18658 if test "$GCC" = yes; then
18659 wlarc='${wl}'
18660 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18661 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18662 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18663 else
18664 wlarc=''
18665 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18666 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18667 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18668 fi
18669 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18670 hardcode_shlibpath_var_GCJ=no
18671 case $host_os in
18672 solaris2.[0-5] | solaris2.[0-5].*) ;;
18673 *)
18674 # The compiler driver will combine linker options so we
18675 # cannot just pass the convience library names through
18676 # without $wl, iff we do not link with $LD.
18677 # Luckily, gcc supports the same syntax we need for Sun Studio.
18678 # Supported since Solaris 2.6 (maybe 2.5.1?)
18679 case $wlarc in
18680 '')
18681 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18682 *)
18683 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18684 esac ;;
18685 esac
18686 link_all_deplibs_GCJ=yes
18687 ;;
18688
18689 sunos4*)
18690 if test "x$host_vendor" = xsequent; then
18691 # Use $CC to link under sequent, because it throws in some extra .o
18692 # files that make .init and .fini sections work.
18693 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18694 else
18695 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18696 fi
18697 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18698 hardcode_direct_GCJ=yes
18699 hardcode_minus_L_GCJ=yes
18700 hardcode_shlibpath_var_GCJ=no
18701 ;;
18702
18703 sysv4)
18704 case $host_vendor in
18705 sni)
18706 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18707 hardcode_direct_GCJ=yes # is this really true???
18708 ;;
18709 siemens)
18710 ## LD is ld it makes a PLAMLIB
18711 ## CC just makes a GrossModule.
18712 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18713 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18714 hardcode_direct_GCJ=no
18715 ;;
18716 motorola)
18717 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18718 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18719 ;;
18720 esac
18721 runpath_var='LD_RUN_PATH'
18722 hardcode_shlibpath_var_GCJ=no
18723 ;;
18724
18725 sysv4.3*)
18726 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18727 hardcode_shlibpath_var_GCJ=no
18728 export_dynamic_flag_spec_GCJ='-Bexport'
18729 ;;
18730
18731 sysv4*MP*)
18732 if test -d /usr/nec; then
18733 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18734 hardcode_shlibpath_var_GCJ=no
18735 runpath_var=LD_RUN_PATH
18736 hardcode_runpath_var=yes
18737 ld_shlibs_GCJ=yes
18738 fi
18739 ;;
18740
18741 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18742 no_undefined_flag_GCJ='${wl}-z,text'
18743 archive_cmds_need_lc_GCJ=no
18744 hardcode_shlibpath_var_GCJ=no
18745 runpath_var='LD_RUN_PATH'
18746
18747 if test "$GCC" = yes; then
18748 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18749 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18750 else
18751 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18752 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18753 fi
18754 ;;
18755
18756 sysv5* | sco3.2v5* | sco5v6*)
18757 # Note: We can NOT use -z defs as we might desire, because we do not
18758 # link with -lc, and that would cause any symbols used from libc to
18759 # always be unresolved, which means just about no library would
18760 # ever link correctly. If we're not using GNU ld we use -z text
18761 # though, which does catch some bad symbols but isn't as heavy-handed
18762 # as -z defs.
18763 no_undefined_flag_GCJ='${wl}-z,text'
18764 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18765 archive_cmds_need_lc_GCJ=no
18766 hardcode_shlibpath_var_GCJ=no
18767 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18768 hardcode_libdir_separator_GCJ=':'
18769 link_all_deplibs_GCJ=yes
18770 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18771 runpath_var='LD_RUN_PATH'
18772
18773 if test "$GCC" = yes; then
18774 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18775 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18776 else
18777 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18778 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18779 fi
18780 ;;
18781
18782 uts4*)
18783 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18784 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18785 hardcode_shlibpath_var_GCJ=no
18786 ;;
18787
18788 *)
18789 ld_shlibs_GCJ=no
18790 ;;
18791 esac
18792 fi
18793
64ff59ba 18794{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18795echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
d9898ee8 18796test "$ld_shlibs_GCJ" = no && can_build_shared=no
18797
18798#
18799# Do we need to explicitly link libc?
18800#
18801case "x$archive_cmds_need_lc_GCJ" in
18802x|xyes)
18803 # Assume -lc should be added
18804 archive_cmds_need_lc_GCJ=yes
18805
18806 if test "$enable_shared" = yes && test "$GCC" = yes; then
18807 case $archive_cmds_GCJ in
18808 *'~'*)
18809 # FIXME: we may have to deal with multi-command sequences.
18810 ;;
18811 '$CC '*)
18812 # Test whether the compiler implicitly links with -lc since on some
18813 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18814 # to ld, don't add -lc before -lgcc.
64ff59ba 18815 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18816echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 18817 $rm conftest*
18818 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18819
18820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18821 (eval $ac_compile) 2>&5
18822 ac_status=$?
18823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); } 2>conftest.err; then
18825 soname=conftest
18826 lib=conftest
18827 libobjs=conftest.$ac_objext
18828 deplibs=
18829 wl=$lt_prog_compiler_wl_GCJ
18830 pic_flag=$lt_prog_compiler_pic_GCJ
18831 compiler_flags=-v
18832 linker_flags=-v
18833 verstring=
18834 output_objdir=.
18835 libname=conftest
18836 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18837 allow_undefined_flag_GCJ=
18838 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18839 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18840 ac_status=$?
18841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842 (exit $ac_status); }
18843 then
18844 archive_cmds_need_lc_GCJ=no
18845 else
18846 archive_cmds_need_lc_GCJ=yes
18847 fi
18848 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18849 else
18850 cat conftest.err 1>&5
18851 fi
18852 $rm conftest*
64ff59ba 18853 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18854echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
d9898ee8 18855 ;;
18856 esac
18857 fi
18858 ;;
18859esac
18860
64ff59ba 18861{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18862echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 18863library_names_spec=
18864libname_spec='lib$name'
18865soname_spec=
18866shrext_cmds=".so"
18867postinstall_cmds=
18868postuninstall_cmds=
18869finish_cmds=
18870finish_eval=
18871shlibpath_var=
18872shlibpath_overrides_runpath=unknown
18873version_type=none
18874dynamic_linker="$host_os ld.so"
18875sys_lib_dlsearch_path_spec="/lib /usr/lib"
18876if test "$GCC" = yes; then
18877 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18878 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18879 # if the path contains ";" then we assume it to be the separator
18880 # otherwise default to the standard path separator (i.e. ":") - it is
18881 # assumed that no part of a normal pathname contains ";" but that should
18882 # okay in the real world where ";" in dirpaths is itself problematic.
18883 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18884 else
18885 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18886 fi
18887else
18888 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18889fi
18890need_lib_prefix=unknown
18891hardcode_into_libs=no
18892
18893# when you set need_version to no, make sure it does not cause -set_version
18894# flags to be left without arguments
18895need_version=unknown
18896
18897case $host_os in
18898aix3*)
18899 version_type=linux
18900 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18901 shlibpath_var=LIBPATH
18902
18903 # AIX 3 has no versioning support, so we append a major version to the name.
18904 soname_spec='${libname}${release}${shared_ext}$major'
18905 ;;
18906
18907aix4* | aix5*)
18908 version_type=linux
18909 need_lib_prefix=no
18910 need_version=no
18911 hardcode_into_libs=yes
18912 if test "$host_cpu" = ia64; then
18913 # AIX 5 supports IA64
18914 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18915 shlibpath_var=LD_LIBRARY_PATH
18916 else
18917 # With GCC up to 2.95.x, collect2 would create an import file
18918 # for dependence libraries. The import file would start with
18919 # the line `#! .'. This would cause the generated library to
18920 # depend on `.', always an invalid library. This was fixed in
18921 # development snapshots of GCC prior to 3.0.
18922 case $host_os in
18923 aix4 | aix4.[01] | aix4.[01].*)
18924 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18925 echo ' yes '
18926 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18927 :
18928 else
18929 can_build_shared=no
18930 fi
18931 ;;
18932 esac
18933 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18934 # soname into executable. Probably we can add versioning support to
18935 # collect2, so additional links can be useful in future.
18936 if test "$aix_use_runtimelinking" = yes; then
18937 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18938 # instead of lib<name>.a to let people know that these are not
18939 # typical AIX shared libraries.
18940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18941 else
18942 # We preserve .a as extension for shared libraries through AIX4.2
18943 # and later when we are not doing run time linking.
18944 library_names_spec='${libname}${release}.a $libname.a'
18945 soname_spec='${libname}${release}${shared_ext}$major'
18946 fi
18947 shlibpath_var=LIBPATH
18948 fi
18949 ;;
18950
18951amigaos*)
18952 library_names_spec='$libname.ixlibrary $libname.a'
18953 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18954 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'
18955 ;;
18956
18957beos*)
18958 library_names_spec='${libname}${shared_ext}'
18959 dynamic_linker="$host_os ld.so"
18960 shlibpath_var=LIBRARY_PATH
18961 ;;
18962
18963bsdi[45]*)
18964 version_type=linux
18965 need_version=no
18966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18967 soname_spec='${libname}${release}${shared_ext}$major'
18968 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18969 shlibpath_var=LD_LIBRARY_PATH
18970 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18971 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18972 # the default ld.so.conf also contains /usr/contrib/lib and
18973 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18974 # libtool to hard-code these into programs
18975 ;;
18976
18977cygwin* | mingw* | pw32*)
18978 version_type=windows
18979 shrext_cmds=".dll"
18980 need_version=no
18981 need_lib_prefix=no
18982
18983 case $GCC,$host_os in
18984 yes,cygwin* | yes,mingw* | yes,pw32*)
18985 library_names_spec='$libname.dll.a'
18986 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18987 postinstall_cmds='base_file=`basename \${file}`~
18988 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18989 dldir=$destdir/`dirname \$dlpath`~
18990 test -d \$dldir || mkdir -p \$dldir~
18991 $install_prog $dir/$dlname \$dldir/$dlname~
18992 chmod a+x \$dldir/$dlname'
18993 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18994 dlpath=$dir/\$dldll~
18995 $rm \$dlpath'
18996 shlibpath_overrides_runpath=yes
18997
18998 case $host_os in
18999 cygwin*)
19000 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19001 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19002 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19003 ;;
19004 mingw*)
19005 # MinGW DLLs use traditional 'lib' prefix
19006 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19007 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19008 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19009 # It is most probably a Windows format PATH printed by
19010 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19011 # path with ; separators, and with drive letters. We can handle the
19012 # drive letters (cygwin fileutils understands them), so leave them,
19013 # especially as we might pass files found there to a mingw objdump,
19014 # which wouldn't understand a cygwinified path. Ahh.
19015 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19016 else
19017 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19018 fi
19019 ;;
19020 pw32*)
19021 # pw32 DLLs use 'pw' prefix rather than 'lib'
19022 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19023 ;;
19024 esac
19025 ;;
19026
19027 *)
19028 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19029 ;;
19030 esac
19031 dynamic_linker='Win32 ld.exe'
19032 # FIXME: first we should search . and the directory the executable is in
19033 shlibpath_var=PATH
19034 ;;
19035
19036darwin* | rhapsody*)
19037 dynamic_linker="$host_os dyld"
19038 version_type=darwin
19039 need_lib_prefix=no
19040 need_version=no
19041 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19042 soname_spec='${libname}${release}${major}$shared_ext'
19043 shlibpath_overrides_runpath=yes
19044 shlibpath_var=DYLD_LIBRARY_PATH
19045 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19046 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19047 if test "$GCC" = yes; then
19048 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
19049 else
19050 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19051 fi
19052 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19053 ;;
19054
19055dgux*)
19056 version_type=linux
19057 need_lib_prefix=no
19058 need_version=no
19059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19060 soname_spec='${libname}${release}${shared_ext}$major'
19061 shlibpath_var=LD_LIBRARY_PATH
19062 ;;
19063
19064freebsd1*)
19065 dynamic_linker=no
19066 ;;
19067
19068kfreebsd*-gnu)
19069 version_type=linux
19070 need_lib_prefix=no
19071 need_version=no
19072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19073 soname_spec='${libname}${release}${shared_ext}$major'
19074 shlibpath_var=LD_LIBRARY_PATH
19075 shlibpath_overrides_runpath=no
19076 hardcode_into_libs=yes
19077 dynamic_linker='GNU ld.so'
19078 ;;
19079
19080freebsd* | dragonfly*)
19081 # DragonFly does not have aout. When/if they implement a new
19082 # versioning mechanism, adjust this.
19083 if test -x /usr/bin/objformat; then
19084 objformat=`/usr/bin/objformat`
19085 else
19086 case $host_os in
19087 freebsd[123]*) objformat=aout ;;
19088 *) objformat=elf ;;
19089 esac
19090 fi
19091 version_type=freebsd-$objformat
19092 case $version_type in
19093 freebsd-elf*)
19094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19095 need_version=no
19096 need_lib_prefix=no
19097 ;;
19098 freebsd-*)
19099 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19100 need_version=yes
19101 ;;
19102 esac
19103 shlibpath_var=LD_LIBRARY_PATH
19104 case $host_os in
19105 freebsd2*)
19106 shlibpath_overrides_runpath=yes
19107 ;;
19108 freebsd3.[01]* | freebsdelf3.[01]*)
19109 shlibpath_overrides_runpath=yes
19110 hardcode_into_libs=yes
19111 ;;
19112 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19113 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19114 shlibpath_overrides_runpath=no
19115 hardcode_into_libs=yes
19116 ;;
19117 freebsd*) # from 4.6 on
19118 shlibpath_overrides_runpath=yes
19119 hardcode_into_libs=yes
19120 ;;
19121 esac
19122 ;;
19123
19124gnu*)
19125 version_type=linux
19126 need_lib_prefix=no
19127 need_version=no
19128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19129 soname_spec='${libname}${release}${shared_ext}$major'
19130 shlibpath_var=LD_LIBRARY_PATH
19131 hardcode_into_libs=yes
19132 ;;
19133
19134hpux9* | hpux10* | hpux11*)
19135 # Give a soname corresponding to the major version so that dld.sl refuses to
19136 # link against other versions.
19137 version_type=sunos
19138 need_lib_prefix=no
19139 need_version=no
19140 case $host_cpu in
19141 ia64*)
19142 shrext_cmds='.so'
19143 hardcode_into_libs=yes
19144 dynamic_linker="$host_os dld.so"
19145 shlibpath_var=LD_LIBRARY_PATH
19146 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19148 soname_spec='${libname}${release}${shared_ext}$major'
19149 if test "X$HPUX_IA64_MODE" = X32; then
19150 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19151 else
19152 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19153 fi
19154 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19155 ;;
19156 hppa*64*)
19157 shrext_cmds='.sl'
19158 hardcode_into_libs=yes
19159 dynamic_linker="$host_os dld.sl"
19160 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19161 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19163 soname_spec='${libname}${release}${shared_ext}$major'
19164 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19165 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19166 ;;
19167 *)
19168 shrext_cmds='.sl'
19169 dynamic_linker="$host_os dld.sl"
19170 shlibpath_var=SHLIB_PATH
19171 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19173 soname_spec='${libname}${release}${shared_ext}$major'
19174 ;;
19175 esac
19176 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19177 postinstall_cmds='chmod 555 $lib'
19178 ;;
19179
19180interix3*)
19181 version_type=linux
19182 need_lib_prefix=no
19183 need_version=no
19184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19185 soname_spec='${libname}${release}${shared_ext}$major'
19186 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19187 shlibpath_var=LD_LIBRARY_PATH
19188 shlibpath_overrides_runpath=no
19189 hardcode_into_libs=yes
19190 ;;
19191
19192irix5* | irix6* | nonstopux*)
19193 case $host_os in
19194 nonstopux*) version_type=nonstopux ;;
19195 *)
19196 if test "$lt_cv_prog_gnu_ld" = yes; then
19197 version_type=linux
19198 else
19199 version_type=irix
19200 fi ;;
19201 esac
19202 need_lib_prefix=no
19203 need_version=no
19204 soname_spec='${libname}${release}${shared_ext}$major'
19205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19206 case $host_os in
19207 irix5* | nonstopux*)
19208 libsuff= shlibsuff=
19209 ;;
19210 *)
19211 case $LD in # libtool.m4 will add one of these switches to LD
19212 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19213 libsuff= shlibsuff= libmagic=32-bit;;
19214 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19215 libsuff=32 shlibsuff=N32 libmagic=N32;;
19216 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19217 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19218 *) libsuff= shlibsuff= libmagic=never-match;;
19219 esac
19220 ;;
19221 esac
19222 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19223 shlibpath_overrides_runpath=no
19224 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19225 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19226 hardcode_into_libs=yes
19227 ;;
19228
19229# No shared lib support for Linux oldld, aout, or coff.
19230linux*oldld* | linux*aout* | linux*coff*)
19231 dynamic_linker=no
19232 ;;
19233
19234# This must be Linux ELF.
19235linux*)
19236 version_type=linux
19237 need_lib_prefix=no
19238 need_version=no
19239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19240 soname_spec='${libname}${release}${shared_ext}$major'
19241 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19242 shlibpath_var=LD_LIBRARY_PATH
19243 shlibpath_overrides_runpath=no
19244 # This implies no fast_install, which is unacceptable.
19245 # Some rework will be needed to allow for fast_install
19246 # before this can be enabled.
19247 hardcode_into_libs=yes
19248
19249 # find out which ABI we are using
19250 libsuff=
19251 case "$host_cpu" in
19252 x86_64*|s390x*|powerpc64*)
64ff59ba 19253 echo '#line 19253 "configure"' > conftest.$ac_ext
d9898ee8 19254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19255 (eval $ac_compile) 2>&5
19256 ac_status=$?
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); }; then
19259 case `/usr/bin/file conftest.$ac_objext` in
19260 *64-bit*)
19261 libsuff=64
19262 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
19263 ;;
19264 esac
19265 fi
19266 rm -rf conftest*
19267 ;;
19268 esac
19269
19270 # Append ld.so.conf contents to the search path
19271 if test -f /etc/ld.so.conf; then
64ff59ba 19272 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/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
d9898ee8 19273 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
19274 fi
19275
19276 # We used to test for /lib/ld.so.1 and disable shared libraries on
19277 # powerpc, because MkLinux only supported shared libraries with the
19278 # GNU dynamic linker. Since this was broken with cross compilers,
19279 # most powerpc-linux boxes support dynamic linking these days and
19280 # people can always --disable-shared, the test was removed, and we
19281 # assume the GNU/Linux dynamic linker is in use.
19282 dynamic_linker='GNU/Linux ld.so'
19283 ;;
19284
19285knetbsd*-gnu)
19286 version_type=linux
19287 need_lib_prefix=no
19288 need_version=no
19289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19290 soname_spec='${libname}${release}${shared_ext}$major'
19291 shlibpath_var=LD_LIBRARY_PATH
19292 shlibpath_overrides_runpath=no
19293 hardcode_into_libs=yes
19294 dynamic_linker='GNU ld.so'
19295 ;;
19296
19297netbsd*)
19298 version_type=sunos
19299 need_lib_prefix=no
19300 need_version=no
19301 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19303 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19304 dynamic_linker='NetBSD (a.out) ld.so'
19305 else
19306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19307 soname_spec='${libname}${release}${shared_ext}$major'
19308 dynamic_linker='NetBSD ld.elf_so'
19309 fi
19310 shlibpath_var=LD_LIBRARY_PATH
19311 shlibpath_overrides_runpath=yes
19312 hardcode_into_libs=yes
19313 ;;
19314
19315newsos6)
19316 version_type=linux
19317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19318 shlibpath_var=LD_LIBRARY_PATH
19319 shlibpath_overrides_runpath=yes
19320 ;;
19321
19322nto-qnx*)
19323 version_type=linux
19324 need_lib_prefix=no
19325 need_version=no
19326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19327 soname_spec='${libname}${release}${shared_ext}$major'
19328 shlibpath_var=LD_LIBRARY_PATH
19329 shlibpath_overrides_runpath=yes
19330 ;;
19331
19332openbsd*)
19333 version_type=sunos
19334 sys_lib_dlsearch_path_spec="/usr/lib"
19335 need_lib_prefix=no
19336 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19337 case $host_os in
19338 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19339 *) need_version=no ;;
19340 esac
19341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19342 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19343 shlibpath_var=LD_LIBRARY_PATH
19344 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19345 case $host_os in
19346 openbsd2.[89] | openbsd2.[89].*)
19347 shlibpath_overrides_runpath=no
19348 ;;
19349 *)
19350 shlibpath_overrides_runpath=yes
19351 ;;
19352 esac
19353 else
19354 shlibpath_overrides_runpath=yes
19355 fi
19356 ;;
19357
19358os2*)
19359 libname_spec='$name'
19360 shrext_cmds=".dll"
19361 need_lib_prefix=no
19362 library_names_spec='$libname${shared_ext} $libname.a'
19363 dynamic_linker='OS/2 ld.exe'
19364 shlibpath_var=LIBPATH
19365 ;;
19366
19367osf3* | osf4* | osf5*)
19368 version_type=osf
19369 need_lib_prefix=no
19370 need_version=no
19371 soname_spec='${libname}${release}${shared_ext}$major'
19372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19373 shlibpath_var=LD_LIBRARY_PATH
19374 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19375 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19376 ;;
19377
19378solaris*)
19379 version_type=linux
19380 need_lib_prefix=no
19381 need_version=no
19382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19383 soname_spec='${libname}${release}${shared_ext}$major'
19384 shlibpath_var=LD_LIBRARY_PATH
19385 shlibpath_overrides_runpath=yes
19386 hardcode_into_libs=yes
19387 # ldd complains unless libraries are executable
19388 postinstall_cmds='chmod +x $lib'
19389 ;;
19390
19391sunos4*)
19392 version_type=sunos
19393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19394 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19395 shlibpath_var=LD_LIBRARY_PATH
19396 shlibpath_overrides_runpath=yes
19397 if test "$with_gnu_ld" = yes; then
19398 need_lib_prefix=no
19399 fi
19400 need_version=yes
19401 ;;
19402
19403sysv4 | sysv4.3*)
19404 version_type=linux
19405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19406 soname_spec='${libname}${release}${shared_ext}$major'
19407 shlibpath_var=LD_LIBRARY_PATH
19408 case $host_vendor in
19409 sni)
19410 shlibpath_overrides_runpath=no
19411 need_lib_prefix=no
19412 export_dynamic_flag_spec='${wl}-Blargedynsym'
19413 runpath_var=LD_RUN_PATH
19414 ;;
19415 siemens)
19416 need_lib_prefix=no
19417 ;;
19418 motorola)
19419 need_lib_prefix=no
19420 need_version=no
19421 shlibpath_overrides_runpath=no
19422 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19423 ;;
19424 esac
19425 ;;
19426
19427sysv4*MP*)
19428 if test -d /usr/nec ;then
19429 version_type=linux
19430 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19431 soname_spec='$libname${shared_ext}.$major'
19432 shlibpath_var=LD_LIBRARY_PATH
19433 fi
19434 ;;
19435
19436sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19437 version_type=freebsd-elf
19438 need_lib_prefix=no
19439 need_version=no
19440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19441 soname_spec='${libname}${release}${shared_ext}$major'
19442 shlibpath_var=LD_LIBRARY_PATH
19443 hardcode_into_libs=yes
19444 if test "$with_gnu_ld" = yes; then
19445 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19446 shlibpath_overrides_runpath=no
19447 else
19448 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19449 shlibpath_overrides_runpath=yes
19450 case $host_os in
19451 sco3.2v5*)
19452 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19453 ;;
19454 esac
19455 fi
19456 sys_lib_dlsearch_path_spec='/usr/lib'
19457 ;;
19458
19459uts4*)
19460 version_type=linux
19461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19462 soname_spec='${libname}${release}${shared_ext}$major'
19463 shlibpath_var=LD_LIBRARY_PATH
19464 ;;
19465
19466*)
19467 dynamic_linker=no
19468 ;;
19469esac
64ff59ba 19470{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19471echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 19472test "$dynamic_linker" = no && can_build_shared=no
19473
19474variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19475if test "$GCC" = yes; then
19476 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19477fi
19478
64ff59ba 19479{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19480echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 19481hardcode_action_GCJ=
19482if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19483 test -n "$runpath_var_GCJ" || \
19484 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19485
19486 # We can hardcode non-existant directories.
19487 if test "$hardcode_direct_GCJ" != no &&
19488 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19489 # have to relink, otherwise we might link with an installed library
19490 # when we should be linking with a yet-to-be-installed one
19491 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19492 test "$hardcode_minus_L_GCJ" != no; then
19493 # Linking always hardcodes the temporary library directory.
19494 hardcode_action_GCJ=relink
19495 else
19496 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19497 hardcode_action_GCJ=immediate
19498 fi
19499else
19500 # We cannot hardcode anything, or else we can only hardcode existing
19501 # directories.
19502 hardcode_action_GCJ=unsupported
19503fi
64ff59ba 19504{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19505echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
d9898ee8 19506
19507if test "$hardcode_action_GCJ" = relink; then
19508 # Fast installation is not supported
19509 enable_fast_install=no
19510elif test "$shlibpath_overrides_runpath" = yes ||
19511 test "$enable_shared" = no; then
19512 # Fast installation is not necessary
19513 enable_fast_install=needless
19514fi
19515
19516
19517# The else clause should only fire when bootstrapping the
19518# libtool distribution, otherwise you forgot to ship ltmain.sh
19519# with your package, and you will get complaints that there are
19520# no rules to generate ltmain.sh.
19521if test -f "$ltmain"; then
19522 # See if we are running on zsh, and set the options which allow our commands through
19523 # without removal of \ escapes.
19524 if test -n "${ZSH_VERSION+set}" ; then
19525 setopt NO_GLOB_SUBST
19526 fi
19527 # Now quote all the things that may contain metacharacters while being
19528 # careful not to overquote the AC_SUBSTed values. We take copies of the
19529 # variables and quote the copies for generation of the libtool script.
19530 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19531 SED SHELL STRIP \
19532 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19533 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19534 deplibs_check_method reload_flag reload_cmds need_locks \
19535 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19536 lt_cv_sys_global_symbol_to_c_name_address \
19537 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19538 old_postinstall_cmds old_postuninstall_cmds \
19539 compiler_GCJ \
19540 CC_GCJ \
19541 LD_GCJ \
19542 lt_prog_compiler_wl_GCJ \
19543 lt_prog_compiler_pic_GCJ \
19544 lt_prog_compiler_static_GCJ \
19545 lt_prog_compiler_no_builtin_flag_GCJ \
19546 export_dynamic_flag_spec_GCJ \
19547 thread_safe_flag_spec_GCJ \
19548 whole_archive_flag_spec_GCJ \
19549 enable_shared_with_static_runtimes_GCJ \
19550 old_archive_cmds_GCJ \
19551 old_archive_from_new_cmds_GCJ \
19552 predep_objects_GCJ \
19553 postdep_objects_GCJ \
19554 predeps_GCJ \
19555 postdeps_GCJ \
19556 compiler_lib_search_path_GCJ \
19557 archive_cmds_GCJ \
19558 archive_expsym_cmds_GCJ \
19559 postinstall_cmds_GCJ \
19560 postuninstall_cmds_GCJ \
19561 old_archive_from_expsyms_cmds_GCJ \
19562 allow_undefined_flag_GCJ \
19563 no_undefined_flag_GCJ \
19564 export_symbols_cmds_GCJ \
19565 hardcode_libdir_flag_spec_GCJ \
19566 hardcode_libdir_flag_spec_ld_GCJ \
19567 hardcode_libdir_separator_GCJ \
19568 hardcode_automatic_GCJ \
19569 module_cmds_GCJ \
19570 module_expsym_cmds_GCJ \
19571 lt_cv_prog_compiler_c_o_GCJ \
19572 exclude_expsyms_GCJ \
19573 include_expsyms_GCJ; do
19574
19575 case $var in
19576 old_archive_cmds_GCJ | \
19577 old_archive_from_new_cmds_GCJ | \
19578 archive_cmds_GCJ | \
19579 archive_expsym_cmds_GCJ | \
19580 module_cmds_GCJ | \
19581 module_expsym_cmds_GCJ | \
19582 old_archive_from_expsyms_cmds_GCJ | \
19583 export_symbols_cmds_GCJ | \
19584 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19585 postinstall_cmds | postuninstall_cmds | \
19586 old_postinstall_cmds | old_postuninstall_cmds | \
19587 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19588 # Double-quote double-evaled strings.
19589 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19590 ;;
19591 *)
19592 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19593 ;;
19594 esac
19595 done
19596
19597 case $lt_echo in
19598 *'\$0 --fallback-echo"')
19599 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19600 ;;
19601 esac
19602
19603cfgfile="$ofile"
19604
19605 cat <<__EOF__ >> "$cfgfile"
19606# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19607
19608# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19609
19610# Shell to use when invoking shell scripts.
19611SHELL=$lt_SHELL
19612
19613# Whether or not to build shared libraries.
19614build_libtool_libs=$enable_shared
19615
19616# Whether or not to build static libraries.
19617build_old_libs=$enable_static
19618
19619# Whether or not to add -lc for building shared libraries.
19620build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19621
19622# Whether or not to disallow shared libs when runtime libs are static
19623allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19624
19625# Whether or not to optimize for fast installation.
19626fast_install=$enable_fast_install
19627
19628# The host system.
19629host_alias=$host_alias
19630host=$host
19631host_os=$host_os
19632
19633# The build system.
19634build_alias=$build_alias
19635build=$build
19636build_os=$build_os
19637
19638# An echo program that does not interpret backslashes.
19639echo=$lt_echo
19640
19641# The archiver.
19642AR=$lt_AR
19643AR_FLAGS=$lt_AR_FLAGS
19644
19645# A C compiler.
19646LTCC=$lt_LTCC
19647
19648# LTCC compiler flags.
19649LTCFLAGS=$lt_LTCFLAGS
19650
19651# A language-specific compiler.
19652CC=$lt_compiler_GCJ
19653
19654# Is the compiler the GNU C compiler?
19655with_gcc=$GCC_GCJ
19656
d9898ee8 19657# An ERE matcher.
19658EGREP=$lt_EGREP
19659
19660# The linker used to build libraries.
19661LD=$lt_LD_GCJ
19662
19663# Whether we need hard or soft links.
19664LN_S=$lt_LN_S
19665
19666# A BSD-compatible nm program.
19667NM=$lt_NM
19668
19669# A symbol stripping program
19670STRIP=$lt_STRIP
19671
19672# Used to examine libraries when file_magic_cmd begins "file"
19673MAGIC_CMD=$MAGIC_CMD
19674
19675# Used on cygwin: DLL creation program.
19676DLLTOOL="$DLLTOOL"
19677
19678# Used on cygwin: object dumper.
19679OBJDUMP="$OBJDUMP"
19680
19681# Used on cygwin: assembler.
19682AS="$AS"
19683
19684# The name of the directory that contains temporary libtool files.
19685objdir=$objdir
19686
19687# How to create reloadable object files.
19688reload_flag=$lt_reload_flag
19689reload_cmds=$lt_reload_cmds
19690
19691# How to pass a linker flag through the compiler.
19692wl=$lt_lt_prog_compiler_wl_GCJ
19693
19694# Object file suffix (normally "o").
19695objext="$ac_objext"
19696
19697# Old archive suffix (normally "a").
19698libext="$libext"
19699
19700# Shared library suffix (normally ".so").
19701shrext_cmds='$shrext_cmds'
19702
19703# Executable file suffix (normally "").
19704exeext="$exeext"
19705
19706# Additional compiler flags for building library objects.
19707pic_flag=$lt_lt_prog_compiler_pic_GCJ
19708pic_mode=$pic_mode
19709
19710# What is the maximum length of a command?
19711max_cmd_len=$lt_cv_sys_max_cmd_len
19712
19713# Does compiler simultaneously support -c and -o options?
19714compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19715
19716# Must we lock files when doing compilation?
19717need_locks=$lt_need_locks
19718
19719# Do we need the lib prefix for modules?
19720need_lib_prefix=$need_lib_prefix
19721
19722# Do we need a version for libraries?
19723need_version=$need_version
19724
19725# Whether dlopen is supported.
19726dlopen_support=$enable_dlopen
19727
19728# Whether dlopen of programs is supported.
19729dlopen_self=$enable_dlopen_self
19730
19731# Whether dlopen of statically linked programs is supported.
19732dlopen_self_static=$enable_dlopen_self_static
19733
19734# Compiler flag to prevent dynamic linking.
19735link_static_flag=$lt_lt_prog_compiler_static_GCJ
19736
19737# Compiler flag to turn off builtin functions.
19738no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19739
19740# Compiler flag to allow reflexive dlopens.
19741export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19742
19743# Compiler flag to generate shared objects directly from archives.
19744whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19745
19746# Compiler flag to generate thread-safe objects.
19747thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19748
19749# Library versioning type.
19750version_type=$version_type
19751
19752# Format of library name prefix.
19753libname_spec=$lt_libname_spec
19754
19755# List of archive names. First name is the real one, the rest are links.
19756# The last name is the one that the linker finds with -lNAME.
19757library_names_spec=$lt_library_names_spec
19758
19759# The coded name of the library, if different from the real name.
19760soname_spec=$lt_soname_spec
19761
19762# Commands used to build and install an old-style archive.
19763RANLIB=$lt_RANLIB
19764old_archive_cmds=$lt_old_archive_cmds_GCJ
19765old_postinstall_cmds=$lt_old_postinstall_cmds
19766old_postuninstall_cmds=$lt_old_postuninstall_cmds
19767
19768# Create an old-style archive from a shared archive.
19769old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19770
19771# Create a temporary old-style archive to link instead of a shared archive.
19772old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19773
19774# Commands used to build and install a shared archive.
19775archive_cmds=$lt_archive_cmds_GCJ
19776archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19777postinstall_cmds=$lt_postinstall_cmds
19778postuninstall_cmds=$lt_postuninstall_cmds
19779
19780# Commands used to build a loadable module (assumed same as above if empty)
19781module_cmds=$lt_module_cmds_GCJ
19782module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19783
19784# Commands to strip libraries.
19785old_striplib=$lt_old_striplib
19786striplib=$lt_striplib
19787
19788# Dependencies to place before the objects being linked to create a
19789# shared library.
64ff59ba 19790predep_objects=$lt_predep_objects_GCJ
d9898ee8 19791
19792# Dependencies to place after the objects being linked to create a
19793# shared library.
64ff59ba 19794postdep_objects=$lt_postdep_objects_GCJ
d9898ee8 19795
19796# Dependencies to place before the objects being linked to create a
19797# shared library.
19798predeps=$lt_predeps_GCJ
19799
19800# Dependencies to place after the objects being linked to create a
19801# shared library.
19802postdeps=$lt_postdeps_GCJ
19803
19804# The library search path used internally by the compiler when linking
19805# a shared library.
64ff59ba 19806compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
d9898ee8 19807
19808# Method to check whether dependent libraries are shared objects.
19809deplibs_check_method=$lt_deplibs_check_method
19810
19811# Command to use when deplibs_check_method == file_magic.
19812file_magic_cmd=$lt_file_magic_cmd
19813
19814# Flag that allows shared libraries with undefined symbols to be built.
19815allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19816
19817# Flag that forces no undefined symbols.
19818no_undefined_flag=$lt_no_undefined_flag_GCJ
19819
19820# Commands used to finish a libtool library installation in a directory.
19821finish_cmds=$lt_finish_cmds
19822
19823# Same as above, but a single script fragment to be evaled but not shown.
19824finish_eval=$lt_finish_eval
19825
19826# Take the output of nm and produce a listing of raw symbols and C names.
19827global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19828
19829# Transform the output of nm in a proper C declaration
19830global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19831
19832# Transform the output of nm in a C name address pair
19833global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19834
19835# This is the shared library runtime path variable.
19836runpath_var=$runpath_var
19837
19838# This is the shared library path variable.
19839shlibpath_var=$shlibpath_var
19840
19841# Is shlibpath searched before the hard-coded library search path?
19842shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19843
19844# How to hardcode a shared library path into an executable.
19845hardcode_action=$hardcode_action_GCJ
19846
19847# Whether we should hardcode library paths into libraries.
19848hardcode_into_libs=$hardcode_into_libs
19849
19850# Flag to hardcode \$libdir into a binary during linking.
19851# This must work even if \$libdir does not exist.
19852hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19853
19854# If ld is used when linking, flag to hardcode \$libdir into
19855# a binary during linking. This must work even if \$libdir does
19856# not exist.
19857hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19858
19859# Whether we need a single -rpath flag with a separated argument.
19860hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19861
19862# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19863# resulting binary.
19864hardcode_direct=$hardcode_direct_GCJ
19865
19866# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19867# resulting binary.
19868hardcode_minus_L=$hardcode_minus_L_GCJ
19869
19870# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19871# the resulting binary.
19872hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19873
19874# Set to yes if building a shared library automatically hardcodes DIR into the library
19875# and all subsequent libraries and executables linked against it.
19876hardcode_automatic=$hardcode_automatic_GCJ
19877
19878# Variables whose values should be saved in libtool wrapper scripts and
19879# restored at relink time.
19880variables_saved_for_relink="$variables_saved_for_relink"
19881
19882# Whether libtool must link a program against all its dependency libraries.
19883link_all_deplibs=$link_all_deplibs_GCJ
19884
19885# Compile-time system search path for libraries
64ff59ba 19886sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 19887
19888# Run-time system search path for libraries
19889sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19890
19891# Fix the shell variable \$srcfile for the compiler.
19892fix_srcfile_path="$fix_srcfile_path_GCJ"
19893
19894# Set to yes if exported symbols are required.
19895always_export_symbols=$always_export_symbols_GCJ
19896
19897# The commands to list exported symbols.
19898export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19899
19900# The commands to extract the exported symbol list from a shared archive.
19901extract_expsyms_cmds=$lt_extract_expsyms_cmds
19902
19903# Symbols that should not be listed in the preloaded symbols.
19904exclude_expsyms=$lt_exclude_expsyms_GCJ
19905
19906# Symbols that must always be exported.
19907include_expsyms=$lt_include_expsyms_GCJ
19908
19909# ### END LIBTOOL TAG CONFIG: $tagname
19910
19911__EOF__
19912
19913
19914else
19915 # If there is no Makefile yet, we rely on a make rule to execute
19916 # `config.status --recheck' to rerun these tests and create the
19917 # libtool script then.
19918 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19919 if test -f "$ltmain_in"; then
19920 test -f Makefile && make "$ltmain"
19921 fi
19922fi
19923
19924
19925ac_ext=c
19926ac_cpp='$CPP $CPPFLAGS'
19927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19929ac_compiler_gnu=$ac_cv_c_compiler_gnu
19930
19931CC="$lt_save_CC"
19932
19933 else
19934 tagname=""
19935 fi
19936 ;;
19937
19938 RC)
19939
19940
d9898ee8 19941# Source file extension for RC test sources.
19942ac_ext=rc
19943
19944# Object file extension for compiled RC test sources.
19945objext=o
19946objext_RC=$objext
19947
19948# Code to be used in simple compile tests
19949lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19950
19951# Code to be used in simple link tests
19952lt_simple_link_test_code="$lt_simple_compile_test_code"
19953
19954# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19955
19956# If no C compiler was specified, use CC.
19957LTCC=${LTCC-"$CC"}
19958
19959# If no C compiler flags were specified, use CFLAGS.
19960LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19961
19962# Allow CC to be a program name with arguments.
19963compiler=$CC
19964
19965
19966# save warnings/boilerplate of simple test code
19967ac_outfile=conftest.$ac_objext
19968printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19969eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19970_lt_compiler_boilerplate=`cat conftest.err`
19971$rm conftest*
19972
19973ac_outfile=conftest.$ac_objext
19974printf "$lt_simple_link_test_code" >conftest.$ac_ext
19975eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19976_lt_linker_boilerplate=`cat conftest.err`
19977$rm conftest*
19978
19979
19980# Allow CC to be a program name with arguments.
19981lt_save_CC="$CC"
19982CC=${RC-"windres"}
19983compiler=$CC
19984compiler_RC=$CC
19985for cc_temp in $compiler""; do
19986 case $cc_temp in
19987 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19988 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19989 \-*) ;;
19990 *) break;;
19991 esac
19992done
19993cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19994
19995lt_cv_prog_compiler_c_o_RC=yes
19996
19997# The else clause should only fire when bootstrapping the
19998# libtool distribution, otherwise you forgot to ship ltmain.sh
19999# with your package, and you will get complaints that there are
20000# no rules to generate ltmain.sh.
20001if test -f "$ltmain"; then
20002 # See if we are running on zsh, and set the options which allow our commands through
20003 # without removal of \ escapes.
20004 if test -n "${ZSH_VERSION+set}" ; then
20005 setopt NO_GLOB_SUBST
20006 fi
20007 # Now quote all the things that may contain metacharacters while being
20008 # careful not to overquote the AC_SUBSTed values. We take copies of the
20009 # variables and quote the copies for generation of the libtool script.
20010 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20011 SED SHELL STRIP \
20012 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20013 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20014 deplibs_check_method reload_flag reload_cmds need_locks \
20015 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20016 lt_cv_sys_global_symbol_to_c_name_address \
20017 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20018 old_postinstall_cmds old_postuninstall_cmds \
20019 compiler_RC \
20020 CC_RC \
20021 LD_RC \
20022 lt_prog_compiler_wl_RC \
20023 lt_prog_compiler_pic_RC \
20024 lt_prog_compiler_static_RC \
20025 lt_prog_compiler_no_builtin_flag_RC \
20026 export_dynamic_flag_spec_RC \
20027 thread_safe_flag_spec_RC \
20028 whole_archive_flag_spec_RC \
20029 enable_shared_with_static_runtimes_RC \
20030 old_archive_cmds_RC \
20031 old_archive_from_new_cmds_RC \
20032 predep_objects_RC \
20033 postdep_objects_RC \
20034 predeps_RC \
20035 postdeps_RC \
20036 compiler_lib_search_path_RC \
20037 archive_cmds_RC \
20038 archive_expsym_cmds_RC \
20039 postinstall_cmds_RC \
20040 postuninstall_cmds_RC \
20041 old_archive_from_expsyms_cmds_RC \
20042 allow_undefined_flag_RC \
20043 no_undefined_flag_RC \
20044 export_symbols_cmds_RC \
20045 hardcode_libdir_flag_spec_RC \
20046 hardcode_libdir_flag_spec_ld_RC \
20047 hardcode_libdir_separator_RC \
20048 hardcode_automatic_RC \
20049 module_cmds_RC \
20050 module_expsym_cmds_RC \
20051 lt_cv_prog_compiler_c_o_RC \
20052 exclude_expsyms_RC \
20053 include_expsyms_RC; do
20054
20055 case $var in
20056 old_archive_cmds_RC | \
20057 old_archive_from_new_cmds_RC | \
20058 archive_cmds_RC | \
20059 archive_expsym_cmds_RC | \
20060 module_cmds_RC | \
20061 module_expsym_cmds_RC | \
20062 old_archive_from_expsyms_cmds_RC | \
20063 export_symbols_cmds_RC | \
20064 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20065 postinstall_cmds | postuninstall_cmds | \
20066 old_postinstall_cmds | old_postuninstall_cmds | \
20067 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20068 # Double-quote double-evaled strings.
20069 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20070 ;;
20071 *)
20072 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20073 ;;
20074 esac
20075 done
20076
20077 case $lt_echo in
20078 *'\$0 --fallback-echo"')
20079 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20080 ;;
20081 esac
20082
20083cfgfile="$ofile"
20084
20085 cat <<__EOF__ >> "$cfgfile"
20086# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20087
20088# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20089
20090# Shell to use when invoking shell scripts.
20091SHELL=$lt_SHELL
20092
20093# Whether or not to build shared libraries.
20094build_libtool_libs=$enable_shared
20095
20096# Whether or not to build static libraries.
20097build_old_libs=$enable_static
20098
20099# Whether or not to add -lc for building shared libraries.
20100build_libtool_need_lc=$archive_cmds_need_lc_RC
20101
20102# Whether or not to disallow shared libs when runtime libs are static
20103allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20104
20105# Whether or not to optimize for fast installation.
20106fast_install=$enable_fast_install
20107
20108# The host system.
20109host_alias=$host_alias
20110host=$host
20111host_os=$host_os
20112
20113# The build system.
20114build_alias=$build_alias
20115build=$build
20116build_os=$build_os
20117
20118# An echo program that does not interpret backslashes.
20119echo=$lt_echo
20120
20121# The archiver.
20122AR=$lt_AR
20123AR_FLAGS=$lt_AR_FLAGS
20124
20125# A C compiler.
20126LTCC=$lt_LTCC
20127
20128# LTCC compiler flags.
20129LTCFLAGS=$lt_LTCFLAGS
20130
20131# A language-specific compiler.
20132CC=$lt_compiler_RC
20133
20134# Is the compiler the GNU C compiler?
20135with_gcc=$GCC_RC
20136
d9898ee8 20137# An ERE matcher.
20138EGREP=$lt_EGREP
20139
20140# The linker used to build libraries.
20141LD=$lt_LD_RC
20142
20143# Whether we need hard or soft links.
20144LN_S=$lt_LN_S
20145
20146# A BSD-compatible nm program.
20147NM=$lt_NM
20148
20149# A symbol stripping program
20150STRIP=$lt_STRIP
20151
20152# Used to examine libraries when file_magic_cmd begins "file"
20153MAGIC_CMD=$MAGIC_CMD
20154
20155# Used on cygwin: DLL creation program.
20156DLLTOOL="$DLLTOOL"
20157
20158# Used on cygwin: object dumper.
20159OBJDUMP="$OBJDUMP"
20160
20161# Used on cygwin: assembler.
20162AS="$AS"
20163
20164# The name of the directory that contains temporary libtool files.
20165objdir=$objdir
20166
20167# How to create reloadable object files.
20168reload_flag=$lt_reload_flag
20169reload_cmds=$lt_reload_cmds
20170
20171# How to pass a linker flag through the compiler.
20172wl=$lt_lt_prog_compiler_wl_RC
20173
20174# Object file suffix (normally "o").
20175objext="$ac_objext"
20176
20177# Old archive suffix (normally "a").
20178libext="$libext"
20179
20180# Shared library suffix (normally ".so").
20181shrext_cmds='$shrext_cmds'
20182
20183# Executable file suffix (normally "").
20184exeext="$exeext"
20185
20186# Additional compiler flags for building library objects.
20187pic_flag=$lt_lt_prog_compiler_pic_RC
20188pic_mode=$pic_mode
20189
20190# What is the maximum length of a command?
20191max_cmd_len=$lt_cv_sys_max_cmd_len
20192
20193# Does compiler simultaneously support -c and -o options?
20194compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20195
20196# Must we lock files when doing compilation?
20197need_locks=$lt_need_locks
20198
20199# Do we need the lib prefix for modules?
20200need_lib_prefix=$need_lib_prefix
20201
20202# Do we need a version for libraries?
20203need_version=$need_version
20204
20205# Whether dlopen is supported.
20206dlopen_support=$enable_dlopen
20207
20208# Whether dlopen of programs is supported.
20209dlopen_self=$enable_dlopen_self
20210
20211# Whether dlopen of statically linked programs is supported.
20212dlopen_self_static=$enable_dlopen_self_static
20213
20214# Compiler flag to prevent dynamic linking.
20215link_static_flag=$lt_lt_prog_compiler_static_RC
20216
20217# Compiler flag to turn off builtin functions.
20218no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20219
20220# Compiler flag to allow reflexive dlopens.
20221export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20222
20223# Compiler flag to generate shared objects directly from archives.
20224whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20225
20226# Compiler flag to generate thread-safe objects.
20227thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20228
20229# Library versioning type.
20230version_type=$version_type
20231
20232# Format of library name prefix.
20233libname_spec=$lt_libname_spec
20234
20235# List of archive names. First name is the real one, the rest are links.
20236# The last name is the one that the linker finds with -lNAME.
20237library_names_spec=$lt_library_names_spec
20238
20239# The coded name of the library, if different from the real name.
20240soname_spec=$lt_soname_spec
20241
20242# Commands used to build and install an old-style archive.
20243RANLIB=$lt_RANLIB
20244old_archive_cmds=$lt_old_archive_cmds_RC
20245old_postinstall_cmds=$lt_old_postinstall_cmds
20246old_postuninstall_cmds=$lt_old_postuninstall_cmds
20247
20248# Create an old-style archive from a shared archive.
20249old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20250
20251# Create a temporary old-style archive to link instead of a shared archive.
20252old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20253
20254# Commands used to build and install a shared archive.
20255archive_cmds=$lt_archive_cmds_RC
20256archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20257postinstall_cmds=$lt_postinstall_cmds
20258postuninstall_cmds=$lt_postuninstall_cmds
20259
20260# Commands used to build a loadable module (assumed same as above if empty)
20261module_cmds=$lt_module_cmds_RC
20262module_expsym_cmds=$lt_module_expsym_cmds_RC
20263
20264# Commands to strip libraries.
20265old_striplib=$lt_old_striplib
20266striplib=$lt_striplib
20267
20268# Dependencies to place before the objects being linked to create a
20269# shared library.
64ff59ba 20270predep_objects=$lt_predep_objects_RC
d9898ee8 20271
20272# Dependencies to place after the objects being linked to create a
20273# shared library.
64ff59ba 20274postdep_objects=$lt_postdep_objects_RC
d9898ee8 20275
20276# Dependencies to place before the objects being linked to create a
20277# shared library.
20278predeps=$lt_predeps_RC
20279
20280# Dependencies to place after the objects being linked to create a
20281# shared library.
20282postdeps=$lt_postdeps_RC
20283
20284# The library search path used internally by the compiler when linking
20285# a shared library.
64ff59ba 20286compiler_lib_search_path=$lt_compiler_lib_search_path_RC
d9898ee8 20287
20288# Method to check whether dependent libraries are shared objects.
20289deplibs_check_method=$lt_deplibs_check_method
20290
20291# Command to use when deplibs_check_method == file_magic.
20292file_magic_cmd=$lt_file_magic_cmd
20293
20294# Flag that allows shared libraries with undefined symbols to be built.
20295allow_undefined_flag=$lt_allow_undefined_flag_RC
20296
20297# Flag that forces no undefined symbols.
20298no_undefined_flag=$lt_no_undefined_flag_RC
20299
20300# Commands used to finish a libtool library installation in a directory.
20301finish_cmds=$lt_finish_cmds
20302
20303# Same as above, but a single script fragment to be evaled but not shown.
20304finish_eval=$lt_finish_eval
20305
20306# Take the output of nm and produce a listing of raw symbols and C names.
20307global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20308
20309# Transform the output of nm in a proper C declaration
20310global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20311
20312# Transform the output of nm in a C name address pair
20313global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20314
20315# This is the shared library runtime path variable.
20316runpath_var=$runpath_var
20317
20318# This is the shared library path variable.
20319shlibpath_var=$shlibpath_var
20320
20321# Is shlibpath searched before the hard-coded library search path?
20322shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20323
20324# How to hardcode a shared library path into an executable.
20325hardcode_action=$hardcode_action_RC
20326
20327# Whether we should hardcode library paths into libraries.
20328hardcode_into_libs=$hardcode_into_libs
20329
20330# Flag to hardcode \$libdir into a binary during linking.
20331# This must work even if \$libdir does not exist.
20332hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20333
20334# If ld is used when linking, flag to hardcode \$libdir into
20335# a binary during linking. This must work even if \$libdir does
20336# not exist.
20337hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20338
20339# Whether we need a single -rpath flag with a separated argument.
20340hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20341
20342# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20343# resulting binary.
20344hardcode_direct=$hardcode_direct_RC
20345
20346# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20347# resulting binary.
20348hardcode_minus_L=$hardcode_minus_L_RC
20349
20350# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20351# the resulting binary.
20352hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20353
20354# Set to yes if building a shared library automatically hardcodes DIR into the library
20355# and all subsequent libraries and executables linked against it.
20356hardcode_automatic=$hardcode_automatic_RC
20357
20358# Variables whose values should be saved in libtool wrapper scripts and
20359# restored at relink time.
20360variables_saved_for_relink="$variables_saved_for_relink"
20361
20362# Whether libtool must link a program against all its dependency libraries.
20363link_all_deplibs=$link_all_deplibs_RC
20364
20365# Compile-time system search path for libraries
64ff59ba 20366sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 20367
20368# Run-time system search path for libraries
20369sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20370
20371# Fix the shell variable \$srcfile for the compiler.
20372fix_srcfile_path="$fix_srcfile_path_RC"
20373
20374# Set to yes if exported symbols are required.
20375always_export_symbols=$always_export_symbols_RC
20376
20377# The commands to list exported symbols.
20378export_symbols_cmds=$lt_export_symbols_cmds_RC
20379
20380# The commands to extract the exported symbol list from a shared archive.
20381extract_expsyms_cmds=$lt_extract_expsyms_cmds
20382
20383# Symbols that should not be listed in the preloaded symbols.
20384exclude_expsyms=$lt_exclude_expsyms_RC
20385
20386# Symbols that must always be exported.
20387include_expsyms=$lt_include_expsyms_RC
20388
20389# ### END LIBTOOL TAG CONFIG: $tagname
20390
20391__EOF__
20392
20393
20394else
20395 # If there is no Makefile yet, we rely on a make rule to execute
20396 # `config.status --recheck' to rerun these tests and create the
20397 # libtool script then.
20398 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20399 if test -f "$ltmain_in"; then
20400 test -f Makefile && make "$ltmain"
20401 fi
20402fi
20403
20404
20405ac_ext=c
20406ac_cpp='$CPP $CPPFLAGS'
20407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20409ac_compiler_gnu=$ac_cv_c_compiler_gnu
20410
20411CC="$lt_save_CC"
20412
20413 ;;
20414
20415 *)
20416 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20417echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20418 { (exit 1); exit 1; }; }
20419 ;;
20420 esac
20421
20422 # Append the new tag name to the list of available tags.
20423 if test -n "$tagname" ; then
20424 available_tags="$available_tags $tagname"
20425 fi
20426 fi
20427 done
20428 IFS="$lt_save_ifs"
20429
20430 # Now substitute the updated list of available tags.
20431 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20432 mv "${ofile}T" "$ofile"
20433 chmod +x "$ofile"
20434 else
20435 rm -f "${ofile}T"
20436 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20437echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20438 { (exit 1); exit 1; }; }
20439 fi
20440fi
20441
20442
20443
20444# This can be used to rebuild libtool when needed
20445LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20446
20447# Always use our own libtool.
20448LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20449
20450# Prevent multiple expansion
20451
20452
20453
20454
20455
20456
20457
20458
20459
20460
20461
20462
20463
20464
20465
20466
20467
20468
20469
20470
20471
20472if test "$PS" = "ps"
20473then
20474 { { echo "$as_me:$LINENO: error: Cannot find pathname to ps" >&5
20475echo "$as_me: error: Cannot find pathname to ps" >&2;}
20476 { (exit 1); exit 1; }; }
20477fi
20478
20479if test x$GXX = xyes
20480then
20481 CFLAGS="-Wall $CFLAGS"
20482fi
20483
20484CFLAGS="-I.. -I$srcdir/.. $CFLAGS"
20485
20486
64ff59ba 20487{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20488echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
d9898ee8 20489if test "${ac_cv_header_sys_wait_h+set}" = set; then
20490 echo $ECHO_N "(cached) $ECHO_C" >&6
20491else
20492 cat >conftest.$ac_ext <<_ACEOF
20493/* confdefs.h. */
20494_ACEOF
20495cat confdefs.h >>conftest.$ac_ext
20496cat >>conftest.$ac_ext <<_ACEOF
20497/* end confdefs.h. */
20498#include <sys/types.h>
20499#include <sys/wait.h>
20500#ifndef WEXITSTATUS
64ff59ba 20501# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
d9898ee8 20502#endif
20503#ifndef WIFEXITED
20504# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20505#endif
20506
20507int
20508main ()
20509{
20510 int s;
20511 wait (&s);
20512 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20513 ;
20514 return 0;
20515}
20516_ACEOF
20517rm -f conftest.$ac_objext
64ff59ba 20518if { (ac_try="$ac_compile"
20519case "(($ac_try" in
20520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20521 *) ac_try_echo=$ac_try;;
20522esac
20523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20524 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20525 ac_status=$?
20526 grep -v '^ *+' conftest.er1 >conftest.err
20527 rm -f conftest.er1
20528 cat conftest.err >&5
20529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20530 (exit $ac_status); } && {
20531 test -z "$ac_c_werror_flag" ||
20532 test ! -s conftest.err
20533 } && test -s conftest.$ac_objext; then
d9898ee8 20534 ac_cv_header_sys_wait_h=yes
20535else
20536 echo "$as_me: failed program was:" >&5
20537sed 's/^/| /' conftest.$ac_ext >&5
20538
64ff59ba 20539 ac_cv_header_sys_wait_h=no
d9898ee8 20540fi
64ff59ba 20541
20542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20543fi
64ff59ba 20544{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20545echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
d9898ee8 20546if test $ac_cv_header_sys_wait_h = yes; then
20547
20548cat >>confdefs.h <<\_ACEOF
20549#define HAVE_SYS_WAIT_H 1
20550_ACEOF
20551
20552fi
20553
20554
20555
20556for ac_header in unistd.h fcntl.h
20557do
20558as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 20559if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20560 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20561echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20562if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 20563 echo $ECHO_N "(cached) $ECHO_C" >&6
20564fi
64ff59ba 20565ac_res=`eval echo '${'$as_ac_Header'}'`
20566 { echo "$as_me:$LINENO: result: $ac_res" >&5
20567echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 20568else
20569 # Is the header compilable?
64ff59ba 20570{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20571echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 20572cat >conftest.$ac_ext <<_ACEOF
20573/* confdefs.h. */
20574_ACEOF
20575cat confdefs.h >>conftest.$ac_ext
20576cat >>conftest.$ac_ext <<_ACEOF
20577/* end confdefs.h. */
20578$ac_includes_default
20579#include <$ac_header>
20580_ACEOF
20581rm -f conftest.$ac_objext
64ff59ba 20582if { (ac_try="$ac_compile"
20583case "(($ac_try" in
20584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20585 *) ac_try_echo=$ac_try;;
20586esac
20587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20588 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20589 ac_status=$?
20590 grep -v '^ *+' conftest.er1 >conftest.err
20591 rm -f conftest.er1
20592 cat conftest.err >&5
20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20594 (exit $ac_status); } && {
20595 test -z "$ac_c_werror_flag" ||
20596 test ! -s conftest.err
20597 } && test -s conftest.$ac_objext; then
d9898ee8 20598 ac_header_compiler=yes
20599else
20600 echo "$as_me: failed program was:" >&5
20601sed 's/^/| /' conftest.$ac_ext >&5
20602
64ff59ba 20603 ac_header_compiler=no
d9898ee8 20604fi
64ff59ba 20605
20606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20607{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20608echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 20609
20610# Is the header present?
64ff59ba 20611{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20612echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 20613cat >conftest.$ac_ext <<_ACEOF
20614/* confdefs.h. */
20615_ACEOF
20616cat confdefs.h >>conftest.$ac_ext
20617cat >>conftest.$ac_ext <<_ACEOF
20618/* end confdefs.h. */
20619#include <$ac_header>
20620_ACEOF
64ff59ba 20621if { (ac_try="$ac_cpp conftest.$ac_ext"
20622case "(($ac_try" in
20623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20624 *) ac_try_echo=$ac_try;;
20625esac
20626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 20628 ac_status=$?
20629 grep -v '^ *+' conftest.er1 >conftest.err
20630 rm -f conftest.er1
20631 cat conftest.err >&5
20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20633 (exit $ac_status); } >/dev/null && {
20634 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20635 test ! -s conftest.err
20636 }; then
d9898ee8 20637 ac_header_preproc=yes
20638else
20639 echo "$as_me: failed program was:" >&5
20640sed 's/^/| /' conftest.$ac_ext >&5
20641
20642 ac_header_preproc=no
20643fi
64ff59ba 20644
d9898ee8 20645rm -f conftest.err conftest.$ac_ext
64ff59ba 20646{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20647echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 20648
20649# So? What about this header?
20650case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20651 yes:no: )
20652 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20653echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20655echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20656 ac_header_preproc=yes
20657 ;;
20658 no:yes:* )
20659 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20660echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20661 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20662echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20663 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20664echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20665 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20666echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20668echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20669 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20670echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64ff59ba 20671 ( cat <<\_ASBOX
d9898ee8 20672## -------------------------------------------------- ##
20673## Report this to courier-users@lists.sourceforge.net ##
20674## -------------------------------------------------- ##
20675_ASBOX
64ff59ba 20676 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 20677 ;;
20678esac
64ff59ba 20679{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20680echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20681if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 20682 echo $ECHO_N "(cached) $ECHO_C" >&6
20683else
20684 eval "$as_ac_Header=\$ac_header_preproc"
20685fi
64ff59ba 20686ac_res=`eval echo '${'$as_ac_Header'}'`
20687 { echo "$as_me:$LINENO: result: $ac_res" >&5
20688echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 20689
20690fi
20691if test `eval echo '${'$as_ac_Header'}'` = yes; then
20692 cat >>confdefs.h <<_ACEOF
20693#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20694_ACEOF
20695
20696fi
20697
20698done
20699
20700
64ff59ba 20701{ echo "$as_me:$LINENO: checking for pid_t" >&5
20702echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
d9898ee8 20703if test "${ac_cv_type_pid_t+set}" = set; then
20704 echo $ECHO_N "(cached) $ECHO_C" >&6
20705else
20706 cat >conftest.$ac_ext <<_ACEOF
20707/* confdefs.h. */
20708_ACEOF
20709cat confdefs.h >>conftest.$ac_ext
20710cat >>conftest.$ac_ext <<_ACEOF
20711/* end confdefs.h. */
20712$ac_includes_default
64ff59ba 20713typedef pid_t ac__type_new_;
d9898ee8 20714int
20715main ()
20716{
64ff59ba 20717if ((ac__type_new_ *) 0)
d9898ee8 20718 return 0;
64ff59ba 20719if (sizeof (ac__type_new_))
d9898ee8 20720 return 0;
20721 ;
20722 return 0;
20723}
20724_ACEOF
20725rm -f conftest.$ac_objext
64ff59ba 20726if { (ac_try="$ac_compile"
20727case "(($ac_try" in
20728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20729 *) ac_try_echo=$ac_try;;
20730esac
20731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20732 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20733 ac_status=$?
20734 grep -v '^ *+' conftest.er1 >conftest.err
20735 rm -f conftest.er1
20736 cat conftest.err >&5
20737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20738 (exit $ac_status); } && {
20739 test -z "$ac_c_werror_flag" ||
20740 test ! -s conftest.err
20741 } && test -s conftest.$ac_objext; then
d9898ee8 20742 ac_cv_type_pid_t=yes
20743else
20744 echo "$as_me: failed program was:" >&5
20745sed 's/^/| /' conftest.$ac_ext >&5
20746
64ff59ba 20747 ac_cv_type_pid_t=no
d9898ee8 20748fi
64ff59ba 20749
20750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20751fi
64ff59ba 20752{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20753echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
d9898ee8 20754if test $ac_cv_type_pid_t = yes; then
20755 :
20756else
20757
20758cat >>confdefs.h <<_ACEOF
20759#define pid_t int
20760_ACEOF
20761
20762fi
20763
20764
20765
64ff59ba 20766# Check whether --with-random was given.
d9898ee8 20767if test "${with_random+set}" = set; then
64ff59ba 20768 withval=$with_random; random="$withval"
d9898ee8 20769else
20770 random="y"
64ff59ba 20771fi
20772
d9898ee8 20773
20774case "$random" in
20775/*)
20776 ;;
20777y*|1*)
64ff59ba 20778 { echo "$as_me:$LINENO: checking for random source" >&5
20779echo $ECHO_N "checking for random source... $ECHO_C" >&6; }
d9898ee8 20780if test "${random_cv_RANDOM+set}" = set; then
20781 echo $ECHO_N "(cached) $ECHO_C" >&6
20782else
20783 if test -c /dev/urandom
20784 then
20785 random_cv_RANDOM=/dev/urandom
20786 else
20787 if test -c /dev/random
20788 then
20789 random_cv_RANDOM=/dev/random
20790 else
20791 random_cv_RANDOM="none"
20792 fi
20793 fi
20794
20795fi
64ff59ba 20796{ echo "$as_me:$LINENO: result: $random_cv_RANDOM" >&5
20797echo "${ECHO_T}$random_cv_RANDOM" >&6; }
d9898ee8 20798 random="$random_cv_RANDOM"
20799 ;;
20800*)
20801 random="none"
20802 ;;
20803esac
20804
20805if test "$random" != "none"
20806then
20807
20808cat >>confdefs.h <<_ACEOF
20809#define RANDOM "$random"
20810_ACEOF
20811
20812fi
20813
64ff59ba 20814{ echo "$as_me:$LINENO: checking for some good options for ps" >&5
20815echo $ECHO_N "checking for some good options for ps... $ECHO_C" >&6; }
d9898ee8 20816if test "${random_cv_PS_OPTIONS+set}" = set; then
20817 echo $ECHO_N "(cached) $ECHO_C" >&6
20818else
20819 for opts in -Afl -Afw -Af -Al -afl -afw -af -al Afl Afw Af Al afl afw af al
20820 do
20821 ps $opts >/dev/null 2>/dev/null || continue
20822 break
20823 done
20824 random_cv_PS_OPTIONS="$opts"
20825
20826fi
64ff59ba 20827{ echo "$as_me:$LINENO: result: $random_cv_PS_OPTIONS" >&5
20828echo "${ECHO_T}$random_cv_PS_OPTIONS" >&6; }
d9898ee8 20829
20830
20831cat >>confdefs.h <<_ACEOF
20832#define PS_OPTIONS "$random_cv_PS_OPTIONS"
20833_ACEOF
20834
20835
20836cat >>confdefs.h <<_ACEOF
20837#define PS "$PS"
20838_ACEOF
20839
20840
20841if test "$W" != "w"
20842then
20843
20844cat >>confdefs.h <<_ACEOF
20845#define W "$w"
20846_ACEOF
20847
20848fi
20849
64ff59ba 20850ac_config_files="$ac_config_files Makefile"
20851
d9898ee8 20852cat >confcache <<\_ACEOF
20853# This file is a shell script that caches the results of configure
20854# tests run on this system so they can be shared between configure
20855# scripts and configure runs, see configure's option --config-cache.
20856# It is not useful on other systems. If it contains results you don't
20857# want to keep, you may remove or edit it.
20858#
20859# config.status only pays attention to the cache file if you give it
20860# the --recheck option to rerun configure.
20861#
20862# `ac_cv_env_foo' variables (set or unset) will be overridden when
20863# loading this file, other *unset* `ac_cv_foo' will be assigned the
20864# following values.
20865
20866_ACEOF
20867
20868# The following way of writing the cache mishandles newlines in values,
20869# but we know of no workaround that is simple, portable, and efficient.
64ff59ba 20870# So, we kill variables containing newlines.
d9898ee8 20871# Ultrix sh set writes to stderr and can't be redirected directly,
20872# and sets the high bit in the cache file unless we assign to the vars.
64ff59ba 20873(
20874 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20875 eval ac_val=\$$ac_var
20876 case $ac_val in #(
20877 *${as_nl}*)
20878 case $ac_var in #(
20879 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20880echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20881 esac
20882 case $ac_var in #(
20883 _ | IFS | as_nl) ;; #(
20884 *) $as_unset $ac_var ;;
20885 esac ;;
20886 esac
20887 done
20888
d9898ee8 20889 (set) 2>&1 |
64ff59ba 20890 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20891 *${as_nl}ac_space=\ *)
d9898ee8 20892 # `set' does not quote correctly, so add quotes (double-quote
20893 # substitution turns \\\\ into \\, and sed turns \\ into \).
20894 sed -n \
20895 "s/'/'\\\\''/g;
20896 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
64ff59ba 20897 ;; #(
d9898ee8 20898 *)
20899 # `set' quotes correctly as required by POSIX, so do not add quotes.
64ff59ba 20900 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 20901 ;;
64ff59ba 20902 esac |
20903 sort
20904) |
d9898ee8 20905 sed '
64ff59ba 20906 /^ac_cv_env_/b end
d9898ee8 20907 t clear
64ff59ba 20908 :clear
d9898ee8 20909 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20910 t end
64ff59ba 20911 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20912 :end' >>confcache
20913if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20914 if test -w "$cache_file"; then
20915 test "x$cache_file" != "x/dev/null" &&
20916 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20917echo "$as_me: updating cache $cache_file" >&6;}
d9898ee8 20918 cat confcache >$cache_file
20919 else
64ff59ba 20920 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20921echo "$as_me: not updating unwritable cache $cache_file" >&6;}
d9898ee8 20922 fi
20923fi
20924rm -f confcache
20925
20926test "x$prefix" = xNONE && prefix=$ac_default_prefix
20927# Let make expand exec_prefix.
20928test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20929
d9898ee8 20930DEFS=-DHAVE_CONFIG_H
20931
20932ac_libobjs=
20933ac_ltlibobjs=
20934for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20935 # 1. Remove the extension, and $U if already installed.
64ff59ba 20936 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20937 ac_i=`echo "$ac_i" | sed "$ac_script"`
20938 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20939 # will be set to the directory where LIBOBJS objects are built.
20940 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20941 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
d9898ee8 20942done
20943LIBOBJS=$ac_libobjs
20944
20945LTLIBOBJS=$ac_ltlibobjs
20946
20947
20948if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20949 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20950Usually this means the macro was only invoked conditionally." >&5
20951echo "$as_me: error: conditional \"AMDEP\" was never defined.
20952Usually this means the macro was only invoked conditionally." >&2;}
20953 { (exit 1); exit 1; }; }
20954fi
20955if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20956 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20957Usually this means the macro was only invoked conditionally." >&5
20958echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20959Usually this means the macro was only invoked conditionally." >&2;}
20960 { (exit 1); exit 1; }; }
20961fi
20962if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20963 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20964Usually this means the macro was only invoked conditionally." >&5
20965echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20966Usually this means the macro was only invoked conditionally." >&2;}
20967 { (exit 1); exit 1; }; }
20968fi
20969if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20970 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20971Usually this means the macro was only invoked conditionally." >&5
20972echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20973Usually this means the macro was only invoked conditionally." >&2;}
20974 { (exit 1); exit 1; }; }
20975fi
20976
20977: ${CONFIG_STATUS=./config.status}
20978ac_clean_files_save=$ac_clean_files
20979ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20980{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20981echo "$as_me: creating $CONFIG_STATUS" >&6;}
20982cat >$CONFIG_STATUS <<_ACEOF
20983#! $SHELL
20984# Generated by $as_me.
20985# Run this file to recreate the current configuration.
20986# Compiler output produced by configure, useful for debugging
20987# configure, is in config.log if it exists.
20988
20989debug=false
20990ac_cs_recheck=false
20991ac_cs_silent=false
20992SHELL=\${CONFIG_SHELL-$SHELL}
20993_ACEOF
20994
20995cat >>$CONFIG_STATUS <<\_ACEOF
20996## --------------------- ##
20997## M4sh Initialization. ##
20998## --------------------- ##
20999
64ff59ba 21000# Be more Bourne compatible
21001DUALCASE=1; export DUALCASE # for MKS sh
d9898ee8 21002if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21003 emulate sh
21004 NULLCMD=:
21005 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21006 # is contrary to our usage. Disable this feature.
21007 alias -g '${1+"$@"}'='"$@"'
64ff59ba 21008 setopt NO_GLOB_SUBST
21009else
21010 case `(set -o) 2>/dev/null` in
21011 *posix*) set -o posix ;;
21012esac
21013
21014fi
21015
21016
21017
21018
21019# PATH needs CR
21020# Avoid depending upon Character Ranges.
21021as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21022as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21023as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21024as_cr_digits='0123456789'
21025as_cr_alnum=$as_cr_Letters$as_cr_digits
21026
21027# The user is always right.
21028if test "${PATH_SEPARATOR+set}" != set; then
21029 echo "#! /bin/sh" >conf$$.sh
21030 echo "exit 0" >>conf$$.sh
21031 chmod +x conf$$.sh
21032 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21033 PATH_SEPARATOR=';'
21034 else
21035 PATH_SEPARATOR=:
21036 fi
21037 rm -f conf$$.sh
d9898ee8 21038fi
d9898ee8 21039
21040# Support unset when possible.
21041if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21042 as_unset=unset
21043else
21044 as_unset=false
21045fi
21046
21047
64ff59ba 21048# IFS
21049# We need space, tab and new line, in precisely that order. Quoting is
21050# there to prevent editors from complaining about space-tab.
21051# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21052# splitting by setting IFS to empty value.)
21053as_nl='
21054'
21055IFS=" "" $as_nl"
21056
21057# Find who we are. Look in the path if we contain no directory separator.
21058case $0 in
21059 *[\\/]* ) as_myself=$0 ;;
21060 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21061for as_dir in $PATH
21062do
21063 IFS=$as_save_IFS
21064 test -z "$as_dir" && as_dir=.
21065 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21066done
21067IFS=$as_save_IFS
21068
21069 ;;
21070esac
21071# We did not find ourselves, most probably we were run as `sh COMMAND'
21072# in which case we are not to be found in the path.
21073if test "x$as_myself" = x; then
21074 as_myself=$0
21075fi
21076if test ! -f "$as_myself"; then
21077 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21078 { (exit 1); exit 1; }
21079fi
21080
d9898ee8 21081# Work around bugs in pre-3.0 UWIN ksh.
64ff59ba 21082for as_var in ENV MAIL MAILPATH
21083do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21084done
d9898ee8 21085PS1='$ '
21086PS2='> '
21087PS4='+ '
21088
21089# NLS nuisances.
21090for as_var in \
21091 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21092 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21093 LC_TELEPHONE LC_TIME
21094do
21095 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21096 eval $as_var=C; export $as_var
21097 else
64ff59ba 21098 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
d9898ee8 21099 fi
21100done
21101
21102# Required to use basename.
64ff59ba 21103if expr a : '\(a\)' >/dev/null 2>&1 &&
21104 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 21105 as_expr=expr
21106else
21107 as_expr=false
21108fi
21109
64ff59ba 21110if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d9898ee8 21111 as_basename=basename
21112else
21113 as_basename=false
21114fi
21115
21116
21117# Name of the executable.
64ff59ba 21118as_me=`$as_basename -- "$0" ||
d9898ee8 21119$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21120 X"$0" : 'X\(//\)$' \| \
64ff59ba 21121 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21122echo X/"$0" |
64ff59ba 21123 sed '/^.*\/\([^/][^/]*\)\/*$/{
21124 s//\1/
21125 q
21126 }
21127 /^X\/\(\/\/\)$/{
21128 s//\1/
21129 q
21130 }
21131 /^X\/\(\/\).*/{
21132 s//\1/
21133 q
21134 }
21135 s/.*/./; q'`
d9898ee8 21136
64ff59ba 21137# CDPATH.
21138$as_unset CDPATH
d9898ee8 21139
21140
d9898ee8 21141
d9898ee8 21142 as_lineno_1=$LINENO
21143 as_lineno_2=$LINENO
d9898ee8 21144 test "x$as_lineno_1" != "x$as_lineno_2" &&
64ff59ba 21145 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 21146
21147 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21148 # uniformly replaced by the line number. The first 'sed' inserts a
64ff59ba 21149 # line-number line after each line using $LINENO; the second 'sed'
21150 # does the real work. The second script uses 'N' to pair each
21151 # line-number line with the line containing $LINENO, and appends
21152 # trailing '-' during substitution so that $LINENO is not a special
21153 # case at line end.
d9898ee8 21154 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
64ff59ba 21155 # scripts with optimization help from Paolo Bonzini. Blame Lee
21156 # E. McMahon (1931-1989) for sed's syntax. :-)
21157 sed -n '
21158 p
21159 /[$]LINENO/=
21160 ' <$as_myself |
d9898ee8 21161 sed '
64ff59ba 21162 s/[$]LINENO.*/&-/
21163 t lineno
21164 b
21165 :lineno
d9898ee8 21166 N
64ff59ba 21167 :loop
21168 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 21169 t loop
64ff59ba 21170 s/-\n.*//
d9898ee8 21171 ' >$as_me.lineno &&
64ff59ba 21172 chmod +x "$as_me.lineno" ||
21173 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
d9898ee8 21174 { (exit 1); exit 1; }; }
21175
21176 # Don't try to exec as it changes $[0], causing all sort of problems
21177 # (the dirname of $[0] is not the place where we might find the
64ff59ba 21178 # original and so on. Autoconf is especially sensitive to this).
21179 . "./$as_me.lineno"
d9898ee8 21180 # Exit status is that of the last command.
21181 exit
21182}
21183
21184
64ff59ba 21185if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21186 as_dirname=dirname
21187else
21188 as_dirname=false
21189fi
21190
21191ECHO_C= ECHO_N= ECHO_T=
21192case `echo -n x` in
21193-n*)
21194 case `echo 'x\c'` in
21195 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21196 *) ECHO_C='\c';;
21197 esac;;
21198*)
21199 ECHO_N='-n';;
d9898ee8 21200esac
21201
64ff59ba 21202if expr a : '\(a\)' >/dev/null 2>&1 &&
21203 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 21204 as_expr=expr
21205else
21206 as_expr=false
21207fi
21208
21209rm -f conf$$ conf$$.exe conf$$.file
64ff59ba 21210if test -d conf$$.dir; then
21211 rm -f conf$$.dir/conf$$.file
21212else
21213 rm -f conf$$.dir
21214 mkdir conf$$.dir
21215fi
d9898ee8 21216echo >conf$$.file
21217if ln -s conf$$.file conf$$ 2>/dev/null; then
64ff59ba 21218 as_ln_s='ln -s'
21219 # ... but there are two gotchas:
21220 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21221 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21222 # In both cases, we have to default to `cp -p'.
21223 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d9898ee8 21224 as_ln_s='cp -p'
d9898ee8 21225elif ln conf$$.file conf$$ 2>/dev/null; then
21226 as_ln_s=ln
21227else
21228 as_ln_s='cp -p'
21229fi
64ff59ba 21230rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21231rmdir conf$$.dir 2>/dev/null
d9898ee8 21232
21233if mkdir -p . 2>/dev/null; then
21234 as_mkdir_p=:
21235else
21236 test -d ./-p && rmdir ./-p
21237 as_mkdir_p=false
21238fi
21239
64ff59ba 21240if test -x / >/dev/null 2>&1; then
21241 as_test_x='test -x'
21242else
21243 if ls -dL / >/dev/null 2>&1; then
21244 as_ls_L_option=L
21245 else
21246 as_ls_L_option=
21247 fi
21248 as_test_x='
21249 eval sh -c '\''
21250 if test -d "$1"; then
21251 test -d "$1/.";
21252 else
21253 case $1 in
21254 -*)set "./$1";;
21255 esac;
21256 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21257 ???[sx]*):;;*)false;;esac;fi
21258 '\'' sh
21259 '
21260fi
21261as_executable_p=$as_test_x
d9898ee8 21262
21263# Sed expression to map a string onto a valid CPP name.
21264as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21265
21266# Sed expression to map a string onto a valid variable name.
21267as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21268
21269
d9898ee8 21270exec 6>&1
21271
64ff59ba 21272# Save the log message, to keep $[0] and so on meaningful, and to
d9898ee8 21273# report actual input values of CONFIG_FILES etc. instead of their
64ff59ba 21274# values after options handling.
21275ac_log="
d9898ee8 21276This file was extended by random128 $as_me 0.10, which was
64ff59ba 21277generated by GNU Autoconf 2.61. Invocation command line was
d9898ee8 21278
21279 CONFIG_FILES = $CONFIG_FILES
21280 CONFIG_HEADERS = $CONFIG_HEADERS
21281 CONFIG_LINKS = $CONFIG_LINKS
21282 CONFIG_COMMANDS = $CONFIG_COMMANDS
21283 $ $0 $@
21284
64ff59ba 21285on `(hostname || uname -n) 2>/dev/null | sed 1q`
21286"
21287
d9898ee8 21288_ACEOF
21289
64ff59ba 21290cat >>$CONFIG_STATUS <<_ACEOF
d9898ee8 21291# Files that config.status was made for.
64ff59ba 21292config_files="$ac_config_files"
21293config_headers="$ac_config_headers"
21294config_commands="$ac_config_commands"
d9898ee8 21295
64ff59ba 21296_ACEOF
d9898ee8 21297
21298cat >>$CONFIG_STATUS <<\_ACEOF
d9898ee8 21299ac_cs_usage="\
21300\`$as_me' instantiates files from templates according to the
21301current configuration.
21302
21303Usage: $0 [OPTIONS] [FILE]...
21304
21305 -h, --help print this help, then exit
64ff59ba 21306 -V, --version print version number and configuration settings, then exit
d9898ee8 21307 -q, --quiet do not print progress messages
21308 -d, --debug don't remove temporary files
21309 --recheck update $as_me by reconfiguring in the same conditions
21310 --file=FILE[:TEMPLATE]
21311 instantiate the configuration file FILE
21312 --header=FILE[:TEMPLATE]
21313 instantiate the configuration header FILE
21314
21315Configuration files:
21316$config_files
21317
21318Configuration headers:
21319$config_headers
21320
21321Configuration commands:
21322$config_commands
21323
21324Report bugs to <bug-autoconf@gnu.org>."
d9898ee8 21325
64ff59ba 21326_ACEOF
d9898ee8 21327cat >>$CONFIG_STATUS <<_ACEOF
21328ac_cs_version="\\
21329random128 config.status 0.10
64ff59ba 21330configured by $0, generated by GNU Autoconf 2.61,
21331 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
d9898ee8 21332
64ff59ba 21333Copyright (C) 2006 Free Software Foundation, Inc.
d9898ee8 21334This config.status script is free software; the Free Software Foundation
21335gives unlimited permission to copy, distribute and modify it."
64ff59ba 21336
21337ac_pwd='$ac_pwd'
21338srcdir='$srcdir'
21339INSTALL='$INSTALL'
21340MKDIR_P='$MKDIR_P'
d9898ee8 21341_ACEOF
21342
21343cat >>$CONFIG_STATUS <<\_ACEOF
21344# If no file are specified by the user, then we need to provide default
21345# value. By we need to know if files were specified by the user.
21346ac_need_defaults=:
21347while test $# != 0
21348do
21349 case $1 in
21350 --*=*)
64ff59ba 21351 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21352 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
d9898ee8 21353 ac_shift=:
21354 ;;
64ff59ba 21355 *)
d9898ee8 21356 ac_option=$1
21357 ac_optarg=$2
21358 ac_shift=shift
21359 ;;
d9898ee8 21360 esac
21361
21362 case $ac_option in
21363 # Handling of the options.
d9898ee8 21364 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21365 ac_cs_recheck=: ;;
64ff59ba 21366 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21367 echo "$ac_cs_version"; exit ;;
21368 --debug | --debu | --deb | --de | --d | -d )
d9898ee8 21369 debug=: ;;
21370 --file | --fil | --fi | --f )
21371 $ac_shift
21372 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21373 ac_need_defaults=false;;
21374 --header | --heade | --head | --hea )
21375 $ac_shift
21376 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21377 ac_need_defaults=false;;
64ff59ba 21378 --he | --h)
21379 # Conflict between --help and --header
21380 { echo "$as_me: error: ambiguous option: $1
21381Try \`$0 --help' for more information." >&2
21382 { (exit 1); exit 1; }; };;
21383 --help | --hel | -h )
21384 echo "$ac_cs_usage"; exit ;;
d9898ee8 21385 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21386 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21387 ac_cs_silent=: ;;
21388
21389 # This is an error.
64ff59ba 21390 -*) { echo "$as_me: error: unrecognized option: $1
21391Try \`$0 --help' for more information." >&2
d9898ee8 21392 { (exit 1); exit 1; }; } ;;
21393
64ff59ba 21394 *) ac_config_targets="$ac_config_targets $1"
21395 ac_need_defaults=false ;;
d9898ee8 21396
21397 esac
21398 shift
21399done
21400
21401ac_configure_extra_args=
21402
21403if $ac_cs_silent; then
21404 exec 6>/dev/null
21405 ac_configure_extra_args="$ac_configure_extra_args --silent"
21406fi
21407
21408_ACEOF
21409cat >>$CONFIG_STATUS <<_ACEOF
21410if \$ac_cs_recheck; then
64ff59ba 21411 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21412 CONFIG_SHELL=$SHELL
21413 export CONFIG_SHELL
21414 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
d9898ee8 21415fi
21416
21417_ACEOF
64ff59ba 21418cat >>$CONFIG_STATUS <<\_ACEOF
21419exec 5>>config.log
21420{
21421 echo
21422 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21423## Running $as_me. ##
21424_ASBOX
21425 echo "$ac_log"
21426} >&5
d9898ee8 21427
64ff59ba 21428_ACEOF
d9898ee8 21429cat >>$CONFIG_STATUS <<_ACEOF
21430#
64ff59ba 21431# INIT-COMMANDS
d9898ee8 21432#
d9898ee8 21433AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21434
21435_ACEOF
21436
d9898ee8 21437cat >>$CONFIG_STATUS <<\_ACEOF
64ff59ba 21438
21439# Handling of arguments.
d9898ee8 21440for ac_config_target in $ac_config_targets
21441do
64ff59ba 21442 case $ac_config_target in
21443 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21444 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21445 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21446
d9898ee8 21447 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21448echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21449 { (exit 1); exit 1; }; };;
21450 esac
21451done
21452
64ff59ba 21453
d9898ee8 21454# If the user did not use the arguments to specify the items to instantiate,
21455# then the envvar interface is used. Set only those that are not.
21456# We use the long form for the default assignment because of an extremely
21457# bizarre bug on SunOS 4.1.3.
21458if $ac_need_defaults; then
21459 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21460 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21461 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21462fi
21463
21464# Have a temporary directory for convenience. Make it in the build tree
64ff59ba 21465# simply because there is no reason against having it here, and in addition,
d9898ee8 21466# creating and moving files from /tmp can sometimes cause problems.
64ff59ba 21467# Hook for its removal unless debugging.
21468# Note that there is a small window in which the directory will not be cleaned:
21469# after its creation but before its name has been assigned to `$tmp'.
d9898ee8 21470$debug ||
21471{
64ff59ba 21472 tmp=
21473 trap 'exit_status=$?
21474 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21475' 0
d9898ee8 21476 trap '{ (exit 1); exit 1; }' 1 2 13 15
21477}
d9898ee8 21478# Create a (secure) tmp directory for tmp files.
21479
21480{
64ff59ba 21481 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d9898ee8 21482 test -n "$tmp" && test -d "$tmp"
21483} ||
21484{
64ff59ba 21485 tmp=./conf$$-$RANDOM
21486 (umask 077 && mkdir "$tmp")
d9898ee8 21487} ||
21488{
21489 echo "$me: cannot create a temporary directory in ." >&2
21490 { (exit 1); exit 1; }
21491}
21492
d9898ee8 21493#
64ff59ba 21494# Set up the sed scripts for CONFIG_FILES section.
d9898ee8 21495#
21496
21497# No need to generate the scripts if there are no CONFIG_FILES.
21498# This happens for instance when ./config.status config.h
64ff59ba 21499if test -n "$CONFIG_FILES"; then
d9898ee8 21500
21501_ACEOF
21502
64ff59ba 21503
21504
21505ac_delim='%!_!# '
21506for ac_last_try in false false false false false :; do
21507 cat >conf$$subs.sed <<_ACEOF
21508SHELL!$SHELL$ac_delim
21509PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21510PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21511PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21512PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21513PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21514PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21515exec_prefix!$exec_prefix$ac_delim
21516prefix!$prefix$ac_delim
21517program_transform_name!$program_transform_name$ac_delim
21518bindir!$bindir$ac_delim
21519sbindir!$sbindir$ac_delim
21520libexecdir!$libexecdir$ac_delim
21521datarootdir!$datarootdir$ac_delim
21522datadir!$datadir$ac_delim
21523sysconfdir!$sysconfdir$ac_delim
21524sharedstatedir!$sharedstatedir$ac_delim
21525localstatedir!$localstatedir$ac_delim
21526includedir!$includedir$ac_delim
21527oldincludedir!$oldincludedir$ac_delim
21528docdir!$docdir$ac_delim
21529infodir!$infodir$ac_delim
21530htmldir!$htmldir$ac_delim
21531dvidir!$dvidir$ac_delim
21532pdfdir!$pdfdir$ac_delim
21533psdir!$psdir$ac_delim
21534libdir!$libdir$ac_delim
21535localedir!$localedir$ac_delim
21536mandir!$mandir$ac_delim
21537DEFS!$DEFS$ac_delim
21538ECHO_C!$ECHO_C$ac_delim
21539ECHO_N!$ECHO_N$ac_delim
21540ECHO_T!$ECHO_T$ac_delim
21541LIBS!$LIBS$ac_delim
21542build_alias!$build_alias$ac_delim
21543host_alias!$host_alias$ac_delim
21544target_alias!$target_alias$ac_delim
21545INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21546INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21547INSTALL_DATA!$INSTALL_DATA$ac_delim
21548am__isrc!$am__isrc$ac_delim
21549CYGPATH_W!$CYGPATH_W$ac_delim
21550PACKAGE!$PACKAGE$ac_delim
21551VERSION!$VERSION$ac_delim
21552ACLOCAL!$ACLOCAL$ac_delim
21553AUTOCONF!$AUTOCONF$ac_delim
21554AUTOMAKE!$AUTOMAKE$ac_delim
21555AUTOHEADER!$AUTOHEADER$ac_delim
21556MAKEINFO!$MAKEINFO$ac_delim
21557install_sh!$install_sh$ac_delim
21558STRIP!$STRIP$ac_delim
21559INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21560mkdir_p!$mkdir_p$ac_delim
21561AWK!$AWK$ac_delim
21562SET_MAKE!$SET_MAKE$ac_delim
21563am__leading_dot!$am__leading_dot$ac_delim
21564AMTAR!$AMTAR$ac_delim
21565am__tar!$am__tar$ac_delim
21566am__untar!$am__untar$ac_delim
21567CC!$CC$ac_delim
21568CFLAGS!$CFLAGS$ac_delim
21569LDFLAGS!$LDFLAGS$ac_delim
21570CPPFLAGS!$CPPFLAGS$ac_delim
21571ac_ct_CC!$ac_ct_CC$ac_delim
21572EXEEXT!$EXEEXT$ac_delim
21573OBJEXT!$OBJEXT$ac_delim
21574DEPDIR!$DEPDIR$ac_delim
21575am__include!$am__include$ac_delim
21576am__quote!$am__quote$ac_delim
21577AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21578AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21579AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21580CCDEPMODE!$CCDEPMODE$ac_delim
21581am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21582am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21583CPP!$CPP$ac_delim
21584GREP!$GREP$ac_delim
21585EGREP!$EGREP$ac_delim
21586LN_S!$LN_S$ac_delim
21587PS!$PS$ac_delim
21588W!$W$ac_delim
21589build!$build$ac_delim
21590build_cpu!$build_cpu$ac_delim
21591build_vendor!$build_vendor$ac_delim
21592build_os!$build_os$ac_delim
21593host!$host$ac_delim
21594host_cpu!$host_cpu$ac_delim
21595host_vendor!$host_vendor$ac_delim
21596host_os!$host_os$ac_delim
21597SED!$SED$ac_delim
21598ECHO!$ECHO$ac_delim
21599AR!$AR$ac_delim
21600RANLIB!$RANLIB$ac_delim
21601CXX!$CXX$ac_delim
21602CXXFLAGS!$CXXFLAGS$ac_delim
21603ac_ct_CXX!$ac_ct_CXX$ac_delim
21604CXXDEPMODE!$CXXDEPMODE$ac_delim
21605_ACEOF
21606
21607 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21608 break
21609 elif $ac_last_try; then
21610 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21611echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21612 { (exit 1); exit 1; }; }
21613 else
21614 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
d9898ee8 21615 fi
64ff59ba 21616done
21617
21618ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21619if test -n "$ac_eof"; then
21620 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21621 ac_eof=`expr $ac_eof + 1`
21622fi
21623
21624cat >>$CONFIG_STATUS <<_ACEOF
21625cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21626/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21627_ACEOF
21628sed '
21629s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21630s/^/s,@/; s/!/@,|#_!!_#|/
21631:n
21632t n
21633s/'"$ac_delim"'$/,g/; t
21634s/$/\\/; p
21635N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21636' >>$CONFIG_STATUS <conf$$subs.sed
21637rm -f conf$$subs.sed
21638cat >>$CONFIG_STATUS <<_ACEOF
21639CEOF$ac_eof
21640_ACEOF
21641
21642
21643ac_delim='%!_!# '
21644for ac_last_try in false false false false false :; do
21645 cat >conf$$subs.sed <<_ACEOF
21646am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21647am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21648CXXCPP!$CXXCPP$ac_delim
21649F77!$F77$ac_delim
21650FFLAGS!$FFLAGS$ac_delim
21651ac_ct_F77!$ac_ct_F77$ac_delim
21652LIBTOOL!$LIBTOOL$ac_delim
21653LIBOBJS!$LIBOBJS$ac_delim
21654LTLIBOBJS!$LTLIBOBJS$ac_delim
21655_ACEOF
21656
21657 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
21658 break
21659 elif $ac_last_try; then
21660 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21661echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21662 { (exit 1); exit 1; }; }
21663 else
21664 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21665 fi
21666done
21667
21668ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21669if test -n "$ac_eof"; then
21670 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21671 ac_eof=`expr $ac_eof + 1`
21672fi
d9898ee8 21673
64ff59ba 21674cat >>$CONFIG_STATUS <<_ACEOF
21675cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21676/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21677_ACEOF
21678sed '
21679s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21680s/^/s,@/; s/!/@,|#_!!_#|/
21681:n
21682t n
21683s/'"$ac_delim"'$/,g/; t
21684s/$/\\/; p
21685N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21686' >>$CONFIG_STATUS <conf$$subs.sed
21687rm -f conf$$subs.sed
21688cat >>$CONFIG_STATUS <<_ACEOF
21689:end
21690s/|#_!!_#|//g
21691CEOF$ac_eof
d9898ee8 21692_ACEOF
64ff59ba 21693
21694
21695# VPATH may cause trouble with some makes, so we remove $(srcdir),
21696# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21697# trailing colons and then remove the whole line if VPATH becomes empty
21698# (actually we leave an empty line to preserve line numbers).
21699if test "x$srcdir" = x.; then
21700 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21701s/:*\$(srcdir):*/:/
21702s/:*\${srcdir}:*/:/
21703s/:*@srcdir@:*/:/
21704s/^\([^=]*=[ ]*\):*/\1/
21705s/:*$//
21706s/^[^=]*=[ ]*$//
21707}'
21708fi
21709
d9898ee8 21710cat >>$CONFIG_STATUS <<\_ACEOF
64ff59ba 21711fi # test -n "$CONFIG_FILES"
21712
21713
21714for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21715do
21716 case $ac_tag in
21717 :[FHLC]) ac_mode=$ac_tag; continue;;
21718 esac
21719 case $ac_mode$ac_tag in
21720 :[FHL]*:*);;
21721 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21722echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21723 { (exit 1); exit 1; }; };;
21724 :[FH]-) ac_tag=-:-;;
21725 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
d9898ee8 21726 esac
64ff59ba 21727 ac_save_IFS=$IFS
21728 IFS=:
21729 set x $ac_tag
21730 IFS=$ac_save_IFS
21731 shift
21732 ac_file=$1
21733 shift
21734
21735 case $ac_mode in
21736 :L) ac_source=$1;;
21737 :[FH])
21738 ac_file_inputs=
21739 for ac_f
21740 do
21741 case $ac_f in
21742 -) ac_f="$tmp/stdin";;
21743 *) # Look for the file first in the build tree, then in the source tree
21744 # (if the path is not absolute). The absolute path cannot be DOS-style,
21745 # because $ac_f cannot contain `:'.
21746 test -f "$ac_f" ||
21747 case $ac_f in
21748 [\\/$]*) false;;
21749 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21750 esac ||
21751 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21752echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21753 { (exit 1); exit 1; }; };;
21754 esac
21755 ac_file_inputs="$ac_file_inputs $ac_f"
21756 done
d9898ee8 21757
64ff59ba 21758 # Let's still pretend it is `configure' which instantiates (i.e., don't
21759 # use $as_me), people would be surprised to read:
21760 # /* config.h. Generated by config.status. */
21761 configure_input="Generated from "`IFS=:
21762 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21763 if test x"$ac_file" != x-; then
21764 configure_input="$ac_file. $configure_input"
21765 { echo "$as_me:$LINENO: creating $ac_file" >&5
21766echo "$as_me: creating $ac_file" >&6;}
21767 fi
21768
21769 case $ac_tag in
21770 *:-:* | *:-) cat >"$tmp/stdin";;
21771 esac
21772 ;;
21773 esac
21774
21775 ac_dir=`$as_dirname -- "$ac_file" ||
d9898ee8 21776$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21777 X"$ac_file" : 'X\(//\)[^/]' \| \
21778 X"$ac_file" : 'X\(//\)$' \| \
64ff59ba 21779 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21780echo X"$ac_file" |
64ff59ba 21781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21782 s//\1/
21783 q
21784 }
21785 /^X\(\/\/\)[^/].*/{
21786 s//\1/
21787 q
21788 }
21789 /^X\(\/\/\)$/{
21790 s//\1/
21791 q
21792 }
21793 /^X\(\/\).*/{
21794 s//\1/
21795 q
21796 }
21797 s/.*/./; q'`
21798 { as_dir="$ac_dir"
21799 case $as_dir in #(
21800 -*) as_dir=./$as_dir;;
21801 esac
21802 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 21803 as_dirs=
64ff59ba 21804 while :; do
21805 case $as_dir in #(
21806 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21807 *) as_qdir=$as_dir;;
21808 esac
21809 as_dirs="'$as_qdir' $as_dirs"
21810 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 21811$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21812 X"$as_dir" : 'X\(//\)[^/]' \| \
21813 X"$as_dir" : 'X\(//\)$' \| \
64ff59ba 21814 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21815echo X"$as_dir" |
64ff59ba 21816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21817 s//\1/
21818 q
21819 }
21820 /^X\(\/\/\)[^/].*/{
21821 s//\1/
21822 q
21823 }
21824 /^X\(\/\/\)$/{
21825 s//\1/
21826 q
21827 }
21828 /^X\(\/\).*/{
21829 s//\1/
21830 q
21831 }
21832 s/.*/./; q'`
21833 test -d "$as_dir" && break
d9898ee8 21834 done
64ff59ba 21835 test -z "$as_dirs" || eval "mkdir $as_dirs"
21836 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21837echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 21838 { (exit 1); exit 1; }; }; }
d9898ee8 21839 ac_builddir=.
21840
64ff59ba 21841case "$ac_dir" in
21842.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21843*)
d9898ee8 21844 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
64ff59ba 21845 # A ".." for each directory in $ac_dir_suffix.
21846 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21847 case $ac_top_builddir_sub in
21848 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21849 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21850 esac ;;
21851esac
21852ac_abs_top_builddir=$ac_pwd
21853ac_abs_builddir=$ac_pwd$ac_dir_suffix
21854# for backward compatibility:
21855ac_top_builddir=$ac_top_build_prefix
d9898ee8 21856
21857case $srcdir in
64ff59ba 21858 .) # We are building in place.
d9898ee8 21859 ac_srcdir=.
64ff59ba 21860 ac_top_srcdir=$ac_top_builddir_sub
21861 ac_abs_top_srcdir=$ac_pwd ;;
21862 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 21863 ac_srcdir=$srcdir$ac_dir_suffix;
64ff59ba 21864 ac_top_srcdir=$srcdir
21865 ac_abs_top_srcdir=$srcdir ;;
21866 *) # Relative name.
21867 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21868 ac_top_srcdir=$ac_top_build_prefix$srcdir
21869 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 21870esac
64ff59ba 21871ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 21872
d9898ee8 21873
64ff59ba 21874 case $ac_mode in
21875 :F)
21876 #
21877 # CONFIG_FILE
21878 #
d9898ee8 21879
21880 case $INSTALL in
21881 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
64ff59ba 21882 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21883 esac
21884 ac_MKDIR_P=$MKDIR_P
21885 case $MKDIR_P in
21886 [\\/$]* | ?:[\\/]* ) ;;
21887 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
d9898ee8 21888 esac
64ff59ba 21889_ACEOF
d9898ee8 21890
64ff59ba 21891cat >>$CONFIG_STATUS <<\_ACEOF
21892# If the template does not know about datarootdir, expand it.
21893# FIXME: This hack should be removed a few years after 2.60.
21894ac_datarootdir_hack=; ac_datarootdir_seen=
21895
21896case `sed -n '/datarootdir/ {
21897 p
21898 q
21899}
21900/@datadir@/p
21901/@docdir@/p
21902/@infodir@/p
21903/@localedir@/p
21904/@mandir@/p
21905' $ac_file_inputs` in
21906*datarootdir*) ac_datarootdir_seen=yes;;
21907*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21908 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21909echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21910_ACEOF
21911cat >>$CONFIG_STATUS <<_ACEOF
21912 ac_datarootdir_hack='
21913 s&@datadir@&$datadir&g
21914 s&@docdir@&$docdir&g
21915 s&@infodir@&$infodir&g
21916 s&@localedir@&$localedir&g
21917 s&@mandir@&$mandir&g
21918 s&\\\${datarootdir}&$datarootdir&g' ;;
21919esac
d9898ee8 21920_ACEOF
64ff59ba 21921
21922# Neutralize VPATH when `$srcdir' = `.'.
21923# Shell code in configure.ac might set extrasub.
21924# FIXME: do we really want to maintain this feature?
d9898ee8 21925cat >>$CONFIG_STATUS <<_ACEOF
21926 sed "$ac_vpsub
21927$extrasub
21928_ACEOF
21929cat >>$CONFIG_STATUS <<\_ACEOF
21930:t
21931/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
64ff59ba 21932s&@configure_input@&$configure_input&;t t
21933s&@top_builddir@&$ac_top_builddir_sub&;t t
21934s&@srcdir@&$ac_srcdir&;t t
21935s&@abs_srcdir@&$ac_abs_srcdir&;t t
21936s&@top_srcdir@&$ac_top_srcdir&;t t
21937s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21938s&@builddir@&$ac_builddir&;t t
21939s&@abs_builddir@&$ac_abs_builddir&;t t
21940s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21941s&@INSTALL@&$ac_INSTALL&;t t
21942s&@MKDIR_P@&$ac_MKDIR_P&;t t
21943$ac_datarootdir_hack
21944" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21945
21946test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21947 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21948 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21949 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21950which seems to be undefined. Please make sure it is defined." >&5
21951echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21952which seems to be undefined. Please make sure it is defined." >&2;}
21953
21954 rm -f "$tmp/stdin"
d9898ee8 21955 case $ac_file in
64ff59ba 21956 -) cat "$tmp/out"; rm -f "$tmp/out";;
21957 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
d9898ee8 21958 esac
64ff59ba 21959 ;;
21960 :H)
21961 #
21962 # CONFIG_HEADER
21963 #
d9898ee8 21964_ACEOF
21965
64ff59ba 21966# Transform confdefs.h into a sed script `conftest.defines', that
21967# substitutes the proper values into config.h.in to produce config.h.
21968rm -f conftest.defines conftest.tail
21969# First, append a space to every undef/define line, to ease matching.
21970echo 's/$/ /' >conftest.defines
21971# Then, protect against being on the right side of a sed subst, or in
21972# an unquoted here document, in config.status. If some macros were
21973# called several times there might be several #defines for the same
21974# symbol, which is useless. But do not sort them, since the last
21975# AC_DEFINE must be honored.
21976ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21977# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21978# NAME is the cpp macro being defined, VALUE is the value it is being given.
21979# PARAMS is the parameter list in the macro definition--in most cases, it's
21980# just an empty string.
21981ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21982ac_dB='\\)[ (].*,\\1define\\2'
21983ac_dC=' '
21984ac_dD=' ,'
21985
21986uniq confdefs.h |
21987 sed -n '
21988 t rset
21989 :rset
21990 s/^[ ]*#[ ]*define[ ][ ]*//
21991 t ok
21992 d
21993 :ok
21994 s/[\\&,]/\\&/g
21995 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21996 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21997 ' >>conftest.defines
21998
21999# Remove the space that was appended to ease matching.
22000# Then replace #undef with comments. This is necessary, for
d9898ee8 22001# example, in the case of _POSIX_SOURCE, which is predefined and required
22002# on some systems where configure will not decide to define it.
64ff59ba 22003# (The regexp can be short, since the line contains either #define or #undef.)
22004echo 's/ $//
22005s,^[ #]*u.*,/* & */,' >>conftest.defines
22006
22007# Break up conftest.defines:
22008ac_max_sed_lines=50
22009
22010# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22011# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22012# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22013# et cetera.
22014ac_in='$ac_file_inputs'
22015ac_out='"$tmp/out1"'
22016ac_nxt='"$tmp/out2"'
22017
22018while :
d9898ee8 22019do
64ff59ba 22020 # Write a here document:
22021 cat >>$CONFIG_STATUS <<_ACEOF
22022 # First, check the format of the line:
22023 cat >"\$tmp/defines.sed" <<\\CEOF
22024/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22025/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22026b
22027:def
22028_ACEOF
22029 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
d9898ee8 22030 echo 'CEOF
64ff59ba 22031 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22032 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22033 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22034 grep . conftest.tail >/dev/null || break
d9898ee8 22035 rm -f conftest.defines
22036 mv conftest.tail conftest.defines
22037done
64ff59ba 22038rm -f conftest.defines conftest.tail
d9898ee8 22039
64ff59ba 22040echo "ac_result=$ac_in" >>$CONFIG_STATUS
d9898ee8 22041cat >>$CONFIG_STATUS <<\_ACEOF
d9898ee8 22042 if test x"$ac_file" != x-; then
64ff59ba 22043 echo "/* $configure_input */" >"$tmp/config.h"
22044 cat "$ac_result" >>"$tmp/config.h"
22045 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
d9898ee8 22046 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22047echo "$as_me: $ac_file is unchanged" >&6;}
22048 else
d9898ee8 22049 rm -f $ac_file
64ff59ba 22050 mv "$tmp/config.h" $ac_file
d9898ee8 22051 fi
22052 else
64ff59ba 22053 echo "/* $configure_input */"
22054 cat "$ac_result"
d9898ee8 22055 fi
64ff59ba 22056 rm -f "$tmp/out12"
d9898ee8 22057# Compute $ac_file's index in $config_headers.
22058_am_stamp_count=1
22059for _am_header in $config_headers :; do
22060 case $_am_header in
22061 $ac_file | $ac_file:* )
22062 break ;;
22063 * )
22064 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22065 esac
22066done
64ff59ba 22067echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
d9898ee8 22068$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22069 X$ac_file : 'X\(//\)[^/]' \| \
22070 X$ac_file : 'X\(//\)$' \| \
64ff59ba 22071 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 22072echo X$ac_file |
64ff59ba 22073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22074 s//\1/
22075 q
22076 }
22077 /^X\(\/\/\)[^/].*/{
22078 s//\1/
22079 q
22080 }
22081 /^X\(\/\/\)$/{
22082 s//\1/
22083 q
22084 }
22085 /^X\(\/\).*/{
22086 s//\1/
22087 q
22088 }
22089 s/.*/./; q'`/stamp-h$_am_stamp_count
22090 ;;
d9898ee8 22091
64ff59ba 22092 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22093echo "$as_me: executing $ac_file commands" >&6;}
22094 ;;
22095 esac
d9898ee8 22096
22097
64ff59ba 22098 case $ac_file$ac_mode in
22099 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
d9898ee8 22100 # Strip MF so we end up with the name of the file.
22101 mf=`echo "$mf" | sed -e 's/:.*$//'`
22102 # Check whether this is an Automake generated Makefile or not.
22103 # We used to match only the files named `Makefile.in', but
22104 # some people rename them; so instead we look at the file content.
22105 # Grep'ing the first line is not enough: some people post-process
22106 # each Makefile.in and add a new line on top of each file to say so.
64ff59ba 22107 # Grep'ing the whole file is not good either: AIX grep has a line
22108 # limit of 2048, but all sed's we know have understand at least 4000.
22109 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
22110 dirpart=`$as_dirname -- "$mf" ||
d9898ee8 22111$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22112 X"$mf" : 'X\(//\)[^/]' \| \
22113 X"$mf" : 'X\(//\)$' \| \
64ff59ba 22114 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 22115echo X"$mf" |
64ff59ba 22116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22117 s//\1/
22118 q
22119 }
22120 /^X\(\/\/\)[^/].*/{
22121 s//\1/
22122 q
22123 }
22124 /^X\(\/\/\)$/{
22125 s//\1/
22126 q
22127 }
22128 /^X\(\/\).*/{
22129 s//\1/
22130 q
22131 }
22132 s/.*/./; q'`
d9898ee8 22133 else
22134 continue
22135 fi
22136 # Extract the definition of DEPDIR, am__include, and am__quote
22137 # from the Makefile without running `make'.
22138 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22139 test -z "$DEPDIR" && continue
22140 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22141 test -z "am__include" && continue
22142 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22143 # When using ansi2knr, U may be empty or an underscore; expand it
22144 U=`sed -n 's/^U = //p' < "$mf"`
22145 # Find all dependency output files, they are included files with
22146 # $(DEPDIR) in their names. We invoke sed twice because it is the
22147 # simplest approach to changing $(DEPDIR) to its actual value in the
22148 # expansion.
22149 for file in `sed -n "
22150 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22151 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22152 # Make sure the directory exists.
22153 test -f "$dirpart/$file" && continue
64ff59ba 22154 fdir=`$as_dirname -- "$file" ||
d9898ee8 22155$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22156 X"$file" : 'X\(//\)[^/]' \| \
22157 X"$file" : 'X\(//\)$' \| \
64ff59ba 22158 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 22159echo X"$file" |
64ff59ba 22160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22161 s//\1/
22162 q
22163 }
22164 /^X\(\/\/\)[^/].*/{
22165 s//\1/
22166 q
22167 }
22168 /^X\(\/\/\)$/{
22169 s//\1/
22170 q
22171 }
22172 /^X\(\/\).*/{
22173 s//\1/
22174 q
22175 }
22176 s/.*/./; q'`
22177 { as_dir=$dirpart/$fdir
22178 case $as_dir in #(
22179 -*) as_dir=./$as_dir;;
22180 esac
22181 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 22182 as_dirs=
64ff59ba 22183 while :; do
22184 case $as_dir in #(
22185 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22186 *) as_qdir=$as_dir;;
22187 esac
22188 as_dirs="'$as_qdir' $as_dirs"
22189 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 22190$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22191 X"$as_dir" : 'X\(//\)[^/]' \| \
22192 X"$as_dir" : 'X\(//\)$' \| \
64ff59ba 22193 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 22194echo X"$as_dir" |
64ff59ba 22195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22196 s//\1/
22197 q
22198 }
22199 /^X\(\/\/\)[^/].*/{
22200 s//\1/
22201 q
22202 }
22203 /^X\(\/\/\)$/{
22204 s//\1/
22205 q
22206 }
22207 /^X\(\/\).*/{
22208 s//\1/
22209 q
22210 }
22211 s/.*/./; q'`
22212 test -d "$as_dir" && break
d9898ee8 22213 done
64ff59ba 22214 test -z "$as_dirs" || eval "mkdir $as_dirs"
22215 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22216echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 22217 { (exit 1); exit 1; }; }; }
d9898ee8 22218 # echo "creating $dirpart/$file"
22219 echo '# dummy' > "$dirpart/$file"
22220 done
22221done
22222 ;;
64ff59ba 22223
d9898ee8 22224 esac
64ff59ba 22225done # for ac_tag
d9898ee8 22226
d9898ee8 22227
22228{ (exit 0); exit 0; }
22229_ACEOF
22230chmod +x $CONFIG_STATUS
22231ac_clean_files=$ac_clean_files_save
22232
22233
22234# configure is writing to config.log, and then calls config.status.
22235# config.status does its own redirection, appending to config.log.
22236# Unfortunately, on DOS this fails, as config.log is still kept open
22237# by configure, so config.status won't be able to write to it; its
22238# output is simply discarded. So we exec the FD to /dev/null,
22239# effectively closing config.log, so it can be properly (re)opened and
22240# appended to by config.status. When coming back to configure, we
22241# need to make the FD available again.
22242if test "$no_create" != yes; then
22243 ac_cs_success=:
22244 ac_config_status_args=
22245 test "$silent" = yes &&
22246 ac_config_status_args="$ac_config_status_args --quiet"
22247 exec 5>/dev/null
22248 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22249 exec 5>>config.log
22250 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22251 # would make configure fail if this is the last instruction.
22252 $ac_cs_success || { (exit 1); exit 1; }
22253fi
22254