Imported upstream version 0.61.0
[hcoop/debian/courier-authlib.git] / userdb / configure
CommitLineData
d9898ee8 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
dd184caf 3# Generated by GNU Autoconf 2.61 for libuserdb 0.10.
d9898ee8 4#
5# Report bugs to <courier-users@lists.sourceforge.net>.
6#
dd184caf 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
dd184caf 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+"$@"}'='"$@"'
dd184caf 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
dd184caf 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.
dd184caf 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
dd184caf 113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
d9898ee8 114 fi
115done
116
117# Required to use basename.
dd184caf 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
dd184caf 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.
dd184caf 133as_me=`$as_basename -- "$0" ||
d9898ee8 134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
dd184caf 136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 137echo X/"$0" |
dd184caf 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
dd184caf 152# CDPATH.
153$as_unset CDPATH
d9898ee8 154
d9898ee8 155
dd184caf 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
dd184caf 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
dd184caf 180exitcode=0
181if as_func_success; then
182 :
183else
184 exitcode=1
185 echo as_func_success failed.
186fi
d9898ee8 187
dd184caf 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=.
dd184caf 228 case $as_dir in
d9898ee8 229 /*)
dd184caf 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" &&
dd184caf 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
dd184caf 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
dd184caf 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 '
dd184caf 445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
d9898ee8 449 N
dd184caf 450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 452 t loop
dd184caf 453 s/-\n.*//
d9898ee8 454 ' >$as_me.lineno &&
dd184caf 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
dd184caf 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
dd184caf 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
dd184caf 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
dd184caf 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
dd184caf 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
dd184caf 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
dd184caf 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
dd184caf 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
dd184caf 719ac_clean_files=
d9898ee8 720ac_config_libobj_dir=.
dd184caf 721LIBOBJS=
d9898ee8 722cross_compiling=no
723subdirs=
724MFLAGS=
725MAKEFLAGS=
726SHELL=${CONFIG_SHELL-/bin/sh}
727
d9898ee8 728# Identity of this package.
729PACKAGE_NAME='libuserdb'
730PACKAGE_TARNAME='libuserdb'
731PACKAGE_VERSION='0.10'
732PACKAGE_STRING='libuserdb 0.10'
733PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
734
735ac_unique_file="userdb.c"
736# Factoring default headers for most tests.
737ac_includes_default="\
738#include <stdio.h>
dd184caf 739#ifdef HAVE_SYS_TYPES_H
d9898ee8 740# include <sys/types.h>
741#endif
dd184caf 742#ifdef HAVE_SYS_STAT_H
d9898ee8 743# include <sys/stat.h>
744#endif
dd184caf 745#ifdef STDC_HEADERS
d9898ee8 746# include <stdlib.h>
747# include <stddef.h>
748#else
dd184caf 749# ifdef HAVE_STDLIB_H
d9898ee8 750# include <stdlib.h>
751# endif
752#endif
dd184caf 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
dd184caf 759#ifdef HAVE_STRINGS_H
d9898ee8 760# include <strings.h>
761#endif
dd184caf 762#ifdef HAVE_INTTYPES_H
d9898ee8 763# include <inttypes.h>
d9898ee8 764#endif
dd184caf 765#ifdef HAVE_STDINT_H
766# include <stdint.h>
767#endif
768#ifdef HAVE_UNISTD_H
d9898ee8 769# include <unistd.h>
770#endif"
771
dd184caf 772ac_subst_vars='SHELL
773PATH_SEPARATOR
774PACKAGE_NAME
775PACKAGE_TARNAME
776PACKAGE_VERSION
777PACKAGE_STRING
778PACKAGE_BUGREPORT
779exec_prefix
780prefix
781program_transform_name
782bindir
783sbindir
784libexecdir
785datarootdir
786datadir
787sysconfdir
788sharedstatedir
789localstatedir
790includedir
791oldincludedir
792docdir
793infodir
794htmldir
795dvidir
796pdfdir
797psdir
798libdir
799localedir
800mandir
801DEFS
802ECHO_C
803ECHO_N
804ECHO_T
805LIBS
806build_alias
807host_alias
808target_alias
809INSTALL_PROGRAM
810INSTALL_SCRIPT
811INSTALL_DATA
812am__isrc
813CYGPATH_W
814PACKAGE
815VERSION
816ACLOCAL
817AUTOCONF
818AUTOMAKE
819AUTOHEADER
820MAKEINFO
821install_sh
822STRIP
823INSTALL_STRIP_PROGRAM
824mkdir_p
825AWK
826SET_MAKE
827am__leading_dot
828AMTAR
829am__tar
830am__untar
831CC
832CFLAGS
833LDFLAGS
834CPPFLAGS
835ac_ct_CC
836EXEEXT
837OBJEXT
838DEPDIR
839am__include
840am__quote
841AMDEP_TRUE
842AMDEP_FALSE
843AMDEPBACKSLASH
844CCDEPMODE
845am__fastdepCC_TRUE
846am__fastdepCC_FALSE
847LN_S
848build
849build_cpu
850build_vendor
851build_os
852host
853host_cpu
854host_vendor
855host_os
856SED
857GREP
858EGREP
859ECHO
860AR
861RANLIB
862CPP
863CXX
864CXXFLAGS
865ac_ct_CXX
866CXXDEPMODE
867am__fastdepCXX_TRUE
868am__fastdepCXX_FALSE
869CXXCPP
870F77
871FFLAGS
872ac_ct_F77
873LIBTOOL
874PERL
875userdb
876USERDB
877userdbtmpdir
878tmpdir
879makedat
880MD5LIB
881SHA1LIB
882HMACLIB
883CRYPTLIBS
884HAVE_SGML_TRUE
885HAVE_SGML_FALSE
886LIBOBJS
887LTLIBOBJS'
d9898ee8 888ac_subst_files=''
dd184caf 889 ac_precious_vars='build_alias
890host_alias
891target_alias
892CC
893CFLAGS
894LDFLAGS
895LIBS
896CPPFLAGS
897CPP
898CXX
899CXXFLAGS
900CCC
901CXXCPP
902F77
903FFLAGS'
904
d9898ee8 905
906# Initialize some variables set by options.
907ac_init_help=
908ac_init_version=false
909# The variables have the same names as the options, with
910# dashes changed to underlines.
911cache_file=/dev/null
912exec_prefix=NONE
913no_create=
914no_recursion=
915prefix=NONE
916program_prefix=NONE
917program_suffix=NONE
918program_transform_name=s,x,x,
919silent=
920site=
921srcdir=
922verbose=
923x_includes=NONE
924x_libraries=NONE
925
926# Installation directory options.
927# These are left unexpanded so users can "make install exec_prefix=/foo"
928# and all the variables that are supposed to be based on exec_prefix
929# by default will actually change.
930# Use braces instead of parens because sh, perl, etc. also accept them.
dd184caf 931# (The list follows the same order as the GNU Coding Standards.)
d9898ee8 932bindir='${exec_prefix}/bin'
933sbindir='${exec_prefix}/sbin'
934libexecdir='${exec_prefix}/libexec'
dd184caf 935datarootdir='${prefix}/share'
936datadir='${datarootdir}'
d9898ee8 937sysconfdir='${prefix}/etc'
938sharedstatedir='${prefix}/com'
939localstatedir='${prefix}/var'
d9898ee8 940includedir='${prefix}/include'
941oldincludedir='/usr/include'
dd184caf 942docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
943infodir='${datarootdir}/info'
944htmldir='${docdir}'
945dvidir='${docdir}'
946pdfdir='${docdir}'
947psdir='${docdir}'
948libdir='${exec_prefix}/lib'
949localedir='${datarootdir}/locale'
950mandir='${datarootdir}/man'
d9898ee8 951
952ac_prev=
dd184caf 953ac_dashdash=
d9898ee8 954for ac_option
955do
956 # If the previous option needs an argument, assign it.
957 if test -n "$ac_prev"; then
dd184caf 958 eval $ac_prev=\$ac_option
d9898ee8 959 ac_prev=
960 continue
961 fi
962
dd184caf 963 case $ac_option in
964 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
965 *) ac_optarg=yes ;;
966 esac
d9898ee8 967
968 # Accept the important Cygnus configure options, so we can diagnose typos.
969
dd184caf 970 case $ac_dashdash$ac_option in
971 --)
972 ac_dashdash=yes ;;
d9898ee8 973
974 -bindir | --bindir | --bindi | --bind | --bin | --bi)
975 ac_prev=bindir ;;
976 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
977 bindir=$ac_optarg ;;
978
979 -build | --build | --buil | --bui | --bu)
980 ac_prev=build_alias ;;
981 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
982 build_alias=$ac_optarg ;;
983
984 -cache-file | --cache-file | --cache-fil | --cache-fi \
985 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
986 ac_prev=cache_file ;;
987 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
988 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
989 cache_file=$ac_optarg ;;
990
991 --config-cache | -C)
992 cache_file=config.cache ;;
993
dd184caf 994 -datadir | --datadir | --datadi | --datad)
d9898ee8 995 ac_prev=datadir ;;
dd184caf 996 -datadir=* | --datadir=* | --datadi=* | --datad=*)
d9898ee8 997 datadir=$ac_optarg ;;
998
dd184caf 999 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1000 | --dataroo | --dataro | --datar)
1001 ac_prev=datarootdir ;;
1002 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1003 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1004 datarootdir=$ac_optarg ;;
1005
d9898ee8 1006 -disable-* | --disable-*)
1007 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1008 # Reject names that are not valid shell variable names.
dd184caf 1009 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1010 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1011 { (exit 1); exit 1; }; }
dd184caf 1012 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1013 eval enable_$ac_feature=no ;;
1014
1015 -docdir | --docdir | --docdi | --doc | --do)
1016 ac_prev=docdir ;;
1017 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1018 docdir=$ac_optarg ;;
1019
1020 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1021 ac_prev=dvidir ;;
1022 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1023 dvidir=$ac_optarg ;;
d9898ee8 1024
1025 -enable-* | --enable-*)
1026 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1027 # Reject names that are not valid shell variable names.
dd184caf 1028 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1029 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1030 { (exit 1); exit 1; }; }
dd184caf 1031 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1032 eval enable_$ac_feature=\$ac_optarg ;;
d9898ee8 1033
1034 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1035 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1036 | --exec | --exe | --ex)
1037 ac_prev=exec_prefix ;;
1038 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1039 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1040 | --exec=* | --exe=* | --ex=*)
1041 exec_prefix=$ac_optarg ;;
1042
1043 -gas | --gas | --ga | --g)
1044 # Obsolete; use --with-gas.
1045 with_gas=yes ;;
1046
1047 -help | --help | --hel | --he | -h)
1048 ac_init_help=long ;;
1049 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1050 ac_init_help=recursive ;;
1051 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1052 ac_init_help=short ;;
1053
1054 -host | --host | --hos | --ho)
1055 ac_prev=host_alias ;;
1056 -host=* | --host=* | --hos=* | --ho=*)
1057 host_alias=$ac_optarg ;;
1058
dd184caf 1059 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1060 ac_prev=htmldir ;;
1061 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1062 | --ht=*)
1063 htmldir=$ac_optarg ;;
1064
d9898ee8 1065 -includedir | --includedir | --includedi | --included | --include \
1066 | --includ | --inclu | --incl | --inc)
1067 ac_prev=includedir ;;
1068 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1069 | --includ=* | --inclu=* | --incl=* | --inc=*)
1070 includedir=$ac_optarg ;;
1071
1072 -infodir | --infodir | --infodi | --infod | --info | --inf)
1073 ac_prev=infodir ;;
1074 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1075 infodir=$ac_optarg ;;
1076
1077 -libdir | --libdir | --libdi | --libd)
1078 ac_prev=libdir ;;
1079 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1080 libdir=$ac_optarg ;;
1081
1082 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1083 | --libexe | --libex | --libe)
1084 ac_prev=libexecdir ;;
1085 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1086 | --libexe=* | --libex=* | --libe=*)
1087 libexecdir=$ac_optarg ;;
1088
dd184caf 1089 -localedir | --localedir | --localedi | --localed | --locale)
1090 ac_prev=localedir ;;
1091 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1092 localedir=$ac_optarg ;;
1093
d9898ee8 1094 -localstatedir | --localstatedir | --localstatedi | --localstated \
dd184caf 1095 | --localstate | --localstat | --localsta | --localst | --locals)
d9898ee8 1096 ac_prev=localstatedir ;;
1097 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
dd184caf 1098 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
d9898ee8 1099 localstatedir=$ac_optarg ;;
1100
1101 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1102 ac_prev=mandir ;;
1103 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1104 mandir=$ac_optarg ;;
1105
1106 -nfp | --nfp | --nf)
1107 # Obsolete; use --without-fp.
1108 with_fp=no ;;
1109
1110 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1111 | --no-cr | --no-c | -n)
1112 no_create=yes ;;
1113
1114 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1115 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1116 no_recursion=yes ;;
1117
1118 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1119 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1120 | --oldin | --oldi | --old | --ol | --o)
1121 ac_prev=oldincludedir ;;
1122 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1123 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1124 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1125 oldincludedir=$ac_optarg ;;
1126
1127 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1128 ac_prev=prefix ;;
1129 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1130 prefix=$ac_optarg ;;
1131
1132 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1133 | --program-pre | --program-pr | --program-p)
1134 ac_prev=program_prefix ;;
1135 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1136 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1137 program_prefix=$ac_optarg ;;
1138
1139 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1140 | --program-suf | --program-su | --program-s)
1141 ac_prev=program_suffix ;;
1142 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1143 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1144 program_suffix=$ac_optarg ;;
1145
1146 -program-transform-name | --program-transform-name \
1147 | --program-transform-nam | --program-transform-na \
1148 | --program-transform-n | --program-transform- \
1149 | --program-transform | --program-transfor \
1150 | --program-transfo | --program-transf \
1151 | --program-trans | --program-tran \
1152 | --progr-tra | --program-tr | --program-t)
1153 ac_prev=program_transform_name ;;
1154 -program-transform-name=* | --program-transform-name=* \
1155 | --program-transform-nam=* | --program-transform-na=* \
1156 | --program-transform-n=* | --program-transform-=* \
1157 | --program-transform=* | --program-transfor=* \
1158 | --program-transfo=* | --program-transf=* \
1159 | --program-trans=* | --program-tran=* \
1160 | --progr-tra=* | --program-tr=* | --program-t=*)
1161 program_transform_name=$ac_optarg ;;
1162
dd184caf 1163 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1164 ac_prev=pdfdir ;;
1165 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1166 pdfdir=$ac_optarg ;;
1167
1168 -psdir | --psdir | --psdi | --psd | --ps)
1169 ac_prev=psdir ;;
1170 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1171 psdir=$ac_optarg ;;
1172
d9898ee8 1173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1174 | -silent | --silent | --silen | --sile | --sil)
1175 silent=yes ;;
1176
1177 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1178 ac_prev=sbindir ;;
1179 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1180 | --sbi=* | --sb=*)
1181 sbindir=$ac_optarg ;;
1182
1183 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1184 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1185 | --sharedst | --shareds | --shared | --share | --shar \
1186 | --sha | --sh)
1187 ac_prev=sharedstatedir ;;
1188 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1189 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1190 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1191 | --sha=* | --sh=*)
1192 sharedstatedir=$ac_optarg ;;
1193
1194 -site | --site | --sit)
1195 ac_prev=site ;;
1196 -site=* | --site=* | --sit=*)
1197 site=$ac_optarg ;;
1198
1199 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1200 ac_prev=srcdir ;;
1201 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1202 srcdir=$ac_optarg ;;
1203
1204 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1205 | --syscon | --sysco | --sysc | --sys | --sy)
1206 ac_prev=sysconfdir ;;
1207 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1208 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1209 sysconfdir=$ac_optarg ;;
1210
1211 -target | --target | --targe | --targ | --tar | --ta | --t)
1212 ac_prev=target_alias ;;
1213 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1214 target_alias=$ac_optarg ;;
1215
1216 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1217 verbose=yes ;;
1218
1219 -version | --version | --versio | --versi | --vers | -V)
1220 ac_init_version=: ;;
1221
1222 -with-* | --with-*)
1223 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1224 # Reject names that are not valid shell variable names.
dd184caf 1225 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1226 { echo "$as_me: error: invalid package name: $ac_package" >&2
1227 { (exit 1); exit 1; }; }
dd184caf 1228 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1229 eval with_$ac_package=\$ac_optarg ;;
d9898ee8 1230
1231 -without-* | --without-*)
1232 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1233 # Reject names that are not valid shell variable names.
dd184caf 1234 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1235 { echo "$as_me: error: invalid package name: $ac_package" >&2
1236 { (exit 1); exit 1; }; }
dd184caf 1237 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1238 eval with_$ac_package=no ;;
d9898ee8 1239
1240 --x)
1241 # Obsolete; use --with-x.
1242 with_x=yes ;;
1243
1244 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1245 | --x-incl | --x-inc | --x-in | --x-i)
1246 ac_prev=x_includes ;;
1247 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1248 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1249 x_includes=$ac_optarg ;;
1250
1251 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1252 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1253 ac_prev=x_libraries ;;
1254 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1255 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1256 x_libraries=$ac_optarg ;;
1257
1258 -*) { echo "$as_me: error: unrecognized option: $ac_option
1259Try \`$0 --help' for more information." >&2
1260 { (exit 1); exit 1; }; }
1261 ;;
1262
1263 *=*)
1264 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1265 # Reject names that are not valid shell variable names.
1266 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1267 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1268 { (exit 1); exit 1; }; }
dd184caf 1269 eval $ac_envvar=\$ac_optarg
d9898ee8 1270 export $ac_envvar ;;
1271
1272 *)
1273 # FIXME: should be removed in autoconf 3.0.
1274 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1275 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1276 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1277 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1278 ;;
1279
1280 esac
1281done
1282
1283if test -n "$ac_prev"; then
1284 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1285 { echo "$as_me: error: missing argument to $ac_option" >&2
1286 { (exit 1); exit 1; }; }
1287fi
1288
dd184caf 1289# Be sure to have absolute directory names.
1290for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1291 datadir sysconfdir sharedstatedir localstatedir includedir \
1292 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1293 libdir localedir mandir
d9898ee8 1294do
dd184caf 1295 eval ac_val=\$$ac_var
d9898ee8 1296 case $ac_val in
dd184caf 1297 [\\/$]* | ?:[\\/]* ) continue;;
1298 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d9898ee8 1299 esac
dd184caf 1300 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1301 { (exit 1); exit 1; }; }
d9898ee8 1302done
1303
1304# There might be people who depend on the old broken behavior: `$host'
1305# used to hold the argument of --host etc.
1306# FIXME: To remove some day.
1307build=$build_alias
1308host=$host_alias
1309target=$target_alias
1310
1311# FIXME: To remove some day.
1312if test "x$host_alias" != x; then
1313 if test "x$build_alias" = x; then
1314 cross_compiling=maybe
1315 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1316 If a cross compiler is detected then cross compile mode will be used." >&2
1317 elif test "x$build_alias" != "x$host_alias"; then
1318 cross_compiling=yes
1319 fi
1320fi
1321
1322ac_tool_prefix=
1323test -n "$host_alias" && ac_tool_prefix=$host_alias-
1324
1325test "$silent" = yes && exec 6>/dev/null
1326
1327
dd184caf 1328ac_pwd=`pwd` && test -n "$ac_pwd" &&
1329ac_ls_di=`ls -di .` &&
1330ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1331 { echo "$as_me: error: Working directory cannot be determined" >&2
1332 { (exit 1); exit 1; }; }
1333test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1334 { echo "$as_me: error: pwd does not report name of working directory" >&2
1335 { (exit 1); exit 1; }; }
1336
1337
d9898ee8 1338# Find the source files, if location was not specified.
1339if test -z "$srcdir"; then
1340 ac_srcdir_defaulted=yes
dd184caf 1341 # Try the directory containing this script, then the parent directory.
1342 ac_confdir=`$as_dirname -- "$0" ||
d9898ee8 1343$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1344 X"$0" : 'X\(//\)[^/]' \| \
1345 X"$0" : 'X\(//\)$' \| \
dd184caf 1346 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 1347echo X"$0" |
dd184caf 1348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\/\)[^/].*/{
1353 s//\1/
1354 q
1355 }
1356 /^X\(\/\/\)$/{
1357 s//\1/
1358 q
1359 }
1360 /^X\(\/\).*/{
1361 s//\1/
1362 q
1363 }
1364 s/.*/./; q'`
d9898ee8 1365 srcdir=$ac_confdir
dd184caf 1366 if test ! -r "$srcdir/$ac_unique_file"; then
d9898ee8 1367 srcdir=..
1368 fi
1369else
1370 ac_srcdir_defaulted=no
1371fi
dd184caf 1372if test ! -r "$srcdir/$ac_unique_file"; then
1373 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1374 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
d9898ee8 1375 { (exit 1); exit 1; }; }
d9898ee8 1376fi
dd184caf 1377ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1378ac_abs_confdir=`(
1379 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
d9898ee8 1380 { (exit 1); exit 1; }; }
dd184caf 1381 pwd)`
1382# When building in place, set srcdir=.
1383if test "$ac_abs_confdir" = "$ac_pwd"; then
1384 srcdir=.
1385fi
1386# Remove unnecessary trailing slashes from srcdir.
1387# Double slashes in file names in object file debugging info
1388# mess up M-x gdb in Emacs.
1389case $srcdir in
1390*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1391esac
1392for ac_var in $ac_precious_vars; do
1393 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1394 eval ac_env_${ac_var}_value=\$${ac_var}
1395 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1396 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1397done
d9898ee8 1398
1399#
1400# Report the --help message.
1401#
1402if test "$ac_init_help" = "long"; then
1403 # Omit some internal or obsolete options to make the list less imposing.
1404 # This message is too long to be a string in the A/UX 3.1 sh.
1405 cat <<_ACEOF
1406\`configure' configures libuserdb 0.10 to adapt to many kinds of systems.
1407
1408Usage: $0 [OPTION]... [VAR=VALUE]...
1409
1410To assign environment variables (e.g., CC, CFLAGS...), specify them as
1411VAR=VALUE. See below for descriptions of some of the useful variables.
1412
1413Defaults for the options are specified in brackets.
1414
1415Configuration:
1416 -h, --help display this help and exit
1417 --help=short display options specific to this package
1418 --help=recursive display the short help of all the included packages
1419 -V, --version display version information and exit
1420 -q, --quiet, --silent do not print \`checking...' messages
1421 --cache-file=FILE cache test results in FILE [disabled]
1422 -C, --config-cache alias for \`--cache-file=config.cache'
1423 -n, --no-create do not create output files
1424 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1425
d9898ee8 1426Installation directories:
1427 --prefix=PREFIX install architecture-independent files in PREFIX
1428 [$ac_default_prefix]
1429 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1430 [PREFIX]
1431
1432By default, \`make install' will install all the files in
1433\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1434an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1435for instance \`--prefix=\$HOME'.
1436
1437For better control, use the options below.
1438
1439Fine tuning of the installation directories:
1440 --bindir=DIR user executables [EPREFIX/bin]
1441 --sbindir=DIR system admin executables [EPREFIX/sbin]
1442 --libexecdir=DIR program executables [EPREFIX/libexec]
d9898ee8 1443 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1444 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1445 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1446 --libdir=DIR object code libraries [EPREFIX/lib]
1447 --includedir=DIR C header files [PREFIX/include]
1448 --oldincludedir=DIR C header files for non-gcc [/usr/include]
dd184caf 1449 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1450 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1451 --infodir=DIR info documentation [DATAROOTDIR/info]
1452 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1453 --mandir=DIR man documentation [DATAROOTDIR/man]
1454 --docdir=DIR documentation root [DATAROOTDIR/doc/libuserdb]
1455 --htmldir=DIR html documentation [DOCDIR]
1456 --dvidir=DIR dvi documentation [DOCDIR]
1457 --pdfdir=DIR pdf documentation [DOCDIR]
1458 --psdir=DIR ps documentation [DOCDIR]
d9898ee8 1459_ACEOF
1460
1461 cat <<\_ACEOF
1462
1463Program names:
1464 --program-prefix=PREFIX prepend PREFIX to installed program names
1465 --program-suffix=SUFFIX append SUFFIX to installed program names
1466 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1467
1468System types:
1469 --build=BUILD configure for building on BUILD [guessed]
1470 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1471_ACEOF
1472fi
1473
1474if test -n "$ac_init_help"; then
1475 case $ac_init_help in
1476 short | recursive ) echo "Configuration of libuserdb 0.10:";;
1477 esac
1478 cat <<\_ACEOF
1479
1480Optional Features:
1481 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1482 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1483 --disable-dependency-tracking speeds up one-time build
1484 --enable-dependency-tracking do not reject slow dependency extractors
dd184caf 1485 --enable-shared[=PKGS] build shared libraries [default=yes]
1486 --enable-static[=PKGS] build static libraries [default=yes]
d9898ee8 1487 --enable-fast-install[=PKGS]
1488 optimize for fast installation [default=yes]
1489 --disable-libtool-lock avoid locking (might break parallel builds)
1490
1491Optional Packages:
1492 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1493 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1494 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1495 --with-pic try to use only PIC/non-PIC objects [default=use
1496 both]
dd184caf 1497 --with-tags[=TAGS] include additional configurations [automatic]
d9898ee8 1498
1499 --with-random=/dev/urandom - location of the system random file generator
1500--without-random - there is no system random file generator
1501
1502Some influential environment variables:
1503 CC C compiler command
1504 CFLAGS C compiler flags
1505 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1506 nonstandard directory <lib dir>
dd184caf 1507 LIBS libraries to pass to the linker, e.g. -l<library>
1508 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1509 you have headers in a nonstandard directory <include dir>
d9898ee8 1510 CPP C preprocessor
1511 CXX C++ compiler command
1512 CXXFLAGS C++ compiler flags
1513 CXXCPP C++ preprocessor
1514 F77 Fortran 77 compiler command
1515 FFLAGS Fortran 77 compiler flags
1516
1517Use these variables to override the choices made by `configure' or to help
1518it to find libraries and programs with nonstandard names/locations.
1519
1520Report bugs to <courier-users@lists.sourceforge.net>.
1521_ACEOF
dd184caf 1522ac_status=$?
d9898ee8 1523fi
1524
1525if test "$ac_init_help" = "recursive"; then
1526 # If there are subdirs, report their specific --help.
d9898ee8 1527 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
dd184caf 1528 test -d "$ac_dir" || continue
d9898ee8 1529 ac_builddir=.
1530
dd184caf 1531case "$ac_dir" in
1532.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533*)
d9898ee8 1534 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
dd184caf 1535 # A ".." for each directory in $ac_dir_suffix.
1536 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1537 case $ac_top_builddir_sub in
1538 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1540 esac ;;
1541esac
1542ac_abs_top_builddir=$ac_pwd
1543ac_abs_builddir=$ac_pwd$ac_dir_suffix
1544# for backward compatibility:
1545ac_top_builddir=$ac_top_build_prefix
d9898ee8 1546
1547case $srcdir in
dd184caf 1548 .) # We are building in place.
d9898ee8 1549 ac_srcdir=.
dd184caf 1550 ac_top_srcdir=$ac_top_builddir_sub
1551 ac_abs_top_srcdir=$ac_pwd ;;
1552 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 1553 ac_srcdir=$srcdir$ac_dir_suffix;
dd184caf 1554 ac_top_srcdir=$srcdir
1555 ac_abs_top_srcdir=$srcdir ;;
1556 *) # Relative name.
1557 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1558 ac_top_srcdir=$ac_top_build_prefix$srcdir
1559 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 1560esac
dd184caf 1561ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1562
1563 cd "$ac_dir" || { ac_status=$?; continue; }
1564 # Check for guested configure.
1565 if test -f "$ac_srcdir/configure.gnu"; then
1566 echo &&
1567 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1568 elif test -f "$ac_srcdir/configure"; then
1569 echo &&
1570 $SHELL "$ac_srcdir/configure" --help=recursive
d9898ee8 1571 else
1572 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
dd184caf 1573 fi || ac_status=$?
1574 cd "$ac_pwd" || { ac_status=$?; break; }
d9898ee8 1575 done
1576fi
1577
dd184caf 1578test -n "$ac_init_help" && exit $ac_status
d9898ee8 1579if $ac_init_version; then
1580 cat <<\_ACEOF
1581libuserdb configure 0.10
dd184caf 1582generated by GNU Autoconf 2.61
d9898ee8 1583
dd184caf 1584Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15852002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
d9898ee8 1586This configure script is free software; the Free Software Foundation
1587gives unlimited permission to copy, distribute and modify it.
1588_ACEOF
dd184caf 1589 exit
d9898ee8 1590fi
dd184caf 1591cat >config.log <<_ACEOF
d9898ee8 1592This file contains any messages produced by compilers while
1593running configure, to aid debugging if configure makes a mistake.
1594
1595It was created by libuserdb $as_me 0.10, which was
dd184caf 1596generated by GNU Autoconf 2.61. Invocation command line was
d9898ee8 1597
1598 $ $0 $@
1599
1600_ACEOF
dd184caf 1601exec 5>>config.log
d9898ee8 1602{
1603cat <<_ASUNAME
1604## --------- ##
1605## Platform. ##
1606## --------- ##
1607
1608hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1609uname -m = `(uname -m) 2>/dev/null || echo unknown`
1610uname -r = `(uname -r) 2>/dev/null || echo unknown`
1611uname -s = `(uname -s) 2>/dev/null || echo unknown`
1612uname -v = `(uname -v) 2>/dev/null || echo unknown`
1613
1614/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1615/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1616
1617/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1618/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1619/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
dd184caf 1620/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
d9898ee8 1621/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1622/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1623/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1624
1625_ASUNAME
1626
1627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628for as_dir in $PATH
1629do
1630 IFS=$as_save_IFS
1631 test -z "$as_dir" && as_dir=.
1632 echo "PATH: $as_dir"
1633done
dd184caf 1634IFS=$as_save_IFS
d9898ee8 1635
1636} >&5
1637
1638cat >&5 <<_ACEOF
1639
1640
1641## ----------- ##
1642## Core tests. ##
1643## ----------- ##
1644
1645_ACEOF
1646
1647
1648# Keep a trace of the command line.
1649# Strip out --no-create and --no-recursion so they do not pile up.
1650# Strip out --silent because we don't want to record it for future runs.
1651# Also quote any args containing shell meta-characters.
1652# Make two passes to allow for proper duplicate-argument suppression.
1653ac_configure_args=
1654ac_configure_args0=
1655ac_configure_args1=
d9898ee8 1656ac_must_keep_next=false
1657for ac_pass in 1 2
1658do
1659 for ac_arg
1660 do
1661 case $ac_arg in
1662 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1663 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1664 | -silent | --silent | --silen | --sile | --sil)
1665 continue ;;
dd184caf 1666 *\'*)
d9898ee8 1667 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1668 esac
1669 case $ac_pass in
1670 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1671 2)
1672 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1673 if test $ac_must_keep_next = true; then
1674 ac_must_keep_next=false # Got value, back to normal.
1675 else
1676 case $ac_arg in
1677 *=* | --config-cache | -C | -disable-* | --disable-* \
1678 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1679 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1680 | -with-* | --with-* | -without-* | --without-* | --x)
1681 case "$ac_configure_args0 " in
1682 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1683 esac
1684 ;;
1685 -* ) ac_must_keep_next=true ;;
1686 esac
1687 fi
dd184caf 1688 ac_configure_args="$ac_configure_args '$ac_arg'"
d9898ee8 1689 ;;
1690 esac
1691 done
1692done
1693$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1694$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1695
1696# When interrupted or exit'd, cleanup temporary files, and complete
1697# config.log. We remove comments because anyway the quotes in there
1698# would cause problems or look ugly.
dd184caf 1699# WARNING: Use '\'' to represent an apostrophe within the trap.
1700# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
d9898ee8 1701trap 'exit_status=$?
1702 # Save into config.log some information that might help in debugging.
1703 {
1704 echo
1705
1706 cat <<\_ASBOX
1707## ---------------- ##
1708## Cache variables. ##
1709## ---------------- ##
1710_ASBOX
1711 echo
1712 # The following way of writing the cache mishandles newlines in values,
dd184caf 1713(
1714 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1715 eval ac_val=\$$ac_var
1716 case $ac_val in #(
1717 *${as_nl}*)
1718 case $ac_var in #(
1719 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1720echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1721 esac
1722 case $ac_var in #(
1723 _ | IFS | as_nl) ;; #(
1724 *) $as_unset $ac_var ;;
1725 esac ;;
1726 esac
1727 done
d9898ee8 1728 (set) 2>&1 |
dd184caf 1729 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1730 *${as_nl}ac_space=\ *)
d9898ee8 1731 sed -n \
dd184caf 1732 "s/'\''/'\''\\\\'\'''\''/g;
1733 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1734 ;; #(
d9898ee8 1735 *)
dd184caf 1736 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 1737 ;;
dd184caf 1738 esac |
1739 sort
1740)
d9898ee8 1741 echo
1742
1743 cat <<\_ASBOX
1744## ----------------- ##
1745## Output variables. ##
1746## ----------------- ##
1747_ASBOX
1748 echo
1749 for ac_var in $ac_subst_vars
1750 do
dd184caf 1751 eval ac_val=\$$ac_var
1752 case $ac_val in
1753 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1754 esac
1755 echo "$ac_var='\''$ac_val'\''"
d9898ee8 1756 done | sort
1757 echo
1758
1759 if test -n "$ac_subst_files"; then
1760 cat <<\_ASBOX
dd184caf 1761## ------------------- ##
1762## File substitutions. ##
1763## ------------------- ##
d9898ee8 1764_ASBOX
1765 echo
1766 for ac_var in $ac_subst_files
1767 do
dd184caf 1768 eval ac_val=\$$ac_var
1769 case $ac_val in
1770 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1771 esac
1772 echo "$ac_var='\''$ac_val'\''"
d9898ee8 1773 done | sort
1774 echo
1775 fi
1776
1777 if test -s confdefs.h; then
1778 cat <<\_ASBOX
1779## ----------- ##
1780## confdefs.h. ##
1781## ----------- ##
1782_ASBOX
1783 echo
dd184caf 1784 cat confdefs.h
d9898ee8 1785 echo
1786 fi
1787 test "$ac_signal" != 0 &&
1788 echo "$as_me: caught signal $ac_signal"
1789 echo "$as_me: exit $exit_status"
1790 } >&5
dd184caf 1791 rm -f core *.core core.conftest.* &&
1792 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
d9898ee8 1793 exit $exit_status
dd184caf 1794' 0
d9898ee8 1795for ac_signal in 1 2 13 15; do
1796 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1797done
1798ac_signal=0
1799
1800# confdefs.h avoids OS command line length limits that DEFS can exceed.
dd184caf 1801rm -f -r conftest* confdefs.h
d9898ee8 1802
1803# Predefined preprocessor variables.
1804
1805cat >>confdefs.h <<_ACEOF
1806#define PACKAGE_NAME "$PACKAGE_NAME"
1807_ACEOF
1808
1809
1810cat >>confdefs.h <<_ACEOF
1811#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1812_ACEOF
1813
1814
1815cat >>confdefs.h <<_ACEOF
1816#define PACKAGE_VERSION "$PACKAGE_VERSION"
1817_ACEOF
1818
1819
1820cat >>confdefs.h <<_ACEOF
1821#define PACKAGE_STRING "$PACKAGE_STRING"
1822_ACEOF
1823
1824
1825cat >>confdefs.h <<_ACEOF
1826#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1827_ACEOF
1828
1829
1830# Let the site file select an alternate cache file if it wants to.
1831# Prefer explicitly selected file to automatically selected ones.
dd184caf 1832if test -n "$CONFIG_SITE"; then
1833 set x "$CONFIG_SITE"
1834elif test "x$prefix" != xNONE; then
1835 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1836else
1837 set x "$ac_default_prefix/share/config.site" \
1838 "$ac_default_prefix/etc/config.site"
d9898ee8 1839fi
dd184caf 1840shift
1841for ac_site_file
1842do
d9898ee8 1843 if test -r "$ac_site_file"; then
1844 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1845echo "$as_me: loading site script $ac_site_file" >&6;}
1846 sed 's/^/| /' "$ac_site_file" >&5
1847 . "$ac_site_file"
1848 fi
1849done
1850
1851if test -r "$cache_file"; then
1852 # Some versions of bash will fail to source /dev/null (special
1853 # files actually), so we avoid doing that.
1854 if test -f "$cache_file"; then
1855 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1856echo "$as_me: loading cache $cache_file" >&6;}
1857 case $cache_file in
dd184caf 1858 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1859 *) . "./$cache_file";;
d9898ee8 1860 esac
1861 fi
1862else
1863 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1864echo "$as_me: creating cache $cache_file" >&6;}
1865 >$cache_file
1866fi
1867
1868# Check that the precious variables saved in the cache have kept the same
1869# value.
1870ac_cache_corrupted=false
dd184caf 1871for ac_var in $ac_precious_vars; do
d9898ee8 1872 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1873 eval ac_new_set=\$ac_env_${ac_var}_set
dd184caf 1874 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1875 eval ac_new_val=\$ac_env_${ac_var}_value
d9898ee8 1876 case $ac_old_set,$ac_new_set in
1877 set,)
1878 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1879echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1880 ac_cache_corrupted=: ;;
1881 ,set)
1882 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1883echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1884 ac_cache_corrupted=: ;;
1885 ,);;
1886 *)
1887 if test "x$ac_old_val" != "x$ac_new_val"; then
1888 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1889echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1890 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1891echo "$as_me: former value: $ac_old_val" >&2;}
1892 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1893echo "$as_me: current value: $ac_new_val" >&2;}
1894 ac_cache_corrupted=:
1895 fi;;
1896 esac
1897 # Pass precious variables to config.status.
1898 if test "$ac_new_set" = set; then
1899 case $ac_new_val in
dd184caf 1900 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 1901 *) ac_arg=$ac_var=$ac_new_val ;;
1902 esac
1903 case " $ac_configure_args " in
1904 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1905 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1906 esac
1907 fi
1908done
1909if $ac_cache_corrupted; then
1910 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1911echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1912 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1913echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1914 { (exit 1); exit 1; }; }
1915fi
1916
d9898ee8 1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
dd184caf 1941ac_ext=c
1942ac_cpp='$CPP $CPPFLAGS'
1943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1945ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 1946
1947
1948
1949>confdefs.h # Kill PACKAGE_ macros.
1950
1951LPATH="$PATH:/usr/local/bin"
1952
1953
dd184caf 1954am__api_version='1.10'
1955
d9898ee8 1956ac_aux_dir=
dd184caf 1957for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1958 if test -f "$ac_dir/install-sh"; then
d9898ee8 1959 ac_aux_dir=$ac_dir
1960 ac_install_sh="$ac_aux_dir/install-sh -c"
1961 break
dd184caf 1962 elif test -f "$ac_dir/install.sh"; then
d9898ee8 1963 ac_aux_dir=$ac_dir
1964 ac_install_sh="$ac_aux_dir/install.sh -c"
1965 break
dd184caf 1966 elif test -f "$ac_dir/shtool"; then
d9898ee8 1967 ac_aux_dir=$ac_dir
1968 ac_install_sh="$ac_aux_dir/shtool install -c"
1969 break
1970 fi
1971done
1972if test -z "$ac_aux_dir"; then
dd184caf 1973 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1974echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
d9898ee8 1975 { (exit 1); exit 1; }; }
1976fi
dd184caf 1977
1978# These three variables are undocumented and unsupported,
1979# and are intended to be withdrawn in a future Autoconf release.
1980# They can cause serious problems if a builder's source tree is in a directory
1981# whose full name contains unusual characters.
1982ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1983ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1984ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1985
d9898ee8 1986
1987# Find a good install program. We prefer a C program (faster),
1988# so one script is as good as another. But avoid the broken or
1989# incompatible versions:
1990# SysV /etc/install, /usr/sbin/install
1991# SunOS /usr/etc/install
1992# IRIX /sbin/install
1993# AIX /bin/install
1994# AmigaOS /C/install, which installs bootblocks on floppy discs
1995# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1996# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1997# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1998# OS/2's system install, which has a completely different semantic
1999# ./install, which can be erroneously created by make from ./install.sh.
dd184caf 2000{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2001echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
d9898ee8 2002if test -z "$INSTALL"; then
2003if test "${ac_cv_path_install+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2005else
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007for as_dir in $PATH
2008do
2009 IFS=$as_save_IFS
2010 test -z "$as_dir" && as_dir=.
2011 # Account for people who put trailing slashes in PATH elements.
2012case $as_dir/ in
2013 ./ | .// | /cC/* | \
2014 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2015 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2016 /usr/ucb/* ) ;;
2017 *)
2018 # OSF1 and SCO ODT 3.0 have their own names for install.
2019 # Don't use installbsd from OSF since it installs stuff as root
2020 # by default.
2021 for ac_prog in ginstall scoinst install; do
2022 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2023 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 2024 if test $ac_prog = install &&
2025 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2026 # AIX install. It has an incompatible calling convention.
2027 :
2028 elif test $ac_prog = install &&
2029 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2030 # program-specific install script used by HP pwplus--don't use.
2031 :
2032 else
2033 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2034 break 3
2035 fi
2036 fi
2037 done
2038 done
2039 ;;
2040esac
2041done
dd184caf 2042IFS=$as_save_IFS
d9898ee8 2043
2044
2045fi
2046 if test "${ac_cv_path_install+set}" = set; then
2047 INSTALL=$ac_cv_path_install
2048 else
dd184caf 2049 # As a last resort, use the slow shell script. Don't cache a
2050 # value for INSTALL within a source directory, because that will
d9898ee8 2051 # break other packages using the cache if that directory is
dd184caf 2052 # removed, or if the value is a relative name.
d9898ee8 2053 INSTALL=$ac_install_sh
2054 fi
2055fi
dd184caf 2056{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2057echo "${ECHO_T}$INSTALL" >&6; }
d9898ee8 2058
2059# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2060# It thinks the first close brace ends the variable substitution.
2061test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2062
2063test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2064
2065test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2066
dd184caf 2067{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2068echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
d9898ee8 2069# Just in case
2070sleep 1
2071echo timestamp > conftest.file
2072# Do `set' in a subshell so we don't clobber the current shell's
2073# arguments. Must try -L first in case configure is actually a
2074# symlink; some systems play weird games with the mod time of symlinks
2075# (eg FreeBSD returns the mod time of the symlink's containing
2076# directory).
2077if (
2078 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2079 if test "$*" = "X"; then
2080 # -L didn't work.
2081 set X `ls -t $srcdir/configure conftest.file`
2082 fi
2083 rm -f conftest.file
2084 if test "$*" != "X $srcdir/configure conftest.file" \
2085 && test "$*" != "X conftest.file $srcdir/configure"; then
2086
2087 # If neither matched, then we have a broken ls. This can happen
2088 # if, for instance, CONFIG_SHELL is bash and it inherits a
2089 # broken ls alias from the environment. This has actually
2090 # happened. Such a system could not be considered "sane".
2091 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2092alias in your environment" >&5
2093echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2094alias in your environment" >&2;}
2095 { (exit 1); exit 1; }; }
2096 fi
2097
2098 test "$2" = conftest.file
2099 )
2100then
2101 # Ok.
2102 :
2103else
2104 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2105Check your system clock" >&5
2106echo "$as_me: error: newly created file is older than distributed files!
2107Check your system clock" >&2;}
2108 { (exit 1); exit 1; }; }
2109fi
dd184caf 2110{ echo "$as_me:$LINENO: result: yes" >&5
2111echo "${ECHO_T}yes" >&6; }
d9898ee8 2112test "$program_prefix" != NONE &&
dd184caf 2113 program_transform_name="s&^&$program_prefix&;$program_transform_name"
d9898ee8 2114# Use a double $ so make ignores it.
2115test "$program_suffix" != NONE &&
dd184caf 2116 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
d9898ee8 2117# Double any \ or $. echo might interpret backslashes.
2118# By default was `s,x,x', remove it if useless.
2119cat <<\_ACEOF >conftest.sed
2120s/[\\$]/&&/g;s/;s,x,x,$//
2121_ACEOF
2122program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
dd184caf 2123rm -f conftest.sed
d9898ee8 2124
2125# expand $ac_aux_dir to an absolute path
2126am_aux_dir=`cd $ac_aux_dir && pwd`
2127
2128test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2129# Use eval to expand $SHELL
2130if eval "$MISSING --run true"; then
2131 am_missing_run="$MISSING --run "
2132else
2133 am_missing_run=
2134 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2135echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2136fi
2137
dd184caf 2138{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2139echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2140if test -z "$MKDIR_P"; then
2141 if test "${ac_cv_path_mkdir+set}" = set; then
2142 echo $ECHO_N "(cached) $ECHO_C" >&6
2143else
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2146do
2147 IFS=$as_save_IFS
2148 test -z "$as_dir" && as_dir=.
2149 for ac_prog in mkdir gmkdir; do
2150 for ac_exec_ext in '' $ac_executable_extensions; do
2151 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2152 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2153 'mkdir (GNU coreutils) '* | \
2154 'mkdir (coreutils) '* | \
2155 'mkdir (fileutils) '4.1*)
2156 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2157 break 3;;
2158 esac
2159 done
2160 done
2161done
2162IFS=$as_save_IFS
2163
2164fi
2165
2166 if test "${ac_cv_path_mkdir+set}" = set; then
2167 MKDIR_P="$ac_cv_path_mkdir -p"
d9898ee8 2168 else
dd184caf 2169 # As a last resort, use the slow shell script. Don't cache a
2170 # value for MKDIR_P within a source directory, because that will
2171 # break other packages using the cache if that directory is
2172 # removed, or if the value is a relative name.
2173 test -d ./--version && rmdir ./--version
2174 MKDIR_P="$ac_install_sh -d"
d9898ee8 2175 fi
2176fi
dd184caf 2177{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2178echo "${ECHO_T}$MKDIR_P" >&6; }
2179
2180mkdir_p="$MKDIR_P"
2181case $mkdir_p in
2182 [\\/$]* | ?:[\\/]*) ;;
2183 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2184esac
d9898ee8 2185
2186for ac_prog in gawk mawk nawk awk
2187do
2188 # Extract the first word of "$ac_prog", so it can be a program name with args.
2189set dummy $ac_prog; ac_word=$2
dd184caf 2190{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2192if test "${ac_cv_prog_AWK+set}" = set; then
2193 echo $ECHO_N "(cached) $ECHO_C" >&6
2194else
2195 if test -n "$AWK"; then
2196 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2197else
2198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2199for as_dir in $PATH
2200do
2201 IFS=$as_save_IFS
2202 test -z "$as_dir" && as_dir=.
2203 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2205 ac_cv_prog_AWK="$ac_prog"
2206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2207 break 2
2208 fi
2209done
2210done
dd184caf 2211IFS=$as_save_IFS
d9898ee8 2212
2213fi
2214fi
2215AWK=$ac_cv_prog_AWK
2216if test -n "$AWK"; then
dd184caf 2217 { echo "$as_me:$LINENO: result: $AWK" >&5
2218echo "${ECHO_T}$AWK" >&6; }
d9898ee8 2219else
dd184caf 2220 { echo "$as_me:$LINENO: result: no" >&5
2221echo "${ECHO_T}no" >&6; }
d9898ee8 2222fi
2223
dd184caf 2224
d9898ee8 2225 test -n "$AWK" && break
2226done
2227
dd184caf 2228{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2229echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2230set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2231if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 2232 echo $ECHO_N "(cached) $ECHO_C" >&6
2233else
2234 cat >conftest.make <<\_ACEOF
dd184caf 2235SHELL = /bin/sh
d9898ee8 2236all:
dd184caf 2237 @echo '@@@%%%=$(MAKE)=@@@%%%'
d9898ee8 2238_ACEOF
2239# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
dd184caf 2240case `${MAKE-make} -f conftest.make 2>/dev/null` in
2241 *@@@%%%=?*=@@@%%%*)
2242 eval ac_cv_prog_make_${ac_make}_set=yes;;
2243 *)
2244 eval ac_cv_prog_make_${ac_make}_set=no;;
2245esac
d9898ee8 2246rm -f conftest.make
2247fi
dd184caf 2248if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2249 { echo "$as_me:$LINENO: result: yes" >&5
2250echo "${ECHO_T}yes" >&6; }
d9898ee8 2251 SET_MAKE=
2252else
dd184caf 2253 { echo "$as_me:$LINENO: result: no" >&5
2254echo "${ECHO_T}no" >&6; }
d9898ee8 2255 SET_MAKE="MAKE=${MAKE-make}"
2256fi
2257
2258rm -rf .tst 2>/dev/null
2259mkdir .tst 2>/dev/null
2260if test -d .tst; then
2261 am__leading_dot=.
2262else
2263 am__leading_dot=_
2264fi
2265rmdir .tst 2>/dev/null
2266
dd184caf 2267if test "`cd $srcdir && pwd`" != "`pwd`"; then
2268 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2269 # is not polluted with repeated "-I."
2270 am__isrc=' -I$(srcdir)'
2271 # test to see if srcdir already configured
2272 if test -f $srcdir/config.status; then
2273 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
d9898ee8 2274echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2275 { (exit 1); exit 1; }; }
dd184caf 2276 fi
d9898ee8 2277fi
2278
2279# test whether we have cygpath
2280if test -z "$CYGPATH_W"; then
2281 if (cygpath --version) >/dev/null 2>/dev/null; then
2282 CYGPATH_W='cygpath -w'
2283 else
2284 CYGPATH_W=echo
2285 fi
2286fi
2287
2288
2289# Define the identity of the package.
2290 PACKAGE='libuserdb'
2291 VERSION='0.10'
2292
2293
2294# Some tools Automake needs.
2295
2296ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2297
2298
2299AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2300
2301
2302AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2303
2304
2305AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2306
2307
2308MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2309
dd184caf 2310install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
d9898ee8 2311
2312# Installed binaries are usually stripped using `strip' when the user
2313# run `make install-strip'. However `strip' might not be the right
2314# tool to use in cross-compilation environments, therefore Automake
2315# will honor the `STRIP' environment variable to overrule this program.
2316if test "$cross_compiling" != no; then
2317 if test -n "$ac_tool_prefix"; then
2318 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2319set dummy ${ac_tool_prefix}strip; ac_word=$2
dd184caf 2320{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2322if test "${ac_cv_prog_STRIP+set}" = set; then
2323 echo $ECHO_N "(cached) $ECHO_C" >&6
2324else
2325 if test -n "$STRIP"; then
2326 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2327else
2328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329for as_dir in $PATH
2330do
2331 IFS=$as_save_IFS
2332 test -z "$as_dir" && as_dir=.
2333 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2335 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2337 break 2
2338 fi
2339done
2340done
dd184caf 2341IFS=$as_save_IFS
d9898ee8 2342
2343fi
2344fi
2345STRIP=$ac_cv_prog_STRIP
2346if test -n "$STRIP"; then
dd184caf 2347 { echo "$as_me:$LINENO: result: $STRIP" >&5
2348echo "${ECHO_T}$STRIP" >&6; }
d9898ee8 2349else
dd184caf 2350 { echo "$as_me:$LINENO: result: no" >&5
2351echo "${ECHO_T}no" >&6; }
d9898ee8 2352fi
2353
dd184caf 2354
d9898ee8 2355fi
2356if test -z "$ac_cv_prog_STRIP"; then
2357 ac_ct_STRIP=$STRIP
2358 # Extract the first word of "strip", so it can be a program name with args.
2359set dummy strip; ac_word=$2
dd184caf 2360{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2362if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2364else
2365 if test -n "$ac_ct_STRIP"; then
2366 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2367else
2368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369for as_dir in $PATH
2370do
2371 IFS=$as_save_IFS
2372 test -z "$as_dir" && as_dir=.
2373 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2375 ac_cv_prog_ac_ct_STRIP="strip"
2376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2377 break 2
2378 fi
2379done
2380done
dd184caf 2381IFS=$as_save_IFS
d9898ee8 2382
d9898ee8 2383fi
2384fi
2385ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2386if test -n "$ac_ct_STRIP"; then
dd184caf 2387 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2388echo "${ECHO_T}$ac_ct_STRIP" >&6; }
d9898ee8 2389else
dd184caf 2390 { echo "$as_me:$LINENO: result: no" >&5
2391echo "${ECHO_T}no" >&6; }
d9898ee8 2392fi
2393
dd184caf 2394 if test "x$ac_ct_STRIP" = x; then
2395 STRIP=":"
2396 else
2397 case $cross_compiling:$ac_tool_warned in
2398yes:)
2399{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2400whose name does not start with the host triplet. If you think this
2401configuration is useful to you, please write to autoconf@gnu.org." >&5
2402echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2403whose name does not start with the host triplet. If you think this
2404configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2405ac_tool_warned=yes ;;
2406esac
2407 STRIP=$ac_ct_STRIP
2408 fi
d9898ee8 2409else
2410 STRIP="$ac_cv_prog_STRIP"
2411fi
2412
2413fi
dd184caf 2414INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
d9898ee8 2415
2416# We need awk for the "check" target. The system "awk" is bad on
2417# some platforms.
2418# Always define AMTAR for backward compatibility.
2419
2420AMTAR=${AMTAR-"${am_missing_run}tar"}
2421
2422am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2423
2424
2425
2426
2427
2428
2429for ac_prog in gawk mawk nawk awk
2430do
2431 # Extract the first word of "$ac_prog", so it can be a program name with args.
2432set dummy $ac_prog; ac_word=$2
dd184caf 2433{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2435if test "${ac_cv_prog_AWK+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2437else
2438 if test -n "$AWK"; then
2439 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2440else
2441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442for as_dir in $PATH
2443do
2444 IFS=$as_save_IFS
2445 test -z "$as_dir" && as_dir=.
2446 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2448 ac_cv_prog_AWK="$ac_prog"
2449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2450 break 2
2451 fi
2452done
2453done
dd184caf 2454IFS=$as_save_IFS
d9898ee8 2455
2456fi
2457fi
2458AWK=$ac_cv_prog_AWK
2459if test -n "$AWK"; then
dd184caf 2460 { echo "$as_me:$LINENO: result: $AWK" >&5
2461echo "${ECHO_T}$AWK" >&6; }
d9898ee8 2462else
dd184caf 2463 { echo "$as_me:$LINENO: result: no" >&5
2464echo "${ECHO_T}no" >&6; }
d9898ee8 2465fi
2466
dd184caf 2467
d9898ee8 2468 test -n "$AWK" && break
2469done
2470
2471ac_ext=c
2472ac_cpp='$CPP $CPPFLAGS'
2473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2475ac_compiler_gnu=$ac_cv_c_compiler_gnu
2476if test -n "$ac_tool_prefix"; then
2477 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2478set dummy ${ac_tool_prefix}gcc; ac_word=$2
dd184caf 2479{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2481if test "${ac_cv_prog_CC+set}" = set; then
2482 echo $ECHO_N "(cached) $ECHO_C" >&6
2483else
2484 if test -n "$CC"; then
2485 ac_cv_prog_CC="$CC" # Let the user override the test.
2486else
2487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488for as_dir in $PATH
2489do
2490 IFS=$as_save_IFS
2491 test -z "$as_dir" && as_dir=.
2492 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2494 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2496 break 2
2497 fi
2498done
2499done
dd184caf 2500IFS=$as_save_IFS
d9898ee8 2501
2502fi
2503fi
2504CC=$ac_cv_prog_CC
2505if test -n "$CC"; then
dd184caf 2506 { echo "$as_me:$LINENO: result: $CC" >&5
2507echo "${ECHO_T}$CC" >&6; }
d9898ee8 2508else
dd184caf 2509 { echo "$as_me:$LINENO: result: no" >&5
2510echo "${ECHO_T}no" >&6; }
d9898ee8 2511fi
2512
dd184caf 2513
d9898ee8 2514fi
2515if test -z "$ac_cv_prog_CC"; then
2516 ac_ct_CC=$CC
2517 # Extract the first word of "gcc", so it can be a program name with args.
2518set dummy gcc; ac_word=$2
dd184caf 2519{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2521if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2522 echo $ECHO_N "(cached) $ECHO_C" >&6
2523else
2524 if test -n "$ac_ct_CC"; then
2525 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2526else
2527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528for as_dir in $PATH
2529do
2530 IFS=$as_save_IFS
2531 test -z "$as_dir" && as_dir=.
2532 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2534 ac_cv_prog_ac_ct_CC="gcc"
2535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2536 break 2
2537 fi
2538done
2539done
dd184caf 2540IFS=$as_save_IFS
d9898ee8 2541
2542fi
2543fi
2544ac_ct_CC=$ac_cv_prog_ac_ct_CC
2545if test -n "$ac_ct_CC"; then
dd184caf 2546 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2547echo "${ECHO_T}$ac_ct_CC" >&6; }
d9898ee8 2548else
dd184caf 2549 { echo "$as_me:$LINENO: result: no" >&5
2550echo "${ECHO_T}no" >&6; }
d9898ee8 2551fi
2552
dd184caf 2553 if test "x$ac_ct_CC" = x; then
2554 CC=""
2555 else
2556 case $cross_compiling:$ac_tool_warned in
2557yes:)
2558{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2559whose name does not start with the host triplet. If you think this
2560configuration is useful to you, please write to autoconf@gnu.org." >&5
2561echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2562whose name does not start with the host triplet. If you think this
2563configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2564ac_tool_warned=yes ;;
2565esac
2566 CC=$ac_ct_CC
2567 fi
d9898ee8 2568else
2569 CC="$ac_cv_prog_CC"
2570fi
2571
2572if test -z "$CC"; then
dd184caf 2573 if test -n "$ac_tool_prefix"; then
2574 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 2575set dummy ${ac_tool_prefix}cc; ac_word=$2
dd184caf 2576{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2578if test "${ac_cv_prog_CC+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2580else
2581 if test -n "$CC"; then
2582 ac_cv_prog_CC="$CC" # Let the user override the test.
2583else
2584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585for as_dir in $PATH
2586do
2587 IFS=$as_save_IFS
2588 test -z "$as_dir" && as_dir=.
2589 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2591 ac_cv_prog_CC="${ac_tool_prefix}cc"
2592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2593 break 2
2594 fi
2595done
2596done
dd184caf 2597IFS=$as_save_IFS
d9898ee8 2598
2599fi
2600fi
2601CC=$ac_cv_prog_CC
2602if test -n "$CC"; then
dd184caf 2603 { echo "$as_me:$LINENO: result: $CC" >&5
2604echo "${ECHO_T}$CC" >&6; }
d9898ee8 2605else
dd184caf 2606 { echo "$as_me:$LINENO: result: no" >&5
2607echo "${ECHO_T}no" >&6; }
d9898ee8 2608fi
2609
d9898ee8 2610
dd184caf 2611 fi
d9898ee8 2612fi
2613if test -z "$CC"; then
2614 # Extract the first word of "cc", so it can be a program name with args.
2615set dummy cc; ac_word=$2
dd184caf 2616{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2618if test "${ac_cv_prog_CC+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2620else
2621 if test -n "$CC"; then
2622 ac_cv_prog_CC="$CC" # Let the user override the test.
2623else
2624 ac_prog_rejected=no
2625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626for as_dir in $PATH
2627do
2628 IFS=$as_save_IFS
2629 test -z "$as_dir" && as_dir=.
2630 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2632 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2633 ac_prog_rejected=yes
2634 continue
2635 fi
2636 ac_cv_prog_CC="cc"
2637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638 break 2
2639 fi
2640done
2641done
dd184caf 2642IFS=$as_save_IFS
d9898ee8 2643
2644if test $ac_prog_rejected = yes; then
2645 # We found a bogon in the path, so make sure we never use it.
2646 set dummy $ac_cv_prog_CC
2647 shift
2648 if test $# != 0; then
2649 # We chose a different compiler from the bogus one.
2650 # However, it has the same basename, so the bogon will be chosen
2651 # first if we set CC to just the basename; use the full file name.
2652 shift
2653 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2654 fi
2655fi
2656fi
2657fi
2658CC=$ac_cv_prog_CC
2659if test -n "$CC"; then
dd184caf 2660 { echo "$as_me:$LINENO: result: $CC" >&5
2661echo "${ECHO_T}$CC" >&6; }
d9898ee8 2662else
dd184caf 2663 { echo "$as_me:$LINENO: result: no" >&5
2664echo "${ECHO_T}no" >&6; }
d9898ee8 2665fi
2666
dd184caf 2667
d9898ee8 2668fi
2669if test -z "$CC"; then
2670 if test -n "$ac_tool_prefix"; then
dd184caf 2671 for ac_prog in cl.exe
d9898ee8 2672 do
2673 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2674set dummy $ac_tool_prefix$ac_prog; ac_word=$2
dd184caf 2675{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2677if test "${ac_cv_prog_CC+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
2679else
2680 if test -n "$CC"; then
2681 ac_cv_prog_CC="$CC" # Let the user override the test.
2682else
2683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684for as_dir in $PATH
2685do
2686 IFS=$as_save_IFS
2687 test -z "$as_dir" && as_dir=.
2688 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2690 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2692 break 2
2693 fi
2694done
2695done
dd184caf 2696IFS=$as_save_IFS
d9898ee8 2697
2698fi
2699fi
2700CC=$ac_cv_prog_CC
2701if test -n "$CC"; then
dd184caf 2702 { echo "$as_me:$LINENO: result: $CC" >&5
2703echo "${ECHO_T}$CC" >&6; }
d9898ee8 2704else
dd184caf 2705 { echo "$as_me:$LINENO: result: no" >&5
2706echo "${ECHO_T}no" >&6; }
d9898ee8 2707fi
2708
dd184caf 2709
d9898ee8 2710 test -n "$CC" && break
2711 done
2712fi
2713if test -z "$CC"; then
2714 ac_ct_CC=$CC
dd184caf 2715 for ac_prog in cl.exe
d9898ee8 2716do
2717 # Extract the first word of "$ac_prog", so it can be a program name with args.
2718set dummy $ac_prog; ac_word=$2
dd184caf 2719{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2721if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2722 echo $ECHO_N "(cached) $ECHO_C" >&6
2723else
2724 if test -n "$ac_ct_CC"; then
2725 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2726else
2727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728for as_dir in $PATH
2729do
2730 IFS=$as_save_IFS
2731 test -z "$as_dir" && as_dir=.
2732 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2734 ac_cv_prog_ac_ct_CC="$ac_prog"
2735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2736 break 2
2737 fi
2738done
2739done
dd184caf 2740IFS=$as_save_IFS
d9898ee8 2741
2742fi
2743fi
2744ac_ct_CC=$ac_cv_prog_ac_ct_CC
2745if test -n "$ac_ct_CC"; then
dd184caf 2746 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2747echo "${ECHO_T}$ac_ct_CC" >&6; }
d9898ee8 2748else
dd184caf 2749 { echo "$as_me:$LINENO: result: no" >&5
2750echo "${ECHO_T}no" >&6; }
d9898ee8 2751fi
2752
dd184caf 2753
d9898ee8 2754 test -n "$ac_ct_CC" && break
2755done
2756
dd184caf 2757 if test "x$ac_ct_CC" = x; then
2758 CC=""
2759 else
2760 case $cross_compiling:$ac_tool_warned in
2761yes:)
2762{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2763whose name does not start with the host triplet. If you think this
2764configuration is useful to you, please write to autoconf@gnu.org." >&5
2765echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2766whose name does not start with the host triplet. If you think this
2767configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2768ac_tool_warned=yes ;;
2769esac
2770 CC=$ac_ct_CC
2771 fi
d9898ee8 2772fi
2773
2774fi
2775
2776
2777test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2778See \`config.log' for more details." >&5
2779echo "$as_me: error: no acceptable C compiler found in \$PATH
2780See \`config.log' for more details." >&2;}
2781 { (exit 1); exit 1; }; }
2782
2783# Provide some information about the compiler.
dd184caf 2784echo "$as_me:$LINENO: checking for C compiler version" >&5
d9898ee8 2785ac_compiler=`set X $ac_compile; echo $2`
dd184caf 2786{ (ac_try="$ac_compiler --version >&5"
2787case "(($ac_try" in
2788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789 *) ac_try_echo=$ac_try;;
2790esac
2791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2792 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 2793 ac_status=$?
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }
dd184caf 2796{ (ac_try="$ac_compiler -v >&5"
2797case "(($ac_try" in
2798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799 *) ac_try_echo=$ac_try;;
2800esac
2801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2802 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 2803 ac_status=$?
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }
dd184caf 2806{ (ac_try="$ac_compiler -V >&5"
2807case "(($ac_try" in
2808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809 *) ac_try_echo=$ac_try;;
2810esac
2811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2812 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 2813 ac_status=$?
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); }
2816
2817cat >conftest.$ac_ext <<_ACEOF
2818/* confdefs.h. */
2819_ACEOF
2820cat confdefs.h >>conftest.$ac_ext
2821cat >>conftest.$ac_ext <<_ACEOF
2822/* end confdefs.h. */
2823
2824int
2825main ()
2826{
2827
2828 ;
2829 return 0;
2830}
2831_ACEOF
2832ac_clean_files_save=$ac_clean_files
2833ac_clean_files="$ac_clean_files a.out a.exe b.out"
2834# Try to create an executable without -o first, disregard a.out.
2835# It will help us diagnose broken compilers, and finding out an intuition
2836# of exeext.
dd184caf 2837{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2838echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
d9898ee8 2839ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
dd184caf 2840#
2841# List of possible output files, starting from the most likely.
2842# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2843# only as a last resort. b.out is created by i960 compilers.
2844ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2845#
2846# The IRIX 6 linker writes into existing files which may not be
2847# executable, retaining their permissions. Remove them first so a
2848# subsequent execution test works.
2849ac_rmfiles=
2850for ac_file in $ac_files
2851do
2852 case $ac_file in
2853 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2854 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2855 esac
2856done
2857rm -f $ac_rmfiles
2858
2859if { (ac_try="$ac_link_default"
2860case "(($ac_try" in
2861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2862 *) ac_try_echo=$ac_try;;
2863esac
2864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2865 (eval "$ac_link_default") 2>&5
d9898ee8 2866 ac_status=$?
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; then
dd184caf 2869 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2870# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2871# in a Makefile. We should not override ac_cv_exeext if it was cached,
2872# so that the user can short-circuit this test for compilers unknown to
2873# Autoconf.
2874for ac_file in $ac_files ''
d9898ee8 2875do
2876 test -f "$ac_file" || continue
2877 case $ac_file in
dd184caf 2878 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
d9898ee8 2879 ;;
2880 [ab].out )
2881 # We found the default executable, but exeext='' is most
2882 # certainly right.
2883 break;;
2884 *.* )
dd184caf 2885 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2886 then :; else
2887 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2888 fi
2889 # We set ac_cv_exeext here because the later test for it is not
2890 # safe: cross compilers may not add the suffix if given an `-o'
2891 # argument, so we may need to know it at that point already.
2892 # Even if this section looks crufty: it has the advantage of
2893 # actually working.
d9898ee8 2894 break;;
2895 * )
2896 break;;
2897 esac
2898done
dd184caf 2899test "$ac_cv_exeext" = no && ac_cv_exeext=
2900
d9898ee8 2901else
dd184caf 2902 ac_file=''
2903fi
2904
2905{ echo "$as_me:$LINENO: result: $ac_file" >&5
2906echo "${ECHO_T}$ac_file" >&6; }
2907if test -z "$ac_file"; then
d9898ee8 2908 echo "$as_me: failed program was:" >&5
2909sed 's/^/| /' conftest.$ac_ext >&5
2910
2911{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2912See \`config.log' for more details." >&5
2913echo "$as_me: error: C compiler cannot create executables
2914See \`config.log' for more details." >&2;}
2915 { (exit 77); exit 77; }; }
2916fi
2917
2918ac_exeext=$ac_cv_exeext
d9898ee8 2919
dd184caf 2920# Check that the compiler produces executables we can run. If not, either
d9898ee8 2921# the compiler is broken, or we cross compile.
dd184caf 2922{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2923echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
d9898ee8 2924# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2925# If not cross compiling, check that we can run a simple program.
2926if test "$cross_compiling" != yes; then
2927 if { ac_try='./$ac_file'
dd184caf 2928 { (case "(($ac_try" in
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2931esac
2932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933 (eval "$ac_try") 2>&5
d9898ee8 2934 ac_status=$?
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; }; then
2937 cross_compiling=no
2938 else
2939 if test "$cross_compiling" = maybe; then
2940 cross_compiling=yes
2941 else
2942 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2943If you meant to cross compile, use \`--host'.
2944See \`config.log' for more details." >&5
2945echo "$as_me: error: cannot run C compiled programs.
2946If you meant to cross compile, use \`--host'.
2947See \`config.log' for more details." >&2;}
2948 { (exit 1); exit 1; }; }
2949 fi
2950 fi
2951fi
dd184caf 2952{ echo "$as_me:$LINENO: result: yes" >&5
2953echo "${ECHO_T}yes" >&6; }
d9898ee8 2954
2955rm -f a.out a.exe conftest$ac_cv_exeext b.out
2956ac_clean_files=$ac_clean_files_save
dd184caf 2957# Check that the compiler produces executables we can run. If not, either
d9898ee8 2958# the compiler is broken, or we cross compile.
dd184caf 2959{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2960echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2961{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2962echo "${ECHO_T}$cross_compiling" >&6; }
2963
2964{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2965echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2966if { (ac_try="$ac_link"
2967case "(($ac_try" in
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2970esac
2971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972 (eval "$ac_link") 2>&5
d9898ee8 2973 ac_status=$?
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }; then
2976 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2977# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2978# work properly (i.e., refer to `conftest.exe'), while it won't with
2979# `rm'.
2980for ac_file in conftest.exe conftest conftest.*; do
2981 test -f "$ac_file" || continue
2982 case $ac_file in
dd184caf 2983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
d9898ee8 2984 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
d9898ee8 2985 break;;
2986 * ) break;;
2987 esac
2988done
2989else
2990 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2991See \`config.log' for more details." >&5
2992echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2993See \`config.log' for more details." >&2;}
2994 { (exit 1); exit 1; }; }
2995fi
2996
2997rm -f conftest$ac_cv_exeext
dd184caf 2998{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2999echo "${ECHO_T}$ac_cv_exeext" >&6; }
d9898ee8 3000
3001rm -f conftest.$ac_ext
3002EXEEXT=$ac_cv_exeext
3003ac_exeext=$EXEEXT
dd184caf 3004{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3005echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
d9898ee8 3006if test "${ac_cv_objext+set}" = set; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
3008else
3009 cat >conftest.$ac_ext <<_ACEOF
3010/* confdefs.h. */
3011_ACEOF
3012cat confdefs.h >>conftest.$ac_ext
3013cat >>conftest.$ac_ext <<_ACEOF
3014/* end confdefs.h. */
3015
3016int
3017main ()
3018{
3019
3020 ;
3021 return 0;
3022}
3023_ACEOF
3024rm -f conftest.o conftest.obj
dd184caf 3025if { (ac_try="$ac_compile"
3026case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029esac
3030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_compile") 2>&5
d9898ee8 3032 ac_status=$?
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }; then
dd184caf 3035 for ac_file in conftest.o conftest.obj conftest.*; do
3036 test -f "$ac_file" || continue;
d9898ee8 3037 case $ac_file in
dd184caf 3038 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
d9898ee8 3039 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3040 break;;
3041 esac
3042done
3043else
3044 echo "$as_me: failed program was:" >&5
3045sed 's/^/| /' conftest.$ac_ext >&5
3046
3047{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3048See \`config.log' for more details." >&5
3049echo "$as_me: error: cannot compute suffix of object files: cannot compile
3050See \`config.log' for more details." >&2;}
3051 { (exit 1); exit 1; }; }
3052fi
3053
3054rm -f conftest.$ac_cv_objext conftest.$ac_ext
3055fi
dd184caf 3056{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3057echo "${ECHO_T}$ac_cv_objext" >&6; }
d9898ee8 3058OBJEXT=$ac_cv_objext
3059ac_objext=$OBJEXT
dd184caf 3060{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3061echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
d9898ee8 3062if test "${ac_cv_c_compiler_gnu+set}" = set; then
3063 echo $ECHO_N "(cached) $ECHO_C" >&6
3064else
3065 cat >conftest.$ac_ext <<_ACEOF
3066/* confdefs.h. */
3067_ACEOF
3068cat confdefs.h >>conftest.$ac_ext
3069cat >>conftest.$ac_ext <<_ACEOF
3070/* end confdefs.h. */
3071
3072int
3073main ()
3074{
3075#ifndef __GNUC__
3076 choke me
3077#endif
3078
3079 ;
3080 return 0;
3081}
3082_ACEOF
3083rm -f conftest.$ac_objext
dd184caf 3084if { (ac_try="$ac_compile"
3085case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088esac
3089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3091 ac_status=$?
3092 grep -v '^ *+' conftest.er1 >conftest.err
3093 rm -f conftest.er1
3094 cat conftest.err >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3096 (exit $ac_status); } && {
3097 test -z "$ac_c_werror_flag" ||
3098 test ! -s conftest.err
3099 } && test -s conftest.$ac_objext; then
d9898ee8 3100 ac_compiler_gnu=yes
3101else
3102 echo "$as_me: failed program was:" >&5
3103sed 's/^/| /' conftest.$ac_ext >&5
3104
dd184caf 3105 ac_compiler_gnu=no
d9898ee8 3106fi
dd184caf 3107
3108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3109ac_cv_c_compiler_gnu=$ac_compiler_gnu
3110
3111fi
dd184caf 3112{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3113echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
d9898ee8 3114GCC=`test $ac_compiler_gnu = yes && echo yes`
3115ac_test_CFLAGS=${CFLAGS+set}
3116ac_save_CFLAGS=$CFLAGS
dd184caf 3117{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3118echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
d9898ee8 3119if test "${ac_cv_prog_cc_g+set}" = set; then
3120 echo $ECHO_N "(cached) $ECHO_C" >&6
3121else
dd184caf 3122 ac_save_c_werror_flag=$ac_c_werror_flag
3123 ac_c_werror_flag=yes
3124 ac_cv_prog_cc_g=no
3125 CFLAGS="-g"
3126 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 3127/* confdefs.h. */
3128_ACEOF
3129cat confdefs.h >>conftest.$ac_ext
3130cat >>conftest.$ac_ext <<_ACEOF
3131/* end confdefs.h. */
3132
3133int
3134main ()
3135{
3136
3137 ;
3138 return 0;
3139}
3140_ACEOF
3141rm -f conftest.$ac_objext
dd184caf 3142if { (ac_try="$ac_compile"
3143case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146esac
3147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3149 ac_status=$?
3150 grep -v '^ *+' conftest.er1 >conftest.err
3151 rm -f conftest.er1
3152 cat conftest.err >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3154 (exit $ac_status); } && {
3155 test -z "$ac_c_werror_flag" ||
3156 test ! -s conftest.err
3157 } && test -s conftest.$ac_objext; then
3158 ac_cv_prog_cc_g=yes
3159else
3160 echo "$as_me: failed program was:" >&5
3161sed 's/^/| /' conftest.$ac_ext >&5
3162
3163 CFLAGS=""
3164 cat >conftest.$ac_ext <<_ACEOF
3165/* confdefs.h. */
3166_ACEOF
3167cat confdefs.h >>conftest.$ac_ext
3168cat >>conftest.$ac_ext <<_ACEOF
3169/* end confdefs.h. */
3170
3171int
3172main ()
3173{
3174
3175 ;
3176 return 0;
3177}
3178_ACEOF
3179rm -f conftest.$ac_objext
3180if { (ac_try="$ac_compile"
3181case "(($ac_try" in
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3184esac
3185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3186 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3187 ac_status=$?
dd184caf 3188 grep -v '^ *+' conftest.er1 >conftest.err
3189 rm -f conftest.er1
3190 cat conftest.err >&5
d9898ee8 3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3192 (exit $ac_status); } && {
3193 test -z "$ac_c_werror_flag" ||
3194 test ! -s conftest.err
3195 } && test -s conftest.$ac_objext; then
3196 :
3197else
3198 echo "$as_me: failed program was:" >&5
3199sed 's/^/| /' conftest.$ac_ext >&5
3200
3201 ac_c_werror_flag=$ac_save_c_werror_flag
3202 CFLAGS="-g"
3203 cat >conftest.$ac_ext <<_ACEOF
3204/* confdefs.h. */
3205_ACEOF
3206cat confdefs.h >>conftest.$ac_ext
3207cat >>conftest.$ac_ext <<_ACEOF
3208/* end confdefs.h. */
3209
3210int
3211main ()
3212{
3213
3214 ;
3215 return 0;
3216}
3217_ACEOF
3218rm -f conftest.$ac_objext
3219if { (ac_try="$ac_compile"
3220case "(($ac_try" in
3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222 *) ac_try_echo=$ac_try;;
3223esac
3224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3225 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3226 ac_status=$?
dd184caf 3227 grep -v '^ *+' conftest.er1 >conftest.err
3228 rm -f conftest.er1
3229 cat conftest.err >&5
d9898ee8 3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3231 (exit $ac_status); } && {
3232 test -z "$ac_c_werror_flag" ||
3233 test ! -s conftest.err
3234 } && test -s conftest.$ac_objext; then
d9898ee8 3235 ac_cv_prog_cc_g=yes
3236else
3237 echo "$as_me: failed program was:" >&5
3238sed 's/^/| /' conftest.$ac_ext >&5
3239
dd184caf 3240
3241fi
3242
3243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3244fi
3245
3246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3247fi
dd184caf 3248
3249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3250 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 3251fi
dd184caf 3252{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3253echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
d9898ee8 3254if test "$ac_test_CFLAGS" = set; then
3255 CFLAGS=$ac_save_CFLAGS
3256elif test $ac_cv_prog_cc_g = yes; then
3257 if test "$GCC" = yes; then
3258 CFLAGS="-g -O2"
3259 else
3260 CFLAGS="-g"
3261 fi
3262else
3263 if test "$GCC" = yes; then
3264 CFLAGS="-O2"
3265 else
3266 CFLAGS=
3267 fi
3268fi
dd184caf 3269{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3270echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3271if test "${ac_cv_prog_cc_c89+set}" = set; then
d9898ee8 3272 echo $ECHO_N "(cached) $ECHO_C" >&6
3273else
dd184caf 3274 ac_cv_prog_cc_c89=no
d9898ee8 3275ac_save_CC=$CC
3276cat >conftest.$ac_ext <<_ACEOF
3277/* confdefs.h. */
3278_ACEOF
3279cat confdefs.h >>conftest.$ac_ext
3280cat >>conftest.$ac_ext <<_ACEOF
3281/* end confdefs.h. */
3282#include <stdarg.h>
3283#include <stdio.h>
3284#include <sys/types.h>
3285#include <sys/stat.h>
3286/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3287struct buf { int x; };
3288FILE * (*rcsopen) (struct buf *, struct stat *, int);
3289static char *e (p, i)
3290 char **p;
3291 int i;
3292{
3293 return p[i];
3294}
3295static char *f (char * (*g) (char **, int), char **p, ...)
3296{
3297 char *s;
3298 va_list v;
3299 va_start (v,p);
3300 s = g (p, va_arg (v,int));
3301 va_end (v);
3302 return s;
3303}
3304
3305/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3306 function prototypes and stuff, but not '\xHH' hex character constants.
3307 These don't provoke an error unfortunately, instead are silently treated
dd184caf 3308 as 'x'. The following induces an error, until -std is added to get
d9898ee8 3309 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3310 array size at least. It's necessary to write '\x00'==0 to get something
dd184caf 3311 that's true only with -std. */
d9898ee8 3312int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3313
dd184caf 3314/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3315 inside strings and character constants. */
3316#define FOO(x) 'x'
3317int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3318
d9898ee8 3319int test (int i, double x);
3320struct s1 {int (*f) (int a);};
3321struct s2 {int (*f) (double a);};
3322int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3323int argc;
3324char **argv;
3325int
3326main ()
3327{
3328return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3329 ;
3330 return 0;
3331}
3332_ACEOF
dd184caf 3333for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3334 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 3335do
3336 CC="$ac_save_CC $ac_arg"
3337 rm -f conftest.$ac_objext
dd184caf 3338if { (ac_try="$ac_compile"
3339case "(($ac_try" in
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3342esac
3343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3344 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3345 ac_status=$?
3346 grep -v '^ *+' conftest.er1 >conftest.err
3347 rm -f conftest.er1
3348 cat conftest.err >&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3350 (exit $ac_status); } && {
3351 test -z "$ac_c_werror_flag" ||
3352 test ! -s conftest.err
3353 } && test -s conftest.$ac_objext; then
3354 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 3355else
3356 echo "$as_me: failed program was:" >&5
3357sed 's/^/| /' conftest.$ac_ext >&5
3358
dd184caf 3359
d9898ee8 3360fi
dd184caf 3361
3362rm -f core conftest.err conftest.$ac_objext
3363 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 3364done
dd184caf 3365rm -f conftest.$ac_ext
d9898ee8 3366CC=$ac_save_CC
3367
3368fi
dd184caf 3369# AC_CACHE_VAL
3370case "x$ac_cv_prog_cc_c89" in
3371 x)
3372 { echo "$as_me:$LINENO: result: none needed" >&5
3373echo "${ECHO_T}none needed" >&6; } ;;
3374 xno)
3375 { echo "$as_me:$LINENO: result: unsupported" >&5
3376echo "${ECHO_T}unsupported" >&6; } ;;
d9898ee8 3377 *)
dd184caf 3378 CC="$CC $ac_cv_prog_cc_c89"
3379 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3380echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 3381esac
3382
d9898ee8 3383
d9898ee8 3384ac_ext=c
3385ac_cpp='$CPP $CPPFLAGS'
3386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3388ac_compiler_gnu=$ac_cv_c_compiler_gnu
3389DEPDIR="${am__leading_dot}deps"
3390
dd184caf 3391ac_config_commands="$ac_config_commands depfiles"
d9898ee8 3392
3393
3394am_make=${MAKE-make}
3395cat > confinc << 'END'
3396am__doit:
3397 @echo done
3398.PHONY: am__doit
3399END
3400# If we don't find an include directive, just comment out the code.
dd184caf 3401{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3402echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
d9898ee8 3403am__include="#"
3404am__quote=
3405_am_result=none
3406# First try GNU make style include.
3407echo "include confinc" > confmf
3408# We grep out `Entering directory' and `Leaving directory'
3409# messages which can occur if `w' ends up in MAKEFLAGS.
3410# In particular we don't look at `^make:' because GNU make might
3411# be invoked under some other name (usually "gmake"), in which
3412# case it prints its new name instead of `make'.
3413if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3414 am__include=include
3415 am__quote=
3416 _am_result=GNU
3417fi
3418# Now try BSD make style include.
3419if test "$am__include" = "#"; then
3420 echo '.include "confinc"' > confmf
3421 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3422 am__include=.include
3423 am__quote="\""
3424 _am_result=BSD
3425 fi
3426fi
3427
3428
dd184caf 3429{ echo "$as_me:$LINENO: result: $_am_result" >&5
3430echo "${ECHO_T}$_am_result" >&6; }
d9898ee8 3431rm -f confinc confmf
3432
dd184caf 3433# Check whether --enable-dependency-tracking was given.
d9898ee8 3434if test "${enable_dependency_tracking+set}" = set; then
dd184caf 3435 enableval=$enable_dependency_tracking;
3436fi
d9898ee8 3437
d9898ee8 3438if test "x$enable_dependency_tracking" != xno; then
3439 am_depcomp="$ac_aux_dir/depcomp"
3440 AMDEPBACKSLASH='\'
3441fi
dd184caf 3442 if test "x$enable_dependency_tracking" != xno; then
d9898ee8 3443 AMDEP_TRUE=
3444 AMDEP_FALSE='#'
3445else
3446 AMDEP_TRUE='#'
3447 AMDEP_FALSE=
3448fi
3449
3450
3451
d9898ee8 3452depcc="$CC" am_compiler_list=
3453
dd184caf 3454{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3455echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
d9898ee8 3456if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3458else
3459 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3460 # We make a subdir and do the tests there. Otherwise we can end up
3461 # making bogus files that we don't know about and never remove. For
3462 # instance it was reported that on HP-UX the gcc test will end up
3463 # making a dummy file named `D' -- because `-MD' means `put the output
3464 # in D'.
3465 mkdir conftest.dir
3466 # Copy depcomp to subdir because otherwise we won't find it if we're
3467 # using a relative directory.
3468 cp "$am_depcomp" conftest.dir
3469 cd conftest.dir
3470 # We will build objects and dependencies in a subdirectory because
3471 # it helps to detect inapplicable dependency modes. For instance
3472 # both Tru64's cc and ICC support -MD to output dependencies as a
3473 # side effect of compilation, but ICC will put the dependencies in
3474 # the current directory while Tru64 will put them in the object
3475 # directory.
3476 mkdir sub
3477
3478 am_cv_CC_dependencies_compiler_type=none
3479 if test "$am_compiler_list" = ""; then
3480 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3481 fi
3482 for depmode in $am_compiler_list; do
3483 # Setup a source with many dependencies, because some compilers
3484 # like to wrap large dependency lists on column 80 (with \), and
3485 # we should not choose a depcomp mode which is confused by this.
3486 #
3487 # We need to recreate these files for each test, as the compiler may
3488 # overwrite some of them when testing with obscure command lines.
3489 # This happens at least with the AIX C compiler.
3490 : > sub/conftest.c
3491 for i in 1 2 3 4 5 6; do
3492 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3493 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3494 # Solaris 8's {/usr,}/bin/sh.
3495 touch sub/conftst$i.h
3496 done
3497 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3498
3499 case $depmode in
3500 nosideeffect)
3501 # after this tag, mechanisms are not by side-effect, so they'll
3502 # only be used when explicitly requested
3503 if test "x$enable_dependency_tracking" = xyes; then
3504 continue
3505 else
3506 break
3507 fi
3508 ;;
3509 none) break ;;
3510 esac
3511 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3512 # mode. It turns out that the SunPro C++ compiler does not properly
3513 # handle `-M -o', and we need to detect this.
3514 if depmode=$depmode \
3515 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3516 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3517 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3518 >/dev/null 2>conftest.err &&
dd184caf 3519 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3520 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3521 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3522 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3523 # icc doesn't choke on unknown options, it will just issue warnings
3524 # or remarks (even with -Werror). So we grep stderr for any message
3525 # that says an option was ignored or not supported.
3526 # When given -MP, icc 7.0 and 7.1 complain thusly:
3527 # icc: Command line warning: ignoring option '-M'; no argument required
3528 # The diagnosis changed in icc 8.0:
3529 # icc: Command line remark: option '-MP' not supported
3530 if (grep 'ignoring option' conftest.err ||
3531 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3532 am_cv_CC_dependencies_compiler_type=$depmode
3533 break
3534 fi
3535 fi
3536 done
3537
3538 cd ..
3539 rm -rf conftest.dir
3540else
3541 am_cv_CC_dependencies_compiler_type=none
3542fi
3543
3544fi
dd184caf 3545{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3546echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 3547CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3548
dd184caf 3549 if
d9898ee8 3550 test "x$enable_dependency_tracking" != xno \
3551 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3552 am__fastdepCC_TRUE=
3553 am__fastdepCC_FALSE='#'
3554else
3555 am__fastdepCC_TRUE='#'
3556 am__fastdepCC_FALSE=
3557fi
3558
3559
3560# Find a good install program. We prefer a C program (faster),
3561# so one script is as good as another. But avoid the broken or
3562# incompatible versions:
3563# SysV /etc/install, /usr/sbin/install
3564# SunOS /usr/etc/install
3565# IRIX /sbin/install
3566# AIX /bin/install
3567# AmigaOS /C/install, which installs bootblocks on floppy discs
3568# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3569# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3570# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3571# OS/2's system install, which has a completely different semantic
3572# ./install, which can be erroneously created by make from ./install.sh.
dd184caf 3573{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3574echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
d9898ee8 3575if test -z "$INSTALL"; then
3576if test "${ac_cv_path_install+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3578else
3579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580for as_dir in $PATH
3581do
3582 IFS=$as_save_IFS
3583 test -z "$as_dir" && as_dir=.
3584 # Account for people who put trailing slashes in PATH elements.
3585case $as_dir/ in
3586 ./ | .// | /cC/* | \
3587 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3588 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3589 /usr/ucb/* ) ;;
3590 *)
3591 # OSF1 and SCO ODT 3.0 have their own names for install.
3592 # Don't use installbsd from OSF since it installs stuff as root
3593 # by default.
3594 for ac_prog in ginstall scoinst install; do
3595 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 3596 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 3597 if test $ac_prog = install &&
3598 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3599 # AIX install. It has an incompatible calling convention.
3600 :
3601 elif test $ac_prog = install &&
3602 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3603 # program-specific install script used by HP pwplus--don't use.
3604 :
3605 else
3606 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3607 break 3
3608 fi
3609 fi
3610 done
3611 done
3612 ;;
3613esac
3614done
dd184caf 3615IFS=$as_save_IFS
d9898ee8 3616
3617
3618fi
3619 if test "${ac_cv_path_install+set}" = set; then
3620 INSTALL=$ac_cv_path_install
3621 else
dd184caf 3622 # As a last resort, use the slow shell script. Don't cache a
3623 # value for INSTALL within a source directory, because that will
d9898ee8 3624 # break other packages using the cache if that directory is
dd184caf 3625 # removed, or if the value is a relative name.
d9898ee8 3626 INSTALL=$ac_install_sh
3627 fi
3628fi
dd184caf 3629{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3630echo "${ECHO_T}$INSTALL" >&6; }
d9898ee8 3631
3632# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3633# It thinks the first close brace ends the variable substitution.
3634test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3635
3636test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3637
3638test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3639
dd184caf 3640{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3641echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
d9898ee8 3642LN_S=$as_ln_s
3643if test "$LN_S" = "ln -s"; then
dd184caf 3644 { echo "$as_me:$LINENO: result: yes" >&5
3645echo "${ECHO_T}yes" >&6; }
d9898ee8 3646else
dd184caf 3647 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3648echo "${ECHO_T}no, using $LN_S" >&6; }
d9898ee8 3649fi
3650
dd184caf 3651# Check whether --enable-shared was given.
d9898ee8 3652if test "${enable_shared+set}" = set; then
dd184caf 3653 enableval=$enable_shared; p=${PACKAGE-default}
d9898ee8 3654 case $enableval in
3655 yes) enable_shared=yes ;;
3656 no) enable_shared=no ;;
3657 *)
3658 enable_shared=no
3659 # Look at the argument we got. We use all the common list separators.
3660 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3661 for pkg in $enableval; do
3662 IFS="$lt_save_ifs"
3663 if test "X$pkg" = "X$p"; then
3664 enable_shared=yes
3665 fi
3666 done
3667 IFS="$lt_save_ifs"
3668 ;;
3669 esac
3670else
3671 enable_shared=yes
dd184caf 3672fi
3673
d9898ee8 3674
dd184caf 3675# Check whether --enable-static was given.
d9898ee8 3676if test "${enable_static+set}" = set; then
dd184caf 3677 enableval=$enable_static; p=${PACKAGE-default}
d9898ee8 3678 case $enableval in
3679 yes) enable_static=yes ;;
3680 no) enable_static=no ;;
3681 *)
3682 enable_static=no
3683 # Look at the argument we got. We use all the common list separators.
3684 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3685 for pkg in $enableval; do
3686 IFS="$lt_save_ifs"
3687 if test "X$pkg" = "X$p"; then
3688 enable_static=yes
3689 fi
3690 done
3691 IFS="$lt_save_ifs"
3692 ;;
3693 esac
3694else
3695 enable_static=yes
dd184caf 3696fi
3697
d9898ee8 3698
dd184caf 3699# Check whether --enable-fast-install was given.
d9898ee8 3700if test "${enable_fast_install+set}" = set; then
dd184caf 3701 enableval=$enable_fast_install; p=${PACKAGE-default}
d9898ee8 3702 case $enableval in
3703 yes) enable_fast_install=yes ;;
3704 no) enable_fast_install=no ;;
3705 *)
3706 enable_fast_install=no
3707 # Look at the argument we got. We use all the common list separators.
3708 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3709 for pkg in $enableval; do
3710 IFS="$lt_save_ifs"
3711 if test "X$pkg" = "X$p"; then
3712 enable_fast_install=yes
3713 fi
3714 done
3715 IFS="$lt_save_ifs"
3716 ;;
3717 esac
3718else
3719 enable_fast_install=yes
dd184caf 3720fi
3721
d9898ee8 3722
3723# Make sure we can run config.sub.
dd184caf 3724$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3725 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3726echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
d9898ee8 3727 { (exit 1); exit 1; }; }
3728
dd184caf 3729{ echo "$as_me:$LINENO: checking build system type" >&5
3730echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
d9898ee8 3731if test "${ac_cv_build+set}" = set; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
3733else
dd184caf 3734 ac_build_alias=$build_alias
3735test "x$ac_build_alias" = x &&
3736 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3737test "x$ac_build_alias" = x &&
d9898ee8 3738 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3739echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3740 { (exit 1); exit 1; }; }
dd184caf 3741ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3742 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3743echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
d9898ee8 3744 { (exit 1); exit 1; }; }
3745
3746fi
dd184caf 3747{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3748echo "${ECHO_T}$ac_cv_build" >&6; }
3749case $ac_cv_build in
3750*-*-*) ;;
3751*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3752echo "$as_me: error: invalid value of canonical build" >&2;}
3753 { (exit 1); exit 1; }; };;
3754esac
d9898ee8 3755build=$ac_cv_build
dd184caf 3756ac_save_IFS=$IFS; IFS='-'
3757set x $ac_cv_build
3758shift
3759build_cpu=$1
3760build_vendor=$2
3761shift; shift
3762# Remember, the first character of IFS is used to create $*,
3763# except with old shells:
3764build_os=$*
3765IFS=$ac_save_IFS
3766case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3767
3768
3769{ echo "$as_me:$LINENO: checking host system type" >&5
3770echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
d9898ee8 3771if test "${ac_cv_host+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3773else
dd184caf 3774 if test "x$host_alias" = x; then
3775 ac_cv_host=$ac_cv_build
3776else
3777 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3778 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3779echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
d9898ee8 3780 { (exit 1); exit 1; }; }
dd184caf 3781fi
d9898ee8 3782
3783fi
dd184caf 3784{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3785echo "${ECHO_T}$ac_cv_host" >&6; }
3786case $ac_cv_host in
3787*-*-*) ;;
3788*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3789echo "$as_me: error: invalid value of canonical host" >&2;}
3790 { (exit 1); exit 1; }; };;
3791esac
d9898ee8 3792host=$ac_cv_host
dd184caf 3793ac_save_IFS=$IFS; IFS='-'
3794set x $ac_cv_host
3795shift
3796host_cpu=$1
3797host_vendor=$2
3798shift; shift
3799# Remember, the first character of IFS is used to create $*,
3800# except with old shells:
3801host_os=$*
3802IFS=$ac_save_IFS
3803case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3804
3805
3806{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3807echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
d9898ee8 3808if test "${lt_cv_path_SED+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3810else
3811 # Loop through the user's path and test for sed and gsed.
3812# Then use that list of sed's as ones to test for truncation.
3813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814for as_dir in $PATH
3815do
3816 IFS=$as_save_IFS
3817 test -z "$as_dir" && as_dir=.
3818 for lt_ac_prog in sed gsed; do
3819 for ac_exec_ext in '' $ac_executable_extensions; do
ac40fd9e 3820 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
d9898ee8 3821 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3822 fi
3823 done
3824 done
3825done
3826IFS=$as_save_IFS
3827lt_ac_max=0
3828lt_ac_count=0
3829# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3830# along with /bin/sed that truncates output.
3831for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3832 test ! -f $lt_ac_sed && continue
3833 cat /dev/null > conftest.in
3834 lt_ac_count=0
3835 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3836 # Check for GNU sed and select it if it is found.
3837 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3838 lt_cv_path_SED=$lt_ac_sed
3839 break
3840 fi
3841 while true; do
3842 cat conftest.in conftest.in >conftest.tmp
3843 mv conftest.tmp conftest.in
3844 cp conftest.in conftest.nl
3845 echo >>conftest.nl
3846 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3847 cmp -s conftest.out conftest.nl || break
3848 # 10000 chars as input seems more than enough
3849 test $lt_ac_count -gt 10 && break
3850 lt_ac_count=`expr $lt_ac_count + 1`
3851 if test $lt_ac_count -gt $lt_ac_max; then
3852 lt_ac_max=$lt_ac_count
3853 lt_cv_path_SED=$lt_ac_sed
3854 fi
3855 done
3856done
3857
3858fi
3859
3860SED=$lt_cv_path_SED
3861
dd184caf 3862{ echo "$as_me:$LINENO: result: $SED" >&5
3863echo "${ECHO_T}$SED" >&6; }
3864
3865{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3866echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3867if test "${ac_cv_path_GREP+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3869else
3870 # Extract the first word of "grep ggrep" to use in msg output
3871if test -z "$GREP"; then
3872set dummy grep ggrep; ac_prog_name=$2
3873if test "${ac_cv_path_GREP+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3875else
3876 ac_path_GREP_found=false
3877# Loop through the user's path and test for each of PROGNAME-LIST
3878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3880do
3881 IFS=$as_save_IFS
3882 test -z "$as_dir" && as_dir=.
3883 for ac_prog in grep ggrep; do
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3886 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3887 # Check for GNU ac_path_GREP and select it if it is found.
3888 # Check for GNU $ac_path_GREP
3889case `"$ac_path_GREP" --version 2>&1` in
3890*GNU*)
3891 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3892*)
3893 ac_count=0
3894 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3895 while :
3896 do
3897 cat "conftest.in" "conftest.in" >"conftest.tmp"
3898 mv "conftest.tmp" "conftest.in"
3899 cp "conftest.in" "conftest.nl"
3900 echo 'GREP' >> "conftest.nl"
3901 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3902 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3903 ac_count=`expr $ac_count + 1`
3904 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3905 # Best one so far, save it but keep looking for a better one
3906 ac_cv_path_GREP="$ac_path_GREP"
3907 ac_path_GREP_max=$ac_count
3908 fi
3909 # 10*(2^10) chars as input seems more than enough
3910 test $ac_count -gt 10 && break
3911 done
3912 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3913esac
3914
3915
3916 $ac_path_GREP_found && break 3
3917 done
3918done
3919
3920done
3921IFS=$as_save_IFS
3922
3923
3924fi
3925
3926GREP="$ac_cv_path_GREP"
3927if test -z "$GREP"; then
3928 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3929echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3930 { (exit 1); exit 1; }; }
3931fi
3932
3933else
3934 ac_cv_path_GREP=$GREP
3935fi
3936
d9898ee8 3937
dd184caf 3938fi
3939{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3940echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3941 GREP="$ac_cv_path_GREP"
3942
3943
3944{ echo "$as_me:$LINENO: checking for egrep" >&5
3945echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3946if test "${ac_cv_path_EGREP+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3948else
3949 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3950 then ac_cv_path_EGREP="$GREP -E"
3951 else
3952 # Extract the first word of "egrep" to use in msg output
3953if test -z "$EGREP"; then
3954set dummy egrep; ac_prog_name=$2
3955if test "${ac_cv_path_EGREP+set}" = set; then
d9898ee8 3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3957else
dd184caf 3958 ac_path_EGREP_found=false
3959# Loop through the user's path and test for each of PROGNAME-LIST
3960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3962do
3963 IFS=$as_save_IFS
3964 test -z "$as_dir" && as_dir=.
3965 for ac_prog in egrep; do
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3968 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3969 # Check for GNU ac_path_EGREP and select it if it is found.
3970 # Check for GNU $ac_path_EGREP
3971case `"$ac_path_EGREP" --version 2>&1` in
3972*GNU*)
3973 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3974*)
3975 ac_count=0
3976 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3977 while :
3978 do
3979 cat "conftest.in" "conftest.in" >"conftest.tmp"
3980 mv "conftest.tmp" "conftest.in"
3981 cp "conftest.in" "conftest.nl"
3982 echo 'EGREP' >> "conftest.nl"
3983 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3984 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3985 ac_count=`expr $ac_count + 1`
3986 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3987 # Best one so far, save it but keep looking for a better one
3988 ac_cv_path_EGREP="$ac_path_EGREP"
3989 ac_path_EGREP_max=$ac_count
d9898ee8 3990 fi
dd184caf 3991 # 10*(2^10) chars as input seems more than enough
3992 test $ac_count -gt 10 && break
3993 done
3994 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3995esac
3996
3997
3998 $ac_path_EGREP_found && break 3
3999 done
4000done
4001
4002done
4003IFS=$as_save_IFS
4004
4005
4006fi
4007
4008EGREP="$ac_cv_path_EGREP"
4009if test -z "$EGREP"; then
4010 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4011echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4012 { (exit 1); exit 1; }; }
4013fi
4014
4015else
4016 ac_cv_path_EGREP=$EGREP
4017fi
4018
4019
4020 fi
d9898ee8 4021fi
dd184caf 4022{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4023echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4024 EGREP="$ac_cv_path_EGREP"
d9898ee8 4025
4026
4027
dd184caf 4028# Check whether --with-gnu-ld was given.
d9898ee8 4029if test "${with_gnu_ld+set}" = set; then
dd184caf 4030 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 4031else
4032 with_gnu_ld=no
dd184caf 4033fi
4034
d9898ee8 4035ac_prog=ld
4036if test "$GCC" = yes; then
4037 # Check if gcc -print-prog-name=ld gives a path.
dd184caf 4038 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4039echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d9898ee8 4040 case $host in
4041 *-*-mingw*)
4042 # gcc leaves a trailing carriage return which upsets mingw
4043 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4044 *)
4045 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4046 esac
4047 case $ac_prog in
4048 # Accept absolute paths.
4049 [\\/]* | ?:[\\/]*)
4050 re_direlt='/[^/][^/]*/\.\./'
4051 # Canonicalize the pathname of ld
4052 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4053 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4054 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4055 done
4056 test -z "$LD" && LD="$ac_prog"
4057 ;;
4058 "")
4059 # If it fails, then pretend we aren't using GCC.
4060 ac_prog=ld
4061 ;;
4062 *)
4063 # If it is relative, then search for the first ld in PATH.
4064 with_gnu_ld=unknown
4065 ;;
4066 esac
4067elif test "$with_gnu_ld" = yes; then
dd184caf 4068 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4069echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d9898ee8 4070else
dd184caf 4071 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4072echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d9898ee8 4073fi
4074if test "${lt_cv_path_LD+set}" = set; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
4076else
4077 if test -z "$LD"; then
4078 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4079 for ac_dir in $PATH; do
4080 IFS="$lt_save_ifs"
4081 test -z "$ac_dir" && ac_dir=.
4082 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4083 lt_cv_path_LD="$ac_dir/$ac_prog"
4084 # Check to see if the program is GNU ld. I'd rather use --version,
4085 # but apparently some variants of GNU ld only accept -v.
4086 # Break only if it was the GNU/non-GNU ld that we prefer.
4087 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4088 *GNU* | *'with BFD'*)
4089 test "$with_gnu_ld" != no && break
4090 ;;
4091 *)
4092 test "$with_gnu_ld" != yes && break
4093 ;;
4094 esac
4095 fi
4096 done
4097 IFS="$lt_save_ifs"
4098else
4099 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4100fi
4101fi
4102
4103LD="$lt_cv_path_LD"
4104if test -n "$LD"; then
dd184caf 4105 { echo "$as_me:$LINENO: result: $LD" >&5
4106echo "${ECHO_T}$LD" >&6; }
d9898ee8 4107else
dd184caf 4108 { echo "$as_me:$LINENO: result: no" >&5
4109echo "${ECHO_T}no" >&6; }
d9898ee8 4110fi
4111test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4112echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4113 { (exit 1); exit 1; }; }
dd184caf 4114{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4115echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d9898ee8 4116if test "${lt_cv_prog_gnu_ld+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4118else
4119 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4120case `$LD -v 2>&1 </dev/null` in
4121*GNU* | *'with BFD'*)
4122 lt_cv_prog_gnu_ld=yes
4123 ;;
4124*)
4125 lt_cv_prog_gnu_ld=no
4126 ;;
4127esac
4128fi
dd184caf 4129{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4130echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 4131with_gnu_ld=$lt_cv_prog_gnu_ld
4132
4133
dd184caf 4134{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4135echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
d9898ee8 4136if test "${lt_cv_ld_reload_flag+set}" = set; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
4138else
4139 lt_cv_ld_reload_flag='-r'
4140fi
dd184caf 4141{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4142echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
d9898ee8 4143reload_flag=$lt_cv_ld_reload_flag
4144case $reload_flag in
4145"" | " "*) ;;
4146*) reload_flag=" $reload_flag" ;;
4147esac
4148reload_cmds='$LD$reload_flag -o $output$reload_objs'
4149case $host_os in
4150 darwin*)
4151 if test "$GCC" = yes; then
4152 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4153 else
4154 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4155 fi
4156 ;;
4157esac
4158
dd184caf 4159{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4160echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
d9898ee8 4161if test "${lt_cv_path_NM+set}" = set; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6
4163else
4164 if test -n "$NM"; then
4165 # Let the user override the test.
4166 lt_cv_path_NM="$NM"
4167else
4168 lt_nm_to_check="${ac_tool_prefix}nm"
4169 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4170 lt_nm_to_check="$lt_nm_to_check nm"
4171 fi
4172 for lt_tmp_nm in $lt_nm_to_check; do
4173 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4174 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4175 IFS="$lt_save_ifs"
4176 test -z "$ac_dir" && ac_dir=.
4177 tmp_nm="$ac_dir/$lt_tmp_nm"
4178 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4179 # Check to see if the nm accepts a BSD-compat flag.
4180 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4181 # nm: unknown option "B" ignored
4182 # Tru64's nm complains that /dev/null is an invalid object file
4183 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4184 */dev/null* | *'Invalid file or object type'*)
4185 lt_cv_path_NM="$tmp_nm -B"
4186 break
4187 ;;
4188 *)
4189 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4190 */dev/null*)
4191 lt_cv_path_NM="$tmp_nm -p"
4192 break
4193 ;;
4194 *)
4195 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4196 continue # so that we can try to find one that supports BSD flags
4197 ;;
4198 esac
4199 ;;
4200 esac
4201 fi
4202 done
4203 IFS="$lt_save_ifs"
4204 done
4205 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4206fi
4207fi
dd184caf 4208{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4209echo "${ECHO_T}$lt_cv_path_NM" >&6; }
d9898ee8 4210NM="$lt_cv_path_NM"
4211
ac40fd9e 4212{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4213echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
d9898ee8 4214if test "${lt_cv_deplibs_check_method+set}" = set; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4216else
4217 lt_cv_file_magic_cmd='$MAGIC_CMD'
4218lt_cv_file_magic_test_file=
4219lt_cv_deplibs_check_method='unknown'
4220# Need to set the preceding variable on all platforms that support
4221# interlibrary dependencies.
4222# 'none' -- dependencies not supported.
4223# `unknown' -- same as none, but documents that we really don't know.
4224# 'pass_all' -- all dependencies passed with no checks.
4225# 'test_compile' -- check by making test program.
4226# 'file_magic [[regex]]' -- check by looking for files in library path
4227# which responds to the $file_magic_cmd with a given extended regex.
4228# If you have `file' or equivalent on your system and you're not sure
4229# whether `pass_all' will *always* work, you probably want this one.
4230
4231case $host_os in
4232aix4* | aix5*)
4233 lt_cv_deplibs_check_method=pass_all
4234 ;;
4235
4236beos*)
4237 lt_cv_deplibs_check_method=pass_all
4238 ;;
4239
4240bsdi[45]*)
4241 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4242 lt_cv_file_magic_cmd='/usr/bin/file -L'
4243 lt_cv_file_magic_test_file=/shlib/libc.so
4244 ;;
4245
4246cygwin*)
4247 # func_win32_libid is a shell function defined in ltmain.sh
4248 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4249 lt_cv_file_magic_cmd='func_win32_libid'
4250 ;;
4251
4252mingw* | pw32*)
4253 # Base MSYS/MinGW do not provide the 'file' command needed by
ac40fd9e 4254 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4255 # unless we find 'file', for example because we are cross-compiling.
4256 if ( file / ) >/dev/null 2>&1; then
4257 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4258 lt_cv_file_magic_cmd='func_win32_libid'
4259 else
4260 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4261 lt_cv_file_magic_cmd='$OBJDUMP -f'
4262 fi
d9898ee8 4263 ;;
4264
4265darwin* | rhapsody*)
4266 lt_cv_deplibs_check_method=pass_all
4267 ;;
4268
ac40fd9e 4269freebsd* | dragonfly*)
d9898ee8 4270 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4271 case $host_cpu in
4272 i*86 )
4273 # Not sure whether the presence of OpenBSD here was a mistake.
4274 # Let's accept both of them until this is cleared up.
4275 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4276 lt_cv_file_magic_cmd=/usr/bin/file
4277 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4278 ;;
4279 esac
4280 else
4281 lt_cv_deplibs_check_method=pass_all
4282 fi
4283 ;;
4284
4285gnu*)
4286 lt_cv_deplibs_check_method=pass_all
4287 ;;
4288
4289hpux10.20* | hpux11*)
4290 lt_cv_file_magic_cmd=/usr/bin/file
4291 case $host_cpu in
4292 ia64*)
4293 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4294 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4295 ;;
4296 hppa*64*)
4297 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]'
4298 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4299 ;;
4300 *)
4301 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4302 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4303 ;;
4304 esac
4305 ;;
4306
ac40fd9e 4307interix[3-9]*)
d9898ee8 4308 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4309 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4310 ;;
4311
4312irix5* | irix6* | nonstopux*)
4313 case $LD in
4314 *-32|*"-32 ") libmagic=32-bit;;
4315 *-n32|*"-n32 ") libmagic=N32;;
4316 *-64|*"-64 ") libmagic=64-bit;;
4317 *) libmagic=never-match;;
4318 esac
4319 lt_cv_deplibs_check_method=pass_all
4320 ;;
4321
4322# This must be Linux ELF.
ac40fd9e 4323linux* | k*bsd*-gnu)
d9898ee8 4324 lt_cv_deplibs_check_method=pass_all
4325 ;;
4326
4327netbsd*)
4328 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4329 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4330 else
4331 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4332 fi
4333 ;;
4334
4335newos6*)
4336 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4337 lt_cv_file_magic_cmd=/usr/bin/file
4338 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4339 ;;
4340
4341nto-qnx*)
4342 lt_cv_deplibs_check_method=unknown
4343 ;;
4344
4345openbsd*)
4346 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4347 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4348 else
4349 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4350 fi
4351 ;;
4352
4353osf3* | osf4* | osf5*)
4354 lt_cv_deplibs_check_method=pass_all
4355 ;;
4356
ac40fd9e 4357rdos*)
4358 lt_cv_deplibs_check_method=pass_all
4359 ;;
4360
d9898ee8 4361solaris*)
4362 lt_cv_deplibs_check_method=pass_all
4363 ;;
4364
4365sysv4 | sysv4.3*)
4366 case $host_vendor in
4367 motorola)
4368 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]'
4369 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4370 ;;
4371 ncr)
4372 lt_cv_deplibs_check_method=pass_all
4373 ;;
4374 sequent)
4375 lt_cv_file_magic_cmd='/bin/file'
4376 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4377 ;;
4378 sni)
4379 lt_cv_file_magic_cmd='/bin/file'
4380 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4381 lt_cv_file_magic_test_file=/lib/libc.so
4382 ;;
4383 siemens)
4384 lt_cv_deplibs_check_method=pass_all
4385 ;;
4386 pc)
4387 lt_cv_deplibs_check_method=pass_all
4388 ;;
4389 esac
4390 ;;
4391
4392sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4393 lt_cv_deplibs_check_method=pass_all
4394 ;;
4395esac
4396
4397fi
dd184caf 4398{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4399echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
d9898ee8 4400file_magic_cmd=$lt_cv_file_magic_cmd
4401deplibs_check_method=$lt_cv_deplibs_check_method
4402test -z "$deplibs_check_method" && deplibs_check_method=unknown
4403
4404
4405
4406
4407# If no C compiler was specified, use CC.
4408LTCC=${LTCC-"$CC"}
4409
4410# If no C compiler flags were specified, use CFLAGS.
4411LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4412
4413# Allow CC to be a program name with arguments.
4414compiler=$CC
4415
4416
dd184caf 4417# Check whether --enable-libtool-lock was given.
d9898ee8 4418if test "${enable_libtool_lock+set}" = set; then
dd184caf 4419 enableval=$enable_libtool_lock;
4420fi
d9898ee8 4421
d9898ee8 4422test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4423
4424# Some flags need to be propagated to the compiler or linker for good
4425# libtool support.
4426case $host in
4427ia64-*-hpux*)
4428 # Find out which ABI we are using.
4429 echo 'int i;' > conftest.$ac_ext
4430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4431 (eval $ac_compile) 2>&5
4432 ac_status=$?
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); }; then
4435 case `/usr/bin/file conftest.$ac_objext` in
4436 *ELF-32*)
4437 HPUX_IA64_MODE="32"
4438 ;;
4439 *ELF-64*)
4440 HPUX_IA64_MODE="64"
4441 ;;
4442 esac
4443 fi
4444 rm -rf conftest*
4445 ;;
4446*-*-irix6*)
4447 # Find out which ABI we are using.
ac40fd9e 4448 echo '#line 4448 "configure"' > conftest.$ac_ext
d9898ee8 4449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4450 (eval $ac_compile) 2>&5
4451 ac_status=$?
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); }; then
4454 if test "$lt_cv_prog_gnu_ld" = yes; then
4455 case `/usr/bin/file conftest.$ac_objext` in
4456 *32-bit*)
4457 LD="${LD-ld} -melf32bsmip"
4458 ;;
4459 *N32*)
4460 LD="${LD-ld} -melf32bmipn32"
4461 ;;
4462 *64-bit*)
4463 LD="${LD-ld} -melf64bmip"
4464 ;;
4465 esac
4466 else
4467 case `/usr/bin/file conftest.$ac_objext` in
4468 *32-bit*)
4469 LD="${LD-ld} -32"
4470 ;;
4471 *N32*)
4472 LD="${LD-ld} -n32"
4473 ;;
4474 *64-bit*)
4475 LD="${LD-ld} -64"
4476 ;;
4477 esac
4478 fi
4479 fi
4480 rm -rf conftest*
4481 ;;
4482
ac40fd9e 4483x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4484s390*-*linux*|sparc*-*linux*)
d9898ee8 4485 # Find out which ABI we are using.
4486 echo 'int i;' > conftest.$ac_ext
4487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4488 (eval $ac_compile) 2>&5
4489 ac_status=$?
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); }; then
4492 case `/usr/bin/file conftest.o` in
4493 *32-bit*)
4494 case $host in
ac40fd9e 4495 x86_64-*kfreebsd*-gnu)
4496 LD="${LD-ld} -m elf_i386_fbsd"
4497 ;;
d9898ee8 4498 x86_64-*linux*)
4499 LD="${LD-ld} -m elf_i386"
4500 ;;
4501 ppc64-*linux*|powerpc64-*linux*)
4502 LD="${LD-ld} -m elf32ppclinux"
4503 ;;
4504 s390x-*linux*)
4505 LD="${LD-ld} -m elf_s390"
4506 ;;
4507 sparc64-*linux*)
4508 LD="${LD-ld} -m elf32_sparc"
4509 ;;
4510 esac
4511 ;;
4512 *64-bit*)
ac40fd9e 4513 libsuff=64
d9898ee8 4514 case $host in
ac40fd9e 4515 x86_64-*kfreebsd*-gnu)
4516 LD="${LD-ld} -m elf_x86_64_fbsd"
4517 ;;
d9898ee8 4518 x86_64-*linux*)
4519 LD="${LD-ld} -m elf_x86_64"
4520 ;;
4521 ppc*-*linux*|powerpc*-*linux*)
4522 LD="${LD-ld} -m elf64ppc"
4523 ;;
4524 s390*-*linux*)
4525 LD="${LD-ld} -m elf64_s390"
4526 ;;
4527 sparc*-*linux*)
4528 LD="${LD-ld} -m elf64_sparc"
4529 ;;
4530 esac
4531 ;;
4532 esac
4533 fi
4534 rm -rf conftest*
4535 ;;
4536
4537*-*-sco3.2v5*)
4538 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4539 SAVE_CFLAGS="$CFLAGS"
4540 CFLAGS="$CFLAGS -belf"
dd184caf 4541 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4542echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
d9898ee8 4543if test "${lt_cv_cc_needs_belf+set}" = set; then
4544 echo $ECHO_N "(cached) $ECHO_C" >&6
4545else
4546 ac_ext=c
4547ac_cpp='$CPP $CPPFLAGS'
4548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4550ac_compiler_gnu=$ac_cv_c_compiler_gnu
4551
4552 cat >conftest.$ac_ext <<_ACEOF
4553/* confdefs.h. */
4554_ACEOF
4555cat confdefs.h >>conftest.$ac_ext
4556cat >>conftest.$ac_ext <<_ACEOF
4557/* end confdefs.h. */
4558
4559int
4560main ()
4561{
4562
4563 ;
4564 return 0;
4565}
4566_ACEOF
4567rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 4568if { (ac_try="$ac_link"
4569case "(($ac_try" in
4570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4571 *) ac_try_echo=$ac_try;;
4572esac
4573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4574 (eval "$ac_link") 2>conftest.er1
d9898ee8 4575 ac_status=$?
4576 grep -v '^ *+' conftest.er1 >conftest.err
4577 rm -f conftest.er1
4578 cat conftest.err >&5
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4580 (exit $ac_status); } && {
4581 test -z "$ac_c_werror_flag" ||
4582 test ! -s conftest.err
4583 } && test -s conftest$ac_exeext &&
4584 $as_test_x conftest$ac_exeext; then
d9898ee8 4585 lt_cv_cc_needs_belf=yes
4586else
4587 echo "$as_me: failed program was:" >&5
4588sed 's/^/| /' conftest.$ac_ext >&5
4589
dd184caf 4590 lt_cv_cc_needs_belf=no
d9898ee8 4591fi
dd184caf 4592
4593rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 4594 conftest$ac_exeext conftest.$ac_ext
4595 ac_ext=c
4596ac_cpp='$CPP $CPPFLAGS'
4597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4599ac_compiler_gnu=$ac_cv_c_compiler_gnu
4600
4601fi
dd184caf 4602{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4603echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
d9898ee8 4604 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4605 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4606 CFLAGS="$SAVE_CFLAGS"
4607 fi
4608 ;;
4609sparc*-*solaris*)
4610 # Find out which ABI we are using.
4611 echo 'int i;' > conftest.$ac_ext
4612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4613 (eval $ac_compile) 2>&5
4614 ac_status=$?
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; then
4617 case `/usr/bin/file conftest.o` in
4618 *64-bit*)
4619 case $lt_cv_prog_gnu_ld in
4620 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4621 *) LD="${LD-ld} -64" ;;
4622 esac
4623 ;;
4624 esac
4625 fi
4626 rm -rf conftest*
4627 ;;
4628
4629
4630esac
4631
4632need_locks="$enable_libtool_lock"
4633
4634
4635ac_ext=c
4636ac_cpp='$CPP $CPPFLAGS'
4637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4639ac_compiler_gnu=$ac_cv_c_compiler_gnu
dd184caf 4640{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4641echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
d9898ee8 4642# On Suns, sometimes $CPP names a directory.
4643if test -n "$CPP" && test -d "$CPP"; then
4644 CPP=
4645fi
4646if test -z "$CPP"; then
4647 if test "${ac_cv_prog_CPP+set}" = set; then
4648 echo $ECHO_N "(cached) $ECHO_C" >&6
4649else
4650 # Double quotes because CPP needs to be expanded
4651 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4652 do
4653 ac_preproc_ok=false
4654for ac_c_preproc_warn_flag in '' yes
4655do
4656 # Use a header file that comes with gcc, so configuring glibc
4657 # with a fresh cross-compiler works.
4658 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4659 # <limits.h> exists even on freestanding compilers.
4660 # On the NeXT, cc -E runs the code through the compiler's parser,
4661 # not just through cpp. "Syntax error" is here to catch this case.
4662 cat >conftest.$ac_ext <<_ACEOF
4663/* confdefs.h. */
4664_ACEOF
4665cat confdefs.h >>conftest.$ac_ext
4666cat >>conftest.$ac_ext <<_ACEOF
4667/* end confdefs.h. */
4668#ifdef __STDC__
4669# include <limits.h>
4670#else
4671# include <assert.h>
4672#endif
4673 Syntax error
4674_ACEOF
dd184caf 4675if { (ac_try="$ac_cpp conftest.$ac_ext"
4676case "(($ac_try" in
4677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4678 *) ac_try_echo=$ac_try;;
4679esac
4680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4682 ac_status=$?
4683 grep -v '^ *+' conftest.er1 >conftest.err
4684 rm -f conftest.er1
4685 cat conftest.err >&5
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4687 (exit $ac_status); } >/dev/null && {
4688 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4689 test ! -s conftest.err
4690 }; then
d9898ee8 4691 :
4692else
4693 echo "$as_me: failed program was:" >&5
4694sed 's/^/| /' conftest.$ac_ext >&5
4695
4696 # Broken: fails on valid input.
4697continue
4698fi
dd184caf 4699
d9898ee8 4700rm -f conftest.err conftest.$ac_ext
4701
dd184caf 4702 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 4703 # can be detected and how.
4704 cat >conftest.$ac_ext <<_ACEOF
4705/* confdefs.h. */
4706_ACEOF
4707cat confdefs.h >>conftest.$ac_ext
4708cat >>conftest.$ac_ext <<_ACEOF
4709/* end confdefs.h. */
4710#include <ac_nonexistent.h>
4711_ACEOF
dd184caf 4712if { (ac_try="$ac_cpp conftest.$ac_ext"
4713case "(($ac_try" in
4714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4715 *) ac_try_echo=$ac_try;;
4716esac
4717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4719 ac_status=$?
4720 grep -v '^ *+' conftest.er1 >conftest.err
4721 rm -f conftest.er1
4722 cat conftest.err >&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4724 (exit $ac_status); } >/dev/null && {
4725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4726 test ! -s conftest.err
4727 }; then
d9898ee8 4728 # Broken: success on invalid input.
4729continue
4730else
4731 echo "$as_me: failed program was:" >&5
4732sed 's/^/| /' conftest.$ac_ext >&5
4733
4734 # Passes both tests.
4735ac_preproc_ok=:
4736break
4737fi
dd184caf 4738
d9898ee8 4739rm -f conftest.err conftest.$ac_ext
4740
4741done
4742# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4743rm -f conftest.err conftest.$ac_ext
4744if $ac_preproc_ok; then
4745 break
4746fi
4747
4748 done
4749 ac_cv_prog_CPP=$CPP
4750
4751fi
4752 CPP=$ac_cv_prog_CPP
4753else
4754 ac_cv_prog_CPP=$CPP
4755fi
dd184caf 4756{ echo "$as_me:$LINENO: result: $CPP" >&5
4757echo "${ECHO_T}$CPP" >&6; }
d9898ee8 4758ac_preproc_ok=false
4759for ac_c_preproc_warn_flag in '' yes
4760do
4761 # Use a header file that comes with gcc, so configuring glibc
4762 # with a fresh cross-compiler works.
4763 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4764 # <limits.h> exists even on freestanding compilers.
4765 # On the NeXT, cc -E runs the code through the compiler's parser,
4766 # not just through cpp. "Syntax error" is here to catch this case.
4767 cat >conftest.$ac_ext <<_ACEOF
4768/* confdefs.h. */
4769_ACEOF
4770cat confdefs.h >>conftest.$ac_ext
4771cat >>conftest.$ac_ext <<_ACEOF
4772/* end confdefs.h. */
4773#ifdef __STDC__
4774# include <limits.h>
4775#else
4776# include <assert.h>
4777#endif
4778 Syntax error
4779_ACEOF
dd184caf 4780if { (ac_try="$ac_cpp conftest.$ac_ext"
4781case "(($ac_try" in
4782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4783 *) ac_try_echo=$ac_try;;
4784esac
4785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4787 ac_status=$?
4788 grep -v '^ *+' conftest.er1 >conftest.err
4789 rm -f conftest.er1
4790 cat conftest.err >&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4792 (exit $ac_status); } >/dev/null && {
4793 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4794 test ! -s conftest.err
4795 }; then
d9898ee8 4796 :
4797else
4798 echo "$as_me: failed program was:" >&5
4799sed 's/^/| /' conftest.$ac_ext >&5
4800
4801 # Broken: fails on valid input.
4802continue
4803fi
dd184caf 4804
d9898ee8 4805rm -f conftest.err conftest.$ac_ext
4806
dd184caf 4807 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 4808 # can be detected and how.
4809 cat >conftest.$ac_ext <<_ACEOF
4810/* confdefs.h. */
4811_ACEOF
4812cat confdefs.h >>conftest.$ac_ext
4813cat >>conftest.$ac_ext <<_ACEOF
4814/* end confdefs.h. */
4815#include <ac_nonexistent.h>
4816_ACEOF
dd184caf 4817if { (ac_try="$ac_cpp conftest.$ac_ext"
4818case "(($ac_try" in
4819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4820 *) ac_try_echo=$ac_try;;
4821esac
4822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4824 ac_status=$?
4825 grep -v '^ *+' conftest.er1 >conftest.err
4826 rm -f conftest.er1
4827 cat conftest.err >&5
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4829 (exit $ac_status); } >/dev/null && {
4830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4831 test ! -s conftest.err
4832 }; then
d9898ee8 4833 # Broken: success on invalid input.
4834continue
4835else
4836 echo "$as_me: failed program was:" >&5
4837sed 's/^/| /' conftest.$ac_ext >&5
4838
4839 # Passes both tests.
4840ac_preproc_ok=:
4841break
4842fi
dd184caf 4843
d9898ee8 4844rm -f conftest.err conftest.$ac_ext
4845
4846done
4847# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4848rm -f conftest.err conftest.$ac_ext
4849if $ac_preproc_ok; then
4850 :
4851else
4852 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4853See \`config.log' for more details." >&5
4854echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4855See \`config.log' for more details." >&2;}
4856 { (exit 1); exit 1; }; }
4857fi
4858
4859ac_ext=c
4860ac_cpp='$CPP $CPPFLAGS'
4861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4863ac_compiler_gnu=$ac_cv_c_compiler_gnu
4864
4865
dd184caf 4866{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4867echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
d9898ee8 4868if test "${ac_cv_header_stdc+set}" = set; then
4869 echo $ECHO_N "(cached) $ECHO_C" >&6
4870else
4871 cat >conftest.$ac_ext <<_ACEOF
4872/* confdefs.h. */
4873_ACEOF
4874cat confdefs.h >>conftest.$ac_ext
4875cat >>conftest.$ac_ext <<_ACEOF
4876/* end confdefs.h. */
4877#include <stdlib.h>
4878#include <stdarg.h>
4879#include <string.h>
4880#include <float.h>
4881
4882int
4883main ()
4884{
4885
4886 ;
4887 return 0;
4888}
4889_ACEOF
4890rm -f conftest.$ac_objext
dd184caf 4891if { (ac_try="$ac_compile"
4892case "(($ac_try" in
4893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4894 *) ac_try_echo=$ac_try;;
4895esac
4896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4897 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4898 ac_status=$?
4899 grep -v '^ *+' conftest.er1 >conftest.err
4900 rm -f conftest.er1
4901 cat conftest.err >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4903 (exit $ac_status); } && {
4904 test -z "$ac_c_werror_flag" ||
4905 test ! -s conftest.err
4906 } && test -s conftest.$ac_objext; then
d9898ee8 4907 ac_cv_header_stdc=yes
4908else
4909 echo "$as_me: failed program was:" >&5
4910sed 's/^/| /' conftest.$ac_ext >&5
4911
dd184caf 4912 ac_cv_header_stdc=no
d9898ee8 4913fi
dd184caf 4914
4915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 4916
4917if test $ac_cv_header_stdc = yes; then
4918 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4919 cat >conftest.$ac_ext <<_ACEOF
4920/* confdefs.h. */
4921_ACEOF
4922cat confdefs.h >>conftest.$ac_ext
4923cat >>conftest.$ac_ext <<_ACEOF
4924/* end confdefs.h. */
4925#include <string.h>
4926
4927_ACEOF
4928if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4929 $EGREP "memchr" >/dev/null 2>&1; then
4930 :
4931else
4932 ac_cv_header_stdc=no
4933fi
4934rm -f conftest*
4935
4936fi
4937
4938if test $ac_cv_header_stdc = yes; then
4939 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4940 cat >conftest.$ac_ext <<_ACEOF
4941/* confdefs.h. */
4942_ACEOF
4943cat confdefs.h >>conftest.$ac_ext
4944cat >>conftest.$ac_ext <<_ACEOF
4945/* end confdefs.h. */
4946#include <stdlib.h>
4947
4948_ACEOF
4949if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4950 $EGREP "free" >/dev/null 2>&1; then
4951 :
4952else
4953 ac_cv_header_stdc=no
4954fi
4955rm -f conftest*
4956
4957fi
4958
4959if test $ac_cv_header_stdc = yes; then
4960 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4961 if test "$cross_compiling" = yes; then
4962 :
4963else
4964 cat >conftest.$ac_ext <<_ACEOF
4965/* confdefs.h. */
4966_ACEOF
4967cat confdefs.h >>conftest.$ac_ext
4968cat >>conftest.$ac_ext <<_ACEOF
4969/* end confdefs.h. */
4970#include <ctype.h>
dd184caf 4971#include <stdlib.h>
d9898ee8 4972#if ((' ' & 0x0FF) == 0x020)
4973# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4974# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4975#else
4976# define ISLOWER(c) \
4977 (('a' <= (c) && (c) <= 'i') \
4978 || ('j' <= (c) && (c) <= 'r') \
4979 || ('s' <= (c) && (c) <= 'z'))
4980# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4981#endif
4982
4983#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4984int
4985main ()
4986{
4987 int i;
4988 for (i = 0; i < 256; i++)
4989 if (XOR (islower (i), ISLOWER (i))
4990 || toupper (i) != TOUPPER (i))
dd184caf 4991 return 2;
4992 return 0;
d9898ee8 4993}
4994_ACEOF
4995rm -f conftest$ac_exeext
dd184caf 4996if { (ac_try="$ac_link"
4997case "(($ac_try" in
4998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4999 *) ac_try_echo=$ac_try;;
5000esac
5001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5002 (eval "$ac_link") 2>&5
d9898ee8 5003 ac_status=$?
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
dd184caf 5006 { (case "(($ac_try" in
5007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5008 *) ac_try_echo=$ac_try;;
5009esac
5010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5011 (eval "$ac_try") 2>&5
d9898ee8 5012 ac_status=$?
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); }; }; then
5015 :
5016else
5017 echo "$as_me: program exited with status $ac_status" >&5
5018echo "$as_me: failed program was:" >&5
5019sed 's/^/| /' conftest.$ac_ext >&5
5020
5021( exit $ac_status )
5022ac_cv_header_stdc=no
5023fi
dd184caf 5024rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 5025fi
dd184caf 5026
5027
d9898ee8 5028fi
5029fi
dd184caf 5030{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5031echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
d9898ee8 5032if test $ac_cv_header_stdc = yes; then
5033
5034cat >>confdefs.h <<\_ACEOF
5035#define STDC_HEADERS 1
5036_ACEOF
5037
5038fi
5039
5040# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5051 inttypes.h stdint.h unistd.h
5052do
5053as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
dd184caf 5054{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5056if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5057 echo $ECHO_N "(cached) $ECHO_C" >&6
5058else
5059 cat >conftest.$ac_ext <<_ACEOF
5060/* confdefs.h. */
5061_ACEOF
5062cat confdefs.h >>conftest.$ac_ext
5063cat >>conftest.$ac_ext <<_ACEOF
5064/* end confdefs.h. */
5065$ac_includes_default
5066
5067#include <$ac_header>
5068_ACEOF
5069rm -f conftest.$ac_objext
dd184caf 5070if { (ac_try="$ac_compile"
5071case "(($ac_try" in
5072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5073 *) ac_try_echo=$ac_try;;
5074esac
5075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5076 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5077 ac_status=$?
5078 grep -v '^ *+' conftest.er1 >conftest.err
5079 rm -f conftest.er1
5080 cat conftest.err >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5082 (exit $ac_status); } && {
5083 test -z "$ac_c_werror_flag" ||
5084 test ! -s conftest.err
5085 } && test -s conftest.$ac_objext; then
d9898ee8 5086 eval "$as_ac_Header=yes"
5087else
5088 echo "$as_me: failed program was:" >&5
5089sed 's/^/| /' conftest.$ac_ext >&5
5090
dd184caf 5091 eval "$as_ac_Header=no"
d9898ee8 5092fi
dd184caf 5093
5094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5095fi
dd184caf 5096ac_res=`eval echo '${'$as_ac_Header'}'`
5097 { echo "$as_me:$LINENO: result: $ac_res" >&5
5098echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5099if test `eval echo '${'$as_ac_Header'}'` = yes; then
5100 cat >>confdefs.h <<_ACEOF
5101#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5102_ACEOF
5103
5104fi
5105
5106done
5107
5108
5109
5110for ac_header in dlfcn.h
5111do
5112as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
dd184caf 5113if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5114 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5115echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5116if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5117 echo $ECHO_N "(cached) $ECHO_C" >&6
5118fi
dd184caf 5119ac_res=`eval echo '${'$as_ac_Header'}'`
5120 { echo "$as_me:$LINENO: result: $ac_res" >&5
5121echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5122else
5123 # Is the header compilable?
dd184caf 5124{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5125echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 5126cat >conftest.$ac_ext <<_ACEOF
5127/* confdefs.h. */
5128_ACEOF
5129cat confdefs.h >>conftest.$ac_ext
5130cat >>conftest.$ac_ext <<_ACEOF
5131/* end confdefs.h. */
5132$ac_includes_default
5133#include <$ac_header>
5134_ACEOF
5135rm -f conftest.$ac_objext
dd184caf 5136if { (ac_try="$ac_compile"
5137case "(($ac_try" in
5138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5139 *) ac_try_echo=$ac_try;;
5140esac
5141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5142 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5143 ac_status=$?
5144 grep -v '^ *+' conftest.er1 >conftest.err
5145 rm -f conftest.er1
5146 cat conftest.err >&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5148 (exit $ac_status); } && {
5149 test -z "$ac_c_werror_flag" ||
5150 test ! -s conftest.err
5151 } && test -s conftest.$ac_objext; then
d9898ee8 5152 ac_header_compiler=yes
5153else
5154 echo "$as_me: failed program was:" >&5
5155sed 's/^/| /' conftest.$ac_ext >&5
5156
dd184caf 5157 ac_header_compiler=no
d9898ee8 5158fi
dd184caf 5159
5160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5161{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5162echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 5163
5164# Is the header present?
dd184caf 5165{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5166echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 5167cat >conftest.$ac_ext <<_ACEOF
5168/* confdefs.h. */
5169_ACEOF
5170cat confdefs.h >>conftest.$ac_ext
5171cat >>conftest.$ac_ext <<_ACEOF
5172/* end confdefs.h. */
5173#include <$ac_header>
5174_ACEOF
dd184caf 5175if { (ac_try="$ac_cpp conftest.$ac_ext"
5176case "(($ac_try" in
5177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5178 *) ac_try_echo=$ac_try;;
5179esac
5180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5182 ac_status=$?
5183 grep -v '^ *+' conftest.er1 >conftest.err
5184 rm -f conftest.er1
5185 cat conftest.err >&5
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5187 (exit $ac_status); } >/dev/null && {
5188 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5189 test ! -s conftest.err
5190 }; then
d9898ee8 5191 ac_header_preproc=yes
5192else
5193 echo "$as_me: failed program was:" >&5
5194sed 's/^/| /' conftest.$ac_ext >&5
5195
5196 ac_header_preproc=no
5197fi
dd184caf 5198
d9898ee8 5199rm -f conftest.err conftest.$ac_ext
dd184caf 5200{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5201echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 5202
5203# So? What about this header?
5204case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5205 yes:no: )
5206 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5207echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5209echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5210 ac_header_preproc=yes
5211 ;;
5212 no:yes:* )
5213 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5214echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5215 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5216echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5217 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5218echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5219 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5220echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5222echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5223 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5224echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
dd184caf 5225 ( cat <<\_ASBOX
d9898ee8 5226## -------------------------------------------------- ##
5227## Report this to courier-users@lists.sourceforge.net ##
5228## -------------------------------------------------- ##
5229_ASBOX
dd184caf 5230 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 5231 ;;
5232esac
dd184caf 5233{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5234echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5235if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5237else
5238 eval "$as_ac_Header=\$ac_header_preproc"
5239fi
dd184caf 5240ac_res=`eval echo '${'$as_ac_Header'}'`
5241 { echo "$as_me:$LINENO: result: $ac_res" >&5
5242echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5243
5244fi
5245if test `eval echo '${'$as_ac_Header'}'` = yes; then
5246 cat >>confdefs.h <<_ACEOF
5247#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5248_ACEOF
5249
5250fi
5251
5252done
5253
dd184caf 5254ac_ext=cpp
d9898ee8 5255ac_cpp='$CXXCPP $CPPFLAGS'
5256ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5257ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5258ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
dd184caf 5259if test -z "$CXX"; then
5260 if test -n "$CCC"; then
5261 CXX=$CCC
5262 else
5263 if test -n "$ac_tool_prefix"; then
5264 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d9898ee8 5265 do
5266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5267set dummy $ac_tool_prefix$ac_prog; ac_word=$2
dd184caf 5268{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5270if test "${ac_cv_prog_CXX+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5272else
5273 if test -n "$CXX"; then
5274 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5275else
5276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277for as_dir in $PATH
5278do
5279 IFS=$as_save_IFS
5280 test -z "$as_dir" && as_dir=.
5281 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 5282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5283 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5285 break 2
5286 fi
5287done
5288done
dd184caf 5289IFS=$as_save_IFS
d9898ee8 5290
5291fi
5292fi
5293CXX=$ac_cv_prog_CXX
5294if test -n "$CXX"; then
dd184caf 5295 { echo "$as_me:$LINENO: result: $CXX" >&5
5296echo "${ECHO_T}$CXX" >&6; }
d9898ee8 5297else
dd184caf 5298 { echo "$as_me:$LINENO: result: no" >&5
5299echo "${ECHO_T}no" >&6; }
d9898ee8 5300fi
5301
dd184caf 5302
d9898ee8 5303 test -n "$CXX" && break
5304 done
5305fi
5306if test -z "$CXX"; then
5307 ac_ct_CXX=$CXX
dd184caf 5308 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d9898ee8 5309do
5310 # Extract the first word of "$ac_prog", so it can be a program name with args.
5311set dummy $ac_prog; ac_word=$2
dd184caf 5312{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5314if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
5316else
5317 if test -n "$ac_ct_CXX"; then
5318 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5319else
5320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321for as_dir in $PATH
5322do
5323 IFS=$as_save_IFS
5324 test -z "$as_dir" && as_dir=.
5325 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 5326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5327 ac_cv_prog_ac_ct_CXX="$ac_prog"
5328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5329 break 2
5330 fi
5331done
5332done
dd184caf 5333IFS=$as_save_IFS
d9898ee8 5334
5335fi
5336fi
5337ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5338if test -n "$ac_ct_CXX"; then
dd184caf 5339 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5340echo "${ECHO_T}$ac_ct_CXX" >&6; }
d9898ee8 5341else
dd184caf 5342 { echo "$as_me:$LINENO: result: no" >&5
5343echo "${ECHO_T}no" >&6; }
d9898ee8 5344fi
5345
dd184caf 5346
d9898ee8 5347 test -n "$ac_ct_CXX" && break
5348done
d9898ee8 5349
dd184caf 5350 if test "x$ac_ct_CXX" = x; then
5351 CXX="g++"
5352 else
5353 case $cross_compiling:$ac_tool_warned in
5354yes:)
5355{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5356whose name does not start with the host triplet. If you think this
5357configuration is useful to you, please write to autoconf@gnu.org." >&5
5358echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5359whose name does not start with the host triplet. If you think this
5360configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5361ac_tool_warned=yes ;;
5362esac
5363 CXX=$ac_ct_CXX
5364 fi
d9898ee8 5365fi
5366
dd184caf 5367 fi
5368fi
d9898ee8 5369# Provide some information about the compiler.
dd184caf 5370echo "$as_me:$LINENO: checking for C++ compiler version" >&5
d9898ee8 5371ac_compiler=`set X $ac_compile; echo $2`
dd184caf 5372{ (ac_try="$ac_compiler --version >&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 --version >&5") 2>&5
d9898ee8 5379 ac_status=$?
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); }
dd184caf 5382{ (ac_try="$ac_compiler -v >&5"
5383case "(($ac_try" in
5384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385 *) ac_try_echo=$ac_try;;
5386esac
5387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5388 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 5389 ac_status=$?
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); }
dd184caf 5392{ (ac_try="$ac_compiler -V >&5"
5393case "(($ac_try" in
5394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5395 *) ac_try_echo=$ac_try;;
5396esac
5397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5398 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 5399 ac_status=$?
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); }
5402
dd184caf 5403{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5404echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
d9898ee8 5405if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5406 echo $ECHO_N "(cached) $ECHO_C" >&6
5407else
5408 cat >conftest.$ac_ext <<_ACEOF
5409/* confdefs.h. */
5410_ACEOF
5411cat confdefs.h >>conftest.$ac_ext
5412cat >>conftest.$ac_ext <<_ACEOF
5413/* end confdefs.h. */
5414
5415int
5416main ()
5417{
5418#ifndef __GNUC__
5419 choke me
5420#endif
5421
5422 ;
5423 return 0;
5424}
5425_ACEOF
5426rm -f conftest.$ac_objext
dd184caf 5427if { (ac_try="$ac_compile"
5428case "(($ac_try" in
5429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430 *) ac_try_echo=$ac_try;;
5431esac
5432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5434 ac_status=$?
5435 grep -v '^ *+' conftest.er1 >conftest.err
5436 rm -f conftest.er1
5437 cat conftest.err >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5439 (exit $ac_status); } && {
5440 test -z "$ac_cxx_werror_flag" ||
5441 test ! -s conftest.err
5442 } && test -s conftest.$ac_objext; then
d9898ee8 5443 ac_compiler_gnu=yes
5444else
5445 echo "$as_me: failed program was:" >&5
5446sed 's/^/| /' conftest.$ac_ext >&5
5447
dd184caf 5448 ac_compiler_gnu=no
d9898ee8 5449fi
dd184caf 5450
5451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5452ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5453
5454fi
dd184caf 5455{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5456echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
d9898ee8 5457GXX=`test $ac_compiler_gnu = yes && echo yes`
5458ac_test_CXXFLAGS=${CXXFLAGS+set}
5459ac_save_CXXFLAGS=$CXXFLAGS
dd184caf 5460{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5461echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
d9898ee8 5462if test "${ac_cv_prog_cxx_g+set}" = set; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5464else
dd184caf 5465 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5466 ac_cxx_werror_flag=yes
5467 ac_cv_prog_cxx_g=no
5468 CXXFLAGS="-g"
5469 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5470/* confdefs.h. */
5471_ACEOF
5472cat confdefs.h >>conftest.$ac_ext
5473cat >>conftest.$ac_ext <<_ACEOF
5474/* end confdefs.h. */
5475
5476int
5477main ()
5478{
5479
5480 ;
5481 return 0;
5482}
5483_ACEOF
5484rm -f conftest.$ac_objext
dd184caf 5485if { (ac_try="$ac_compile"
5486case "(($ac_try" in
5487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488 *) ac_try_echo=$ac_try;;
5489esac
5490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5492 ac_status=$?
5493 grep -v '^ *+' conftest.er1 >conftest.err
5494 rm -f conftest.er1
5495 cat conftest.err >&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5497 (exit $ac_status); } && {
5498 test -z "$ac_cxx_werror_flag" ||
5499 test ! -s conftest.err
5500 } && test -s conftest.$ac_objext; then
d9898ee8 5501 ac_cv_prog_cxx_g=yes
5502else
5503 echo "$as_me: failed program was:" >&5
5504sed 's/^/| /' conftest.$ac_ext >&5
5505
dd184caf 5506 CXXFLAGS=""
5507 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5508/* confdefs.h. */
5509_ACEOF
5510cat confdefs.h >>conftest.$ac_ext
5511cat >>conftest.$ac_ext <<_ACEOF
5512/* end confdefs.h. */
dd184caf 5513
d9898ee8 5514int
5515main ()
5516{
dd184caf 5517
d9898ee8 5518 ;
5519 return 0;
5520}
5521_ACEOF
5522rm -f conftest.$ac_objext
dd184caf 5523if { (ac_try="$ac_compile"
5524case "(($ac_try" in
5525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5526 *) ac_try_echo=$ac_try;;
5527esac
5528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5529 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5530 ac_status=$?
5531 grep -v '^ *+' conftest.er1 >conftest.err
5532 rm -f conftest.er1
5533 cat conftest.err >&5
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5535 (exit $ac_status); } && {
5536 test -z "$ac_cxx_werror_flag" ||
5537 test ! -s conftest.err
5538 } && test -s conftest.$ac_objext; then
d9898ee8 5539 :
5540else
5541 echo "$as_me: failed program was:" >&5
5542sed 's/^/| /' conftest.$ac_ext >&5
5543
dd184caf 5544 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5545 CXXFLAGS="-g"
5546 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5547/* confdefs.h. */
5548_ACEOF
5549cat confdefs.h >>conftest.$ac_ext
5550cat >>conftest.$ac_ext <<_ACEOF
5551/* end confdefs.h. */
dd184caf 5552
d9898ee8 5553int
5554main ()
5555{
dd184caf 5556
d9898ee8 5557 ;
5558 return 0;
5559}
5560_ACEOF
5561rm -f conftest.$ac_objext
dd184caf 5562if { (ac_try="$ac_compile"
5563case "(($ac_try" in
5564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5565 *) ac_try_echo=$ac_try;;
5566esac
5567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5568 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5569 ac_status=$?
5570 grep -v '^ *+' conftest.er1 >conftest.err
5571 rm -f conftest.er1
5572 cat conftest.err >&5
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5574 (exit $ac_status); } && {
5575 test -z "$ac_cxx_werror_flag" ||
5576 test ! -s conftest.err
5577 } && test -s conftest.$ac_objext; then
5578 ac_cv_prog_cxx_g=yes
d9898ee8 5579else
5580 echo "$as_me: failed program was:" >&5
5581sed 's/^/| /' conftest.$ac_ext >&5
5582
dd184caf 5583
d9898ee8 5584fi
dd184caf 5585
5586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5587fi
5588
5589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5590fi
5591
dd184caf 5592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5593 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5594fi
5595{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5596echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5597if test "$ac_test_CXXFLAGS" = set; then
5598 CXXFLAGS=$ac_save_CXXFLAGS
5599elif test $ac_cv_prog_cxx_g = yes; then
5600 if test "$GXX" = yes; then
5601 CXXFLAGS="-g -O2"
5602 else
5603 CXXFLAGS="-g"
5604 fi
5605else
5606 if test "$GXX" = yes; then
5607 CXXFLAGS="-O2"
5608 else
5609 CXXFLAGS=
5610 fi
5611fi
5612ac_ext=cpp
d9898ee8 5613ac_cpp='$CXXCPP $CPPFLAGS'
5614ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5615ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5616ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5617
5618depcc="$CXX" am_compiler_list=
5619
dd184caf 5620{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5621echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
d9898ee8 5622if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5623 echo $ECHO_N "(cached) $ECHO_C" >&6
5624else
5625 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5626 # We make a subdir and do the tests there. Otherwise we can end up
5627 # making bogus files that we don't know about and never remove. For
5628 # instance it was reported that on HP-UX the gcc test will end up
5629 # making a dummy file named `D' -- because `-MD' means `put the output
5630 # in D'.
5631 mkdir conftest.dir
5632 # Copy depcomp to subdir because otherwise we won't find it if we're
5633 # using a relative directory.
5634 cp "$am_depcomp" conftest.dir
5635 cd conftest.dir
5636 # We will build objects and dependencies in a subdirectory because
5637 # it helps to detect inapplicable dependency modes. For instance
5638 # both Tru64's cc and ICC support -MD to output dependencies as a
5639 # side effect of compilation, but ICC will put the dependencies in
5640 # the current directory while Tru64 will put them in the object
5641 # directory.
5642 mkdir sub
5643
5644 am_cv_CXX_dependencies_compiler_type=none
5645 if test "$am_compiler_list" = ""; then
5646 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5647 fi
5648 for depmode in $am_compiler_list; do
5649 # Setup a source with many dependencies, because some compilers
5650 # like to wrap large dependency lists on column 80 (with \), and
5651 # we should not choose a depcomp mode which is confused by this.
5652 #
5653 # We need to recreate these files for each test, as the compiler may
5654 # overwrite some of them when testing with obscure command lines.
5655 # This happens at least with the AIX C compiler.
5656 : > sub/conftest.c
5657 for i in 1 2 3 4 5 6; do
5658 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5659 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5660 # Solaris 8's {/usr,}/bin/sh.
5661 touch sub/conftst$i.h
5662 done
5663 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5664
5665 case $depmode in
5666 nosideeffect)
5667 # after this tag, mechanisms are not by side-effect, so they'll
5668 # only be used when explicitly requested
5669 if test "x$enable_dependency_tracking" = xyes; then
5670 continue
5671 else
5672 break
5673 fi
5674 ;;
5675 none) break ;;
5676 esac
5677 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5678 # mode. It turns out that the SunPro C++ compiler does not properly
5679 # handle `-M -o', and we need to detect this.
5680 if depmode=$depmode \
5681 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5682 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5683 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5684 >/dev/null 2>conftest.err &&
dd184caf 5685 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 5686 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5687 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5688 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5689 # icc doesn't choke on unknown options, it will just issue warnings
5690 # or remarks (even with -Werror). So we grep stderr for any message
5691 # that says an option was ignored or not supported.
5692 # When given -MP, icc 7.0 and 7.1 complain thusly:
5693 # icc: Command line warning: ignoring option '-M'; no argument required
5694 # The diagnosis changed in icc 8.0:
5695 # icc: Command line remark: option '-MP' not supported
5696 if (grep 'ignoring option' conftest.err ||
5697 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5698 am_cv_CXX_dependencies_compiler_type=$depmode
5699 break
5700 fi
5701 fi
5702 done
5703
5704 cd ..
5705 rm -rf conftest.dir
5706else
5707 am_cv_CXX_dependencies_compiler_type=none
5708fi
5709
5710fi
dd184caf 5711{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5712echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
d9898ee8 5713CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5714
dd184caf 5715 if
d9898ee8 5716 test "x$enable_dependency_tracking" != xno \
5717 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5718 am__fastdepCXX_TRUE=
5719 am__fastdepCXX_FALSE='#'
5720else
5721 am__fastdepCXX_TRUE='#'
5722 am__fastdepCXX_FALSE=
5723fi
5724
5725
5726
5727
5728if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5729 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5730 (test "X$CXX" != "Xg++"))) ; then
dd184caf 5731 ac_ext=cpp
d9898ee8 5732ac_cpp='$CXXCPP $CPPFLAGS'
5733ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5734ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5735ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
dd184caf 5736{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5737echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
d9898ee8 5738if test -z "$CXXCPP"; then
5739 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5741else
5742 # Double quotes because CXXCPP needs to be expanded
5743 for CXXCPP in "$CXX -E" "/lib/cpp"
5744 do
5745 ac_preproc_ok=false
5746for ac_cxx_preproc_warn_flag in '' yes
5747do
5748 # Use a header file that comes with gcc, so configuring glibc
5749 # with a fresh cross-compiler works.
5750 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5751 # <limits.h> exists even on freestanding compilers.
5752 # On the NeXT, cc -E runs the code through the compiler's parser,
5753 # not just through cpp. "Syntax error" is here to catch this case.
5754 cat >conftest.$ac_ext <<_ACEOF
5755/* confdefs.h. */
5756_ACEOF
5757cat confdefs.h >>conftest.$ac_ext
5758cat >>conftest.$ac_ext <<_ACEOF
5759/* end confdefs.h. */
5760#ifdef __STDC__
5761# include <limits.h>
5762#else
5763# include <assert.h>
5764#endif
5765 Syntax error
5766_ACEOF
dd184caf 5767if { (ac_try="$ac_cpp conftest.$ac_ext"
5768case "(($ac_try" in
5769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5770 *) ac_try_echo=$ac_try;;
5771esac
5772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5774 ac_status=$?
5775 grep -v '^ *+' conftest.er1 >conftest.err
5776 rm -f conftest.er1
5777 cat conftest.err >&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5779 (exit $ac_status); } >/dev/null && {
5780 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5781 test ! -s conftest.err
5782 }; then
d9898ee8 5783 :
5784else
5785 echo "$as_me: failed program was:" >&5
5786sed 's/^/| /' conftest.$ac_ext >&5
5787
5788 # Broken: fails on valid input.
5789continue
5790fi
dd184caf 5791
d9898ee8 5792rm -f conftest.err conftest.$ac_ext
5793
dd184caf 5794 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 5795 # can be detected and how.
5796 cat >conftest.$ac_ext <<_ACEOF
5797/* confdefs.h. */
5798_ACEOF
5799cat confdefs.h >>conftest.$ac_ext
5800cat >>conftest.$ac_ext <<_ACEOF
5801/* end confdefs.h. */
5802#include <ac_nonexistent.h>
5803_ACEOF
dd184caf 5804if { (ac_try="$ac_cpp conftest.$ac_ext"
5805case "(($ac_try" in
5806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5807 *) ac_try_echo=$ac_try;;
5808esac
5809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5811 ac_status=$?
5812 grep -v '^ *+' conftest.er1 >conftest.err
5813 rm -f conftest.er1
5814 cat conftest.err >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5816 (exit $ac_status); } >/dev/null && {
5817 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5818 test ! -s conftest.err
5819 }; then
d9898ee8 5820 # Broken: success on invalid input.
5821continue
5822else
5823 echo "$as_me: failed program was:" >&5
5824sed 's/^/| /' conftest.$ac_ext >&5
5825
5826 # Passes both tests.
5827ac_preproc_ok=:
5828break
5829fi
dd184caf 5830
d9898ee8 5831rm -f conftest.err conftest.$ac_ext
5832
5833done
5834# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5835rm -f conftest.err conftest.$ac_ext
5836if $ac_preproc_ok; then
5837 break
5838fi
5839
5840 done
5841 ac_cv_prog_CXXCPP=$CXXCPP
5842
5843fi
5844 CXXCPP=$ac_cv_prog_CXXCPP
5845else
5846 ac_cv_prog_CXXCPP=$CXXCPP
5847fi
dd184caf 5848{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5849echo "${ECHO_T}$CXXCPP" >&6; }
d9898ee8 5850ac_preproc_ok=false
5851for ac_cxx_preproc_warn_flag in '' yes
5852do
5853 # Use a header file that comes with gcc, so configuring glibc
5854 # with a fresh cross-compiler works.
5855 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5856 # <limits.h> exists even on freestanding compilers.
5857 # On the NeXT, cc -E runs the code through the compiler's parser,
5858 # not just through cpp. "Syntax error" is here to catch this case.
5859 cat >conftest.$ac_ext <<_ACEOF
5860/* confdefs.h. */
5861_ACEOF
5862cat confdefs.h >>conftest.$ac_ext
5863cat >>conftest.$ac_ext <<_ACEOF
5864/* end confdefs.h. */
5865#ifdef __STDC__
5866# include <limits.h>
5867#else
5868# include <assert.h>
5869#endif
5870 Syntax error
5871_ACEOF
dd184caf 5872if { (ac_try="$ac_cpp conftest.$ac_ext"
5873case "(($ac_try" in
5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875 *) ac_try_echo=$ac_try;;
5876esac
5877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5879 ac_status=$?
5880 grep -v '^ *+' conftest.er1 >conftest.err
5881 rm -f conftest.er1
5882 cat conftest.err >&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5884 (exit $ac_status); } >/dev/null && {
5885 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5886 test ! -s conftest.err
5887 }; then
d9898ee8 5888 :
5889else
5890 echo "$as_me: failed program was:" >&5
5891sed 's/^/| /' conftest.$ac_ext >&5
5892
5893 # Broken: fails on valid input.
5894continue
5895fi
dd184caf 5896
d9898ee8 5897rm -f conftest.err conftest.$ac_ext
5898
dd184caf 5899 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 5900 # can be detected and how.
5901 cat >conftest.$ac_ext <<_ACEOF
5902/* confdefs.h. */
5903_ACEOF
5904cat confdefs.h >>conftest.$ac_ext
5905cat >>conftest.$ac_ext <<_ACEOF
5906/* end confdefs.h. */
5907#include <ac_nonexistent.h>
5908_ACEOF
dd184caf 5909if { (ac_try="$ac_cpp conftest.$ac_ext"
5910case "(($ac_try" in
5911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912 *) ac_try_echo=$ac_try;;
5913esac
5914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5916 ac_status=$?
5917 grep -v '^ *+' conftest.er1 >conftest.err
5918 rm -f conftest.er1
5919 cat conftest.err >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5921 (exit $ac_status); } >/dev/null && {
5922 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5923 test ! -s conftest.err
5924 }; then
d9898ee8 5925 # Broken: success on invalid input.
5926continue
5927else
5928 echo "$as_me: failed program was:" >&5
5929sed 's/^/| /' conftest.$ac_ext >&5
5930
5931 # Passes both tests.
5932ac_preproc_ok=:
5933break
5934fi
dd184caf 5935
d9898ee8 5936rm -f conftest.err conftest.$ac_ext
5937
5938done
5939# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5940rm -f conftest.err conftest.$ac_ext
5941if $ac_preproc_ok; then
5942 :
5943else
5944 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5945See \`config.log' for more details." >&5
5946echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5947See \`config.log' for more details." >&2;}
5948 { (exit 1); exit 1; }; }
5949fi
5950
dd184caf 5951ac_ext=cpp
d9898ee8 5952ac_cpp='$CXXCPP $CPPFLAGS'
5953ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5954ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5955ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5956
5957fi
5958
5959
5960ac_ext=f
5961ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5962ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5963ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5964if test -n "$ac_tool_prefix"; then
dd184caf 5965 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 5966 do
5967 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5968set dummy $ac_tool_prefix$ac_prog; ac_word=$2
dd184caf 5969{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5971if test "${ac_cv_prog_F77+set}" = set; then
5972 echo $ECHO_N "(cached) $ECHO_C" >&6
5973else
5974 if test -n "$F77"; then
5975 ac_cv_prog_F77="$F77" # Let the user override the test.
5976else
5977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978for as_dir in $PATH
5979do
5980 IFS=$as_save_IFS
5981 test -z "$as_dir" && as_dir=.
5982 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 5983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5984 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5986 break 2
5987 fi
5988done
5989done
dd184caf 5990IFS=$as_save_IFS
d9898ee8 5991
5992fi
5993fi
5994F77=$ac_cv_prog_F77
5995if test -n "$F77"; then
dd184caf 5996 { echo "$as_me:$LINENO: result: $F77" >&5
5997echo "${ECHO_T}$F77" >&6; }
d9898ee8 5998else
dd184caf 5999 { echo "$as_me:$LINENO: result: no" >&5
6000echo "${ECHO_T}no" >&6; }
d9898ee8 6001fi
6002
dd184caf 6003
d9898ee8 6004 test -n "$F77" && break
6005 done
6006fi
6007if test -z "$F77"; then
6008 ac_ct_F77=$F77
dd184caf 6009 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 6010do
6011 # Extract the first word of "$ac_prog", so it can be a program name with args.
6012set dummy $ac_prog; ac_word=$2
dd184caf 6013{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6015if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6017else
6018 if test -n "$ac_ct_F77"; then
6019 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6020else
6021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022for as_dir in $PATH
6023do
6024 IFS=$as_save_IFS
6025 test -z "$as_dir" && as_dir=.
6026 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6028 ac_cv_prog_ac_ct_F77="$ac_prog"
6029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6030 break 2
6031 fi
6032done
6033done
dd184caf 6034IFS=$as_save_IFS
d9898ee8 6035
6036fi
6037fi
6038ac_ct_F77=$ac_cv_prog_ac_ct_F77
6039if test -n "$ac_ct_F77"; then
dd184caf 6040 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6041echo "${ECHO_T}$ac_ct_F77" >&6; }
d9898ee8 6042else
dd184caf 6043 { echo "$as_me:$LINENO: result: no" >&5
6044echo "${ECHO_T}no" >&6; }
d9898ee8 6045fi
6046
dd184caf 6047
d9898ee8 6048 test -n "$ac_ct_F77" && break
6049done
6050
dd184caf 6051 if test "x$ac_ct_F77" = x; then
6052 F77=""
6053 else
6054 case $cross_compiling:$ac_tool_warned in
6055yes:)
6056{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6057whose name does not start with the host triplet. If you think this
6058configuration is useful to you, please write to autoconf@gnu.org." >&5
6059echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6060whose name does not start with the host triplet. If you think this
6061configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6062ac_tool_warned=yes ;;
6063esac
6064 F77=$ac_ct_F77
6065 fi
d9898ee8 6066fi
6067
6068
6069# Provide some information about the compiler.
dd184caf 6070echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
d9898ee8 6071ac_compiler=`set X $ac_compile; echo $2`
dd184caf 6072{ (ac_try="$ac_compiler --version >&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 --version >&5") 2>&5
d9898ee8 6079 ac_status=$?
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); }
dd184caf 6082{ (ac_try="$ac_compiler -v >&5"
6083case "(($ac_try" in
6084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6085 *) ac_try_echo=$ac_try;;
6086esac
6087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6088 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 6089 ac_status=$?
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }
dd184caf 6092{ (ac_try="$ac_compiler -V >&5"
6093case "(($ac_try" in
6094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095 *) ac_try_echo=$ac_try;;
6096esac
6097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6098 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 6099 ac_status=$?
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }
6102rm -f a.out
6103
6104# If we don't use `.F' as extension, the preprocessor is not run on the
6105# input file. (Note that this only needs to work for GNU compilers.)
6106ac_save_ext=$ac_ext
6107ac_ext=F
dd184caf 6108{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6109echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
d9898ee8 6110if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6111 echo $ECHO_N "(cached) $ECHO_C" >&6
6112else
6113 cat >conftest.$ac_ext <<_ACEOF
6114 program main
6115#ifndef __GNUC__
6116 choke me
6117#endif
6118
6119 end
6120_ACEOF
6121rm -f conftest.$ac_objext
dd184caf 6122if { (ac_try="$ac_compile"
6123case "(($ac_try" in
6124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6125 *) ac_try_echo=$ac_try;;
6126esac
6127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6128 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6129 ac_status=$?
6130 grep -v '^ *+' conftest.er1 >conftest.err
6131 rm -f conftest.er1
6132 cat conftest.err >&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 6134 (exit $ac_status); } && {
6135 test -z "$ac_f77_werror_flag" ||
6136 test ! -s conftest.err
6137 } && test -s conftest.$ac_objext; then
d9898ee8 6138 ac_compiler_gnu=yes
6139else
6140 echo "$as_me: failed program was:" >&5
6141sed 's/^/| /' conftest.$ac_ext >&5
6142
dd184caf 6143 ac_compiler_gnu=no
d9898ee8 6144fi
dd184caf 6145
6146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6147ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6148
6149fi
dd184caf 6150{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6151echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
d9898ee8 6152ac_ext=$ac_save_ext
6153ac_test_FFLAGS=${FFLAGS+set}
6154ac_save_FFLAGS=$FFLAGS
6155FFLAGS=
dd184caf 6156{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6157echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
d9898ee8 6158if test "${ac_cv_prog_f77_g+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6160else
6161 FFLAGS=-g
6162cat >conftest.$ac_ext <<_ACEOF
6163 program main
6164
6165 end
6166_ACEOF
6167rm -f conftest.$ac_objext
dd184caf 6168if { (ac_try="$ac_compile"
6169case "(($ac_try" in
6170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171 *) ac_try_echo=$ac_try;;
6172esac
6173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6175 ac_status=$?
6176 grep -v '^ *+' conftest.er1 >conftest.err
6177 rm -f conftest.er1
6178 cat conftest.err >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 6180 (exit $ac_status); } && {
6181 test -z "$ac_f77_werror_flag" ||
6182 test ! -s conftest.err
6183 } && test -s conftest.$ac_objext; then
d9898ee8 6184 ac_cv_prog_f77_g=yes
6185else
6186 echo "$as_me: failed program was:" >&5
6187sed 's/^/| /' conftest.$ac_ext >&5
6188
dd184caf 6189 ac_cv_prog_f77_g=no
d9898ee8 6190fi
dd184caf 6191
6192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6193
6194fi
dd184caf 6195{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6196echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
d9898ee8 6197if test "$ac_test_FFLAGS" = set; then
6198 FFLAGS=$ac_save_FFLAGS
6199elif test $ac_cv_prog_f77_g = yes; then
6200 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6201 FFLAGS="-g -O2"
6202 else
6203 FFLAGS="-g"
6204 fi
6205else
6206 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6207 FFLAGS="-O2"
6208 else
6209 FFLAGS=
6210 fi
6211fi
6212
6213G77=`test $ac_compiler_gnu = yes && echo yes`
6214ac_ext=c
6215ac_cpp='$CPP $CPPFLAGS'
6216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6218ac_compiler_gnu=$ac_cv_c_compiler_gnu
6219
6220
6221
6222# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6223
6224# find the maximum length of command line arguments
dd184caf 6225{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6226echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
d9898ee8 6227if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6229else
6230 i=0
6231 teststring="ABCD"
6232
6233 case $build_os in
6234 msdosdjgpp*)
6235 # On DJGPP, this test can blow up pretty badly due to problems in libc
6236 # (any single argument exceeding 2000 bytes causes a buffer overrun
6237 # during glob expansion). Even if it were fixed, the result of this
6238 # check would be larger than it should be.
6239 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6240 ;;
6241
6242 gnu*)
6243 # Under GNU Hurd, this test is not required because there is
6244 # no limit to the length of command line arguments.
6245 # Libtool will interpret -1 as no limit whatsoever
6246 lt_cv_sys_max_cmd_len=-1;
6247 ;;
6248
6249 cygwin* | mingw*)
6250 # On Win9x/ME, this test blows up -- it succeeds, but takes
6251 # about 5 minutes as the teststring grows exponentially.
6252 # Worse, since 9x/ME are not pre-emptively multitasking,
6253 # you end up with a "frozen" computer, even though with patience
6254 # the test eventually succeeds (with a max line length of 256k).
6255 # Instead, let's just punt: use the minimum linelength reported by
6256 # all of the supported platforms: 8192 (on NT/2K/XP).
6257 lt_cv_sys_max_cmd_len=8192;
6258 ;;
6259
6260 amigaos*)
6261 # On AmigaOS with pdksh, this test takes hours, literally.
6262 # So we just punt and use a minimum line length of 8192.
6263 lt_cv_sys_max_cmd_len=8192;
6264 ;;
6265
6266 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6267 # This has been around since 386BSD, at least. Likely further.
6268 if test -x /sbin/sysctl; then
6269 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6270 elif test -x /usr/sbin/sysctl; then
6271 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6272 else
6273 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6274 fi
6275 # And add a safety zone
6276 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6277 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6278 ;;
6279
6280 interix*)
6281 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6282 lt_cv_sys_max_cmd_len=196608
6283 ;;
6284
6285 osf*)
6286 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6287 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6288 # nice to cause kernel panics so lets avoid the loop below.
6289 # First set a reasonable default.
6290 lt_cv_sys_max_cmd_len=16384
6291 #
6292 if test -x /sbin/sysconfig; then
6293 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6294 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6295 esac
6296 fi
6297 ;;
6298 sco3.2v5*)
6299 lt_cv_sys_max_cmd_len=102400
6300 ;;
6301 sysv5* | sco5v6* | sysv4.2uw2*)
6302 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6303 if test -n "$kargmax"; then
6304 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6305 else
6306 lt_cv_sys_max_cmd_len=32768
6307 fi
6308 ;;
6309 *)
ac40fd9e 6310 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6311 if test -n "$lt_cv_sys_max_cmd_len"; then
6312 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6313 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6314 else
6315 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6316 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
d9898ee8 6317 = "XX$teststring") >/dev/null 2>&1 &&
ac40fd9e 6318 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6319 lt_cv_sys_max_cmd_len=$new_result &&
6320 test $i != 17 # 1/2 MB should be enough
6321 do
6322 i=`expr $i + 1`
6323 teststring=$teststring$teststring
6324 done
6325 teststring=
6326 # Add a significant safety factor because C++ compilers can tack on massive
6327 # amounts of additional arguments before passing them to the linker.
6328 # It appears as though 1/2 is a usable value.
6329 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6330 fi
d9898ee8 6331 ;;
6332 esac
6333
6334fi
6335
6336if test -n $lt_cv_sys_max_cmd_len ; then
dd184caf 6337 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6338echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
d9898ee8 6339else
dd184caf 6340 { echo "$as_me:$LINENO: result: none" >&5
6341echo "${ECHO_T}none" >&6; }
d9898ee8 6342fi
6343
6344
6345
6346
ac40fd9e 6347
d9898ee8 6348# Check for command to grab the raw symbol name followed by C symbol from nm.
dd184caf 6349{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6350echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
d9898ee8 6351if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6352 echo $ECHO_N "(cached) $ECHO_C" >&6
6353else
6354
6355# These are sane defaults that work on at least a few old systems.
6356# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6357
6358# Character class describing NM global symbol codes.
6359symcode='[BCDEGRST]'
6360
6361# Regexp to match symbols that can be accessed directly from C.
6362sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6363
6364# Transform an extracted symbol line into a proper C declaration
6365lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6366
6367# Transform an extracted symbol line into symbol name and symbol address
6368lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6369
6370# Define system-specific variables.
6371case $host_os in
6372aix*)
6373 symcode='[BCDT]'
6374 ;;
6375cygwin* | mingw* | pw32*)
6376 symcode='[ABCDGISTW]'
6377 ;;
6378hpux*) # Its linker distinguishes data from code symbols
6379 if test "$host_cpu" = ia64; then
6380 symcode='[ABCDEGRST]'
6381 fi
6382 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6383 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'"
6384 ;;
ac40fd9e 6385linux* | k*bsd*-gnu)
d9898ee8 6386 if test "$host_cpu" = ia64; then
6387 symcode='[ABCDGIRSTW]'
6388 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6389 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'"
6390 fi
6391 ;;
6392irix* | nonstopux*)
6393 symcode='[BCDEGRST]'
6394 ;;
6395osf*)
6396 symcode='[BCDEGQRST]'
6397 ;;
6398solaris*)
6399 symcode='[BDRT]'
6400 ;;
6401sco3.2v5*)
6402 symcode='[DT]'
6403 ;;
6404sysv4.2uw2*)
6405 symcode='[DT]'
6406 ;;
6407sysv5* | sco5v6* | unixware* | OpenUNIX*)
6408 symcode='[ABDT]'
6409 ;;
6410sysv4)
6411 symcode='[DFNSTU]'
6412 ;;
6413esac
6414
6415# Handle CRLF in mingw tool chain
6416opt_cr=
6417case $build_os in
6418mingw*)
6419 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6420 ;;
6421esac
6422
6423# If we're using GNU nm, then use its standard symbol codes.
6424case `$NM -V 2>&1` in
6425*GNU* | *'with BFD'*)
6426 symcode='[ABCDGIRSTW]' ;;
6427esac
6428
6429# Try without a prefix undercore, then with it.
6430for ac_symprfx in "" "_"; do
6431
6432 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6433 symxfrm="\\1 $ac_symprfx\\2 \\2"
6434
6435 # Write the raw and C identifiers.
6436 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6437
6438 # Check to see that the pipe works correctly.
6439 pipe_works=no
6440
6441 rm -f conftest*
6442 cat > conftest.$ac_ext <<EOF
6443#ifdef __cplusplus
6444extern "C" {
6445#endif
6446char nm_test_var;
6447void nm_test_func(){}
6448#ifdef __cplusplus
6449}
6450#endif
6451int main(){nm_test_var='a';nm_test_func();return(0);}
6452EOF
6453
6454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6455 (eval $ac_compile) 2>&5
6456 ac_status=$?
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); }; then
6459 # Now try to grab the symbols.
6460 nlist=conftest.nm
6461 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6462 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6463 ac_status=$?
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); } && test -s "$nlist"; then
6466 # Try sorting and uniquifying the output.
6467 if sort "$nlist" | uniq > "$nlist"T; then
6468 mv -f "$nlist"T "$nlist"
6469 else
6470 rm -f "$nlist"T
6471 fi
6472
6473 # Make sure that we snagged all the symbols we need.
6474 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6475 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6476 cat <<EOF > conftest.$ac_ext
6477#ifdef __cplusplus
6478extern "C" {
6479#endif
6480
6481EOF
6482 # Now generate the symbol file.
6483 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6484
6485 cat <<EOF >> conftest.$ac_ext
6486#if defined (__STDC__) && __STDC__
6487# define lt_ptr_t void *
6488#else
6489# define lt_ptr_t char *
6490# define const
6491#endif
6492
6493/* The mapping between symbol names and symbols. */
6494const struct {
6495 const char *name;
6496 lt_ptr_t address;
6497}
6498lt_preloaded_symbols[] =
6499{
6500EOF
6501 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6502 cat <<\EOF >> conftest.$ac_ext
6503 {0, (lt_ptr_t) 0}
6504};
6505
6506#ifdef __cplusplus
6507}
6508#endif
6509EOF
6510 # Now try linking the two files.
6511 mv conftest.$ac_objext conftstm.$ac_objext
6512 lt_save_LIBS="$LIBS"
6513 lt_save_CFLAGS="$CFLAGS"
6514 LIBS="conftstm.$ac_objext"
6515 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6517 (eval $ac_link) 2>&5
6518 ac_status=$?
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6521 pipe_works=yes
6522 fi
6523 LIBS="$lt_save_LIBS"
6524 CFLAGS="$lt_save_CFLAGS"
6525 else
6526 echo "cannot find nm_test_func in $nlist" >&5
6527 fi
6528 else
6529 echo "cannot find nm_test_var in $nlist" >&5
6530 fi
6531 else
6532 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6533 fi
6534 else
6535 echo "$progname: failed program was:" >&5
6536 cat conftest.$ac_ext >&5
6537 fi
6538 rm -f conftest* conftst*
6539
6540 # Do not use the global_symbol_pipe unless it works.
6541 if test "$pipe_works" = yes; then
6542 break
6543 else
6544 lt_cv_sys_global_symbol_pipe=
6545 fi
6546done
6547
6548fi
6549
6550if test -z "$lt_cv_sys_global_symbol_pipe"; then
6551 lt_cv_sys_global_symbol_to_cdecl=
6552fi
6553if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
dd184caf 6554 { echo "$as_me:$LINENO: result: failed" >&5
6555echo "${ECHO_T}failed" >&6; }
d9898ee8 6556else
dd184caf 6557 { echo "$as_me:$LINENO: result: ok" >&5
6558echo "${ECHO_T}ok" >&6; }
d9898ee8 6559fi
6560
dd184caf 6561{ echo "$as_me:$LINENO: checking for objdir" >&5
6562echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
d9898ee8 6563if test "${lt_cv_objdir+set}" = set; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6565else
6566 rm -f .libs 2>/dev/null
6567mkdir .libs 2>/dev/null
6568if test -d .libs; then
6569 lt_cv_objdir=.libs
6570else
6571 # MS-DOS does not allow filenames that begin with a dot.
6572 lt_cv_objdir=_libs
6573fi
6574rmdir .libs 2>/dev/null
6575fi
dd184caf 6576{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6577echo "${ECHO_T}$lt_cv_objdir" >&6; }
d9898ee8 6578objdir=$lt_cv_objdir
6579
6580
6581
6582
6583
6584case $host_os in
6585aix3*)
6586 # AIX sometimes has problems with the GCC collect2 program. For some
6587 # reason, if we set the COLLECT_NAMES environment variable, the problems
6588 # vanish in a puff of smoke.
6589 if test "X${COLLECT_NAMES+set}" != Xset; then
6590 COLLECT_NAMES=
6591 export COLLECT_NAMES
6592 fi
6593 ;;
6594esac
6595
6596# Sed substitution that helps us do robust quoting. It backslashifies
6597# metacharacters that are still active within double-quoted strings.
6598Xsed='sed -e 1s/^X//'
6599sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6600
6601# Same as above, but do not quote variable references.
6602double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6603
6604# Sed substitution to delay expansion of an escaped shell variable in a
6605# double_quote_subst'ed string.
6606delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6607
6608# Sed substitution to avoid accidental globbing in evaled expressions
6609no_glob_subst='s/\*/\\\*/g'
6610
6611# Constants:
6612rm="rm -f"
6613
6614# Global variables:
6615default_ofile=libtool
6616can_build_shared=yes
6617
6618# All known linkers require a `.a' archive for static linking (except MSVC,
6619# which needs '.lib').
6620libext=a
6621ltmain="$ac_aux_dir/ltmain.sh"
6622ofile="$default_ofile"
6623with_gnu_ld="$lt_cv_prog_gnu_ld"
6624
6625if test -n "$ac_tool_prefix"; then
6626 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6627set dummy ${ac_tool_prefix}ar; ac_word=$2
dd184caf 6628{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6630if test "${ac_cv_prog_AR+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6632else
6633 if test -n "$AR"; then
6634 ac_cv_prog_AR="$AR" # Let the user override the test.
6635else
6636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637for as_dir in $PATH
6638do
6639 IFS=$as_save_IFS
6640 test -z "$as_dir" && as_dir=.
6641 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6643 ac_cv_prog_AR="${ac_tool_prefix}ar"
6644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6645 break 2
6646 fi
6647done
6648done
dd184caf 6649IFS=$as_save_IFS
d9898ee8 6650
6651fi
6652fi
6653AR=$ac_cv_prog_AR
6654if test -n "$AR"; then
dd184caf 6655 { echo "$as_me:$LINENO: result: $AR" >&5
6656echo "${ECHO_T}$AR" >&6; }
d9898ee8 6657else
dd184caf 6658 { echo "$as_me:$LINENO: result: no" >&5
6659echo "${ECHO_T}no" >&6; }
d9898ee8 6660fi
6661
dd184caf 6662
d9898ee8 6663fi
6664if test -z "$ac_cv_prog_AR"; then
6665 ac_ct_AR=$AR
6666 # Extract the first word of "ar", so it can be a program name with args.
6667set dummy ar; ac_word=$2
dd184caf 6668{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6670if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6672else
6673 if test -n "$ac_ct_AR"; then
6674 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6675else
6676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677for as_dir in $PATH
6678do
6679 IFS=$as_save_IFS
6680 test -z "$as_dir" && as_dir=.
6681 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6683 ac_cv_prog_ac_ct_AR="ar"
6684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6685 break 2
6686 fi
6687done
6688done
dd184caf 6689IFS=$as_save_IFS
d9898ee8 6690
d9898ee8 6691fi
6692fi
6693ac_ct_AR=$ac_cv_prog_ac_ct_AR
6694if test -n "$ac_ct_AR"; then
dd184caf 6695 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6696echo "${ECHO_T}$ac_ct_AR" >&6; }
d9898ee8 6697else
dd184caf 6698 { echo "$as_me:$LINENO: result: no" >&5
6699echo "${ECHO_T}no" >&6; }
d9898ee8 6700fi
6701
dd184caf 6702 if test "x$ac_ct_AR" = x; then
6703 AR="false"
6704 else
6705 case $cross_compiling:$ac_tool_warned in
6706yes:)
6707{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6708whose name does not start with the host triplet. If you think this
6709configuration is useful to you, please write to autoconf@gnu.org." >&5
6710echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6711whose name does not start with the host triplet. If you think this
6712configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6713ac_tool_warned=yes ;;
6714esac
6715 AR=$ac_ct_AR
6716 fi
d9898ee8 6717else
6718 AR="$ac_cv_prog_AR"
6719fi
6720
6721if test -n "$ac_tool_prefix"; then
6722 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6723set dummy ${ac_tool_prefix}ranlib; ac_word=$2
dd184caf 6724{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6726if test "${ac_cv_prog_RANLIB+set}" = set; then
6727 echo $ECHO_N "(cached) $ECHO_C" >&6
6728else
6729 if test -n "$RANLIB"; then
6730 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6731else
6732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733for as_dir in $PATH
6734do
6735 IFS=$as_save_IFS
6736 test -z "$as_dir" && as_dir=.
6737 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6739 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6741 break 2
6742 fi
6743done
6744done
dd184caf 6745IFS=$as_save_IFS
d9898ee8 6746
6747fi
6748fi
6749RANLIB=$ac_cv_prog_RANLIB
6750if test -n "$RANLIB"; then
dd184caf 6751 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6752echo "${ECHO_T}$RANLIB" >&6; }
d9898ee8 6753else
dd184caf 6754 { echo "$as_me:$LINENO: result: no" >&5
6755echo "${ECHO_T}no" >&6; }
d9898ee8 6756fi
6757
dd184caf 6758
d9898ee8 6759fi
6760if test -z "$ac_cv_prog_RANLIB"; then
6761 ac_ct_RANLIB=$RANLIB
6762 # Extract the first word of "ranlib", so it can be a program name with args.
6763set dummy ranlib; ac_word=$2
dd184caf 6764{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6766if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
6768else
6769 if test -n "$ac_ct_RANLIB"; then
6770 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6771else
6772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773for as_dir in $PATH
6774do
6775 IFS=$as_save_IFS
6776 test -z "$as_dir" && as_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6779 ac_cv_prog_ac_ct_RANLIB="ranlib"
6780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6781 break 2
6782 fi
6783done
6784done
dd184caf 6785IFS=$as_save_IFS
d9898ee8 6786
d9898ee8 6787fi
6788fi
6789ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6790if test -n "$ac_ct_RANLIB"; then
dd184caf 6791 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6792echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
d9898ee8 6793else
dd184caf 6794 { echo "$as_me:$LINENO: result: no" >&5
6795echo "${ECHO_T}no" >&6; }
d9898ee8 6796fi
6797
dd184caf 6798 if test "x$ac_ct_RANLIB" = x; then
6799 RANLIB=":"
6800 else
6801 case $cross_compiling:$ac_tool_warned in
6802yes:)
6803{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6804whose name does not start with the host triplet. If you think this
6805configuration is useful to you, please write to autoconf@gnu.org." >&5
6806echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6807whose name does not start with the host triplet. If you think this
6808configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6809ac_tool_warned=yes ;;
6810esac
6811 RANLIB=$ac_ct_RANLIB
6812 fi
d9898ee8 6813else
6814 RANLIB="$ac_cv_prog_RANLIB"
6815fi
6816
6817if test -n "$ac_tool_prefix"; then
6818 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6819set dummy ${ac_tool_prefix}strip; ac_word=$2
dd184caf 6820{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6822if test "${ac_cv_prog_STRIP+set}" = set; then
6823 echo $ECHO_N "(cached) $ECHO_C" >&6
6824else
6825 if test -n "$STRIP"; then
6826 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6827else
6828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829for as_dir in $PATH
6830do
6831 IFS=$as_save_IFS
6832 test -z "$as_dir" && as_dir=.
6833 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6835 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6837 break 2
6838 fi
6839done
6840done
dd184caf 6841IFS=$as_save_IFS
d9898ee8 6842
6843fi
6844fi
6845STRIP=$ac_cv_prog_STRIP
6846if test -n "$STRIP"; then
dd184caf 6847 { echo "$as_me:$LINENO: result: $STRIP" >&5
6848echo "${ECHO_T}$STRIP" >&6; }
d9898ee8 6849else
dd184caf 6850 { echo "$as_me:$LINENO: result: no" >&5
6851echo "${ECHO_T}no" >&6; }
d9898ee8 6852fi
6853
dd184caf 6854
d9898ee8 6855fi
6856if test -z "$ac_cv_prog_STRIP"; then
6857 ac_ct_STRIP=$STRIP
6858 # Extract the first word of "strip", so it can be a program name with args.
6859set dummy strip; ac_word=$2
dd184caf 6860{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6862if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6863 echo $ECHO_N "(cached) $ECHO_C" >&6
6864else
6865 if test -n "$ac_ct_STRIP"; then
6866 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6867else
6868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869for as_dir in $PATH
6870do
6871 IFS=$as_save_IFS
6872 test -z "$as_dir" && as_dir=.
6873 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6875 ac_cv_prog_ac_ct_STRIP="strip"
6876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6877 break 2
6878 fi
6879done
6880done
dd184caf 6881IFS=$as_save_IFS
d9898ee8 6882
d9898ee8 6883fi
6884fi
6885ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6886if test -n "$ac_ct_STRIP"; then
dd184caf 6887 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6888echo "${ECHO_T}$ac_ct_STRIP" >&6; }
d9898ee8 6889else
dd184caf 6890 { echo "$as_me:$LINENO: result: no" >&5
6891echo "${ECHO_T}no" >&6; }
d9898ee8 6892fi
6893
dd184caf 6894 if test "x$ac_ct_STRIP" = x; then
6895 STRIP=":"
6896 else
6897 case $cross_compiling:$ac_tool_warned in
6898yes:)
6899{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6900whose name does not start with the host triplet. If you think this
6901configuration is useful to you, please write to autoconf@gnu.org." >&5
6902echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6903whose name does not start with the host triplet. If you think this
6904configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6905ac_tool_warned=yes ;;
6906esac
6907 STRIP=$ac_ct_STRIP
6908 fi
d9898ee8 6909else
6910 STRIP="$ac_cv_prog_STRIP"
6911fi
6912
6913
6914old_CC="$CC"
6915old_CFLAGS="$CFLAGS"
6916
6917# Set sane defaults for various variables
6918test -z "$AR" && AR=ar
6919test -z "$AR_FLAGS" && AR_FLAGS=cru
6920test -z "$AS" && AS=as
6921test -z "$CC" && CC=cc
6922test -z "$LTCC" && LTCC=$CC
6923test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6924test -z "$DLLTOOL" && DLLTOOL=dlltool
6925test -z "$LD" && LD=ld
6926test -z "$LN_S" && LN_S="ln -s"
6927test -z "$MAGIC_CMD" && MAGIC_CMD=file
6928test -z "$NM" && NM=nm
6929test -z "$SED" && SED=sed
6930test -z "$OBJDUMP" && OBJDUMP=objdump
6931test -z "$RANLIB" && RANLIB=:
6932test -z "$STRIP" && STRIP=:
6933test -z "$ac_objext" && ac_objext=o
6934
6935# Determine commands to create old-style static archives.
ac40fd9e 6936old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
d9898ee8 6937old_postinstall_cmds='chmod 644 $oldlib'
6938old_postuninstall_cmds=
6939
6940if test -n "$RANLIB"; then
6941 case $host_os in
6942 openbsd*)
6943 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6944 ;;
6945 *)
6946 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6947 ;;
6948 esac
6949 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6950fi
6951
6952for cc_temp in $compiler""; do
6953 case $cc_temp in
6954 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6955 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6956 \-*) ;;
6957 *) break;;
6958 esac
6959done
6960cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6961
6962
6963# Only perform the check for file, if the check method requires it
6964case $deplibs_check_method in
6965file_magic*)
6966 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
dd184caf 6967 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6968echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
d9898ee8 6969if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6970 echo $ECHO_N "(cached) $ECHO_C" >&6
6971else
6972 case $MAGIC_CMD in
6973[\\/*] | ?:[\\/]*)
6974 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6975 ;;
6976*)
6977 lt_save_MAGIC_CMD="$MAGIC_CMD"
6978 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6979 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6980 for ac_dir in $ac_dummy; do
6981 IFS="$lt_save_ifs"
6982 test -z "$ac_dir" && ac_dir=.
6983 if test -f $ac_dir/${ac_tool_prefix}file; then
6984 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6985 if test -n "$file_magic_test_file"; then
6986 case $deplibs_check_method in
6987 "file_magic "*)
6988 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6989 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6990 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6991 $EGREP "$file_magic_regex" > /dev/null; then
6992 :
6993 else
6994 cat <<EOF 1>&2
6995
6996*** Warning: the command libtool uses to detect shared libraries,
6997*** $file_magic_cmd, produces output that libtool cannot recognize.
6998*** The result is that libtool may fail to recognize shared libraries
6999*** as such. This will affect the creation of libtool libraries that
7000*** depend on shared libraries, but programs linked with such libtool
7001*** libraries will work regardless of this problem. Nevertheless, you
7002*** may want to report the problem to your system manager and/or to
7003*** bug-libtool@gnu.org
7004
7005EOF
7006 fi ;;
7007 esac
7008 fi
7009 break
7010 fi
7011 done
7012 IFS="$lt_save_ifs"
7013 MAGIC_CMD="$lt_save_MAGIC_CMD"
7014 ;;
7015esac
7016fi
7017
7018MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7019if test -n "$MAGIC_CMD"; then
dd184caf 7020 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7021echo "${ECHO_T}$MAGIC_CMD" >&6; }
d9898ee8 7022else
dd184caf 7023 { echo "$as_me:$LINENO: result: no" >&5
7024echo "${ECHO_T}no" >&6; }
d9898ee8 7025fi
7026
7027if test -z "$lt_cv_path_MAGIC_CMD"; then
7028 if test -n "$ac_tool_prefix"; then
dd184caf 7029 { echo "$as_me:$LINENO: checking for file" >&5
7030echo $ECHO_N "checking for file... $ECHO_C" >&6; }
d9898ee8 7031if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7032 echo $ECHO_N "(cached) $ECHO_C" >&6
7033else
7034 case $MAGIC_CMD in
7035[\\/*] | ?:[\\/]*)
7036 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7037 ;;
7038*)
7039 lt_save_MAGIC_CMD="$MAGIC_CMD"
7040 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7041 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7042 for ac_dir in $ac_dummy; do
7043 IFS="$lt_save_ifs"
7044 test -z "$ac_dir" && ac_dir=.
7045 if test -f $ac_dir/file; then
7046 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7047 if test -n "$file_magic_test_file"; then
7048 case $deplibs_check_method in
7049 "file_magic "*)
7050 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7051 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7052 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7053 $EGREP "$file_magic_regex" > /dev/null; then
7054 :
7055 else
7056 cat <<EOF 1>&2
7057
7058*** Warning: the command libtool uses to detect shared libraries,
7059*** $file_magic_cmd, produces output that libtool cannot recognize.
7060*** The result is that libtool may fail to recognize shared libraries
7061*** as such. This will affect the creation of libtool libraries that
7062*** depend on shared libraries, but programs linked with such libtool
7063*** libraries will work regardless of this problem. Nevertheless, you
7064*** may want to report the problem to your system manager and/or to
7065*** bug-libtool@gnu.org
7066
7067EOF
7068 fi ;;
7069 esac
7070 fi
7071 break
7072 fi
7073 done
7074 IFS="$lt_save_ifs"
7075 MAGIC_CMD="$lt_save_MAGIC_CMD"
7076 ;;
7077esac
7078fi
7079
7080MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7081if test -n "$MAGIC_CMD"; then
dd184caf 7082 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7083echo "${ECHO_T}$MAGIC_CMD" >&6; }
d9898ee8 7084else
dd184caf 7085 { echo "$as_me:$LINENO: result: no" >&5
7086echo "${ECHO_T}no" >&6; }
d9898ee8 7087fi
7088
7089 else
7090 MAGIC_CMD=:
7091 fi
7092fi
7093
7094 fi
7095 ;;
7096esac
7097
7098enable_dlopen=no
7099enable_win32_dll=no
7100
dd184caf 7101# Check whether --enable-libtool-lock was given.
d9898ee8 7102if test "${enable_libtool_lock+set}" = set; then
dd184caf 7103 enableval=$enable_libtool_lock;
7104fi
d9898ee8 7105
d9898ee8 7106test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7107
7108
dd184caf 7109# Check whether --with-pic was given.
d9898ee8 7110if test "${with_pic+set}" = set; then
dd184caf 7111 withval=$with_pic; pic_mode="$withval"
d9898ee8 7112else
7113 pic_mode=default
dd184caf 7114fi
7115
d9898ee8 7116test -z "$pic_mode" && pic_mode=default
7117
7118# Use C for the default configuration in the libtool script
7119tagname=
7120lt_save_CC="$CC"
7121ac_ext=c
7122ac_cpp='$CPP $CPPFLAGS'
7123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7125ac_compiler_gnu=$ac_cv_c_compiler_gnu
7126
7127
7128# Source file extension for C test sources.
7129ac_ext=c
7130
7131# Object file extension for compiled C test sources.
7132objext=o
7133objext=$objext
7134
7135# Code to be used in simple compile tests
ac40fd9e 7136lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 7137
7138# Code to be used in simple link tests
ac40fd9e 7139lt_simple_link_test_code='int main(){return(0);}'
d9898ee8 7140
7141
7142# If no C compiler was specified, use CC.
7143LTCC=${LTCC-"$CC"}
7144
7145# If no C compiler flags were specified, use CFLAGS.
7146LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7147
7148# Allow CC to be a program name with arguments.
7149compiler=$CC
7150
7151
7152# save warnings/boilerplate of simple test code
7153ac_outfile=conftest.$ac_objext
ac40fd9e 7154echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 7155eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7156_lt_compiler_boilerplate=`cat conftest.err`
7157$rm conftest*
7158
7159ac_outfile=conftest.$ac_objext
ac40fd9e 7160echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 7161eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7162_lt_linker_boilerplate=`cat conftest.err`
7163$rm conftest*
7164
7165
7166
7167lt_prog_compiler_no_builtin_flag=
7168
7169if test "$GCC" = yes; then
7170 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7171
7172
dd184caf 7173{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7174echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d9898ee8 7175if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7177else
7178 lt_cv_prog_compiler_rtti_exceptions=no
7179 ac_outfile=conftest.$ac_objext
ac40fd9e 7180 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 7181 lt_compiler_flag="-fno-rtti -fno-exceptions"
7182 # Insert the option either (1) after the last *FLAGS variable, or
7183 # (2) before a word containing "conftest.", or (3) at the end.
7184 # Note that $ac_compile itself does not contain backslashes and begins
7185 # with a dollar sign (not a hyphen), so the echo should work correctly.
7186 # The option is referenced via a variable to avoid confusing sed.
7187 lt_compile=`echo "$ac_compile" | $SED \
7188 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7189 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7190 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 7191 (eval echo "\"\$as_me:7191: $lt_compile\"" >&5)
d9898ee8 7192 (eval "$lt_compile" 2>conftest.err)
7193 ac_status=$?
7194 cat conftest.err >&5
ac40fd9e 7195 echo "$as_me:7195: \$? = $ac_status" >&5
d9898ee8 7196 if (exit $ac_status) && test -s "$ac_outfile"; then
7197 # The compiler can only warn and ignore the option if not recognized
7198 # So say no if there are warnings other than the usual output.
7199 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7200 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7201 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7202 lt_cv_prog_compiler_rtti_exceptions=yes
7203 fi
7204 fi
7205 $rm conftest*
7206
7207fi
dd184caf 7208{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7209echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 7210
7211if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7212 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7213else
7214 :
7215fi
7216
7217fi
7218
7219lt_prog_compiler_wl=
7220lt_prog_compiler_pic=
7221lt_prog_compiler_static=
7222
dd184caf 7223{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7224echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 7225
7226 if test "$GCC" = yes; then
7227 lt_prog_compiler_wl='-Wl,'
7228 lt_prog_compiler_static='-static'
7229
7230 case $host_os in
7231 aix*)
7232 # All AIX code is PIC.
7233 if test "$host_cpu" = ia64; then
7234 # AIX 5 now supports IA64 processor
7235 lt_prog_compiler_static='-Bstatic'
7236 fi
7237 ;;
7238
7239 amigaos*)
7240 # FIXME: we need at least 68020 code to build shared libraries, but
7241 # adding the `-m68020' flag to GCC prevents building anything better,
7242 # like `-m68040'.
7243 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7244 ;;
7245
ac40fd9e 7246 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 7247 # PIC is the default for these OSes.
7248 ;;
7249
ac40fd9e 7250 mingw* | cygwin* | pw32* | os2*)
d9898ee8 7251 # This hack is so that the source file can tell whether it is being
7252 # built for inclusion in a dll (and should export symbols for example).
ac40fd9e 7253 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7254 # (--disable-auto-import) libraries
d9898ee8 7255 lt_prog_compiler_pic='-DDLL_EXPORT'
7256 ;;
7257
7258 darwin* | rhapsody*)
7259 # PIC is the default on this platform
7260 # Common symbols not allowed in MH_DYLIB files
7261 lt_prog_compiler_pic='-fno-common'
7262 ;;
7263
ac40fd9e 7264 interix[3-9]*)
d9898ee8 7265 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7266 # Instead, we relocate shared libraries at runtime.
7267 ;;
7268
7269 msdosdjgpp*)
7270 # Just because we use GCC doesn't mean we suddenly get shared libraries
7271 # on systems that don't support them.
7272 lt_prog_compiler_can_build_shared=no
7273 enable_shared=no
7274 ;;
7275
7276 sysv4*MP*)
7277 if test -d /usr/nec; then
7278 lt_prog_compiler_pic=-Kconform_pic
7279 fi
7280 ;;
7281
7282 hpux*)
7283 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7284 # not for PA HP-UX.
7285 case $host_cpu in
7286 hppa*64*|ia64*)
7287 # +Z the default
7288 ;;
7289 *)
7290 lt_prog_compiler_pic='-fPIC'
7291 ;;
7292 esac
7293 ;;
7294
7295 *)
7296 lt_prog_compiler_pic='-fPIC'
7297 ;;
7298 esac
7299 else
7300 # PORTME Check for flag to pass linker flags through the system compiler.
7301 case $host_os in
7302 aix*)
7303 lt_prog_compiler_wl='-Wl,'
7304 if test "$host_cpu" = ia64; then
7305 # AIX 5 now supports IA64 processor
7306 lt_prog_compiler_static='-Bstatic'
7307 else
7308 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7309 fi
7310 ;;
7311 darwin*)
7312 # PIC is the default on this platform
7313 # Common symbols not allowed in MH_DYLIB files
7314 case $cc_basename in
7315 xlc*)
7316 lt_prog_compiler_pic='-qnocommon'
7317 lt_prog_compiler_wl='-Wl,'
7318 ;;
7319 esac
7320 ;;
7321
ac40fd9e 7322 mingw* | cygwin* | pw32* | os2*)
d9898ee8 7323 # This hack is so that the source file can tell whether it is being
7324 # built for inclusion in a dll (and should export symbols for example).
7325 lt_prog_compiler_pic='-DDLL_EXPORT'
7326 ;;
7327
7328 hpux9* | hpux10* | hpux11*)
7329 lt_prog_compiler_wl='-Wl,'
7330 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7331 # not for PA HP-UX.
7332 case $host_cpu in
7333 hppa*64*|ia64*)
7334 # +Z the default
7335 ;;
7336 *)
7337 lt_prog_compiler_pic='+Z'
7338 ;;
7339 esac
7340 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7341 lt_prog_compiler_static='${wl}-a ${wl}archive'
7342 ;;
7343
7344 irix5* | irix6* | nonstopux*)
7345 lt_prog_compiler_wl='-Wl,'
7346 # PIC (with -KPIC) is the default.
7347 lt_prog_compiler_static='-non_shared'
7348 ;;
7349
7350 newsos6)
7351 lt_prog_compiler_pic='-KPIC'
7352 lt_prog_compiler_static='-Bstatic'
7353 ;;
7354
ac40fd9e 7355 linux* | k*bsd*-gnu)
d9898ee8 7356 case $cc_basename in
7357 icc* | ecc*)
7358 lt_prog_compiler_wl='-Wl,'
7359 lt_prog_compiler_pic='-KPIC'
7360 lt_prog_compiler_static='-static'
7361 ;;
7362 pgcc* | pgf77* | pgf90* | pgf95*)
7363 # Portland Group compilers (*not* the Pentium gcc compiler,
7364 # which looks to be a dead project)
7365 lt_prog_compiler_wl='-Wl,'
7366 lt_prog_compiler_pic='-fpic'
7367 lt_prog_compiler_static='-Bstatic'
7368 ;;
7369 ccc*)
7370 lt_prog_compiler_wl='-Wl,'
7371 # All Alpha code is PIC.
7372 lt_prog_compiler_static='-non_shared'
7373 ;;
ac40fd9e 7374 *)
7375 case `$CC -V 2>&1 | sed 5q` in
7376 *Sun\ C*)
7377 # Sun C 5.9
7378 lt_prog_compiler_pic='-KPIC'
7379 lt_prog_compiler_static='-Bstatic'
7380 lt_prog_compiler_wl='-Wl,'
7381 ;;
7382 *Sun\ F*)
7383 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7384 lt_prog_compiler_pic='-KPIC'
7385 lt_prog_compiler_static='-Bstatic'
7386 lt_prog_compiler_wl=''
7387 ;;
7388 esac
7389 ;;
d9898ee8 7390 esac
7391 ;;
7392
7393 osf3* | osf4* | osf5*)
7394 lt_prog_compiler_wl='-Wl,'
7395 # All OSF/1 code is PIC.
7396 lt_prog_compiler_static='-non_shared'
7397 ;;
7398
ac40fd9e 7399 rdos*)
7400 lt_prog_compiler_static='-non_shared'
7401 ;;
7402
d9898ee8 7403 solaris*)
7404 lt_prog_compiler_pic='-KPIC'
7405 lt_prog_compiler_static='-Bstatic'
7406 case $cc_basename in
7407 f77* | f90* | f95*)
7408 lt_prog_compiler_wl='-Qoption ld ';;
7409 *)
7410 lt_prog_compiler_wl='-Wl,';;
7411 esac
7412 ;;
7413
7414 sunos4*)
7415 lt_prog_compiler_wl='-Qoption ld '
7416 lt_prog_compiler_pic='-PIC'
7417 lt_prog_compiler_static='-Bstatic'
7418 ;;
7419
7420 sysv4 | sysv4.2uw2* | sysv4.3*)
7421 lt_prog_compiler_wl='-Wl,'
7422 lt_prog_compiler_pic='-KPIC'
7423 lt_prog_compiler_static='-Bstatic'
7424 ;;
7425
7426 sysv4*MP*)
7427 if test -d /usr/nec ;then
7428 lt_prog_compiler_pic='-Kconform_pic'
7429 lt_prog_compiler_static='-Bstatic'
7430 fi
7431 ;;
7432
7433 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7434 lt_prog_compiler_wl='-Wl,'
7435 lt_prog_compiler_pic='-KPIC'
7436 lt_prog_compiler_static='-Bstatic'
7437 ;;
7438
7439 unicos*)
7440 lt_prog_compiler_wl='-Wl,'
7441 lt_prog_compiler_can_build_shared=no
7442 ;;
7443
7444 uts4*)
7445 lt_prog_compiler_pic='-pic'
7446 lt_prog_compiler_static='-Bstatic'
7447 ;;
7448
7449 *)
7450 lt_prog_compiler_can_build_shared=no
7451 ;;
7452 esac
7453 fi
7454
dd184caf 7455{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7456echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
d9898ee8 7457
7458#
7459# Check to make sure the PIC flag actually works.
7460#
7461if test -n "$lt_prog_compiler_pic"; then
7462
dd184caf 7463{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7464echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
d9898ee8 7465if test "${lt_prog_compiler_pic_works+set}" = set; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
7467else
7468 lt_prog_compiler_pic_works=no
7469 ac_outfile=conftest.$ac_objext
ac40fd9e 7470 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 7471 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7472 # Insert the option either (1) after the last *FLAGS variable, or
7473 # (2) before a word containing "conftest.", or (3) at the end.
7474 # Note that $ac_compile itself does not contain backslashes and begins
7475 # with a dollar sign (not a hyphen), so the echo should work correctly.
7476 # The option is referenced via a variable to avoid confusing sed.
7477 lt_compile=`echo "$ac_compile" | $SED \
7478 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7479 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7480 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 7481 (eval echo "\"\$as_me:7481: $lt_compile\"" >&5)
d9898ee8 7482 (eval "$lt_compile" 2>conftest.err)
7483 ac_status=$?
7484 cat conftest.err >&5
ac40fd9e 7485 echo "$as_me:7485: \$? = $ac_status" >&5
d9898ee8 7486 if (exit $ac_status) && test -s "$ac_outfile"; then
7487 # The compiler can only warn and ignore the option if not recognized
7488 # So say no if there are warnings other than the usual output.
7489 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7490 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7491 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7492 lt_prog_compiler_pic_works=yes
7493 fi
7494 fi
7495 $rm conftest*
7496
7497fi
dd184caf 7498{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7499echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
d9898ee8 7500
7501if test x"$lt_prog_compiler_pic_works" = xyes; then
7502 case $lt_prog_compiler_pic in
7503 "" | " "*) ;;
7504 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7505 esac
7506else
7507 lt_prog_compiler_pic=
7508 lt_prog_compiler_can_build_shared=no
7509fi
7510
7511fi
7512case $host_os in
7513 # For platforms which do not support PIC, -DPIC is meaningless:
7514 *djgpp*)
7515 lt_prog_compiler_pic=
7516 ;;
7517 *)
7518 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7519 ;;
7520esac
7521
7522#
7523# Check to make sure the static flag actually works.
7524#
7525wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
dd184caf 7526{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7527echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 7528if test "${lt_prog_compiler_static_works+set}" = set; then
7529 echo $ECHO_N "(cached) $ECHO_C" >&6
7530else
7531 lt_prog_compiler_static_works=no
7532 save_LDFLAGS="$LDFLAGS"
7533 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ac40fd9e 7534 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 7535 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7536 # The linker can only warn and ignore the option if not recognized
7537 # So say no if there are warnings
7538 if test -s conftest.err; then
7539 # Append any errors to the config.log.
7540 cat conftest.err 1>&5
7541 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7542 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7543 if diff conftest.exp conftest.er2 >/dev/null; then
7544 lt_prog_compiler_static_works=yes
7545 fi
7546 else
7547 lt_prog_compiler_static_works=yes
7548 fi
7549 fi
7550 $rm conftest*
7551 LDFLAGS="$save_LDFLAGS"
7552
7553fi
dd184caf 7554{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7555echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
d9898ee8 7556
7557if test x"$lt_prog_compiler_static_works" = xyes; then
7558 :
7559else
7560 lt_prog_compiler_static=
7561fi
7562
7563
dd184caf 7564{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7565echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 7566if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7567 echo $ECHO_N "(cached) $ECHO_C" >&6
7568else
7569 lt_cv_prog_compiler_c_o=no
7570 $rm -r conftest 2>/dev/null
7571 mkdir conftest
7572 cd conftest
7573 mkdir out
ac40fd9e 7574 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 7575
7576 lt_compiler_flag="-o out/conftest2.$ac_objext"
7577 # Insert the option either (1) after the last *FLAGS variable, or
7578 # (2) before a word containing "conftest.", or (3) at the end.
7579 # Note that $ac_compile itself does not contain backslashes and begins
7580 # with a dollar sign (not a hyphen), so the echo should work correctly.
7581 lt_compile=`echo "$ac_compile" | $SED \
7582 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7583 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7584 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 7585 (eval echo "\"\$as_me:7585: $lt_compile\"" >&5)
d9898ee8 7586 (eval "$lt_compile" 2>out/conftest.err)
7587 ac_status=$?
7588 cat out/conftest.err >&5
ac40fd9e 7589 echo "$as_me:7589: \$? = $ac_status" >&5
d9898ee8 7590 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7591 then
7592 # The compiler can only warn and ignore the option if not recognized
7593 # So say no if there are warnings
7594 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7595 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7596 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7597 lt_cv_prog_compiler_c_o=yes
7598 fi
7599 fi
7600 chmod u+w . 2>&5
7601 $rm conftest*
7602 # SGI C++ compiler will create directory out/ii_files/ for
7603 # template instantiation
7604 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7605 $rm out/* && rmdir out
7606 cd ..
7607 rmdir conftest
7608 $rm conftest*
7609
7610fi
dd184caf 7611{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7612echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 7613
7614
7615hard_links="nottested"
7616if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7617 # do not overwrite the value of need_locks provided by the user
dd184caf 7618 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7619echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 7620 hard_links=yes
7621 $rm conftest*
7622 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7623 touch conftest.a
7624 ln conftest.a conftest.b 2>&5 || hard_links=no
7625 ln conftest.a conftest.b 2>/dev/null && hard_links=no
dd184caf 7626 { echo "$as_me:$LINENO: result: $hard_links" >&5
7627echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 7628 if test "$hard_links" = no; then
7629 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7630echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7631 need_locks=warn
7632 fi
7633else
7634 need_locks=no
7635fi
7636
dd184caf 7637{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7638echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 7639
7640 runpath_var=
7641 allow_undefined_flag=
7642 enable_shared_with_static_runtimes=no
7643 archive_cmds=
7644 archive_expsym_cmds=
7645 old_archive_From_new_cmds=
7646 old_archive_from_expsyms_cmds=
7647 export_dynamic_flag_spec=
7648 whole_archive_flag_spec=
7649 thread_safe_flag_spec=
7650 hardcode_libdir_flag_spec=
7651 hardcode_libdir_flag_spec_ld=
7652 hardcode_libdir_separator=
7653 hardcode_direct=no
7654 hardcode_minus_L=no
7655 hardcode_shlibpath_var=unsupported
7656 link_all_deplibs=unknown
7657 hardcode_automatic=no
7658 module_cmds=
7659 module_expsym_cmds=
7660 always_export_symbols=no
7661 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7662 # include_expsyms should be a list of space-separated symbols to be *always*
7663 # included in the symbol list
7664 include_expsyms=
7665 # exclude_expsyms can be an extended regexp of symbols to exclude
7666 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7667 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7668 # as well as any symbol that contains `d'.
7669 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7670 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7671 # platforms (ab)use it in PIC code, but their linkers get confused if
7672 # the symbol is explicitly referenced. Since portable code cannot
7673 # rely on this symbol name, it's probably fine to never include it in
7674 # preloaded symbol tables.
7675 extract_expsyms_cmds=
7676 # Just being paranoid about ensuring that cc_basename is set.
7677 for cc_temp in $compiler""; do
7678 case $cc_temp in
7679 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7680 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7681 \-*) ;;
7682 *) break;;
7683 esac
7684done
7685cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7686
7687 case $host_os in
7688 cygwin* | mingw* | pw32*)
7689 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7690 # When not using gcc, we currently assume that we are using
7691 # Microsoft Visual C++.
7692 if test "$GCC" != yes; then
7693 with_gnu_ld=no
7694 fi
7695 ;;
7696 interix*)
7697 # we just hope/assume this is gcc and not c89 (= MSVC++)
7698 with_gnu_ld=yes
7699 ;;
7700 openbsd*)
7701 with_gnu_ld=no
7702 ;;
7703 esac
7704
7705 ld_shlibs=yes
7706 if test "$with_gnu_ld" = yes; then
7707 # If archive_cmds runs LD, not CC, wlarc should be empty
7708 wlarc='${wl}'
7709
7710 # Set some defaults for GNU ld with shared library support. These
7711 # are reset later if shared libraries are not supported. Putting them
7712 # here allows them to be overridden if necessary.
7713 runpath_var=LD_RUN_PATH
7714 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7715 export_dynamic_flag_spec='${wl}--export-dynamic'
7716 # ancient GNU ld didn't support --whole-archive et. al.
7717 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7718 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7719 else
7720 whole_archive_flag_spec=
7721 fi
7722 supports_anon_versioning=no
7723 case `$LD -v 2>/dev/null` in
7724 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7725 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7726 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7727 *\ 2.11.*) ;; # other 2.11 versions
7728 *) supports_anon_versioning=yes ;;
7729 esac
7730
7731 # See if GNU ld supports shared libraries.
7732 case $host_os in
7733 aix3* | aix4* | aix5*)
7734 # On AIX/PPC, the GNU linker is very broken
7735 if test "$host_cpu" != ia64; then
7736 ld_shlibs=no
7737 cat <<EOF 1>&2
7738
7739*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7740*** to be unable to reliably create shared libraries on AIX.
7741*** Therefore, libtool is disabling shared libraries support. If you
7742*** really care for shared libraries, you may want to modify your PATH
7743*** so that a non-GNU linker is found, and then restart.
7744
7745EOF
7746 fi
7747 ;;
7748
7749 amigaos*)
7750 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)'
7751 hardcode_libdir_flag_spec='-L$libdir'
7752 hardcode_minus_L=yes
7753
7754 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7755 # that the semantics of dynamic libraries on AmigaOS, at least up
7756 # to version 4, is to share data among multiple programs linked
7757 # with the same dynamic library. Since this doesn't match the
7758 # behavior of shared libraries on other platforms, we can't use
7759 # them.
7760 ld_shlibs=no
7761 ;;
7762
7763 beos*)
7764 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7765 allow_undefined_flag=unsupported
7766 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7767 # support --undefined. This deserves some investigation. FIXME
7768 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7769 else
7770 ld_shlibs=no
7771 fi
7772 ;;
7773
7774 cygwin* | mingw* | pw32*)
7775 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7776 # as there is no search path for DLLs.
7777 hardcode_libdir_flag_spec='-L$libdir'
7778 allow_undefined_flag=unsupported
7779 always_export_symbols=no
7780 enable_shared_with_static_runtimes=yes
ac40fd9e 7781 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d9898ee8 7782
7783 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7784 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7785 # If the export-symbols file already is a .def file (1st line
7786 # is EXPORTS), use it as is; otherwise, prepend...
7787 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7788 cp $export_symbols $output_objdir/$soname.def;
7789 else
7790 echo EXPORTS > $output_objdir/$soname.def;
7791 cat $export_symbols >> $output_objdir/$soname.def;
7792 fi~
7793 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7794 else
7795 ld_shlibs=no
7796 fi
7797 ;;
7798
ac40fd9e 7799 interix[3-9]*)
d9898ee8 7800 hardcode_direct=no
7801 hardcode_shlibpath_var=no
7802 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7803 export_dynamic_flag_spec='${wl}-E'
7804 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7805 # Instead, shared libraries are loaded at an image base (0x10000000 by
7806 # default) and relocated if they conflict, which is a slow very memory
7807 # consuming and fragmenting process. To avoid this, we pick a random,
7808 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7809 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7810 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7811 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'
7812 ;;
7813
ac40fd9e 7814 gnu* | linux* | k*bsd*-gnu)
d9898ee8 7815 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7816 tmp_addflag=
7817 case $cc_basename,$host_cpu in
7818 pgcc*) # Portland Group C compiler
7819 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'
7820 tmp_addflag=' $pic_flag'
7821 ;;
7822 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7823 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'
7824 tmp_addflag=' $pic_flag -Mnomain' ;;
7825 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7826 tmp_addflag=' -i_dynamic' ;;
7827 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7828 tmp_addflag=' -i_dynamic -nofor_main' ;;
7829 ifc* | ifort*) # Intel Fortran compiler
7830 tmp_addflag=' -nofor_main' ;;
7831 esac
ac40fd9e 7832 case `$CC -V 2>&1 | sed 5q` in
7833 *Sun\ C*) # Sun C 5.9
7834 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7835 tmp_sharedflag='-G' ;;
7836 *Sun\ F*) # Sun Fortran 8.3
7837 tmp_sharedflag='-G' ;;
7838 *)
7839 tmp_sharedflag='-shared' ;;
7840 esac
7841 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 7842
7843 if test $supports_anon_versioning = yes; then
7844 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7845 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7846 $echo "local: *; };" >> $output_objdir/$libname.ver~
ac40fd9e 7847 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
d9898ee8 7848 fi
7849 else
7850 ld_shlibs=no
7851 fi
7852 ;;
7853
7854 netbsd*)
7855 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7856 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7857 wlarc=
7858 else
7859 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7860 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7861 fi
7862 ;;
7863
7864 solaris*)
7865 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7866 ld_shlibs=no
7867 cat <<EOF 1>&2
7868
7869*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7870*** create shared libraries on Solaris systems. Therefore, libtool
7871*** is disabling shared libraries support. We urge you to upgrade GNU
7872*** binutils to release 2.9.1 or newer. Another option is to modify
7873*** your PATH or compiler configuration so that the native linker is
7874*** used, and then restart.
7875
7876EOF
7877 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7878 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7879 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7880 else
7881 ld_shlibs=no
7882 fi
7883 ;;
7884
7885 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7886 case `$LD -v 2>&1` in
7887 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7888 ld_shlibs=no
7889 cat <<_LT_EOF 1>&2
7890
7891*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7892*** reliably create shared libraries on SCO systems. Therefore, libtool
7893*** is disabling shared libraries support. We urge you to upgrade GNU
7894*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7895*** your PATH or compiler configuration so that the native linker is
7896*** used, and then restart.
7897
7898_LT_EOF
7899 ;;
7900 *)
7901 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7902 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7903 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7904 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7905 else
7906 ld_shlibs=no
7907 fi
7908 ;;
7909 esac
7910 ;;
7911
7912 sunos4*)
7913 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7914 wlarc=
7915 hardcode_direct=yes
7916 hardcode_shlibpath_var=no
7917 ;;
7918
7919 *)
7920 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7921 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7922 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7923 else
7924 ld_shlibs=no
7925 fi
7926 ;;
7927 esac
7928
7929 if test "$ld_shlibs" = no; then
7930 runpath_var=
7931 hardcode_libdir_flag_spec=
7932 export_dynamic_flag_spec=
7933 whole_archive_flag_spec=
7934 fi
7935 else
7936 # PORTME fill in a description of your system's linker (not GNU ld)
7937 case $host_os in
7938 aix3*)
7939 allow_undefined_flag=unsupported
7940 always_export_symbols=yes
7941 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'
7942 # Note: this linker hardcodes the directories in LIBPATH if there
7943 # are no directories specified by -L.
7944 hardcode_minus_L=yes
7945 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7946 # Neither direct hardcoding nor static linking is supported with a
7947 # broken collect2.
7948 hardcode_direct=unsupported
7949 fi
7950 ;;
7951
7952 aix4* | aix5*)
7953 if test "$host_cpu" = ia64; then
7954 # On IA64, the linker does run time linking by default, so we don't
7955 # have to do anything special.
7956 aix_use_runtimelinking=no
7957 exp_sym_flag='-Bexport'
7958 no_entry_flag=""
7959 else
7960 # If we're using GNU nm, then we don't want the "-C" option.
7961 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7962 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7963 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'
7964 else
7965 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'
7966 fi
7967 aix_use_runtimelinking=no
7968
7969 # Test if we are trying to use run time linking or normal
7970 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7971 # need to do runtime linking.
7972 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7973 for ld_flag in $LDFLAGS; do
7974 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7975 aix_use_runtimelinking=yes
7976 break
7977 fi
7978 done
7979 ;;
7980 esac
7981
7982 exp_sym_flag='-bexport'
7983 no_entry_flag='-bnoentry'
7984 fi
7985
7986 # When large executables or shared objects are built, AIX ld can
7987 # have problems creating the table of contents. If linking a library
7988 # or program results in "error TOC overflow" add -mminimal-toc to
7989 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7990 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7991
7992 archive_cmds=''
7993 hardcode_direct=yes
7994 hardcode_libdir_separator=':'
7995 link_all_deplibs=yes
7996
7997 if test "$GCC" = yes; then
7998 case $host_os in aix4.[012]|aix4.[012].*)
7999 # We only want to do this on AIX 4.2 and lower, the check
8000 # below for broken collect2 doesn't work under 4.3+
8001 collect2name=`${CC} -print-prog-name=collect2`
8002 if test -f "$collect2name" && \
8003 strings "$collect2name" | grep resolve_lib_name >/dev/null
8004 then
8005 # We have reworked collect2
ac40fd9e 8006 :
d9898ee8 8007 else
8008 # We have old collect2
8009 hardcode_direct=unsupported
8010 # It fails to find uninstalled libraries when the uninstalled
8011 # path is not listed in the libpath. Setting hardcode_minus_L
8012 # to unsupported forces relinking
8013 hardcode_minus_L=yes
8014 hardcode_libdir_flag_spec='-L$libdir'
8015 hardcode_libdir_separator=
8016 fi
8017 ;;
8018 esac
8019 shared_flag='-shared'
8020 if test "$aix_use_runtimelinking" = yes; then
8021 shared_flag="$shared_flag "'${wl}-G'
8022 fi
8023 else
8024 # not using gcc
8025 if test "$host_cpu" = ia64; then
8026 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8027 # chokes on -Wl,-G. The following line is correct:
8028 shared_flag='-G'
8029 else
8030 if test "$aix_use_runtimelinking" = yes; then
8031 shared_flag='${wl}-G'
8032 else
8033 shared_flag='${wl}-bM:SRE'
8034 fi
8035 fi
8036 fi
8037
8038 # It seems that -bexpall does not export symbols beginning with
8039 # underscore (_), so it is better to generate a list of symbols to export.
8040 always_export_symbols=yes
8041 if test "$aix_use_runtimelinking" = yes; then
8042 # Warning - without using the other runtime loading flags (-brtl),
8043 # -berok will link without error, but may produce a broken library.
8044 allow_undefined_flag='-berok'
8045 # Determine the default libpath from the value encoded in an empty executable.
8046 cat >conftest.$ac_ext <<_ACEOF
8047/* confdefs.h. */
8048_ACEOF
8049cat confdefs.h >>conftest.$ac_ext
8050cat >>conftest.$ac_ext <<_ACEOF
8051/* end confdefs.h. */
8052
8053int
8054main ()
8055{
8056
8057 ;
8058 return 0;
8059}
8060_ACEOF
8061rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 8062if { (ac_try="$ac_link"
8063case "(($ac_try" in
8064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065 *) ac_try_echo=$ac_try;;
8066esac
8067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8068 (eval "$ac_link") 2>conftest.er1
d9898ee8 8069 ac_status=$?
8070 grep -v '^ *+' conftest.er1 >conftest.err
8071 rm -f conftest.er1
8072 cat conftest.err >&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 8074 (exit $ac_status); } && {
8075 test -z "$ac_c_werror_flag" ||
8076 test ! -s conftest.err
8077 } && test -s conftest$ac_exeext &&
8078 $as_test_x conftest$ac_exeext; then
d9898ee8 8079
ac40fd9e 8080lt_aix_libpath_sed='
8081 /Import File Strings/,/^$/ {
8082 /^0/ {
8083 s/^0 *\(.*\)$/\1/
8084 p
8085 }
8086 }'
8087aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 8088# Check for a 64-bit object if we didn't find anything.
ac40fd9e 8089if test -z "$aix_libpath"; then
8090 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8091fi
d9898ee8 8092else
8093 echo "$as_me: failed program was:" >&5
8094sed 's/^/| /' conftest.$ac_ext >&5
8095
dd184caf 8096
d9898ee8 8097fi
dd184caf 8098
8099rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8100 conftest$ac_exeext conftest.$ac_ext
8101if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8102
8103 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8104 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"
8105 else
8106 if test "$host_cpu" = ia64; then
8107 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8108 allow_undefined_flag="-z nodefs"
8109 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"
8110 else
8111 # Determine the default libpath from the value encoded in an empty executable.
8112 cat >conftest.$ac_ext <<_ACEOF
8113/* confdefs.h. */
8114_ACEOF
8115cat confdefs.h >>conftest.$ac_ext
8116cat >>conftest.$ac_ext <<_ACEOF
8117/* end confdefs.h. */
8118
8119int
8120main ()
8121{
8122
8123 ;
8124 return 0;
8125}
8126_ACEOF
8127rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 8128if { (ac_try="$ac_link"
8129case "(($ac_try" in
8130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131 *) ac_try_echo=$ac_try;;
8132esac
8133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134 (eval "$ac_link") 2>conftest.er1
d9898ee8 8135 ac_status=$?
8136 grep -v '^ *+' conftest.er1 >conftest.err
8137 rm -f conftest.er1
8138 cat conftest.err >&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 8140 (exit $ac_status); } && {
8141 test -z "$ac_c_werror_flag" ||
8142 test ! -s conftest.err
8143 } && test -s conftest$ac_exeext &&
8144 $as_test_x conftest$ac_exeext; then
d9898ee8 8145
ac40fd9e 8146lt_aix_libpath_sed='
8147 /Import File Strings/,/^$/ {
8148 /^0/ {
8149 s/^0 *\(.*\)$/\1/
8150 p
8151 }
8152 }'
8153aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 8154# Check for a 64-bit object if we didn't find anything.
ac40fd9e 8155if test -z "$aix_libpath"; then
8156 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8157fi
d9898ee8 8158else
8159 echo "$as_me: failed program was:" >&5
8160sed 's/^/| /' conftest.$ac_ext >&5
8161
dd184caf 8162
d9898ee8 8163fi
dd184caf 8164
8165rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8166 conftest$ac_exeext conftest.$ac_ext
8167if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8168
8169 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8170 # Warning - without using the other run time loading flags,
8171 # -berok will link without error, but may produce a broken library.
8172 no_undefined_flag=' ${wl}-bernotok'
8173 allow_undefined_flag=' ${wl}-berok'
8174 # Exported symbols can be pulled into shared objects from archives
8175 whole_archive_flag_spec='$convenience'
8176 archive_cmds_need_lc=yes
8177 # This is similar to how AIX traditionally builds its shared libraries.
8178 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'
8179 fi
8180 fi
8181 ;;
8182
8183 amigaos*)
8184 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)'
8185 hardcode_libdir_flag_spec='-L$libdir'
8186 hardcode_minus_L=yes
8187 # see comment about different semantics on the GNU ld section
8188 ld_shlibs=no
8189 ;;
8190
8191 bsdi[45]*)
8192 export_dynamic_flag_spec=-rdynamic
8193 ;;
8194
8195 cygwin* | mingw* | pw32*)
8196 # When not using gcc, we currently assume that we are using
8197 # Microsoft Visual C++.
8198 # hardcode_libdir_flag_spec is actually meaningless, as there is
8199 # no search path for DLLs.
8200 hardcode_libdir_flag_spec=' '
8201 allow_undefined_flag=unsupported
8202 # Tell ltmain to make .lib files, not .a files.
8203 libext=lib
8204 # Tell ltmain to make .dll files, not .so files.
8205 shrext_cmds=".dll"
8206 # FIXME: Setting linknames here is a bad hack.
8207 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8208 # The linker will automatically build a .lib file if we build a DLL.
8209 old_archive_From_new_cmds='true'
8210 # FIXME: Should let the user specify the lib program.
ac40fd9e 8211 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
d9898ee8 8212 fix_srcfile_path='`cygpath -w "$srcfile"`'
8213 enable_shared_with_static_runtimes=yes
8214 ;;
8215
8216 darwin* | rhapsody*)
8217 case $host_os in
8218 rhapsody* | darwin1.[012])
8219 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8220 ;;
8221 *) # Darwin 1.3 on
8222 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8223 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8224 else
8225 case ${MACOSX_DEPLOYMENT_TARGET} in
8226 10.[012])
8227 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8228 ;;
8229 10.*)
8230 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8231 ;;
8232 esac
8233 fi
8234 ;;
8235 esac
8236 archive_cmds_need_lc=no
8237 hardcode_direct=no
8238 hardcode_automatic=yes
8239 hardcode_shlibpath_var=unsupported
8240 whole_archive_flag_spec=''
8241 link_all_deplibs=yes
8242 if test "$GCC" = yes ; then
8243 output_verbose_link_cmd='echo'
8244 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8245 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8246 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8247 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}'
8248 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}'
8249 else
8250 case $cc_basename in
8251 xlc*)
8252 output_verbose_link_cmd='echo'
ac40fd9e 8253 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
d9898ee8 8254 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8255 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
ac40fd9e 8256 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
d9898ee8 8257 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}'
8258 ;;
8259 *)
8260 ld_shlibs=no
8261 ;;
8262 esac
8263 fi
8264 ;;
8265
8266 dgux*)
8267 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8268 hardcode_libdir_flag_spec='-L$libdir'
8269 hardcode_shlibpath_var=no
8270 ;;
8271
8272 freebsd1*)
8273 ld_shlibs=no
8274 ;;
8275
8276 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8277 # support. Future versions do this automatically, but an explicit c++rt0.o
8278 # does not break anything, and helps significantly (at the cost of a little
8279 # extra space).
8280 freebsd2.2*)
8281 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8282 hardcode_libdir_flag_spec='-R$libdir'
8283 hardcode_direct=yes
8284 hardcode_shlibpath_var=no
8285 ;;
8286
8287 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8288 freebsd2*)
8289 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8290 hardcode_direct=yes
8291 hardcode_minus_L=yes
8292 hardcode_shlibpath_var=no
8293 ;;
8294
8295 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
ac40fd9e 8296 freebsd* | dragonfly*)
d9898ee8 8297 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8298 hardcode_libdir_flag_spec='-R$libdir'
8299 hardcode_direct=yes
8300 hardcode_shlibpath_var=no
8301 ;;
8302
8303 hpux9*)
8304 if test "$GCC" = yes; then
8305 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'
8306 else
8307 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'
8308 fi
8309 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8310 hardcode_libdir_separator=:
8311 hardcode_direct=yes
8312
8313 # hardcode_minus_L: Not really in the search PATH,
8314 # but as the default location of the library.
8315 hardcode_minus_L=yes
8316 export_dynamic_flag_spec='${wl}-E'
8317 ;;
8318
8319 hpux10*)
8320 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8321 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8322 else
8323 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8324 fi
8325 if test "$with_gnu_ld" = no; then
8326 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8327 hardcode_libdir_separator=:
8328
8329 hardcode_direct=yes
8330 export_dynamic_flag_spec='${wl}-E'
8331
8332 # hardcode_minus_L: Not really in the search PATH,
8333 # but as the default location of the library.
8334 hardcode_minus_L=yes
8335 fi
8336 ;;
8337
8338 hpux11*)
8339 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8340 case $host_cpu in
8341 hppa*64*)
8342 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8343 ;;
8344 ia64*)
8345 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8346 ;;
8347 *)
8348 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8349 ;;
8350 esac
8351 else
8352 case $host_cpu in
8353 hppa*64*)
8354 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8355 ;;
8356 ia64*)
8357 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8358 ;;
8359 *)
8360 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8361 ;;
8362 esac
8363 fi
8364 if test "$with_gnu_ld" = no; then
8365 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8366 hardcode_libdir_separator=:
8367
8368 case $host_cpu in
8369 hppa*64*|ia64*)
8370 hardcode_libdir_flag_spec_ld='+b $libdir'
8371 hardcode_direct=no
8372 hardcode_shlibpath_var=no
8373 ;;
8374 *)
8375 hardcode_direct=yes
8376 export_dynamic_flag_spec='${wl}-E'
8377
8378 # hardcode_minus_L: Not really in the search PATH,
8379 # but as the default location of the library.
8380 hardcode_minus_L=yes
8381 ;;
8382 esac
8383 fi
8384 ;;
8385
8386 irix5* | irix6* | nonstopux*)
8387 if test "$GCC" = yes; then
8388 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'
8389 else
8390 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'
8391 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8392 fi
8393 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8394 hardcode_libdir_separator=:
8395 link_all_deplibs=yes
8396 ;;
8397
8398 netbsd*)
8399 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8400 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8401 else
8402 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8403 fi
8404 hardcode_libdir_flag_spec='-R$libdir'
8405 hardcode_direct=yes
8406 hardcode_shlibpath_var=no
8407 ;;
8408
8409 newsos6)
8410 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8411 hardcode_direct=yes
8412 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8413 hardcode_libdir_separator=:
8414 hardcode_shlibpath_var=no
8415 ;;
8416
8417 openbsd*)
ac40fd9e 8418 if test -f /usr/libexec/ld.so; then
8419 hardcode_direct=yes
8420 hardcode_shlibpath_var=no
8421 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8422 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8423 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8424 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8425 export_dynamic_flag_spec='${wl}-E'
8426 else
8427 case $host_os in
8428 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8429 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8430 hardcode_libdir_flag_spec='-R$libdir'
8431 ;;
8432 *)
8433 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8434 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8435 ;;
8436 esac
8437 fi
d9898ee8 8438 else
ac40fd9e 8439 ld_shlibs=no
d9898ee8 8440 fi
8441 ;;
8442
8443 os2*)
8444 hardcode_libdir_flag_spec='-L$libdir'
8445 hardcode_minus_L=yes
8446 allow_undefined_flag=unsupported
8447 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'
8448 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8449 ;;
8450
8451 osf3*)
8452 if test "$GCC" = yes; then
8453 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8454 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'
8455 else
8456 allow_undefined_flag=' -expect_unresolved \*'
8457 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'
8458 fi
8459 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8460 hardcode_libdir_separator=:
8461 ;;
8462
8463 osf4* | osf5*) # as osf3* with the addition of -msym flag
8464 if test "$GCC" = yes; then
8465 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8466 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'
8467 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8468 else
8469 allow_undefined_flag=' -expect_unresolved \*'
8470 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'
8471 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8472 $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'
8473
8474 # Both c and cxx compiler support -rpath directly
8475 hardcode_libdir_flag_spec='-rpath $libdir'
8476 fi
8477 hardcode_libdir_separator=:
8478 ;;
8479
8480 solaris*)
8481 no_undefined_flag=' -z text'
8482 if test "$GCC" = yes; then
8483 wlarc='${wl}'
8484 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8485 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8486 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8487 else
8488 wlarc=''
8489 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8490 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8491 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8492 fi
8493 hardcode_libdir_flag_spec='-R$libdir'
8494 hardcode_shlibpath_var=no
8495 case $host_os in
8496 solaris2.[0-5] | solaris2.[0-5].*) ;;
8497 *)
ac40fd9e 8498 # The compiler driver will combine and reorder linker options,
8499 # but understands `-z linker_flag'. GCC discards it without `$wl',
8500 # but is careful enough not to reorder.
d9898ee8 8501 # Supported since Solaris 2.6 (maybe 2.5.1?)
ac40fd9e 8502 if test "$GCC" = yes; then
8503 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8504 else
8505 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8506 fi
8507 ;;
d9898ee8 8508 esac
8509 link_all_deplibs=yes
8510 ;;
8511
8512 sunos4*)
8513 if test "x$host_vendor" = xsequent; then
8514 # Use $CC to link under sequent, because it throws in some extra .o
8515 # files that make .init and .fini sections work.
8516 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8517 else
8518 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8519 fi
8520 hardcode_libdir_flag_spec='-L$libdir'
8521 hardcode_direct=yes
8522 hardcode_minus_L=yes
8523 hardcode_shlibpath_var=no
8524 ;;
8525
8526 sysv4)
8527 case $host_vendor in
8528 sni)
8529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8530 hardcode_direct=yes # is this really true???
8531 ;;
8532 siemens)
8533 ## LD is ld it makes a PLAMLIB
8534 ## CC just makes a GrossModule.
8535 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8536 reload_cmds='$CC -r -o $output$reload_objs'
8537 hardcode_direct=no
8538 ;;
8539 motorola)
8540 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8541 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8542 ;;
8543 esac
8544 runpath_var='LD_RUN_PATH'
8545 hardcode_shlibpath_var=no
8546 ;;
8547
8548 sysv4.3*)
8549 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8550 hardcode_shlibpath_var=no
8551 export_dynamic_flag_spec='-Bexport'
8552 ;;
8553
8554 sysv4*MP*)
8555 if test -d /usr/nec; then
8556 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8557 hardcode_shlibpath_var=no
8558 runpath_var=LD_RUN_PATH
8559 hardcode_runpath_var=yes
8560 ld_shlibs=yes
8561 fi
8562 ;;
8563
ac40fd9e 8564 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
d9898ee8 8565 no_undefined_flag='${wl}-z,text'
8566 archive_cmds_need_lc=no
8567 hardcode_shlibpath_var=no
8568 runpath_var='LD_RUN_PATH'
8569
8570 if test "$GCC" = yes; then
8571 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8572 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8573 else
8574 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8575 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8576 fi
8577 ;;
8578
8579 sysv5* | sco3.2v5* | sco5v6*)
8580 # Note: We can NOT use -z defs as we might desire, because we do not
8581 # link with -lc, and that would cause any symbols used from libc to
8582 # always be unresolved, which means just about no library would
8583 # ever link correctly. If we're not using GNU ld we use -z text
8584 # though, which does catch some bad symbols but isn't as heavy-handed
8585 # as -z defs.
8586 no_undefined_flag='${wl}-z,text'
8587 allow_undefined_flag='${wl}-z,nodefs'
8588 archive_cmds_need_lc=no
8589 hardcode_shlibpath_var=no
8590 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8591 hardcode_libdir_separator=':'
8592 link_all_deplibs=yes
8593 export_dynamic_flag_spec='${wl}-Bexport'
8594 runpath_var='LD_RUN_PATH'
8595
8596 if test "$GCC" = yes; then
8597 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8598 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8599 else
8600 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8601 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8602 fi
8603 ;;
8604
8605 uts4*)
8606 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8607 hardcode_libdir_flag_spec='-L$libdir'
8608 hardcode_shlibpath_var=no
8609 ;;
8610
8611 *)
8612 ld_shlibs=no
8613 ;;
8614 esac
8615 fi
8616
dd184caf 8617{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8618echo "${ECHO_T}$ld_shlibs" >&6; }
d9898ee8 8619test "$ld_shlibs" = no && can_build_shared=no
8620
8621#
8622# Do we need to explicitly link libc?
8623#
8624case "x$archive_cmds_need_lc" in
8625x|xyes)
8626 # Assume -lc should be added
8627 archive_cmds_need_lc=yes
8628
8629 if test "$enable_shared" = yes && test "$GCC" = yes; then
8630 case $archive_cmds in
8631 *'~'*)
8632 # FIXME: we may have to deal with multi-command sequences.
8633 ;;
8634 '$CC '*)
8635 # Test whether the compiler implicitly links with -lc since on some
8636 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8637 # to ld, don't add -lc before -lgcc.
dd184caf 8638 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8639echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 8640 $rm conftest*
ac40fd9e 8641 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 8642
8643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8644 (eval $ac_compile) 2>&5
8645 ac_status=$?
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); } 2>conftest.err; then
8648 soname=conftest
8649 lib=conftest
8650 libobjs=conftest.$ac_objext
8651 deplibs=
8652 wl=$lt_prog_compiler_wl
8653 pic_flag=$lt_prog_compiler_pic
8654 compiler_flags=-v
8655 linker_flags=-v
8656 verstring=
8657 output_objdir=.
8658 libname=conftest
8659 lt_save_allow_undefined_flag=$allow_undefined_flag
8660 allow_undefined_flag=
8661 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8662 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8663 ac_status=$?
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); }
8666 then
8667 archive_cmds_need_lc=no
8668 else
8669 archive_cmds_need_lc=yes
8670 fi
8671 allow_undefined_flag=$lt_save_allow_undefined_flag
8672 else
8673 cat conftest.err 1>&5
8674 fi
8675 $rm conftest*
dd184caf 8676 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8677echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
d9898ee8 8678 ;;
8679 esac
8680 fi
8681 ;;
8682esac
8683
dd184caf 8684{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8685echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 8686library_names_spec=
8687libname_spec='lib$name'
8688soname_spec=
8689shrext_cmds=".so"
8690postinstall_cmds=
8691postuninstall_cmds=
8692finish_cmds=
8693finish_eval=
8694shlibpath_var=
8695shlibpath_overrides_runpath=unknown
8696version_type=none
8697dynamic_linker="$host_os ld.so"
8698sys_lib_dlsearch_path_spec="/lib /usr/lib"
ac40fd9e 8699
d9898ee8 8700if test "$GCC" = yes; then
ac40fd9e 8701 case $host_os in
8702 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8703 *) lt_awk_arg="/^libraries:/" ;;
8704 esac
8705 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8706 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
d9898ee8 8707 # if the path contains ";" then we assume it to be the separator
8708 # otherwise default to the standard path separator (i.e. ":") - it is
8709 # assumed that no part of a normal pathname contains ";" but that should
8710 # okay in the real world where ";" in dirpaths is itself problematic.
ac40fd9e 8711 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
d9898ee8 8712 else
ac40fd9e 8713 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
d9898ee8 8714 fi
ac40fd9e 8715 # Ok, now we have the path, separated by spaces, we can step through it
8716 # and add multilib dir if necessary.
8717 lt_tmp_lt_search_path_spec=
8718 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8719 for lt_sys_path in $lt_search_path_spec; do
8720 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8721 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8722 else
8723 test -d "$lt_sys_path" && \
8724 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8725 fi
8726 done
8727 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8728BEGIN {RS=" "; FS="/|\n";} {
8729 lt_foo="";
8730 lt_count=0;
8731 for (lt_i = NF; lt_i > 0; lt_i--) {
8732 if ($lt_i != "" && $lt_i != ".") {
8733 if ($lt_i == "..") {
8734 lt_count++;
8735 } else {
8736 if (lt_count == 0) {
8737 lt_foo="/" $lt_i lt_foo;
8738 } else {
8739 lt_count--;
8740 }
8741 }
8742 }
8743 }
8744 if (lt_foo != "") { lt_freq[lt_foo]++; }
8745 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8746}'`
8747 sys_lib_search_path_spec=`echo $lt_search_path_spec`
d9898ee8 8748else
8749 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8750fi
8751need_lib_prefix=unknown
8752hardcode_into_libs=no
8753
8754# when you set need_version to no, make sure it does not cause -set_version
8755# flags to be left without arguments
8756need_version=unknown
8757
8758case $host_os in
8759aix3*)
8760 version_type=linux
8761 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8762 shlibpath_var=LIBPATH
8763
8764 # AIX 3 has no versioning support, so we append a major version to the name.
8765 soname_spec='${libname}${release}${shared_ext}$major'
8766 ;;
8767
8768aix4* | aix5*)
8769 version_type=linux
8770 need_lib_prefix=no
8771 need_version=no
8772 hardcode_into_libs=yes
8773 if test "$host_cpu" = ia64; then
8774 # AIX 5 supports IA64
8775 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8776 shlibpath_var=LD_LIBRARY_PATH
8777 else
8778 # With GCC up to 2.95.x, collect2 would create an import file
8779 # for dependence libraries. The import file would start with
8780 # the line `#! .'. This would cause the generated library to
8781 # depend on `.', always an invalid library. This was fixed in
8782 # development snapshots of GCC prior to 3.0.
8783 case $host_os in
8784 aix4 | aix4.[01] | aix4.[01].*)
8785 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8786 echo ' yes '
8787 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8788 :
8789 else
8790 can_build_shared=no
8791 fi
8792 ;;
8793 esac
8794 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8795 # soname into executable. Probably we can add versioning support to
8796 # collect2, so additional links can be useful in future.
8797 if test "$aix_use_runtimelinking" = yes; then
8798 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8799 # instead of lib<name>.a to let people know that these are not
8800 # typical AIX shared libraries.
8801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8802 else
8803 # We preserve .a as extension for shared libraries through AIX4.2
8804 # and later when we are not doing run time linking.
8805 library_names_spec='${libname}${release}.a $libname.a'
8806 soname_spec='${libname}${release}${shared_ext}$major'
8807 fi
8808 shlibpath_var=LIBPATH
8809 fi
8810 ;;
8811
8812amigaos*)
8813 library_names_spec='$libname.ixlibrary $libname.a'
8814 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8815 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'
8816 ;;
8817
8818beos*)
8819 library_names_spec='${libname}${shared_ext}'
8820 dynamic_linker="$host_os ld.so"
8821 shlibpath_var=LIBRARY_PATH
8822 ;;
8823
8824bsdi[45]*)
8825 version_type=linux
8826 need_version=no
8827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8828 soname_spec='${libname}${release}${shared_ext}$major'
8829 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8830 shlibpath_var=LD_LIBRARY_PATH
8831 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8832 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8833 # the default ld.so.conf also contains /usr/contrib/lib and
8834 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8835 # libtool to hard-code these into programs
8836 ;;
8837
8838cygwin* | mingw* | pw32*)
8839 version_type=windows
8840 shrext_cmds=".dll"
8841 need_version=no
8842 need_lib_prefix=no
8843
8844 case $GCC,$host_os in
8845 yes,cygwin* | yes,mingw* | yes,pw32*)
8846 library_names_spec='$libname.dll.a'
8847 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8848 postinstall_cmds='base_file=`basename \${file}`~
8849 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8850 dldir=$destdir/`dirname \$dlpath`~
8851 test -d \$dldir || mkdir -p \$dldir~
8852 $install_prog $dir/$dlname \$dldir/$dlname~
8853 chmod a+x \$dldir/$dlname'
8854 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8855 dlpath=$dir/\$dldll~
8856 $rm \$dlpath'
8857 shlibpath_overrides_runpath=yes
8858
8859 case $host_os in
8860 cygwin*)
8861 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8862 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8863 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8864 ;;
8865 mingw*)
8866 # MinGW DLLs use traditional 'lib' prefix
8867 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8868 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8869 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8870 # It is most probably a Windows format PATH printed by
8871 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8872 # path with ; separators, and with drive letters. We can handle the
8873 # drive letters (cygwin fileutils understands them), so leave them,
8874 # especially as we might pass files found there to a mingw objdump,
8875 # which wouldn't understand a cygwinified path. Ahh.
8876 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8877 else
8878 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8879 fi
8880 ;;
8881 pw32*)
8882 # pw32 DLLs use 'pw' prefix rather than 'lib'
8883 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8884 ;;
8885 esac
8886 ;;
8887
8888 *)
8889 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8890 ;;
8891 esac
8892 dynamic_linker='Win32 ld.exe'
8893 # FIXME: first we should search . and the directory the executable is in
8894 shlibpath_var=PATH
8895 ;;
8896
8897darwin* | rhapsody*)
8898 dynamic_linker="$host_os dyld"
8899 version_type=darwin
8900 need_lib_prefix=no
8901 need_version=no
8902 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8903 soname_spec='${libname}${release}${major}$shared_ext'
8904 shlibpath_overrides_runpath=yes
8905 shlibpath_var=DYLD_LIBRARY_PATH
8906 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ac40fd9e 8907
8908 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
d9898ee8 8909 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8910 ;;
8911
8912dgux*)
8913 version_type=linux
8914 need_lib_prefix=no
8915 need_version=no
8916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8917 soname_spec='${libname}${release}${shared_ext}$major'
8918 shlibpath_var=LD_LIBRARY_PATH
8919 ;;
8920
8921freebsd1*)
8922 dynamic_linker=no
8923 ;;
8924
d9898ee8 8925freebsd* | dragonfly*)
8926 # DragonFly does not have aout. When/if they implement a new
8927 # versioning mechanism, adjust this.
8928 if test -x /usr/bin/objformat; then
8929 objformat=`/usr/bin/objformat`
8930 else
8931 case $host_os in
8932 freebsd[123]*) objformat=aout ;;
8933 *) objformat=elf ;;
8934 esac
8935 fi
8936 version_type=freebsd-$objformat
8937 case $version_type in
8938 freebsd-elf*)
8939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8940 need_version=no
8941 need_lib_prefix=no
8942 ;;
8943 freebsd-*)
8944 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8945 need_version=yes
8946 ;;
8947 esac
8948 shlibpath_var=LD_LIBRARY_PATH
8949 case $host_os in
8950 freebsd2*)
8951 shlibpath_overrides_runpath=yes
8952 ;;
8953 freebsd3.[01]* | freebsdelf3.[01]*)
8954 shlibpath_overrides_runpath=yes
8955 hardcode_into_libs=yes
8956 ;;
8957 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8958 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8959 shlibpath_overrides_runpath=no
8960 hardcode_into_libs=yes
8961 ;;
ac40fd9e 8962 *) # from 4.6 on, and DragonFly
d9898ee8 8963 shlibpath_overrides_runpath=yes
8964 hardcode_into_libs=yes
8965 ;;
8966 esac
8967 ;;
8968
8969gnu*)
8970 version_type=linux
8971 need_lib_prefix=no
8972 need_version=no
8973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8974 soname_spec='${libname}${release}${shared_ext}$major'
8975 shlibpath_var=LD_LIBRARY_PATH
8976 hardcode_into_libs=yes
8977 ;;
8978
8979hpux9* | hpux10* | hpux11*)
8980 # Give a soname corresponding to the major version so that dld.sl refuses to
8981 # link against other versions.
8982 version_type=sunos
8983 need_lib_prefix=no
8984 need_version=no
8985 case $host_cpu in
8986 ia64*)
8987 shrext_cmds='.so'
8988 hardcode_into_libs=yes
8989 dynamic_linker="$host_os dld.so"
8990 shlibpath_var=LD_LIBRARY_PATH
8991 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8993 soname_spec='${libname}${release}${shared_ext}$major'
8994 if test "X$HPUX_IA64_MODE" = X32; then
8995 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8996 else
8997 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8998 fi
8999 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9000 ;;
9001 hppa*64*)
9002 shrext_cmds='.sl'
9003 hardcode_into_libs=yes
9004 dynamic_linker="$host_os dld.sl"
9005 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9006 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9008 soname_spec='${libname}${release}${shared_ext}$major'
9009 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9010 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9011 ;;
9012 *)
9013 shrext_cmds='.sl'
9014 dynamic_linker="$host_os dld.sl"
9015 shlibpath_var=SHLIB_PATH
9016 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9018 soname_spec='${libname}${release}${shared_ext}$major'
9019 ;;
9020 esac
9021 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9022 postinstall_cmds='chmod 555 $lib'
9023 ;;
9024
ac40fd9e 9025interix[3-9]*)
d9898ee8 9026 version_type=linux
9027 need_lib_prefix=no
9028 need_version=no
9029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9030 soname_spec='${libname}${release}${shared_ext}$major'
9031 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9032 shlibpath_var=LD_LIBRARY_PATH
9033 shlibpath_overrides_runpath=no
9034 hardcode_into_libs=yes
9035 ;;
9036
9037irix5* | irix6* | nonstopux*)
9038 case $host_os in
9039 nonstopux*) version_type=nonstopux ;;
9040 *)
9041 if test "$lt_cv_prog_gnu_ld" = yes; then
9042 version_type=linux
9043 else
9044 version_type=irix
9045 fi ;;
9046 esac
9047 need_lib_prefix=no
9048 need_version=no
9049 soname_spec='${libname}${release}${shared_ext}$major'
9050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9051 case $host_os in
9052 irix5* | nonstopux*)
9053 libsuff= shlibsuff=
9054 ;;
9055 *)
9056 case $LD in # libtool.m4 will add one of these switches to LD
9057 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9058 libsuff= shlibsuff= libmagic=32-bit;;
9059 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9060 libsuff=32 shlibsuff=N32 libmagic=N32;;
9061 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9062 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9063 *) libsuff= shlibsuff= libmagic=never-match;;
9064 esac
9065 ;;
9066 esac
9067 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9068 shlibpath_overrides_runpath=no
9069 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9070 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9071 hardcode_into_libs=yes
9072 ;;
9073
9074# No shared lib support for Linux oldld, aout, or coff.
9075linux*oldld* | linux*aout* | linux*coff*)
9076 dynamic_linker=no
9077 ;;
9078
9079# This must be Linux ELF.
ac40fd9e 9080linux* | k*bsd*-gnu)
d9898ee8 9081 version_type=linux
9082 need_lib_prefix=no
9083 need_version=no
9084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9085 soname_spec='${libname}${release}${shared_ext}$major'
9086 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9087 shlibpath_var=LD_LIBRARY_PATH
9088 shlibpath_overrides_runpath=no
9089 # This implies no fast_install, which is unacceptable.
9090 # Some rework will be needed to allow for fast_install
9091 # before this can be enabled.
9092 hardcode_into_libs=yes
ac40fd9e 9093 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9094 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
d9898ee8 9095
9096 # Append ld.so.conf contents to the search path
9097 if test -f /etc/ld.so.conf; then
ac40fd9e 9098 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9099 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 9100 fi
9101
9102 # We used to test for /lib/ld.so.1 and disable shared libraries on
9103 # powerpc, because MkLinux only supported shared libraries with the
9104 # GNU dynamic linker. Since this was broken with cross compilers,
9105 # most powerpc-linux boxes support dynamic linking these days and
9106 # people can always --disable-shared, the test was removed, and we
9107 # assume the GNU/Linux dynamic linker is in use.
9108 dynamic_linker='GNU/Linux ld.so'
9109 ;;
9110
d9898ee8 9111netbsd*)
9112 version_type=sunos
9113 need_lib_prefix=no
9114 need_version=no
9115 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9118 dynamic_linker='NetBSD (a.out) ld.so'
9119 else
9120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9121 soname_spec='${libname}${release}${shared_ext}$major'
9122 dynamic_linker='NetBSD ld.elf_so'
9123 fi
9124 shlibpath_var=LD_LIBRARY_PATH
9125 shlibpath_overrides_runpath=yes
9126 hardcode_into_libs=yes
9127 ;;
9128
9129newsos6)
9130 version_type=linux
9131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9132 shlibpath_var=LD_LIBRARY_PATH
9133 shlibpath_overrides_runpath=yes
9134 ;;
9135
9136nto-qnx*)
9137 version_type=linux
9138 need_lib_prefix=no
9139 need_version=no
9140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9141 soname_spec='${libname}${release}${shared_ext}$major'
9142 shlibpath_var=LD_LIBRARY_PATH
9143 shlibpath_overrides_runpath=yes
9144 ;;
9145
9146openbsd*)
9147 version_type=sunos
9148 sys_lib_dlsearch_path_spec="/usr/lib"
9149 need_lib_prefix=no
9150 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9151 case $host_os in
9152 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9153 *) need_version=no ;;
9154 esac
9155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9156 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9157 shlibpath_var=LD_LIBRARY_PATH
9158 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9159 case $host_os in
9160 openbsd2.[89] | openbsd2.[89].*)
9161 shlibpath_overrides_runpath=no
9162 ;;
9163 *)
9164 shlibpath_overrides_runpath=yes
9165 ;;
9166 esac
9167 else
9168 shlibpath_overrides_runpath=yes
9169 fi
9170 ;;
9171
9172os2*)
9173 libname_spec='$name'
9174 shrext_cmds=".dll"
9175 need_lib_prefix=no
9176 library_names_spec='$libname${shared_ext} $libname.a'
9177 dynamic_linker='OS/2 ld.exe'
9178 shlibpath_var=LIBPATH
9179 ;;
9180
9181osf3* | osf4* | osf5*)
9182 version_type=osf
9183 need_lib_prefix=no
9184 need_version=no
9185 soname_spec='${libname}${release}${shared_ext}$major'
9186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9187 shlibpath_var=LD_LIBRARY_PATH
9188 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9189 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9190 ;;
9191
ac40fd9e 9192rdos*)
9193 dynamic_linker=no
9194 ;;
9195
d9898ee8 9196solaris*)
9197 version_type=linux
9198 need_lib_prefix=no
9199 need_version=no
9200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9201 soname_spec='${libname}${release}${shared_ext}$major'
9202 shlibpath_var=LD_LIBRARY_PATH
9203 shlibpath_overrides_runpath=yes
9204 hardcode_into_libs=yes
9205 # ldd complains unless libraries are executable
9206 postinstall_cmds='chmod +x $lib'
9207 ;;
9208
9209sunos4*)
9210 version_type=sunos
9211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9212 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9213 shlibpath_var=LD_LIBRARY_PATH
9214 shlibpath_overrides_runpath=yes
9215 if test "$with_gnu_ld" = yes; then
9216 need_lib_prefix=no
9217 fi
9218 need_version=yes
9219 ;;
9220
9221sysv4 | sysv4.3*)
9222 version_type=linux
9223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9224 soname_spec='${libname}${release}${shared_ext}$major'
9225 shlibpath_var=LD_LIBRARY_PATH
9226 case $host_vendor in
9227 sni)
9228 shlibpath_overrides_runpath=no
9229 need_lib_prefix=no
9230 export_dynamic_flag_spec='${wl}-Blargedynsym'
9231 runpath_var=LD_RUN_PATH
9232 ;;
9233 siemens)
9234 need_lib_prefix=no
9235 ;;
9236 motorola)
9237 need_lib_prefix=no
9238 need_version=no
9239 shlibpath_overrides_runpath=no
9240 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9241 ;;
9242 esac
9243 ;;
9244
9245sysv4*MP*)
9246 if test -d /usr/nec ;then
9247 version_type=linux
9248 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9249 soname_spec='$libname${shared_ext}.$major'
9250 shlibpath_var=LD_LIBRARY_PATH
9251 fi
9252 ;;
9253
9254sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9255 version_type=freebsd-elf
9256 need_lib_prefix=no
9257 need_version=no
9258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9259 soname_spec='${libname}${release}${shared_ext}$major'
9260 shlibpath_var=LD_LIBRARY_PATH
9261 hardcode_into_libs=yes
9262 if test "$with_gnu_ld" = yes; then
9263 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9264 shlibpath_overrides_runpath=no
9265 else
9266 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9267 shlibpath_overrides_runpath=yes
9268 case $host_os in
9269 sco3.2v5*)
9270 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9271 ;;
9272 esac
9273 fi
9274 sys_lib_dlsearch_path_spec='/usr/lib'
9275 ;;
9276
9277uts4*)
9278 version_type=linux
9279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9280 soname_spec='${libname}${release}${shared_ext}$major'
9281 shlibpath_var=LD_LIBRARY_PATH
9282 ;;
9283
9284*)
9285 dynamic_linker=no
9286 ;;
9287esac
dd184caf 9288{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9289echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 9290test "$dynamic_linker" = no && can_build_shared=no
9291
9292variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9293if test "$GCC" = yes; then
9294 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9295fi
9296
dd184caf 9297{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9298echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 9299hardcode_action=
9300if test -n "$hardcode_libdir_flag_spec" || \
9301 test -n "$runpath_var" || \
9302 test "X$hardcode_automatic" = "Xyes" ; then
9303
9304 # We can hardcode non-existant directories.
9305 if test "$hardcode_direct" != no &&
9306 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9307 # have to relink, otherwise we might link with an installed library
9308 # when we should be linking with a yet-to-be-installed one
9309 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9310 test "$hardcode_minus_L" != no; then
9311 # Linking always hardcodes the temporary library directory.
9312 hardcode_action=relink
9313 else
9314 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9315 hardcode_action=immediate
9316 fi
9317else
9318 # We cannot hardcode anything, or else we can only hardcode existing
9319 # directories.
9320 hardcode_action=unsupported
9321fi
dd184caf 9322{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9323echo "${ECHO_T}$hardcode_action" >&6; }
d9898ee8 9324
9325if test "$hardcode_action" = relink; then
9326 # Fast installation is not supported
9327 enable_fast_install=no
9328elif test "$shlibpath_overrides_runpath" = yes ||
9329 test "$enable_shared" = no; then
9330 # Fast installation is not necessary
9331 enable_fast_install=needless
9332fi
9333
9334striplib=
9335old_striplib=
dd184caf 9336{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9337echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
d9898ee8 9338if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9339 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9340 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
dd184caf 9341 { echo "$as_me:$LINENO: result: yes" >&5
9342echo "${ECHO_T}yes" >&6; }
d9898ee8 9343else
9344# FIXME - insert some real tests, host_os isn't really good enough
9345 case $host_os in
9346 darwin*)
9347 if test -n "$STRIP" ; then
9348 striplib="$STRIP -x"
ac40fd9e 9349 old_striplib="$STRIP -S"
dd184caf 9350 { echo "$as_me:$LINENO: result: yes" >&5
9351echo "${ECHO_T}yes" >&6; }
d9898ee8 9352 else
dd184caf 9353 { echo "$as_me:$LINENO: result: no" >&5
9354echo "${ECHO_T}no" >&6; }
d9898ee8 9355fi
9356 ;;
9357 *)
dd184caf 9358 { echo "$as_me:$LINENO: result: no" >&5
9359echo "${ECHO_T}no" >&6; }
d9898ee8 9360 ;;
9361 esac
9362fi
9363
9364if test "x$enable_dlopen" != xyes; then
9365 enable_dlopen=unknown
9366 enable_dlopen_self=unknown
9367 enable_dlopen_self_static=unknown
9368else
9369 lt_cv_dlopen=no
9370 lt_cv_dlopen_libs=
9371
9372 case $host_os in
9373 beos*)
9374 lt_cv_dlopen="load_add_on"
9375 lt_cv_dlopen_libs=
9376 lt_cv_dlopen_self=yes
9377 ;;
9378
9379 mingw* | pw32*)
9380 lt_cv_dlopen="LoadLibrary"
9381 lt_cv_dlopen_libs=
9382 ;;
9383
9384 cygwin*)
9385 lt_cv_dlopen="dlopen"
9386 lt_cv_dlopen_libs=
9387 ;;
9388
9389 darwin*)
9390 # if libdl is installed we need to link against it
dd184caf 9391 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9392echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 9393if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9394 echo $ECHO_N "(cached) $ECHO_C" >&6
9395else
9396 ac_check_lib_save_LIBS=$LIBS
9397LIBS="-ldl $LIBS"
9398cat >conftest.$ac_ext <<_ACEOF
9399/* confdefs.h. */
9400_ACEOF
9401cat confdefs.h >>conftest.$ac_ext
9402cat >>conftest.$ac_ext <<_ACEOF
9403/* end confdefs.h. */
9404
dd184caf 9405/* Override any GCC internal prototype to avoid an error.
9406 Use char because int might match the return type of a GCC
9407 builtin and then its argument prototype would still apply. */
d9898ee8 9408#ifdef __cplusplus
9409extern "C"
9410#endif
d9898ee8 9411char dlopen ();
9412int
9413main ()
9414{
dd184caf 9415return dlopen ();
d9898ee8 9416 ;
9417 return 0;
9418}
9419_ACEOF
9420rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9421if { (ac_try="$ac_link"
9422case "(($ac_try" in
9423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9424 *) ac_try_echo=$ac_try;;
9425esac
9426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9427 (eval "$ac_link") 2>conftest.er1
d9898ee8 9428 ac_status=$?
9429 grep -v '^ *+' conftest.er1 >conftest.err
9430 rm -f conftest.er1
9431 cat conftest.err >&5
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9433 (exit $ac_status); } && {
9434 test -z "$ac_c_werror_flag" ||
9435 test ! -s conftest.err
9436 } && test -s conftest$ac_exeext &&
9437 $as_test_x conftest$ac_exeext; then
d9898ee8 9438 ac_cv_lib_dl_dlopen=yes
9439else
9440 echo "$as_me: failed program was:" >&5
9441sed 's/^/| /' conftest.$ac_ext >&5
9442
dd184caf 9443 ac_cv_lib_dl_dlopen=no
d9898ee8 9444fi
dd184caf 9445
9446rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9447 conftest$ac_exeext conftest.$ac_ext
9448LIBS=$ac_check_lib_save_LIBS
9449fi
dd184caf 9450{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9451echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 9452if test $ac_cv_lib_dl_dlopen = yes; then
9453 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9454else
9455
9456 lt_cv_dlopen="dyld"
9457 lt_cv_dlopen_libs=
9458 lt_cv_dlopen_self=yes
9459
9460fi
9461
9462 ;;
9463
9464 *)
dd184caf 9465 { echo "$as_me:$LINENO: checking for shl_load" >&5
9466echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
d9898ee8 9467if test "${ac_cv_func_shl_load+set}" = set; then
9468 echo $ECHO_N "(cached) $ECHO_C" >&6
9469else
9470 cat >conftest.$ac_ext <<_ACEOF
9471/* confdefs.h. */
9472_ACEOF
9473cat confdefs.h >>conftest.$ac_ext
9474cat >>conftest.$ac_ext <<_ACEOF
9475/* end confdefs.h. */
9476/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9478#define shl_load innocuous_shl_load
9479
9480/* System header to define __stub macros and hopefully few prototypes,
9481 which can conflict with char shl_load (); below.
9482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9483 <limits.h> exists even on freestanding compilers. */
9484
9485#ifdef __STDC__
9486# include <limits.h>
9487#else
9488# include <assert.h>
9489#endif
9490
9491#undef shl_load
9492
dd184caf 9493/* Override any GCC internal prototype to avoid an error.
9494 Use char because int might match the return type of a GCC
9495 builtin and then its argument prototype would still apply. */
d9898ee8 9496#ifdef __cplusplus
9497extern "C"
d9898ee8 9498#endif
d9898ee8 9499char shl_load ();
9500/* The GNU C library defines this for functions which it implements
9501 to always fail with ENOSYS. Some functions are actually named
9502 something starting with __ and the normal name is an alias. */
dd184caf 9503#if defined __stub_shl_load || defined __stub___shl_load
d9898ee8 9504choke me
d9898ee8 9505#endif
9506
9507int
9508main ()
9509{
dd184caf 9510return shl_load ();
d9898ee8 9511 ;
9512 return 0;
9513}
9514_ACEOF
9515rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9516if { (ac_try="$ac_link"
9517case "(($ac_try" in
9518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9519 *) ac_try_echo=$ac_try;;
9520esac
9521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9522 (eval "$ac_link") 2>conftest.er1
d9898ee8 9523 ac_status=$?
9524 grep -v '^ *+' conftest.er1 >conftest.err
9525 rm -f conftest.er1
9526 cat conftest.err >&5
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9528 (exit $ac_status); } && {
9529 test -z "$ac_c_werror_flag" ||
9530 test ! -s conftest.err
9531 } && test -s conftest$ac_exeext &&
9532 $as_test_x conftest$ac_exeext; then
d9898ee8 9533 ac_cv_func_shl_load=yes
9534else
9535 echo "$as_me: failed program was:" >&5
9536sed 's/^/| /' conftest.$ac_ext >&5
9537
dd184caf 9538 ac_cv_func_shl_load=no
d9898ee8 9539fi
dd184caf 9540
9541rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9542 conftest$ac_exeext conftest.$ac_ext
9543fi
dd184caf 9544{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9545echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
d9898ee8 9546if test $ac_cv_func_shl_load = yes; then
9547 lt_cv_dlopen="shl_load"
9548else
dd184caf 9549 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9550echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
d9898ee8 9551if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9552 echo $ECHO_N "(cached) $ECHO_C" >&6
9553else
9554 ac_check_lib_save_LIBS=$LIBS
9555LIBS="-ldld $LIBS"
9556cat >conftest.$ac_ext <<_ACEOF
9557/* confdefs.h. */
9558_ACEOF
9559cat confdefs.h >>conftest.$ac_ext
9560cat >>conftest.$ac_ext <<_ACEOF
9561/* end confdefs.h. */
9562
dd184caf 9563/* Override any GCC internal prototype to avoid an error.
9564 Use char because int might match the return type of a GCC
9565 builtin and then its argument prototype would still apply. */
d9898ee8 9566#ifdef __cplusplus
9567extern "C"
9568#endif
d9898ee8 9569char shl_load ();
9570int
9571main ()
9572{
dd184caf 9573return shl_load ();
d9898ee8 9574 ;
9575 return 0;
9576}
9577_ACEOF
9578rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9579if { (ac_try="$ac_link"
9580case "(($ac_try" in
9581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9582 *) ac_try_echo=$ac_try;;
9583esac
9584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9585 (eval "$ac_link") 2>conftest.er1
d9898ee8 9586 ac_status=$?
9587 grep -v '^ *+' conftest.er1 >conftest.err
9588 rm -f conftest.er1
9589 cat conftest.err >&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9591 (exit $ac_status); } && {
9592 test -z "$ac_c_werror_flag" ||
9593 test ! -s conftest.err
9594 } && test -s conftest$ac_exeext &&
9595 $as_test_x conftest$ac_exeext; then
d9898ee8 9596 ac_cv_lib_dld_shl_load=yes
9597else
9598 echo "$as_me: failed program was:" >&5
9599sed 's/^/| /' conftest.$ac_ext >&5
9600
dd184caf 9601 ac_cv_lib_dld_shl_load=no
d9898ee8 9602fi
dd184caf 9603
9604rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9605 conftest$ac_exeext conftest.$ac_ext
9606LIBS=$ac_check_lib_save_LIBS
9607fi
dd184caf 9608{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9609echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
d9898ee8 9610if test $ac_cv_lib_dld_shl_load = yes; then
9611 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9612else
dd184caf 9613 { echo "$as_me:$LINENO: checking for dlopen" >&5
9614echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
d9898ee8 9615if test "${ac_cv_func_dlopen+set}" = set; then
9616 echo $ECHO_N "(cached) $ECHO_C" >&6
9617else
9618 cat >conftest.$ac_ext <<_ACEOF
9619/* confdefs.h. */
9620_ACEOF
9621cat confdefs.h >>conftest.$ac_ext
9622cat >>conftest.$ac_ext <<_ACEOF
9623/* end confdefs.h. */
9624/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9626#define dlopen innocuous_dlopen
9627
9628/* System header to define __stub macros and hopefully few prototypes,
9629 which can conflict with char dlopen (); below.
9630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9631 <limits.h> exists even on freestanding compilers. */
9632
9633#ifdef __STDC__
9634# include <limits.h>
9635#else
9636# include <assert.h>
9637#endif
9638
9639#undef dlopen
9640
dd184caf 9641/* Override any GCC internal prototype to avoid an error.
9642 Use char because int might match the return type of a GCC
9643 builtin and then its argument prototype would still apply. */
d9898ee8 9644#ifdef __cplusplus
9645extern "C"
d9898ee8 9646#endif
d9898ee8 9647char dlopen ();
9648/* The GNU C library defines this for functions which it implements
9649 to always fail with ENOSYS. Some functions are actually named
9650 something starting with __ and the normal name is an alias. */
dd184caf 9651#if defined __stub_dlopen || defined __stub___dlopen
d9898ee8 9652choke me
d9898ee8 9653#endif
9654
9655int
9656main ()
9657{
dd184caf 9658return dlopen ();
d9898ee8 9659 ;
9660 return 0;
9661}
9662_ACEOF
9663rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9664if { (ac_try="$ac_link"
9665case "(($ac_try" in
9666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9667 *) ac_try_echo=$ac_try;;
9668esac
9669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9670 (eval "$ac_link") 2>conftest.er1
d9898ee8 9671 ac_status=$?
9672 grep -v '^ *+' conftest.er1 >conftest.err
9673 rm -f conftest.er1
9674 cat conftest.err >&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9676 (exit $ac_status); } && {
9677 test -z "$ac_c_werror_flag" ||
9678 test ! -s conftest.err
9679 } && test -s conftest$ac_exeext &&
9680 $as_test_x conftest$ac_exeext; then
d9898ee8 9681 ac_cv_func_dlopen=yes
9682else
9683 echo "$as_me: failed program was:" >&5
9684sed 's/^/| /' conftest.$ac_ext >&5
9685
dd184caf 9686 ac_cv_func_dlopen=no
d9898ee8 9687fi
dd184caf 9688
9689rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9690 conftest$ac_exeext conftest.$ac_ext
9691fi
dd184caf 9692{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9693echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
d9898ee8 9694if test $ac_cv_func_dlopen = yes; then
9695 lt_cv_dlopen="dlopen"
9696else
dd184caf 9697 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9698echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 9699if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9700 echo $ECHO_N "(cached) $ECHO_C" >&6
9701else
9702 ac_check_lib_save_LIBS=$LIBS
9703LIBS="-ldl $LIBS"
9704cat >conftest.$ac_ext <<_ACEOF
9705/* confdefs.h. */
9706_ACEOF
9707cat confdefs.h >>conftest.$ac_ext
9708cat >>conftest.$ac_ext <<_ACEOF
9709/* end confdefs.h. */
9710
dd184caf 9711/* Override any GCC internal prototype to avoid an error.
9712 Use char because int might match the return type of a GCC
9713 builtin and then its argument prototype would still apply. */
d9898ee8 9714#ifdef __cplusplus
9715extern "C"
9716#endif
d9898ee8 9717char dlopen ();
9718int
9719main ()
9720{
dd184caf 9721return dlopen ();
d9898ee8 9722 ;
9723 return 0;
9724}
9725_ACEOF
9726rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9727if { (ac_try="$ac_link"
9728case "(($ac_try" in
9729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9730 *) ac_try_echo=$ac_try;;
9731esac
9732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9733 (eval "$ac_link") 2>conftest.er1
d9898ee8 9734 ac_status=$?
9735 grep -v '^ *+' conftest.er1 >conftest.err
9736 rm -f conftest.er1
9737 cat conftest.err >&5
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9739 (exit $ac_status); } && {
9740 test -z "$ac_c_werror_flag" ||
9741 test ! -s conftest.err
9742 } && test -s conftest$ac_exeext &&
9743 $as_test_x conftest$ac_exeext; then
d9898ee8 9744 ac_cv_lib_dl_dlopen=yes
9745else
9746 echo "$as_me: failed program was:" >&5
9747sed 's/^/| /' conftest.$ac_ext >&5
9748
dd184caf 9749 ac_cv_lib_dl_dlopen=no
d9898ee8 9750fi
dd184caf 9751
9752rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9753 conftest$ac_exeext conftest.$ac_ext
9754LIBS=$ac_check_lib_save_LIBS
9755fi
dd184caf 9756{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9757echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 9758if test $ac_cv_lib_dl_dlopen = yes; then
9759 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9760else
dd184caf 9761 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9762echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
d9898ee8 9763if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9764 echo $ECHO_N "(cached) $ECHO_C" >&6
9765else
9766 ac_check_lib_save_LIBS=$LIBS
9767LIBS="-lsvld $LIBS"
9768cat >conftest.$ac_ext <<_ACEOF
9769/* confdefs.h. */
9770_ACEOF
9771cat confdefs.h >>conftest.$ac_ext
9772cat >>conftest.$ac_ext <<_ACEOF
9773/* end confdefs.h. */
9774
dd184caf 9775/* Override any GCC internal prototype to avoid an error.
9776 Use char because int might match the return type of a GCC
9777 builtin and then its argument prototype would still apply. */
d9898ee8 9778#ifdef __cplusplus
9779extern "C"
9780#endif
d9898ee8 9781char dlopen ();
9782int
9783main ()
9784{
dd184caf 9785return dlopen ();
d9898ee8 9786 ;
9787 return 0;
9788}
9789_ACEOF
9790rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9791if { (ac_try="$ac_link"
9792case "(($ac_try" in
9793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9794 *) ac_try_echo=$ac_try;;
9795esac
9796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9797 (eval "$ac_link") 2>conftest.er1
d9898ee8 9798 ac_status=$?
9799 grep -v '^ *+' conftest.er1 >conftest.err
9800 rm -f conftest.er1
9801 cat conftest.err >&5
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9803 (exit $ac_status); } && {
9804 test -z "$ac_c_werror_flag" ||
9805 test ! -s conftest.err
9806 } && test -s conftest$ac_exeext &&
9807 $as_test_x conftest$ac_exeext; then
d9898ee8 9808 ac_cv_lib_svld_dlopen=yes
9809else
9810 echo "$as_me: failed program was:" >&5
9811sed 's/^/| /' conftest.$ac_ext >&5
9812
dd184caf 9813 ac_cv_lib_svld_dlopen=no
d9898ee8 9814fi
dd184caf 9815
9816rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9817 conftest$ac_exeext conftest.$ac_ext
9818LIBS=$ac_check_lib_save_LIBS
9819fi
dd184caf 9820{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9821echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
d9898ee8 9822if test $ac_cv_lib_svld_dlopen = yes; then
9823 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9824else
dd184caf 9825 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9826echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
d9898ee8 9827if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9828 echo $ECHO_N "(cached) $ECHO_C" >&6
9829else
9830 ac_check_lib_save_LIBS=$LIBS
9831LIBS="-ldld $LIBS"
9832cat >conftest.$ac_ext <<_ACEOF
9833/* confdefs.h. */
9834_ACEOF
9835cat confdefs.h >>conftest.$ac_ext
9836cat >>conftest.$ac_ext <<_ACEOF
9837/* end confdefs.h. */
9838
dd184caf 9839/* Override any GCC internal prototype to avoid an error.
9840 Use char because int might match the return type of a GCC
9841 builtin and then its argument prototype would still apply. */
d9898ee8 9842#ifdef __cplusplus
9843extern "C"
9844#endif
d9898ee8 9845char dld_link ();
9846int
9847main ()
9848{
dd184caf 9849return dld_link ();
d9898ee8 9850 ;
9851 return 0;
9852}
9853_ACEOF
9854rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9855if { (ac_try="$ac_link"
9856case "(($ac_try" in
9857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9858 *) ac_try_echo=$ac_try;;
9859esac
9860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9861 (eval "$ac_link") 2>conftest.er1
d9898ee8 9862 ac_status=$?
9863 grep -v '^ *+' conftest.er1 >conftest.err
9864 rm -f conftest.er1
9865 cat conftest.err >&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9867 (exit $ac_status); } && {
9868 test -z "$ac_c_werror_flag" ||
9869 test ! -s conftest.err
9870 } && test -s conftest$ac_exeext &&
9871 $as_test_x conftest$ac_exeext; then
d9898ee8 9872 ac_cv_lib_dld_dld_link=yes
9873else
9874 echo "$as_me: failed program was:" >&5
9875sed 's/^/| /' conftest.$ac_ext >&5
9876
dd184caf 9877 ac_cv_lib_dld_dld_link=no
d9898ee8 9878fi
dd184caf 9879
9880rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9881 conftest$ac_exeext conftest.$ac_ext
9882LIBS=$ac_check_lib_save_LIBS
9883fi
dd184caf 9884{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9885echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
d9898ee8 9886if test $ac_cv_lib_dld_dld_link = yes; then
9887 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9888fi
9889
9890
9891fi
9892
9893
9894fi
9895
9896
9897fi
9898
9899
9900fi
9901
9902
9903fi
9904
9905 ;;
9906 esac
9907
9908 if test "x$lt_cv_dlopen" != xno; then
9909 enable_dlopen=yes
9910 else
9911 enable_dlopen=no
9912 fi
9913
9914 case $lt_cv_dlopen in
9915 dlopen)
9916 save_CPPFLAGS="$CPPFLAGS"
9917 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9918
9919 save_LDFLAGS="$LDFLAGS"
9920 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9921
9922 save_LIBS="$LIBS"
9923 LIBS="$lt_cv_dlopen_libs $LIBS"
9924
dd184caf 9925 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9926echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
d9898ee8 9927if test "${lt_cv_dlopen_self+set}" = set; then
9928 echo $ECHO_N "(cached) $ECHO_C" >&6
9929else
9930 if test "$cross_compiling" = yes; then :
9931 lt_cv_dlopen_self=cross
9932else
9933 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9934 lt_status=$lt_dlunknown
9935 cat > conftest.$ac_ext <<EOF
ac40fd9e 9936#line 9936 "configure"
d9898ee8 9937#include "confdefs.h"
9938
9939#if HAVE_DLFCN_H
9940#include <dlfcn.h>
9941#endif
9942
9943#include <stdio.h>
9944
9945#ifdef RTLD_GLOBAL
9946# define LT_DLGLOBAL RTLD_GLOBAL
9947#else
9948# ifdef DL_GLOBAL
9949# define LT_DLGLOBAL DL_GLOBAL
9950# else
9951# define LT_DLGLOBAL 0
9952# endif
9953#endif
9954
9955/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9956 find out it does not work in some platform. */
9957#ifndef LT_DLLAZY_OR_NOW
9958# ifdef RTLD_LAZY
9959# define LT_DLLAZY_OR_NOW RTLD_LAZY
9960# else
9961# ifdef DL_LAZY
9962# define LT_DLLAZY_OR_NOW DL_LAZY
9963# else
9964# ifdef RTLD_NOW
9965# define LT_DLLAZY_OR_NOW RTLD_NOW
9966# else
9967# ifdef DL_NOW
9968# define LT_DLLAZY_OR_NOW DL_NOW
9969# else
9970# define LT_DLLAZY_OR_NOW 0
9971# endif
9972# endif
9973# endif
9974# endif
9975#endif
9976
9977#ifdef __cplusplus
9978extern "C" void exit (int);
9979#endif
9980
9981void fnord() { int i=42;}
9982int main ()
9983{
9984 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9985 int status = $lt_dlunknown;
9986
9987 if (self)
9988 {
9989 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9990 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9991 /* dlclose (self); */
9992 }
9993 else
9994 puts (dlerror ());
9995
9996 exit (status);
9997}
9998EOF
9999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10000 (eval $ac_link) 2>&5
10001 ac_status=$?
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10004 (./conftest; exit; ) >&5 2>/dev/null
10005 lt_status=$?
10006 case x$lt_status in
10007 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10008 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10009 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10010 esac
10011 else :
10012 # compilation failed
10013 lt_cv_dlopen_self=no
10014 fi
10015fi
10016rm -fr conftest*
10017
10018
10019fi
dd184caf 10020{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10021echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
d9898ee8 10022
10023 if test "x$lt_cv_dlopen_self" = xyes; then
10024 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
dd184caf 10025 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10026echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
d9898ee8 10027if test "${lt_cv_dlopen_self_static+set}" = set; then
10028 echo $ECHO_N "(cached) $ECHO_C" >&6
10029else
10030 if test "$cross_compiling" = yes; then :
10031 lt_cv_dlopen_self_static=cross
10032else
10033 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10034 lt_status=$lt_dlunknown
10035 cat > conftest.$ac_ext <<EOF
ac40fd9e 10036#line 10036 "configure"
d9898ee8 10037#include "confdefs.h"
10038
10039#if HAVE_DLFCN_H
10040#include <dlfcn.h>
10041#endif
10042
10043#include <stdio.h>
10044
10045#ifdef RTLD_GLOBAL
10046# define LT_DLGLOBAL RTLD_GLOBAL
10047#else
10048# ifdef DL_GLOBAL
10049# define LT_DLGLOBAL DL_GLOBAL
10050# else
10051# define LT_DLGLOBAL 0
10052# endif
10053#endif
10054
10055/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10056 find out it does not work in some platform. */
10057#ifndef LT_DLLAZY_OR_NOW
10058# ifdef RTLD_LAZY
10059# define LT_DLLAZY_OR_NOW RTLD_LAZY
10060# else
10061# ifdef DL_LAZY
10062# define LT_DLLAZY_OR_NOW DL_LAZY
10063# else
10064# ifdef RTLD_NOW
10065# define LT_DLLAZY_OR_NOW RTLD_NOW
10066# else
10067# ifdef DL_NOW
10068# define LT_DLLAZY_OR_NOW DL_NOW
10069# else
10070# define LT_DLLAZY_OR_NOW 0
10071# endif
10072# endif
10073# endif
10074# endif
10075#endif
10076
10077#ifdef __cplusplus
10078extern "C" void exit (int);
10079#endif
10080
10081void fnord() { int i=42;}
10082int main ()
10083{
10084 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10085 int status = $lt_dlunknown;
10086
10087 if (self)
10088 {
10089 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10090 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10091 /* dlclose (self); */
10092 }
10093 else
10094 puts (dlerror ());
10095
10096 exit (status);
10097}
10098EOF
10099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10100 (eval $ac_link) 2>&5
10101 ac_status=$?
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10104 (./conftest; exit; ) >&5 2>/dev/null
10105 lt_status=$?
10106 case x$lt_status in
10107 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10108 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10109 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10110 esac
10111 else :
10112 # compilation failed
10113 lt_cv_dlopen_self_static=no
10114 fi
10115fi
10116rm -fr conftest*
10117
10118
10119fi
dd184caf 10120{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10121echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
d9898ee8 10122 fi
10123
10124 CPPFLAGS="$save_CPPFLAGS"
10125 LDFLAGS="$save_LDFLAGS"
10126 LIBS="$save_LIBS"
10127 ;;
10128 esac
10129
10130 case $lt_cv_dlopen_self in
10131 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10132 *) enable_dlopen_self=unknown ;;
10133 esac
10134
10135 case $lt_cv_dlopen_self_static in
10136 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10137 *) enable_dlopen_self_static=unknown ;;
10138 esac
10139fi
10140
10141
10142# Report which library types will actually be built
dd184caf 10143{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10144echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10145{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10146echo "${ECHO_T}$can_build_shared" >&6; }
d9898ee8 10147
dd184caf 10148{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10149echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d9898ee8 10150test "$can_build_shared" = "no" && enable_shared=no
10151
10152# On AIX, shared libraries and static libraries use the same namespace, and
10153# are all built from PIC.
10154case $host_os in
10155aix3*)
10156 test "$enable_shared" = yes && enable_static=no
10157 if test -n "$RANLIB"; then
10158 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10159 postinstall_cmds='$RANLIB $lib'
10160 fi
10161 ;;
10162
10163aix4* | aix5*)
10164 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10165 test "$enable_shared" = yes && enable_static=no
10166 fi
10167 ;;
10168esac
dd184caf 10169{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10170echo "${ECHO_T}$enable_shared" >&6; }
d9898ee8 10171
dd184caf 10172{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10173echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d9898ee8 10174# Make sure either enable_shared or enable_static is yes.
10175test "$enable_shared" = yes || enable_static=yes
dd184caf 10176{ echo "$as_me:$LINENO: result: $enable_static" >&5
10177echo "${ECHO_T}$enable_static" >&6; }
d9898ee8 10178
10179# The else clause should only fire when bootstrapping the
10180# libtool distribution, otherwise you forgot to ship ltmain.sh
10181# with your package, and you will get complaints that there are
10182# no rules to generate ltmain.sh.
10183if test -f "$ltmain"; then
10184 # See if we are running on zsh, and set the options which allow our commands through
10185 # without removal of \ escapes.
10186 if test -n "${ZSH_VERSION+set}" ; then
10187 setopt NO_GLOB_SUBST
10188 fi
10189 # Now quote all the things that may contain metacharacters while being
10190 # careful not to overquote the AC_SUBSTed values. We take copies of the
10191 # variables and quote the copies for generation of the libtool script.
10192 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10193 SED SHELL STRIP \
10194 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10195 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10196 deplibs_check_method reload_flag reload_cmds need_locks \
10197 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10198 lt_cv_sys_global_symbol_to_c_name_address \
10199 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10200 old_postinstall_cmds old_postuninstall_cmds \
10201 compiler \
10202 CC \
10203 LD \
10204 lt_prog_compiler_wl \
10205 lt_prog_compiler_pic \
10206 lt_prog_compiler_static \
10207 lt_prog_compiler_no_builtin_flag \
10208 export_dynamic_flag_spec \
10209 thread_safe_flag_spec \
10210 whole_archive_flag_spec \
10211 enable_shared_with_static_runtimes \
10212 old_archive_cmds \
10213 old_archive_from_new_cmds \
10214 predep_objects \
10215 postdep_objects \
10216 predeps \
10217 postdeps \
10218 compiler_lib_search_path \
10219 archive_cmds \
10220 archive_expsym_cmds \
10221 postinstall_cmds \
10222 postuninstall_cmds \
10223 old_archive_from_expsyms_cmds \
10224 allow_undefined_flag \
10225 no_undefined_flag \
10226 export_symbols_cmds \
10227 hardcode_libdir_flag_spec \
10228 hardcode_libdir_flag_spec_ld \
10229 hardcode_libdir_separator \
10230 hardcode_automatic \
10231 module_cmds \
10232 module_expsym_cmds \
10233 lt_cv_prog_compiler_c_o \
ac40fd9e 10234 fix_srcfile_path \
d9898ee8 10235 exclude_expsyms \
10236 include_expsyms; do
10237
10238 case $var in
10239 old_archive_cmds | \
10240 old_archive_from_new_cmds | \
10241 archive_cmds | \
10242 archive_expsym_cmds | \
10243 module_cmds | \
10244 module_expsym_cmds | \
10245 old_archive_from_expsyms_cmds | \
10246 export_symbols_cmds | \
10247 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10248 postinstall_cmds | postuninstall_cmds | \
10249 old_postinstall_cmds | old_postuninstall_cmds | \
10250 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10251 # Double-quote double-evaled strings.
10252 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10253 ;;
10254 *)
10255 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10256 ;;
10257 esac
10258 done
10259
10260 case $lt_echo in
10261 *'\$0 --fallback-echo"')
10262 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10263 ;;
10264 esac
10265
10266cfgfile="${ofile}T"
10267 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10268 $rm -f "$cfgfile"
10269 { echo "$as_me:$LINENO: creating $ofile" >&5
10270echo "$as_me: creating $ofile" >&6;}
10271
10272 cat <<__EOF__ >> "$cfgfile"
10273#! $SHELL
10274
10275# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10276# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10277# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10278#
ac40fd9e 10279# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
d9898ee8 10280# Free Software Foundation, Inc.
10281#
10282# This file is part of GNU Libtool:
10283# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10284#
10285# This program is free software; you can redistribute it and/or modify
10286# it under the terms of the GNU General Public License as published by
10287# the Free Software Foundation; either version 2 of the License, or
10288# (at your option) any later version.
10289#
10290# This program is distributed in the hope that it will be useful, but
10291# WITHOUT ANY WARRANTY; without even the implied warranty of
10292# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10293# General Public License for more details.
10294#
10295# You should have received a copy of the GNU General Public License
10296# along with this program; if not, write to the Free Software
10297# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10298#
10299# As a special exception to the GNU General Public License, if you
10300# distribute this file as part of a program that contains a
10301# configuration script generated by Autoconf, you may include it under
10302# the same distribution terms that you use for the rest of that program.
10303
10304# A sed program that does not truncate output.
10305SED=$lt_SED
10306
10307# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10308Xsed="$SED -e 1s/^X//"
10309
10310# The HP-UX ksh and POSIX shell print the target directory to stdout
10311# if CDPATH is set.
10312(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10313
10314# The names of the tagged configurations supported by this script.
10315available_tags=
10316
10317# ### BEGIN LIBTOOL CONFIG
10318
10319# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10320
10321# Shell to use when invoking shell scripts.
10322SHELL=$lt_SHELL
10323
10324# Whether or not to build shared libraries.
10325build_libtool_libs=$enable_shared
10326
10327# Whether or not to build static libraries.
10328build_old_libs=$enable_static
10329
10330# Whether or not to add -lc for building shared libraries.
10331build_libtool_need_lc=$archive_cmds_need_lc
10332
10333# Whether or not to disallow shared libs when runtime libs are static
10334allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10335
10336# Whether or not to optimize for fast installation.
10337fast_install=$enable_fast_install
10338
10339# The host system.
10340host_alias=$host_alias
10341host=$host
10342host_os=$host_os
10343
10344# The build system.
10345build_alias=$build_alias
10346build=$build
10347build_os=$build_os
10348
10349# An echo program that does not interpret backslashes.
10350echo=$lt_echo
10351
10352# The archiver.
10353AR=$lt_AR
10354AR_FLAGS=$lt_AR_FLAGS
10355
10356# A C compiler.
10357LTCC=$lt_LTCC
10358
10359# LTCC compiler flags.
10360LTCFLAGS=$lt_LTCFLAGS
10361
10362# A language-specific compiler.
10363CC=$lt_compiler
10364
10365# Is the compiler the GNU C compiler?
10366with_gcc=$GCC
10367
d9898ee8 10368# An ERE matcher.
10369EGREP=$lt_EGREP
10370
10371# The linker used to build libraries.
10372LD=$lt_LD
10373
10374# Whether we need hard or soft links.
10375LN_S=$lt_LN_S
10376
10377# A BSD-compatible nm program.
10378NM=$lt_NM
10379
10380# A symbol stripping program
10381STRIP=$lt_STRIP
10382
10383# Used to examine libraries when file_magic_cmd begins "file"
10384MAGIC_CMD=$MAGIC_CMD
10385
10386# Used on cygwin: DLL creation program.
10387DLLTOOL="$DLLTOOL"
10388
10389# Used on cygwin: object dumper.
10390OBJDUMP="$OBJDUMP"
10391
10392# Used on cygwin: assembler.
10393AS="$AS"
10394
10395# The name of the directory that contains temporary libtool files.
10396objdir=$objdir
10397
10398# How to create reloadable object files.
10399reload_flag=$lt_reload_flag
10400reload_cmds=$lt_reload_cmds
10401
10402# How to pass a linker flag through the compiler.
10403wl=$lt_lt_prog_compiler_wl
10404
10405# Object file suffix (normally "o").
10406objext="$ac_objext"
10407
10408# Old archive suffix (normally "a").
10409libext="$libext"
10410
10411# Shared library suffix (normally ".so").
10412shrext_cmds='$shrext_cmds'
10413
10414# Executable file suffix (normally "").
10415exeext="$exeext"
10416
10417# Additional compiler flags for building library objects.
10418pic_flag=$lt_lt_prog_compiler_pic
10419pic_mode=$pic_mode
10420
10421# What is the maximum length of a command?
10422max_cmd_len=$lt_cv_sys_max_cmd_len
10423
10424# Does compiler simultaneously support -c and -o options?
10425compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10426
10427# Must we lock files when doing compilation?
10428need_locks=$lt_need_locks
10429
10430# Do we need the lib prefix for modules?
10431need_lib_prefix=$need_lib_prefix
10432
10433# Do we need a version for libraries?
10434need_version=$need_version
10435
10436# Whether dlopen is supported.
10437dlopen_support=$enable_dlopen
10438
10439# Whether dlopen of programs is supported.
10440dlopen_self=$enable_dlopen_self
10441
10442# Whether dlopen of statically linked programs is supported.
10443dlopen_self_static=$enable_dlopen_self_static
10444
10445# Compiler flag to prevent dynamic linking.
10446link_static_flag=$lt_lt_prog_compiler_static
10447
10448# Compiler flag to turn off builtin functions.
10449no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10450
10451# Compiler flag to allow reflexive dlopens.
10452export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10453
10454# Compiler flag to generate shared objects directly from archives.
10455whole_archive_flag_spec=$lt_whole_archive_flag_spec
10456
10457# Compiler flag to generate thread-safe objects.
10458thread_safe_flag_spec=$lt_thread_safe_flag_spec
10459
10460# Library versioning type.
10461version_type=$version_type
10462
10463# Format of library name prefix.
10464libname_spec=$lt_libname_spec
10465
10466# List of archive names. First name is the real one, the rest are links.
10467# The last name is the one that the linker finds with -lNAME.
10468library_names_spec=$lt_library_names_spec
10469
10470# The coded name of the library, if different from the real name.
10471soname_spec=$lt_soname_spec
10472
10473# Commands used to build and install an old-style archive.
10474RANLIB=$lt_RANLIB
10475old_archive_cmds=$lt_old_archive_cmds
10476old_postinstall_cmds=$lt_old_postinstall_cmds
10477old_postuninstall_cmds=$lt_old_postuninstall_cmds
10478
10479# Create an old-style archive from a shared archive.
10480old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10481
10482# Create a temporary old-style archive to link instead of a shared archive.
10483old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10484
10485# Commands used to build and install a shared archive.
10486archive_cmds=$lt_archive_cmds
10487archive_expsym_cmds=$lt_archive_expsym_cmds
10488postinstall_cmds=$lt_postinstall_cmds
10489postuninstall_cmds=$lt_postuninstall_cmds
10490
10491# Commands used to build a loadable module (assumed same as above if empty)
10492module_cmds=$lt_module_cmds
10493module_expsym_cmds=$lt_module_expsym_cmds
10494
10495# Commands to strip libraries.
10496old_striplib=$lt_old_striplib
10497striplib=$lt_striplib
10498
10499# Dependencies to place before the objects being linked to create a
10500# shared library.
dd184caf 10501predep_objects=$lt_predep_objects
d9898ee8 10502
10503# Dependencies to place after the objects being linked to create a
10504# shared library.
dd184caf 10505postdep_objects=$lt_postdep_objects
d9898ee8 10506
10507# Dependencies to place before the objects being linked to create a
10508# shared library.
10509predeps=$lt_predeps
10510
10511# Dependencies to place after the objects being linked to create a
10512# shared library.
10513postdeps=$lt_postdeps
10514
10515# The library search path used internally by the compiler when linking
10516# a shared library.
dd184caf 10517compiler_lib_search_path=$lt_compiler_lib_search_path
d9898ee8 10518
10519# Method to check whether dependent libraries are shared objects.
10520deplibs_check_method=$lt_deplibs_check_method
10521
10522# Command to use when deplibs_check_method == file_magic.
10523file_magic_cmd=$lt_file_magic_cmd
10524
10525# Flag that allows shared libraries with undefined symbols to be built.
10526allow_undefined_flag=$lt_allow_undefined_flag
10527
10528# Flag that forces no undefined symbols.
10529no_undefined_flag=$lt_no_undefined_flag
10530
10531# Commands used to finish a libtool library installation in a directory.
10532finish_cmds=$lt_finish_cmds
10533
10534# Same as above, but a single script fragment to be evaled but not shown.
10535finish_eval=$lt_finish_eval
10536
10537# Take the output of nm and produce a listing of raw symbols and C names.
10538global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10539
10540# Transform the output of nm in a proper C declaration
10541global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10542
10543# Transform the output of nm in a C name address pair
10544global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10545
10546# This is the shared library runtime path variable.
10547runpath_var=$runpath_var
10548
10549# This is the shared library path variable.
10550shlibpath_var=$shlibpath_var
10551
10552# Is shlibpath searched before the hard-coded library search path?
10553shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10554
10555# How to hardcode a shared library path into an executable.
10556hardcode_action=$hardcode_action
10557
10558# Whether we should hardcode library paths into libraries.
10559hardcode_into_libs=$hardcode_into_libs
10560
10561# Flag to hardcode \$libdir into a binary during linking.
10562# This must work even if \$libdir does not exist.
10563hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10564
10565# If ld is used when linking, flag to hardcode \$libdir into
10566# a binary during linking. This must work even if \$libdir does
10567# not exist.
10568hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10569
10570# Whether we need a single -rpath flag with a separated argument.
10571hardcode_libdir_separator=$lt_hardcode_libdir_separator
10572
10573# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10574# resulting binary.
10575hardcode_direct=$hardcode_direct
10576
10577# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10578# resulting binary.
10579hardcode_minus_L=$hardcode_minus_L
10580
10581# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10582# the resulting binary.
10583hardcode_shlibpath_var=$hardcode_shlibpath_var
10584
10585# Set to yes if building a shared library automatically hardcodes DIR into the library
10586# and all subsequent libraries and executables linked against it.
10587hardcode_automatic=$hardcode_automatic
10588
10589# Variables whose values should be saved in libtool wrapper scripts and
10590# restored at relink time.
10591variables_saved_for_relink="$variables_saved_for_relink"
10592
10593# Whether libtool must link a program against all its dependency libraries.
10594link_all_deplibs=$link_all_deplibs
10595
10596# Compile-time system search path for libraries
dd184caf 10597sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 10598
10599# Run-time system search path for libraries
10600sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10601
10602# Fix the shell variable \$srcfile for the compiler.
ac40fd9e 10603fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 10604
10605# Set to yes if exported symbols are required.
10606always_export_symbols=$always_export_symbols
10607
10608# The commands to list exported symbols.
10609export_symbols_cmds=$lt_export_symbols_cmds
10610
10611# The commands to extract the exported symbol list from a shared archive.
10612extract_expsyms_cmds=$lt_extract_expsyms_cmds
10613
10614# Symbols that should not be listed in the preloaded symbols.
10615exclude_expsyms=$lt_exclude_expsyms
10616
10617# Symbols that must always be exported.
10618include_expsyms=$lt_include_expsyms
10619
10620# ### END LIBTOOL CONFIG
10621
10622__EOF__
10623
10624
10625 case $host_os in
10626 aix3*)
10627 cat <<\EOF >> "$cfgfile"
10628
10629# AIX sometimes has problems with the GCC collect2 program. For some
10630# reason, if we set the COLLECT_NAMES environment variable, the problems
10631# vanish in a puff of smoke.
10632if test "X${COLLECT_NAMES+set}" != Xset; then
10633 COLLECT_NAMES=
10634 export COLLECT_NAMES
10635fi
10636EOF
10637 ;;
10638 esac
10639
10640 # We use sed instead of cat because bash on DJGPP gets confused if
10641 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10642 # text mode, it properly converts lines to CR/LF. This bash problem
10643 # is reportedly fixed, but why not run on old versions too?
10644 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10645
10646 mv -f "$cfgfile" "$ofile" || \
10647 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10648 chmod +x "$ofile"
10649
10650else
10651 # If there is no Makefile yet, we rely on a make rule to execute
10652 # `config.status --recheck' to rerun these tests and create the
10653 # libtool script then.
10654 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10655 if test -f "$ltmain_in"; then
10656 test -f Makefile && make "$ltmain"
10657 fi
10658fi
10659
10660
10661ac_ext=c
10662ac_cpp='$CPP $CPPFLAGS'
10663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10665ac_compiler_gnu=$ac_cv_c_compiler_gnu
10666
10667CC="$lt_save_CC"
10668
10669
dd184caf 10670# Check whether --with-tags was given.
d9898ee8 10671if test "${with_tags+set}" = set; then
dd184caf 10672 withval=$with_tags; tagnames="$withval"
10673fi
10674
d9898ee8 10675
10676if test -f "$ltmain" && test -n "$tagnames"; then
10677 if test ! -f "${ofile}"; then
10678 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10679echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10680 fi
10681
10682 if test -z "$LTCC"; then
10683 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10684 if test -z "$LTCC"; then
10685 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10686echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10687 else
10688 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10689echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10690 fi
10691 fi
10692 if test -z "$LTCFLAGS"; then
10693 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10694 fi
10695
10696 # Extract list of available tagged configurations in $ofile.
10697 # Note that this assumes the entire list is on one line.
10698 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10699
10700 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10701 for tagname in $tagnames; do
10702 IFS="$lt_save_ifs"
10703 # Check whether tagname contains only valid characters
10704 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10705 "") ;;
10706 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10707echo "$as_me: error: invalid tag name: $tagname" >&2;}
10708 { (exit 1); exit 1; }; }
10709 ;;
10710 esac
10711
10712 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10713 then
10714 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10715echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10716 { (exit 1); exit 1; }; }
10717 fi
10718
10719 # Update the list of available tags.
10720 if test -n "$tagname"; then
10721 echo appending configuration tag \"$tagname\" to $ofile
10722
10723 case $tagname in
10724 CXX)
10725 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10726 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10727 (test "X$CXX" != "Xg++"))) ; then
dd184caf 10728 ac_ext=cpp
d9898ee8 10729ac_cpp='$CXXCPP $CPPFLAGS'
10730ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10731ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10732ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10733
10734
10735
10736
10737archive_cmds_need_lc_CXX=no
10738allow_undefined_flag_CXX=
10739always_export_symbols_CXX=no
10740archive_expsym_cmds_CXX=
10741export_dynamic_flag_spec_CXX=
10742hardcode_direct_CXX=no
10743hardcode_libdir_flag_spec_CXX=
10744hardcode_libdir_flag_spec_ld_CXX=
10745hardcode_libdir_separator_CXX=
10746hardcode_minus_L_CXX=no
10747hardcode_shlibpath_var_CXX=unsupported
10748hardcode_automatic_CXX=no
10749module_cmds_CXX=
10750module_expsym_cmds_CXX=
10751link_all_deplibs_CXX=unknown
10752old_archive_cmds_CXX=$old_archive_cmds
10753no_undefined_flag_CXX=
10754whole_archive_flag_spec_CXX=
10755enable_shared_with_static_runtimes_CXX=no
10756
10757# Dependencies to place before and after the object being linked:
10758predep_objects_CXX=
10759postdep_objects_CXX=
10760predeps_CXX=
10761postdeps_CXX=
10762compiler_lib_search_path_CXX=
10763
10764# Source file extension for C++ test sources.
10765ac_ext=cpp
10766
10767# Object file extension for compiled C++ test sources.
10768objext=o
10769objext_CXX=$objext
10770
10771# Code to be used in simple compile tests
ac40fd9e 10772lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 10773
10774# Code to be used in simple link tests
ac40fd9e 10775lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
d9898ee8 10776
10777# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10778
10779# If no C compiler was specified, use CC.
10780LTCC=${LTCC-"$CC"}
10781
10782# If no C compiler flags were specified, use CFLAGS.
10783LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10784
10785# Allow CC to be a program name with arguments.
10786compiler=$CC
10787
10788
10789# save warnings/boilerplate of simple test code
10790ac_outfile=conftest.$ac_objext
ac40fd9e 10791echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 10792eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10793_lt_compiler_boilerplate=`cat conftest.err`
10794$rm conftest*
10795
10796ac_outfile=conftest.$ac_objext
ac40fd9e 10797echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 10798eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10799_lt_linker_boilerplate=`cat conftest.err`
10800$rm conftest*
10801
10802
10803# Allow CC to be a program name with arguments.
10804lt_save_CC=$CC
10805lt_save_LD=$LD
10806lt_save_GCC=$GCC
10807GCC=$GXX
10808lt_save_with_gnu_ld=$with_gnu_ld
10809lt_save_path_LD=$lt_cv_path_LD
10810if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10811 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10812else
10813 $as_unset lt_cv_prog_gnu_ld
10814fi
10815if test -n "${lt_cv_path_LDCXX+set}"; then
10816 lt_cv_path_LD=$lt_cv_path_LDCXX
10817else
10818 $as_unset lt_cv_path_LD
10819fi
10820test -z "${LDCXX+set}" || LD=$LDCXX
10821CC=${CXX-"c++"}
10822compiler=$CC
10823compiler_CXX=$CC
10824for cc_temp in $compiler""; do
10825 case $cc_temp in
10826 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10827 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10828 \-*) ;;
10829 *) break;;
10830 esac
10831done
10832cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10833
10834
10835# We don't want -fno-exception wen compiling C++ code, so set the
10836# no_builtin_flag separately
10837if test "$GXX" = yes; then
10838 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10839else
10840 lt_prog_compiler_no_builtin_flag_CXX=
10841fi
10842
10843if test "$GXX" = yes; then
10844 # Set up default GNU C++ configuration
10845
10846
dd184caf 10847# Check whether --with-gnu-ld was given.
d9898ee8 10848if test "${with_gnu_ld+set}" = set; then
dd184caf 10849 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 10850else
10851 with_gnu_ld=no
dd184caf 10852fi
10853
d9898ee8 10854ac_prog=ld
10855if test "$GCC" = yes; then
10856 # Check if gcc -print-prog-name=ld gives a path.
dd184caf 10857 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10858echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d9898ee8 10859 case $host in
10860 *-*-mingw*)
10861 # gcc leaves a trailing carriage return which upsets mingw
10862 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10863 *)
10864 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10865 esac
10866 case $ac_prog in
10867 # Accept absolute paths.
10868 [\\/]* | ?:[\\/]*)
10869 re_direlt='/[^/][^/]*/\.\./'
10870 # Canonicalize the pathname of ld
10871 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10872 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10873 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10874 done
10875 test -z "$LD" && LD="$ac_prog"
10876 ;;
10877 "")
10878 # If it fails, then pretend we aren't using GCC.
10879 ac_prog=ld
10880 ;;
10881 *)
10882 # If it is relative, then search for the first ld in PATH.
10883 with_gnu_ld=unknown
10884 ;;
10885 esac
10886elif test "$with_gnu_ld" = yes; then
dd184caf 10887 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10888echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d9898ee8 10889else
dd184caf 10890 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10891echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d9898ee8 10892fi
10893if test "${lt_cv_path_LD+set}" = set; then
10894 echo $ECHO_N "(cached) $ECHO_C" >&6
10895else
10896 if test -z "$LD"; then
10897 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10898 for ac_dir in $PATH; do
10899 IFS="$lt_save_ifs"
10900 test -z "$ac_dir" && ac_dir=.
10901 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10902 lt_cv_path_LD="$ac_dir/$ac_prog"
10903 # Check to see if the program is GNU ld. I'd rather use --version,
10904 # but apparently some variants of GNU ld only accept -v.
10905 # Break only if it was the GNU/non-GNU ld that we prefer.
10906 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10907 *GNU* | *'with BFD'*)
10908 test "$with_gnu_ld" != no && break
10909 ;;
10910 *)
10911 test "$with_gnu_ld" != yes && break
10912 ;;
10913 esac
10914 fi
10915 done
10916 IFS="$lt_save_ifs"
10917else
10918 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10919fi
10920fi
10921
10922LD="$lt_cv_path_LD"
10923if test -n "$LD"; then
dd184caf 10924 { echo "$as_me:$LINENO: result: $LD" >&5
10925echo "${ECHO_T}$LD" >&6; }
d9898ee8 10926else
dd184caf 10927 { echo "$as_me:$LINENO: result: no" >&5
10928echo "${ECHO_T}no" >&6; }
d9898ee8 10929fi
10930test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10931echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10932 { (exit 1); exit 1; }; }
dd184caf 10933{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10934echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d9898ee8 10935if test "${lt_cv_prog_gnu_ld+set}" = set; then
10936 echo $ECHO_N "(cached) $ECHO_C" >&6
10937else
10938 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10939case `$LD -v 2>&1 </dev/null` in
10940*GNU* | *'with BFD'*)
10941 lt_cv_prog_gnu_ld=yes
10942 ;;
10943*)
10944 lt_cv_prog_gnu_ld=no
10945 ;;
10946esac
10947fi
dd184caf 10948{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10949echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 10950with_gnu_ld=$lt_cv_prog_gnu_ld
10951
10952
10953
10954 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10955 # archiving commands below assume that GNU ld is being used.
10956 if test "$with_gnu_ld" = yes; then
10957 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10958 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'
10959
10960 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10961 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10962
10963 # If archive_cmds runs LD, not CC, wlarc should be empty
10964 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10965 # investigate it a little bit more. (MM)
10966 wlarc='${wl}'
10967
10968 # ancient GNU ld didn't support --whole-archive et. al.
10969 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10970 grep 'no-whole-archive' > /dev/null; then
10971 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10972 else
10973 whole_archive_flag_spec_CXX=
10974 fi
10975 else
10976 with_gnu_ld=no
10977 wlarc=
10978
10979 # A generic and very simple default shared library creation
10980 # command for GNU C++ for the case where it uses the native
10981 # linker, instead of GNU ld. If possible, this setting should
10982 # overridden to take advantage of the native linker features on
10983 # the platform it is being used on.
10984 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10985 fi
10986
10987 # Commands to make compiler produce verbose output that lists
10988 # what "hidden" libraries, object files and flags are used when
10989 # linking a shared library.
10990 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10991
10992else
10993 GXX=no
10994 with_gnu_ld=no
10995 wlarc=
10996fi
10997
10998# PORTME: fill in a description of your system's C++ link characteristics
dd184caf 10999{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11000echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 11001ld_shlibs_CXX=yes
11002case $host_os in
11003 aix3*)
11004 # FIXME: insert proper C++ library support
11005 ld_shlibs_CXX=no
11006 ;;
11007 aix4* | aix5*)
11008 if test "$host_cpu" = ia64; then
11009 # On IA64, the linker does run time linking by default, so we don't
11010 # have to do anything special.
11011 aix_use_runtimelinking=no
11012 exp_sym_flag='-Bexport'
11013 no_entry_flag=""
11014 else
11015 aix_use_runtimelinking=no
11016
11017 # Test if we are trying to use run time linking or normal
11018 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11019 # need to do runtime linking.
11020 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11021 for ld_flag in $LDFLAGS; do
11022 case $ld_flag in
11023 *-brtl*)
11024 aix_use_runtimelinking=yes
11025 break
11026 ;;
11027 esac
11028 done
11029 ;;
11030 esac
11031
11032 exp_sym_flag='-bexport'
11033 no_entry_flag='-bnoentry'
11034 fi
11035
11036 # When large executables or shared objects are built, AIX ld can
11037 # have problems creating the table of contents. If linking a library
11038 # or program results in "error TOC overflow" add -mminimal-toc to
11039 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11040 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11041
11042 archive_cmds_CXX=''
11043 hardcode_direct_CXX=yes
11044 hardcode_libdir_separator_CXX=':'
11045 link_all_deplibs_CXX=yes
11046
11047 if test "$GXX" = yes; then
11048 case $host_os in aix4.[012]|aix4.[012].*)
11049 # We only want to do this on AIX 4.2 and lower, the check
11050 # below for broken collect2 doesn't work under 4.3+
11051 collect2name=`${CC} -print-prog-name=collect2`
11052 if test -f "$collect2name" && \
11053 strings "$collect2name" | grep resolve_lib_name >/dev/null
11054 then
11055 # We have reworked collect2
ac40fd9e 11056 :
d9898ee8 11057 else
11058 # We have old collect2
11059 hardcode_direct_CXX=unsupported
11060 # It fails to find uninstalled libraries when the uninstalled
11061 # path is not listed in the libpath. Setting hardcode_minus_L
11062 # to unsupported forces relinking
11063 hardcode_minus_L_CXX=yes
11064 hardcode_libdir_flag_spec_CXX='-L$libdir'
11065 hardcode_libdir_separator_CXX=
11066 fi
11067 ;;
11068 esac
11069 shared_flag='-shared'
11070 if test "$aix_use_runtimelinking" = yes; then
11071 shared_flag="$shared_flag "'${wl}-G'
11072 fi
11073 else
11074 # not using gcc
11075 if test "$host_cpu" = ia64; then
11076 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11077 # chokes on -Wl,-G. The following line is correct:
11078 shared_flag='-G'
11079 else
11080 if test "$aix_use_runtimelinking" = yes; then
11081 shared_flag='${wl}-G'
11082 else
11083 shared_flag='${wl}-bM:SRE'
11084 fi
11085 fi
11086 fi
11087
11088 # It seems that -bexpall does not export symbols beginning with
11089 # underscore (_), so it is better to generate a list of symbols to export.
11090 always_export_symbols_CXX=yes
11091 if test "$aix_use_runtimelinking" = yes; then
11092 # Warning - without using the other runtime loading flags (-brtl),
11093 # -berok will link without error, but may produce a broken library.
11094 allow_undefined_flag_CXX='-berok'
11095 # Determine the default libpath from the value encoded in an empty executable.
11096 cat >conftest.$ac_ext <<_ACEOF
11097/* confdefs.h. */
11098_ACEOF
11099cat confdefs.h >>conftest.$ac_ext
11100cat >>conftest.$ac_ext <<_ACEOF
11101/* end confdefs.h. */
11102
11103int
11104main ()
11105{
11106
11107 ;
11108 return 0;
11109}
11110_ACEOF
11111rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 11112if { (ac_try="$ac_link"
11113case "(($ac_try" in
11114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11115 *) ac_try_echo=$ac_try;;
11116esac
11117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11118 (eval "$ac_link") 2>conftest.er1
d9898ee8 11119 ac_status=$?
11120 grep -v '^ *+' conftest.er1 >conftest.err
11121 rm -f conftest.er1
11122 cat conftest.err >&5
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 11124 (exit $ac_status); } && {
11125 test -z "$ac_cxx_werror_flag" ||
11126 test ! -s conftest.err
11127 } && test -s conftest$ac_exeext &&
11128 $as_test_x conftest$ac_exeext; then
d9898ee8 11129
ac40fd9e 11130lt_aix_libpath_sed='
11131 /Import File Strings/,/^$/ {
11132 /^0/ {
11133 s/^0 *\(.*\)$/\1/
11134 p
11135 }
11136 }'
11137aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 11138# Check for a 64-bit object if we didn't find anything.
ac40fd9e 11139if test -z "$aix_libpath"; then
11140 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11141fi
d9898ee8 11142else
11143 echo "$as_me: failed program was:" >&5
11144sed 's/^/| /' conftest.$ac_ext >&5
11145
dd184caf 11146
d9898ee8 11147fi
dd184caf 11148
11149rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 11150 conftest$ac_exeext conftest.$ac_ext
11151if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11152
11153 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11154
11155 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"
11156 else
11157 if test "$host_cpu" = ia64; then
11158 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11159 allow_undefined_flag_CXX="-z nodefs"
11160 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"
11161 else
11162 # Determine the default libpath from the value encoded in an empty executable.
11163 cat >conftest.$ac_ext <<_ACEOF
11164/* confdefs.h. */
11165_ACEOF
11166cat confdefs.h >>conftest.$ac_ext
11167cat >>conftest.$ac_ext <<_ACEOF
11168/* end confdefs.h. */
11169
11170int
11171main ()
11172{
11173
11174 ;
11175 return 0;
11176}
11177_ACEOF
11178rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 11179if { (ac_try="$ac_link"
11180case "(($ac_try" in
11181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11182 *) ac_try_echo=$ac_try;;
11183esac
11184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11185 (eval "$ac_link") 2>conftest.er1
d9898ee8 11186 ac_status=$?
11187 grep -v '^ *+' conftest.er1 >conftest.err
11188 rm -f conftest.er1
11189 cat conftest.err >&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 11191 (exit $ac_status); } && {
11192 test -z "$ac_cxx_werror_flag" ||
11193 test ! -s conftest.err
11194 } && test -s conftest$ac_exeext &&
11195 $as_test_x conftest$ac_exeext; then
d9898ee8 11196
ac40fd9e 11197lt_aix_libpath_sed='
11198 /Import File Strings/,/^$/ {
11199 /^0/ {
11200 s/^0 *\(.*\)$/\1/
11201 p
11202 }
11203 }'
11204aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 11205# Check for a 64-bit object if we didn't find anything.
ac40fd9e 11206if test -z "$aix_libpath"; then
11207 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11208fi
d9898ee8 11209else
11210 echo "$as_me: failed program was:" >&5
11211sed 's/^/| /' conftest.$ac_ext >&5
11212
dd184caf 11213
d9898ee8 11214fi
dd184caf 11215
11216rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 11217 conftest$ac_exeext conftest.$ac_ext
11218if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11219
11220 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11221 # Warning - without using the other run time loading flags,
11222 # -berok will link without error, but may produce a broken library.
11223 no_undefined_flag_CXX=' ${wl}-bernotok'
11224 allow_undefined_flag_CXX=' ${wl}-berok'
11225 # Exported symbols can be pulled into shared objects from archives
11226 whole_archive_flag_spec_CXX='$convenience'
11227 archive_cmds_need_lc_CXX=yes
11228 # This is similar to how AIX traditionally builds its shared libraries.
11229 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'
11230 fi
11231 fi
11232 ;;
11233
11234 beos*)
11235 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11236 allow_undefined_flag_CXX=unsupported
11237 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11238 # support --undefined. This deserves some investigation. FIXME
11239 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11240 else
11241 ld_shlibs_CXX=no
11242 fi
11243 ;;
11244
11245 chorus*)
11246 case $cc_basename in
11247 *)
11248 # FIXME: insert proper C++ library support
11249 ld_shlibs_CXX=no
11250 ;;
11251 esac
11252 ;;
11253
11254 cygwin* | mingw* | pw32*)
11255 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11256 # as there is no search path for DLLs.
11257 hardcode_libdir_flag_spec_CXX='-L$libdir'
11258 allow_undefined_flag_CXX=unsupported
11259 always_export_symbols_CXX=no
11260 enable_shared_with_static_runtimes_CXX=yes
11261
11262 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11263 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'
11264 # If the export-symbols file already is a .def file (1st line
11265 # is EXPORTS), use it as is; otherwise, prepend...
11266 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11267 cp $export_symbols $output_objdir/$soname.def;
11268 else
11269 echo EXPORTS > $output_objdir/$soname.def;
11270 cat $export_symbols >> $output_objdir/$soname.def;
11271 fi~
11272 $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'
11273 else
11274 ld_shlibs_CXX=no
11275 fi
11276 ;;
11277 darwin* | rhapsody*)
11278 case $host_os in
11279 rhapsody* | darwin1.[012])
11280 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11281 ;;
11282 *) # Darwin 1.3 on
11283 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11284 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11285 else
11286 case ${MACOSX_DEPLOYMENT_TARGET} in
11287 10.[012])
11288 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11289 ;;
11290 10.*)
11291 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11292 ;;
11293 esac
11294 fi
11295 ;;
11296 esac
11297 archive_cmds_need_lc_CXX=no
11298 hardcode_direct_CXX=no
11299 hardcode_automatic_CXX=yes
11300 hardcode_shlibpath_var_CXX=unsupported
11301 whole_archive_flag_spec_CXX=''
11302 link_all_deplibs_CXX=yes
11303
11304 if test "$GXX" = yes ; then
11305 lt_int_apple_cc_single_mod=no
11306 output_verbose_link_cmd='echo'
11307 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11308 lt_int_apple_cc_single_mod=yes
11309 fi
11310 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11311 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11312 else
11313 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'
11314 fi
11315 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11316 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11317 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11318 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}'
11319 else
11320 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}'
11321 fi
11322 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}'
11323 else
11324 case $cc_basename in
11325 xlc*)
11326 output_verbose_link_cmd='echo'
ac40fd9e 11327 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
d9898ee8 11328 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11329 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
ac40fd9e 11330 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
d9898ee8 11331 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}'
11332 ;;
11333 *)
11334 ld_shlibs_CXX=no
11335 ;;
11336 esac
11337 fi
11338 ;;
11339
11340 dgux*)
11341 case $cc_basename in
11342 ec++*)
11343 # FIXME: insert proper C++ library support
11344 ld_shlibs_CXX=no
11345 ;;
11346 ghcx*)
11347 # Green Hills C++ Compiler
11348 # FIXME: insert proper C++ library support
11349 ld_shlibs_CXX=no
11350 ;;
11351 *)
11352 # FIXME: insert proper C++ library support
11353 ld_shlibs_CXX=no
11354 ;;
11355 esac
11356 ;;
11357 freebsd[12]*)
11358 # C++ shared libraries reported to be fairly broken before switch to ELF
11359 ld_shlibs_CXX=no
11360 ;;
11361 freebsd-elf*)
11362 archive_cmds_need_lc_CXX=no
11363 ;;
ac40fd9e 11364 freebsd* | dragonfly*)
d9898ee8 11365 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11366 # conventions
11367 ld_shlibs_CXX=yes
11368 ;;
11369 gnu*)
11370 ;;
11371 hpux9*)
11372 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11373 hardcode_libdir_separator_CXX=:
11374 export_dynamic_flag_spec_CXX='${wl}-E'
11375 hardcode_direct_CXX=yes
11376 hardcode_minus_L_CXX=yes # Not in the search PATH,
11377 # but as the default
11378 # location of the library.
11379
11380 case $cc_basename in
11381 CC*)
11382 # FIXME: insert proper C++ library support
11383 ld_shlibs_CXX=no
11384 ;;
11385 aCC*)
11386 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'
11387 # Commands to make compiler produce verbose output that lists
11388 # what "hidden" libraries, object files and flags are used when
11389 # linking a shared library.
11390 #
11391 # There doesn't appear to be a way to prevent this compiler from
11392 # explicitly linking system object files so we need to strip them
11393 # from the output so that they don't get included in the library
11394 # dependencies.
11395 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'
11396 ;;
11397 *)
11398 if test "$GXX" = yes; then
11399 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'
11400 else
11401 # FIXME: insert proper C++ library support
11402 ld_shlibs_CXX=no
11403 fi
11404 ;;
11405 esac
11406 ;;
11407 hpux10*|hpux11*)
11408 if test $with_gnu_ld = no; then
11409 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11410 hardcode_libdir_separator_CXX=:
11411
11412 case $host_cpu in
ac40fd9e 11413 hppa*64*|ia64*) ;;
d9898ee8 11414 *)
11415 export_dynamic_flag_spec_CXX='${wl}-E'
11416 ;;
11417 esac
11418 fi
11419 case $host_cpu in
11420 hppa*64*|ia64*)
11421 hardcode_direct_CXX=no
11422 hardcode_shlibpath_var_CXX=no
11423 ;;
11424 *)
11425 hardcode_direct_CXX=yes
11426 hardcode_minus_L_CXX=yes # Not in the search PATH,
11427 # but as the default
11428 # location of the library.
11429 ;;
11430 esac
11431
11432 case $cc_basename in
11433 CC*)
11434 # FIXME: insert proper C++ library support
11435 ld_shlibs_CXX=no
11436 ;;
11437 aCC*)
11438 case $host_cpu in
11439 hppa*64*)
11440 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11441 ;;
11442 ia64*)
11443 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11444 ;;
11445 *)
11446 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11447 ;;
11448 esac
11449 # Commands to make compiler produce verbose output that lists
11450 # what "hidden" libraries, object files and flags are used when
11451 # linking a shared library.
11452 #
11453 # There doesn't appear to be a way to prevent this compiler from
11454 # explicitly linking system object files so we need to strip them
11455 # from the output so that they don't get included in the library
11456 # dependencies.
11457 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'
11458 ;;
11459 *)
11460 if test "$GXX" = yes; then
11461 if test $with_gnu_ld = no; then
11462 case $host_cpu in
11463 hppa*64*)
11464 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11465 ;;
11466 ia64*)
11467 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11468 ;;
11469 *)
11470 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'
11471 ;;
11472 esac
11473 fi
11474 else
11475 # FIXME: insert proper C++ library support
11476 ld_shlibs_CXX=no
11477 fi
11478 ;;
11479 esac
11480 ;;
ac40fd9e 11481 interix[3-9]*)
d9898ee8 11482 hardcode_direct_CXX=no
11483 hardcode_shlibpath_var_CXX=no
11484 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11485 export_dynamic_flag_spec_CXX='${wl}-E'
11486 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11487 # Instead, shared libraries are loaded at an image base (0x10000000 by
11488 # default) and relocated if they conflict, which is a slow very memory
11489 # consuming and fragmenting process. To avoid this, we pick a random,
11490 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11491 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11492 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'
11493 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'
11494 ;;
11495 irix5* | irix6*)
11496 case $cc_basename in
11497 CC*)
11498 # SGI C++
11499 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'
11500
11501 # Archives containing C++ object files must be created using
11502 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11503 # necessary to make sure instantiated templates are included
11504 # in the archive.
11505 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11506 ;;
11507 *)
11508 if test "$GXX" = yes; then
11509 if test "$with_gnu_ld" = no; then
11510 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'
11511 else
11512 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'
11513 fi
11514 fi
11515 link_all_deplibs_CXX=yes
11516 ;;
11517 esac
11518 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11519 hardcode_libdir_separator_CXX=:
11520 ;;
ac40fd9e 11521 linux* | k*bsd*-gnu)
d9898ee8 11522 case $cc_basename in
11523 KCC*)
11524 # Kuck and Associates, Inc. (KAI) C++ Compiler
11525
11526 # KCC will only create a shared library if the output file
11527 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11528 # to its proper name (with version) after linking.
11529 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'
11530 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'
11531 # Commands to make compiler produce verbose output that lists
11532 # what "hidden" libraries, object files and flags are used when
11533 # linking a shared library.
11534 #
11535 # There doesn't appear to be a way to prevent this compiler from
11536 # explicitly linking system object files so we need to strip them
11537 # from the output so that they don't get included in the library
11538 # dependencies.
11539 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'
11540
11541 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11542 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11543
11544 # Archives containing C++ object files must be created using
11545 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11546 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11547 ;;
11548 icpc*)
11549 # Intel C++
11550 with_gnu_ld=yes
11551 # version 8.0 and above of icpc choke on multiply defined symbols
11552 # if we add $predep_objects and $postdep_objects, however 7.1 and
11553 # earlier do not add the objects themselves.
11554 case `$CC -V 2>&1` in
11555 *"Version 7."*)
11556 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11557 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'
11558 ;;
11559 *) # Version 8.0 or newer
11560 tmp_idyn=
11561 case $host_cpu in
11562 ia64*) tmp_idyn=' -i_dynamic';;
11563 esac
11564 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11565 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'
11566 ;;
11567 esac
11568 archive_cmds_need_lc_CXX=no
11569 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11570 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11571 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11572 ;;
11573 pgCC*)
11574 # Portland Group C++ compiler
11575 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11576 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'
11577
11578 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11579 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11580 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'
11581 ;;
11582 cxx*)
11583 # Compaq C++
11584 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11585 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'
11586
11587 runpath_var=LD_RUN_PATH
11588 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11589 hardcode_libdir_separator_CXX=:
11590
11591 # Commands to make compiler produce verbose output that lists
11592 # what "hidden" libraries, object files and flags are used when
11593 # linking a shared library.
11594 #
11595 # There doesn't appear to be a way to prevent this compiler from
11596 # explicitly linking system object files so we need to strip them
11597 # from the output so that they don't get included in the library
11598 # dependencies.
11599 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'
11600 ;;
ac40fd9e 11601 *)
11602 case `$CC -V 2>&1 | sed 5q` in
11603 *Sun\ C*)
11604 # Sun C++ 5.9
11605 no_undefined_flag_CXX=' -zdefs'
11606 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11607 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11608 hardcode_libdir_flag_spec_CXX='-R$libdir'
11609 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11610
11611 # Not sure whether something based on
11612 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11613 # would be better.
11614 output_verbose_link_cmd='echo'
11615
11616 # Archives containing C++ object files must be created using
11617 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11618 # necessary to make sure instantiated templates are included
11619 # in the archive.
11620 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11621 ;;
11622 esac
11623 ;;
d9898ee8 11624 esac
11625 ;;
11626 lynxos*)
11627 # FIXME: insert proper C++ library support
11628 ld_shlibs_CXX=no
11629 ;;
11630 m88k*)
11631 # FIXME: insert proper C++ library support
11632 ld_shlibs_CXX=no
11633 ;;
11634 mvs*)
11635 case $cc_basename in
11636 cxx*)
11637 # FIXME: insert proper C++ library support
11638 ld_shlibs_CXX=no
11639 ;;
11640 *)
11641 # FIXME: insert proper C++ library support
11642 ld_shlibs_CXX=no
11643 ;;
11644 esac
11645 ;;
11646 netbsd*)
11647 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11648 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11649 wlarc=
11650 hardcode_libdir_flag_spec_CXX='-R$libdir'
11651 hardcode_direct_CXX=yes
11652 hardcode_shlibpath_var_CXX=no
11653 fi
11654 # Workaround some broken pre-1.5 toolchains
11655 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11656 ;;
11657 openbsd2*)
11658 # C++ shared libraries are fairly broken
11659 ld_shlibs_CXX=no
11660 ;;
11661 openbsd*)
ac40fd9e 11662 if test -f /usr/libexec/ld.so; then
11663 hardcode_direct_CXX=yes
11664 hardcode_shlibpath_var_CXX=no
11665 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11666 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11667 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11668 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11669 export_dynamic_flag_spec_CXX='${wl}-E'
11670 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11671 fi
11672 output_verbose_link_cmd='echo'
11673 else
11674 ld_shlibs_CXX=no
d9898ee8 11675 fi
d9898ee8 11676 ;;
11677 osf3*)
11678 case $cc_basename in
11679 KCC*)
11680 # Kuck and Associates, Inc. (KAI) C++ Compiler
11681
11682 # KCC will only create a shared library if the output file
11683 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11684 # to its proper name (with version) after linking.
11685 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'
11686
11687 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11688 hardcode_libdir_separator_CXX=:
11689
11690 # Archives containing C++ object files must be created using
11691 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11692 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11693
11694 ;;
11695 RCC*)
11696 # Rational C++ 2.4.1
11697 # FIXME: insert proper C++ library support
11698 ld_shlibs_CXX=no
11699 ;;
11700 cxx*)
11701 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11702 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'
11703
11704 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11705 hardcode_libdir_separator_CXX=:
11706
11707 # Commands to make compiler produce verbose output that lists
11708 # what "hidden" libraries, object files and flags are used when
11709 # linking a shared library.
11710 #
11711 # There doesn't appear to be a way to prevent this compiler from
11712 # explicitly linking system object files so we need to strip them
11713 # from the output so that they don't get included in the library
11714 # dependencies.
11715 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'
11716 ;;
11717 *)
11718 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11719 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11720 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'
11721
11722 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11723 hardcode_libdir_separator_CXX=:
11724
11725 # Commands to make compiler produce verbose output that lists
11726 # what "hidden" libraries, object files and flags are used when
11727 # linking a shared library.
11728 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11729
11730 else
11731 # FIXME: insert proper C++ library support
11732 ld_shlibs_CXX=no
11733 fi
11734 ;;
11735 esac
11736 ;;
11737 osf4* | osf5*)
11738 case $cc_basename in
11739 KCC*)
11740 # Kuck and Associates, Inc. (KAI) C++ Compiler
11741
11742 # KCC will only create a shared library if the output file
11743 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11744 # to its proper name (with version) after linking.
11745 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'
11746
11747 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11748 hardcode_libdir_separator_CXX=:
11749
11750 # Archives containing C++ object files must be created using
11751 # the KAI C++ compiler.
11752 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11753 ;;
11754 RCC*)
11755 # Rational C++ 2.4.1
11756 # FIXME: insert proper C++ library support
11757 ld_shlibs_CXX=no
11758 ;;
11759 cxx*)
11760 allow_undefined_flag_CXX=' -expect_unresolved \*'
11761 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'
11762 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11763 echo "-hidden">> $lib.exp~
11764 $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~
11765 $rm $lib.exp'
11766
11767 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11768 hardcode_libdir_separator_CXX=:
11769
11770 # Commands to make compiler produce verbose output that lists
11771 # what "hidden" libraries, object files and flags are used when
11772 # linking a shared library.
11773 #
11774 # There doesn't appear to be a way to prevent this compiler from
11775 # explicitly linking system object files so we need to strip them
11776 # from the output so that they don't get included in the library
11777 # dependencies.
11778 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'
11779 ;;
11780 *)
11781 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11782 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11783 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'
11784
11785 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11786 hardcode_libdir_separator_CXX=:
11787
11788 # Commands to make compiler produce verbose output that lists
11789 # what "hidden" libraries, object files and flags are used when
11790 # linking a shared library.
11791 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11792
11793 else
11794 # FIXME: insert proper C++ library support
11795 ld_shlibs_CXX=no
11796 fi
11797 ;;
11798 esac
11799 ;;
11800 psos*)
11801 # FIXME: insert proper C++ library support
11802 ld_shlibs_CXX=no
11803 ;;
11804 sunos4*)
11805 case $cc_basename in
11806 CC*)
11807 # Sun C++ 4.x
11808 # FIXME: insert proper C++ library support
11809 ld_shlibs_CXX=no
11810 ;;
11811 lcc*)
11812 # Lucid
11813 # FIXME: insert proper C++ library support
11814 ld_shlibs_CXX=no
11815 ;;
11816 *)
11817 # FIXME: insert proper C++ library support
11818 ld_shlibs_CXX=no
11819 ;;
11820 esac
11821 ;;
11822 solaris*)
11823 case $cc_basename in
11824 CC*)
11825 # Sun C++ 4.2, 5.x and Centerline C++
11826 archive_cmds_need_lc_CXX=yes
11827 no_undefined_flag_CXX=' -zdefs'
11828 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11829 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11830 $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'
11831
11832 hardcode_libdir_flag_spec_CXX='-R$libdir'
11833 hardcode_shlibpath_var_CXX=no
11834 case $host_os in
11835 solaris2.[0-5] | solaris2.[0-5].*) ;;
11836 *)
ac40fd9e 11837 # The compiler driver will combine and reorder linker options,
11838 # but understands `-z linker_flag'.
d9898ee8 11839 # Supported since Solaris 2.6 (maybe 2.5.1?)
ac40fd9e 11840 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
d9898ee8 11841 ;;
11842 esac
11843 link_all_deplibs_CXX=yes
11844
11845 output_verbose_link_cmd='echo'
11846
11847 # Archives containing C++ object files must be created using
11848 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11849 # necessary to make sure instantiated templates are included
11850 # in the archive.
11851 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11852 ;;
11853 gcx*)
11854 # Green Hills C++ Compiler
11855 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11856
11857 # The C++ compiler must be used to create the archive.
11858 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11859 ;;
11860 *)
11861 # GNU C++ compiler with Solaris linker
11862 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11863 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11864 if $CC --version | grep -v '^2\.7' > /dev/null; then
11865 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11866 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11867 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11868
11869 # Commands to make compiler produce verbose output that lists
11870 # what "hidden" libraries, object files and flags are used when
11871 # linking a shared library.
11872 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11873 else
11874 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11875 # platform.
11876 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11877 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11878 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11879
11880 # Commands to make compiler produce verbose output that lists
11881 # what "hidden" libraries, object files and flags are used when
11882 # linking a shared library.
11883 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11884 fi
11885
11886 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
ac40fd9e 11887 case $host_os in
11888 solaris2.[0-5] | solaris2.[0-5].*) ;;
11889 *)
11890 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11891 ;;
11892 esac
d9898ee8 11893 fi
11894 ;;
11895 esac
11896 ;;
11897 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11898 no_undefined_flag_CXX='${wl}-z,text'
11899 archive_cmds_need_lc_CXX=no
11900 hardcode_shlibpath_var_CXX=no
11901 runpath_var='LD_RUN_PATH'
11902
11903 case $cc_basename in
11904 CC*)
11905 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11906 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11907 ;;
11908 *)
11909 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11910 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11911 ;;
11912 esac
11913 ;;
11914 sysv5* | sco3.2v5* | sco5v6*)
11915 # Note: We can NOT use -z defs as we might desire, because we do not
11916 # link with -lc, and that would cause any symbols used from libc to
11917 # always be unresolved, which means just about no library would
11918 # ever link correctly. If we're not using GNU ld we use -z text
11919 # though, which does catch some bad symbols but isn't as heavy-handed
11920 # as -z defs.
11921 # For security reasons, it is highly recommended that you always
11922 # use absolute paths for naming shared libraries, and exclude the
11923 # DT_RUNPATH tag from executables and libraries. But doing so
11924 # requires that you compile everything twice, which is a pain.
11925 # So that behaviour is only enabled if SCOABSPATH is set to a
11926 # non-empty value in the environment. Most likely only useful for
11927 # creating official distributions of packages.
11928 # This is a hack until libtool officially supports absolute path
11929 # names for shared libraries.
11930 no_undefined_flag_CXX='${wl}-z,text'
11931 allow_undefined_flag_CXX='${wl}-z,nodefs'
11932 archive_cmds_need_lc_CXX=no
11933 hardcode_shlibpath_var_CXX=no
11934 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11935 hardcode_libdir_separator_CXX=':'
11936 link_all_deplibs_CXX=yes
11937 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11938 runpath_var='LD_RUN_PATH'
11939
11940 case $cc_basename in
11941 CC*)
11942 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11943 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11944 ;;
11945 *)
11946 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11947 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11948 ;;
11949 esac
11950 ;;
11951 tandem*)
11952 case $cc_basename in
11953 NCC*)
11954 # NonStop-UX NCC 3.20
11955 # FIXME: insert proper C++ library support
11956 ld_shlibs_CXX=no
11957 ;;
11958 *)
11959 # FIXME: insert proper C++ library support
11960 ld_shlibs_CXX=no
11961 ;;
11962 esac
11963 ;;
11964 vxworks*)
11965 # FIXME: insert proper C++ library support
11966 ld_shlibs_CXX=no
11967 ;;
11968 *)
11969 # FIXME: insert proper C++ library support
11970 ld_shlibs_CXX=no
11971 ;;
11972esac
dd184caf 11973{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11974echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d9898ee8 11975test "$ld_shlibs_CXX" = no && can_build_shared=no
11976
11977GCC_CXX="$GXX"
11978LD_CXX="$LD"
11979
11980
11981cat > conftest.$ac_ext <<EOF
11982class Foo
11983{
11984public:
11985 Foo (void) { a = 0; }
11986private:
11987 int a;
11988};
11989EOF
11990
11991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11992 (eval $ac_compile) 2>&5
11993 ac_status=$?
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); }; then
11996 # Parse the compiler output and extract the necessary
11997 # objects, libraries and library flags.
11998
11999 # Sentinel used to keep track of whether or not we are before
12000 # the conftest object file.
12001 pre_test_object_deps_done=no
12002
12003 # The `*' in the case matches for architectures that use `case' in
12004 # $output_verbose_cmd can trigger glob expansion during the loop
12005 # eval without this substitution.
12006 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12007
12008 for p in `eval $output_verbose_link_cmd`; do
12009 case $p in
12010
12011 -L* | -R* | -l*)
12012 # Some compilers place space between "-{L,R}" and the path.
12013 # Remove the space.
12014 if test $p = "-L" \
12015 || test $p = "-R"; then
12016 prev=$p
12017 continue
12018 else
12019 prev=
12020 fi
12021
12022 if test "$pre_test_object_deps_done" = no; then
12023 case $p in
12024 -L* | -R*)
12025 # Internal compiler library paths should come after those
12026 # provided the user. The postdeps already come after the
12027 # user supplied libs so there is no need to process them.
12028 if test -z "$compiler_lib_search_path_CXX"; then
12029 compiler_lib_search_path_CXX="${prev}${p}"
12030 else
12031 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12032 fi
12033 ;;
12034 # The "-l" case would never come before the object being
12035 # linked, so don't bother handling this case.
12036 esac
12037 else
12038 if test -z "$postdeps_CXX"; then
12039 postdeps_CXX="${prev}${p}"
12040 else
12041 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12042 fi
12043 fi
12044 ;;
12045
12046 *.$objext)
12047 # This assumes that the test object file only shows up
12048 # once in the compiler output.
12049 if test "$p" = "conftest.$objext"; then
12050 pre_test_object_deps_done=yes
12051 continue
12052 fi
12053
12054 if test "$pre_test_object_deps_done" = no; then
12055 if test -z "$predep_objects_CXX"; then
12056 predep_objects_CXX="$p"
12057 else
12058 predep_objects_CXX="$predep_objects_CXX $p"
12059 fi
12060 else
12061 if test -z "$postdep_objects_CXX"; then
12062 postdep_objects_CXX="$p"
12063 else
12064 postdep_objects_CXX="$postdep_objects_CXX $p"
12065 fi
12066 fi
12067 ;;
12068
12069 *) ;; # Ignore the rest.
12070
12071 esac
12072 done
12073
12074 # Clean up.
12075 rm -f a.out a.exe
12076else
12077 echo "libtool.m4: error: problem compiling CXX test program"
12078fi
12079
12080$rm -f confest.$objext
12081
12082# PORTME: override above test on systems where it is broken
12083case $host_os in
ac40fd9e 12084interix[3-9]*)
d9898ee8 12085 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12086 # hack all around it, let's just trust "g++" to DTRT.
12087 predep_objects_CXX=
12088 postdep_objects_CXX=
12089 postdeps_CXX=
12090 ;;
12091
ac40fd9e 12092linux*)
12093 case `$CC -V 2>&1 | sed 5q` in
12094 *Sun\ C*)
12095 # Sun C++ 5.9
12096 #
12097 # The more standards-conforming stlport4 library is
12098 # incompatible with the Cstd library. Avoid specifying
12099 # it if it's in CXXFLAGS. Ignore libCrun as
12100 # -library=stlport4 depends on it.
12101 case " $CXX $CXXFLAGS " in
12102 *" -library=stlport4 "*)
12103 solaris_use_stlport4=yes
12104 ;;
12105 esac
12106 if test "$solaris_use_stlport4" != yes; then
12107 postdeps_CXX='-library=Cstd -library=Crun'
12108 fi
12109 ;;
12110 esac
12111 ;;
12112
d9898ee8 12113solaris*)
12114 case $cc_basename in
12115 CC*)
ac40fd9e 12116 # The more standards-conforming stlport4 library is
12117 # incompatible with the Cstd library. Avoid specifying
12118 # it if it's in CXXFLAGS. Ignore libCrun as
12119 # -library=stlport4 depends on it.
12120 case " $CXX $CXXFLAGS " in
12121 *" -library=stlport4 "*)
12122 solaris_use_stlport4=yes
12123 ;;
12124 esac
12125
d9898ee8 12126 # Adding this requires a known-good setup of shared libraries for
12127 # Sun compiler versions before 5.6, else PIC objects from an old
12128 # archive will be linked into the output, leading to subtle bugs.
ac40fd9e 12129 if test "$solaris_use_stlport4" != yes; then
12130 postdeps_CXX='-library=Cstd -library=Crun'
12131 fi
d9898ee8 12132 ;;
12133 esac
12134 ;;
12135esac
12136
12137
12138case " $postdeps_CXX " in
12139*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12140esac
12141
12142lt_prog_compiler_wl_CXX=
12143lt_prog_compiler_pic_CXX=
12144lt_prog_compiler_static_CXX=
12145
dd184caf 12146{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12147echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 12148
12149 # C++ specific cases for pic, static, wl, etc.
12150 if test "$GXX" = yes; then
12151 lt_prog_compiler_wl_CXX='-Wl,'
12152 lt_prog_compiler_static_CXX='-static'
12153
12154 case $host_os in
12155 aix*)
12156 # All AIX code is PIC.
12157 if test "$host_cpu" = ia64; then
12158 # AIX 5 now supports IA64 processor
12159 lt_prog_compiler_static_CXX='-Bstatic'
12160 fi
12161 ;;
12162 amigaos*)
12163 # FIXME: we need at least 68020 code to build shared libraries, but
12164 # adding the `-m68020' flag to GCC prevents building anything better,
12165 # like `-m68040'.
12166 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12167 ;;
ac40fd9e 12168 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 12169 # PIC is the default for these OSes.
12170 ;;
ac40fd9e 12171 mingw* | cygwin* | os2* | pw32*)
d9898ee8 12172 # This hack is so that the source file can tell whether it is being
12173 # built for inclusion in a dll (and should export symbols for example).
ac40fd9e 12174 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12175 # (--disable-auto-import) libraries
d9898ee8 12176 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12177 ;;
12178 darwin* | rhapsody*)
12179 # PIC is the default on this platform
12180 # Common symbols not allowed in MH_DYLIB files
12181 lt_prog_compiler_pic_CXX='-fno-common'
12182 ;;
12183 *djgpp*)
12184 # DJGPP does not support shared libraries at all
12185 lt_prog_compiler_pic_CXX=
12186 ;;
ac40fd9e 12187 interix[3-9]*)
d9898ee8 12188 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12189 # Instead, we relocate shared libraries at runtime.
12190 ;;
12191 sysv4*MP*)
12192 if test -d /usr/nec; then
12193 lt_prog_compiler_pic_CXX=-Kconform_pic
12194 fi
12195 ;;
12196 hpux*)
12197 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12198 # not for PA HP-UX.
12199 case $host_cpu in
12200 hppa*64*|ia64*)
12201 ;;
12202 *)
12203 lt_prog_compiler_pic_CXX='-fPIC'
12204 ;;
12205 esac
12206 ;;
12207 *)
12208 lt_prog_compiler_pic_CXX='-fPIC'
12209 ;;
12210 esac
12211 else
12212 case $host_os in
12213 aix4* | aix5*)
12214 # All AIX code is PIC.
12215 if test "$host_cpu" = ia64; then
12216 # AIX 5 now supports IA64 processor
12217 lt_prog_compiler_static_CXX='-Bstatic'
12218 else
12219 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12220 fi
12221 ;;
12222 chorus*)
12223 case $cc_basename in
12224 cxch68*)
12225 # Green Hills C++ Compiler
12226 # _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"
12227 ;;
12228 esac
12229 ;;
12230 darwin*)
12231 # PIC is the default on this platform
12232 # Common symbols not allowed in MH_DYLIB files
12233 case $cc_basename in
12234 xlc*)
12235 lt_prog_compiler_pic_CXX='-qnocommon'
12236 lt_prog_compiler_wl_CXX='-Wl,'
12237 ;;
12238 esac
12239 ;;
12240 dgux*)
12241 case $cc_basename in
12242 ec++*)
12243 lt_prog_compiler_pic_CXX='-KPIC'
12244 ;;
12245 ghcx*)
12246 # Green Hills C++ Compiler
12247 lt_prog_compiler_pic_CXX='-pic'
12248 ;;
12249 *)
12250 ;;
12251 esac
12252 ;;
ac40fd9e 12253 freebsd* | dragonfly*)
d9898ee8 12254 # FreeBSD uses GNU C++
12255 ;;
12256 hpux9* | hpux10* | hpux11*)
12257 case $cc_basename in
12258 CC*)
12259 lt_prog_compiler_wl_CXX='-Wl,'
12260 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12261 if test "$host_cpu" != ia64; then
12262 lt_prog_compiler_pic_CXX='+Z'
12263 fi
12264 ;;
12265 aCC*)
12266 lt_prog_compiler_wl_CXX='-Wl,'
12267 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12268 case $host_cpu in
12269 hppa*64*|ia64*)
12270 # +Z the default
12271 ;;
12272 *)
12273 lt_prog_compiler_pic_CXX='+Z'
12274 ;;
12275 esac
12276 ;;
12277 *)
12278 ;;
12279 esac
12280 ;;
12281 interix*)
12282 # This is c89, which is MS Visual C++ (no shared libs)
12283 # Anyone wants to do a port?
12284 ;;
12285 irix5* | irix6* | nonstopux*)
12286 case $cc_basename in
12287 CC*)
12288 lt_prog_compiler_wl_CXX='-Wl,'
12289 lt_prog_compiler_static_CXX='-non_shared'
12290 # CC pic flag -KPIC is the default.
12291 ;;
12292 *)
12293 ;;
12294 esac
12295 ;;
ac40fd9e 12296 linux* | k*bsd*-gnu)
d9898ee8 12297 case $cc_basename in
12298 KCC*)
12299 # KAI C++ Compiler
12300 lt_prog_compiler_wl_CXX='--backend -Wl,'
12301 lt_prog_compiler_pic_CXX='-fPIC'
12302 ;;
12303 icpc* | ecpc*)
12304 # Intel C++
12305 lt_prog_compiler_wl_CXX='-Wl,'
12306 lt_prog_compiler_pic_CXX='-KPIC'
12307 lt_prog_compiler_static_CXX='-static'
12308 ;;
12309 pgCC*)
12310 # Portland Group C++ compiler.
12311 lt_prog_compiler_wl_CXX='-Wl,'
12312 lt_prog_compiler_pic_CXX='-fpic'
12313 lt_prog_compiler_static_CXX='-Bstatic'
12314 ;;
12315 cxx*)
12316 # Compaq C++
12317 # Make sure the PIC flag is empty. It appears that all Alpha
12318 # Linux and Compaq Tru64 Unix objects are PIC.
12319 lt_prog_compiler_pic_CXX=
12320 lt_prog_compiler_static_CXX='-non_shared'
12321 ;;
12322 *)
ac40fd9e 12323 case `$CC -V 2>&1 | sed 5q` in
12324 *Sun\ C*)
12325 # Sun C++ 5.9
12326 lt_prog_compiler_pic_CXX='-KPIC'
12327 lt_prog_compiler_static_CXX='-Bstatic'
12328 lt_prog_compiler_wl_CXX='-Qoption ld '
12329 ;;
12330 esac
d9898ee8 12331 ;;
12332 esac
12333 ;;
12334 lynxos*)
12335 ;;
12336 m88k*)
12337 ;;
12338 mvs*)
12339 case $cc_basename in
12340 cxx*)
12341 lt_prog_compiler_pic_CXX='-W c,exportall'
12342 ;;
12343 *)
12344 ;;
12345 esac
12346 ;;
12347 netbsd*)
12348 ;;
12349 osf3* | osf4* | osf5*)
12350 case $cc_basename in
12351 KCC*)
12352 lt_prog_compiler_wl_CXX='--backend -Wl,'
12353 ;;
12354 RCC*)
12355 # Rational C++ 2.4.1
12356 lt_prog_compiler_pic_CXX='-pic'
12357 ;;
12358 cxx*)
12359 # Digital/Compaq C++
12360 lt_prog_compiler_wl_CXX='-Wl,'
12361 # Make sure the PIC flag is empty. It appears that all Alpha
12362 # Linux and Compaq Tru64 Unix objects are PIC.
12363 lt_prog_compiler_pic_CXX=
12364 lt_prog_compiler_static_CXX='-non_shared'
12365 ;;
12366 *)
12367 ;;
12368 esac
12369 ;;
12370 psos*)
12371 ;;
12372 solaris*)
12373 case $cc_basename in
12374 CC*)
12375 # Sun C++ 4.2, 5.x and Centerline C++
12376 lt_prog_compiler_pic_CXX='-KPIC'
12377 lt_prog_compiler_static_CXX='-Bstatic'
12378 lt_prog_compiler_wl_CXX='-Qoption ld '
12379 ;;
12380 gcx*)
12381 # Green Hills C++ Compiler
12382 lt_prog_compiler_pic_CXX='-PIC'
12383 ;;
12384 *)
12385 ;;
12386 esac
12387 ;;
12388 sunos4*)
12389 case $cc_basename in
12390 CC*)
12391 # Sun C++ 4.x
12392 lt_prog_compiler_pic_CXX='-pic'
12393 lt_prog_compiler_static_CXX='-Bstatic'
12394 ;;
12395 lcc*)
12396 # Lucid
12397 lt_prog_compiler_pic_CXX='-pic'
12398 ;;
12399 *)
12400 ;;
12401 esac
12402 ;;
12403 tandem*)
12404 case $cc_basename in
12405 NCC*)
12406 # NonStop-UX NCC 3.20
12407 lt_prog_compiler_pic_CXX='-KPIC'
12408 ;;
12409 *)
12410 ;;
12411 esac
12412 ;;
12413 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12414 case $cc_basename in
12415 CC*)
12416 lt_prog_compiler_wl_CXX='-Wl,'
12417 lt_prog_compiler_pic_CXX='-KPIC'
12418 lt_prog_compiler_static_CXX='-Bstatic'
12419 ;;
12420 esac
12421 ;;
12422 vxworks*)
12423 ;;
12424 *)
12425 lt_prog_compiler_can_build_shared_CXX=no
12426 ;;
12427 esac
12428 fi
12429
dd184caf 12430{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12431echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
d9898ee8 12432
12433#
12434# Check to make sure the PIC flag actually works.
12435#
12436if test -n "$lt_prog_compiler_pic_CXX"; then
12437
dd184caf 12438{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12439echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
d9898ee8 12440if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12441 echo $ECHO_N "(cached) $ECHO_C" >&6
12442else
12443 lt_prog_compiler_pic_works_CXX=no
12444 ac_outfile=conftest.$ac_objext
ac40fd9e 12445 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 12446 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12447 # Insert the option either (1) after the last *FLAGS variable, or
12448 # (2) before a word containing "conftest.", or (3) at the end.
12449 # Note that $ac_compile itself does not contain backslashes and begins
12450 # with a dollar sign (not a hyphen), so the echo should work correctly.
12451 # The option is referenced via a variable to avoid confusing sed.
12452 lt_compile=`echo "$ac_compile" | $SED \
12453 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12454 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12455 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 12456 (eval echo "\"\$as_me:12456: $lt_compile\"" >&5)
d9898ee8 12457 (eval "$lt_compile" 2>conftest.err)
12458 ac_status=$?
12459 cat conftest.err >&5
ac40fd9e 12460 echo "$as_me:12460: \$? = $ac_status" >&5
d9898ee8 12461 if (exit $ac_status) && test -s "$ac_outfile"; then
12462 # The compiler can only warn and ignore the option if not recognized
12463 # So say no if there are warnings other than the usual output.
12464 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12465 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12466 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12467 lt_prog_compiler_pic_works_CXX=yes
12468 fi
12469 fi
12470 $rm conftest*
12471
12472fi
dd184caf 12473{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12474echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
d9898ee8 12475
12476if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12477 case $lt_prog_compiler_pic_CXX in
12478 "" | " "*) ;;
12479 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12480 esac
12481else
12482 lt_prog_compiler_pic_CXX=
12483 lt_prog_compiler_can_build_shared_CXX=no
12484fi
12485
12486fi
12487case $host_os in
12488 # For platforms which do not support PIC, -DPIC is meaningless:
12489 *djgpp*)
12490 lt_prog_compiler_pic_CXX=
12491 ;;
12492 *)
12493 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12494 ;;
12495esac
12496
12497#
12498# Check to make sure the static flag actually works.
12499#
12500wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
dd184caf 12501{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12502echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 12503if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12504 echo $ECHO_N "(cached) $ECHO_C" >&6
12505else
12506 lt_prog_compiler_static_works_CXX=no
12507 save_LDFLAGS="$LDFLAGS"
12508 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ac40fd9e 12509 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 12510 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12511 # The linker can only warn and ignore the option if not recognized
12512 # So say no if there are warnings
12513 if test -s conftest.err; then
12514 # Append any errors to the config.log.
12515 cat conftest.err 1>&5
12516 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12517 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12518 if diff conftest.exp conftest.er2 >/dev/null; then
12519 lt_prog_compiler_static_works_CXX=yes
12520 fi
12521 else
12522 lt_prog_compiler_static_works_CXX=yes
12523 fi
12524 fi
12525 $rm conftest*
12526 LDFLAGS="$save_LDFLAGS"
12527
12528fi
dd184caf 12529{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12530echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
d9898ee8 12531
12532if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12533 :
12534else
12535 lt_prog_compiler_static_CXX=
12536fi
12537
12538
dd184caf 12539{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12540echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 12541if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12542 echo $ECHO_N "(cached) $ECHO_C" >&6
12543else
12544 lt_cv_prog_compiler_c_o_CXX=no
12545 $rm -r conftest 2>/dev/null
12546 mkdir conftest
12547 cd conftest
12548 mkdir out
ac40fd9e 12549 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 12550
12551 lt_compiler_flag="-o out/conftest2.$ac_objext"
12552 # Insert the option either (1) after the last *FLAGS variable, or
12553 # (2) before a word containing "conftest.", or (3) at the end.
12554 # Note that $ac_compile itself does not contain backslashes and begins
12555 # with a dollar sign (not a hyphen), so the echo should work correctly.
12556 lt_compile=`echo "$ac_compile" | $SED \
12557 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12558 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12559 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 12560 (eval echo "\"\$as_me:12560: $lt_compile\"" >&5)
d9898ee8 12561 (eval "$lt_compile" 2>out/conftest.err)
12562 ac_status=$?
12563 cat out/conftest.err >&5
ac40fd9e 12564 echo "$as_me:12564: \$? = $ac_status" >&5
d9898ee8 12565 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12566 then
12567 # The compiler can only warn and ignore the option if not recognized
12568 # So say no if there are warnings
12569 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12570 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12571 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12572 lt_cv_prog_compiler_c_o_CXX=yes
12573 fi
12574 fi
12575 chmod u+w . 2>&5
12576 $rm conftest*
12577 # SGI C++ compiler will create directory out/ii_files/ for
12578 # template instantiation
12579 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12580 $rm out/* && rmdir out
12581 cd ..
12582 rmdir conftest
12583 $rm conftest*
12584
12585fi
dd184caf 12586{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12587echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
d9898ee8 12588
12589
12590hard_links="nottested"
12591if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12592 # do not overwrite the value of need_locks provided by the user
dd184caf 12593 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12594echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 12595 hard_links=yes
12596 $rm conftest*
12597 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12598 touch conftest.a
12599 ln conftest.a conftest.b 2>&5 || hard_links=no
12600 ln conftest.a conftest.b 2>/dev/null && hard_links=no
dd184caf 12601 { echo "$as_me:$LINENO: result: $hard_links" >&5
12602echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 12603 if test "$hard_links" = no; then
12604 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12605echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12606 need_locks=warn
12607 fi
12608else
12609 need_locks=no
12610fi
12611
dd184caf 12612{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12613echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 12614
12615 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12616 case $host_os in
12617 aix4* | aix5*)
12618 # If we're using GNU nm, then we don't want the "-C" option.
12619 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12620 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12621 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'
12622 else
12623 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'
12624 fi
12625 ;;
12626 pw32*)
12627 export_symbols_cmds_CXX="$ltdll_cmds"
12628 ;;
12629 cygwin* | mingw*)
ac40fd9e 12630 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d9898ee8 12631 ;;
12632 *)
12633 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12634 ;;
12635 esac
12636
dd184caf 12637{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12638echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d9898ee8 12639test "$ld_shlibs_CXX" = no && can_build_shared=no
12640
12641#
12642# Do we need to explicitly link libc?
12643#
12644case "x$archive_cmds_need_lc_CXX" in
12645x|xyes)
12646 # Assume -lc should be added
12647 archive_cmds_need_lc_CXX=yes
12648
12649 if test "$enable_shared" = yes && test "$GCC" = yes; then
12650 case $archive_cmds_CXX in
12651 *'~'*)
12652 # FIXME: we may have to deal with multi-command sequences.
12653 ;;
12654 '$CC '*)
12655 # Test whether the compiler implicitly links with -lc since on some
12656 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12657 # to ld, don't add -lc before -lgcc.
dd184caf 12658 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12659echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 12660 $rm conftest*
ac40fd9e 12661 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 12662
12663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12664 (eval $ac_compile) 2>&5
12665 ac_status=$?
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); } 2>conftest.err; then
12668 soname=conftest
12669 lib=conftest
12670 libobjs=conftest.$ac_objext
12671 deplibs=
12672 wl=$lt_prog_compiler_wl_CXX
12673 pic_flag=$lt_prog_compiler_pic_CXX
12674 compiler_flags=-v
12675 linker_flags=-v
12676 verstring=
12677 output_objdir=.
12678 libname=conftest
12679 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12680 allow_undefined_flag_CXX=
12681 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12682 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12683 ac_status=$?
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); }
12686 then
12687 archive_cmds_need_lc_CXX=no
12688 else
12689 archive_cmds_need_lc_CXX=yes
12690 fi
12691 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12692 else
12693 cat conftest.err 1>&5
12694 fi
12695 $rm conftest*
dd184caf 12696 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12697echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
d9898ee8 12698 ;;
12699 esac
12700 fi
12701 ;;
12702esac
12703
dd184caf 12704{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12705echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 12706library_names_spec=
12707libname_spec='lib$name'
12708soname_spec=
12709shrext_cmds=".so"
12710postinstall_cmds=
12711postuninstall_cmds=
12712finish_cmds=
12713finish_eval=
12714shlibpath_var=
12715shlibpath_overrides_runpath=unknown
12716version_type=none
12717dynamic_linker="$host_os ld.so"
12718sys_lib_dlsearch_path_spec="/lib /usr/lib"
ac40fd9e 12719
d9898ee8 12720need_lib_prefix=unknown
12721hardcode_into_libs=no
12722
12723# when you set need_version to no, make sure it does not cause -set_version
12724# flags to be left without arguments
12725need_version=unknown
12726
12727case $host_os in
12728aix3*)
12729 version_type=linux
12730 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12731 shlibpath_var=LIBPATH
12732
12733 # AIX 3 has no versioning support, so we append a major version to the name.
12734 soname_spec='${libname}${release}${shared_ext}$major'
12735 ;;
12736
12737aix4* | aix5*)
12738 version_type=linux
12739 need_lib_prefix=no
12740 need_version=no
12741 hardcode_into_libs=yes
12742 if test "$host_cpu" = ia64; then
12743 # AIX 5 supports IA64
12744 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12745 shlibpath_var=LD_LIBRARY_PATH
12746 else
12747 # With GCC up to 2.95.x, collect2 would create an import file
12748 # for dependence libraries. The import file would start with
12749 # the line `#! .'. This would cause the generated library to
12750 # depend on `.', always an invalid library. This was fixed in
12751 # development snapshots of GCC prior to 3.0.
12752 case $host_os in
12753 aix4 | aix4.[01] | aix4.[01].*)
12754 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12755 echo ' yes '
12756 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12757 :
12758 else
12759 can_build_shared=no
12760 fi
12761 ;;
12762 esac
12763 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12764 # soname into executable. Probably we can add versioning support to
12765 # collect2, so additional links can be useful in future.
12766 if test "$aix_use_runtimelinking" = yes; then
12767 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12768 # instead of lib<name>.a to let people know that these are not
12769 # typical AIX shared libraries.
12770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12771 else
12772 # We preserve .a as extension for shared libraries through AIX4.2
12773 # and later when we are not doing run time linking.
12774 library_names_spec='${libname}${release}.a $libname.a'
12775 soname_spec='${libname}${release}${shared_ext}$major'
12776 fi
12777 shlibpath_var=LIBPATH
12778 fi
12779 ;;
12780
12781amigaos*)
12782 library_names_spec='$libname.ixlibrary $libname.a'
12783 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12784 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'
12785 ;;
12786
12787beos*)
12788 library_names_spec='${libname}${shared_ext}'
12789 dynamic_linker="$host_os ld.so"
12790 shlibpath_var=LIBRARY_PATH
12791 ;;
12792
12793bsdi[45]*)
12794 version_type=linux
12795 need_version=no
12796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12797 soname_spec='${libname}${release}${shared_ext}$major'
12798 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12799 shlibpath_var=LD_LIBRARY_PATH
12800 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12801 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12802 # the default ld.so.conf also contains /usr/contrib/lib and
12803 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12804 # libtool to hard-code these into programs
12805 ;;
12806
12807cygwin* | mingw* | pw32*)
12808 version_type=windows
12809 shrext_cmds=".dll"
12810 need_version=no
12811 need_lib_prefix=no
12812
12813 case $GCC,$host_os in
12814 yes,cygwin* | yes,mingw* | yes,pw32*)
12815 library_names_spec='$libname.dll.a'
12816 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12817 postinstall_cmds='base_file=`basename \${file}`~
12818 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12819 dldir=$destdir/`dirname \$dlpath`~
12820 test -d \$dldir || mkdir -p \$dldir~
12821 $install_prog $dir/$dlname \$dldir/$dlname~
12822 chmod a+x \$dldir/$dlname'
12823 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12824 dlpath=$dir/\$dldll~
12825 $rm \$dlpath'
12826 shlibpath_overrides_runpath=yes
12827
12828 case $host_os in
12829 cygwin*)
12830 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12831 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12832 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12833 ;;
12834 mingw*)
12835 # MinGW DLLs use traditional 'lib' prefix
12836 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12837 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12838 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12839 # It is most probably a Windows format PATH printed by
12840 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12841 # path with ; separators, and with drive letters. We can handle the
12842 # drive letters (cygwin fileutils understands them), so leave them,
12843 # especially as we might pass files found there to a mingw objdump,
12844 # which wouldn't understand a cygwinified path. Ahh.
12845 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12846 else
12847 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12848 fi
12849 ;;
12850 pw32*)
12851 # pw32 DLLs use 'pw' prefix rather than 'lib'
12852 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12853 ;;
12854 esac
12855 ;;
12856
12857 *)
12858 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12859 ;;
12860 esac
12861 dynamic_linker='Win32 ld.exe'
12862 # FIXME: first we should search . and the directory the executable is in
12863 shlibpath_var=PATH
12864 ;;
12865
12866darwin* | rhapsody*)
12867 dynamic_linker="$host_os dyld"
12868 version_type=darwin
12869 need_lib_prefix=no
12870 need_version=no
12871 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12872 soname_spec='${libname}${release}${major}$shared_ext'
12873 shlibpath_overrides_runpath=yes
12874 shlibpath_var=DYLD_LIBRARY_PATH
12875 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ac40fd9e 12876
d9898ee8 12877 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12878 ;;
12879
12880dgux*)
12881 version_type=linux
12882 need_lib_prefix=no
12883 need_version=no
12884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12885 soname_spec='${libname}${release}${shared_ext}$major'
12886 shlibpath_var=LD_LIBRARY_PATH
12887 ;;
12888
12889freebsd1*)
12890 dynamic_linker=no
12891 ;;
12892
d9898ee8 12893freebsd* | dragonfly*)
12894 # DragonFly does not have aout. When/if they implement a new
12895 # versioning mechanism, adjust this.
12896 if test -x /usr/bin/objformat; then
12897 objformat=`/usr/bin/objformat`
12898 else
12899 case $host_os in
12900 freebsd[123]*) objformat=aout ;;
12901 *) objformat=elf ;;
12902 esac
12903 fi
12904 version_type=freebsd-$objformat
12905 case $version_type in
12906 freebsd-elf*)
12907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12908 need_version=no
12909 need_lib_prefix=no
12910 ;;
12911 freebsd-*)
12912 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12913 need_version=yes
12914 ;;
12915 esac
12916 shlibpath_var=LD_LIBRARY_PATH
12917 case $host_os in
12918 freebsd2*)
12919 shlibpath_overrides_runpath=yes
12920 ;;
12921 freebsd3.[01]* | freebsdelf3.[01]*)
12922 shlibpath_overrides_runpath=yes
12923 hardcode_into_libs=yes
12924 ;;
12925 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12926 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12927 shlibpath_overrides_runpath=no
12928 hardcode_into_libs=yes
12929 ;;
ac40fd9e 12930 *) # from 4.6 on, and DragonFly
d9898ee8 12931 shlibpath_overrides_runpath=yes
12932 hardcode_into_libs=yes
12933 ;;
12934 esac
12935 ;;
12936
12937gnu*)
12938 version_type=linux
12939 need_lib_prefix=no
12940 need_version=no
12941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12942 soname_spec='${libname}${release}${shared_ext}$major'
12943 shlibpath_var=LD_LIBRARY_PATH
12944 hardcode_into_libs=yes
12945 ;;
12946
12947hpux9* | hpux10* | hpux11*)
12948 # Give a soname corresponding to the major version so that dld.sl refuses to
12949 # link against other versions.
12950 version_type=sunos
12951 need_lib_prefix=no
12952 need_version=no
12953 case $host_cpu in
12954 ia64*)
12955 shrext_cmds='.so'
12956 hardcode_into_libs=yes
12957 dynamic_linker="$host_os dld.so"
12958 shlibpath_var=LD_LIBRARY_PATH
12959 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12961 soname_spec='${libname}${release}${shared_ext}$major'
12962 if test "X$HPUX_IA64_MODE" = X32; then
12963 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12964 else
12965 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12966 fi
12967 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12968 ;;
12969 hppa*64*)
12970 shrext_cmds='.sl'
12971 hardcode_into_libs=yes
12972 dynamic_linker="$host_os dld.sl"
12973 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12974 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12976 soname_spec='${libname}${release}${shared_ext}$major'
12977 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12978 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12979 ;;
12980 *)
12981 shrext_cmds='.sl'
12982 dynamic_linker="$host_os dld.sl"
12983 shlibpath_var=SHLIB_PATH
12984 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12986 soname_spec='${libname}${release}${shared_ext}$major'
12987 ;;
12988 esac
12989 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12990 postinstall_cmds='chmod 555 $lib'
12991 ;;
12992
ac40fd9e 12993interix[3-9]*)
d9898ee8 12994 version_type=linux
12995 need_lib_prefix=no
12996 need_version=no
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='Interix 3.x ld.so.1 (PE, like ELF)'
13000 shlibpath_var=LD_LIBRARY_PATH
13001 shlibpath_overrides_runpath=no
13002 hardcode_into_libs=yes
13003 ;;
13004
13005irix5* | irix6* | nonstopux*)
13006 case $host_os in
13007 nonstopux*) version_type=nonstopux ;;
13008 *)
13009 if test "$lt_cv_prog_gnu_ld" = yes; then
13010 version_type=linux
13011 else
13012 version_type=irix
13013 fi ;;
13014 esac
13015 need_lib_prefix=no
13016 need_version=no
13017 soname_spec='${libname}${release}${shared_ext}$major'
13018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13019 case $host_os in
13020 irix5* | nonstopux*)
13021 libsuff= shlibsuff=
13022 ;;
13023 *)
13024 case $LD in # libtool.m4 will add one of these switches to LD
13025 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13026 libsuff= shlibsuff= libmagic=32-bit;;
13027 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13028 libsuff=32 shlibsuff=N32 libmagic=N32;;
13029 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13030 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13031 *) libsuff= shlibsuff= libmagic=never-match;;
13032 esac
13033 ;;
13034 esac
13035 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13036 shlibpath_overrides_runpath=no
13037 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13038 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13039 hardcode_into_libs=yes
13040 ;;
13041
13042# No shared lib support for Linux oldld, aout, or coff.
13043linux*oldld* | linux*aout* | linux*coff*)
13044 dynamic_linker=no
13045 ;;
13046
13047# This must be Linux ELF.
ac40fd9e 13048linux* | k*bsd*-gnu)
d9898ee8 13049 version_type=linux
13050 need_lib_prefix=no
13051 need_version=no
13052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13053 soname_spec='${libname}${release}${shared_ext}$major'
13054 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13055 shlibpath_var=LD_LIBRARY_PATH
13056 shlibpath_overrides_runpath=no
13057 # This implies no fast_install, which is unacceptable.
13058 # Some rework will be needed to allow for fast_install
13059 # before this can be enabled.
13060 hardcode_into_libs=yes
ac40fd9e 13061 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13062 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
d9898ee8 13063
13064 # Append ld.so.conf contents to the search path
13065 if test -f /etc/ld.so.conf; then
ac40fd9e 13066 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13067 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 13068 fi
13069
13070 # We used to test for /lib/ld.so.1 and disable shared libraries on
13071 # powerpc, because MkLinux only supported shared libraries with the
13072 # GNU dynamic linker. Since this was broken with cross compilers,
13073 # most powerpc-linux boxes support dynamic linking these days and
13074 # people can always --disable-shared, the test was removed, and we
13075 # assume the GNU/Linux dynamic linker is in use.
13076 dynamic_linker='GNU/Linux ld.so'
13077 ;;
13078
d9898ee8 13079netbsd*)
13080 version_type=sunos
13081 need_lib_prefix=no
13082 need_version=no
13083 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13085 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13086 dynamic_linker='NetBSD (a.out) ld.so'
13087 else
13088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13089 soname_spec='${libname}${release}${shared_ext}$major'
13090 dynamic_linker='NetBSD ld.elf_so'
13091 fi
13092 shlibpath_var=LD_LIBRARY_PATH
13093 shlibpath_overrides_runpath=yes
13094 hardcode_into_libs=yes
13095 ;;
13096
13097newsos6)
13098 version_type=linux
13099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13100 shlibpath_var=LD_LIBRARY_PATH
13101 shlibpath_overrides_runpath=yes
13102 ;;
13103
13104nto-qnx*)
13105 version_type=linux
13106 need_lib_prefix=no
13107 need_version=no
13108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13109 soname_spec='${libname}${release}${shared_ext}$major'
13110 shlibpath_var=LD_LIBRARY_PATH
13111 shlibpath_overrides_runpath=yes
13112 ;;
13113
13114openbsd*)
13115 version_type=sunos
13116 sys_lib_dlsearch_path_spec="/usr/lib"
13117 need_lib_prefix=no
13118 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13119 case $host_os in
13120 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13121 *) need_version=no ;;
13122 esac
13123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13124 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13125 shlibpath_var=LD_LIBRARY_PATH
13126 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13127 case $host_os in
13128 openbsd2.[89] | openbsd2.[89].*)
13129 shlibpath_overrides_runpath=no
13130 ;;
13131 *)
13132 shlibpath_overrides_runpath=yes
13133 ;;
13134 esac
13135 else
13136 shlibpath_overrides_runpath=yes
13137 fi
13138 ;;
13139
13140os2*)
13141 libname_spec='$name'
13142 shrext_cmds=".dll"
13143 need_lib_prefix=no
13144 library_names_spec='$libname${shared_ext} $libname.a'
13145 dynamic_linker='OS/2 ld.exe'
13146 shlibpath_var=LIBPATH
13147 ;;
13148
13149osf3* | osf4* | osf5*)
13150 version_type=osf
13151 need_lib_prefix=no
13152 need_version=no
13153 soname_spec='${libname}${release}${shared_ext}$major'
13154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13155 shlibpath_var=LD_LIBRARY_PATH
13156 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13157 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13158 ;;
13159
ac40fd9e 13160rdos*)
13161 dynamic_linker=no
13162 ;;
13163
d9898ee8 13164solaris*)
13165 version_type=linux
13166 need_lib_prefix=no
13167 need_version=no
13168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13169 soname_spec='${libname}${release}${shared_ext}$major'
13170 shlibpath_var=LD_LIBRARY_PATH
13171 shlibpath_overrides_runpath=yes
13172 hardcode_into_libs=yes
13173 # ldd complains unless libraries are executable
13174 postinstall_cmds='chmod +x $lib'
13175 ;;
13176
13177sunos4*)
13178 version_type=sunos
13179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13180 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13181 shlibpath_var=LD_LIBRARY_PATH
13182 shlibpath_overrides_runpath=yes
13183 if test "$with_gnu_ld" = yes; then
13184 need_lib_prefix=no
13185 fi
13186 need_version=yes
13187 ;;
13188
13189sysv4 | sysv4.3*)
13190 version_type=linux
13191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13192 soname_spec='${libname}${release}${shared_ext}$major'
13193 shlibpath_var=LD_LIBRARY_PATH
13194 case $host_vendor in
13195 sni)
13196 shlibpath_overrides_runpath=no
13197 need_lib_prefix=no
13198 export_dynamic_flag_spec='${wl}-Blargedynsym'
13199 runpath_var=LD_RUN_PATH
13200 ;;
13201 siemens)
13202 need_lib_prefix=no
13203 ;;
13204 motorola)
13205 need_lib_prefix=no
13206 need_version=no
13207 shlibpath_overrides_runpath=no
13208 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13209 ;;
13210 esac
13211 ;;
13212
13213sysv4*MP*)
13214 if test -d /usr/nec ;then
13215 version_type=linux
13216 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13217 soname_spec='$libname${shared_ext}.$major'
13218 shlibpath_var=LD_LIBRARY_PATH
13219 fi
13220 ;;
13221
13222sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13223 version_type=freebsd-elf
13224 need_lib_prefix=no
13225 need_version=no
13226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13227 soname_spec='${libname}${release}${shared_ext}$major'
13228 shlibpath_var=LD_LIBRARY_PATH
13229 hardcode_into_libs=yes
13230 if test "$with_gnu_ld" = yes; then
13231 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13232 shlibpath_overrides_runpath=no
13233 else
13234 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13235 shlibpath_overrides_runpath=yes
13236 case $host_os in
13237 sco3.2v5*)
13238 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13239 ;;
13240 esac
13241 fi
13242 sys_lib_dlsearch_path_spec='/usr/lib'
13243 ;;
13244
13245uts4*)
13246 version_type=linux
13247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13248 soname_spec='${libname}${release}${shared_ext}$major'
13249 shlibpath_var=LD_LIBRARY_PATH
13250 ;;
13251
13252*)
13253 dynamic_linker=no
13254 ;;
13255esac
dd184caf 13256{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13257echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 13258test "$dynamic_linker" = no && can_build_shared=no
13259
13260variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13261if test "$GCC" = yes; then
13262 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13263fi
13264
dd184caf 13265{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13266echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 13267hardcode_action_CXX=
13268if test -n "$hardcode_libdir_flag_spec_CXX" || \
13269 test -n "$runpath_var_CXX" || \
13270 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13271
13272 # We can hardcode non-existant directories.
13273 if test "$hardcode_direct_CXX" != no &&
13274 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13275 # have to relink, otherwise we might link with an installed library
13276 # when we should be linking with a yet-to-be-installed one
13277 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13278 test "$hardcode_minus_L_CXX" != no; then
13279 # Linking always hardcodes the temporary library directory.
13280 hardcode_action_CXX=relink
13281 else
13282 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13283 hardcode_action_CXX=immediate
13284 fi
13285else
13286 # We cannot hardcode anything, or else we can only hardcode existing
13287 # directories.
13288 hardcode_action_CXX=unsupported
13289fi
dd184caf 13290{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13291echo "${ECHO_T}$hardcode_action_CXX" >&6; }
d9898ee8 13292
13293if test "$hardcode_action_CXX" = relink; then
13294 # Fast installation is not supported
13295 enable_fast_install=no
13296elif test "$shlibpath_overrides_runpath" = yes ||
13297 test "$enable_shared" = no; then
13298 # Fast installation is not necessary
13299 enable_fast_install=needless
13300fi
13301
13302
13303# The else clause should only fire when bootstrapping the
13304# libtool distribution, otherwise you forgot to ship ltmain.sh
13305# with your package, and you will get complaints that there are
13306# no rules to generate ltmain.sh.
13307if test -f "$ltmain"; then
13308 # See if we are running on zsh, and set the options which allow our commands through
13309 # without removal of \ escapes.
13310 if test -n "${ZSH_VERSION+set}" ; then
13311 setopt NO_GLOB_SUBST
13312 fi
13313 # Now quote all the things that may contain metacharacters while being
13314 # careful not to overquote the AC_SUBSTed values. We take copies of the
13315 # variables and quote the copies for generation of the libtool script.
13316 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13317 SED SHELL STRIP \
13318 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13319 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13320 deplibs_check_method reload_flag reload_cmds need_locks \
13321 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13322 lt_cv_sys_global_symbol_to_c_name_address \
13323 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13324 old_postinstall_cmds old_postuninstall_cmds \
13325 compiler_CXX \
13326 CC_CXX \
13327 LD_CXX \
13328 lt_prog_compiler_wl_CXX \
13329 lt_prog_compiler_pic_CXX \
13330 lt_prog_compiler_static_CXX \
13331 lt_prog_compiler_no_builtin_flag_CXX \
13332 export_dynamic_flag_spec_CXX \
13333 thread_safe_flag_spec_CXX \
13334 whole_archive_flag_spec_CXX \
13335 enable_shared_with_static_runtimes_CXX \
13336 old_archive_cmds_CXX \
13337 old_archive_from_new_cmds_CXX \
13338 predep_objects_CXX \
13339 postdep_objects_CXX \
13340 predeps_CXX \
13341 postdeps_CXX \
13342 compiler_lib_search_path_CXX \
13343 archive_cmds_CXX \
13344 archive_expsym_cmds_CXX \
13345 postinstall_cmds_CXX \
13346 postuninstall_cmds_CXX \
13347 old_archive_from_expsyms_cmds_CXX \
13348 allow_undefined_flag_CXX \
13349 no_undefined_flag_CXX \
13350 export_symbols_cmds_CXX \
13351 hardcode_libdir_flag_spec_CXX \
13352 hardcode_libdir_flag_spec_ld_CXX \
13353 hardcode_libdir_separator_CXX \
13354 hardcode_automatic_CXX \
13355 module_cmds_CXX \
13356 module_expsym_cmds_CXX \
13357 lt_cv_prog_compiler_c_o_CXX \
ac40fd9e 13358 fix_srcfile_path_CXX \
d9898ee8 13359 exclude_expsyms_CXX \
13360 include_expsyms_CXX; do
13361
13362 case $var in
13363 old_archive_cmds_CXX | \
13364 old_archive_from_new_cmds_CXX | \
13365 archive_cmds_CXX | \
13366 archive_expsym_cmds_CXX | \
13367 module_cmds_CXX | \
13368 module_expsym_cmds_CXX | \
13369 old_archive_from_expsyms_cmds_CXX | \
13370 export_symbols_cmds_CXX | \
13371 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13372 postinstall_cmds | postuninstall_cmds | \
13373 old_postinstall_cmds | old_postuninstall_cmds | \
13374 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13375 # Double-quote double-evaled strings.
13376 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13377 ;;
13378 *)
13379 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13380 ;;
13381 esac
13382 done
13383
13384 case $lt_echo in
13385 *'\$0 --fallback-echo"')
13386 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13387 ;;
13388 esac
13389
13390cfgfile="$ofile"
13391
13392 cat <<__EOF__ >> "$cfgfile"
13393# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13394
13395# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13396
13397# Shell to use when invoking shell scripts.
13398SHELL=$lt_SHELL
13399
13400# Whether or not to build shared libraries.
13401build_libtool_libs=$enable_shared
13402
13403# Whether or not to build static libraries.
13404build_old_libs=$enable_static
13405
13406# Whether or not to add -lc for building shared libraries.
13407build_libtool_need_lc=$archive_cmds_need_lc_CXX
13408
13409# Whether or not to disallow shared libs when runtime libs are static
13410allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13411
13412# Whether or not to optimize for fast installation.
13413fast_install=$enable_fast_install
13414
13415# The host system.
13416host_alias=$host_alias
13417host=$host
13418host_os=$host_os
13419
13420# The build system.
13421build_alias=$build_alias
13422build=$build
13423build_os=$build_os
13424
13425# An echo program that does not interpret backslashes.
13426echo=$lt_echo
13427
13428# The archiver.
13429AR=$lt_AR
13430AR_FLAGS=$lt_AR_FLAGS
13431
13432# A C compiler.
13433LTCC=$lt_LTCC
13434
13435# LTCC compiler flags.
13436LTCFLAGS=$lt_LTCFLAGS
13437
13438# A language-specific compiler.
13439CC=$lt_compiler_CXX
13440
13441# Is the compiler the GNU C compiler?
13442with_gcc=$GCC_CXX
13443
d9898ee8 13444# An ERE matcher.
13445EGREP=$lt_EGREP
13446
13447# The linker used to build libraries.
13448LD=$lt_LD_CXX
13449
13450# Whether we need hard or soft links.
13451LN_S=$lt_LN_S
13452
13453# A BSD-compatible nm program.
13454NM=$lt_NM
13455
13456# A symbol stripping program
13457STRIP=$lt_STRIP
13458
13459# Used to examine libraries when file_magic_cmd begins "file"
13460MAGIC_CMD=$MAGIC_CMD
13461
13462# Used on cygwin: DLL creation program.
13463DLLTOOL="$DLLTOOL"
13464
13465# Used on cygwin: object dumper.
13466OBJDUMP="$OBJDUMP"
13467
13468# Used on cygwin: assembler.
13469AS="$AS"
13470
13471# The name of the directory that contains temporary libtool files.
13472objdir=$objdir
13473
13474# How to create reloadable object files.
13475reload_flag=$lt_reload_flag
13476reload_cmds=$lt_reload_cmds
13477
13478# How to pass a linker flag through the compiler.
13479wl=$lt_lt_prog_compiler_wl_CXX
13480
13481# Object file suffix (normally "o").
13482objext="$ac_objext"
13483
13484# Old archive suffix (normally "a").
13485libext="$libext"
13486
13487# Shared library suffix (normally ".so").
13488shrext_cmds='$shrext_cmds'
13489
13490# Executable file suffix (normally "").
13491exeext="$exeext"
13492
13493# Additional compiler flags for building library objects.
13494pic_flag=$lt_lt_prog_compiler_pic_CXX
13495pic_mode=$pic_mode
13496
13497# What is the maximum length of a command?
13498max_cmd_len=$lt_cv_sys_max_cmd_len
13499
13500# Does compiler simultaneously support -c and -o options?
13501compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13502
13503# Must we lock files when doing compilation?
13504need_locks=$lt_need_locks
13505
13506# Do we need the lib prefix for modules?
13507need_lib_prefix=$need_lib_prefix
13508
13509# Do we need a version for libraries?
13510need_version=$need_version
13511
13512# Whether dlopen is supported.
13513dlopen_support=$enable_dlopen
13514
13515# Whether dlopen of programs is supported.
13516dlopen_self=$enable_dlopen_self
13517
13518# Whether dlopen of statically linked programs is supported.
13519dlopen_self_static=$enable_dlopen_self_static
13520
13521# Compiler flag to prevent dynamic linking.
13522link_static_flag=$lt_lt_prog_compiler_static_CXX
13523
13524# Compiler flag to turn off builtin functions.
13525no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13526
13527# Compiler flag to allow reflexive dlopens.
13528export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13529
13530# Compiler flag to generate shared objects directly from archives.
13531whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13532
13533# Compiler flag to generate thread-safe objects.
13534thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13535
13536# Library versioning type.
13537version_type=$version_type
13538
13539# Format of library name prefix.
13540libname_spec=$lt_libname_spec
13541
13542# List of archive names. First name is the real one, the rest are links.
13543# The last name is the one that the linker finds with -lNAME.
13544library_names_spec=$lt_library_names_spec
13545
13546# The coded name of the library, if different from the real name.
13547soname_spec=$lt_soname_spec
13548
13549# Commands used to build and install an old-style archive.
13550RANLIB=$lt_RANLIB
13551old_archive_cmds=$lt_old_archive_cmds_CXX
13552old_postinstall_cmds=$lt_old_postinstall_cmds
13553old_postuninstall_cmds=$lt_old_postuninstall_cmds
13554
13555# Create an old-style archive from a shared archive.
13556old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13557
13558# Create a temporary old-style archive to link instead of a shared archive.
13559old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13560
13561# Commands used to build and install a shared archive.
13562archive_cmds=$lt_archive_cmds_CXX
13563archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13564postinstall_cmds=$lt_postinstall_cmds
13565postuninstall_cmds=$lt_postuninstall_cmds
13566
13567# Commands used to build a loadable module (assumed same as above if empty)
13568module_cmds=$lt_module_cmds_CXX
13569module_expsym_cmds=$lt_module_expsym_cmds_CXX
13570
13571# Commands to strip libraries.
13572old_striplib=$lt_old_striplib
13573striplib=$lt_striplib
13574
13575# Dependencies to place before the objects being linked to create a
13576# shared library.
dd184caf 13577predep_objects=$lt_predep_objects_CXX
d9898ee8 13578
13579# Dependencies to place after the objects being linked to create a
13580# shared library.
dd184caf 13581postdep_objects=$lt_postdep_objects_CXX
d9898ee8 13582
13583# Dependencies to place before the objects being linked to create a
13584# shared library.
13585predeps=$lt_predeps_CXX
13586
13587# Dependencies to place after the objects being linked to create a
13588# shared library.
13589postdeps=$lt_postdeps_CXX
13590
13591# The library search path used internally by the compiler when linking
13592# a shared library.
dd184caf 13593compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
d9898ee8 13594
13595# Method to check whether dependent libraries are shared objects.
13596deplibs_check_method=$lt_deplibs_check_method
13597
13598# Command to use when deplibs_check_method == file_magic.
13599file_magic_cmd=$lt_file_magic_cmd
13600
13601# Flag that allows shared libraries with undefined symbols to be built.
13602allow_undefined_flag=$lt_allow_undefined_flag_CXX
13603
13604# Flag that forces no undefined symbols.
13605no_undefined_flag=$lt_no_undefined_flag_CXX
13606
13607# Commands used to finish a libtool library installation in a directory.
13608finish_cmds=$lt_finish_cmds
13609
13610# Same as above, but a single script fragment to be evaled but not shown.
13611finish_eval=$lt_finish_eval
13612
13613# Take the output of nm and produce a listing of raw symbols and C names.
13614global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13615
13616# Transform the output of nm in a proper C declaration
13617global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13618
13619# Transform the output of nm in a C name address pair
13620global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13621
13622# This is the shared library runtime path variable.
13623runpath_var=$runpath_var
13624
13625# This is the shared library path variable.
13626shlibpath_var=$shlibpath_var
13627
13628# Is shlibpath searched before the hard-coded library search path?
13629shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13630
13631# How to hardcode a shared library path into an executable.
13632hardcode_action=$hardcode_action_CXX
13633
13634# Whether we should hardcode library paths into libraries.
13635hardcode_into_libs=$hardcode_into_libs
13636
13637# Flag to hardcode \$libdir into a binary during linking.
13638# This must work even if \$libdir does not exist.
13639hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13640
13641# If ld is used when linking, flag to hardcode \$libdir into
13642# a binary during linking. This must work even if \$libdir does
13643# not exist.
13644hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13645
13646# Whether we need a single -rpath flag with a separated argument.
13647hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13648
13649# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13650# resulting binary.
13651hardcode_direct=$hardcode_direct_CXX
13652
13653# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13654# resulting binary.
13655hardcode_minus_L=$hardcode_minus_L_CXX
13656
13657# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13658# the resulting binary.
13659hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13660
13661# Set to yes if building a shared library automatically hardcodes DIR into the library
13662# and all subsequent libraries and executables linked against it.
13663hardcode_automatic=$hardcode_automatic_CXX
13664
13665# Variables whose values should be saved in libtool wrapper scripts and
13666# restored at relink time.
13667variables_saved_for_relink="$variables_saved_for_relink"
13668
13669# Whether libtool must link a program against all its dependency libraries.
13670link_all_deplibs=$link_all_deplibs_CXX
13671
13672# Compile-time system search path for libraries
dd184caf 13673sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 13674
13675# Run-time system search path for libraries
13676sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13677
13678# Fix the shell variable \$srcfile for the compiler.
ac40fd9e 13679fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 13680
13681# Set to yes if exported symbols are required.
13682always_export_symbols=$always_export_symbols_CXX
13683
13684# The commands to list exported symbols.
13685export_symbols_cmds=$lt_export_symbols_cmds_CXX
13686
13687# The commands to extract the exported symbol list from a shared archive.
13688extract_expsyms_cmds=$lt_extract_expsyms_cmds
13689
13690# Symbols that should not be listed in the preloaded symbols.
13691exclude_expsyms=$lt_exclude_expsyms_CXX
13692
13693# Symbols that must always be exported.
13694include_expsyms=$lt_include_expsyms_CXX
13695
13696# ### END LIBTOOL TAG CONFIG: $tagname
13697
13698__EOF__
13699
13700
13701else
13702 # If there is no Makefile yet, we rely on a make rule to execute
13703 # `config.status --recheck' to rerun these tests and create the
13704 # libtool script then.
13705 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13706 if test -f "$ltmain_in"; then
13707 test -f Makefile && make "$ltmain"
13708 fi
13709fi
13710
13711
13712ac_ext=c
13713ac_cpp='$CPP $CPPFLAGS'
13714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13716ac_compiler_gnu=$ac_cv_c_compiler_gnu
13717
13718CC=$lt_save_CC
13719LDCXX=$LD
13720LD=$lt_save_LD
13721GCC=$lt_save_GCC
13722with_gnu_ldcxx=$with_gnu_ld
13723with_gnu_ld=$lt_save_with_gnu_ld
13724lt_cv_path_LDCXX=$lt_cv_path_LD
13725lt_cv_path_LD=$lt_save_path_LD
13726lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13727lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13728
13729 else
13730 tagname=""
13731 fi
13732 ;;
13733
13734 F77)
13735 if test -n "$F77" && test "X$F77" != "Xno"; then
13736
13737ac_ext=f
13738ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13739ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13740ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13741
13742
13743archive_cmds_need_lc_F77=no
13744allow_undefined_flag_F77=
13745always_export_symbols_F77=no
13746archive_expsym_cmds_F77=
13747export_dynamic_flag_spec_F77=
13748hardcode_direct_F77=no
13749hardcode_libdir_flag_spec_F77=
13750hardcode_libdir_flag_spec_ld_F77=
13751hardcode_libdir_separator_F77=
13752hardcode_minus_L_F77=no
13753hardcode_automatic_F77=no
13754module_cmds_F77=
13755module_expsym_cmds_F77=
13756link_all_deplibs_F77=unknown
13757old_archive_cmds_F77=$old_archive_cmds
13758no_undefined_flag_F77=
13759whole_archive_flag_spec_F77=
13760enable_shared_with_static_runtimes_F77=no
13761
13762# Source file extension for f77 test sources.
13763ac_ext=f
13764
13765# Object file extension for compiled f77 test sources.
13766objext=o
13767objext_F77=$objext
13768
13769# Code to be used in simple compile tests
ac40fd9e 13770lt_simple_compile_test_code="\
13771 subroutine t
13772 return
13773 end
13774"
d9898ee8 13775
13776# Code to be used in simple link tests
ac40fd9e 13777lt_simple_link_test_code="\
13778 program t
13779 end
13780"
d9898ee8 13781
13782# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13783
13784# If no C compiler was specified, use CC.
13785LTCC=${LTCC-"$CC"}
13786
13787# If no C compiler flags were specified, use CFLAGS.
13788LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13789
13790# Allow CC to be a program name with arguments.
13791compiler=$CC
13792
13793
13794# save warnings/boilerplate of simple test code
13795ac_outfile=conftest.$ac_objext
ac40fd9e 13796echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 13797eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13798_lt_compiler_boilerplate=`cat conftest.err`
13799$rm conftest*
13800
13801ac_outfile=conftest.$ac_objext
ac40fd9e 13802echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 13803eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13804_lt_linker_boilerplate=`cat conftest.err`
13805$rm conftest*
13806
13807
13808# Allow CC to be a program name with arguments.
13809lt_save_CC="$CC"
13810CC=${F77-"f77"}
13811compiler=$CC
13812compiler_F77=$CC
13813for cc_temp in $compiler""; do
13814 case $cc_temp in
13815 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13816 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13817 \-*) ;;
13818 *) break;;
13819 esac
13820done
13821cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13822
13823
dd184caf 13824{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13825echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13826{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13827echo "${ECHO_T}$can_build_shared" >&6; }
d9898ee8 13828
dd184caf 13829{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13830echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d9898ee8 13831test "$can_build_shared" = "no" && enable_shared=no
13832
13833# On AIX, shared libraries and static libraries use the same namespace, and
13834# are all built from PIC.
13835case $host_os in
13836aix3*)
13837 test "$enable_shared" = yes && enable_static=no
13838 if test -n "$RANLIB"; then
13839 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13840 postinstall_cmds='$RANLIB $lib'
13841 fi
13842 ;;
13843aix4* | aix5*)
13844 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13845 test "$enable_shared" = yes && enable_static=no
13846 fi
13847 ;;
13848esac
dd184caf 13849{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13850echo "${ECHO_T}$enable_shared" >&6; }
d9898ee8 13851
dd184caf 13852{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13853echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d9898ee8 13854# Make sure either enable_shared or enable_static is yes.
13855test "$enable_shared" = yes || enable_static=yes
dd184caf 13856{ echo "$as_me:$LINENO: result: $enable_static" >&5
13857echo "${ECHO_T}$enable_static" >&6; }
d9898ee8 13858
13859GCC_F77="$G77"
13860LD_F77="$LD"
13861
13862lt_prog_compiler_wl_F77=
13863lt_prog_compiler_pic_F77=
13864lt_prog_compiler_static_F77=
13865
dd184caf 13866{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13867echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 13868
13869 if test "$GCC" = yes; then
13870 lt_prog_compiler_wl_F77='-Wl,'
13871 lt_prog_compiler_static_F77='-static'
13872
13873 case $host_os in
13874 aix*)
13875 # All AIX code is PIC.
13876 if test "$host_cpu" = ia64; then
13877 # AIX 5 now supports IA64 processor
13878 lt_prog_compiler_static_F77='-Bstatic'
13879 fi
13880 ;;
13881
13882 amigaos*)
13883 # FIXME: we need at least 68020 code to build shared libraries, but
13884 # adding the `-m68020' flag to GCC prevents building anything better,
13885 # like `-m68040'.
13886 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13887 ;;
13888
ac40fd9e 13889 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 13890 # PIC is the default for these OSes.
13891 ;;
13892
ac40fd9e 13893 mingw* | cygwin* | pw32* | os2*)
d9898ee8 13894 # This hack is so that the source file can tell whether it is being
13895 # built for inclusion in a dll (and should export symbols for example).
ac40fd9e 13896 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13897 # (--disable-auto-import) libraries
d9898ee8 13898 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13899 ;;
13900
13901 darwin* | rhapsody*)
13902 # PIC is the default on this platform
13903 # Common symbols not allowed in MH_DYLIB files
13904 lt_prog_compiler_pic_F77='-fno-common'
13905 ;;
13906
ac40fd9e 13907 interix[3-9]*)
d9898ee8 13908 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13909 # Instead, we relocate shared libraries at runtime.
13910 ;;
13911
13912 msdosdjgpp*)
13913 # Just because we use GCC doesn't mean we suddenly get shared libraries
13914 # on systems that don't support them.
13915 lt_prog_compiler_can_build_shared_F77=no
13916 enable_shared=no
13917 ;;
13918
13919 sysv4*MP*)
13920 if test -d /usr/nec; then
13921 lt_prog_compiler_pic_F77=-Kconform_pic
13922 fi
13923 ;;
13924
13925 hpux*)
13926 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13927 # not for PA HP-UX.
13928 case $host_cpu in
13929 hppa*64*|ia64*)
13930 # +Z the default
13931 ;;
13932 *)
13933 lt_prog_compiler_pic_F77='-fPIC'
13934 ;;
13935 esac
13936 ;;
13937
13938 *)
13939 lt_prog_compiler_pic_F77='-fPIC'
13940 ;;
13941 esac
13942 else
13943 # PORTME Check for flag to pass linker flags through the system compiler.
13944 case $host_os in
13945 aix*)
13946 lt_prog_compiler_wl_F77='-Wl,'
13947 if test "$host_cpu" = ia64; then
13948 # AIX 5 now supports IA64 processor
13949 lt_prog_compiler_static_F77='-Bstatic'
13950 else
13951 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13952 fi
13953 ;;
13954 darwin*)
13955 # PIC is the default on this platform
13956 # Common symbols not allowed in MH_DYLIB files
13957 case $cc_basename in
13958 xlc*)
13959 lt_prog_compiler_pic_F77='-qnocommon'
13960 lt_prog_compiler_wl_F77='-Wl,'
13961 ;;
13962 esac
13963 ;;
13964
ac40fd9e 13965 mingw* | cygwin* | pw32* | os2*)
d9898ee8 13966 # This hack is so that the source file can tell whether it is being
13967 # built for inclusion in a dll (and should export symbols for example).
13968 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13969 ;;
13970
13971 hpux9* | hpux10* | hpux11*)
13972 lt_prog_compiler_wl_F77='-Wl,'
13973 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13974 # not for PA HP-UX.
13975 case $host_cpu in
13976 hppa*64*|ia64*)
13977 # +Z the default
13978 ;;
13979 *)
13980 lt_prog_compiler_pic_F77='+Z'
13981 ;;
13982 esac
13983 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13984 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13985 ;;
13986
13987 irix5* | irix6* | nonstopux*)
13988 lt_prog_compiler_wl_F77='-Wl,'
13989 # PIC (with -KPIC) is the default.
13990 lt_prog_compiler_static_F77='-non_shared'
13991 ;;
13992
13993 newsos6)
13994 lt_prog_compiler_pic_F77='-KPIC'
13995 lt_prog_compiler_static_F77='-Bstatic'
13996 ;;
13997
ac40fd9e 13998 linux* | k*bsd*-gnu)
d9898ee8 13999 case $cc_basename in
14000 icc* | ecc*)
14001 lt_prog_compiler_wl_F77='-Wl,'
14002 lt_prog_compiler_pic_F77='-KPIC'
14003 lt_prog_compiler_static_F77='-static'
14004 ;;
14005 pgcc* | pgf77* | pgf90* | pgf95*)
14006 # Portland Group compilers (*not* the Pentium gcc compiler,
14007 # which looks to be a dead project)
14008 lt_prog_compiler_wl_F77='-Wl,'
14009 lt_prog_compiler_pic_F77='-fpic'
14010 lt_prog_compiler_static_F77='-Bstatic'
14011 ;;
14012 ccc*)
14013 lt_prog_compiler_wl_F77='-Wl,'
14014 # All Alpha code is PIC.
14015 lt_prog_compiler_static_F77='-non_shared'
14016 ;;
ac40fd9e 14017 *)
14018 case `$CC -V 2>&1 | sed 5q` in
14019 *Sun\ C*)
14020 # Sun C 5.9
14021 lt_prog_compiler_pic_F77='-KPIC'
14022 lt_prog_compiler_static_F77='-Bstatic'
14023 lt_prog_compiler_wl_F77='-Wl,'
14024 ;;
14025 *Sun\ F*)
14026 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14027 lt_prog_compiler_pic_F77='-KPIC'
14028 lt_prog_compiler_static_F77='-Bstatic'
14029 lt_prog_compiler_wl_F77=''
14030 ;;
14031 esac
14032 ;;
d9898ee8 14033 esac
14034 ;;
14035
14036 osf3* | osf4* | osf5*)
14037 lt_prog_compiler_wl_F77='-Wl,'
14038 # All OSF/1 code is PIC.
14039 lt_prog_compiler_static_F77='-non_shared'
14040 ;;
14041
ac40fd9e 14042 rdos*)
14043 lt_prog_compiler_static_F77='-non_shared'
14044 ;;
14045
d9898ee8 14046 solaris*)
14047 lt_prog_compiler_pic_F77='-KPIC'
14048 lt_prog_compiler_static_F77='-Bstatic'
14049 case $cc_basename in
14050 f77* | f90* | f95*)
14051 lt_prog_compiler_wl_F77='-Qoption ld ';;
14052 *)
14053 lt_prog_compiler_wl_F77='-Wl,';;
14054 esac
14055 ;;
14056
14057 sunos4*)
14058 lt_prog_compiler_wl_F77='-Qoption ld '
14059 lt_prog_compiler_pic_F77='-PIC'
14060 lt_prog_compiler_static_F77='-Bstatic'
14061 ;;
14062
14063 sysv4 | sysv4.2uw2* | sysv4.3*)
14064 lt_prog_compiler_wl_F77='-Wl,'
14065 lt_prog_compiler_pic_F77='-KPIC'
14066 lt_prog_compiler_static_F77='-Bstatic'
14067 ;;
14068
14069 sysv4*MP*)
14070 if test -d /usr/nec ;then
14071 lt_prog_compiler_pic_F77='-Kconform_pic'
14072 lt_prog_compiler_static_F77='-Bstatic'
14073 fi
14074 ;;
14075
14076 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14077 lt_prog_compiler_wl_F77='-Wl,'
14078 lt_prog_compiler_pic_F77='-KPIC'
14079 lt_prog_compiler_static_F77='-Bstatic'
14080 ;;
14081
14082 unicos*)
14083 lt_prog_compiler_wl_F77='-Wl,'
14084 lt_prog_compiler_can_build_shared_F77=no
14085 ;;
14086
14087 uts4*)
14088 lt_prog_compiler_pic_F77='-pic'
14089 lt_prog_compiler_static_F77='-Bstatic'
14090 ;;
14091
14092 *)
14093 lt_prog_compiler_can_build_shared_F77=no
14094 ;;
14095 esac
14096 fi
14097
dd184caf 14098{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14099echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
d9898ee8 14100
14101#
14102# Check to make sure the PIC flag actually works.
14103#
14104if test -n "$lt_prog_compiler_pic_F77"; then
14105
dd184caf 14106{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14107echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
d9898ee8 14108if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14109 echo $ECHO_N "(cached) $ECHO_C" >&6
14110else
14111 lt_prog_compiler_pic_works_F77=no
14112 ac_outfile=conftest.$ac_objext
ac40fd9e 14113 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 14114 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14115 # Insert the option either (1) after the last *FLAGS variable, or
14116 # (2) before a word containing "conftest.", or (3) at the end.
14117 # Note that $ac_compile itself does not contain backslashes and begins
14118 # with a dollar sign (not a hyphen), so the echo should work correctly.
14119 # The option is referenced via a variable to avoid confusing sed.
14120 lt_compile=`echo "$ac_compile" | $SED \
14121 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14122 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14123 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 14124 (eval echo "\"\$as_me:14124: $lt_compile\"" >&5)
d9898ee8 14125 (eval "$lt_compile" 2>conftest.err)
14126 ac_status=$?
14127 cat conftest.err >&5
ac40fd9e 14128 echo "$as_me:14128: \$? = $ac_status" >&5
d9898ee8 14129 if (exit $ac_status) && test -s "$ac_outfile"; then
14130 # The compiler can only warn and ignore the option if not recognized
14131 # So say no if there are warnings other than the usual output.
14132 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14133 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14134 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14135 lt_prog_compiler_pic_works_F77=yes
14136 fi
14137 fi
14138 $rm conftest*
14139
14140fi
dd184caf 14141{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14142echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
d9898ee8 14143
14144if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14145 case $lt_prog_compiler_pic_F77 in
14146 "" | " "*) ;;
14147 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14148 esac
14149else
14150 lt_prog_compiler_pic_F77=
14151 lt_prog_compiler_can_build_shared_F77=no
14152fi
14153
14154fi
14155case $host_os in
14156 # For platforms which do not support PIC, -DPIC is meaningless:
14157 *djgpp*)
14158 lt_prog_compiler_pic_F77=
14159 ;;
14160 *)
14161 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14162 ;;
14163esac
14164
14165#
14166# Check to make sure the static flag actually works.
14167#
14168wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
dd184caf 14169{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14170echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 14171if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14172 echo $ECHO_N "(cached) $ECHO_C" >&6
14173else
14174 lt_prog_compiler_static_works_F77=no
14175 save_LDFLAGS="$LDFLAGS"
14176 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ac40fd9e 14177 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 14178 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14179 # The linker can only warn and ignore the option if not recognized
14180 # So say no if there are warnings
14181 if test -s conftest.err; then
14182 # Append any errors to the config.log.
14183 cat conftest.err 1>&5
14184 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14185 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14186 if diff conftest.exp conftest.er2 >/dev/null; then
14187 lt_prog_compiler_static_works_F77=yes
14188 fi
14189 else
14190 lt_prog_compiler_static_works_F77=yes
14191 fi
14192 fi
14193 $rm conftest*
14194 LDFLAGS="$save_LDFLAGS"
14195
14196fi
dd184caf 14197{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14198echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
d9898ee8 14199
14200if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14201 :
14202else
14203 lt_prog_compiler_static_F77=
14204fi
14205
14206
dd184caf 14207{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14208echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 14209if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14210 echo $ECHO_N "(cached) $ECHO_C" >&6
14211else
14212 lt_cv_prog_compiler_c_o_F77=no
14213 $rm -r conftest 2>/dev/null
14214 mkdir conftest
14215 cd conftest
14216 mkdir out
ac40fd9e 14217 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 14218
14219 lt_compiler_flag="-o out/conftest2.$ac_objext"
14220 # Insert the option either (1) after the last *FLAGS variable, or
14221 # (2) before a word containing "conftest.", or (3) at the end.
14222 # Note that $ac_compile itself does not contain backslashes and begins
14223 # with a dollar sign (not a hyphen), so the echo should work correctly.
14224 lt_compile=`echo "$ac_compile" | $SED \
14225 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14226 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14227 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 14228 (eval echo "\"\$as_me:14228: $lt_compile\"" >&5)
d9898ee8 14229 (eval "$lt_compile" 2>out/conftest.err)
14230 ac_status=$?
14231 cat out/conftest.err >&5
ac40fd9e 14232 echo "$as_me:14232: \$? = $ac_status" >&5
d9898ee8 14233 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14234 then
14235 # The compiler can only warn and ignore the option if not recognized
14236 # So say no if there are warnings
14237 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14238 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14239 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14240 lt_cv_prog_compiler_c_o_F77=yes
14241 fi
14242 fi
14243 chmod u+w . 2>&5
14244 $rm conftest*
14245 # SGI C++ compiler will create directory out/ii_files/ for
14246 # template instantiation
14247 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14248 $rm out/* && rmdir out
14249 cd ..
14250 rmdir conftest
14251 $rm conftest*
14252
14253fi
dd184caf 14254{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14255echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
d9898ee8 14256
14257
14258hard_links="nottested"
14259if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14260 # do not overwrite the value of need_locks provided by the user
dd184caf 14261 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14262echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 14263 hard_links=yes
14264 $rm conftest*
14265 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14266 touch conftest.a
14267 ln conftest.a conftest.b 2>&5 || hard_links=no
14268 ln conftest.a conftest.b 2>/dev/null && hard_links=no
dd184caf 14269 { echo "$as_me:$LINENO: result: $hard_links" >&5
14270echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 14271 if test "$hard_links" = no; then
14272 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14273echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14274 need_locks=warn
14275 fi
14276else
14277 need_locks=no
14278fi
14279
dd184caf 14280{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14281echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 14282
14283 runpath_var=
14284 allow_undefined_flag_F77=
14285 enable_shared_with_static_runtimes_F77=no
14286 archive_cmds_F77=
14287 archive_expsym_cmds_F77=
14288 old_archive_From_new_cmds_F77=
14289 old_archive_from_expsyms_cmds_F77=
14290 export_dynamic_flag_spec_F77=
14291 whole_archive_flag_spec_F77=
14292 thread_safe_flag_spec_F77=
14293 hardcode_libdir_flag_spec_F77=
14294 hardcode_libdir_flag_spec_ld_F77=
14295 hardcode_libdir_separator_F77=
14296 hardcode_direct_F77=no
14297 hardcode_minus_L_F77=no
14298 hardcode_shlibpath_var_F77=unsupported
14299 link_all_deplibs_F77=unknown
14300 hardcode_automatic_F77=no
14301 module_cmds_F77=
14302 module_expsym_cmds_F77=
14303 always_export_symbols_F77=no
14304 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14305 # include_expsyms should be a list of space-separated symbols to be *always*
14306 # included in the symbol list
14307 include_expsyms_F77=
14308 # exclude_expsyms can be an extended regexp of symbols to exclude
14309 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14310 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14311 # as well as any symbol that contains `d'.
14312 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14313 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14314 # platforms (ab)use it in PIC code, but their linkers get confused if
14315 # the symbol is explicitly referenced. Since portable code cannot
14316 # rely on this symbol name, it's probably fine to never include it in
14317 # preloaded symbol tables.
14318 extract_expsyms_cmds=
14319 # Just being paranoid about ensuring that cc_basename is set.
14320 for cc_temp in $compiler""; do
14321 case $cc_temp in
14322 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14323 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14324 \-*) ;;
14325 *) break;;
14326 esac
14327done
14328cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14329
14330 case $host_os in
14331 cygwin* | mingw* | pw32*)
14332 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14333 # When not using gcc, we currently assume that we are using
14334 # Microsoft Visual C++.
14335 if test "$GCC" != yes; then
14336 with_gnu_ld=no
14337 fi
14338 ;;
14339 interix*)
14340 # we just hope/assume this is gcc and not c89 (= MSVC++)
14341 with_gnu_ld=yes
14342 ;;
14343 openbsd*)
14344 with_gnu_ld=no
14345 ;;
14346 esac
14347
14348 ld_shlibs_F77=yes
14349 if test "$with_gnu_ld" = yes; then
14350 # If archive_cmds runs LD, not CC, wlarc should be empty
14351 wlarc='${wl}'
14352
14353 # Set some defaults for GNU ld with shared library support. These
14354 # are reset later if shared libraries are not supported. Putting them
14355 # here allows them to be overridden if necessary.
14356 runpath_var=LD_RUN_PATH
14357 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14358 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14359 # ancient GNU ld didn't support --whole-archive et. al.
14360 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14361 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14362 else
14363 whole_archive_flag_spec_F77=
14364 fi
14365 supports_anon_versioning=no
14366 case `$LD -v 2>/dev/null` in
14367 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14368 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14369 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14370 *\ 2.11.*) ;; # other 2.11 versions
14371 *) supports_anon_versioning=yes ;;
14372 esac
14373
14374 # See if GNU ld supports shared libraries.
14375 case $host_os in
14376 aix3* | aix4* | aix5*)
14377 # On AIX/PPC, the GNU linker is very broken
14378 if test "$host_cpu" != ia64; then
14379 ld_shlibs_F77=no
14380 cat <<EOF 1>&2
14381
14382*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14383*** to be unable to reliably create shared libraries on AIX.
14384*** Therefore, libtool is disabling shared libraries support. If you
14385*** really care for shared libraries, you may want to modify your PATH
14386*** so that a non-GNU linker is found, and then restart.
14387
14388EOF
14389 fi
14390 ;;
14391
14392 amigaos*)
14393 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)'
14394 hardcode_libdir_flag_spec_F77='-L$libdir'
14395 hardcode_minus_L_F77=yes
14396
14397 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14398 # that the semantics of dynamic libraries on AmigaOS, at least up
14399 # to version 4, is to share data among multiple programs linked
14400 # with the same dynamic library. Since this doesn't match the
14401 # behavior of shared libraries on other platforms, we can't use
14402 # them.
14403 ld_shlibs_F77=no
14404 ;;
14405
14406 beos*)
14407 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14408 allow_undefined_flag_F77=unsupported
14409 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14410 # support --undefined. This deserves some investigation. FIXME
14411 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14412 else
14413 ld_shlibs_F77=no
14414 fi
14415 ;;
14416
14417 cygwin* | mingw* | pw32*)
14418 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14419 # as there is no search path for DLLs.
14420 hardcode_libdir_flag_spec_F77='-L$libdir'
14421 allow_undefined_flag_F77=unsupported
14422 always_export_symbols_F77=no
14423 enable_shared_with_static_runtimes_F77=yes
ac40fd9e 14424 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d9898ee8 14425
14426 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14427 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14428 # If the export-symbols file already is a .def file (1st line
14429 # is EXPORTS), use it as is; otherwise, prepend...
14430 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14431 cp $export_symbols $output_objdir/$soname.def;
14432 else
14433 echo EXPORTS > $output_objdir/$soname.def;
14434 cat $export_symbols >> $output_objdir/$soname.def;
14435 fi~
14436 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14437 else
14438 ld_shlibs_F77=no
14439 fi
14440 ;;
14441
ac40fd9e 14442 interix[3-9]*)
d9898ee8 14443 hardcode_direct_F77=no
14444 hardcode_shlibpath_var_F77=no
14445 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14446 export_dynamic_flag_spec_F77='${wl}-E'
14447 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14448 # Instead, shared libraries are loaded at an image base (0x10000000 by
14449 # default) and relocated if they conflict, which is a slow very memory
14450 # consuming and fragmenting process. To avoid this, we pick a random,
14451 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14452 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14453 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'
14454 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'
14455 ;;
14456
ac40fd9e 14457 gnu* | linux* | k*bsd*-gnu)
d9898ee8 14458 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14459 tmp_addflag=
14460 case $cc_basename,$host_cpu in
14461 pgcc*) # Portland Group C compiler
14462 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'
14463 tmp_addflag=' $pic_flag'
14464 ;;
14465 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14466 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'
14467 tmp_addflag=' $pic_flag -Mnomain' ;;
14468 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14469 tmp_addflag=' -i_dynamic' ;;
14470 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14471 tmp_addflag=' -i_dynamic -nofor_main' ;;
14472 ifc* | ifort*) # Intel Fortran compiler
14473 tmp_addflag=' -nofor_main' ;;
14474 esac
ac40fd9e 14475 case `$CC -V 2>&1 | sed 5q` in
14476 *Sun\ C*) # Sun C 5.9
14477 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14478 tmp_sharedflag='-G' ;;
14479 *Sun\ F*) # Sun Fortran 8.3
14480 tmp_sharedflag='-G' ;;
14481 *)
14482 tmp_sharedflag='-shared' ;;
14483 esac
14484 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 14485
14486 if test $supports_anon_versioning = yes; then
14487 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14488 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14489 $echo "local: *; };" >> $output_objdir/$libname.ver~
ac40fd9e 14490 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
d9898ee8 14491 fi
14492 else
14493 ld_shlibs_F77=no
14494 fi
14495 ;;
14496
14497 netbsd*)
14498 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14499 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14500 wlarc=
14501 else
14502 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14503 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14504 fi
14505 ;;
14506
14507 solaris*)
14508 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14509 ld_shlibs_F77=no
14510 cat <<EOF 1>&2
14511
14512*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14513*** create shared libraries on Solaris systems. Therefore, libtool
14514*** is disabling shared libraries support. We urge you to upgrade GNU
14515*** binutils to release 2.9.1 or newer. Another option is to modify
14516*** your PATH or compiler configuration so that the native linker is
14517*** used, and then restart.
14518
14519EOF
14520 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14521 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14522 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14523 else
14524 ld_shlibs_F77=no
14525 fi
14526 ;;
14527
14528 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14529 case `$LD -v 2>&1` in
14530 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14531 ld_shlibs_F77=no
14532 cat <<_LT_EOF 1>&2
14533
14534*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14535*** reliably create shared libraries on SCO systems. Therefore, libtool
14536*** is disabling shared libraries support. We urge you to upgrade GNU
14537*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14538*** your PATH or compiler configuration so that the native linker is
14539*** used, and then restart.
14540
14541_LT_EOF
14542 ;;
14543 *)
14544 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14545 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14546 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14547 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14548 else
14549 ld_shlibs_F77=no
14550 fi
14551 ;;
14552 esac
14553 ;;
14554
14555 sunos4*)
14556 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14557 wlarc=
14558 hardcode_direct_F77=yes
14559 hardcode_shlibpath_var_F77=no
14560 ;;
14561
14562 *)
14563 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14564 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14565 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14566 else
14567 ld_shlibs_F77=no
14568 fi
14569 ;;
14570 esac
14571
14572 if test "$ld_shlibs_F77" = no; then
14573 runpath_var=
14574 hardcode_libdir_flag_spec_F77=
14575 export_dynamic_flag_spec_F77=
14576 whole_archive_flag_spec_F77=
14577 fi
14578 else
14579 # PORTME fill in a description of your system's linker (not GNU ld)
14580 case $host_os in
14581 aix3*)
14582 allow_undefined_flag_F77=unsupported
14583 always_export_symbols_F77=yes
14584 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'
14585 # Note: this linker hardcodes the directories in LIBPATH if there
14586 # are no directories specified by -L.
14587 hardcode_minus_L_F77=yes
14588 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14589 # Neither direct hardcoding nor static linking is supported with a
14590 # broken collect2.
14591 hardcode_direct_F77=unsupported
14592 fi
14593 ;;
14594
14595 aix4* | aix5*)
14596 if test "$host_cpu" = ia64; then
14597 # On IA64, the linker does run time linking by default, so we don't
14598 # have to do anything special.
14599 aix_use_runtimelinking=no
14600 exp_sym_flag='-Bexport'
14601 no_entry_flag=""
14602 else
14603 # If we're using GNU nm, then we don't want the "-C" option.
14604 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14605 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14606 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'
14607 else
14608 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'
14609 fi
14610 aix_use_runtimelinking=no
14611
14612 # Test if we are trying to use run time linking or normal
14613 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14614 # need to do runtime linking.
14615 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14616 for ld_flag in $LDFLAGS; do
14617 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14618 aix_use_runtimelinking=yes
14619 break
14620 fi
14621 done
14622 ;;
14623 esac
14624
14625 exp_sym_flag='-bexport'
14626 no_entry_flag='-bnoentry'
14627 fi
14628
14629 # When large executables or shared objects are built, AIX ld can
14630 # have problems creating the table of contents. If linking a library
14631 # or program results in "error TOC overflow" add -mminimal-toc to
14632 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14633 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14634
14635 archive_cmds_F77=''
14636 hardcode_direct_F77=yes
14637 hardcode_libdir_separator_F77=':'
14638 link_all_deplibs_F77=yes
14639
14640 if test "$GCC" = yes; then
14641 case $host_os in aix4.[012]|aix4.[012].*)
14642 # We only want to do this on AIX 4.2 and lower, the check
14643 # below for broken collect2 doesn't work under 4.3+
14644 collect2name=`${CC} -print-prog-name=collect2`
14645 if test -f "$collect2name" && \
14646 strings "$collect2name" | grep resolve_lib_name >/dev/null
14647 then
14648 # We have reworked collect2
ac40fd9e 14649 :
d9898ee8 14650 else
14651 # We have old collect2
14652 hardcode_direct_F77=unsupported
14653 # It fails to find uninstalled libraries when the uninstalled
14654 # path is not listed in the libpath. Setting hardcode_minus_L
14655 # to unsupported forces relinking
14656 hardcode_minus_L_F77=yes
14657 hardcode_libdir_flag_spec_F77='-L$libdir'
14658 hardcode_libdir_separator_F77=
14659 fi
14660 ;;
14661 esac
14662 shared_flag='-shared'
14663 if test "$aix_use_runtimelinking" = yes; then
14664 shared_flag="$shared_flag "'${wl}-G'
14665 fi
14666 else
14667 # not using gcc
14668 if test "$host_cpu" = ia64; then
14669 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14670 # chokes on -Wl,-G. The following line is correct:
14671 shared_flag='-G'
14672 else
14673 if test "$aix_use_runtimelinking" = yes; then
14674 shared_flag='${wl}-G'
14675 else
14676 shared_flag='${wl}-bM:SRE'
14677 fi
14678 fi
14679 fi
14680
14681 # It seems that -bexpall does not export symbols beginning with
14682 # underscore (_), so it is better to generate a list of symbols to export.
14683 always_export_symbols_F77=yes
14684 if test "$aix_use_runtimelinking" = yes; then
14685 # Warning - without using the other runtime loading flags (-brtl),
14686 # -berok will link without error, but may produce a broken library.
14687 allow_undefined_flag_F77='-berok'
14688 # Determine the default libpath from the value encoded in an empty executable.
14689 cat >conftest.$ac_ext <<_ACEOF
14690 program main
14691
14692 end
14693_ACEOF
14694rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 14695if { (ac_try="$ac_link"
14696case "(($ac_try" in
14697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14698 *) ac_try_echo=$ac_try;;
14699esac
14700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14701 (eval "$ac_link") 2>conftest.er1
d9898ee8 14702 ac_status=$?
14703 grep -v '^ *+' conftest.er1 >conftest.err
14704 rm -f conftest.er1
14705 cat conftest.err >&5
14706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 14707 (exit $ac_status); } && {
14708 test -z "$ac_f77_werror_flag" ||
14709 test ! -s conftest.err
14710 } && test -s conftest$ac_exeext &&
14711 $as_test_x conftest$ac_exeext; then
d9898ee8 14712
ac40fd9e 14713lt_aix_libpath_sed='
14714 /Import File Strings/,/^$/ {
14715 /^0/ {
14716 s/^0 *\(.*\)$/\1/
14717 p
14718 }
14719 }'
14720aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 14721# Check for a 64-bit object if we didn't find anything.
ac40fd9e 14722if test -z "$aix_libpath"; then
14723 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14724fi
d9898ee8 14725else
14726 echo "$as_me: failed program was:" >&5
14727sed 's/^/| /' conftest.$ac_ext >&5
14728
dd184caf 14729
d9898ee8 14730fi
dd184caf 14731
14732rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14733 conftest$ac_exeext conftest.$ac_ext
14734if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14735
14736 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14737 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"
14738 else
14739 if test "$host_cpu" = ia64; then
14740 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14741 allow_undefined_flag_F77="-z nodefs"
14742 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"
14743 else
14744 # Determine the default libpath from the value encoded in an empty executable.
14745 cat >conftest.$ac_ext <<_ACEOF
14746 program main
14747
14748 end
14749_ACEOF
14750rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 14751if { (ac_try="$ac_link"
14752case "(($ac_try" in
14753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14754 *) ac_try_echo=$ac_try;;
14755esac
14756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14757 (eval "$ac_link") 2>conftest.er1
d9898ee8 14758 ac_status=$?
14759 grep -v '^ *+' conftest.er1 >conftest.err
14760 rm -f conftest.er1
14761 cat conftest.err >&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 14763 (exit $ac_status); } && {
14764 test -z "$ac_f77_werror_flag" ||
14765 test ! -s conftest.err
14766 } && test -s conftest$ac_exeext &&
14767 $as_test_x conftest$ac_exeext; then
d9898ee8 14768
ac40fd9e 14769lt_aix_libpath_sed='
14770 /Import File Strings/,/^$/ {
14771 /^0/ {
14772 s/^0 *\(.*\)$/\1/
14773 p
14774 }
14775 }'
14776aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 14777# Check for a 64-bit object if we didn't find anything.
ac40fd9e 14778if test -z "$aix_libpath"; then
14779 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14780fi
d9898ee8 14781else
14782 echo "$as_me: failed program was:" >&5
14783sed 's/^/| /' conftest.$ac_ext >&5
14784
dd184caf 14785
d9898ee8 14786fi
dd184caf 14787
14788rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14789 conftest$ac_exeext conftest.$ac_ext
14790if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14791
14792 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14793 # Warning - without using the other run time loading flags,
14794 # -berok will link without error, but may produce a broken library.
14795 no_undefined_flag_F77=' ${wl}-bernotok'
14796 allow_undefined_flag_F77=' ${wl}-berok'
14797 # Exported symbols can be pulled into shared objects from archives
14798 whole_archive_flag_spec_F77='$convenience'
14799 archive_cmds_need_lc_F77=yes
14800 # This is similar to how AIX traditionally builds its shared libraries.
14801 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'
14802 fi
14803 fi
14804 ;;
14805
14806 amigaos*)
14807 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)'
14808 hardcode_libdir_flag_spec_F77='-L$libdir'
14809 hardcode_minus_L_F77=yes
14810 # see comment about different semantics on the GNU ld section
14811 ld_shlibs_F77=no
14812 ;;
14813
14814 bsdi[45]*)
14815 export_dynamic_flag_spec_F77=-rdynamic
14816 ;;
14817
14818 cygwin* | mingw* | pw32*)
14819 # When not using gcc, we currently assume that we are using
14820 # Microsoft Visual C++.
14821 # hardcode_libdir_flag_spec is actually meaningless, as there is
14822 # no search path for DLLs.
14823 hardcode_libdir_flag_spec_F77=' '
14824 allow_undefined_flag_F77=unsupported
14825 # Tell ltmain to make .lib files, not .a files.
14826 libext=lib
14827 # Tell ltmain to make .dll files, not .so files.
14828 shrext_cmds=".dll"
14829 # FIXME: Setting linknames here is a bad hack.
14830 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14831 # The linker will automatically build a .lib file if we build a DLL.
14832 old_archive_From_new_cmds_F77='true'
14833 # FIXME: Should let the user specify the lib program.
ac40fd9e 14834 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
d9898ee8 14835 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14836 enable_shared_with_static_runtimes_F77=yes
14837 ;;
14838
14839 darwin* | rhapsody*)
14840 case $host_os in
14841 rhapsody* | darwin1.[012])
14842 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14843 ;;
14844 *) # Darwin 1.3 on
14845 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14846 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14847 else
14848 case ${MACOSX_DEPLOYMENT_TARGET} in
14849 10.[012])
14850 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14851 ;;
14852 10.*)
14853 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14854 ;;
14855 esac
14856 fi
14857 ;;
14858 esac
14859 archive_cmds_need_lc_F77=no
14860 hardcode_direct_F77=no
14861 hardcode_automatic_F77=yes
14862 hardcode_shlibpath_var_F77=unsupported
14863 whole_archive_flag_spec_F77=''
14864 link_all_deplibs_F77=yes
14865 if test "$GCC" = yes ; then
14866 output_verbose_link_cmd='echo'
14867 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14868 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14869 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14870 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}'
14871 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}'
14872 else
14873 case $cc_basename in
14874 xlc*)
14875 output_verbose_link_cmd='echo'
ac40fd9e 14876 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
d9898ee8 14877 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14878 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
ac40fd9e 14879 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
d9898ee8 14880 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}'
14881 ;;
14882 *)
14883 ld_shlibs_F77=no
14884 ;;
14885 esac
14886 fi
14887 ;;
14888
14889 dgux*)
14890 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14891 hardcode_libdir_flag_spec_F77='-L$libdir'
14892 hardcode_shlibpath_var_F77=no
14893 ;;
14894
14895 freebsd1*)
14896 ld_shlibs_F77=no
14897 ;;
14898
14899 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14900 # support. Future versions do this automatically, but an explicit c++rt0.o
14901 # does not break anything, and helps significantly (at the cost of a little
14902 # extra space).
14903 freebsd2.2*)
14904 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14905 hardcode_libdir_flag_spec_F77='-R$libdir'
14906 hardcode_direct_F77=yes
14907 hardcode_shlibpath_var_F77=no
14908 ;;
14909
14910 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14911 freebsd2*)
14912 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14913 hardcode_direct_F77=yes
14914 hardcode_minus_L_F77=yes
14915 hardcode_shlibpath_var_F77=no
14916 ;;
14917
14918 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
ac40fd9e 14919 freebsd* | dragonfly*)
d9898ee8 14920 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14921 hardcode_libdir_flag_spec_F77='-R$libdir'
14922 hardcode_direct_F77=yes
14923 hardcode_shlibpath_var_F77=no
14924 ;;
14925
14926 hpux9*)
14927 if test "$GCC" = yes; then
14928 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'
14929 else
14930 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'
14931 fi
14932 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14933 hardcode_libdir_separator_F77=:
14934 hardcode_direct_F77=yes
14935
14936 # hardcode_minus_L: Not really in the search PATH,
14937 # but as the default location of the library.
14938 hardcode_minus_L_F77=yes
14939 export_dynamic_flag_spec_F77='${wl}-E'
14940 ;;
14941
14942 hpux10*)
14943 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14944 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14945 else
14946 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14947 fi
14948 if test "$with_gnu_ld" = no; then
14949 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14950 hardcode_libdir_separator_F77=:
14951
14952 hardcode_direct_F77=yes
14953 export_dynamic_flag_spec_F77='${wl}-E'
14954
14955 # hardcode_minus_L: Not really in the search PATH,
14956 # but as the default location of the library.
14957 hardcode_minus_L_F77=yes
14958 fi
14959 ;;
14960
14961 hpux11*)
14962 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14963 case $host_cpu in
14964 hppa*64*)
14965 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14966 ;;
14967 ia64*)
14968 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14969 ;;
14970 *)
14971 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14972 ;;
14973 esac
14974 else
14975 case $host_cpu in
14976 hppa*64*)
14977 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14978 ;;
14979 ia64*)
14980 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14981 ;;
14982 *)
14983 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14984 ;;
14985 esac
14986 fi
14987 if test "$with_gnu_ld" = no; then
14988 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14989 hardcode_libdir_separator_F77=:
14990
14991 case $host_cpu in
14992 hppa*64*|ia64*)
14993 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14994 hardcode_direct_F77=no
14995 hardcode_shlibpath_var_F77=no
14996 ;;
14997 *)
14998 hardcode_direct_F77=yes
14999 export_dynamic_flag_spec_F77='${wl}-E'
15000
15001 # hardcode_minus_L: Not really in the search PATH,
15002 # but as the default location of the library.
15003 hardcode_minus_L_F77=yes
15004 ;;
15005 esac
15006 fi
15007 ;;
15008
15009 irix5* | irix6* | nonstopux*)
15010 if test "$GCC" = yes; then
15011 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'
15012 else
15013 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'
15014 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15015 fi
15016 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15017 hardcode_libdir_separator_F77=:
15018 link_all_deplibs_F77=yes
15019 ;;
15020
15021 netbsd*)
15022 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15023 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15024 else
15025 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15026 fi
15027 hardcode_libdir_flag_spec_F77='-R$libdir'
15028 hardcode_direct_F77=yes
15029 hardcode_shlibpath_var_F77=no
15030 ;;
15031
15032 newsos6)
15033 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15034 hardcode_direct_F77=yes
15035 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15036 hardcode_libdir_separator_F77=:
15037 hardcode_shlibpath_var_F77=no
15038 ;;
15039
15040 openbsd*)
ac40fd9e 15041 if test -f /usr/libexec/ld.so; then
15042 hardcode_direct_F77=yes
15043 hardcode_shlibpath_var_F77=no
15044 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15045 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15046 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15047 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15048 export_dynamic_flag_spec_F77='${wl}-E'
15049 else
15050 case $host_os in
15051 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15052 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15053 hardcode_libdir_flag_spec_F77='-R$libdir'
15054 ;;
15055 *)
15056 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15057 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15058 ;;
15059 esac
15060 fi
d9898ee8 15061 else
ac40fd9e 15062 ld_shlibs_F77=no
d9898ee8 15063 fi
15064 ;;
15065
15066 os2*)
15067 hardcode_libdir_flag_spec_F77='-L$libdir'
15068 hardcode_minus_L_F77=yes
15069 allow_undefined_flag_F77=unsupported
15070 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'
15071 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15072 ;;
15073
15074 osf3*)
15075 if test "$GCC" = yes; then
15076 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15077 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'
15078 else
15079 allow_undefined_flag_F77=' -expect_unresolved \*'
15080 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'
15081 fi
15082 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15083 hardcode_libdir_separator_F77=:
15084 ;;
15085
15086 osf4* | osf5*) # as osf3* with the addition of -msym flag
15087 if test "$GCC" = yes; then
15088 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15089 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'
15090 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15091 else
15092 allow_undefined_flag_F77=' -expect_unresolved \*'
15093 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'
15094 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~
15095 $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'
15096
15097 # Both c and cxx compiler support -rpath directly
15098 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15099 fi
15100 hardcode_libdir_separator_F77=:
15101 ;;
15102
15103 solaris*)
15104 no_undefined_flag_F77=' -z text'
15105 if test "$GCC" = yes; then
15106 wlarc='${wl}'
15107 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15108 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15109 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15110 else
15111 wlarc=''
15112 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15113 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15114 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15115 fi
15116 hardcode_libdir_flag_spec_F77='-R$libdir'
15117 hardcode_shlibpath_var_F77=no
15118 case $host_os in
15119 solaris2.[0-5] | solaris2.[0-5].*) ;;
15120 *)
ac40fd9e 15121 # The compiler driver will combine and reorder linker options,
15122 # but understands `-z linker_flag'. GCC discards it without `$wl',
15123 # but is careful enough not to reorder.
d9898ee8 15124 # Supported since Solaris 2.6 (maybe 2.5.1?)
ac40fd9e 15125 if test "$GCC" = yes; then
15126 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15127 else
15128 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15129 fi
15130 ;;
d9898ee8 15131 esac
15132 link_all_deplibs_F77=yes
15133 ;;
15134
15135 sunos4*)
15136 if test "x$host_vendor" = xsequent; then
15137 # Use $CC to link under sequent, because it throws in some extra .o
15138 # files that make .init and .fini sections work.
15139 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15140 else
15141 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15142 fi
15143 hardcode_libdir_flag_spec_F77='-L$libdir'
15144 hardcode_direct_F77=yes
15145 hardcode_minus_L_F77=yes
15146 hardcode_shlibpath_var_F77=no
15147 ;;
15148
15149 sysv4)
15150 case $host_vendor in
15151 sni)
15152 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15153 hardcode_direct_F77=yes # is this really true???
15154 ;;
15155 siemens)
15156 ## LD is ld it makes a PLAMLIB
15157 ## CC just makes a GrossModule.
15158 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15159 reload_cmds_F77='$CC -r -o $output$reload_objs'
15160 hardcode_direct_F77=no
15161 ;;
15162 motorola)
15163 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15164 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15165 ;;
15166 esac
15167 runpath_var='LD_RUN_PATH'
15168 hardcode_shlibpath_var_F77=no
15169 ;;
15170
15171 sysv4.3*)
15172 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15173 hardcode_shlibpath_var_F77=no
15174 export_dynamic_flag_spec_F77='-Bexport'
15175 ;;
15176
15177 sysv4*MP*)
15178 if test -d /usr/nec; then
15179 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15180 hardcode_shlibpath_var_F77=no
15181 runpath_var=LD_RUN_PATH
15182 hardcode_runpath_var=yes
15183 ld_shlibs_F77=yes
15184 fi
15185 ;;
15186
ac40fd9e 15187 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
d9898ee8 15188 no_undefined_flag_F77='${wl}-z,text'
15189 archive_cmds_need_lc_F77=no
15190 hardcode_shlibpath_var_F77=no
15191 runpath_var='LD_RUN_PATH'
15192
15193 if test "$GCC" = yes; then
15194 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15195 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15196 else
15197 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15198 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15199 fi
15200 ;;
15201
15202 sysv5* | sco3.2v5* | sco5v6*)
15203 # Note: We can NOT use -z defs as we might desire, because we do not
15204 # link with -lc, and that would cause any symbols used from libc to
15205 # always be unresolved, which means just about no library would
15206 # ever link correctly. If we're not using GNU ld we use -z text
15207 # though, which does catch some bad symbols but isn't as heavy-handed
15208 # as -z defs.
15209 no_undefined_flag_F77='${wl}-z,text'
15210 allow_undefined_flag_F77='${wl}-z,nodefs'
15211 archive_cmds_need_lc_F77=no
15212 hardcode_shlibpath_var_F77=no
15213 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15214 hardcode_libdir_separator_F77=':'
15215 link_all_deplibs_F77=yes
15216 export_dynamic_flag_spec_F77='${wl}-Bexport'
15217 runpath_var='LD_RUN_PATH'
15218
15219 if test "$GCC" = yes; then
15220 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15221 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15222 else
15223 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15224 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15225 fi
15226 ;;
15227
15228 uts4*)
15229 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15230 hardcode_libdir_flag_spec_F77='-L$libdir'
15231 hardcode_shlibpath_var_F77=no
15232 ;;
15233
15234 *)
15235 ld_shlibs_F77=no
15236 ;;
15237 esac
15238 fi
15239
dd184caf 15240{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15241echo "${ECHO_T}$ld_shlibs_F77" >&6; }
d9898ee8 15242test "$ld_shlibs_F77" = no && can_build_shared=no
15243
15244#
15245# Do we need to explicitly link libc?
15246#
15247case "x$archive_cmds_need_lc_F77" in
15248x|xyes)
15249 # Assume -lc should be added
15250 archive_cmds_need_lc_F77=yes
15251
15252 if test "$enable_shared" = yes && test "$GCC" = yes; then
15253 case $archive_cmds_F77 in
15254 *'~'*)
15255 # FIXME: we may have to deal with multi-command sequences.
15256 ;;
15257 '$CC '*)
15258 # Test whether the compiler implicitly links with -lc since on some
15259 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15260 # to ld, don't add -lc before -lgcc.
dd184caf 15261 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15262echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 15263 $rm conftest*
ac40fd9e 15264 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 15265
15266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15267 (eval $ac_compile) 2>&5
15268 ac_status=$?
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); } 2>conftest.err; then
15271 soname=conftest
15272 lib=conftest
15273 libobjs=conftest.$ac_objext
15274 deplibs=
15275 wl=$lt_prog_compiler_wl_F77
15276 pic_flag=$lt_prog_compiler_pic_F77
15277 compiler_flags=-v
15278 linker_flags=-v
15279 verstring=
15280 output_objdir=.
15281 libname=conftest
15282 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15283 allow_undefined_flag_F77=
15284 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15285 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15286 ac_status=$?
15287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288 (exit $ac_status); }
15289 then
15290 archive_cmds_need_lc_F77=no
15291 else
15292 archive_cmds_need_lc_F77=yes
15293 fi
15294 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15295 else
15296 cat conftest.err 1>&5
15297 fi
15298 $rm conftest*
dd184caf 15299 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15300echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
d9898ee8 15301 ;;
15302 esac
15303 fi
15304 ;;
15305esac
15306
dd184caf 15307{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15308echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 15309library_names_spec=
15310libname_spec='lib$name'
15311soname_spec=
15312shrext_cmds=".so"
15313postinstall_cmds=
15314postuninstall_cmds=
15315finish_cmds=
15316finish_eval=
15317shlibpath_var=
15318shlibpath_overrides_runpath=unknown
15319version_type=none
15320dynamic_linker="$host_os ld.so"
15321sys_lib_dlsearch_path_spec="/lib /usr/lib"
ac40fd9e 15322
d9898ee8 15323need_lib_prefix=unknown
15324hardcode_into_libs=no
15325
15326# when you set need_version to no, make sure it does not cause -set_version
15327# flags to be left without arguments
15328need_version=unknown
15329
15330case $host_os in
15331aix3*)
15332 version_type=linux
15333 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15334 shlibpath_var=LIBPATH
15335
15336 # AIX 3 has no versioning support, so we append a major version to the name.
15337 soname_spec='${libname}${release}${shared_ext}$major'
15338 ;;
15339
15340aix4* | aix5*)
15341 version_type=linux
15342 need_lib_prefix=no
15343 need_version=no
15344 hardcode_into_libs=yes
15345 if test "$host_cpu" = ia64; then
15346 # AIX 5 supports IA64
15347 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15348 shlibpath_var=LD_LIBRARY_PATH
15349 else
15350 # With GCC up to 2.95.x, collect2 would create an import file
15351 # for dependence libraries. The import file would start with
15352 # the line `#! .'. This would cause the generated library to
15353 # depend on `.', always an invalid library. This was fixed in
15354 # development snapshots of GCC prior to 3.0.
15355 case $host_os in
15356 aix4 | aix4.[01] | aix4.[01].*)
15357 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15358 echo ' yes '
15359 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15360 :
15361 else
15362 can_build_shared=no
15363 fi
15364 ;;
15365 esac
15366 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15367 # soname into executable. Probably we can add versioning support to
15368 # collect2, so additional links can be useful in future.
15369 if test "$aix_use_runtimelinking" = yes; then
15370 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15371 # instead of lib<name>.a to let people know that these are not
15372 # typical AIX shared libraries.
15373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15374 else
15375 # We preserve .a as extension for shared libraries through AIX4.2
15376 # and later when we are not doing run time linking.
15377 library_names_spec='${libname}${release}.a $libname.a'
15378 soname_spec='${libname}${release}${shared_ext}$major'
15379 fi
15380 shlibpath_var=LIBPATH
15381 fi
15382 ;;
15383
15384amigaos*)
15385 library_names_spec='$libname.ixlibrary $libname.a'
15386 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15387 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'
15388 ;;
15389
15390beos*)
15391 library_names_spec='${libname}${shared_ext}'
15392 dynamic_linker="$host_os ld.so"
15393 shlibpath_var=LIBRARY_PATH
15394 ;;
15395
15396bsdi[45]*)
15397 version_type=linux
15398 need_version=no
15399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15400 soname_spec='${libname}${release}${shared_ext}$major'
15401 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15402 shlibpath_var=LD_LIBRARY_PATH
15403 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15404 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15405 # the default ld.so.conf also contains /usr/contrib/lib and
15406 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15407 # libtool to hard-code these into programs
15408 ;;
15409
15410cygwin* | mingw* | pw32*)
15411 version_type=windows
15412 shrext_cmds=".dll"
15413 need_version=no
15414 need_lib_prefix=no
15415
15416 case $GCC,$host_os in
15417 yes,cygwin* | yes,mingw* | yes,pw32*)
15418 library_names_spec='$libname.dll.a'
15419 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15420 postinstall_cmds='base_file=`basename \${file}`~
15421 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15422 dldir=$destdir/`dirname \$dlpath`~
15423 test -d \$dldir || mkdir -p \$dldir~
15424 $install_prog $dir/$dlname \$dldir/$dlname~
15425 chmod a+x \$dldir/$dlname'
15426 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15427 dlpath=$dir/\$dldll~
15428 $rm \$dlpath'
15429 shlibpath_overrides_runpath=yes
15430
15431 case $host_os in
15432 cygwin*)
15433 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15434 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15435 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15436 ;;
15437 mingw*)
15438 # MinGW DLLs use traditional 'lib' prefix
15439 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15440 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15441 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15442 # It is most probably a Windows format PATH printed by
15443 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15444 # path with ; separators, and with drive letters. We can handle the
15445 # drive letters (cygwin fileutils understands them), so leave them,
15446 # especially as we might pass files found there to a mingw objdump,
15447 # which wouldn't understand a cygwinified path. Ahh.
15448 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15449 else
15450 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15451 fi
15452 ;;
15453 pw32*)
15454 # pw32 DLLs use 'pw' prefix rather than 'lib'
15455 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15456 ;;
15457 esac
15458 ;;
15459
15460 *)
15461 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15462 ;;
15463 esac
15464 dynamic_linker='Win32 ld.exe'
15465 # FIXME: first we should search . and the directory the executable is in
15466 shlibpath_var=PATH
15467 ;;
15468
15469darwin* | rhapsody*)
15470 dynamic_linker="$host_os dyld"
15471 version_type=darwin
15472 need_lib_prefix=no
15473 need_version=no
15474 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15475 soname_spec='${libname}${release}${major}$shared_ext'
15476 shlibpath_overrides_runpath=yes
15477 shlibpath_var=DYLD_LIBRARY_PATH
15478 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ac40fd9e 15479
d9898ee8 15480 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15481 ;;
15482
15483dgux*)
15484 version_type=linux
15485 need_lib_prefix=no
15486 need_version=no
15487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15488 soname_spec='${libname}${release}${shared_ext}$major'
15489 shlibpath_var=LD_LIBRARY_PATH
15490 ;;
15491
15492freebsd1*)
15493 dynamic_linker=no
15494 ;;
15495
d9898ee8 15496freebsd* | dragonfly*)
15497 # DragonFly does not have aout. When/if they implement a new
15498 # versioning mechanism, adjust this.
15499 if test -x /usr/bin/objformat; then
15500 objformat=`/usr/bin/objformat`
15501 else
15502 case $host_os in
15503 freebsd[123]*) objformat=aout ;;
15504 *) objformat=elf ;;
15505 esac
15506 fi
15507 version_type=freebsd-$objformat
15508 case $version_type in
15509 freebsd-elf*)
15510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15511 need_version=no
15512 need_lib_prefix=no
15513 ;;
15514 freebsd-*)
15515 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15516 need_version=yes
15517 ;;
15518 esac
15519 shlibpath_var=LD_LIBRARY_PATH
15520 case $host_os in
15521 freebsd2*)
15522 shlibpath_overrides_runpath=yes
15523 ;;
15524 freebsd3.[01]* | freebsdelf3.[01]*)
15525 shlibpath_overrides_runpath=yes
15526 hardcode_into_libs=yes
15527 ;;
15528 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15529 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15530 shlibpath_overrides_runpath=no
15531 hardcode_into_libs=yes
15532 ;;
ac40fd9e 15533 *) # from 4.6 on, and DragonFly
d9898ee8 15534 shlibpath_overrides_runpath=yes
15535 hardcode_into_libs=yes
15536 ;;
15537 esac
15538 ;;
15539
15540gnu*)
15541 version_type=linux
15542 need_lib_prefix=no
15543 need_version=no
15544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15545 soname_spec='${libname}${release}${shared_ext}$major'
15546 shlibpath_var=LD_LIBRARY_PATH
15547 hardcode_into_libs=yes
15548 ;;
15549
15550hpux9* | hpux10* | hpux11*)
15551 # Give a soname corresponding to the major version so that dld.sl refuses to
15552 # link against other versions.
15553 version_type=sunos
15554 need_lib_prefix=no
15555 need_version=no
15556 case $host_cpu in
15557 ia64*)
15558 shrext_cmds='.so'
15559 hardcode_into_libs=yes
15560 dynamic_linker="$host_os dld.so"
15561 shlibpath_var=LD_LIBRARY_PATH
15562 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15564 soname_spec='${libname}${release}${shared_ext}$major'
15565 if test "X$HPUX_IA64_MODE" = X32; then
15566 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15567 else
15568 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15569 fi
15570 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15571 ;;
15572 hppa*64*)
15573 shrext_cmds='.sl'
15574 hardcode_into_libs=yes
15575 dynamic_linker="$host_os dld.sl"
15576 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15577 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15579 soname_spec='${libname}${release}${shared_ext}$major'
15580 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15581 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15582 ;;
15583 *)
15584 shrext_cmds='.sl'
15585 dynamic_linker="$host_os dld.sl"
15586 shlibpath_var=SHLIB_PATH
15587 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15589 soname_spec='${libname}${release}${shared_ext}$major'
15590 ;;
15591 esac
15592 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15593 postinstall_cmds='chmod 555 $lib'
15594 ;;
15595
ac40fd9e 15596interix[3-9]*)
d9898ee8 15597 version_type=linux
15598 need_lib_prefix=no
15599 need_version=no
15600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15601 soname_spec='${libname}${release}${shared_ext}$major'
15602 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15603 shlibpath_var=LD_LIBRARY_PATH
15604 shlibpath_overrides_runpath=no
15605 hardcode_into_libs=yes
15606 ;;
15607
15608irix5* | irix6* | nonstopux*)
15609 case $host_os in
15610 nonstopux*) version_type=nonstopux ;;
15611 *)
15612 if test "$lt_cv_prog_gnu_ld" = yes; then
15613 version_type=linux
15614 else
15615 version_type=irix
15616 fi ;;
15617 esac
15618 need_lib_prefix=no
15619 need_version=no
15620 soname_spec='${libname}${release}${shared_ext}$major'
15621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15622 case $host_os in
15623 irix5* | nonstopux*)
15624 libsuff= shlibsuff=
15625 ;;
15626 *)
15627 case $LD in # libtool.m4 will add one of these switches to LD
15628 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15629 libsuff= shlibsuff= libmagic=32-bit;;
15630 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15631 libsuff=32 shlibsuff=N32 libmagic=N32;;
15632 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15633 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15634 *) libsuff= shlibsuff= libmagic=never-match;;
15635 esac
15636 ;;
15637 esac
15638 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15639 shlibpath_overrides_runpath=no
15640 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15641 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15642 hardcode_into_libs=yes
15643 ;;
15644
15645# No shared lib support for Linux oldld, aout, or coff.
15646linux*oldld* | linux*aout* | linux*coff*)
15647 dynamic_linker=no
15648 ;;
15649
15650# This must be Linux ELF.
ac40fd9e 15651linux* | k*bsd*-gnu)
d9898ee8 15652 version_type=linux
15653 need_lib_prefix=no
15654 need_version=no
15655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15656 soname_spec='${libname}${release}${shared_ext}$major'
15657 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15658 shlibpath_var=LD_LIBRARY_PATH
15659 shlibpath_overrides_runpath=no
15660 # This implies no fast_install, which is unacceptable.
15661 # Some rework will be needed to allow for fast_install
15662 # before this can be enabled.
15663 hardcode_into_libs=yes
ac40fd9e 15664 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15665 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
d9898ee8 15666
15667 # Append ld.so.conf contents to the search path
15668 if test -f /etc/ld.so.conf; then
ac40fd9e 15669 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15670 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 15671 fi
15672
15673 # We used to test for /lib/ld.so.1 and disable shared libraries on
15674 # powerpc, because MkLinux only supported shared libraries with the
15675 # GNU dynamic linker. Since this was broken with cross compilers,
15676 # most powerpc-linux boxes support dynamic linking these days and
15677 # people can always --disable-shared, the test was removed, and we
15678 # assume the GNU/Linux dynamic linker is in use.
15679 dynamic_linker='GNU/Linux ld.so'
15680 ;;
15681
d9898ee8 15682netbsd*)
15683 version_type=sunos
15684 need_lib_prefix=no
15685 need_version=no
15686 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15688 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15689 dynamic_linker='NetBSD (a.out) ld.so'
15690 else
15691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15692 soname_spec='${libname}${release}${shared_ext}$major'
15693 dynamic_linker='NetBSD ld.elf_so'
15694 fi
15695 shlibpath_var=LD_LIBRARY_PATH
15696 shlibpath_overrides_runpath=yes
15697 hardcode_into_libs=yes
15698 ;;
15699
15700newsos6)
15701 version_type=linux
15702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15703 shlibpath_var=LD_LIBRARY_PATH
15704 shlibpath_overrides_runpath=yes
15705 ;;
15706
15707nto-qnx*)
15708 version_type=linux
15709 need_lib_prefix=no
15710 need_version=no
15711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15712 soname_spec='${libname}${release}${shared_ext}$major'
15713 shlibpath_var=LD_LIBRARY_PATH
15714 shlibpath_overrides_runpath=yes
15715 ;;
15716
15717openbsd*)
15718 version_type=sunos
15719 sys_lib_dlsearch_path_spec="/usr/lib"
15720 need_lib_prefix=no
15721 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15722 case $host_os in
15723 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15724 *) need_version=no ;;
15725 esac
15726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15727 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15728 shlibpath_var=LD_LIBRARY_PATH
15729 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15730 case $host_os in
15731 openbsd2.[89] | openbsd2.[89].*)
15732 shlibpath_overrides_runpath=no
15733 ;;
15734 *)
15735 shlibpath_overrides_runpath=yes
15736 ;;
15737 esac
15738 else
15739 shlibpath_overrides_runpath=yes
15740 fi
15741 ;;
15742
15743os2*)
15744 libname_spec='$name'
15745 shrext_cmds=".dll"
15746 need_lib_prefix=no
15747 library_names_spec='$libname${shared_ext} $libname.a'
15748 dynamic_linker='OS/2 ld.exe'
15749 shlibpath_var=LIBPATH
15750 ;;
15751
15752osf3* | osf4* | osf5*)
15753 version_type=osf
15754 need_lib_prefix=no
15755 need_version=no
15756 soname_spec='${libname}${release}${shared_ext}$major'
15757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15758 shlibpath_var=LD_LIBRARY_PATH
15759 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15760 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15761 ;;
15762
ac40fd9e 15763rdos*)
15764 dynamic_linker=no
15765 ;;
15766
d9898ee8 15767solaris*)
15768 version_type=linux
15769 need_lib_prefix=no
15770 need_version=no
15771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15772 soname_spec='${libname}${release}${shared_ext}$major'
15773 shlibpath_var=LD_LIBRARY_PATH
15774 shlibpath_overrides_runpath=yes
15775 hardcode_into_libs=yes
15776 # ldd complains unless libraries are executable
15777 postinstall_cmds='chmod +x $lib'
15778 ;;
15779
15780sunos4*)
15781 version_type=sunos
15782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15783 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15784 shlibpath_var=LD_LIBRARY_PATH
15785 shlibpath_overrides_runpath=yes
15786 if test "$with_gnu_ld" = yes; then
15787 need_lib_prefix=no
15788 fi
15789 need_version=yes
15790 ;;
15791
15792sysv4 | sysv4.3*)
15793 version_type=linux
15794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15795 soname_spec='${libname}${release}${shared_ext}$major'
15796 shlibpath_var=LD_LIBRARY_PATH
15797 case $host_vendor in
15798 sni)
15799 shlibpath_overrides_runpath=no
15800 need_lib_prefix=no
15801 export_dynamic_flag_spec='${wl}-Blargedynsym'
15802 runpath_var=LD_RUN_PATH
15803 ;;
15804 siemens)
15805 need_lib_prefix=no
15806 ;;
15807 motorola)
15808 need_lib_prefix=no
15809 need_version=no
15810 shlibpath_overrides_runpath=no
15811 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15812 ;;
15813 esac
15814 ;;
15815
15816sysv4*MP*)
15817 if test -d /usr/nec ;then
15818 version_type=linux
15819 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15820 soname_spec='$libname${shared_ext}.$major'
15821 shlibpath_var=LD_LIBRARY_PATH
15822 fi
15823 ;;
15824
15825sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15826 version_type=freebsd-elf
15827 need_lib_prefix=no
15828 need_version=no
15829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15830 soname_spec='${libname}${release}${shared_ext}$major'
15831 shlibpath_var=LD_LIBRARY_PATH
15832 hardcode_into_libs=yes
15833 if test "$with_gnu_ld" = yes; then
15834 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15835 shlibpath_overrides_runpath=no
15836 else
15837 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15838 shlibpath_overrides_runpath=yes
15839 case $host_os in
15840 sco3.2v5*)
15841 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15842 ;;
15843 esac
15844 fi
15845 sys_lib_dlsearch_path_spec='/usr/lib'
15846 ;;
15847
15848uts4*)
15849 version_type=linux
15850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15851 soname_spec='${libname}${release}${shared_ext}$major'
15852 shlibpath_var=LD_LIBRARY_PATH
15853 ;;
15854
15855*)
15856 dynamic_linker=no
15857 ;;
15858esac
dd184caf 15859{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15860echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 15861test "$dynamic_linker" = no && can_build_shared=no
15862
15863variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15864if test "$GCC" = yes; then
15865 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15866fi
15867
dd184caf 15868{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15869echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 15870hardcode_action_F77=
15871if test -n "$hardcode_libdir_flag_spec_F77" || \
15872 test -n "$runpath_var_F77" || \
15873 test "X$hardcode_automatic_F77" = "Xyes" ; then
15874
15875 # We can hardcode non-existant directories.
15876 if test "$hardcode_direct_F77" != no &&
15877 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15878 # have to relink, otherwise we might link with an installed library
15879 # when we should be linking with a yet-to-be-installed one
15880 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15881 test "$hardcode_minus_L_F77" != no; then
15882 # Linking always hardcodes the temporary library directory.
15883 hardcode_action_F77=relink
15884 else
15885 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15886 hardcode_action_F77=immediate
15887 fi
15888else
15889 # We cannot hardcode anything, or else we can only hardcode existing
15890 # directories.
15891 hardcode_action_F77=unsupported
15892fi
dd184caf 15893{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15894echo "${ECHO_T}$hardcode_action_F77" >&6; }
d9898ee8 15895
15896if test "$hardcode_action_F77" = relink; then
15897 # Fast installation is not supported
15898 enable_fast_install=no
15899elif test "$shlibpath_overrides_runpath" = yes ||
15900 test "$enable_shared" = no; then
15901 # Fast installation is not necessary
15902 enable_fast_install=needless
15903fi
15904
15905
15906# The else clause should only fire when bootstrapping the
15907# libtool distribution, otherwise you forgot to ship ltmain.sh
15908# with your package, and you will get complaints that there are
15909# no rules to generate ltmain.sh.
15910if test -f "$ltmain"; then
15911 # See if we are running on zsh, and set the options which allow our commands through
15912 # without removal of \ escapes.
15913 if test -n "${ZSH_VERSION+set}" ; then
15914 setopt NO_GLOB_SUBST
15915 fi
15916 # Now quote all the things that may contain metacharacters while being
15917 # careful not to overquote the AC_SUBSTed values. We take copies of the
15918 # variables and quote the copies for generation of the libtool script.
15919 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15920 SED SHELL STRIP \
15921 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15922 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15923 deplibs_check_method reload_flag reload_cmds need_locks \
15924 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15925 lt_cv_sys_global_symbol_to_c_name_address \
15926 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15927 old_postinstall_cmds old_postuninstall_cmds \
15928 compiler_F77 \
15929 CC_F77 \
15930 LD_F77 \
15931 lt_prog_compiler_wl_F77 \
15932 lt_prog_compiler_pic_F77 \
15933 lt_prog_compiler_static_F77 \
15934 lt_prog_compiler_no_builtin_flag_F77 \
15935 export_dynamic_flag_spec_F77 \
15936 thread_safe_flag_spec_F77 \
15937 whole_archive_flag_spec_F77 \
15938 enable_shared_with_static_runtimes_F77 \
15939 old_archive_cmds_F77 \
15940 old_archive_from_new_cmds_F77 \
15941 predep_objects_F77 \
15942 postdep_objects_F77 \
15943 predeps_F77 \
15944 postdeps_F77 \
15945 compiler_lib_search_path_F77 \
15946 archive_cmds_F77 \
15947 archive_expsym_cmds_F77 \
15948 postinstall_cmds_F77 \
15949 postuninstall_cmds_F77 \
15950 old_archive_from_expsyms_cmds_F77 \
15951 allow_undefined_flag_F77 \
15952 no_undefined_flag_F77 \
15953 export_symbols_cmds_F77 \
15954 hardcode_libdir_flag_spec_F77 \
15955 hardcode_libdir_flag_spec_ld_F77 \
15956 hardcode_libdir_separator_F77 \
15957 hardcode_automatic_F77 \
15958 module_cmds_F77 \
15959 module_expsym_cmds_F77 \
15960 lt_cv_prog_compiler_c_o_F77 \
ac40fd9e 15961 fix_srcfile_path_F77 \
d9898ee8 15962 exclude_expsyms_F77 \
15963 include_expsyms_F77; do
15964
15965 case $var in
15966 old_archive_cmds_F77 | \
15967 old_archive_from_new_cmds_F77 | \
15968 archive_cmds_F77 | \
15969 archive_expsym_cmds_F77 | \
15970 module_cmds_F77 | \
15971 module_expsym_cmds_F77 | \
15972 old_archive_from_expsyms_cmds_F77 | \
15973 export_symbols_cmds_F77 | \
15974 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15975 postinstall_cmds | postuninstall_cmds | \
15976 old_postinstall_cmds | old_postuninstall_cmds | \
15977 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15978 # Double-quote double-evaled strings.
15979 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15980 ;;
15981 *)
15982 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15983 ;;
15984 esac
15985 done
15986
15987 case $lt_echo in
15988 *'\$0 --fallback-echo"')
15989 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15990 ;;
15991 esac
15992
15993cfgfile="$ofile"
15994
15995 cat <<__EOF__ >> "$cfgfile"
15996# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15997
15998# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15999
16000# Shell to use when invoking shell scripts.
16001SHELL=$lt_SHELL
16002
16003# Whether or not to build shared libraries.
16004build_libtool_libs=$enable_shared
16005
16006# Whether or not to build static libraries.
16007build_old_libs=$enable_static
16008
16009# Whether or not to add -lc for building shared libraries.
16010build_libtool_need_lc=$archive_cmds_need_lc_F77
16011
16012# Whether or not to disallow shared libs when runtime libs are static
16013allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16014
16015# Whether or not to optimize for fast installation.
16016fast_install=$enable_fast_install
16017
16018# The host system.
16019host_alias=$host_alias
16020host=$host
16021host_os=$host_os
16022
16023# The build system.
16024build_alias=$build_alias
16025build=$build
16026build_os=$build_os
16027
16028# An echo program that does not interpret backslashes.
16029echo=$lt_echo
16030
16031# The archiver.
16032AR=$lt_AR
16033AR_FLAGS=$lt_AR_FLAGS
16034
16035# A C compiler.
16036LTCC=$lt_LTCC
16037
16038# LTCC compiler flags.
16039LTCFLAGS=$lt_LTCFLAGS
16040
16041# A language-specific compiler.
16042CC=$lt_compiler_F77
16043
16044# Is the compiler the GNU C compiler?
16045with_gcc=$GCC_F77
16046
d9898ee8 16047# An ERE matcher.
16048EGREP=$lt_EGREP
16049
16050# The linker used to build libraries.
16051LD=$lt_LD_F77
16052
16053# Whether we need hard or soft links.
16054LN_S=$lt_LN_S
16055
16056# A BSD-compatible nm program.
16057NM=$lt_NM
16058
16059# A symbol stripping program
16060STRIP=$lt_STRIP
16061
16062# Used to examine libraries when file_magic_cmd begins "file"
16063MAGIC_CMD=$MAGIC_CMD
16064
16065# Used on cygwin: DLL creation program.
16066DLLTOOL="$DLLTOOL"
16067
16068# Used on cygwin: object dumper.
16069OBJDUMP="$OBJDUMP"
16070
16071# Used on cygwin: assembler.
16072AS="$AS"
16073
16074# The name of the directory that contains temporary libtool files.
16075objdir=$objdir
16076
16077# How to create reloadable object files.
16078reload_flag=$lt_reload_flag
16079reload_cmds=$lt_reload_cmds
16080
16081# How to pass a linker flag through the compiler.
16082wl=$lt_lt_prog_compiler_wl_F77
16083
16084# Object file suffix (normally "o").
16085objext="$ac_objext"
16086
16087# Old archive suffix (normally "a").
16088libext="$libext"
16089
16090# Shared library suffix (normally ".so").
16091shrext_cmds='$shrext_cmds'
16092
16093# Executable file suffix (normally "").
16094exeext="$exeext"
16095
16096# Additional compiler flags for building library objects.
16097pic_flag=$lt_lt_prog_compiler_pic_F77
16098pic_mode=$pic_mode
16099
16100# What is the maximum length of a command?
16101max_cmd_len=$lt_cv_sys_max_cmd_len
16102
16103# Does compiler simultaneously support -c and -o options?
16104compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16105
16106# Must we lock files when doing compilation?
16107need_locks=$lt_need_locks
16108
16109# Do we need the lib prefix for modules?
16110need_lib_prefix=$need_lib_prefix
16111
16112# Do we need a version for libraries?
16113need_version=$need_version
16114
16115# Whether dlopen is supported.
16116dlopen_support=$enable_dlopen
16117
16118# Whether dlopen of programs is supported.
16119dlopen_self=$enable_dlopen_self
16120
16121# Whether dlopen of statically linked programs is supported.
16122dlopen_self_static=$enable_dlopen_self_static
16123
16124# Compiler flag to prevent dynamic linking.
16125link_static_flag=$lt_lt_prog_compiler_static_F77
16126
16127# Compiler flag to turn off builtin functions.
16128no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16129
16130# Compiler flag to allow reflexive dlopens.
16131export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16132
16133# Compiler flag to generate shared objects directly from archives.
16134whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16135
16136# Compiler flag to generate thread-safe objects.
16137thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16138
16139# Library versioning type.
16140version_type=$version_type
16141
16142# Format of library name prefix.
16143libname_spec=$lt_libname_spec
16144
16145# List of archive names. First name is the real one, the rest are links.
16146# The last name is the one that the linker finds with -lNAME.
16147library_names_spec=$lt_library_names_spec
16148
16149# The coded name of the library, if different from the real name.
16150soname_spec=$lt_soname_spec
16151
16152# Commands used to build and install an old-style archive.
16153RANLIB=$lt_RANLIB
16154old_archive_cmds=$lt_old_archive_cmds_F77
16155old_postinstall_cmds=$lt_old_postinstall_cmds
16156old_postuninstall_cmds=$lt_old_postuninstall_cmds
16157
16158# Create an old-style archive from a shared archive.
16159old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16160
16161# Create a temporary old-style archive to link instead of a shared archive.
16162old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16163
16164# Commands used to build and install a shared archive.
16165archive_cmds=$lt_archive_cmds_F77
16166archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16167postinstall_cmds=$lt_postinstall_cmds
16168postuninstall_cmds=$lt_postuninstall_cmds
16169
16170# Commands used to build a loadable module (assumed same as above if empty)
16171module_cmds=$lt_module_cmds_F77
16172module_expsym_cmds=$lt_module_expsym_cmds_F77
16173
16174# Commands to strip libraries.
16175old_striplib=$lt_old_striplib
16176striplib=$lt_striplib
16177
16178# Dependencies to place before the objects being linked to create a
16179# shared library.
dd184caf 16180predep_objects=$lt_predep_objects_F77
d9898ee8 16181
16182# Dependencies to place after the objects being linked to create a
16183# shared library.
dd184caf 16184postdep_objects=$lt_postdep_objects_F77
d9898ee8 16185
16186# Dependencies to place before the objects being linked to create a
16187# shared library.
16188predeps=$lt_predeps_F77
16189
16190# Dependencies to place after the objects being linked to create a
16191# shared library.
16192postdeps=$lt_postdeps_F77
16193
16194# The library search path used internally by the compiler when linking
16195# a shared library.
dd184caf 16196compiler_lib_search_path=$lt_compiler_lib_search_path_F77
d9898ee8 16197
16198# Method to check whether dependent libraries are shared objects.
16199deplibs_check_method=$lt_deplibs_check_method
16200
16201# Command to use when deplibs_check_method == file_magic.
16202file_magic_cmd=$lt_file_magic_cmd
16203
16204# Flag that allows shared libraries with undefined symbols to be built.
16205allow_undefined_flag=$lt_allow_undefined_flag_F77
16206
16207# Flag that forces no undefined symbols.
16208no_undefined_flag=$lt_no_undefined_flag_F77
16209
16210# Commands used to finish a libtool library installation in a directory.
16211finish_cmds=$lt_finish_cmds
16212
16213# Same as above, but a single script fragment to be evaled but not shown.
16214finish_eval=$lt_finish_eval
16215
16216# Take the output of nm and produce a listing of raw symbols and C names.
16217global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16218
16219# Transform the output of nm in a proper C declaration
16220global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16221
16222# Transform the output of nm in a C name address pair
16223global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16224
16225# This is the shared library runtime path variable.
16226runpath_var=$runpath_var
16227
16228# This is the shared library path variable.
16229shlibpath_var=$shlibpath_var
16230
16231# Is shlibpath searched before the hard-coded library search path?
16232shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16233
16234# How to hardcode a shared library path into an executable.
16235hardcode_action=$hardcode_action_F77
16236
16237# Whether we should hardcode library paths into libraries.
16238hardcode_into_libs=$hardcode_into_libs
16239
16240# Flag to hardcode \$libdir into a binary during linking.
16241# This must work even if \$libdir does not exist.
16242hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16243
16244# If ld is used when linking, flag to hardcode \$libdir into
16245# a binary during linking. This must work even if \$libdir does
16246# not exist.
16247hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16248
16249# Whether we need a single -rpath flag with a separated argument.
16250hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16251
16252# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16253# resulting binary.
16254hardcode_direct=$hardcode_direct_F77
16255
16256# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16257# resulting binary.
16258hardcode_minus_L=$hardcode_minus_L_F77
16259
16260# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16261# the resulting binary.
16262hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16263
16264# Set to yes if building a shared library automatically hardcodes DIR into the library
16265# and all subsequent libraries and executables linked against it.
16266hardcode_automatic=$hardcode_automatic_F77
16267
16268# Variables whose values should be saved in libtool wrapper scripts and
16269# restored at relink time.
16270variables_saved_for_relink="$variables_saved_for_relink"
16271
16272# Whether libtool must link a program against all its dependency libraries.
16273link_all_deplibs=$link_all_deplibs_F77
16274
16275# Compile-time system search path for libraries
dd184caf 16276sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 16277
16278# Run-time system search path for libraries
16279sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16280
16281# Fix the shell variable \$srcfile for the compiler.
ac40fd9e 16282fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 16283
16284# Set to yes if exported symbols are required.
16285always_export_symbols=$always_export_symbols_F77
16286
16287# The commands to list exported symbols.
16288export_symbols_cmds=$lt_export_symbols_cmds_F77
16289
16290# The commands to extract the exported symbol list from a shared archive.
16291extract_expsyms_cmds=$lt_extract_expsyms_cmds
16292
16293# Symbols that should not be listed in the preloaded symbols.
16294exclude_expsyms=$lt_exclude_expsyms_F77
16295
16296# Symbols that must always be exported.
16297include_expsyms=$lt_include_expsyms_F77
16298
16299# ### END LIBTOOL TAG CONFIG: $tagname
16300
16301__EOF__
16302
16303
16304else
16305 # If there is no Makefile yet, we rely on a make rule to execute
16306 # `config.status --recheck' to rerun these tests and create the
16307 # libtool script then.
16308 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16309 if test -f "$ltmain_in"; then
16310 test -f Makefile && make "$ltmain"
16311 fi
16312fi
16313
16314
16315ac_ext=c
16316ac_cpp='$CPP $CPPFLAGS'
16317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16319ac_compiler_gnu=$ac_cv_c_compiler_gnu
16320
16321CC="$lt_save_CC"
16322
16323 else
16324 tagname=""
16325 fi
16326 ;;
16327
16328 GCJ)
16329 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16330
16331
d9898ee8 16332# Source file extension for Java test sources.
16333ac_ext=java
16334
16335# Object file extension for compiled Java test sources.
16336objext=o
16337objext_GCJ=$objext
16338
16339# Code to be used in simple compile tests
ac40fd9e 16340lt_simple_compile_test_code="class foo {}"
d9898ee8 16341
16342# Code to be used in simple link tests
ac40fd9e 16343lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
d9898ee8 16344
16345# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16346
16347# If no C compiler was specified, use CC.
16348LTCC=${LTCC-"$CC"}
16349
16350# If no C compiler flags were specified, use CFLAGS.
16351LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16352
16353# Allow CC to be a program name with arguments.
16354compiler=$CC
16355
16356
16357# save warnings/boilerplate of simple test code
16358ac_outfile=conftest.$ac_objext
ac40fd9e 16359echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 16360eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16361_lt_compiler_boilerplate=`cat conftest.err`
16362$rm conftest*
16363
16364ac_outfile=conftest.$ac_objext
ac40fd9e 16365echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 16366eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16367_lt_linker_boilerplate=`cat conftest.err`
16368$rm conftest*
16369
16370
16371# Allow CC to be a program name with arguments.
16372lt_save_CC="$CC"
16373CC=${GCJ-"gcj"}
16374compiler=$CC
16375compiler_GCJ=$CC
16376for cc_temp in $compiler""; do
16377 case $cc_temp in
16378 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16379 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16380 \-*) ;;
16381 *) break;;
16382 esac
16383done
16384cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16385
16386
16387# GCJ did not exist at the time GCC didn't implicitly link libc in.
16388archive_cmds_need_lc_GCJ=no
16389
16390old_archive_cmds_GCJ=$old_archive_cmds
16391
16392
16393lt_prog_compiler_no_builtin_flag_GCJ=
16394
16395if test "$GCC" = yes; then
16396 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16397
16398
dd184caf 16399{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16400echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d9898ee8 16401if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16402 echo $ECHO_N "(cached) $ECHO_C" >&6
16403else
16404 lt_cv_prog_compiler_rtti_exceptions=no
16405 ac_outfile=conftest.$ac_objext
ac40fd9e 16406 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 16407 lt_compiler_flag="-fno-rtti -fno-exceptions"
16408 # Insert the option either (1) after the last *FLAGS variable, or
16409 # (2) before a word containing "conftest.", or (3) at the end.
16410 # Note that $ac_compile itself does not contain backslashes and begins
16411 # with a dollar sign (not a hyphen), so the echo should work correctly.
16412 # The option is referenced via a variable to avoid confusing sed.
16413 lt_compile=`echo "$ac_compile" | $SED \
16414 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16415 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16416 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 16417 (eval echo "\"\$as_me:16417: $lt_compile\"" >&5)
d9898ee8 16418 (eval "$lt_compile" 2>conftest.err)
16419 ac_status=$?
16420 cat conftest.err >&5
ac40fd9e 16421 echo "$as_me:16421: \$? = $ac_status" >&5
d9898ee8 16422 if (exit $ac_status) && test -s "$ac_outfile"; then
16423 # The compiler can only warn and ignore the option if not recognized
16424 # So say no if there are warnings other than the usual output.
16425 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16426 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16427 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16428 lt_cv_prog_compiler_rtti_exceptions=yes
16429 fi
16430 fi
16431 $rm conftest*
16432
16433fi
dd184caf 16434{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16435echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 16436
16437if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16438 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16439else
16440 :
16441fi
16442
16443fi
16444
16445lt_prog_compiler_wl_GCJ=
16446lt_prog_compiler_pic_GCJ=
16447lt_prog_compiler_static_GCJ=
16448
dd184caf 16449{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16450echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 16451
16452 if test "$GCC" = yes; then
16453 lt_prog_compiler_wl_GCJ='-Wl,'
16454 lt_prog_compiler_static_GCJ='-static'
16455
16456 case $host_os in
16457 aix*)
16458 # All AIX code is PIC.
16459 if test "$host_cpu" = ia64; then
16460 # AIX 5 now supports IA64 processor
16461 lt_prog_compiler_static_GCJ='-Bstatic'
16462 fi
16463 ;;
16464
16465 amigaos*)
16466 # FIXME: we need at least 68020 code to build shared libraries, but
16467 # adding the `-m68020' flag to GCC prevents building anything better,
16468 # like `-m68040'.
16469 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16470 ;;
16471
ac40fd9e 16472 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 16473 # PIC is the default for these OSes.
16474 ;;
16475
ac40fd9e 16476 mingw* | cygwin* | pw32* | os2*)
d9898ee8 16477 # This hack is so that the source file can tell whether it is being
16478 # built for inclusion in a dll (and should export symbols for example).
ac40fd9e 16479 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16480 # (--disable-auto-import) libraries
d9898ee8 16481 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16482 ;;
16483
16484 darwin* | rhapsody*)
16485 # PIC is the default on this platform
16486 # Common symbols not allowed in MH_DYLIB files
16487 lt_prog_compiler_pic_GCJ='-fno-common'
16488 ;;
16489
ac40fd9e 16490 interix[3-9]*)
d9898ee8 16491 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16492 # Instead, we relocate shared libraries at runtime.
16493 ;;
16494
16495 msdosdjgpp*)
16496 # Just because we use GCC doesn't mean we suddenly get shared libraries
16497 # on systems that don't support them.
16498 lt_prog_compiler_can_build_shared_GCJ=no
16499 enable_shared=no
16500 ;;
16501
16502 sysv4*MP*)
16503 if test -d /usr/nec; then
16504 lt_prog_compiler_pic_GCJ=-Kconform_pic
16505 fi
16506 ;;
16507
16508 hpux*)
16509 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16510 # not for PA HP-UX.
16511 case $host_cpu in
16512 hppa*64*|ia64*)
16513 # +Z the default
16514 ;;
16515 *)
16516 lt_prog_compiler_pic_GCJ='-fPIC'
16517 ;;
16518 esac
16519 ;;
16520
16521 *)
16522 lt_prog_compiler_pic_GCJ='-fPIC'
16523 ;;
16524 esac
16525 else
16526 # PORTME Check for flag to pass linker flags through the system compiler.
16527 case $host_os in
16528 aix*)
16529 lt_prog_compiler_wl_GCJ='-Wl,'
16530 if test "$host_cpu" = ia64; then
16531 # AIX 5 now supports IA64 processor
16532 lt_prog_compiler_static_GCJ='-Bstatic'
16533 else
16534 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16535 fi
16536 ;;
16537 darwin*)
16538 # PIC is the default on this platform
16539 # Common symbols not allowed in MH_DYLIB files
16540 case $cc_basename in
16541 xlc*)
16542 lt_prog_compiler_pic_GCJ='-qnocommon'
16543 lt_prog_compiler_wl_GCJ='-Wl,'
16544 ;;
16545 esac
16546 ;;
16547
ac40fd9e 16548 mingw* | cygwin* | pw32* | os2*)
d9898ee8 16549 # This hack is so that the source file can tell whether it is being
16550 # built for inclusion in a dll (and should export symbols for example).
16551 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16552 ;;
16553
16554 hpux9* | hpux10* | hpux11*)
16555 lt_prog_compiler_wl_GCJ='-Wl,'
16556 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16557 # not for PA HP-UX.
16558 case $host_cpu in
16559 hppa*64*|ia64*)
16560 # +Z the default
16561 ;;
16562 *)
16563 lt_prog_compiler_pic_GCJ='+Z'
16564 ;;
16565 esac
16566 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16567 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16568 ;;
16569
16570 irix5* | irix6* | nonstopux*)
16571 lt_prog_compiler_wl_GCJ='-Wl,'
16572 # PIC (with -KPIC) is the default.
16573 lt_prog_compiler_static_GCJ='-non_shared'
16574 ;;
16575
16576 newsos6)
16577 lt_prog_compiler_pic_GCJ='-KPIC'
16578 lt_prog_compiler_static_GCJ='-Bstatic'
16579 ;;
16580
ac40fd9e 16581 linux* | k*bsd*-gnu)
d9898ee8 16582 case $cc_basename in
16583 icc* | ecc*)
16584 lt_prog_compiler_wl_GCJ='-Wl,'
16585 lt_prog_compiler_pic_GCJ='-KPIC'
16586 lt_prog_compiler_static_GCJ='-static'
16587 ;;
16588 pgcc* | pgf77* | pgf90* | pgf95*)
16589 # Portland Group compilers (*not* the Pentium gcc compiler,
16590 # which looks to be a dead project)
16591 lt_prog_compiler_wl_GCJ='-Wl,'
16592 lt_prog_compiler_pic_GCJ='-fpic'
16593 lt_prog_compiler_static_GCJ='-Bstatic'
16594 ;;
16595 ccc*)
16596 lt_prog_compiler_wl_GCJ='-Wl,'
16597 # All Alpha code is PIC.
16598 lt_prog_compiler_static_GCJ='-non_shared'
16599 ;;
ac40fd9e 16600 *)
16601 case `$CC -V 2>&1 | sed 5q` in
16602 *Sun\ C*)
16603 # Sun C 5.9
16604 lt_prog_compiler_pic_GCJ='-KPIC'
16605 lt_prog_compiler_static_GCJ='-Bstatic'
16606 lt_prog_compiler_wl_GCJ='-Wl,'
16607 ;;
16608 *Sun\ F*)
16609 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16610 lt_prog_compiler_pic_GCJ='-KPIC'
16611 lt_prog_compiler_static_GCJ='-Bstatic'
16612 lt_prog_compiler_wl_GCJ=''
16613 ;;
16614 esac
16615 ;;
d9898ee8 16616 esac
16617 ;;
16618
16619 osf3* | osf4* | osf5*)
16620 lt_prog_compiler_wl_GCJ='-Wl,'
16621 # All OSF/1 code is PIC.
16622 lt_prog_compiler_static_GCJ='-non_shared'
16623 ;;
16624
ac40fd9e 16625 rdos*)
16626 lt_prog_compiler_static_GCJ='-non_shared'
16627 ;;
16628
d9898ee8 16629 solaris*)
16630 lt_prog_compiler_pic_GCJ='-KPIC'
16631 lt_prog_compiler_static_GCJ='-Bstatic'
16632 case $cc_basename in
16633 f77* | f90* | f95*)
16634 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16635 *)
16636 lt_prog_compiler_wl_GCJ='-Wl,';;
16637 esac
16638 ;;
16639
16640 sunos4*)
16641 lt_prog_compiler_wl_GCJ='-Qoption ld '
16642 lt_prog_compiler_pic_GCJ='-PIC'
16643 lt_prog_compiler_static_GCJ='-Bstatic'
16644 ;;
16645
16646 sysv4 | sysv4.2uw2* | sysv4.3*)
16647 lt_prog_compiler_wl_GCJ='-Wl,'
16648 lt_prog_compiler_pic_GCJ='-KPIC'
16649 lt_prog_compiler_static_GCJ='-Bstatic'
16650 ;;
16651
16652 sysv4*MP*)
16653 if test -d /usr/nec ;then
16654 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16655 lt_prog_compiler_static_GCJ='-Bstatic'
16656 fi
16657 ;;
16658
16659 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16660 lt_prog_compiler_wl_GCJ='-Wl,'
16661 lt_prog_compiler_pic_GCJ='-KPIC'
16662 lt_prog_compiler_static_GCJ='-Bstatic'
16663 ;;
16664
16665 unicos*)
16666 lt_prog_compiler_wl_GCJ='-Wl,'
16667 lt_prog_compiler_can_build_shared_GCJ=no
16668 ;;
16669
16670 uts4*)
16671 lt_prog_compiler_pic_GCJ='-pic'
16672 lt_prog_compiler_static_GCJ='-Bstatic'
16673 ;;
16674
16675 *)
16676 lt_prog_compiler_can_build_shared_GCJ=no
16677 ;;
16678 esac
16679 fi
16680
dd184caf 16681{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16682echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
d9898ee8 16683
16684#
16685# Check to make sure the PIC flag actually works.
16686#
16687if test -n "$lt_prog_compiler_pic_GCJ"; then
16688
dd184caf 16689{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16690echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
d9898ee8 16691if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16692 echo $ECHO_N "(cached) $ECHO_C" >&6
16693else
16694 lt_prog_compiler_pic_works_GCJ=no
16695 ac_outfile=conftest.$ac_objext
ac40fd9e 16696 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 16697 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16698 # Insert the option either (1) after the last *FLAGS variable, or
16699 # (2) before a word containing "conftest.", or (3) at the end.
16700 # Note that $ac_compile itself does not contain backslashes and begins
16701 # with a dollar sign (not a hyphen), so the echo should work correctly.
16702 # The option is referenced via a variable to avoid confusing sed.
16703 lt_compile=`echo "$ac_compile" | $SED \
16704 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16705 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16706 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 16707 (eval echo "\"\$as_me:16707: $lt_compile\"" >&5)
d9898ee8 16708 (eval "$lt_compile" 2>conftest.err)
16709 ac_status=$?
16710 cat conftest.err >&5
ac40fd9e 16711 echo "$as_me:16711: \$? = $ac_status" >&5
d9898ee8 16712 if (exit $ac_status) && test -s "$ac_outfile"; then
16713 # The compiler can only warn and ignore the option if not recognized
16714 # So say no if there are warnings other than the usual output.
16715 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16716 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16717 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16718 lt_prog_compiler_pic_works_GCJ=yes
16719 fi
16720 fi
16721 $rm conftest*
16722
16723fi
dd184caf 16724{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16725echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
d9898ee8 16726
16727if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16728 case $lt_prog_compiler_pic_GCJ in
16729 "" | " "*) ;;
16730 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16731 esac
16732else
16733 lt_prog_compiler_pic_GCJ=
16734 lt_prog_compiler_can_build_shared_GCJ=no
16735fi
16736
16737fi
16738case $host_os in
16739 # For platforms which do not support PIC, -DPIC is meaningless:
16740 *djgpp*)
16741 lt_prog_compiler_pic_GCJ=
16742 ;;
16743 *)
16744 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16745 ;;
16746esac
16747
16748#
16749# Check to make sure the static flag actually works.
16750#
16751wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
dd184caf 16752{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16753echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 16754if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16755 echo $ECHO_N "(cached) $ECHO_C" >&6
16756else
16757 lt_prog_compiler_static_works_GCJ=no
16758 save_LDFLAGS="$LDFLAGS"
16759 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ac40fd9e 16760 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 16761 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16762 # The linker can only warn and ignore the option if not recognized
16763 # So say no if there are warnings
16764 if test -s conftest.err; then
16765 # Append any errors to the config.log.
16766 cat conftest.err 1>&5
16767 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16768 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16769 if diff conftest.exp conftest.er2 >/dev/null; then
16770 lt_prog_compiler_static_works_GCJ=yes
16771 fi
16772 else
16773 lt_prog_compiler_static_works_GCJ=yes
16774 fi
16775 fi
16776 $rm conftest*
16777 LDFLAGS="$save_LDFLAGS"
16778
16779fi
dd184caf 16780{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16781echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
d9898ee8 16782
16783if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16784 :
16785else
16786 lt_prog_compiler_static_GCJ=
16787fi
16788
16789
dd184caf 16790{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16791echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 16792if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16793 echo $ECHO_N "(cached) $ECHO_C" >&6
16794else
16795 lt_cv_prog_compiler_c_o_GCJ=no
16796 $rm -r conftest 2>/dev/null
16797 mkdir conftest
16798 cd conftest
16799 mkdir out
ac40fd9e 16800 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 16801
16802 lt_compiler_flag="-o out/conftest2.$ac_objext"
16803 # Insert the option either (1) after the last *FLAGS variable, or
16804 # (2) before a word containing "conftest.", or (3) at the end.
16805 # Note that $ac_compile itself does not contain backslashes and begins
16806 # with a dollar sign (not a hyphen), so the echo should work correctly.
16807 lt_compile=`echo "$ac_compile" | $SED \
16808 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16809 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16810 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 16811 (eval echo "\"\$as_me:16811: $lt_compile\"" >&5)
d9898ee8 16812 (eval "$lt_compile" 2>out/conftest.err)
16813 ac_status=$?
16814 cat out/conftest.err >&5
ac40fd9e 16815 echo "$as_me:16815: \$? = $ac_status" >&5
d9898ee8 16816 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16817 then
16818 # The compiler can only warn and ignore the option if not recognized
16819 # So say no if there are warnings
16820 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16821 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16822 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16823 lt_cv_prog_compiler_c_o_GCJ=yes
16824 fi
16825 fi
16826 chmod u+w . 2>&5
16827 $rm conftest*
16828 # SGI C++ compiler will create directory out/ii_files/ for
16829 # template instantiation
16830 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16831 $rm out/* && rmdir out
16832 cd ..
16833 rmdir conftest
16834 $rm conftest*
16835
16836fi
dd184caf 16837{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16838echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
d9898ee8 16839
16840
16841hard_links="nottested"
16842if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16843 # do not overwrite the value of need_locks provided by the user
dd184caf 16844 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16845echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 16846 hard_links=yes
16847 $rm conftest*
16848 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16849 touch conftest.a
16850 ln conftest.a conftest.b 2>&5 || hard_links=no
16851 ln conftest.a conftest.b 2>/dev/null && hard_links=no
dd184caf 16852 { echo "$as_me:$LINENO: result: $hard_links" >&5
16853echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 16854 if test "$hard_links" = no; then
16855 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16856echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16857 need_locks=warn
16858 fi
16859else
16860 need_locks=no
16861fi
16862
dd184caf 16863{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16864echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 16865
16866 runpath_var=
16867 allow_undefined_flag_GCJ=
16868 enable_shared_with_static_runtimes_GCJ=no
16869 archive_cmds_GCJ=
16870 archive_expsym_cmds_GCJ=
16871 old_archive_From_new_cmds_GCJ=
16872 old_archive_from_expsyms_cmds_GCJ=
16873 export_dynamic_flag_spec_GCJ=
16874 whole_archive_flag_spec_GCJ=
16875 thread_safe_flag_spec_GCJ=
16876 hardcode_libdir_flag_spec_GCJ=
16877 hardcode_libdir_flag_spec_ld_GCJ=
16878 hardcode_libdir_separator_GCJ=
16879 hardcode_direct_GCJ=no
16880 hardcode_minus_L_GCJ=no
16881 hardcode_shlibpath_var_GCJ=unsupported
16882 link_all_deplibs_GCJ=unknown
16883 hardcode_automatic_GCJ=no
16884 module_cmds_GCJ=
16885 module_expsym_cmds_GCJ=
16886 always_export_symbols_GCJ=no
16887 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16888 # include_expsyms should be a list of space-separated symbols to be *always*
16889 # included in the symbol list
16890 include_expsyms_GCJ=
16891 # exclude_expsyms can be an extended regexp of symbols to exclude
16892 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16893 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16894 # as well as any symbol that contains `d'.
16895 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16896 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16897 # platforms (ab)use it in PIC code, but their linkers get confused if
16898 # the symbol is explicitly referenced. Since portable code cannot
16899 # rely on this symbol name, it's probably fine to never include it in
16900 # preloaded symbol tables.
16901 extract_expsyms_cmds=
16902 # Just being paranoid about ensuring that cc_basename is set.
16903 for cc_temp in $compiler""; do
16904 case $cc_temp in
16905 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16906 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16907 \-*) ;;
16908 *) break;;
16909 esac
16910done
16911cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16912
16913 case $host_os in
16914 cygwin* | mingw* | pw32*)
16915 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16916 # When not using gcc, we currently assume that we are using
16917 # Microsoft Visual C++.
16918 if test "$GCC" != yes; then
16919 with_gnu_ld=no
16920 fi
16921 ;;
16922 interix*)
16923 # we just hope/assume this is gcc and not c89 (= MSVC++)
16924 with_gnu_ld=yes
16925 ;;
16926 openbsd*)
16927 with_gnu_ld=no
16928 ;;
16929 esac
16930
16931 ld_shlibs_GCJ=yes
16932 if test "$with_gnu_ld" = yes; then
16933 # If archive_cmds runs LD, not CC, wlarc should be empty
16934 wlarc='${wl}'
16935
16936 # Set some defaults for GNU ld with shared library support. These
16937 # are reset later if shared libraries are not supported. Putting them
16938 # here allows them to be overridden if necessary.
16939 runpath_var=LD_RUN_PATH
16940 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16941 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16942 # ancient GNU ld didn't support --whole-archive et. al.
16943 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16944 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16945 else
16946 whole_archive_flag_spec_GCJ=
16947 fi
16948 supports_anon_versioning=no
16949 case `$LD -v 2>/dev/null` in
16950 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16951 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16952 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16953 *\ 2.11.*) ;; # other 2.11 versions
16954 *) supports_anon_versioning=yes ;;
16955 esac
16956
16957 # See if GNU ld supports shared libraries.
16958 case $host_os in
16959 aix3* | aix4* | aix5*)
16960 # On AIX/PPC, the GNU linker is very broken
16961 if test "$host_cpu" != ia64; then
16962 ld_shlibs_GCJ=no
16963 cat <<EOF 1>&2
16964
16965*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16966*** to be unable to reliably create shared libraries on AIX.
16967*** Therefore, libtool is disabling shared libraries support. If you
16968*** really care for shared libraries, you may want to modify your PATH
16969*** so that a non-GNU linker is found, and then restart.
16970
16971EOF
16972 fi
16973 ;;
16974
16975 amigaos*)
16976 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)'
16977 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16978 hardcode_minus_L_GCJ=yes
16979
16980 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16981 # that the semantics of dynamic libraries on AmigaOS, at least up
16982 # to version 4, is to share data among multiple programs linked
16983 # with the same dynamic library. Since this doesn't match the
16984 # behavior of shared libraries on other platforms, we can't use
16985 # them.
16986 ld_shlibs_GCJ=no
16987 ;;
16988
16989 beos*)
16990 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16991 allow_undefined_flag_GCJ=unsupported
16992 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16993 # support --undefined. This deserves some investigation. FIXME
16994 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16995 else
16996 ld_shlibs_GCJ=no
16997 fi
16998 ;;
16999
17000 cygwin* | mingw* | pw32*)
17001 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17002 # as there is no search path for DLLs.
17003 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17004 allow_undefined_flag_GCJ=unsupported
17005 always_export_symbols_GCJ=no
17006 enable_shared_with_static_runtimes_GCJ=yes
ac40fd9e 17007 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d9898ee8 17008
17009 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17010 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17011 # If the export-symbols file already is a .def file (1st line
17012 # is EXPORTS), use it as is; otherwise, prepend...
17013 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17014 cp $export_symbols $output_objdir/$soname.def;
17015 else
17016 echo EXPORTS > $output_objdir/$soname.def;
17017 cat $export_symbols >> $output_objdir/$soname.def;
17018 fi~
17019 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17020 else
17021 ld_shlibs_GCJ=no
17022 fi
17023 ;;
17024
ac40fd9e 17025 interix[3-9]*)
d9898ee8 17026 hardcode_direct_GCJ=no
17027 hardcode_shlibpath_var_GCJ=no
17028 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17029 export_dynamic_flag_spec_GCJ='${wl}-E'
17030 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17031 # Instead, shared libraries are loaded at an image base (0x10000000 by
17032 # default) and relocated if they conflict, which is a slow very memory
17033 # consuming and fragmenting process. To avoid this, we pick a random,
17034 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17035 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17036 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'
17037 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'
17038 ;;
17039
ac40fd9e 17040 gnu* | linux* | k*bsd*-gnu)
d9898ee8 17041 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17042 tmp_addflag=
17043 case $cc_basename,$host_cpu in
17044 pgcc*) # Portland Group C compiler
17045 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'
17046 tmp_addflag=' $pic_flag'
17047 ;;
17048 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17049 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'
17050 tmp_addflag=' $pic_flag -Mnomain' ;;
17051 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17052 tmp_addflag=' -i_dynamic' ;;
17053 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17054 tmp_addflag=' -i_dynamic -nofor_main' ;;
17055 ifc* | ifort*) # Intel Fortran compiler
17056 tmp_addflag=' -nofor_main' ;;
17057 esac
ac40fd9e 17058 case `$CC -V 2>&1 | sed 5q` in
17059 *Sun\ C*) # Sun C 5.9
17060 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17061 tmp_sharedflag='-G' ;;
17062 *Sun\ F*) # Sun Fortran 8.3
17063 tmp_sharedflag='-G' ;;
17064 *)
17065 tmp_sharedflag='-shared' ;;
17066 esac
17067 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 17068
17069 if test $supports_anon_versioning = yes; then
17070 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17071 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17072 $echo "local: *; };" >> $output_objdir/$libname.ver~
ac40fd9e 17073 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
d9898ee8 17074 fi
17075 else
17076 ld_shlibs_GCJ=no
17077 fi
17078 ;;
17079
17080 netbsd*)
17081 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17082 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17083 wlarc=
17084 else
17085 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17086 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17087 fi
17088 ;;
17089
17090 solaris*)
17091 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17092 ld_shlibs_GCJ=no
17093 cat <<EOF 1>&2
17094
17095*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17096*** create shared libraries on Solaris systems. Therefore, libtool
17097*** is disabling shared libraries support. We urge you to upgrade GNU
17098*** binutils to release 2.9.1 or newer. Another option is to modify
17099*** your PATH or compiler configuration so that the native linker is
17100*** used, and then restart.
17101
17102EOF
17103 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17104 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17105 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17106 else
17107 ld_shlibs_GCJ=no
17108 fi
17109 ;;
17110
17111 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17112 case `$LD -v 2>&1` in
17113 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17114 ld_shlibs_GCJ=no
17115 cat <<_LT_EOF 1>&2
17116
17117*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17118*** reliably create shared libraries on SCO systems. Therefore, libtool
17119*** is disabling shared libraries support. We urge you to upgrade GNU
17120*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17121*** your PATH or compiler configuration so that the native linker is
17122*** used, and then restart.
17123
17124_LT_EOF
17125 ;;
17126 *)
17127 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17128 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17129 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17130 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17131 else
17132 ld_shlibs_GCJ=no
17133 fi
17134 ;;
17135 esac
17136 ;;
17137
17138 sunos4*)
17139 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17140 wlarc=
17141 hardcode_direct_GCJ=yes
17142 hardcode_shlibpath_var_GCJ=no
17143 ;;
17144
17145 *)
17146 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17147 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17148 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17149 else
17150 ld_shlibs_GCJ=no
17151 fi
17152 ;;
17153 esac
17154
17155 if test "$ld_shlibs_GCJ" = no; then
17156 runpath_var=
17157 hardcode_libdir_flag_spec_GCJ=
17158 export_dynamic_flag_spec_GCJ=
17159 whole_archive_flag_spec_GCJ=
17160 fi
17161 else
17162 # PORTME fill in a description of your system's linker (not GNU ld)
17163 case $host_os in
17164 aix3*)
17165 allow_undefined_flag_GCJ=unsupported
17166 always_export_symbols_GCJ=yes
17167 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'
17168 # Note: this linker hardcodes the directories in LIBPATH if there
17169 # are no directories specified by -L.
17170 hardcode_minus_L_GCJ=yes
17171 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17172 # Neither direct hardcoding nor static linking is supported with a
17173 # broken collect2.
17174 hardcode_direct_GCJ=unsupported
17175 fi
17176 ;;
17177
17178 aix4* | aix5*)
17179 if test "$host_cpu" = ia64; then
17180 # On IA64, the linker does run time linking by default, so we don't
17181 # have to do anything special.
17182 aix_use_runtimelinking=no
17183 exp_sym_flag='-Bexport'
17184 no_entry_flag=""
17185 else
17186 # If we're using GNU nm, then we don't want the "-C" option.
17187 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17188 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17189 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'
17190 else
17191 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'
17192 fi
17193 aix_use_runtimelinking=no
17194
17195 # Test if we are trying to use run time linking or normal
17196 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17197 # need to do runtime linking.
17198 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17199 for ld_flag in $LDFLAGS; do
17200 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17201 aix_use_runtimelinking=yes
17202 break
17203 fi
17204 done
17205 ;;
17206 esac
17207
17208 exp_sym_flag='-bexport'
17209 no_entry_flag='-bnoentry'
17210 fi
17211
17212 # When large executables or shared objects are built, AIX ld can
17213 # have problems creating the table of contents. If linking a library
17214 # or program results in "error TOC overflow" add -mminimal-toc to
17215 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17216 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17217
17218 archive_cmds_GCJ=''
17219 hardcode_direct_GCJ=yes
17220 hardcode_libdir_separator_GCJ=':'
17221 link_all_deplibs_GCJ=yes
17222
17223 if test "$GCC" = yes; then
17224 case $host_os in aix4.[012]|aix4.[012].*)
17225 # We only want to do this on AIX 4.2 and lower, the check
17226 # below for broken collect2 doesn't work under 4.3+
17227 collect2name=`${CC} -print-prog-name=collect2`
17228 if test -f "$collect2name" && \
17229 strings "$collect2name" | grep resolve_lib_name >/dev/null
17230 then
17231 # We have reworked collect2
ac40fd9e 17232 :
d9898ee8 17233 else
17234 # We have old collect2
17235 hardcode_direct_GCJ=unsupported
17236 # It fails to find uninstalled libraries when the uninstalled
17237 # path is not listed in the libpath. Setting hardcode_minus_L
17238 # to unsupported forces relinking
17239 hardcode_minus_L_GCJ=yes
17240 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17241 hardcode_libdir_separator_GCJ=
17242 fi
17243 ;;
17244 esac
17245 shared_flag='-shared'
17246 if test "$aix_use_runtimelinking" = yes; then
17247 shared_flag="$shared_flag "'${wl}-G'
17248 fi
17249 else
17250 # not using gcc
17251 if test "$host_cpu" = ia64; then
17252 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17253 # chokes on -Wl,-G. The following line is correct:
17254 shared_flag='-G'
17255 else
17256 if test "$aix_use_runtimelinking" = yes; then
17257 shared_flag='${wl}-G'
17258 else
17259 shared_flag='${wl}-bM:SRE'
17260 fi
17261 fi
17262 fi
17263
17264 # It seems that -bexpall does not export symbols beginning with
17265 # underscore (_), so it is better to generate a list of symbols to export.
17266 always_export_symbols_GCJ=yes
17267 if test "$aix_use_runtimelinking" = yes; then
17268 # Warning - without using the other runtime loading flags (-brtl),
17269 # -berok will link without error, but may produce a broken library.
17270 allow_undefined_flag_GCJ='-berok'
17271 # Determine the default libpath from the value encoded in an empty executable.
17272 cat >conftest.$ac_ext <<_ACEOF
17273/* confdefs.h. */
17274_ACEOF
17275cat confdefs.h >>conftest.$ac_ext
17276cat >>conftest.$ac_ext <<_ACEOF
17277/* end confdefs.h. */
17278
17279int
17280main ()
17281{
17282
17283 ;
17284 return 0;
17285}
17286_ACEOF
17287rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 17288if { (ac_try="$ac_link"
17289case "(($ac_try" in
17290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17291 *) ac_try_echo=$ac_try;;
17292esac
17293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17294 (eval "$ac_link") 2>conftest.er1
d9898ee8 17295 ac_status=$?
17296 grep -v '^ *+' conftest.er1 >conftest.err
17297 rm -f conftest.er1
17298 cat conftest.err >&5
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 17300 (exit $ac_status); } && {
17301 test -z "$ac_c_werror_flag" ||
17302 test ! -s conftest.err
17303 } && test -s conftest$ac_exeext &&
17304 $as_test_x conftest$ac_exeext; then
d9898ee8 17305
ac40fd9e 17306lt_aix_libpath_sed='
17307 /Import File Strings/,/^$/ {
17308 /^0/ {
17309 s/^0 *\(.*\)$/\1/
17310 p
17311 }
17312 }'
17313aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 17314# Check for a 64-bit object if we didn't find anything.
ac40fd9e 17315if test -z "$aix_libpath"; then
17316 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17317fi
d9898ee8 17318else
17319 echo "$as_me: failed program was:" >&5
17320sed 's/^/| /' conftest.$ac_ext >&5
17321
dd184caf 17322
d9898ee8 17323fi
dd184caf 17324
17325rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17326 conftest$ac_exeext conftest.$ac_ext
17327if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17328
17329 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17330 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"
17331 else
17332 if test "$host_cpu" = ia64; then
17333 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17334 allow_undefined_flag_GCJ="-z nodefs"
17335 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"
17336 else
17337 # Determine the default libpath from the value encoded in an empty executable.
17338 cat >conftest.$ac_ext <<_ACEOF
17339/* confdefs.h. */
17340_ACEOF
17341cat confdefs.h >>conftest.$ac_ext
17342cat >>conftest.$ac_ext <<_ACEOF
17343/* end confdefs.h. */
17344
17345int
17346main ()
17347{
17348
17349 ;
17350 return 0;
17351}
17352_ACEOF
17353rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 17354if { (ac_try="$ac_link"
17355case "(($ac_try" in
17356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17357 *) ac_try_echo=$ac_try;;
17358esac
17359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17360 (eval "$ac_link") 2>conftest.er1
d9898ee8 17361 ac_status=$?
17362 grep -v '^ *+' conftest.er1 >conftest.err
17363 rm -f conftest.er1
17364 cat conftest.err >&5
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 17366 (exit $ac_status); } && {
17367 test -z "$ac_c_werror_flag" ||
17368 test ! -s conftest.err
17369 } && test -s conftest$ac_exeext &&
17370 $as_test_x conftest$ac_exeext; then
d9898ee8 17371
ac40fd9e 17372lt_aix_libpath_sed='
17373 /Import File Strings/,/^$/ {
17374 /^0/ {
17375 s/^0 *\(.*\)$/\1/
17376 p
17377 }
17378 }'
17379aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 17380# Check for a 64-bit object if we didn't find anything.
ac40fd9e 17381if test -z "$aix_libpath"; then
17382 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17383fi
d9898ee8 17384else
17385 echo "$as_me: failed program was:" >&5
17386sed 's/^/| /' conftest.$ac_ext >&5
17387
dd184caf 17388
d9898ee8 17389fi
dd184caf 17390
17391rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17392 conftest$ac_exeext conftest.$ac_ext
17393if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17394
17395 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17396 # Warning - without using the other run time loading flags,
17397 # -berok will link without error, but may produce a broken library.
17398 no_undefined_flag_GCJ=' ${wl}-bernotok'
17399 allow_undefined_flag_GCJ=' ${wl}-berok'
17400 # Exported symbols can be pulled into shared objects from archives
17401 whole_archive_flag_spec_GCJ='$convenience'
17402 archive_cmds_need_lc_GCJ=yes
17403 # This is similar to how AIX traditionally builds its shared libraries.
17404 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'
17405 fi
17406 fi
17407 ;;
17408
17409 amigaos*)
17410 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)'
17411 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17412 hardcode_minus_L_GCJ=yes
17413 # see comment about different semantics on the GNU ld section
17414 ld_shlibs_GCJ=no
17415 ;;
17416
17417 bsdi[45]*)
17418 export_dynamic_flag_spec_GCJ=-rdynamic
17419 ;;
17420
17421 cygwin* | mingw* | pw32*)
17422 # When not using gcc, we currently assume that we are using
17423 # Microsoft Visual C++.
17424 # hardcode_libdir_flag_spec is actually meaningless, as there is
17425 # no search path for DLLs.
17426 hardcode_libdir_flag_spec_GCJ=' '
17427 allow_undefined_flag_GCJ=unsupported
17428 # Tell ltmain to make .lib files, not .a files.
17429 libext=lib
17430 # Tell ltmain to make .dll files, not .so files.
17431 shrext_cmds=".dll"
17432 # FIXME: Setting linknames here is a bad hack.
17433 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17434 # The linker will automatically build a .lib file if we build a DLL.
17435 old_archive_From_new_cmds_GCJ='true'
17436 # FIXME: Should let the user specify the lib program.
ac40fd9e 17437 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
d9898ee8 17438 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17439 enable_shared_with_static_runtimes_GCJ=yes
17440 ;;
17441
17442 darwin* | rhapsody*)
17443 case $host_os in
17444 rhapsody* | darwin1.[012])
17445 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17446 ;;
17447 *) # Darwin 1.3 on
17448 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17449 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17450 else
17451 case ${MACOSX_DEPLOYMENT_TARGET} in
17452 10.[012])
17453 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17454 ;;
17455 10.*)
17456 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17457 ;;
17458 esac
17459 fi
17460 ;;
17461 esac
17462 archive_cmds_need_lc_GCJ=no
17463 hardcode_direct_GCJ=no
17464 hardcode_automatic_GCJ=yes
17465 hardcode_shlibpath_var_GCJ=unsupported
17466 whole_archive_flag_spec_GCJ=''
17467 link_all_deplibs_GCJ=yes
17468 if test "$GCC" = yes ; then
17469 output_verbose_link_cmd='echo'
17470 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17471 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17472 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17473 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}'
17474 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}'
17475 else
17476 case $cc_basename in
17477 xlc*)
17478 output_verbose_link_cmd='echo'
ac40fd9e 17479 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
d9898ee8 17480 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17481 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
ac40fd9e 17482 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
d9898ee8 17483 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}'
17484 ;;
17485 *)
17486 ld_shlibs_GCJ=no
17487 ;;
17488 esac
17489 fi
17490 ;;
17491
17492 dgux*)
17493 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17494 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17495 hardcode_shlibpath_var_GCJ=no
17496 ;;
17497
17498 freebsd1*)
17499 ld_shlibs_GCJ=no
17500 ;;
17501
17502 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17503 # support. Future versions do this automatically, but an explicit c++rt0.o
17504 # does not break anything, and helps significantly (at the cost of a little
17505 # extra space).
17506 freebsd2.2*)
17507 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17508 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17509 hardcode_direct_GCJ=yes
17510 hardcode_shlibpath_var_GCJ=no
17511 ;;
17512
17513 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17514 freebsd2*)
17515 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17516 hardcode_direct_GCJ=yes
17517 hardcode_minus_L_GCJ=yes
17518 hardcode_shlibpath_var_GCJ=no
17519 ;;
17520
17521 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
ac40fd9e 17522 freebsd* | dragonfly*)
d9898ee8 17523 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17524 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17525 hardcode_direct_GCJ=yes
17526 hardcode_shlibpath_var_GCJ=no
17527 ;;
17528
17529 hpux9*)
17530 if test "$GCC" = yes; then
17531 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'
17532 else
17533 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'
17534 fi
17535 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17536 hardcode_libdir_separator_GCJ=:
17537 hardcode_direct_GCJ=yes
17538
17539 # hardcode_minus_L: Not really in the search PATH,
17540 # but as the default location of the library.
17541 hardcode_minus_L_GCJ=yes
17542 export_dynamic_flag_spec_GCJ='${wl}-E'
17543 ;;
17544
17545 hpux10*)
17546 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17547 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17548 else
17549 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17550 fi
17551 if test "$with_gnu_ld" = no; then
17552 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17553 hardcode_libdir_separator_GCJ=:
17554
17555 hardcode_direct_GCJ=yes
17556 export_dynamic_flag_spec_GCJ='${wl}-E'
17557
17558 # hardcode_minus_L: Not really in the search PATH,
17559 # but as the default location of the library.
17560 hardcode_minus_L_GCJ=yes
17561 fi
17562 ;;
17563
17564 hpux11*)
17565 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17566 case $host_cpu in
17567 hppa*64*)
17568 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17569 ;;
17570 ia64*)
17571 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17572 ;;
17573 *)
17574 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17575 ;;
17576 esac
17577 else
17578 case $host_cpu in
17579 hppa*64*)
17580 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17581 ;;
17582 ia64*)
17583 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17584 ;;
17585 *)
17586 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17587 ;;
17588 esac
17589 fi
17590 if test "$with_gnu_ld" = no; then
17591 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17592 hardcode_libdir_separator_GCJ=:
17593
17594 case $host_cpu in
17595 hppa*64*|ia64*)
17596 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17597 hardcode_direct_GCJ=no
17598 hardcode_shlibpath_var_GCJ=no
17599 ;;
17600 *)
17601 hardcode_direct_GCJ=yes
17602 export_dynamic_flag_spec_GCJ='${wl}-E'
17603
17604 # hardcode_minus_L: Not really in the search PATH,
17605 # but as the default location of the library.
17606 hardcode_minus_L_GCJ=yes
17607 ;;
17608 esac
17609 fi
17610 ;;
17611
17612 irix5* | irix6* | nonstopux*)
17613 if test "$GCC" = yes; then
17614 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'
17615 else
17616 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'
17617 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17618 fi
17619 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17620 hardcode_libdir_separator_GCJ=:
17621 link_all_deplibs_GCJ=yes
17622 ;;
17623
17624 netbsd*)
17625 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17626 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17627 else
17628 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17629 fi
17630 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17631 hardcode_direct_GCJ=yes
17632 hardcode_shlibpath_var_GCJ=no
17633 ;;
17634
17635 newsos6)
17636 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17637 hardcode_direct_GCJ=yes
17638 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17639 hardcode_libdir_separator_GCJ=:
17640 hardcode_shlibpath_var_GCJ=no
17641 ;;
17642
17643 openbsd*)
ac40fd9e 17644 if test -f /usr/libexec/ld.so; then
17645 hardcode_direct_GCJ=yes
17646 hardcode_shlibpath_var_GCJ=no
17647 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17648 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17649 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17650 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17651 export_dynamic_flag_spec_GCJ='${wl}-E'
17652 else
17653 case $host_os in
17654 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17655 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17656 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17657 ;;
17658 *)
17659 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17660 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17661 ;;
17662 esac
17663 fi
d9898ee8 17664 else
ac40fd9e 17665 ld_shlibs_GCJ=no
d9898ee8 17666 fi
17667 ;;
17668
17669 os2*)
17670 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17671 hardcode_minus_L_GCJ=yes
17672 allow_undefined_flag_GCJ=unsupported
17673 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'
17674 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17675 ;;
17676
17677 osf3*)
17678 if test "$GCC" = yes; then
17679 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17680 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'
17681 else
17682 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17683 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'
17684 fi
17685 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17686 hardcode_libdir_separator_GCJ=:
17687 ;;
17688
17689 osf4* | osf5*) # as osf3* with the addition of -msym flag
17690 if test "$GCC" = yes; then
17691 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17692 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'
17693 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17694 else
17695 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17696 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'
17697 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~
17698 $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'
17699
17700 # Both c and cxx compiler support -rpath directly
17701 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17702 fi
17703 hardcode_libdir_separator_GCJ=:
17704 ;;
17705
17706 solaris*)
17707 no_undefined_flag_GCJ=' -z text'
17708 if test "$GCC" = yes; then
17709 wlarc='${wl}'
17710 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17711 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17712 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17713 else
17714 wlarc=''
17715 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17716 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17717 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17718 fi
17719 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17720 hardcode_shlibpath_var_GCJ=no
17721 case $host_os in
17722 solaris2.[0-5] | solaris2.[0-5].*) ;;
17723 *)
ac40fd9e 17724 # The compiler driver will combine and reorder linker options,
17725 # but understands `-z linker_flag'. GCC discards it without `$wl',
17726 # but is careful enough not to reorder.
d9898ee8 17727 # Supported since Solaris 2.6 (maybe 2.5.1?)
ac40fd9e 17728 if test "$GCC" = yes; then
17729 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17730 else
17731 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17732 fi
17733 ;;
d9898ee8 17734 esac
17735 link_all_deplibs_GCJ=yes
17736 ;;
17737
17738 sunos4*)
17739 if test "x$host_vendor" = xsequent; then
17740 # Use $CC to link under sequent, because it throws in some extra .o
17741 # files that make .init and .fini sections work.
17742 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17743 else
17744 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17745 fi
17746 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17747 hardcode_direct_GCJ=yes
17748 hardcode_minus_L_GCJ=yes
17749 hardcode_shlibpath_var_GCJ=no
17750 ;;
17751
17752 sysv4)
17753 case $host_vendor in
17754 sni)
17755 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17756 hardcode_direct_GCJ=yes # is this really true???
17757 ;;
17758 siemens)
17759 ## LD is ld it makes a PLAMLIB
17760 ## CC just makes a GrossModule.
17761 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17762 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17763 hardcode_direct_GCJ=no
17764 ;;
17765 motorola)
17766 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17767 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17768 ;;
17769 esac
17770 runpath_var='LD_RUN_PATH'
17771 hardcode_shlibpath_var_GCJ=no
17772 ;;
17773
17774 sysv4.3*)
17775 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17776 hardcode_shlibpath_var_GCJ=no
17777 export_dynamic_flag_spec_GCJ='-Bexport'
17778 ;;
17779
17780 sysv4*MP*)
17781 if test -d /usr/nec; then
17782 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17783 hardcode_shlibpath_var_GCJ=no
17784 runpath_var=LD_RUN_PATH
17785 hardcode_runpath_var=yes
17786 ld_shlibs_GCJ=yes
17787 fi
17788 ;;
17789
ac40fd9e 17790 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
d9898ee8 17791 no_undefined_flag_GCJ='${wl}-z,text'
17792 archive_cmds_need_lc_GCJ=no
17793 hardcode_shlibpath_var_GCJ=no
17794 runpath_var='LD_RUN_PATH'
17795
17796 if test "$GCC" = yes; then
17797 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17798 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17799 else
17800 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17801 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17802 fi
17803 ;;
17804
17805 sysv5* | sco3.2v5* | sco5v6*)
17806 # Note: We can NOT use -z defs as we might desire, because we do not
17807 # link with -lc, and that would cause any symbols used from libc to
17808 # always be unresolved, which means just about no library would
17809 # ever link correctly. If we're not using GNU ld we use -z text
17810 # though, which does catch some bad symbols but isn't as heavy-handed
17811 # as -z defs.
17812 no_undefined_flag_GCJ='${wl}-z,text'
17813 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17814 archive_cmds_need_lc_GCJ=no
17815 hardcode_shlibpath_var_GCJ=no
17816 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17817 hardcode_libdir_separator_GCJ=':'
17818 link_all_deplibs_GCJ=yes
17819 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17820 runpath_var='LD_RUN_PATH'
17821
17822 if test "$GCC" = yes; then
17823 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17824 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17825 else
17826 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17827 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17828 fi
17829 ;;
17830
17831 uts4*)
17832 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17833 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17834 hardcode_shlibpath_var_GCJ=no
17835 ;;
17836
17837 *)
17838 ld_shlibs_GCJ=no
17839 ;;
17840 esac
17841 fi
17842
dd184caf 17843{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17844echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
d9898ee8 17845test "$ld_shlibs_GCJ" = no && can_build_shared=no
17846
17847#
17848# Do we need to explicitly link libc?
17849#
17850case "x$archive_cmds_need_lc_GCJ" in
17851x|xyes)
17852 # Assume -lc should be added
17853 archive_cmds_need_lc_GCJ=yes
17854
17855 if test "$enable_shared" = yes && test "$GCC" = yes; then
17856 case $archive_cmds_GCJ in
17857 *'~'*)
17858 # FIXME: we may have to deal with multi-command sequences.
17859 ;;
17860 '$CC '*)
17861 # Test whether the compiler implicitly links with -lc since on some
17862 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17863 # to ld, don't add -lc before -lgcc.
dd184caf 17864 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17865echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 17866 $rm conftest*
ac40fd9e 17867 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 17868
17869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17870 (eval $ac_compile) 2>&5
17871 ac_status=$?
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); } 2>conftest.err; then
17874 soname=conftest
17875 lib=conftest
17876 libobjs=conftest.$ac_objext
17877 deplibs=
17878 wl=$lt_prog_compiler_wl_GCJ
17879 pic_flag=$lt_prog_compiler_pic_GCJ
17880 compiler_flags=-v
17881 linker_flags=-v
17882 verstring=
17883 output_objdir=.
17884 libname=conftest
17885 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17886 allow_undefined_flag_GCJ=
17887 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17888 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17889 ac_status=$?
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }
17892 then
17893 archive_cmds_need_lc_GCJ=no
17894 else
17895 archive_cmds_need_lc_GCJ=yes
17896 fi
17897 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17898 else
17899 cat conftest.err 1>&5
17900 fi
17901 $rm conftest*
dd184caf 17902 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17903echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
d9898ee8 17904 ;;
17905 esac
17906 fi
17907 ;;
17908esac
17909
dd184caf 17910{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17911echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 17912library_names_spec=
17913libname_spec='lib$name'
17914soname_spec=
17915shrext_cmds=".so"
17916postinstall_cmds=
17917postuninstall_cmds=
17918finish_cmds=
17919finish_eval=
17920shlibpath_var=
17921shlibpath_overrides_runpath=unknown
17922version_type=none
17923dynamic_linker="$host_os ld.so"
17924sys_lib_dlsearch_path_spec="/lib /usr/lib"
ac40fd9e 17925
d9898ee8 17926need_lib_prefix=unknown
17927hardcode_into_libs=no
17928
17929# when you set need_version to no, make sure it does not cause -set_version
17930# flags to be left without arguments
17931need_version=unknown
17932
17933case $host_os in
17934aix3*)
17935 version_type=linux
17936 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17937 shlibpath_var=LIBPATH
17938
17939 # AIX 3 has no versioning support, so we append a major version to the name.
17940 soname_spec='${libname}${release}${shared_ext}$major'
17941 ;;
17942
17943aix4* | aix5*)
17944 version_type=linux
17945 need_lib_prefix=no
17946 need_version=no
17947 hardcode_into_libs=yes
17948 if test "$host_cpu" = ia64; then
17949 # AIX 5 supports IA64
17950 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17951 shlibpath_var=LD_LIBRARY_PATH
17952 else
17953 # With GCC up to 2.95.x, collect2 would create an import file
17954 # for dependence libraries. The import file would start with
17955 # the line `#! .'. This would cause the generated library to
17956 # depend on `.', always an invalid library. This was fixed in
17957 # development snapshots of GCC prior to 3.0.
17958 case $host_os in
17959 aix4 | aix4.[01] | aix4.[01].*)
17960 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17961 echo ' yes '
17962 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17963 :
17964 else
17965 can_build_shared=no
17966 fi
17967 ;;
17968 esac
17969 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17970 # soname into executable. Probably we can add versioning support to
17971 # collect2, so additional links can be useful in future.
17972 if test "$aix_use_runtimelinking" = yes; then
17973 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17974 # instead of lib<name>.a to let people know that these are not
17975 # typical AIX shared libraries.
17976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17977 else
17978 # We preserve .a as extension for shared libraries through AIX4.2
17979 # and later when we are not doing run time linking.
17980 library_names_spec='${libname}${release}.a $libname.a'
17981 soname_spec='${libname}${release}${shared_ext}$major'
17982 fi
17983 shlibpath_var=LIBPATH
17984 fi
17985 ;;
17986
17987amigaos*)
17988 library_names_spec='$libname.ixlibrary $libname.a'
17989 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17990 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'
17991 ;;
17992
17993beos*)
17994 library_names_spec='${libname}${shared_ext}'
17995 dynamic_linker="$host_os ld.so"
17996 shlibpath_var=LIBRARY_PATH
17997 ;;
17998
17999bsdi[45]*)
18000 version_type=linux
18001 need_version=no
18002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18003 soname_spec='${libname}${release}${shared_ext}$major'
18004 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18005 shlibpath_var=LD_LIBRARY_PATH
18006 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18007 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18008 # the default ld.so.conf also contains /usr/contrib/lib and
18009 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18010 # libtool to hard-code these into programs
18011 ;;
18012
18013cygwin* | mingw* | pw32*)
18014 version_type=windows
18015 shrext_cmds=".dll"
18016 need_version=no
18017 need_lib_prefix=no
18018
18019 case $GCC,$host_os in
18020 yes,cygwin* | yes,mingw* | yes,pw32*)
18021 library_names_spec='$libname.dll.a'
18022 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18023 postinstall_cmds='base_file=`basename \${file}`~
18024 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18025 dldir=$destdir/`dirname \$dlpath`~
18026 test -d \$dldir || mkdir -p \$dldir~
18027 $install_prog $dir/$dlname \$dldir/$dlname~
18028 chmod a+x \$dldir/$dlname'
18029 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18030 dlpath=$dir/\$dldll~
18031 $rm \$dlpath'
18032 shlibpath_overrides_runpath=yes
18033
18034 case $host_os in
18035 cygwin*)
18036 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18037 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18038 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18039 ;;
18040 mingw*)
18041 # MinGW DLLs use traditional 'lib' prefix
18042 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18043 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18044 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18045 # It is most probably a Windows format PATH printed by
18046 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18047 # path with ; separators, and with drive letters. We can handle the
18048 # drive letters (cygwin fileutils understands them), so leave them,
18049 # especially as we might pass files found there to a mingw objdump,
18050 # which wouldn't understand a cygwinified path. Ahh.
18051 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18052 else
18053 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18054 fi
18055 ;;
18056 pw32*)
18057 # pw32 DLLs use 'pw' prefix rather than 'lib'
18058 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18059 ;;
18060 esac
18061 ;;
18062
18063 *)
18064 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18065 ;;
18066 esac
18067 dynamic_linker='Win32 ld.exe'
18068 # FIXME: first we should search . and the directory the executable is in
18069 shlibpath_var=PATH
18070 ;;
18071
18072darwin* | rhapsody*)
18073 dynamic_linker="$host_os dyld"
18074 version_type=darwin
18075 need_lib_prefix=no
18076 need_version=no
18077 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18078 soname_spec='${libname}${release}${major}$shared_ext'
18079 shlibpath_overrides_runpath=yes
18080 shlibpath_var=DYLD_LIBRARY_PATH
18081 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ac40fd9e 18082
d9898ee8 18083 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18084 ;;
18085
18086dgux*)
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 shlibpath_var=LD_LIBRARY_PATH
18093 ;;
18094
18095freebsd1*)
18096 dynamic_linker=no
18097 ;;
18098
d9898ee8 18099freebsd* | dragonfly*)
18100 # DragonFly does not have aout. When/if they implement a new
18101 # versioning mechanism, adjust this.
18102 if test -x /usr/bin/objformat; then
18103 objformat=`/usr/bin/objformat`
18104 else
18105 case $host_os in
18106 freebsd[123]*) objformat=aout ;;
18107 *) objformat=elf ;;
18108 esac
18109 fi
18110 version_type=freebsd-$objformat
18111 case $version_type in
18112 freebsd-elf*)
18113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18114 need_version=no
18115 need_lib_prefix=no
18116 ;;
18117 freebsd-*)
18118 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18119 need_version=yes
18120 ;;
18121 esac
18122 shlibpath_var=LD_LIBRARY_PATH
18123 case $host_os in
18124 freebsd2*)
18125 shlibpath_overrides_runpath=yes
18126 ;;
18127 freebsd3.[01]* | freebsdelf3.[01]*)
18128 shlibpath_overrides_runpath=yes
18129 hardcode_into_libs=yes
18130 ;;
18131 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18132 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18133 shlibpath_overrides_runpath=no
18134 hardcode_into_libs=yes
18135 ;;
ac40fd9e 18136 *) # from 4.6 on, and DragonFly
d9898ee8 18137 shlibpath_overrides_runpath=yes
18138 hardcode_into_libs=yes
18139 ;;
18140 esac
18141 ;;
18142
18143gnu*)
18144 version_type=linux
18145 need_lib_prefix=no
18146 need_version=no
18147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18148 soname_spec='${libname}${release}${shared_ext}$major'
18149 shlibpath_var=LD_LIBRARY_PATH
18150 hardcode_into_libs=yes
18151 ;;
18152
18153hpux9* | hpux10* | hpux11*)
18154 # Give a soname corresponding to the major version so that dld.sl refuses to
18155 # link against other versions.
18156 version_type=sunos
18157 need_lib_prefix=no
18158 need_version=no
18159 case $host_cpu in
18160 ia64*)
18161 shrext_cmds='.so'
18162 hardcode_into_libs=yes
18163 dynamic_linker="$host_os dld.so"
18164 shlibpath_var=LD_LIBRARY_PATH
18165 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18167 soname_spec='${libname}${release}${shared_ext}$major'
18168 if test "X$HPUX_IA64_MODE" = X32; then
18169 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18170 else
18171 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18172 fi
18173 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18174 ;;
18175 hppa*64*)
18176 shrext_cmds='.sl'
18177 hardcode_into_libs=yes
18178 dynamic_linker="$host_os dld.sl"
18179 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18180 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18182 soname_spec='${libname}${release}${shared_ext}$major'
18183 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18184 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18185 ;;
18186 *)
18187 shrext_cmds='.sl'
18188 dynamic_linker="$host_os dld.sl"
18189 shlibpath_var=SHLIB_PATH
18190 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18192 soname_spec='${libname}${release}${shared_ext}$major'
18193 ;;
18194 esac
18195 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18196 postinstall_cmds='chmod 555 $lib'
18197 ;;
18198
ac40fd9e 18199interix[3-9]*)
d9898ee8 18200 version_type=linux
18201 need_lib_prefix=no
18202 need_version=no
18203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18204 soname_spec='${libname}${release}${shared_ext}$major'
18205 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18206 shlibpath_var=LD_LIBRARY_PATH
18207 shlibpath_overrides_runpath=no
18208 hardcode_into_libs=yes
18209 ;;
18210
18211irix5* | irix6* | nonstopux*)
18212 case $host_os in
18213 nonstopux*) version_type=nonstopux ;;
18214 *)
18215 if test "$lt_cv_prog_gnu_ld" = yes; then
18216 version_type=linux
18217 else
18218 version_type=irix
18219 fi ;;
18220 esac
18221 need_lib_prefix=no
18222 need_version=no
18223 soname_spec='${libname}${release}${shared_ext}$major'
18224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18225 case $host_os in
18226 irix5* | nonstopux*)
18227 libsuff= shlibsuff=
18228 ;;
18229 *)
18230 case $LD in # libtool.m4 will add one of these switches to LD
18231 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18232 libsuff= shlibsuff= libmagic=32-bit;;
18233 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18234 libsuff=32 shlibsuff=N32 libmagic=N32;;
18235 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18236 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18237 *) libsuff= shlibsuff= libmagic=never-match;;
18238 esac
18239 ;;
18240 esac
18241 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18242 shlibpath_overrides_runpath=no
18243 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18244 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18245 hardcode_into_libs=yes
18246 ;;
18247
18248# No shared lib support for Linux oldld, aout, or coff.
18249linux*oldld* | linux*aout* | linux*coff*)
18250 dynamic_linker=no
18251 ;;
18252
18253# This must be Linux ELF.
ac40fd9e 18254linux* | k*bsd*-gnu)
d9898ee8 18255 version_type=linux
18256 need_lib_prefix=no
18257 need_version=no
18258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18259 soname_spec='${libname}${release}${shared_ext}$major'
18260 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18261 shlibpath_var=LD_LIBRARY_PATH
18262 shlibpath_overrides_runpath=no
18263 # This implies no fast_install, which is unacceptable.
18264 # Some rework will be needed to allow for fast_install
18265 # before this can be enabled.
18266 hardcode_into_libs=yes
ac40fd9e 18267 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18268 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
d9898ee8 18269
18270 # Append ld.so.conf contents to the search path
18271 if test -f /etc/ld.so.conf; then
ac40fd9e 18272 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18273 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 18274 fi
18275
18276 # We used to test for /lib/ld.so.1 and disable shared libraries on
18277 # powerpc, because MkLinux only supported shared libraries with the
18278 # GNU dynamic linker. Since this was broken with cross compilers,
18279 # most powerpc-linux boxes support dynamic linking these days and
18280 # people can always --disable-shared, the test was removed, and we
18281 # assume the GNU/Linux dynamic linker is in use.
18282 dynamic_linker='GNU/Linux ld.so'
18283 ;;
18284
d9898ee8 18285netbsd*)
18286 version_type=sunos
18287 need_lib_prefix=no
18288 need_version=no
18289 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18291 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18292 dynamic_linker='NetBSD (a.out) ld.so'
18293 else
18294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18295 soname_spec='${libname}${release}${shared_ext}$major'
18296 dynamic_linker='NetBSD ld.elf_so'
18297 fi
18298 shlibpath_var=LD_LIBRARY_PATH
18299 shlibpath_overrides_runpath=yes
18300 hardcode_into_libs=yes
18301 ;;
18302
18303newsos6)
18304 version_type=linux
18305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18306 shlibpath_var=LD_LIBRARY_PATH
18307 shlibpath_overrides_runpath=yes
18308 ;;
18309
18310nto-qnx*)
18311 version_type=linux
18312 need_lib_prefix=no
18313 need_version=no
18314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18315 soname_spec='${libname}${release}${shared_ext}$major'
18316 shlibpath_var=LD_LIBRARY_PATH
18317 shlibpath_overrides_runpath=yes
18318 ;;
18319
18320openbsd*)
18321 version_type=sunos
18322 sys_lib_dlsearch_path_spec="/usr/lib"
18323 need_lib_prefix=no
18324 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18325 case $host_os in
18326 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18327 *) need_version=no ;;
18328 esac
18329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18330 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18331 shlibpath_var=LD_LIBRARY_PATH
18332 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18333 case $host_os in
18334 openbsd2.[89] | openbsd2.[89].*)
18335 shlibpath_overrides_runpath=no
18336 ;;
18337 *)
18338 shlibpath_overrides_runpath=yes
18339 ;;
18340 esac
18341 else
18342 shlibpath_overrides_runpath=yes
18343 fi
18344 ;;
18345
18346os2*)
18347 libname_spec='$name'
18348 shrext_cmds=".dll"
18349 need_lib_prefix=no
18350 library_names_spec='$libname${shared_ext} $libname.a'
18351 dynamic_linker='OS/2 ld.exe'
18352 shlibpath_var=LIBPATH
18353 ;;
18354
18355osf3* | osf4* | osf5*)
18356 version_type=osf
18357 need_lib_prefix=no
18358 need_version=no
18359 soname_spec='${libname}${release}${shared_ext}$major'
18360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18361 shlibpath_var=LD_LIBRARY_PATH
18362 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18363 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18364 ;;
18365
ac40fd9e 18366rdos*)
18367 dynamic_linker=no
18368 ;;
18369
d9898ee8 18370solaris*)
18371 version_type=linux
18372 need_lib_prefix=no
18373 need_version=no
18374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18375 soname_spec='${libname}${release}${shared_ext}$major'
18376 shlibpath_var=LD_LIBRARY_PATH
18377 shlibpath_overrides_runpath=yes
18378 hardcode_into_libs=yes
18379 # ldd complains unless libraries are executable
18380 postinstall_cmds='chmod +x $lib'
18381 ;;
18382
18383sunos4*)
18384 version_type=sunos
18385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18386 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18387 shlibpath_var=LD_LIBRARY_PATH
18388 shlibpath_overrides_runpath=yes
18389 if test "$with_gnu_ld" = yes; then
18390 need_lib_prefix=no
18391 fi
18392 need_version=yes
18393 ;;
18394
18395sysv4 | sysv4.3*)
18396 version_type=linux
18397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18398 soname_spec='${libname}${release}${shared_ext}$major'
18399 shlibpath_var=LD_LIBRARY_PATH
18400 case $host_vendor in
18401 sni)
18402 shlibpath_overrides_runpath=no
18403 need_lib_prefix=no
18404 export_dynamic_flag_spec='${wl}-Blargedynsym'
18405 runpath_var=LD_RUN_PATH
18406 ;;
18407 siemens)
18408 need_lib_prefix=no
18409 ;;
18410 motorola)
18411 need_lib_prefix=no
18412 need_version=no
18413 shlibpath_overrides_runpath=no
18414 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18415 ;;
18416 esac
18417 ;;
18418
18419sysv4*MP*)
18420 if test -d /usr/nec ;then
18421 version_type=linux
18422 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18423 soname_spec='$libname${shared_ext}.$major'
18424 shlibpath_var=LD_LIBRARY_PATH
18425 fi
18426 ;;
18427
18428sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18429 version_type=freebsd-elf
18430 need_lib_prefix=no
18431 need_version=no
18432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18433 soname_spec='${libname}${release}${shared_ext}$major'
18434 shlibpath_var=LD_LIBRARY_PATH
18435 hardcode_into_libs=yes
18436 if test "$with_gnu_ld" = yes; then
18437 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18438 shlibpath_overrides_runpath=no
18439 else
18440 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18441 shlibpath_overrides_runpath=yes
18442 case $host_os in
18443 sco3.2v5*)
18444 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18445 ;;
18446 esac
18447 fi
18448 sys_lib_dlsearch_path_spec='/usr/lib'
18449 ;;
18450
18451uts4*)
18452 version_type=linux
18453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18454 soname_spec='${libname}${release}${shared_ext}$major'
18455 shlibpath_var=LD_LIBRARY_PATH
18456 ;;
18457
18458*)
18459 dynamic_linker=no
18460 ;;
18461esac
dd184caf 18462{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18463echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 18464test "$dynamic_linker" = no && can_build_shared=no
18465
18466variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18467if test "$GCC" = yes; then
18468 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18469fi
18470
dd184caf 18471{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18472echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 18473hardcode_action_GCJ=
18474if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18475 test -n "$runpath_var_GCJ" || \
18476 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18477
18478 # We can hardcode non-existant directories.
18479 if test "$hardcode_direct_GCJ" != no &&
18480 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18481 # have to relink, otherwise we might link with an installed library
18482 # when we should be linking with a yet-to-be-installed one
18483 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18484 test "$hardcode_minus_L_GCJ" != no; then
18485 # Linking always hardcodes the temporary library directory.
18486 hardcode_action_GCJ=relink
18487 else
18488 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18489 hardcode_action_GCJ=immediate
18490 fi
18491else
18492 # We cannot hardcode anything, or else we can only hardcode existing
18493 # directories.
18494 hardcode_action_GCJ=unsupported
18495fi
dd184caf 18496{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18497echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
d9898ee8 18498
18499if test "$hardcode_action_GCJ" = relink; then
18500 # Fast installation is not supported
18501 enable_fast_install=no
18502elif test "$shlibpath_overrides_runpath" = yes ||
18503 test "$enable_shared" = no; then
18504 # Fast installation is not necessary
18505 enable_fast_install=needless
18506fi
18507
18508
18509# The else clause should only fire when bootstrapping the
18510# libtool distribution, otherwise you forgot to ship ltmain.sh
18511# with your package, and you will get complaints that there are
18512# no rules to generate ltmain.sh.
18513if test -f "$ltmain"; then
18514 # See if we are running on zsh, and set the options which allow our commands through
18515 # without removal of \ escapes.
18516 if test -n "${ZSH_VERSION+set}" ; then
18517 setopt NO_GLOB_SUBST
18518 fi
18519 # Now quote all the things that may contain metacharacters while being
18520 # careful not to overquote the AC_SUBSTed values. We take copies of the
18521 # variables and quote the copies for generation of the libtool script.
18522 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18523 SED SHELL STRIP \
18524 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18525 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18526 deplibs_check_method reload_flag reload_cmds need_locks \
18527 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18528 lt_cv_sys_global_symbol_to_c_name_address \
18529 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18530 old_postinstall_cmds old_postuninstall_cmds \
18531 compiler_GCJ \
18532 CC_GCJ \
18533 LD_GCJ \
18534 lt_prog_compiler_wl_GCJ \
18535 lt_prog_compiler_pic_GCJ \
18536 lt_prog_compiler_static_GCJ \
18537 lt_prog_compiler_no_builtin_flag_GCJ \
18538 export_dynamic_flag_spec_GCJ \
18539 thread_safe_flag_spec_GCJ \
18540 whole_archive_flag_spec_GCJ \
18541 enable_shared_with_static_runtimes_GCJ \
18542 old_archive_cmds_GCJ \
18543 old_archive_from_new_cmds_GCJ \
18544 predep_objects_GCJ \
18545 postdep_objects_GCJ \
18546 predeps_GCJ \
18547 postdeps_GCJ \
18548 compiler_lib_search_path_GCJ \
18549 archive_cmds_GCJ \
18550 archive_expsym_cmds_GCJ \
18551 postinstall_cmds_GCJ \
18552 postuninstall_cmds_GCJ \
18553 old_archive_from_expsyms_cmds_GCJ \
18554 allow_undefined_flag_GCJ \
18555 no_undefined_flag_GCJ \
18556 export_symbols_cmds_GCJ \
18557 hardcode_libdir_flag_spec_GCJ \
18558 hardcode_libdir_flag_spec_ld_GCJ \
18559 hardcode_libdir_separator_GCJ \
18560 hardcode_automatic_GCJ \
18561 module_cmds_GCJ \
18562 module_expsym_cmds_GCJ \
18563 lt_cv_prog_compiler_c_o_GCJ \
ac40fd9e 18564 fix_srcfile_path_GCJ \
d9898ee8 18565 exclude_expsyms_GCJ \
18566 include_expsyms_GCJ; do
18567
18568 case $var in
18569 old_archive_cmds_GCJ | \
18570 old_archive_from_new_cmds_GCJ | \
18571 archive_cmds_GCJ | \
18572 archive_expsym_cmds_GCJ | \
18573 module_cmds_GCJ | \
18574 module_expsym_cmds_GCJ | \
18575 old_archive_from_expsyms_cmds_GCJ | \
18576 export_symbols_cmds_GCJ | \
18577 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18578 postinstall_cmds | postuninstall_cmds | \
18579 old_postinstall_cmds | old_postuninstall_cmds | \
18580 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18581 # Double-quote double-evaled strings.
18582 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18583 ;;
18584 *)
18585 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18586 ;;
18587 esac
18588 done
18589
18590 case $lt_echo in
18591 *'\$0 --fallback-echo"')
18592 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18593 ;;
18594 esac
18595
18596cfgfile="$ofile"
18597
18598 cat <<__EOF__ >> "$cfgfile"
18599# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18600
18601# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18602
18603# Shell to use when invoking shell scripts.
18604SHELL=$lt_SHELL
18605
18606# Whether or not to build shared libraries.
18607build_libtool_libs=$enable_shared
18608
18609# Whether or not to build static libraries.
18610build_old_libs=$enable_static
18611
18612# Whether or not to add -lc for building shared libraries.
18613build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18614
18615# Whether or not to disallow shared libs when runtime libs are static
18616allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18617
18618# Whether or not to optimize for fast installation.
18619fast_install=$enable_fast_install
18620
18621# The host system.
18622host_alias=$host_alias
18623host=$host
18624host_os=$host_os
18625
18626# The build system.
18627build_alias=$build_alias
18628build=$build
18629build_os=$build_os
18630
18631# An echo program that does not interpret backslashes.
18632echo=$lt_echo
18633
18634# The archiver.
18635AR=$lt_AR
18636AR_FLAGS=$lt_AR_FLAGS
18637
18638# A C compiler.
18639LTCC=$lt_LTCC
18640
18641# LTCC compiler flags.
18642LTCFLAGS=$lt_LTCFLAGS
18643
18644# A language-specific compiler.
18645CC=$lt_compiler_GCJ
18646
18647# Is the compiler the GNU C compiler?
18648with_gcc=$GCC_GCJ
18649
d9898ee8 18650# An ERE matcher.
18651EGREP=$lt_EGREP
18652
18653# The linker used to build libraries.
18654LD=$lt_LD_GCJ
18655
18656# Whether we need hard or soft links.
18657LN_S=$lt_LN_S
18658
18659# A BSD-compatible nm program.
18660NM=$lt_NM
18661
18662# A symbol stripping program
18663STRIP=$lt_STRIP
18664
18665# Used to examine libraries when file_magic_cmd begins "file"
18666MAGIC_CMD=$MAGIC_CMD
18667
18668# Used on cygwin: DLL creation program.
18669DLLTOOL="$DLLTOOL"
18670
18671# Used on cygwin: object dumper.
18672OBJDUMP="$OBJDUMP"
18673
18674# Used on cygwin: assembler.
18675AS="$AS"
18676
18677# The name of the directory that contains temporary libtool files.
18678objdir=$objdir
18679
18680# How to create reloadable object files.
18681reload_flag=$lt_reload_flag
18682reload_cmds=$lt_reload_cmds
18683
18684# How to pass a linker flag through the compiler.
18685wl=$lt_lt_prog_compiler_wl_GCJ
18686
18687# Object file suffix (normally "o").
18688objext="$ac_objext"
18689
18690# Old archive suffix (normally "a").
18691libext="$libext"
18692
18693# Shared library suffix (normally ".so").
18694shrext_cmds='$shrext_cmds'
18695
18696# Executable file suffix (normally "").
18697exeext="$exeext"
18698
18699# Additional compiler flags for building library objects.
18700pic_flag=$lt_lt_prog_compiler_pic_GCJ
18701pic_mode=$pic_mode
18702
18703# What is the maximum length of a command?
18704max_cmd_len=$lt_cv_sys_max_cmd_len
18705
18706# Does compiler simultaneously support -c and -o options?
18707compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18708
18709# Must we lock files when doing compilation?
18710need_locks=$lt_need_locks
18711
18712# Do we need the lib prefix for modules?
18713need_lib_prefix=$need_lib_prefix
18714
18715# Do we need a version for libraries?
18716need_version=$need_version
18717
18718# Whether dlopen is supported.
18719dlopen_support=$enable_dlopen
18720
18721# Whether dlopen of programs is supported.
18722dlopen_self=$enable_dlopen_self
18723
18724# Whether dlopen of statically linked programs is supported.
18725dlopen_self_static=$enable_dlopen_self_static
18726
18727# Compiler flag to prevent dynamic linking.
18728link_static_flag=$lt_lt_prog_compiler_static_GCJ
18729
18730# Compiler flag to turn off builtin functions.
18731no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18732
18733# Compiler flag to allow reflexive dlopens.
18734export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18735
18736# Compiler flag to generate shared objects directly from archives.
18737whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18738
18739# Compiler flag to generate thread-safe objects.
18740thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18741
18742# Library versioning type.
18743version_type=$version_type
18744
18745# Format of library name prefix.
18746libname_spec=$lt_libname_spec
18747
18748# List of archive names. First name is the real one, the rest are links.
18749# The last name is the one that the linker finds with -lNAME.
18750library_names_spec=$lt_library_names_spec
18751
18752# The coded name of the library, if different from the real name.
18753soname_spec=$lt_soname_spec
18754
18755# Commands used to build and install an old-style archive.
18756RANLIB=$lt_RANLIB
18757old_archive_cmds=$lt_old_archive_cmds_GCJ
18758old_postinstall_cmds=$lt_old_postinstall_cmds
18759old_postuninstall_cmds=$lt_old_postuninstall_cmds
18760
18761# Create an old-style archive from a shared archive.
18762old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18763
18764# Create a temporary old-style archive to link instead of a shared archive.
18765old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18766
18767# Commands used to build and install a shared archive.
18768archive_cmds=$lt_archive_cmds_GCJ
18769archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18770postinstall_cmds=$lt_postinstall_cmds
18771postuninstall_cmds=$lt_postuninstall_cmds
18772
18773# Commands used to build a loadable module (assumed same as above if empty)
18774module_cmds=$lt_module_cmds_GCJ
18775module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18776
18777# Commands to strip libraries.
18778old_striplib=$lt_old_striplib
18779striplib=$lt_striplib
18780
18781# Dependencies to place before the objects being linked to create a
18782# shared library.
dd184caf 18783predep_objects=$lt_predep_objects_GCJ
d9898ee8 18784
18785# Dependencies to place after the objects being linked to create a
18786# shared library.
dd184caf 18787postdep_objects=$lt_postdep_objects_GCJ
d9898ee8 18788
18789# Dependencies to place before the objects being linked to create a
18790# shared library.
18791predeps=$lt_predeps_GCJ
18792
18793# Dependencies to place after the objects being linked to create a
18794# shared library.
18795postdeps=$lt_postdeps_GCJ
18796
18797# The library search path used internally by the compiler when linking
18798# a shared library.
dd184caf 18799compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
d9898ee8 18800
18801# Method to check whether dependent libraries are shared objects.
18802deplibs_check_method=$lt_deplibs_check_method
18803
18804# Command to use when deplibs_check_method == file_magic.
18805file_magic_cmd=$lt_file_magic_cmd
18806
18807# Flag that allows shared libraries with undefined symbols to be built.
18808allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18809
18810# Flag that forces no undefined symbols.
18811no_undefined_flag=$lt_no_undefined_flag_GCJ
18812
18813# Commands used to finish a libtool library installation in a directory.
18814finish_cmds=$lt_finish_cmds
18815
18816# Same as above, but a single script fragment to be evaled but not shown.
18817finish_eval=$lt_finish_eval
18818
18819# Take the output of nm and produce a listing of raw symbols and C names.
18820global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18821
18822# Transform the output of nm in a proper C declaration
18823global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18824
18825# Transform the output of nm in a C name address pair
18826global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18827
18828# This is the shared library runtime path variable.
18829runpath_var=$runpath_var
18830
18831# This is the shared library path variable.
18832shlibpath_var=$shlibpath_var
18833
18834# Is shlibpath searched before the hard-coded library search path?
18835shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18836
18837# How to hardcode a shared library path into an executable.
18838hardcode_action=$hardcode_action_GCJ
18839
18840# Whether we should hardcode library paths into libraries.
18841hardcode_into_libs=$hardcode_into_libs
18842
18843# Flag to hardcode \$libdir into a binary during linking.
18844# This must work even if \$libdir does not exist.
18845hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18846
18847# If ld is used when linking, flag to hardcode \$libdir into
18848# a binary during linking. This must work even if \$libdir does
18849# not exist.
18850hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18851
18852# Whether we need a single -rpath flag with a separated argument.
18853hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18854
18855# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18856# resulting binary.
18857hardcode_direct=$hardcode_direct_GCJ
18858
18859# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18860# resulting binary.
18861hardcode_minus_L=$hardcode_minus_L_GCJ
18862
18863# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18864# the resulting binary.
18865hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18866
18867# Set to yes if building a shared library automatically hardcodes DIR into the library
18868# and all subsequent libraries and executables linked against it.
18869hardcode_automatic=$hardcode_automatic_GCJ
18870
18871# Variables whose values should be saved in libtool wrapper scripts and
18872# restored at relink time.
18873variables_saved_for_relink="$variables_saved_for_relink"
18874
18875# Whether libtool must link a program against all its dependency libraries.
18876link_all_deplibs=$link_all_deplibs_GCJ
18877
18878# Compile-time system search path for libraries
dd184caf 18879sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 18880
18881# Run-time system search path for libraries
18882sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18883
18884# Fix the shell variable \$srcfile for the compiler.
ac40fd9e 18885fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 18886
18887# Set to yes if exported symbols are required.
18888always_export_symbols=$always_export_symbols_GCJ
18889
18890# The commands to list exported symbols.
18891export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18892
18893# The commands to extract the exported symbol list from a shared archive.
18894extract_expsyms_cmds=$lt_extract_expsyms_cmds
18895
18896# Symbols that should not be listed in the preloaded symbols.
18897exclude_expsyms=$lt_exclude_expsyms_GCJ
18898
18899# Symbols that must always be exported.
18900include_expsyms=$lt_include_expsyms_GCJ
18901
18902# ### END LIBTOOL TAG CONFIG: $tagname
18903
18904__EOF__
18905
18906
18907else
18908 # If there is no Makefile yet, we rely on a make rule to execute
18909 # `config.status --recheck' to rerun these tests and create the
18910 # libtool script then.
18911 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18912 if test -f "$ltmain_in"; then
18913 test -f Makefile && make "$ltmain"
18914 fi
18915fi
18916
18917
18918ac_ext=c
18919ac_cpp='$CPP $CPPFLAGS'
18920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18922ac_compiler_gnu=$ac_cv_c_compiler_gnu
18923
18924CC="$lt_save_CC"
18925
18926 else
18927 tagname=""
18928 fi
18929 ;;
18930
18931 RC)
18932
18933
d9898ee8 18934# Source file extension for RC test sources.
18935ac_ext=rc
18936
18937# Object file extension for compiled RC test sources.
18938objext=o
18939objext_RC=$objext
18940
18941# Code to be used in simple compile tests
ac40fd9e 18942lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
d9898ee8 18943
18944# Code to be used in simple link tests
18945lt_simple_link_test_code="$lt_simple_compile_test_code"
18946
18947# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18948
18949# If no C compiler was specified, use CC.
18950LTCC=${LTCC-"$CC"}
18951
18952# If no C compiler flags were specified, use CFLAGS.
18953LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18954
18955# Allow CC to be a program name with arguments.
18956compiler=$CC
18957
18958
18959# save warnings/boilerplate of simple test code
18960ac_outfile=conftest.$ac_objext
ac40fd9e 18961echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 18962eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18963_lt_compiler_boilerplate=`cat conftest.err`
18964$rm conftest*
18965
18966ac_outfile=conftest.$ac_objext
ac40fd9e 18967echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 18968eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18969_lt_linker_boilerplate=`cat conftest.err`
18970$rm conftest*
18971
18972
18973# Allow CC to be a program name with arguments.
18974lt_save_CC="$CC"
18975CC=${RC-"windres"}
18976compiler=$CC
18977compiler_RC=$CC
18978for cc_temp in $compiler""; do
18979 case $cc_temp in
18980 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18981 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18982 \-*) ;;
18983 *) break;;
18984 esac
18985done
18986cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18987
18988lt_cv_prog_compiler_c_o_RC=yes
18989
18990# The else clause should only fire when bootstrapping the
18991# libtool distribution, otherwise you forgot to ship ltmain.sh
18992# with your package, and you will get complaints that there are
18993# no rules to generate ltmain.sh.
18994if test -f "$ltmain"; then
18995 # See if we are running on zsh, and set the options which allow our commands through
18996 # without removal of \ escapes.
18997 if test -n "${ZSH_VERSION+set}" ; then
18998 setopt NO_GLOB_SUBST
18999 fi
19000 # Now quote all the things that may contain metacharacters while being
19001 # careful not to overquote the AC_SUBSTed values. We take copies of the
19002 # variables and quote the copies for generation of the libtool script.
19003 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19004 SED SHELL STRIP \
19005 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19006 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19007 deplibs_check_method reload_flag reload_cmds need_locks \
19008 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19009 lt_cv_sys_global_symbol_to_c_name_address \
19010 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19011 old_postinstall_cmds old_postuninstall_cmds \
19012 compiler_RC \
19013 CC_RC \
19014 LD_RC \
19015 lt_prog_compiler_wl_RC \
19016 lt_prog_compiler_pic_RC \
19017 lt_prog_compiler_static_RC \
19018 lt_prog_compiler_no_builtin_flag_RC \
19019 export_dynamic_flag_spec_RC \
19020 thread_safe_flag_spec_RC \
19021 whole_archive_flag_spec_RC \
19022 enable_shared_with_static_runtimes_RC \
19023 old_archive_cmds_RC \
19024 old_archive_from_new_cmds_RC \
19025 predep_objects_RC \
19026 postdep_objects_RC \
19027 predeps_RC \
19028 postdeps_RC \
19029 compiler_lib_search_path_RC \
19030 archive_cmds_RC \
19031 archive_expsym_cmds_RC \
19032 postinstall_cmds_RC \
19033 postuninstall_cmds_RC \
19034 old_archive_from_expsyms_cmds_RC \
19035 allow_undefined_flag_RC \
19036 no_undefined_flag_RC \
19037 export_symbols_cmds_RC \
19038 hardcode_libdir_flag_spec_RC \
19039 hardcode_libdir_flag_spec_ld_RC \
19040 hardcode_libdir_separator_RC \
19041 hardcode_automatic_RC \
19042 module_cmds_RC \
19043 module_expsym_cmds_RC \
19044 lt_cv_prog_compiler_c_o_RC \
ac40fd9e 19045 fix_srcfile_path_RC \
d9898ee8 19046 exclude_expsyms_RC \
19047 include_expsyms_RC; do
19048
19049 case $var in
19050 old_archive_cmds_RC | \
19051 old_archive_from_new_cmds_RC | \
19052 archive_cmds_RC | \
19053 archive_expsym_cmds_RC | \
19054 module_cmds_RC | \
19055 module_expsym_cmds_RC | \
19056 old_archive_from_expsyms_cmds_RC | \
19057 export_symbols_cmds_RC | \
19058 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19059 postinstall_cmds | postuninstall_cmds | \
19060 old_postinstall_cmds | old_postuninstall_cmds | \
19061 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19062 # Double-quote double-evaled strings.
19063 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19064 ;;
19065 *)
19066 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19067 ;;
19068 esac
19069 done
19070
19071 case $lt_echo in
19072 *'\$0 --fallback-echo"')
19073 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19074 ;;
19075 esac
19076
19077cfgfile="$ofile"
19078
19079 cat <<__EOF__ >> "$cfgfile"
19080# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19081
19082# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19083
19084# Shell to use when invoking shell scripts.
19085SHELL=$lt_SHELL
19086
19087# Whether or not to build shared libraries.
19088build_libtool_libs=$enable_shared
19089
19090# Whether or not to build static libraries.
19091build_old_libs=$enable_static
19092
19093# Whether or not to add -lc for building shared libraries.
19094build_libtool_need_lc=$archive_cmds_need_lc_RC
19095
19096# Whether or not to disallow shared libs when runtime libs are static
19097allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19098
19099# Whether or not to optimize for fast installation.
19100fast_install=$enable_fast_install
19101
19102# The host system.
19103host_alias=$host_alias
19104host=$host
19105host_os=$host_os
19106
19107# The build system.
19108build_alias=$build_alias
19109build=$build
19110build_os=$build_os
19111
19112# An echo program that does not interpret backslashes.
19113echo=$lt_echo
19114
19115# The archiver.
19116AR=$lt_AR
19117AR_FLAGS=$lt_AR_FLAGS
19118
19119# A C compiler.
19120LTCC=$lt_LTCC
19121
19122# LTCC compiler flags.
19123LTCFLAGS=$lt_LTCFLAGS
19124
19125# A language-specific compiler.
19126CC=$lt_compiler_RC
19127
19128# Is the compiler the GNU C compiler?
19129with_gcc=$GCC_RC
19130
d9898ee8 19131# An ERE matcher.
19132EGREP=$lt_EGREP
19133
19134# The linker used to build libraries.
19135LD=$lt_LD_RC
19136
19137# Whether we need hard or soft links.
19138LN_S=$lt_LN_S
19139
19140# A BSD-compatible nm program.
19141NM=$lt_NM
19142
19143# A symbol stripping program
19144STRIP=$lt_STRIP
19145
19146# Used to examine libraries when file_magic_cmd begins "file"
19147MAGIC_CMD=$MAGIC_CMD
19148
19149# Used on cygwin: DLL creation program.
19150DLLTOOL="$DLLTOOL"
19151
19152# Used on cygwin: object dumper.
19153OBJDUMP="$OBJDUMP"
19154
19155# Used on cygwin: assembler.
19156AS="$AS"
19157
19158# The name of the directory that contains temporary libtool files.
19159objdir=$objdir
19160
19161# How to create reloadable object files.
19162reload_flag=$lt_reload_flag
19163reload_cmds=$lt_reload_cmds
19164
19165# How to pass a linker flag through the compiler.
19166wl=$lt_lt_prog_compiler_wl_RC
19167
19168# Object file suffix (normally "o").
19169objext="$ac_objext"
19170
19171# Old archive suffix (normally "a").
19172libext="$libext"
19173
19174# Shared library suffix (normally ".so").
19175shrext_cmds='$shrext_cmds'
19176
19177# Executable file suffix (normally "").
19178exeext="$exeext"
19179
19180# Additional compiler flags for building library objects.
19181pic_flag=$lt_lt_prog_compiler_pic_RC
19182pic_mode=$pic_mode
19183
19184# What is the maximum length of a command?
19185max_cmd_len=$lt_cv_sys_max_cmd_len
19186
19187# Does compiler simultaneously support -c and -o options?
19188compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19189
19190# Must we lock files when doing compilation?
19191need_locks=$lt_need_locks
19192
19193# Do we need the lib prefix for modules?
19194need_lib_prefix=$need_lib_prefix
19195
19196# Do we need a version for libraries?
19197need_version=$need_version
19198
19199# Whether dlopen is supported.
19200dlopen_support=$enable_dlopen
19201
19202# Whether dlopen of programs is supported.
19203dlopen_self=$enable_dlopen_self
19204
19205# Whether dlopen of statically linked programs is supported.
19206dlopen_self_static=$enable_dlopen_self_static
19207
19208# Compiler flag to prevent dynamic linking.
19209link_static_flag=$lt_lt_prog_compiler_static_RC
19210
19211# Compiler flag to turn off builtin functions.
19212no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19213
19214# Compiler flag to allow reflexive dlopens.
19215export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19216
19217# Compiler flag to generate shared objects directly from archives.
19218whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19219
19220# Compiler flag to generate thread-safe objects.
19221thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19222
19223# Library versioning type.
19224version_type=$version_type
19225
19226# Format of library name prefix.
19227libname_spec=$lt_libname_spec
19228
19229# List of archive names. First name is the real one, the rest are links.
19230# The last name is the one that the linker finds with -lNAME.
19231library_names_spec=$lt_library_names_spec
19232
19233# The coded name of the library, if different from the real name.
19234soname_spec=$lt_soname_spec
19235
19236# Commands used to build and install an old-style archive.
19237RANLIB=$lt_RANLIB
19238old_archive_cmds=$lt_old_archive_cmds_RC
19239old_postinstall_cmds=$lt_old_postinstall_cmds
19240old_postuninstall_cmds=$lt_old_postuninstall_cmds
19241
19242# Create an old-style archive from a shared archive.
19243old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19244
19245# Create a temporary old-style archive to link instead of a shared archive.
19246old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19247
19248# Commands used to build and install a shared archive.
19249archive_cmds=$lt_archive_cmds_RC
19250archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19251postinstall_cmds=$lt_postinstall_cmds
19252postuninstall_cmds=$lt_postuninstall_cmds
19253
19254# Commands used to build a loadable module (assumed same as above if empty)
19255module_cmds=$lt_module_cmds_RC
19256module_expsym_cmds=$lt_module_expsym_cmds_RC
19257
19258# Commands to strip libraries.
19259old_striplib=$lt_old_striplib
19260striplib=$lt_striplib
19261
19262# Dependencies to place before the objects being linked to create a
19263# shared library.
dd184caf 19264predep_objects=$lt_predep_objects_RC
d9898ee8 19265
19266# Dependencies to place after the objects being linked to create a
19267# shared library.
dd184caf 19268postdep_objects=$lt_postdep_objects_RC
d9898ee8 19269
19270# Dependencies to place before the objects being linked to create a
19271# shared library.
19272predeps=$lt_predeps_RC
19273
19274# Dependencies to place after the objects being linked to create a
19275# shared library.
19276postdeps=$lt_postdeps_RC
19277
19278# The library search path used internally by the compiler when linking
19279# a shared library.
dd184caf 19280compiler_lib_search_path=$lt_compiler_lib_search_path_RC
d9898ee8 19281
19282# Method to check whether dependent libraries are shared objects.
19283deplibs_check_method=$lt_deplibs_check_method
19284
19285# Command to use when deplibs_check_method == file_magic.
19286file_magic_cmd=$lt_file_magic_cmd
19287
19288# Flag that allows shared libraries with undefined symbols to be built.
19289allow_undefined_flag=$lt_allow_undefined_flag_RC
19290
19291# Flag that forces no undefined symbols.
19292no_undefined_flag=$lt_no_undefined_flag_RC
19293
19294# Commands used to finish a libtool library installation in a directory.
19295finish_cmds=$lt_finish_cmds
19296
19297# Same as above, but a single script fragment to be evaled but not shown.
19298finish_eval=$lt_finish_eval
19299
19300# Take the output of nm and produce a listing of raw symbols and C names.
19301global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19302
19303# Transform the output of nm in a proper C declaration
19304global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19305
19306# Transform the output of nm in a C name address pair
19307global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19308
19309# This is the shared library runtime path variable.
19310runpath_var=$runpath_var
19311
19312# This is the shared library path variable.
19313shlibpath_var=$shlibpath_var
19314
19315# Is shlibpath searched before the hard-coded library search path?
19316shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19317
19318# How to hardcode a shared library path into an executable.
19319hardcode_action=$hardcode_action_RC
19320
19321# Whether we should hardcode library paths into libraries.
19322hardcode_into_libs=$hardcode_into_libs
19323
19324# Flag to hardcode \$libdir into a binary during linking.
19325# This must work even if \$libdir does not exist.
19326hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19327
19328# If ld is used when linking, flag to hardcode \$libdir into
19329# a binary during linking. This must work even if \$libdir does
19330# not exist.
19331hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19332
19333# Whether we need a single -rpath flag with a separated argument.
19334hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19335
19336# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19337# resulting binary.
19338hardcode_direct=$hardcode_direct_RC
19339
19340# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19341# resulting binary.
19342hardcode_minus_L=$hardcode_minus_L_RC
19343
19344# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19345# the resulting binary.
19346hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19347
19348# Set to yes if building a shared library automatically hardcodes DIR into the library
19349# and all subsequent libraries and executables linked against it.
19350hardcode_automatic=$hardcode_automatic_RC
19351
19352# Variables whose values should be saved in libtool wrapper scripts and
19353# restored at relink time.
19354variables_saved_for_relink="$variables_saved_for_relink"
19355
19356# Whether libtool must link a program against all its dependency libraries.
19357link_all_deplibs=$link_all_deplibs_RC
19358
19359# Compile-time system search path for libraries
dd184caf 19360sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 19361
19362# Run-time system search path for libraries
19363sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19364
19365# Fix the shell variable \$srcfile for the compiler.
ac40fd9e 19366fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 19367
19368# Set to yes if exported symbols are required.
19369always_export_symbols=$always_export_symbols_RC
19370
19371# The commands to list exported symbols.
19372export_symbols_cmds=$lt_export_symbols_cmds_RC
19373
19374# The commands to extract the exported symbol list from a shared archive.
19375extract_expsyms_cmds=$lt_extract_expsyms_cmds
19376
19377# Symbols that should not be listed in the preloaded symbols.
19378exclude_expsyms=$lt_exclude_expsyms_RC
19379
19380# Symbols that must always be exported.
19381include_expsyms=$lt_include_expsyms_RC
19382
19383# ### END LIBTOOL TAG CONFIG: $tagname
19384
19385__EOF__
19386
19387
19388else
19389 # If there is no Makefile yet, we rely on a make rule to execute
19390 # `config.status --recheck' to rerun these tests and create the
19391 # libtool script then.
19392 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19393 if test -f "$ltmain_in"; then
19394 test -f Makefile && make "$ltmain"
19395 fi
19396fi
19397
19398
19399ac_ext=c
19400ac_cpp='$CPP $CPPFLAGS'
19401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19403ac_compiler_gnu=$ac_cv_c_compiler_gnu
19404
19405CC="$lt_save_CC"
19406
19407 ;;
19408
19409 *)
19410 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19411echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19412 { (exit 1); exit 1; }; }
19413 ;;
19414 esac
19415
19416 # Append the new tag name to the list of available tags.
19417 if test -n "$tagname" ; then
19418 available_tags="$available_tags $tagname"
19419 fi
19420 fi
19421 done
19422 IFS="$lt_save_ifs"
19423
19424 # Now substitute the updated list of available tags.
19425 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19426 mv "${ofile}T" "$ofile"
19427 chmod +x "$ofile"
19428 else
19429 rm -f "${ofile}T"
19430 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19431echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19432 { (exit 1); exit 1; }; }
19433 fi
19434fi
19435
19436
19437
19438# This can be used to rebuild libtool when needed
19439LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19440
19441# Always use our own libtool.
19442LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19443
19444# Prevent multiple expansion
19445
19446
19447
19448
19449
19450
19451
19452
19453
19454
19455
19456
19457
19458
19459
19460
19461
19462
19463
19464
19465for ac_prog in perl5 perl
19466do
19467 # Extract the first word of "$ac_prog", so it can be a program name with args.
19468set dummy $ac_prog; ac_word=$2
dd184caf 19469{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 19471if test "${ac_cv_path_PERL+set}" = set; then
19472 echo $ECHO_N "(cached) $ECHO_C" >&6
19473else
19474 case $PERL in
19475 [\\/]* | ?:[\\/]*)
19476 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19477 ;;
19478 *)
19479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19480for as_dir in $LPATH
19481do
19482 IFS=$as_save_IFS
19483 test -z "$as_dir" && as_dir=.
19484 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 19485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 19486 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19488 break 2
19489 fi
19490done
19491done
dd184caf 19492IFS=$as_save_IFS
d9898ee8 19493
19494 ;;
19495esac
19496fi
19497PERL=$ac_cv_path_PERL
d9898ee8 19498if test -n "$PERL"; then
dd184caf 19499 { echo "$as_me:$LINENO: result: $PERL" >&5
19500echo "${ECHO_T}$PERL" >&6; }
d9898ee8 19501else
dd184caf 19502 { echo "$as_me:$LINENO: result: no" >&5
19503echo "${ECHO_T}no" >&6; }
d9898ee8 19504fi
19505
dd184caf 19506
d9898ee8 19507 test -n "$PERL" && break
19508done
19509test -n "$PERL" || PERL="perl"
19510
19511
19512if test "$PERL" = "perl"
19513then
19514 { { echo "$as_me:$LINENO: error: Perl not found." >&5
19515echo "$as_me: error: Perl not found." >&2;}
19516 { (exit 1); exit 1; }; }
19517fi
19518
19519if test "$GCC" = "yes"
19520then
19521 CFLAGS="$CFLAGS -Wall"
19522fi
19523
19524CFLAGS="$CFLAGS -I.. -I${srcdir}/.."
19525
19526
19527
dd184caf 19528# Check whether --with-userdb was given.
d9898ee8 19529if test "${with_userdb+set}" = set; then
dd184caf 19530 withval=$with_userdb; userdb="$withval"
d9898ee8 19531else
19532 userdb="/etc/userdb"
dd184caf 19533fi
19534
d9898ee8 19535
19536USERDB="`echo $userdb | tr 'a-z' 'A-Z'`"
19537
19538
19539
dd184caf 19540# Check whether --with-userdbmandir was given.
d9898ee8 19541if test "${with_userdbmandir+set}" = set; then
dd184caf 19542 withval=$with_userdbmandir; mandir="$withval"
19543fi
d9898ee8 19544
19545
dd184caf 19546
19547# Check whether --with-userdbtmpdir was given.
d9898ee8 19548if test "${with_userdbtmpdir+set}" = set; then
dd184caf 19549 withval=$with_userdbtmpdir; tmpdir="$withval"
d9898ee8 19550else
19551 tmpdir=""
dd184caf 19552fi
19553
d9898ee8 19554
19555
19556
19557if test "$tmpdir" = ""
19558then
19559 tmpdir=`echo "$userdb" | sed 's/\/[^\/]*$//'`
19560fi
19561
19562
19563
19564
19565
19566
19567
dd184caf 19568# Check whether --with-makedatprog was given.
d9898ee8 19569if test "${with_makedatprog+set}" = set; then
dd184caf 19570 withval=$with_makedatprog; makedat="$withval"
d9898ee8 19571else
19572 makedat="$bindir/makedat"
dd184caf 19573fi
19574
d9898ee8 19575
19576
19577if test -d ${srcdir}/../md5
19578then
19579
19580cat >>confdefs.h <<_ACEOF
19581#define HAVE_MD5 1
19582_ACEOF
19583
19584 MD5LIB=../md5/libmd5.la
19585else
19586 MD5LIB=""
19587fi
19588
19589
19590if test -d ${srcdir}/../sha1
19591then
19592 SHA1LIB=../sha1/libsha1.la
19593else
19594 SHA1LIB=""
19595fi
19596
19597
19598if test -d ${srcdir}/../libhmac
19599then
19600
19601cat >>confdefs.h <<_ACEOF
19602#define HAVE_HMAC 1
19603_ACEOF
19604
19605 HMACLIB=../libhmac/libhmac.la
19606else
19607 HMACLIB=""
19608fi
19609
19610
dd184caf 19611{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19612echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
d9898ee8 19613if test "${ac_cv_header_stdc+set}" = set; then
19614 echo $ECHO_N "(cached) $ECHO_C" >&6
19615else
19616 cat >conftest.$ac_ext <<_ACEOF
19617/* confdefs.h. */
19618_ACEOF
19619cat confdefs.h >>conftest.$ac_ext
19620cat >>conftest.$ac_ext <<_ACEOF
19621/* end confdefs.h. */
19622#include <stdlib.h>
19623#include <stdarg.h>
19624#include <string.h>
19625#include <float.h>
19626
19627int
19628main ()
19629{
19630
19631 ;
19632 return 0;
19633}
19634_ACEOF
19635rm -f conftest.$ac_objext
dd184caf 19636if { (ac_try="$ac_compile"
19637case "(($ac_try" in
19638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19639 *) ac_try_echo=$ac_try;;
19640esac
19641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19642 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19643 ac_status=$?
19644 grep -v '^ *+' conftest.er1 >conftest.err
19645 rm -f conftest.er1
19646 cat conftest.err >&5
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19648 (exit $ac_status); } && {
19649 test -z "$ac_c_werror_flag" ||
19650 test ! -s conftest.err
19651 } && test -s conftest.$ac_objext; then
d9898ee8 19652 ac_cv_header_stdc=yes
19653else
19654 echo "$as_me: failed program was:" >&5
19655sed 's/^/| /' conftest.$ac_ext >&5
19656
dd184caf 19657 ac_cv_header_stdc=no
d9898ee8 19658fi
dd184caf 19659
19660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 19661
19662if test $ac_cv_header_stdc = yes; then
19663 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19664 cat >conftest.$ac_ext <<_ACEOF
19665/* confdefs.h. */
19666_ACEOF
19667cat confdefs.h >>conftest.$ac_ext
19668cat >>conftest.$ac_ext <<_ACEOF
19669/* end confdefs.h. */
19670#include <string.h>
19671
19672_ACEOF
19673if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19674 $EGREP "memchr" >/dev/null 2>&1; then
19675 :
19676else
19677 ac_cv_header_stdc=no
19678fi
19679rm -f conftest*
19680
19681fi
19682
19683if test $ac_cv_header_stdc = yes; then
19684 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19685 cat >conftest.$ac_ext <<_ACEOF
19686/* confdefs.h. */
19687_ACEOF
19688cat confdefs.h >>conftest.$ac_ext
19689cat >>conftest.$ac_ext <<_ACEOF
19690/* end confdefs.h. */
19691#include <stdlib.h>
19692
19693_ACEOF
19694if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19695 $EGREP "free" >/dev/null 2>&1; then
19696 :
19697else
19698 ac_cv_header_stdc=no
19699fi
19700rm -f conftest*
19701
19702fi
19703
19704if test $ac_cv_header_stdc = yes; then
19705 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19706 if test "$cross_compiling" = yes; then
19707 :
19708else
19709 cat >conftest.$ac_ext <<_ACEOF
19710/* confdefs.h. */
19711_ACEOF
19712cat confdefs.h >>conftest.$ac_ext
19713cat >>conftest.$ac_ext <<_ACEOF
19714/* end confdefs.h. */
19715#include <ctype.h>
dd184caf 19716#include <stdlib.h>
d9898ee8 19717#if ((' ' & 0x0FF) == 0x020)
19718# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19719# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19720#else
19721# define ISLOWER(c) \
19722 (('a' <= (c) && (c) <= 'i') \
19723 || ('j' <= (c) && (c) <= 'r') \
19724 || ('s' <= (c) && (c) <= 'z'))
19725# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19726#endif
19727
19728#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19729int
19730main ()
19731{
19732 int i;
19733 for (i = 0; i < 256; i++)
19734 if (XOR (islower (i), ISLOWER (i))
19735 || toupper (i) != TOUPPER (i))
dd184caf 19736 return 2;
19737 return 0;
d9898ee8 19738}
19739_ACEOF
19740rm -f conftest$ac_exeext
dd184caf 19741if { (ac_try="$ac_link"
19742case "(($ac_try" in
19743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19744 *) ac_try_echo=$ac_try;;
19745esac
19746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19747 (eval "$ac_link") 2>&5
d9898ee8 19748 ac_status=$?
19749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
dd184caf 19751 { (case "(($ac_try" in
19752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19753 *) ac_try_echo=$ac_try;;
19754esac
19755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19756 (eval "$ac_try") 2>&5
d9898ee8 19757 ac_status=$?
19758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759 (exit $ac_status); }; }; then
19760 :
19761else
19762 echo "$as_me: program exited with status $ac_status" >&5
19763echo "$as_me: failed program was:" >&5
19764sed 's/^/| /' conftest.$ac_ext >&5
19765
19766( exit $ac_status )
19767ac_cv_header_stdc=no
19768fi
dd184caf 19769rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 19770fi
dd184caf 19771
19772
d9898ee8 19773fi
19774fi
dd184caf 19775{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19776echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
d9898ee8 19777if test $ac_cv_header_stdc = yes; then
19778
19779cat >>confdefs.h <<\_ACEOF
19780#define STDC_HEADERS 1
19781_ACEOF
19782
19783fi
19784
19785
19786
19787
19788
19789
19790
19791for ac_header in sys/stat.h sys/time.h unistd.h fcntl.h termios.h crypt.h
19792do
19793as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
dd184caf 19794if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19795 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19796echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19797if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 19798 echo $ECHO_N "(cached) $ECHO_C" >&6
19799fi
dd184caf 19800ac_res=`eval echo '${'$as_ac_Header'}'`
19801 { echo "$as_me:$LINENO: result: $ac_res" >&5
19802echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 19803else
19804 # Is the header compilable?
dd184caf 19805{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19806echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 19807cat >conftest.$ac_ext <<_ACEOF
19808/* confdefs.h. */
19809_ACEOF
19810cat confdefs.h >>conftest.$ac_ext
19811cat >>conftest.$ac_ext <<_ACEOF
19812/* end confdefs.h. */
19813$ac_includes_default
19814#include <$ac_header>
19815_ACEOF
19816rm -f conftest.$ac_objext
dd184caf 19817if { (ac_try="$ac_compile"
19818case "(($ac_try" in
19819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19820 *) ac_try_echo=$ac_try;;
19821esac
19822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19823 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19824 ac_status=$?
19825 grep -v '^ *+' conftest.er1 >conftest.err
19826 rm -f conftest.er1
19827 cat conftest.err >&5
19828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19829 (exit $ac_status); } && {
19830 test -z "$ac_c_werror_flag" ||
19831 test ! -s conftest.err
19832 } && test -s conftest.$ac_objext; then
d9898ee8 19833 ac_header_compiler=yes
19834else
19835 echo "$as_me: failed program was:" >&5
19836sed 's/^/| /' conftest.$ac_ext >&5
19837
dd184caf 19838 ac_header_compiler=no
d9898ee8 19839fi
dd184caf 19840
19841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19842{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19843echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 19844
19845# Is the header present?
dd184caf 19846{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19847echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 19848cat >conftest.$ac_ext <<_ACEOF
19849/* confdefs.h. */
19850_ACEOF
19851cat confdefs.h >>conftest.$ac_ext
19852cat >>conftest.$ac_ext <<_ACEOF
19853/* end confdefs.h. */
19854#include <$ac_header>
19855_ACEOF
dd184caf 19856if { (ac_try="$ac_cpp conftest.$ac_ext"
19857case "(($ac_try" in
19858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19859 *) ac_try_echo=$ac_try;;
19860esac
19861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 19863 ac_status=$?
19864 grep -v '^ *+' conftest.er1 >conftest.err
19865 rm -f conftest.er1
19866 cat conftest.err >&5
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19868 (exit $ac_status); } >/dev/null && {
19869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19870 test ! -s conftest.err
19871 }; then
d9898ee8 19872 ac_header_preproc=yes
19873else
19874 echo "$as_me: failed program was:" >&5
19875sed 's/^/| /' conftest.$ac_ext >&5
19876
19877 ac_header_preproc=no
19878fi
dd184caf 19879
d9898ee8 19880rm -f conftest.err conftest.$ac_ext
dd184caf 19881{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19882echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 19883
19884# So? What about this header?
19885case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19886 yes:no: )
19887 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19888echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19890echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19891 ac_header_preproc=yes
19892 ;;
19893 no:yes:* )
19894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19895echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19897echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19898 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19899echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19900 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19901echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19903echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19904 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19905echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
dd184caf 19906 ( cat <<\_ASBOX
d9898ee8 19907## -------------------------------------------------- ##
19908## Report this to courier-users@lists.sourceforge.net ##
19909## -------------------------------------------------- ##
19910_ASBOX
dd184caf 19911 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 19912 ;;
19913esac
dd184caf 19914{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19915echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19916if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 19917 echo $ECHO_N "(cached) $ECHO_C" >&6
19918else
19919 eval "$as_ac_Header=\$ac_header_preproc"
19920fi
dd184caf 19921ac_res=`eval echo '${'$as_ac_Header'}'`
19922 { echo "$as_me:$LINENO: result: $ac_res" >&5
19923echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 19924
19925fi
19926if test `eval echo '${'$as_ac_Header'}'` = yes; then
19927 cat >>confdefs.h <<_ACEOF
19928#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19929_ACEOF
19930
19931fi
19932
19933done
19934
dd184caf 19935{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19936echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
d9898ee8 19937if test "${ac_cv_header_time+set}" = set; then
19938 echo $ECHO_N "(cached) $ECHO_C" >&6
19939else
19940 cat >conftest.$ac_ext <<_ACEOF
19941/* confdefs.h. */
19942_ACEOF
19943cat confdefs.h >>conftest.$ac_ext
19944cat >>conftest.$ac_ext <<_ACEOF
19945/* end confdefs.h. */
19946#include <sys/types.h>
19947#include <sys/time.h>
19948#include <time.h>
19949
19950int
19951main ()
19952{
19953if ((struct tm *) 0)
19954return 0;
19955 ;
19956 return 0;
19957}
19958_ACEOF
19959rm -f conftest.$ac_objext
dd184caf 19960if { (ac_try="$ac_compile"
19961case "(($ac_try" in
19962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19963 *) ac_try_echo=$ac_try;;
19964esac
19965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19966 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19967 ac_status=$?
19968 grep -v '^ *+' conftest.er1 >conftest.err
19969 rm -f conftest.er1
19970 cat conftest.err >&5
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19972 (exit $ac_status); } && {
19973 test -z "$ac_c_werror_flag" ||
19974 test ! -s conftest.err
19975 } && test -s conftest.$ac_objext; then
d9898ee8 19976 ac_cv_header_time=yes
19977else
19978 echo "$as_me: failed program was:" >&5
19979sed 's/^/| /' conftest.$ac_ext >&5
19980
dd184caf 19981 ac_cv_header_time=no
d9898ee8 19982fi
dd184caf 19983
19984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 19985fi
dd184caf 19986{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19987echo "${ECHO_T}$ac_cv_header_time" >&6; }
d9898ee8 19988if test $ac_cv_header_time = yes; then
19989
19990cat >>confdefs.h <<\_ACEOF
19991#define TIME_WITH_SYS_TIME 1
19992_ACEOF
19993
19994fi
19995
19996
dd184caf 19997{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19998echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
d9898ee8 19999if test "${ac_cv_c_const+set}" = set; then
20000 echo $ECHO_N "(cached) $ECHO_C" >&6
20001else
20002 cat >conftest.$ac_ext <<_ACEOF
20003/* confdefs.h. */
20004_ACEOF
20005cat confdefs.h >>conftest.$ac_ext
20006cat >>conftest.$ac_ext <<_ACEOF
20007/* end confdefs.h. */
20008
20009int
20010main ()
20011{
20012/* FIXME: Include the comments suggested by Paul. */
20013#ifndef __cplusplus
20014 /* Ultrix mips cc rejects this. */
20015 typedef int charset[2];
dd184caf 20016 const charset cs;
d9898ee8 20017 /* SunOS 4.1.1 cc rejects this. */
dd184caf 20018 char const *const *pcpcc;
20019 char **ppc;
d9898ee8 20020 /* NEC SVR4.0.2 mips cc rejects this. */
20021 struct point {int x, y;};
20022 static struct point const zero = {0,0};
20023 /* AIX XL C 1.02.0.0 rejects this.
20024 It does not let you subtract one const X* pointer from another in
20025 an arm of an if-expression whose if-part is not a constant
20026 expression */
20027 const char *g = "string";
dd184caf 20028 pcpcc = &g + (g ? g-g : 0);
d9898ee8 20029 /* HPUX 7.0 cc rejects these. */
dd184caf 20030 ++pcpcc;
20031 ppc = (char**) pcpcc;
20032 pcpcc = (char const *const *) ppc;
d9898ee8 20033 { /* SCO 3.2v4 cc rejects this. */
20034 char *t;
20035 char const *s = 0 ? (char *) 0 : (char const *) 0;
20036
20037 *t++ = 0;
dd184caf 20038 if (s) return 0;
d9898ee8 20039 }
20040 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20041 int x[] = {25, 17};
20042 const int *foo = &x[0];
20043 ++foo;
20044 }
20045 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20046 typedef const int *iptr;
20047 iptr p = 0;
20048 ++p;
20049 }
20050 { /* AIX XL C 1.02.0.0 rejects this saying
20051 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20052 struct s { int j; const int *ap[3]; };
20053 struct s *b; b->j = 5;
20054 }
20055 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20056 const int foo = 10;
dd184caf 20057 if (!foo) return 0;
d9898ee8 20058 }
dd184caf 20059 return !cs[0] && !zero.x;
d9898ee8 20060#endif
20061
20062 ;
20063 return 0;
20064}
20065_ACEOF
20066rm -f conftest.$ac_objext
dd184caf 20067if { (ac_try="$ac_compile"
20068case "(($ac_try" in
20069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20070 *) ac_try_echo=$ac_try;;
20071esac
20072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20073 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20074 ac_status=$?
20075 grep -v '^ *+' conftest.er1 >conftest.err
20076 rm -f conftest.er1
20077 cat conftest.err >&5
20078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 20079 (exit $ac_status); } && {
20080 test -z "$ac_c_werror_flag" ||
20081 test ! -s conftest.err
20082 } && test -s conftest.$ac_objext; then
d9898ee8 20083 ac_cv_c_const=yes
20084else
20085 echo "$as_me: failed program was:" >&5
20086sed 's/^/| /' conftest.$ac_ext >&5
20087
dd184caf 20088 ac_cv_c_const=no
d9898ee8 20089fi
dd184caf 20090
20091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20092fi
dd184caf 20093{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20094echo "${ECHO_T}$ac_cv_c_const" >&6; }
d9898ee8 20095if test $ac_cv_c_const = no; then
20096
20097cat >>confdefs.h <<\_ACEOF
20098#define const
20099_ACEOF
20100
20101fi
20102
dd184caf 20103{ echo "$as_me:$LINENO: checking for pid_t" >&5
20104echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
d9898ee8 20105if test "${ac_cv_type_pid_t+set}" = set; then
20106 echo $ECHO_N "(cached) $ECHO_C" >&6
20107else
20108 cat >conftest.$ac_ext <<_ACEOF
20109/* confdefs.h. */
20110_ACEOF
20111cat confdefs.h >>conftest.$ac_ext
20112cat >>conftest.$ac_ext <<_ACEOF
20113/* end confdefs.h. */
20114$ac_includes_default
dd184caf 20115typedef pid_t ac__type_new_;
d9898ee8 20116int
20117main ()
20118{
dd184caf 20119if ((ac__type_new_ *) 0)
d9898ee8 20120 return 0;
dd184caf 20121if (sizeof (ac__type_new_))
d9898ee8 20122 return 0;
20123 ;
20124 return 0;
20125}
20126_ACEOF
20127rm -f conftest.$ac_objext
dd184caf 20128if { (ac_try="$ac_compile"
20129case "(($ac_try" in
20130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20131 *) ac_try_echo=$ac_try;;
20132esac
20133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20134 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20135 ac_status=$?
20136 grep -v '^ *+' conftest.er1 >conftest.err
20137 rm -f conftest.er1
20138 cat conftest.err >&5
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 20140 (exit $ac_status); } && {
20141 test -z "$ac_c_werror_flag" ||
20142 test ! -s conftest.err
20143 } && test -s conftest.$ac_objext; then
d9898ee8 20144 ac_cv_type_pid_t=yes
20145else
20146 echo "$as_me: failed program was:" >&5
20147sed 's/^/| /' conftest.$ac_ext >&5
20148
dd184caf 20149 ac_cv_type_pid_t=no
d9898ee8 20150fi
dd184caf 20151
20152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20153fi
dd184caf 20154{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20155echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
d9898ee8 20156if test $ac_cv_type_pid_t = yes; then
20157 :
20158else
20159
20160cat >>confdefs.h <<_ACEOF
20161#define pid_t int
20162_ACEOF
20163
20164fi
20165
dd184caf 20166{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
20167echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
d9898ee8 20168if test "${ac_cv_type_uid_t+set}" = set; then
20169 echo $ECHO_N "(cached) $ECHO_C" >&6
20170else
20171 cat >conftest.$ac_ext <<_ACEOF
20172/* confdefs.h. */
20173_ACEOF
20174cat confdefs.h >>conftest.$ac_ext
20175cat >>conftest.$ac_ext <<_ACEOF
20176/* end confdefs.h. */
20177#include <sys/types.h>
20178
20179_ACEOF
20180if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20181 $EGREP "uid_t" >/dev/null 2>&1; then
20182 ac_cv_type_uid_t=yes
20183else
20184 ac_cv_type_uid_t=no
20185fi
20186rm -f conftest*
20187
20188fi
dd184caf 20189{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
20190echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
d9898ee8 20191if test $ac_cv_type_uid_t = no; then
20192
20193cat >>confdefs.h <<\_ACEOF
20194#define uid_t int
20195_ACEOF
20196
20197
20198cat >>confdefs.h <<\_ACEOF
20199#define gid_t int
20200_ACEOF
20201
20202fi
20203
dd184caf 20204{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20205echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
d9898ee8 20206if test "${ac_cv_type_signal+set}" = set; then
20207 echo $ECHO_N "(cached) $ECHO_C" >&6
20208else
20209 cat >conftest.$ac_ext <<_ACEOF
20210/* confdefs.h. */
20211_ACEOF
20212cat confdefs.h >>conftest.$ac_ext
20213cat >>conftest.$ac_ext <<_ACEOF
20214/* end confdefs.h. */
20215#include <sys/types.h>
20216#include <signal.h>
d9898ee8 20217
20218int
20219main ()
20220{
dd184caf 20221return *(signal (0, 0)) (0) == 1;
d9898ee8 20222 ;
20223 return 0;
20224}
20225_ACEOF
20226rm -f conftest.$ac_objext
dd184caf 20227if { (ac_try="$ac_compile"
20228case "(($ac_try" in
20229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20230 *) ac_try_echo=$ac_try;;
20231esac
20232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20233 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20234 ac_status=$?
20235 grep -v '^ *+' conftest.er1 >conftest.err
20236 rm -f conftest.er1
20237 cat conftest.err >&5
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 20239 (exit $ac_status); } && {
20240 test -z "$ac_c_werror_flag" ||
20241 test ! -s conftest.err
20242 } && test -s conftest.$ac_objext; then
20243 ac_cv_type_signal=int
d9898ee8 20244else
20245 echo "$as_me: failed program was:" >&5
20246sed 's/^/| /' conftest.$ac_ext >&5
20247
dd184caf 20248 ac_cv_type_signal=void
d9898ee8 20249fi
dd184caf 20250
20251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20252fi
dd184caf 20253{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20254echo "${ECHO_T}$ac_cv_type_signal" >&6; }
d9898ee8 20255
20256cat >>confdefs.h <<_ACEOF
20257#define RETSIGTYPE $ac_cv_type_signal
20258_ACEOF
20259
20260
20261
20262
dd184caf 20263{ echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
20264echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
d9898ee8 20265if test "${ac_cv_lib_crypt_crypt+set}" = set; then
20266 echo $ECHO_N "(cached) $ECHO_C" >&6
20267else
20268 ac_check_lib_save_LIBS=$LIBS
20269LIBS="-lcrypt $LIBS"
20270cat >conftest.$ac_ext <<_ACEOF
20271/* confdefs.h. */
20272_ACEOF
20273cat confdefs.h >>conftest.$ac_ext
20274cat >>conftest.$ac_ext <<_ACEOF
20275/* end confdefs.h. */
20276
dd184caf 20277/* Override any GCC internal prototype to avoid an error.
20278 Use char because int might match the return type of a GCC
20279 builtin and then its argument prototype would still apply. */
d9898ee8 20280#ifdef __cplusplus
20281extern "C"
20282#endif
d9898ee8 20283char crypt ();
20284int
20285main ()
20286{
dd184caf 20287return crypt ();
d9898ee8 20288 ;
20289 return 0;
20290}
20291_ACEOF
20292rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 20293if { (ac_try="$ac_link"
20294case "(($ac_try" in
20295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20296 *) ac_try_echo=$ac_try;;
20297esac
20298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20299 (eval "$ac_link") 2>conftest.er1
d9898ee8 20300 ac_status=$?
20301 grep -v '^ *+' conftest.er1 >conftest.err
20302 rm -f conftest.er1
20303 cat conftest.err >&5
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 20305 (exit $ac_status); } && {
20306 test -z "$ac_c_werror_flag" ||
20307 test ! -s conftest.err
20308 } && test -s conftest$ac_exeext &&
20309 $as_test_x conftest$ac_exeext; then
d9898ee8 20310 ac_cv_lib_crypt_crypt=yes
20311else
20312 echo "$as_me: failed program was:" >&5
20313sed 's/^/| /' conftest.$ac_ext >&5
20314
dd184caf 20315 ac_cv_lib_crypt_crypt=no
d9898ee8 20316fi
dd184caf 20317
20318rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20319 conftest$ac_exeext conftest.$ac_ext
20320LIBS=$ac_check_lib_save_LIBS
20321fi
dd184caf 20322{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
20323echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
d9898ee8 20324if test $ac_cv_lib_crypt_crypt = yes; then
20325 CRYPTLIBS="-lcrypt"
20326fi
20327
20328saveLIBS="$LIBS"
20329LIBS="$CRYPTLIBS $LIBS"
dd184caf 20330{ echo "$as_me:$LINENO: checking for crypt" >&5
20331echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
d9898ee8 20332if test "${ac_cv_func_crypt+set}" = set; then
20333 echo $ECHO_N "(cached) $ECHO_C" >&6
20334else
20335 cat >conftest.$ac_ext <<_ACEOF
20336/* confdefs.h. */
20337_ACEOF
20338cat confdefs.h >>conftest.$ac_ext
20339cat >>conftest.$ac_ext <<_ACEOF
20340/* end confdefs.h. */
20341/* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
20342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20343#define crypt innocuous_crypt
20344
20345/* System header to define __stub macros and hopefully few prototypes,
20346 which can conflict with char crypt (); below.
20347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20348 <limits.h> exists even on freestanding compilers. */
20349
20350#ifdef __STDC__
20351# include <limits.h>
20352#else
20353# include <assert.h>
20354#endif
20355
20356#undef crypt
20357
dd184caf 20358/* Override any GCC internal prototype to avoid an error.
20359 Use char because int might match the return type of a GCC
20360 builtin and then its argument prototype would still apply. */
d9898ee8 20361#ifdef __cplusplus
20362extern "C"
d9898ee8 20363#endif
d9898ee8 20364char crypt ();
20365/* The GNU C library defines this for functions which it implements
20366 to always fail with ENOSYS. Some functions are actually named
20367 something starting with __ and the normal name is an alias. */
dd184caf 20368#if defined __stub_crypt || defined __stub___crypt
d9898ee8 20369choke me
d9898ee8 20370#endif
20371
20372int
20373main ()
20374{
dd184caf 20375return crypt ();
d9898ee8 20376 ;
20377 return 0;
20378}
20379_ACEOF
20380rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 20381if { (ac_try="$ac_link"
20382case "(($ac_try" in
20383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20384 *) ac_try_echo=$ac_try;;
20385esac
20386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20387 (eval "$ac_link") 2>conftest.er1
d9898ee8 20388 ac_status=$?
20389 grep -v '^ *+' conftest.er1 >conftest.err
20390 rm -f conftest.er1
20391 cat conftest.err >&5
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 20393 (exit $ac_status); } && {
20394 test -z "$ac_c_werror_flag" ||
20395 test ! -s conftest.err
20396 } && test -s conftest$ac_exeext &&
20397 $as_test_x conftest$ac_exeext; then
d9898ee8 20398 ac_cv_func_crypt=yes
20399else
20400 echo "$as_me: failed program was:" >&5
20401sed 's/^/| /' conftest.$ac_ext >&5
20402
dd184caf 20403 ac_cv_func_crypt=no
d9898ee8 20404fi
dd184caf 20405
20406rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20407 conftest$ac_exeext conftest.$ac_ext
20408fi
dd184caf 20409{ echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
20410echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
d9898ee8 20411if test $ac_cv_func_crypt = yes; then
20412
20413cat >>confdefs.h <<_ACEOF
20414#define HAVE_CRYPT 1
20415_ACEOF
20416
20417fi
20418
20419LIBS="$saveLIBS"
dd184caf 20420{ echo "$as_me:$LINENO: checking for crypt() prototype" >&5
20421echo $ECHO_N "checking for crypt() prototype... $ECHO_C" >&6; }
d9898ee8 20422if test "${userdb_cv_NEED_CRYPT_PROTOTYPE+set}" = set; then
20423 echo $ECHO_N "(cached) $ECHO_C" >&6
20424else
20425 cat >conftest.$ac_ext <<_ACEOF
20426/* confdefs.h. */
20427_ACEOF
20428cat confdefs.h >>conftest.$ac_ext
20429cat >>conftest.$ac_ext <<_ACEOF
20430/* end confdefs.h. */
20431
20432 #if HAVE_CRYPT_H
20433 #include <crypt.h>
20434 #endif
20435 #if HAVE_UNISTD_H
20436 #include <unistd.h>
20437 #endif
20438 int crypt(int, int);
20439
20440
20441int
20442main ()
20443{
20444
20445 ;
20446 return 0;
20447}
20448_ACEOF
20449rm -f conftest.$ac_objext
dd184caf 20450if { (ac_try="$ac_compile"
20451case "(($ac_try" in
20452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20453 *) ac_try_echo=$ac_try;;
20454esac
20455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20456 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20457 ac_status=$?
20458 grep -v '^ *+' conftest.er1 >conftest.err
20459 rm -f conftest.er1
20460 cat conftest.err >&5
20461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 20462 (exit $ac_status); } && {
20463 test -z "$ac_c_werror_flag" ||
20464 test ! -s conftest.err
20465 } && test -s conftest.$ac_objext; then
d9898ee8 20466 userdb_cv_NEED_CRYPT_PROTOTYPE=1
20467else
20468 echo "$as_me: failed program was:" >&5
20469sed 's/^/| /' conftest.$ac_ext >&5
20470
dd184caf 20471 userdb_cv_NEED_CRYPT_PROTOTYPE=0
d9898ee8 20472fi
dd184caf 20473
20474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20475
20476
20477fi
dd184caf 20478{ echo "$as_me:$LINENO: result: $userdb_cv_NEED_CRYPT_PROTOTYPE" >&5
20479echo "${ECHO_T}$userdb_cv_NEED_CRYPT_PROTOTYPE" >&6; }
d9898ee8 20480
20481
20482cat >>confdefs.h <<_ACEOF
20483#define NEED_CRYPT_PROTOTYPE $userdb_cv_NEED_CRYPT_PROTOTYPE
20484_ACEOF
20485
20486
20487
20488
20489
20490for ac_func in isatty gettimeofday
20491do
20492as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
dd184caf 20493{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20494echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20495if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 20496 echo $ECHO_N "(cached) $ECHO_C" >&6
20497else
20498 cat >conftest.$ac_ext <<_ACEOF
20499/* confdefs.h. */
20500_ACEOF
20501cat confdefs.h >>conftest.$ac_ext
20502cat >>conftest.$ac_ext <<_ACEOF
20503/* end confdefs.h. */
20504/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20506#define $ac_func innocuous_$ac_func
20507
20508/* System header to define __stub macros and hopefully few prototypes,
20509 which can conflict with char $ac_func (); below.
20510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20511 <limits.h> exists even on freestanding compilers. */
20512
20513#ifdef __STDC__
20514# include <limits.h>
20515#else
20516# include <assert.h>
20517#endif
20518
20519#undef $ac_func
20520
dd184caf 20521/* Override any GCC internal prototype to avoid an error.
20522 Use char because int might match the return type of a GCC
20523 builtin and then its argument prototype would still apply. */
d9898ee8 20524#ifdef __cplusplus
20525extern "C"
d9898ee8 20526#endif
d9898ee8 20527char $ac_func ();
20528/* The GNU C library defines this for functions which it implements
20529 to always fail with ENOSYS. Some functions are actually named
20530 something starting with __ and the normal name is an alias. */
dd184caf 20531#if defined __stub_$ac_func || defined __stub___$ac_func
d9898ee8 20532choke me
d9898ee8 20533#endif
20534
20535int
20536main ()
20537{
dd184caf 20538return $ac_func ();
d9898ee8 20539 ;
20540 return 0;
20541}
20542_ACEOF
20543rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 20544if { (ac_try="$ac_link"
20545case "(($ac_try" in
20546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20547 *) ac_try_echo=$ac_try;;
20548esac
20549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20550 (eval "$ac_link") 2>conftest.er1
d9898ee8 20551 ac_status=$?
20552 grep -v '^ *+' conftest.er1 >conftest.err
20553 rm -f conftest.er1
20554 cat conftest.err >&5
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 20556 (exit $ac_status); } && {
20557 test -z "$ac_c_werror_flag" ||
20558 test ! -s conftest.err
20559 } && test -s conftest$ac_exeext &&
20560 $as_test_x conftest$ac_exeext; then
d9898ee8 20561 eval "$as_ac_var=yes"
20562else
20563 echo "$as_me: failed program was:" >&5
20564sed 's/^/| /' conftest.$ac_ext >&5
20565
dd184caf 20566 eval "$as_ac_var=no"
d9898ee8 20567fi
dd184caf 20568
20569rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20570 conftest$ac_exeext conftest.$ac_ext
20571fi
dd184caf 20572ac_res=`eval echo '${'$as_ac_var'}'`
20573 { echo "$as_me:$LINENO: result: $ac_res" >&5
20574echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 20575if test `eval echo '${'$as_ac_var'}'` = yes; then
20576 cat >>confdefs.h <<_ACEOF
20577#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20578_ACEOF
20579
20580fi
20581done
20582
20583
20584
dd184caf 20585# Check whether --with-random was given.
d9898ee8 20586if test "${with_random+set}" = set; then
dd184caf 20587 withval=$with_random; random="$withval"
d9898ee8 20588else
20589 random="y"
dd184caf 20590fi
20591
d9898ee8 20592
20593case "$random" in
20594/*)
20595 ;;
20596y*|1*)
dd184caf 20597 { echo "$as_me:$LINENO: checking for random source" >&5
20598echo $ECHO_N "checking for random source... $ECHO_C" >&6; }
d9898ee8 20599if test "${userdb_cv_RANDOM+set}" = set; then
20600 echo $ECHO_N "(cached) $ECHO_C" >&6
20601else
20602 if test -c /dev/urandom
20603 then
20604 userdb_cv_RANDOM=/dev/urandom
20605 else
20606 if test -c /dev/random
20607 then
20608 userdb_cv_RANDOM=/dev/random
20609 else
20610 userdb_cv_RANDOM="none"
20611 fi
20612 fi
20613
20614fi
dd184caf 20615{ echo "$as_me:$LINENO: result: $userdb_cv_RANDOM" >&5
20616echo "${ECHO_T}$userdb_cv_RANDOM" >&6; }
d9898ee8 20617 random="$userdb_cv_RANDOM"
20618 ;;
20619*)
20620 random="none"
20621 ;;
20622esac
20623
20624if test "$random" != "none"
20625then
20626
20627cat >>confdefs.h <<_ACEOF
20628#define RANDOM "$random"
20629_ACEOF
20630
20631fi
20632
dd184caf 20633 if test -d ${srcdir}/../docbook; then
d9898ee8 20634 HAVE_SGML_TRUE=
20635 HAVE_SGML_FALSE='#'
20636else
20637 HAVE_SGML_TRUE='#'
20638 HAVE_SGML_FALSE=
20639fi
20640
20641
ac40fd9e 20642ac_config_files="$ac_config_files Makefile userdb.pl makeuserdb pw2userdb"
dd184caf 20643
d9898ee8 20644cat >confcache <<\_ACEOF
20645# This file is a shell script that caches the results of configure
20646# tests run on this system so they can be shared between configure
20647# scripts and configure runs, see configure's option --config-cache.
20648# It is not useful on other systems. If it contains results you don't
20649# want to keep, you may remove or edit it.
20650#
20651# config.status only pays attention to the cache file if you give it
20652# the --recheck option to rerun configure.
20653#
20654# `ac_cv_env_foo' variables (set or unset) will be overridden when
20655# loading this file, other *unset* `ac_cv_foo' will be assigned the
20656# following values.
20657
20658_ACEOF
20659
20660# The following way of writing the cache mishandles newlines in values,
20661# but we know of no workaround that is simple, portable, and efficient.
dd184caf 20662# So, we kill variables containing newlines.
d9898ee8 20663# Ultrix sh set writes to stderr and can't be redirected directly,
20664# and sets the high bit in the cache file unless we assign to the vars.
dd184caf 20665(
20666 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20667 eval ac_val=\$$ac_var
20668 case $ac_val in #(
20669 *${as_nl}*)
20670 case $ac_var in #(
20671 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20672echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20673 esac
20674 case $ac_var in #(
20675 _ | IFS | as_nl) ;; #(
20676 *) $as_unset $ac_var ;;
20677 esac ;;
20678 esac
20679 done
20680
d9898ee8 20681 (set) 2>&1 |
dd184caf 20682 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20683 *${as_nl}ac_space=\ *)
d9898ee8 20684 # `set' does not quote correctly, so add quotes (double-quote
20685 # substitution turns \\\\ into \\, and sed turns \\ into \).
20686 sed -n \
20687 "s/'/'\\\\''/g;
20688 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
dd184caf 20689 ;; #(
d9898ee8 20690 *)
20691 # `set' quotes correctly as required by POSIX, so do not add quotes.
dd184caf 20692 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 20693 ;;
dd184caf 20694 esac |
20695 sort
20696) |
d9898ee8 20697 sed '
dd184caf 20698 /^ac_cv_env_/b end
d9898ee8 20699 t clear
dd184caf 20700 :clear
d9898ee8 20701 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20702 t end
dd184caf 20703 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20704 :end' >>confcache
20705if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20706 if test -w "$cache_file"; then
20707 test "x$cache_file" != "x/dev/null" &&
20708 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20709echo "$as_me: updating cache $cache_file" >&6;}
d9898ee8 20710 cat confcache >$cache_file
20711 else
dd184caf 20712 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20713echo "$as_me: not updating unwritable cache $cache_file" >&6;}
d9898ee8 20714 fi
20715fi
20716rm -f confcache
20717
20718test "x$prefix" = xNONE && prefix=$ac_default_prefix
20719# Let make expand exec_prefix.
20720test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20721
d9898ee8 20722# Transform confdefs.h into DEFS.
20723# Protect against shell expansion while executing Makefile rules.
20724# Protect against Makefile macro expansion.
20725#
20726# If the first sed substitution is executed (which looks for macros that
dd184caf 20727# take arguments), then branch to the quote section. Otherwise,
d9898ee8 20728# look for a macro that doesn't take arguments.
dd184caf 20729ac_script='
d9898ee8 20730t clear
dd184caf 20731:clear
20732s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
d9898ee8 20733t quote
dd184caf 20734s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
d9898ee8 20735t quote
dd184caf 20736b any
20737:quote
20738s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20739s/\[/\\&/g
20740s/\]/\\&/g
20741s/\$/$$/g
20742H
20743:any
20744${
20745 g
20746 s/^\n//
20747 s/\n/ /g
20748 p
20749}
20750'
20751DEFS=`sed -n "$ac_script" confdefs.h`
d9898ee8 20752
20753
20754ac_libobjs=
20755ac_ltlibobjs=
20756for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20757 # 1. Remove the extension, and $U if already installed.
dd184caf 20758 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20759 ac_i=`echo "$ac_i" | sed "$ac_script"`
20760 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20761 # will be set to the directory where LIBOBJS objects are built.
20762 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20763 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
d9898ee8 20764done
20765LIBOBJS=$ac_libobjs
20766
20767LTLIBOBJS=$ac_ltlibobjs
20768
20769
20770if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20771 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20772Usually this means the macro was only invoked conditionally." >&5
20773echo "$as_me: error: conditional \"AMDEP\" was never defined.
20774Usually this means the macro was only invoked conditionally." >&2;}
20775 { (exit 1); exit 1; }; }
20776fi
20777if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20778 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20779Usually this means the macro was only invoked conditionally." >&5
20780echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20781Usually this means the macro was only invoked conditionally." >&2;}
20782 { (exit 1); exit 1; }; }
20783fi
20784if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20785 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20786Usually this means the macro was only invoked conditionally." >&5
20787echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20788Usually this means the macro was only invoked conditionally." >&2;}
20789 { (exit 1); exit 1; }; }
20790fi
20791if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
20792 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGML\" was never defined.
20793Usually this means the macro was only invoked conditionally." >&5
20794echo "$as_me: error: conditional \"HAVE_SGML\" was never defined.
20795Usually this means the macro was only invoked conditionally." >&2;}
20796 { (exit 1); exit 1; }; }
20797fi
20798
20799: ${CONFIG_STATUS=./config.status}
20800ac_clean_files_save=$ac_clean_files
20801ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20802{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20803echo "$as_me: creating $CONFIG_STATUS" >&6;}
20804cat >$CONFIG_STATUS <<_ACEOF
20805#! $SHELL
20806# Generated by $as_me.
20807# Run this file to recreate the current configuration.
20808# Compiler output produced by configure, useful for debugging
20809# configure, is in config.log if it exists.
20810
20811debug=false
20812ac_cs_recheck=false
20813ac_cs_silent=false
20814SHELL=\${CONFIG_SHELL-$SHELL}
20815_ACEOF
20816
20817cat >>$CONFIG_STATUS <<\_ACEOF
20818## --------------------- ##
20819## M4sh Initialization. ##
20820## --------------------- ##
20821
dd184caf 20822# Be more Bourne compatible
20823DUALCASE=1; export DUALCASE # for MKS sh
d9898ee8 20824if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20825 emulate sh
20826 NULLCMD=:
20827 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20828 # is contrary to our usage. Disable this feature.
20829 alias -g '${1+"$@"}'='"$@"'
dd184caf 20830 setopt NO_GLOB_SUBST
d9898ee8 20831else
dd184caf 20832 case `(set -o) 2>/dev/null` in
20833 *posix*) set -o posix ;;
20834esac
d9898ee8 20835
d9898ee8 20836fi
20837
20838
d9898ee8 20839
20840
dd184caf 20841# PATH needs CR
d9898ee8 20842# Avoid depending upon Character Ranges.
20843as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20844as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20845as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20846as_cr_digits='0123456789'
20847as_cr_alnum=$as_cr_Letters$as_cr_digits
20848
20849# The user is always right.
20850if test "${PATH_SEPARATOR+set}" != set; then
20851 echo "#! /bin/sh" >conf$$.sh
20852 echo "exit 0" >>conf$$.sh
20853 chmod +x conf$$.sh
20854 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20855 PATH_SEPARATOR=';'
20856 else
20857 PATH_SEPARATOR=:
20858 fi
20859 rm -f conf$$.sh
20860fi
20861
dd184caf 20862# Support unset when possible.
20863if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20864 as_unset=unset
20865else
20866 as_unset=false
20867fi
20868
20869
20870# IFS
20871# We need space, tab and new line, in precisely that order. Quoting is
20872# there to prevent editors from complaining about space-tab.
20873# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20874# splitting by setting IFS to empty value.)
20875as_nl='
20876'
20877IFS=" "" $as_nl"
20878
20879# Find who we are. Look in the path if we contain no directory separator.
20880case $0 in
20881 *[\\/]* ) as_myself=$0 ;;
20882 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d9898ee8 20883for as_dir in $PATH
20884do
20885 IFS=$as_save_IFS
20886 test -z "$as_dir" && as_dir=.
20887 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20888done
dd184caf 20889IFS=$as_save_IFS
d9898ee8 20890
dd184caf 20891 ;;
20892esac
20893# We did not find ourselves, most probably we were run as `sh COMMAND'
20894# in which case we are not to be found in the path.
20895if test "x$as_myself" = x; then
20896 as_myself=$0
20897fi
20898if test ! -f "$as_myself"; then
20899 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20900 { (exit 1); exit 1; }
20901fi
20902
20903# Work around bugs in pre-3.0 UWIN ksh.
20904for as_var in ENV MAIL MAILPATH
20905do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20906done
20907PS1='$ '
20908PS2='> '
20909PS4='+ '
20910
20911# NLS nuisances.
20912for as_var in \
20913 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20914 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20915 LC_TELEPHONE LC_TIME
d9898ee8 20916do
dd184caf 20917 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20918 eval $as_var=C; export $as_var
20919 else
20920 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20921 fi
20922done
20923
20924# Required to use basename.
20925if expr a : '\(a\)' >/dev/null 2>&1 &&
20926 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20927 as_expr=expr
20928else
20929 as_expr=false
20930fi
20931
20932if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20933 as_basename=basename
20934else
20935 as_basename=false
20936fi
20937
20938
20939# Name of the executable.
20940as_me=`$as_basename -- "$0" ||
20941$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20942 X"$0" : 'X\(//\)$' \| \
20943 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20944echo X/"$0" |
20945 sed '/^.*\/\([^/][^/]*\)\/*$/{
20946 s//\1/
20947 q
20948 }
20949 /^X\/\(\/\/\)$/{
20950 s//\1/
20951 q
20952 }
20953 /^X\/\(\/\).*/{
20954 s//\1/
20955 q
20956 }
20957 s/.*/./; q'`
20958
20959# CDPATH.
20960$as_unset CDPATH
20961
20962
20963
d9898ee8 20964 as_lineno_1=$LINENO
20965 as_lineno_2=$LINENO
d9898ee8 20966 test "x$as_lineno_1" != "x$as_lineno_2" &&
dd184caf 20967 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 20968
20969 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20970 # uniformly replaced by the line number. The first 'sed' inserts a
dd184caf 20971 # line-number line after each line using $LINENO; the second 'sed'
20972 # does the real work. The second script uses 'N' to pair each
20973 # line-number line with the line containing $LINENO, and appends
20974 # trailing '-' during substitution so that $LINENO is not a special
20975 # case at line end.
d9898ee8 20976 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
dd184caf 20977 # scripts with optimization help from Paolo Bonzini. Blame Lee
20978 # E. McMahon (1931-1989) for sed's syntax. :-)
20979 sed -n '
20980 p
20981 /[$]LINENO/=
20982 ' <$as_myself |
d9898ee8 20983 sed '
dd184caf 20984 s/[$]LINENO.*/&-/
20985 t lineno
20986 b
20987 :lineno
d9898ee8 20988 N
dd184caf 20989 :loop
20990 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 20991 t loop
dd184caf 20992 s/-\n.*//
d9898ee8 20993 ' >$as_me.lineno &&
dd184caf 20994 chmod +x "$as_me.lineno" ||
20995 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
d9898ee8 20996 { (exit 1); exit 1; }; }
20997
20998 # Don't try to exec as it changes $[0], causing all sort of problems
20999 # (the dirname of $[0] is not the place where we might find the
dd184caf 21000 # original and so on. Autoconf is especially sensitive to this).
21001 . "./$as_me.lineno"
d9898ee8 21002 # Exit status is that of the last command.
21003 exit
21004}
21005
21006
dd184caf 21007if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21008 as_dirname=dirname
21009else
21010 as_dirname=false
21011fi
21012
21013ECHO_C= ECHO_N= ECHO_T=
21014case `echo -n x` in
21015-n*)
21016 case `echo 'x\c'` in
21017 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21018 *) ECHO_C='\c';;
21019 esac;;
21020*)
21021 ECHO_N='-n';;
d9898ee8 21022esac
21023
dd184caf 21024if expr a : '\(a\)' >/dev/null 2>&1 &&
21025 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 21026 as_expr=expr
21027else
21028 as_expr=false
21029fi
21030
21031rm -f conf$$ conf$$.exe conf$$.file
dd184caf 21032if test -d conf$$.dir; then
21033 rm -f conf$$.dir/conf$$.file
21034else
21035 rm -f conf$$.dir
21036 mkdir conf$$.dir
21037fi
d9898ee8 21038echo >conf$$.file
21039if ln -s conf$$.file conf$$ 2>/dev/null; then
dd184caf 21040 as_ln_s='ln -s'
21041 # ... but there are two gotchas:
21042 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21043 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21044 # In both cases, we have to default to `cp -p'.
21045 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d9898ee8 21046 as_ln_s='cp -p'
d9898ee8 21047elif ln conf$$.file conf$$ 2>/dev/null; then
21048 as_ln_s=ln
21049else
21050 as_ln_s='cp -p'
21051fi
dd184caf 21052rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21053rmdir conf$$.dir 2>/dev/null
d9898ee8 21054
21055if mkdir -p . 2>/dev/null; then
21056 as_mkdir_p=:
21057else
21058 test -d ./-p && rmdir ./-p
21059 as_mkdir_p=false
21060fi
21061
dd184caf 21062if test -x / >/dev/null 2>&1; then
21063 as_test_x='test -x'
21064else
21065 if ls -dL / >/dev/null 2>&1; then
21066 as_ls_L_option=L
21067 else
21068 as_ls_L_option=
21069 fi
21070 as_test_x='
21071 eval sh -c '\''
21072 if test -d "$1"; then
21073 test -d "$1/.";
21074 else
21075 case $1 in
21076 -*)set "./$1";;
21077 esac;
21078 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21079 ???[sx]*):;;*)false;;esac;fi
21080 '\'' sh
21081 '
21082fi
21083as_executable_p=$as_test_x
d9898ee8 21084
21085# Sed expression to map a string onto a valid CPP name.
21086as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21087
21088# Sed expression to map a string onto a valid variable name.
21089as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21090
21091
d9898ee8 21092exec 6>&1
21093
dd184caf 21094# Save the log message, to keep $[0] and so on meaningful, and to
d9898ee8 21095# report actual input values of CONFIG_FILES etc. instead of their
dd184caf 21096# values after options handling.
21097ac_log="
d9898ee8 21098This file was extended by libuserdb $as_me 0.10, which was
dd184caf 21099generated by GNU Autoconf 2.61. Invocation command line was
d9898ee8 21100
21101 CONFIG_FILES = $CONFIG_FILES
21102 CONFIG_HEADERS = $CONFIG_HEADERS
21103 CONFIG_LINKS = $CONFIG_LINKS
21104 CONFIG_COMMANDS = $CONFIG_COMMANDS
21105 $ $0 $@
21106
dd184caf 21107on `(hostname || uname -n) 2>/dev/null | sed 1q`
21108"
21109
d9898ee8 21110_ACEOF
21111
dd184caf 21112cat >>$CONFIG_STATUS <<_ACEOF
d9898ee8 21113# Files that config.status was made for.
dd184caf 21114config_files="$ac_config_files"
21115config_commands="$ac_config_commands"
d9898ee8 21116
dd184caf 21117_ACEOF
d9898ee8 21118
21119cat >>$CONFIG_STATUS <<\_ACEOF
d9898ee8 21120ac_cs_usage="\
21121\`$as_me' instantiates files from templates according to the
21122current configuration.
21123
21124Usage: $0 [OPTIONS] [FILE]...
21125
21126 -h, --help print this help, then exit
dd184caf 21127 -V, --version print version number and configuration settings, then exit
d9898ee8 21128 -q, --quiet do not print progress messages
21129 -d, --debug don't remove temporary files
21130 --recheck update $as_me by reconfiguring in the same conditions
21131 --file=FILE[:TEMPLATE]
21132 instantiate the configuration file FILE
21133
21134Configuration files:
21135$config_files
21136
21137Configuration commands:
21138$config_commands
21139
21140Report bugs to <bug-autoconf@gnu.org>."
d9898ee8 21141
dd184caf 21142_ACEOF
d9898ee8 21143cat >>$CONFIG_STATUS <<_ACEOF
21144ac_cs_version="\\
21145libuserdb config.status 0.10
dd184caf 21146configured by $0, generated by GNU Autoconf 2.61,
21147 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
d9898ee8 21148
dd184caf 21149Copyright (C) 2006 Free Software Foundation, Inc.
d9898ee8 21150This config.status script is free software; the Free Software Foundation
21151gives unlimited permission to copy, distribute and modify it."
dd184caf 21152
21153ac_pwd='$ac_pwd'
21154srcdir='$srcdir'
21155INSTALL='$INSTALL'
21156MKDIR_P='$MKDIR_P'
d9898ee8 21157_ACEOF
21158
21159cat >>$CONFIG_STATUS <<\_ACEOF
21160# If no file are specified by the user, then we need to provide default
21161# value. By we need to know if files were specified by the user.
21162ac_need_defaults=:
21163while test $# != 0
21164do
21165 case $1 in
21166 --*=*)
dd184caf 21167 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21168 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
d9898ee8 21169 ac_shift=:
21170 ;;
dd184caf 21171 *)
d9898ee8 21172 ac_option=$1
21173 ac_optarg=$2
21174 ac_shift=shift
21175 ;;
d9898ee8 21176 esac
21177
21178 case $ac_option in
21179 # Handling of the options.
d9898ee8 21180 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21181 ac_cs_recheck=: ;;
dd184caf 21182 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21183 echo "$ac_cs_version"; exit ;;
21184 --debug | --debu | --deb | --de | --d | -d )
d9898ee8 21185 debug=: ;;
21186 --file | --fil | --fi | --f )
21187 $ac_shift
21188 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21189 ac_need_defaults=false;;
dd184caf 21190 --he | --h | --help | --hel | -h )
21191 echo "$ac_cs_usage"; exit ;;
d9898ee8 21192 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21193 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21194 ac_cs_silent=: ;;
21195
21196 # This is an error.
dd184caf 21197 -*) { echo "$as_me: error: unrecognized option: $1
21198Try \`$0 --help' for more information." >&2
d9898ee8 21199 { (exit 1); exit 1; }; } ;;
21200
dd184caf 21201 *) ac_config_targets="$ac_config_targets $1"
21202 ac_need_defaults=false ;;
d9898ee8 21203
21204 esac
21205 shift
21206done
21207
21208ac_configure_extra_args=
21209
21210if $ac_cs_silent; then
21211 exec 6>/dev/null
21212 ac_configure_extra_args="$ac_configure_extra_args --silent"
21213fi
21214
21215_ACEOF
21216cat >>$CONFIG_STATUS <<_ACEOF
21217if \$ac_cs_recheck; then
dd184caf 21218 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21219 CONFIG_SHELL=$SHELL
21220 export CONFIG_SHELL
21221 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
d9898ee8 21222fi
21223
21224_ACEOF
dd184caf 21225cat >>$CONFIG_STATUS <<\_ACEOF
21226exec 5>>config.log
21227{
21228 echo
21229 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21230## Running $as_me. ##
21231_ASBOX
21232 echo "$ac_log"
21233} >&5
d9898ee8 21234
dd184caf 21235_ACEOF
d9898ee8 21236cat >>$CONFIG_STATUS <<_ACEOF
21237#
dd184caf 21238# INIT-COMMANDS
d9898ee8 21239#
d9898ee8 21240AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21241
21242_ACEOF
21243
d9898ee8 21244cat >>$CONFIG_STATUS <<\_ACEOF
dd184caf 21245
21246# Handling of arguments.
d9898ee8 21247for ac_config_target in $ac_config_targets
21248do
dd184caf 21249 case $ac_config_target in
21250 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21251 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21252 "userdb.pl") CONFIG_FILES="$CONFIG_FILES userdb.pl" ;;
21253 "makeuserdb") CONFIG_FILES="$CONFIG_FILES makeuserdb" ;;
21254 "pw2userdb") CONFIG_FILES="$CONFIG_FILES pw2userdb" ;;
dd184caf 21255
d9898ee8 21256 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21257echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21258 { (exit 1); exit 1; }; };;
21259 esac
21260done
21261
dd184caf 21262
d9898ee8 21263# If the user did not use the arguments to specify the items to instantiate,
21264# then the envvar interface is used. Set only those that are not.
21265# We use the long form for the default assignment because of an extremely
21266# bizarre bug on SunOS 4.1.3.
21267if $ac_need_defaults; then
21268 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21269 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21270fi
21271
21272# Have a temporary directory for convenience. Make it in the build tree
dd184caf 21273# simply because there is no reason against having it here, and in addition,
d9898ee8 21274# creating and moving files from /tmp can sometimes cause problems.
dd184caf 21275# Hook for its removal unless debugging.
21276# Note that there is a small window in which the directory will not be cleaned:
21277# after its creation but before its name has been assigned to `$tmp'.
d9898ee8 21278$debug ||
21279{
dd184caf 21280 tmp=
21281 trap 'exit_status=$?
21282 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21283' 0
d9898ee8 21284 trap '{ (exit 1); exit 1; }' 1 2 13 15
21285}
d9898ee8 21286# Create a (secure) tmp directory for tmp files.
21287
21288{
dd184caf 21289 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d9898ee8 21290 test -n "$tmp" && test -d "$tmp"
21291} ||
21292{
dd184caf 21293 tmp=./conf$$-$RANDOM
21294 (umask 077 && mkdir "$tmp")
d9898ee8 21295} ||
21296{
21297 echo "$me: cannot create a temporary directory in ." >&2
21298 { (exit 1); exit 1; }
21299}
21300
d9898ee8 21301#
dd184caf 21302# Set up the sed scripts for CONFIG_FILES section.
d9898ee8 21303#
21304
21305# No need to generate the scripts if there are no CONFIG_FILES.
21306# This happens for instance when ./config.status config.h
dd184caf 21307if test -n "$CONFIG_FILES"; then
d9898ee8 21308
21309_ACEOF
21310
dd184caf 21311
21312
21313ac_delim='%!_!# '
21314for ac_last_try in false false false false false :; do
21315 cat >conf$$subs.sed <<_ACEOF
21316SHELL!$SHELL$ac_delim
21317PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21318PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21319PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21320PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21321PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21322PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21323exec_prefix!$exec_prefix$ac_delim
21324prefix!$prefix$ac_delim
21325program_transform_name!$program_transform_name$ac_delim
21326bindir!$bindir$ac_delim
21327sbindir!$sbindir$ac_delim
21328libexecdir!$libexecdir$ac_delim
21329datarootdir!$datarootdir$ac_delim
21330datadir!$datadir$ac_delim
21331sysconfdir!$sysconfdir$ac_delim
21332sharedstatedir!$sharedstatedir$ac_delim
21333localstatedir!$localstatedir$ac_delim
21334includedir!$includedir$ac_delim
21335oldincludedir!$oldincludedir$ac_delim
21336docdir!$docdir$ac_delim
21337infodir!$infodir$ac_delim
21338htmldir!$htmldir$ac_delim
21339dvidir!$dvidir$ac_delim
21340pdfdir!$pdfdir$ac_delim
21341psdir!$psdir$ac_delim
21342libdir!$libdir$ac_delim
21343localedir!$localedir$ac_delim
21344mandir!$mandir$ac_delim
21345DEFS!$DEFS$ac_delim
21346ECHO_C!$ECHO_C$ac_delim
21347ECHO_N!$ECHO_N$ac_delim
21348ECHO_T!$ECHO_T$ac_delim
21349LIBS!$LIBS$ac_delim
21350build_alias!$build_alias$ac_delim
21351host_alias!$host_alias$ac_delim
21352target_alias!$target_alias$ac_delim
21353INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21354INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21355INSTALL_DATA!$INSTALL_DATA$ac_delim
21356am__isrc!$am__isrc$ac_delim
21357CYGPATH_W!$CYGPATH_W$ac_delim
21358PACKAGE!$PACKAGE$ac_delim
21359VERSION!$VERSION$ac_delim
21360ACLOCAL!$ACLOCAL$ac_delim
21361AUTOCONF!$AUTOCONF$ac_delim
21362AUTOMAKE!$AUTOMAKE$ac_delim
21363AUTOHEADER!$AUTOHEADER$ac_delim
21364MAKEINFO!$MAKEINFO$ac_delim
21365install_sh!$install_sh$ac_delim
21366STRIP!$STRIP$ac_delim
21367INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21368mkdir_p!$mkdir_p$ac_delim
21369AWK!$AWK$ac_delim
21370SET_MAKE!$SET_MAKE$ac_delim
21371am__leading_dot!$am__leading_dot$ac_delim
21372AMTAR!$AMTAR$ac_delim
21373am__tar!$am__tar$ac_delim
21374am__untar!$am__untar$ac_delim
21375CC!$CC$ac_delim
21376CFLAGS!$CFLAGS$ac_delim
21377LDFLAGS!$LDFLAGS$ac_delim
21378CPPFLAGS!$CPPFLAGS$ac_delim
21379ac_ct_CC!$ac_ct_CC$ac_delim
21380EXEEXT!$EXEEXT$ac_delim
21381OBJEXT!$OBJEXT$ac_delim
21382DEPDIR!$DEPDIR$ac_delim
21383am__include!$am__include$ac_delim
21384am__quote!$am__quote$ac_delim
21385AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21386AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21387AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21388CCDEPMODE!$CCDEPMODE$ac_delim
21389am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21390am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21391LN_S!$LN_S$ac_delim
21392build!$build$ac_delim
21393build_cpu!$build_cpu$ac_delim
21394build_vendor!$build_vendor$ac_delim
21395build_os!$build_os$ac_delim
21396host!$host$ac_delim
21397host_cpu!$host_cpu$ac_delim
21398host_vendor!$host_vendor$ac_delim
21399host_os!$host_os$ac_delim
21400SED!$SED$ac_delim
21401GREP!$GREP$ac_delim
21402EGREP!$EGREP$ac_delim
21403ECHO!$ECHO$ac_delim
21404AR!$AR$ac_delim
21405RANLIB!$RANLIB$ac_delim
21406CPP!$CPP$ac_delim
21407CXX!$CXX$ac_delim
21408CXXFLAGS!$CXXFLAGS$ac_delim
21409ac_ct_CXX!$ac_ct_CXX$ac_delim
21410CXXDEPMODE!$CXXDEPMODE$ac_delim
21411am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21412am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21413_ACEOF
21414
21415 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21416 break
21417 elif $ac_last_try; then
21418 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21419echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21420 { (exit 1); exit 1; }; }
21421 else
21422 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
d9898ee8 21423 fi
dd184caf 21424done
21425
21426ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21427if test -n "$ac_eof"; then
21428 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21429 ac_eof=`expr $ac_eof + 1`
21430fi
21431
21432cat >>$CONFIG_STATUS <<_ACEOF
21433cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21434/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21435_ACEOF
21436sed '
21437s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21438s/^/s,@/; s/!/@,|#_!!_#|/
21439:n
21440t n
21441s/'"$ac_delim"'$/,g/; t
21442s/$/\\/; p
21443N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21444' >>$CONFIG_STATUS <conf$$subs.sed
21445rm -f conf$$subs.sed
21446cat >>$CONFIG_STATUS <<_ACEOF
21447CEOF$ac_eof
21448_ACEOF
21449
d9898ee8 21450
dd184caf 21451ac_delim='%!_!# '
21452for ac_last_try in false false false false false :; do
21453 cat >conf$$subs.sed <<_ACEOF
21454CXXCPP!$CXXCPP$ac_delim
21455F77!$F77$ac_delim
21456FFLAGS!$FFLAGS$ac_delim
21457ac_ct_F77!$ac_ct_F77$ac_delim
21458LIBTOOL!$LIBTOOL$ac_delim
21459PERL!$PERL$ac_delim
21460userdb!$userdb$ac_delim
21461USERDB!$USERDB$ac_delim
21462userdbtmpdir!$userdbtmpdir$ac_delim
21463tmpdir!$tmpdir$ac_delim
21464makedat!$makedat$ac_delim
21465MD5LIB!$MD5LIB$ac_delim
21466SHA1LIB!$SHA1LIB$ac_delim
21467HMACLIB!$HMACLIB$ac_delim
21468CRYPTLIBS!$CRYPTLIBS$ac_delim
21469HAVE_SGML_TRUE!$HAVE_SGML_TRUE$ac_delim
21470HAVE_SGML_FALSE!$HAVE_SGML_FALSE$ac_delim
21471LIBOBJS!$LIBOBJS$ac_delim
21472LTLIBOBJS!$LTLIBOBJS$ac_delim
d9898ee8 21473_ACEOF
dd184caf 21474
21475 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
21476 break
21477 elif $ac_last_try; then
21478 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21479echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21480 { (exit 1); exit 1; }; }
21481 else
21482 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21483 fi
21484done
21485
21486ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21487if test -n "$ac_eof"; then
21488 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21489 ac_eof=`expr $ac_eof + 1`
21490fi
21491
21492cat >>$CONFIG_STATUS <<_ACEOF
21493cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21494/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21495_ACEOF
21496sed '
21497s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21498s/^/s,@/; s/!/@,|#_!!_#|/
21499:n
21500t n
21501s/'"$ac_delim"'$/,g/; t
21502s/$/\\/; p
21503N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21504' >>$CONFIG_STATUS <conf$$subs.sed
21505rm -f conf$$subs.sed
21506cat >>$CONFIG_STATUS <<_ACEOF
21507:end
21508s/|#_!!_#|//g
21509CEOF$ac_eof
21510_ACEOF
21511
21512
21513# VPATH may cause trouble with some makes, so we remove $(srcdir),
21514# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21515# trailing colons and then remove the whole line if VPATH becomes empty
21516# (actually we leave an empty line to preserve line numbers).
21517if test "x$srcdir" = x.; then
21518 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21519s/:*\$(srcdir):*/:/
21520s/:*\${srcdir}:*/:/
21521s/:*@srcdir@:*/:/
21522s/^\([^=]*=[ ]*\):*/\1/
21523s/:*$//
21524s/^[^=]*=[ ]*$//
21525}'
21526fi
21527
d9898ee8 21528cat >>$CONFIG_STATUS <<\_ACEOF
dd184caf 21529fi # test -n "$CONFIG_FILES"
21530
21531
21532for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
21533do
21534 case $ac_tag in
21535 :[FHLC]) ac_mode=$ac_tag; continue;;
21536 esac
21537 case $ac_mode$ac_tag in
21538 :[FHL]*:*);;
21539 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21540echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21541 { (exit 1); exit 1; }; };;
21542 :[FH]-) ac_tag=-:-;;
21543 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21544 esac
21545 ac_save_IFS=$IFS
21546 IFS=:
21547 set x $ac_tag
21548 IFS=$ac_save_IFS
21549 shift
21550 ac_file=$1
21551 shift
21552
21553 case $ac_mode in
21554 :L) ac_source=$1;;
21555 :[FH])
21556 ac_file_inputs=
21557 for ac_f
21558 do
21559 case $ac_f in
21560 -) ac_f="$tmp/stdin";;
21561 *) # Look for the file first in the build tree, then in the source tree
21562 # (if the path is not absolute). The absolute path cannot be DOS-style,
21563 # because $ac_f cannot contain `:'.
21564 test -f "$ac_f" ||
21565 case $ac_f in
21566 [\\/$]*) false;;
21567 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21568 esac ||
21569 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21570echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21571 { (exit 1); exit 1; }; };;
21572 esac
21573 ac_file_inputs="$ac_file_inputs $ac_f"
21574 done
21575
21576 # Let's still pretend it is `configure' which instantiates (i.e., don't
21577 # use $as_me), people would be surprised to read:
21578 # /* config.h. Generated by config.status. */
21579 configure_input="Generated from "`IFS=:
21580 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21581 if test x"$ac_file" != x-; then
21582 configure_input="$ac_file. $configure_input"
21583 { echo "$as_me:$LINENO: creating $ac_file" >&5
21584echo "$as_me: creating $ac_file" >&6;}
21585 fi
21586
21587 case $ac_tag in
21588 *:-:* | *:-) cat >"$tmp/stdin";;
21589 esac
21590 ;;
d9898ee8 21591 esac
21592
dd184caf 21593 ac_dir=`$as_dirname -- "$ac_file" ||
d9898ee8 21594$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21595 X"$ac_file" : 'X\(//\)[^/]' \| \
21596 X"$ac_file" : 'X\(//\)$' \| \
dd184caf 21597 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21598echo X"$ac_file" |
dd184caf 21599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21600 s//\1/
21601 q
21602 }
21603 /^X\(\/\/\)[^/].*/{
21604 s//\1/
21605 q
21606 }
21607 /^X\(\/\/\)$/{
21608 s//\1/
21609 q
21610 }
21611 /^X\(\/\).*/{
21612 s//\1/
21613 q
21614 }
21615 s/.*/./; q'`
21616 { as_dir="$ac_dir"
21617 case $as_dir in #(
21618 -*) as_dir=./$as_dir;;
21619 esac
21620 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 21621 as_dirs=
dd184caf 21622 while :; do
21623 case $as_dir in #(
21624 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21625 *) as_qdir=$as_dir;;
21626 esac
21627 as_dirs="'$as_qdir' $as_dirs"
21628 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 21629$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21630 X"$as_dir" : 'X\(//\)[^/]' \| \
21631 X"$as_dir" : 'X\(//\)$' \| \
dd184caf 21632 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21633echo X"$as_dir" |
dd184caf 21634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21635 s//\1/
21636 q
21637 }
21638 /^X\(\/\/\)[^/].*/{
21639 s//\1/
21640 q
21641 }
21642 /^X\(\/\/\)$/{
21643 s//\1/
21644 q
21645 }
21646 /^X\(\/\).*/{
21647 s//\1/
21648 q
21649 }
21650 s/.*/./; q'`
21651 test -d "$as_dir" && break
d9898ee8 21652 done
dd184caf 21653 test -z "$as_dirs" || eval "mkdir $as_dirs"
21654 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21655echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 21656 { (exit 1); exit 1; }; }; }
d9898ee8 21657 ac_builddir=.
21658
dd184caf 21659case "$ac_dir" in
21660.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21661*)
d9898ee8 21662 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
dd184caf 21663 # A ".." for each directory in $ac_dir_suffix.
21664 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21665 case $ac_top_builddir_sub in
21666 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21667 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21668 esac ;;
21669esac
21670ac_abs_top_builddir=$ac_pwd
21671ac_abs_builddir=$ac_pwd$ac_dir_suffix
21672# for backward compatibility:
21673ac_top_builddir=$ac_top_build_prefix
d9898ee8 21674
21675case $srcdir in
dd184caf 21676 .) # We are building in place.
d9898ee8 21677 ac_srcdir=.
dd184caf 21678 ac_top_srcdir=$ac_top_builddir_sub
21679 ac_abs_top_srcdir=$ac_pwd ;;
21680 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 21681 ac_srcdir=$srcdir$ac_dir_suffix;
dd184caf 21682 ac_top_srcdir=$srcdir
21683 ac_abs_top_srcdir=$srcdir ;;
21684 *) # Relative name.
21685 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21686 ac_top_srcdir=$ac_top_build_prefix$srcdir
21687 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 21688esac
dd184caf 21689ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 21690
d9898ee8 21691
dd184caf 21692 case $ac_mode in
21693 :F)
21694 #
21695 # CONFIG_FILE
21696 #
d9898ee8 21697
21698 case $INSTALL in
21699 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
dd184caf 21700 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21701 esac
21702 ac_MKDIR_P=$MKDIR_P
21703 case $MKDIR_P in
21704 [\\/$]* | ?:[\\/]* ) ;;
21705 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
d9898ee8 21706 esac
dd184caf 21707_ACEOF
d9898ee8 21708
dd184caf 21709cat >>$CONFIG_STATUS <<\_ACEOF
21710# If the template does not know about datarootdir, expand it.
21711# FIXME: This hack should be removed a few years after 2.60.
21712ac_datarootdir_hack=; ac_datarootdir_seen=
21713
21714case `sed -n '/datarootdir/ {
21715 p
21716 q
21717}
21718/@datadir@/p
21719/@docdir@/p
21720/@infodir@/p
21721/@localedir@/p
21722/@mandir@/p
21723' $ac_file_inputs` in
21724*datarootdir*) ac_datarootdir_seen=yes;;
21725*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21726 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21727echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
d9898ee8 21728_ACEOF
dd184caf 21729cat >>$CONFIG_STATUS <<_ACEOF
21730 ac_datarootdir_hack='
21731 s&@datadir@&$datadir&g
21732 s&@docdir@&$docdir&g
21733 s&@infodir@&$infodir&g
21734 s&@localedir@&$localedir&g
21735 s&@mandir@&$mandir&g
21736 s&\\\${datarootdir}&$datarootdir&g' ;;
21737esac
21738_ACEOF
21739
21740# Neutralize VPATH when `$srcdir' = `.'.
21741# Shell code in configure.ac might set extrasub.
21742# FIXME: do we really want to maintain this feature?
d9898ee8 21743cat >>$CONFIG_STATUS <<_ACEOF
21744 sed "$ac_vpsub
21745$extrasub
21746_ACEOF
21747cat >>$CONFIG_STATUS <<\_ACEOF
21748:t
21749/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
dd184caf 21750s&@configure_input@&$configure_input&;t t
21751s&@top_builddir@&$ac_top_builddir_sub&;t t
21752s&@srcdir@&$ac_srcdir&;t t
21753s&@abs_srcdir@&$ac_abs_srcdir&;t t
21754s&@top_srcdir@&$ac_top_srcdir&;t t
21755s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21756s&@builddir@&$ac_builddir&;t t
21757s&@abs_builddir@&$ac_abs_builddir&;t t
21758s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21759s&@INSTALL@&$ac_INSTALL&;t t
21760s&@MKDIR_P@&$ac_MKDIR_P&;t t
21761$ac_datarootdir_hack
21762" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21763
21764test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21765 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21766 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21767 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21768which seems to be undefined. Please make sure it is defined." >&5
21769echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21770which seems to be undefined. Please make sure it is defined." >&2;}
21771
21772 rm -f "$tmp/stdin"
21773 case $ac_file in
21774 -) cat "$tmp/out"; rm -f "$tmp/out";;
21775 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21776 esac
21777 ;;
d9898ee8 21778
d9898ee8 21779
dd184caf 21780 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21781echo "$as_me: executing $ac_file commands" >&6;}
21782 ;;
21783 esac
d9898ee8 21784
21785
dd184caf 21786 case $ac_file$ac_mode in
21787 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
d9898ee8 21788 # Strip MF so we end up with the name of the file.
21789 mf=`echo "$mf" | sed -e 's/:.*$//'`
21790 # Check whether this is an Automake generated Makefile or not.
21791 # We used to match only the files named `Makefile.in', but
21792 # some people rename them; so instead we look at the file content.
21793 # Grep'ing the first line is not enough: some people post-process
21794 # each Makefile.in and add a new line on top of each file to say so.
dd184caf 21795 # Grep'ing the whole file is not good either: AIX grep has a line
21796 # limit of 2048, but all sed's we know have understand at least 4000.
ac40fd9e 21797 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
dd184caf 21798 dirpart=`$as_dirname -- "$mf" ||
d9898ee8 21799$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21800 X"$mf" : 'X\(//\)[^/]' \| \
21801 X"$mf" : 'X\(//\)$' \| \
dd184caf 21802 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21803echo X"$mf" |
dd184caf 21804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21805 s//\1/
21806 q
21807 }
21808 /^X\(\/\/\)[^/].*/{
21809 s//\1/
21810 q
21811 }
21812 /^X\(\/\/\)$/{
21813 s//\1/
21814 q
21815 }
21816 /^X\(\/\).*/{
21817 s//\1/
21818 q
21819 }
21820 s/.*/./; q'`
d9898ee8 21821 else
21822 continue
21823 fi
21824 # Extract the definition of DEPDIR, am__include, and am__quote
21825 # from the Makefile without running `make'.
21826 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21827 test -z "$DEPDIR" && continue
21828 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21829 test -z "am__include" && continue
21830 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21831 # When using ansi2knr, U may be empty or an underscore; expand it
21832 U=`sed -n 's/^U = //p' < "$mf"`
21833 # Find all dependency output files, they are included files with
21834 # $(DEPDIR) in their names. We invoke sed twice because it is the
21835 # simplest approach to changing $(DEPDIR) to its actual value in the
21836 # expansion.
21837 for file in `sed -n "
21838 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21839 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21840 # Make sure the directory exists.
21841 test -f "$dirpart/$file" && continue
dd184caf 21842 fdir=`$as_dirname -- "$file" ||
d9898ee8 21843$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21844 X"$file" : 'X\(//\)[^/]' \| \
21845 X"$file" : 'X\(//\)$' \| \
dd184caf 21846 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21847echo X"$file" |
dd184caf 21848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21849 s//\1/
21850 q
21851 }
21852 /^X\(\/\/\)[^/].*/{
21853 s//\1/
21854 q
21855 }
21856 /^X\(\/\/\)$/{
21857 s//\1/
21858 q
21859 }
21860 /^X\(\/\).*/{
21861 s//\1/
21862 q
21863 }
21864 s/.*/./; q'`
21865 { as_dir=$dirpart/$fdir
21866 case $as_dir in #(
21867 -*) as_dir=./$as_dir;;
21868 esac
21869 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 21870 as_dirs=
dd184caf 21871 while :; do
21872 case $as_dir in #(
21873 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21874 *) as_qdir=$as_dir;;
21875 esac
21876 as_dirs="'$as_qdir' $as_dirs"
21877 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 21878$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21879 X"$as_dir" : 'X\(//\)[^/]' \| \
21880 X"$as_dir" : 'X\(//\)$' \| \
dd184caf 21881 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21882echo X"$as_dir" |
dd184caf 21883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21884 s//\1/
21885 q
21886 }
21887 /^X\(\/\/\)[^/].*/{
21888 s//\1/
21889 q
21890 }
21891 /^X\(\/\/\)$/{
21892 s//\1/
21893 q
21894 }
21895 /^X\(\/\).*/{
21896 s//\1/
21897 q
21898 }
21899 s/.*/./; q'`
21900 test -d "$as_dir" && break
d9898ee8 21901 done
dd184caf 21902 test -z "$as_dirs" || eval "mkdir $as_dirs"
21903 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21904echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 21905 { (exit 1); exit 1; }; }; }
d9898ee8 21906 # echo "creating $dirpart/$file"
21907 echo '# dummy' > "$dirpart/$file"
21908 done
21909done
21910 ;;
dd184caf 21911
d9898ee8 21912 esac
dd184caf 21913done # for ac_tag
d9898ee8 21914
d9898ee8 21915
21916{ (exit 0); exit 0; }
21917_ACEOF
21918chmod +x $CONFIG_STATUS
21919ac_clean_files=$ac_clean_files_save
21920
21921
21922# configure is writing to config.log, and then calls config.status.
21923# config.status does its own redirection, appending to config.log.
21924# Unfortunately, on DOS this fails, as config.log is still kept open
21925# by configure, so config.status won't be able to write to it; its
21926# output is simply discarded. So we exec the FD to /dev/null,
21927# effectively closing config.log, so it can be properly (re)opened and
21928# appended to by config.status. When coming back to configure, we
21929# need to make the FD available again.
21930if test "$no_create" != yes; then
21931 ac_cs_success=:
21932 ac_config_status_args=
21933 test "$silent" = yes &&
21934 ac_config_status_args="$ac_config_status_args --quiet"
21935 exec 5>/dev/null
21936 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21937 exec 5>>config.log
21938 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21939 # would make configure fail if this is the last instruction.
21940 $ac_cs_success || { (exit 1); exit 1; }
21941fi
21942