Imported Debian patch 0.60.1-1
[hcoop/debian/courier-authlib.git] / md5 / 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 libmd5 1.21.
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='libmd5'
730PACKAGE_TARNAME='libmd5'
731PACKAGE_VERSION='1.21'
732PACKAGE_STRING='libmd5 1.21'
733PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
734
735ac_unique_file="hmac.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
831HMACC_TRUE
832HMACC_FALSE
833LN_S
834CC
835CFLAGS
836LDFLAGS
837CPPFLAGS
838ac_ct_CC
839EXEEXT
840OBJEXT
841DEPDIR
842am__include
843am__quote
844AMDEP_TRUE
845AMDEP_FALSE
846AMDEPBACKSLASH
847CCDEPMODE
848am__fastdepCC_TRUE
849am__fastdepCC_FALSE
850build
851build_cpu
852build_vendor
853build_os
854host
855host_cpu
856host_vendor
857host_os
858SED
859GREP
860EGREP
861ECHO
862AR
863RANLIB
864CPP
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 libmd5 1.21 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/libmd5]
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 libmd5 1.21:";;
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-int32='type' use 'type' for an unsigned 32 bit integer type
1489 ( default is 'unsigned')
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
1570libmd5 configure 1.21
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 libmd5 $as_me 1.21, 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 1941ac_config_headers="$ac_config_headers config.h"
1942
1943am__api_version='1.10'
d9898ee8 1944
d9898ee8 1945ac_aux_dir=
64ff59ba 1946for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1947 if test -f "$ac_dir/install-sh"; then
d9898ee8 1948 ac_aux_dir=$ac_dir
1949 ac_install_sh="$ac_aux_dir/install-sh -c"
1950 break
64ff59ba 1951 elif test -f "$ac_dir/install.sh"; then
d9898ee8 1952 ac_aux_dir=$ac_dir
1953 ac_install_sh="$ac_aux_dir/install.sh -c"
1954 break
64ff59ba 1955 elif test -f "$ac_dir/shtool"; then
d9898ee8 1956 ac_aux_dir=$ac_dir
1957 ac_install_sh="$ac_aux_dir/shtool install -c"
1958 break
1959 fi
1960done
1961if test -z "$ac_aux_dir"; then
64ff59ba 1962 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1963echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
d9898ee8 1964 { (exit 1); exit 1; }; }
1965fi
64ff59ba 1966
1967# These three variables are undocumented and unsupported,
1968# and are intended to be withdrawn in a future Autoconf release.
1969# They can cause serious problems if a builder's source tree is in a directory
1970# whose full name contains unusual characters.
1971ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1972ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1973ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1974
d9898ee8 1975
1976# Find a good install program. We prefer a C program (faster),
1977# so one script is as good as another. But avoid the broken or
1978# incompatible versions:
1979# SysV /etc/install, /usr/sbin/install
1980# SunOS /usr/etc/install
1981# IRIX /sbin/install
1982# AIX /bin/install
1983# AmigaOS /C/install, which installs bootblocks on floppy discs
1984# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1985# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1986# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1987# OS/2's system install, which has a completely different semantic
1988# ./install, which can be erroneously created by make from ./install.sh.
64ff59ba 1989{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1990echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
d9898ee8 1991if test -z "$INSTALL"; then
1992if test "${ac_cv_path_install+set}" = set; then
1993 echo $ECHO_N "(cached) $ECHO_C" >&6
1994else
1995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996for as_dir in $PATH
1997do
1998 IFS=$as_save_IFS
1999 test -z "$as_dir" && as_dir=.
2000 # Account for people who put trailing slashes in PATH elements.
2001case $as_dir/ in
2002 ./ | .// | /cC/* | \
2003 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2004 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2005 /usr/ucb/* ) ;;
2006 *)
2007 # OSF1 and SCO ODT 3.0 have their own names for install.
2008 # Don't use installbsd from OSF since it installs stuff as root
2009 # by default.
2010 for ac_prog in ginstall scoinst install; do
2011 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2012 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 2013 if test $ac_prog = install &&
2014 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2015 # AIX install. It has an incompatible calling convention.
2016 :
2017 elif test $ac_prog = install &&
2018 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2019 # program-specific install script used by HP pwplus--don't use.
2020 :
2021 else
2022 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2023 break 3
2024 fi
2025 fi
2026 done
2027 done
2028 ;;
2029esac
2030done
64ff59ba 2031IFS=$as_save_IFS
d9898ee8 2032
2033
2034fi
2035 if test "${ac_cv_path_install+set}" = set; then
2036 INSTALL=$ac_cv_path_install
2037 else
64ff59ba 2038 # As a last resort, use the slow shell script. Don't cache a
2039 # value for INSTALL within a source directory, because that will
d9898ee8 2040 # break other packages using the cache if that directory is
64ff59ba 2041 # removed, or if the value is a relative name.
d9898ee8 2042 INSTALL=$ac_install_sh
2043 fi
2044fi
64ff59ba 2045{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2046echo "${ECHO_T}$INSTALL" >&6; }
d9898ee8 2047
2048# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2049# It thinks the first close brace ends the variable substitution.
2050test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2051
2052test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2053
2054test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2055
64ff59ba 2056{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2057echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
d9898ee8 2058# Just in case
2059sleep 1
2060echo timestamp > conftest.file
2061# Do `set' in a subshell so we don't clobber the current shell's
2062# arguments. Must try -L first in case configure is actually a
2063# symlink; some systems play weird games with the mod time of symlinks
2064# (eg FreeBSD returns the mod time of the symlink's containing
2065# directory).
2066if (
2067 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2068 if test "$*" = "X"; then
2069 # -L didn't work.
2070 set X `ls -t $srcdir/configure conftest.file`
2071 fi
2072 rm -f conftest.file
2073 if test "$*" != "X $srcdir/configure conftest.file" \
2074 && test "$*" != "X conftest.file $srcdir/configure"; then
2075
2076 # If neither matched, then we have a broken ls. This can happen
2077 # if, for instance, CONFIG_SHELL is bash and it inherits a
2078 # broken ls alias from the environment. This has actually
2079 # happened. Such a system could not be considered "sane".
2080 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2081alias in your environment" >&5
2082echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2083alias in your environment" >&2;}
2084 { (exit 1); exit 1; }; }
2085 fi
2086
2087 test "$2" = conftest.file
2088 )
2089then
2090 # Ok.
2091 :
2092else
2093 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2094Check your system clock" >&5
2095echo "$as_me: error: newly created file is older than distributed files!
2096Check your system clock" >&2;}
2097 { (exit 1); exit 1; }; }
2098fi
64ff59ba 2099{ echo "$as_me:$LINENO: result: yes" >&5
2100echo "${ECHO_T}yes" >&6; }
d9898ee8 2101test "$program_prefix" != NONE &&
64ff59ba 2102 program_transform_name="s&^&$program_prefix&;$program_transform_name"
d9898ee8 2103# Use a double $ so make ignores it.
2104test "$program_suffix" != NONE &&
64ff59ba 2105 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
d9898ee8 2106# Double any \ or $. echo might interpret backslashes.
2107# By default was `s,x,x', remove it if useless.
2108cat <<\_ACEOF >conftest.sed
2109s/[\\$]/&&/g;s/;s,x,x,$//
2110_ACEOF
2111program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
64ff59ba 2112rm -f conftest.sed
d9898ee8 2113
2114# expand $ac_aux_dir to an absolute path
2115am_aux_dir=`cd $ac_aux_dir && pwd`
2116
2117test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2118# Use eval to expand $SHELL
2119if eval "$MISSING --run true"; then
2120 am_missing_run="$MISSING --run "
2121else
2122 am_missing_run=
2123 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2124echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2125fi
2126
64ff59ba 2127{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2128echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2129if test -z "$MKDIR_P"; then
2130 if test "${ac_cv_path_mkdir+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2132else
2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2135do
2136 IFS=$as_save_IFS
2137 test -z "$as_dir" && as_dir=.
2138 for ac_prog in mkdir gmkdir; do
2139 for ac_exec_ext in '' $ac_executable_extensions; do
2140 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2141 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2142 'mkdir (GNU coreutils) '* | \
2143 'mkdir (coreutils) '* | \
2144 'mkdir (fileutils) '4.1*)
2145 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2146 break 3;;
2147 esac
2148 done
2149 done
2150done
2151IFS=$as_save_IFS
2152
2153fi
2154
2155 if test "${ac_cv_path_mkdir+set}" = set; then
2156 MKDIR_P="$ac_cv_path_mkdir -p"
d9898ee8 2157 else
64ff59ba 2158 # As a last resort, use the slow shell script. Don't cache a
2159 # value for MKDIR_P within a source directory, because that will
2160 # break other packages using the cache if that directory is
2161 # removed, or if the value is a relative name.
2162 test -d ./--version && rmdir ./--version
2163 MKDIR_P="$ac_install_sh -d"
d9898ee8 2164 fi
2165fi
64ff59ba 2166{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2167echo "${ECHO_T}$MKDIR_P" >&6; }
2168
2169mkdir_p="$MKDIR_P"
2170case $mkdir_p in
2171 [\\/$]* | ?:[\\/]*) ;;
2172 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2173esac
d9898ee8 2174
2175for ac_prog in gawk mawk nawk awk
2176do
2177 # Extract the first word of "$ac_prog", so it can be a program name with args.
2178set dummy $ac_prog; ac_word=$2
64ff59ba 2179{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2181if test "${ac_cv_prog_AWK+set}" = set; then
2182 echo $ECHO_N "(cached) $ECHO_C" >&6
2183else
2184 if test -n "$AWK"; then
2185 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2186else
2187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2188for as_dir in $PATH
2189do
2190 IFS=$as_save_IFS
2191 test -z "$as_dir" && as_dir=.
2192 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2194 ac_cv_prog_AWK="$ac_prog"
2195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2196 break 2
2197 fi
2198done
2199done
64ff59ba 2200IFS=$as_save_IFS
d9898ee8 2201
2202fi
2203fi
2204AWK=$ac_cv_prog_AWK
2205if test -n "$AWK"; then
64ff59ba 2206 { echo "$as_me:$LINENO: result: $AWK" >&5
2207echo "${ECHO_T}$AWK" >&6; }
d9898ee8 2208else
64ff59ba 2209 { echo "$as_me:$LINENO: result: no" >&5
2210echo "${ECHO_T}no" >&6; }
d9898ee8 2211fi
2212
64ff59ba 2213
d9898ee8 2214 test -n "$AWK" && break
2215done
2216
64ff59ba 2217{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2218echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2219set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2220if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 2221 echo $ECHO_N "(cached) $ECHO_C" >&6
2222else
2223 cat >conftest.make <<\_ACEOF
64ff59ba 2224SHELL = /bin/sh
d9898ee8 2225all:
64ff59ba 2226 @echo '@@@%%%=$(MAKE)=@@@%%%'
d9898ee8 2227_ACEOF
2228# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
64ff59ba 2229case `${MAKE-make} -f conftest.make 2>/dev/null` in
2230 *@@@%%%=?*=@@@%%%*)
2231 eval ac_cv_prog_make_${ac_make}_set=yes;;
2232 *)
2233 eval ac_cv_prog_make_${ac_make}_set=no;;
2234esac
d9898ee8 2235rm -f conftest.make
2236fi
64ff59ba 2237if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2238 { echo "$as_me:$LINENO: result: yes" >&5
2239echo "${ECHO_T}yes" >&6; }
d9898ee8 2240 SET_MAKE=
2241else
64ff59ba 2242 { echo "$as_me:$LINENO: result: no" >&5
2243echo "${ECHO_T}no" >&6; }
d9898ee8 2244 SET_MAKE="MAKE=${MAKE-make}"
2245fi
2246
2247rm -rf .tst 2>/dev/null
2248mkdir .tst 2>/dev/null
2249if test -d .tst; then
2250 am__leading_dot=.
2251else
2252 am__leading_dot=_
2253fi
2254rmdir .tst 2>/dev/null
2255
64ff59ba 2256if test "`cd $srcdir && pwd`" != "`pwd`"; then
2257 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2258 # is not polluted with repeated "-I."
2259 am__isrc=' -I$(srcdir)'
2260 # test to see if srcdir already configured
2261 if test -f $srcdir/config.status; then
2262 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
d9898ee8 2263echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2264 { (exit 1); exit 1; }; }
64ff59ba 2265 fi
d9898ee8 2266fi
2267
2268# test whether we have cygpath
2269if test -z "$CYGPATH_W"; then
2270 if (cygpath --version) >/dev/null 2>/dev/null; then
2271 CYGPATH_W='cygpath -w'
2272 else
2273 CYGPATH_W=echo
2274 fi
2275fi
2276
2277
2278# Define the identity of the package.
2279 PACKAGE='libmd5'
2280 VERSION='1.21'
2281
2282
2283# Some tools Automake needs.
2284
2285ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2286
2287
2288AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2289
2290
2291AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2292
2293
2294AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2295
2296
2297MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2298
64ff59ba 2299install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
d9898ee8 2300
2301# Installed binaries are usually stripped using `strip' when the user
2302# run `make install-strip'. However `strip' might not be the right
2303# tool to use in cross-compilation environments, therefore Automake
2304# will honor the `STRIP' environment variable to overrule this program.
2305if test "$cross_compiling" != no; then
2306 if test -n "$ac_tool_prefix"; then
2307 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2308set dummy ${ac_tool_prefix}strip; ac_word=$2
64ff59ba 2309{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2311if test "${ac_cv_prog_STRIP+set}" = set; then
2312 echo $ECHO_N "(cached) $ECHO_C" >&6
2313else
2314 if test -n "$STRIP"; then
2315 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2316else
2317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318for as_dir in $PATH
2319do
2320 IFS=$as_save_IFS
2321 test -z "$as_dir" && as_dir=.
2322 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2324 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2326 break 2
2327 fi
2328done
2329done
64ff59ba 2330IFS=$as_save_IFS
d9898ee8 2331
2332fi
2333fi
2334STRIP=$ac_cv_prog_STRIP
2335if test -n "$STRIP"; then
64ff59ba 2336 { echo "$as_me:$LINENO: result: $STRIP" >&5
2337echo "${ECHO_T}$STRIP" >&6; }
d9898ee8 2338else
64ff59ba 2339 { echo "$as_me:$LINENO: result: no" >&5
2340echo "${ECHO_T}no" >&6; }
d9898ee8 2341fi
2342
64ff59ba 2343
d9898ee8 2344fi
2345if test -z "$ac_cv_prog_STRIP"; then
2346 ac_ct_STRIP=$STRIP
2347 # Extract the first word of "strip", so it can be a program name with args.
2348set dummy strip; ac_word=$2
64ff59ba 2349{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2351if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2353else
2354 if test -n "$ac_ct_STRIP"; then
2355 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2356else
2357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358for as_dir in $PATH
2359do
2360 IFS=$as_save_IFS
2361 test -z "$as_dir" && as_dir=.
2362 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2364 ac_cv_prog_ac_ct_STRIP="strip"
2365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2366 break 2
2367 fi
2368done
2369done
64ff59ba 2370IFS=$as_save_IFS
d9898ee8 2371
d9898ee8 2372fi
2373fi
2374ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2375if test -n "$ac_ct_STRIP"; then
64ff59ba 2376 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2377echo "${ECHO_T}$ac_ct_STRIP" >&6; }
d9898ee8 2378else
64ff59ba 2379 { echo "$as_me:$LINENO: result: no" >&5
2380echo "${ECHO_T}no" >&6; }
d9898ee8 2381fi
2382
64ff59ba 2383 if test "x$ac_ct_STRIP" = x; then
2384 STRIP=":"
2385 else
2386 case $cross_compiling:$ac_tool_warned in
2387yes:)
2388{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2389whose name does not start with the host triplet. If you think this
2390configuration is useful to you, please write to autoconf@gnu.org." >&5
2391echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2392whose name does not start with the host triplet. If you think this
2393configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2394ac_tool_warned=yes ;;
2395esac
2396 STRIP=$ac_ct_STRIP
2397 fi
d9898ee8 2398else
2399 STRIP="$ac_cv_prog_STRIP"
2400fi
2401
2402fi
64ff59ba 2403INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
d9898ee8 2404
2405# We need awk for the "check" target. The system "awk" is bad on
2406# some platforms.
2407# Always define AMTAR for backward compatibility.
2408
2409AMTAR=${AMTAR-"${am_missing_run}tar"}
2410
2411am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2412
2413
2414
2415
2416
2417
64ff59ba 2418 if test -d ${srcdir}/../libhmac; then
d9898ee8 2419 HMACC_TRUE=
2420 HMACC_FALSE='#'
2421else
2422 HMACC_TRUE='#'
2423 HMACC_FALSE=
2424fi
2425
2426
2427for ac_prog in gawk mawk nawk awk
2428do
2429 # Extract the first word of "$ac_prog", so it can be a program name with args.
2430set dummy $ac_prog; ac_word=$2
64ff59ba 2431{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2433if test "${ac_cv_prog_AWK+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" >&6
2435else
2436 if test -n "$AWK"; then
2437 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2438else
2439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440for as_dir in $PATH
2441do
2442 IFS=$as_save_IFS
2443 test -z "$as_dir" && as_dir=.
2444 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2446 ac_cv_prog_AWK="$ac_prog"
2447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2448 break 2
2449 fi
2450done
2451done
64ff59ba 2452IFS=$as_save_IFS
d9898ee8 2453
2454fi
2455fi
2456AWK=$ac_cv_prog_AWK
2457if test -n "$AWK"; then
64ff59ba 2458 { echo "$as_me:$LINENO: result: $AWK" >&5
2459echo "${ECHO_T}$AWK" >&6; }
d9898ee8 2460else
64ff59ba 2461 { echo "$as_me:$LINENO: result: no" >&5
2462echo "${ECHO_T}no" >&6; }
d9898ee8 2463fi
2464
64ff59ba 2465
d9898ee8 2466 test -n "$AWK" && break
2467done
2468
2469# Find a good install program. We prefer a C program (faster),
2470# so one script is as good as another. But avoid the broken or
2471# incompatible versions:
2472# SysV /etc/install, /usr/sbin/install
2473# SunOS /usr/etc/install
2474# IRIX /sbin/install
2475# AIX /bin/install
2476# AmigaOS /C/install, which installs bootblocks on floppy discs
2477# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2478# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2479# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2480# OS/2's system install, which has a completely different semantic
2481# ./install, which can be erroneously created by make from ./install.sh.
64ff59ba 2482{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2483echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
d9898ee8 2484if test -z "$INSTALL"; then
2485if test "${ac_cv_path_install+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2487else
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489for as_dir in $PATH
2490do
2491 IFS=$as_save_IFS
2492 test -z "$as_dir" && as_dir=.
2493 # Account for people who put trailing slashes in PATH elements.
2494case $as_dir/ in
2495 ./ | .// | /cC/* | \
2496 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2497 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2498 /usr/ucb/* ) ;;
2499 *)
2500 # OSF1 and SCO ODT 3.0 have their own names for install.
2501 # Don't use installbsd from OSF since it installs stuff as root
2502 # by default.
2503 for ac_prog in ginstall scoinst install; do
2504 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2505 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 2506 if test $ac_prog = install &&
2507 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2508 # AIX install. It has an incompatible calling convention.
2509 :
2510 elif test $ac_prog = install &&
2511 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2512 # program-specific install script used by HP pwplus--don't use.
2513 :
2514 else
2515 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2516 break 3
2517 fi
2518 fi
2519 done
2520 done
2521 ;;
2522esac
2523done
64ff59ba 2524IFS=$as_save_IFS
d9898ee8 2525
2526
2527fi
2528 if test "${ac_cv_path_install+set}" = set; then
2529 INSTALL=$ac_cv_path_install
2530 else
64ff59ba 2531 # As a last resort, use the slow shell script. Don't cache a
2532 # value for INSTALL within a source directory, because that will
d9898ee8 2533 # break other packages using the cache if that directory is
64ff59ba 2534 # removed, or if the value is a relative name.
d9898ee8 2535 INSTALL=$ac_install_sh
2536 fi
2537fi
64ff59ba 2538{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2539echo "${ECHO_T}$INSTALL" >&6; }
d9898ee8 2540
2541# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2542# It thinks the first close brace ends the variable substitution.
2543test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2544
2545test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2546
2547test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2548
64ff59ba 2549{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
2550echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
d9898ee8 2551LN_S=$as_ln_s
2552if test "$LN_S" = "ln -s"; then
64ff59ba 2553 { echo "$as_me:$LINENO: result: yes" >&5
2554echo "${ECHO_T}yes" >&6; }
d9898ee8 2555else
64ff59ba 2556 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2557echo "${ECHO_T}no, using $LN_S" >&6; }
d9898ee8 2558fi
2559
2560ac_ext=c
2561ac_cpp='$CPP $CPPFLAGS'
2562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2564ac_compiler_gnu=$ac_cv_c_compiler_gnu
2565if test -n "$ac_tool_prefix"; then
2566 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2567set dummy ${ac_tool_prefix}gcc; ac_word=$2
64ff59ba 2568{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2570if test "${ac_cv_prog_CC+set}" = set; then
2571 echo $ECHO_N "(cached) $ECHO_C" >&6
2572else
2573 if test -n "$CC"; then
2574 ac_cv_prog_CC="$CC" # Let the user override the test.
2575else
2576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577for as_dir in $PATH
2578do
2579 IFS=$as_save_IFS
2580 test -z "$as_dir" && as_dir=.
2581 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2583 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2585 break 2
2586 fi
2587done
2588done
64ff59ba 2589IFS=$as_save_IFS
d9898ee8 2590
2591fi
2592fi
2593CC=$ac_cv_prog_CC
2594if test -n "$CC"; then
64ff59ba 2595 { echo "$as_me:$LINENO: result: $CC" >&5
2596echo "${ECHO_T}$CC" >&6; }
d9898ee8 2597else
64ff59ba 2598 { echo "$as_me:$LINENO: result: no" >&5
2599echo "${ECHO_T}no" >&6; }
d9898ee8 2600fi
2601
64ff59ba 2602
d9898ee8 2603fi
2604if test -z "$ac_cv_prog_CC"; then
2605 ac_ct_CC=$CC
2606 # Extract the first word of "gcc", so it can be a program name with args.
2607set dummy gcc; ac_word=$2
64ff59ba 2608{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2610if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2611 echo $ECHO_N "(cached) $ECHO_C" >&6
2612else
2613 if test -n "$ac_ct_CC"; then
2614 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2615else
2616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617for as_dir in $PATH
2618do
2619 IFS=$as_save_IFS
2620 test -z "$as_dir" && as_dir=.
2621 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2623 ac_cv_prog_ac_ct_CC="gcc"
2624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2625 break 2
2626 fi
2627done
2628done
64ff59ba 2629IFS=$as_save_IFS
d9898ee8 2630
2631fi
2632fi
2633ac_ct_CC=$ac_cv_prog_ac_ct_CC
2634if test -n "$ac_ct_CC"; then
64ff59ba 2635 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2636echo "${ECHO_T}$ac_ct_CC" >&6; }
d9898ee8 2637else
64ff59ba 2638 { echo "$as_me:$LINENO: result: no" >&5
2639echo "${ECHO_T}no" >&6; }
d9898ee8 2640fi
2641
64ff59ba 2642 if test "x$ac_ct_CC" = x; then
2643 CC=""
2644 else
2645 case $cross_compiling:$ac_tool_warned in
2646yes:)
2647{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2648whose name does not start with the host triplet. If you think this
2649configuration is useful to you, please write to autoconf@gnu.org." >&5
2650echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2651whose name does not start with the host triplet. If you think this
2652configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2653ac_tool_warned=yes ;;
2654esac
2655 CC=$ac_ct_CC
2656 fi
d9898ee8 2657else
2658 CC="$ac_cv_prog_CC"
2659fi
2660
2661if test -z "$CC"; then
64ff59ba 2662 if test -n "$ac_tool_prefix"; then
2663 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 2664set dummy ${ac_tool_prefix}cc; ac_word=$2
64ff59ba 2665{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2667if test "${ac_cv_prog_CC+set}" = set; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
2669else
2670 if test -n "$CC"; then
2671 ac_cv_prog_CC="$CC" # Let the user override the test.
2672else
2673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674for as_dir in $PATH
2675do
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2680 ac_cv_prog_CC="${ac_tool_prefix}cc"
2681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 break 2
2683 fi
2684done
2685done
64ff59ba 2686IFS=$as_save_IFS
d9898ee8 2687
2688fi
2689fi
2690CC=$ac_cv_prog_CC
2691if test -n "$CC"; then
64ff59ba 2692 { echo "$as_me:$LINENO: result: $CC" >&5
2693echo "${ECHO_T}$CC" >&6; }
d9898ee8 2694else
64ff59ba 2695 { echo "$as_me:$LINENO: result: no" >&5
2696echo "${ECHO_T}no" >&6; }
d9898ee8 2697fi
2698
d9898ee8 2699
64ff59ba 2700 fi
d9898ee8 2701fi
2702if test -z "$CC"; then
2703 # Extract the first word of "cc", so it can be a program name with args.
2704set dummy cc; ac_word=$2
64ff59ba 2705{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2707if test "${ac_cv_prog_CC+set}" = set; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2709else
2710 if test -n "$CC"; then
2711 ac_cv_prog_CC="$CC" # Let the user override the test.
2712else
2713 ac_prog_rejected=no
2714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715for as_dir in $PATH
2716do
2717 IFS=$as_save_IFS
2718 test -z "$as_dir" && as_dir=.
2719 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2721 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2722 ac_prog_rejected=yes
2723 continue
2724 fi
2725 ac_cv_prog_CC="cc"
2726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2727 break 2
2728 fi
2729done
2730done
64ff59ba 2731IFS=$as_save_IFS
d9898ee8 2732
2733if test $ac_prog_rejected = yes; then
2734 # We found a bogon in the path, so make sure we never use it.
2735 set dummy $ac_cv_prog_CC
2736 shift
2737 if test $# != 0; then
2738 # We chose a different compiler from the bogus one.
2739 # However, it has the same basename, so the bogon will be chosen
2740 # first if we set CC to just the basename; use the full file name.
2741 shift
2742 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2743 fi
2744fi
2745fi
2746fi
2747CC=$ac_cv_prog_CC
2748if test -n "$CC"; then
64ff59ba 2749 { echo "$as_me:$LINENO: result: $CC" >&5
2750echo "${ECHO_T}$CC" >&6; }
d9898ee8 2751else
64ff59ba 2752 { echo "$as_me:$LINENO: result: no" >&5
2753echo "${ECHO_T}no" >&6; }
d9898ee8 2754fi
2755
64ff59ba 2756
d9898ee8 2757fi
2758if test -z "$CC"; then
2759 if test -n "$ac_tool_prefix"; then
64ff59ba 2760 for ac_prog in cl.exe
d9898ee8 2761 do
2762 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2763set dummy $ac_tool_prefix$ac_prog; ac_word=$2
64ff59ba 2764{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2766if test "${ac_cv_prog_CC+set}" = set; then
2767 echo $ECHO_N "(cached) $ECHO_C" >&6
2768else
2769 if test -n "$CC"; then
2770 ac_cv_prog_CC="$CC" # Let the user override the test.
2771else
2772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773for as_dir in $PATH
2774do
2775 IFS=$as_save_IFS
2776 test -z "$as_dir" && as_dir=.
2777 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2779 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2781 break 2
2782 fi
2783done
2784done
64ff59ba 2785IFS=$as_save_IFS
d9898ee8 2786
2787fi
2788fi
2789CC=$ac_cv_prog_CC
2790if test -n "$CC"; then
64ff59ba 2791 { echo "$as_me:$LINENO: result: $CC" >&5
2792echo "${ECHO_T}$CC" >&6; }
d9898ee8 2793else
64ff59ba 2794 { echo "$as_me:$LINENO: result: no" >&5
2795echo "${ECHO_T}no" >&6; }
d9898ee8 2796fi
2797
64ff59ba 2798
d9898ee8 2799 test -n "$CC" && break
2800 done
2801fi
2802if test -z "$CC"; then
2803 ac_ct_CC=$CC
64ff59ba 2804 for ac_prog in cl.exe
d9898ee8 2805do
2806 # Extract the first word of "$ac_prog", so it can be a program name with args.
2807set dummy $ac_prog; ac_word=$2
64ff59ba 2808{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2810if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2811 echo $ECHO_N "(cached) $ECHO_C" >&6
2812else
2813 if test -n "$ac_ct_CC"; then
2814 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2815else
2816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817for as_dir in $PATH
2818do
2819 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2823 ac_cv_prog_ac_ct_CC="$ac_prog"
2824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 break 2
2826 fi
2827done
2828done
64ff59ba 2829IFS=$as_save_IFS
d9898ee8 2830
2831fi
2832fi
2833ac_ct_CC=$ac_cv_prog_ac_ct_CC
2834if test -n "$ac_ct_CC"; then
64ff59ba 2835 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2836echo "${ECHO_T}$ac_ct_CC" >&6; }
d9898ee8 2837else
64ff59ba 2838 { echo "$as_me:$LINENO: result: no" >&5
2839echo "${ECHO_T}no" >&6; }
d9898ee8 2840fi
2841
64ff59ba 2842
d9898ee8 2843 test -n "$ac_ct_CC" && break
2844done
2845
64ff59ba 2846 if test "x$ac_ct_CC" = x; then
2847 CC=""
2848 else
2849 case $cross_compiling:$ac_tool_warned in
2850yes:)
2851{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2852whose name does not start with the host triplet. If you think this
2853configuration is useful to you, please write to autoconf@gnu.org." >&5
2854echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2855whose name does not start with the host triplet. If you think this
2856configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2857ac_tool_warned=yes ;;
2858esac
2859 CC=$ac_ct_CC
2860 fi
d9898ee8 2861fi
2862
2863fi
2864
2865
2866test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2867See \`config.log' for more details." >&5
2868echo "$as_me: error: no acceptable C compiler found in \$PATH
2869See \`config.log' for more details." >&2;}
2870 { (exit 1); exit 1; }; }
2871
2872# Provide some information about the compiler.
64ff59ba 2873echo "$as_me:$LINENO: checking for C compiler version" >&5
d9898ee8 2874ac_compiler=`set X $ac_compile; echo $2`
64ff59ba 2875{ (ac_try="$ac_compiler --version >&5"
2876case "(($ac_try" in
2877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878 *) ac_try_echo=$ac_try;;
2879esac
2880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2881 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 2882 ac_status=$?
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); }
64ff59ba 2885{ (ac_try="$ac_compiler -v >&5"
2886case "(($ac_try" in
2887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888 *) ac_try_echo=$ac_try;;
2889esac
2890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2891 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 2892 ac_status=$?
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }
64ff59ba 2895{ (ac_try="$ac_compiler -V >&5"
2896case "(($ac_try" in
2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2899esac
2900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2901 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 2902 ac_status=$?
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); }
2905
2906cat >conftest.$ac_ext <<_ACEOF
2907/* confdefs.h. */
2908_ACEOF
2909cat confdefs.h >>conftest.$ac_ext
2910cat >>conftest.$ac_ext <<_ACEOF
2911/* end confdefs.h. */
2912
2913int
2914main ()
2915{
2916
2917 ;
2918 return 0;
2919}
2920_ACEOF
2921ac_clean_files_save=$ac_clean_files
2922ac_clean_files="$ac_clean_files a.out a.exe b.out"
2923# Try to create an executable without -o first, disregard a.out.
2924# It will help us diagnose broken compilers, and finding out an intuition
2925# of exeext.
64ff59ba 2926{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2927echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
d9898ee8 2928ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
64ff59ba 2929#
2930# List of possible output files, starting from the most likely.
2931# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2932# only as a last resort. b.out is created by i960 compilers.
2933ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2934#
2935# The IRIX 6 linker writes into existing files which may not be
2936# executable, retaining their permissions. Remove them first so a
2937# subsequent execution test works.
2938ac_rmfiles=
2939for ac_file in $ac_files
2940do
2941 case $ac_file in
2942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2943 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2944 esac
2945done
2946rm -f $ac_rmfiles
2947
2948if { (ac_try="$ac_link_default"
2949case "(($ac_try" in
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2952esac
2953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954 (eval "$ac_link_default") 2>&5
d9898ee8 2955 ac_status=$?
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }; then
64ff59ba 2958 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2959# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2960# in a Makefile. We should not override ac_cv_exeext if it was cached,
2961# so that the user can short-circuit this test for compilers unknown to
2962# Autoconf.
2963for ac_file in $ac_files ''
d9898ee8 2964do
2965 test -f "$ac_file" || continue
2966 case $ac_file in
64ff59ba 2967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
d9898ee8 2968 ;;
2969 [ab].out )
2970 # We found the default executable, but exeext='' is most
2971 # certainly right.
2972 break;;
2973 *.* )
64ff59ba 2974 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2975 then :; else
2976 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2977 fi
2978 # We set ac_cv_exeext here because the later test for it is not
2979 # safe: cross compilers may not add the suffix if given an `-o'
2980 # argument, so we may need to know it at that point already.
2981 # Even if this section looks crufty: it has the advantage of
2982 # actually working.
d9898ee8 2983 break;;
2984 * )
2985 break;;
2986 esac
2987done
64ff59ba 2988test "$ac_cv_exeext" = no && ac_cv_exeext=
2989
d9898ee8 2990else
64ff59ba 2991 ac_file=''
2992fi
2993
2994{ echo "$as_me:$LINENO: result: $ac_file" >&5
2995echo "${ECHO_T}$ac_file" >&6; }
2996if test -z "$ac_file"; then
d9898ee8 2997 echo "$as_me: failed program was:" >&5
2998sed 's/^/| /' conftest.$ac_ext >&5
2999
3000{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3001See \`config.log' for more details." >&5
3002echo "$as_me: error: C compiler cannot create executables
3003See \`config.log' for more details." >&2;}
3004 { (exit 77); exit 77; }; }
3005fi
3006
3007ac_exeext=$ac_cv_exeext
d9898ee8 3008
64ff59ba 3009# Check that the compiler produces executables we can run. If not, either
d9898ee8 3010# the compiler is broken, or we cross compile.
64ff59ba 3011{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3012echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
d9898ee8 3013# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3014# If not cross compiling, check that we can run a simple program.
3015if test "$cross_compiling" != yes; then
3016 if { ac_try='./$ac_file'
64ff59ba 3017 { (case "(($ac_try" in
3018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019 *) ac_try_echo=$ac_try;;
3020esac
3021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3022 (eval "$ac_try") 2>&5
d9898ee8 3023 ac_status=$?
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }; }; then
3026 cross_compiling=no
3027 else
3028 if test "$cross_compiling" = maybe; then
3029 cross_compiling=yes
3030 else
3031 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3032If you meant to cross compile, use \`--host'.
3033See \`config.log' for more details." >&5
3034echo "$as_me: error: cannot run C compiled programs.
3035If you meant to cross compile, use \`--host'.
3036See \`config.log' for more details." >&2;}
3037 { (exit 1); exit 1; }; }
3038 fi
3039 fi
3040fi
64ff59ba 3041{ echo "$as_me:$LINENO: result: yes" >&5
3042echo "${ECHO_T}yes" >&6; }
d9898ee8 3043
3044rm -f a.out a.exe conftest$ac_cv_exeext b.out
3045ac_clean_files=$ac_clean_files_save
64ff59ba 3046# Check that the compiler produces executables we can run. If not, either
d9898ee8 3047# the compiler is broken, or we cross compile.
64ff59ba 3048{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3049echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3050{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3051echo "${ECHO_T}$cross_compiling" >&6; }
3052
3053{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3054echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3055if { (ac_try="$ac_link"
3056case "(($ac_try" in
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3059esac
3060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3061 (eval "$ac_link") 2>&5
d9898ee8 3062 ac_status=$?
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }; then
3065 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3066# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3067# work properly (i.e., refer to `conftest.exe'), while it won't with
3068# `rm'.
3069for ac_file in conftest.exe conftest conftest.*; do
3070 test -f "$ac_file" || continue
3071 case $ac_file in
64ff59ba 3072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
d9898ee8 3073 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
d9898ee8 3074 break;;
3075 * ) break;;
3076 esac
3077done
3078else
3079 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3080See \`config.log' for more details." >&5
3081echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3082See \`config.log' for more details." >&2;}
3083 { (exit 1); exit 1; }; }
3084fi
3085
3086rm -f conftest$ac_cv_exeext
64ff59ba 3087{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3088echo "${ECHO_T}$ac_cv_exeext" >&6; }
d9898ee8 3089
3090rm -f conftest.$ac_ext
3091EXEEXT=$ac_cv_exeext
3092ac_exeext=$EXEEXT
64ff59ba 3093{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3094echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
d9898ee8 3095if test "${ac_cv_objext+set}" = set; then
3096 echo $ECHO_N "(cached) $ECHO_C" >&6
3097else
3098 cat >conftest.$ac_ext <<_ACEOF
3099/* confdefs.h. */
3100_ACEOF
3101cat confdefs.h >>conftest.$ac_ext
3102cat >>conftest.$ac_ext <<_ACEOF
3103/* end confdefs.h. */
3104
3105int
3106main ()
3107{
3108
3109 ;
3110 return 0;
3111}
3112_ACEOF
3113rm -f conftest.o conftest.obj
64ff59ba 3114if { (ac_try="$ac_compile"
3115case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3118esac
3119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_compile") 2>&5
d9898ee8 3121 ac_status=$?
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }; then
64ff59ba 3124 for ac_file in conftest.o conftest.obj conftest.*; do
3125 test -f "$ac_file" || continue;
d9898ee8 3126 case $ac_file in
64ff59ba 3127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
d9898ee8 3128 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3129 break;;
3130 esac
3131done
3132else
3133 echo "$as_me: failed program was:" >&5
3134sed 's/^/| /' conftest.$ac_ext >&5
3135
3136{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3137See \`config.log' for more details." >&5
3138echo "$as_me: error: cannot compute suffix of object files: cannot compile
3139See \`config.log' for more details." >&2;}
3140 { (exit 1); exit 1; }; }
3141fi
3142
3143rm -f conftest.$ac_cv_objext conftest.$ac_ext
3144fi
64ff59ba 3145{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3146echo "${ECHO_T}$ac_cv_objext" >&6; }
d9898ee8 3147OBJEXT=$ac_cv_objext
3148ac_objext=$OBJEXT
64ff59ba 3149{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3150echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
d9898ee8 3151if test "${ac_cv_c_compiler_gnu+set}" = set; then
3152 echo $ECHO_N "(cached) $ECHO_C" >&6
3153else
3154 cat >conftest.$ac_ext <<_ACEOF
3155/* confdefs.h. */
3156_ACEOF
3157cat confdefs.h >>conftest.$ac_ext
3158cat >>conftest.$ac_ext <<_ACEOF
3159/* end confdefs.h. */
3160
3161int
3162main ()
3163{
3164#ifndef __GNUC__
3165 choke me
3166#endif
3167
3168 ;
3169 return 0;
3170}
3171_ACEOF
3172rm -f conftest.$ac_objext
64ff59ba 3173if { (ac_try="$ac_compile"
3174case "(($ac_try" in
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3177esac
3178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3180 ac_status=$?
3181 grep -v '^ *+' conftest.er1 >conftest.err
3182 rm -f conftest.er1
3183 cat conftest.err >&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3185 (exit $ac_status); } && {
3186 test -z "$ac_c_werror_flag" ||
3187 test ! -s conftest.err
3188 } && test -s conftest.$ac_objext; then
d9898ee8 3189 ac_compiler_gnu=yes
3190else
3191 echo "$as_me: failed program was:" >&5
3192sed 's/^/| /' conftest.$ac_ext >&5
3193
64ff59ba 3194 ac_compiler_gnu=no
d9898ee8 3195fi
64ff59ba 3196
3197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3198ac_cv_c_compiler_gnu=$ac_compiler_gnu
3199
3200fi
64ff59ba 3201{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3202echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
d9898ee8 3203GCC=`test $ac_compiler_gnu = yes && echo yes`
3204ac_test_CFLAGS=${CFLAGS+set}
3205ac_save_CFLAGS=$CFLAGS
64ff59ba 3206{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3207echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
d9898ee8 3208if test "${ac_cv_prog_cc_g+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3210else
64ff59ba 3211 ac_save_c_werror_flag=$ac_c_werror_flag
3212 ac_c_werror_flag=yes
3213 ac_cv_prog_cc_g=no
3214 CFLAGS="-g"
3215 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 3216/* confdefs.h. */
3217_ACEOF
3218cat confdefs.h >>conftest.$ac_ext
3219cat >>conftest.$ac_ext <<_ACEOF
3220/* end confdefs.h. */
3221
3222int
3223main ()
3224{
3225
3226 ;
3227 return 0;
3228}
3229_ACEOF
3230rm -f conftest.$ac_objext
64ff59ba 3231if { (ac_try="$ac_compile"
3232case "(($ac_try" in
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3235esac
3236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3238 ac_status=$?
3239 grep -v '^ *+' conftest.er1 >conftest.err
3240 rm -f conftest.er1
3241 cat conftest.err >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3243 (exit $ac_status); } && {
3244 test -z "$ac_c_werror_flag" ||
3245 test ! -s conftest.err
3246 } && test -s conftest.$ac_objext; then
3247 ac_cv_prog_cc_g=yes
3248else
3249 echo "$as_me: failed program was:" >&5
3250sed 's/^/| /' conftest.$ac_ext >&5
3251
3252 CFLAGS=""
3253 cat >conftest.$ac_ext <<_ACEOF
3254/* confdefs.h. */
3255_ACEOF
3256cat confdefs.h >>conftest.$ac_ext
3257cat >>conftest.$ac_ext <<_ACEOF
3258/* end confdefs.h. */
3259
3260int
3261main ()
3262{
3263
3264 ;
3265 return 0;
3266}
3267_ACEOF
3268rm -f conftest.$ac_objext
3269if { (ac_try="$ac_compile"
3270case "(($ac_try" in
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3273esac
3274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3276 ac_status=$?
64ff59ba 3277 grep -v '^ *+' conftest.er1 >conftest.err
3278 rm -f conftest.er1
3279 cat conftest.err >&5
d9898ee8 3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3281 (exit $ac_status); } && {
3282 test -z "$ac_c_werror_flag" ||
3283 test ! -s conftest.err
3284 } && test -s conftest.$ac_objext; then
3285 :
3286else
3287 echo "$as_me: failed program was:" >&5
3288sed 's/^/| /' conftest.$ac_ext >&5
3289
3290 ac_c_werror_flag=$ac_save_c_werror_flag
3291 CFLAGS="-g"
3292 cat >conftest.$ac_ext <<_ACEOF
3293/* confdefs.h. */
3294_ACEOF
3295cat confdefs.h >>conftest.$ac_ext
3296cat >>conftest.$ac_ext <<_ACEOF
3297/* end confdefs.h. */
3298
3299int
3300main ()
3301{
3302
3303 ;
3304 return 0;
3305}
3306_ACEOF
3307rm -f conftest.$ac_objext
3308if { (ac_try="$ac_compile"
3309case "(($ac_try" in
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3312esac
3313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3314 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3315 ac_status=$?
64ff59ba 3316 grep -v '^ *+' conftest.er1 >conftest.err
3317 rm -f conftest.er1
3318 cat conftest.err >&5
d9898ee8 3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3320 (exit $ac_status); } && {
3321 test -z "$ac_c_werror_flag" ||
3322 test ! -s conftest.err
3323 } && test -s conftest.$ac_objext; then
d9898ee8 3324 ac_cv_prog_cc_g=yes
3325else
3326 echo "$as_me: failed program was:" >&5
3327sed 's/^/| /' conftest.$ac_ext >&5
3328
64ff59ba 3329
3330fi
3331
3332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333fi
3334
3335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3336fi
64ff59ba 3337
3338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3339 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 3340fi
64ff59ba 3341{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3342echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
d9898ee8 3343if test "$ac_test_CFLAGS" = set; then
3344 CFLAGS=$ac_save_CFLAGS
3345elif test $ac_cv_prog_cc_g = yes; then
3346 if test "$GCC" = yes; then
3347 CFLAGS="-g -O2"
3348 else
3349 CFLAGS="-g"
3350 fi
3351else
3352 if test "$GCC" = yes; then
3353 CFLAGS="-O2"
3354 else
3355 CFLAGS=
3356 fi
3357fi
64ff59ba 3358{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3359echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3360if test "${ac_cv_prog_cc_c89+set}" = set; then
d9898ee8 3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3362else
64ff59ba 3363 ac_cv_prog_cc_c89=no
d9898ee8 3364ac_save_CC=$CC
3365cat >conftest.$ac_ext <<_ACEOF
3366/* confdefs.h. */
3367_ACEOF
3368cat confdefs.h >>conftest.$ac_ext
3369cat >>conftest.$ac_ext <<_ACEOF
3370/* end confdefs.h. */
3371#include <stdarg.h>
3372#include <stdio.h>
3373#include <sys/types.h>
3374#include <sys/stat.h>
3375/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3376struct buf { int x; };
3377FILE * (*rcsopen) (struct buf *, struct stat *, int);
3378static char *e (p, i)
3379 char **p;
3380 int i;
3381{
3382 return p[i];
3383}
3384static char *f (char * (*g) (char **, int), char **p, ...)
3385{
3386 char *s;
3387 va_list v;
3388 va_start (v,p);
3389 s = g (p, va_arg (v,int));
3390 va_end (v);
3391 return s;
3392}
3393
3394/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3395 function prototypes and stuff, but not '\xHH' hex character constants.
3396 These don't provoke an error unfortunately, instead are silently treated
64ff59ba 3397 as 'x'. The following induces an error, until -std is added to get
d9898ee8 3398 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3399 array size at least. It's necessary to write '\x00'==0 to get something
64ff59ba 3400 that's true only with -std. */
d9898ee8 3401int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3402
64ff59ba 3403/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3404 inside strings and character constants. */
3405#define FOO(x) 'x'
3406int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3407
d9898ee8 3408int test (int i, double x);
3409struct s1 {int (*f) (int a);};
3410struct s2 {int (*f) (double a);};
3411int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3412int argc;
3413char **argv;
3414int
3415main ()
3416{
3417return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3418 ;
3419 return 0;
3420}
3421_ACEOF
64ff59ba 3422for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3423 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 3424do
3425 CC="$ac_save_CC $ac_arg"
3426 rm -f conftest.$ac_objext
64ff59ba 3427if { (ac_try="$ac_compile"
3428case "(($ac_try" in
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3431esac
3432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3434 ac_status=$?
3435 grep -v '^ *+' conftest.er1 >conftest.err
3436 rm -f conftest.er1
3437 cat conftest.err >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3439 (exit $ac_status); } && {
3440 test -z "$ac_c_werror_flag" ||
3441 test ! -s conftest.err
3442 } && test -s conftest.$ac_objext; then
3443 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 3444else
3445 echo "$as_me: failed program was:" >&5
3446sed 's/^/| /' conftest.$ac_ext >&5
3447
64ff59ba 3448
d9898ee8 3449fi
64ff59ba 3450
3451rm -f core conftest.err conftest.$ac_objext
3452 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 3453done
64ff59ba 3454rm -f conftest.$ac_ext
d9898ee8 3455CC=$ac_save_CC
3456
3457fi
64ff59ba 3458# AC_CACHE_VAL
3459case "x$ac_cv_prog_cc_c89" in
3460 x)
3461 { echo "$as_me:$LINENO: result: none needed" >&5
3462echo "${ECHO_T}none needed" >&6; } ;;
3463 xno)
3464 { echo "$as_me:$LINENO: result: unsupported" >&5
3465echo "${ECHO_T}unsupported" >&6; } ;;
d9898ee8 3466 *)
64ff59ba 3467 CC="$CC $ac_cv_prog_cc_c89"
3468 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3469echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 3470esac
3471
d9898ee8 3472
d9898ee8 3473ac_ext=c
3474ac_cpp='$CPP $CPPFLAGS'
3475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3477ac_compiler_gnu=$ac_cv_c_compiler_gnu
3478DEPDIR="${am__leading_dot}deps"
3479
64ff59ba 3480ac_config_commands="$ac_config_commands depfiles"
d9898ee8 3481
3482
3483am_make=${MAKE-make}
3484cat > confinc << 'END'
3485am__doit:
3486 @echo done
3487.PHONY: am__doit
3488END
3489# If we don't find an include directive, just comment out the code.
64ff59ba 3490{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3491echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
d9898ee8 3492am__include="#"
3493am__quote=
3494_am_result=none
3495# First try GNU make style include.
3496echo "include confinc" > confmf
3497# We grep out `Entering directory' and `Leaving directory'
3498# messages which can occur if `w' ends up in MAKEFLAGS.
3499# In particular we don't look at `^make:' because GNU make might
3500# be invoked under some other name (usually "gmake"), in which
3501# case it prints its new name instead of `make'.
3502if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3503 am__include=include
3504 am__quote=
3505 _am_result=GNU
3506fi
3507# Now try BSD make style include.
3508if test "$am__include" = "#"; then
3509 echo '.include "confinc"' > confmf
3510 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3511 am__include=.include
3512 am__quote="\""
3513 _am_result=BSD
3514 fi
3515fi
3516
3517
64ff59ba 3518{ echo "$as_me:$LINENO: result: $_am_result" >&5
3519echo "${ECHO_T}$_am_result" >&6; }
d9898ee8 3520rm -f confinc confmf
3521
64ff59ba 3522# Check whether --enable-dependency-tracking was given.
d9898ee8 3523if test "${enable_dependency_tracking+set}" = set; then
64ff59ba 3524 enableval=$enable_dependency_tracking;
3525fi
d9898ee8 3526
d9898ee8 3527if test "x$enable_dependency_tracking" != xno; then
3528 am_depcomp="$ac_aux_dir/depcomp"
3529 AMDEPBACKSLASH='\'
3530fi
64ff59ba 3531 if test "x$enable_dependency_tracking" != xno; then
d9898ee8 3532 AMDEP_TRUE=
3533 AMDEP_FALSE='#'
3534else
3535 AMDEP_TRUE='#'
3536 AMDEP_FALSE=
3537fi
3538
3539
3540
d9898ee8 3541depcc="$CC" am_compiler_list=
3542
64ff59ba 3543{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3544echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
d9898ee8 3545if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
3547else
3548 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3549 # We make a subdir and do the tests there. Otherwise we can end up
3550 # making bogus files that we don't know about and never remove. For
3551 # instance it was reported that on HP-UX the gcc test will end up
3552 # making a dummy file named `D' -- because `-MD' means `put the output
3553 # in D'.
3554 mkdir conftest.dir
3555 # Copy depcomp to subdir because otherwise we won't find it if we're
3556 # using a relative directory.
3557 cp "$am_depcomp" conftest.dir
3558 cd conftest.dir
3559 # We will build objects and dependencies in a subdirectory because
3560 # it helps to detect inapplicable dependency modes. For instance
3561 # both Tru64's cc and ICC support -MD to output dependencies as a
3562 # side effect of compilation, but ICC will put the dependencies in
3563 # the current directory while Tru64 will put them in the object
3564 # directory.
3565 mkdir sub
3566
3567 am_cv_CC_dependencies_compiler_type=none
3568 if test "$am_compiler_list" = ""; then
3569 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3570 fi
3571 for depmode in $am_compiler_list; do
3572 # Setup a source with many dependencies, because some compilers
3573 # like to wrap large dependency lists on column 80 (with \), and
3574 # we should not choose a depcomp mode which is confused by this.
3575 #
3576 # We need to recreate these files for each test, as the compiler may
3577 # overwrite some of them when testing with obscure command lines.
3578 # This happens at least with the AIX C compiler.
3579 : > sub/conftest.c
3580 for i in 1 2 3 4 5 6; do
3581 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3582 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3583 # Solaris 8's {/usr,}/bin/sh.
3584 touch sub/conftst$i.h
3585 done
3586 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3587
3588 case $depmode in
3589 nosideeffect)
3590 # after this tag, mechanisms are not by side-effect, so they'll
3591 # only be used when explicitly requested
3592 if test "x$enable_dependency_tracking" = xyes; then
3593 continue
3594 else
3595 break
3596 fi
3597 ;;
3598 none) break ;;
3599 esac
3600 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3601 # mode. It turns out that the SunPro C++ compiler does not properly
3602 # handle `-M -o', and we need to detect this.
3603 if depmode=$depmode \
3604 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3605 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3606 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3607 >/dev/null 2>conftest.err &&
64ff59ba 3608 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3609 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3610 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3611 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3612 # icc doesn't choke on unknown options, it will just issue warnings
3613 # or remarks (even with -Werror). So we grep stderr for any message
3614 # that says an option was ignored or not supported.
3615 # When given -MP, icc 7.0 and 7.1 complain thusly:
3616 # icc: Command line warning: ignoring option '-M'; no argument required
3617 # The diagnosis changed in icc 8.0:
3618 # icc: Command line remark: option '-MP' not supported
3619 if (grep 'ignoring option' conftest.err ||
3620 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3621 am_cv_CC_dependencies_compiler_type=$depmode
3622 break
3623 fi
3624 fi
3625 done
3626
3627 cd ..
3628 rm -rf conftest.dir
3629else
3630 am_cv_CC_dependencies_compiler_type=none
3631fi
3632
3633fi
64ff59ba 3634{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3635echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 3636CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3637
64ff59ba 3638 if
d9898ee8 3639 test "x$enable_dependency_tracking" != xno \
3640 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3641 am__fastdepCC_TRUE=
3642 am__fastdepCC_FALSE='#'
3643else
3644 am__fastdepCC_TRUE='#'
3645 am__fastdepCC_FALSE=
3646fi
3647
3648
64ff59ba 3649# Check whether --enable-shared was given.
d9898ee8 3650if test "${enable_shared+set}" = set; then
64ff59ba 3651 enableval=$enable_shared; p=${PACKAGE-default}
d9898ee8 3652 case $enableval in
3653 yes) enable_shared=yes ;;
3654 no) enable_shared=no ;;
3655 *)
3656 enable_shared=no
3657 # Look at the argument we got. We use all the common list separators.
3658 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3659 for pkg in $enableval; do
3660 IFS="$lt_save_ifs"
3661 if test "X$pkg" = "X$p"; then
3662 enable_shared=yes
3663 fi
3664 done
3665 IFS="$lt_save_ifs"
3666 ;;
3667 esac
3668else
3669 enable_shared=yes
64ff59ba 3670fi
d9898ee8 3671
64ff59ba 3672
3673# Check whether --enable-static was given.
d9898ee8 3674if test "${enable_static+set}" = set; then
64ff59ba 3675 enableval=$enable_static; p=${PACKAGE-default}
d9898ee8 3676 case $enableval in
3677 yes) enable_static=yes ;;
3678 no) enable_static=no ;;
3679 *)
3680 enable_static=no
3681 # Look at the argument we got. We use all the common list separators.
3682 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3683 for pkg in $enableval; do
3684 IFS="$lt_save_ifs"
3685 if test "X$pkg" = "X$p"; then
3686 enable_static=yes
3687 fi
3688 done
3689 IFS="$lt_save_ifs"
3690 ;;
3691 esac
3692else
3693 enable_static=yes
64ff59ba 3694fi
d9898ee8 3695
64ff59ba 3696
3697# Check whether --enable-fast-install was given.
d9898ee8 3698if test "${enable_fast_install+set}" = set; then
64ff59ba 3699 enableval=$enable_fast_install; p=${PACKAGE-default}
d9898ee8 3700 case $enableval in
3701 yes) enable_fast_install=yes ;;
3702 no) enable_fast_install=no ;;
3703 *)
3704 enable_fast_install=no
3705 # Look at the argument we got. We use all the common list separators.
3706 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3707 for pkg in $enableval; do
3708 IFS="$lt_save_ifs"
3709 if test "X$pkg" = "X$p"; then
3710 enable_fast_install=yes
3711 fi
3712 done
3713 IFS="$lt_save_ifs"
3714 ;;
3715 esac
3716else
3717 enable_fast_install=yes
64ff59ba 3718fi
3719
d9898ee8 3720
3721# Make sure we can run config.sub.
64ff59ba 3722$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3723 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3724echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
d9898ee8 3725 { (exit 1); exit 1; }; }
3726
64ff59ba 3727{ echo "$as_me:$LINENO: checking build system type" >&5
3728echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
d9898ee8 3729if test "${ac_cv_build+set}" = set; then
3730 echo $ECHO_N "(cached) $ECHO_C" >&6
3731else
64ff59ba 3732 ac_build_alias=$build_alias
3733test "x$ac_build_alias" = x &&
3734 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3735test "x$ac_build_alias" = x &&
d9898ee8 3736 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3737echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3738 { (exit 1); exit 1; }; }
64ff59ba 3739ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3740 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3741echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
d9898ee8 3742 { (exit 1); exit 1; }; }
3743
3744fi
64ff59ba 3745{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3746echo "${ECHO_T}$ac_cv_build" >&6; }
3747case $ac_cv_build in
3748*-*-*) ;;
3749*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3750echo "$as_me: error: invalid value of canonical build" >&2;}
3751 { (exit 1); exit 1; }; };;
3752esac
d9898ee8 3753build=$ac_cv_build
64ff59ba 3754ac_save_IFS=$IFS; IFS='-'
3755set x $ac_cv_build
3756shift
3757build_cpu=$1
3758build_vendor=$2
3759shift; shift
3760# Remember, the first character of IFS is used to create $*,
3761# except with old shells:
3762build_os=$*
3763IFS=$ac_save_IFS
3764case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3765
3766
3767{ echo "$as_me:$LINENO: checking host system type" >&5
3768echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
d9898ee8 3769if test "${ac_cv_host+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3771else
64ff59ba 3772 if test "x$host_alias" = x; then
3773 ac_cv_host=$ac_cv_build
3774else
3775 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3776 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3777echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
d9898ee8 3778 { (exit 1); exit 1; }; }
64ff59ba 3779fi
d9898ee8 3780
3781fi
64ff59ba 3782{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3783echo "${ECHO_T}$ac_cv_host" >&6; }
3784case $ac_cv_host in
3785*-*-*) ;;
3786*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3787echo "$as_me: error: invalid value of canonical host" >&2;}
3788 { (exit 1); exit 1; }; };;
3789esac
d9898ee8 3790host=$ac_cv_host
64ff59ba 3791ac_save_IFS=$IFS; IFS='-'
3792set x $ac_cv_host
3793shift
3794host_cpu=$1
3795host_vendor=$2
3796shift; shift
3797# Remember, the first character of IFS is used to create $*,
3798# except with old shells:
3799host_os=$*
3800IFS=$ac_save_IFS
3801case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3802
3803
3804{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3805echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
d9898ee8 3806if test "${lt_cv_path_SED+set}" = set; then
3807 echo $ECHO_N "(cached) $ECHO_C" >&6
3808else
3809 # Loop through the user's path and test for sed and gsed.
3810# Then use that list of sed's as ones to test for truncation.
3811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812for as_dir in $PATH
3813do
3814 IFS=$as_save_IFS
3815 test -z "$as_dir" && as_dir=.
3816 for lt_ac_prog in sed gsed; do
3817 for ac_exec_ext in '' $ac_executable_extensions; do
3818 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3819 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3820 fi
3821 done
3822 done
3823done
3824IFS=$as_save_IFS
3825lt_ac_max=0
3826lt_ac_count=0
3827# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3828# along with /bin/sed that truncates output.
3829for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3830 test ! -f $lt_ac_sed && continue
3831 cat /dev/null > conftest.in
3832 lt_ac_count=0
3833 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3834 # Check for GNU sed and select it if it is found.
3835 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3836 lt_cv_path_SED=$lt_ac_sed
3837 break
3838 fi
3839 while true; do
3840 cat conftest.in conftest.in >conftest.tmp
3841 mv conftest.tmp conftest.in
3842 cp conftest.in conftest.nl
3843 echo >>conftest.nl
3844 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3845 cmp -s conftest.out conftest.nl || break
3846 # 10000 chars as input seems more than enough
3847 test $lt_ac_count -gt 10 && break
3848 lt_ac_count=`expr $lt_ac_count + 1`
3849 if test $lt_ac_count -gt $lt_ac_max; then
3850 lt_ac_max=$lt_ac_count
3851 lt_cv_path_SED=$lt_ac_sed
3852 fi
3853 done
3854done
3855
3856fi
3857
3858SED=$lt_cv_path_SED
3859
64ff59ba 3860{ echo "$as_me:$LINENO: result: $SED" >&5
3861echo "${ECHO_T}$SED" >&6; }
3862
3863{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3864echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3865if test "${ac_cv_path_GREP+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3867else
3868 # Extract the first word of "grep ggrep" to use in msg output
3869if test -z "$GREP"; then
3870set dummy grep ggrep; ac_prog_name=$2
3871if test "${ac_cv_path_GREP+set}" = set; then
3872 echo $ECHO_N "(cached) $ECHO_C" >&6
3873else
3874 ac_path_GREP_found=false
3875# Loop through the user's path and test for each of PROGNAME-LIST
3876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3878do
3879 IFS=$as_save_IFS
3880 test -z "$as_dir" && as_dir=.
3881 for ac_prog in grep ggrep; do
3882 for ac_exec_ext in '' $ac_executable_extensions; do
3883 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3884 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3885 # Check for GNU ac_path_GREP and select it if it is found.
3886 # Check for GNU $ac_path_GREP
3887case `"$ac_path_GREP" --version 2>&1` in
3888*GNU*)
3889 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3890*)
3891 ac_count=0
3892 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3893 while :
3894 do
3895 cat "conftest.in" "conftest.in" >"conftest.tmp"
3896 mv "conftest.tmp" "conftest.in"
3897 cp "conftest.in" "conftest.nl"
3898 echo 'GREP' >> "conftest.nl"
3899 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3900 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3901 ac_count=`expr $ac_count + 1`
3902 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3903 # Best one so far, save it but keep looking for a better one
3904 ac_cv_path_GREP="$ac_path_GREP"
3905 ac_path_GREP_max=$ac_count
3906 fi
3907 # 10*(2^10) chars as input seems more than enough
3908 test $ac_count -gt 10 && break
3909 done
3910 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3911esac
3912
3913
3914 $ac_path_GREP_found && break 3
3915 done
3916done
3917
3918done
3919IFS=$as_save_IFS
3920
3921
3922fi
3923
3924GREP="$ac_cv_path_GREP"
3925if test -z "$GREP"; then
3926 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3927echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3928 { (exit 1); exit 1; }; }
3929fi
3930
3931else
3932 ac_cv_path_GREP=$GREP
3933fi
3934
3935
3936fi
3937{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3938echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3939 GREP="$ac_cv_path_GREP"
3940
d9898ee8 3941
64ff59ba 3942{ echo "$as_me:$LINENO: checking for egrep" >&5
3943echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3944if test "${ac_cv_path_EGREP+set}" = set; then
3945 echo $ECHO_N "(cached) $ECHO_C" >&6
3946else
3947 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3948 then ac_cv_path_EGREP="$GREP -E"
3949 else
3950 # Extract the first word of "egrep" to use in msg output
3951if test -z "$EGREP"; then
3952set dummy egrep; ac_prog_name=$2
3953if test "${ac_cv_path_EGREP+set}" = set; then
d9898ee8 3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3955else
64ff59ba 3956 ac_path_EGREP_found=false
3957# Loop through the user's path and test for each of PROGNAME-LIST
3958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3960do
3961 IFS=$as_save_IFS
3962 test -z "$as_dir" && as_dir=.
3963 for ac_prog in egrep; do
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3966 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3967 # Check for GNU ac_path_EGREP and select it if it is found.
3968 # Check for GNU $ac_path_EGREP
3969case `"$ac_path_EGREP" --version 2>&1` in
3970*GNU*)
3971 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3972*)
3973 ac_count=0
3974 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3975 while :
3976 do
3977 cat "conftest.in" "conftest.in" >"conftest.tmp"
3978 mv "conftest.tmp" "conftest.in"
3979 cp "conftest.in" "conftest.nl"
3980 echo 'EGREP' >> "conftest.nl"
3981 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3982 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3983 ac_count=`expr $ac_count + 1`
3984 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3985 # Best one so far, save it but keep looking for a better one
3986 ac_cv_path_EGREP="$ac_path_EGREP"
3987 ac_path_EGREP_max=$ac_count
d9898ee8 3988 fi
64ff59ba 3989 # 10*(2^10) chars as input seems more than enough
3990 test $ac_count -gt 10 && break
3991 done
3992 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3993esac
3994
3995
3996 $ac_path_EGREP_found && break 3
3997 done
3998done
3999
4000done
4001IFS=$as_save_IFS
4002
4003
4004fi
4005
4006EGREP="$ac_cv_path_EGREP"
4007if test -z "$EGREP"; then
4008 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4009echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4010 { (exit 1); exit 1; }; }
4011fi
4012
4013else
4014 ac_cv_path_EGREP=$EGREP
4015fi
4016
4017
4018 fi
d9898ee8 4019fi
64ff59ba 4020{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4021echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4022 EGREP="$ac_cv_path_EGREP"
d9898ee8 4023
4024
4025
64ff59ba 4026# Check whether --with-gnu-ld was given.
d9898ee8 4027if test "${with_gnu_ld+set}" = set; then
64ff59ba 4028 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 4029else
4030 with_gnu_ld=no
64ff59ba 4031fi
4032
d9898ee8 4033ac_prog=ld
4034if test "$GCC" = yes; then
4035 # Check if gcc -print-prog-name=ld gives a path.
64ff59ba 4036 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4037echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d9898ee8 4038 case $host in
4039 *-*-mingw*)
4040 # gcc leaves a trailing carriage return which upsets mingw
4041 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4042 *)
4043 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4044 esac
4045 case $ac_prog in
4046 # Accept absolute paths.
4047 [\\/]* | ?:[\\/]*)
4048 re_direlt='/[^/][^/]*/\.\./'
4049 # Canonicalize the pathname of ld
4050 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4051 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4052 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4053 done
4054 test -z "$LD" && LD="$ac_prog"
4055 ;;
4056 "")
4057 # If it fails, then pretend we aren't using GCC.
4058 ac_prog=ld
4059 ;;
4060 *)
4061 # If it is relative, then search for the first ld in PATH.
4062 with_gnu_ld=unknown
4063 ;;
4064 esac
4065elif test "$with_gnu_ld" = yes; then
64ff59ba 4066 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4067echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d9898ee8 4068else
64ff59ba 4069 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4070echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d9898ee8 4071fi
4072if test "${lt_cv_path_LD+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4074else
4075 if test -z "$LD"; then
4076 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4077 for ac_dir in $PATH; do
4078 IFS="$lt_save_ifs"
4079 test -z "$ac_dir" && ac_dir=.
4080 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4081 lt_cv_path_LD="$ac_dir/$ac_prog"
4082 # Check to see if the program is GNU ld. I'd rather use --version,
4083 # but apparently some variants of GNU ld only accept -v.
4084 # Break only if it was the GNU/non-GNU ld that we prefer.
4085 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4086 *GNU* | *'with BFD'*)
4087 test "$with_gnu_ld" != no && break
4088 ;;
4089 *)
4090 test "$with_gnu_ld" != yes && break
4091 ;;
4092 esac
4093 fi
4094 done
4095 IFS="$lt_save_ifs"
4096else
4097 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4098fi
4099fi
4100
4101LD="$lt_cv_path_LD"
4102if test -n "$LD"; then
64ff59ba 4103 { echo "$as_me:$LINENO: result: $LD" >&5
4104echo "${ECHO_T}$LD" >&6; }
d9898ee8 4105else
64ff59ba 4106 { echo "$as_me:$LINENO: result: no" >&5
4107echo "${ECHO_T}no" >&6; }
d9898ee8 4108fi
4109test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4110echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4111 { (exit 1); exit 1; }; }
64ff59ba 4112{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4113echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d9898ee8 4114if test "${lt_cv_prog_gnu_ld+set}" = set; then
4115 echo $ECHO_N "(cached) $ECHO_C" >&6
4116else
4117 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4118case `$LD -v 2>&1 </dev/null` in
4119*GNU* | *'with BFD'*)
4120 lt_cv_prog_gnu_ld=yes
4121 ;;
4122*)
4123 lt_cv_prog_gnu_ld=no
4124 ;;
4125esac
4126fi
64ff59ba 4127{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4128echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 4129with_gnu_ld=$lt_cv_prog_gnu_ld
4130
4131
64ff59ba 4132{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4133echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
d9898ee8 4134if test "${lt_cv_ld_reload_flag+set}" = set; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4136else
4137 lt_cv_ld_reload_flag='-r'
4138fi
64ff59ba 4139{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4140echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
d9898ee8 4141reload_flag=$lt_cv_ld_reload_flag
4142case $reload_flag in
4143"" | " "*) ;;
4144*) reload_flag=" $reload_flag" ;;
4145esac
4146reload_cmds='$LD$reload_flag -o $output$reload_objs'
4147case $host_os in
4148 darwin*)
4149 if test "$GCC" = yes; then
4150 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4151 else
4152 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4153 fi
4154 ;;
4155esac
4156
64ff59ba 4157{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4158echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
d9898ee8 4159if test "${lt_cv_path_NM+set}" = set; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4161else
4162 if test -n "$NM"; then
4163 # Let the user override the test.
4164 lt_cv_path_NM="$NM"
4165else
4166 lt_nm_to_check="${ac_tool_prefix}nm"
4167 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4168 lt_nm_to_check="$lt_nm_to_check nm"
4169 fi
4170 for lt_tmp_nm in $lt_nm_to_check; do
4171 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4172 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4173 IFS="$lt_save_ifs"
4174 test -z "$ac_dir" && ac_dir=.
4175 tmp_nm="$ac_dir/$lt_tmp_nm"
4176 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4177 # Check to see if the nm accepts a BSD-compat flag.
4178 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4179 # nm: unknown option "B" ignored
4180 # Tru64's nm complains that /dev/null is an invalid object file
4181 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4182 */dev/null* | *'Invalid file or object type'*)
4183 lt_cv_path_NM="$tmp_nm -B"
4184 break
4185 ;;
4186 *)
4187 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4188 */dev/null*)
4189 lt_cv_path_NM="$tmp_nm -p"
4190 break
4191 ;;
4192 *)
4193 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4194 continue # so that we can try to find one that supports BSD flags
4195 ;;
4196 esac
4197 ;;
4198 esac
4199 fi
4200 done
4201 IFS="$lt_save_ifs"
4202 done
4203 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4204fi
4205fi
64ff59ba 4206{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4207echo "${ECHO_T}$lt_cv_path_NM" >&6; }
d9898ee8 4208NM="$lt_cv_path_NM"
4209
64ff59ba 4210{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4211echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
d9898ee8 4212if test "${lt_cv_deplibs_check_method+set}" = set; then
4213 echo $ECHO_N "(cached) $ECHO_C" >&6
4214else
4215 lt_cv_file_magic_cmd='$MAGIC_CMD'
4216lt_cv_file_magic_test_file=
4217lt_cv_deplibs_check_method='unknown'
4218# Need to set the preceding variable on all platforms that support
4219# interlibrary dependencies.
4220# 'none' -- dependencies not supported.
4221# `unknown' -- same as none, but documents that we really don't know.
4222# 'pass_all' -- all dependencies passed with no checks.
4223# 'test_compile' -- check by making test program.
4224# 'file_magic [[regex]]' -- check by looking for files in library path
4225# which responds to the $file_magic_cmd with a given extended regex.
4226# If you have `file' or equivalent on your system and you're not sure
4227# whether `pass_all' will *always* work, you probably want this one.
4228
4229case $host_os in
4230aix4* | aix5*)
4231 lt_cv_deplibs_check_method=pass_all
4232 ;;
4233
4234beos*)
4235 lt_cv_deplibs_check_method=pass_all
4236 ;;
4237
4238bsdi[45]*)
4239 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4240 lt_cv_file_magic_cmd='/usr/bin/file -L'
4241 lt_cv_file_magic_test_file=/shlib/libc.so
4242 ;;
4243
4244cygwin*)
4245 # func_win32_libid is a shell function defined in ltmain.sh
4246 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4247 lt_cv_file_magic_cmd='func_win32_libid'
4248 ;;
4249
4250mingw* | pw32*)
4251 # Base MSYS/MinGW do not provide the 'file' command needed by
4252 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4253 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4254 lt_cv_file_magic_cmd='$OBJDUMP -f'
4255 ;;
4256
4257darwin* | rhapsody*)
4258 lt_cv_deplibs_check_method=pass_all
4259 ;;
4260
4261freebsd* | kfreebsd*-gnu | dragonfly*)
4262 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4263 case $host_cpu in
4264 i*86 )
4265 # Not sure whether the presence of OpenBSD here was a mistake.
4266 # Let's accept both of them until this is cleared up.
4267 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4268 lt_cv_file_magic_cmd=/usr/bin/file
4269 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4270 ;;
4271 esac
4272 else
4273 lt_cv_deplibs_check_method=pass_all
4274 fi
4275 ;;
4276
4277gnu*)
4278 lt_cv_deplibs_check_method=pass_all
4279 ;;
4280
4281hpux10.20* | hpux11*)
4282 lt_cv_file_magic_cmd=/usr/bin/file
4283 case $host_cpu in
4284 ia64*)
4285 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4286 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4287 ;;
4288 hppa*64*)
4289 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]'
4290 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4291 ;;
4292 *)
4293 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4294 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4295 ;;
4296 esac
4297 ;;
4298
4299interix3*)
4300 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4301 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4302 ;;
4303
4304irix5* | irix6* | nonstopux*)
4305 case $LD in
4306 *-32|*"-32 ") libmagic=32-bit;;
4307 *-n32|*"-n32 ") libmagic=N32;;
4308 *-64|*"-64 ") libmagic=64-bit;;
4309 *) libmagic=never-match;;
4310 esac
4311 lt_cv_deplibs_check_method=pass_all
4312 ;;
4313
4314# This must be Linux ELF.
4315linux*)
4316 lt_cv_deplibs_check_method=pass_all
4317 ;;
4318
4319netbsd*)
4320 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4321 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4322 else
4323 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4324 fi
4325 ;;
4326
4327newos6*)
4328 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4329 lt_cv_file_magic_cmd=/usr/bin/file
4330 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4331 ;;
4332
4333nto-qnx*)
4334 lt_cv_deplibs_check_method=unknown
4335 ;;
4336
4337openbsd*)
4338 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4339 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4340 else
4341 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4342 fi
4343 ;;
4344
4345osf3* | osf4* | osf5*)
4346 lt_cv_deplibs_check_method=pass_all
4347 ;;
4348
4349solaris*)
4350 lt_cv_deplibs_check_method=pass_all
4351 ;;
4352
4353sysv4 | sysv4.3*)
4354 case $host_vendor in
4355 motorola)
4356 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]'
4357 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4358 ;;
4359 ncr)
4360 lt_cv_deplibs_check_method=pass_all
4361 ;;
4362 sequent)
4363 lt_cv_file_magic_cmd='/bin/file'
4364 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4365 ;;
4366 sni)
4367 lt_cv_file_magic_cmd='/bin/file'
4368 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4369 lt_cv_file_magic_test_file=/lib/libc.so
4370 ;;
4371 siemens)
4372 lt_cv_deplibs_check_method=pass_all
4373 ;;
4374 pc)
4375 lt_cv_deplibs_check_method=pass_all
4376 ;;
4377 esac
4378 ;;
4379
4380sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4381 lt_cv_deplibs_check_method=pass_all
4382 ;;
4383esac
4384
4385fi
64ff59ba 4386{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4387echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
d9898ee8 4388file_magic_cmd=$lt_cv_file_magic_cmd
4389deplibs_check_method=$lt_cv_deplibs_check_method
4390test -z "$deplibs_check_method" && deplibs_check_method=unknown
4391
4392
4393
4394
4395# If no C compiler was specified, use CC.
4396LTCC=${LTCC-"$CC"}
4397
4398# If no C compiler flags were specified, use CFLAGS.
4399LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4400
4401# Allow CC to be a program name with arguments.
4402compiler=$CC
4403
4404
64ff59ba 4405# Check whether --enable-libtool-lock was given.
d9898ee8 4406if test "${enable_libtool_lock+set}" = set; then
64ff59ba 4407 enableval=$enable_libtool_lock;
4408fi
d9898ee8 4409
d9898ee8 4410test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4411
4412# Some flags need to be propagated to the compiler or linker for good
4413# libtool support.
4414case $host in
4415ia64-*-hpux*)
4416 # Find out which ABI we are using.
4417 echo 'int i;' > conftest.$ac_ext
4418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4419 (eval $ac_compile) 2>&5
4420 ac_status=$?
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }; then
4423 case `/usr/bin/file conftest.$ac_objext` in
4424 *ELF-32*)
4425 HPUX_IA64_MODE="32"
4426 ;;
4427 *ELF-64*)
4428 HPUX_IA64_MODE="64"
4429 ;;
4430 esac
4431 fi
4432 rm -rf conftest*
4433 ;;
4434*-*-irix6*)
4435 # Find out which ABI we are using.
64ff59ba 4436 echo '#line 4436 "configure"' > conftest.$ac_ext
d9898ee8 4437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4438 (eval $ac_compile) 2>&5
4439 ac_status=$?
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); }; then
4442 if test "$lt_cv_prog_gnu_ld" = yes; then
4443 case `/usr/bin/file conftest.$ac_objext` in
4444 *32-bit*)
4445 LD="${LD-ld} -melf32bsmip"
4446 ;;
4447 *N32*)
4448 LD="${LD-ld} -melf32bmipn32"
4449 ;;
4450 *64-bit*)
4451 LD="${LD-ld} -melf64bmip"
4452 ;;
4453 esac
4454 else
4455 case `/usr/bin/file conftest.$ac_objext` in
4456 *32-bit*)
4457 LD="${LD-ld} -32"
4458 ;;
4459 *N32*)
4460 LD="${LD-ld} -n32"
4461 ;;
4462 *64-bit*)
4463 LD="${LD-ld} -64"
4464 ;;
4465 esac
4466 fi
4467 fi
4468 rm -rf conftest*
4469 ;;
4470
4471x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4472 # Find out which ABI we are using.
4473 echo 'int i;' > conftest.$ac_ext
4474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4475 (eval $ac_compile) 2>&5
4476 ac_status=$?
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; then
4479 case `/usr/bin/file conftest.o` in
4480 *32-bit*)
4481 case $host in
4482 x86_64-*linux*)
4483 LD="${LD-ld} -m elf_i386"
4484 ;;
4485 ppc64-*linux*|powerpc64-*linux*)
4486 LD="${LD-ld} -m elf32ppclinux"
4487 ;;
4488 s390x-*linux*)
4489 LD="${LD-ld} -m elf_s390"
4490 ;;
4491 sparc64-*linux*)
4492 LD="${LD-ld} -m elf32_sparc"
4493 ;;
4494 esac
4495 ;;
4496 *64-bit*)
4497 case $host in
4498 x86_64-*linux*)
4499 LD="${LD-ld} -m elf_x86_64"
4500 ;;
4501 ppc*-*linux*|powerpc*-*linux*)
4502 LD="${LD-ld} -m elf64ppc"
4503 ;;
4504 s390*-*linux*)
4505 LD="${LD-ld} -m elf64_s390"
4506 ;;
4507 sparc*-*linux*)
4508 LD="${LD-ld} -m elf64_sparc"
4509 ;;
4510 esac
4511 ;;
4512 esac
4513 fi
4514 rm -rf conftest*
4515 ;;
4516
4517*-*-sco3.2v5*)
4518 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4519 SAVE_CFLAGS="$CFLAGS"
4520 CFLAGS="$CFLAGS -belf"
64ff59ba 4521 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4522echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
d9898ee8 4523if test "${lt_cv_cc_needs_belf+set}" = set; then
4524 echo $ECHO_N "(cached) $ECHO_C" >&6
4525else
4526 ac_ext=c
4527ac_cpp='$CPP $CPPFLAGS'
4528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4530ac_compiler_gnu=$ac_cv_c_compiler_gnu
4531
4532 cat >conftest.$ac_ext <<_ACEOF
4533/* confdefs.h. */
4534_ACEOF
4535cat confdefs.h >>conftest.$ac_ext
4536cat >>conftest.$ac_ext <<_ACEOF
4537/* end confdefs.h. */
4538
4539int
4540main ()
4541{
4542
4543 ;
4544 return 0;
4545}
4546_ACEOF
4547rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 4548if { (ac_try="$ac_link"
4549case "(($ac_try" in
4550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4551 *) ac_try_echo=$ac_try;;
4552esac
4553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4554 (eval "$ac_link") 2>conftest.er1
d9898ee8 4555 ac_status=$?
4556 grep -v '^ *+' conftest.er1 >conftest.err
4557 rm -f conftest.er1
4558 cat conftest.err >&5
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4560 (exit $ac_status); } && {
4561 test -z "$ac_c_werror_flag" ||
4562 test ! -s conftest.err
4563 } && test -s conftest$ac_exeext &&
4564 $as_test_x conftest$ac_exeext; then
d9898ee8 4565 lt_cv_cc_needs_belf=yes
4566else
4567 echo "$as_me: failed program was:" >&5
4568sed 's/^/| /' conftest.$ac_ext >&5
4569
64ff59ba 4570 lt_cv_cc_needs_belf=no
d9898ee8 4571fi
64ff59ba 4572
4573rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 4574 conftest$ac_exeext conftest.$ac_ext
4575 ac_ext=c
4576ac_cpp='$CPP $CPPFLAGS'
4577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4579ac_compiler_gnu=$ac_cv_c_compiler_gnu
4580
4581fi
64ff59ba 4582{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4583echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
d9898ee8 4584 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4585 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4586 CFLAGS="$SAVE_CFLAGS"
4587 fi
4588 ;;
4589sparc*-*solaris*)
4590 # Find out which ABI we are using.
4591 echo 'int i;' > conftest.$ac_ext
4592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4593 (eval $ac_compile) 2>&5
4594 ac_status=$?
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; then
4597 case `/usr/bin/file conftest.o` in
4598 *64-bit*)
4599 case $lt_cv_prog_gnu_ld in
4600 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4601 *) LD="${LD-ld} -64" ;;
4602 esac
4603 ;;
4604 esac
4605 fi
4606 rm -rf conftest*
4607 ;;
4608
4609
4610esac
4611
4612need_locks="$enable_libtool_lock"
4613
4614
4615ac_ext=c
4616ac_cpp='$CPP $CPPFLAGS'
4617ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4618ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4619ac_compiler_gnu=$ac_cv_c_compiler_gnu
64ff59ba 4620{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4621echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
d9898ee8 4622# On Suns, sometimes $CPP names a directory.
4623if test -n "$CPP" && test -d "$CPP"; then
4624 CPP=
4625fi
4626if test -z "$CPP"; then
4627 if test "${ac_cv_prog_CPP+set}" = set; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4629else
4630 # Double quotes because CPP needs to be expanded
4631 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4632 do
4633 ac_preproc_ok=false
4634for ac_c_preproc_warn_flag in '' yes
4635do
4636 # Use a header file that comes with gcc, so configuring glibc
4637 # with a fresh cross-compiler works.
4638 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4639 # <limits.h> exists even on freestanding compilers.
4640 # On the NeXT, cc -E runs the code through the compiler's parser,
4641 # not just through cpp. "Syntax error" is here to catch this case.
4642 cat >conftest.$ac_ext <<_ACEOF
4643/* confdefs.h. */
4644_ACEOF
4645cat confdefs.h >>conftest.$ac_ext
4646cat >>conftest.$ac_ext <<_ACEOF
4647/* end confdefs.h. */
4648#ifdef __STDC__
4649# include <limits.h>
4650#else
4651# include <assert.h>
4652#endif
4653 Syntax error
4654_ACEOF
64ff59ba 4655if { (ac_try="$ac_cpp conftest.$ac_ext"
4656case "(($ac_try" in
4657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4658 *) ac_try_echo=$ac_try;;
4659esac
4660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4662 ac_status=$?
4663 grep -v '^ *+' conftest.er1 >conftest.err
4664 rm -f conftest.er1
4665 cat conftest.err >&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4667 (exit $ac_status); } >/dev/null && {
4668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4669 test ! -s conftest.err
4670 }; then
d9898ee8 4671 :
4672else
4673 echo "$as_me: failed program was:" >&5
4674sed 's/^/| /' conftest.$ac_ext >&5
4675
4676 # Broken: fails on valid input.
4677continue
4678fi
64ff59ba 4679
d9898ee8 4680rm -f conftest.err conftest.$ac_ext
4681
64ff59ba 4682 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 4683 # can be detected and how.
4684 cat >conftest.$ac_ext <<_ACEOF
4685/* confdefs.h. */
4686_ACEOF
4687cat confdefs.h >>conftest.$ac_ext
4688cat >>conftest.$ac_ext <<_ACEOF
4689/* end confdefs.h. */
4690#include <ac_nonexistent.h>
4691_ACEOF
64ff59ba 4692if { (ac_try="$ac_cpp conftest.$ac_ext"
4693case "(($ac_try" in
4694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4695 *) ac_try_echo=$ac_try;;
4696esac
4697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4699 ac_status=$?
4700 grep -v '^ *+' conftest.er1 >conftest.err
4701 rm -f conftest.er1
4702 cat conftest.err >&5
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4704 (exit $ac_status); } >/dev/null && {
4705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4706 test ! -s conftest.err
4707 }; then
d9898ee8 4708 # Broken: success on invalid input.
4709continue
4710else
4711 echo "$as_me: failed program was:" >&5
4712sed 's/^/| /' conftest.$ac_ext >&5
4713
4714 # Passes both tests.
4715ac_preproc_ok=:
4716break
4717fi
64ff59ba 4718
d9898ee8 4719rm -f conftest.err conftest.$ac_ext
4720
4721done
4722# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4723rm -f conftest.err conftest.$ac_ext
4724if $ac_preproc_ok; then
4725 break
4726fi
4727
4728 done
4729 ac_cv_prog_CPP=$CPP
4730
4731fi
4732 CPP=$ac_cv_prog_CPP
4733else
4734 ac_cv_prog_CPP=$CPP
4735fi
64ff59ba 4736{ echo "$as_me:$LINENO: result: $CPP" >&5
4737echo "${ECHO_T}$CPP" >&6; }
d9898ee8 4738ac_preproc_ok=false
4739for ac_c_preproc_warn_flag in '' yes
4740do
4741 # Use a header file that comes with gcc, so configuring glibc
4742 # with a fresh cross-compiler works.
4743 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4744 # <limits.h> exists even on freestanding compilers.
4745 # On the NeXT, cc -E runs the code through the compiler's parser,
4746 # not just through cpp. "Syntax error" is here to catch this case.
4747 cat >conftest.$ac_ext <<_ACEOF
4748/* confdefs.h. */
4749_ACEOF
4750cat confdefs.h >>conftest.$ac_ext
4751cat >>conftest.$ac_ext <<_ACEOF
4752/* end confdefs.h. */
4753#ifdef __STDC__
4754# include <limits.h>
4755#else
4756# include <assert.h>
4757#endif
4758 Syntax error
4759_ACEOF
64ff59ba 4760if { (ac_try="$ac_cpp conftest.$ac_ext"
4761case "(($ac_try" in
4762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4763 *) ac_try_echo=$ac_try;;
4764esac
4765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4767 ac_status=$?
4768 grep -v '^ *+' conftest.er1 >conftest.err
4769 rm -f conftest.er1
4770 cat conftest.err >&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4772 (exit $ac_status); } >/dev/null && {
4773 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4774 test ! -s conftest.err
4775 }; then
d9898ee8 4776 :
4777else
4778 echo "$as_me: failed program was:" >&5
4779sed 's/^/| /' conftest.$ac_ext >&5
4780
4781 # Broken: fails on valid input.
4782continue
4783fi
64ff59ba 4784
d9898ee8 4785rm -f conftest.err conftest.$ac_ext
4786
64ff59ba 4787 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 4788 # can be detected and how.
4789 cat >conftest.$ac_ext <<_ACEOF
4790/* confdefs.h. */
4791_ACEOF
4792cat confdefs.h >>conftest.$ac_ext
4793cat >>conftest.$ac_ext <<_ACEOF
4794/* end confdefs.h. */
4795#include <ac_nonexistent.h>
4796_ACEOF
64ff59ba 4797if { (ac_try="$ac_cpp conftest.$ac_ext"
4798case "(($ac_try" in
4799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4800 *) ac_try_echo=$ac_try;;
4801esac
4802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4804 ac_status=$?
4805 grep -v '^ *+' conftest.er1 >conftest.err
4806 rm -f conftest.er1
4807 cat conftest.err >&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4809 (exit $ac_status); } >/dev/null && {
4810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4811 test ! -s conftest.err
4812 }; then
d9898ee8 4813 # Broken: success on invalid input.
4814continue
4815else
4816 echo "$as_me: failed program was:" >&5
4817sed 's/^/| /' conftest.$ac_ext >&5
4818
4819 # Passes both tests.
4820ac_preproc_ok=:
4821break
4822fi
64ff59ba 4823
d9898ee8 4824rm -f conftest.err conftest.$ac_ext
4825
4826done
4827# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4828rm -f conftest.err conftest.$ac_ext
4829if $ac_preproc_ok; then
4830 :
4831else
4832 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4833See \`config.log' for more details." >&5
4834echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4835See \`config.log' for more details." >&2;}
4836 { (exit 1); exit 1; }; }
4837fi
4838
4839ac_ext=c
4840ac_cpp='$CPP $CPPFLAGS'
4841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4843ac_compiler_gnu=$ac_cv_c_compiler_gnu
4844
4845
64ff59ba 4846{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4847echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
d9898ee8 4848if test "${ac_cv_header_stdc+set}" = set; then
4849 echo $ECHO_N "(cached) $ECHO_C" >&6
4850else
4851 cat >conftest.$ac_ext <<_ACEOF
4852/* confdefs.h. */
4853_ACEOF
4854cat confdefs.h >>conftest.$ac_ext
4855cat >>conftest.$ac_ext <<_ACEOF
4856/* end confdefs.h. */
4857#include <stdlib.h>
4858#include <stdarg.h>
4859#include <string.h>
4860#include <float.h>
4861
4862int
4863main ()
4864{
4865
4866 ;
4867 return 0;
4868}
4869_ACEOF
4870rm -f conftest.$ac_objext
64ff59ba 4871if { (ac_try="$ac_compile"
4872case "(($ac_try" in
4873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4874 *) ac_try_echo=$ac_try;;
4875esac
4876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4877 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4878 ac_status=$?
4879 grep -v '^ *+' conftest.er1 >conftest.err
4880 rm -f conftest.er1
4881 cat conftest.err >&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4883 (exit $ac_status); } && {
4884 test -z "$ac_c_werror_flag" ||
4885 test ! -s conftest.err
4886 } && test -s conftest.$ac_objext; then
d9898ee8 4887 ac_cv_header_stdc=yes
4888else
4889 echo "$as_me: failed program was:" >&5
4890sed 's/^/| /' conftest.$ac_ext >&5
4891
64ff59ba 4892 ac_cv_header_stdc=no
d9898ee8 4893fi
64ff59ba 4894
4895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 4896
4897if test $ac_cv_header_stdc = yes; then
4898 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4899 cat >conftest.$ac_ext <<_ACEOF
4900/* confdefs.h. */
4901_ACEOF
4902cat confdefs.h >>conftest.$ac_ext
4903cat >>conftest.$ac_ext <<_ACEOF
4904/* end confdefs.h. */
4905#include <string.h>
4906
4907_ACEOF
4908if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4909 $EGREP "memchr" >/dev/null 2>&1; then
4910 :
4911else
4912 ac_cv_header_stdc=no
4913fi
4914rm -f conftest*
4915
4916fi
4917
4918if test $ac_cv_header_stdc = yes; then
4919 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4920 cat >conftest.$ac_ext <<_ACEOF
4921/* confdefs.h. */
4922_ACEOF
4923cat confdefs.h >>conftest.$ac_ext
4924cat >>conftest.$ac_ext <<_ACEOF
4925/* end confdefs.h. */
4926#include <stdlib.h>
4927
4928_ACEOF
4929if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4930 $EGREP "free" >/dev/null 2>&1; then
4931 :
4932else
4933 ac_cv_header_stdc=no
4934fi
4935rm -f conftest*
4936
4937fi
4938
4939if test $ac_cv_header_stdc = yes; then
4940 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4941 if test "$cross_compiling" = yes; then
4942 :
4943else
4944 cat >conftest.$ac_ext <<_ACEOF
4945/* confdefs.h. */
4946_ACEOF
4947cat confdefs.h >>conftest.$ac_ext
4948cat >>conftest.$ac_ext <<_ACEOF
4949/* end confdefs.h. */
4950#include <ctype.h>
64ff59ba 4951#include <stdlib.h>
d9898ee8 4952#if ((' ' & 0x0FF) == 0x020)
4953# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4954# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4955#else
4956# define ISLOWER(c) \
4957 (('a' <= (c) && (c) <= 'i') \
4958 || ('j' <= (c) && (c) <= 'r') \
4959 || ('s' <= (c) && (c) <= 'z'))
4960# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4961#endif
4962
4963#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4964int
4965main ()
4966{
4967 int i;
4968 for (i = 0; i < 256; i++)
4969 if (XOR (islower (i), ISLOWER (i))
4970 || toupper (i) != TOUPPER (i))
64ff59ba 4971 return 2;
4972 return 0;
d9898ee8 4973}
4974_ACEOF
4975rm -f conftest$ac_exeext
64ff59ba 4976if { (ac_try="$ac_link"
4977case "(($ac_try" in
4978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4979 *) ac_try_echo=$ac_try;;
4980esac
4981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4982 (eval "$ac_link") 2>&5
d9898ee8 4983 ac_status=$?
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
64ff59ba 4986 { (case "(($ac_try" in
4987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4988 *) ac_try_echo=$ac_try;;
4989esac
4990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4991 (eval "$ac_try") 2>&5
d9898ee8 4992 ac_status=$?
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); }; }; then
4995 :
4996else
4997 echo "$as_me: program exited with status $ac_status" >&5
4998echo "$as_me: failed program was:" >&5
4999sed 's/^/| /' conftest.$ac_ext >&5
5000
5001( exit $ac_status )
5002ac_cv_header_stdc=no
5003fi
64ff59ba 5004rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 5005fi
64ff59ba 5006
5007
d9898ee8 5008fi
5009fi
64ff59ba 5010{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5011echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
d9898ee8 5012if test $ac_cv_header_stdc = yes; then
5013
5014cat >>confdefs.h <<\_ACEOF
5015#define STDC_HEADERS 1
5016_ACEOF
5017
5018fi
5019
5020# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5031 inttypes.h stdint.h unistd.h
5032do
5033as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 5034{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5035echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5036if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5037 echo $ECHO_N "(cached) $ECHO_C" >&6
5038else
5039 cat >conftest.$ac_ext <<_ACEOF
5040/* confdefs.h. */
5041_ACEOF
5042cat confdefs.h >>conftest.$ac_ext
5043cat >>conftest.$ac_ext <<_ACEOF
5044/* end confdefs.h. */
5045$ac_includes_default
5046
5047#include <$ac_header>
5048_ACEOF
5049rm -f conftest.$ac_objext
64ff59ba 5050if { (ac_try="$ac_compile"
5051case "(($ac_try" in
5052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053 *) ac_try_echo=$ac_try;;
5054esac
5055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5056 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5057 ac_status=$?
5058 grep -v '^ *+' conftest.er1 >conftest.err
5059 rm -f conftest.er1
5060 cat conftest.err >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5062 (exit $ac_status); } && {
5063 test -z "$ac_c_werror_flag" ||
5064 test ! -s conftest.err
5065 } && test -s conftest.$ac_objext; then
d9898ee8 5066 eval "$as_ac_Header=yes"
5067else
5068 echo "$as_me: failed program was:" >&5
5069sed 's/^/| /' conftest.$ac_ext >&5
5070
64ff59ba 5071 eval "$as_ac_Header=no"
d9898ee8 5072fi
64ff59ba 5073
5074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5075fi
64ff59ba 5076ac_res=`eval echo '${'$as_ac_Header'}'`
5077 { echo "$as_me:$LINENO: result: $ac_res" >&5
5078echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5079if test `eval echo '${'$as_ac_Header'}'` = yes; then
5080 cat >>confdefs.h <<_ACEOF
5081#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5082_ACEOF
5083
5084fi
5085
5086done
5087
5088
5089
5090for ac_header in dlfcn.h
5091do
5092as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 5093if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5094 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5095echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5096if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5097 echo $ECHO_N "(cached) $ECHO_C" >&6
5098fi
64ff59ba 5099ac_res=`eval echo '${'$as_ac_Header'}'`
5100 { echo "$as_me:$LINENO: result: $ac_res" >&5
5101echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5102else
5103 # Is the header compilable?
64ff59ba 5104{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5105echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 5106cat >conftest.$ac_ext <<_ACEOF
5107/* confdefs.h. */
5108_ACEOF
5109cat confdefs.h >>conftest.$ac_ext
5110cat >>conftest.$ac_ext <<_ACEOF
5111/* end confdefs.h. */
5112$ac_includes_default
5113#include <$ac_header>
5114_ACEOF
5115rm -f conftest.$ac_objext
64ff59ba 5116if { (ac_try="$ac_compile"
5117case "(($ac_try" in
5118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5119 *) ac_try_echo=$ac_try;;
5120esac
5121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5122 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5123 ac_status=$?
5124 grep -v '^ *+' conftest.er1 >conftest.err
5125 rm -f conftest.er1
5126 cat conftest.err >&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5128 (exit $ac_status); } && {
5129 test -z "$ac_c_werror_flag" ||
5130 test ! -s conftest.err
5131 } && test -s conftest.$ac_objext; then
d9898ee8 5132 ac_header_compiler=yes
5133else
5134 echo "$as_me: failed program was:" >&5
5135sed 's/^/| /' conftest.$ac_ext >&5
5136
64ff59ba 5137 ac_header_compiler=no
d9898ee8 5138fi
64ff59ba 5139
5140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5141{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5142echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 5143
5144# Is the header present?
64ff59ba 5145{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5146echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 5147cat >conftest.$ac_ext <<_ACEOF
5148/* confdefs.h. */
5149_ACEOF
5150cat confdefs.h >>conftest.$ac_ext
5151cat >>conftest.$ac_ext <<_ACEOF
5152/* end confdefs.h. */
5153#include <$ac_header>
5154_ACEOF
64ff59ba 5155if { (ac_try="$ac_cpp conftest.$ac_ext"
5156case "(($ac_try" in
5157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5158 *) ac_try_echo=$ac_try;;
5159esac
5160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5162 ac_status=$?
5163 grep -v '^ *+' conftest.er1 >conftest.err
5164 rm -f conftest.er1
5165 cat conftest.err >&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5167 (exit $ac_status); } >/dev/null && {
5168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5169 test ! -s conftest.err
5170 }; then
d9898ee8 5171 ac_header_preproc=yes
5172else
5173 echo "$as_me: failed program was:" >&5
5174sed 's/^/| /' conftest.$ac_ext >&5
5175
5176 ac_header_preproc=no
5177fi
64ff59ba 5178
d9898ee8 5179rm -f conftest.err conftest.$ac_ext
64ff59ba 5180{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5181echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 5182
5183# So? What about this header?
5184case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5185 yes:no: )
5186 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5187echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5189echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5190 ac_header_preproc=yes
5191 ;;
5192 no:yes:* )
5193 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5194echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5195 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5196echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5197 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5198echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5199 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5200echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5202echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5203 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5204echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64ff59ba 5205 ( cat <<\_ASBOX
d9898ee8 5206## -------------------------------------------------- ##
5207## Report this to courier-users@lists.sourceforge.net ##
5208## -------------------------------------------------- ##
5209_ASBOX
64ff59ba 5210 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 5211 ;;
5212esac
64ff59ba 5213{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5214echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5215if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5217else
5218 eval "$as_ac_Header=\$ac_header_preproc"
5219fi
64ff59ba 5220ac_res=`eval echo '${'$as_ac_Header'}'`
5221 { echo "$as_me:$LINENO: result: $ac_res" >&5
5222echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5223
5224fi
5225if test `eval echo '${'$as_ac_Header'}'` = yes; then
5226 cat >>confdefs.h <<_ACEOF
5227#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5228_ACEOF
5229
5230fi
5231
5232done
5233
64ff59ba 5234ac_ext=cpp
d9898ee8 5235ac_cpp='$CXXCPP $CPPFLAGS'
5236ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5237ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5238ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
64ff59ba 5239if test -z "$CXX"; then
5240 if test -n "$CCC"; then
5241 CXX=$CCC
5242 else
5243 if test -n "$ac_tool_prefix"; then
5244 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d9898ee8 5245 do
5246 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5247set dummy $ac_tool_prefix$ac_prog; ac_word=$2
64ff59ba 5248{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5250if test "${ac_cv_prog_CXX+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5252else
5253 if test -n "$CXX"; then
5254 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5255else
5256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257for as_dir in $PATH
5258do
5259 IFS=$as_save_IFS
5260 test -z "$as_dir" && as_dir=.
5261 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 5262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5263 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5265 break 2
5266 fi
5267done
5268done
64ff59ba 5269IFS=$as_save_IFS
d9898ee8 5270
5271fi
5272fi
5273CXX=$ac_cv_prog_CXX
5274if test -n "$CXX"; then
64ff59ba 5275 { echo "$as_me:$LINENO: result: $CXX" >&5
5276echo "${ECHO_T}$CXX" >&6; }
d9898ee8 5277else
64ff59ba 5278 { echo "$as_me:$LINENO: result: no" >&5
5279echo "${ECHO_T}no" >&6; }
d9898ee8 5280fi
5281
64ff59ba 5282
d9898ee8 5283 test -n "$CXX" && break
5284 done
5285fi
5286if test -z "$CXX"; then
5287 ac_ct_CXX=$CXX
64ff59ba 5288 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d9898ee8 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_prog_ac_ct_CXX+set}" = set; then
5295 echo $ECHO_N "(cached) $ECHO_C" >&6
5296else
5297 if test -n "$ac_ct_CXX"; then
5298 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5299else
5300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301for as_dir in $PATH
5302do
5303 IFS=$as_save_IFS
5304 test -z "$as_dir" && as_dir=.
5305 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 5306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5307 ac_cv_prog_ac_ct_CXX="$ac_prog"
5308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5309 break 2
5310 fi
5311done
5312done
64ff59ba 5313IFS=$as_save_IFS
d9898ee8 5314
5315fi
5316fi
5317ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5318if test -n "$ac_ct_CXX"; then
64ff59ba 5319 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5320echo "${ECHO_T}$ac_ct_CXX" >&6; }
d9898ee8 5321else
64ff59ba 5322 { echo "$as_me:$LINENO: result: no" >&5
5323echo "${ECHO_T}no" >&6; }
d9898ee8 5324fi
5325
64ff59ba 5326
d9898ee8 5327 test -n "$ac_ct_CXX" && break
5328done
d9898ee8 5329
64ff59ba 5330 if test "x$ac_ct_CXX" = x; then
5331 CXX="g++"
5332 else
5333 case $cross_compiling:$ac_tool_warned in
5334yes:)
5335{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5336whose name does not start with the host triplet. If you think this
5337configuration is useful to you, please write to autoconf@gnu.org." >&5
5338echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5339whose name does not start with the host triplet. If you think this
5340configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5341ac_tool_warned=yes ;;
5342esac
5343 CXX=$ac_ct_CXX
5344 fi
d9898ee8 5345fi
5346
64ff59ba 5347 fi
5348fi
d9898ee8 5349# Provide some information about the compiler.
64ff59ba 5350echo "$as_me:$LINENO: checking for C++ compiler version" >&5
d9898ee8 5351ac_compiler=`set X $ac_compile; echo $2`
64ff59ba 5352{ (ac_try="$ac_compiler --version >&5"
5353case "(($ac_try" in
5354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5355 *) ac_try_echo=$ac_try;;
5356esac
5357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5358 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 5359 ac_status=$?
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); }
64ff59ba 5362{ (ac_try="$ac_compiler -v >&5"
5363case "(($ac_try" in
5364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5365 *) ac_try_echo=$ac_try;;
5366esac
5367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5368 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 5369 ac_status=$?
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); }
64ff59ba 5372{ (ac_try="$ac_compiler -V >&5"
5373case "(($ac_try" in
5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375 *) ac_try_echo=$ac_try;;
5376esac
5377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5378 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 5379 ac_status=$?
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); }
5382
64ff59ba 5383{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5384echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
d9898ee8 5385if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5387else
5388 cat >conftest.$ac_ext <<_ACEOF
5389/* confdefs.h. */
5390_ACEOF
5391cat confdefs.h >>conftest.$ac_ext
5392cat >>conftest.$ac_ext <<_ACEOF
5393/* end confdefs.h. */
5394
5395int
5396main ()
5397{
5398#ifndef __GNUC__
5399 choke me
5400#endif
5401
5402 ;
5403 return 0;
5404}
5405_ACEOF
5406rm -f conftest.$ac_objext
64ff59ba 5407if { (ac_try="$ac_compile"
5408case "(($ac_try" in
5409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5410 *) ac_try_echo=$ac_try;;
5411esac
5412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5413 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5414 ac_status=$?
5415 grep -v '^ *+' conftest.er1 >conftest.err
5416 rm -f conftest.er1
5417 cat conftest.err >&5
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5419 (exit $ac_status); } && {
5420 test -z "$ac_cxx_werror_flag" ||
5421 test ! -s conftest.err
5422 } && test -s conftest.$ac_objext; then
d9898ee8 5423 ac_compiler_gnu=yes
5424else
5425 echo "$as_me: failed program was:" >&5
5426sed 's/^/| /' conftest.$ac_ext >&5
5427
64ff59ba 5428 ac_compiler_gnu=no
d9898ee8 5429fi
64ff59ba 5430
5431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5432ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5433
5434fi
64ff59ba 5435{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5436echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
d9898ee8 5437GXX=`test $ac_compiler_gnu = yes && echo yes`
5438ac_test_CXXFLAGS=${CXXFLAGS+set}
5439ac_save_CXXFLAGS=$CXXFLAGS
64ff59ba 5440{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5441echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
d9898ee8 5442if test "${ac_cv_prog_cxx_g+set}" = set; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5444else
64ff59ba 5445 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5446 ac_cxx_werror_flag=yes
5447 ac_cv_prog_cxx_g=no
5448 CXXFLAGS="-g"
5449 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5450/* confdefs.h. */
5451_ACEOF
5452cat confdefs.h >>conftest.$ac_ext
5453cat >>conftest.$ac_ext <<_ACEOF
5454/* end confdefs.h. */
5455
5456int
5457main ()
5458{
5459
5460 ;
5461 return 0;
5462}
5463_ACEOF
5464rm -f conftest.$ac_objext
64ff59ba 5465if { (ac_try="$ac_compile"
5466case "(($ac_try" in
5467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5468 *) ac_try_echo=$ac_try;;
5469esac
5470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5471 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5472 ac_status=$?
5473 grep -v '^ *+' conftest.er1 >conftest.err
5474 rm -f conftest.er1
5475 cat conftest.err >&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5477 (exit $ac_status); } && {
5478 test -z "$ac_cxx_werror_flag" ||
5479 test ! -s conftest.err
5480 } && test -s conftest.$ac_objext; then
d9898ee8 5481 ac_cv_prog_cxx_g=yes
5482else
5483 echo "$as_me: failed program was:" >&5
5484sed 's/^/| /' conftest.$ac_ext >&5
5485
64ff59ba 5486 CXXFLAGS=""
5487 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5488/* confdefs.h. */
5489_ACEOF
5490cat confdefs.h >>conftest.$ac_ext
5491cat >>conftest.$ac_ext <<_ACEOF
5492/* end confdefs.h. */
64ff59ba 5493
d9898ee8 5494int
5495main ()
5496{
64ff59ba 5497
d9898ee8 5498 ;
5499 return 0;
5500}
5501_ACEOF
5502rm -f conftest.$ac_objext
64ff59ba 5503if { (ac_try="$ac_compile"
5504case "(($ac_try" in
5505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5506 *) ac_try_echo=$ac_try;;
5507esac
5508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5509 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5510 ac_status=$?
5511 grep -v '^ *+' conftest.er1 >conftest.err
5512 rm -f conftest.er1
5513 cat conftest.err >&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5515 (exit $ac_status); } && {
5516 test -z "$ac_cxx_werror_flag" ||
5517 test ! -s conftest.err
5518 } && test -s conftest.$ac_objext; then
d9898ee8 5519 :
5520else
5521 echo "$as_me: failed program was:" >&5
5522sed 's/^/| /' conftest.$ac_ext >&5
5523
64ff59ba 5524 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5525 CXXFLAGS="-g"
5526 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5527/* confdefs.h. */
5528_ACEOF
5529cat confdefs.h >>conftest.$ac_ext
5530cat >>conftest.$ac_ext <<_ACEOF
5531/* end confdefs.h. */
64ff59ba 5532
d9898ee8 5533int
5534main ()
5535{
64ff59ba 5536
d9898ee8 5537 ;
5538 return 0;
5539}
5540_ACEOF
5541rm -f conftest.$ac_objext
64ff59ba 5542if { (ac_try="$ac_compile"
5543case "(($ac_try" in
5544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5545 *) ac_try_echo=$ac_try;;
5546esac
5547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5548 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5549 ac_status=$?
5550 grep -v '^ *+' conftest.er1 >conftest.err
5551 rm -f conftest.er1
5552 cat conftest.err >&5
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5554 (exit $ac_status); } && {
5555 test -z "$ac_cxx_werror_flag" ||
5556 test ! -s conftest.err
5557 } && test -s conftest.$ac_objext; then
5558 ac_cv_prog_cxx_g=yes
d9898ee8 5559else
5560 echo "$as_me: failed program was:" >&5
5561sed 's/^/| /' conftest.$ac_ext >&5
5562
64ff59ba 5563
d9898ee8 5564fi
64ff59ba 5565
5566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5567fi
5568
64ff59ba 5569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570fi
5571
5572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5574fi
5575{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5576echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5577if test "$ac_test_CXXFLAGS" = set; then
5578 CXXFLAGS=$ac_save_CXXFLAGS
5579elif test $ac_cv_prog_cxx_g = yes; then
5580 if test "$GXX" = yes; then
5581 CXXFLAGS="-g -O2"
5582 else
5583 CXXFLAGS="-g"
5584 fi
5585else
5586 if test "$GXX" = yes; then
5587 CXXFLAGS="-O2"
5588 else
5589 CXXFLAGS=
5590 fi
5591fi
5592ac_ext=cpp
d9898ee8 5593ac_cpp='$CXXCPP $CPPFLAGS'
5594ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5595ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5596ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5597
5598depcc="$CXX" am_compiler_list=
5599
64ff59ba 5600{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5601echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
d9898ee8 5602if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6
5604else
5605 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5606 # We make a subdir and do the tests there. Otherwise we can end up
5607 # making bogus files that we don't know about and never remove. For
5608 # instance it was reported that on HP-UX the gcc test will end up
5609 # making a dummy file named `D' -- because `-MD' means `put the output
5610 # in D'.
5611 mkdir conftest.dir
5612 # Copy depcomp to subdir because otherwise we won't find it if we're
5613 # using a relative directory.
5614 cp "$am_depcomp" conftest.dir
5615 cd conftest.dir
5616 # We will build objects and dependencies in a subdirectory because
5617 # it helps to detect inapplicable dependency modes. For instance
5618 # both Tru64's cc and ICC support -MD to output dependencies as a
5619 # side effect of compilation, but ICC will put the dependencies in
5620 # the current directory while Tru64 will put them in the object
5621 # directory.
5622 mkdir sub
5623
5624 am_cv_CXX_dependencies_compiler_type=none
5625 if test "$am_compiler_list" = ""; then
5626 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5627 fi
5628 for depmode in $am_compiler_list; do
5629 # Setup a source with many dependencies, because some compilers
5630 # like to wrap large dependency lists on column 80 (with \), and
5631 # we should not choose a depcomp mode which is confused by this.
5632 #
5633 # We need to recreate these files for each test, as the compiler may
5634 # overwrite some of them when testing with obscure command lines.
5635 # This happens at least with the AIX C compiler.
5636 : > sub/conftest.c
5637 for i in 1 2 3 4 5 6; do
5638 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5639 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5640 # Solaris 8's {/usr,}/bin/sh.
5641 touch sub/conftst$i.h
5642 done
5643 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5644
5645 case $depmode in
5646 nosideeffect)
5647 # after this tag, mechanisms are not by side-effect, so they'll
5648 # only be used when explicitly requested
5649 if test "x$enable_dependency_tracking" = xyes; then
5650 continue
5651 else
5652 break
5653 fi
5654 ;;
5655 none) break ;;
5656 esac
5657 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5658 # mode. It turns out that the SunPro C++ compiler does not properly
5659 # handle `-M -o', and we need to detect this.
5660 if depmode=$depmode \
5661 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5662 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5663 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5664 >/dev/null 2>conftest.err &&
64ff59ba 5665 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 5666 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5667 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5668 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5669 # icc doesn't choke on unknown options, it will just issue warnings
5670 # or remarks (even with -Werror). So we grep stderr for any message
5671 # that says an option was ignored or not supported.
5672 # When given -MP, icc 7.0 and 7.1 complain thusly:
5673 # icc: Command line warning: ignoring option '-M'; no argument required
5674 # The diagnosis changed in icc 8.0:
5675 # icc: Command line remark: option '-MP' not supported
5676 if (grep 'ignoring option' conftest.err ||
5677 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5678 am_cv_CXX_dependencies_compiler_type=$depmode
5679 break
5680 fi
5681 fi
5682 done
5683
5684 cd ..
5685 rm -rf conftest.dir
5686else
5687 am_cv_CXX_dependencies_compiler_type=none
5688fi
5689
5690fi
64ff59ba 5691{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5692echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
d9898ee8 5693CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5694
64ff59ba 5695 if
d9898ee8 5696 test "x$enable_dependency_tracking" != xno \
5697 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5698 am__fastdepCXX_TRUE=
5699 am__fastdepCXX_FALSE='#'
5700else
5701 am__fastdepCXX_TRUE='#'
5702 am__fastdepCXX_FALSE=
5703fi
5704
5705
5706
5707
5708if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5709 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5710 (test "X$CXX" != "Xg++"))) ; then
64ff59ba 5711 ac_ext=cpp
d9898ee8 5712ac_cpp='$CXXCPP $CPPFLAGS'
5713ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5714ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5715ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
64ff59ba 5716{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5717echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
d9898ee8 5718if test -z "$CXXCPP"; then
5719 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5720 echo $ECHO_N "(cached) $ECHO_C" >&6
5721else
5722 # Double quotes because CXXCPP needs to be expanded
5723 for CXXCPP in "$CXX -E" "/lib/cpp"
5724 do
5725 ac_preproc_ok=false
5726for ac_cxx_preproc_warn_flag in '' yes
5727do
5728 # Use a header file that comes with gcc, so configuring glibc
5729 # with a fresh cross-compiler works.
5730 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5731 # <limits.h> exists even on freestanding compilers.
5732 # On the NeXT, cc -E runs the code through the compiler's parser,
5733 # not just through cpp. "Syntax error" is here to catch this case.
5734 cat >conftest.$ac_ext <<_ACEOF
5735/* confdefs.h. */
5736_ACEOF
5737cat confdefs.h >>conftest.$ac_ext
5738cat >>conftest.$ac_ext <<_ACEOF
5739/* end confdefs.h. */
5740#ifdef __STDC__
5741# include <limits.h>
5742#else
5743# include <assert.h>
5744#endif
5745 Syntax error
5746_ACEOF
64ff59ba 5747if { (ac_try="$ac_cpp conftest.$ac_ext"
5748case "(($ac_try" in
5749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5750 *) ac_try_echo=$ac_try;;
5751esac
5752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5754 ac_status=$?
5755 grep -v '^ *+' conftest.er1 >conftest.err
5756 rm -f conftest.er1
5757 cat conftest.err >&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5759 (exit $ac_status); } >/dev/null && {
5760 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5761 test ! -s conftest.err
5762 }; then
d9898ee8 5763 :
5764else
5765 echo "$as_me: failed program was:" >&5
5766sed 's/^/| /' conftest.$ac_ext >&5
5767
5768 # Broken: fails on valid input.
5769continue
5770fi
64ff59ba 5771
d9898ee8 5772rm -f conftest.err conftest.$ac_ext
5773
64ff59ba 5774 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 5775 # can be detected and how.
5776 cat >conftest.$ac_ext <<_ACEOF
5777/* confdefs.h. */
5778_ACEOF
5779cat confdefs.h >>conftest.$ac_ext
5780cat >>conftest.$ac_ext <<_ACEOF
5781/* end confdefs.h. */
5782#include <ac_nonexistent.h>
5783_ACEOF
64ff59ba 5784if { (ac_try="$ac_cpp conftest.$ac_ext"
5785case "(($ac_try" in
5786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5787 *) ac_try_echo=$ac_try;;
5788esac
5789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5791 ac_status=$?
5792 grep -v '^ *+' conftest.er1 >conftest.err
5793 rm -f conftest.er1
5794 cat conftest.err >&5
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5796 (exit $ac_status); } >/dev/null && {
5797 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5798 test ! -s conftest.err
5799 }; then
d9898ee8 5800 # Broken: success on invalid input.
5801continue
5802else
5803 echo "$as_me: failed program was:" >&5
5804sed 's/^/| /' conftest.$ac_ext >&5
5805
5806 # Passes both tests.
5807ac_preproc_ok=:
5808break
5809fi
64ff59ba 5810
d9898ee8 5811rm -f conftest.err conftest.$ac_ext
5812
5813done
5814# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5815rm -f conftest.err conftest.$ac_ext
5816if $ac_preproc_ok; then
5817 break
5818fi
5819
5820 done
5821 ac_cv_prog_CXXCPP=$CXXCPP
5822
5823fi
5824 CXXCPP=$ac_cv_prog_CXXCPP
5825else
5826 ac_cv_prog_CXXCPP=$CXXCPP
5827fi
64ff59ba 5828{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5829echo "${ECHO_T}$CXXCPP" >&6; }
d9898ee8 5830ac_preproc_ok=false
5831for ac_cxx_preproc_warn_flag in '' yes
5832do
5833 # Use a header file that comes with gcc, so configuring glibc
5834 # with a fresh cross-compiler works.
5835 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5836 # <limits.h> exists even on freestanding compilers.
5837 # On the NeXT, cc -E runs the code through the compiler's parser,
5838 # not just through cpp. "Syntax error" is here to catch this case.
5839 cat >conftest.$ac_ext <<_ACEOF
5840/* confdefs.h. */
5841_ACEOF
5842cat confdefs.h >>conftest.$ac_ext
5843cat >>conftest.$ac_ext <<_ACEOF
5844/* end confdefs.h. */
5845#ifdef __STDC__
5846# include <limits.h>
5847#else
5848# include <assert.h>
5849#endif
5850 Syntax error
5851_ACEOF
64ff59ba 5852if { (ac_try="$ac_cpp conftest.$ac_ext"
5853case "(($ac_try" in
5854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5855 *) ac_try_echo=$ac_try;;
5856esac
5857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5859 ac_status=$?
5860 grep -v '^ *+' conftest.er1 >conftest.err
5861 rm -f conftest.er1
5862 cat conftest.err >&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5864 (exit $ac_status); } >/dev/null && {
5865 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5866 test ! -s conftest.err
5867 }; then
d9898ee8 5868 :
5869else
5870 echo "$as_me: failed program was:" >&5
5871sed 's/^/| /' conftest.$ac_ext >&5
5872
5873 # Broken: fails on valid input.
5874continue
5875fi
64ff59ba 5876
d9898ee8 5877rm -f conftest.err conftest.$ac_ext
5878
64ff59ba 5879 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 5880 # can be detected and how.
5881 cat >conftest.$ac_ext <<_ACEOF
5882/* confdefs.h. */
5883_ACEOF
5884cat confdefs.h >>conftest.$ac_ext
5885cat >>conftest.$ac_ext <<_ACEOF
5886/* end confdefs.h. */
5887#include <ac_nonexistent.h>
5888_ACEOF
64ff59ba 5889if { (ac_try="$ac_cpp conftest.$ac_ext"
5890case "(($ac_try" in
5891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5892 *) ac_try_echo=$ac_try;;
5893esac
5894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5896 ac_status=$?
5897 grep -v '^ *+' conftest.er1 >conftest.err
5898 rm -f conftest.er1
5899 cat conftest.err >&5
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5901 (exit $ac_status); } >/dev/null && {
5902 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5903 test ! -s conftest.err
5904 }; then
d9898ee8 5905 # Broken: success on invalid input.
5906continue
5907else
5908 echo "$as_me: failed program was:" >&5
5909sed 's/^/| /' conftest.$ac_ext >&5
5910
5911 # Passes both tests.
5912ac_preproc_ok=:
5913break
5914fi
64ff59ba 5915
d9898ee8 5916rm -f conftest.err conftest.$ac_ext
5917
5918done
5919# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5920rm -f conftest.err conftest.$ac_ext
5921if $ac_preproc_ok; then
5922 :
5923else
5924 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5925See \`config.log' for more details." >&5
5926echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5927See \`config.log' for more details." >&2;}
5928 { (exit 1); exit 1; }; }
5929fi
5930
64ff59ba 5931ac_ext=cpp
d9898ee8 5932ac_cpp='$CXXCPP $CPPFLAGS'
5933ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5934ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5935ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5936
5937fi
5938
5939
5940ac_ext=f
5941ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5942ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5943ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5944if test -n "$ac_tool_prefix"; then
64ff59ba 5945 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 5946 do
5947 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5948set dummy $ac_tool_prefix$ac_prog; ac_word=$2
64ff59ba 5949{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5951if test "${ac_cv_prog_F77+set}" = set; then
5952 echo $ECHO_N "(cached) $ECHO_C" >&6
5953else
5954 if test -n "$F77"; then
5955 ac_cv_prog_F77="$F77" # Let the user override the test.
5956else
5957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958for as_dir in $PATH
5959do
5960 IFS=$as_save_IFS
5961 test -z "$as_dir" && as_dir=.
5962 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 5963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5964 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5966 break 2
5967 fi
5968done
5969done
64ff59ba 5970IFS=$as_save_IFS
d9898ee8 5971
5972fi
5973fi
5974F77=$ac_cv_prog_F77
5975if test -n "$F77"; then
64ff59ba 5976 { echo "$as_me:$LINENO: result: $F77" >&5
5977echo "${ECHO_T}$F77" >&6; }
d9898ee8 5978else
64ff59ba 5979 { echo "$as_me:$LINENO: result: no" >&5
5980echo "${ECHO_T}no" >&6; }
d9898ee8 5981fi
5982
64ff59ba 5983
d9898ee8 5984 test -n "$F77" && break
5985 done
5986fi
5987if test -z "$F77"; then
5988 ac_ct_F77=$F77
64ff59ba 5989 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 5990do
5991 # Extract the first word of "$ac_prog", so it can be a program name with args.
5992set dummy $ac_prog; ac_word=$2
64ff59ba 5993{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5995if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5996 echo $ECHO_N "(cached) $ECHO_C" >&6
5997else
5998 if test -n "$ac_ct_F77"; then
5999 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6000else
6001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002for as_dir in $PATH
6003do
6004 IFS=$as_save_IFS
6005 test -z "$as_dir" && as_dir=.
6006 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6008 ac_cv_prog_ac_ct_F77="$ac_prog"
6009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6010 break 2
6011 fi
6012done
6013done
64ff59ba 6014IFS=$as_save_IFS
d9898ee8 6015
6016fi
6017fi
6018ac_ct_F77=$ac_cv_prog_ac_ct_F77
6019if test -n "$ac_ct_F77"; then
64ff59ba 6020 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6021echo "${ECHO_T}$ac_ct_F77" >&6; }
d9898ee8 6022else
64ff59ba 6023 { echo "$as_me:$LINENO: result: no" >&5
6024echo "${ECHO_T}no" >&6; }
d9898ee8 6025fi
6026
64ff59ba 6027
d9898ee8 6028 test -n "$ac_ct_F77" && break
6029done
6030
64ff59ba 6031 if test "x$ac_ct_F77" = x; then
6032 F77=""
6033 else
6034 case $cross_compiling:$ac_tool_warned in
6035yes:)
6036{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6037whose name does not start with the host triplet. If you think this
6038configuration is useful to you, please write to autoconf@gnu.org." >&5
6039echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6040whose name does not start with the host triplet. If you think this
6041configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6042ac_tool_warned=yes ;;
6043esac
6044 F77=$ac_ct_F77
6045 fi
d9898ee8 6046fi
6047
6048
6049# Provide some information about the compiler.
64ff59ba 6050echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
d9898ee8 6051ac_compiler=`set X $ac_compile; echo $2`
64ff59ba 6052{ (ac_try="$ac_compiler --version >&5"
6053case "(($ac_try" in
6054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6055 *) ac_try_echo=$ac_try;;
6056esac
6057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6058 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 6059 ac_status=$?
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); }
64ff59ba 6062{ (ac_try="$ac_compiler -v >&5"
6063case "(($ac_try" in
6064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6065 *) ac_try_echo=$ac_try;;
6066esac
6067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6068 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 6069 ac_status=$?
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }
64ff59ba 6072{ (ac_try="$ac_compiler -V >&5"
6073case "(($ac_try" in
6074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6075 *) ac_try_echo=$ac_try;;
6076esac
6077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6078 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 6079 ac_status=$?
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); }
6082rm -f a.out
6083
6084# If we don't use `.F' as extension, the preprocessor is not run on the
6085# input file. (Note that this only needs to work for GNU compilers.)
6086ac_save_ext=$ac_ext
6087ac_ext=F
64ff59ba 6088{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6089echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
d9898ee8 6090if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
6092else
6093 cat >conftest.$ac_ext <<_ACEOF
6094 program main
6095#ifndef __GNUC__
6096 choke me
6097#endif
6098
6099 end
6100_ACEOF
6101rm -f conftest.$ac_objext
64ff59ba 6102if { (ac_try="$ac_compile"
6103case "(($ac_try" in
6104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6105 *) ac_try_echo=$ac_try;;
6106esac
6107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6108 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6109 ac_status=$?
6110 grep -v '^ *+' conftest.er1 >conftest.err
6111 rm -f conftest.er1
6112 cat conftest.err >&5
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6114 (exit $ac_status); } && {
6115 test -z "$ac_f77_werror_flag" ||
6116 test ! -s conftest.err
6117 } && test -s conftest.$ac_objext; then
d9898ee8 6118 ac_compiler_gnu=yes
6119else
6120 echo "$as_me: failed program was:" >&5
6121sed 's/^/| /' conftest.$ac_ext >&5
6122
64ff59ba 6123 ac_compiler_gnu=no
d9898ee8 6124fi
64ff59ba 6125
6126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6127ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6128
6129fi
64ff59ba 6130{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6131echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
d9898ee8 6132ac_ext=$ac_save_ext
6133ac_test_FFLAGS=${FFLAGS+set}
6134ac_save_FFLAGS=$FFLAGS
6135FFLAGS=
64ff59ba 6136{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6137echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
d9898ee8 6138if test "${ac_cv_prog_f77_g+set}" = set; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
6140else
6141 FFLAGS=-g
6142cat >conftest.$ac_ext <<_ACEOF
6143 program main
6144
6145 end
6146_ACEOF
6147rm -f conftest.$ac_objext
64ff59ba 6148if { (ac_try="$ac_compile"
6149case "(($ac_try" in
6150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6151 *) ac_try_echo=$ac_try;;
6152esac
6153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6154 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6155 ac_status=$?
6156 grep -v '^ *+' conftest.er1 >conftest.err
6157 rm -f conftest.er1
6158 cat conftest.err >&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6160 (exit $ac_status); } && {
6161 test -z "$ac_f77_werror_flag" ||
6162 test ! -s conftest.err
6163 } && test -s conftest.$ac_objext; then
d9898ee8 6164 ac_cv_prog_f77_g=yes
6165else
6166 echo "$as_me: failed program was:" >&5
6167sed 's/^/| /' conftest.$ac_ext >&5
6168
64ff59ba 6169 ac_cv_prog_f77_g=no
d9898ee8 6170fi
64ff59ba 6171
6172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6173
6174fi
64ff59ba 6175{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6176echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
d9898ee8 6177if test "$ac_test_FFLAGS" = set; then
6178 FFLAGS=$ac_save_FFLAGS
6179elif test $ac_cv_prog_f77_g = yes; then
6180 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6181 FFLAGS="-g -O2"
6182 else
6183 FFLAGS="-g"
6184 fi
6185else
6186 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6187 FFLAGS="-O2"
6188 else
6189 FFLAGS=
6190 fi
6191fi
6192
6193G77=`test $ac_compiler_gnu = yes && echo yes`
6194ac_ext=c
6195ac_cpp='$CPP $CPPFLAGS'
6196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6198ac_compiler_gnu=$ac_cv_c_compiler_gnu
6199
6200
6201
6202# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6203
6204# find the maximum length of command line arguments
64ff59ba 6205{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6206echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
d9898ee8 6207if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6209else
6210 i=0
6211 teststring="ABCD"
6212
6213 case $build_os in
6214 msdosdjgpp*)
6215 # On DJGPP, this test can blow up pretty badly due to problems in libc
6216 # (any single argument exceeding 2000 bytes causes a buffer overrun
6217 # during glob expansion). Even if it were fixed, the result of this
6218 # check would be larger than it should be.
6219 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6220 ;;
6221
6222 gnu*)
6223 # Under GNU Hurd, this test is not required because there is
6224 # no limit to the length of command line arguments.
6225 # Libtool will interpret -1 as no limit whatsoever
6226 lt_cv_sys_max_cmd_len=-1;
6227 ;;
6228
6229 cygwin* | mingw*)
6230 # On Win9x/ME, this test blows up -- it succeeds, but takes
6231 # about 5 minutes as the teststring grows exponentially.
6232 # Worse, since 9x/ME are not pre-emptively multitasking,
6233 # you end up with a "frozen" computer, even though with patience
6234 # the test eventually succeeds (with a max line length of 256k).
6235 # Instead, let's just punt: use the minimum linelength reported by
6236 # all of the supported platforms: 8192 (on NT/2K/XP).
6237 lt_cv_sys_max_cmd_len=8192;
6238 ;;
6239
6240 amigaos*)
6241 # On AmigaOS with pdksh, this test takes hours, literally.
6242 # So we just punt and use a minimum line length of 8192.
6243 lt_cv_sys_max_cmd_len=8192;
6244 ;;
6245
6246 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6247 # This has been around since 386BSD, at least. Likely further.
6248 if test -x /sbin/sysctl; then
6249 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6250 elif test -x /usr/sbin/sysctl; then
6251 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6252 else
6253 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6254 fi
6255 # And add a safety zone
6256 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6257 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6258 ;;
6259
6260 interix*)
6261 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6262 lt_cv_sys_max_cmd_len=196608
6263 ;;
6264
6265 osf*)
6266 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6267 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6268 # nice to cause kernel panics so lets avoid the loop below.
6269 # First set a reasonable default.
6270 lt_cv_sys_max_cmd_len=16384
6271 #
6272 if test -x /sbin/sysconfig; then
6273 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6274 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6275 esac
6276 fi
6277 ;;
6278 sco3.2v5*)
6279 lt_cv_sys_max_cmd_len=102400
6280 ;;
6281 sysv5* | sco5v6* | sysv4.2uw2*)
6282 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6283 if test -n "$kargmax"; then
6284 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6285 else
6286 lt_cv_sys_max_cmd_len=32768
6287 fi
6288 ;;
6289 *)
6290 # If test is not a shell built-in, we'll probably end up computing a
6291 # maximum length that is only half of the actual maximum length, but
6292 # we can't tell.
6293 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6294 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6295 = "XX$teststring") >/dev/null 2>&1 &&
6296 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6297 lt_cv_sys_max_cmd_len=$new_result &&
6298 test $i != 17 # 1/2 MB should be enough
6299 do
6300 i=`expr $i + 1`
6301 teststring=$teststring$teststring
6302 done
6303 teststring=
6304 # Add a significant safety factor because C++ compilers can tack on massive
6305 # amounts of additional arguments before passing them to the linker.
6306 # It appears as though 1/2 is a usable value.
6307 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6308 ;;
6309 esac
6310
6311fi
6312
6313if test -n $lt_cv_sys_max_cmd_len ; then
64ff59ba 6314 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6315echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
d9898ee8 6316else
64ff59ba 6317 { echo "$as_me:$LINENO: result: none" >&5
6318echo "${ECHO_T}none" >&6; }
d9898ee8 6319fi
6320
6321
6322
6323
6324# Check for command to grab the raw symbol name followed by C symbol from nm.
64ff59ba 6325{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6326echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
d9898ee8 6327if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
6329else
6330
6331# These are sane defaults that work on at least a few old systems.
6332# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6333
6334# Character class describing NM global symbol codes.
6335symcode='[BCDEGRST]'
6336
6337# Regexp to match symbols that can be accessed directly from C.
6338sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6339
6340# Transform an extracted symbol line into a proper C declaration
6341lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6342
6343# Transform an extracted symbol line into symbol name and symbol address
6344lt_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'"
6345
6346# Define system-specific variables.
6347case $host_os in
6348aix*)
6349 symcode='[BCDT]'
6350 ;;
6351cygwin* | mingw* | pw32*)
6352 symcode='[ABCDGISTW]'
6353 ;;
6354hpux*) # Its linker distinguishes data from code symbols
6355 if test "$host_cpu" = ia64; then
6356 symcode='[ABCDEGRST]'
6357 fi
6358 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6359 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'"
6360 ;;
6361linux*)
6362 if test "$host_cpu" = ia64; then
6363 symcode='[ABCDGIRSTW]'
6364 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6365 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'"
6366 fi
6367 ;;
6368irix* | nonstopux*)
6369 symcode='[BCDEGRST]'
6370 ;;
6371osf*)
6372 symcode='[BCDEGQRST]'
6373 ;;
6374solaris*)
6375 symcode='[BDRT]'
6376 ;;
6377sco3.2v5*)
6378 symcode='[DT]'
6379 ;;
6380sysv4.2uw2*)
6381 symcode='[DT]'
6382 ;;
6383sysv5* | sco5v6* | unixware* | OpenUNIX*)
6384 symcode='[ABDT]'
6385 ;;
6386sysv4)
6387 symcode='[DFNSTU]'
6388 ;;
6389esac
6390
6391# Handle CRLF in mingw tool chain
6392opt_cr=
6393case $build_os in
6394mingw*)
6395 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6396 ;;
6397esac
6398
6399# If we're using GNU nm, then use its standard symbol codes.
6400case `$NM -V 2>&1` in
6401*GNU* | *'with BFD'*)
6402 symcode='[ABCDGIRSTW]' ;;
6403esac
6404
6405# Try without a prefix undercore, then with it.
6406for ac_symprfx in "" "_"; do
6407
6408 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6409 symxfrm="\\1 $ac_symprfx\\2 \\2"
6410
6411 # Write the raw and C identifiers.
6412 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6413
6414 # Check to see that the pipe works correctly.
6415 pipe_works=no
6416
6417 rm -f conftest*
6418 cat > conftest.$ac_ext <<EOF
6419#ifdef __cplusplus
6420extern "C" {
6421#endif
6422char nm_test_var;
6423void nm_test_func(){}
6424#ifdef __cplusplus
6425}
6426#endif
6427int main(){nm_test_var='a';nm_test_func();return(0);}
6428EOF
6429
6430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6431 (eval $ac_compile) 2>&5
6432 ac_status=$?
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); }; then
6435 # Now try to grab the symbols.
6436 nlist=conftest.nm
6437 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6438 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6439 ac_status=$?
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); } && test -s "$nlist"; then
6442 # Try sorting and uniquifying the output.
6443 if sort "$nlist" | uniq > "$nlist"T; then
6444 mv -f "$nlist"T "$nlist"
6445 else
6446 rm -f "$nlist"T
6447 fi
6448
6449 # Make sure that we snagged all the symbols we need.
6450 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6451 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6452 cat <<EOF > conftest.$ac_ext
6453#ifdef __cplusplus
6454extern "C" {
6455#endif
6456
6457EOF
6458 # Now generate the symbol file.
6459 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6460
6461 cat <<EOF >> conftest.$ac_ext
6462#if defined (__STDC__) && __STDC__
6463# define lt_ptr_t void *
6464#else
6465# define lt_ptr_t char *
6466# define const
6467#endif
6468
6469/* The mapping between symbol names and symbols. */
6470const struct {
6471 const char *name;
6472 lt_ptr_t address;
6473}
6474lt_preloaded_symbols[] =
6475{
6476EOF
6477 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6478 cat <<\EOF >> conftest.$ac_ext
6479 {0, (lt_ptr_t) 0}
6480};
6481
6482#ifdef __cplusplus
6483}
6484#endif
6485EOF
6486 # Now try linking the two files.
6487 mv conftest.$ac_objext conftstm.$ac_objext
6488 lt_save_LIBS="$LIBS"
6489 lt_save_CFLAGS="$CFLAGS"
6490 LIBS="conftstm.$ac_objext"
6491 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6493 (eval $ac_link) 2>&5
6494 ac_status=$?
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6497 pipe_works=yes
6498 fi
6499 LIBS="$lt_save_LIBS"
6500 CFLAGS="$lt_save_CFLAGS"
6501 else
6502 echo "cannot find nm_test_func in $nlist" >&5
6503 fi
6504 else
6505 echo "cannot find nm_test_var in $nlist" >&5
6506 fi
6507 else
6508 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6509 fi
6510 else
6511 echo "$progname: failed program was:" >&5
6512 cat conftest.$ac_ext >&5
6513 fi
6514 rm -f conftest* conftst*
6515
6516 # Do not use the global_symbol_pipe unless it works.
6517 if test "$pipe_works" = yes; then
6518 break
6519 else
6520 lt_cv_sys_global_symbol_pipe=
6521 fi
6522done
6523
6524fi
6525
6526if test -z "$lt_cv_sys_global_symbol_pipe"; then
6527 lt_cv_sys_global_symbol_to_cdecl=
6528fi
6529if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
64ff59ba 6530 { echo "$as_me:$LINENO: result: failed" >&5
6531echo "${ECHO_T}failed" >&6; }
d9898ee8 6532else
64ff59ba 6533 { echo "$as_me:$LINENO: result: ok" >&5
6534echo "${ECHO_T}ok" >&6; }
d9898ee8 6535fi
6536
64ff59ba 6537{ echo "$as_me:$LINENO: checking for objdir" >&5
6538echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
d9898ee8 6539if test "${lt_cv_objdir+set}" = set; then
6540 echo $ECHO_N "(cached) $ECHO_C" >&6
6541else
6542 rm -f .libs 2>/dev/null
6543mkdir .libs 2>/dev/null
6544if test -d .libs; then
6545 lt_cv_objdir=.libs
6546else
6547 # MS-DOS does not allow filenames that begin with a dot.
6548 lt_cv_objdir=_libs
6549fi
6550rmdir .libs 2>/dev/null
6551fi
64ff59ba 6552{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6553echo "${ECHO_T}$lt_cv_objdir" >&6; }
d9898ee8 6554objdir=$lt_cv_objdir
6555
6556
6557
6558
6559
6560case $host_os in
6561aix3*)
6562 # AIX sometimes has problems with the GCC collect2 program. For some
6563 # reason, if we set the COLLECT_NAMES environment variable, the problems
6564 # vanish in a puff of smoke.
6565 if test "X${COLLECT_NAMES+set}" != Xset; then
6566 COLLECT_NAMES=
6567 export COLLECT_NAMES
6568 fi
6569 ;;
6570esac
6571
6572# Sed substitution that helps us do robust quoting. It backslashifies
6573# metacharacters that are still active within double-quoted strings.
6574Xsed='sed -e 1s/^X//'
6575sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6576
6577# Same as above, but do not quote variable references.
6578double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6579
6580# Sed substitution to delay expansion of an escaped shell variable in a
6581# double_quote_subst'ed string.
6582delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6583
6584# Sed substitution to avoid accidental globbing in evaled expressions
6585no_glob_subst='s/\*/\\\*/g'
6586
6587# Constants:
6588rm="rm -f"
6589
6590# Global variables:
6591default_ofile=libtool
6592can_build_shared=yes
6593
6594# All known linkers require a `.a' archive for static linking (except MSVC,
6595# which needs '.lib').
6596libext=a
6597ltmain="$ac_aux_dir/ltmain.sh"
6598ofile="$default_ofile"
6599with_gnu_ld="$lt_cv_prog_gnu_ld"
6600
6601if test -n "$ac_tool_prefix"; then
6602 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6603set dummy ${ac_tool_prefix}ar; ac_word=$2
64ff59ba 6604{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6606if test "${ac_cv_prog_AR+set}" = set; then
6607 echo $ECHO_N "(cached) $ECHO_C" >&6
6608else
6609 if test -n "$AR"; then
6610 ac_cv_prog_AR="$AR" # Let the user override the test.
6611else
6612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613for as_dir in $PATH
6614do
6615 IFS=$as_save_IFS
6616 test -z "$as_dir" && as_dir=.
6617 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6619 ac_cv_prog_AR="${ac_tool_prefix}ar"
6620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6621 break 2
6622 fi
6623done
6624done
64ff59ba 6625IFS=$as_save_IFS
d9898ee8 6626
6627fi
6628fi
6629AR=$ac_cv_prog_AR
6630if test -n "$AR"; then
64ff59ba 6631 { echo "$as_me:$LINENO: result: $AR" >&5
6632echo "${ECHO_T}$AR" >&6; }
d9898ee8 6633else
64ff59ba 6634 { echo "$as_me:$LINENO: result: no" >&5
6635echo "${ECHO_T}no" >&6; }
d9898ee8 6636fi
6637
64ff59ba 6638
d9898ee8 6639fi
6640if test -z "$ac_cv_prog_AR"; then
6641 ac_ct_AR=$AR
6642 # Extract the first word of "ar", so it can be a program name with args.
6643set dummy ar; ac_word=$2
64ff59ba 6644{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6646if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6647 echo $ECHO_N "(cached) $ECHO_C" >&6
6648else
6649 if test -n "$ac_ct_AR"; then
6650 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6651else
6652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653for as_dir in $PATH
6654do
6655 IFS=$as_save_IFS
6656 test -z "$as_dir" && as_dir=.
6657 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6659 ac_cv_prog_ac_ct_AR="ar"
6660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6661 break 2
6662 fi
6663done
6664done
64ff59ba 6665IFS=$as_save_IFS
d9898ee8 6666
d9898ee8 6667fi
6668fi
6669ac_ct_AR=$ac_cv_prog_ac_ct_AR
6670if test -n "$ac_ct_AR"; then
64ff59ba 6671 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6672echo "${ECHO_T}$ac_ct_AR" >&6; }
d9898ee8 6673else
64ff59ba 6674 { echo "$as_me:$LINENO: result: no" >&5
6675echo "${ECHO_T}no" >&6; }
d9898ee8 6676fi
6677
64ff59ba 6678 if test "x$ac_ct_AR" = x; then
6679 AR="false"
6680 else
6681 case $cross_compiling:$ac_tool_warned in
6682yes:)
6683{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6684whose name does not start with the host triplet. If you think this
6685configuration is useful to you, please write to autoconf@gnu.org." >&5
6686echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6687whose name does not start with the host triplet. If you think this
6688configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6689ac_tool_warned=yes ;;
6690esac
6691 AR=$ac_ct_AR
6692 fi
d9898ee8 6693else
6694 AR="$ac_cv_prog_AR"
6695fi
6696
6697if test -n "$ac_tool_prefix"; then
6698 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6699set dummy ${ac_tool_prefix}ranlib; ac_word=$2
64ff59ba 6700{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6702if test "${ac_cv_prog_RANLIB+set}" = set; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
6704else
6705 if test -n "$RANLIB"; then
6706 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6707else
6708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709for as_dir in $PATH
6710do
6711 IFS=$as_save_IFS
6712 test -z "$as_dir" && as_dir=.
6713 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6715 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6717 break 2
6718 fi
6719done
6720done
64ff59ba 6721IFS=$as_save_IFS
d9898ee8 6722
6723fi
6724fi
6725RANLIB=$ac_cv_prog_RANLIB
6726if test -n "$RANLIB"; then
64ff59ba 6727 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6728echo "${ECHO_T}$RANLIB" >&6; }
d9898ee8 6729else
64ff59ba 6730 { echo "$as_me:$LINENO: result: no" >&5
6731echo "${ECHO_T}no" >&6; }
d9898ee8 6732fi
6733
64ff59ba 6734
d9898ee8 6735fi
6736if test -z "$ac_cv_prog_RANLIB"; then
6737 ac_ct_RANLIB=$RANLIB
6738 # Extract the first word of "ranlib", so it can be a program name with args.
6739set dummy ranlib; ac_word=$2
64ff59ba 6740{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6742if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6743 echo $ECHO_N "(cached) $ECHO_C" >&6
6744else
6745 if test -n "$ac_ct_RANLIB"; then
6746 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6747else
6748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749for as_dir in $PATH
6750do
6751 IFS=$as_save_IFS
6752 test -z "$as_dir" && as_dir=.
6753 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6755 ac_cv_prog_ac_ct_RANLIB="ranlib"
6756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6757 break 2
6758 fi
6759done
6760done
64ff59ba 6761IFS=$as_save_IFS
d9898ee8 6762
d9898ee8 6763fi
6764fi
6765ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6766if test -n "$ac_ct_RANLIB"; then
64ff59ba 6767 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6768echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
d9898ee8 6769else
64ff59ba 6770 { echo "$as_me:$LINENO: result: no" >&5
6771echo "${ECHO_T}no" >&6; }
d9898ee8 6772fi
6773
64ff59ba 6774 if test "x$ac_ct_RANLIB" = x; then
6775 RANLIB=":"
6776 else
6777 case $cross_compiling:$ac_tool_warned in
6778yes:)
6779{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6780whose name does not start with the host triplet. If you think this
6781configuration is useful to you, please write to autoconf@gnu.org." >&5
6782echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6783whose name does not start with the host triplet. If you think this
6784configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6785ac_tool_warned=yes ;;
6786esac
6787 RANLIB=$ac_ct_RANLIB
6788 fi
d9898ee8 6789else
6790 RANLIB="$ac_cv_prog_RANLIB"
6791fi
6792
6793if test -n "$ac_tool_prefix"; then
6794 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6795set dummy ${ac_tool_prefix}strip; ac_word=$2
64ff59ba 6796{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6798if test "${ac_cv_prog_STRIP+set}" = set; then
6799 echo $ECHO_N "(cached) $ECHO_C" >&6
6800else
6801 if test -n "$STRIP"; then
6802 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6803else
6804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805for as_dir in $PATH
6806do
6807 IFS=$as_save_IFS
6808 test -z "$as_dir" && as_dir=.
6809 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6811 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6813 break 2
6814 fi
6815done
6816done
64ff59ba 6817IFS=$as_save_IFS
d9898ee8 6818
6819fi
6820fi
6821STRIP=$ac_cv_prog_STRIP
6822if test -n "$STRIP"; then
64ff59ba 6823 { echo "$as_me:$LINENO: result: $STRIP" >&5
6824echo "${ECHO_T}$STRIP" >&6; }
d9898ee8 6825else
64ff59ba 6826 { echo "$as_me:$LINENO: result: no" >&5
6827echo "${ECHO_T}no" >&6; }
d9898ee8 6828fi
6829
64ff59ba 6830
d9898ee8 6831fi
6832if test -z "$ac_cv_prog_STRIP"; then
6833 ac_ct_STRIP=$STRIP
6834 # Extract the first word of "strip", so it can be a program name with args.
6835set dummy strip; ac_word=$2
64ff59ba 6836{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6838if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6839 echo $ECHO_N "(cached) $ECHO_C" >&6
6840else
6841 if test -n "$ac_ct_STRIP"; then
6842 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6843else
6844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845for as_dir in $PATH
6846do
6847 IFS=$as_save_IFS
6848 test -z "$as_dir" && as_dir=.
6849 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6851 ac_cv_prog_ac_ct_STRIP="strip"
6852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6853 break 2
6854 fi
6855done
6856done
64ff59ba 6857IFS=$as_save_IFS
d9898ee8 6858
d9898ee8 6859fi
6860fi
6861ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6862if test -n "$ac_ct_STRIP"; then
64ff59ba 6863 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6864echo "${ECHO_T}$ac_ct_STRIP" >&6; }
d9898ee8 6865else
64ff59ba 6866 { echo "$as_me:$LINENO: result: no" >&5
6867echo "${ECHO_T}no" >&6; }
d9898ee8 6868fi
6869
64ff59ba 6870 if test "x$ac_ct_STRIP" = x; then
6871 STRIP=":"
6872 else
6873 case $cross_compiling:$ac_tool_warned in
6874yes:)
6875{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6876whose name does not start with the host triplet. If you think this
6877configuration is useful to you, please write to autoconf@gnu.org." >&5
6878echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6879whose name does not start with the host triplet. If you think this
6880configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6881ac_tool_warned=yes ;;
6882esac
6883 STRIP=$ac_ct_STRIP
6884 fi
d9898ee8 6885else
6886 STRIP="$ac_cv_prog_STRIP"
6887fi
6888
6889
6890old_CC="$CC"
6891old_CFLAGS="$CFLAGS"
6892
6893# Set sane defaults for various variables
6894test -z "$AR" && AR=ar
6895test -z "$AR_FLAGS" && AR_FLAGS=cru
6896test -z "$AS" && AS=as
6897test -z "$CC" && CC=cc
6898test -z "$LTCC" && LTCC=$CC
6899test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6900test -z "$DLLTOOL" && DLLTOOL=dlltool
6901test -z "$LD" && LD=ld
6902test -z "$LN_S" && LN_S="ln -s"
6903test -z "$MAGIC_CMD" && MAGIC_CMD=file
6904test -z "$NM" && NM=nm
6905test -z "$SED" && SED=sed
6906test -z "$OBJDUMP" && OBJDUMP=objdump
6907test -z "$RANLIB" && RANLIB=:
6908test -z "$STRIP" && STRIP=:
6909test -z "$ac_objext" && ac_objext=o
6910
6911# Determine commands to create old-style static archives.
6912old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6913old_postinstall_cmds='chmod 644 $oldlib'
6914old_postuninstall_cmds=
6915
6916if test -n "$RANLIB"; then
6917 case $host_os in
6918 openbsd*)
6919 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6920 ;;
6921 *)
6922 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6923 ;;
6924 esac
6925 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6926fi
6927
6928for cc_temp in $compiler""; do
6929 case $cc_temp in
6930 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6931 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6932 \-*) ;;
6933 *) break;;
6934 esac
6935done
6936cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6937
6938
6939# Only perform the check for file, if the check method requires it
6940case $deplibs_check_method in
6941file_magic*)
6942 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
64ff59ba 6943 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6944echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
d9898ee8 6945if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6946 echo $ECHO_N "(cached) $ECHO_C" >&6
6947else
6948 case $MAGIC_CMD in
6949[\\/*] | ?:[\\/]*)
6950 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6951 ;;
6952*)
6953 lt_save_MAGIC_CMD="$MAGIC_CMD"
6954 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6955 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6956 for ac_dir in $ac_dummy; do
6957 IFS="$lt_save_ifs"
6958 test -z "$ac_dir" && ac_dir=.
6959 if test -f $ac_dir/${ac_tool_prefix}file; then
6960 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6961 if test -n "$file_magic_test_file"; then
6962 case $deplibs_check_method in
6963 "file_magic "*)
6964 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6965 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6966 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6967 $EGREP "$file_magic_regex" > /dev/null; then
6968 :
6969 else
6970 cat <<EOF 1>&2
6971
6972*** Warning: the command libtool uses to detect shared libraries,
6973*** $file_magic_cmd, produces output that libtool cannot recognize.
6974*** The result is that libtool may fail to recognize shared libraries
6975*** as such. This will affect the creation of libtool libraries that
6976*** depend on shared libraries, but programs linked with such libtool
6977*** libraries will work regardless of this problem. Nevertheless, you
6978*** may want to report the problem to your system manager and/or to
6979*** bug-libtool@gnu.org
6980
6981EOF
6982 fi ;;
6983 esac
6984 fi
6985 break
6986 fi
6987 done
6988 IFS="$lt_save_ifs"
6989 MAGIC_CMD="$lt_save_MAGIC_CMD"
6990 ;;
6991esac
6992fi
6993
6994MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6995if test -n "$MAGIC_CMD"; then
64ff59ba 6996 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6997echo "${ECHO_T}$MAGIC_CMD" >&6; }
d9898ee8 6998else
64ff59ba 6999 { echo "$as_me:$LINENO: result: no" >&5
7000echo "${ECHO_T}no" >&6; }
d9898ee8 7001fi
7002
7003if test -z "$lt_cv_path_MAGIC_CMD"; then
7004 if test -n "$ac_tool_prefix"; then
64ff59ba 7005 { echo "$as_me:$LINENO: checking for file" >&5
7006echo $ECHO_N "checking for file... $ECHO_C" >&6; }
d9898ee8 7007if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7008 echo $ECHO_N "(cached) $ECHO_C" >&6
7009else
7010 case $MAGIC_CMD in
7011[\\/*] | ?:[\\/]*)
7012 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7013 ;;
7014*)
7015 lt_save_MAGIC_CMD="$MAGIC_CMD"
7016 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7017 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7018 for ac_dir in $ac_dummy; do
7019 IFS="$lt_save_ifs"
7020 test -z "$ac_dir" && ac_dir=.
7021 if test -f $ac_dir/file; then
7022 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7023 if test -n "$file_magic_test_file"; then
7024 case $deplibs_check_method in
7025 "file_magic "*)
7026 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7027 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7028 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7029 $EGREP "$file_magic_regex" > /dev/null; then
7030 :
7031 else
7032 cat <<EOF 1>&2
7033
7034*** Warning: the command libtool uses to detect shared libraries,
7035*** $file_magic_cmd, produces output that libtool cannot recognize.
7036*** The result is that libtool may fail to recognize shared libraries
7037*** as such. This will affect the creation of libtool libraries that
7038*** depend on shared libraries, but programs linked with such libtool
7039*** libraries will work regardless of this problem. Nevertheless, you
7040*** may want to report the problem to your system manager and/or to
7041*** bug-libtool@gnu.org
7042
7043EOF
7044 fi ;;
7045 esac
7046 fi
7047 break
7048 fi
7049 done
7050 IFS="$lt_save_ifs"
7051 MAGIC_CMD="$lt_save_MAGIC_CMD"
7052 ;;
7053esac
7054fi
7055
7056MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7057if test -n "$MAGIC_CMD"; then
64ff59ba 7058 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7059echo "${ECHO_T}$MAGIC_CMD" >&6; }
d9898ee8 7060else
64ff59ba 7061 { echo "$as_me:$LINENO: result: no" >&5
7062echo "${ECHO_T}no" >&6; }
d9898ee8 7063fi
7064
7065 else
7066 MAGIC_CMD=:
7067 fi
7068fi
7069
7070 fi
7071 ;;
7072esac
7073
7074enable_dlopen=no
7075enable_win32_dll=no
7076
64ff59ba 7077# Check whether --enable-libtool-lock was given.
d9898ee8 7078if test "${enable_libtool_lock+set}" = set; then
64ff59ba 7079 enableval=$enable_libtool_lock;
7080fi
d9898ee8 7081
d9898ee8 7082test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7083
7084
64ff59ba 7085# Check whether --with-pic was given.
d9898ee8 7086if test "${with_pic+set}" = set; then
64ff59ba 7087 withval=$with_pic; pic_mode="$withval"
d9898ee8 7088else
7089 pic_mode=default
64ff59ba 7090fi
7091
d9898ee8 7092test -z "$pic_mode" && pic_mode=default
7093
7094# Use C for the default configuration in the libtool script
7095tagname=
7096lt_save_CC="$CC"
7097ac_ext=c
7098ac_cpp='$CPP $CPPFLAGS'
7099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7101ac_compiler_gnu=$ac_cv_c_compiler_gnu
7102
7103
7104# Source file extension for C test sources.
7105ac_ext=c
7106
7107# Object file extension for compiled C test sources.
7108objext=o
7109objext=$objext
7110
7111# Code to be used in simple compile tests
7112lt_simple_compile_test_code="int some_variable = 0;\n"
7113
7114# Code to be used in simple link tests
7115lt_simple_link_test_code='int main(){return(0);}\n'
7116
7117
7118# If no C compiler was specified, use CC.
7119LTCC=${LTCC-"$CC"}
7120
7121# If no C compiler flags were specified, use CFLAGS.
7122LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7123
7124# Allow CC to be a program name with arguments.
7125compiler=$CC
7126
7127
7128# save warnings/boilerplate of simple test code
7129ac_outfile=conftest.$ac_objext
7130printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7131eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7132_lt_compiler_boilerplate=`cat conftest.err`
7133$rm conftest*
7134
7135ac_outfile=conftest.$ac_objext
7136printf "$lt_simple_link_test_code" >conftest.$ac_ext
7137eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7138_lt_linker_boilerplate=`cat conftest.err`
7139$rm conftest*
7140
7141
7142
7143lt_prog_compiler_no_builtin_flag=
7144
7145if test "$GCC" = yes; then
7146 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7147
7148
64ff59ba 7149{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7150echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d9898ee8 7151if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7152 echo $ECHO_N "(cached) $ECHO_C" >&6
7153else
7154 lt_cv_prog_compiler_rtti_exceptions=no
7155 ac_outfile=conftest.$ac_objext
7156 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7157 lt_compiler_flag="-fno-rtti -fno-exceptions"
7158 # Insert the option either (1) after the last *FLAGS variable, or
7159 # (2) before a word containing "conftest.", or (3) at the end.
7160 # Note that $ac_compile itself does not contain backslashes and begins
7161 # with a dollar sign (not a hyphen), so the echo should work correctly.
7162 # The option is referenced via a variable to avoid confusing sed.
7163 lt_compile=`echo "$ac_compile" | $SED \
7164 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7165 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7166 -e 's:$: $lt_compiler_flag:'`
64ff59ba 7167 (eval echo "\"\$as_me:7167: $lt_compile\"" >&5)
d9898ee8 7168 (eval "$lt_compile" 2>conftest.err)
7169 ac_status=$?
7170 cat conftest.err >&5
64ff59ba 7171 echo "$as_me:7171: \$? = $ac_status" >&5
d9898ee8 7172 if (exit $ac_status) && test -s "$ac_outfile"; then
7173 # The compiler can only warn and ignore the option if not recognized
7174 # So say no if there are warnings other than the usual output.
7175 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7176 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7177 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7178 lt_cv_prog_compiler_rtti_exceptions=yes
7179 fi
7180 fi
7181 $rm conftest*
7182
7183fi
64ff59ba 7184{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7185echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 7186
7187if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7188 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7189else
7190 :
7191fi
7192
7193fi
7194
7195lt_prog_compiler_wl=
7196lt_prog_compiler_pic=
7197lt_prog_compiler_static=
7198
64ff59ba 7199{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7200echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 7201
7202 if test "$GCC" = yes; then
7203 lt_prog_compiler_wl='-Wl,'
7204 lt_prog_compiler_static='-static'
7205
7206 case $host_os in
7207 aix*)
7208 # All AIX code is PIC.
7209 if test "$host_cpu" = ia64; then
7210 # AIX 5 now supports IA64 processor
7211 lt_prog_compiler_static='-Bstatic'
7212 fi
7213 ;;
7214
7215 amigaos*)
7216 # FIXME: we need at least 68020 code to build shared libraries, but
7217 # adding the `-m68020' flag to GCC prevents building anything better,
7218 # like `-m68040'.
7219 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7220 ;;
7221
7222 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7223 # PIC is the default for these OSes.
7224 ;;
7225
7226 mingw* | pw32* | os2*)
7227 # This hack is so that the source file can tell whether it is being
7228 # built for inclusion in a dll (and should export symbols for example).
7229 lt_prog_compiler_pic='-DDLL_EXPORT'
7230 ;;
7231
7232 darwin* | rhapsody*)
7233 # PIC is the default on this platform
7234 # Common symbols not allowed in MH_DYLIB files
7235 lt_prog_compiler_pic='-fno-common'
7236 ;;
7237
7238 interix3*)
7239 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7240 # Instead, we relocate shared libraries at runtime.
7241 ;;
7242
7243 msdosdjgpp*)
7244 # Just because we use GCC doesn't mean we suddenly get shared libraries
7245 # on systems that don't support them.
7246 lt_prog_compiler_can_build_shared=no
7247 enable_shared=no
7248 ;;
7249
7250 sysv4*MP*)
7251 if test -d /usr/nec; then
7252 lt_prog_compiler_pic=-Kconform_pic
7253 fi
7254 ;;
7255
7256 hpux*)
7257 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7258 # not for PA HP-UX.
7259 case $host_cpu in
7260 hppa*64*|ia64*)
7261 # +Z the default
7262 ;;
7263 *)
7264 lt_prog_compiler_pic='-fPIC'
7265 ;;
7266 esac
7267 ;;
7268
7269 *)
7270 lt_prog_compiler_pic='-fPIC'
7271 ;;
7272 esac
7273 else
7274 # PORTME Check for flag to pass linker flags through the system compiler.
7275 case $host_os in
7276 aix*)
7277 lt_prog_compiler_wl='-Wl,'
7278 if test "$host_cpu" = ia64; then
7279 # AIX 5 now supports IA64 processor
7280 lt_prog_compiler_static='-Bstatic'
7281 else
7282 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7283 fi
7284 ;;
7285 darwin*)
7286 # PIC is the default on this platform
7287 # Common symbols not allowed in MH_DYLIB files
7288 case $cc_basename in
7289 xlc*)
7290 lt_prog_compiler_pic='-qnocommon'
7291 lt_prog_compiler_wl='-Wl,'
7292 ;;
7293 esac
7294 ;;
7295
7296 mingw* | pw32* | os2*)
7297 # This hack is so that the source file can tell whether it is being
7298 # built for inclusion in a dll (and should export symbols for example).
7299 lt_prog_compiler_pic='-DDLL_EXPORT'
7300 ;;
7301
7302 hpux9* | hpux10* | hpux11*)
7303 lt_prog_compiler_wl='-Wl,'
7304 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7305 # not for PA HP-UX.
7306 case $host_cpu in
7307 hppa*64*|ia64*)
7308 # +Z the default
7309 ;;
7310 *)
7311 lt_prog_compiler_pic='+Z'
7312 ;;
7313 esac
7314 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7315 lt_prog_compiler_static='${wl}-a ${wl}archive'
7316 ;;
7317
7318 irix5* | irix6* | nonstopux*)
7319 lt_prog_compiler_wl='-Wl,'
7320 # PIC (with -KPIC) is the default.
7321 lt_prog_compiler_static='-non_shared'
7322 ;;
7323
7324 newsos6)
7325 lt_prog_compiler_pic='-KPIC'
7326 lt_prog_compiler_static='-Bstatic'
7327 ;;
7328
7329 linux*)
7330 case $cc_basename in
7331 icc* | ecc*)
7332 lt_prog_compiler_wl='-Wl,'
7333 lt_prog_compiler_pic='-KPIC'
7334 lt_prog_compiler_static='-static'
7335 ;;
7336 pgcc* | pgf77* | pgf90* | pgf95*)
7337 # Portland Group compilers (*not* the Pentium gcc compiler,
7338 # which looks to be a dead project)
7339 lt_prog_compiler_wl='-Wl,'
7340 lt_prog_compiler_pic='-fpic'
7341 lt_prog_compiler_static='-Bstatic'
7342 ;;
7343 ccc*)
7344 lt_prog_compiler_wl='-Wl,'
7345 # All Alpha code is PIC.
7346 lt_prog_compiler_static='-non_shared'
7347 ;;
7348 esac
7349 ;;
7350
7351 osf3* | osf4* | osf5*)
7352 lt_prog_compiler_wl='-Wl,'
7353 # All OSF/1 code is PIC.
7354 lt_prog_compiler_static='-non_shared'
7355 ;;
7356
7357 solaris*)
7358 lt_prog_compiler_pic='-KPIC'
7359 lt_prog_compiler_static='-Bstatic'
7360 case $cc_basename in
7361 f77* | f90* | f95*)
7362 lt_prog_compiler_wl='-Qoption ld ';;
7363 *)
7364 lt_prog_compiler_wl='-Wl,';;
7365 esac
7366 ;;
7367
7368 sunos4*)
7369 lt_prog_compiler_wl='-Qoption ld '
7370 lt_prog_compiler_pic='-PIC'
7371 lt_prog_compiler_static='-Bstatic'
7372 ;;
7373
7374 sysv4 | sysv4.2uw2* | sysv4.3*)
7375 lt_prog_compiler_wl='-Wl,'
7376 lt_prog_compiler_pic='-KPIC'
7377 lt_prog_compiler_static='-Bstatic'
7378 ;;
7379
7380 sysv4*MP*)
7381 if test -d /usr/nec ;then
7382 lt_prog_compiler_pic='-Kconform_pic'
7383 lt_prog_compiler_static='-Bstatic'
7384 fi
7385 ;;
7386
7387 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7388 lt_prog_compiler_wl='-Wl,'
7389 lt_prog_compiler_pic='-KPIC'
7390 lt_prog_compiler_static='-Bstatic'
7391 ;;
7392
7393 unicos*)
7394 lt_prog_compiler_wl='-Wl,'
7395 lt_prog_compiler_can_build_shared=no
7396 ;;
7397
7398 uts4*)
7399 lt_prog_compiler_pic='-pic'
7400 lt_prog_compiler_static='-Bstatic'
7401 ;;
7402
7403 *)
7404 lt_prog_compiler_can_build_shared=no
7405 ;;
7406 esac
7407 fi
7408
64ff59ba 7409{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7410echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
d9898ee8 7411
7412#
7413# Check to make sure the PIC flag actually works.
7414#
7415if test -n "$lt_prog_compiler_pic"; then
7416
64ff59ba 7417{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7418echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
d9898ee8 7419if test "${lt_prog_compiler_pic_works+set}" = set; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7421else
7422 lt_prog_compiler_pic_works=no
7423 ac_outfile=conftest.$ac_objext
7424 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7425 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7426 # Insert the option either (1) after the last *FLAGS variable, or
7427 # (2) before a word containing "conftest.", or (3) at the end.
7428 # Note that $ac_compile itself does not contain backslashes and begins
7429 # with a dollar sign (not a hyphen), so the echo should work correctly.
7430 # The option is referenced via a variable to avoid confusing sed.
7431 lt_compile=`echo "$ac_compile" | $SED \
7432 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7433 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7434 -e 's:$: $lt_compiler_flag:'`
64ff59ba 7435 (eval echo "\"\$as_me:7435: $lt_compile\"" >&5)
d9898ee8 7436 (eval "$lt_compile" 2>conftest.err)
7437 ac_status=$?
7438 cat conftest.err >&5
64ff59ba 7439 echo "$as_me:7439: \$? = $ac_status" >&5
d9898ee8 7440 if (exit $ac_status) && test -s "$ac_outfile"; then
7441 # The compiler can only warn and ignore the option if not recognized
7442 # So say no if there are warnings other than the usual output.
7443 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7444 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7445 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7446 lt_prog_compiler_pic_works=yes
7447 fi
7448 fi
7449 $rm conftest*
7450
7451fi
64ff59ba 7452{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7453echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
d9898ee8 7454
7455if test x"$lt_prog_compiler_pic_works" = xyes; then
7456 case $lt_prog_compiler_pic in
7457 "" | " "*) ;;
7458 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7459 esac
7460else
7461 lt_prog_compiler_pic=
7462 lt_prog_compiler_can_build_shared=no
7463fi
7464
7465fi
7466case $host_os in
7467 # For platforms which do not support PIC, -DPIC is meaningless:
7468 *djgpp*)
7469 lt_prog_compiler_pic=
7470 ;;
7471 *)
7472 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7473 ;;
7474esac
7475
7476#
7477# Check to make sure the static flag actually works.
7478#
7479wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
64ff59ba 7480{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7481echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 7482if test "${lt_prog_compiler_static_works+set}" = set; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
7484else
7485 lt_prog_compiler_static_works=no
7486 save_LDFLAGS="$LDFLAGS"
7487 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7488 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7489 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7490 # The linker can only warn and ignore the option if not recognized
7491 # So say no if there are warnings
7492 if test -s conftest.err; then
7493 # Append any errors to the config.log.
7494 cat conftest.err 1>&5
7495 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7496 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7497 if diff conftest.exp conftest.er2 >/dev/null; then
7498 lt_prog_compiler_static_works=yes
7499 fi
7500 else
7501 lt_prog_compiler_static_works=yes
7502 fi
7503 fi
7504 $rm conftest*
7505 LDFLAGS="$save_LDFLAGS"
7506
7507fi
64ff59ba 7508{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7509echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
d9898ee8 7510
7511if test x"$lt_prog_compiler_static_works" = xyes; then
7512 :
7513else
7514 lt_prog_compiler_static=
7515fi
7516
7517
64ff59ba 7518{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7519echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 7520if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7521 echo $ECHO_N "(cached) $ECHO_C" >&6
7522else
7523 lt_cv_prog_compiler_c_o=no
7524 $rm -r conftest 2>/dev/null
7525 mkdir conftest
7526 cd conftest
7527 mkdir out
7528 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7529
7530 lt_compiler_flag="-o out/conftest2.$ac_objext"
7531 # Insert the option either (1) after the last *FLAGS variable, or
7532 # (2) before a word containing "conftest.", or (3) at the end.
7533 # Note that $ac_compile itself does not contain backslashes and begins
7534 # with a dollar sign (not a hyphen), so the echo should work correctly.
7535 lt_compile=`echo "$ac_compile" | $SED \
7536 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7537 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7538 -e 's:$: $lt_compiler_flag:'`
64ff59ba 7539 (eval echo "\"\$as_me:7539: $lt_compile\"" >&5)
d9898ee8 7540 (eval "$lt_compile" 2>out/conftest.err)
7541 ac_status=$?
7542 cat out/conftest.err >&5
64ff59ba 7543 echo "$as_me:7543: \$? = $ac_status" >&5
d9898ee8 7544 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7545 then
7546 # The compiler can only warn and ignore the option if not recognized
7547 # So say no if there are warnings
7548 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7549 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7550 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7551 lt_cv_prog_compiler_c_o=yes
7552 fi
7553 fi
7554 chmod u+w . 2>&5
7555 $rm conftest*
7556 # SGI C++ compiler will create directory out/ii_files/ for
7557 # template instantiation
7558 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7559 $rm out/* && rmdir out
7560 cd ..
7561 rmdir conftest
7562 $rm conftest*
7563
7564fi
64ff59ba 7565{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7566echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 7567
7568
7569hard_links="nottested"
7570if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7571 # do not overwrite the value of need_locks provided by the user
64ff59ba 7572 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7573echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 7574 hard_links=yes
7575 $rm conftest*
7576 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7577 touch conftest.a
7578 ln conftest.a conftest.b 2>&5 || hard_links=no
7579 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 7580 { echo "$as_me:$LINENO: result: $hard_links" >&5
7581echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 7582 if test "$hard_links" = no; then
7583 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7584echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7585 need_locks=warn
7586 fi
7587else
7588 need_locks=no
7589fi
7590
64ff59ba 7591{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7592echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 7593
7594 runpath_var=
7595 allow_undefined_flag=
7596 enable_shared_with_static_runtimes=no
7597 archive_cmds=
7598 archive_expsym_cmds=
7599 old_archive_From_new_cmds=
7600 old_archive_from_expsyms_cmds=
7601 export_dynamic_flag_spec=
7602 whole_archive_flag_spec=
7603 thread_safe_flag_spec=
7604 hardcode_libdir_flag_spec=
7605 hardcode_libdir_flag_spec_ld=
7606 hardcode_libdir_separator=
7607 hardcode_direct=no
7608 hardcode_minus_L=no
7609 hardcode_shlibpath_var=unsupported
7610 link_all_deplibs=unknown
7611 hardcode_automatic=no
7612 module_cmds=
7613 module_expsym_cmds=
7614 always_export_symbols=no
7615 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7616 # include_expsyms should be a list of space-separated symbols to be *always*
7617 # included in the symbol list
7618 include_expsyms=
7619 # exclude_expsyms can be an extended regexp of symbols to exclude
7620 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7621 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7622 # as well as any symbol that contains `d'.
7623 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7624 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7625 # platforms (ab)use it in PIC code, but their linkers get confused if
7626 # the symbol is explicitly referenced. Since portable code cannot
7627 # rely on this symbol name, it's probably fine to never include it in
7628 # preloaded symbol tables.
7629 extract_expsyms_cmds=
7630 # Just being paranoid about ensuring that cc_basename is set.
7631 for cc_temp in $compiler""; do
7632 case $cc_temp in
7633 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7634 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7635 \-*) ;;
7636 *) break;;
7637 esac
7638done
7639cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7640
7641 case $host_os in
7642 cygwin* | mingw* | pw32*)
7643 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7644 # When not using gcc, we currently assume that we are using
7645 # Microsoft Visual C++.
7646 if test "$GCC" != yes; then
7647 with_gnu_ld=no
7648 fi
7649 ;;
7650 interix*)
7651 # we just hope/assume this is gcc and not c89 (= MSVC++)
7652 with_gnu_ld=yes
7653 ;;
7654 openbsd*)
7655 with_gnu_ld=no
7656 ;;
7657 esac
7658
7659 ld_shlibs=yes
7660 if test "$with_gnu_ld" = yes; then
7661 # If archive_cmds runs LD, not CC, wlarc should be empty
7662 wlarc='${wl}'
7663
7664 # Set some defaults for GNU ld with shared library support. These
7665 # are reset later if shared libraries are not supported. Putting them
7666 # here allows them to be overridden if necessary.
7667 runpath_var=LD_RUN_PATH
7668 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7669 export_dynamic_flag_spec='${wl}--export-dynamic'
7670 # ancient GNU ld didn't support --whole-archive et. al.
7671 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7672 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7673 else
7674 whole_archive_flag_spec=
7675 fi
7676 supports_anon_versioning=no
7677 case `$LD -v 2>/dev/null` in
7678 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7679 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7680 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7681 *\ 2.11.*) ;; # other 2.11 versions
7682 *) supports_anon_versioning=yes ;;
7683 esac
7684
7685 # See if GNU ld supports shared libraries.
7686 case $host_os in
7687 aix3* | aix4* | aix5*)
7688 # On AIX/PPC, the GNU linker is very broken
7689 if test "$host_cpu" != ia64; then
7690 ld_shlibs=no
7691 cat <<EOF 1>&2
7692
7693*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7694*** to be unable to reliably create shared libraries on AIX.
7695*** Therefore, libtool is disabling shared libraries support. If you
7696*** really care for shared libraries, you may want to modify your PATH
7697*** so that a non-GNU linker is found, and then restart.
7698
7699EOF
7700 fi
7701 ;;
7702
7703 amigaos*)
7704 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7705 hardcode_libdir_flag_spec='-L$libdir'
7706 hardcode_minus_L=yes
7707
7708 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7709 # that the semantics of dynamic libraries on AmigaOS, at least up
7710 # to version 4, is to share data among multiple programs linked
7711 # with the same dynamic library. Since this doesn't match the
7712 # behavior of shared libraries on other platforms, we can't use
7713 # them.
7714 ld_shlibs=no
7715 ;;
7716
7717 beos*)
7718 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7719 allow_undefined_flag=unsupported
7720 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7721 # support --undefined. This deserves some investigation. FIXME
7722 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7723 else
7724 ld_shlibs=no
7725 fi
7726 ;;
7727
7728 cygwin* | mingw* | pw32*)
7729 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7730 # as there is no search path for DLLs.
7731 hardcode_libdir_flag_spec='-L$libdir'
7732 allow_undefined_flag=unsupported
7733 always_export_symbols=no
7734 enable_shared_with_static_runtimes=yes
7735 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7736
7737 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7738 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7739 # If the export-symbols file already is a .def file (1st line
7740 # is EXPORTS), use it as is; otherwise, prepend...
7741 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7742 cp $export_symbols $output_objdir/$soname.def;
7743 else
7744 echo EXPORTS > $output_objdir/$soname.def;
7745 cat $export_symbols >> $output_objdir/$soname.def;
7746 fi~
7747 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7748 else
7749 ld_shlibs=no
7750 fi
7751 ;;
7752
7753 interix3*)
7754 hardcode_direct=no
7755 hardcode_shlibpath_var=no
7756 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7757 export_dynamic_flag_spec='${wl}-E'
7758 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7759 # Instead, shared libraries are loaded at an image base (0x10000000 by
7760 # default) and relocated if they conflict, which is a slow very memory
7761 # consuming and fragmenting process. To avoid this, we pick a random,
7762 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7763 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7764 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7765 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'
7766 ;;
7767
7768 linux*)
7769 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7770 tmp_addflag=
7771 case $cc_basename,$host_cpu in
7772 pgcc*) # Portland Group C compiler
7773 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'
7774 tmp_addflag=' $pic_flag'
7775 ;;
7776 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7777 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'
7778 tmp_addflag=' $pic_flag -Mnomain' ;;
7779 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7780 tmp_addflag=' -i_dynamic' ;;
7781 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7782 tmp_addflag=' -i_dynamic -nofor_main' ;;
7783 ifc* | ifort*) # Intel Fortran compiler
7784 tmp_addflag=' -nofor_main' ;;
7785 esac
7786 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7787
7788 if test $supports_anon_versioning = yes; then
7789 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7790 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7791 $echo "local: *; };" >> $output_objdir/$libname.ver~
7792 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7793 fi
7794 else
7795 ld_shlibs=no
7796 fi
7797 ;;
7798
7799 netbsd*)
7800 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7801 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7802 wlarc=
7803 else
7804 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7805 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7806 fi
7807 ;;
7808
7809 solaris*)
7810 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7811 ld_shlibs=no
7812 cat <<EOF 1>&2
7813
7814*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7815*** create shared libraries on Solaris systems. Therefore, libtool
7816*** is disabling shared libraries support. We urge you to upgrade GNU
7817*** binutils to release 2.9.1 or newer. Another option is to modify
7818*** your PATH or compiler configuration so that the native linker is
7819*** used, and then restart.
7820
7821EOF
7822 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7823 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7824 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7825 else
7826 ld_shlibs=no
7827 fi
7828 ;;
7829
7830 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7831 case `$LD -v 2>&1` in
7832 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7833 ld_shlibs=no
7834 cat <<_LT_EOF 1>&2
7835
7836*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7837*** reliably create shared libraries on SCO systems. Therefore, libtool
7838*** is disabling shared libraries support. We urge you to upgrade GNU
7839*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7840*** your PATH or compiler configuration so that the native linker is
7841*** used, and then restart.
7842
7843_LT_EOF
7844 ;;
7845 *)
7846 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7847 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7849 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7850 else
7851 ld_shlibs=no
7852 fi
7853 ;;
7854 esac
7855 ;;
7856
7857 sunos4*)
7858 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7859 wlarc=
7860 hardcode_direct=yes
7861 hardcode_shlibpath_var=no
7862 ;;
7863
7864 *)
7865 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7866 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7867 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7868 else
7869 ld_shlibs=no
7870 fi
7871 ;;
7872 esac
7873
7874 if test "$ld_shlibs" = no; then
7875 runpath_var=
7876 hardcode_libdir_flag_spec=
7877 export_dynamic_flag_spec=
7878 whole_archive_flag_spec=
7879 fi
7880 else
7881 # PORTME fill in a description of your system's linker (not GNU ld)
7882 case $host_os in
7883 aix3*)
7884 allow_undefined_flag=unsupported
7885 always_export_symbols=yes
7886 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'
7887 # Note: this linker hardcodes the directories in LIBPATH if there
7888 # are no directories specified by -L.
7889 hardcode_minus_L=yes
7890 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7891 # Neither direct hardcoding nor static linking is supported with a
7892 # broken collect2.
7893 hardcode_direct=unsupported
7894 fi
7895 ;;
7896
7897 aix4* | aix5*)
7898 if test "$host_cpu" = ia64; then
7899 # On IA64, the linker does run time linking by default, so we don't
7900 # have to do anything special.
7901 aix_use_runtimelinking=no
7902 exp_sym_flag='-Bexport'
7903 no_entry_flag=""
7904 else
7905 # If we're using GNU nm, then we don't want the "-C" option.
7906 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7907 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7908 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'
7909 else
7910 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'
7911 fi
7912 aix_use_runtimelinking=no
7913
7914 # Test if we are trying to use run time linking or normal
7915 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7916 # need to do runtime linking.
7917 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7918 for ld_flag in $LDFLAGS; do
7919 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7920 aix_use_runtimelinking=yes
7921 break
7922 fi
7923 done
7924 ;;
7925 esac
7926
7927 exp_sym_flag='-bexport'
7928 no_entry_flag='-bnoentry'
7929 fi
7930
7931 # When large executables or shared objects are built, AIX ld can
7932 # have problems creating the table of contents. If linking a library
7933 # or program results in "error TOC overflow" add -mminimal-toc to
7934 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7935 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7936
7937 archive_cmds=''
7938 hardcode_direct=yes
7939 hardcode_libdir_separator=':'
7940 link_all_deplibs=yes
7941
7942 if test "$GCC" = yes; then
7943 case $host_os in aix4.[012]|aix4.[012].*)
7944 # We only want to do this on AIX 4.2 and lower, the check
7945 # below for broken collect2 doesn't work under 4.3+
7946 collect2name=`${CC} -print-prog-name=collect2`
7947 if test -f "$collect2name" && \
7948 strings "$collect2name" | grep resolve_lib_name >/dev/null
7949 then
7950 # We have reworked collect2
7951 hardcode_direct=yes
7952 else
7953 # We have old collect2
7954 hardcode_direct=unsupported
7955 # It fails to find uninstalled libraries when the uninstalled
7956 # path is not listed in the libpath. Setting hardcode_minus_L
7957 # to unsupported forces relinking
7958 hardcode_minus_L=yes
7959 hardcode_libdir_flag_spec='-L$libdir'
7960 hardcode_libdir_separator=
7961 fi
7962 ;;
7963 esac
7964 shared_flag='-shared'
7965 if test "$aix_use_runtimelinking" = yes; then
7966 shared_flag="$shared_flag "'${wl}-G'
7967 fi
7968 else
7969 # not using gcc
7970 if test "$host_cpu" = ia64; then
7971 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7972 # chokes on -Wl,-G. The following line is correct:
7973 shared_flag='-G'
7974 else
7975 if test "$aix_use_runtimelinking" = yes; then
7976 shared_flag='${wl}-G'
7977 else
7978 shared_flag='${wl}-bM:SRE'
7979 fi
7980 fi
7981 fi
7982
7983 # It seems that -bexpall does not export symbols beginning with
7984 # underscore (_), so it is better to generate a list of symbols to export.
7985 always_export_symbols=yes
7986 if test "$aix_use_runtimelinking" = yes; then
7987 # Warning - without using the other runtime loading flags (-brtl),
7988 # -berok will link without error, but may produce a broken library.
7989 allow_undefined_flag='-berok'
7990 # Determine the default libpath from the value encoded in an empty executable.
7991 cat >conftest.$ac_ext <<_ACEOF
7992/* confdefs.h. */
7993_ACEOF
7994cat confdefs.h >>conftest.$ac_ext
7995cat >>conftest.$ac_ext <<_ACEOF
7996/* end confdefs.h. */
7997
7998int
7999main ()
8000{
8001
8002 ;
8003 return 0;
8004}
8005_ACEOF
8006rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 8007if { (ac_try="$ac_link"
8008case "(($ac_try" in
8009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8010 *) ac_try_echo=$ac_try;;
8011esac
8012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8013 (eval "$ac_link") 2>conftest.er1
d9898ee8 8014 ac_status=$?
8015 grep -v '^ *+' conftest.er1 >conftest.err
8016 rm -f conftest.er1
8017 cat conftest.err >&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 8019 (exit $ac_status); } && {
8020 test -z "$ac_c_werror_flag" ||
8021 test ! -s conftest.err
8022 } && test -s conftest$ac_exeext &&
8023 $as_test_x conftest$ac_exeext; then
d9898ee8 8024
8025aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8026}'`
8027# Check for a 64-bit object if we didn't find anything.
8028if 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; }
8029}'`; fi
8030else
8031 echo "$as_me: failed program was:" >&5
8032sed 's/^/| /' conftest.$ac_ext >&5
8033
64ff59ba 8034
d9898ee8 8035fi
64ff59ba 8036
8037rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8038 conftest$ac_exeext conftest.$ac_ext
8039if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8040
8041 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8042 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"
8043 else
8044 if test "$host_cpu" = ia64; then
8045 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8046 allow_undefined_flag="-z nodefs"
8047 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"
8048 else
8049 # Determine the default libpath from the value encoded in an empty executable.
8050 cat >conftest.$ac_ext <<_ACEOF
8051/* confdefs.h. */
8052_ACEOF
8053cat confdefs.h >>conftest.$ac_ext
8054cat >>conftest.$ac_ext <<_ACEOF
8055/* end confdefs.h. */
8056
8057int
8058main ()
8059{
8060
8061 ;
8062 return 0;
8063}
8064_ACEOF
8065rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 8066if { (ac_try="$ac_link"
8067case "(($ac_try" in
8068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8069 *) ac_try_echo=$ac_try;;
8070esac
8071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8072 (eval "$ac_link") 2>conftest.er1
d9898ee8 8073 ac_status=$?
8074 grep -v '^ *+' conftest.er1 >conftest.err
8075 rm -f conftest.er1
8076 cat conftest.err >&5
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 8078 (exit $ac_status); } && {
8079 test -z "$ac_c_werror_flag" ||
8080 test ! -s conftest.err
8081 } && test -s conftest$ac_exeext &&
8082 $as_test_x conftest$ac_exeext; then
d9898ee8 8083
8084aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8085}'`
8086# Check for a 64-bit object if we didn't find anything.
8087if 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; }
8088}'`; fi
8089else
8090 echo "$as_me: failed program was:" >&5
8091sed 's/^/| /' conftest.$ac_ext >&5
8092
64ff59ba 8093
d9898ee8 8094fi
64ff59ba 8095
8096rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8097 conftest$ac_exeext conftest.$ac_ext
8098if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8099
8100 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8101 # Warning - without using the other run time loading flags,
8102 # -berok will link without error, but may produce a broken library.
8103 no_undefined_flag=' ${wl}-bernotok'
8104 allow_undefined_flag=' ${wl}-berok'
8105 # Exported symbols can be pulled into shared objects from archives
8106 whole_archive_flag_spec='$convenience'
8107 archive_cmds_need_lc=yes
8108 # This is similar to how AIX traditionally builds its shared libraries.
8109 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'
8110 fi
8111 fi
8112 ;;
8113
8114 amigaos*)
8115 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)'
8116 hardcode_libdir_flag_spec='-L$libdir'
8117 hardcode_minus_L=yes
8118 # see comment about different semantics on the GNU ld section
8119 ld_shlibs=no
8120 ;;
8121
8122 bsdi[45]*)
8123 export_dynamic_flag_spec=-rdynamic
8124 ;;
8125
8126 cygwin* | mingw* | pw32*)
8127 # When not using gcc, we currently assume that we are using
8128 # Microsoft Visual C++.
8129 # hardcode_libdir_flag_spec is actually meaningless, as there is
8130 # no search path for DLLs.
8131 hardcode_libdir_flag_spec=' '
8132 allow_undefined_flag=unsupported
8133 # Tell ltmain to make .lib files, not .a files.
8134 libext=lib
8135 # Tell ltmain to make .dll files, not .so files.
8136 shrext_cmds=".dll"
8137 # FIXME: Setting linknames here is a bad hack.
8138 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8139 # The linker will automatically build a .lib file if we build a DLL.
8140 old_archive_From_new_cmds='true'
8141 # FIXME: Should let the user specify the lib program.
8142 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8143 fix_srcfile_path='`cygpath -w "$srcfile"`'
8144 enable_shared_with_static_runtimes=yes
8145 ;;
8146
8147 darwin* | rhapsody*)
8148 case $host_os in
8149 rhapsody* | darwin1.[012])
8150 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8151 ;;
8152 *) # Darwin 1.3 on
8153 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8154 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8155 else
8156 case ${MACOSX_DEPLOYMENT_TARGET} in
8157 10.[012])
8158 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8159 ;;
8160 10.*)
8161 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8162 ;;
8163 esac
8164 fi
8165 ;;
8166 esac
8167 archive_cmds_need_lc=no
8168 hardcode_direct=no
8169 hardcode_automatic=yes
8170 hardcode_shlibpath_var=unsupported
8171 whole_archive_flag_spec=''
8172 link_all_deplibs=yes
8173 if test "$GCC" = yes ; then
8174 output_verbose_link_cmd='echo'
8175 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8176 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8177 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8178 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}'
8179 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}'
8180 else
8181 case $cc_basename in
8182 xlc*)
8183 output_verbose_link_cmd='echo'
8184 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8185 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8186 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8187 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}'
8188 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}'
8189 ;;
8190 *)
8191 ld_shlibs=no
8192 ;;
8193 esac
8194 fi
8195 ;;
8196
8197 dgux*)
8198 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8199 hardcode_libdir_flag_spec='-L$libdir'
8200 hardcode_shlibpath_var=no
8201 ;;
8202
8203 freebsd1*)
8204 ld_shlibs=no
8205 ;;
8206
8207 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8208 # support. Future versions do this automatically, but an explicit c++rt0.o
8209 # does not break anything, and helps significantly (at the cost of a little
8210 # extra space).
8211 freebsd2.2*)
8212 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8213 hardcode_libdir_flag_spec='-R$libdir'
8214 hardcode_direct=yes
8215 hardcode_shlibpath_var=no
8216 ;;
8217
8218 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8219 freebsd2*)
8220 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8221 hardcode_direct=yes
8222 hardcode_minus_L=yes
8223 hardcode_shlibpath_var=no
8224 ;;
8225
8226 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8227 freebsd* | kfreebsd*-gnu | dragonfly*)
8228 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8229 hardcode_libdir_flag_spec='-R$libdir'
8230 hardcode_direct=yes
8231 hardcode_shlibpath_var=no
8232 ;;
8233
8234 hpux9*)
8235 if test "$GCC" = yes; then
8236 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'
8237 else
8238 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'
8239 fi
8240 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8241 hardcode_libdir_separator=:
8242 hardcode_direct=yes
8243
8244 # hardcode_minus_L: Not really in the search PATH,
8245 # but as the default location of the library.
8246 hardcode_minus_L=yes
8247 export_dynamic_flag_spec='${wl}-E'
8248 ;;
8249
8250 hpux10*)
8251 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8252 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8253 else
8254 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8255 fi
8256 if test "$with_gnu_ld" = no; then
8257 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8258 hardcode_libdir_separator=:
8259
8260 hardcode_direct=yes
8261 export_dynamic_flag_spec='${wl}-E'
8262
8263 # hardcode_minus_L: Not really in the search PATH,
8264 # but as the default location of the library.
8265 hardcode_minus_L=yes
8266 fi
8267 ;;
8268
8269 hpux11*)
8270 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8271 case $host_cpu in
8272 hppa*64*)
8273 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8274 ;;
8275 ia64*)
8276 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8277 ;;
8278 *)
8279 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8280 ;;
8281 esac
8282 else
8283 case $host_cpu in
8284 hppa*64*)
8285 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8286 ;;
8287 ia64*)
8288 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8289 ;;
8290 *)
8291 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8292 ;;
8293 esac
8294 fi
8295 if test "$with_gnu_ld" = no; then
8296 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8297 hardcode_libdir_separator=:
8298
8299 case $host_cpu in
8300 hppa*64*|ia64*)
8301 hardcode_libdir_flag_spec_ld='+b $libdir'
8302 hardcode_direct=no
8303 hardcode_shlibpath_var=no
8304 ;;
8305 *)
8306 hardcode_direct=yes
8307 export_dynamic_flag_spec='${wl}-E'
8308
8309 # hardcode_minus_L: Not really in the search PATH,
8310 # but as the default location of the library.
8311 hardcode_minus_L=yes
8312 ;;
8313 esac
8314 fi
8315 ;;
8316
8317 irix5* | irix6* | nonstopux*)
8318 if test "$GCC" = yes; then
8319 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'
8320 else
8321 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'
8322 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8323 fi
8324 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8325 hardcode_libdir_separator=:
8326 link_all_deplibs=yes
8327 ;;
8328
8329 netbsd*)
8330 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8331 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8332 else
8333 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8334 fi
8335 hardcode_libdir_flag_spec='-R$libdir'
8336 hardcode_direct=yes
8337 hardcode_shlibpath_var=no
8338 ;;
8339
8340 newsos6)
8341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8342 hardcode_direct=yes
8343 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8344 hardcode_libdir_separator=:
8345 hardcode_shlibpath_var=no
8346 ;;
8347
8348 openbsd*)
8349 hardcode_direct=yes
8350 hardcode_shlibpath_var=no
8351 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8352 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8353 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8354 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8355 export_dynamic_flag_spec='${wl}-E'
8356 else
8357 case $host_os in
8358 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8359 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8360 hardcode_libdir_flag_spec='-R$libdir'
8361 ;;
8362 *)
8363 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8364 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8365 ;;
8366 esac
8367 fi
8368 ;;
8369
8370 os2*)
8371 hardcode_libdir_flag_spec='-L$libdir'
8372 hardcode_minus_L=yes
8373 allow_undefined_flag=unsupported
8374 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'
8375 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8376 ;;
8377
8378 osf3*)
8379 if test "$GCC" = yes; then
8380 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8381 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'
8382 else
8383 allow_undefined_flag=' -expect_unresolved \*'
8384 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'
8385 fi
8386 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8387 hardcode_libdir_separator=:
8388 ;;
8389
8390 osf4* | osf5*) # as osf3* with the addition of -msym flag
8391 if test "$GCC" = yes; then
8392 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8393 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'
8394 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8395 else
8396 allow_undefined_flag=' -expect_unresolved \*'
8397 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'
8398 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8399 $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'
8400
8401 # Both c and cxx compiler support -rpath directly
8402 hardcode_libdir_flag_spec='-rpath $libdir'
8403 fi
8404 hardcode_libdir_separator=:
8405 ;;
8406
8407 solaris*)
8408 no_undefined_flag=' -z text'
8409 if test "$GCC" = yes; then
8410 wlarc='${wl}'
8411 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8412 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8413 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8414 else
8415 wlarc=''
8416 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8417 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8418 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8419 fi
8420 hardcode_libdir_flag_spec='-R$libdir'
8421 hardcode_shlibpath_var=no
8422 case $host_os in
8423 solaris2.[0-5] | solaris2.[0-5].*) ;;
8424 *)
8425 # The compiler driver will combine linker options so we
8426 # cannot just pass the convience library names through
8427 # without $wl, iff we do not link with $LD.
8428 # Luckily, gcc supports the same syntax we need for Sun Studio.
8429 # Supported since Solaris 2.6 (maybe 2.5.1?)
8430 case $wlarc in
8431 '')
8432 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8433 *)
8434 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' ;;
8435 esac ;;
8436 esac
8437 link_all_deplibs=yes
8438 ;;
8439
8440 sunos4*)
8441 if test "x$host_vendor" = xsequent; then
8442 # Use $CC to link under sequent, because it throws in some extra .o
8443 # files that make .init and .fini sections work.
8444 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8445 else
8446 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8447 fi
8448 hardcode_libdir_flag_spec='-L$libdir'
8449 hardcode_direct=yes
8450 hardcode_minus_L=yes
8451 hardcode_shlibpath_var=no
8452 ;;
8453
8454 sysv4)
8455 case $host_vendor in
8456 sni)
8457 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8458 hardcode_direct=yes # is this really true???
8459 ;;
8460 siemens)
8461 ## LD is ld it makes a PLAMLIB
8462 ## CC just makes a GrossModule.
8463 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8464 reload_cmds='$CC -r -o $output$reload_objs'
8465 hardcode_direct=no
8466 ;;
8467 motorola)
8468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8469 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8470 ;;
8471 esac
8472 runpath_var='LD_RUN_PATH'
8473 hardcode_shlibpath_var=no
8474 ;;
8475
8476 sysv4.3*)
8477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8478 hardcode_shlibpath_var=no
8479 export_dynamic_flag_spec='-Bexport'
8480 ;;
8481
8482 sysv4*MP*)
8483 if test -d /usr/nec; then
8484 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8485 hardcode_shlibpath_var=no
8486 runpath_var=LD_RUN_PATH
8487 hardcode_runpath_var=yes
8488 ld_shlibs=yes
8489 fi
8490 ;;
8491
8492 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8493 no_undefined_flag='${wl}-z,text'
8494 archive_cmds_need_lc=no
8495 hardcode_shlibpath_var=no
8496 runpath_var='LD_RUN_PATH'
8497
8498 if test "$GCC" = yes; then
8499 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8500 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8501 else
8502 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8503 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8504 fi
8505 ;;
8506
8507 sysv5* | sco3.2v5* | sco5v6*)
8508 # Note: We can NOT use -z defs as we might desire, because we do not
8509 # link with -lc, and that would cause any symbols used from libc to
8510 # always be unresolved, which means just about no library would
8511 # ever link correctly. If we're not using GNU ld we use -z text
8512 # though, which does catch some bad symbols but isn't as heavy-handed
8513 # as -z defs.
8514 no_undefined_flag='${wl}-z,text'
8515 allow_undefined_flag='${wl}-z,nodefs'
8516 archive_cmds_need_lc=no
8517 hardcode_shlibpath_var=no
8518 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8519 hardcode_libdir_separator=':'
8520 link_all_deplibs=yes
8521 export_dynamic_flag_spec='${wl}-Bexport'
8522 runpath_var='LD_RUN_PATH'
8523
8524 if test "$GCC" = yes; then
8525 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8526 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8527 else
8528 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8529 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8530 fi
8531 ;;
8532
8533 uts4*)
8534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8535 hardcode_libdir_flag_spec='-L$libdir'
8536 hardcode_shlibpath_var=no
8537 ;;
8538
8539 *)
8540 ld_shlibs=no
8541 ;;
8542 esac
8543 fi
8544
64ff59ba 8545{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8546echo "${ECHO_T}$ld_shlibs" >&6; }
d9898ee8 8547test "$ld_shlibs" = no && can_build_shared=no
8548
8549#
8550# Do we need to explicitly link libc?
8551#
8552case "x$archive_cmds_need_lc" in
8553x|xyes)
8554 # Assume -lc should be added
8555 archive_cmds_need_lc=yes
8556
8557 if test "$enable_shared" = yes && test "$GCC" = yes; then
8558 case $archive_cmds in
8559 *'~'*)
8560 # FIXME: we may have to deal with multi-command sequences.
8561 ;;
8562 '$CC '*)
8563 # Test whether the compiler implicitly links with -lc since on some
8564 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8565 # to ld, don't add -lc before -lgcc.
64ff59ba 8566 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8567echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 8568 $rm conftest*
8569 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8570
8571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8572 (eval $ac_compile) 2>&5
8573 ac_status=$?
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); } 2>conftest.err; then
8576 soname=conftest
8577 lib=conftest
8578 libobjs=conftest.$ac_objext
8579 deplibs=
8580 wl=$lt_prog_compiler_wl
8581 pic_flag=$lt_prog_compiler_pic
8582 compiler_flags=-v
8583 linker_flags=-v
8584 verstring=
8585 output_objdir=.
8586 libname=conftest
8587 lt_save_allow_undefined_flag=$allow_undefined_flag
8588 allow_undefined_flag=
8589 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8590 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8591 ac_status=$?
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }
8594 then
8595 archive_cmds_need_lc=no
8596 else
8597 archive_cmds_need_lc=yes
8598 fi
8599 allow_undefined_flag=$lt_save_allow_undefined_flag
8600 else
8601 cat conftest.err 1>&5
8602 fi
8603 $rm conftest*
64ff59ba 8604 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8605echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
d9898ee8 8606 ;;
8607 esac
8608 fi
8609 ;;
8610esac
8611
64ff59ba 8612{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8613echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 8614library_names_spec=
8615libname_spec='lib$name'
8616soname_spec=
8617shrext_cmds=".so"
8618postinstall_cmds=
8619postuninstall_cmds=
8620finish_cmds=
8621finish_eval=
8622shlibpath_var=
8623shlibpath_overrides_runpath=unknown
8624version_type=none
8625dynamic_linker="$host_os ld.so"
8626sys_lib_dlsearch_path_spec="/lib /usr/lib"
8627if test "$GCC" = yes; then
8628 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8629 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8630 # if the path contains ";" then we assume it to be the separator
8631 # otherwise default to the standard path separator (i.e. ":") - it is
8632 # assumed that no part of a normal pathname contains ";" but that should
8633 # okay in the real world where ";" in dirpaths is itself problematic.
8634 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8635 else
8636 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8637 fi
8638else
8639 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8640fi
8641need_lib_prefix=unknown
8642hardcode_into_libs=no
8643
8644# when you set need_version to no, make sure it does not cause -set_version
8645# flags to be left without arguments
8646need_version=unknown
8647
8648case $host_os in
8649aix3*)
8650 version_type=linux
8651 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8652 shlibpath_var=LIBPATH
8653
8654 # AIX 3 has no versioning support, so we append a major version to the name.
8655 soname_spec='${libname}${release}${shared_ext}$major'
8656 ;;
8657
8658aix4* | aix5*)
8659 version_type=linux
8660 need_lib_prefix=no
8661 need_version=no
8662 hardcode_into_libs=yes
8663 if test "$host_cpu" = ia64; then
8664 # AIX 5 supports IA64
8665 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8666 shlibpath_var=LD_LIBRARY_PATH
8667 else
8668 # With GCC up to 2.95.x, collect2 would create an import file
8669 # for dependence libraries. The import file would start with
8670 # the line `#! .'. This would cause the generated library to
8671 # depend on `.', always an invalid library. This was fixed in
8672 # development snapshots of GCC prior to 3.0.
8673 case $host_os in
8674 aix4 | aix4.[01] | aix4.[01].*)
8675 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8676 echo ' yes '
8677 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8678 :
8679 else
8680 can_build_shared=no
8681 fi
8682 ;;
8683 esac
8684 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8685 # soname into executable. Probably we can add versioning support to
8686 # collect2, so additional links can be useful in future.
8687 if test "$aix_use_runtimelinking" = yes; then
8688 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8689 # instead of lib<name>.a to let people know that these are not
8690 # typical AIX shared libraries.
8691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8692 else
8693 # We preserve .a as extension for shared libraries through AIX4.2
8694 # and later when we are not doing run time linking.
8695 library_names_spec='${libname}${release}.a $libname.a'
8696 soname_spec='${libname}${release}${shared_ext}$major'
8697 fi
8698 shlibpath_var=LIBPATH
8699 fi
8700 ;;
8701
8702amigaos*)
8703 library_names_spec='$libname.ixlibrary $libname.a'
8704 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8705 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'
8706 ;;
8707
8708beos*)
8709 library_names_spec='${libname}${shared_ext}'
8710 dynamic_linker="$host_os ld.so"
8711 shlibpath_var=LIBRARY_PATH
8712 ;;
8713
8714bsdi[45]*)
8715 version_type=linux
8716 need_version=no
8717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8718 soname_spec='${libname}${release}${shared_ext}$major'
8719 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8720 shlibpath_var=LD_LIBRARY_PATH
8721 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8722 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8723 # the default ld.so.conf also contains /usr/contrib/lib and
8724 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8725 # libtool to hard-code these into programs
8726 ;;
8727
8728cygwin* | mingw* | pw32*)
8729 version_type=windows
8730 shrext_cmds=".dll"
8731 need_version=no
8732 need_lib_prefix=no
8733
8734 case $GCC,$host_os in
8735 yes,cygwin* | yes,mingw* | yes,pw32*)
8736 library_names_spec='$libname.dll.a'
8737 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8738 postinstall_cmds='base_file=`basename \${file}`~
8739 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8740 dldir=$destdir/`dirname \$dlpath`~
8741 test -d \$dldir || mkdir -p \$dldir~
8742 $install_prog $dir/$dlname \$dldir/$dlname~
8743 chmod a+x \$dldir/$dlname'
8744 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8745 dlpath=$dir/\$dldll~
8746 $rm \$dlpath'
8747 shlibpath_overrides_runpath=yes
8748
8749 case $host_os in
8750 cygwin*)
8751 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8752 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8753 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8754 ;;
8755 mingw*)
8756 # MinGW DLLs use traditional 'lib' prefix
8757 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8758 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8759 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8760 # It is most probably a Windows format PATH printed by
8761 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8762 # path with ; separators, and with drive letters. We can handle the
8763 # drive letters (cygwin fileutils understands them), so leave them,
8764 # especially as we might pass files found there to a mingw objdump,
8765 # which wouldn't understand a cygwinified path. Ahh.
8766 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8767 else
8768 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8769 fi
8770 ;;
8771 pw32*)
8772 # pw32 DLLs use 'pw' prefix rather than 'lib'
8773 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8774 ;;
8775 esac
8776 ;;
8777
8778 *)
8779 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8780 ;;
8781 esac
8782 dynamic_linker='Win32 ld.exe'
8783 # FIXME: first we should search . and the directory the executable is in
8784 shlibpath_var=PATH
8785 ;;
8786
8787darwin* | rhapsody*)
8788 dynamic_linker="$host_os dyld"
8789 version_type=darwin
8790 need_lib_prefix=no
8791 need_version=no
8792 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8793 soname_spec='${libname}${release}${major}$shared_ext'
8794 shlibpath_overrides_runpath=yes
8795 shlibpath_var=DYLD_LIBRARY_PATH
8796 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8797 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8798 if test "$GCC" = yes; then
8799 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"`
8800 else
8801 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8802 fi
8803 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8804 ;;
8805
8806dgux*)
8807 version_type=linux
8808 need_lib_prefix=no
8809 need_version=no
8810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8811 soname_spec='${libname}${release}${shared_ext}$major'
8812 shlibpath_var=LD_LIBRARY_PATH
8813 ;;
8814
8815freebsd1*)
8816 dynamic_linker=no
8817 ;;
8818
8819kfreebsd*-gnu)
8820 version_type=linux
8821 need_lib_prefix=no
8822 need_version=no
8823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8824 soname_spec='${libname}${release}${shared_ext}$major'
8825 shlibpath_var=LD_LIBRARY_PATH
8826 shlibpath_overrides_runpath=no
8827 hardcode_into_libs=yes
8828 dynamic_linker='GNU ld.so'
8829 ;;
8830
8831freebsd* | dragonfly*)
8832 # DragonFly does not have aout. When/if they implement a new
8833 # versioning mechanism, adjust this.
8834 if test -x /usr/bin/objformat; then
8835 objformat=`/usr/bin/objformat`
8836 else
8837 case $host_os in
8838 freebsd[123]*) objformat=aout ;;
8839 *) objformat=elf ;;
8840 esac
8841 fi
8842 version_type=freebsd-$objformat
8843 case $version_type in
8844 freebsd-elf*)
8845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8846 need_version=no
8847 need_lib_prefix=no
8848 ;;
8849 freebsd-*)
8850 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8851 need_version=yes
8852 ;;
8853 esac
8854 shlibpath_var=LD_LIBRARY_PATH
8855 case $host_os in
8856 freebsd2*)
8857 shlibpath_overrides_runpath=yes
8858 ;;
8859 freebsd3.[01]* | freebsdelf3.[01]*)
8860 shlibpath_overrides_runpath=yes
8861 hardcode_into_libs=yes
8862 ;;
8863 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8864 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8865 shlibpath_overrides_runpath=no
8866 hardcode_into_libs=yes
8867 ;;
8868 freebsd*) # from 4.6 on
8869 shlibpath_overrides_runpath=yes
8870 hardcode_into_libs=yes
8871 ;;
8872 esac
8873 ;;
8874
8875gnu*)
8876 version_type=linux
8877 need_lib_prefix=no
8878 need_version=no
8879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8880 soname_spec='${libname}${release}${shared_ext}$major'
8881 shlibpath_var=LD_LIBRARY_PATH
8882 hardcode_into_libs=yes
8883 ;;
8884
8885hpux9* | hpux10* | hpux11*)
8886 # Give a soname corresponding to the major version so that dld.sl refuses to
8887 # link against other versions.
8888 version_type=sunos
8889 need_lib_prefix=no
8890 need_version=no
8891 case $host_cpu in
8892 ia64*)
8893 shrext_cmds='.so'
8894 hardcode_into_libs=yes
8895 dynamic_linker="$host_os dld.so"
8896 shlibpath_var=LD_LIBRARY_PATH
8897 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8899 soname_spec='${libname}${release}${shared_ext}$major'
8900 if test "X$HPUX_IA64_MODE" = X32; then
8901 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8902 else
8903 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8904 fi
8905 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8906 ;;
8907 hppa*64*)
8908 shrext_cmds='.sl'
8909 hardcode_into_libs=yes
8910 dynamic_linker="$host_os dld.sl"
8911 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8912 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8914 soname_spec='${libname}${release}${shared_ext}$major'
8915 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8916 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8917 ;;
8918 *)
8919 shrext_cmds='.sl'
8920 dynamic_linker="$host_os dld.sl"
8921 shlibpath_var=SHLIB_PATH
8922 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8924 soname_spec='${libname}${release}${shared_ext}$major'
8925 ;;
8926 esac
8927 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8928 postinstall_cmds='chmod 555 $lib'
8929 ;;
8930
8931interix3*)
8932 version_type=linux
8933 need_lib_prefix=no
8934 need_version=no
8935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8936 soname_spec='${libname}${release}${shared_ext}$major'
8937 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8938 shlibpath_var=LD_LIBRARY_PATH
8939 shlibpath_overrides_runpath=no
8940 hardcode_into_libs=yes
8941 ;;
8942
8943irix5* | irix6* | nonstopux*)
8944 case $host_os in
8945 nonstopux*) version_type=nonstopux ;;
8946 *)
8947 if test "$lt_cv_prog_gnu_ld" = yes; then
8948 version_type=linux
8949 else
8950 version_type=irix
8951 fi ;;
8952 esac
8953 need_lib_prefix=no
8954 need_version=no
8955 soname_spec='${libname}${release}${shared_ext}$major'
8956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8957 case $host_os in
8958 irix5* | nonstopux*)
8959 libsuff= shlibsuff=
8960 ;;
8961 *)
8962 case $LD in # libtool.m4 will add one of these switches to LD
8963 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8964 libsuff= shlibsuff= libmagic=32-bit;;
8965 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8966 libsuff=32 shlibsuff=N32 libmagic=N32;;
8967 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8968 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8969 *) libsuff= shlibsuff= libmagic=never-match;;
8970 esac
8971 ;;
8972 esac
8973 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8974 shlibpath_overrides_runpath=no
8975 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8976 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8977 hardcode_into_libs=yes
8978 ;;
8979
8980# No shared lib support for Linux oldld, aout, or coff.
8981linux*oldld* | linux*aout* | linux*coff*)
8982 dynamic_linker=no
8983 ;;
8984
8985# This must be Linux ELF.
8986linux*)
8987 version_type=linux
8988 need_lib_prefix=no
8989 need_version=no
8990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8991 soname_spec='${libname}${release}${shared_ext}$major'
8992 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8993 shlibpath_var=LD_LIBRARY_PATH
8994 shlibpath_overrides_runpath=no
8995 # This implies no fast_install, which is unacceptable.
8996 # Some rework will be needed to allow for fast_install
8997 # before this can be enabled.
8998 hardcode_into_libs=yes
8999
9000 # find out which ABI we are using
9001 libsuff=
9002 case "$host_cpu" in
9003 x86_64*|s390x*|powerpc64*)
64ff59ba 9004 echo '#line 9004 "configure"' > conftest.$ac_ext
d9898ee8 9005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9006 (eval $ac_compile) 2>&5
9007 ac_status=$?
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); }; then
9010 case `/usr/bin/file conftest.$ac_objext` in
9011 *64-bit*)
9012 libsuff=64
9013 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9014 ;;
9015 esac
9016 fi
9017 rm -rf conftest*
9018 ;;
9019 esac
9020
9021 # Append ld.so.conf contents to the search path
9022 if test -f /etc/ld.so.conf; then
64ff59ba 9023 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 9024 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9025 fi
9026
9027 # We used to test for /lib/ld.so.1 and disable shared libraries on
9028 # powerpc, because MkLinux only supported shared libraries with the
9029 # GNU dynamic linker. Since this was broken with cross compilers,
9030 # most powerpc-linux boxes support dynamic linking these days and
9031 # people can always --disable-shared, the test was removed, and we
9032 # assume the GNU/Linux dynamic linker is in use.
9033 dynamic_linker='GNU/Linux ld.so'
9034 ;;
9035
9036knetbsd*-gnu)
9037 version_type=linux
9038 need_lib_prefix=no
9039 need_version=no
9040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9041 soname_spec='${libname}${release}${shared_ext}$major'
9042 shlibpath_var=LD_LIBRARY_PATH
9043 shlibpath_overrides_runpath=no
9044 hardcode_into_libs=yes
9045 dynamic_linker='GNU ld.so'
9046 ;;
9047
9048netbsd*)
9049 version_type=sunos
9050 need_lib_prefix=no
9051 need_version=no
9052 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9054 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9055 dynamic_linker='NetBSD (a.out) ld.so'
9056 else
9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9058 soname_spec='${libname}${release}${shared_ext}$major'
9059 dynamic_linker='NetBSD ld.elf_so'
9060 fi
9061 shlibpath_var=LD_LIBRARY_PATH
9062 shlibpath_overrides_runpath=yes
9063 hardcode_into_libs=yes
9064 ;;
9065
9066newsos6)
9067 version_type=linux
9068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9069 shlibpath_var=LD_LIBRARY_PATH
9070 shlibpath_overrides_runpath=yes
9071 ;;
9072
9073nto-qnx*)
9074 version_type=linux
9075 need_lib_prefix=no
9076 need_version=no
9077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9078 soname_spec='${libname}${release}${shared_ext}$major'
9079 shlibpath_var=LD_LIBRARY_PATH
9080 shlibpath_overrides_runpath=yes
9081 ;;
9082
9083openbsd*)
9084 version_type=sunos
9085 sys_lib_dlsearch_path_spec="/usr/lib"
9086 need_lib_prefix=no
9087 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9088 case $host_os in
9089 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9090 *) need_version=no ;;
9091 esac
9092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9093 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9094 shlibpath_var=LD_LIBRARY_PATH
9095 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9096 case $host_os in
9097 openbsd2.[89] | openbsd2.[89].*)
9098 shlibpath_overrides_runpath=no
9099 ;;
9100 *)
9101 shlibpath_overrides_runpath=yes
9102 ;;
9103 esac
9104 else
9105 shlibpath_overrides_runpath=yes
9106 fi
9107 ;;
9108
9109os2*)
9110 libname_spec='$name'
9111 shrext_cmds=".dll"
9112 need_lib_prefix=no
9113 library_names_spec='$libname${shared_ext} $libname.a'
9114 dynamic_linker='OS/2 ld.exe'
9115 shlibpath_var=LIBPATH
9116 ;;
9117
9118osf3* | osf4* | osf5*)
9119 version_type=osf
9120 need_lib_prefix=no
9121 need_version=no
9122 soname_spec='${libname}${release}${shared_ext}$major'
9123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9124 shlibpath_var=LD_LIBRARY_PATH
9125 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9126 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9127 ;;
9128
9129solaris*)
9130 version_type=linux
9131 need_lib_prefix=no
9132 need_version=no
9133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9134 soname_spec='${libname}${release}${shared_ext}$major'
9135 shlibpath_var=LD_LIBRARY_PATH
9136 shlibpath_overrides_runpath=yes
9137 hardcode_into_libs=yes
9138 # ldd complains unless libraries are executable
9139 postinstall_cmds='chmod +x $lib'
9140 ;;
9141
9142sunos4*)
9143 version_type=sunos
9144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9145 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9146 shlibpath_var=LD_LIBRARY_PATH
9147 shlibpath_overrides_runpath=yes
9148 if test "$with_gnu_ld" = yes; then
9149 need_lib_prefix=no
9150 fi
9151 need_version=yes
9152 ;;
9153
9154sysv4 | sysv4.3*)
9155 version_type=linux
9156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9157 soname_spec='${libname}${release}${shared_ext}$major'
9158 shlibpath_var=LD_LIBRARY_PATH
9159 case $host_vendor in
9160 sni)
9161 shlibpath_overrides_runpath=no
9162 need_lib_prefix=no
9163 export_dynamic_flag_spec='${wl}-Blargedynsym'
9164 runpath_var=LD_RUN_PATH
9165 ;;
9166 siemens)
9167 need_lib_prefix=no
9168 ;;
9169 motorola)
9170 need_lib_prefix=no
9171 need_version=no
9172 shlibpath_overrides_runpath=no
9173 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9174 ;;
9175 esac
9176 ;;
9177
9178sysv4*MP*)
9179 if test -d /usr/nec ;then
9180 version_type=linux
9181 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9182 soname_spec='$libname${shared_ext}.$major'
9183 shlibpath_var=LD_LIBRARY_PATH
9184 fi
9185 ;;
9186
9187sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9188 version_type=freebsd-elf
9189 need_lib_prefix=no
9190 need_version=no
9191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9192 soname_spec='${libname}${release}${shared_ext}$major'
9193 shlibpath_var=LD_LIBRARY_PATH
9194 hardcode_into_libs=yes
9195 if test "$with_gnu_ld" = yes; then
9196 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9197 shlibpath_overrides_runpath=no
9198 else
9199 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9200 shlibpath_overrides_runpath=yes
9201 case $host_os in
9202 sco3.2v5*)
9203 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9204 ;;
9205 esac
9206 fi
9207 sys_lib_dlsearch_path_spec='/usr/lib'
9208 ;;
9209
9210uts4*)
9211 version_type=linux
9212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9213 soname_spec='${libname}${release}${shared_ext}$major'
9214 shlibpath_var=LD_LIBRARY_PATH
9215 ;;
9216
9217*)
9218 dynamic_linker=no
9219 ;;
9220esac
64ff59ba 9221{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9222echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 9223test "$dynamic_linker" = no && can_build_shared=no
9224
9225variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9226if test "$GCC" = yes; then
9227 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9228fi
9229
64ff59ba 9230{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9231echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 9232hardcode_action=
9233if test -n "$hardcode_libdir_flag_spec" || \
9234 test -n "$runpath_var" || \
9235 test "X$hardcode_automatic" = "Xyes" ; then
9236
9237 # We can hardcode non-existant directories.
9238 if test "$hardcode_direct" != no &&
9239 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9240 # have to relink, otherwise we might link with an installed library
9241 # when we should be linking with a yet-to-be-installed one
9242 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9243 test "$hardcode_minus_L" != no; then
9244 # Linking always hardcodes the temporary library directory.
9245 hardcode_action=relink
9246 else
9247 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9248 hardcode_action=immediate
9249 fi
9250else
9251 # We cannot hardcode anything, or else we can only hardcode existing
9252 # directories.
9253 hardcode_action=unsupported
9254fi
64ff59ba 9255{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9256echo "${ECHO_T}$hardcode_action" >&6; }
d9898ee8 9257
9258if test "$hardcode_action" = relink; then
9259 # Fast installation is not supported
9260 enable_fast_install=no
9261elif test "$shlibpath_overrides_runpath" = yes ||
9262 test "$enable_shared" = no; then
9263 # Fast installation is not necessary
9264 enable_fast_install=needless
9265fi
9266
9267striplib=
9268old_striplib=
64ff59ba 9269{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9270echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
d9898ee8 9271if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9272 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9273 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
64ff59ba 9274 { echo "$as_me:$LINENO: result: yes" >&5
9275echo "${ECHO_T}yes" >&6; }
d9898ee8 9276else
9277# FIXME - insert some real tests, host_os isn't really good enough
9278 case $host_os in
9279 darwin*)
9280 if test -n "$STRIP" ; then
9281 striplib="$STRIP -x"
64ff59ba 9282 { echo "$as_me:$LINENO: result: yes" >&5
9283echo "${ECHO_T}yes" >&6; }
d9898ee8 9284 else
64ff59ba 9285 { echo "$as_me:$LINENO: result: no" >&5
9286echo "${ECHO_T}no" >&6; }
d9898ee8 9287fi
9288 ;;
9289 *)
64ff59ba 9290 { echo "$as_me:$LINENO: result: no" >&5
9291echo "${ECHO_T}no" >&6; }
d9898ee8 9292 ;;
9293 esac
9294fi
9295
9296if test "x$enable_dlopen" != xyes; then
9297 enable_dlopen=unknown
9298 enable_dlopen_self=unknown
9299 enable_dlopen_self_static=unknown
9300else
9301 lt_cv_dlopen=no
9302 lt_cv_dlopen_libs=
9303
9304 case $host_os in
9305 beos*)
9306 lt_cv_dlopen="load_add_on"
9307 lt_cv_dlopen_libs=
9308 lt_cv_dlopen_self=yes
9309 ;;
9310
9311 mingw* | pw32*)
9312 lt_cv_dlopen="LoadLibrary"
9313 lt_cv_dlopen_libs=
9314 ;;
9315
9316 cygwin*)
9317 lt_cv_dlopen="dlopen"
9318 lt_cv_dlopen_libs=
9319 ;;
9320
9321 darwin*)
9322 # if libdl is installed we need to link against it
64ff59ba 9323 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9324echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 9325if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9326 echo $ECHO_N "(cached) $ECHO_C" >&6
9327else
9328 ac_check_lib_save_LIBS=$LIBS
9329LIBS="-ldl $LIBS"
9330cat >conftest.$ac_ext <<_ACEOF
9331/* confdefs.h. */
9332_ACEOF
9333cat confdefs.h >>conftest.$ac_ext
9334cat >>conftest.$ac_ext <<_ACEOF
9335/* end confdefs.h. */
9336
64ff59ba 9337/* Override any GCC internal prototype to avoid an error.
9338 Use char because int might match the return type of a GCC
9339 builtin and then its argument prototype would still apply. */
d9898ee8 9340#ifdef __cplusplus
9341extern "C"
9342#endif
d9898ee8 9343char dlopen ();
9344int
9345main ()
9346{
64ff59ba 9347return dlopen ();
d9898ee8 9348 ;
9349 return 0;
9350}
9351_ACEOF
9352rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9353if { (ac_try="$ac_link"
9354case "(($ac_try" in
9355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9356 *) ac_try_echo=$ac_try;;
9357esac
9358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9359 (eval "$ac_link") 2>conftest.er1
d9898ee8 9360 ac_status=$?
9361 grep -v '^ *+' conftest.er1 >conftest.err
9362 rm -f conftest.er1
9363 cat conftest.err >&5
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9365 (exit $ac_status); } && {
9366 test -z "$ac_c_werror_flag" ||
9367 test ! -s conftest.err
9368 } && test -s conftest$ac_exeext &&
9369 $as_test_x conftest$ac_exeext; then
d9898ee8 9370 ac_cv_lib_dl_dlopen=yes
9371else
9372 echo "$as_me: failed program was:" >&5
9373sed 's/^/| /' conftest.$ac_ext >&5
9374
64ff59ba 9375 ac_cv_lib_dl_dlopen=no
d9898ee8 9376fi
64ff59ba 9377
9378rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9379 conftest$ac_exeext conftest.$ac_ext
9380LIBS=$ac_check_lib_save_LIBS
9381fi
64ff59ba 9382{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9383echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 9384if test $ac_cv_lib_dl_dlopen = yes; then
9385 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9386else
9387
9388 lt_cv_dlopen="dyld"
9389 lt_cv_dlopen_libs=
9390 lt_cv_dlopen_self=yes
9391
9392fi
9393
9394 ;;
9395
9396 *)
64ff59ba 9397 { echo "$as_me:$LINENO: checking for shl_load" >&5
9398echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
d9898ee8 9399if test "${ac_cv_func_shl_load+set}" = set; then
9400 echo $ECHO_N "(cached) $ECHO_C" >&6
9401else
9402 cat >conftest.$ac_ext <<_ACEOF
9403/* confdefs.h. */
9404_ACEOF
9405cat confdefs.h >>conftest.$ac_ext
9406cat >>conftest.$ac_ext <<_ACEOF
9407/* end confdefs.h. */
9408/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9410#define shl_load innocuous_shl_load
9411
9412/* System header to define __stub macros and hopefully few prototypes,
9413 which can conflict with char shl_load (); below.
9414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9415 <limits.h> exists even on freestanding compilers. */
9416
9417#ifdef __STDC__
9418# include <limits.h>
9419#else
9420# include <assert.h>
9421#endif
9422
9423#undef shl_load
9424
64ff59ba 9425/* Override any GCC internal prototype to avoid an error.
9426 Use char because int might match the return type of a GCC
9427 builtin and then its argument prototype would still apply. */
d9898ee8 9428#ifdef __cplusplus
9429extern "C"
d9898ee8 9430#endif
d9898ee8 9431char shl_load ();
9432/* The GNU C library defines this for functions which it implements
9433 to always fail with ENOSYS. Some functions are actually named
9434 something starting with __ and the normal name is an alias. */
64ff59ba 9435#if defined __stub_shl_load || defined __stub___shl_load
d9898ee8 9436choke me
d9898ee8 9437#endif
9438
9439int
9440main ()
9441{
64ff59ba 9442return shl_load ();
d9898ee8 9443 ;
9444 return 0;
9445}
9446_ACEOF
9447rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9448if { (ac_try="$ac_link"
9449case "(($ac_try" in
9450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9451 *) ac_try_echo=$ac_try;;
9452esac
9453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9454 (eval "$ac_link") 2>conftest.er1
d9898ee8 9455 ac_status=$?
9456 grep -v '^ *+' conftest.er1 >conftest.err
9457 rm -f conftest.er1
9458 cat conftest.err >&5
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9460 (exit $ac_status); } && {
9461 test -z "$ac_c_werror_flag" ||
9462 test ! -s conftest.err
9463 } && test -s conftest$ac_exeext &&
9464 $as_test_x conftest$ac_exeext; then
d9898ee8 9465 ac_cv_func_shl_load=yes
9466else
9467 echo "$as_me: failed program was:" >&5
9468sed 's/^/| /' conftest.$ac_ext >&5
9469
64ff59ba 9470 ac_cv_func_shl_load=no
d9898ee8 9471fi
64ff59ba 9472
9473rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9474 conftest$ac_exeext conftest.$ac_ext
9475fi
64ff59ba 9476{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9477echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
d9898ee8 9478if test $ac_cv_func_shl_load = yes; then
9479 lt_cv_dlopen="shl_load"
9480else
64ff59ba 9481 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9482echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
d9898ee8 9483if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9484 echo $ECHO_N "(cached) $ECHO_C" >&6
9485else
9486 ac_check_lib_save_LIBS=$LIBS
9487LIBS="-ldld $LIBS"
9488cat >conftest.$ac_ext <<_ACEOF
9489/* confdefs.h. */
9490_ACEOF
9491cat confdefs.h >>conftest.$ac_ext
9492cat >>conftest.$ac_ext <<_ACEOF
9493/* end confdefs.h. */
9494
64ff59ba 9495/* Override any GCC internal prototype to avoid an error.
9496 Use char because int might match the return type of a GCC
9497 builtin and then its argument prototype would still apply. */
d9898ee8 9498#ifdef __cplusplus
9499extern "C"
9500#endif
d9898ee8 9501char shl_load ();
9502int
9503main ()
9504{
64ff59ba 9505return shl_load ();
d9898ee8 9506 ;
9507 return 0;
9508}
9509_ACEOF
9510rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9511if { (ac_try="$ac_link"
9512case "(($ac_try" in
9513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9514 *) ac_try_echo=$ac_try;;
9515esac
9516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9517 (eval "$ac_link") 2>conftest.er1
d9898ee8 9518 ac_status=$?
9519 grep -v '^ *+' conftest.er1 >conftest.err
9520 rm -f conftest.er1
9521 cat conftest.err >&5
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9523 (exit $ac_status); } && {
9524 test -z "$ac_c_werror_flag" ||
9525 test ! -s conftest.err
9526 } && test -s conftest$ac_exeext &&
9527 $as_test_x conftest$ac_exeext; then
d9898ee8 9528 ac_cv_lib_dld_shl_load=yes
9529else
9530 echo "$as_me: failed program was:" >&5
9531sed 's/^/| /' conftest.$ac_ext >&5
9532
64ff59ba 9533 ac_cv_lib_dld_shl_load=no
d9898ee8 9534fi
64ff59ba 9535
9536rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9537 conftest$ac_exeext conftest.$ac_ext
9538LIBS=$ac_check_lib_save_LIBS
9539fi
64ff59ba 9540{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9541echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
d9898ee8 9542if test $ac_cv_lib_dld_shl_load = yes; then
9543 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9544else
64ff59ba 9545 { echo "$as_me:$LINENO: checking for dlopen" >&5
9546echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
d9898ee8 9547if test "${ac_cv_func_dlopen+set}" = set; then
9548 echo $ECHO_N "(cached) $ECHO_C" >&6
9549else
9550 cat >conftest.$ac_ext <<_ACEOF
9551/* confdefs.h. */
9552_ACEOF
9553cat confdefs.h >>conftest.$ac_ext
9554cat >>conftest.$ac_ext <<_ACEOF
9555/* end confdefs.h. */
9556/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9558#define dlopen innocuous_dlopen
9559
9560/* System header to define __stub macros and hopefully few prototypes,
9561 which can conflict with char dlopen (); below.
9562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9563 <limits.h> exists even on freestanding compilers. */
9564
9565#ifdef __STDC__
9566# include <limits.h>
9567#else
9568# include <assert.h>
9569#endif
9570
9571#undef dlopen
9572
64ff59ba 9573/* Override any GCC internal prototype to avoid an error.
9574 Use char because int might match the return type of a GCC
9575 builtin and then its argument prototype would still apply. */
d9898ee8 9576#ifdef __cplusplus
9577extern "C"
d9898ee8 9578#endif
d9898ee8 9579char dlopen ();
9580/* The GNU C library defines this for functions which it implements
9581 to always fail with ENOSYS. Some functions are actually named
9582 something starting with __ and the normal name is an alias. */
64ff59ba 9583#if defined __stub_dlopen || defined __stub___dlopen
d9898ee8 9584choke me
d9898ee8 9585#endif
9586
9587int
9588main ()
9589{
64ff59ba 9590return dlopen ();
d9898ee8 9591 ;
9592 return 0;
9593}
9594_ACEOF
9595rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9596if { (ac_try="$ac_link"
9597case "(($ac_try" in
9598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9599 *) ac_try_echo=$ac_try;;
9600esac
9601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9602 (eval "$ac_link") 2>conftest.er1
d9898ee8 9603 ac_status=$?
9604 grep -v '^ *+' conftest.er1 >conftest.err
9605 rm -f conftest.er1
9606 cat conftest.err >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9608 (exit $ac_status); } && {
9609 test -z "$ac_c_werror_flag" ||
9610 test ! -s conftest.err
9611 } && test -s conftest$ac_exeext &&
9612 $as_test_x conftest$ac_exeext; then
d9898ee8 9613 ac_cv_func_dlopen=yes
9614else
9615 echo "$as_me: failed program was:" >&5
9616sed 's/^/| /' conftest.$ac_ext >&5
9617
64ff59ba 9618 ac_cv_func_dlopen=no
d9898ee8 9619fi
64ff59ba 9620
9621rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9622 conftest$ac_exeext conftest.$ac_ext
9623fi
64ff59ba 9624{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9625echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
d9898ee8 9626if test $ac_cv_func_dlopen = yes; then
9627 lt_cv_dlopen="dlopen"
9628else
64ff59ba 9629 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9630echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 9631if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9632 echo $ECHO_N "(cached) $ECHO_C" >&6
9633else
9634 ac_check_lib_save_LIBS=$LIBS
9635LIBS="-ldl $LIBS"
9636cat >conftest.$ac_ext <<_ACEOF
9637/* confdefs.h. */
9638_ACEOF
9639cat confdefs.h >>conftest.$ac_ext
9640cat >>conftest.$ac_ext <<_ACEOF
9641/* end confdefs.h. */
9642
64ff59ba 9643/* Override any GCC internal prototype to avoid an error.
9644 Use char because int might match the return type of a GCC
9645 builtin and then its argument prototype would still apply. */
d9898ee8 9646#ifdef __cplusplus
9647extern "C"
9648#endif
d9898ee8 9649char dlopen ();
9650int
9651main ()
9652{
64ff59ba 9653return dlopen ();
d9898ee8 9654 ;
9655 return 0;
9656}
9657_ACEOF
9658rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9659if { (ac_try="$ac_link"
9660case "(($ac_try" in
9661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662 *) ac_try_echo=$ac_try;;
9663esac
9664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665 (eval "$ac_link") 2>conftest.er1
d9898ee8 9666 ac_status=$?
9667 grep -v '^ *+' conftest.er1 >conftest.err
9668 rm -f conftest.er1
9669 cat conftest.err >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9671 (exit $ac_status); } && {
9672 test -z "$ac_c_werror_flag" ||
9673 test ! -s conftest.err
9674 } && test -s conftest$ac_exeext &&
9675 $as_test_x conftest$ac_exeext; then
d9898ee8 9676 ac_cv_lib_dl_dlopen=yes
9677else
9678 echo "$as_me: failed program was:" >&5
9679sed 's/^/| /' conftest.$ac_ext >&5
9680
64ff59ba 9681 ac_cv_lib_dl_dlopen=no
d9898ee8 9682fi
64ff59ba 9683
9684rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9685 conftest$ac_exeext conftest.$ac_ext
9686LIBS=$ac_check_lib_save_LIBS
9687fi
64ff59ba 9688{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9689echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 9690if test $ac_cv_lib_dl_dlopen = yes; then
9691 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9692else
64ff59ba 9693 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9694echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
d9898ee8 9695if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9696 echo $ECHO_N "(cached) $ECHO_C" >&6
9697else
9698 ac_check_lib_save_LIBS=$LIBS
9699LIBS="-lsvld $LIBS"
9700cat >conftest.$ac_ext <<_ACEOF
9701/* confdefs.h. */
9702_ACEOF
9703cat confdefs.h >>conftest.$ac_ext
9704cat >>conftest.$ac_ext <<_ACEOF
9705/* end confdefs.h. */
9706
64ff59ba 9707/* Override any GCC internal prototype to avoid an error.
9708 Use char because int might match the return type of a GCC
9709 builtin and then its argument prototype would still apply. */
d9898ee8 9710#ifdef __cplusplus
9711extern "C"
9712#endif
d9898ee8 9713char dlopen ();
9714int
9715main ()
9716{
64ff59ba 9717return dlopen ();
d9898ee8 9718 ;
9719 return 0;
9720}
9721_ACEOF
9722rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9723if { (ac_try="$ac_link"
9724case "(($ac_try" in
9725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9726 *) ac_try_echo=$ac_try;;
9727esac
9728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9729 (eval "$ac_link") 2>conftest.er1
d9898ee8 9730 ac_status=$?
9731 grep -v '^ *+' conftest.er1 >conftest.err
9732 rm -f conftest.er1
9733 cat conftest.err >&5
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9735 (exit $ac_status); } && {
9736 test -z "$ac_c_werror_flag" ||
9737 test ! -s conftest.err
9738 } && test -s conftest$ac_exeext &&
9739 $as_test_x conftest$ac_exeext; then
d9898ee8 9740 ac_cv_lib_svld_dlopen=yes
9741else
9742 echo "$as_me: failed program was:" >&5
9743sed 's/^/| /' conftest.$ac_ext >&5
9744
64ff59ba 9745 ac_cv_lib_svld_dlopen=no
d9898ee8 9746fi
64ff59ba 9747
9748rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9749 conftest$ac_exeext conftest.$ac_ext
9750LIBS=$ac_check_lib_save_LIBS
9751fi
64ff59ba 9752{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9753echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
d9898ee8 9754if test $ac_cv_lib_svld_dlopen = yes; then
9755 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9756else
64ff59ba 9757 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9758echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
d9898ee8 9759if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9760 echo $ECHO_N "(cached) $ECHO_C" >&6
9761else
9762 ac_check_lib_save_LIBS=$LIBS
9763LIBS="-ldld $LIBS"
9764cat >conftest.$ac_ext <<_ACEOF
9765/* confdefs.h. */
9766_ACEOF
9767cat confdefs.h >>conftest.$ac_ext
9768cat >>conftest.$ac_ext <<_ACEOF
9769/* end confdefs.h. */
9770
64ff59ba 9771/* Override any GCC internal prototype to avoid an error.
9772 Use char because int might match the return type of a GCC
9773 builtin and then its argument prototype would still apply. */
d9898ee8 9774#ifdef __cplusplus
9775extern "C"
9776#endif
d9898ee8 9777char dld_link ();
9778int
9779main ()
9780{
64ff59ba 9781return dld_link ();
d9898ee8 9782 ;
9783 return 0;
9784}
9785_ACEOF
9786rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9787if { (ac_try="$ac_link"
9788case "(($ac_try" in
9789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790 *) ac_try_echo=$ac_try;;
9791esac
9792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9793 (eval "$ac_link") 2>conftest.er1
d9898ee8 9794 ac_status=$?
9795 grep -v '^ *+' conftest.er1 >conftest.err
9796 rm -f conftest.er1
9797 cat conftest.err >&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9799 (exit $ac_status); } && {
9800 test -z "$ac_c_werror_flag" ||
9801 test ! -s conftest.err
9802 } && test -s conftest$ac_exeext &&
9803 $as_test_x conftest$ac_exeext; then
d9898ee8 9804 ac_cv_lib_dld_dld_link=yes
9805else
9806 echo "$as_me: failed program was:" >&5
9807sed 's/^/| /' conftest.$ac_ext >&5
9808
64ff59ba 9809 ac_cv_lib_dld_dld_link=no
d9898ee8 9810fi
64ff59ba 9811
9812rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9813 conftest$ac_exeext conftest.$ac_ext
9814LIBS=$ac_check_lib_save_LIBS
9815fi
64ff59ba 9816{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9817echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
d9898ee8 9818if test $ac_cv_lib_dld_dld_link = yes; then
9819 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9820fi
9821
9822
9823fi
9824
9825
9826fi
9827
9828
9829fi
9830
9831
9832fi
9833
9834
9835fi
9836
9837 ;;
9838 esac
9839
9840 if test "x$lt_cv_dlopen" != xno; then
9841 enable_dlopen=yes
9842 else
9843 enable_dlopen=no
9844 fi
9845
9846 case $lt_cv_dlopen in
9847 dlopen)
9848 save_CPPFLAGS="$CPPFLAGS"
9849 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9850
9851 save_LDFLAGS="$LDFLAGS"
9852 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9853
9854 save_LIBS="$LIBS"
9855 LIBS="$lt_cv_dlopen_libs $LIBS"
9856
64ff59ba 9857 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9858echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
d9898ee8 9859if test "${lt_cv_dlopen_self+set}" = set; then
9860 echo $ECHO_N "(cached) $ECHO_C" >&6
9861else
9862 if test "$cross_compiling" = yes; then :
9863 lt_cv_dlopen_self=cross
9864else
9865 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9866 lt_status=$lt_dlunknown
9867 cat > conftest.$ac_ext <<EOF
64ff59ba 9868#line 9868 "configure"
d9898ee8 9869#include "confdefs.h"
9870
9871#if HAVE_DLFCN_H
9872#include <dlfcn.h>
9873#endif
9874
9875#include <stdio.h>
9876
9877#ifdef RTLD_GLOBAL
9878# define LT_DLGLOBAL RTLD_GLOBAL
9879#else
9880# ifdef DL_GLOBAL
9881# define LT_DLGLOBAL DL_GLOBAL
9882# else
9883# define LT_DLGLOBAL 0
9884# endif
9885#endif
9886
9887/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9888 find out it does not work in some platform. */
9889#ifndef LT_DLLAZY_OR_NOW
9890# ifdef RTLD_LAZY
9891# define LT_DLLAZY_OR_NOW RTLD_LAZY
9892# else
9893# ifdef DL_LAZY
9894# define LT_DLLAZY_OR_NOW DL_LAZY
9895# else
9896# ifdef RTLD_NOW
9897# define LT_DLLAZY_OR_NOW RTLD_NOW
9898# else
9899# ifdef DL_NOW
9900# define LT_DLLAZY_OR_NOW DL_NOW
9901# else
9902# define LT_DLLAZY_OR_NOW 0
9903# endif
9904# endif
9905# endif
9906# endif
9907#endif
9908
9909#ifdef __cplusplus
9910extern "C" void exit (int);
9911#endif
9912
9913void fnord() { int i=42;}
9914int main ()
9915{
9916 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9917 int status = $lt_dlunknown;
9918
9919 if (self)
9920 {
9921 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9922 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9923 /* dlclose (self); */
9924 }
9925 else
9926 puts (dlerror ());
9927
9928 exit (status);
9929}
9930EOF
9931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9932 (eval $ac_link) 2>&5
9933 ac_status=$?
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9936 (./conftest; exit; ) >&5 2>/dev/null
9937 lt_status=$?
9938 case x$lt_status in
9939 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9940 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9941 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9942 esac
9943 else :
9944 # compilation failed
9945 lt_cv_dlopen_self=no
9946 fi
9947fi
9948rm -fr conftest*
9949
9950
9951fi
64ff59ba 9952{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9953echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
d9898ee8 9954
9955 if test "x$lt_cv_dlopen_self" = xyes; then
9956 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
64ff59ba 9957 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9958echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
d9898ee8 9959if test "${lt_cv_dlopen_self_static+set}" = set; then
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
9961else
9962 if test "$cross_compiling" = yes; then :
9963 lt_cv_dlopen_self_static=cross
9964else
9965 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9966 lt_status=$lt_dlunknown
9967 cat > conftest.$ac_ext <<EOF
64ff59ba 9968#line 9968 "configure"
d9898ee8 9969#include "confdefs.h"
9970
9971#if HAVE_DLFCN_H
9972#include <dlfcn.h>
9973#endif
9974
9975#include <stdio.h>
9976
9977#ifdef RTLD_GLOBAL
9978# define LT_DLGLOBAL RTLD_GLOBAL
9979#else
9980# ifdef DL_GLOBAL
9981# define LT_DLGLOBAL DL_GLOBAL
9982# else
9983# define LT_DLGLOBAL 0
9984# endif
9985#endif
9986
9987/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9988 find out it does not work in some platform. */
9989#ifndef LT_DLLAZY_OR_NOW
9990# ifdef RTLD_LAZY
9991# define LT_DLLAZY_OR_NOW RTLD_LAZY
9992# else
9993# ifdef DL_LAZY
9994# define LT_DLLAZY_OR_NOW DL_LAZY
9995# else
9996# ifdef RTLD_NOW
9997# define LT_DLLAZY_OR_NOW RTLD_NOW
9998# else
9999# ifdef DL_NOW
10000# define LT_DLLAZY_OR_NOW DL_NOW
10001# else
10002# define LT_DLLAZY_OR_NOW 0
10003# endif
10004# endif
10005# endif
10006# endif
10007#endif
10008
10009#ifdef __cplusplus
10010extern "C" void exit (int);
10011#endif
10012
10013void fnord() { int i=42;}
10014int main ()
10015{
10016 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10017 int status = $lt_dlunknown;
10018
10019 if (self)
10020 {
10021 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10022 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10023 /* dlclose (self); */
10024 }
10025 else
10026 puts (dlerror ());
10027
10028 exit (status);
10029}
10030EOF
10031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10032 (eval $ac_link) 2>&5
10033 ac_status=$?
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10036 (./conftest; exit; ) >&5 2>/dev/null
10037 lt_status=$?
10038 case x$lt_status in
10039 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10040 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10041 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10042 esac
10043 else :
10044 # compilation failed
10045 lt_cv_dlopen_self_static=no
10046 fi
10047fi
10048rm -fr conftest*
10049
10050
10051fi
64ff59ba 10052{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10053echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
d9898ee8 10054 fi
10055
10056 CPPFLAGS="$save_CPPFLAGS"
10057 LDFLAGS="$save_LDFLAGS"
10058 LIBS="$save_LIBS"
10059 ;;
10060 esac
10061
10062 case $lt_cv_dlopen_self in
10063 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10064 *) enable_dlopen_self=unknown ;;
10065 esac
10066
10067 case $lt_cv_dlopen_self_static in
10068 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10069 *) enable_dlopen_self_static=unknown ;;
10070 esac
10071fi
10072
10073
10074# Report which library types will actually be built
64ff59ba 10075{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10076echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10077{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10078echo "${ECHO_T}$can_build_shared" >&6; }
d9898ee8 10079
64ff59ba 10080{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10081echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d9898ee8 10082test "$can_build_shared" = "no" && enable_shared=no
10083
10084# On AIX, shared libraries and static libraries use the same namespace, and
10085# are all built from PIC.
10086case $host_os in
10087aix3*)
10088 test "$enable_shared" = yes && enable_static=no
10089 if test -n "$RANLIB"; then
10090 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10091 postinstall_cmds='$RANLIB $lib'
10092 fi
10093 ;;
10094
10095aix4* | aix5*)
10096 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10097 test "$enable_shared" = yes && enable_static=no
10098 fi
10099 ;;
10100esac
64ff59ba 10101{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10102echo "${ECHO_T}$enable_shared" >&6; }
d9898ee8 10103
64ff59ba 10104{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10105echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d9898ee8 10106# Make sure either enable_shared or enable_static is yes.
10107test "$enable_shared" = yes || enable_static=yes
64ff59ba 10108{ echo "$as_me:$LINENO: result: $enable_static" >&5
10109echo "${ECHO_T}$enable_static" >&6; }
d9898ee8 10110
10111# The else clause should only fire when bootstrapping the
10112# libtool distribution, otherwise you forgot to ship ltmain.sh
10113# with your package, and you will get complaints that there are
10114# no rules to generate ltmain.sh.
10115if test -f "$ltmain"; then
10116 # See if we are running on zsh, and set the options which allow our commands through
10117 # without removal of \ escapes.
10118 if test -n "${ZSH_VERSION+set}" ; then
10119 setopt NO_GLOB_SUBST
10120 fi
10121 # Now quote all the things that may contain metacharacters while being
10122 # careful not to overquote the AC_SUBSTed values. We take copies of the
10123 # variables and quote the copies for generation of the libtool script.
10124 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10125 SED SHELL STRIP \
10126 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10127 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10128 deplibs_check_method reload_flag reload_cmds need_locks \
10129 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10130 lt_cv_sys_global_symbol_to_c_name_address \
10131 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10132 old_postinstall_cmds old_postuninstall_cmds \
10133 compiler \
10134 CC \
10135 LD \
10136 lt_prog_compiler_wl \
10137 lt_prog_compiler_pic \
10138 lt_prog_compiler_static \
10139 lt_prog_compiler_no_builtin_flag \
10140 export_dynamic_flag_spec \
10141 thread_safe_flag_spec \
10142 whole_archive_flag_spec \
10143 enable_shared_with_static_runtimes \
10144 old_archive_cmds \
10145 old_archive_from_new_cmds \
10146 predep_objects \
10147 postdep_objects \
10148 predeps \
10149 postdeps \
10150 compiler_lib_search_path \
10151 archive_cmds \
10152 archive_expsym_cmds \
10153 postinstall_cmds \
10154 postuninstall_cmds \
10155 old_archive_from_expsyms_cmds \
10156 allow_undefined_flag \
10157 no_undefined_flag \
10158 export_symbols_cmds \
10159 hardcode_libdir_flag_spec \
10160 hardcode_libdir_flag_spec_ld \
10161 hardcode_libdir_separator \
10162 hardcode_automatic \
10163 module_cmds \
10164 module_expsym_cmds \
10165 lt_cv_prog_compiler_c_o \
10166 exclude_expsyms \
10167 include_expsyms; do
10168
10169 case $var in
10170 old_archive_cmds | \
10171 old_archive_from_new_cmds | \
10172 archive_cmds | \
10173 archive_expsym_cmds | \
10174 module_cmds | \
10175 module_expsym_cmds | \
10176 old_archive_from_expsyms_cmds | \
10177 export_symbols_cmds | \
10178 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10179 postinstall_cmds | postuninstall_cmds | \
10180 old_postinstall_cmds | old_postuninstall_cmds | \
10181 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10182 # Double-quote double-evaled strings.
10183 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10184 ;;
10185 *)
10186 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10187 ;;
10188 esac
10189 done
10190
10191 case $lt_echo in
10192 *'\$0 --fallback-echo"')
10193 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10194 ;;
10195 esac
10196
10197cfgfile="${ofile}T"
10198 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10199 $rm -f "$cfgfile"
10200 { echo "$as_me:$LINENO: creating $ofile" >&5
10201echo "$as_me: creating $ofile" >&6;}
10202
10203 cat <<__EOF__ >> "$cfgfile"
10204#! $SHELL
10205
10206# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10207# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10208# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10209#
10210# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10211# Free Software Foundation, Inc.
10212#
10213# This file is part of GNU Libtool:
10214# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10215#
10216# This program is free software; you can redistribute it and/or modify
10217# it under the terms of the GNU General Public License as published by
10218# the Free Software Foundation; either version 2 of the License, or
10219# (at your option) any later version.
10220#
10221# This program is distributed in the hope that it will be useful, but
10222# WITHOUT ANY WARRANTY; without even the implied warranty of
10223# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10224# General Public License for more details.
10225#
10226# You should have received a copy of the GNU General Public License
10227# along with this program; if not, write to the Free Software
10228# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10229#
10230# As a special exception to the GNU General Public License, if you
10231# distribute this file as part of a program that contains a
10232# configuration script generated by Autoconf, you may include it under
10233# the same distribution terms that you use for the rest of that program.
10234
10235# A sed program that does not truncate output.
10236SED=$lt_SED
10237
10238# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10239Xsed="$SED -e 1s/^X//"
10240
10241# The HP-UX ksh and POSIX shell print the target directory to stdout
10242# if CDPATH is set.
10243(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10244
10245# The names of the tagged configurations supported by this script.
10246available_tags=
10247
10248# ### BEGIN LIBTOOL CONFIG
10249
10250# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10251
10252# Shell to use when invoking shell scripts.
10253SHELL=$lt_SHELL
10254
10255# Whether or not to build shared libraries.
10256build_libtool_libs=$enable_shared
10257
10258# Whether or not to build static libraries.
10259build_old_libs=$enable_static
10260
10261# Whether or not to add -lc for building shared libraries.
10262build_libtool_need_lc=$archive_cmds_need_lc
10263
10264# Whether or not to disallow shared libs when runtime libs are static
10265allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10266
10267# Whether or not to optimize for fast installation.
10268fast_install=$enable_fast_install
10269
10270# The host system.
10271host_alias=$host_alias
10272host=$host
10273host_os=$host_os
10274
10275# The build system.
10276build_alias=$build_alias
10277build=$build
10278build_os=$build_os
10279
10280# An echo program that does not interpret backslashes.
10281echo=$lt_echo
10282
10283# The archiver.
10284AR=$lt_AR
10285AR_FLAGS=$lt_AR_FLAGS
10286
10287# A C compiler.
10288LTCC=$lt_LTCC
10289
10290# LTCC compiler flags.
10291LTCFLAGS=$lt_LTCFLAGS
10292
10293# A language-specific compiler.
10294CC=$lt_compiler
10295
10296# Is the compiler the GNU C compiler?
10297with_gcc=$GCC
10298
d9898ee8 10299# An ERE matcher.
10300EGREP=$lt_EGREP
10301
10302# The linker used to build libraries.
10303LD=$lt_LD
10304
10305# Whether we need hard or soft links.
10306LN_S=$lt_LN_S
10307
10308# A BSD-compatible nm program.
10309NM=$lt_NM
10310
10311# A symbol stripping program
10312STRIP=$lt_STRIP
10313
10314# Used to examine libraries when file_magic_cmd begins "file"
10315MAGIC_CMD=$MAGIC_CMD
10316
10317# Used on cygwin: DLL creation program.
10318DLLTOOL="$DLLTOOL"
10319
10320# Used on cygwin: object dumper.
10321OBJDUMP="$OBJDUMP"
10322
10323# Used on cygwin: assembler.
10324AS="$AS"
10325
10326# The name of the directory that contains temporary libtool files.
10327objdir=$objdir
10328
10329# How to create reloadable object files.
10330reload_flag=$lt_reload_flag
10331reload_cmds=$lt_reload_cmds
10332
10333# How to pass a linker flag through the compiler.
10334wl=$lt_lt_prog_compiler_wl
10335
10336# Object file suffix (normally "o").
10337objext="$ac_objext"
10338
10339# Old archive suffix (normally "a").
10340libext="$libext"
10341
10342# Shared library suffix (normally ".so").
10343shrext_cmds='$shrext_cmds'
10344
10345# Executable file suffix (normally "").
10346exeext="$exeext"
10347
10348# Additional compiler flags for building library objects.
10349pic_flag=$lt_lt_prog_compiler_pic
10350pic_mode=$pic_mode
10351
10352# What is the maximum length of a command?
10353max_cmd_len=$lt_cv_sys_max_cmd_len
10354
10355# Does compiler simultaneously support -c and -o options?
10356compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10357
10358# Must we lock files when doing compilation?
10359need_locks=$lt_need_locks
10360
10361# Do we need the lib prefix for modules?
10362need_lib_prefix=$need_lib_prefix
10363
10364# Do we need a version for libraries?
10365need_version=$need_version
10366
10367# Whether dlopen is supported.
10368dlopen_support=$enable_dlopen
10369
10370# Whether dlopen of programs is supported.
10371dlopen_self=$enable_dlopen_self
10372
10373# Whether dlopen of statically linked programs is supported.
10374dlopen_self_static=$enable_dlopen_self_static
10375
10376# Compiler flag to prevent dynamic linking.
10377link_static_flag=$lt_lt_prog_compiler_static
10378
10379# Compiler flag to turn off builtin functions.
10380no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10381
10382# Compiler flag to allow reflexive dlopens.
10383export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10384
10385# Compiler flag to generate shared objects directly from archives.
10386whole_archive_flag_spec=$lt_whole_archive_flag_spec
10387
10388# Compiler flag to generate thread-safe objects.
10389thread_safe_flag_spec=$lt_thread_safe_flag_spec
10390
10391# Library versioning type.
10392version_type=$version_type
10393
10394# Format of library name prefix.
10395libname_spec=$lt_libname_spec
10396
10397# List of archive names. First name is the real one, the rest are links.
10398# The last name is the one that the linker finds with -lNAME.
10399library_names_spec=$lt_library_names_spec
10400
10401# The coded name of the library, if different from the real name.
10402soname_spec=$lt_soname_spec
10403
10404# Commands used to build and install an old-style archive.
10405RANLIB=$lt_RANLIB
10406old_archive_cmds=$lt_old_archive_cmds
10407old_postinstall_cmds=$lt_old_postinstall_cmds
10408old_postuninstall_cmds=$lt_old_postuninstall_cmds
10409
10410# Create an old-style archive from a shared archive.
10411old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10412
10413# Create a temporary old-style archive to link instead of a shared archive.
10414old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10415
10416# Commands used to build and install a shared archive.
10417archive_cmds=$lt_archive_cmds
10418archive_expsym_cmds=$lt_archive_expsym_cmds
10419postinstall_cmds=$lt_postinstall_cmds
10420postuninstall_cmds=$lt_postuninstall_cmds
10421
10422# Commands used to build a loadable module (assumed same as above if empty)
10423module_cmds=$lt_module_cmds
10424module_expsym_cmds=$lt_module_expsym_cmds
10425
10426# Commands to strip libraries.
10427old_striplib=$lt_old_striplib
10428striplib=$lt_striplib
10429
10430# Dependencies to place before the objects being linked to create a
10431# shared library.
64ff59ba 10432predep_objects=$lt_predep_objects
d9898ee8 10433
10434# Dependencies to place after the objects being linked to create a
10435# shared library.
64ff59ba 10436postdep_objects=$lt_postdep_objects
d9898ee8 10437
10438# Dependencies to place before the objects being linked to create a
10439# shared library.
10440predeps=$lt_predeps
10441
10442# Dependencies to place after the objects being linked to create a
10443# shared library.
10444postdeps=$lt_postdeps
10445
10446# The library search path used internally by the compiler when linking
10447# a shared library.
64ff59ba 10448compiler_lib_search_path=$lt_compiler_lib_search_path
d9898ee8 10449
10450# Method to check whether dependent libraries are shared objects.
10451deplibs_check_method=$lt_deplibs_check_method
10452
10453# Command to use when deplibs_check_method == file_magic.
10454file_magic_cmd=$lt_file_magic_cmd
10455
10456# Flag that allows shared libraries with undefined symbols to be built.
10457allow_undefined_flag=$lt_allow_undefined_flag
10458
10459# Flag that forces no undefined symbols.
10460no_undefined_flag=$lt_no_undefined_flag
10461
10462# Commands used to finish a libtool library installation in a directory.
10463finish_cmds=$lt_finish_cmds
10464
10465# Same as above, but a single script fragment to be evaled but not shown.
10466finish_eval=$lt_finish_eval
10467
10468# Take the output of nm and produce a listing of raw symbols and C names.
10469global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10470
10471# Transform the output of nm in a proper C declaration
10472global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10473
10474# Transform the output of nm in a C name address pair
10475global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10476
10477# This is the shared library runtime path variable.
10478runpath_var=$runpath_var
10479
10480# This is the shared library path variable.
10481shlibpath_var=$shlibpath_var
10482
10483# Is shlibpath searched before the hard-coded library search path?
10484shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10485
10486# How to hardcode a shared library path into an executable.
10487hardcode_action=$hardcode_action
10488
10489# Whether we should hardcode library paths into libraries.
10490hardcode_into_libs=$hardcode_into_libs
10491
10492# Flag to hardcode \$libdir into a binary during linking.
10493# This must work even if \$libdir does not exist.
10494hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10495
10496# If ld is used when linking, flag to hardcode \$libdir into
10497# a binary during linking. This must work even if \$libdir does
10498# not exist.
10499hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10500
10501# Whether we need a single -rpath flag with a separated argument.
10502hardcode_libdir_separator=$lt_hardcode_libdir_separator
10503
10504# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10505# resulting binary.
10506hardcode_direct=$hardcode_direct
10507
10508# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10509# resulting binary.
10510hardcode_minus_L=$hardcode_minus_L
10511
10512# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10513# the resulting binary.
10514hardcode_shlibpath_var=$hardcode_shlibpath_var
10515
10516# Set to yes if building a shared library automatically hardcodes DIR into the library
10517# and all subsequent libraries and executables linked against it.
10518hardcode_automatic=$hardcode_automatic
10519
10520# Variables whose values should be saved in libtool wrapper scripts and
10521# restored at relink time.
10522variables_saved_for_relink="$variables_saved_for_relink"
10523
10524# Whether libtool must link a program against all its dependency libraries.
10525link_all_deplibs=$link_all_deplibs
10526
10527# Compile-time system search path for libraries
64ff59ba 10528sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 10529
10530# Run-time system search path for libraries
10531sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10532
10533# Fix the shell variable \$srcfile for the compiler.
10534fix_srcfile_path="$fix_srcfile_path"
10535
10536# Set to yes if exported symbols are required.
10537always_export_symbols=$always_export_symbols
10538
10539# The commands to list exported symbols.
10540export_symbols_cmds=$lt_export_symbols_cmds
10541
10542# The commands to extract the exported symbol list from a shared archive.
10543extract_expsyms_cmds=$lt_extract_expsyms_cmds
10544
10545# Symbols that should not be listed in the preloaded symbols.
10546exclude_expsyms=$lt_exclude_expsyms
10547
10548# Symbols that must always be exported.
10549include_expsyms=$lt_include_expsyms
10550
10551# ### END LIBTOOL CONFIG
10552
10553__EOF__
10554
10555
10556 case $host_os in
10557 aix3*)
10558 cat <<\EOF >> "$cfgfile"
10559
10560# AIX sometimes has problems with the GCC collect2 program. For some
10561# reason, if we set the COLLECT_NAMES environment variable, the problems
10562# vanish in a puff of smoke.
10563if test "X${COLLECT_NAMES+set}" != Xset; then
10564 COLLECT_NAMES=
10565 export COLLECT_NAMES
10566fi
10567EOF
10568 ;;
10569 esac
10570
10571 # We use sed instead of cat because bash on DJGPP gets confused if
10572 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10573 # text mode, it properly converts lines to CR/LF. This bash problem
10574 # is reportedly fixed, but why not run on old versions too?
10575 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10576
10577 mv -f "$cfgfile" "$ofile" || \
10578 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10579 chmod +x "$ofile"
10580
10581else
10582 # If there is no Makefile yet, we rely on a make rule to execute
10583 # `config.status --recheck' to rerun these tests and create the
10584 # libtool script then.
10585 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10586 if test -f "$ltmain_in"; then
10587 test -f Makefile && make "$ltmain"
10588 fi
10589fi
10590
10591
10592ac_ext=c
10593ac_cpp='$CPP $CPPFLAGS'
10594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10596ac_compiler_gnu=$ac_cv_c_compiler_gnu
10597
10598CC="$lt_save_CC"
10599
10600
64ff59ba 10601# Check whether --with-tags was given.
d9898ee8 10602if test "${with_tags+set}" = set; then
64ff59ba 10603 withval=$with_tags; tagnames="$withval"
10604fi
10605
d9898ee8 10606
10607if test -f "$ltmain" && test -n "$tagnames"; then
10608 if test ! -f "${ofile}"; then
10609 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10610echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10611 fi
10612
10613 if test -z "$LTCC"; then
10614 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10615 if test -z "$LTCC"; then
10616 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10617echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10618 else
10619 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10620echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10621 fi
10622 fi
10623 if test -z "$LTCFLAGS"; then
10624 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10625 fi
10626
10627 # Extract list of available tagged configurations in $ofile.
10628 # Note that this assumes the entire list is on one line.
10629 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10630
10631 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10632 for tagname in $tagnames; do
10633 IFS="$lt_save_ifs"
10634 # Check whether tagname contains only valid characters
10635 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10636 "") ;;
10637 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10638echo "$as_me: error: invalid tag name: $tagname" >&2;}
10639 { (exit 1); exit 1; }; }
10640 ;;
10641 esac
10642
10643 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10644 then
10645 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10646echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10647 { (exit 1); exit 1; }; }
10648 fi
10649
10650 # Update the list of available tags.
10651 if test -n "$tagname"; then
10652 echo appending configuration tag \"$tagname\" to $ofile
10653
10654 case $tagname in
10655 CXX)
10656 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10657 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10658 (test "X$CXX" != "Xg++"))) ; then
64ff59ba 10659 ac_ext=cpp
d9898ee8 10660ac_cpp='$CXXCPP $CPPFLAGS'
10661ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10662ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10663ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10664
10665
10666
10667
10668archive_cmds_need_lc_CXX=no
10669allow_undefined_flag_CXX=
10670always_export_symbols_CXX=no
10671archive_expsym_cmds_CXX=
10672export_dynamic_flag_spec_CXX=
10673hardcode_direct_CXX=no
10674hardcode_libdir_flag_spec_CXX=
10675hardcode_libdir_flag_spec_ld_CXX=
10676hardcode_libdir_separator_CXX=
10677hardcode_minus_L_CXX=no
10678hardcode_shlibpath_var_CXX=unsupported
10679hardcode_automatic_CXX=no
10680module_cmds_CXX=
10681module_expsym_cmds_CXX=
10682link_all_deplibs_CXX=unknown
10683old_archive_cmds_CXX=$old_archive_cmds
10684no_undefined_flag_CXX=
10685whole_archive_flag_spec_CXX=
10686enable_shared_with_static_runtimes_CXX=no
10687
10688# Dependencies to place before and after the object being linked:
10689predep_objects_CXX=
10690postdep_objects_CXX=
10691predeps_CXX=
10692postdeps_CXX=
10693compiler_lib_search_path_CXX=
10694
10695# Source file extension for C++ test sources.
10696ac_ext=cpp
10697
10698# Object file extension for compiled C++ test sources.
10699objext=o
10700objext_CXX=$objext
10701
10702# Code to be used in simple compile tests
10703lt_simple_compile_test_code="int some_variable = 0;\n"
10704
10705# Code to be used in simple link tests
10706lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10707
10708# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10709
10710# If no C compiler was specified, use CC.
10711LTCC=${LTCC-"$CC"}
10712
10713# If no C compiler flags were specified, use CFLAGS.
10714LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10715
10716# Allow CC to be a program name with arguments.
10717compiler=$CC
10718
10719
10720# save warnings/boilerplate of simple test code
10721ac_outfile=conftest.$ac_objext
10722printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10723eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10724_lt_compiler_boilerplate=`cat conftest.err`
10725$rm conftest*
10726
10727ac_outfile=conftest.$ac_objext
10728printf "$lt_simple_link_test_code" >conftest.$ac_ext
10729eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10730_lt_linker_boilerplate=`cat conftest.err`
10731$rm conftest*
10732
10733
10734# Allow CC to be a program name with arguments.
10735lt_save_CC=$CC
10736lt_save_LD=$LD
10737lt_save_GCC=$GCC
10738GCC=$GXX
10739lt_save_with_gnu_ld=$with_gnu_ld
10740lt_save_path_LD=$lt_cv_path_LD
10741if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10742 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10743else
10744 $as_unset lt_cv_prog_gnu_ld
10745fi
10746if test -n "${lt_cv_path_LDCXX+set}"; then
10747 lt_cv_path_LD=$lt_cv_path_LDCXX
10748else
10749 $as_unset lt_cv_path_LD
10750fi
10751test -z "${LDCXX+set}" || LD=$LDCXX
10752CC=${CXX-"c++"}
10753compiler=$CC
10754compiler_CXX=$CC
10755for cc_temp in $compiler""; do
10756 case $cc_temp in
10757 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10758 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10759 \-*) ;;
10760 *) break;;
10761 esac
10762done
10763cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10764
10765
10766# We don't want -fno-exception wen compiling C++ code, so set the
10767# no_builtin_flag separately
10768if test "$GXX" = yes; then
10769 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10770else
10771 lt_prog_compiler_no_builtin_flag_CXX=
10772fi
10773
10774if test "$GXX" = yes; then
10775 # Set up default GNU C++ configuration
10776
10777
64ff59ba 10778# Check whether --with-gnu-ld was given.
d9898ee8 10779if test "${with_gnu_ld+set}" = set; then
64ff59ba 10780 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 10781else
10782 with_gnu_ld=no
64ff59ba 10783fi
10784
d9898ee8 10785ac_prog=ld
10786if test "$GCC" = yes; then
10787 # Check if gcc -print-prog-name=ld gives a path.
64ff59ba 10788 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10789echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d9898ee8 10790 case $host in
10791 *-*-mingw*)
10792 # gcc leaves a trailing carriage return which upsets mingw
10793 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10794 *)
10795 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10796 esac
10797 case $ac_prog in
10798 # Accept absolute paths.
10799 [\\/]* | ?:[\\/]*)
10800 re_direlt='/[^/][^/]*/\.\./'
10801 # Canonicalize the pathname of ld
10802 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10803 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10804 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10805 done
10806 test -z "$LD" && LD="$ac_prog"
10807 ;;
10808 "")
10809 # If it fails, then pretend we aren't using GCC.
10810 ac_prog=ld
10811 ;;
10812 *)
10813 # If it is relative, then search for the first ld in PATH.
10814 with_gnu_ld=unknown
10815 ;;
10816 esac
10817elif test "$with_gnu_ld" = yes; then
64ff59ba 10818 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10819echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d9898ee8 10820else
64ff59ba 10821 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10822echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d9898ee8 10823fi
10824if test "${lt_cv_path_LD+set}" = set; then
10825 echo $ECHO_N "(cached) $ECHO_C" >&6
10826else
10827 if test -z "$LD"; then
10828 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10829 for ac_dir in $PATH; do
10830 IFS="$lt_save_ifs"
10831 test -z "$ac_dir" && ac_dir=.
10832 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10833 lt_cv_path_LD="$ac_dir/$ac_prog"
10834 # Check to see if the program is GNU ld. I'd rather use --version,
10835 # but apparently some variants of GNU ld only accept -v.
10836 # Break only if it was the GNU/non-GNU ld that we prefer.
10837 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10838 *GNU* | *'with BFD'*)
10839 test "$with_gnu_ld" != no && break
10840 ;;
10841 *)
10842 test "$with_gnu_ld" != yes && break
10843 ;;
10844 esac
10845 fi
10846 done
10847 IFS="$lt_save_ifs"
10848else
10849 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10850fi
10851fi
10852
10853LD="$lt_cv_path_LD"
10854if test -n "$LD"; then
64ff59ba 10855 { echo "$as_me:$LINENO: result: $LD" >&5
10856echo "${ECHO_T}$LD" >&6; }
d9898ee8 10857else
64ff59ba 10858 { echo "$as_me:$LINENO: result: no" >&5
10859echo "${ECHO_T}no" >&6; }
d9898ee8 10860fi
10861test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10862echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10863 { (exit 1); exit 1; }; }
64ff59ba 10864{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10865echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d9898ee8 10866if test "${lt_cv_prog_gnu_ld+set}" = set; then
10867 echo $ECHO_N "(cached) $ECHO_C" >&6
10868else
10869 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10870case `$LD -v 2>&1 </dev/null` in
10871*GNU* | *'with BFD'*)
10872 lt_cv_prog_gnu_ld=yes
10873 ;;
10874*)
10875 lt_cv_prog_gnu_ld=no
10876 ;;
10877esac
10878fi
64ff59ba 10879{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10880echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 10881with_gnu_ld=$lt_cv_prog_gnu_ld
10882
10883
10884
10885 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10886 # archiving commands below assume that GNU ld is being used.
10887 if test "$with_gnu_ld" = yes; then
10888 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10889 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'
10890
10891 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10892 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10893
10894 # If archive_cmds runs LD, not CC, wlarc should be empty
10895 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10896 # investigate it a little bit more. (MM)
10897 wlarc='${wl}'
10898
10899 # ancient GNU ld didn't support --whole-archive et. al.
10900 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10901 grep 'no-whole-archive' > /dev/null; then
10902 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10903 else
10904 whole_archive_flag_spec_CXX=
10905 fi
10906 else
10907 with_gnu_ld=no
10908 wlarc=
10909
10910 # A generic and very simple default shared library creation
10911 # command for GNU C++ for the case where it uses the native
10912 # linker, instead of GNU ld. If possible, this setting should
10913 # overridden to take advantage of the native linker features on
10914 # the platform it is being used on.
10915 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10916 fi
10917
10918 # Commands to make compiler produce verbose output that lists
10919 # what "hidden" libraries, object files and flags are used when
10920 # linking a shared library.
10921 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10922
10923else
10924 GXX=no
10925 with_gnu_ld=no
10926 wlarc=
10927fi
10928
10929# PORTME: fill in a description of your system's C++ link characteristics
64ff59ba 10930{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10931echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 10932ld_shlibs_CXX=yes
10933case $host_os in
10934 aix3*)
10935 # FIXME: insert proper C++ library support
10936 ld_shlibs_CXX=no
10937 ;;
10938 aix4* | aix5*)
10939 if test "$host_cpu" = ia64; then
10940 # On IA64, the linker does run time linking by default, so we don't
10941 # have to do anything special.
10942 aix_use_runtimelinking=no
10943 exp_sym_flag='-Bexport'
10944 no_entry_flag=""
10945 else
10946 aix_use_runtimelinking=no
10947
10948 # Test if we are trying to use run time linking or normal
10949 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10950 # need to do runtime linking.
10951 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10952 for ld_flag in $LDFLAGS; do
10953 case $ld_flag in
10954 *-brtl*)
10955 aix_use_runtimelinking=yes
10956 break
10957 ;;
10958 esac
10959 done
10960 ;;
10961 esac
10962
10963 exp_sym_flag='-bexport'
10964 no_entry_flag='-bnoentry'
10965 fi
10966
10967 # When large executables or shared objects are built, AIX ld can
10968 # have problems creating the table of contents. If linking a library
10969 # or program results in "error TOC overflow" add -mminimal-toc to
10970 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10971 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10972
10973 archive_cmds_CXX=''
10974 hardcode_direct_CXX=yes
10975 hardcode_libdir_separator_CXX=':'
10976 link_all_deplibs_CXX=yes
10977
10978 if test "$GXX" = yes; then
10979 case $host_os in aix4.[012]|aix4.[012].*)
10980 # We only want to do this on AIX 4.2 and lower, the check
10981 # below for broken collect2 doesn't work under 4.3+
10982 collect2name=`${CC} -print-prog-name=collect2`
10983 if test -f "$collect2name" && \
10984 strings "$collect2name" | grep resolve_lib_name >/dev/null
10985 then
10986 # We have reworked collect2
10987 hardcode_direct_CXX=yes
10988 else
10989 # We have old collect2
10990 hardcode_direct_CXX=unsupported
10991 # It fails to find uninstalled libraries when the uninstalled
10992 # path is not listed in the libpath. Setting hardcode_minus_L
10993 # to unsupported forces relinking
10994 hardcode_minus_L_CXX=yes
10995 hardcode_libdir_flag_spec_CXX='-L$libdir'
10996 hardcode_libdir_separator_CXX=
10997 fi
10998 ;;
10999 esac
11000 shared_flag='-shared'
11001 if test "$aix_use_runtimelinking" = yes; then
11002 shared_flag="$shared_flag "'${wl}-G'
11003 fi
11004 else
11005 # not using gcc
11006 if test "$host_cpu" = ia64; then
11007 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11008 # chokes on -Wl,-G. The following line is correct:
11009 shared_flag='-G'
11010 else
11011 if test "$aix_use_runtimelinking" = yes; then
11012 shared_flag='${wl}-G'
11013 else
11014 shared_flag='${wl}-bM:SRE'
11015 fi
11016 fi
11017 fi
11018
11019 # It seems that -bexpall does not export symbols beginning with
11020 # underscore (_), so it is better to generate a list of symbols to export.
11021 always_export_symbols_CXX=yes
11022 if test "$aix_use_runtimelinking" = yes; then
11023 # Warning - without using the other runtime loading flags (-brtl),
11024 # -berok will link without error, but may produce a broken library.
11025 allow_undefined_flag_CXX='-berok'
11026 # Determine the default libpath from the value encoded in an empty executable.
11027 cat >conftest.$ac_ext <<_ACEOF
11028/* confdefs.h. */
11029_ACEOF
11030cat confdefs.h >>conftest.$ac_ext
11031cat >>conftest.$ac_ext <<_ACEOF
11032/* end confdefs.h. */
11033
11034int
11035main ()
11036{
11037
11038 ;
11039 return 0;
11040}
11041_ACEOF
11042rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 11043if { (ac_try="$ac_link"
11044case "(($ac_try" in
11045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11046 *) ac_try_echo=$ac_try;;
11047esac
11048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11049 (eval "$ac_link") 2>conftest.er1
d9898ee8 11050 ac_status=$?
11051 grep -v '^ *+' conftest.er1 >conftest.err
11052 rm -f conftest.er1
11053 cat conftest.err >&5
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 11055 (exit $ac_status); } && {
11056 test -z "$ac_cxx_werror_flag" ||
11057 test ! -s conftest.err
11058 } && test -s conftest$ac_exeext &&
11059 $as_test_x conftest$ac_exeext; then
d9898ee8 11060
11061aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11062}'`
11063# Check for a 64-bit object if we didn't find anything.
11064if 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; }
11065}'`; fi
11066else
11067 echo "$as_me: failed program was:" >&5
11068sed 's/^/| /' conftest.$ac_ext >&5
11069
64ff59ba 11070
d9898ee8 11071fi
64ff59ba 11072
11073rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 11074 conftest$ac_exeext conftest.$ac_ext
11075if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11076
11077 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11078
11079 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"
11080 else
11081 if test "$host_cpu" = ia64; then
11082 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11083 allow_undefined_flag_CXX="-z nodefs"
11084 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"
11085 else
11086 # Determine the default libpath from the value encoded in an empty executable.
11087 cat >conftest.$ac_ext <<_ACEOF
11088/* confdefs.h. */
11089_ACEOF
11090cat confdefs.h >>conftest.$ac_ext
11091cat >>conftest.$ac_ext <<_ACEOF
11092/* end confdefs.h. */
11093
11094int
11095main ()
11096{
11097
11098 ;
11099 return 0;
11100}
11101_ACEOF
11102rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 11103if { (ac_try="$ac_link"
11104case "(($ac_try" in
11105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11106 *) ac_try_echo=$ac_try;;
11107esac
11108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11109 (eval "$ac_link") 2>conftest.er1
d9898ee8 11110 ac_status=$?
11111 grep -v '^ *+' conftest.er1 >conftest.err
11112 rm -f conftest.er1
11113 cat conftest.err >&5
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 11115 (exit $ac_status); } && {
11116 test -z "$ac_cxx_werror_flag" ||
11117 test ! -s conftest.err
11118 } && test -s conftest$ac_exeext &&
11119 $as_test_x conftest$ac_exeext; then
d9898ee8 11120
11121aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11122}'`
11123# Check for a 64-bit object if we didn't find anything.
11124if 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; }
11125}'`; fi
11126else
11127 echo "$as_me: failed program was:" >&5
11128sed 's/^/| /' conftest.$ac_ext >&5
11129
64ff59ba 11130
d9898ee8 11131fi
64ff59ba 11132
11133rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 11134 conftest$ac_exeext conftest.$ac_ext
11135if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11136
11137 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11138 # Warning - without using the other run time loading flags,
11139 # -berok will link without error, but may produce a broken library.
11140 no_undefined_flag_CXX=' ${wl}-bernotok'
11141 allow_undefined_flag_CXX=' ${wl}-berok'
11142 # Exported symbols can be pulled into shared objects from archives
11143 whole_archive_flag_spec_CXX='$convenience'
11144 archive_cmds_need_lc_CXX=yes
11145 # This is similar to how AIX traditionally builds its shared libraries.
11146 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'
11147 fi
11148 fi
11149 ;;
11150
11151 beos*)
11152 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11153 allow_undefined_flag_CXX=unsupported
11154 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11155 # support --undefined. This deserves some investigation. FIXME
11156 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11157 else
11158 ld_shlibs_CXX=no
11159 fi
11160 ;;
11161
11162 chorus*)
11163 case $cc_basename in
11164 *)
11165 # FIXME: insert proper C++ library support
11166 ld_shlibs_CXX=no
11167 ;;
11168 esac
11169 ;;
11170
11171 cygwin* | mingw* | pw32*)
11172 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11173 # as there is no search path for DLLs.
11174 hardcode_libdir_flag_spec_CXX='-L$libdir'
11175 allow_undefined_flag_CXX=unsupported
11176 always_export_symbols_CXX=no
11177 enable_shared_with_static_runtimes_CXX=yes
11178
11179 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11180 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'
11181 # If the export-symbols file already is a .def file (1st line
11182 # is EXPORTS), use it as is; otherwise, prepend...
11183 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11184 cp $export_symbols $output_objdir/$soname.def;
11185 else
11186 echo EXPORTS > $output_objdir/$soname.def;
11187 cat $export_symbols >> $output_objdir/$soname.def;
11188 fi~
11189 $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'
11190 else
11191 ld_shlibs_CXX=no
11192 fi
11193 ;;
11194 darwin* | rhapsody*)
11195 case $host_os in
11196 rhapsody* | darwin1.[012])
11197 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11198 ;;
11199 *) # Darwin 1.3 on
11200 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11201 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11202 else
11203 case ${MACOSX_DEPLOYMENT_TARGET} in
11204 10.[012])
11205 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11206 ;;
11207 10.*)
11208 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11209 ;;
11210 esac
11211 fi
11212 ;;
11213 esac
11214 archive_cmds_need_lc_CXX=no
11215 hardcode_direct_CXX=no
11216 hardcode_automatic_CXX=yes
11217 hardcode_shlibpath_var_CXX=unsupported
11218 whole_archive_flag_spec_CXX=''
11219 link_all_deplibs_CXX=yes
11220
11221 if test "$GXX" = yes ; then
11222 lt_int_apple_cc_single_mod=no
11223 output_verbose_link_cmd='echo'
11224 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11225 lt_int_apple_cc_single_mod=yes
11226 fi
11227 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11228 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11229 else
11230 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'
11231 fi
11232 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11233 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11234 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11235 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}'
11236 else
11237 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}'
11238 fi
11239 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}'
11240 else
11241 case $cc_basename in
11242 xlc*)
11243 output_verbose_link_cmd='echo'
11244 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'
11245 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11246 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11247 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}'
11248 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}'
11249 ;;
11250 *)
11251 ld_shlibs_CXX=no
11252 ;;
11253 esac
11254 fi
11255 ;;
11256
11257 dgux*)
11258 case $cc_basename in
11259 ec++*)
11260 # FIXME: insert proper C++ library support
11261 ld_shlibs_CXX=no
11262 ;;
11263 ghcx*)
11264 # Green Hills C++ Compiler
11265 # FIXME: insert proper C++ library support
11266 ld_shlibs_CXX=no
11267 ;;
11268 *)
11269 # FIXME: insert proper C++ library support
11270 ld_shlibs_CXX=no
11271 ;;
11272 esac
11273 ;;
11274 freebsd[12]*)
11275 # C++ shared libraries reported to be fairly broken before switch to ELF
11276 ld_shlibs_CXX=no
11277 ;;
11278 freebsd-elf*)
11279 archive_cmds_need_lc_CXX=no
11280 ;;
11281 freebsd* | kfreebsd*-gnu | dragonfly*)
11282 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11283 # conventions
11284 ld_shlibs_CXX=yes
11285 ;;
11286 gnu*)
11287 ;;
11288 hpux9*)
11289 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11290 hardcode_libdir_separator_CXX=:
11291 export_dynamic_flag_spec_CXX='${wl}-E'
11292 hardcode_direct_CXX=yes
11293 hardcode_minus_L_CXX=yes # Not in the search PATH,
11294 # but as the default
11295 # location of the library.
11296
11297 case $cc_basename in
11298 CC*)
11299 # FIXME: insert proper C++ library support
11300 ld_shlibs_CXX=no
11301 ;;
11302 aCC*)
11303 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'
11304 # Commands to make compiler produce verbose output that lists
11305 # what "hidden" libraries, object files and flags are used when
11306 # linking a shared library.
11307 #
11308 # There doesn't appear to be a way to prevent this compiler from
11309 # explicitly linking system object files so we need to strip them
11310 # from the output so that they don't get included in the library
11311 # dependencies.
11312 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'
11313 ;;
11314 *)
11315 if test "$GXX" = yes; then
11316 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'
11317 else
11318 # FIXME: insert proper C++ library support
11319 ld_shlibs_CXX=no
11320 fi
11321 ;;
11322 esac
11323 ;;
11324 hpux10*|hpux11*)
11325 if test $with_gnu_ld = no; then
11326 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11327 hardcode_libdir_separator_CXX=:
11328
11329 case $host_cpu in
11330 hppa*64*|ia64*)
11331 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11332 ;;
11333 *)
11334 export_dynamic_flag_spec_CXX='${wl}-E'
11335 ;;
11336 esac
11337 fi
11338 case $host_cpu in
11339 hppa*64*|ia64*)
11340 hardcode_direct_CXX=no
11341 hardcode_shlibpath_var_CXX=no
11342 ;;
11343 *)
11344 hardcode_direct_CXX=yes
11345 hardcode_minus_L_CXX=yes # Not in the search PATH,
11346 # but as the default
11347 # location of the library.
11348 ;;
11349 esac
11350
11351 case $cc_basename in
11352 CC*)
11353 # FIXME: insert proper C++ library support
11354 ld_shlibs_CXX=no
11355 ;;
11356 aCC*)
11357 case $host_cpu in
11358 hppa*64*)
11359 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11360 ;;
11361 ia64*)
11362 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11363 ;;
11364 *)
11365 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11366 ;;
11367 esac
11368 # Commands to make compiler produce verbose output that lists
11369 # what "hidden" libraries, object files and flags are used when
11370 # linking a shared library.
11371 #
11372 # There doesn't appear to be a way to prevent this compiler from
11373 # explicitly linking system object files so we need to strip them
11374 # from the output so that they don't get included in the library
11375 # dependencies.
11376 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'
11377 ;;
11378 *)
11379 if test "$GXX" = yes; then
11380 if test $with_gnu_ld = no; then
11381 case $host_cpu in
11382 hppa*64*)
11383 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11384 ;;
11385 ia64*)
11386 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11387 ;;
11388 *)
11389 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'
11390 ;;
11391 esac
11392 fi
11393 else
11394 # FIXME: insert proper C++ library support
11395 ld_shlibs_CXX=no
11396 fi
11397 ;;
11398 esac
11399 ;;
11400 interix3*)
11401 hardcode_direct_CXX=no
11402 hardcode_shlibpath_var_CXX=no
11403 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11404 export_dynamic_flag_spec_CXX='${wl}-E'
11405 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11406 # Instead, shared libraries are loaded at an image base (0x10000000 by
11407 # default) and relocated if they conflict, which is a slow very memory
11408 # consuming and fragmenting process. To avoid this, we pick a random,
11409 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11410 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11411 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'
11412 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'
11413 ;;
11414 irix5* | irix6*)
11415 case $cc_basename in
11416 CC*)
11417 # SGI C++
11418 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'
11419
11420 # Archives containing C++ object files must be created using
11421 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11422 # necessary to make sure instantiated templates are included
11423 # in the archive.
11424 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11425 ;;
11426 *)
11427 if test "$GXX" = yes; then
11428 if test "$with_gnu_ld" = no; then
11429 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'
11430 else
11431 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'
11432 fi
11433 fi
11434 link_all_deplibs_CXX=yes
11435 ;;
11436 esac
11437 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11438 hardcode_libdir_separator_CXX=:
11439 ;;
11440 linux*)
11441 case $cc_basename in
11442 KCC*)
11443 # Kuck and Associates, Inc. (KAI) C++ Compiler
11444
11445 # KCC will only create a shared library if the output file
11446 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11447 # to its proper name (with version) after linking.
11448 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'
11449 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'
11450 # Commands to make compiler produce verbose output that lists
11451 # what "hidden" libraries, object files and flags are used when
11452 # linking a shared library.
11453 #
11454 # There doesn't appear to be a way to prevent this compiler from
11455 # explicitly linking system object files so we need to strip them
11456 # from the output so that they don't get included in the library
11457 # dependencies.
11458 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'
11459
11460 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11461 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11462
11463 # Archives containing C++ object files must be created using
11464 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11465 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11466 ;;
11467 icpc*)
11468 # Intel C++
11469 with_gnu_ld=yes
11470 # version 8.0 and above of icpc choke on multiply defined symbols
11471 # if we add $predep_objects and $postdep_objects, however 7.1 and
11472 # earlier do not add the objects themselves.
11473 case `$CC -V 2>&1` in
11474 *"Version 7."*)
11475 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11476 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'
11477 ;;
11478 *) # Version 8.0 or newer
11479 tmp_idyn=
11480 case $host_cpu in
11481 ia64*) tmp_idyn=' -i_dynamic';;
11482 esac
11483 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11484 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'
11485 ;;
11486 esac
11487 archive_cmds_need_lc_CXX=no
11488 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11489 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11490 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11491 ;;
11492 pgCC*)
11493 # Portland Group C++ compiler
11494 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11495 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'
11496
11497 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11498 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11499 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'
11500 ;;
11501 cxx*)
11502 # Compaq C++
11503 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11504 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'
11505
11506 runpath_var=LD_RUN_PATH
11507 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11508 hardcode_libdir_separator_CXX=:
11509
11510 # Commands to make compiler produce verbose output that lists
11511 # what "hidden" libraries, object files and flags are used when
11512 # linking a shared library.
11513 #
11514 # There doesn't appear to be a way to prevent this compiler from
11515 # explicitly linking system object files so we need to strip them
11516 # from the output so that they don't get included in the library
11517 # dependencies.
11518 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'
11519 ;;
11520 esac
11521 ;;
11522 lynxos*)
11523 # FIXME: insert proper C++ library support
11524 ld_shlibs_CXX=no
11525 ;;
11526 m88k*)
11527 # FIXME: insert proper C++ library support
11528 ld_shlibs_CXX=no
11529 ;;
11530 mvs*)
11531 case $cc_basename in
11532 cxx*)
11533 # FIXME: insert proper C++ library support
11534 ld_shlibs_CXX=no
11535 ;;
11536 *)
11537 # FIXME: insert proper C++ library support
11538 ld_shlibs_CXX=no
11539 ;;
11540 esac
11541 ;;
11542 netbsd*)
11543 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11544 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11545 wlarc=
11546 hardcode_libdir_flag_spec_CXX='-R$libdir'
11547 hardcode_direct_CXX=yes
11548 hardcode_shlibpath_var_CXX=no
11549 fi
11550 # Workaround some broken pre-1.5 toolchains
11551 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11552 ;;
11553 openbsd2*)
11554 # C++ shared libraries are fairly broken
11555 ld_shlibs_CXX=no
11556 ;;
11557 openbsd*)
11558 hardcode_direct_CXX=yes
11559 hardcode_shlibpath_var_CXX=no
11560 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11561 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11562 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11563 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11564 export_dynamic_flag_spec_CXX='${wl}-E'
11565 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11566 fi
11567 output_verbose_link_cmd='echo'
11568 ;;
11569 osf3*)
11570 case $cc_basename in
11571 KCC*)
11572 # Kuck and Associates, Inc. (KAI) C++ Compiler
11573
11574 # KCC will only create a shared library if the output file
11575 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11576 # to its proper name (with version) after linking.
11577 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'
11578
11579 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11580 hardcode_libdir_separator_CXX=:
11581
11582 # Archives containing C++ object files must be created using
11583 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11584 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11585
11586 ;;
11587 RCC*)
11588 # Rational C++ 2.4.1
11589 # FIXME: insert proper C++ library support
11590 ld_shlibs_CXX=no
11591 ;;
11592 cxx*)
11593 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11594 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'
11595
11596 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11597 hardcode_libdir_separator_CXX=:
11598
11599 # Commands to make compiler produce verbose output that lists
11600 # what "hidden" libraries, object files and flags are used when
11601 # linking a shared library.
11602 #
11603 # There doesn't appear to be a way to prevent this compiler from
11604 # explicitly linking system object files so we need to strip them
11605 # from the output so that they don't get included in the library
11606 # dependencies.
11607 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'
11608 ;;
11609 *)
11610 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11611 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11612 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'
11613
11614 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11615 hardcode_libdir_separator_CXX=:
11616
11617 # Commands to make compiler produce verbose output that lists
11618 # what "hidden" libraries, object files and flags are used when
11619 # linking a shared library.
11620 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11621
11622 else
11623 # FIXME: insert proper C++ library support
11624 ld_shlibs_CXX=no
11625 fi
11626 ;;
11627 esac
11628 ;;
11629 osf4* | osf5*)
11630 case $cc_basename in
11631 KCC*)
11632 # Kuck and Associates, Inc. (KAI) C++ Compiler
11633
11634 # KCC will only create a shared library if the output file
11635 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11636 # to its proper name (with version) after linking.
11637 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'
11638
11639 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11640 hardcode_libdir_separator_CXX=:
11641
11642 # Archives containing C++ object files must be created using
11643 # the KAI C++ compiler.
11644 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11645 ;;
11646 RCC*)
11647 # Rational C++ 2.4.1
11648 # FIXME: insert proper C++ library support
11649 ld_shlibs_CXX=no
11650 ;;
11651 cxx*)
11652 allow_undefined_flag_CXX=' -expect_unresolved \*'
11653 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'
11654 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11655 echo "-hidden">> $lib.exp~
11656 $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~
11657 $rm $lib.exp'
11658
11659 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11660 hardcode_libdir_separator_CXX=:
11661
11662 # Commands to make compiler produce verbose output that lists
11663 # what "hidden" libraries, object files and flags are used when
11664 # linking a shared library.
11665 #
11666 # There doesn't appear to be a way to prevent this compiler from
11667 # explicitly linking system object files so we need to strip them
11668 # from the output so that they don't get included in the library
11669 # dependencies.
11670 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'
11671 ;;
11672 *)
11673 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11674 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11675 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'
11676
11677 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11678 hardcode_libdir_separator_CXX=:
11679
11680 # Commands to make compiler produce verbose output that lists
11681 # what "hidden" libraries, object files and flags are used when
11682 # linking a shared library.
11683 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11684
11685 else
11686 # FIXME: insert proper C++ library support
11687 ld_shlibs_CXX=no
11688 fi
11689 ;;
11690 esac
11691 ;;
11692 psos*)
11693 # FIXME: insert proper C++ library support
11694 ld_shlibs_CXX=no
11695 ;;
11696 sunos4*)
11697 case $cc_basename in
11698 CC*)
11699 # Sun C++ 4.x
11700 # FIXME: insert proper C++ library support
11701 ld_shlibs_CXX=no
11702 ;;
11703 lcc*)
11704 # Lucid
11705 # FIXME: insert proper C++ library support
11706 ld_shlibs_CXX=no
11707 ;;
11708 *)
11709 # FIXME: insert proper C++ library support
11710 ld_shlibs_CXX=no
11711 ;;
11712 esac
11713 ;;
11714 solaris*)
11715 case $cc_basename in
11716 CC*)
11717 # Sun C++ 4.2, 5.x and Centerline C++
11718 archive_cmds_need_lc_CXX=yes
11719 no_undefined_flag_CXX=' -zdefs'
11720 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11721 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11722 $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'
11723
11724 hardcode_libdir_flag_spec_CXX='-R$libdir'
11725 hardcode_shlibpath_var_CXX=no
11726 case $host_os in
11727 solaris2.[0-5] | solaris2.[0-5].*) ;;
11728 *)
11729 # The C++ compiler is used as linker so we must use $wl
11730 # flag to pass the commands to the underlying system
11731 # linker. We must also pass each convience library through
11732 # to the system linker between allextract/defaultextract.
11733 # The C++ compiler will combine linker options so we
11734 # cannot just pass the convience library names through
11735 # without $wl.
11736 # Supported since Solaris 2.6 (maybe 2.5.1?)
11737 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'
11738 ;;
11739 esac
11740 link_all_deplibs_CXX=yes
11741
11742 output_verbose_link_cmd='echo'
11743
11744 # Archives containing C++ object files must be created using
11745 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11746 # necessary to make sure instantiated templates are included
11747 # in the archive.
11748 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11749 ;;
11750 gcx*)
11751 # Green Hills C++ Compiler
11752 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11753
11754 # The C++ compiler must be used to create the archive.
11755 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11756 ;;
11757 *)
11758 # GNU C++ compiler with Solaris linker
11759 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11760 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11761 if $CC --version | grep -v '^2\.7' > /dev/null; then
11762 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11763 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11764 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11765
11766 # Commands to make compiler produce verbose output that lists
11767 # what "hidden" libraries, object files and flags are used when
11768 # linking a shared library.
11769 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11770 else
11771 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11772 # platform.
11773 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11774 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11775 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11776
11777 # Commands to make compiler produce verbose output that lists
11778 # what "hidden" libraries, object files and flags are used when
11779 # linking a shared library.
11780 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11781 fi
11782
11783 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11784 fi
11785 ;;
11786 esac
11787 ;;
11788 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11789 no_undefined_flag_CXX='${wl}-z,text'
11790 archive_cmds_need_lc_CXX=no
11791 hardcode_shlibpath_var_CXX=no
11792 runpath_var='LD_RUN_PATH'
11793
11794 case $cc_basename in
11795 CC*)
11796 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11797 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11798 ;;
11799 *)
11800 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11801 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11802 ;;
11803 esac
11804 ;;
11805 sysv5* | sco3.2v5* | sco5v6*)
11806 # Note: We can NOT use -z defs as we might desire, because we do not
11807 # link with -lc, and that would cause any symbols used from libc to
11808 # always be unresolved, which means just about no library would
11809 # ever link correctly. If we're not using GNU ld we use -z text
11810 # though, which does catch some bad symbols but isn't as heavy-handed
11811 # as -z defs.
11812 # For security reasons, it is highly recommended that you always
11813 # use absolute paths for naming shared libraries, and exclude the
11814 # DT_RUNPATH tag from executables and libraries. But doing so
11815 # requires that you compile everything twice, which is a pain.
11816 # So that behaviour is only enabled if SCOABSPATH is set to a
11817 # non-empty value in the environment. Most likely only useful for
11818 # creating official distributions of packages.
11819 # This is a hack until libtool officially supports absolute path
11820 # names for shared libraries.
11821 no_undefined_flag_CXX='${wl}-z,text'
11822 allow_undefined_flag_CXX='${wl}-z,nodefs'
11823 archive_cmds_need_lc_CXX=no
11824 hardcode_shlibpath_var_CXX=no
11825 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11826 hardcode_libdir_separator_CXX=':'
11827 link_all_deplibs_CXX=yes
11828 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11829 runpath_var='LD_RUN_PATH'
11830
11831 case $cc_basename in
11832 CC*)
11833 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11834 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11835 ;;
11836 *)
11837 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11838 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11839 ;;
11840 esac
11841 ;;
11842 tandem*)
11843 case $cc_basename in
11844 NCC*)
11845 # NonStop-UX NCC 3.20
11846 # FIXME: insert proper C++ library support
11847 ld_shlibs_CXX=no
11848 ;;
11849 *)
11850 # FIXME: insert proper C++ library support
11851 ld_shlibs_CXX=no
11852 ;;
11853 esac
11854 ;;
11855 vxworks*)
11856 # FIXME: insert proper C++ library support
11857 ld_shlibs_CXX=no
11858 ;;
11859 *)
11860 # FIXME: insert proper C++ library support
11861 ld_shlibs_CXX=no
11862 ;;
11863esac
64ff59ba 11864{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11865echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d9898ee8 11866test "$ld_shlibs_CXX" = no && can_build_shared=no
11867
11868GCC_CXX="$GXX"
11869LD_CXX="$LD"
11870
11871
11872cat > conftest.$ac_ext <<EOF
11873class Foo
11874{
11875public:
11876 Foo (void) { a = 0; }
11877private:
11878 int a;
11879};
11880EOF
11881
11882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11883 (eval $ac_compile) 2>&5
11884 ac_status=$?
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); }; then
11887 # Parse the compiler output and extract the necessary
11888 # objects, libraries and library flags.
11889
11890 # Sentinel used to keep track of whether or not we are before
11891 # the conftest object file.
11892 pre_test_object_deps_done=no
11893
11894 # The `*' in the case matches for architectures that use `case' in
11895 # $output_verbose_cmd can trigger glob expansion during the loop
11896 # eval without this substitution.
11897 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11898
11899 for p in `eval $output_verbose_link_cmd`; do
11900 case $p in
11901
11902 -L* | -R* | -l*)
11903 # Some compilers place space between "-{L,R}" and the path.
11904 # Remove the space.
11905 if test $p = "-L" \
11906 || test $p = "-R"; then
11907 prev=$p
11908 continue
11909 else
11910 prev=
11911 fi
11912
11913 if test "$pre_test_object_deps_done" = no; then
11914 case $p in
11915 -L* | -R*)
11916 # Internal compiler library paths should come after those
11917 # provided the user. The postdeps already come after the
11918 # user supplied libs so there is no need to process them.
11919 if test -z "$compiler_lib_search_path_CXX"; then
11920 compiler_lib_search_path_CXX="${prev}${p}"
11921 else
11922 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11923 fi
11924 ;;
11925 # The "-l" case would never come before the object being
11926 # linked, so don't bother handling this case.
11927 esac
11928 else
11929 if test -z "$postdeps_CXX"; then
11930 postdeps_CXX="${prev}${p}"
11931 else
11932 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11933 fi
11934 fi
11935 ;;
11936
11937 *.$objext)
11938 # This assumes that the test object file only shows up
11939 # once in the compiler output.
11940 if test "$p" = "conftest.$objext"; then
11941 pre_test_object_deps_done=yes
11942 continue
11943 fi
11944
11945 if test "$pre_test_object_deps_done" = no; then
11946 if test -z "$predep_objects_CXX"; then
11947 predep_objects_CXX="$p"
11948 else
11949 predep_objects_CXX="$predep_objects_CXX $p"
11950 fi
11951 else
11952 if test -z "$postdep_objects_CXX"; then
11953 postdep_objects_CXX="$p"
11954 else
11955 postdep_objects_CXX="$postdep_objects_CXX $p"
11956 fi
11957 fi
11958 ;;
11959
11960 *) ;; # Ignore the rest.
11961
11962 esac
11963 done
11964
11965 # Clean up.
11966 rm -f a.out a.exe
11967else
11968 echo "libtool.m4: error: problem compiling CXX test program"
11969fi
11970
11971$rm -f confest.$objext
11972
11973# PORTME: override above test on systems where it is broken
11974case $host_os in
11975interix3*)
11976 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11977 # hack all around it, let's just trust "g++" to DTRT.
11978 predep_objects_CXX=
11979 postdep_objects_CXX=
11980 postdeps_CXX=
11981 ;;
11982
11983solaris*)
11984 case $cc_basename in
11985 CC*)
11986 # Adding this requires a known-good setup of shared libraries for
11987 # Sun compiler versions before 5.6, else PIC objects from an old
11988 # archive will be linked into the output, leading to subtle bugs.
11989 postdeps_CXX='-lCstd -lCrun'
11990 ;;
11991 esac
11992 ;;
11993esac
11994
11995
11996case " $postdeps_CXX " in
11997*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11998esac
11999
12000lt_prog_compiler_wl_CXX=
12001lt_prog_compiler_pic_CXX=
12002lt_prog_compiler_static_CXX=
12003
64ff59ba 12004{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12005echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 12006
12007 # C++ specific cases for pic, static, wl, etc.
12008 if test "$GXX" = yes; then
12009 lt_prog_compiler_wl_CXX='-Wl,'
12010 lt_prog_compiler_static_CXX='-static'
12011
12012 case $host_os in
12013 aix*)
12014 # All AIX code is PIC.
12015 if test "$host_cpu" = ia64; then
12016 # AIX 5 now supports IA64 processor
12017 lt_prog_compiler_static_CXX='-Bstatic'
12018 fi
12019 ;;
12020 amigaos*)
12021 # FIXME: we need at least 68020 code to build shared libraries, but
12022 # adding the `-m68020' flag to GCC prevents building anything better,
12023 # like `-m68040'.
12024 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12025 ;;
12026 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12027 # PIC is the default for these OSes.
12028 ;;
12029 mingw* | os2* | pw32*)
12030 # This hack is so that the source file can tell whether it is being
12031 # built for inclusion in a dll (and should export symbols for example).
12032 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12033 ;;
12034 darwin* | rhapsody*)
12035 # PIC is the default on this platform
12036 # Common symbols not allowed in MH_DYLIB files
12037 lt_prog_compiler_pic_CXX='-fno-common'
12038 ;;
12039 *djgpp*)
12040 # DJGPP does not support shared libraries at all
12041 lt_prog_compiler_pic_CXX=
12042 ;;
12043 interix3*)
12044 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12045 # Instead, we relocate shared libraries at runtime.
12046 ;;
12047 sysv4*MP*)
12048 if test -d /usr/nec; then
12049 lt_prog_compiler_pic_CXX=-Kconform_pic
12050 fi
12051 ;;
12052 hpux*)
12053 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12054 # not for PA HP-UX.
12055 case $host_cpu in
12056 hppa*64*|ia64*)
12057 ;;
12058 *)
12059 lt_prog_compiler_pic_CXX='-fPIC'
12060 ;;
12061 esac
12062 ;;
12063 *)
12064 lt_prog_compiler_pic_CXX='-fPIC'
12065 ;;
12066 esac
12067 else
12068 case $host_os in
12069 aix4* | aix5*)
12070 # All AIX code is PIC.
12071 if test "$host_cpu" = ia64; then
12072 # AIX 5 now supports IA64 processor
12073 lt_prog_compiler_static_CXX='-Bstatic'
12074 else
12075 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12076 fi
12077 ;;
12078 chorus*)
12079 case $cc_basename in
12080 cxch68*)
12081 # Green Hills C++ Compiler
12082 # _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"
12083 ;;
12084 esac
12085 ;;
12086 darwin*)
12087 # PIC is the default on this platform
12088 # Common symbols not allowed in MH_DYLIB files
12089 case $cc_basename in
12090 xlc*)
12091 lt_prog_compiler_pic_CXX='-qnocommon'
12092 lt_prog_compiler_wl_CXX='-Wl,'
12093 ;;
12094 esac
12095 ;;
12096 dgux*)
12097 case $cc_basename in
12098 ec++*)
12099 lt_prog_compiler_pic_CXX='-KPIC'
12100 ;;
12101 ghcx*)
12102 # Green Hills C++ Compiler
12103 lt_prog_compiler_pic_CXX='-pic'
12104 ;;
12105 *)
12106 ;;
12107 esac
12108 ;;
12109 freebsd* | kfreebsd*-gnu | dragonfly*)
12110 # FreeBSD uses GNU C++
12111 ;;
12112 hpux9* | hpux10* | hpux11*)
12113 case $cc_basename in
12114 CC*)
12115 lt_prog_compiler_wl_CXX='-Wl,'
12116 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12117 if test "$host_cpu" != ia64; then
12118 lt_prog_compiler_pic_CXX='+Z'
12119 fi
12120 ;;
12121 aCC*)
12122 lt_prog_compiler_wl_CXX='-Wl,'
12123 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12124 case $host_cpu in
12125 hppa*64*|ia64*)
12126 # +Z the default
12127 ;;
12128 *)
12129 lt_prog_compiler_pic_CXX='+Z'
12130 ;;
12131 esac
12132 ;;
12133 *)
12134 ;;
12135 esac
12136 ;;
12137 interix*)
12138 # This is c89, which is MS Visual C++ (no shared libs)
12139 # Anyone wants to do a port?
12140 ;;
12141 irix5* | irix6* | nonstopux*)
12142 case $cc_basename in
12143 CC*)
12144 lt_prog_compiler_wl_CXX='-Wl,'
12145 lt_prog_compiler_static_CXX='-non_shared'
12146 # CC pic flag -KPIC is the default.
12147 ;;
12148 *)
12149 ;;
12150 esac
12151 ;;
12152 linux*)
12153 case $cc_basename in
12154 KCC*)
12155 # KAI C++ Compiler
12156 lt_prog_compiler_wl_CXX='--backend -Wl,'
12157 lt_prog_compiler_pic_CXX='-fPIC'
12158 ;;
12159 icpc* | ecpc*)
12160 # Intel C++
12161 lt_prog_compiler_wl_CXX='-Wl,'
12162 lt_prog_compiler_pic_CXX='-KPIC'
12163 lt_prog_compiler_static_CXX='-static'
12164 ;;
12165 pgCC*)
12166 # Portland Group C++ compiler.
12167 lt_prog_compiler_wl_CXX='-Wl,'
12168 lt_prog_compiler_pic_CXX='-fpic'
12169 lt_prog_compiler_static_CXX='-Bstatic'
12170 ;;
12171 cxx*)
12172 # Compaq C++
12173 # Make sure the PIC flag is empty. It appears that all Alpha
12174 # Linux and Compaq Tru64 Unix objects are PIC.
12175 lt_prog_compiler_pic_CXX=
12176 lt_prog_compiler_static_CXX='-non_shared'
12177 ;;
12178 *)
12179 ;;
12180 esac
12181 ;;
12182 lynxos*)
12183 ;;
12184 m88k*)
12185 ;;
12186 mvs*)
12187 case $cc_basename in
12188 cxx*)
12189 lt_prog_compiler_pic_CXX='-W c,exportall'
12190 ;;
12191 *)
12192 ;;
12193 esac
12194 ;;
12195 netbsd*)
12196 ;;
12197 osf3* | osf4* | osf5*)
12198 case $cc_basename in
12199 KCC*)
12200 lt_prog_compiler_wl_CXX='--backend -Wl,'
12201 ;;
12202 RCC*)
12203 # Rational C++ 2.4.1
12204 lt_prog_compiler_pic_CXX='-pic'
12205 ;;
12206 cxx*)
12207 # Digital/Compaq C++
12208 lt_prog_compiler_wl_CXX='-Wl,'
12209 # Make sure the PIC flag is empty. It appears that all Alpha
12210 # Linux and Compaq Tru64 Unix objects are PIC.
12211 lt_prog_compiler_pic_CXX=
12212 lt_prog_compiler_static_CXX='-non_shared'
12213 ;;
12214 *)
12215 ;;
12216 esac
12217 ;;
12218 psos*)
12219 ;;
12220 solaris*)
12221 case $cc_basename in
12222 CC*)
12223 # Sun C++ 4.2, 5.x and Centerline C++
12224 lt_prog_compiler_pic_CXX='-KPIC'
12225 lt_prog_compiler_static_CXX='-Bstatic'
12226 lt_prog_compiler_wl_CXX='-Qoption ld '
12227 ;;
12228 gcx*)
12229 # Green Hills C++ Compiler
12230 lt_prog_compiler_pic_CXX='-PIC'
12231 ;;
12232 *)
12233 ;;
12234 esac
12235 ;;
12236 sunos4*)
12237 case $cc_basename in
12238 CC*)
12239 # Sun C++ 4.x
12240 lt_prog_compiler_pic_CXX='-pic'
12241 lt_prog_compiler_static_CXX='-Bstatic'
12242 ;;
12243 lcc*)
12244 # Lucid
12245 lt_prog_compiler_pic_CXX='-pic'
12246 ;;
12247 *)
12248 ;;
12249 esac
12250 ;;
12251 tandem*)
12252 case $cc_basename in
12253 NCC*)
12254 # NonStop-UX NCC 3.20
12255 lt_prog_compiler_pic_CXX='-KPIC'
12256 ;;
12257 *)
12258 ;;
12259 esac
12260 ;;
12261 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12262 case $cc_basename in
12263 CC*)
12264 lt_prog_compiler_wl_CXX='-Wl,'
12265 lt_prog_compiler_pic_CXX='-KPIC'
12266 lt_prog_compiler_static_CXX='-Bstatic'
12267 ;;
12268 esac
12269 ;;
12270 vxworks*)
12271 ;;
12272 *)
12273 lt_prog_compiler_can_build_shared_CXX=no
12274 ;;
12275 esac
12276 fi
12277
64ff59ba 12278{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12279echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
d9898ee8 12280
12281#
12282# Check to make sure the PIC flag actually works.
12283#
12284if test -n "$lt_prog_compiler_pic_CXX"; then
12285
64ff59ba 12286{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12287echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
d9898ee8 12288if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12289 echo $ECHO_N "(cached) $ECHO_C" >&6
12290else
12291 lt_prog_compiler_pic_works_CXX=no
12292 ac_outfile=conftest.$ac_objext
12293 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12294 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12295 # Insert the option either (1) after the last *FLAGS variable, or
12296 # (2) before a word containing "conftest.", or (3) at the end.
12297 # Note that $ac_compile itself does not contain backslashes and begins
12298 # with a dollar sign (not a hyphen), so the echo should work correctly.
12299 # The option is referenced via a variable to avoid confusing sed.
12300 lt_compile=`echo "$ac_compile" | $SED \
12301 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12302 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12303 -e 's:$: $lt_compiler_flag:'`
64ff59ba 12304 (eval echo "\"\$as_me:12304: $lt_compile\"" >&5)
d9898ee8 12305 (eval "$lt_compile" 2>conftest.err)
12306 ac_status=$?
12307 cat conftest.err >&5
64ff59ba 12308 echo "$as_me:12308: \$? = $ac_status" >&5
d9898ee8 12309 if (exit $ac_status) && test -s "$ac_outfile"; then
12310 # The compiler can only warn and ignore the option if not recognized
12311 # So say no if there are warnings other than the usual output.
12312 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12313 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12314 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12315 lt_prog_compiler_pic_works_CXX=yes
12316 fi
12317 fi
12318 $rm conftest*
12319
12320fi
64ff59ba 12321{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12322echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
d9898ee8 12323
12324if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12325 case $lt_prog_compiler_pic_CXX in
12326 "" | " "*) ;;
12327 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12328 esac
12329else
12330 lt_prog_compiler_pic_CXX=
12331 lt_prog_compiler_can_build_shared_CXX=no
12332fi
12333
12334fi
12335case $host_os in
12336 # For platforms which do not support PIC, -DPIC is meaningless:
12337 *djgpp*)
12338 lt_prog_compiler_pic_CXX=
12339 ;;
12340 *)
12341 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12342 ;;
12343esac
12344
12345#
12346# Check to make sure the static flag actually works.
12347#
12348wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
64ff59ba 12349{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12350echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 12351if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12352 echo $ECHO_N "(cached) $ECHO_C" >&6
12353else
12354 lt_prog_compiler_static_works_CXX=no
12355 save_LDFLAGS="$LDFLAGS"
12356 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12357 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12358 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12359 # The linker can only warn and ignore the option if not recognized
12360 # So say no if there are warnings
12361 if test -s conftest.err; then
12362 # Append any errors to the config.log.
12363 cat conftest.err 1>&5
12364 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12365 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12366 if diff conftest.exp conftest.er2 >/dev/null; then
12367 lt_prog_compiler_static_works_CXX=yes
12368 fi
12369 else
12370 lt_prog_compiler_static_works_CXX=yes
12371 fi
12372 fi
12373 $rm conftest*
12374 LDFLAGS="$save_LDFLAGS"
12375
12376fi
64ff59ba 12377{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12378echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
d9898ee8 12379
12380if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12381 :
12382else
12383 lt_prog_compiler_static_CXX=
12384fi
12385
12386
64ff59ba 12387{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12388echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 12389if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12390 echo $ECHO_N "(cached) $ECHO_C" >&6
12391else
12392 lt_cv_prog_compiler_c_o_CXX=no
12393 $rm -r conftest 2>/dev/null
12394 mkdir conftest
12395 cd conftest
12396 mkdir out
12397 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12398
12399 lt_compiler_flag="-o out/conftest2.$ac_objext"
12400 # Insert the option either (1) after the last *FLAGS variable, or
12401 # (2) before a word containing "conftest.", or (3) at the end.
12402 # Note that $ac_compile itself does not contain backslashes and begins
12403 # with a dollar sign (not a hyphen), so the echo should work correctly.
12404 lt_compile=`echo "$ac_compile" | $SED \
12405 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12406 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12407 -e 's:$: $lt_compiler_flag:'`
64ff59ba 12408 (eval echo "\"\$as_me:12408: $lt_compile\"" >&5)
d9898ee8 12409 (eval "$lt_compile" 2>out/conftest.err)
12410 ac_status=$?
12411 cat out/conftest.err >&5
64ff59ba 12412 echo "$as_me:12412: \$? = $ac_status" >&5
d9898ee8 12413 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12414 then
12415 # The compiler can only warn and ignore the option if not recognized
12416 # So say no if there are warnings
12417 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12418 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12419 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12420 lt_cv_prog_compiler_c_o_CXX=yes
12421 fi
12422 fi
12423 chmod u+w . 2>&5
12424 $rm conftest*
12425 # SGI C++ compiler will create directory out/ii_files/ for
12426 # template instantiation
12427 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12428 $rm out/* && rmdir out
12429 cd ..
12430 rmdir conftest
12431 $rm conftest*
12432
12433fi
64ff59ba 12434{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12435echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
d9898ee8 12436
12437
12438hard_links="nottested"
12439if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12440 # do not overwrite the value of need_locks provided by the user
64ff59ba 12441 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12442echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 12443 hard_links=yes
12444 $rm conftest*
12445 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12446 touch conftest.a
12447 ln conftest.a conftest.b 2>&5 || hard_links=no
12448 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 12449 { echo "$as_me:$LINENO: result: $hard_links" >&5
12450echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 12451 if test "$hard_links" = no; then
12452 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12453echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12454 need_locks=warn
12455 fi
12456else
12457 need_locks=no
12458fi
12459
64ff59ba 12460{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12461echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 12462
12463 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12464 case $host_os in
12465 aix4* | aix5*)
12466 # If we're using GNU nm, then we don't want the "-C" option.
12467 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12468 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12469 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'
12470 else
12471 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'
12472 fi
12473 ;;
12474 pw32*)
12475 export_symbols_cmds_CXX="$ltdll_cmds"
12476 ;;
12477 cygwin* | mingw*)
12478 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'
12479 ;;
12480 *)
12481 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12482 ;;
12483 esac
12484
64ff59ba 12485{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12486echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d9898ee8 12487test "$ld_shlibs_CXX" = no && can_build_shared=no
12488
12489#
12490# Do we need to explicitly link libc?
12491#
12492case "x$archive_cmds_need_lc_CXX" in
12493x|xyes)
12494 # Assume -lc should be added
12495 archive_cmds_need_lc_CXX=yes
12496
12497 if test "$enable_shared" = yes && test "$GCC" = yes; then
12498 case $archive_cmds_CXX in
12499 *'~'*)
12500 # FIXME: we may have to deal with multi-command sequences.
12501 ;;
12502 '$CC '*)
12503 # Test whether the compiler implicitly links with -lc since on some
12504 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12505 # to ld, don't add -lc before -lgcc.
64ff59ba 12506 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12507echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 12508 $rm conftest*
12509 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12510
12511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12512 (eval $ac_compile) 2>&5
12513 ac_status=$?
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); } 2>conftest.err; then
12516 soname=conftest
12517 lib=conftest
12518 libobjs=conftest.$ac_objext
12519 deplibs=
12520 wl=$lt_prog_compiler_wl_CXX
12521 pic_flag=$lt_prog_compiler_pic_CXX
12522 compiler_flags=-v
12523 linker_flags=-v
12524 verstring=
12525 output_objdir=.
12526 libname=conftest
12527 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12528 allow_undefined_flag_CXX=
12529 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12530 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12531 ac_status=$?
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); }
12534 then
12535 archive_cmds_need_lc_CXX=no
12536 else
12537 archive_cmds_need_lc_CXX=yes
12538 fi
12539 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12540 else
12541 cat conftest.err 1>&5
12542 fi
12543 $rm conftest*
64ff59ba 12544 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12545echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
d9898ee8 12546 ;;
12547 esac
12548 fi
12549 ;;
12550esac
12551
64ff59ba 12552{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12553echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 12554library_names_spec=
12555libname_spec='lib$name'
12556soname_spec=
12557shrext_cmds=".so"
12558postinstall_cmds=
12559postuninstall_cmds=
12560finish_cmds=
12561finish_eval=
12562shlibpath_var=
12563shlibpath_overrides_runpath=unknown
12564version_type=none
12565dynamic_linker="$host_os ld.so"
12566sys_lib_dlsearch_path_spec="/lib /usr/lib"
12567if test "$GCC" = yes; then
12568 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12569 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12570 # if the path contains ";" then we assume it to be the separator
12571 # otherwise default to the standard path separator (i.e. ":") - it is
12572 # assumed that no part of a normal pathname contains ";" but that should
12573 # okay in the real world where ";" in dirpaths is itself problematic.
12574 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12575 else
12576 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12577 fi
12578else
12579 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12580fi
12581need_lib_prefix=unknown
12582hardcode_into_libs=no
12583
12584# when you set need_version to no, make sure it does not cause -set_version
12585# flags to be left without arguments
12586need_version=unknown
12587
12588case $host_os in
12589aix3*)
12590 version_type=linux
12591 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12592 shlibpath_var=LIBPATH
12593
12594 # AIX 3 has no versioning support, so we append a major version to the name.
12595 soname_spec='${libname}${release}${shared_ext}$major'
12596 ;;
12597
12598aix4* | aix5*)
12599 version_type=linux
12600 need_lib_prefix=no
12601 need_version=no
12602 hardcode_into_libs=yes
12603 if test "$host_cpu" = ia64; then
12604 # AIX 5 supports IA64
12605 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12606 shlibpath_var=LD_LIBRARY_PATH
12607 else
12608 # With GCC up to 2.95.x, collect2 would create an import file
12609 # for dependence libraries. The import file would start with
12610 # the line `#! .'. This would cause the generated library to
12611 # depend on `.', always an invalid library. This was fixed in
12612 # development snapshots of GCC prior to 3.0.
12613 case $host_os in
12614 aix4 | aix4.[01] | aix4.[01].*)
12615 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12616 echo ' yes '
12617 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12618 :
12619 else
12620 can_build_shared=no
12621 fi
12622 ;;
12623 esac
12624 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12625 # soname into executable. Probably we can add versioning support to
12626 # collect2, so additional links can be useful in future.
12627 if test "$aix_use_runtimelinking" = yes; then
12628 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12629 # instead of lib<name>.a to let people know that these are not
12630 # typical AIX shared libraries.
12631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12632 else
12633 # We preserve .a as extension for shared libraries through AIX4.2
12634 # and later when we are not doing run time linking.
12635 library_names_spec='${libname}${release}.a $libname.a'
12636 soname_spec='${libname}${release}${shared_ext}$major'
12637 fi
12638 shlibpath_var=LIBPATH
12639 fi
12640 ;;
12641
12642amigaos*)
12643 library_names_spec='$libname.ixlibrary $libname.a'
12644 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12645 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'
12646 ;;
12647
12648beos*)
12649 library_names_spec='${libname}${shared_ext}'
12650 dynamic_linker="$host_os ld.so"
12651 shlibpath_var=LIBRARY_PATH
12652 ;;
12653
12654bsdi[45]*)
12655 version_type=linux
12656 need_version=no
12657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12658 soname_spec='${libname}${release}${shared_ext}$major'
12659 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12660 shlibpath_var=LD_LIBRARY_PATH
12661 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12662 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12663 # the default ld.so.conf also contains /usr/contrib/lib and
12664 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12665 # libtool to hard-code these into programs
12666 ;;
12667
12668cygwin* | mingw* | pw32*)
12669 version_type=windows
12670 shrext_cmds=".dll"
12671 need_version=no
12672 need_lib_prefix=no
12673
12674 case $GCC,$host_os in
12675 yes,cygwin* | yes,mingw* | yes,pw32*)
12676 library_names_spec='$libname.dll.a'
12677 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12678 postinstall_cmds='base_file=`basename \${file}`~
12679 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12680 dldir=$destdir/`dirname \$dlpath`~
12681 test -d \$dldir || mkdir -p \$dldir~
12682 $install_prog $dir/$dlname \$dldir/$dlname~
12683 chmod a+x \$dldir/$dlname'
12684 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12685 dlpath=$dir/\$dldll~
12686 $rm \$dlpath'
12687 shlibpath_overrides_runpath=yes
12688
12689 case $host_os in
12690 cygwin*)
12691 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12692 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12693 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12694 ;;
12695 mingw*)
12696 # MinGW DLLs use traditional 'lib' prefix
12697 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12698 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12699 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12700 # It is most probably a Windows format PATH printed by
12701 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12702 # path with ; separators, and with drive letters. We can handle the
12703 # drive letters (cygwin fileutils understands them), so leave them,
12704 # especially as we might pass files found there to a mingw objdump,
12705 # which wouldn't understand a cygwinified path. Ahh.
12706 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12707 else
12708 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12709 fi
12710 ;;
12711 pw32*)
12712 # pw32 DLLs use 'pw' prefix rather than 'lib'
12713 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12714 ;;
12715 esac
12716 ;;
12717
12718 *)
12719 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12720 ;;
12721 esac
12722 dynamic_linker='Win32 ld.exe'
12723 # FIXME: first we should search . and the directory the executable is in
12724 shlibpath_var=PATH
12725 ;;
12726
12727darwin* | rhapsody*)
12728 dynamic_linker="$host_os dyld"
12729 version_type=darwin
12730 need_lib_prefix=no
12731 need_version=no
12732 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12733 soname_spec='${libname}${release}${major}$shared_ext'
12734 shlibpath_overrides_runpath=yes
12735 shlibpath_var=DYLD_LIBRARY_PATH
12736 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12737 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12738 if test "$GCC" = yes; then
12739 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"`
12740 else
12741 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12742 fi
12743 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12744 ;;
12745
12746dgux*)
12747 version_type=linux
12748 need_lib_prefix=no
12749 need_version=no
12750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12751 soname_spec='${libname}${release}${shared_ext}$major'
12752 shlibpath_var=LD_LIBRARY_PATH
12753 ;;
12754
12755freebsd1*)
12756 dynamic_linker=no
12757 ;;
12758
12759kfreebsd*-gnu)
12760 version_type=linux
12761 need_lib_prefix=no
12762 need_version=no
12763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12764 soname_spec='${libname}${release}${shared_ext}$major'
12765 shlibpath_var=LD_LIBRARY_PATH
12766 shlibpath_overrides_runpath=no
12767 hardcode_into_libs=yes
12768 dynamic_linker='GNU ld.so'
12769 ;;
12770
12771freebsd* | dragonfly*)
12772 # DragonFly does not have aout. When/if they implement a new
12773 # versioning mechanism, adjust this.
12774 if test -x /usr/bin/objformat; then
12775 objformat=`/usr/bin/objformat`
12776 else
12777 case $host_os in
12778 freebsd[123]*) objformat=aout ;;
12779 *) objformat=elf ;;
12780 esac
12781 fi
12782 version_type=freebsd-$objformat
12783 case $version_type in
12784 freebsd-elf*)
12785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12786 need_version=no
12787 need_lib_prefix=no
12788 ;;
12789 freebsd-*)
12790 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12791 need_version=yes
12792 ;;
12793 esac
12794 shlibpath_var=LD_LIBRARY_PATH
12795 case $host_os in
12796 freebsd2*)
12797 shlibpath_overrides_runpath=yes
12798 ;;
12799 freebsd3.[01]* | freebsdelf3.[01]*)
12800 shlibpath_overrides_runpath=yes
12801 hardcode_into_libs=yes
12802 ;;
12803 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12804 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12805 shlibpath_overrides_runpath=no
12806 hardcode_into_libs=yes
12807 ;;
12808 freebsd*) # from 4.6 on
12809 shlibpath_overrides_runpath=yes
12810 hardcode_into_libs=yes
12811 ;;
12812 esac
12813 ;;
12814
12815gnu*)
12816 version_type=linux
12817 need_lib_prefix=no
12818 need_version=no
12819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12820 soname_spec='${libname}${release}${shared_ext}$major'
12821 shlibpath_var=LD_LIBRARY_PATH
12822 hardcode_into_libs=yes
12823 ;;
12824
12825hpux9* | hpux10* | hpux11*)
12826 # Give a soname corresponding to the major version so that dld.sl refuses to
12827 # link against other versions.
12828 version_type=sunos
12829 need_lib_prefix=no
12830 need_version=no
12831 case $host_cpu in
12832 ia64*)
12833 shrext_cmds='.so'
12834 hardcode_into_libs=yes
12835 dynamic_linker="$host_os dld.so"
12836 shlibpath_var=LD_LIBRARY_PATH
12837 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12839 soname_spec='${libname}${release}${shared_ext}$major'
12840 if test "X$HPUX_IA64_MODE" = X32; then
12841 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12842 else
12843 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12844 fi
12845 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12846 ;;
12847 hppa*64*)
12848 shrext_cmds='.sl'
12849 hardcode_into_libs=yes
12850 dynamic_linker="$host_os dld.sl"
12851 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12852 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12854 soname_spec='${libname}${release}${shared_ext}$major'
12855 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12856 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12857 ;;
12858 *)
12859 shrext_cmds='.sl'
12860 dynamic_linker="$host_os dld.sl"
12861 shlibpath_var=SHLIB_PATH
12862 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12864 soname_spec='${libname}${release}${shared_ext}$major'
12865 ;;
12866 esac
12867 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12868 postinstall_cmds='chmod 555 $lib'
12869 ;;
12870
12871interix3*)
12872 version_type=linux
12873 need_lib_prefix=no
12874 need_version=no
12875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12876 soname_spec='${libname}${release}${shared_ext}$major'
12877 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12878 shlibpath_var=LD_LIBRARY_PATH
12879 shlibpath_overrides_runpath=no
12880 hardcode_into_libs=yes
12881 ;;
12882
12883irix5* | irix6* | nonstopux*)
12884 case $host_os in
12885 nonstopux*) version_type=nonstopux ;;
12886 *)
12887 if test "$lt_cv_prog_gnu_ld" = yes; then
12888 version_type=linux
12889 else
12890 version_type=irix
12891 fi ;;
12892 esac
12893 need_lib_prefix=no
12894 need_version=no
12895 soname_spec='${libname}${release}${shared_ext}$major'
12896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12897 case $host_os in
12898 irix5* | nonstopux*)
12899 libsuff= shlibsuff=
12900 ;;
12901 *)
12902 case $LD in # libtool.m4 will add one of these switches to LD
12903 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12904 libsuff= shlibsuff= libmagic=32-bit;;
12905 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12906 libsuff=32 shlibsuff=N32 libmagic=N32;;
12907 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12908 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12909 *) libsuff= shlibsuff= libmagic=never-match;;
12910 esac
12911 ;;
12912 esac
12913 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12914 shlibpath_overrides_runpath=no
12915 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12916 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12917 hardcode_into_libs=yes
12918 ;;
12919
12920# No shared lib support for Linux oldld, aout, or coff.
12921linux*oldld* | linux*aout* | linux*coff*)
12922 dynamic_linker=no
12923 ;;
12924
12925# This must be Linux ELF.
12926linux*)
12927 version_type=linux
12928 need_lib_prefix=no
12929 need_version=no
12930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12931 soname_spec='${libname}${release}${shared_ext}$major'
12932 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12933 shlibpath_var=LD_LIBRARY_PATH
12934 shlibpath_overrides_runpath=no
12935 # This implies no fast_install, which is unacceptable.
12936 # Some rework will be needed to allow for fast_install
12937 # before this can be enabled.
12938 hardcode_into_libs=yes
12939
12940 # find out which ABI we are using
12941 libsuff=
12942 case "$host_cpu" in
12943 x86_64*|s390x*|powerpc64*)
64ff59ba 12944 echo '#line 12944 "configure"' > conftest.$ac_ext
d9898ee8 12945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12946 (eval $ac_compile) 2>&5
12947 ac_status=$?
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); }; then
12950 case `/usr/bin/file conftest.$ac_objext` in
12951 *64-bit*)
12952 libsuff=64
12953 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12954 ;;
12955 esac
12956 fi
12957 rm -rf conftest*
12958 ;;
12959 esac
12960
12961 # Append ld.so.conf contents to the search path
12962 if test -f /etc/ld.so.conf; then
64ff59ba 12963 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 12964 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12965 fi
12966
12967 # We used to test for /lib/ld.so.1 and disable shared libraries on
12968 # powerpc, because MkLinux only supported shared libraries with the
12969 # GNU dynamic linker. Since this was broken with cross compilers,
12970 # most powerpc-linux boxes support dynamic linking these days and
12971 # people can always --disable-shared, the test was removed, and we
12972 # assume the GNU/Linux dynamic linker is in use.
12973 dynamic_linker='GNU/Linux ld.so'
12974 ;;
12975
12976knetbsd*-gnu)
12977 version_type=linux
12978 need_lib_prefix=no
12979 need_version=no
12980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12981 soname_spec='${libname}${release}${shared_ext}$major'
12982 shlibpath_var=LD_LIBRARY_PATH
12983 shlibpath_overrides_runpath=no
12984 hardcode_into_libs=yes
12985 dynamic_linker='GNU ld.so'
12986 ;;
12987
12988netbsd*)
12989 version_type=sunos
12990 need_lib_prefix=no
12991 need_version=no
12992 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12994 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12995 dynamic_linker='NetBSD (a.out) ld.so'
12996 else
12997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12998 soname_spec='${libname}${release}${shared_ext}$major'
12999 dynamic_linker='NetBSD ld.elf_so'
13000 fi
13001 shlibpath_var=LD_LIBRARY_PATH
13002 shlibpath_overrides_runpath=yes
13003 hardcode_into_libs=yes
13004 ;;
13005
13006newsos6)
13007 version_type=linux
13008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13009 shlibpath_var=LD_LIBRARY_PATH
13010 shlibpath_overrides_runpath=yes
13011 ;;
13012
13013nto-qnx*)
13014 version_type=linux
13015 need_lib_prefix=no
13016 need_version=no
13017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13018 soname_spec='${libname}${release}${shared_ext}$major'
13019 shlibpath_var=LD_LIBRARY_PATH
13020 shlibpath_overrides_runpath=yes
13021 ;;
13022
13023openbsd*)
13024 version_type=sunos
13025 sys_lib_dlsearch_path_spec="/usr/lib"
13026 need_lib_prefix=no
13027 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13028 case $host_os in
13029 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13030 *) need_version=no ;;
13031 esac
13032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13033 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13034 shlibpath_var=LD_LIBRARY_PATH
13035 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13036 case $host_os in
13037 openbsd2.[89] | openbsd2.[89].*)
13038 shlibpath_overrides_runpath=no
13039 ;;
13040 *)
13041 shlibpath_overrides_runpath=yes
13042 ;;
13043 esac
13044 else
13045 shlibpath_overrides_runpath=yes
13046 fi
13047 ;;
13048
13049os2*)
13050 libname_spec='$name'
13051 shrext_cmds=".dll"
13052 need_lib_prefix=no
13053 library_names_spec='$libname${shared_ext} $libname.a'
13054 dynamic_linker='OS/2 ld.exe'
13055 shlibpath_var=LIBPATH
13056 ;;
13057
13058osf3* | osf4* | osf5*)
13059 version_type=osf
13060 need_lib_prefix=no
13061 need_version=no
13062 soname_spec='${libname}${release}${shared_ext}$major'
13063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13064 shlibpath_var=LD_LIBRARY_PATH
13065 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13066 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13067 ;;
13068
13069solaris*)
13070 version_type=linux
13071 need_lib_prefix=no
13072 need_version=no
13073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13074 soname_spec='${libname}${release}${shared_ext}$major'
13075 shlibpath_var=LD_LIBRARY_PATH
13076 shlibpath_overrides_runpath=yes
13077 hardcode_into_libs=yes
13078 # ldd complains unless libraries are executable
13079 postinstall_cmds='chmod +x $lib'
13080 ;;
13081
13082sunos4*)
13083 version_type=sunos
13084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13085 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13086 shlibpath_var=LD_LIBRARY_PATH
13087 shlibpath_overrides_runpath=yes
13088 if test "$with_gnu_ld" = yes; then
13089 need_lib_prefix=no
13090 fi
13091 need_version=yes
13092 ;;
13093
13094sysv4 | sysv4.3*)
13095 version_type=linux
13096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13097 soname_spec='${libname}${release}${shared_ext}$major'
13098 shlibpath_var=LD_LIBRARY_PATH
13099 case $host_vendor in
13100 sni)
13101 shlibpath_overrides_runpath=no
13102 need_lib_prefix=no
13103 export_dynamic_flag_spec='${wl}-Blargedynsym'
13104 runpath_var=LD_RUN_PATH
13105 ;;
13106 siemens)
13107 need_lib_prefix=no
13108 ;;
13109 motorola)
13110 need_lib_prefix=no
13111 need_version=no
13112 shlibpath_overrides_runpath=no
13113 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13114 ;;
13115 esac
13116 ;;
13117
13118sysv4*MP*)
13119 if test -d /usr/nec ;then
13120 version_type=linux
13121 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13122 soname_spec='$libname${shared_ext}.$major'
13123 shlibpath_var=LD_LIBRARY_PATH
13124 fi
13125 ;;
13126
13127sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13128 version_type=freebsd-elf
13129 need_lib_prefix=no
13130 need_version=no
13131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13132 soname_spec='${libname}${release}${shared_ext}$major'
13133 shlibpath_var=LD_LIBRARY_PATH
13134 hardcode_into_libs=yes
13135 if test "$with_gnu_ld" = yes; then
13136 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13137 shlibpath_overrides_runpath=no
13138 else
13139 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13140 shlibpath_overrides_runpath=yes
13141 case $host_os in
13142 sco3.2v5*)
13143 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13144 ;;
13145 esac
13146 fi
13147 sys_lib_dlsearch_path_spec='/usr/lib'
13148 ;;
13149
13150uts4*)
13151 version_type=linux
13152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13153 soname_spec='${libname}${release}${shared_ext}$major'
13154 shlibpath_var=LD_LIBRARY_PATH
13155 ;;
13156
13157*)
13158 dynamic_linker=no
13159 ;;
13160esac
64ff59ba 13161{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13162echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 13163test "$dynamic_linker" = no && can_build_shared=no
13164
13165variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13166if test "$GCC" = yes; then
13167 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13168fi
13169
64ff59ba 13170{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13171echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 13172hardcode_action_CXX=
13173if test -n "$hardcode_libdir_flag_spec_CXX" || \
13174 test -n "$runpath_var_CXX" || \
13175 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13176
13177 # We can hardcode non-existant directories.
13178 if test "$hardcode_direct_CXX" != no &&
13179 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13180 # have to relink, otherwise we might link with an installed library
13181 # when we should be linking with a yet-to-be-installed one
13182 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13183 test "$hardcode_minus_L_CXX" != no; then
13184 # Linking always hardcodes the temporary library directory.
13185 hardcode_action_CXX=relink
13186 else
13187 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13188 hardcode_action_CXX=immediate
13189 fi
13190else
13191 # We cannot hardcode anything, or else we can only hardcode existing
13192 # directories.
13193 hardcode_action_CXX=unsupported
13194fi
64ff59ba 13195{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13196echo "${ECHO_T}$hardcode_action_CXX" >&6; }
d9898ee8 13197
13198if test "$hardcode_action_CXX" = relink; then
13199 # Fast installation is not supported
13200 enable_fast_install=no
13201elif test "$shlibpath_overrides_runpath" = yes ||
13202 test "$enable_shared" = no; then
13203 # Fast installation is not necessary
13204 enable_fast_install=needless
13205fi
13206
13207
13208# The else clause should only fire when bootstrapping the
13209# libtool distribution, otherwise you forgot to ship ltmain.sh
13210# with your package, and you will get complaints that there are
13211# no rules to generate ltmain.sh.
13212if test -f "$ltmain"; then
13213 # See if we are running on zsh, and set the options which allow our commands through
13214 # without removal of \ escapes.
13215 if test -n "${ZSH_VERSION+set}" ; then
13216 setopt NO_GLOB_SUBST
13217 fi
13218 # Now quote all the things that may contain metacharacters while being
13219 # careful not to overquote the AC_SUBSTed values. We take copies of the
13220 # variables and quote the copies for generation of the libtool script.
13221 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13222 SED SHELL STRIP \
13223 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13224 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13225 deplibs_check_method reload_flag reload_cmds need_locks \
13226 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13227 lt_cv_sys_global_symbol_to_c_name_address \
13228 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13229 old_postinstall_cmds old_postuninstall_cmds \
13230 compiler_CXX \
13231 CC_CXX \
13232 LD_CXX \
13233 lt_prog_compiler_wl_CXX \
13234 lt_prog_compiler_pic_CXX \
13235 lt_prog_compiler_static_CXX \
13236 lt_prog_compiler_no_builtin_flag_CXX \
13237 export_dynamic_flag_spec_CXX \
13238 thread_safe_flag_spec_CXX \
13239 whole_archive_flag_spec_CXX \
13240 enable_shared_with_static_runtimes_CXX \
13241 old_archive_cmds_CXX \
13242 old_archive_from_new_cmds_CXX \
13243 predep_objects_CXX \
13244 postdep_objects_CXX \
13245 predeps_CXX \
13246 postdeps_CXX \
13247 compiler_lib_search_path_CXX \
13248 archive_cmds_CXX \
13249 archive_expsym_cmds_CXX \
13250 postinstall_cmds_CXX \
13251 postuninstall_cmds_CXX \
13252 old_archive_from_expsyms_cmds_CXX \
13253 allow_undefined_flag_CXX \
13254 no_undefined_flag_CXX \
13255 export_symbols_cmds_CXX \
13256 hardcode_libdir_flag_spec_CXX \
13257 hardcode_libdir_flag_spec_ld_CXX \
13258 hardcode_libdir_separator_CXX \
13259 hardcode_automatic_CXX \
13260 module_cmds_CXX \
13261 module_expsym_cmds_CXX \
13262 lt_cv_prog_compiler_c_o_CXX \
13263 exclude_expsyms_CXX \
13264 include_expsyms_CXX; do
13265
13266 case $var in
13267 old_archive_cmds_CXX | \
13268 old_archive_from_new_cmds_CXX | \
13269 archive_cmds_CXX | \
13270 archive_expsym_cmds_CXX | \
13271 module_cmds_CXX | \
13272 module_expsym_cmds_CXX | \
13273 old_archive_from_expsyms_cmds_CXX | \
13274 export_symbols_cmds_CXX | \
13275 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13276 postinstall_cmds | postuninstall_cmds | \
13277 old_postinstall_cmds | old_postuninstall_cmds | \
13278 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13279 # Double-quote double-evaled strings.
13280 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13281 ;;
13282 *)
13283 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13284 ;;
13285 esac
13286 done
13287
13288 case $lt_echo in
13289 *'\$0 --fallback-echo"')
13290 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13291 ;;
13292 esac
13293
13294cfgfile="$ofile"
13295
13296 cat <<__EOF__ >> "$cfgfile"
13297# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13298
13299# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13300
13301# Shell to use when invoking shell scripts.
13302SHELL=$lt_SHELL
13303
13304# Whether or not to build shared libraries.
13305build_libtool_libs=$enable_shared
13306
13307# Whether or not to build static libraries.
13308build_old_libs=$enable_static
13309
13310# Whether or not to add -lc for building shared libraries.
13311build_libtool_need_lc=$archive_cmds_need_lc_CXX
13312
13313# Whether or not to disallow shared libs when runtime libs are static
13314allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13315
13316# Whether or not to optimize for fast installation.
13317fast_install=$enable_fast_install
13318
13319# The host system.
13320host_alias=$host_alias
13321host=$host
13322host_os=$host_os
13323
13324# The build system.
13325build_alias=$build_alias
13326build=$build
13327build_os=$build_os
13328
13329# An echo program that does not interpret backslashes.
13330echo=$lt_echo
13331
13332# The archiver.
13333AR=$lt_AR
13334AR_FLAGS=$lt_AR_FLAGS
13335
13336# A C compiler.
13337LTCC=$lt_LTCC
13338
13339# LTCC compiler flags.
13340LTCFLAGS=$lt_LTCFLAGS
13341
13342# A language-specific compiler.
13343CC=$lt_compiler_CXX
13344
13345# Is the compiler the GNU C compiler?
13346with_gcc=$GCC_CXX
13347
d9898ee8 13348# An ERE matcher.
13349EGREP=$lt_EGREP
13350
13351# The linker used to build libraries.
13352LD=$lt_LD_CXX
13353
13354# Whether we need hard or soft links.
13355LN_S=$lt_LN_S
13356
13357# A BSD-compatible nm program.
13358NM=$lt_NM
13359
13360# A symbol stripping program
13361STRIP=$lt_STRIP
13362
13363# Used to examine libraries when file_magic_cmd begins "file"
13364MAGIC_CMD=$MAGIC_CMD
13365
13366# Used on cygwin: DLL creation program.
13367DLLTOOL="$DLLTOOL"
13368
13369# Used on cygwin: object dumper.
13370OBJDUMP="$OBJDUMP"
13371
13372# Used on cygwin: assembler.
13373AS="$AS"
13374
13375# The name of the directory that contains temporary libtool files.
13376objdir=$objdir
13377
13378# How to create reloadable object files.
13379reload_flag=$lt_reload_flag
13380reload_cmds=$lt_reload_cmds
13381
13382# How to pass a linker flag through the compiler.
13383wl=$lt_lt_prog_compiler_wl_CXX
13384
13385# Object file suffix (normally "o").
13386objext="$ac_objext"
13387
13388# Old archive suffix (normally "a").
13389libext="$libext"
13390
13391# Shared library suffix (normally ".so").
13392shrext_cmds='$shrext_cmds'
13393
13394# Executable file suffix (normally "").
13395exeext="$exeext"
13396
13397# Additional compiler flags for building library objects.
13398pic_flag=$lt_lt_prog_compiler_pic_CXX
13399pic_mode=$pic_mode
13400
13401# What is the maximum length of a command?
13402max_cmd_len=$lt_cv_sys_max_cmd_len
13403
13404# Does compiler simultaneously support -c and -o options?
13405compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13406
13407# Must we lock files when doing compilation?
13408need_locks=$lt_need_locks
13409
13410# Do we need the lib prefix for modules?
13411need_lib_prefix=$need_lib_prefix
13412
13413# Do we need a version for libraries?
13414need_version=$need_version
13415
13416# Whether dlopen is supported.
13417dlopen_support=$enable_dlopen
13418
13419# Whether dlopen of programs is supported.
13420dlopen_self=$enable_dlopen_self
13421
13422# Whether dlopen of statically linked programs is supported.
13423dlopen_self_static=$enable_dlopen_self_static
13424
13425# Compiler flag to prevent dynamic linking.
13426link_static_flag=$lt_lt_prog_compiler_static_CXX
13427
13428# Compiler flag to turn off builtin functions.
13429no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13430
13431# Compiler flag to allow reflexive dlopens.
13432export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13433
13434# Compiler flag to generate shared objects directly from archives.
13435whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13436
13437# Compiler flag to generate thread-safe objects.
13438thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13439
13440# Library versioning type.
13441version_type=$version_type
13442
13443# Format of library name prefix.
13444libname_spec=$lt_libname_spec
13445
13446# List of archive names. First name is the real one, the rest are links.
13447# The last name is the one that the linker finds with -lNAME.
13448library_names_spec=$lt_library_names_spec
13449
13450# The coded name of the library, if different from the real name.
13451soname_spec=$lt_soname_spec
13452
13453# Commands used to build and install an old-style archive.
13454RANLIB=$lt_RANLIB
13455old_archive_cmds=$lt_old_archive_cmds_CXX
13456old_postinstall_cmds=$lt_old_postinstall_cmds
13457old_postuninstall_cmds=$lt_old_postuninstall_cmds
13458
13459# Create an old-style archive from a shared archive.
13460old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13461
13462# Create a temporary old-style archive to link instead of a shared archive.
13463old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13464
13465# Commands used to build and install a shared archive.
13466archive_cmds=$lt_archive_cmds_CXX
13467archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13468postinstall_cmds=$lt_postinstall_cmds
13469postuninstall_cmds=$lt_postuninstall_cmds
13470
13471# Commands used to build a loadable module (assumed same as above if empty)
13472module_cmds=$lt_module_cmds_CXX
13473module_expsym_cmds=$lt_module_expsym_cmds_CXX
13474
13475# Commands to strip libraries.
13476old_striplib=$lt_old_striplib
13477striplib=$lt_striplib
13478
13479# Dependencies to place before the objects being linked to create a
13480# shared library.
64ff59ba 13481predep_objects=$lt_predep_objects_CXX
d9898ee8 13482
13483# Dependencies to place after the objects being linked to create a
13484# shared library.
64ff59ba 13485postdep_objects=$lt_postdep_objects_CXX
d9898ee8 13486
13487# Dependencies to place before the objects being linked to create a
13488# shared library.
13489predeps=$lt_predeps_CXX
13490
13491# Dependencies to place after the objects being linked to create a
13492# shared library.
13493postdeps=$lt_postdeps_CXX
13494
13495# The library search path used internally by the compiler when linking
13496# a shared library.
64ff59ba 13497compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
d9898ee8 13498
13499# Method to check whether dependent libraries are shared objects.
13500deplibs_check_method=$lt_deplibs_check_method
13501
13502# Command to use when deplibs_check_method == file_magic.
13503file_magic_cmd=$lt_file_magic_cmd
13504
13505# Flag that allows shared libraries with undefined symbols to be built.
13506allow_undefined_flag=$lt_allow_undefined_flag_CXX
13507
13508# Flag that forces no undefined symbols.
13509no_undefined_flag=$lt_no_undefined_flag_CXX
13510
13511# Commands used to finish a libtool library installation in a directory.
13512finish_cmds=$lt_finish_cmds
13513
13514# Same as above, but a single script fragment to be evaled but not shown.
13515finish_eval=$lt_finish_eval
13516
13517# Take the output of nm and produce a listing of raw symbols and C names.
13518global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13519
13520# Transform the output of nm in a proper C declaration
13521global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13522
13523# Transform the output of nm in a C name address pair
13524global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13525
13526# This is the shared library runtime path variable.
13527runpath_var=$runpath_var
13528
13529# This is the shared library path variable.
13530shlibpath_var=$shlibpath_var
13531
13532# Is shlibpath searched before the hard-coded library search path?
13533shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13534
13535# How to hardcode a shared library path into an executable.
13536hardcode_action=$hardcode_action_CXX
13537
13538# Whether we should hardcode library paths into libraries.
13539hardcode_into_libs=$hardcode_into_libs
13540
13541# Flag to hardcode \$libdir into a binary during linking.
13542# This must work even if \$libdir does not exist.
13543hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13544
13545# If ld is used when linking, flag to hardcode \$libdir into
13546# a binary during linking. This must work even if \$libdir does
13547# not exist.
13548hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13549
13550# Whether we need a single -rpath flag with a separated argument.
13551hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13552
13553# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13554# resulting binary.
13555hardcode_direct=$hardcode_direct_CXX
13556
13557# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13558# resulting binary.
13559hardcode_minus_L=$hardcode_minus_L_CXX
13560
13561# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13562# the resulting binary.
13563hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13564
13565# Set to yes if building a shared library automatically hardcodes DIR into the library
13566# and all subsequent libraries and executables linked against it.
13567hardcode_automatic=$hardcode_automatic_CXX
13568
13569# Variables whose values should be saved in libtool wrapper scripts and
13570# restored at relink time.
13571variables_saved_for_relink="$variables_saved_for_relink"
13572
13573# Whether libtool must link a program against all its dependency libraries.
13574link_all_deplibs=$link_all_deplibs_CXX
13575
13576# Compile-time system search path for libraries
64ff59ba 13577sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 13578
13579# Run-time system search path for libraries
13580sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13581
13582# Fix the shell variable \$srcfile for the compiler.
13583fix_srcfile_path="$fix_srcfile_path_CXX"
13584
13585# Set to yes if exported symbols are required.
13586always_export_symbols=$always_export_symbols_CXX
13587
13588# The commands to list exported symbols.
13589export_symbols_cmds=$lt_export_symbols_cmds_CXX
13590
13591# The commands to extract the exported symbol list from a shared archive.
13592extract_expsyms_cmds=$lt_extract_expsyms_cmds
13593
13594# Symbols that should not be listed in the preloaded symbols.
13595exclude_expsyms=$lt_exclude_expsyms_CXX
13596
13597# Symbols that must always be exported.
13598include_expsyms=$lt_include_expsyms_CXX
13599
13600# ### END LIBTOOL TAG CONFIG: $tagname
13601
13602__EOF__
13603
13604
13605else
13606 # If there is no Makefile yet, we rely on a make rule to execute
13607 # `config.status --recheck' to rerun these tests and create the
13608 # libtool script then.
13609 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13610 if test -f "$ltmain_in"; then
13611 test -f Makefile && make "$ltmain"
13612 fi
13613fi
13614
13615
13616ac_ext=c
13617ac_cpp='$CPP $CPPFLAGS'
13618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13620ac_compiler_gnu=$ac_cv_c_compiler_gnu
13621
13622CC=$lt_save_CC
13623LDCXX=$LD
13624LD=$lt_save_LD
13625GCC=$lt_save_GCC
13626with_gnu_ldcxx=$with_gnu_ld
13627with_gnu_ld=$lt_save_with_gnu_ld
13628lt_cv_path_LDCXX=$lt_cv_path_LD
13629lt_cv_path_LD=$lt_save_path_LD
13630lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13631lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13632
13633 else
13634 tagname=""
13635 fi
13636 ;;
13637
13638 F77)
13639 if test -n "$F77" && test "X$F77" != "Xno"; then
13640
13641ac_ext=f
13642ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13643ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13644ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13645
13646
13647archive_cmds_need_lc_F77=no
13648allow_undefined_flag_F77=
13649always_export_symbols_F77=no
13650archive_expsym_cmds_F77=
13651export_dynamic_flag_spec_F77=
13652hardcode_direct_F77=no
13653hardcode_libdir_flag_spec_F77=
13654hardcode_libdir_flag_spec_ld_F77=
13655hardcode_libdir_separator_F77=
13656hardcode_minus_L_F77=no
13657hardcode_automatic_F77=no
13658module_cmds_F77=
13659module_expsym_cmds_F77=
13660link_all_deplibs_F77=unknown
13661old_archive_cmds_F77=$old_archive_cmds
13662no_undefined_flag_F77=
13663whole_archive_flag_spec_F77=
13664enable_shared_with_static_runtimes_F77=no
13665
13666# Source file extension for f77 test sources.
13667ac_ext=f
13668
13669# Object file extension for compiled f77 test sources.
13670objext=o
13671objext_F77=$objext
13672
13673# Code to be used in simple compile tests
13674lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13675
13676# Code to be used in simple link tests
13677lt_simple_link_test_code=" program t\n end\n"
13678
13679# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13680
13681# If no C compiler was specified, use CC.
13682LTCC=${LTCC-"$CC"}
13683
13684# If no C compiler flags were specified, use CFLAGS.
13685LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13686
13687# Allow CC to be a program name with arguments.
13688compiler=$CC
13689
13690
13691# save warnings/boilerplate of simple test code
13692ac_outfile=conftest.$ac_objext
13693printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13694eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13695_lt_compiler_boilerplate=`cat conftest.err`
13696$rm conftest*
13697
13698ac_outfile=conftest.$ac_objext
13699printf "$lt_simple_link_test_code" >conftest.$ac_ext
13700eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13701_lt_linker_boilerplate=`cat conftest.err`
13702$rm conftest*
13703
13704
13705# Allow CC to be a program name with arguments.
13706lt_save_CC="$CC"
13707CC=${F77-"f77"}
13708compiler=$CC
13709compiler_F77=$CC
13710for cc_temp in $compiler""; do
13711 case $cc_temp in
13712 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13713 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13714 \-*) ;;
13715 *) break;;
13716 esac
13717done
13718cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13719
13720
64ff59ba 13721{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13722echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13723{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13724echo "${ECHO_T}$can_build_shared" >&6; }
d9898ee8 13725
64ff59ba 13726{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13727echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d9898ee8 13728test "$can_build_shared" = "no" && enable_shared=no
13729
13730# On AIX, shared libraries and static libraries use the same namespace, and
13731# are all built from PIC.
13732case $host_os in
13733aix3*)
13734 test "$enable_shared" = yes && enable_static=no
13735 if test -n "$RANLIB"; then
13736 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13737 postinstall_cmds='$RANLIB $lib'
13738 fi
13739 ;;
13740aix4* | aix5*)
13741 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13742 test "$enable_shared" = yes && enable_static=no
13743 fi
13744 ;;
13745esac
64ff59ba 13746{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13747echo "${ECHO_T}$enable_shared" >&6; }
d9898ee8 13748
64ff59ba 13749{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13750echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d9898ee8 13751# Make sure either enable_shared or enable_static is yes.
13752test "$enable_shared" = yes || enable_static=yes
64ff59ba 13753{ echo "$as_me:$LINENO: result: $enable_static" >&5
13754echo "${ECHO_T}$enable_static" >&6; }
d9898ee8 13755
13756GCC_F77="$G77"
13757LD_F77="$LD"
13758
13759lt_prog_compiler_wl_F77=
13760lt_prog_compiler_pic_F77=
13761lt_prog_compiler_static_F77=
13762
64ff59ba 13763{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13764echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 13765
13766 if test "$GCC" = yes; then
13767 lt_prog_compiler_wl_F77='-Wl,'
13768 lt_prog_compiler_static_F77='-static'
13769
13770 case $host_os in
13771 aix*)
13772 # All AIX code is PIC.
13773 if test "$host_cpu" = ia64; then
13774 # AIX 5 now supports IA64 processor
13775 lt_prog_compiler_static_F77='-Bstatic'
13776 fi
13777 ;;
13778
13779 amigaos*)
13780 # FIXME: we need at least 68020 code to build shared libraries, but
13781 # adding the `-m68020' flag to GCC prevents building anything better,
13782 # like `-m68040'.
13783 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13784 ;;
13785
13786 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13787 # PIC is the default for these OSes.
13788 ;;
13789
13790 mingw* | pw32* | os2*)
13791 # This hack is so that the source file can tell whether it is being
13792 # built for inclusion in a dll (and should export symbols for example).
13793 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13794 ;;
13795
13796 darwin* | rhapsody*)
13797 # PIC is the default on this platform
13798 # Common symbols not allowed in MH_DYLIB files
13799 lt_prog_compiler_pic_F77='-fno-common'
13800 ;;
13801
13802 interix3*)
13803 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13804 # Instead, we relocate shared libraries at runtime.
13805 ;;
13806
13807 msdosdjgpp*)
13808 # Just because we use GCC doesn't mean we suddenly get shared libraries
13809 # on systems that don't support them.
13810 lt_prog_compiler_can_build_shared_F77=no
13811 enable_shared=no
13812 ;;
13813
13814 sysv4*MP*)
13815 if test -d /usr/nec; then
13816 lt_prog_compiler_pic_F77=-Kconform_pic
13817 fi
13818 ;;
13819
13820 hpux*)
13821 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13822 # not for PA HP-UX.
13823 case $host_cpu in
13824 hppa*64*|ia64*)
13825 # +Z the default
13826 ;;
13827 *)
13828 lt_prog_compiler_pic_F77='-fPIC'
13829 ;;
13830 esac
13831 ;;
13832
13833 *)
13834 lt_prog_compiler_pic_F77='-fPIC'
13835 ;;
13836 esac
13837 else
13838 # PORTME Check for flag to pass linker flags through the system compiler.
13839 case $host_os in
13840 aix*)
13841 lt_prog_compiler_wl_F77='-Wl,'
13842 if test "$host_cpu" = ia64; then
13843 # AIX 5 now supports IA64 processor
13844 lt_prog_compiler_static_F77='-Bstatic'
13845 else
13846 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13847 fi
13848 ;;
13849 darwin*)
13850 # PIC is the default on this platform
13851 # Common symbols not allowed in MH_DYLIB files
13852 case $cc_basename in
13853 xlc*)
13854 lt_prog_compiler_pic_F77='-qnocommon'
13855 lt_prog_compiler_wl_F77='-Wl,'
13856 ;;
13857 esac
13858 ;;
13859
13860 mingw* | pw32* | os2*)
13861 # This hack is so that the source file can tell whether it is being
13862 # built for inclusion in a dll (and should export symbols for example).
13863 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13864 ;;
13865
13866 hpux9* | hpux10* | hpux11*)
13867 lt_prog_compiler_wl_F77='-Wl,'
13868 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13869 # not for PA HP-UX.
13870 case $host_cpu in
13871 hppa*64*|ia64*)
13872 # +Z the default
13873 ;;
13874 *)
13875 lt_prog_compiler_pic_F77='+Z'
13876 ;;
13877 esac
13878 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13879 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13880 ;;
13881
13882 irix5* | irix6* | nonstopux*)
13883 lt_prog_compiler_wl_F77='-Wl,'
13884 # PIC (with -KPIC) is the default.
13885 lt_prog_compiler_static_F77='-non_shared'
13886 ;;
13887
13888 newsos6)
13889 lt_prog_compiler_pic_F77='-KPIC'
13890 lt_prog_compiler_static_F77='-Bstatic'
13891 ;;
13892
13893 linux*)
13894 case $cc_basename in
13895 icc* | ecc*)
13896 lt_prog_compiler_wl_F77='-Wl,'
13897 lt_prog_compiler_pic_F77='-KPIC'
13898 lt_prog_compiler_static_F77='-static'
13899 ;;
13900 pgcc* | pgf77* | pgf90* | pgf95*)
13901 # Portland Group compilers (*not* the Pentium gcc compiler,
13902 # which looks to be a dead project)
13903 lt_prog_compiler_wl_F77='-Wl,'
13904 lt_prog_compiler_pic_F77='-fpic'
13905 lt_prog_compiler_static_F77='-Bstatic'
13906 ;;
13907 ccc*)
13908 lt_prog_compiler_wl_F77='-Wl,'
13909 # All Alpha code is PIC.
13910 lt_prog_compiler_static_F77='-non_shared'
13911 ;;
13912 esac
13913 ;;
13914
13915 osf3* | osf4* | osf5*)
13916 lt_prog_compiler_wl_F77='-Wl,'
13917 # All OSF/1 code is PIC.
13918 lt_prog_compiler_static_F77='-non_shared'
13919 ;;
13920
13921 solaris*)
13922 lt_prog_compiler_pic_F77='-KPIC'
13923 lt_prog_compiler_static_F77='-Bstatic'
13924 case $cc_basename in
13925 f77* | f90* | f95*)
13926 lt_prog_compiler_wl_F77='-Qoption ld ';;
13927 *)
13928 lt_prog_compiler_wl_F77='-Wl,';;
13929 esac
13930 ;;
13931
13932 sunos4*)
13933 lt_prog_compiler_wl_F77='-Qoption ld '
13934 lt_prog_compiler_pic_F77='-PIC'
13935 lt_prog_compiler_static_F77='-Bstatic'
13936 ;;
13937
13938 sysv4 | sysv4.2uw2* | sysv4.3*)
13939 lt_prog_compiler_wl_F77='-Wl,'
13940 lt_prog_compiler_pic_F77='-KPIC'
13941 lt_prog_compiler_static_F77='-Bstatic'
13942 ;;
13943
13944 sysv4*MP*)
13945 if test -d /usr/nec ;then
13946 lt_prog_compiler_pic_F77='-Kconform_pic'
13947 lt_prog_compiler_static_F77='-Bstatic'
13948 fi
13949 ;;
13950
13951 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13952 lt_prog_compiler_wl_F77='-Wl,'
13953 lt_prog_compiler_pic_F77='-KPIC'
13954 lt_prog_compiler_static_F77='-Bstatic'
13955 ;;
13956
13957 unicos*)
13958 lt_prog_compiler_wl_F77='-Wl,'
13959 lt_prog_compiler_can_build_shared_F77=no
13960 ;;
13961
13962 uts4*)
13963 lt_prog_compiler_pic_F77='-pic'
13964 lt_prog_compiler_static_F77='-Bstatic'
13965 ;;
13966
13967 *)
13968 lt_prog_compiler_can_build_shared_F77=no
13969 ;;
13970 esac
13971 fi
13972
64ff59ba 13973{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13974echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
d9898ee8 13975
13976#
13977# Check to make sure the PIC flag actually works.
13978#
13979if test -n "$lt_prog_compiler_pic_F77"; then
13980
64ff59ba 13981{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13982echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
d9898ee8 13983if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13984 echo $ECHO_N "(cached) $ECHO_C" >&6
13985else
13986 lt_prog_compiler_pic_works_F77=no
13987 ac_outfile=conftest.$ac_objext
13988 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13989 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13990 # Insert the option either (1) after the last *FLAGS variable, or
13991 # (2) before a word containing "conftest.", or (3) at the end.
13992 # Note that $ac_compile itself does not contain backslashes and begins
13993 # with a dollar sign (not a hyphen), so the echo should work correctly.
13994 # The option is referenced via a variable to avoid confusing sed.
13995 lt_compile=`echo "$ac_compile" | $SED \
13996 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13997 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13998 -e 's:$: $lt_compiler_flag:'`
64ff59ba 13999 (eval echo "\"\$as_me:13999: $lt_compile\"" >&5)
d9898ee8 14000 (eval "$lt_compile" 2>conftest.err)
14001 ac_status=$?
14002 cat conftest.err >&5
64ff59ba 14003 echo "$as_me:14003: \$? = $ac_status" >&5
d9898ee8 14004 if (exit $ac_status) && test -s "$ac_outfile"; then
14005 # The compiler can only warn and ignore the option if not recognized
14006 # So say no if there are warnings other than the usual output.
14007 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14008 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14009 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14010 lt_prog_compiler_pic_works_F77=yes
14011 fi
14012 fi
14013 $rm conftest*
14014
14015fi
64ff59ba 14016{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14017echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
d9898ee8 14018
14019if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14020 case $lt_prog_compiler_pic_F77 in
14021 "" | " "*) ;;
14022 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14023 esac
14024else
14025 lt_prog_compiler_pic_F77=
14026 lt_prog_compiler_can_build_shared_F77=no
14027fi
14028
14029fi
14030case $host_os in
14031 # For platforms which do not support PIC, -DPIC is meaningless:
14032 *djgpp*)
14033 lt_prog_compiler_pic_F77=
14034 ;;
14035 *)
14036 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14037 ;;
14038esac
14039
14040#
14041# Check to make sure the static flag actually works.
14042#
14043wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
64ff59ba 14044{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14045echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 14046if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14047 echo $ECHO_N "(cached) $ECHO_C" >&6
14048else
14049 lt_prog_compiler_static_works_F77=no
14050 save_LDFLAGS="$LDFLAGS"
14051 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14052 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14053 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14054 # The linker can only warn and ignore the option if not recognized
14055 # So say no if there are warnings
14056 if test -s conftest.err; then
14057 # Append any errors to the config.log.
14058 cat conftest.err 1>&5
14059 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14060 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14061 if diff conftest.exp conftest.er2 >/dev/null; then
14062 lt_prog_compiler_static_works_F77=yes
14063 fi
14064 else
14065 lt_prog_compiler_static_works_F77=yes
14066 fi
14067 fi
14068 $rm conftest*
14069 LDFLAGS="$save_LDFLAGS"
14070
14071fi
64ff59ba 14072{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14073echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
d9898ee8 14074
14075if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14076 :
14077else
14078 lt_prog_compiler_static_F77=
14079fi
14080
14081
64ff59ba 14082{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14083echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 14084if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14085 echo $ECHO_N "(cached) $ECHO_C" >&6
14086else
14087 lt_cv_prog_compiler_c_o_F77=no
14088 $rm -r conftest 2>/dev/null
14089 mkdir conftest
14090 cd conftest
14091 mkdir out
14092 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14093
14094 lt_compiler_flag="-o out/conftest2.$ac_objext"
14095 # Insert the option either (1) after the last *FLAGS variable, or
14096 # (2) before a word containing "conftest.", or (3) at the end.
14097 # Note that $ac_compile itself does not contain backslashes and begins
14098 # with a dollar sign (not a hyphen), so the echo should work correctly.
14099 lt_compile=`echo "$ac_compile" | $SED \
14100 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14101 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14102 -e 's:$: $lt_compiler_flag:'`
64ff59ba 14103 (eval echo "\"\$as_me:14103: $lt_compile\"" >&5)
d9898ee8 14104 (eval "$lt_compile" 2>out/conftest.err)
14105 ac_status=$?
14106 cat out/conftest.err >&5
64ff59ba 14107 echo "$as_me:14107: \$? = $ac_status" >&5
d9898ee8 14108 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14109 then
14110 # The compiler can only warn and ignore the option if not recognized
14111 # So say no if there are warnings
14112 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14113 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14114 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14115 lt_cv_prog_compiler_c_o_F77=yes
14116 fi
14117 fi
14118 chmod u+w . 2>&5
14119 $rm conftest*
14120 # SGI C++ compiler will create directory out/ii_files/ for
14121 # template instantiation
14122 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14123 $rm out/* && rmdir out
14124 cd ..
14125 rmdir conftest
14126 $rm conftest*
14127
14128fi
64ff59ba 14129{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14130echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
d9898ee8 14131
14132
14133hard_links="nottested"
14134if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14135 # do not overwrite the value of need_locks provided by the user
64ff59ba 14136 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14137echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 14138 hard_links=yes
14139 $rm conftest*
14140 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14141 touch conftest.a
14142 ln conftest.a conftest.b 2>&5 || hard_links=no
14143 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 14144 { echo "$as_me:$LINENO: result: $hard_links" >&5
14145echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 14146 if test "$hard_links" = no; then
14147 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14148echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14149 need_locks=warn
14150 fi
14151else
14152 need_locks=no
14153fi
14154
64ff59ba 14155{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14156echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 14157
14158 runpath_var=
14159 allow_undefined_flag_F77=
14160 enable_shared_with_static_runtimes_F77=no
14161 archive_cmds_F77=
14162 archive_expsym_cmds_F77=
14163 old_archive_From_new_cmds_F77=
14164 old_archive_from_expsyms_cmds_F77=
14165 export_dynamic_flag_spec_F77=
14166 whole_archive_flag_spec_F77=
14167 thread_safe_flag_spec_F77=
14168 hardcode_libdir_flag_spec_F77=
14169 hardcode_libdir_flag_spec_ld_F77=
14170 hardcode_libdir_separator_F77=
14171 hardcode_direct_F77=no
14172 hardcode_minus_L_F77=no
14173 hardcode_shlibpath_var_F77=unsupported
14174 link_all_deplibs_F77=unknown
14175 hardcode_automatic_F77=no
14176 module_cmds_F77=
14177 module_expsym_cmds_F77=
14178 always_export_symbols_F77=no
14179 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14180 # include_expsyms should be a list of space-separated symbols to be *always*
14181 # included in the symbol list
14182 include_expsyms_F77=
14183 # exclude_expsyms can be an extended regexp of symbols to exclude
14184 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14185 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14186 # as well as any symbol that contains `d'.
14187 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14188 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14189 # platforms (ab)use it in PIC code, but their linkers get confused if
14190 # the symbol is explicitly referenced. Since portable code cannot
14191 # rely on this symbol name, it's probably fine to never include it in
14192 # preloaded symbol tables.
14193 extract_expsyms_cmds=
14194 # Just being paranoid about ensuring that cc_basename is set.
14195 for cc_temp in $compiler""; do
14196 case $cc_temp in
14197 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14198 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14199 \-*) ;;
14200 *) break;;
14201 esac
14202done
14203cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14204
14205 case $host_os in
14206 cygwin* | mingw* | pw32*)
14207 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14208 # When not using gcc, we currently assume that we are using
14209 # Microsoft Visual C++.
14210 if test "$GCC" != yes; then
14211 with_gnu_ld=no
14212 fi
14213 ;;
14214 interix*)
14215 # we just hope/assume this is gcc and not c89 (= MSVC++)
14216 with_gnu_ld=yes
14217 ;;
14218 openbsd*)
14219 with_gnu_ld=no
14220 ;;
14221 esac
14222
14223 ld_shlibs_F77=yes
14224 if test "$with_gnu_ld" = yes; then
14225 # If archive_cmds runs LD, not CC, wlarc should be empty
14226 wlarc='${wl}'
14227
14228 # Set some defaults for GNU ld with shared library support. These
14229 # are reset later if shared libraries are not supported. Putting them
14230 # here allows them to be overridden if necessary.
14231 runpath_var=LD_RUN_PATH
14232 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14233 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14234 # ancient GNU ld didn't support --whole-archive et. al.
14235 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14236 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14237 else
14238 whole_archive_flag_spec_F77=
14239 fi
14240 supports_anon_versioning=no
14241 case `$LD -v 2>/dev/null` in
14242 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14243 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14244 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14245 *\ 2.11.*) ;; # other 2.11 versions
14246 *) supports_anon_versioning=yes ;;
14247 esac
14248
14249 # See if GNU ld supports shared libraries.
14250 case $host_os in
14251 aix3* | aix4* | aix5*)
14252 # On AIX/PPC, the GNU linker is very broken
14253 if test "$host_cpu" != ia64; then
14254 ld_shlibs_F77=no
14255 cat <<EOF 1>&2
14256
14257*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14258*** to be unable to reliably create shared libraries on AIX.
14259*** Therefore, libtool is disabling shared libraries support. If you
14260*** really care for shared libraries, you may want to modify your PATH
14261*** so that a non-GNU linker is found, and then restart.
14262
14263EOF
14264 fi
14265 ;;
14266
14267 amigaos*)
14268 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)'
14269 hardcode_libdir_flag_spec_F77='-L$libdir'
14270 hardcode_minus_L_F77=yes
14271
14272 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14273 # that the semantics of dynamic libraries on AmigaOS, at least up
14274 # to version 4, is to share data among multiple programs linked
14275 # with the same dynamic library. Since this doesn't match the
14276 # behavior of shared libraries on other platforms, we can't use
14277 # them.
14278 ld_shlibs_F77=no
14279 ;;
14280
14281 beos*)
14282 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14283 allow_undefined_flag_F77=unsupported
14284 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14285 # support --undefined. This deserves some investigation. FIXME
14286 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14287 else
14288 ld_shlibs_F77=no
14289 fi
14290 ;;
14291
14292 cygwin* | mingw* | pw32*)
14293 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14294 # as there is no search path for DLLs.
14295 hardcode_libdir_flag_spec_F77='-L$libdir'
14296 allow_undefined_flag_F77=unsupported
14297 always_export_symbols_F77=no
14298 enable_shared_with_static_runtimes_F77=yes
14299 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14300
14301 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14302 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14303 # If the export-symbols file already is a .def file (1st line
14304 # is EXPORTS), use it as is; otherwise, prepend...
14305 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14306 cp $export_symbols $output_objdir/$soname.def;
14307 else
14308 echo EXPORTS > $output_objdir/$soname.def;
14309 cat $export_symbols >> $output_objdir/$soname.def;
14310 fi~
14311 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14312 else
14313 ld_shlibs_F77=no
14314 fi
14315 ;;
14316
14317 interix3*)
14318 hardcode_direct_F77=no
14319 hardcode_shlibpath_var_F77=no
14320 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14321 export_dynamic_flag_spec_F77='${wl}-E'
14322 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14323 # Instead, shared libraries are loaded at an image base (0x10000000 by
14324 # default) and relocated if they conflict, which is a slow very memory
14325 # consuming and fragmenting process. To avoid this, we pick a random,
14326 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14327 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14328 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'
14329 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'
14330 ;;
14331
14332 linux*)
14333 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14334 tmp_addflag=
14335 case $cc_basename,$host_cpu in
14336 pgcc*) # Portland Group C compiler
14337 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'
14338 tmp_addflag=' $pic_flag'
14339 ;;
14340 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14341 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'
14342 tmp_addflag=' $pic_flag -Mnomain' ;;
14343 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14344 tmp_addflag=' -i_dynamic' ;;
14345 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14346 tmp_addflag=' -i_dynamic -nofor_main' ;;
14347 ifc* | ifort*) # Intel Fortran compiler
14348 tmp_addflag=' -nofor_main' ;;
14349 esac
14350 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14351
14352 if test $supports_anon_versioning = yes; then
14353 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14354 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14355 $echo "local: *; };" >> $output_objdir/$libname.ver~
14356 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14357 fi
14358 else
14359 ld_shlibs_F77=no
14360 fi
14361 ;;
14362
14363 netbsd*)
14364 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14365 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14366 wlarc=
14367 else
14368 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14369 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14370 fi
14371 ;;
14372
14373 solaris*)
14374 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14375 ld_shlibs_F77=no
14376 cat <<EOF 1>&2
14377
14378*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14379*** create shared libraries on Solaris systems. Therefore, libtool
14380*** is disabling shared libraries support. We urge you to upgrade GNU
14381*** binutils to release 2.9.1 or newer. Another option is to modify
14382*** your PATH or compiler configuration so that the native linker is
14383*** used, and then restart.
14384
14385EOF
14386 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14387 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14388 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14389 else
14390 ld_shlibs_F77=no
14391 fi
14392 ;;
14393
14394 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14395 case `$LD -v 2>&1` in
14396 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14397 ld_shlibs_F77=no
14398 cat <<_LT_EOF 1>&2
14399
14400*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14401*** reliably create shared libraries on SCO systems. Therefore, libtool
14402*** is disabling shared libraries support. We urge you to upgrade GNU
14403*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14404*** your PATH or compiler configuration so that the native linker is
14405*** used, and then restart.
14406
14407_LT_EOF
14408 ;;
14409 *)
14410 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14411 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14412 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14413 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14414 else
14415 ld_shlibs_F77=no
14416 fi
14417 ;;
14418 esac
14419 ;;
14420
14421 sunos4*)
14422 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14423 wlarc=
14424 hardcode_direct_F77=yes
14425 hardcode_shlibpath_var_F77=no
14426 ;;
14427
14428 *)
14429 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14430 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14431 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14432 else
14433 ld_shlibs_F77=no
14434 fi
14435 ;;
14436 esac
14437
14438 if test "$ld_shlibs_F77" = no; then
14439 runpath_var=
14440 hardcode_libdir_flag_spec_F77=
14441 export_dynamic_flag_spec_F77=
14442 whole_archive_flag_spec_F77=
14443 fi
14444 else
14445 # PORTME fill in a description of your system's linker (not GNU ld)
14446 case $host_os in
14447 aix3*)
14448 allow_undefined_flag_F77=unsupported
14449 always_export_symbols_F77=yes
14450 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'
14451 # Note: this linker hardcodes the directories in LIBPATH if there
14452 # are no directories specified by -L.
14453 hardcode_minus_L_F77=yes
14454 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14455 # Neither direct hardcoding nor static linking is supported with a
14456 # broken collect2.
14457 hardcode_direct_F77=unsupported
14458 fi
14459 ;;
14460
14461 aix4* | aix5*)
14462 if test "$host_cpu" = ia64; then
14463 # On IA64, the linker does run time linking by default, so we don't
14464 # have to do anything special.
14465 aix_use_runtimelinking=no
14466 exp_sym_flag='-Bexport'
14467 no_entry_flag=""
14468 else
14469 # If we're using GNU nm, then we don't want the "-C" option.
14470 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14471 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14472 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'
14473 else
14474 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'
14475 fi
14476 aix_use_runtimelinking=no
14477
14478 # Test if we are trying to use run time linking or normal
14479 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14480 # need to do runtime linking.
14481 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14482 for ld_flag in $LDFLAGS; do
14483 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14484 aix_use_runtimelinking=yes
14485 break
14486 fi
14487 done
14488 ;;
14489 esac
14490
14491 exp_sym_flag='-bexport'
14492 no_entry_flag='-bnoentry'
14493 fi
14494
14495 # When large executables or shared objects are built, AIX ld can
14496 # have problems creating the table of contents. If linking a library
14497 # or program results in "error TOC overflow" add -mminimal-toc to
14498 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14499 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14500
14501 archive_cmds_F77=''
14502 hardcode_direct_F77=yes
14503 hardcode_libdir_separator_F77=':'
14504 link_all_deplibs_F77=yes
14505
14506 if test "$GCC" = yes; then
14507 case $host_os in aix4.[012]|aix4.[012].*)
14508 # We only want to do this on AIX 4.2 and lower, the check
14509 # below for broken collect2 doesn't work under 4.3+
14510 collect2name=`${CC} -print-prog-name=collect2`
14511 if test -f "$collect2name" && \
14512 strings "$collect2name" | grep resolve_lib_name >/dev/null
14513 then
14514 # We have reworked collect2
14515 hardcode_direct_F77=yes
14516 else
14517 # We have old collect2
14518 hardcode_direct_F77=unsupported
14519 # It fails to find uninstalled libraries when the uninstalled
14520 # path is not listed in the libpath. Setting hardcode_minus_L
14521 # to unsupported forces relinking
14522 hardcode_minus_L_F77=yes
14523 hardcode_libdir_flag_spec_F77='-L$libdir'
14524 hardcode_libdir_separator_F77=
14525 fi
14526 ;;
14527 esac
14528 shared_flag='-shared'
14529 if test "$aix_use_runtimelinking" = yes; then
14530 shared_flag="$shared_flag "'${wl}-G'
14531 fi
14532 else
14533 # not using gcc
14534 if test "$host_cpu" = ia64; then
14535 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14536 # chokes on -Wl,-G. The following line is correct:
14537 shared_flag='-G'
14538 else
14539 if test "$aix_use_runtimelinking" = yes; then
14540 shared_flag='${wl}-G'
14541 else
14542 shared_flag='${wl}-bM:SRE'
14543 fi
14544 fi
14545 fi
14546
14547 # It seems that -bexpall does not export symbols beginning with
14548 # underscore (_), so it is better to generate a list of symbols to export.
14549 always_export_symbols_F77=yes
14550 if test "$aix_use_runtimelinking" = yes; then
14551 # Warning - without using the other runtime loading flags (-brtl),
14552 # -berok will link without error, but may produce a broken library.
14553 allow_undefined_flag_F77='-berok'
14554 # Determine the default libpath from the value encoded in an empty executable.
14555 cat >conftest.$ac_ext <<_ACEOF
14556 program main
14557
14558 end
14559_ACEOF
14560rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 14561if { (ac_try="$ac_link"
14562case "(($ac_try" in
14563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14564 *) ac_try_echo=$ac_try;;
14565esac
14566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14567 (eval "$ac_link") 2>conftest.er1
d9898ee8 14568 ac_status=$?
14569 grep -v '^ *+' conftest.er1 >conftest.err
14570 rm -f conftest.er1
14571 cat conftest.err >&5
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 14573 (exit $ac_status); } && {
14574 test -z "$ac_f77_werror_flag" ||
14575 test ! -s conftest.err
14576 } && test -s conftest$ac_exeext &&
14577 $as_test_x conftest$ac_exeext; then
d9898ee8 14578
14579aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14580}'`
14581# Check for a 64-bit object if we didn't find anything.
14582if 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; }
14583}'`; fi
14584else
14585 echo "$as_me: failed program was:" >&5
14586sed 's/^/| /' conftest.$ac_ext >&5
14587
64ff59ba 14588
d9898ee8 14589fi
64ff59ba 14590
14591rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14592 conftest$ac_exeext conftest.$ac_ext
14593if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14594
14595 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14596 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"
14597 else
14598 if test "$host_cpu" = ia64; then
14599 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14600 allow_undefined_flag_F77="-z nodefs"
14601 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"
14602 else
14603 # Determine the default libpath from the value encoded in an empty executable.
14604 cat >conftest.$ac_ext <<_ACEOF
14605 program main
14606
14607 end
14608_ACEOF
14609rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 14610if { (ac_try="$ac_link"
14611case "(($ac_try" in
14612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14613 *) ac_try_echo=$ac_try;;
14614esac
14615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14616 (eval "$ac_link") 2>conftest.er1
d9898ee8 14617 ac_status=$?
14618 grep -v '^ *+' conftest.er1 >conftest.err
14619 rm -f conftest.er1
14620 cat conftest.err >&5
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 14622 (exit $ac_status); } && {
14623 test -z "$ac_f77_werror_flag" ||
14624 test ! -s conftest.err
14625 } && test -s conftest$ac_exeext &&
14626 $as_test_x conftest$ac_exeext; then
d9898ee8 14627
14628aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14629}'`
14630# Check for a 64-bit object if we didn't find anything.
14631if 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; }
14632}'`; fi
14633else
14634 echo "$as_me: failed program was:" >&5
14635sed 's/^/| /' conftest.$ac_ext >&5
14636
64ff59ba 14637
d9898ee8 14638fi
64ff59ba 14639
14640rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14641 conftest$ac_exeext conftest.$ac_ext
14642if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14643
14644 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14645 # Warning - without using the other run time loading flags,
14646 # -berok will link without error, but may produce a broken library.
14647 no_undefined_flag_F77=' ${wl}-bernotok'
14648 allow_undefined_flag_F77=' ${wl}-berok'
14649 # Exported symbols can be pulled into shared objects from archives
14650 whole_archive_flag_spec_F77='$convenience'
14651 archive_cmds_need_lc_F77=yes
14652 # This is similar to how AIX traditionally builds its shared libraries.
14653 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'
14654 fi
14655 fi
14656 ;;
14657
14658 amigaos*)
14659 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)'
14660 hardcode_libdir_flag_spec_F77='-L$libdir'
14661 hardcode_minus_L_F77=yes
14662 # see comment about different semantics on the GNU ld section
14663 ld_shlibs_F77=no
14664 ;;
14665
14666 bsdi[45]*)
14667 export_dynamic_flag_spec_F77=-rdynamic
14668 ;;
14669
14670 cygwin* | mingw* | pw32*)
14671 # When not using gcc, we currently assume that we are using
14672 # Microsoft Visual C++.
14673 # hardcode_libdir_flag_spec is actually meaningless, as there is
14674 # no search path for DLLs.
14675 hardcode_libdir_flag_spec_F77=' '
14676 allow_undefined_flag_F77=unsupported
14677 # Tell ltmain to make .lib files, not .a files.
14678 libext=lib
14679 # Tell ltmain to make .dll files, not .so files.
14680 shrext_cmds=".dll"
14681 # FIXME: Setting linknames here is a bad hack.
14682 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14683 # The linker will automatically build a .lib file if we build a DLL.
14684 old_archive_From_new_cmds_F77='true'
14685 # FIXME: Should let the user specify the lib program.
14686 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14687 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14688 enable_shared_with_static_runtimes_F77=yes
14689 ;;
14690
14691 darwin* | rhapsody*)
14692 case $host_os in
14693 rhapsody* | darwin1.[012])
14694 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14695 ;;
14696 *) # Darwin 1.3 on
14697 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14698 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14699 else
14700 case ${MACOSX_DEPLOYMENT_TARGET} in
14701 10.[012])
14702 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14703 ;;
14704 10.*)
14705 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14706 ;;
14707 esac
14708 fi
14709 ;;
14710 esac
14711 archive_cmds_need_lc_F77=no
14712 hardcode_direct_F77=no
14713 hardcode_automatic_F77=yes
14714 hardcode_shlibpath_var_F77=unsupported
14715 whole_archive_flag_spec_F77=''
14716 link_all_deplibs_F77=yes
14717 if test "$GCC" = yes ; then
14718 output_verbose_link_cmd='echo'
14719 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14720 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14721 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14722 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}'
14723 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}'
14724 else
14725 case $cc_basename in
14726 xlc*)
14727 output_verbose_link_cmd='echo'
14728 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14729 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14730 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14731 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}'
14732 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}'
14733 ;;
14734 *)
14735 ld_shlibs_F77=no
14736 ;;
14737 esac
14738 fi
14739 ;;
14740
14741 dgux*)
14742 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14743 hardcode_libdir_flag_spec_F77='-L$libdir'
14744 hardcode_shlibpath_var_F77=no
14745 ;;
14746
14747 freebsd1*)
14748 ld_shlibs_F77=no
14749 ;;
14750
14751 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14752 # support. Future versions do this automatically, but an explicit c++rt0.o
14753 # does not break anything, and helps significantly (at the cost of a little
14754 # extra space).
14755 freebsd2.2*)
14756 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14757 hardcode_libdir_flag_spec_F77='-R$libdir'
14758 hardcode_direct_F77=yes
14759 hardcode_shlibpath_var_F77=no
14760 ;;
14761
14762 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14763 freebsd2*)
14764 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14765 hardcode_direct_F77=yes
14766 hardcode_minus_L_F77=yes
14767 hardcode_shlibpath_var_F77=no
14768 ;;
14769
14770 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14771 freebsd* | kfreebsd*-gnu | dragonfly*)
14772 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14773 hardcode_libdir_flag_spec_F77='-R$libdir'
14774 hardcode_direct_F77=yes
14775 hardcode_shlibpath_var_F77=no
14776 ;;
14777
14778 hpux9*)
14779 if test "$GCC" = yes; then
14780 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'
14781 else
14782 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'
14783 fi
14784 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14785 hardcode_libdir_separator_F77=:
14786 hardcode_direct_F77=yes
14787
14788 # hardcode_minus_L: Not really in the search PATH,
14789 # but as the default location of the library.
14790 hardcode_minus_L_F77=yes
14791 export_dynamic_flag_spec_F77='${wl}-E'
14792 ;;
14793
14794 hpux10*)
14795 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14796 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14797 else
14798 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14799 fi
14800 if test "$with_gnu_ld" = no; then
14801 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14802 hardcode_libdir_separator_F77=:
14803
14804 hardcode_direct_F77=yes
14805 export_dynamic_flag_spec_F77='${wl}-E'
14806
14807 # hardcode_minus_L: Not really in the search PATH,
14808 # but as the default location of the library.
14809 hardcode_minus_L_F77=yes
14810 fi
14811 ;;
14812
14813 hpux11*)
14814 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14815 case $host_cpu in
14816 hppa*64*)
14817 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14818 ;;
14819 ia64*)
14820 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14821 ;;
14822 *)
14823 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14824 ;;
14825 esac
14826 else
14827 case $host_cpu in
14828 hppa*64*)
14829 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14830 ;;
14831 ia64*)
14832 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14833 ;;
14834 *)
14835 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14836 ;;
14837 esac
14838 fi
14839 if test "$with_gnu_ld" = no; then
14840 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14841 hardcode_libdir_separator_F77=:
14842
14843 case $host_cpu in
14844 hppa*64*|ia64*)
14845 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14846 hardcode_direct_F77=no
14847 hardcode_shlibpath_var_F77=no
14848 ;;
14849 *)
14850 hardcode_direct_F77=yes
14851 export_dynamic_flag_spec_F77='${wl}-E'
14852
14853 # hardcode_minus_L: Not really in the search PATH,
14854 # but as the default location of the library.
14855 hardcode_minus_L_F77=yes
14856 ;;
14857 esac
14858 fi
14859 ;;
14860
14861 irix5* | irix6* | nonstopux*)
14862 if test "$GCC" = yes; then
14863 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'
14864 else
14865 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'
14866 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14867 fi
14868 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14869 hardcode_libdir_separator_F77=:
14870 link_all_deplibs_F77=yes
14871 ;;
14872
14873 netbsd*)
14874 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14875 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14876 else
14877 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14878 fi
14879 hardcode_libdir_flag_spec_F77='-R$libdir'
14880 hardcode_direct_F77=yes
14881 hardcode_shlibpath_var_F77=no
14882 ;;
14883
14884 newsos6)
14885 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14886 hardcode_direct_F77=yes
14887 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14888 hardcode_libdir_separator_F77=:
14889 hardcode_shlibpath_var_F77=no
14890 ;;
14891
14892 openbsd*)
14893 hardcode_direct_F77=yes
14894 hardcode_shlibpath_var_F77=no
14895 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14896 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14897 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14898 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14899 export_dynamic_flag_spec_F77='${wl}-E'
14900 else
14901 case $host_os in
14902 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14903 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14904 hardcode_libdir_flag_spec_F77='-R$libdir'
14905 ;;
14906 *)
14907 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14908 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14909 ;;
14910 esac
14911 fi
14912 ;;
14913
14914 os2*)
14915 hardcode_libdir_flag_spec_F77='-L$libdir'
14916 hardcode_minus_L_F77=yes
14917 allow_undefined_flag_F77=unsupported
14918 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'
14919 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14920 ;;
14921
14922 osf3*)
14923 if test "$GCC" = yes; then
14924 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14925 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'
14926 else
14927 allow_undefined_flag_F77=' -expect_unresolved \*'
14928 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'
14929 fi
14930 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14931 hardcode_libdir_separator_F77=:
14932 ;;
14933
14934 osf4* | osf5*) # as osf3* with the addition of -msym flag
14935 if test "$GCC" = yes; then
14936 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14937 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'
14938 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14939 else
14940 allow_undefined_flag_F77=' -expect_unresolved \*'
14941 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'
14942 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~
14943 $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'
14944
14945 # Both c and cxx compiler support -rpath directly
14946 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14947 fi
14948 hardcode_libdir_separator_F77=:
14949 ;;
14950
14951 solaris*)
14952 no_undefined_flag_F77=' -z text'
14953 if test "$GCC" = yes; then
14954 wlarc='${wl}'
14955 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14956 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14957 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14958 else
14959 wlarc=''
14960 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14961 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14962 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14963 fi
14964 hardcode_libdir_flag_spec_F77='-R$libdir'
14965 hardcode_shlibpath_var_F77=no
14966 case $host_os in
14967 solaris2.[0-5] | solaris2.[0-5].*) ;;
14968 *)
14969 # The compiler driver will combine linker options so we
14970 # cannot just pass the convience library names through
14971 # without $wl, iff we do not link with $LD.
14972 # Luckily, gcc supports the same syntax we need for Sun Studio.
14973 # Supported since Solaris 2.6 (maybe 2.5.1?)
14974 case $wlarc in
14975 '')
14976 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14977 *)
14978 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' ;;
14979 esac ;;
14980 esac
14981 link_all_deplibs_F77=yes
14982 ;;
14983
14984 sunos4*)
14985 if test "x$host_vendor" = xsequent; then
14986 # Use $CC to link under sequent, because it throws in some extra .o
14987 # files that make .init and .fini sections work.
14988 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14989 else
14990 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14991 fi
14992 hardcode_libdir_flag_spec_F77='-L$libdir'
14993 hardcode_direct_F77=yes
14994 hardcode_minus_L_F77=yes
14995 hardcode_shlibpath_var_F77=no
14996 ;;
14997
14998 sysv4)
14999 case $host_vendor in
15000 sni)
15001 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15002 hardcode_direct_F77=yes # is this really true???
15003 ;;
15004 siemens)
15005 ## LD is ld it makes a PLAMLIB
15006 ## CC just makes a GrossModule.
15007 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15008 reload_cmds_F77='$CC -r -o $output$reload_objs'
15009 hardcode_direct_F77=no
15010 ;;
15011 motorola)
15012 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15013 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15014 ;;
15015 esac
15016 runpath_var='LD_RUN_PATH'
15017 hardcode_shlibpath_var_F77=no
15018 ;;
15019
15020 sysv4.3*)
15021 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15022 hardcode_shlibpath_var_F77=no
15023 export_dynamic_flag_spec_F77='-Bexport'
15024 ;;
15025
15026 sysv4*MP*)
15027 if test -d /usr/nec; then
15028 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15029 hardcode_shlibpath_var_F77=no
15030 runpath_var=LD_RUN_PATH
15031 hardcode_runpath_var=yes
15032 ld_shlibs_F77=yes
15033 fi
15034 ;;
15035
15036 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15037 no_undefined_flag_F77='${wl}-z,text'
15038 archive_cmds_need_lc_F77=no
15039 hardcode_shlibpath_var_F77=no
15040 runpath_var='LD_RUN_PATH'
15041
15042 if test "$GCC" = yes; then
15043 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15044 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15045 else
15046 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15047 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15048 fi
15049 ;;
15050
15051 sysv5* | sco3.2v5* | sco5v6*)
15052 # Note: We can NOT use -z defs as we might desire, because we do not
15053 # link with -lc, and that would cause any symbols used from libc to
15054 # always be unresolved, which means just about no library would
15055 # ever link correctly. If we're not using GNU ld we use -z text
15056 # though, which does catch some bad symbols but isn't as heavy-handed
15057 # as -z defs.
15058 no_undefined_flag_F77='${wl}-z,text'
15059 allow_undefined_flag_F77='${wl}-z,nodefs'
15060 archive_cmds_need_lc_F77=no
15061 hardcode_shlibpath_var_F77=no
15062 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15063 hardcode_libdir_separator_F77=':'
15064 link_all_deplibs_F77=yes
15065 export_dynamic_flag_spec_F77='${wl}-Bexport'
15066 runpath_var='LD_RUN_PATH'
15067
15068 if test "$GCC" = yes; then
15069 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15070 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15071 else
15072 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15073 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15074 fi
15075 ;;
15076
15077 uts4*)
15078 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15079 hardcode_libdir_flag_spec_F77='-L$libdir'
15080 hardcode_shlibpath_var_F77=no
15081 ;;
15082
15083 *)
15084 ld_shlibs_F77=no
15085 ;;
15086 esac
15087 fi
15088
64ff59ba 15089{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15090echo "${ECHO_T}$ld_shlibs_F77" >&6; }
d9898ee8 15091test "$ld_shlibs_F77" = no && can_build_shared=no
15092
15093#
15094# Do we need to explicitly link libc?
15095#
15096case "x$archive_cmds_need_lc_F77" in
15097x|xyes)
15098 # Assume -lc should be added
15099 archive_cmds_need_lc_F77=yes
15100
15101 if test "$enable_shared" = yes && test "$GCC" = yes; then
15102 case $archive_cmds_F77 in
15103 *'~'*)
15104 # FIXME: we may have to deal with multi-command sequences.
15105 ;;
15106 '$CC '*)
15107 # Test whether the compiler implicitly links with -lc since on some
15108 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15109 # to ld, don't add -lc before -lgcc.
64ff59ba 15110 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15111echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 15112 $rm conftest*
15113 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15114
15115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15116 (eval $ac_compile) 2>&5
15117 ac_status=$?
15118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119 (exit $ac_status); } 2>conftest.err; then
15120 soname=conftest
15121 lib=conftest
15122 libobjs=conftest.$ac_objext
15123 deplibs=
15124 wl=$lt_prog_compiler_wl_F77
15125 pic_flag=$lt_prog_compiler_pic_F77
15126 compiler_flags=-v
15127 linker_flags=-v
15128 verstring=
15129 output_objdir=.
15130 libname=conftest
15131 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15132 allow_undefined_flag_F77=
15133 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15134 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15135 ac_status=$?
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); }
15138 then
15139 archive_cmds_need_lc_F77=no
15140 else
15141 archive_cmds_need_lc_F77=yes
15142 fi
15143 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15144 else
15145 cat conftest.err 1>&5
15146 fi
15147 $rm conftest*
64ff59ba 15148 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15149echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
d9898ee8 15150 ;;
15151 esac
15152 fi
15153 ;;
15154esac
15155
64ff59ba 15156{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15157echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 15158library_names_spec=
15159libname_spec='lib$name'
15160soname_spec=
15161shrext_cmds=".so"
15162postinstall_cmds=
15163postuninstall_cmds=
15164finish_cmds=
15165finish_eval=
15166shlibpath_var=
15167shlibpath_overrides_runpath=unknown
15168version_type=none
15169dynamic_linker="$host_os ld.so"
15170sys_lib_dlsearch_path_spec="/lib /usr/lib"
15171if test "$GCC" = yes; then
15172 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15173 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15174 # if the path contains ";" then we assume it to be the separator
15175 # otherwise default to the standard path separator (i.e. ":") - it is
15176 # assumed that no part of a normal pathname contains ";" but that should
15177 # okay in the real world where ";" in dirpaths is itself problematic.
15178 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15179 else
15180 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15181 fi
15182else
15183 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15184fi
15185need_lib_prefix=unknown
15186hardcode_into_libs=no
15187
15188# when you set need_version to no, make sure it does not cause -set_version
15189# flags to be left without arguments
15190need_version=unknown
15191
15192case $host_os in
15193aix3*)
15194 version_type=linux
15195 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15196 shlibpath_var=LIBPATH
15197
15198 # AIX 3 has no versioning support, so we append a major version to the name.
15199 soname_spec='${libname}${release}${shared_ext}$major'
15200 ;;
15201
15202aix4* | aix5*)
15203 version_type=linux
15204 need_lib_prefix=no
15205 need_version=no
15206 hardcode_into_libs=yes
15207 if test "$host_cpu" = ia64; then
15208 # AIX 5 supports IA64
15209 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15210 shlibpath_var=LD_LIBRARY_PATH
15211 else
15212 # With GCC up to 2.95.x, collect2 would create an import file
15213 # for dependence libraries. The import file would start with
15214 # the line `#! .'. This would cause the generated library to
15215 # depend on `.', always an invalid library. This was fixed in
15216 # development snapshots of GCC prior to 3.0.
15217 case $host_os in
15218 aix4 | aix4.[01] | aix4.[01].*)
15219 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15220 echo ' yes '
15221 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15222 :
15223 else
15224 can_build_shared=no
15225 fi
15226 ;;
15227 esac
15228 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15229 # soname into executable. Probably we can add versioning support to
15230 # collect2, so additional links can be useful in future.
15231 if test "$aix_use_runtimelinking" = yes; then
15232 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15233 # instead of lib<name>.a to let people know that these are not
15234 # typical AIX shared libraries.
15235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15236 else
15237 # We preserve .a as extension for shared libraries through AIX4.2
15238 # and later when we are not doing run time linking.
15239 library_names_spec='${libname}${release}.a $libname.a'
15240 soname_spec='${libname}${release}${shared_ext}$major'
15241 fi
15242 shlibpath_var=LIBPATH
15243 fi
15244 ;;
15245
15246amigaos*)
15247 library_names_spec='$libname.ixlibrary $libname.a'
15248 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15249 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'
15250 ;;
15251
15252beos*)
15253 library_names_spec='${libname}${shared_ext}'
15254 dynamic_linker="$host_os ld.so"
15255 shlibpath_var=LIBRARY_PATH
15256 ;;
15257
15258bsdi[45]*)
15259 version_type=linux
15260 need_version=no
15261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15262 soname_spec='${libname}${release}${shared_ext}$major'
15263 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15264 shlibpath_var=LD_LIBRARY_PATH
15265 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15266 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15267 # the default ld.so.conf also contains /usr/contrib/lib and
15268 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15269 # libtool to hard-code these into programs
15270 ;;
15271
15272cygwin* | mingw* | pw32*)
15273 version_type=windows
15274 shrext_cmds=".dll"
15275 need_version=no
15276 need_lib_prefix=no
15277
15278 case $GCC,$host_os in
15279 yes,cygwin* | yes,mingw* | yes,pw32*)
15280 library_names_spec='$libname.dll.a'
15281 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15282 postinstall_cmds='base_file=`basename \${file}`~
15283 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15284 dldir=$destdir/`dirname \$dlpath`~
15285 test -d \$dldir || mkdir -p \$dldir~
15286 $install_prog $dir/$dlname \$dldir/$dlname~
15287 chmod a+x \$dldir/$dlname'
15288 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15289 dlpath=$dir/\$dldll~
15290 $rm \$dlpath'
15291 shlibpath_overrides_runpath=yes
15292
15293 case $host_os in
15294 cygwin*)
15295 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15296 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15297 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15298 ;;
15299 mingw*)
15300 # MinGW DLLs use traditional 'lib' prefix
15301 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15302 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15303 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15304 # It is most probably a Windows format PATH printed by
15305 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15306 # path with ; separators, and with drive letters. We can handle the
15307 # drive letters (cygwin fileutils understands them), so leave them,
15308 # especially as we might pass files found there to a mingw objdump,
15309 # which wouldn't understand a cygwinified path. Ahh.
15310 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15311 else
15312 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15313 fi
15314 ;;
15315 pw32*)
15316 # pw32 DLLs use 'pw' prefix rather than 'lib'
15317 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15318 ;;
15319 esac
15320 ;;
15321
15322 *)
15323 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15324 ;;
15325 esac
15326 dynamic_linker='Win32 ld.exe'
15327 # FIXME: first we should search . and the directory the executable is in
15328 shlibpath_var=PATH
15329 ;;
15330
15331darwin* | rhapsody*)
15332 dynamic_linker="$host_os dyld"
15333 version_type=darwin
15334 need_lib_prefix=no
15335 need_version=no
15336 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15337 soname_spec='${libname}${release}${major}$shared_ext'
15338 shlibpath_overrides_runpath=yes
15339 shlibpath_var=DYLD_LIBRARY_PATH
15340 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15341 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15342 if test "$GCC" = yes; then
15343 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"`
15344 else
15345 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15346 fi
15347 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15348 ;;
15349
15350dgux*)
15351 version_type=linux
15352 need_lib_prefix=no
15353 need_version=no
15354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15355 soname_spec='${libname}${release}${shared_ext}$major'
15356 shlibpath_var=LD_LIBRARY_PATH
15357 ;;
15358
15359freebsd1*)
15360 dynamic_linker=no
15361 ;;
15362
15363kfreebsd*-gnu)
15364 version_type=linux
15365 need_lib_prefix=no
15366 need_version=no
15367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15368 soname_spec='${libname}${release}${shared_ext}$major'
15369 shlibpath_var=LD_LIBRARY_PATH
15370 shlibpath_overrides_runpath=no
15371 hardcode_into_libs=yes
15372 dynamic_linker='GNU ld.so'
15373 ;;
15374
15375freebsd* | dragonfly*)
15376 # DragonFly does not have aout. When/if they implement a new
15377 # versioning mechanism, adjust this.
15378 if test -x /usr/bin/objformat; then
15379 objformat=`/usr/bin/objformat`
15380 else
15381 case $host_os in
15382 freebsd[123]*) objformat=aout ;;
15383 *) objformat=elf ;;
15384 esac
15385 fi
15386 version_type=freebsd-$objformat
15387 case $version_type in
15388 freebsd-elf*)
15389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15390 need_version=no
15391 need_lib_prefix=no
15392 ;;
15393 freebsd-*)
15394 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15395 need_version=yes
15396 ;;
15397 esac
15398 shlibpath_var=LD_LIBRARY_PATH
15399 case $host_os in
15400 freebsd2*)
15401 shlibpath_overrides_runpath=yes
15402 ;;
15403 freebsd3.[01]* | freebsdelf3.[01]*)
15404 shlibpath_overrides_runpath=yes
15405 hardcode_into_libs=yes
15406 ;;
15407 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15408 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15409 shlibpath_overrides_runpath=no
15410 hardcode_into_libs=yes
15411 ;;
15412 freebsd*) # from 4.6 on
15413 shlibpath_overrides_runpath=yes
15414 hardcode_into_libs=yes
15415 ;;
15416 esac
15417 ;;
15418
15419gnu*)
15420 version_type=linux
15421 need_lib_prefix=no
15422 need_version=no
15423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15424 soname_spec='${libname}${release}${shared_ext}$major'
15425 shlibpath_var=LD_LIBRARY_PATH
15426 hardcode_into_libs=yes
15427 ;;
15428
15429hpux9* | hpux10* | hpux11*)
15430 # Give a soname corresponding to the major version so that dld.sl refuses to
15431 # link against other versions.
15432 version_type=sunos
15433 need_lib_prefix=no
15434 need_version=no
15435 case $host_cpu in
15436 ia64*)
15437 shrext_cmds='.so'
15438 hardcode_into_libs=yes
15439 dynamic_linker="$host_os dld.so"
15440 shlibpath_var=LD_LIBRARY_PATH
15441 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15443 soname_spec='${libname}${release}${shared_ext}$major'
15444 if test "X$HPUX_IA64_MODE" = X32; then
15445 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15446 else
15447 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15448 fi
15449 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15450 ;;
15451 hppa*64*)
15452 shrext_cmds='.sl'
15453 hardcode_into_libs=yes
15454 dynamic_linker="$host_os dld.sl"
15455 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15456 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15458 soname_spec='${libname}${release}${shared_ext}$major'
15459 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15460 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15461 ;;
15462 *)
15463 shrext_cmds='.sl'
15464 dynamic_linker="$host_os dld.sl"
15465 shlibpath_var=SHLIB_PATH
15466 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15468 soname_spec='${libname}${release}${shared_ext}$major'
15469 ;;
15470 esac
15471 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15472 postinstall_cmds='chmod 555 $lib'
15473 ;;
15474
15475interix3*)
15476 version_type=linux
15477 need_lib_prefix=no
15478 need_version=no
15479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15480 soname_spec='${libname}${release}${shared_ext}$major'
15481 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15482 shlibpath_var=LD_LIBRARY_PATH
15483 shlibpath_overrides_runpath=no
15484 hardcode_into_libs=yes
15485 ;;
15486
15487irix5* | irix6* | nonstopux*)
15488 case $host_os in
15489 nonstopux*) version_type=nonstopux ;;
15490 *)
15491 if test "$lt_cv_prog_gnu_ld" = yes; then
15492 version_type=linux
15493 else
15494 version_type=irix
15495 fi ;;
15496 esac
15497 need_lib_prefix=no
15498 need_version=no
15499 soname_spec='${libname}${release}${shared_ext}$major'
15500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15501 case $host_os in
15502 irix5* | nonstopux*)
15503 libsuff= shlibsuff=
15504 ;;
15505 *)
15506 case $LD in # libtool.m4 will add one of these switches to LD
15507 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15508 libsuff= shlibsuff= libmagic=32-bit;;
15509 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15510 libsuff=32 shlibsuff=N32 libmagic=N32;;
15511 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15512 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15513 *) libsuff= shlibsuff= libmagic=never-match;;
15514 esac
15515 ;;
15516 esac
15517 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15518 shlibpath_overrides_runpath=no
15519 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15520 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15521 hardcode_into_libs=yes
15522 ;;
15523
15524# No shared lib support for Linux oldld, aout, or coff.
15525linux*oldld* | linux*aout* | linux*coff*)
15526 dynamic_linker=no
15527 ;;
15528
15529# This must be Linux ELF.
15530linux*)
15531 version_type=linux
15532 need_lib_prefix=no
15533 need_version=no
15534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15535 soname_spec='${libname}${release}${shared_ext}$major'
15536 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15537 shlibpath_var=LD_LIBRARY_PATH
15538 shlibpath_overrides_runpath=no
15539 # This implies no fast_install, which is unacceptable.
15540 # Some rework will be needed to allow for fast_install
15541 # before this can be enabled.
15542 hardcode_into_libs=yes
15543
15544 # find out which ABI we are using
15545 libsuff=
15546 case "$host_cpu" in
15547 x86_64*|s390x*|powerpc64*)
64ff59ba 15548 echo '#line 15548 "configure"' > conftest.$ac_ext
d9898ee8 15549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15550 (eval $ac_compile) 2>&5
15551 ac_status=$?
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); }; then
15554 case `/usr/bin/file conftest.$ac_objext` in
15555 *64-bit*)
15556 libsuff=64
15557 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15558 ;;
15559 esac
15560 fi
15561 rm -rf conftest*
15562 ;;
15563 esac
15564
15565 # Append ld.so.conf contents to the search path
15566 if test -f /etc/ld.so.conf; then
64ff59ba 15567 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 15568 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15569 fi
15570
15571 # We used to test for /lib/ld.so.1 and disable shared libraries on
15572 # powerpc, because MkLinux only supported shared libraries with the
15573 # GNU dynamic linker. Since this was broken with cross compilers,
15574 # most powerpc-linux boxes support dynamic linking these days and
15575 # people can always --disable-shared, the test was removed, and we
15576 # assume the GNU/Linux dynamic linker is in use.
15577 dynamic_linker='GNU/Linux ld.so'
15578 ;;
15579
15580knetbsd*-gnu)
15581 version_type=linux
15582 need_lib_prefix=no
15583 need_version=no
15584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15585 soname_spec='${libname}${release}${shared_ext}$major'
15586 shlibpath_var=LD_LIBRARY_PATH
15587 shlibpath_overrides_runpath=no
15588 hardcode_into_libs=yes
15589 dynamic_linker='GNU ld.so'
15590 ;;
15591
15592netbsd*)
15593 version_type=sunos
15594 need_lib_prefix=no
15595 need_version=no
15596 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15598 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15599 dynamic_linker='NetBSD (a.out) ld.so'
15600 else
15601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15602 soname_spec='${libname}${release}${shared_ext}$major'
15603 dynamic_linker='NetBSD ld.elf_so'
15604 fi
15605 shlibpath_var=LD_LIBRARY_PATH
15606 shlibpath_overrides_runpath=yes
15607 hardcode_into_libs=yes
15608 ;;
15609
15610newsos6)
15611 version_type=linux
15612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15613 shlibpath_var=LD_LIBRARY_PATH
15614 shlibpath_overrides_runpath=yes
15615 ;;
15616
15617nto-qnx*)
15618 version_type=linux
15619 need_lib_prefix=no
15620 need_version=no
15621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15622 soname_spec='${libname}${release}${shared_ext}$major'
15623 shlibpath_var=LD_LIBRARY_PATH
15624 shlibpath_overrides_runpath=yes
15625 ;;
15626
15627openbsd*)
15628 version_type=sunos
15629 sys_lib_dlsearch_path_spec="/usr/lib"
15630 need_lib_prefix=no
15631 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15632 case $host_os in
15633 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15634 *) need_version=no ;;
15635 esac
15636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15637 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15638 shlibpath_var=LD_LIBRARY_PATH
15639 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15640 case $host_os in
15641 openbsd2.[89] | openbsd2.[89].*)
15642 shlibpath_overrides_runpath=no
15643 ;;
15644 *)
15645 shlibpath_overrides_runpath=yes
15646 ;;
15647 esac
15648 else
15649 shlibpath_overrides_runpath=yes
15650 fi
15651 ;;
15652
15653os2*)
15654 libname_spec='$name'
15655 shrext_cmds=".dll"
15656 need_lib_prefix=no
15657 library_names_spec='$libname${shared_ext} $libname.a'
15658 dynamic_linker='OS/2 ld.exe'
15659 shlibpath_var=LIBPATH
15660 ;;
15661
15662osf3* | osf4* | osf5*)
15663 version_type=osf
15664 need_lib_prefix=no
15665 need_version=no
15666 soname_spec='${libname}${release}${shared_ext}$major'
15667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15668 shlibpath_var=LD_LIBRARY_PATH
15669 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15670 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15671 ;;
15672
15673solaris*)
15674 version_type=linux
15675 need_lib_prefix=no
15676 need_version=no
15677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15678 soname_spec='${libname}${release}${shared_ext}$major'
15679 shlibpath_var=LD_LIBRARY_PATH
15680 shlibpath_overrides_runpath=yes
15681 hardcode_into_libs=yes
15682 # ldd complains unless libraries are executable
15683 postinstall_cmds='chmod +x $lib'
15684 ;;
15685
15686sunos4*)
15687 version_type=sunos
15688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15689 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15690 shlibpath_var=LD_LIBRARY_PATH
15691 shlibpath_overrides_runpath=yes
15692 if test "$with_gnu_ld" = yes; then
15693 need_lib_prefix=no
15694 fi
15695 need_version=yes
15696 ;;
15697
15698sysv4 | sysv4.3*)
15699 version_type=linux
15700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15701 soname_spec='${libname}${release}${shared_ext}$major'
15702 shlibpath_var=LD_LIBRARY_PATH
15703 case $host_vendor in
15704 sni)
15705 shlibpath_overrides_runpath=no
15706 need_lib_prefix=no
15707 export_dynamic_flag_spec='${wl}-Blargedynsym'
15708 runpath_var=LD_RUN_PATH
15709 ;;
15710 siemens)
15711 need_lib_prefix=no
15712 ;;
15713 motorola)
15714 need_lib_prefix=no
15715 need_version=no
15716 shlibpath_overrides_runpath=no
15717 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15718 ;;
15719 esac
15720 ;;
15721
15722sysv4*MP*)
15723 if test -d /usr/nec ;then
15724 version_type=linux
15725 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15726 soname_spec='$libname${shared_ext}.$major'
15727 shlibpath_var=LD_LIBRARY_PATH
15728 fi
15729 ;;
15730
15731sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15732 version_type=freebsd-elf
15733 need_lib_prefix=no
15734 need_version=no
15735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15736 soname_spec='${libname}${release}${shared_ext}$major'
15737 shlibpath_var=LD_LIBRARY_PATH
15738 hardcode_into_libs=yes
15739 if test "$with_gnu_ld" = yes; then
15740 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15741 shlibpath_overrides_runpath=no
15742 else
15743 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15744 shlibpath_overrides_runpath=yes
15745 case $host_os in
15746 sco3.2v5*)
15747 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15748 ;;
15749 esac
15750 fi
15751 sys_lib_dlsearch_path_spec='/usr/lib'
15752 ;;
15753
15754uts4*)
15755 version_type=linux
15756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15757 soname_spec='${libname}${release}${shared_ext}$major'
15758 shlibpath_var=LD_LIBRARY_PATH
15759 ;;
15760
15761*)
15762 dynamic_linker=no
15763 ;;
15764esac
64ff59ba 15765{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15766echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 15767test "$dynamic_linker" = no && can_build_shared=no
15768
15769variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15770if test "$GCC" = yes; then
15771 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15772fi
15773
64ff59ba 15774{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15775echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 15776hardcode_action_F77=
15777if test -n "$hardcode_libdir_flag_spec_F77" || \
15778 test -n "$runpath_var_F77" || \
15779 test "X$hardcode_automatic_F77" = "Xyes" ; then
15780
15781 # We can hardcode non-existant directories.
15782 if test "$hardcode_direct_F77" != no &&
15783 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15784 # have to relink, otherwise we might link with an installed library
15785 # when we should be linking with a yet-to-be-installed one
15786 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15787 test "$hardcode_minus_L_F77" != no; then
15788 # Linking always hardcodes the temporary library directory.
15789 hardcode_action_F77=relink
15790 else
15791 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15792 hardcode_action_F77=immediate
15793 fi
15794else
15795 # We cannot hardcode anything, or else we can only hardcode existing
15796 # directories.
15797 hardcode_action_F77=unsupported
15798fi
64ff59ba 15799{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15800echo "${ECHO_T}$hardcode_action_F77" >&6; }
d9898ee8 15801
15802if test "$hardcode_action_F77" = relink; then
15803 # Fast installation is not supported
15804 enable_fast_install=no
15805elif test "$shlibpath_overrides_runpath" = yes ||
15806 test "$enable_shared" = no; then
15807 # Fast installation is not necessary
15808 enable_fast_install=needless
15809fi
15810
15811
15812# The else clause should only fire when bootstrapping the
15813# libtool distribution, otherwise you forgot to ship ltmain.sh
15814# with your package, and you will get complaints that there are
15815# no rules to generate ltmain.sh.
15816if test -f "$ltmain"; then
15817 # See if we are running on zsh, and set the options which allow our commands through
15818 # without removal of \ escapes.
15819 if test -n "${ZSH_VERSION+set}" ; then
15820 setopt NO_GLOB_SUBST
15821 fi
15822 # Now quote all the things that may contain metacharacters while being
15823 # careful not to overquote the AC_SUBSTed values. We take copies of the
15824 # variables and quote the copies for generation of the libtool script.
15825 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15826 SED SHELL STRIP \
15827 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15828 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15829 deplibs_check_method reload_flag reload_cmds need_locks \
15830 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15831 lt_cv_sys_global_symbol_to_c_name_address \
15832 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15833 old_postinstall_cmds old_postuninstall_cmds \
15834 compiler_F77 \
15835 CC_F77 \
15836 LD_F77 \
15837 lt_prog_compiler_wl_F77 \
15838 lt_prog_compiler_pic_F77 \
15839 lt_prog_compiler_static_F77 \
15840 lt_prog_compiler_no_builtin_flag_F77 \
15841 export_dynamic_flag_spec_F77 \
15842 thread_safe_flag_spec_F77 \
15843 whole_archive_flag_spec_F77 \
15844 enable_shared_with_static_runtimes_F77 \
15845 old_archive_cmds_F77 \
15846 old_archive_from_new_cmds_F77 \
15847 predep_objects_F77 \
15848 postdep_objects_F77 \
15849 predeps_F77 \
15850 postdeps_F77 \
15851 compiler_lib_search_path_F77 \
15852 archive_cmds_F77 \
15853 archive_expsym_cmds_F77 \
15854 postinstall_cmds_F77 \
15855 postuninstall_cmds_F77 \
15856 old_archive_from_expsyms_cmds_F77 \
15857 allow_undefined_flag_F77 \
15858 no_undefined_flag_F77 \
15859 export_symbols_cmds_F77 \
15860 hardcode_libdir_flag_spec_F77 \
15861 hardcode_libdir_flag_spec_ld_F77 \
15862 hardcode_libdir_separator_F77 \
15863 hardcode_automatic_F77 \
15864 module_cmds_F77 \
15865 module_expsym_cmds_F77 \
15866 lt_cv_prog_compiler_c_o_F77 \
15867 exclude_expsyms_F77 \
15868 include_expsyms_F77; do
15869
15870 case $var in
15871 old_archive_cmds_F77 | \
15872 old_archive_from_new_cmds_F77 | \
15873 archive_cmds_F77 | \
15874 archive_expsym_cmds_F77 | \
15875 module_cmds_F77 | \
15876 module_expsym_cmds_F77 | \
15877 old_archive_from_expsyms_cmds_F77 | \
15878 export_symbols_cmds_F77 | \
15879 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15880 postinstall_cmds | postuninstall_cmds | \
15881 old_postinstall_cmds | old_postuninstall_cmds | \
15882 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15883 # Double-quote double-evaled strings.
15884 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15885 ;;
15886 *)
15887 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15888 ;;
15889 esac
15890 done
15891
15892 case $lt_echo in
15893 *'\$0 --fallback-echo"')
15894 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15895 ;;
15896 esac
15897
15898cfgfile="$ofile"
15899
15900 cat <<__EOF__ >> "$cfgfile"
15901# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15902
15903# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15904
15905# Shell to use when invoking shell scripts.
15906SHELL=$lt_SHELL
15907
15908# Whether or not to build shared libraries.
15909build_libtool_libs=$enable_shared
15910
15911# Whether or not to build static libraries.
15912build_old_libs=$enable_static
15913
15914# Whether or not to add -lc for building shared libraries.
15915build_libtool_need_lc=$archive_cmds_need_lc_F77
15916
15917# Whether or not to disallow shared libs when runtime libs are static
15918allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15919
15920# Whether or not to optimize for fast installation.
15921fast_install=$enable_fast_install
15922
15923# The host system.
15924host_alias=$host_alias
15925host=$host
15926host_os=$host_os
15927
15928# The build system.
15929build_alias=$build_alias
15930build=$build
15931build_os=$build_os
15932
15933# An echo program that does not interpret backslashes.
15934echo=$lt_echo
15935
15936# The archiver.
15937AR=$lt_AR
15938AR_FLAGS=$lt_AR_FLAGS
15939
15940# A C compiler.
15941LTCC=$lt_LTCC
15942
15943# LTCC compiler flags.
15944LTCFLAGS=$lt_LTCFLAGS
15945
15946# A language-specific compiler.
15947CC=$lt_compiler_F77
15948
15949# Is the compiler the GNU C compiler?
15950with_gcc=$GCC_F77
15951
d9898ee8 15952# An ERE matcher.
15953EGREP=$lt_EGREP
15954
15955# The linker used to build libraries.
15956LD=$lt_LD_F77
15957
15958# Whether we need hard or soft links.
15959LN_S=$lt_LN_S
15960
15961# A BSD-compatible nm program.
15962NM=$lt_NM
15963
15964# A symbol stripping program
15965STRIP=$lt_STRIP
15966
15967# Used to examine libraries when file_magic_cmd begins "file"
15968MAGIC_CMD=$MAGIC_CMD
15969
15970# Used on cygwin: DLL creation program.
15971DLLTOOL="$DLLTOOL"
15972
15973# Used on cygwin: object dumper.
15974OBJDUMP="$OBJDUMP"
15975
15976# Used on cygwin: assembler.
15977AS="$AS"
15978
15979# The name of the directory that contains temporary libtool files.
15980objdir=$objdir
15981
15982# How to create reloadable object files.
15983reload_flag=$lt_reload_flag
15984reload_cmds=$lt_reload_cmds
15985
15986# How to pass a linker flag through the compiler.
15987wl=$lt_lt_prog_compiler_wl_F77
15988
15989# Object file suffix (normally "o").
15990objext="$ac_objext"
15991
15992# Old archive suffix (normally "a").
15993libext="$libext"
15994
15995# Shared library suffix (normally ".so").
15996shrext_cmds='$shrext_cmds'
15997
15998# Executable file suffix (normally "").
15999exeext="$exeext"
16000
16001# Additional compiler flags for building library objects.
16002pic_flag=$lt_lt_prog_compiler_pic_F77
16003pic_mode=$pic_mode
16004
16005# What is the maximum length of a command?
16006max_cmd_len=$lt_cv_sys_max_cmd_len
16007
16008# Does compiler simultaneously support -c and -o options?
16009compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16010
16011# Must we lock files when doing compilation?
16012need_locks=$lt_need_locks
16013
16014# Do we need the lib prefix for modules?
16015need_lib_prefix=$need_lib_prefix
16016
16017# Do we need a version for libraries?
16018need_version=$need_version
16019
16020# Whether dlopen is supported.
16021dlopen_support=$enable_dlopen
16022
16023# Whether dlopen of programs is supported.
16024dlopen_self=$enable_dlopen_self
16025
16026# Whether dlopen of statically linked programs is supported.
16027dlopen_self_static=$enable_dlopen_self_static
16028
16029# Compiler flag to prevent dynamic linking.
16030link_static_flag=$lt_lt_prog_compiler_static_F77
16031
16032# Compiler flag to turn off builtin functions.
16033no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16034
16035# Compiler flag to allow reflexive dlopens.
16036export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16037
16038# Compiler flag to generate shared objects directly from archives.
16039whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16040
16041# Compiler flag to generate thread-safe objects.
16042thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16043
16044# Library versioning type.
16045version_type=$version_type
16046
16047# Format of library name prefix.
16048libname_spec=$lt_libname_spec
16049
16050# List of archive names. First name is the real one, the rest are links.
16051# The last name is the one that the linker finds with -lNAME.
16052library_names_spec=$lt_library_names_spec
16053
16054# The coded name of the library, if different from the real name.
16055soname_spec=$lt_soname_spec
16056
16057# Commands used to build and install an old-style archive.
16058RANLIB=$lt_RANLIB
16059old_archive_cmds=$lt_old_archive_cmds_F77
16060old_postinstall_cmds=$lt_old_postinstall_cmds
16061old_postuninstall_cmds=$lt_old_postuninstall_cmds
16062
16063# Create an old-style archive from a shared archive.
16064old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16065
16066# Create a temporary old-style archive to link instead of a shared archive.
16067old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16068
16069# Commands used to build and install a shared archive.
16070archive_cmds=$lt_archive_cmds_F77
16071archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16072postinstall_cmds=$lt_postinstall_cmds
16073postuninstall_cmds=$lt_postuninstall_cmds
16074
16075# Commands used to build a loadable module (assumed same as above if empty)
16076module_cmds=$lt_module_cmds_F77
16077module_expsym_cmds=$lt_module_expsym_cmds_F77
16078
16079# Commands to strip libraries.
16080old_striplib=$lt_old_striplib
16081striplib=$lt_striplib
16082
16083# Dependencies to place before the objects being linked to create a
16084# shared library.
64ff59ba 16085predep_objects=$lt_predep_objects_F77
d9898ee8 16086
16087# Dependencies to place after the objects being linked to create a
16088# shared library.
64ff59ba 16089postdep_objects=$lt_postdep_objects_F77
d9898ee8 16090
16091# Dependencies to place before the objects being linked to create a
16092# shared library.
16093predeps=$lt_predeps_F77
16094
16095# Dependencies to place after the objects being linked to create a
16096# shared library.
16097postdeps=$lt_postdeps_F77
16098
16099# The library search path used internally by the compiler when linking
16100# a shared library.
64ff59ba 16101compiler_lib_search_path=$lt_compiler_lib_search_path_F77
d9898ee8 16102
16103# Method to check whether dependent libraries are shared objects.
16104deplibs_check_method=$lt_deplibs_check_method
16105
16106# Command to use when deplibs_check_method == file_magic.
16107file_magic_cmd=$lt_file_magic_cmd
16108
16109# Flag that allows shared libraries with undefined symbols to be built.
16110allow_undefined_flag=$lt_allow_undefined_flag_F77
16111
16112# Flag that forces no undefined symbols.
16113no_undefined_flag=$lt_no_undefined_flag_F77
16114
16115# Commands used to finish a libtool library installation in a directory.
16116finish_cmds=$lt_finish_cmds
16117
16118# Same as above, but a single script fragment to be evaled but not shown.
16119finish_eval=$lt_finish_eval
16120
16121# Take the output of nm and produce a listing of raw symbols and C names.
16122global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16123
16124# Transform the output of nm in a proper C declaration
16125global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16126
16127# Transform the output of nm in a C name address pair
16128global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16129
16130# This is the shared library runtime path variable.
16131runpath_var=$runpath_var
16132
16133# This is the shared library path variable.
16134shlibpath_var=$shlibpath_var
16135
16136# Is shlibpath searched before the hard-coded library search path?
16137shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16138
16139# How to hardcode a shared library path into an executable.
16140hardcode_action=$hardcode_action_F77
16141
16142# Whether we should hardcode library paths into libraries.
16143hardcode_into_libs=$hardcode_into_libs
16144
16145# Flag to hardcode \$libdir into a binary during linking.
16146# This must work even if \$libdir does not exist.
16147hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16148
16149# If ld is used when linking, flag to hardcode \$libdir into
16150# a binary during linking. This must work even if \$libdir does
16151# not exist.
16152hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16153
16154# Whether we need a single -rpath flag with a separated argument.
16155hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16156
16157# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16158# resulting binary.
16159hardcode_direct=$hardcode_direct_F77
16160
16161# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16162# resulting binary.
16163hardcode_minus_L=$hardcode_minus_L_F77
16164
16165# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16166# the resulting binary.
16167hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16168
16169# Set to yes if building a shared library automatically hardcodes DIR into the library
16170# and all subsequent libraries and executables linked against it.
16171hardcode_automatic=$hardcode_automatic_F77
16172
16173# Variables whose values should be saved in libtool wrapper scripts and
16174# restored at relink time.
16175variables_saved_for_relink="$variables_saved_for_relink"
16176
16177# Whether libtool must link a program against all its dependency libraries.
16178link_all_deplibs=$link_all_deplibs_F77
16179
16180# Compile-time system search path for libraries
64ff59ba 16181sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 16182
16183# Run-time system search path for libraries
16184sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16185
16186# Fix the shell variable \$srcfile for the compiler.
16187fix_srcfile_path="$fix_srcfile_path_F77"
16188
16189# Set to yes if exported symbols are required.
16190always_export_symbols=$always_export_symbols_F77
16191
16192# The commands to list exported symbols.
16193export_symbols_cmds=$lt_export_symbols_cmds_F77
16194
16195# The commands to extract the exported symbol list from a shared archive.
16196extract_expsyms_cmds=$lt_extract_expsyms_cmds
16197
16198# Symbols that should not be listed in the preloaded symbols.
16199exclude_expsyms=$lt_exclude_expsyms_F77
16200
16201# Symbols that must always be exported.
16202include_expsyms=$lt_include_expsyms_F77
16203
16204# ### END LIBTOOL TAG CONFIG: $tagname
16205
16206__EOF__
16207
16208
16209else
16210 # If there is no Makefile yet, we rely on a make rule to execute
16211 # `config.status --recheck' to rerun these tests and create the
16212 # libtool script then.
16213 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16214 if test -f "$ltmain_in"; then
16215 test -f Makefile && make "$ltmain"
16216 fi
16217fi
16218
16219
16220ac_ext=c
16221ac_cpp='$CPP $CPPFLAGS'
16222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16224ac_compiler_gnu=$ac_cv_c_compiler_gnu
16225
16226CC="$lt_save_CC"
16227
16228 else
16229 tagname=""
16230 fi
16231 ;;
16232
16233 GCJ)
16234 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16235
16236
d9898ee8 16237# Source file extension for Java test sources.
16238ac_ext=java
16239
16240# Object file extension for compiled Java test sources.
16241objext=o
16242objext_GCJ=$objext
16243
16244# Code to be used in simple compile tests
16245lt_simple_compile_test_code="class foo {}\n"
16246
16247# Code to be used in simple link tests
16248lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16249
16250# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16251
16252# If no C compiler was specified, use CC.
16253LTCC=${LTCC-"$CC"}
16254
16255# If no C compiler flags were specified, use CFLAGS.
16256LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16257
16258# Allow CC to be a program name with arguments.
16259compiler=$CC
16260
16261
16262# save warnings/boilerplate of simple test code
16263ac_outfile=conftest.$ac_objext
16264printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16265eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16266_lt_compiler_boilerplate=`cat conftest.err`
16267$rm conftest*
16268
16269ac_outfile=conftest.$ac_objext
16270printf "$lt_simple_link_test_code" >conftest.$ac_ext
16271eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16272_lt_linker_boilerplate=`cat conftest.err`
16273$rm conftest*
16274
16275
16276# Allow CC to be a program name with arguments.
16277lt_save_CC="$CC"
16278CC=${GCJ-"gcj"}
16279compiler=$CC
16280compiler_GCJ=$CC
16281for cc_temp in $compiler""; do
16282 case $cc_temp in
16283 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16284 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16285 \-*) ;;
16286 *) break;;
16287 esac
16288done
16289cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16290
16291
16292# GCJ did not exist at the time GCC didn't implicitly link libc in.
16293archive_cmds_need_lc_GCJ=no
16294
16295old_archive_cmds_GCJ=$old_archive_cmds
16296
16297
16298lt_prog_compiler_no_builtin_flag_GCJ=
16299
16300if test "$GCC" = yes; then
16301 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16302
16303
64ff59ba 16304{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16305echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d9898ee8 16306if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16307 echo $ECHO_N "(cached) $ECHO_C" >&6
16308else
16309 lt_cv_prog_compiler_rtti_exceptions=no
16310 ac_outfile=conftest.$ac_objext
16311 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16312 lt_compiler_flag="-fno-rtti -fno-exceptions"
16313 # Insert the option either (1) after the last *FLAGS variable, or
16314 # (2) before a word containing "conftest.", or (3) at the end.
16315 # Note that $ac_compile itself does not contain backslashes and begins
16316 # with a dollar sign (not a hyphen), so the echo should work correctly.
16317 # The option is referenced via a variable to avoid confusing sed.
16318 lt_compile=`echo "$ac_compile" | $SED \
16319 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16320 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16321 -e 's:$: $lt_compiler_flag:'`
64ff59ba 16322 (eval echo "\"\$as_me:16322: $lt_compile\"" >&5)
d9898ee8 16323 (eval "$lt_compile" 2>conftest.err)
16324 ac_status=$?
16325 cat conftest.err >&5
64ff59ba 16326 echo "$as_me:16326: \$? = $ac_status" >&5
d9898ee8 16327 if (exit $ac_status) && test -s "$ac_outfile"; then
16328 # The compiler can only warn and ignore the option if not recognized
16329 # So say no if there are warnings other than the usual output.
16330 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16331 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16332 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16333 lt_cv_prog_compiler_rtti_exceptions=yes
16334 fi
16335 fi
16336 $rm conftest*
16337
16338fi
64ff59ba 16339{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16340echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 16341
16342if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16343 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16344else
16345 :
16346fi
16347
16348fi
16349
16350lt_prog_compiler_wl_GCJ=
16351lt_prog_compiler_pic_GCJ=
16352lt_prog_compiler_static_GCJ=
16353
64ff59ba 16354{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16355echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 16356
16357 if test "$GCC" = yes; then
16358 lt_prog_compiler_wl_GCJ='-Wl,'
16359 lt_prog_compiler_static_GCJ='-static'
16360
16361 case $host_os in
16362 aix*)
16363 # All AIX code is PIC.
16364 if test "$host_cpu" = ia64; then
16365 # AIX 5 now supports IA64 processor
16366 lt_prog_compiler_static_GCJ='-Bstatic'
16367 fi
16368 ;;
16369
16370 amigaos*)
16371 # FIXME: we need at least 68020 code to build shared libraries, but
16372 # adding the `-m68020' flag to GCC prevents building anything better,
16373 # like `-m68040'.
16374 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16375 ;;
16376
16377 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16378 # PIC is the default for these OSes.
16379 ;;
16380
16381 mingw* | pw32* | os2*)
16382 # This hack is so that the source file can tell whether it is being
16383 # built for inclusion in a dll (and should export symbols for example).
16384 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16385 ;;
16386
16387 darwin* | rhapsody*)
16388 # PIC is the default on this platform
16389 # Common symbols not allowed in MH_DYLIB files
16390 lt_prog_compiler_pic_GCJ='-fno-common'
16391 ;;
16392
16393 interix3*)
16394 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16395 # Instead, we relocate shared libraries at runtime.
16396 ;;
16397
16398 msdosdjgpp*)
16399 # Just because we use GCC doesn't mean we suddenly get shared libraries
16400 # on systems that don't support them.
16401 lt_prog_compiler_can_build_shared_GCJ=no
16402 enable_shared=no
16403 ;;
16404
16405 sysv4*MP*)
16406 if test -d /usr/nec; then
16407 lt_prog_compiler_pic_GCJ=-Kconform_pic
16408 fi
16409 ;;
16410
16411 hpux*)
16412 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16413 # not for PA HP-UX.
16414 case $host_cpu in
16415 hppa*64*|ia64*)
16416 # +Z the default
16417 ;;
16418 *)
16419 lt_prog_compiler_pic_GCJ='-fPIC'
16420 ;;
16421 esac
16422 ;;
16423
16424 *)
16425 lt_prog_compiler_pic_GCJ='-fPIC'
16426 ;;
16427 esac
16428 else
16429 # PORTME Check for flag to pass linker flags through the system compiler.
16430 case $host_os in
16431 aix*)
16432 lt_prog_compiler_wl_GCJ='-Wl,'
16433 if test "$host_cpu" = ia64; then
16434 # AIX 5 now supports IA64 processor
16435 lt_prog_compiler_static_GCJ='-Bstatic'
16436 else
16437 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16438 fi
16439 ;;
16440 darwin*)
16441 # PIC is the default on this platform
16442 # Common symbols not allowed in MH_DYLIB files
16443 case $cc_basename in
16444 xlc*)
16445 lt_prog_compiler_pic_GCJ='-qnocommon'
16446 lt_prog_compiler_wl_GCJ='-Wl,'
16447 ;;
16448 esac
16449 ;;
16450
16451 mingw* | pw32* | os2*)
16452 # This hack is so that the source file can tell whether it is being
16453 # built for inclusion in a dll (and should export symbols for example).
16454 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16455 ;;
16456
16457 hpux9* | hpux10* | hpux11*)
16458 lt_prog_compiler_wl_GCJ='-Wl,'
16459 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16460 # not for PA HP-UX.
16461 case $host_cpu in
16462 hppa*64*|ia64*)
16463 # +Z the default
16464 ;;
16465 *)
16466 lt_prog_compiler_pic_GCJ='+Z'
16467 ;;
16468 esac
16469 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16470 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16471 ;;
16472
16473 irix5* | irix6* | nonstopux*)
16474 lt_prog_compiler_wl_GCJ='-Wl,'
16475 # PIC (with -KPIC) is the default.
16476 lt_prog_compiler_static_GCJ='-non_shared'
16477 ;;
16478
16479 newsos6)
16480 lt_prog_compiler_pic_GCJ='-KPIC'
16481 lt_prog_compiler_static_GCJ='-Bstatic'
16482 ;;
16483
16484 linux*)
16485 case $cc_basename in
16486 icc* | ecc*)
16487 lt_prog_compiler_wl_GCJ='-Wl,'
16488 lt_prog_compiler_pic_GCJ='-KPIC'
16489 lt_prog_compiler_static_GCJ='-static'
16490 ;;
16491 pgcc* | pgf77* | pgf90* | pgf95*)
16492 # Portland Group compilers (*not* the Pentium gcc compiler,
16493 # which looks to be a dead project)
16494 lt_prog_compiler_wl_GCJ='-Wl,'
16495 lt_prog_compiler_pic_GCJ='-fpic'
16496 lt_prog_compiler_static_GCJ='-Bstatic'
16497 ;;
16498 ccc*)
16499 lt_prog_compiler_wl_GCJ='-Wl,'
16500 # All Alpha code is PIC.
16501 lt_prog_compiler_static_GCJ='-non_shared'
16502 ;;
16503 esac
16504 ;;
16505
16506 osf3* | osf4* | osf5*)
16507 lt_prog_compiler_wl_GCJ='-Wl,'
16508 # All OSF/1 code is PIC.
16509 lt_prog_compiler_static_GCJ='-non_shared'
16510 ;;
16511
16512 solaris*)
16513 lt_prog_compiler_pic_GCJ='-KPIC'
16514 lt_prog_compiler_static_GCJ='-Bstatic'
16515 case $cc_basename in
16516 f77* | f90* | f95*)
16517 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16518 *)
16519 lt_prog_compiler_wl_GCJ='-Wl,';;
16520 esac
16521 ;;
16522
16523 sunos4*)
16524 lt_prog_compiler_wl_GCJ='-Qoption ld '
16525 lt_prog_compiler_pic_GCJ='-PIC'
16526 lt_prog_compiler_static_GCJ='-Bstatic'
16527 ;;
16528
16529 sysv4 | sysv4.2uw2* | sysv4.3*)
16530 lt_prog_compiler_wl_GCJ='-Wl,'
16531 lt_prog_compiler_pic_GCJ='-KPIC'
16532 lt_prog_compiler_static_GCJ='-Bstatic'
16533 ;;
16534
16535 sysv4*MP*)
16536 if test -d /usr/nec ;then
16537 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16538 lt_prog_compiler_static_GCJ='-Bstatic'
16539 fi
16540 ;;
16541
16542 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16543 lt_prog_compiler_wl_GCJ='-Wl,'
16544 lt_prog_compiler_pic_GCJ='-KPIC'
16545 lt_prog_compiler_static_GCJ='-Bstatic'
16546 ;;
16547
16548 unicos*)
16549 lt_prog_compiler_wl_GCJ='-Wl,'
16550 lt_prog_compiler_can_build_shared_GCJ=no
16551 ;;
16552
16553 uts4*)
16554 lt_prog_compiler_pic_GCJ='-pic'
16555 lt_prog_compiler_static_GCJ='-Bstatic'
16556 ;;
16557
16558 *)
16559 lt_prog_compiler_can_build_shared_GCJ=no
16560 ;;
16561 esac
16562 fi
16563
64ff59ba 16564{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16565echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
d9898ee8 16566
16567#
16568# Check to make sure the PIC flag actually works.
16569#
16570if test -n "$lt_prog_compiler_pic_GCJ"; then
16571
64ff59ba 16572{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16573echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
d9898ee8 16574if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16575 echo $ECHO_N "(cached) $ECHO_C" >&6
16576else
16577 lt_prog_compiler_pic_works_GCJ=no
16578 ac_outfile=conftest.$ac_objext
16579 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16580 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16581 # Insert the option either (1) after the last *FLAGS variable, or
16582 # (2) before a word containing "conftest.", or (3) at the end.
16583 # Note that $ac_compile itself does not contain backslashes and begins
16584 # with a dollar sign (not a hyphen), so the echo should work correctly.
16585 # The option is referenced via a variable to avoid confusing sed.
16586 lt_compile=`echo "$ac_compile" | $SED \
16587 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16588 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16589 -e 's:$: $lt_compiler_flag:'`
64ff59ba 16590 (eval echo "\"\$as_me:16590: $lt_compile\"" >&5)
d9898ee8 16591 (eval "$lt_compile" 2>conftest.err)
16592 ac_status=$?
16593 cat conftest.err >&5
64ff59ba 16594 echo "$as_me:16594: \$? = $ac_status" >&5
d9898ee8 16595 if (exit $ac_status) && test -s "$ac_outfile"; then
16596 # The compiler can only warn and ignore the option if not recognized
16597 # So say no if there are warnings other than the usual output.
16598 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16599 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16600 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16601 lt_prog_compiler_pic_works_GCJ=yes
16602 fi
16603 fi
16604 $rm conftest*
16605
16606fi
64ff59ba 16607{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16608echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
d9898ee8 16609
16610if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16611 case $lt_prog_compiler_pic_GCJ in
16612 "" | " "*) ;;
16613 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16614 esac
16615else
16616 lt_prog_compiler_pic_GCJ=
16617 lt_prog_compiler_can_build_shared_GCJ=no
16618fi
16619
16620fi
16621case $host_os in
16622 # For platforms which do not support PIC, -DPIC is meaningless:
16623 *djgpp*)
16624 lt_prog_compiler_pic_GCJ=
16625 ;;
16626 *)
16627 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16628 ;;
16629esac
16630
16631#
16632# Check to make sure the static flag actually works.
16633#
16634wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
64ff59ba 16635{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16636echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 16637if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16638 echo $ECHO_N "(cached) $ECHO_C" >&6
16639else
16640 lt_prog_compiler_static_works_GCJ=no
16641 save_LDFLAGS="$LDFLAGS"
16642 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16643 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16644 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16645 # The linker can only warn and ignore the option if not recognized
16646 # So say no if there are warnings
16647 if test -s conftest.err; then
16648 # Append any errors to the config.log.
16649 cat conftest.err 1>&5
16650 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16651 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16652 if diff conftest.exp conftest.er2 >/dev/null; then
16653 lt_prog_compiler_static_works_GCJ=yes
16654 fi
16655 else
16656 lt_prog_compiler_static_works_GCJ=yes
16657 fi
16658 fi
16659 $rm conftest*
16660 LDFLAGS="$save_LDFLAGS"
16661
16662fi
64ff59ba 16663{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16664echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
d9898ee8 16665
16666if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16667 :
16668else
16669 lt_prog_compiler_static_GCJ=
16670fi
16671
16672
64ff59ba 16673{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16674echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 16675if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16676 echo $ECHO_N "(cached) $ECHO_C" >&6
16677else
16678 lt_cv_prog_compiler_c_o_GCJ=no
16679 $rm -r conftest 2>/dev/null
16680 mkdir conftest
16681 cd conftest
16682 mkdir out
16683 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16684
16685 lt_compiler_flag="-o out/conftest2.$ac_objext"
16686 # Insert the option either (1) after the last *FLAGS variable, or
16687 # (2) before a word containing "conftest.", or (3) at the end.
16688 # Note that $ac_compile itself does not contain backslashes and begins
16689 # with a dollar sign (not a hyphen), so the echo should work correctly.
16690 lt_compile=`echo "$ac_compile" | $SED \
16691 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16692 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16693 -e 's:$: $lt_compiler_flag:'`
64ff59ba 16694 (eval echo "\"\$as_me:16694: $lt_compile\"" >&5)
d9898ee8 16695 (eval "$lt_compile" 2>out/conftest.err)
16696 ac_status=$?
16697 cat out/conftest.err >&5
64ff59ba 16698 echo "$as_me:16698: \$? = $ac_status" >&5
d9898ee8 16699 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16700 then
16701 # The compiler can only warn and ignore the option if not recognized
16702 # So say no if there are warnings
16703 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16704 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16705 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16706 lt_cv_prog_compiler_c_o_GCJ=yes
16707 fi
16708 fi
16709 chmod u+w . 2>&5
16710 $rm conftest*
16711 # SGI C++ compiler will create directory out/ii_files/ for
16712 # template instantiation
16713 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16714 $rm out/* && rmdir out
16715 cd ..
16716 rmdir conftest
16717 $rm conftest*
16718
16719fi
64ff59ba 16720{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16721echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
d9898ee8 16722
16723
16724hard_links="nottested"
16725if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16726 # do not overwrite the value of need_locks provided by the user
64ff59ba 16727 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16728echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 16729 hard_links=yes
16730 $rm conftest*
16731 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16732 touch conftest.a
16733 ln conftest.a conftest.b 2>&5 || hard_links=no
16734 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 16735 { echo "$as_me:$LINENO: result: $hard_links" >&5
16736echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 16737 if test "$hard_links" = no; then
16738 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16739echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16740 need_locks=warn
16741 fi
16742else
16743 need_locks=no
16744fi
16745
64ff59ba 16746{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16747echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 16748
16749 runpath_var=
16750 allow_undefined_flag_GCJ=
16751 enable_shared_with_static_runtimes_GCJ=no
16752 archive_cmds_GCJ=
16753 archive_expsym_cmds_GCJ=
16754 old_archive_From_new_cmds_GCJ=
16755 old_archive_from_expsyms_cmds_GCJ=
16756 export_dynamic_flag_spec_GCJ=
16757 whole_archive_flag_spec_GCJ=
16758 thread_safe_flag_spec_GCJ=
16759 hardcode_libdir_flag_spec_GCJ=
16760 hardcode_libdir_flag_spec_ld_GCJ=
16761 hardcode_libdir_separator_GCJ=
16762 hardcode_direct_GCJ=no
16763 hardcode_minus_L_GCJ=no
16764 hardcode_shlibpath_var_GCJ=unsupported
16765 link_all_deplibs_GCJ=unknown
16766 hardcode_automatic_GCJ=no
16767 module_cmds_GCJ=
16768 module_expsym_cmds_GCJ=
16769 always_export_symbols_GCJ=no
16770 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16771 # include_expsyms should be a list of space-separated symbols to be *always*
16772 # included in the symbol list
16773 include_expsyms_GCJ=
16774 # exclude_expsyms can be an extended regexp of symbols to exclude
16775 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16776 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16777 # as well as any symbol that contains `d'.
16778 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16779 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16780 # platforms (ab)use it in PIC code, but their linkers get confused if
16781 # the symbol is explicitly referenced. Since portable code cannot
16782 # rely on this symbol name, it's probably fine to never include it in
16783 # preloaded symbol tables.
16784 extract_expsyms_cmds=
16785 # Just being paranoid about ensuring that cc_basename is set.
16786 for cc_temp in $compiler""; do
16787 case $cc_temp in
16788 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16789 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16790 \-*) ;;
16791 *) break;;
16792 esac
16793done
16794cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16795
16796 case $host_os in
16797 cygwin* | mingw* | pw32*)
16798 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16799 # When not using gcc, we currently assume that we are using
16800 # Microsoft Visual C++.
16801 if test "$GCC" != yes; then
16802 with_gnu_ld=no
16803 fi
16804 ;;
16805 interix*)
16806 # we just hope/assume this is gcc and not c89 (= MSVC++)
16807 with_gnu_ld=yes
16808 ;;
16809 openbsd*)
16810 with_gnu_ld=no
16811 ;;
16812 esac
16813
16814 ld_shlibs_GCJ=yes
16815 if test "$with_gnu_ld" = yes; then
16816 # If archive_cmds runs LD, not CC, wlarc should be empty
16817 wlarc='${wl}'
16818
16819 # Set some defaults for GNU ld with shared library support. These
16820 # are reset later if shared libraries are not supported. Putting them
16821 # here allows them to be overridden if necessary.
16822 runpath_var=LD_RUN_PATH
16823 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16824 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16825 # ancient GNU ld didn't support --whole-archive et. al.
16826 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16827 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16828 else
16829 whole_archive_flag_spec_GCJ=
16830 fi
16831 supports_anon_versioning=no
16832 case `$LD -v 2>/dev/null` in
16833 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16834 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16835 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16836 *\ 2.11.*) ;; # other 2.11 versions
16837 *) supports_anon_versioning=yes ;;
16838 esac
16839
16840 # See if GNU ld supports shared libraries.
16841 case $host_os in
16842 aix3* | aix4* | aix5*)
16843 # On AIX/PPC, the GNU linker is very broken
16844 if test "$host_cpu" != ia64; then
16845 ld_shlibs_GCJ=no
16846 cat <<EOF 1>&2
16847
16848*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16849*** to be unable to reliably create shared libraries on AIX.
16850*** Therefore, libtool is disabling shared libraries support. If you
16851*** really care for shared libraries, you may want to modify your PATH
16852*** so that a non-GNU linker is found, and then restart.
16853
16854EOF
16855 fi
16856 ;;
16857
16858 amigaos*)
16859 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)'
16860 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16861 hardcode_minus_L_GCJ=yes
16862
16863 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16864 # that the semantics of dynamic libraries on AmigaOS, at least up
16865 # to version 4, is to share data among multiple programs linked
16866 # with the same dynamic library. Since this doesn't match the
16867 # behavior of shared libraries on other platforms, we can't use
16868 # them.
16869 ld_shlibs_GCJ=no
16870 ;;
16871
16872 beos*)
16873 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16874 allow_undefined_flag_GCJ=unsupported
16875 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16876 # support --undefined. This deserves some investigation. FIXME
16877 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16878 else
16879 ld_shlibs_GCJ=no
16880 fi
16881 ;;
16882
16883 cygwin* | mingw* | pw32*)
16884 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16885 # as there is no search path for DLLs.
16886 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16887 allow_undefined_flag_GCJ=unsupported
16888 always_export_symbols_GCJ=no
16889 enable_shared_with_static_runtimes_GCJ=yes
16890 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16891
16892 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16893 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16894 # If the export-symbols file already is a .def file (1st line
16895 # is EXPORTS), use it as is; otherwise, prepend...
16896 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16897 cp $export_symbols $output_objdir/$soname.def;
16898 else
16899 echo EXPORTS > $output_objdir/$soname.def;
16900 cat $export_symbols >> $output_objdir/$soname.def;
16901 fi~
16902 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16903 else
16904 ld_shlibs_GCJ=no
16905 fi
16906 ;;
16907
16908 interix3*)
16909 hardcode_direct_GCJ=no
16910 hardcode_shlibpath_var_GCJ=no
16911 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16912 export_dynamic_flag_spec_GCJ='${wl}-E'
16913 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16914 # Instead, shared libraries are loaded at an image base (0x10000000 by
16915 # default) and relocated if they conflict, which is a slow very memory
16916 # consuming and fragmenting process. To avoid this, we pick a random,
16917 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16918 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16919 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'
16920 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'
16921 ;;
16922
16923 linux*)
16924 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16925 tmp_addflag=
16926 case $cc_basename,$host_cpu in
16927 pgcc*) # Portland Group C compiler
16928 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'
16929 tmp_addflag=' $pic_flag'
16930 ;;
16931 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16932 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'
16933 tmp_addflag=' $pic_flag -Mnomain' ;;
16934 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16935 tmp_addflag=' -i_dynamic' ;;
16936 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16937 tmp_addflag=' -i_dynamic -nofor_main' ;;
16938 ifc* | ifort*) # Intel Fortran compiler
16939 tmp_addflag=' -nofor_main' ;;
16940 esac
16941 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16942
16943 if test $supports_anon_versioning = yes; then
16944 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16945 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16946 $echo "local: *; };" >> $output_objdir/$libname.ver~
16947 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16948 fi
16949 else
16950 ld_shlibs_GCJ=no
16951 fi
16952 ;;
16953
16954 netbsd*)
16955 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16956 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16957 wlarc=
16958 else
16959 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16960 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16961 fi
16962 ;;
16963
16964 solaris*)
16965 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16966 ld_shlibs_GCJ=no
16967 cat <<EOF 1>&2
16968
16969*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16970*** create shared libraries on Solaris systems. Therefore, libtool
16971*** is disabling shared libraries support. We urge you to upgrade GNU
16972*** binutils to release 2.9.1 or newer. Another option is to modify
16973*** your PATH or compiler configuration so that the native linker is
16974*** used, and then restart.
16975
16976EOF
16977 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16978 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16979 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16980 else
16981 ld_shlibs_GCJ=no
16982 fi
16983 ;;
16984
16985 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16986 case `$LD -v 2>&1` in
16987 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16988 ld_shlibs_GCJ=no
16989 cat <<_LT_EOF 1>&2
16990
16991*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16992*** reliably create shared libraries on SCO systems. Therefore, libtool
16993*** is disabling shared libraries support. We urge you to upgrade GNU
16994*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16995*** your PATH or compiler configuration so that the native linker is
16996*** used, and then restart.
16997
16998_LT_EOF
16999 ;;
17000 *)
17001 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17002 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17003 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17004 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17005 else
17006 ld_shlibs_GCJ=no
17007 fi
17008 ;;
17009 esac
17010 ;;
17011
17012 sunos4*)
17013 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17014 wlarc=
17015 hardcode_direct_GCJ=yes
17016 hardcode_shlibpath_var_GCJ=no
17017 ;;
17018
17019 *)
17020 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17021 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17022 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17023 else
17024 ld_shlibs_GCJ=no
17025 fi
17026 ;;
17027 esac
17028
17029 if test "$ld_shlibs_GCJ" = no; then
17030 runpath_var=
17031 hardcode_libdir_flag_spec_GCJ=
17032 export_dynamic_flag_spec_GCJ=
17033 whole_archive_flag_spec_GCJ=
17034 fi
17035 else
17036 # PORTME fill in a description of your system's linker (not GNU ld)
17037 case $host_os in
17038 aix3*)
17039 allow_undefined_flag_GCJ=unsupported
17040 always_export_symbols_GCJ=yes
17041 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'
17042 # Note: this linker hardcodes the directories in LIBPATH if there
17043 # are no directories specified by -L.
17044 hardcode_minus_L_GCJ=yes
17045 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17046 # Neither direct hardcoding nor static linking is supported with a
17047 # broken collect2.
17048 hardcode_direct_GCJ=unsupported
17049 fi
17050 ;;
17051
17052 aix4* | aix5*)
17053 if test "$host_cpu" = ia64; then
17054 # On IA64, the linker does run time linking by default, so we don't
17055 # have to do anything special.
17056 aix_use_runtimelinking=no
17057 exp_sym_flag='-Bexport'
17058 no_entry_flag=""
17059 else
17060 # If we're using GNU nm, then we don't want the "-C" option.
17061 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17062 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17063 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'
17064 else
17065 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'
17066 fi
17067 aix_use_runtimelinking=no
17068
17069 # Test if we are trying to use run time linking or normal
17070 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17071 # need to do runtime linking.
17072 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17073 for ld_flag in $LDFLAGS; do
17074 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17075 aix_use_runtimelinking=yes
17076 break
17077 fi
17078 done
17079 ;;
17080 esac
17081
17082 exp_sym_flag='-bexport'
17083 no_entry_flag='-bnoentry'
17084 fi
17085
17086 # When large executables or shared objects are built, AIX ld can
17087 # have problems creating the table of contents. If linking a library
17088 # or program results in "error TOC overflow" add -mminimal-toc to
17089 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17090 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17091
17092 archive_cmds_GCJ=''
17093 hardcode_direct_GCJ=yes
17094 hardcode_libdir_separator_GCJ=':'
17095 link_all_deplibs_GCJ=yes
17096
17097 if test "$GCC" = yes; then
17098 case $host_os in aix4.[012]|aix4.[012].*)
17099 # We only want to do this on AIX 4.2 and lower, the check
17100 # below for broken collect2 doesn't work under 4.3+
17101 collect2name=`${CC} -print-prog-name=collect2`
17102 if test -f "$collect2name" && \
17103 strings "$collect2name" | grep resolve_lib_name >/dev/null
17104 then
17105 # We have reworked collect2
17106 hardcode_direct_GCJ=yes
17107 else
17108 # We have old collect2
17109 hardcode_direct_GCJ=unsupported
17110 # It fails to find uninstalled libraries when the uninstalled
17111 # path is not listed in the libpath. Setting hardcode_minus_L
17112 # to unsupported forces relinking
17113 hardcode_minus_L_GCJ=yes
17114 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17115 hardcode_libdir_separator_GCJ=
17116 fi
17117 ;;
17118 esac
17119 shared_flag='-shared'
17120 if test "$aix_use_runtimelinking" = yes; then
17121 shared_flag="$shared_flag "'${wl}-G'
17122 fi
17123 else
17124 # not using gcc
17125 if test "$host_cpu" = ia64; then
17126 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17127 # chokes on -Wl,-G. The following line is correct:
17128 shared_flag='-G'
17129 else
17130 if test "$aix_use_runtimelinking" = yes; then
17131 shared_flag='${wl}-G'
17132 else
17133 shared_flag='${wl}-bM:SRE'
17134 fi
17135 fi
17136 fi
17137
17138 # It seems that -bexpall does not export symbols beginning with
17139 # underscore (_), so it is better to generate a list of symbols to export.
17140 always_export_symbols_GCJ=yes
17141 if test "$aix_use_runtimelinking" = yes; then
17142 # Warning - without using the other runtime loading flags (-brtl),
17143 # -berok will link without error, but may produce a broken library.
17144 allow_undefined_flag_GCJ='-berok'
17145 # Determine the default libpath from the value encoded in an empty executable.
17146 cat >conftest.$ac_ext <<_ACEOF
17147/* confdefs.h. */
17148_ACEOF
17149cat confdefs.h >>conftest.$ac_ext
17150cat >>conftest.$ac_ext <<_ACEOF
17151/* end confdefs.h. */
17152
17153int
17154main ()
17155{
17156
17157 ;
17158 return 0;
17159}
17160_ACEOF
17161rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 17162if { (ac_try="$ac_link"
17163case "(($ac_try" in
17164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17165 *) ac_try_echo=$ac_try;;
17166esac
17167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17168 (eval "$ac_link") 2>conftest.er1
d9898ee8 17169 ac_status=$?
17170 grep -v '^ *+' conftest.er1 >conftest.err
17171 rm -f conftest.er1
17172 cat conftest.err >&5
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 17174 (exit $ac_status); } && {
17175 test -z "$ac_c_werror_flag" ||
17176 test ! -s conftest.err
17177 } && test -s conftest$ac_exeext &&
17178 $as_test_x conftest$ac_exeext; then
d9898ee8 17179
17180aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17181}'`
17182# Check for a 64-bit object if we didn't find anything.
17183if 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; }
17184}'`; fi
17185else
17186 echo "$as_me: failed program was:" >&5
17187sed 's/^/| /' conftest.$ac_ext >&5
17188
64ff59ba 17189
d9898ee8 17190fi
64ff59ba 17191
17192rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17193 conftest$ac_exeext conftest.$ac_ext
17194if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17195
17196 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17197 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"
17198 else
17199 if test "$host_cpu" = ia64; then
17200 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17201 allow_undefined_flag_GCJ="-z nodefs"
17202 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"
17203 else
17204 # Determine the default libpath from the value encoded in an empty executable.
17205 cat >conftest.$ac_ext <<_ACEOF
17206/* confdefs.h. */
17207_ACEOF
17208cat confdefs.h >>conftest.$ac_ext
17209cat >>conftest.$ac_ext <<_ACEOF
17210/* end confdefs.h. */
17211
17212int
17213main ()
17214{
17215
17216 ;
17217 return 0;
17218}
17219_ACEOF
17220rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 17221if { (ac_try="$ac_link"
17222case "(($ac_try" in
17223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17224 *) ac_try_echo=$ac_try;;
17225esac
17226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17227 (eval "$ac_link") 2>conftest.er1
d9898ee8 17228 ac_status=$?
17229 grep -v '^ *+' conftest.er1 >conftest.err
17230 rm -f conftest.er1
17231 cat conftest.err >&5
17232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 17233 (exit $ac_status); } && {
17234 test -z "$ac_c_werror_flag" ||
17235 test ! -s conftest.err
17236 } && test -s conftest$ac_exeext &&
17237 $as_test_x conftest$ac_exeext; then
d9898ee8 17238
17239aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17240}'`
17241# Check for a 64-bit object if we didn't find anything.
17242if 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; }
17243}'`; fi
17244else
17245 echo "$as_me: failed program was:" >&5
17246sed 's/^/| /' conftest.$ac_ext >&5
17247
64ff59ba 17248
d9898ee8 17249fi
64ff59ba 17250
17251rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17252 conftest$ac_exeext conftest.$ac_ext
17253if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17254
17255 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17256 # Warning - without using the other run time loading flags,
17257 # -berok will link without error, but may produce a broken library.
17258 no_undefined_flag_GCJ=' ${wl}-bernotok'
17259 allow_undefined_flag_GCJ=' ${wl}-berok'
17260 # Exported symbols can be pulled into shared objects from archives
17261 whole_archive_flag_spec_GCJ='$convenience'
17262 archive_cmds_need_lc_GCJ=yes
17263 # This is similar to how AIX traditionally builds its shared libraries.
17264 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'
17265 fi
17266 fi
17267 ;;
17268
17269 amigaos*)
17270 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)'
17271 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17272 hardcode_minus_L_GCJ=yes
17273 # see comment about different semantics on the GNU ld section
17274 ld_shlibs_GCJ=no
17275 ;;
17276
17277 bsdi[45]*)
17278 export_dynamic_flag_spec_GCJ=-rdynamic
17279 ;;
17280
17281 cygwin* | mingw* | pw32*)
17282 # When not using gcc, we currently assume that we are using
17283 # Microsoft Visual C++.
17284 # hardcode_libdir_flag_spec is actually meaningless, as there is
17285 # no search path for DLLs.
17286 hardcode_libdir_flag_spec_GCJ=' '
17287 allow_undefined_flag_GCJ=unsupported
17288 # Tell ltmain to make .lib files, not .a files.
17289 libext=lib
17290 # Tell ltmain to make .dll files, not .so files.
17291 shrext_cmds=".dll"
17292 # FIXME: Setting linknames here is a bad hack.
17293 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17294 # The linker will automatically build a .lib file if we build a DLL.
17295 old_archive_From_new_cmds_GCJ='true'
17296 # FIXME: Should let the user specify the lib program.
17297 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17298 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17299 enable_shared_with_static_runtimes_GCJ=yes
17300 ;;
17301
17302 darwin* | rhapsody*)
17303 case $host_os in
17304 rhapsody* | darwin1.[012])
17305 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17306 ;;
17307 *) # Darwin 1.3 on
17308 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17309 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17310 else
17311 case ${MACOSX_DEPLOYMENT_TARGET} in
17312 10.[012])
17313 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17314 ;;
17315 10.*)
17316 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17317 ;;
17318 esac
17319 fi
17320 ;;
17321 esac
17322 archive_cmds_need_lc_GCJ=no
17323 hardcode_direct_GCJ=no
17324 hardcode_automatic_GCJ=yes
17325 hardcode_shlibpath_var_GCJ=unsupported
17326 whole_archive_flag_spec_GCJ=''
17327 link_all_deplibs_GCJ=yes
17328 if test "$GCC" = yes ; then
17329 output_verbose_link_cmd='echo'
17330 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17331 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17332 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17333 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}'
17334 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}'
17335 else
17336 case $cc_basename in
17337 xlc*)
17338 output_verbose_link_cmd='echo'
17339 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17340 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17341 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17342 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}'
17343 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}'
17344 ;;
17345 *)
17346 ld_shlibs_GCJ=no
17347 ;;
17348 esac
17349 fi
17350 ;;
17351
17352 dgux*)
17353 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17354 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17355 hardcode_shlibpath_var_GCJ=no
17356 ;;
17357
17358 freebsd1*)
17359 ld_shlibs_GCJ=no
17360 ;;
17361
17362 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17363 # support. Future versions do this automatically, but an explicit c++rt0.o
17364 # does not break anything, and helps significantly (at the cost of a little
17365 # extra space).
17366 freebsd2.2*)
17367 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17368 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17369 hardcode_direct_GCJ=yes
17370 hardcode_shlibpath_var_GCJ=no
17371 ;;
17372
17373 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17374 freebsd2*)
17375 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17376 hardcode_direct_GCJ=yes
17377 hardcode_minus_L_GCJ=yes
17378 hardcode_shlibpath_var_GCJ=no
17379 ;;
17380
17381 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17382 freebsd* | kfreebsd*-gnu | dragonfly*)
17383 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17384 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17385 hardcode_direct_GCJ=yes
17386 hardcode_shlibpath_var_GCJ=no
17387 ;;
17388
17389 hpux9*)
17390 if test "$GCC" = yes; then
17391 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'
17392 else
17393 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'
17394 fi
17395 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17396 hardcode_libdir_separator_GCJ=:
17397 hardcode_direct_GCJ=yes
17398
17399 # hardcode_minus_L: Not really in the search PATH,
17400 # but as the default location of the library.
17401 hardcode_minus_L_GCJ=yes
17402 export_dynamic_flag_spec_GCJ='${wl}-E'
17403 ;;
17404
17405 hpux10*)
17406 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17407 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17408 else
17409 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17410 fi
17411 if test "$with_gnu_ld" = no; then
17412 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17413 hardcode_libdir_separator_GCJ=:
17414
17415 hardcode_direct_GCJ=yes
17416 export_dynamic_flag_spec_GCJ='${wl}-E'
17417
17418 # hardcode_minus_L: Not really in the search PATH,
17419 # but as the default location of the library.
17420 hardcode_minus_L_GCJ=yes
17421 fi
17422 ;;
17423
17424 hpux11*)
17425 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17426 case $host_cpu in
17427 hppa*64*)
17428 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17429 ;;
17430 ia64*)
17431 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17432 ;;
17433 *)
17434 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17435 ;;
17436 esac
17437 else
17438 case $host_cpu in
17439 hppa*64*)
17440 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17441 ;;
17442 ia64*)
17443 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17444 ;;
17445 *)
17446 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17447 ;;
17448 esac
17449 fi
17450 if test "$with_gnu_ld" = no; then
17451 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17452 hardcode_libdir_separator_GCJ=:
17453
17454 case $host_cpu in
17455 hppa*64*|ia64*)
17456 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17457 hardcode_direct_GCJ=no
17458 hardcode_shlibpath_var_GCJ=no
17459 ;;
17460 *)
17461 hardcode_direct_GCJ=yes
17462 export_dynamic_flag_spec_GCJ='${wl}-E'
17463
17464 # hardcode_minus_L: Not really in the search PATH,
17465 # but as the default location of the library.
17466 hardcode_minus_L_GCJ=yes
17467 ;;
17468 esac
17469 fi
17470 ;;
17471
17472 irix5* | irix6* | nonstopux*)
17473 if test "$GCC" = yes; then
17474 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'
17475 else
17476 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'
17477 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17478 fi
17479 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17480 hardcode_libdir_separator_GCJ=:
17481 link_all_deplibs_GCJ=yes
17482 ;;
17483
17484 netbsd*)
17485 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17486 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17487 else
17488 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17489 fi
17490 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17491 hardcode_direct_GCJ=yes
17492 hardcode_shlibpath_var_GCJ=no
17493 ;;
17494
17495 newsos6)
17496 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17497 hardcode_direct_GCJ=yes
17498 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17499 hardcode_libdir_separator_GCJ=:
17500 hardcode_shlibpath_var_GCJ=no
17501 ;;
17502
17503 openbsd*)
17504 hardcode_direct_GCJ=yes
17505 hardcode_shlibpath_var_GCJ=no
17506 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17507 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17508 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17509 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17510 export_dynamic_flag_spec_GCJ='${wl}-E'
17511 else
17512 case $host_os in
17513 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17514 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17515 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17516 ;;
17517 *)
17518 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17519 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17520 ;;
17521 esac
17522 fi
17523 ;;
17524
17525 os2*)
17526 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17527 hardcode_minus_L_GCJ=yes
17528 allow_undefined_flag_GCJ=unsupported
17529 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'
17530 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17531 ;;
17532
17533 osf3*)
17534 if test "$GCC" = yes; then
17535 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17536 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'
17537 else
17538 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17539 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'
17540 fi
17541 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17542 hardcode_libdir_separator_GCJ=:
17543 ;;
17544
17545 osf4* | osf5*) # as osf3* with the addition of -msym flag
17546 if test "$GCC" = yes; then
17547 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17548 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'
17549 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17550 else
17551 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17552 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'
17553 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~
17554 $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'
17555
17556 # Both c and cxx compiler support -rpath directly
17557 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17558 fi
17559 hardcode_libdir_separator_GCJ=:
17560 ;;
17561
17562 solaris*)
17563 no_undefined_flag_GCJ=' -z text'
17564 if test "$GCC" = yes; then
17565 wlarc='${wl}'
17566 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17567 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17568 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17569 else
17570 wlarc=''
17571 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17572 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17573 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17574 fi
17575 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17576 hardcode_shlibpath_var_GCJ=no
17577 case $host_os in
17578 solaris2.[0-5] | solaris2.[0-5].*) ;;
17579 *)
17580 # The compiler driver will combine linker options so we
17581 # cannot just pass the convience library names through
17582 # without $wl, iff we do not link with $LD.
17583 # Luckily, gcc supports the same syntax we need for Sun Studio.
17584 # Supported since Solaris 2.6 (maybe 2.5.1?)
17585 case $wlarc in
17586 '')
17587 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17588 *)
17589 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' ;;
17590 esac ;;
17591 esac
17592 link_all_deplibs_GCJ=yes
17593 ;;
17594
17595 sunos4*)
17596 if test "x$host_vendor" = xsequent; then
17597 # Use $CC to link under sequent, because it throws in some extra .o
17598 # files that make .init and .fini sections work.
17599 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17600 else
17601 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17602 fi
17603 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17604 hardcode_direct_GCJ=yes
17605 hardcode_minus_L_GCJ=yes
17606 hardcode_shlibpath_var_GCJ=no
17607 ;;
17608
17609 sysv4)
17610 case $host_vendor in
17611 sni)
17612 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17613 hardcode_direct_GCJ=yes # is this really true???
17614 ;;
17615 siemens)
17616 ## LD is ld it makes a PLAMLIB
17617 ## CC just makes a GrossModule.
17618 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17619 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17620 hardcode_direct_GCJ=no
17621 ;;
17622 motorola)
17623 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17624 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17625 ;;
17626 esac
17627 runpath_var='LD_RUN_PATH'
17628 hardcode_shlibpath_var_GCJ=no
17629 ;;
17630
17631 sysv4.3*)
17632 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17633 hardcode_shlibpath_var_GCJ=no
17634 export_dynamic_flag_spec_GCJ='-Bexport'
17635 ;;
17636
17637 sysv4*MP*)
17638 if test -d /usr/nec; then
17639 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17640 hardcode_shlibpath_var_GCJ=no
17641 runpath_var=LD_RUN_PATH
17642 hardcode_runpath_var=yes
17643 ld_shlibs_GCJ=yes
17644 fi
17645 ;;
17646
17647 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17648 no_undefined_flag_GCJ='${wl}-z,text'
17649 archive_cmds_need_lc_GCJ=no
17650 hardcode_shlibpath_var_GCJ=no
17651 runpath_var='LD_RUN_PATH'
17652
17653 if test "$GCC" = yes; then
17654 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17655 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17656 else
17657 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17658 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17659 fi
17660 ;;
17661
17662 sysv5* | sco3.2v5* | sco5v6*)
17663 # Note: We can NOT use -z defs as we might desire, because we do not
17664 # link with -lc, and that would cause any symbols used from libc to
17665 # always be unresolved, which means just about no library would
17666 # ever link correctly. If we're not using GNU ld we use -z text
17667 # though, which does catch some bad symbols but isn't as heavy-handed
17668 # as -z defs.
17669 no_undefined_flag_GCJ='${wl}-z,text'
17670 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17671 archive_cmds_need_lc_GCJ=no
17672 hardcode_shlibpath_var_GCJ=no
17673 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17674 hardcode_libdir_separator_GCJ=':'
17675 link_all_deplibs_GCJ=yes
17676 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17677 runpath_var='LD_RUN_PATH'
17678
17679 if test "$GCC" = yes; then
17680 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17681 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17682 else
17683 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17684 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17685 fi
17686 ;;
17687
17688 uts4*)
17689 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17690 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17691 hardcode_shlibpath_var_GCJ=no
17692 ;;
17693
17694 *)
17695 ld_shlibs_GCJ=no
17696 ;;
17697 esac
17698 fi
17699
64ff59ba 17700{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17701echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
d9898ee8 17702test "$ld_shlibs_GCJ" = no && can_build_shared=no
17703
17704#
17705# Do we need to explicitly link libc?
17706#
17707case "x$archive_cmds_need_lc_GCJ" in
17708x|xyes)
17709 # Assume -lc should be added
17710 archive_cmds_need_lc_GCJ=yes
17711
17712 if test "$enable_shared" = yes && test "$GCC" = yes; then
17713 case $archive_cmds_GCJ in
17714 *'~'*)
17715 # FIXME: we may have to deal with multi-command sequences.
17716 ;;
17717 '$CC '*)
17718 # Test whether the compiler implicitly links with -lc since on some
17719 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17720 # to ld, don't add -lc before -lgcc.
64ff59ba 17721 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17722echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 17723 $rm conftest*
17724 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17725
17726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17727 (eval $ac_compile) 2>&5
17728 ac_status=$?
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); } 2>conftest.err; then
17731 soname=conftest
17732 lib=conftest
17733 libobjs=conftest.$ac_objext
17734 deplibs=
17735 wl=$lt_prog_compiler_wl_GCJ
17736 pic_flag=$lt_prog_compiler_pic_GCJ
17737 compiler_flags=-v
17738 linker_flags=-v
17739 verstring=
17740 output_objdir=.
17741 libname=conftest
17742 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17743 allow_undefined_flag_GCJ=
17744 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17745 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17746 ac_status=$?
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); }
17749 then
17750 archive_cmds_need_lc_GCJ=no
17751 else
17752 archive_cmds_need_lc_GCJ=yes
17753 fi
17754 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17755 else
17756 cat conftest.err 1>&5
17757 fi
17758 $rm conftest*
64ff59ba 17759 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17760echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
d9898ee8 17761 ;;
17762 esac
17763 fi
17764 ;;
17765esac
17766
64ff59ba 17767{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17768echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 17769library_names_spec=
17770libname_spec='lib$name'
17771soname_spec=
17772shrext_cmds=".so"
17773postinstall_cmds=
17774postuninstall_cmds=
17775finish_cmds=
17776finish_eval=
17777shlibpath_var=
17778shlibpath_overrides_runpath=unknown
17779version_type=none
17780dynamic_linker="$host_os ld.so"
17781sys_lib_dlsearch_path_spec="/lib /usr/lib"
17782if test "$GCC" = yes; then
17783 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17784 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17785 # if the path contains ";" then we assume it to be the separator
17786 # otherwise default to the standard path separator (i.e. ":") - it is
17787 # assumed that no part of a normal pathname contains ";" but that should
17788 # okay in the real world where ";" in dirpaths is itself problematic.
17789 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17790 else
17791 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17792 fi
17793else
17794 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17795fi
17796need_lib_prefix=unknown
17797hardcode_into_libs=no
17798
17799# when you set need_version to no, make sure it does not cause -set_version
17800# flags to be left without arguments
17801need_version=unknown
17802
17803case $host_os in
17804aix3*)
17805 version_type=linux
17806 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17807 shlibpath_var=LIBPATH
17808
17809 # AIX 3 has no versioning support, so we append a major version to the name.
17810 soname_spec='${libname}${release}${shared_ext}$major'
17811 ;;
17812
17813aix4* | aix5*)
17814 version_type=linux
17815 need_lib_prefix=no
17816 need_version=no
17817 hardcode_into_libs=yes
17818 if test "$host_cpu" = ia64; then
17819 # AIX 5 supports IA64
17820 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17821 shlibpath_var=LD_LIBRARY_PATH
17822 else
17823 # With GCC up to 2.95.x, collect2 would create an import file
17824 # for dependence libraries. The import file would start with
17825 # the line `#! .'. This would cause the generated library to
17826 # depend on `.', always an invalid library. This was fixed in
17827 # development snapshots of GCC prior to 3.0.
17828 case $host_os in
17829 aix4 | aix4.[01] | aix4.[01].*)
17830 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17831 echo ' yes '
17832 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17833 :
17834 else
17835 can_build_shared=no
17836 fi
17837 ;;
17838 esac
17839 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17840 # soname into executable. Probably we can add versioning support to
17841 # collect2, so additional links can be useful in future.
17842 if test "$aix_use_runtimelinking" = yes; then
17843 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17844 # instead of lib<name>.a to let people know that these are not
17845 # typical AIX shared libraries.
17846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17847 else
17848 # We preserve .a as extension for shared libraries through AIX4.2
17849 # and later when we are not doing run time linking.
17850 library_names_spec='${libname}${release}.a $libname.a'
17851 soname_spec='${libname}${release}${shared_ext}$major'
17852 fi
17853 shlibpath_var=LIBPATH
17854 fi
17855 ;;
17856
17857amigaos*)
17858 library_names_spec='$libname.ixlibrary $libname.a'
17859 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17860 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'
17861 ;;
17862
17863beos*)
17864 library_names_spec='${libname}${shared_ext}'
17865 dynamic_linker="$host_os ld.so"
17866 shlibpath_var=LIBRARY_PATH
17867 ;;
17868
17869bsdi[45]*)
17870 version_type=linux
17871 need_version=no
17872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17873 soname_spec='${libname}${release}${shared_ext}$major'
17874 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17875 shlibpath_var=LD_LIBRARY_PATH
17876 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17877 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17878 # the default ld.so.conf also contains /usr/contrib/lib and
17879 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17880 # libtool to hard-code these into programs
17881 ;;
17882
17883cygwin* | mingw* | pw32*)
17884 version_type=windows
17885 shrext_cmds=".dll"
17886 need_version=no
17887 need_lib_prefix=no
17888
17889 case $GCC,$host_os in
17890 yes,cygwin* | yes,mingw* | yes,pw32*)
17891 library_names_spec='$libname.dll.a'
17892 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17893 postinstall_cmds='base_file=`basename \${file}`~
17894 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17895 dldir=$destdir/`dirname \$dlpath`~
17896 test -d \$dldir || mkdir -p \$dldir~
17897 $install_prog $dir/$dlname \$dldir/$dlname~
17898 chmod a+x \$dldir/$dlname'
17899 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17900 dlpath=$dir/\$dldll~
17901 $rm \$dlpath'
17902 shlibpath_overrides_runpath=yes
17903
17904 case $host_os in
17905 cygwin*)
17906 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17907 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17908 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17909 ;;
17910 mingw*)
17911 # MinGW DLLs use traditional 'lib' prefix
17912 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17913 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17914 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17915 # It is most probably a Windows format PATH printed by
17916 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17917 # path with ; separators, and with drive letters. We can handle the
17918 # drive letters (cygwin fileutils understands them), so leave them,
17919 # especially as we might pass files found there to a mingw objdump,
17920 # which wouldn't understand a cygwinified path. Ahh.
17921 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17922 else
17923 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17924 fi
17925 ;;
17926 pw32*)
17927 # pw32 DLLs use 'pw' prefix rather than 'lib'
17928 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17929 ;;
17930 esac
17931 ;;
17932
17933 *)
17934 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17935 ;;
17936 esac
17937 dynamic_linker='Win32 ld.exe'
17938 # FIXME: first we should search . and the directory the executable is in
17939 shlibpath_var=PATH
17940 ;;
17941
17942darwin* | rhapsody*)
17943 dynamic_linker="$host_os dyld"
17944 version_type=darwin
17945 need_lib_prefix=no
17946 need_version=no
17947 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17948 soname_spec='${libname}${release}${major}$shared_ext'
17949 shlibpath_overrides_runpath=yes
17950 shlibpath_var=DYLD_LIBRARY_PATH
17951 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17952 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17953 if test "$GCC" = yes; then
17954 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"`
17955 else
17956 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17957 fi
17958 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17959 ;;
17960
17961dgux*)
17962 version_type=linux
17963 need_lib_prefix=no
17964 need_version=no
17965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17966 soname_spec='${libname}${release}${shared_ext}$major'
17967 shlibpath_var=LD_LIBRARY_PATH
17968 ;;
17969
17970freebsd1*)
17971 dynamic_linker=no
17972 ;;
17973
17974kfreebsd*-gnu)
17975 version_type=linux
17976 need_lib_prefix=no
17977 need_version=no
17978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17979 soname_spec='${libname}${release}${shared_ext}$major'
17980 shlibpath_var=LD_LIBRARY_PATH
17981 shlibpath_overrides_runpath=no
17982 hardcode_into_libs=yes
17983 dynamic_linker='GNU ld.so'
17984 ;;
17985
17986freebsd* | dragonfly*)
17987 # DragonFly does not have aout. When/if they implement a new
17988 # versioning mechanism, adjust this.
17989 if test -x /usr/bin/objformat; then
17990 objformat=`/usr/bin/objformat`
17991 else
17992 case $host_os in
17993 freebsd[123]*) objformat=aout ;;
17994 *) objformat=elf ;;
17995 esac
17996 fi
17997 version_type=freebsd-$objformat
17998 case $version_type in
17999 freebsd-elf*)
18000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18001 need_version=no
18002 need_lib_prefix=no
18003 ;;
18004 freebsd-*)
18005 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18006 need_version=yes
18007 ;;
18008 esac
18009 shlibpath_var=LD_LIBRARY_PATH
18010 case $host_os in
18011 freebsd2*)
18012 shlibpath_overrides_runpath=yes
18013 ;;
18014 freebsd3.[01]* | freebsdelf3.[01]*)
18015 shlibpath_overrides_runpath=yes
18016 hardcode_into_libs=yes
18017 ;;
18018 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18019 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18020 shlibpath_overrides_runpath=no
18021 hardcode_into_libs=yes
18022 ;;
18023 freebsd*) # from 4.6 on
18024 shlibpath_overrides_runpath=yes
18025 hardcode_into_libs=yes
18026 ;;
18027 esac
18028 ;;
18029
18030gnu*)
18031 version_type=linux
18032 need_lib_prefix=no
18033 need_version=no
18034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18035 soname_spec='${libname}${release}${shared_ext}$major'
18036 shlibpath_var=LD_LIBRARY_PATH
18037 hardcode_into_libs=yes
18038 ;;
18039
18040hpux9* | hpux10* | hpux11*)
18041 # Give a soname corresponding to the major version so that dld.sl refuses to
18042 # link against other versions.
18043 version_type=sunos
18044 need_lib_prefix=no
18045 need_version=no
18046 case $host_cpu in
18047 ia64*)
18048 shrext_cmds='.so'
18049 hardcode_into_libs=yes
18050 dynamic_linker="$host_os dld.so"
18051 shlibpath_var=LD_LIBRARY_PATH
18052 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18054 soname_spec='${libname}${release}${shared_ext}$major'
18055 if test "X$HPUX_IA64_MODE" = X32; then
18056 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18057 else
18058 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18059 fi
18060 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18061 ;;
18062 hppa*64*)
18063 shrext_cmds='.sl'
18064 hardcode_into_libs=yes
18065 dynamic_linker="$host_os dld.sl"
18066 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18067 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18069 soname_spec='${libname}${release}${shared_ext}$major'
18070 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18071 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18072 ;;
18073 *)
18074 shrext_cmds='.sl'
18075 dynamic_linker="$host_os dld.sl"
18076 shlibpath_var=SHLIB_PATH
18077 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18079 soname_spec='${libname}${release}${shared_ext}$major'
18080 ;;
18081 esac
18082 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18083 postinstall_cmds='chmod 555 $lib'
18084 ;;
18085
18086interix3*)
18087 version_type=linux
18088 need_lib_prefix=no
18089 need_version=no
18090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18091 soname_spec='${libname}${release}${shared_ext}$major'
18092 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18093 shlibpath_var=LD_LIBRARY_PATH
18094 shlibpath_overrides_runpath=no
18095 hardcode_into_libs=yes
18096 ;;
18097
18098irix5* | irix6* | nonstopux*)
18099 case $host_os in
18100 nonstopux*) version_type=nonstopux ;;
18101 *)
18102 if test "$lt_cv_prog_gnu_ld" = yes; then
18103 version_type=linux
18104 else
18105 version_type=irix
18106 fi ;;
18107 esac
18108 need_lib_prefix=no
18109 need_version=no
18110 soname_spec='${libname}${release}${shared_ext}$major'
18111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18112 case $host_os in
18113 irix5* | nonstopux*)
18114 libsuff= shlibsuff=
18115 ;;
18116 *)
18117 case $LD in # libtool.m4 will add one of these switches to LD
18118 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18119 libsuff= shlibsuff= libmagic=32-bit;;
18120 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18121 libsuff=32 shlibsuff=N32 libmagic=N32;;
18122 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18123 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18124 *) libsuff= shlibsuff= libmagic=never-match;;
18125 esac
18126 ;;
18127 esac
18128 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18129 shlibpath_overrides_runpath=no
18130 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18131 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18132 hardcode_into_libs=yes
18133 ;;
18134
18135# No shared lib support for Linux oldld, aout, or coff.
18136linux*oldld* | linux*aout* | linux*coff*)
18137 dynamic_linker=no
18138 ;;
18139
18140# This must be Linux ELF.
18141linux*)
18142 version_type=linux
18143 need_lib_prefix=no
18144 need_version=no
18145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18146 soname_spec='${libname}${release}${shared_ext}$major'
18147 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18148 shlibpath_var=LD_LIBRARY_PATH
18149 shlibpath_overrides_runpath=no
18150 # This implies no fast_install, which is unacceptable.
18151 # Some rework will be needed to allow for fast_install
18152 # before this can be enabled.
18153 hardcode_into_libs=yes
18154
18155 # find out which ABI we are using
18156 libsuff=
18157 case "$host_cpu" in
18158 x86_64*|s390x*|powerpc64*)
64ff59ba 18159 echo '#line 18159 "configure"' > conftest.$ac_ext
d9898ee8 18160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18161 (eval $ac_compile) 2>&5
18162 ac_status=$?
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); }; then
18165 case `/usr/bin/file conftest.$ac_objext` in
18166 *64-bit*)
18167 libsuff=64
18168 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18169 ;;
18170 esac
18171 fi
18172 rm -rf conftest*
18173 ;;
18174 esac
18175
18176 # Append ld.so.conf contents to the search path
18177 if test -f /etc/ld.so.conf; then
64ff59ba 18178 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 18179 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18180 fi
18181
18182 # We used to test for /lib/ld.so.1 and disable shared libraries on
18183 # powerpc, because MkLinux only supported shared libraries with the
18184 # GNU dynamic linker. Since this was broken with cross compilers,
18185 # most powerpc-linux boxes support dynamic linking these days and
18186 # people can always --disable-shared, the test was removed, and we
18187 # assume the GNU/Linux dynamic linker is in use.
18188 dynamic_linker='GNU/Linux ld.so'
18189 ;;
18190
18191knetbsd*-gnu)
18192 version_type=linux
18193 need_lib_prefix=no
18194 need_version=no
18195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18196 soname_spec='${libname}${release}${shared_ext}$major'
18197 shlibpath_var=LD_LIBRARY_PATH
18198 shlibpath_overrides_runpath=no
18199 hardcode_into_libs=yes
18200 dynamic_linker='GNU ld.so'
18201 ;;
18202
18203netbsd*)
18204 version_type=sunos
18205 need_lib_prefix=no
18206 need_version=no
18207 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18210 dynamic_linker='NetBSD (a.out) ld.so'
18211 else
18212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18213 soname_spec='${libname}${release}${shared_ext}$major'
18214 dynamic_linker='NetBSD ld.elf_so'
18215 fi
18216 shlibpath_var=LD_LIBRARY_PATH
18217 shlibpath_overrides_runpath=yes
18218 hardcode_into_libs=yes
18219 ;;
18220
18221newsos6)
18222 version_type=linux
18223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18224 shlibpath_var=LD_LIBRARY_PATH
18225 shlibpath_overrides_runpath=yes
18226 ;;
18227
18228nto-qnx*)
18229 version_type=linux
18230 need_lib_prefix=no
18231 need_version=no
18232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18233 soname_spec='${libname}${release}${shared_ext}$major'
18234 shlibpath_var=LD_LIBRARY_PATH
18235 shlibpath_overrides_runpath=yes
18236 ;;
18237
18238openbsd*)
18239 version_type=sunos
18240 sys_lib_dlsearch_path_spec="/usr/lib"
18241 need_lib_prefix=no
18242 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18243 case $host_os in
18244 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18245 *) need_version=no ;;
18246 esac
18247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18248 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18249 shlibpath_var=LD_LIBRARY_PATH
18250 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18251 case $host_os in
18252 openbsd2.[89] | openbsd2.[89].*)
18253 shlibpath_overrides_runpath=no
18254 ;;
18255 *)
18256 shlibpath_overrides_runpath=yes
18257 ;;
18258 esac
18259 else
18260 shlibpath_overrides_runpath=yes
18261 fi
18262 ;;
18263
18264os2*)
18265 libname_spec='$name'
18266 shrext_cmds=".dll"
18267 need_lib_prefix=no
18268 library_names_spec='$libname${shared_ext} $libname.a'
18269 dynamic_linker='OS/2 ld.exe'
18270 shlibpath_var=LIBPATH
18271 ;;
18272
18273osf3* | osf4* | osf5*)
18274 version_type=osf
18275 need_lib_prefix=no
18276 need_version=no
18277 soname_spec='${libname}${release}${shared_ext}$major'
18278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18279 shlibpath_var=LD_LIBRARY_PATH
18280 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18281 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18282 ;;
18283
18284solaris*)
18285 version_type=linux
18286 need_lib_prefix=no
18287 need_version=no
18288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18289 soname_spec='${libname}${release}${shared_ext}$major'
18290 shlibpath_var=LD_LIBRARY_PATH
18291 shlibpath_overrides_runpath=yes
18292 hardcode_into_libs=yes
18293 # ldd complains unless libraries are executable
18294 postinstall_cmds='chmod +x $lib'
18295 ;;
18296
18297sunos4*)
18298 version_type=sunos
18299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18300 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18301 shlibpath_var=LD_LIBRARY_PATH
18302 shlibpath_overrides_runpath=yes
18303 if test "$with_gnu_ld" = yes; then
18304 need_lib_prefix=no
18305 fi
18306 need_version=yes
18307 ;;
18308
18309sysv4 | sysv4.3*)
18310 version_type=linux
18311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18312 soname_spec='${libname}${release}${shared_ext}$major'
18313 shlibpath_var=LD_LIBRARY_PATH
18314 case $host_vendor in
18315 sni)
18316 shlibpath_overrides_runpath=no
18317 need_lib_prefix=no
18318 export_dynamic_flag_spec='${wl}-Blargedynsym'
18319 runpath_var=LD_RUN_PATH
18320 ;;
18321 siemens)
18322 need_lib_prefix=no
18323 ;;
18324 motorola)
18325 need_lib_prefix=no
18326 need_version=no
18327 shlibpath_overrides_runpath=no
18328 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18329 ;;
18330 esac
18331 ;;
18332
18333sysv4*MP*)
18334 if test -d /usr/nec ;then
18335 version_type=linux
18336 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18337 soname_spec='$libname${shared_ext}.$major'
18338 shlibpath_var=LD_LIBRARY_PATH
18339 fi
18340 ;;
18341
18342sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18343 version_type=freebsd-elf
18344 need_lib_prefix=no
18345 need_version=no
18346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18347 soname_spec='${libname}${release}${shared_ext}$major'
18348 shlibpath_var=LD_LIBRARY_PATH
18349 hardcode_into_libs=yes
18350 if test "$with_gnu_ld" = yes; then
18351 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18352 shlibpath_overrides_runpath=no
18353 else
18354 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18355 shlibpath_overrides_runpath=yes
18356 case $host_os in
18357 sco3.2v5*)
18358 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18359 ;;
18360 esac
18361 fi
18362 sys_lib_dlsearch_path_spec='/usr/lib'
18363 ;;
18364
18365uts4*)
18366 version_type=linux
18367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18368 soname_spec='${libname}${release}${shared_ext}$major'
18369 shlibpath_var=LD_LIBRARY_PATH
18370 ;;
18371
18372*)
18373 dynamic_linker=no
18374 ;;
18375esac
64ff59ba 18376{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18377echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 18378test "$dynamic_linker" = no && can_build_shared=no
18379
18380variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18381if test "$GCC" = yes; then
18382 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18383fi
18384
64ff59ba 18385{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18386echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 18387hardcode_action_GCJ=
18388if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18389 test -n "$runpath_var_GCJ" || \
18390 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18391
18392 # We can hardcode non-existant directories.
18393 if test "$hardcode_direct_GCJ" != no &&
18394 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18395 # have to relink, otherwise we might link with an installed library
18396 # when we should be linking with a yet-to-be-installed one
18397 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18398 test "$hardcode_minus_L_GCJ" != no; then
18399 # Linking always hardcodes the temporary library directory.
18400 hardcode_action_GCJ=relink
18401 else
18402 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18403 hardcode_action_GCJ=immediate
18404 fi
18405else
18406 # We cannot hardcode anything, or else we can only hardcode existing
18407 # directories.
18408 hardcode_action_GCJ=unsupported
18409fi
64ff59ba 18410{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18411echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
d9898ee8 18412
18413if test "$hardcode_action_GCJ" = relink; then
18414 # Fast installation is not supported
18415 enable_fast_install=no
18416elif test "$shlibpath_overrides_runpath" = yes ||
18417 test "$enable_shared" = no; then
18418 # Fast installation is not necessary
18419 enable_fast_install=needless
18420fi
18421
18422
18423# The else clause should only fire when bootstrapping the
18424# libtool distribution, otherwise you forgot to ship ltmain.sh
18425# with your package, and you will get complaints that there are
18426# no rules to generate ltmain.sh.
18427if test -f "$ltmain"; then
18428 # See if we are running on zsh, and set the options which allow our commands through
18429 # without removal of \ escapes.
18430 if test -n "${ZSH_VERSION+set}" ; then
18431 setopt NO_GLOB_SUBST
18432 fi
18433 # Now quote all the things that may contain metacharacters while being
18434 # careful not to overquote the AC_SUBSTed values. We take copies of the
18435 # variables and quote the copies for generation of the libtool script.
18436 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18437 SED SHELL STRIP \
18438 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18439 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18440 deplibs_check_method reload_flag reload_cmds need_locks \
18441 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18442 lt_cv_sys_global_symbol_to_c_name_address \
18443 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18444 old_postinstall_cmds old_postuninstall_cmds \
18445 compiler_GCJ \
18446 CC_GCJ \
18447 LD_GCJ \
18448 lt_prog_compiler_wl_GCJ \
18449 lt_prog_compiler_pic_GCJ \
18450 lt_prog_compiler_static_GCJ \
18451 lt_prog_compiler_no_builtin_flag_GCJ \
18452 export_dynamic_flag_spec_GCJ \
18453 thread_safe_flag_spec_GCJ \
18454 whole_archive_flag_spec_GCJ \
18455 enable_shared_with_static_runtimes_GCJ \
18456 old_archive_cmds_GCJ \
18457 old_archive_from_new_cmds_GCJ \
18458 predep_objects_GCJ \
18459 postdep_objects_GCJ \
18460 predeps_GCJ \
18461 postdeps_GCJ \
18462 compiler_lib_search_path_GCJ \
18463 archive_cmds_GCJ \
18464 archive_expsym_cmds_GCJ \
18465 postinstall_cmds_GCJ \
18466 postuninstall_cmds_GCJ \
18467 old_archive_from_expsyms_cmds_GCJ \
18468 allow_undefined_flag_GCJ \
18469 no_undefined_flag_GCJ \
18470 export_symbols_cmds_GCJ \
18471 hardcode_libdir_flag_spec_GCJ \
18472 hardcode_libdir_flag_spec_ld_GCJ \
18473 hardcode_libdir_separator_GCJ \
18474 hardcode_automatic_GCJ \
18475 module_cmds_GCJ \
18476 module_expsym_cmds_GCJ \
18477 lt_cv_prog_compiler_c_o_GCJ \
18478 exclude_expsyms_GCJ \
18479 include_expsyms_GCJ; do
18480
18481 case $var in
18482 old_archive_cmds_GCJ | \
18483 old_archive_from_new_cmds_GCJ | \
18484 archive_cmds_GCJ | \
18485 archive_expsym_cmds_GCJ | \
18486 module_cmds_GCJ | \
18487 module_expsym_cmds_GCJ | \
18488 old_archive_from_expsyms_cmds_GCJ | \
18489 export_symbols_cmds_GCJ | \
18490 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18491 postinstall_cmds | postuninstall_cmds | \
18492 old_postinstall_cmds | old_postuninstall_cmds | \
18493 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18494 # Double-quote double-evaled strings.
18495 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18496 ;;
18497 *)
18498 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18499 ;;
18500 esac
18501 done
18502
18503 case $lt_echo in
18504 *'\$0 --fallback-echo"')
18505 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18506 ;;
18507 esac
18508
18509cfgfile="$ofile"
18510
18511 cat <<__EOF__ >> "$cfgfile"
18512# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18513
18514# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18515
18516# Shell to use when invoking shell scripts.
18517SHELL=$lt_SHELL
18518
18519# Whether or not to build shared libraries.
18520build_libtool_libs=$enable_shared
18521
18522# Whether or not to build static libraries.
18523build_old_libs=$enable_static
18524
18525# Whether or not to add -lc for building shared libraries.
18526build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18527
18528# Whether or not to disallow shared libs when runtime libs are static
18529allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18530
18531# Whether or not to optimize for fast installation.
18532fast_install=$enable_fast_install
18533
18534# The host system.
18535host_alias=$host_alias
18536host=$host
18537host_os=$host_os
18538
18539# The build system.
18540build_alias=$build_alias
18541build=$build
18542build_os=$build_os
18543
18544# An echo program that does not interpret backslashes.
18545echo=$lt_echo
18546
18547# The archiver.
18548AR=$lt_AR
18549AR_FLAGS=$lt_AR_FLAGS
18550
18551# A C compiler.
18552LTCC=$lt_LTCC
18553
18554# LTCC compiler flags.
18555LTCFLAGS=$lt_LTCFLAGS
18556
18557# A language-specific compiler.
18558CC=$lt_compiler_GCJ
18559
18560# Is the compiler the GNU C compiler?
18561with_gcc=$GCC_GCJ
18562
d9898ee8 18563# An ERE matcher.
18564EGREP=$lt_EGREP
18565
18566# The linker used to build libraries.
18567LD=$lt_LD_GCJ
18568
18569# Whether we need hard or soft links.
18570LN_S=$lt_LN_S
18571
18572# A BSD-compatible nm program.
18573NM=$lt_NM
18574
18575# A symbol stripping program
18576STRIP=$lt_STRIP
18577
18578# Used to examine libraries when file_magic_cmd begins "file"
18579MAGIC_CMD=$MAGIC_CMD
18580
18581# Used on cygwin: DLL creation program.
18582DLLTOOL="$DLLTOOL"
18583
18584# Used on cygwin: object dumper.
18585OBJDUMP="$OBJDUMP"
18586
18587# Used on cygwin: assembler.
18588AS="$AS"
18589
18590# The name of the directory that contains temporary libtool files.
18591objdir=$objdir
18592
18593# How to create reloadable object files.
18594reload_flag=$lt_reload_flag
18595reload_cmds=$lt_reload_cmds
18596
18597# How to pass a linker flag through the compiler.
18598wl=$lt_lt_prog_compiler_wl_GCJ
18599
18600# Object file suffix (normally "o").
18601objext="$ac_objext"
18602
18603# Old archive suffix (normally "a").
18604libext="$libext"
18605
18606# Shared library suffix (normally ".so").
18607shrext_cmds='$shrext_cmds'
18608
18609# Executable file suffix (normally "").
18610exeext="$exeext"
18611
18612# Additional compiler flags for building library objects.
18613pic_flag=$lt_lt_prog_compiler_pic_GCJ
18614pic_mode=$pic_mode
18615
18616# What is the maximum length of a command?
18617max_cmd_len=$lt_cv_sys_max_cmd_len
18618
18619# Does compiler simultaneously support -c and -o options?
18620compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18621
18622# Must we lock files when doing compilation?
18623need_locks=$lt_need_locks
18624
18625# Do we need the lib prefix for modules?
18626need_lib_prefix=$need_lib_prefix
18627
18628# Do we need a version for libraries?
18629need_version=$need_version
18630
18631# Whether dlopen is supported.
18632dlopen_support=$enable_dlopen
18633
18634# Whether dlopen of programs is supported.
18635dlopen_self=$enable_dlopen_self
18636
18637# Whether dlopen of statically linked programs is supported.
18638dlopen_self_static=$enable_dlopen_self_static
18639
18640# Compiler flag to prevent dynamic linking.
18641link_static_flag=$lt_lt_prog_compiler_static_GCJ
18642
18643# Compiler flag to turn off builtin functions.
18644no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18645
18646# Compiler flag to allow reflexive dlopens.
18647export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18648
18649# Compiler flag to generate shared objects directly from archives.
18650whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18651
18652# Compiler flag to generate thread-safe objects.
18653thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18654
18655# Library versioning type.
18656version_type=$version_type
18657
18658# Format of library name prefix.
18659libname_spec=$lt_libname_spec
18660
18661# List of archive names. First name is the real one, the rest are links.
18662# The last name is the one that the linker finds with -lNAME.
18663library_names_spec=$lt_library_names_spec
18664
18665# The coded name of the library, if different from the real name.
18666soname_spec=$lt_soname_spec
18667
18668# Commands used to build and install an old-style archive.
18669RANLIB=$lt_RANLIB
18670old_archive_cmds=$lt_old_archive_cmds_GCJ
18671old_postinstall_cmds=$lt_old_postinstall_cmds
18672old_postuninstall_cmds=$lt_old_postuninstall_cmds
18673
18674# Create an old-style archive from a shared archive.
18675old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18676
18677# Create a temporary old-style archive to link instead of a shared archive.
18678old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18679
18680# Commands used to build and install a shared archive.
18681archive_cmds=$lt_archive_cmds_GCJ
18682archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18683postinstall_cmds=$lt_postinstall_cmds
18684postuninstall_cmds=$lt_postuninstall_cmds
18685
18686# Commands used to build a loadable module (assumed same as above if empty)
18687module_cmds=$lt_module_cmds_GCJ
18688module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18689
18690# Commands to strip libraries.
18691old_striplib=$lt_old_striplib
18692striplib=$lt_striplib
18693
18694# Dependencies to place before the objects being linked to create a
18695# shared library.
64ff59ba 18696predep_objects=$lt_predep_objects_GCJ
d9898ee8 18697
18698# Dependencies to place after the objects being linked to create a
18699# shared library.
64ff59ba 18700postdep_objects=$lt_postdep_objects_GCJ
d9898ee8 18701
18702# Dependencies to place before the objects being linked to create a
18703# shared library.
18704predeps=$lt_predeps_GCJ
18705
18706# Dependencies to place after the objects being linked to create a
18707# shared library.
18708postdeps=$lt_postdeps_GCJ
18709
18710# The library search path used internally by the compiler when linking
18711# a shared library.
64ff59ba 18712compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
d9898ee8 18713
18714# Method to check whether dependent libraries are shared objects.
18715deplibs_check_method=$lt_deplibs_check_method
18716
18717# Command to use when deplibs_check_method == file_magic.
18718file_magic_cmd=$lt_file_magic_cmd
18719
18720# Flag that allows shared libraries with undefined symbols to be built.
18721allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18722
18723# Flag that forces no undefined symbols.
18724no_undefined_flag=$lt_no_undefined_flag_GCJ
18725
18726# Commands used to finish a libtool library installation in a directory.
18727finish_cmds=$lt_finish_cmds
18728
18729# Same as above, but a single script fragment to be evaled but not shown.
18730finish_eval=$lt_finish_eval
18731
18732# Take the output of nm and produce a listing of raw symbols and C names.
18733global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18734
18735# Transform the output of nm in a proper C declaration
18736global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18737
18738# Transform the output of nm in a C name address pair
18739global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18740
18741# This is the shared library runtime path variable.
18742runpath_var=$runpath_var
18743
18744# This is the shared library path variable.
18745shlibpath_var=$shlibpath_var
18746
18747# Is shlibpath searched before the hard-coded library search path?
18748shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18749
18750# How to hardcode a shared library path into an executable.
18751hardcode_action=$hardcode_action_GCJ
18752
18753# Whether we should hardcode library paths into libraries.
18754hardcode_into_libs=$hardcode_into_libs
18755
18756# Flag to hardcode \$libdir into a binary during linking.
18757# This must work even if \$libdir does not exist.
18758hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18759
18760# If ld is used when linking, flag to hardcode \$libdir into
18761# a binary during linking. This must work even if \$libdir does
18762# not exist.
18763hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18764
18765# Whether we need a single -rpath flag with a separated argument.
18766hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18767
18768# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18769# resulting binary.
18770hardcode_direct=$hardcode_direct_GCJ
18771
18772# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18773# resulting binary.
18774hardcode_minus_L=$hardcode_minus_L_GCJ
18775
18776# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18777# the resulting binary.
18778hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18779
18780# Set to yes if building a shared library automatically hardcodes DIR into the library
18781# and all subsequent libraries and executables linked against it.
18782hardcode_automatic=$hardcode_automatic_GCJ
18783
18784# Variables whose values should be saved in libtool wrapper scripts and
18785# restored at relink time.
18786variables_saved_for_relink="$variables_saved_for_relink"
18787
18788# Whether libtool must link a program against all its dependency libraries.
18789link_all_deplibs=$link_all_deplibs_GCJ
18790
18791# Compile-time system search path for libraries
64ff59ba 18792sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 18793
18794# Run-time system search path for libraries
18795sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18796
18797# Fix the shell variable \$srcfile for the compiler.
18798fix_srcfile_path="$fix_srcfile_path_GCJ"
18799
18800# Set to yes if exported symbols are required.
18801always_export_symbols=$always_export_symbols_GCJ
18802
18803# The commands to list exported symbols.
18804export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18805
18806# The commands to extract the exported symbol list from a shared archive.
18807extract_expsyms_cmds=$lt_extract_expsyms_cmds
18808
18809# Symbols that should not be listed in the preloaded symbols.
18810exclude_expsyms=$lt_exclude_expsyms_GCJ
18811
18812# Symbols that must always be exported.
18813include_expsyms=$lt_include_expsyms_GCJ
18814
18815# ### END LIBTOOL TAG CONFIG: $tagname
18816
18817__EOF__
18818
18819
18820else
18821 # If there is no Makefile yet, we rely on a make rule to execute
18822 # `config.status --recheck' to rerun these tests and create the
18823 # libtool script then.
18824 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18825 if test -f "$ltmain_in"; then
18826 test -f Makefile && make "$ltmain"
18827 fi
18828fi
18829
18830
18831ac_ext=c
18832ac_cpp='$CPP $CPPFLAGS'
18833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18835ac_compiler_gnu=$ac_cv_c_compiler_gnu
18836
18837CC="$lt_save_CC"
18838
18839 else
18840 tagname=""
18841 fi
18842 ;;
18843
18844 RC)
18845
18846
d9898ee8 18847# Source file extension for RC test sources.
18848ac_ext=rc
18849
18850# Object file extension for compiled RC test sources.
18851objext=o
18852objext_RC=$objext
18853
18854# Code to be used in simple compile tests
18855lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18856
18857# Code to be used in simple link tests
18858lt_simple_link_test_code="$lt_simple_compile_test_code"
18859
18860# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18861
18862# If no C compiler was specified, use CC.
18863LTCC=${LTCC-"$CC"}
18864
18865# If no C compiler flags were specified, use CFLAGS.
18866LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18867
18868# Allow CC to be a program name with arguments.
18869compiler=$CC
18870
18871
18872# save warnings/boilerplate of simple test code
18873ac_outfile=conftest.$ac_objext
18874printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18875eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18876_lt_compiler_boilerplate=`cat conftest.err`
18877$rm conftest*
18878
18879ac_outfile=conftest.$ac_objext
18880printf "$lt_simple_link_test_code" >conftest.$ac_ext
18881eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18882_lt_linker_boilerplate=`cat conftest.err`
18883$rm conftest*
18884
18885
18886# Allow CC to be a program name with arguments.
18887lt_save_CC="$CC"
18888CC=${RC-"windres"}
18889compiler=$CC
18890compiler_RC=$CC
18891for cc_temp in $compiler""; do
18892 case $cc_temp in
18893 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18894 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18895 \-*) ;;
18896 *) break;;
18897 esac
18898done
18899cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18900
18901lt_cv_prog_compiler_c_o_RC=yes
18902
18903# The else clause should only fire when bootstrapping the
18904# libtool distribution, otherwise you forgot to ship ltmain.sh
18905# with your package, and you will get complaints that there are
18906# no rules to generate ltmain.sh.
18907if test -f "$ltmain"; then
18908 # See if we are running on zsh, and set the options which allow our commands through
18909 # without removal of \ escapes.
18910 if test -n "${ZSH_VERSION+set}" ; then
18911 setopt NO_GLOB_SUBST
18912 fi
18913 # Now quote all the things that may contain metacharacters while being
18914 # careful not to overquote the AC_SUBSTed values. We take copies of the
18915 # variables and quote the copies for generation of the libtool script.
18916 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18917 SED SHELL STRIP \
18918 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18919 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18920 deplibs_check_method reload_flag reload_cmds need_locks \
18921 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18922 lt_cv_sys_global_symbol_to_c_name_address \
18923 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18924 old_postinstall_cmds old_postuninstall_cmds \
18925 compiler_RC \
18926 CC_RC \
18927 LD_RC \
18928 lt_prog_compiler_wl_RC \
18929 lt_prog_compiler_pic_RC \
18930 lt_prog_compiler_static_RC \
18931 lt_prog_compiler_no_builtin_flag_RC \
18932 export_dynamic_flag_spec_RC \
18933 thread_safe_flag_spec_RC \
18934 whole_archive_flag_spec_RC \
18935 enable_shared_with_static_runtimes_RC \
18936 old_archive_cmds_RC \
18937 old_archive_from_new_cmds_RC \
18938 predep_objects_RC \
18939 postdep_objects_RC \
18940 predeps_RC \
18941 postdeps_RC \
18942 compiler_lib_search_path_RC \
18943 archive_cmds_RC \
18944 archive_expsym_cmds_RC \
18945 postinstall_cmds_RC \
18946 postuninstall_cmds_RC \
18947 old_archive_from_expsyms_cmds_RC \
18948 allow_undefined_flag_RC \
18949 no_undefined_flag_RC \
18950 export_symbols_cmds_RC \
18951 hardcode_libdir_flag_spec_RC \
18952 hardcode_libdir_flag_spec_ld_RC \
18953 hardcode_libdir_separator_RC \
18954 hardcode_automatic_RC \
18955 module_cmds_RC \
18956 module_expsym_cmds_RC \
18957 lt_cv_prog_compiler_c_o_RC \
18958 exclude_expsyms_RC \
18959 include_expsyms_RC; do
18960
18961 case $var in
18962 old_archive_cmds_RC | \
18963 old_archive_from_new_cmds_RC | \
18964 archive_cmds_RC | \
18965 archive_expsym_cmds_RC | \
18966 module_cmds_RC | \
18967 module_expsym_cmds_RC | \
18968 old_archive_from_expsyms_cmds_RC | \
18969 export_symbols_cmds_RC | \
18970 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18971 postinstall_cmds | postuninstall_cmds | \
18972 old_postinstall_cmds | old_postuninstall_cmds | \
18973 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18974 # Double-quote double-evaled strings.
18975 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18976 ;;
18977 *)
18978 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18979 ;;
18980 esac
18981 done
18982
18983 case $lt_echo in
18984 *'\$0 --fallback-echo"')
18985 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18986 ;;
18987 esac
18988
18989cfgfile="$ofile"
18990
18991 cat <<__EOF__ >> "$cfgfile"
18992# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18993
18994# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18995
18996# Shell to use when invoking shell scripts.
18997SHELL=$lt_SHELL
18998
18999# Whether or not to build shared libraries.
19000build_libtool_libs=$enable_shared
19001
19002# Whether or not to build static libraries.
19003build_old_libs=$enable_static
19004
19005# Whether or not to add -lc for building shared libraries.
19006build_libtool_need_lc=$archive_cmds_need_lc_RC
19007
19008# Whether or not to disallow shared libs when runtime libs are static
19009allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19010
19011# Whether or not to optimize for fast installation.
19012fast_install=$enable_fast_install
19013
19014# The host system.
19015host_alias=$host_alias
19016host=$host
19017host_os=$host_os
19018
19019# The build system.
19020build_alias=$build_alias
19021build=$build
19022build_os=$build_os
19023
19024# An echo program that does not interpret backslashes.
19025echo=$lt_echo
19026
19027# The archiver.
19028AR=$lt_AR
19029AR_FLAGS=$lt_AR_FLAGS
19030
19031# A C compiler.
19032LTCC=$lt_LTCC
19033
19034# LTCC compiler flags.
19035LTCFLAGS=$lt_LTCFLAGS
19036
19037# A language-specific compiler.
19038CC=$lt_compiler_RC
19039
19040# Is the compiler the GNU C compiler?
19041with_gcc=$GCC_RC
19042
d9898ee8 19043# An ERE matcher.
19044EGREP=$lt_EGREP
19045
19046# The linker used to build libraries.
19047LD=$lt_LD_RC
19048
19049# Whether we need hard or soft links.
19050LN_S=$lt_LN_S
19051
19052# A BSD-compatible nm program.
19053NM=$lt_NM
19054
19055# A symbol stripping program
19056STRIP=$lt_STRIP
19057
19058# Used to examine libraries when file_magic_cmd begins "file"
19059MAGIC_CMD=$MAGIC_CMD
19060
19061# Used on cygwin: DLL creation program.
19062DLLTOOL="$DLLTOOL"
19063
19064# Used on cygwin: object dumper.
19065OBJDUMP="$OBJDUMP"
19066
19067# Used on cygwin: assembler.
19068AS="$AS"
19069
19070# The name of the directory that contains temporary libtool files.
19071objdir=$objdir
19072
19073# How to create reloadable object files.
19074reload_flag=$lt_reload_flag
19075reload_cmds=$lt_reload_cmds
19076
19077# How to pass a linker flag through the compiler.
19078wl=$lt_lt_prog_compiler_wl_RC
19079
19080# Object file suffix (normally "o").
19081objext="$ac_objext"
19082
19083# Old archive suffix (normally "a").
19084libext="$libext"
19085
19086# Shared library suffix (normally ".so").
19087shrext_cmds='$shrext_cmds'
19088
19089# Executable file suffix (normally "").
19090exeext="$exeext"
19091
19092# Additional compiler flags for building library objects.
19093pic_flag=$lt_lt_prog_compiler_pic_RC
19094pic_mode=$pic_mode
19095
19096# What is the maximum length of a command?
19097max_cmd_len=$lt_cv_sys_max_cmd_len
19098
19099# Does compiler simultaneously support -c and -o options?
19100compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19101
19102# Must we lock files when doing compilation?
19103need_locks=$lt_need_locks
19104
19105# Do we need the lib prefix for modules?
19106need_lib_prefix=$need_lib_prefix
19107
19108# Do we need a version for libraries?
19109need_version=$need_version
19110
19111# Whether dlopen is supported.
19112dlopen_support=$enable_dlopen
19113
19114# Whether dlopen of programs is supported.
19115dlopen_self=$enable_dlopen_self
19116
19117# Whether dlopen of statically linked programs is supported.
19118dlopen_self_static=$enable_dlopen_self_static
19119
19120# Compiler flag to prevent dynamic linking.
19121link_static_flag=$lt_lt_prog_compiler_static_RC
19122
19123# Compiler flag to turn off builtin functions.
19124no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19125
19126# Compiler flag to allow reflexive dlopens.
19127export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19128
19129# Compiler flag to generate shared objects directly from archives.
19130whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19131
19132# Compiler flag to generate thread-safe objects.
19133thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19134
19135# Library versioning type.
19136version_type=$version_type
19137
19138# Format of library name prefix.
19139libname_spec=$lt_libname_spec
19140
19141# List of archive names. First name is the real one, the rest are links.
19142# The last name is the one that the linker finds with -lNAME.
19143library_names_spec=$lt_library_names_spec
19144
19145# The coded name of the library, if different from the real name.
19146soname_spec=$lt_soname_spec
19147
19148# Commands used to build and install an old-style archive.
19149RANLIB=$lt_RANLIB
19150old_archive_cmds=$lt_old_archive_cmds_RC
19151old_postinstall_cmds=$lt_old_postinstall_cmds
19152old_postuninstall_cmds=$lt_old_postuninstall_cmds
19153
19154# Create an old-style archive from a shared archive.
19155old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19156
19157# Create a temporary old-style archive to link instead of a shared archive.
19158old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19159
19160# Commands used to build and install a shared archive.
19161archive_cmds=$lt_archive_cmds_RC
19162archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19163postinstall_cmds=$lt_postinstall_cmds
19164postuninstall_cmds=$lt_postuninstall_cmds
19165
19166# Commands used to build a loadable module (assumed same as above if empty)
19167module_cmds=$lt_module_cmds_RC
19168module_expsym_cmds=$lt_module_expsym_cmds_RC
19169
19170# Commands to strip libraries.
19171old_striplib=$lt_old_striplib
19172striplib=$lt_striplib
19173
19174# Dependencies to place before the objects being linked to create a
19175# shared library.
64ff59ba 19176predep_objects=$lt_predep_objects_RC
d9898ee8 19177
19178# Dependencies to place after the objects being linked to create a
19179# shared library.
64ff59ba 19180postdep_objects=$lt_postdep_objects_RC
d9898ee8 19181
19182# Dependencies to place before the objects being linked to create a
19183# shared library.
19184predeps=$lt_predeps_RC
19185
19186# Dependencies to place after the objects being linked to create a
19187# shared library.
19188postdeps=$lt_postdeps_RC
19189
19190# The library search path used internally by the compiler when linking
19191# a shared library.
64ff59ba 19192compiler_lib_search_path=$lt_compiler_lib_search_path_RC
d9898ee8 19193
19194# Method to check whether dependent libraries are shared objects.
19195deplibs_check_method=$lt_deplibs_check_method
19196
19197# Command to use when deplibs_check_method == file_magic.
19198file_magic_cmd=$lt_file_magic_cmd
19199
19200# Flag that allows shared libraries with undefined symbols to be built.
19201allow_undefined_flag=$lt_allow_undefined_flag_RC
19202
19203# Flag that forces no undefined symbols.
19204no_undefined_flag=$lt_no_undefined_flag_RC
19205
19206# Commands used to finish a libtool library installation in a directory.
19207finish_cmds=$lt_finish_cmds
19208
19209# Same as above, but a single script fragment to be evaled but not shown.
19210finish_eval=$lt_finish_eval
19211
19212# Take the output of nm and produce a listing of raw symbols and C names.
19213global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19214
19215# Transform the output of nm in a proper C declaration
19216global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19217
19218# Transform the output of nm in a C name address pair
19219global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19220
19221# This is the shared library runtime path variable.
19222runpath_var=$runpath_var
19223
19224# This is the shared library path variable.
19225shlibpath_var=$shlibpath_var
19226
19227# Is shlibpath searched before the hard-coded library search path?
19228shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19229
19230# How to hardcode a shared library path into an executable.
19231hardcode_action=$hardcode_action_RC
19232
19233# Whether we should hardcode library paths into libraries.
19234hardcode_into_libs=$hardcode_into_libs
19235
19236# Flag to hardcode \$libdir into a binary during linking.
19237# This must work even if \$libdir does not exist.
19238hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19239
19240# If ld is used when linking, flag to hardcode \$libdir into
19241# a binary during linking. This must work even if \$libdir does
19242# not exist.
19243hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19244
19245# Whether we need a single -rpath flag with a separated argument.
19246hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19247
19248# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19249# resulting binary.
19250hardcode_direct=$hardcode_direct_RC
19251
19252# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19253# resulting binary.
19254hardcode_minus_L=$hardcode_minus_L_RC
19255
19256# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19257# the resulting binary.
19258hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19259
19260# Set to yes if building a shared library automatically hardcodes DIR into the library
19261# and all subsequent libraries and executables linked against it.
19262hardcode_automatic=$hardcode_automatic_RC
19263
19264# Variables whose values should be saved in libtool wrapper scripts and
19265# restored at relink time.
19266variables_saved_for_relink="$variables_saved_for_relink"
19267
19268# Whether libtool must link a program against all its dependency libraries.
19269link_all_deplibs=$link_all_deplibs_RC
19270
19271# Compile-time system search path for libraries
64ff59ba 19272sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 19273
19274# Run-time system search path for libraries
19275sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19276
19277# Fix the shell variable \$srcfile for the compiler.
19278fix_srcfile_path="$fix_srcfile_path_RC"
19279
19280# Set to yes if exported symbols are required.
19281always_export_symbols=$always_export_symbols_RC
19282
19283# The commands to list exported symbols.
19284export_symbols_cmds=$lt_export_symbols_cmds_RC
19285
19286# The commands to extract the exported symbol list from a shared archive.
19287extract_expsyms_cmds=$lt_extract_expsyms_cmds
19288
19289# Symbols that should not be listed in the preloaded symbols.
19290exclude_expsyms=$lt_exclude_expsyms_RC
19291
19292# Symbols that must always be exported.
19293include_expsyms=$lt_include_expsyms_RC
19294
19295# ### END LIBTOOL TAG CONFIG: $tagname
19296
19297__EOF__
19298
19299
19300else
19301 # If there is no Makefile yet, we rely on a make rule to execute
19302 # `config.status --recheck' to rerun these tests and create the
19303 # libtool script then.
19304 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19305 if test -f "$ltmain_in"; then
19306 test -f Makefile && make "$ltmain"
19307 fi
19308fi
19309
19310
19311ac_ext=c
19312ac_cpp='$CPP $CPPFLAGS'
19313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19315ac_compiler_gnu=$ac_cv_c_compiler_gnu
19316
19317CC="$lt_save_CC"
19318
19319 ;;
19320
19321 *)
19322 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19323echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19324 { (exit 1); exit 1; }; }
19325 ;;
19326 esac
19327
19328 # Append the new tag name to the list of available tags.
19329 if test -n "$tagname" ; then
19330 available_tags="$available_tags $tagname"
19331 fi
19332 fi
19333 done
19334 IFS="$lt_save_ifs"
19335
19336 # Now substitute the updated list of available tags.
19337 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19338 mv "${ofile}T" "$ofile"
19339 chmod +x "$ofile"
19340 else
19341 rm -f "${ofile}T"
19342 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19343echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19344 { (exit 1); exit 1; }; }
19345 fi
19346fi
19347
19348
19349
19350# This can be used to rebuild libtool when needed
19351LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19352
19353# Always use our own libtool.
19354LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19355
19356# Prevent multiple expansion
19357
19358
19359
19360
19361
19362
19363
19364
19365
19366
19367
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377
19378if test "$GCC" = yes
19379then
19380 CFLAGS="-Wall $CFLAGS"
19381fi
19382
19383CFLAGS="$CFLAGS -I$srcdir/.. -I.."
19384
19385
64ff59ba 19386{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19387echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
d9898ee8 19388if test "${ac_cv_header_stdc+set}" = set; then
19389 echo $ECHO_N "(cached) $ECHO_C" >&6
19390else
19391 cat >conftest.$ac_ext <<_ACEOF
19392/* confdefs.h. */
19393_ACEOF
19394cat confdefs.h >>conftest.$ac_ext
19395cat >>conftest.$ac_ext <<_ACEOF
19396/* end confdefs.h. */
19397#include <stdlib.h>
19398#include <stdarg.h>
19399#include <string.h>
19400#include <float.h>
19401
19402int
19403main ()
19404{
19405
19406 ;
19407 return 0;
19408}
19409_ACEOF
19410rm -f conftest.$ac_objext
64ff59ba 19411if { (ac_try="$ac_compile"
19412case "(($ac_try" in
19413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19414 *) ac_try_echo=$ac_try;;
19415esac
19416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19417 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19418 ac_status=$?
19419 grep -v '^ *+' conftest.er1 >conftest.err
19420 rm -f conftest.er1
19421 cat conftest.err >&5
19422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19423 (exit $ac_status); } && {
19424 test -z "$ac_c_werror_flag" ||
19425 test ! -s conftest.err
19426 } && test -s conftest.$ac_objext; then
d9898ee8 19427 ac_cv_header_stdc=yes
19428else
19429 echo "$as_me: failed program was:" >&5
19430sed 's/^/| /' conftest.$ac_ext >&5
19431
64ff59ba 19432 ac_cv_header_stdc=no
d9898ee8 19433fi
64ff59ba 19434
19435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 19436
19437if test $ac_cv_header_stdc = yes; then
19438 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19439 cat >conftest.$ac_ext <<_ACEOF
19440/* confdefs.h. */
19441_ACEOF
19442cat confdefs.h >>conftest.$ac_ext
19443cat >>conftest.$ac_ext <<_ACEOF
19444/* end confdefs.h. */
19445#include <string.h>
19446
19447_ACEOF
19448if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19449 $EGREP "memchr" >/dev/null 2>&1; then
19450 :
19451else
19452 ac_cv_header_stdc=no
19453fi
19454rm -f conftest*
19455
19456fi
19457
19458if test $ac_cv_header_stdc = yes; then
19459 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19460 cat >conftest.$ac_ext <<_ACEOF
19461/* confdefs.h. */
19462_ACEOF
19463cat confdefs.h >>conftest.$ac_ext
19464cat >>conftest.$ac_ext <<_ACEOF
19465/* end confdefs.h. */
19466#include <stdlib.h>
19467
19468_ACEOF
19469if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19470 $EGREP "free" >/dev/null 2>&1; then
19471 :
19472else
19473 ac_cv_header_stdc=no
19474fi
19475rm -f conftest*
19476
19477fi
19478
19479if test $ac_cv_header_stdc = yes; then
19480 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19481 if test "$cross_compiling" = yes; then
19482 :
19483else
19484 cat >conftest.$ac_ext <<_ACEOF
19485/* confdefs.h. */
19486_ACEOF
19487cat confdefs.h >>conftest.$ac_ext
19488cat >>conftest.$ac_ext <<_ACEOF
19489/* end confdefs.h. */
19490#include <ctype.h>
64ff59ba 19491#include <stdlib.h>
d9898ee8 19492#if ((' ' & 0x0FF) == 0x020)
19493# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19494# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19495#else
19496# define ISLOWER(c) \
19497 (('a' <= (c) && (c) <= 'i') \
19498 || ('j' <= (c) && (c) <= 'r') \
19499 || ('s' <= (c) && (c) <= 'z'))
19500# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19501#endif
19502
19503#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19504int
19505main ()
19506{
19507 int i;
19508 for (i = 0; i < 256; i++)
19509 if (XOR (islower (i), ISLOWER (i))
19510 || toupper (i) != TOUPPER (i))
64ff59ba 19511 return 2;
19512 return 0;
d9898ee8 19513}
19514_ACEOF
19515rm -f conftest$ac_exeext
64ff59ba 19516if { (ac_try="$ac_link"
19517case "(($ac_try" in
19518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19519 *) ac_try_echo=$ac_try;;
19520esac
19521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19522 (eval "$ac_link") 2>&5
d9898ee8 19523 ac_status=$?
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
64ff59ba 19526 { (case "(($ac_try" in
19527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19528 *) ac_try_echo=$ac_try;;
19529esac
19530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19531 (eval "$ac_try") 2>&5
d9898ee8 19532 ac_status=$?
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); }; }; then
19535 :
19536else
19537 echo "$as_me: program exited with status $ac_status" >&5
19538echo "$as_me: failed program was:" >&5
19539sed 's/^/| /' conftest.$ac_ext >&5
19540
19541( exit $ac_status )
19542ac_cv_header_stdc=no
19543fi
64ff59ba 19544rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 19545fi
64ff59ba 19546
19547
d9898ee8 19548fi
19549fi
64ff59ba 19550{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19551echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
d9898ee8 19552if test $ac_cv_header_stdc = yes; then
19553
19554cat >>confdefs.h <<\_ACEOF
19555#define STDC_HEADERS 1
19556_ACEOF
19557
19558fi
19559
19560
19561
19562for ac_header in sys/types.h
19563do
19564as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 19565if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19566 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19567echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19568if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 19569 echo $ECHO_N "(cached) $ECHO_C" >&6
19570fi
64ff59ba 19571ac_res=`eval echo '${'$as_ac_Header'}'`
19572 { echo "$as_me:$LINENO: result: $ac_res" >&5
19573echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 19574else
19575 # Is the header compilable?
64ff59ba 19576{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19577echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 19578cat >conftest.$ac_ext <<_ACEOF
19579/* confdefs.h. */
19580_ACEOF
19581cat confdefs.h >>conftest.$ac_ext
19582cat >>conftest.$ac_ext <<_ACEOF
19583/* end confdefs.h. */
19584$ac_includes_default
19585#include <$ac_header>
19586_ACEOF
19587rm -f conftest.$ac_objext
64ff59ba 19588if { (ac_try="$ac_compile"
19589case "(($ac_try" in
19590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19591 *) ac_try_echo=$ac_try;;
19592esac
19593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19594 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19595 ac_status=$?
19596 grep -v '^ *+' conftest.er1 >conftest.err
19597 rm -f conftest.er1
19598 cat conftest.err >&5
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19600 (exit $ac_status); } && {
19601 test -z "$ac_c_werror_flag" ||
19602 test ! -s conftest.err
19603 } && test -s conftest.$ac_objext; then
d9898ee8 19604 ac_header_compiler=yes
19605else
19606 echo "$as_me: failed program was:" >&5
19607sed 's/^/| /' conftest.$ac_ext >&5
19608
64ff59ba 19609 ac_header_compiler=no
d9898ee8 19610fi
64ff59ba 19611
19612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19613{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19614echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 19615
19616# Is the header present?
64ff59ba 19617{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19618echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 19619cat >conftest.$ac_ext <<_ACEOF
19620/* confdefs.h. */
19621_ACEOF
19622cat confdefs.h >>conftest.$ac_ext
19623cat >>conftest.$ac_ext <<_ACEOF
19624/* end confdefs.h. */
19625#include <$ac_header>
19626_ACEOF
64ff59ba 19627if { (ac_try="$ac_cpp conftest.$ac_ext"
19628case "(($ac_try" in
19629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630 *) ac_try_echo=$ac_try;;
19631esac
19632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 19634 ac_status=$?
19635 grep -v '^ *+' conftest.er1 >conftest.err
19636 rm -f conftest.er1
19637 cat conftest.err >&5
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19639 (exit $ac_status); } >/dev/null && {
19640 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19641 test ! -s conftest.err
19642 }; then
d9898ee8 19643 ac_header_preproc=yes
19644else
19645 echo "$as_me: failed program was:" >&5
19646sed 's/^/| /' conftest.$ac_ext >&5
19647
19648 ac_header_preproc=no
19649fi
64ff59ba 19650
d9898ee8 19651rm -f conftest.err conftest.$ac_ext
64ff59ba 19652{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19653echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 19654
19655# So? What about this header?
19656case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19657 yes:no: )
19658 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19659echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19661echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19662 ac_header_preproc=yes
19663 ;;
19664 no:yes:* )
19665 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19666echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19667 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19668echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19669 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19670echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19671 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19672echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19674echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19675 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19676echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64ff59ba 19677 ( cat <<\_ASBOX
d9898ee8 19678## -------------------------------------------------- ##
19679## Report this to courier-users@lists.sourceforge.net ##
19680## -------------------------------------------------- ##
19681_ASBOX
64ff59ba 19682 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 19683 ;;
19684esac
64ff59ba 19685{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19686echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19687if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 19688 echo $ECHO_N "(cached) $ECHO_C" >&6
19689else
19690 eval "$as_ac_Header=\$ac_header_preproc"
19691fi
64ff59ba 19692ac_res=`eval echo '${'$as_ac_Header'}'`
19693 { echo "$as_me:$LINENO: result: $ac_res" >&5
19694echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 19695
19696fi
19697if test `eval echo '${'$as_ac_Header'}'` = yes; then
19698 cat >>confdefs.h <<_ACEOF
19699#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19700_ACEOF
19701
19702fi
19703
19704done
19705
19706
19707
19708
64ff59ba 19709# Check whether --with-int32 was given.
d9898ee8 19710if test "${with_int32+set}" = set; then
64ff59ba 19711 withval=$with_int32; int32="$withval"
d9898ee8 19712else
19713
19714
64ff59ba 19715 { echo "$as_me:$LINENO: checking for uint32_t" >&5
19716echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
d9898ee8 19717
19718 cat >conftest.$ac_ext <<_ACEOF
19719/* confdefs.h. */
19720_ACEOF
19721cat confdefs.h >>conftest.$ac_ext
19722cat >>conftest.$ac_ext <<_ACEOF
19723/* end confdefs.h. */
19724
19725#if HAVE_SYS_TYPES_H
19726#include <sys/types.h>
19727#endif
19728
19729int
19730main ()
19731{
19732
19733 uint32_t i=0;
19734
19735 ;
19736 return 0;
19737}
19738_ACEOF
19739rm -f conftest.$ac_objext
64ff59ba 19740if { (ac_try="$ac_compile"
19741case "(($ac_try" in
19742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19743 *) ac_try_echo=$ac_try;;
19744esac
19745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19746 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19747 ac_status=$?
19748 grep -v '^ *+' conftest.er1 >conftest.err
19749 rm -f conftest.er1
19750 cat conftest.err >&5
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19752 (exit $ac_status); } && {
19753 test -z "$ac_c_werror_flag" ||
19754 test ! -s conftest.err
19755 } && test -s conftest.$ac_objext; then
19756 { echo "$as_me:$LINENO: result: yes" >&5
19757echo "${ECHO_T}yes" >&6; } ; int32="uint32_t"
d9898ee8 19758else
19759 echo "$as_me: failed program was:" >&5
19760sed 's/^/| /' conftest.$ac_ext >&5
19761
19762
19763
64ff59ba 19764 { echo "$as_me:$LINENO: result: no" >&5
19765echo "${ECHO_T}no" >&6; }
19766 { echo "$as_me:$LINENO: checking for u_int_32_t" >&5
19767echo $ECHO_N "checking for u_int_32_t... $ECHO_C" >&6; }
d9898ee8 19768
19769 cat >conftest.$ac_ext <<_ACEOF
19770/* confdefs.h. */
19771_ACEOF
19772cat confdefs.h >>conftest.$ac_ext
19773cat >>conftest.$ac_ext <<_ACEOF
19774/* end confdefs.h. */
19775
19776#if HAVE_SYS_TYPES_H
19777#include <sys/types.h>
19778#endif
19779
19780int
19781main ()
19782{
19783
19784 u_int32_t i=0;
19785
19786 ;
19787 return 0;
19788}
19789_ACEOF
19790rm -f conftest.$ac_objext
64ff59ba 19791if { (ac_try="$ac_compile"
19792case "(($ac_try" in
19793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19794 *) ac_try_echo=$ac_try;;
19795esac
19796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19797 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19798 ac_status=$?
19799 grep -v '^ *+' conftest.er1 >conftest.err
19800 rm -f conftest.er1
19801 cat conftest.err >&5
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19803 (exit $ac_status); } && {
19804 test -z "$ac_c_werror_flag" ||
19805 test ! -s conftest.err
19806 } && test -s conftest.$ac_objext; then
19807 { echo "$as_me:$LINENO: result: yes" >&5
19808echo "${ECHO_T}yes" >&6; }; int32="u_int32_t"
d9898ee8 19809else
19810 echo "$as_me: failed program was:" >&5
19811sed 's/^/| /' conftest.$ac_ext >&5
19812
19813
19814
64ff59ba 19815 { echo "$as_me:$LINENO: result: no" >&5
19816echo "${ECHO_T}no" >&6; }
d9898ee8 19817
64ff59ba 19818 { echo "$as_me:$LINENO: checking for unsigned" >&5
19819echo $ECHO_N "checking for unsigned... $ECHO_C" >&6; }
d9898ee8 19820if test "${ac_cv_type_unsigned+set}" = set; then
19821 echo $ECHO_N "(cached) $ECHO_C" >&6
19822else
19823 cat >conftest.$ac_ext <<_ACEOF
19824/* confdefs.h. */
19825_ACEOF
19826cat confdefs.h >>conftest.$ac_ext
19827cat >>conftest.$ac_ext <<_ACEOF
19828/* end confdefs.h. */
19829$ac_includes_default
64ff59ba 19830typedef unsigned ac__type_new_;
d9898ee8 19831int
19832main ()
19833{
64ff59ba 19834if ((ac__type_new_ *) 0)
d9898ee8 19835 return 0;
64ff59ba 19836if (sizeof (ac__type_new_))
d9898ee8 19837 return 0;
19838 ;
19839 return 0;
19840}
19841_ACEOF
19842rm -f conftest.$ac_objext
64ff59ba 19843if { (ac_try="$ac_compile"
19844case "(($ac_try" in
19845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19846 *) ac_try_echo=$ac_try;;
19847esac
19848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19849 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19850 ac_status=$?
19851 grep -v '^ *+' conftest.er1 >conftest.err
19852 rm -f conftest.er1
19853 cat conftest.err >&5
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19855 (exit $ac_status); } && {
19856 test -z "$ac_c_werror_flag" ||
19857 test ! -s conftest.err
19858 } && test -s conftest.$ac_objext; then
d9898ee8 19859 ac_cv_type_unsigned=yes
19860else
19861 echo "$as_me: failed program was:" >&5
19862sed 's/^/| /' conftest.$ac_ext >&5
19863
64ff59ba 19864 ac_cv_type_unsigned=no
d9898ee8 19865fi
64ff59ba 19866
19867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 19868fi
64ff59ba 19869{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned" >&5
19870echo "${ECHO_T}$ac_cv_type_unsigned" >&6; }
d9898ee8 19871
64ff59ba 19872# The cast to long int works around a bug in the HP C Compiler
19873# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19874# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19875# This bug is HP SR number 8606223364.
19876{ echo "$as_me:$LINENO: checking size of unsigned" >&5
19877echo $ECHO_N "checking size of unsigned... $ECHO_C" >&6; }
d9898ee8 19878if test "${ac_cv_sizeof_unsigned+set}" = set; then
19879 echo $ECHO_N "(cached) $ECHO_C" >&6
19880else
d9898ee8 19881 if test "$cross_compiling" = yes; then
19882 # Depending upon the size, compute the lo and hi bounds.
19883cat >conftest.$ac_ext <<_ACEOF
19884/* confdefs.h. */
19885_ACEOF
19886cat confdefs.h >>conftest.$ac_ext
19887cat >>conftest.$ac_ext <<_ACEOF
19888/* end confdefs.h. */
19889$ac_includes_default
64ff59ba 19890 typedef unsigned ac__type_sizeof_;
d9898ee8 19891int
19892main ()
19893{
64ff59ba 19894static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
d9898ee8 19895test_array [0] = 0
19896
19897 ;
19898 return 0;
19899}
19900_ACEOF
19901rm -f conftest.$ac_objext
64ff59ba 19902if { (ac_try="$ac_compile"
19903case "(($ac_try" in
19904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19905 *) ac_try_echo=$ac_try;;
19906esac
19907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19908 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19909 ac_status=$?
19910 grep -v '^ *+' conftest.er1 >conftest.err
19911 rm -f conftest.er1
19912 cat conftest.err >&5
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19914 (exit $ac_status); } && {
19915 test -z "$ac_c_werror_flag" ||
19916 test ! -s conftest.err
19917 } && test -s conftest.$ac_objext; then
d9898ee8 19918 ac_lo=0 ac_mid=0
19919 while :; do
19920 cat >conftest.$ac_ext <<_ACEOF
19921/* confdefs.h. */
19922_ACEOF
19923cat confdefs.h >>conftest.$ac_ext
19924cat >>conftest.$ac_ext <<_ACEOF
19925/* end confdefs.h. */
19926$ac_includes_default
64ff59ba 19927 typedef unsigned ac__type_sizeof_;
d9898ee8 19928int
19929main ()
19930{
64ff59ba 19931static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
d9898ee8 19932test_array [0] = 0
19933
19934 ;
19935 return 0;
19936}
19937_ACEOF
19938rm -f conftest.$ac_objext
64ff59ba 19939if { (ac_try="$ac_compile"
19940case "(($ac_try" in
19941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19942 *) ac_try_echo=$ac_try;;
19943esac
19944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19945 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19946 ac_status=$?
19947 grep -v '^ *+' conftest.er1 >conftest.err
19948 rm -f conftest.er1
19949 cat conftest.err >&5
19950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19951 (exit $ac_status); } && {
19952 test -z "$ac_c_werror_flag" ||
19953 test ! -s conftest.err
19954 } && test -s conftest.$ac_objext; then
d9898ee8 19955 ac_hi=$ac_mid; break
19956else
19957 echo "$as_me: failed program was:" >&5
19958sed 's/^/| /' conftest.$ac_ext >&5
19959
64ff59ba 19960 ac_lo=`expr $ac_mid + 1`
19961 if test $ac_lo -le $ac_mid; then
19962 ac_lo= ac_hi=
19963 break
19964 fi
19965 ac_mid=`expr 2 '*' $ac_mid + 1`
d9898ee8 19966fi
64ff59ba 19967
19968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 19969 done
19970else
19971 echo "$as_me: failed program was:" >&5
19972sed 's/^/| /' conftest.$ac_ext >&5
19973
64ff59ba 19974 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 19975/* confdefs.h. */
19976_ACEOF
19977cat confdefs.h >>conftest.$ac_ext
19978cat >>conftest.$ac_ext <<_ACEOF
19979/* end confdefs.h. */
19980$ac_includes_default
64ff59ba 19981 typedef unsigned ac__type_sizeof_;
d9898ee8 19982int
19983main ()
19984{
64ff59ba 19985static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
d9898ee8 19986test_array [0] = 0
19987
19988 ;
19989 return 0;
19990}
19991_ACEOF
19992rm -f conftest.$ac_objext
64ff59ba 19993if { (ac_try="$ac_compile"
19994case "(($ac_try" in
19995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996 *) ac_try_echo=$ac_try;;
19997esac
19998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19999 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20000 ac_status=$?
20001 grep -v '^ *+' conftest.er1 >conftest.err
20002 rm -f conftest.er1
20003 cat conftest.err >&5
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20005 (exit $ac_status); } && {
20006 test -z "$ac_c_werror_flag" ||
20007 test ! -s conftest.err
20008 } && test -s conftest.$ac_objext; then
d9898ee8 20009 ac_hi=-1 ac_mid=-1
20010 while :; do
20011 cat >conftest.$ac_ext <<_ACEOF
20012/* confdefs.h. */
20013_ACEOF
20014cat confdefs.h >>conftest.$ac_ext
20015cat >>conftest.$ac_ext <<_ACEOF
20016/* end confdefs.h. */
20017$ac_includes_default
64ff59ba 20018 typedef unsigned ac__type_sizeof_;
d9898ee8 20019int
20020main ()
20021{
64ff59ba 20022static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
d9898ee8 20023test_array [0] = 0
20024
20025 ;
20026 return 0;
20027}
20028_ACEOF
20029rm -f conftest.$ac_objext
64ff59ba 20030if { (ac_try="$ac_compile"
20031case "(($ac_try" in
20032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20033 *) ac_try_echo=$ac_try;;
20034esac
20035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20036 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20037 ac_status=$?
20038 grep -v '^ *+' conftest.er1 >conftest.err
20039 rm -f conftest.er1
20040 cat conftest.err >&5
20041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20042 (exit $ac_status); } && {
20043 test -z "$ac_c_werror_flag" ||
20044 test ! -s conftest.err
20045 } && test -s conftest.$ac_objext; then
d9898ee8 20046 ac_lo=$ac_mid; break
20047else
20048 echo "$as_me: failed program was:" >&5
20049sed 's/^/| /' conftest.$ac_ext >&5
20050
64ff59ba 20051 ac_hi=`expr '(' $ac_mid ')' - 1`
20052 if test $ac_mid -le $ac_hi; then
20053 ac_lo= ac_hi=
20054 break
20055 fi
20056 ac_mid=`expr 2 '*' $ac_mid`
d9898ee8 20057fi
64ff59ba 20058
20059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20060 done
20061else
20062 echo "$as_me: failed program was:" >&5
20063sed 's/^/| /' conftest.$ac_ext >&5
20064
64ff59ba 20065 ac_lo= ac_hi=
d9898ee8 20066fi
64ff59ba 20067
20068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20069fi
64ff59ba 20070
20071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20072# Binary search between lo and hi bounds.
20073while test "x$ac_lo" != "x$ac_hi"; do
20074 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20075 cat >conftest.$ac_ext <<_ACEOF
20076/* confdefs.h. */
20077_ACEOF
20078cat confdefs.h >>conftest.$ac_ext
20079cat >>conftest.$ac_ext <<_ACEOF
20080/* end confdefs.h. */
20081$ac_includes_default
64ff59ba 20082 typedef unsigned ac__type_sizeof_;
d9898ee8 20083int
20084main ()
20085{
64ff59ba 20086static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
d9898ee8 20087test_array [0] = 0
20088
20089 ;
20090 return 0;
20091}
20092_ACEOF
20093rm -f conftest.$ac_objext
64ff59ba 20094if { (ac_try="$ac_compile"
20095case "(($ac_try" in
20096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20097 *) ac_try_echo=$ac_try;;
20098esac
20099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20100 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20101 ac_status=$?
20102 grep -v '^ *+' conftest.er1 >conftest.err
20103 rm -f conftest.er1
20104 cat conftest.err >&5
20105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20106 (exit $ac_status); } && {
20107 test -z "$ac_c_werror_flag" ||
20108 test ! -s conftest.err
20109 } && test -s conftest.$ac_objext; then
d9898ee8 20110 ac_hi=$ac_mid
20111else
20112 echo "$as_me: failed program was:" >&5
20113sed 's/^/| /' conftest.$ac_ext >&5
20114
64ff59ba 20115 ac_lo=`expr '(' $ac_mid ')' + 1`
d9898ee8 20116fi
64ff59ba 20117
20118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20119done
20120case $ac_lo in
20121?*) ac_cv_sizeof_unsigned=$ac_lo;;
64ff59ba 20122'') if test "$ac_cv_type_unsigned" = yes; then
20123 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
d9898ee8 20124See \`config.log' for more details." >&5
64ff59ba 20125echo "$as_me: error: cannot compute sizeof (unsigned)
d9898ee8 20126See \`config.log' for more details." >&2;}
64ff59ba 20127 { (exit 77); exit 77; }; }
20128 else
20129 ac_cv_sizeof_unsigned=0
20130 fi ;;
d9898ee8 20131esac
d9898ee8 20132else
20133 cat >conftest.$ac_ext <<_ACEOF
20134/* confdefs.h. */
20135_ACEOF
20136cat confdefs.h >>conftest.$ac_ext
20137cat >>conftest.$ac_ext <<_ACEOF
20138/* end confdefs.h. */
20139$ac_includes_default
64ff59ba 20140 typedef unsigned ac__type_sizeof_;
20141static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20142static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
d9898ee8 20143#include <stdio.h>
20144#include <stdlib.h>
20145int
20146main ()
20147{
20148
20149 FILE *f = fopen ("conftest.val", "w");
20150 if (! f)
64ff59ba 20151 return 1;
20152 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
d9898ee8 20153 {
64ff59ba 20154 long int i = longval ();
20155 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20156 return 1;
d9898ee8 20157 fprintf (f, "%ld\n", i);
20158 }
20159 else
20160 {
64ff59ba 20161 unsigned long int i = ulongval ();
20162 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20163 return 1;
d9898ee8 20164 fprintf (f, "%lu\n", i);
20165 }
64ff59ba 20166 return ferror (f) || fclose (f) != 0;
d9898ee8 20167
20168 ;
20169 return 0;
20170}
20171_ACEOF
20172rm -f conftest$ac_exeext
64ff59ba 20173if { (ac_try="$ac_link"
20174case "(($ac_try" in
20175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20176 *) ac_try_echo=$ac_try;;
20177esac
20178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20179 (eval "$ac_link") 2>&5
d9898ee8 20180 ac_status=$?
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
64ff59ba 20183 { (case "(($ac_try" in
20184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20185 *) ac_try_echo=$ac_try;;
20186esac
20187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20188 (eval "$ac_try") 2>&5
d9898ee8 20189 ac_status=$?
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); }; }; then
20192 ac_cv_sizeof_unsigned=`cat conftest.val`
20193else
20194 echo "$as_me: program exited with status $ac_status" >&5
20195echo "$as_me: failed program was:" >&5
20196sed 's/^/| /' conftest.$ac_ext >&5
20197
20198( exit $ac_status )
64ff59ba 20199if test "$ac_cv_type_unsigned" = yes; then
20200 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
d9898ee8 20201See \`config.log' for more details." >&5
64ff59ba 20202echo "$as_me: error: cannot compute sizeof (unsigned)
d9898ee8 20203See \`config.log' for more details." >&2;}
64ff59ba 20204 { (exit 77); exit 77; }; }
20205 else
20206 ac_cv_sizeof_unsigned=0
20207 fi
d9898ee8 20208fi
64ff59ba 20209rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 20210fi
20211rm -f conftest.val
d9898ee8 20212fi
64ff59ba 20213{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned" >&5
20214echo "${ECHO_T}$ac_cv_sizeof_unsigned" >&6; }
20215
20216
20217
d9898ee8 20218cat >>confdefs.h <<_ACEOF
20219#define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
20220_ACEOF
20221
20222
20223 if test "$ac_cv_sizeof_unsigned" != 4
20224 then
64ff59ba 20225 { echo "$as_me:$LINENO: checking for unsigned long" >&5
20226echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
d9898ee8 20227if test "${ac_cv_type_unsigned_long+set}" = set; then
20228 echo $ECHO_N "(cached) $ECHO_C" >&6
20229else
20230 cat >conftest.$ac_ext <<_ACEOF
20231/* confdefs.h. */
20232_ACEOF
20233cat confdefs.h >>conftest.$ac_ext
20234cat >>conftest.$ac_ext <<_ACEOF
20235/* end confdefs.h. */
20236$ac_includes_default
64ff59ba 20237typedef unsigned long ac__type_new_;
d9898ee8 20238int
20239main ()
20240{
64ff59ba 20241if ((ac__type_new_ *) 0)
d9898ee8 20242 return 0;
64ff59ba 20243if (sizeof (ac__type_new_))
d9898ee8 20244 return 0;
20245 ;
20246 return 0;
20247}
20248_ACEOF
20249rm -f conftest.$ac_objext
64ff59ba 20250if { (ac_try="$ac_compile"
20251case "(($ac_try" in
20252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20253 *) ac_try_echo=$ac_try;;
20254esac
20255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20256 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20257 ac_status=$?
20258 grep -v '^ *+' conftest.er1 >conftest.err
20259 rm -f conftest.er1
20260 cat conftest.err >&5
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20262 (exit $ac_status); } && {
20263 test -z "$ac_c_werror_flag" ||
20264 test ! -s conftest.err
20265 } && test -s conftest.$ac_objext; then
d9898ee8 20266 ac_cv_type_unsigned_long=yes
20267else
20268 echo "$as_me: failed program was:" >&5
20269sed 's/^/| /' conftest.$ac_ext >&5
20270
64ff59ba 20271 ac_cv_type_unsigned_long=no
d9898ee8 20272fi
64ff59ba 20273
20274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20275fi
64ff59ba 20276{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
20277echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
d9898ee8 20278
64ff59ba 20279# The cast to long int works around a bug in the HP C Compiler
20280# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20281# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20282# This bug is HP SR number 8606223364.
20283{ echo "$as_me:$LINENO: checking size of unsigned long" >&5
20284echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
d9898ee8 20285if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
20286 echo $ECHO_N "(cached) $ECHO_C" >&6
20287else
d9898ee8 20288 if test "$cross_compiling" = yes; then
20289 # Depending upon the size, compute the lo and hi bounds.
20290cat >conftest.$ac_ext <<_ACEOF
20291/* confdefs.h. */
20292_ACEOF
20293cat confdefs.h >>conftest.$ac_ext
20294cat >>conftest.$ac_ext <<_ACEOF
20295/* end confdefs.h. */
20296$ac_includes_default
64ff59ba 20297 typedef unsigned long ac__type_sizeof_;
d9898ee8 20298int
20299main ()
20300{
64ff59ba 20301static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
d9898ee8 20302test_array [0] = 0
20303
20304 ;
20305 return 0;
20306}
20307_ACEOF
20308rm -f conftest.$ac_objext
64ff59ba 20309if { (ac_try="$ac_compile"
20310case "(($ac_try" in
20311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20312 *) ac_try_echo=$ac_try;;
20313esac
20314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20315 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20316 ac_status=$?
20317 grep -v '^ *+' conftest.er1 >conftest.err
20318 rm -f conftest.er1
20319 cat conftest.err >&5
20320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20321 (exit $ac_status); } && {
20322 test -z "$ac_c_werror_flag" ||
20323 test ! -s conftest.err
20324 } && test -s conftest.$ac_objext; then
d9898ee8 20325 ac_lo=0 ac_mid=0
20326 while :; do
20327 cat >conftest.$ac_ext <<_ACEOF
20328/* confdefs.h. */
20329_ACEOF
20330cat confdefs.h >>conftest.$ac_ext
20331cat >>conftest.$ac_ext <<_ACEOF
20332/* end confdefs.h. */
20333$ac_includes_default
64ff59ba 20334 typedef unsigned long ac__type_sizeof_;
d9898ee8 20335int
20336main ()
20337{
64ff59ba 20338static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
d9898ee8 20339test_array [0] = 0
20340
20341 ;
20342 return 0;
20343}
20344_ACEOF
20345rm -f conftest.$ac_objext
64ff59ba 20346if { (ac_try="$ac_compile"
20347case "(($ac_try" in
20348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20349 *) ac_try_echo=$ac_try;;
20350esac
20351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20352 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20353 ac_status=$?
20354 grep -v '^ *+' conftest.er1 >conftest.err
20355 rm -f conftest.er1
20356 cat conftest.err >&5
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20358 (exit $ac_status); } && {
20359 test -z "$ac_c_werror_flag" ||
20360 test ! -s conftest.err
20361 } && test -s conftest.$ac_objext; then
d9898ee8 20362 ac_hi=$ac_mid; break
20363else
20364 echo "$as_me: failed program was:" >&5
20365sed 's/^/| /' conftest.$ac_ext >&5
20366
64ff59ba 20367 ac_lo=`expr $ac_mid + 1`
20368 if test $ac_lo -le $ac_mid; then
20369 ac_lo= ac_hi=
20370 break
20371 fi
20372 ac_mid=`expr 2 '*' $ac_mid + 1`
d9898ee8 20373fi
64ff59ba 20374
20375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20376 done
20377else
20378 echo "$as_me: failed program was:" >&5
20379sed 's/^/| /' conftest.$ac_ext >&5
20380
64ff59ba 20381 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 20382/* confdefs.h. */
20383_ACEOF
20384cat confdefs.h >>conftest.$ac_ext
20385cat >>conftest.$ac_ext <<_ACEOF
20386/* end confdefs.h. */
20387$ac_includes_default
64ff59ba 20388 typedef unsigned long ac__type_sizeof_;
d9898ee8 20389int
20390main ()
20391{
64ff59ba 20392static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
d9898ee8 20393test_array [0] = 0
20394
20395 ;
20396 return 0;
20397}
20398_ACEOF
20399rm -f conftest.$ac_objext
64ff59ba 20400if { (ac_try="$ac_compile"
20401case "(($ac_try" in
20402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20403 *) ac_try_echo=$ac_try;;
20404esac
20405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20406 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20407 ac_status=$?
20408 grep -v '^ *+' conftest.er1 >conftest.err
20409 rm -f conftest.er1
20410 cat conftest.err >&5
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20412 (exit $ac_status); } && {
20413 test -z "$ac_c_werror_flag" ||
20414 test ! -s conftest.err
20415 } && test -s conftest.$ac_objext; then
d9898ee8 20416 ac_hi=-1 ac_mid=-1
20417 while :; do
20418 cat >conftest.$ac_ext <<_ACEOF
20419/* confdefs.h. */
20420_ACEOF
20421cat confdefs.h >>conftest.$ac_ext
20422cat >>conftest.$ac_ext <<_ACEOF
20423/* end confdefs.h. */
20424$ac_includes_default
64ff59ba 20425 typedef unsigned long ac__type_sizeof_;
d9898ee8 20426int
20427main ()
20428{
64ff59ba 20429static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
d9898ee8 20430test_array [0] = 0
20431
20432 ;
20433 return 0;
20434}
20435_ACEOF
20436rm -f conftest.$ac_objext
64ff59ba 20437if { (ac_try="$ac_compile"
20438case "(($ac_try" in
20439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20440 *) ac_try_echo=$ac_try;;
20441esac
20442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20443 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20444 ac_status=$?
20445 grep -v '^ *+' conftest.er1 >conftest.err
20446 rm -f conftest.er1
20447 cat conftest.err >&5
20448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20449 (exit $ac_status); } && {
20450 test -z "$ac_c_werror_flag" ||
20451 test ! -s conftest.err
20452 } && test -s conftest.$ac_objext; then
d9898ee8 20453 ac_lo=$ac_mid; break
20454else
20455 echo "$as_me: failed program was:" >&5
20456sed 's/^/| /' conftest.$ac_ext >&5
20457
64ff59ba 20458 ac_hi=`expr '(' $ac_mid ')' - 1`
20459 if test $ac_mid -le $ac_hi; then
20460 ac_lo= ac_hi=
20461 break
20462 fi
20463 ac_mid=`expr 2 '*' $ac_mid`
d9898ee8 20464fi
64ff59ba 20465
20466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20467 done
20468else
20469 echo "$as_me: failed program was:" >&5
20470sed 's/^/| /' conftest.$ac_ext >&5
20471
64ff59ba 20472 ac_lo= ac_hi=
d9898ee8 20473fi
64ff59ba 20474
20475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20476fi
64ff59ba 20477
20478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20479# Binary search between lo and hi bounds.
20480while test "x$ac_lo" != "x$ac_hi"; do
20481 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20482 cat >conftest.$ac_ext <<_ACEOF
20483/* confdefs.h. */
20484_ACEOF
20485cat confdefs.h >>conftest.$ac_ext
20486cat >>conftest.$ac_ext <<_ACEOF
20487/* end confdefs.h. */
20488$ac_includes_default
64ff59ba 20489 typedef unsigned long ac__type_sizeof_;
d9898ee8 20490int
20491main ()
20492{
64ff59ba 20493static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
d9898ee8 20494test_array [0] = 0
20495
20496 ;
20497 return 0;
20498}
20499_ACEOF
20500rm -f conftest.$ac_objext
64ff59ba 20501if { (ac_try="$ac_compile"
20502case "(($ac_try" in
20503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20504 *) ac_try_echo=$ac_try;;
20505esac
20506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20507 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20508 ac_status=$?
20509 grep -v '^ *+' conftest.er1 >conftest.err
20510 rm -f conftest.er1
20511 cat conftest.err >&5
20512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20513 (exit $ac_status); } && {
20514 test -z "$ac_c_werror_flag" ||
20515 test ! -s conftest.err
20516 } && test -s conftest.$ac_objext; then
d9898ee8 20517 ac_hi=$ac_mid
20518else
20519 echo "$as_me: failed program was:" >&5
20520sed 's/^/| /' conftest.$ac_ext >&5
20521
64ff59ba 20522 ac_lo=`expr '(' $ac_mid ')' + 1`
d9898ee8 20523fi
64ff59ba 20524
20525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20526done
20527case $ac_lo in
20528?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
64ff59ba 20529'') if test "$ac_cv_type_unsigned_long" = yes; then
20530 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
d9898ee8 20531See \`config.log' for more details." >&5
64ff59ba 20532echo "$as_me: error: cannot compute sizeof (unsigned long)
d9898ee8 20533See \`config.log' for more details." >&2;}
64ff59ba 20534 { (exit 77); exit 77; }; }
20535 else
20536 ac_cv_sizeof_unsigned_long=0
20537 fi ;;
d9898ee8 20538esac
d9898ee8 20539else
20540 cat >conftest.$ac_ext <<_ACEOF
20541/* confdefs.h. */
20542_ACEOF
20543cat confdefs.h >>conftest.$ac_ext
20544cat >>conftest.$ac_ext <<_ACEOF
20545/* end confdefs.h. */
20546$ac_includes_default
64ff59ba 20547 typedef unsigned long ac__type_sizeof_;
20548static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20549static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
d9898ee8 20550#include <stdio.h>
20551#include <stdlib.h>
20552int
20553main ()
20554{
20555
20556 FILE *f = fopen ("conftest.val", "w");
20557 if (! f)
64ff59ba 20558 return 1;
20559 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
d9898ee8 20560 {
64ff59ba 20561 long int i = longval ();
20562 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20563 return 1;
d9898ee8 20564 fprintf (f, "%ld\n", i);
20565 }
20566 else
20567 {
64ff59ba 20568 unsigned long int i = ulongval ();
20569 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20570 return 1;
d9898ee8 20571 fprintf (f, "%lu\n", i);
20572 }
64ff59ba 20573 return ferror (f) || fclose (f) != 0;
d9898ee8 20574
20575 ;
20576 return 0;
20577}
20578_ACEOF
20579rm -f conftest$ac_exeext
64ff59ba 20580if { (ac_try="$ac_link"
20581case "(($ac_try" in
20582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20583 *) ac_try_echo=$ac_try;;
20584esac
20585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20586 (eval "$ac_link") 2>&5
d9898ee8 20587 ac_status=$?
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
64ff59ba 20590 { (case "(($ac_try" in
20591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20592 *) ac_try_echo=$ac_try;;
20593esac
20594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20595 (eval "$ac_try") 2>&5
d9898ee8 20596 ac_status=$?
20597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598 (exit $ac_status); }; }; then
20599 ac_cv_sizeof_unsigned_long=`cat conftest.val`
20600else
20601 echo "$as_me: program exited with status $ac_status" >&5
20602echo "$as_me: failed program was:" >&5
20603sed 's/^/| /' conftest.$ac_ext >&5
20604
20605( exit $ac_status )
64ff59ba 20606if test "$ac_cv_type_unsigned_long" = yes; then
20607 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
d9898ee8 20608See \`config.log' for more details." >&5
64ff59ba 20609echo "$as_me: error: cannot compute sizeof (unsigned long)
d9898ee8 20610See \`config.log' for more details." >&2;}
64ff59ba 20611 { (exit 77); exit 77; }; }
20612 else
20613 ac_cv_sizeof_unsigned_long=0
20614 fi
d9898ee8 20615fi
64ff59ba 20616rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 20617fi
20618rm -f conftest.val
d9898ee8 20619fi
64ff59ba 20620{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
20621echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
20622
20623
20624
d9898ee8 20625cat >>confdefs.h <<_ACEOF
20626#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20627_ACEOF
20628
20629
20630 if test "$ac_cv_sizeof_unsigned_long" != 4
20631 then
64ff59ba 20632 { echo "$as_me:$LINENO: checking for unsigned short" >&5
20633echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6; }
d9898ee8 20634if test "${ac_cv_type_unsigned_short+set}" = set; then
20635 echo $ECHO_N "(cached) $ECHO_C" >&6
20636else
20637 cat >conftest.$ac_ext <<_ACEOF
20638/* confdefs.h. */
20639_ACEOF
20640cat confdefs.h >>conftest.$ac_ext
20641cat >>conftest.$ac_ext <<_ACEOF
20642/* end confdefs.h. */
20643$ac_includes_default
64ff59ba 20644typedef unsigned short ac__type_new_;
d9898ee8 20645int
20646main ()
20647{
64ff59ba 20648if ((ac__type_new_ *) 0)
d9898ee8 20649 return 0;
64ff59ba 20650if (sizeof (ac__type_new_))
d9898ee8 20651 return 0;
20652 ;
20653 return 0;
20654}
20655_ACEOF
20656rm -f conftest.$ac_objext
64ff59ba 20657if { (ac_try="$ac_compile"
20658case "(($ac_try" in
20659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20660 *) ac_try_echo=$ac_try;;
20661esac
20662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20663 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20664 ac_status=$?
20665 grep -v '^ *+' conftest.er1 >conftest.err
20666 rm -f conftest.er1
20667 cat conftest.err >&5
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20669 (exit $ac_status); } && {
20670 test -z "$ac_c_werror_flag" ||
20671 test ! -s conftest.err
20672 } && test -s conftest.$ac_objext; then
d9898ee8 20673 ac_cv_type_unsigned_short=yes
20674else
20675 echo "$as_me: failed program was:" >&5
20676sed 's/^/| /' conftest.$ac_ext >&5
20677
64ff59ba 20678 ac_cv_type_unsigned_short=no
d9898ee8 20679fi
64ff59ba 20680
20681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20682fi
64ff59ba 20683{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
20684echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6; }
d9898ee8 20685
64ff59ba 20686# The cast to long int works around a bug in the HP C Compiler
20687# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20688# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20689# This bug is HP SR number 8606223364.
20690{ echo "$as_me:$LINENO: checking size of unsigned short" >&5
20691echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6; }
d9898ee8 20692if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
20693 echo $ECHO_N "(cached) $ECHO_C" >&6
20694else
d9898ee8 20695 if test "$cross_compiling" = yes; then
20696 # Depending upon the size, compute the lo and hi bounds.
20697cat >conftest.$ac_ext <<_ACEOF
20698/* confdefs.h. */
20699_ACEOF
20700cat confdefs.h >>conftest.$ac_ext
20701cat >>conftest.$ac_ext <<_ACEOF
20702/* end confdefs.h. */
20703$ac_includes_default
64ff59ba 20704 typedef unsigned short ac__type_sizeof_;
d9898ee8 20705int
20706main ()
20707{
64ff59ba 20708static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
d9898ee8 20709test_array [0] = 0
20710
20711 ;
20712 return 0;
20713}
20714_ACEOF
20715rm -f conftest.$ac_objext
64ff59ba 20716if { (ac_try="$ac_compile"
20717case "(($ac_try" in
20718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20719 *) ac_try_echo=$ac_try;;
20720esac
20721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20722 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20723 ac_status=$?
20724 grep -v '^ *+' conftest.er1 >conftest.err
20725 rm -f conftest.er1
20726 cat conftest.err >&5
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20728 (exit $ac_status); } && {
20729 test -z "$ac_c_werror_flag" ||
20730 test ! -s conftest.err
20731 } && test -s conftest.$ac_objext; then
d9898ee8 20732 ac_lo=0 ac_mid=0
20733 while :; do
20734 cat >conftest.$ac_ext <<_ACEOF
20735/* confdefs.h. */
20736_ACEOF
20737cat confdefs.h >>conftest.$ac_ext
20738cat >>conftest.$ac_ext <<_ACEOF
20739/* end confdefs.h. */
20740$ac_includes_default
64ff59ba 20741 typedef unsigned short ac__type_sizeof_;
d9898ee8 20742int
20743main ()
20744{
64ff59ba 20745static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
d9898ee8 20746test_array [0] = 0
20747
20748 ;
20749 return 0;
20750}
20751_ACEOF
20752rm -f conftest.$ac_objext
64ff59ba 20753if { (ac_try="$ac_compile"
20754case "(($ac_try" in
20755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20756 *) ac_try_echo=$ac_try;;
20757esac
20758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20759 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20760 ac_status=$?
20761 grep -v '^ *+' conftest.er1 >conftest.err
20762 rm -f conftest.er1
20763 cat conftest.err >&5
20764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20765 (exit $ac_status); } && {
20766 test -z "$ac_c_werror_flag" ||
20767 test ! -s conftest.err
20768 } && test -s conftest.$ac_objext; then
d9898ee8 20769 ac_hi=$ac_mid; break
20770else
20771 echo "$as_me: failed program was:" >&5
20772sed 's/^/| /' conftest.$ac_ext >&5
20773
64ff59ba 20774 ac_lo=`expr $ac_mid + 1`
20775 if test $ac_lo -le $ac_mid; then
20776 ac_lo= ac_hi=
20777 break
20778 fi
20779 ac_mid=`expr 2 '*' $ac_mid + 1`
d9898ee8 20780fi
64ff59ba 20781
20782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20783 done
20784else
20785 echo "$as_me: failed program was:" >&5
20786sed 's/^/| /' conftest.$ac_ext >&5
20787
64ff59ba 20788 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 20789/* confdefs.h. */
20790_ACEOF
20791cat confdefs.h >>conftest.$ac_ext
20792cat >>conftest.$ac_ext <<_ACEOF
20793/* end confdefs.h. */
20794$ac_includes_default
64ff59ba 20795 typedef unsigned short ac__type_sizeof_;
d9898ee8 20796int
20797main ()
20798{
64ff59ba 20799static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
d9898ee8 20800test_array [0] = 0
20801
20802 ;
20803 return 0;
20804}
20805_ACEOF
20806rm -f conftest.$ac_objext
64ff59ba 20807if { (ac_try="$ac_compile"
20808case "(($ac_try" in
20809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20810 *) ac_try_echo=$ac_try;;
20811esac
20812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20813 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20814 ac_status=$?
20815 grep -v '^ *+' conftest.er1 >conftest.err
20816 rm -f conftest.er1
20817 cat conftest.err >&5
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20819 (exit $ac_status); } && {
20820 test -z "$ac_c_werror_flag" ||
20821 test ! -s conftest.err
20822 } && test -s conftest.$ac_objext; then
d9898ee8 20823 ac_hi=-1 ac_mid=-1
20824 while :; do
20825 cat >conftest.$ac_ext <<_ACEOF
20826/* confdefs.h. */
20827_ACEOF
20828cat confdefs.h >>conftest.$ac_ext
20829cat >>conftest.$ac_ext <<_ACEOF
20830/* end confdefs.h. */
20831$ac_includes_default
64ff59ba 20832 typedef unsigned short ac__type_sizeof_;
d9898ee8 20833int
20834main ()
20835{
64ff59ba 20836static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
d9898ee8 20837test_array [0] = 0
20838
20839 ;
20840 return 0;
20841}
20842_ACEOF
20843rm -f conftest.$ac_objext
64ff59ba 20844if { (ac_try="$ac_compile"
20845case "(($ac_try" in
20846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20847 *) ac_try_echo=$ac_try;;
20848esac
20849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20850 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20851 ac_status=$?
20852 grep -v '^ *+' conftest.er1 >conftest.err
20853 rm -f conftest.er1
20854 cat conftest.err >&5
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20856 (exit $ac_status); } && {
20857 test -z "$ac_c_werror_flag" ||
20858 test ! -s conftest.err
20859 } && test -s conftest.$ac_objext; then
d9898ee8 20860 ac_lo=$ac_mid; break
20861else
20862 echo "$as_me: failed program was:" >&5
20863sed 's/^/| /' conftest.$ac_ext >&5
20864
64ff59ba 20865 ac_hi=`expr '(' $ac_mid ')' - 1`
20866 if test $ac_mid -le $ac_hi; then
20867 ac_lo= ac_hi=
20868 break
20869 fi
20870 ac_mid=`expr 2 '*' $ac_mid`
d9898ee8 20871fi
64ff59ba 20872
20873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20874 done
20875else
20876 echo "$as_me: failed program was:" >&5
20877sed 's/^/| /' conftest.$ac_ext >&5
20878
64ff59ba 20879 ac_lo= ac_hi=
d9898ee8 20880fi
64ff59ba 20881
20882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20883fi
64ff59ba 20884
20885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20886# Binary search between lo and hi bounds.
20887while test "x$ac_lo" != "x$ac_hi"; do
20888 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20889 cat >conftest.$ac_ext <<_ACEOF
20890/* confdefs.h. */
20891_ACEOF
20892cat confdefs.h >>conftest.$ac_ext
20893cat >>conftest.$ac_ext <<_ACEOF
20894/* end confdefs.h. */
20895$ac_includes_default
64ff59ba 20896 typedef unsigned short ac__type_sizeof_;
d9898ee8 20897int
20898main ()
20899{
64ff59ba 20900static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
d9898ee8 20901test_array [0] = 0
20902
20903 ;
20904 return 0;
20905}
20906_ACEOF
20907rm -f conftest.$ac_objext
64ff59ba 20908if { (ac_try="$ac_compile"
20909case "(($ac_try" in
20910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20911 *) ac_try_echo=$ac_try;;
20912esac
20913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20914 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20915 ac_status=$?
20916 grep -v '^ *+' conftest.er1 >conftest.err
20917 rm -f conftest.er1
20918 cat conftest.err >&5
20919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20920 (exit $ac_status); } && {
20921 test -z "$ac_c_werror_flag" ||
20922 test ! -s conftest.err
20923 } && test -s conftest.$ac_objext; then
d9898ee8 20924 ac_hi=$ac_mid
20925else
20926 echo "$as_me: failed program was:" >&5
20927sed 's/^/| /' conftest.$ac_ext >&5
20928
64ff59ba 20929 ac_lo=`expr '(' $ac_mid ')' + 1`
d9898ee8 20930fi
64ff59ba 20931
20932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20933done
20934case $ac_lo in
20935?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
64ff59ba 20936'') if test "$ac_cv_type_unsigned_short" = yes; then
20937 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
d9898ee8 20938See \`config.log' for more details." >&5
64ff59ba 20939echo "$as_me: error: cannot compute sizeof (unsigned short)
d9898ee8 20940See \`config.log' for more details." >&2;}
64ff59ba 20941 { (exit 77); exit 77; }; }
20942 else
20943 ac_cv_sizeof_unsigned_short=0
20944 fi ;;
d9898ee8 20945esac
d9898ee8 20946else
20947 cat >conftest.$ac_ext <<_ACEOF
20948/* confdefs.h. */
20949_ACEOF
20950cat confdefs.h >>conftest.$ac_ext
20951cat >>conftest.$ac_ext <<_ACEOF
20952/* end confdefs.h. */
20953$ac_includes_default
64ff59ba 20954 typedef unsigned short ac__type_sizeof_;
20955static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20956static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
d9898ee8 20957#include <stdio.h>
20958#include <stdlib.h>
20959int
20960main ()
20961{
20962
20963 FILE *f = fopen ("conftest.val", "w");
20964 if (! f)
64ff59ba 20965 return 1;
20966 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
d9898ee8 20967 {
64ff59ba 20968 long int i = longval ();
20969 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20970 return 1;
d9898ee8 20971 fprintf (f, "%ld\n", i);
20972 }
20973 else
20974 {
64ff59ba 20975 unsigned long int i = ulongval ();
20976 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20977 return 1;
d9898ee8 20978 fprintf (f, "%lu\n", i);
20979 }
64ff59ba 20980 return ferror (f) || fclose (f) != 0;
d9898ee8 20981
20982 ;
20983 return 0;
20984}
20985_ACEOF
20986rm -f conftest$ac_exeext
64ff59ba 20987if { (ac_try="$ac_link"
20988case "(($ac_try" in
20989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20990 *) ac_try_echo=$ac_try;;
20991esac
20992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20993 (eval "$ac_link") 2>&5
d9898ee8 20994 ac_status=$?
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
64ff59ba 20997 { (case "(($ac_try" in
20998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20999 *) ac_try_echo=$ac_try;;
21000esac
21001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21002 (eval "$ac_try") 2>&5
d9898ee8 21003 ac_status=$?
21004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005 (exit $ac_status); }; }; then
21006 ac_cv_sizeof_unsigned_short=`cat conftest.val`
21007else
21008 echo "$as_me: program exited with status $ac_status" >&5
21009echo "$as_me: failed program was:" >&5
21010sed 's/^/| /' conftest.$ac_ext >&5
21011
21012( exit $ac_status )
64ff59ba 21013if test "$ac_cv_type_unsigned_short" = yes; then
21014 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
d9898ee8 21015See \`config.log' for more details." >&5
64ff59ba 21016echo "$as_me: error: cannot compute sizeof (unsigned short)
d9898ee8 21017See \`config.log' for more details." >&2;}
64ff59ba 21018 { (exit 77); exit 77; }; }
21019 else
21020 ac_cv_sizeof_unsigned_short=0
21021 fi
d9898ee8 21022fi
64ff59ba 21023rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 21024fi
21025rm -f conftest.val
d9898ee8 21026fi
64ff59ba 21027{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
21028echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6; }
21029
21030
21031
d9898ee8 21032cat >>confdefs.h <<_ACEOF
21033#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21034_ACEOF
21035
21036
21037 if test "$ac_cv_sizeof_unsigned_short" != 4
21038 then
21039 { { echo "$as_me:$LINENO: error: --with-int32 option is required" >&5
21040echo "$as_me: error: --with-int32 option is required" >&2;}
21041 { (exit 1); exit 1; }; }
21042 fi
21043 int32="unsigned short"
21044 fi
21045 int32="unsigned long"
21046 else
21047 int32="unsigned"
21048 fi
21049
21050fi
64ff59ba 21051
21052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 21053
21054fi
d9898ee8 21055
64ff59ba 21056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21057
21058
21059fi
d9898ee8 21060
d9898ee8 21061UINT32="$int32"
21062
21063
21064cat >>confdefs.h <<_ACEOF
21065#define MD5_WORD $UINT32
21066_ACEOF
21067
21068
64ff59ba 21069{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21070echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
d9898ee8 21071if test "${ac_cv_c_const+set}" = set; then
21072 echo $ECHO_N "(cached) $ECHO_C" >&6
21073else
21074 cat >conftest.$ac_ext <<_ACEOF
21075/* confdefs.h. */
21076_ACEOF
21077cat confdefs.h >>conftest.$ac_ext
21078cat >>conftest.$ac_ext <<_ACEOF
21079/* end confdefs.h. */
21080
21081int
21082main ()
21083{
21084/* FIXME: Include the comments suggested by Paul. */
21085#ifndef __cplusplus
21086 /* Ultrix mips cc rejects this. */
21087 typedef int charset[2];
64ff59ba 21088 const charset cs;
d9898ee8 21089 /* SunOS 4.1.1 cc rejects this. */
64ff59ba 21090 char const *const *pcpcc;
21091 char **ppc;
d9898ee8 21092 /* NEC SVR4.0.2 mips cc rejects this. */
21093 struct point {int x, y;};
21094 static struct point const zero = {0,0};
21095 /* AIX XL C 1.02.0.0 rejects this.
21096 It does not let you subtract one const X* pointer from another in
21097 an arm of an if-expression whose if-part is not a constant
21098 expression */
21099 const char *g = "string";
64ff59ba 21100 pcpcc = &g + (g ? g-g : 0);
d9898ee8 21101 /* HPUX 7.0 cc rejects these. */
64ff59ba 21102 ++pcpcc;
21103 ppc = (char**) pcpcc;
21104 pcpcc = (char const *const *) ppc;
d9898ee8 21105 { /* SCO 3.2v4 cc rejects this. */
21106 char *t;
21107 char const *s = 0 ? (char *) 0 : (char const *) 0;
21108
21109 *t++ = 0;
64ff59ba 21110 if (s) return 0;
d9898ee8 21111 }
21112 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21113 int x[] = {25, 17};
21114 const int *foo = &x[0];
21115 ++foo;
21116 }
21117 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21118 typedef const int *iptr;
21119 iptr p = 0;
21120 ++p;
21121 }
21122 { /* AIX XL C 1.02.0.0 rejects this saying
21123 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21124 struct s { int j; const int *ap[3]; };
21125 struct s *b; b->j = 5;
21126 }
21127 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21128 const int foo = 10;
64ff59ba 21129 if (!foo) return 0;
d9898ee8 21130 }
64ff59ba 21131 return !cs[0] && !zero.x;
d9898ee8 21132#endif
21133
21134 ;
21135 return 0;
21136}
21137_ACEOF
21138rm -f conftest.$ac_objext
64ff59ba 21139if { (ac_try="$ac_compile"
21140case "(($ac_try" in
21141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21142 *) ac_try_echo=$ac_try;;
21143esac
21144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21145 (eval "$ac_compile") 2>conftest.er1
d9898ee8 21146 ac_status=$?
21147 grep -v '^ *+' conftest.er1 >conftest.err
21148 rm -f conftest.er1
21149 cat conftest.err >&5
21150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 21151 (exit $ac_status); } && {
21152 test -z "$ac_c_werror_flag" ||
21153 test ! -s conftest.err
21154 } && test -s conftest.$ac_objext; then
d9898ee8 21155 ac_cv_c_const=yes
21156else
21157 echo "$as_me: failed program was:" >&5
21158sed 's/^/| /' conftest.$ac_ext >&5
21159
64ff59ba 21160 ac_cv_c_const=no
d9898ee8 21161fi
64ff59ba 21162
21163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 21164fi
64ff59ba 21165{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21166echo "${ECHO_T}$ac_cv_c_const" >&6; }
d9898ee8 21167if test $ac_cv_c_const = no; then
21168
21169cat >>confdefs.h <<\_ACEOF
21170#define const
21171_ACEOF
21172
21173fi
21174
21175
21176
64ff59ba 21177ac_config_files="$ac_config_files Makefile"
21178
d9898ee8 21179cat >confcache <<\_ACEOF
21180# This file is a shell script that caches the results of configure
21181# tests run on this system so they can be shared between configure
21182# scripts and configure runs, see configure's option --config-cache.
21183# It is not useful on other systems. If it contains results you don't
21184# want to keep, you may remove or edit it.
21185#
21186# config.status only pays attention to the cache file if you give it
21187# the --recheck option to rerun configure.
21188#
21189# `ac_cv_env_foo' variables (set or unset) will be overridden when
21190# loading this file, other *unset* `ac_cv_foo' will be assigned the
21191# following values.
21192
21193_ACEOF
21194
21195# The following way of writing the cache mishandles newlines in values,
21196# but we know of no workaround that is simple, portable, and efficient.
64ff59ba 21197# So, we kill variables containing newlines.
d9898ee8 21198# Ultrix sh set writes to stderr and can't be redirected directly,
21199# and sets the high bit in the cache file unless we assign to the vars.
64ff59ba 21200(
21201 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21202 eval ac_val=\$$ac_var
21203 case $ac_val in #(
21204 *${as_nl}*)
21205 case $ac_var in #(
21206 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21207echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21208 esac
21209 case $ac_var in #(
21210 _ | IFS | as_nl) ;; #(
21211 *) $as_unset $ac_var ;;
21212 esac ;;
21213 esac
21214 done
21215
d9898ee8 21216 (set) 2>&1 |
64ff59ba 21217 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21218 *${as_nl}ac_space=\ *)
d9898ee8 21219 # `set' does not quote correctly, so add quotes (double-quote
21220 # substitution turns \\\\ into \\, and sed turns \\ into \).
21221 sed -n \
21222 "s/'/'\\\\''/g;
21223 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
64ff59ba 21224 ;; #(
d9898ee8 21225 *)
21226 # `set' quotes correctly as required by POSIX, so do not add quotes.
64ff59ba 21227 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 21228 ;;
64ff59ba 21229 esac |
21230 sort
21231) |
d9898ee8 21232 sed '
64ff59ba 21233 /^ac_cv_env_/b end
d9898ee8 21234 t clear
64ff59ba 21235 :clear
d9898ee8 21236 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21237 t end
64ff59ba 21238 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21239 :end' >>confcache
21240if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21241 if test -w "$cache_file"; then
21242 test "x$cache_file" != "x/dev/null" &&
21243 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21244echo "$as_me: updating cache $cache_file" >&6;}
d9898ee8 21245 cat confcache >$cache_file
21246 else
64ff59ba 21247 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21248echo "$as_me: not updating unwritable cache $cache_file" >&6;}
d9898ee8 21249 fi
21250fi
21251rm -f confcache
21252
21253test "x$prefix" = xNONE && prefix=$ac_default_prefix
21254# Let make expand exec_prefix.
21255test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21256
d9898ee8 21257DEFS=-DHAVE_CONFIG_H
21258
21259ac_libobjs=
21260ac_ltlibobjs=
21261for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21262 # 1. Remove the extension, and $U if already installed.
64ff59ba 21263 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21264 ac_i=`echo "$ac_i" | sed "$ac_script"`
21265 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21266 # will be set to the directory where LIBOBJS objects are built.
21267 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21268 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
d9898ee8 21269done
21270LIBOBJS=$ac_libobjs
21271
21272LTLIBOBJS=$ac_ltlibobjs
21273
21274
21275if test -z "${HMACC_TRUE}" && test -z "${HMACC_FALSE}"; then
21276 { { echo "$as_me:$LINENO: error: conditional \"HMACC\" was never defined.
21277Usually this means the macro was only invoked conditionally." >&5
21278echo "$as_me: error: conditional \"HMACC\" was never defined.
21279Usually this means the macro was only invoked conditionally." >&2;}
21280 { (exit 1); exit 1; }; }
21281fi
21282if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21283 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21284Usually this means the macro was only invoked conditionally." >&5
21285echo "$as_me: error: conditional \"AMDEP\" was never defined.
21286Usually this means the macro was only invoked conditionally." >&2;}
21287 { (exit 1); exit 1; }; }
21288fi
21289if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21290 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21291Usually this means the macro was only invoked conditionally." >&5
21292echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21293Usually this means the macro was only invoked conditionally." >&2;}
21294 { (exit 1); exit 1; }; }
21295fi
21296if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21297 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21298Usually this means the macro was only invoked conditionally." >&5
21299echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21300Usually this means the macro was only invoked conditionally." >&2;}
21301 { (exit 1); exit 1; }; }
21302fi
21303
21304: ${CONFIG_STATUS=./config.status}
21305ac_clean_files_save=$ac_clean_files
21306ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21307{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21308echo "$as_me: creating $CONFIG_STATUS" >&6;}
21309cat >$CONFIG_STATUS <<_ACEOF
21310#! $SHELL
21311# Generated by $as_me.
21312# Run this file to recreate the current configuration.
21313# Compiler output produced by configure, useful for debugging
21314# configure, is in config.log if it exists.
21315
21316debug=false
21317ac_cs_recheck=false
21318ac_cs_silent=false
21319SHELL=\${CONFIG_SHELL-$SHELL}
21320_ACEOF
21321
21322cat >>$CONFIG_STATUS <<\_ACEOF
21323## --------------------- ##
21324## M4sh Initialization. ##
21325## --------------------- ##
21326
64ff59ba 21327# Be more Bourne compatible
21328DUALCASE=1; export DUALCASE # for MKS sh
d9898ee8 21329if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21330 emulate sh
21331 NULLCMD=:
21332 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21333 # is contrary to our usage. Disable this feature.
21334 alias -g '${1+"$@"}'='"$@"'
64ff59ba 21335 setopt NO_GLOB_SUBST
21336else
21337 case `(set -o) 2>/dev/null` in
21338 *posix*) set -o posix ;;
21339esac
21340
21341fi
21342
21343
21344
21345
21346# PATH needs CR
21347# Avoid depending upon Character Ranges.
21348as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21349as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21350as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21351as_cr_digits='0123456789'
21352as_cr_alnum=$as_cr_Letters$as_cr_digits
21353
21354# The user is always right.
21355if test "${PATH_SEPARATOR+set}" != set; then
21356 echo "#! /bin/sh" >conf$$.sh
21357 echo "exit 0" >>conf$$.sh
21358 chmod +x conf$$.sh
21359 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21360 PATH_SEPARATOR=';'
21361 else
21362 PATH_SEPARATOR=:
21363 fi
21364 rm -f conf$$.sh
d9898ee8 21365fi
d9898ee8 21366
21367# Support unset when possible.
21368if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21369 as_unset=unset
21370else
21371 as_unset=false
21372fi
21373
21374
64ff59ba 21375# IFS
21376# We need space, tab and new line, in precisely that order. Quoting is
21377# there to prevent editors from complaining about space-tab.
21378# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21379# splitting by setting IFS to empty value.)
21380as_nl='
21381'
21382IFS=" "" $as_nl"
21383
21384# Find who we are. Look in the path if we contain no directory separator.
21385case $0 in
21386 *[\\/]* ) as_myself=$0 ;;
21387 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21388for as_dir in $PATH
21389do
21390 IFS=$as_save_IFS
21391 test -z "$as_dir" && as_dir=.
21392 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21393done
21394IFS=$as_save_IFS
21395
21396 ;;
21397esac
21398# We did not find ourselves, most probably we were run as `sh COMMAND'
21399# in which case we are not to be found in the path.
21400if test "x$as_myself" = x; then
21401 as_myself=$0
21402fi
21403if test ! -f "$as_myself"; then
21404 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21405 { (exit 1); exit 1; }
21406fi
21407
d9898ee8 21408# Work around bugs in pre-3.0 UWIN ksh.
64ff59ba 21409for as_var in ENV MAIL MAILPATH
21410do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21411done
d9898ee8 21412PS1='$ '
21413PS2='> '
21414PS4='+ '
21415
21416# NLS nuisances.
21417for as_var in \
21418 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21419 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21420 LC_TELEPHONE LC_TIME
21421do
21422 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21423 eval $as_var=C; export $as_var
21424 else
64ff59ba 21425 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
d9898ee8 21426 fi
21427done
21428
21429# Required to use basename.
64ff59ba 21430if expr a : '\(a\)' >/dev/null 2>&1 &&
21431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 21432 as_expr=expr
21433else
21434 as_expr=false
21435fi
21436
64ff59ba 21437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d9898ee8 21438 as_basename=basename
21439else
21440 as_basename=false
21441fi
21442
21443
21444# Name of the executable.
64ff59ba 21445as_me=`$as_basename -- "$0" ||
d9898ee8 21446$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21447 X"$0" : 'X\(//\)$' \| \
64ff59ba 21448 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21449echo X/"$0" |
64ff59ba 21450 sed '/^.*\/\([^/][^/]*\)\/*$/{
21451 s//\1/
21452 q
21453 }
21454 /^X\/\(\/\/\)$/{
21455 s//\1/
21456 q
21457 }
21458 /^X\/\(\/\).*/{
21459 s//\1/
21460 q
21461 }
21462 s/.*/./; q'`
d9898ee8 21463
64ff59ba 21464# CDPATH.
21465$as_unset CDPATH
d9898ee8 21466
d9898ee8 21467
21468
21469 as_lineno_1=$LINENO
21470 as_lineno_2=$LINENO
d9898ee8 21471 test "x$as_lineno_1" != "x$as_lineno_2" &&
64ff59ba 21472 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 21473
21474 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21475 # uniformly replaced by the line number. The first 'sed' inserts a
64ff59ba 21476 # line-number line after each line using $LINENO; the second 'sed'
21477 # does the real work. The second script uses 'N' to pair each
21478 # line-number line with the line containing $LINENO, and appends
21479 # trailing '-' during substitution so that $LINENO is not a special
21480 # case at line end.
d9898ee8 21481 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
64ff59ba 21482 # scripts with optimization help from Paolo Bonzini. Blame Lee
21483 # E. McMahon (1931-1989) for sed's syntax. :-)
21484 sed -n '
21485 p
21486 /[$]LINENO/=
21487 ' <$as_myself |
d9898ee8 21488 sed '
64ff59ba 21489 s/[$]LINENO.*/&-/
21490 t lineno
21491 b
21492 :lineno
d9898ee8 21493 N
64ff59ba 21494 :loop
21495 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 21496 t loop
64ff59ba 21497 s/-\n.*//
d9898ee8 21498 ' >$as_me.lineno &&
64ff59ba 21499 chmod +x "$as_me.lineno" ||
21500 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
d9898ee8 21501 { (exit 1); exit 1; }; }
21502
21503 # Don't try to exec as it changes $[0], causing all sort of problems
21504 # (the dirname of $[0] is not the place where we might find the
64ff59ba 21505 # original and so on. Autoconf is especially sensitive to this).
21506 . "./$as_me.lineno"
d9898ee8 21507 # Exit status is that of the last command.
21508 exit
21509}
21510
21511
64ff59ba 21512if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21513 as_dirname=dirname
21514else
21515 as_dirname=false
21516fi
21517
21518ECHO_C= ECHO_N= ECHO_T=
21519case `echo -n x` in
21520-n*)
21521 case `echo 'x\c'` in
21522 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21523 *) ECHO_C='\c';;
21524 esac;;
21525*)
21526 ECHO_N='-n';;
d9898ee8 21527esac
21528
64ff59ba 21529if expr a : '\(a\)' >/dev/null 2>&1 &&
21530 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 21531 as_expr=expr
21532else
21533 as_expr=false
21534fi
21535
21536rm -f conf$$ conf$$.exe conf$$.file
64ff59ba 21537if test -d conf$$.dir; then
21538 rm -f conf$$.dir/conf$$.file
21539else
21540 rm -f conf$$.dir
21541 mkdir conf$$.dir
21542fi
d9898ee8 21543echo >conf$$.file
21544if ln -s conf$$.file conf$$ 2>/dev/null; then
64ff59ba 21545 as_ln_s='ln -s'
21546 # ... but there are two gotchas:
21547 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21548 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21549 # In both cases, we have to default to `cp -p'.
21550 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d9898ee8 21551 as_ln_s='cp -p'
d9898ee8 21552elif ln conf$$.file conf$$ 2>/dev/null; then
21553 as_ln_s=ln
21554else
21555 as_ln_s='cp -p'
21556fi
64ff59ba 21557rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21558rmdir conf$$.dir 2>/dev/null
d9898ee8 21559
21560if mkdir -p . 2>/dev/null; then
21561 as_mkdir_p=:
21562else
21563 test -d ./-p && rmdir ./-p
21564 as_mkdir_p=false
21565fi
21566
64ff59ba 21567if test -x / >/dev/null 2>&1; then
21568 as_test_x='test -x'
21569else
21570 if ls -dL / >/dev/null 2>&1; then
21571 as_ls_L_option=L
21572 else
21573 as_ls_L_option=
21574 fi
21575 as_test_x='
21576 eval sh -c '\''
21577 if test -d "$1"; then
21578 test -d "$1/.";
21579 else
21580 case $1 in
21581 -*)set "./$1";;
21582 esac;
21583 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21584 ???[sx]*):;;*)false;;esac;fi
21585 '\'' sh
21586 '
21587fi
21588as_executable_p=$as_test_x
d9898ee8 21589
21590# Sed expression to map a string onto a valid CPP name.
21591as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21592
21593# Sed expression to map a string onto a valid variable name.
21594as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21595
21596
d9898ee8 21597exec 6>&1
21598
64ff59ba 21599# Save the log message, to keep $[0] and so on meaningful, and to
d9898ee8 21600# report actual input values of CONFIG_FILES etc. instead of their
64ff59ba 21601# values after options handling.
21602ac_log="
d9898ee8 21603This file was extended by libmd5 $as_me 1.21, which was
64ff59ba 21604generated by GNU Autoconf 2.61. Invocation command line was
d9898ee8 21605
21606 CONFIG_FILES = $CONFIG_FILES
21607 CONFIG_HEADERS = $CONFIG_HEADERS
21608 CONFIG_LINKS = $CONFIG_LINKS
21609 CONFIG_COMMANDS = $CONFIG_COMMANDS
21610 $ $0 $@
21611
64ff59ba 21612on `(hostname || uname -n) 2>/dev/null | sed 1q`
21613"
21614
d9898ee8 21615_ACEOF
21616
64ff59ba 21617cat >>$CONFIG_STATUS <<_ACEOF
d9898ee8 21618# Files that config.status was made for.
64ff59ba 21619config_files="$ac_config_files"
21620config_headers="$ac_config_headers"
21621config_commands="$ac_config_commands"
d9898ee8 21622
64ff59ba 21623_ACEOF
d9898ee8 21624
21625cat >>$CONFIG_STATUS <<\_ACEOF
d9898ee8 21626ac_cs_usage="\
21627\`$as_me' instantiates files from templates according to the
21628current configuration.
21629
21630Usage: $0 [OPTIONS] [FILE]...
21631
21632 -h, --help print this help, then exit
64ff59ba 21633 -V, --version print version number and configuration settings, then exit
d9898ee8 21634 -q, --quiet do not print progress messages
21635 -d, --debug don't remove temporary files
21636 --recheck update $as_me by reconfiguring in the same conditions
21637 --file=FILE[:TEMPLATE]
21638 instantiate the configuration file FILE
21639 --header=FILE[:TEMPLATE]
21640 instantiate the configuration header FILE
21641
21642Configuration files:
21643$config_files
21644
21645Configuration headers:
21646$config_headers
21647
21648Configuration commands:
21649$config_commands
21650
21651Report bugs to <bug-autoconf@gnu.org>."
d9898ee8 21652
64ff59ba 21653_ACEOF
d9898ee8 21654cat >>$CONFIG_STATUS <<_ACEOF
21655ac_cs_version="\\
21656libmd5 config.status 1.21
64ff59ba 21657configured by $0, generated by GNU Autoconf 2.61,
21658 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
d9898ee8 21659
64ff59ba 21660Copyright (C) 2006 Free Software Foundation, Inc.
d9898ee8 21661This config.status script is free software; the Free Software Foundation
21662gives unlimited permission to copy, distribute and modify it."
64ff59ba 21663
21664ac_pwd='$ac_pwd'
21665srcdir='$srcdir'
21666INSTALL='$INSTALL'
21667MKDIR_P='$MKDIR_P'
d9898ee8 21668_ACEOF
21669
21670cat >>$CONFIG_STATUS <<\_ACEOF
21671# If no file are specified by the user, then we need to provide default
21672# value. By we need to know if files were specified by the user.
21673ac_need_defaults=:
21674while test $# != 0
21675do
21676 case $1 in
21677 --*=*)
64ff59ba 21678 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21679 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
d9898ee8 21680 ac_shift=:
21681 ;;
64ff59ba 21682 *)
d9898ee8 21683 ac_option=$1
21684 ac_optarg=$2
21685 ac_shift=shift
21686 ;;
d9898ee8 21687 esac
21688
21689 case $ac_option in
21690 # Handling of the options.
d9898ee8 21691 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21692 ac_cs_recheck=: ;;
64ff59ba 21693 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21694 echo "$ac_cs_version"; exit ;;
21695 --debug | --debu | --deb | --de | --d | -d )
d9898ee8 21696 debug=: ;;
21697 --file | --fil | --fi | --f )
21698 $ac_shift
21699 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21700 ac_need_defaults=false;;
21701 --header | --heade | --head | --hea )
21702 $ac_shift
21703 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21704 ac_need_defaults=false;;
64ff59ba 21705 --he | --h)
21706 # Conflict between --help and --header
21707 { echo "$as_me: error: ambiguous option: $1
21708Try \`$0 --help' for more information." >&2
21709 { (exit 1); exit 1; }; };;
21710 --help | --hel | -h )
21711 echo "$ac_cs_usage"; exit ;;
d9898ee8 21712 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21713 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21714 ac_cs_silent=: ;;
21715
21716 # This is an error.
64ff59ba 21717 -*) { echo "$as_me: error: unrecognized option: $1
21718Try \`$0 --help' for more information." >&2
d9898ee8 21719 { (exit 1); exit 1; }; } ;;
21720
64ff59ba 21721 *) ac_config_targets="$ac_config_targets $1"
21722 ac_need_defaults=false ;;
d9898ee8 21723
21724 esac
21725 shift
21726done
21727
21728ac_configure_extra_args=
21729
21730if $ac_cs_silent; then
21731 exec 6>/dev/null
21732 ac_configure_extra_args="$ac_configure_extra_args --silent"
21733fi
21734
21735_ACEOF
21736cat >>$CONFIG_STATUS <<_ACEOF
21737if \$ac_cs_recheck; then
64ff59ba 21738 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21739 CONFIG_SHELL=$SHELL
21740 export CONFIG_SHELL
21741 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
d9898ee8 21742fi
21743
21744_ACEOF
64ff59ba 21745cat >>$CONFIG_STATUS <<\_ACEOF
21746exec 5>>config.log
21747{
21748 echo
21749 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21750## Running $as_me. ##
21751_ASBOX
21752 echo "$ac_log"
21753} >&5
d9898ee8 21754
64ff59ba 21755_ACEOF
d9898ee8 21756cat >>$CONFIG_STATUS <<_ACEOF
21757#
64ff59ba 21758# INIT-COMMANDS
d9898ee8 21759#
d9898ee8 21760AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21761
21762_ACEOF
21763
d9898ee8 21764cat >>$CONFIG_STATUS <<\_ACEOF
64ff59ba 21765
21766# Handling of arguments.
d9898ee8 21767for ac_config_target in $ac_config_targets
21768do
64ff59ba 21769 case $ac_config_target in
21770 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21771 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21772 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21773
d9898ee8 21774 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21775echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21776 { (exit 1); exit 1; }; };;
21777 esac
21778done
21779
64ff59ba 21780
d9898ee8 21781# If the user did not use the arguments to specify the items to instantiate,
21782# then the envvar interface is used. Set only those that are not.
21783# We use the long form for the default assignment because of an extremely
21784# bizarre bug on SunOS 4.1.3.
21785if $ac_need_defaults; then
21786 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21787 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21788 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21789fi
21790
21791# Have a temporary directory for convenience. Make it in the build tree
64ff59ba 21792# simply because there is no reason against having it here, and in addition,
d9898ee8 21793# creating and moving files from /tmp can sometimes cause problems.
64ff59ba 21794# Hook for its removal unless debugging.
21795# Note that there is a small window in which the directory will not be cleaned:
21796# after its creation but before its name has been assigned to `$tmp'.
d9898ee8 21797$debug ||
21798{
64ff59ba 21799 tmp=
21800 trap 'exit_status=$?
21801 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21802' 0
d9898ee8 21803 trap '{ (exit 1); exit 1; }' 1 2 13 15
21804}
d9898ee8 21805# Create a (secure) tmp directory for tmp files.
21806
21807{
64ff59ba 21808 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d9898ee8 21809 test -n "$tmp" && test -d "$tmp"
21810} ||
21811{
64ff59ba 21812 tmp=./conf$$-$RANDOM
21813 (umask 077 && mkdir "$tmp")
d9898ee8 21814} ||
21815{
21816 echo "$me: cannot create a temporary directory in ." >&2
21817 { (exit 1); exit 1; }
21818}
21819
d9898ee8 21820#
64ff59ba 21821# Set up the sed scripts for CONFIG_FILES section.
d9898ee8 21822#
21823
21824# No need to generate the scripts if there are no CONFIG_FILES.
21825# This happens for instance when ./config.status config.h
64ff59ba 21826if test -n "$CONFIG_FILES"; then
d9898ee8 21827
21828_ACEOF
21829
64ff59ba 21830
21831
21832ac_delim='%!_!# '
21833for ac_last_try in false false false false false :; do
21834 cat >conf$$subs.sed <<_ACEOF
21835SHELL!$SHELL$ac_delim
21836PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21837PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21838PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21839PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21840PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21841PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21842exec_prefix!$exec_prefix$ac_delim
21843prefix!$prefix$ac_delim
21844program_transform_name!$program_transform_name$ac_delim
21845bindir!$bindir$ac_delim
21846sbindir!$sbindir$ac_delim
21847libexecdir!$libexecdir$ac_delim
21848datarootdir!$datarootdir$ac_delim
21849datadir!$datadir$ac_delim
21850sysconfdir!$sysconfdir$ac_delim
21851sharedstatedir!$sharedstatedir$ac_delim
21852localstatedir!$localstatedir$ac_delim
21853includedir!$includedir$ac_delim
21854oldincludedir!$oldincludedir$ac_delim
21855docdir!$docdir$ac_delim
21856infodir!$infodir$ac_delim
21857htmldir!$htmldir$ac_delim
21858dvidir!$dvidir$ac_delim
21859pdfdir!$pdfdir$ac_delim
21860psdir!$psdir$ac_delim
21861libdir!$libdir$ac_delim
21862localedir!$localedir$ac_delim
21863mandir!$mandir$ac_delim
21864DEFS!$DEFS$ac_delim
21865ECHO_C!$ECHO_C$ac_delim
21866ECHO_N!$ECHO_N$ac_delim
21867ECHO_T!$ECHO_T$ac_delim
21868LIBS!$LIBS$ac_delim
21869build_alias!$build_alias$ac_delim
21870host_alias!$host_alias$ac_delim
21871target_alias!$target_alias$ac_delim
21872INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21873INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21874INSTALL_DATA!$INSTALL_DATA$ac_delim
21875am__isrc!$am__isrc$ac_delim
21876CYGPATH_W!$CYGPATH_W$ac_delim
21877PACKAGE!$PACKAGE$ac_delim
21878VERSION!$VERSION$ac_delim
21879ACLOCAL!$ACLOCAL$ac_delim
21880AUTOCONF!$AUTOCONF$ac_delim
21881AUTOMAKE!$AUTOMAKE$ac_delim
21882AUTOHEADER!$AUTOHEADER$ac_delim
21883MAKEINFO!$MAKEINFO$ac_delim
21884install_sh!$install_sh$ac_delim
21885STRIP!$STRIP$ac_delim
21886INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21887mkdir_p!$mkdir_p$ac_delim
21888AWK!$AWK$ac_delim
21889SET_MAKE!$SET_MAKE$ac_delim
21890am__leading_dot!$am__leading_dot$ac_delim
21891AMTAR!$AMTAR$ac_delim
21892am__tar!$am__tar$ac_delim
21893am__untar!$am__untar$ac_delim
21894HMACC_TRUE!$HMACC_TRUE$ac_delim
21895HMACC_FALSE!$HMACC_FALSE$ac_delim
21896LN_S!$LN_S$ac_delim
21897CC!$CC$ac_delim
21898CFLAGS!$CFLAGS$ac_delim
21899LDFLAGS!$LDFLAGS$ac_delim
21900CPPFLAGS!$CPPFLAGS$ac_delim
21901ac_ct_CC!$ac_ct_CC$ac_delim
21902EXEEXT!$EXEEXT$ac_delim
21903OBJEXT!$OBJEXT$ac_delim
21904DEPDIR!$DEPDIR$ac_delim
21905am__include!$am__include$ac_delim
21906am__quote!$am__quote$ac_delim
21907AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21908AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21909AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21910CCDEPMODE!$CCDEPMODE$ac_delim
21911am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21912am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21913build!$build$ac_delim
21914build_cpu!$build_cpu$ac_delim
21915build_vendor!$build_vendor$ac_delim
21916build_os!$build_os$ac_delim
21917host!$host$ac_delim
21918host_cpu!$host_cpu$ac_delim
21919host_vendor!$host_vendor$ac_delim
21920host_os!$host_os$ac_delim
21921SED!$SED$ac_delim
21922GREP!$GREP$ac_delim
21923EGREP!$EGREP$ac_delim
21924ECHO!$ECHO$ac_delim
21925AR!$AR$ac_delim
21926RANLIB!$RANLIB$ac_delim
21927CPP!$CPP$ac_delim
21928CXX!$CXX$ac_delim
21929CXXFLAGS!$CXXFLAGS$ac_delim
21930ac_ct_CXX!$ac_ct_CXX$ac_delim
21931CXXDEPMODE!$CXXDEPMODE$ac_delim
21932_ACEOF
21933
21934 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21935 break
21936 elif $ac_last_try; then
21937 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21938echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21939 { (exit 1); exit 1; }; }
21940 else
21941 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
d9898ee8 21942 fi
64ff59ba 21943done
21944
21945ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21946if test -n "$ac_eof"; then
21947 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21948 ac_eof=`expr $ac_eof + 1`
21949fi
d9898ee8 21950
64ff59ba 21951cat >>$CONFIG_STATUS <<_ACEOF
21952cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21953/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
d9898ee8 21954_ACEOF
64ff59ba 21955sed '
21956s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21957s/^/s,@/; s/!/@,|#_!!_#|/
21958:n
21959t n
21960s/'"$ac_delim"'$/,g/; t
21961s/$/\\/; p
21962N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21963' >>$CONFIG_STATUS <conf$$subs.sed
21964rm -f conf$$subs.sed
21965cat >>$CONFIG_STATUS <<_ACEOF
21966CEOF$ac_eof
21967_ACEOF
21968
21969
21970ac_delim='%!_!# '
21971for ac_last_try in false false false false false :; do
21972 cat >conf$$subs.sed <<_ACEOF
21973am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21974am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21975CXXCPP!$CXXCPP$ac_delim
21976F77!$F77$ac_delim
21977FFLAGS!$FFLAGS$ac_delim
21978ac_ct_F77!$ac_ct_F77$ac_delim
21979LIBTOOL!$LIBTOOL$ac_delim
21980LIBOBJS!$LIBOBJS$ac_delim
21981LTLIBOBJS!$LTLIBOBJS$ac_delim
21982_ACEOF
21983
21984 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
21985 break
21986 elif $ac_last_try; then
21987 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21988echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21989 { (exit 1); exit 1; }; }
21990 else
21991 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21992 fi
21993done
21994
21995ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21996if test -n "$ac_eof"; then
21997 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21998 ac_eof=`expr $ac_eof + 1`
21999fi
22000
22001cat >>$CONFIG_STATUS <<_ACEOF
22002cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22003/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22004_ACEOF
22005sed '
22006s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22007s/^/s,@/; s/!/@,|#_!!_#|/
22008:n
22009t n
22010s/'"$ac_delim"'$/,g/; t
22011s/$/\\/; p
22012N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22013' >>$CONFIG_STATUS <conf$$subs.sed
22014rm -f conf$$subs.sed
22015cat >>$CONFIG_STATUS <<_ACEOF
22016:end
22017s/|#_!!_#|//g
22018CEOF$ac_eof
22019_ACEOF
22020
22021
22022# VPATH may cause trouble with some makes, so we remove $(srcdir),
22023# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22024# trailing colons and then remove the whole line if VPATH becomes empty
22025# (actually we leave an empty line to preserve line numbers).
22026if test "x$srcdir" = x.; then
22027 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22028s/:*\$(srcdir):*/:/
22029s/:*\${srcdir}:*/:/
22030s/:*@srcdir@:*/:/
22031s/^\([^=]*=[ ]*\):*/\1/
22032s/:*$//
22033s/^[^=]*=[ ]*$//
22034}'
22035fi
22036
d9898ee8 22037cat >>$CONFIG_STATUS <<\_ACEOF
64ff59ba 22038fi # test -n "$CONFIG_FILES"
22039
22040
22041for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22042do
22043 case $ac_tag in
22044 :[FHLC]) ac_mode=$ac_tag; continue;;
22045 esac
22046 case $ac_mode$ac_tag in
22047 :[FHL]*:*);;
22048 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22049echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22050 { (exit 1); exit 1; }; };;
22051 :[FH]-) ac_tag=-:-;;
22052 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22053 esac
22054 ac_save_IFS=$IFS
22055 IFS=:
22056 set x $ac_tag
22057 IFS=$ac_save_IFS
22058 shift
22059 ac_file=$1
22060 shift
22061
22062 case $ac_mode in
22063 :L) ac_source=$1;;
22064 :[FH])
22065 ac_file_inputs=
22066 for ac_f
22067 do
22068 case $ac_f in
22069 -) ac_f="$tmp/stdin";;
22070 *) # Look for the file first in the build tree, then in the source tree
22071 # (if the path is not absolute). The absolute path cannot be DOS-style,
22072 # because $ac_f cannot contain `:'.
22073 test -f "$ac_f" ||
22074 case $ac_f in
22075 [\\/$]*) false;;
22076 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22077 esac ||
22078 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22079echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22080 { (exit 1); exit 1; }; };;
22081 esac
22082 ac_file_inputs="$ac_file_inputs $ac_f"
22083 done
22084
22085 # Let's still pretend it is `configure' which instantiates (i.e., don't
22086 # use $as_me), people would be surprised to read:
22087 # /* config.h. Generated by config.status. */
22088 configure_input="Generated from "`IFS=:
22089 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22090 if test x"$ac_file" != x-; then
22091 configure_input="$ac_file. $configure_input"
22092 { echo "$as_me:$LINENO: creating $ac_file" >&5
22093echo "$as_me: creating $ac_file" >&6;}
22094 fi
22095
22096 case $ac_tag in
22097 *:-:* | *:-) cat >"$tmp/stdin";;
22098 esac
22099 ;;
d9898ee8 22100 esac
22101
64ff59ba 22102 ac_dir=`$as_dirname -- "$ac_file" ||
d9898ee8 22103$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22104 X"$ac_file" : 'X\(//\)[^/]' \| \
22105 X"$ac_file" : 'X\(//\)$' \| \
64ff59ba 22106 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 22107echo X"$ac_file" |
64ff59ba 22108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22109 s//\1/
22110 q
22111 }
22112 /^X\(\/\/\)[^/].*/{
22113 s//\1/
22114 q
22115 }
22116 /^X\(\/\/\)$/{
22117 s//\1/
22118 q
22119 }
22120 /^X\(\/\).*/{
22121 s//\1/
22122 q
22123 }
22124 s/.*/./; q'`
22125 { as_dir="$ac_dir"
22126 case $as_dir in #(
22127 -*) as_dir=./$as_dir;;
22128 esac
22129 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 22130 as_dirs=
64ff59ba 22131 while :; do
22132 case $as_dir in #(
22133 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22134 *) as_qdir=$as_dir;;
22135 esac
22136 as_dirs="'$as_qdir' $as_dirs"
22137 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 22138$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22139 X"$as_dir" : 'X\(//\)[^/]' \| \
22140 X"$as_dir" : 'X\(//\)$' \| \
64ff59ba 22141 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 22142echo X"$as_dir" |
64ff59ba 22143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22144 s//\1/
22145 q
22146 }
22147 /^X\(\/\/\)[^/].*/{
22148 s//\1/
22149 q
22150 }
22151 /^X\(\/\/\)$/{
22152 s//\1/
22153 q
22154 }
22155 /^X\(\/\).*/{
22156 s//\1/
22157 q
22158 }
22159 s/.*/./; q'`
22160 test -d "$as_dir" && break
d9898ee8 22161 done
64ff59ba 22162 test -z "$as_dirs" || eval "mkdir $as_dirs"
22163 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22164echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 22165 { (exit 1); exit 1; }; }; }
d9898ee8 22166 ac_builddir=.
22167
64ff59ba 22168case "$ac_dir" in
22169.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22170*)
d9898ee8 22171 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
64ff59ba 22172 # A ".." for each directory in $ac_dir_suffix.
22173 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22174 case $ac_top_builddir_sub in
22175 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22176 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22177 esac ;;
22178esac
22179ac_abs_top_builddir=$ac_pwd
22180ac_abs_builddir=$ac_pwd$ac_dir_suffix
22181# for backward compatibility:
22182ac_top_builddir=$ac_top_build_prefix
d9898ee8 22183
22184case $srcdir in
64ff59ba 22185 .) # We are building in place.
d9898ee8 22186 ac_srcdir=.
64ff59ba 22187 ac_top_srcdir=$ac_top_builddir_sub
22188 ac_abs_top_srcdir=$ac_pwd ;;
22189 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 22190 ac_srcdir=$srcdir$ac_dir_suffix;
64ff59ba 22191 ac_top_srcdir=$srcdir
22192 ac_abs_top_srcdir=$srcdir ;;
22193 *) # Relative name.
22194 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22195 ac_top_srcdir=$ac_top_build_prefix$srcdir
22196 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 22197esac
64ff59ba 22198ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 22199
d9898ee8 22200
64ff59ba 22201 case $ac_mode in
22202 :F)
22203 #
22204 # CONFIG_FILE
22205 #
d9898ee8 22206
22207 case $INSTALL in
22208 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
64ff59ba 22209 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22210 esac
22211 ac_MKDIR_P=$MKDIR_P
22212 case $MKDIR_P in
22213 [\\/$]* | ?:[\\/]* ) ;;
22214 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
d9898ee8 22215 esac
64ff59ba 22216_ACEOF
d9898ee8 22217
64ff59ba 22218cat >>$CONFIG_STATUS <<\_ACEOF
22219# If the template does not know about datarootdir, expand it.
22220# FIXME: This hack should be removed a few years after 2.60.
22221ac_datarootdir_hack=; ac_datarootdir_seen=
22222
22223case `sed -n '/datarootdir/ {
22224 p
22225 q
22226}
22227/@datadir@/p
22228/@docdir@/p
22229/@infodir@/p
22230/@localedir@/p
22231/@mandir@/p
22232' $ac_file_inputs` in
22233*datarootdir*) ac_datarootdir_seen=yes;;
22234*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22235 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22236echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
d9898ee8 22237_ACEOF
64ff59ba 22238cat >>$CONFIG_STATUS <<_ACEOF
22239 ac_datarootdir_hack='
22240 s&@datadir@&$datadir&g
22241 s&@docdir@&$docdir&g
22242 s&@infodir@&$infodir&g
22243 s&@localedir@&$localedir&g
22244 s&@mandir@&$mandir&g
22245 s&\\\${datarootdir}&$datarootdir&g' ;;
22246esac
22247_ACEOF
22248
22249# Neutralize VPATH when `$srcdir' = `.'.
22250# Shell code in configure.ac might set extrasub.
22251# FIXME: do we really want to maintain this feature?
d9898ee8 22252cat >>$CONFIG_STATUS <<_ACEOF
22253 sed "$ac_vpsub
22254$extrasub
22255_ACEOF
22256cat >>$CONFIG_STATUS <<\_ACEOF
22257:t
22258/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
64ff59ba 22259s&@configure_input@&$configure_input&;t t
22260s&@top_builddir@&$ac_top_builddir_sub&;t t
22261s&@srcdir@&$ac_srcdir&;t t
22262s&@abs_srcdir@&$ac_abs_srcdir&;t t
22263s&@top_srcdir@&$ac_top_srcdir&;t t
22264s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22265s&@builddir@&$ac_builddir&;t t
22266s&@abs_builddir@&$ac_abs_builddir&;t t
22267s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22268s&@INSTALL@&$ac_INSTALL&;t t
22269s&@MKDIR_P@&$ac_MKDIR_P&;t t
22270$ac_datarootdir_hack
22271" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22272
22273test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22274 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22275 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22276 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22277which seems to be undefined. Please make sure it is defined." >&5
22278echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22279which seems to be undefined. Please make sure it is defined." >&2;}
22280
22281 rm -f "$tmp/stdin"
d9898ee8 22282 case $ac_file in
64ff59ba 22283 -) cat "$tmp/out"; rm -f "$tmp/out";;
22284 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
d9898ee8 22285 esac
64ff59ba 22286 ;;
22287 :H)
22288 #
22289 # CONFIG_HEADER
22290 #
d9898ee8 22291_ACEOF
22292
64ff59ba 22293# Transform confdefs.h into a sed script `conftest.defines', that
22294# substitutes the proper values into config.h.in to produce config.h.
22295rm -f conftest.defines conftest.tail
22296# First, append a space to every undef/define line, to ease matching.
22297echo 's/$/ /' >conftest.defines
22298# Then, protect against being on the right side of a sed subst, or in
22299# an unquoted here document, in config.status. If some macros were
22300# called several times there might be several #defines for the same
22301# symbol, which is useless. But do not sort them, since the last
22302# AC_DEFINE must be honored.
22303ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22304# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22305# NAME is the cpp macro being defined, VALUE is the value it is being given.
22306# PARAMS is the parameter list in the macro definition--in most cases, it's
22307# just an empty string.
22308ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22309ac_dB='\\)[ (].*,\\1define\\2'
22310ac_dC=' '
22311ac_dD=' ,'
22312
22313uniq confdefs.h |
22314 sed -n '
22315 t rset
22316 :rset
22317 s/^[ ]*#[ ]*define[ ][ ]*//
22318 t ok
22319 d
22320 :ok
22321 s/[\\&,]/\\&/g
22322 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22323 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22324 ' >>conftest.defines
22325
22326# Remove the space that was appended to ease matching.
22327# Then replace #undef with comments. This is necessary, for
d9898ee8 22328# example, in the case of _POSIX_SOURCE, which is predefined and required
22329# on some systems where configure will not decide to define it.
64ff59ba 22330# (The regexp can be short, since the line contains either #define or #undef.)
22331echo 's/ $//
22332s,^[ #]*u.*,/* & */,' >>conftest.defines
22333
22334# Break up conftest.defines:
22335ac_max_sed_lines=50
22336
22337# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22338# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22339# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22340# et cetera.
22341ac_in='$ac_file_inputs'
22342ac_out='"$tmp/out1"'
22343ac_nxt='"$tmp/out2"'
22344
22345while :
d9898ee8 22346do
64ff59ba 22347 # Write a here document:
22348 cat >>$CONFIG_STATUS <<_ACEOF
22349 # First, check the format of the line:
22350 cat >"\$tmp/defines.sed" <<\\CEOF
22351/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22352/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22353b
22354:def
22355_ACEOF
22356 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
d9898ee8 22357 echo 'CEOF
64ff59ba 22358 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22359 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22360 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22361 grep . conftest.tail >/dev/null || break
d9898ee8 22362 rm -f conftest.defines
22363 mv conftest.tail conftest.defines
22364done
64ff59ba 22365rm -f conftest.defines conftest.tail
d9898ee8 22366
64ff59ba 22367echo "ac_result=$ac_in" >>$CONFIG_STATUS
d9898ee8 22368cat >>$CONFIG_STATUS <<\_ACEOF
d9898ee8 22369 if test x"$ac_file" != x-; then
64ff59ba 22370 echo "/* $configure_input */" >"$tmp/config.h"
22371 cat "$ac_result" >>"$tmp/config.h"
22372 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
d9898ee8 22373 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22374echo "$as_me: $ac_file is unchanged" >&6;}
22375 else
d9898ee8 22376 rm -f $ac_file
64ff59ba 22377 mv "$tmp/config.h" $ac_file
d9898ee8 22378 fi
22379 else
64ff59ba 22380 echo "/* $configure_input */"
22381 cat "$ac_result"
d9898ee8 22382 fi
64ff59ba 22383 rm -f "$tmp/out12"
d9898ee8 22384# Compute $ac_file's index in $config_headers.
22385_am_stamp_count=1
22386for _am_header in $config_headers :; do
22387 case $_am_header in
22388 $ac_file | $ac_file:* )
22389 break ;;
22390 * )
22391 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22392 esac
22393done
64ff59ba 22394echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
d9898ee8 22395$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22396 X$ac_file : 'X\(//\)[^/]' \| \
22397 X$ac_file : 'X\(//\)$' \| \
64ff59ba 22398 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 22399echo X$ac_file |
64ff59ba 22400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22401 s//\1/
22402 q
22403 }
22404 /^X\(\/\/\)[^/].*/{
22405 s//\1/
22406 q
22407 }
22408 /^X\(\/\/\)$/{
22409 s//\1/
22410 q
22411 }
22412 /^X\(\/\).*/{
22413 s//\1/
22414 q
22415 }
22416 s/.*/./; q'`/stamp-h$_am_stamp_count
22417 ;;
d9898ee8 22418
64ff59ba 22419 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22420echo "$as_me: executing $ac_file commands" >&6;}
22421 ;;
22422 esac
d9898ee8 22423
22424
64ff59ba 22425 case $ac_file$ac_mode in
22426 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
d9898ee8 22427 # Strip MF so we end up with the name of the file.
22428 mf=`echo "$mf" | sed -e 's/:.*$//'`
22429 # Check whether this is an Automake generated Makefile or not.
22430 # We used to match only the files named `Makefile.in', but
22431 # some people rename them; so instead we look at the file content.
22432 # Grep'ing the first line is not enough: some people post-process
22433 # each Makefile.in and add a new line on top of each file to say so.
64ff59ba 22434 # Grep'ing the whole file is not good either: AIX grep has a line
22435 # limit of 2048, but all sed's we know have understand at least 4000.
22436 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
22437 dirpart=`$as_dirname -- "$mf" ||
d9898ee8 22438$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22439 X"$mf" : 'X\(//\)[^/]' \| \
22440 X"$mf" : 'X\(//\)$' \| \
64ff59ba 22441 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 22442echo X"$mf" |
64ff59ba 22443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22444 s//\1/
22445 q
22446 }
22447 /^X\(\/\/\)[^/].*/{
22448 s//\1/
22449 q
22450 }
22451 /^X\(\/\/\)$/{
22452 s//\1/
22453 q
22454 }
22455 /^X\(\/\).*/{
22456 s//\1/
22457 q
22458 }
22459 s/.*/./; q'`
d9898ee8 22460 else
22461 continue
22462 fi
22463 # Extract the definition of DEPDIR, am__include, and am__quote
22464 # from the Makefile without running `make'.
22465 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22466 test -z "$DEPDIR" && continue
22467 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22468 test -z "am__include" && continue
22469 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22470 # When using ansi2knr, U may be empty or an underscore; expand it
22471 U=`sed -n 's/^U = //p' < "$mf"`
22472 # Find all dependency output files, they are included files with
22473 # $(DEPDIR) in their names. We invoke sed twice because it is the
22474 # simplest approach to changing $(DEPDIR) to its actual value in the
22475 # expansion.
22476 for file in `sed -n "
22477 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22478 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22479 # Make sure the directory exists.
22480 test -f "$dirpart/$file" && continue
64ff59ba 22481 fdir=`$as_dirname -- "$file" ||
d9898ee8 22482$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22483 X"$file" : 'X\(//\)[^/]' \| \
22484 X"$file" : 'X\(//\)$' \| \
64ff59ba 22485 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 22486echo X"$file" |
64ff59ba 22487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22488 s//\1/
22489 q
22490 }
22491 /^X\(\/\/\)[^/].*/{
22492 s//\1/
22493 q
22494 }
22495 /^X\(\/\/\)$/{
22496 s//\1/
22497 q
22498 }
22499 /^X\(\/\).*/{
22500 s//\1/
22501 q
22502 }
22503 s/.*/./; q'`
22504 { as_dir=$dirpart/$fdir
22505 case $as_dir in #(
22506 -*) as_dir=./$as_dir;;
22507 esac
22508 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 22509 as_dirs=
64ff59ba 22510 while :; do
22511 case $as_dir in #(
22512 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22513 *) as_qdir=$as_dir;;
22514 esac
22515 as_dirs="'$as_qdir' $as_dirs"
22516 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 22517$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22518 X"$as_dir" : 'X\(//\)[^/]' \| \
22519 X"$as_dir" : 'X\(//\)$' \| \
64ff59ba 22520 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 22521echo X"$as_dir" |
64ff59ba 22522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22523 s//\1/
22524 q
22525 }
22526 /^X\(\/\/\)[^/].*/{
22527 s//\1/
22528 q
22529 }
22530 /^X\(\/\/\)$/{
22531 s//\1/
22532 q
22533 }
22534 /^X\(\/\).*/{
22535 s//\1/
22536 q
22537 }
22538 s/.*/./; q'`
22539 test -d "$as_dir" && break
d9898ee8 22540 done
64ff59ba 22541 test -z "$as_dirs" || eval "mkdir $as_dirs"
22542 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22543echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 22544 { (exit 1); exit 1; }; }; }
d9898ee8 22545 # echo "creating $dirpart/$file"
22546 echo '# dummy' > "$dirpart/$file"
22547 done
22548done
22549 ;;
64ff59ba 22550
d9898ee8 22551 esac
64ff59ba 22552done # for ac_tag
d9898ee8 22553
d9898ee8 22554
22555{ (exit 0); exit 0; }
22556_ACEOF
22557chmod +x $CONFIG_STATUS
22558ac_clean_files=$ac_clean_files_save
22559
22560
22561# configure is writing to config.log, and then calls config.status.
22562# config.status does its own redirection, appending to config.log.
22563# Unfortunately, on DOS this fails, as config.log is still kept open
22564# by configure, so config.status won't be able to write to it; its
22565# output is simply discarded. So we exec the FD to /dev/null,
22566# effectively closing config.log, so it can be properly (re)opened and
22567# appended to by config.status. When coming back to configure, we
22568# need to make the FD available again.
22569if test "$no_create" != yes; then
22570 ac_cs_success=:
22571 ac_config_status_args=
22572 test "$silent" = yes &&
22573 ac_config_status_args="$ac_config_status_args --quiet"
22574 exec 5>/dev/null
22575 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22576 exec 5>>config.log
22577 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22578 # would make configure fail if this is the last instruction.
22579 $ac_cs_success || { (exit 1); exit 1; }
22580fi
22581