]> jfr.im git - irc/rqf/shadowircd.git/blame - libratbox/configure
Copied libratbox and related stuff from shadowircd upstream.
[irc/rqf/shadowircd.git] / libratbox / configure
CommitLineData
b57f37fb
WP
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for libratbox devel.
4#
94b4fbf9 5# $Id: configure.ac 26168 2008-10-26 20:58:40Z androsyn $
b57f37fb
WP
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
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
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
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+"$@"}'='"$@"'
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
53fi
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
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
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
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
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121else
122 as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127else
128 as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo X/"$0" |
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'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
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
161fi
162
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}
179
180exitcode=0
181if as_func_success; then
182 :
183else
184 exitcode=1
185 echo as_func_success failed.
186fi
187
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=
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=.
228 case $as_dir in
229 /*)
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(
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
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" || {
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
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.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
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 |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
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
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465}
466
467
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';;
483esac
484
485if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488else
489 as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
493if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498fi
499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
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 ||
507 as_ln_s='cp -p'
508elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510else
511 as_ln_s='cp -p'
512fi
513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
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
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
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
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
708exec 7<&0 </dev/null 6>&1
709
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
715#
716# Initializations.
717#
718ac_default_prefix=/usr/local
719ac_clean_files=
720ac_config_libobj_dir=.
721LIBOBJS=
722cross_compiling=no
723subdirs=
724MFLAGS=
725MAKEFLAGS=
726SHELL=${CONFIG_SHELL-/bin/sh}
727
728# Identity of this package.
729PACKAGE_NAME='libratbox'
730PACKAGE_TARNAME='libratbox'
731PACKAGE_VERSION='devel'
732PACKAGE_STRING='libratbox devel'
733PACKAGE_BUGREPORT=''
734
735ac_default_prefix=/usr/local/libratbox
736# Factoring default headers for most tests.
737ac_includes_default="\
738#include <stdio.h>
739#ifdef HAVE_SYS_TYPES_H
740# include <sys/types.h>
741#endif
742#ifdef HAVE_SYS_STAT_H
743# include <sys/stat.h>
744#endif
745#ifdef STDC_HEADERS
746# include <stdlib.h>
747# include <stddef.h>
748#else
749# ifdef HAVE_STDLIB_H
750# include <stdlib.h>
751# endif
752#endif
753#ifdef HAVE_STRING_H
754# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755# include <memory.h>
756# endif
757# include <string.h>
758#endif
759#ifdef HAVE_STRINGS_H
760# include <strings.h>
761#endif
762#ifdef HAVE_INTTYPES_H
763# include <inttypes.h>
764#endif
765#ifdef HAVE_STDINT_H
766# include <stdint.h>
767#endif
768#ifdef HAVE_UNISTD_H
769# include <unistd.h>
770#endif"
771
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
847GREP
848EGREP
849SED
850MAINTAINER_MODE_TRUE
851MAINTAINER_MODE_FALSE
852MAINT
853AS
854RM
855CP
856MV
857LN
b57f37fb
WP
858TOUCH
859build
860build_cpu
861build_vendor
862build_os
863host
864host_cpu
865host_vendor
866host_os
867LN_S
868ECHO
94b4fbf9
VY
869AR
870RANLIB
56efe974
WP
871DSYMUTIL
872NMEDIT
b57f37fb
WP
873CPP
874CXX
875CXXFLAGS
876ac_ct_CXX
877CXXDEPMODE
878am__fastdepCXX_TRUE
879am__fastdepCXX_FALSE
880CXXCPP
881F77
882FFLAGS
883ac_ct_F77
884LIBTOOL
b57f37fb
WP
885MINGW_TRUE
886MINGW_FALSE
887NEED_CRYPT_TRUE
888NEED_CRYPT_FALSE
889CRYPT_LIB
890ALLOCA
dd910409
WP
891PKG_CONFIG
892GNUTLS_CFLAGS
893GNUTLS_LIBS
b57f37fb
WP
894PICFLAGS
895SEDOBJ
033be687 896SSL_CFLAGS
b57f37fb
WP
897SSL_LIBS
898RB_PREFIX
899LIBOBJS
900LTLIBOBJS'
901ac_subst_files=''
902 ac_precious_vars='build_alias
903host_alias
904target_alias
905CC
906CFLAGS
907LDFLAGS
908LIBS
909CPPFLAGS
910CPP
911CXX
912CXXFLAGS
913CCC
914CXXCPP
915F77
dd910409
WP
916FFLAGS
917PKG_CONFIG
918GNUTLS_CFLAGS
919GNUTLS_LIBS'
94b4fbf9 920
b57f37fb
WP
921
922# Initialize some variables set by options.
923ac_init_help=
924ac_init_version=false
925# The variables have the same names as the options, with
926# dashes changed to underlines.
927cache_file=/dev/null
928exec_prefix=NONE
929no_create=
930no_recursion=
931prefix=NONE
932program_prefix=NONE
933program_suffix=NONE
934program_transform_name=s,x,x,
935silent=
936site=
937srcdir=
938verbose=
939x_includes=NONE
940x_libraries=NONE
941
942# Installation directory options.
943# These are left unexpanded so users can "make install exec_prefix=/foo"
944# and all the variables that are supposed to be based on exec_prefix
945# by default will actually change.
946# Use braces instead of parens because sh, perl, etc. also accept them.
947# (The list follows the same order as the GNU Coding Standards.)
948bindir='${exec_prefix}/bin'
949sbindir='${exec_prefix}/sbin'
950libexecdir='${exec_prefix}/libexec'
951datarootdir='${prefix}/share'
952datadir='${datarootdir}'
953sysconfdir='${prefix}/etc'
954sharedstatedir='${prefix}/com'
955localstatedir='${prefix}/var'
956includedir='${prefix}/include'
957oldincludedir='/usr/include'
958docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
959infodir='${datarootdir}/info'
960htmldir='${docdir}'
961dvidir='${docdir}'
962pdfdir='${docdir}'
963psdir='${docdir}'
964libdir='${exec_prefix}/lib'
965localedir='${datarootdir}/locale'
966mandir='${datarootdir}/man'
967
968ac_prev=
969ac_dashdash=
970for ac_option
971do
972 # If the previous option needs an argument, assign it.
973 if test -n "$ac_prev"; then
974 eval $ac_prev=\$ac_option
975 ac_prev=
976 continue
977 fi
978
979 case $ac_option in
980 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
981 *) ac_optarg=yes ;;
982 esac
983
984 # Accept the important Cygnus configure options, so we can diagnose typos.
985
986 case $ac_dashdash$ac_option in
987 --)
988 ac_dashdash=yes ;;
989
990 -bindir | --bindir | --bindi | --bind | --bin | --bi)
991 ac_prev=bindir ;;
992 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
993 bindir=$ac_optarg ;;
994
995 -build | --build | --buil | --bui | --bu)
996 ac_prev=build_alias ;;
997 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
998 build_alias=$ac_optarg ;;
999
1000 -cache-file | --cache-file | --cache-fil | --cache-fi \
1001 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1002 ac_prev=cache_file ;;
1003 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1004 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1005 cache_file=$ac_optarg ;;
1006
1007 --config-cache | -C)
1008 cache_file=config.cache ;;
1009
1010 -datadir | --datadir | --datadi | --datad)
1011 ac_prev=datadir ;;
1012 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1013 datadir=$ac_optarg ;;
1014
1015 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1016 | --dataroo | --dataro | --datar)
1017 ac_prev=datarootdir ;;
1018 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1019 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1020 datarootdir=$ac_optarg ;;
1021
1022 -disable-* | --disable-*)
1023 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1024 # Reject names that are not valid shell variable names.
1025 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1026 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1027 { (exit 1); exit 1; }; }
1028 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1029 eval enable_$ac_feature=no ;;
1030
1031 -docdir | --docdir | --docdi | --doc | --do)
1032 ac_prev=docdir ;;
1033 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1034 docdir=$ac_optarg ;;
1035
1036 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1037 ac_prev=dvidir ;;
1038 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1039 dvidir=$ac_optarg ;;
1040
1041 -enable-* | --enable-*)
1042 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1043 # Reject names that are not valid shell variable names.
1044 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1045 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1046 { (exit 1); exit 1; }; }
1047 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1048 eval enable_$ac_feature=\$ac_optarg ;;
1049
1050 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1051 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1052 | --exec | --exe | --ex)
1053 ac_prev=exec_prefix ;;
1054 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1055 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1056 | --exec=* | --exe=* | --ex=*)
1057 exec_prefix=$ac_optarg ;;
1058
1059 -gas | --gas | --ga | --g)
1060 # Obsolete; use --with-gas.
1061 with_gas=yes ;;
1062
1063 -help | --help | --hel | --he | -h)
1064 ac_init_help=long ;;
1065 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1066 ac_init_help=recursive ;;
1067 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1068 ac_init_help=short ;;
1069
1070 -host | --host | --hos | --ho)
1071 ac_prev=host_alias ;;
1072 -host=* | --host=* | --hos=* | --ho=*)
1073 host_alias=$ac_optarg ;;
1074
1075 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1076 ac_prev=htmldir ;;
1077 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1078 | --ht=*)
1079 htmldir=$ac_optarg ;;
1080
1081 -includedir | --includedir | --includedi | --included | --include \
1082 | --includ | --inclu | --incl | --inc)
1083 ac_prev=includedir ;;
1084 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1085 | --includ=* | --inclu=* | --incl=* | --inc=*)
1086 includedir=$ac_optarg ;;
1087
1088 -infodir | --infodir | --infodi | --infod | --info | --inf)
1089 ac_prev=infodir ;;
1090 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1091 infodir=$ac_optarg ;;
1092
1093 -libdir | --libdir | --libdi | --libd)
1094 ac_prev=libdir ;;
1095 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1096 libdir=$ac_optarg ;;
1097
1098 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1099 | --libexe | --libex | --libe)
1100 ac_prev=libexecdir ;;
1101 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1102 | --libexe=* | --libex=* | --libe=*)
1103 libexecdir=$ac_optarg ;;
1104
1105 -localedir | --localedir | --localedi | --localed | --locale)
1106 ac_prev=localedir ;;
1107 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1108 localedir=$ac_optarg ;;
1109
1110 -localstatedir | --localstatedir | --localstatedi | --localstated \
1111 | --localstate | --localstat | --localsta | --localst | --locals)
1112 ac_prev=localstatedir ;;
1113 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1114 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1115 localstatedir=$ac_optarg ;;
1116
1117 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1118 ac_prev=mandir ;;
1119 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1120 mandir=$ac_optarg ;;
1121
1122 -nfp | --nfp | --nf)
1123 # Obsolete; use --without-fp.
1124 with_fp=no ;;
1125
1126 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1127 | --no-cr | --no-c | -n)
1128 no_create=yes ;;
1129
1130 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1131 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1132 no_recursion=yes ;;
1133
1134 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1135 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1136 | --oldin | --oldi | --old | --ol | --o)
1137 ac_prev=oldincludedir ;;
1138 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1139 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1140 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1141 oldincludedir=$ac_optarg ;;
1142
1143 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1144 ac_prev=prefix ;;
1145 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1146 prefix=$ac_optarg ;;
1147
1148 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1149 | --program-pre | --program-pr | --program-p)
1150 ac_prev=program_prefix ;;
1151 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1152 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1153 program_prefix=$ac_optarg ;;
1154
1155 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1156 | --program-suf | --program-su | --program-s)
1157 ac_prev=program_suffix ;;
1158 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1159 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1160 program_suffix=$ac_optarg ;;
1161
1162 -program-transform-name | --program-transform-name \
1163 | --program-transform-nam | --program-transform-na \
1164 | --program-transform-n | --program-transform- \
1165 | --program-transform | --program-transfor \
1166 | --program-transfo | --program-transf \
1167 | --program-trans | --program-tran \
1168 | --progr-tra | --program-tr | --program-t)
1169 ac_prev=program_transform_name ;;
1170 -program-transform-name=* | --program-transform-name=* \
1171 | --program-transform-nam=* | --program-transform-na=* \
1172 | --program-transform-n=* | --program-transform-=* \
1173 | --program-transform=* | --program-transfor=* \
1174 | --program-transfo=* | --program-transf=* \
1175 | --program-trans=* | --program-tran=* \
1176 | --progr-tra=* | --program-tr=* | --program-t=*)
1177 program_transform_name=$ac_optarg ;;
1178
1179 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1180 ac_prev=pdfdir ;;
1181 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1182 pdfdir=$ac_optarg ;;
1183
1184 -psdir | --psdir | --psdi | --psd | --ps)
1185 ac_prev=psdir ;;
1186 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1187 psdir=$ac_optarg ;;
1188
1189 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1190 | -silent | --silent | --silen | --sile | --sil)
1191 silent=yes ;;
1192
1193 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1194 ac_prev=sbindir ;;
1195 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1196 | --sbi=* | --sb=*)
1197 sbindir=$ac_optarg ;;
1198
1199 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1200 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1201 | --sharedst | --shareds | --shared | --share | --shar \
1202 | --sha | --sh)
1203 ac_prev=sharedstatedir ;;
1204 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1205 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1206 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1207 | --sha=* | --sh=*)
1208 sharedstatedir=$ac_optarg ;;
1209
1210 -site | --site | --sit)
1211 ac_prev=site ;;
1212 -site=* | --site=* | --sit=*)
1213 site=$ac_optarg ;;
1214
1215 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1216 ac_prev=srcdir ;;
1217 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1218 srcdir=$ac_optarg ;;
1219
1220 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1221 | --syscon | --sysco | --sysc | --sys | --sy)
1222 ac_prev=sysconfdir ;;
1223 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1224 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1225 sysconfdir=$ac_optarg ;;
1226
1227 -target | --target | --targe | --targ | --tar | --ta | --t)
1228 ac_prev=target_alias ;;
1229 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1230 target_alias=$ac_optarg ;;
1231
1232 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1233 verbose=yes ;;
1234
1235 -version | --version | --versio | --versi | --vers | -V)
1236 ac_init_version=: ;;
1237
1238 -with-* | --with-*)
1239 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1240 # Reject names that are not valid shell variable names.
1241 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242 { echo "$as_me: error: invalid package name: $ac_package" >&2
1243 { (exit 1); exit 1; }; }
1244 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1245 eval with_$ac_package=\$ac_optarg ;;
1246
1247 -without-* | --without-*)
1248 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1249 # Reject names that are not valid shell variable names.
1250 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1251 { echo "$as_me: error: invalid package name: $ac_package" >&2
1252 { (exit 1); exit 1; }; }
1253 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1254 eval with_$ac_package=no ;;
1255
1256 --x)
1257 # Obsolete; use --with-x.
1258 with_x=yes ;;
1259
1260 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1261 | --x-incl | --x-inc | --x-in | --x-i)
1262 ac_prev=x_includes ;;
1263 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1264 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1265 x_includes=$ac_optarg ;;
1266
1267 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1268 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1269 ac_prev=x_libraries ;;
1270 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1271 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1272 x_libraries=$ac_optarg ;;
1273
1274 -*) { echo "$as_me: error: unrecognized option: $ac_option
1275Try \`$0 --help' for more information." >&2
1276 { (exit 1); exit 1; }; }
1277 ;;
1278
1279 *=*)
1280 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1283 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1284 { (exit 1); exit 1; }; }
1285 eval $ac_envvar=\$ac_optarg
1286 export $ac_envvar ;;
1287
1288 *)
1289 # FIXME: should be removed in autoconf 3.0.
1290 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1291 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1292 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1293 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1294 ;;
1295
1296 esac
1297done
1298
1299if test -n "$ac_prev"; then
1300 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1301 { echo "$as_me: error: missing argument to $ac_option" >&2
1302 { (exit 1); exit 1; }; }
1303fi
1304
1305# Be sure to have absolute directory names.
1306for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1307 datadir sysconfdir sharedstatedir localstatedir includedir \
1308 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1309 libdir localedir mandir
1310do
1311 eval ac_val=\$$ac_var
1312 case $ac_val in
1313 [\\/$]* | ?:[\\/]* ) continue;;
1314 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1315 esac
1316 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1317 { (exit 1); exit 1; }; }
1318done
1319
1320# There might be people who depend on the old broken behavior: `$host'
1321# used to hold the argument of --host etc.
1322# FIXME: To remove some day.
1323build=$build_alias
1324host=$host_alias
1325target=$target_alias
1326
1327# FIXME: To remove some day.
1328if test "x$host_alias" != x; then
1329 if test "x$build_alias" = x; then
1330 cross_compiling=maybe
1331 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1332 If a cross compiler is detected then cross compile mode will be used." >&2
1333 elif test "x$build_alias" != "x$host_alias"; then
1334 cross_compiling=yes
1335 fi
1336fi
1337
1338ac_tool_prefix=
1339test -n "$host_alias" && ac_tool_prefix=$host_alias-
1340
1341test "$silent" = yes && exec 6>/dev/null
1342
1343
1344ac_pwd=`pwd` && test -n "$ac_pwd" &&
1345ac_ls_di=`ls -di .` &&
1346ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1347 { echo "$as_me: error: Working directory cannot be determined" >&2
1348 { (exit 1); exit 1; }; }
1349test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1350 { echo "$as_me: error: pwd does not report name of working directory" >&2
1351 { (exit 1); exit 1; }; }
1352
1353
1354# Find the source files, if location was not specified.
1355if test -z "$srcdir"; then
1356 ac_srcdir_defaulted=yes
1357 # Try the directory containing this script, then the parent directory.
1358 ac_confdir=`$as_dirname -- "$0" ||
1359$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1360 X"$0" : 'X\(//\)[^/]' \| \
1361 X"$0" : 'X\(//\)$' \| \
1362 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1363echo X"$0" |
1364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1365 s//\1/
1366 q
1367 }
1368 /^X\(\/\/\)[^/].*/{
1369 s//\1/
1370 q
1371 }
1372 /^X\(\/\/\)$/{
1373 s//\1/
1374 q
1375 }
1376 /^X\(\/\).*/{
1377 s//\1/
1378 q
1379 }
1380 s/.*/./; q'`
1381 srcdir=$ac_confdir
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1383 srcdir=..
1384 fi
1385else
1386 ac_srcdir_defaulted=no
1387fi
1388if test ! -r "$srcdir/$ac_unique_file"; then
1389 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1390 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1391 { (exit 1); exit 1; }; }
1392fi
1393ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1394ac_abs_confdir=`(
1395 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1396 { (exit 1); exit 1; }; }
1397 pwd)`
1398# When building in place, set srcdir=.
1399if test "$ac_abs_confdir" = "$ac_pwd"; then
1400 srcdir=.
1401fi
1402# Remove unnecessary trailing slashes from srcdir.
1403# Double slashes in file names in object file debugging info
1404# mess up M-x gdb in Emacs.
1405case $srcdir in
1406*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1407esac
1408for ac_var in $ac_precious_vars; do
1409 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1410 eval ac_env_${ac_var}_value=\$${ac_var}
1411 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1412 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1413done
1414
1415#
1416# Report the --help message.
1417#
1418if test "$ac_init_help" = "long"; then
1419 # Omit some internal or obsolete options to make the list less imposing.
1420 # This message is too long to be a string in the A/UX 3.1 sh.
1421 cat <<_ACEOF
1422\`configure' configures libratbox devel to adapt to many kinds of systems.
1423
1424Usage: $0 [OPTION]... [VAR=VALUE]...
1425
1426To assign environment variables (e.g., CC, CFLAGS...), specify them as
1427VAR=VALUE. See below for descriptions of some of the useful variables.
1428
1429Defaults for the options are specified in brackets.
1430
1431Configuration:
1432 -h, --help display this help and exit
1433 --help=short display options specific to this package
1434 --help=recursive display the short help of all the included packages
1435 -V, --version display version information and exit
1436 -q, --quiet, --silent do not print \`checking...' messages
1437 --cache-file=FILE cache test results in FILE [disabled]
1438 -C, --config-cache alias for \`--cache-file=config.cache'
1439 -n, --no-create do not create output files
1440 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1441
1442Installation directories:
1443 --prefix=PREFIX install architecture-independent files in PREFIX
1444 [$ac_default_prefix]
1445 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1446 [PREFIX]
1447
1448By default, \`make install' will install all the files in
1449\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1450an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1451for instance \`--prefix=\$HOME'.
1452
1453For better control, use the options below.
1454
1455Fine tuning of the installation directories:
1456 --bindir=DIR user executables [EPREFIX/bin]
1457 --sbindir=DIR system admin executables [EPREFIX/sbin]
1458 --libexecdir=DIR program executables [EPREFIX/libexec]
1459 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1460 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1461 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1462 --libdir=DIR object code libraries [EPREFIX/lib]
1463 --includedir=DIR C header files [PREFIX/include]
1464 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1465 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1466 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1467 --infodir=DIR info documentation [DATAROOTDIR/info]
1468 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1469 --mandir=DIR man documentation [DATAROOTDIR/man]
1470 --docdir=DIR documentation root [DATAROOTDIR/doc/libratbox]
1471 --htmldir=DIR html documentation [DOCDIR]
1472 --dvidir=DIR dvi documentation [DOCDIR]
1473 --pdfdir=DIR pdf documentation [DOCDIR]
1474 --psdir=DIR ps documentation [DOCDIR]
1475_ACEOF
1476
1477 cat <<\_ACEOF
1478
1479Program names:
1480 --program-prefix=PREFIX prepend PREFIX to installed program names
1481 --program-suffix=SUFFIX append SUFFIX to installed program names
1482 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1483
1484System types:
1485 --build=BUILD configure for building on BUILD [guessed]
1486 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1487_ACEOF
1488fi
1489
1490if test -n "$ac_init_help"; then
1491 case $ac_init_help in
1492 short | recursive ) echo "Configuration of libratbox devel:";;
1493 esac
1494 cat <<\_ACEOF
1495
1496Optional Features:
1497 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1498 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1499 --disable-dependency-tracking speeds up one-time build
1500 --enable-dependency-tracking do not reject slow dependency extractors
1501 --enable-static[=PKGS] build static libraries [default=no]
1502 --enable-shared[=PKGS] build shared libraries [default=yes]
1503 --enable-maintainer-mode enable make rules and dependencies not useful
1504 (and sometimes confusing) to the casual installer
1505 --enable-fast-install[=PKGS]
1506 optimize for fast installation [default=yes]
1507 --disable-libtool-lock avoid locking (might break parallel builds)
1508 --disable-ipv6 Disable IPv6 support
1509 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1510 --disable-openssl Disable OpenSSL support.
033be687
VY
1511 --enable-gnutls Enable GnuTLS support.
1512 --disable-gnutls Disable GnuTLS support.
b57f37fb
WP
1513 --enable-assert Enable assert(). Choose between soft(warnings) and
1514 hard(aborts the daemon)
1515 --enable-profile Enable profiling
1516 --disable-balloc Disable the block allocator.
1517 --enable-warnings Enable all sorts of warnings for debugging.
1518
1519Optional Packages:
1520 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1521 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1522 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1523 --with-pic try to use only PIC/non-PIC objects [default=use
1524 both]
1525 --with-tags[=TAGS] include additional configurations [automatic]
1526
1527Some influential environment variables:
1528 CC C compiler command
1529 CFLAGS C compiler flags
1530 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1531 nonstandard directory <lib dir>
1532 LIBS libraries to pass to the linker, e.g. -l<library>
1533 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1534 you have headers in a nonstandard directory <include dir>
1535 CPP C preprocessor
1536 CXX C++ compiler command
1537 CXXFLAGS C++ compiler flags
1538 CXXCPP C++ preprocessor
1539 F77 Fortran 77 compiler command
1540 FFLAGS Fortran 77 compiler flags
dd910409
WP
1541 PKG_CONFIG path to pkg-config utility
1542 GNUTLS_CFLAGS
1543 C compiler flags for GNUTLS, overriding pkg-config
1544 GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
b57f37fb
WP
1545
1546Use these variables to override the choices made by `configure' or to help
1547it to find libraries and programs with nonstandard names/locations.
1548
1549_ACEOF
1550ac_status=$?
1551fi
1552
1553if test "$ac_init_help" = "recursive"; then
1554 # If there are subdirs, report their specific --help.
1555 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1556 test -d "$ac_dir" || continue
1557 ac_builddir=.
1558
1559case "$ac_dir" in
1560.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561*)
1562 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1563 # A ".." for each directory in $ac_dir_suffix.
1564 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1565 case $ac_top_builddir_sub in
1566 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1568 esac ;;
1569esac
1570ac_abs_top_builddir=$ac_pwd
1571ac_abs_builddir=$ac_pwd$ac_dir_suffix
1572# for backward compatibility:
1573ac_top_builddir=$ac_top_build_prefix
1574
1575case $srcdir in
1576 .) # We are building in place.
1577 ac_srcdir=.
1578 ac_top_srcdir=$ac_top_builddir_sub
1579 ac_abs_top_srcdir=$ac_pwd ;;
1580 [\\/]* | ?:[\\/]* ) # Absolute name.
1581 ac_srcdir=$srcdir$ac_dir_suffix;
1582 ac_top_srcdir=$srcdir
1583 ac_abs_top_srcdir=$srcdir ;;
1584 *) # Relative name.
1585 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1586 ac_top_srcdir=$ac_top_build_prefix$srcdir
1587 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1588esac
1589ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1590
1591 cd "$ac_dir" || { ac_status=$?; continue; }
1592 # Check for guested configure.
1593 if test -f "$ac_srcdir/configure.gnu"; then
1594 echo &&
1595 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1596 elif test -f "$ac_srcdir/configure"; then
1597 echo &&
1598 $SHELL "$ac_srcdir/configure" --help=recursive
1599 else
1600 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1601 fi || ac_status=$?
1602 cd "$ac_pwd" || { ac_status=$?; break; }
1603 done
1604fi
1605
1606test -n "$ac_init_help" && exit $ac_status
1607if $ac_init_version; then
1608 cat <<\_ACEOF
1609libratbox configure devel
1610generated by GNU Autoconf 2.61
1611
1612Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16132002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1614This configure script is free software; the Free Software Foundation
1615gives unlimited permission to copy, distribute and modify it.
1616
94b4fbf9 1617$Id: configure.ac 26168 2008-10-26 20:58:40Z androsyn $
b57f37fb
WP
1618_ACEOF
1619 exit
1620fi
1621cat >config.log <<_ACEOF
1622This file contains any messages produced by compilers while
1623running configure, to aid debugging if configure makes a mistake.
1624
1625It was created by libratbox $as_me devel, which was
1626generated by GNU Autoconf 2.61. Invocation command line was
1627
1628 $ $0 $@
1629
1630_ACEOF
1631exec 5>>config.log
1632{
1633cat <<_ASUNAME
1634## --------- ##
1635## Platform. ##
1636## --------- ##
1637
1638hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1639uname -m = `(uname -m) 2>/dev/null || echo unknown`
1640uname -r = `(uname -r) 2>/dev/null || echo unknown`
1641uname -s = `(uname -s) 2>/dev/null || echo unknown`
1642uname -v = `(uname -v) 2>/dev/null || echo unknown`
1643
1644/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1645/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1646
1647/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1648/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1649/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1650/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1651/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1652/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1653/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1654
1655_ASUNAME
1656
1657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658for as_dir in $PATH
1659do
1660 IFS=$as_save_IFS
1661 test -z "$as_dir" && as_dir=.
1662 echo "PATH: $as_dir"
1663done
1664IFS=$as_save_IFS
1665
1666} >&5
1667
1668cat >&5 <<_ACEOF
1669
1670
1671## ----------- ##
1672## Core tests. ##
1673## ----------- ##
1674
1675_ACEOF
1676
1677
1678# Keep a trace of the command line.
1679# Strip out --no-create and --no-recursion so they do not pile up.
1680# Strip out --silent because we don't want to record it for future runs.
1681# Also quote any args containing shell meta-characters.
1682# Make two passes to allow for proper duplicate-argument suppression.
1683ac_configure_args=
1684ac_configure_args0=
1685ac_configure_args1=
1686ac_must_keep_next=false
1687for ac_pass in 1 2
1688do
1689 for ac_arg
1690 do
1691 case $ac_arg in
1692 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1694 | -silent | --silent | --silen | --sile | --sil)
1695 continue ;;
1696 *\'*)
1697 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1698 esac
1699 case $ac_pass in
1700 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1701 2)
1702 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1703 if test $ac_must_keep_next = true; then
1704 ac_must_keep_next=false # Got value, back to normal.
1705 else
1706 case $ac_arg in
1707 *=* | --config-cache | -C | -disable-* | --disable-* \
1708 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1709 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1710 | -with-* | --with-* | -without-* | --without-* | --x)
1711 case "$ac_configure_args0 " in
1712 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1713 esac
1714 ;;
1715 -* ) ac_must_keep_next=true ;;
1716 esac
1717 fi
1718 ac_configure_args="$ac_configure_args '$ac_arg'"
1719 ;;
1720 esac
1721 done
1722done
1723$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1724$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1725
1726# When interrupted or exit'd, cleanup temporary files, and complete
1727# config.log. We remove comments because anyway the quotes in there
1728# would cause problems or look ugly.
1729# WARNING: Use '\'' to represent an apostrophe within the trap.
1730# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1731trap 'exit_status=$?
1732 # Save into config.log some information that might help in debugging.
1733 {
1734 echo
1735
1736 cat <<\_ASBOX
1737## ---------------- ##
1738## Cache variables. ##
1739## ---------------- ##
1740_ASBOX
1741 echo
1742 # The following way of writing the cache mishandles newlines in values,
1743(
1744 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1745 eval ac_val=\$$ac_var
1746 case $ac_val in #(
1747 *${as_nl}*)
1748 case $ac_var in #(
1749 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1750echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1751 esac
1752 case $ac_var in #(
1753 _ | IFS | as_nl) ;; #(
1754 *) $as_unset $ac_var ;;
1755 esac ;;
1756 esac
1757 done
1758 (set) 2>&1 |
1759 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1760 *${as_nl}ac_space=\ *)
1761 sed -n \
1762 "s/'\''/'\''\\\\'\'''\''/g;
1763 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1764 ;; #(
1765 *)
1766 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1767 ;;
1768 esac |
1769 sort
1770)
1771 echo
1772
1773 cat <<\_ASBOX
1774## ----------------- ##
1775## Output variables. ##
1776## ----------------- ##
1777_ASBOX
1778 echo
1779 for ac_var in $ac_subst_vars
1780 do
1781 eval ac_val=\$$ac_var
1782 case $ac_val in
1783 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1784 esac
1785 echo "$ac_var='\''$ac_val'\''"
1786 done | sort
1787 echo
1788
1789 if test -n "$ac_subst_files"; then
1790 cat <<\_ASBOX
1791## ------------------- ##
1792## File substitutions. ##
1793## ------------------- ##
1794_ASBOX
1795 echo
1796 for ac_var in $ac_subst_files
1797 do
1798 eval ac_val=\$$ac_var
1799 case $ac_val in
1800 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1801 esac
1802 echo "$ac_var='\''$ac_val'\''"
1803 done | sort
1804 echo
1805 fi
1806
1807 if test -s confdefs.h; then
1808 cat <<\_ASBOX
1809## ----------- ##
1810## confdefs.h. ##
1811## ----------- ##
1812_ASBOX
1813 echo
1814 cat confdefs.h
1815 echo
1816 fi
1817 test "$ac_signal" != 0 &&
1818 echo "$as_me: caught signal $ac_signal"
1819 echo "$as_me: exit $exit_status"
1820 } >&5
1821 rm -f core *.core core.conftest.* &&
1822 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1823 exit $exit_status
1824' 0
1825for ac_signal in 1 2 13 15; do
1826 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1827done
1828ac_signal=0
1829
1830# confdefs.h avoids OS command line length limits that DEFS can exceed.
1831rm -f -r conftest* confdefs.h
1832
1833# Predefined preprocessor variables.
1834
1835cat >>confdefs.h <<_ACEOF
1836#define PACKAGE_NAME "$PACKAGE_NAME"
1837_ACEOF
1838
1839
1840cat >>confdefs.h <<_ACEOF
1841#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1842_ACEOF
1843
1844
1845cat >>confdefs.h <<_ACEOF
1846#define PACKAGE_VERSION "$PACKAGE_VERSION"
1847_ACEOF
1848
1849
1850cat >>confdefs.h <<_ACEOF
1851#define PACKAGE_STRING "$PACKAGE_STRING"
1852_ACEOF
1853
1854
1855cat >>confdefs.h <<_ACEOF
1856#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1857_ACEOF
1858
1859
1860# Let the site file select an alternate cache file if it wants to.
1861# Prefer explicitly selected file to automatically selected ones.
1862if test -n "$CONFIG_SITE"; then
1863 set x "$CONFIG_SITE"
1864elif test "x$prefix" != xNONE; then
1865 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1866else
1867 set x "$ac_default_prefix/share/config.site" \
1868 "$ac_default_prefix/etc/config.site"
1869fi
1870shift
1871for ac_site_file
1872do
1873 if test -r "$ac_site_file"; then
1874 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1875echo "$as_me: loading site script $ac_site_file" >&6;}
1876 sed 's/^/| /' "$ac_site_file" >&5
1877 . "$ac_site_file"
1878 fi
1879done
1880
1881if test -r "$cache_file"; then
1882 # Some versions of bash will fail to source /dev/null (special
1883 # files actually), so we avoid doing that.
1884 if test -f "$cache_file"; then
1885 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1886echo "$as_me: loading cache $cache_file" >&6;}
1887 case $cache_file in
1888 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1889 *) . "./$cache_file";;
1890 esac
1891 fi
1892else
1893 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1894echo "$as_me: creating cache $cache_file" >&6;}
1895 >$cache_file
1896fi
1897
1898# Check that the precious variables saved in the cache have kept the same
1899# value.
1900ac_cache_corrupted=false
1901for ac_var in $ac_precious_vars; do
1902 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1903 eval ac_new_set=\$ac_env_${ac_var}_set
1904 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1905 eval ac_new_val=\$ac_env_${ac_var}_value
1906 case $ac_old_set,$ac_new_set in
1907 set,)
1908 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1909echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1910 ac_cache_corrupted=: ;;
1911 ,set)
1912 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1913echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1914 ac_cache_corrupted=: ;;
1915 ,);;
1916 *)
1917 if test "x$ac_old_val" != "x$ac_new_val"; then
1918 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1919echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1920 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1921echo "$as_me: former value: $ac_old_val" >&2;}
1922 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1923echo "$as_me: current value: $ac_new_val" >&2;}
1924 ac_cache_corrupted=:
1925 fi;;
1926 esac
1927 # Pass precious variables to config.status.
1928 if test "$ac_new_set" = set; then
1929 case $ac_new_val in
1930 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1931 *) ac_arg=$ac_var=$ac_new_val ;;
1932 esac
1933 case " $ac_configure_args " in
1934 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1935 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1936 esac
1937 fi
1938done
1939if $ac_cache_corrupted; then
1940 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1941echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1942 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1943echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1944 { (exit 1); exit 1; }; }
1945fi
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971ac_ext=c
1972ac_cpp='$CPP $CPPFLAGS'
1973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1975ac_compiler_gnu=$ac_cv_c_compiler_gnu
1976
1977
1978am__api_version='1.10'
1979
1980ac_aux_dir=
1981for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1982 if test -f "$ac_dir/install-sh"; then
1983 ac_aux_dir=$ac_dir
1984 ac_install_sh="$ac_aux_dir/install-sh -c"
1985 break
1986 elif test -f "$ac_dir/install.sh"; then
1987 ac_aux_dir=$ac_dir
1988 ac_install_sh="$ac_aux_dir/install.sh -c"
1989 break
1990 elif test -f "$ac_dir/shtool"; then
1991 ac_aux_dir=$ac_dir
1992 ac_install_sh="$ac_aux_dir/shtool install -c"
1993 break
1994 fi
1995done
1996if test -z "$ac_aux_dir"; then
1997 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1998echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1999 { (exit 1); exit 1; }; }
2000fi
2001
2002# These three variables are undocumented and unsupported,
2003# and are intended to be withdrawn in a future Autoconf release.
2004# They can cause serious problems if a builder's source tree is in a directory
2005# whose full name contains unusual characters.
2006ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2007ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2008ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2009
2010
2011# Find a good install program. We prefer a C program (faster),
2012# so one script is as good as another. But avoid the broken or
2013# incompatible versions:
2014# SysV /etc/install, /usr/sbin/install
2015# SunOS /usr/etc/install
2016# IRIX /sbin/install
2017# AIX /bin/install
2018# AmigaOS /C/install, which installs bootblocks on floppy discs
2019# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2020# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2021# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2022# OS/2's system install, which has a completely different semantic
2023# ./install, which can be erroneously created by make from ./install.sh.
2024{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2025echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2026if test -z "$INSTALL"; then
2027if test "${ac_cv_path_install+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2029else
2030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031for as_dir in $PATH
2032do
2033 IFS=$as_save_IFS
2034 test -z "$as_dir" && as_dir=.
2035 # Account for people who put trailing slashes in PATH elements.
2036case $as_dir/ in
2037 ./ | .// | /cC/* | \
2038 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2039 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2040 /usr/ucb/* ) ;;
2041 *)
2042 # OSF1 and SCO ODT 3.0 have their own names for install.
2043 # Don't use installbsd from OSF since it installs stuff as root
2044 # by default.
2045 for ac_prog in ginstall scoinst install; do
2046 for ac_exec_ext in '' $ac_executable_extensions; do
2047 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2048 if test $ac_prog = install &&
2049 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2050 # AIX install. It has an incompatible calling convention.
2051 :
2052 elif test $ac_prog = install &&
2053 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2054 # program-specific install script used by HP pwplus--don't use.
2055 :
2056 else
2057 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2058 break 3
2059 fi
2060 fi
2061 done
2062 done
2063 ;;
2064esac
2065done
2066IFS=$as_save_IFS
2067
2068
2069fi
2070 if test "${ac_cv_path_install+set}" = set; then
2071 INSTALL=$ac_cv_path_install
2072 else
2073 # As a last resort, use the slow shell script. Don't cache a
2074 # value for INSTALL within a source directory, because that will
2075 # break other packages using the cache if that directory is
2076 # removed, or if the value is a relative name.
2077 INSTALL=$ac_install_sh
2078 fi
2079fi
2080{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2081echo "${ECHO_T}$INSTALL" >&6; }
2082
2083# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2084# It thinks the first close brace ends the variable substitution.
2085test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2086
2087test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2088
2089test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2090
2091{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2092echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2093# Just in case
2094sleep 1
2095echo timestamp > conftest.file
2096# Do `set' in a subshell so we don't clobber the current shell's
2097# arguments. Must try -L first in case configure is actually a
2098# symlink; some systems play weird games with the mod time of symlinks
2099# (eg FreeBSD returns the mod time of the symlink's containing
2100# directory).
2101if (
2102 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2103 if test "$*" = "X"; then
2104 # -L didn't work.
2105 set X `ls -t $srcdir/configure conftest.file`
2106 fi
2107 rm -f conftest.file
2108 if test "$*" != "X $srcdir/configure conftest.file" \
2109 && test "$*" != "X conftest.file $srcdir/configure"; then
2110
2111 # If neither matched, then we have a broken ls. This can happen
2112 # if, for instance, CONFIG_SHELL is bash and it inherits a
2113 # broken ls alias from the environment. This has actually
2114 # happened. Such a system could not be considered "sane".
2115 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2116alias in your environment" >&5
2117echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2118alias in your environment" >&2;}
2119 { (exit 1); exit 1; }; }
2120 fi
2121
2122 test "$2" = conftest.file
2123 )
2124then
2125 # Ok.
2126 :
2127else
2128 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2129Check your system clock" >&5
2130echo "$as_me: error: newly created file is older than distributed files!
2131Check your system clock" >&2;}
2132 { (exit 1); exit 1; }; }
2133fi
2134{ echo "$as_me:$LINENO: result: yes" >&5
2135echo "${ECHO_T}yes" >&6; }
2136test "$program_prefix" != NONE &&
2137 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2138# Use a double $ so make ignores it.
2139test "$program_suffix" != NONE &&
2140 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2141# Double any \ or $. echo might interpret backslashes.
2142# By default was `s,x,x', remove it if useless.
2143cat <<\_ACEOF >conftest.sed
2144s/[\\$]/&&/g;s/;s,x,x,$//
2145_ACEOF
2146program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2147rm -f conftest.sed
2148
2149# expand $ac_aux_dir to an absolute path
2150am_aux_dir=`cd $ac_aux_dir && pwd`
2151
2152test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2153# Use eval to expand $SHELL
2154if eval "$MISSING --run true"; then
2155 am_missing_run="$MISSING --run "
2156else
2157 am_missing_run=
2158 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2159echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2160fi
2161
2162{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2163echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2164if test -z "$MKDIR_P"; then
2165 if test "${ac_cv_path_mkdir+set}" = set; then
2166 echo $ECHO_N "(cached) $ECHO_C" >&6
2167else
2168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2169for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2170do
2171 IFS=$as_save_IFS
2172 test -z "$as_dir" && as_dir=.
2173 for ac_prog in mkdir gmkdir; do
2174 for ac_exec_ext in '' $ac_executable_extensions; do
2175 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2176 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2177 'mkdir (GNU coreutils) '* | \
2178 'mkdir (coreutils) '* | \
2179 'mkdir (fileutils) '4.1*)
2180 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2181 break 3;;
2182 esac
2183 done
2184 done
2185done
2186IFS=$as_save_IFS
2187
2188fi
2189
2190 if test "${ac_cv_path_mkdir+set}" = set; then
2191 MKDIR_P="$ac_cv_path_mkdir -p"
2192 else
2193 # As a last resort, use the slow shell script. Don't cache a
2194 # value for MKDIR_P within a source directory, because that will
2195 # break other packages using the cache if that directory is
2196 # removed, or if the value is a relative name.
2197 test -d ./--version && rmdir ./--version
2198 MKDIR_P="$ac_install_sh -d"
2199 fi
2200fi
2201{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2202echo "${ECHO_T}$MKDIR_P" >&6; }
2203
2204mkdir_p="$MKDIR_P"
2205case $mkdir_p in
2206 [\\/$]* | ?:[\\/]*) ;;
2207 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2208esac
2209
2210for ac_prog in gawk mawk nawk awk
2211do
2212 # Extract the first word of "$ac_prog", so it can be a program name with args.
2213set dummy $ac_prog; ac_word=$2
2214{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2216if test "${ac_cv_prog_AWK+set}" = set; then
2217 echo $ECHO_N "(cached) $ECHO_C" >&6
2218else
2219 if test -n "$AWK"; then
2220 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2221else
2222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223for as_dir in $PATH
2224do
2225 IFS=$as_save_IFS
2226 test -z "$as_dir" && as_dir=.
2227 for ac_exec_ext in '' $ac_executable_extensions; do
2228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2229 ac_cv_prog_AWK="$ac_prog"
2230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2231 break 2
2232 fi
2233done
2234done
2235IFS=$as_save_IFS
2236
2237fi
2238fi
2239AWK=$ac_cv_prog_AWK
2240if test -n "$AWK"; then
2241 { echo "$as_me:$LINENO: result: $AWK" >&5
2242echo "${ECHO_T}$AWK" >&6; }
2243else
2244 { echo "$as_me:$LINENO: result: no" >&5
2245echo "${ECHO_T}no" >&6; }
2246fi
2247
2248
2249 test -n "$AWK" && break
2250done
2251
2252{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2253echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2254set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2255if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2257else
2258 cat >conftest.make <<\_ACEOF
2259SHELL = /bin/sh
2260all:
2261 @echo '@@@%%%=$(MAKE)=@@@%%%'
2262_ACEOF
2263# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2264case `${MAKE-make} -f conftest.make 2>/dev/null` in
2265 *@@@%%%=?*=@@@%%%*)
2266 eval ac_cv_prog_make_${ac_make}_set=yes;;
2267 *)
2268 eval ac_cv_prog_make_${ac_make}_set=no;;
2269esac
2270rm -f conftest.make
2271fi
2272if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2273 { echo "$as_me:$LINENO: result: yes" >&5
2274echo "${ECHO_T}yes" >&6; }
2275 SET_MAKE=
2276else
2277 { echo "$as_me:$LINENO: result: no" >&5
2278echo "${ECHO_T}no" >&6; }
2279 SET_MAKE="MAKE=${MAKE-make}"
2280fi
2281
2282rm -rf .tst 2>/dev/null
2283mkdir .tst 2>/dev/null
2284if test -d .tst; then
2285 am__leading_dot=.
2286else
2287 am__leading_dot=_
2288fi
2289rmdir .tst 2>/dev/null
2290
2291if test "`cd $srcdir && pwd`" != "`pwd`"; then
2292 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2293 # is not polluted with repeated "-I."
2294 am__isrc=' -I$(srcdir)'
2295 # test to see if srcdir already configured
2296 if test -f $srcdir/config.status; then
2297 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2298echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2299 { (exit 1); exit 1; }; }
2300 fi
2301fi
2302
2303# test whether we have cygpath
2304if test -z "$CYGPATH_W"; then
2305 if (cygpath --version) >/dev/null 2>/dev/null; then
2306 CYGPATH_W='cygpath -w'
2307 else
2308 CYGPATH_W=echo
2309 fi
2310fi
2311
2312
2313# Define the identity of the package.
2314 PACKAGE=libratbox
2315 VERSION=devel
2316
2317
2318# Some tools Automake needs.
2319
2320ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2321
2322
2323AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2324
2325
2326AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2327
2328
2329AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2330
2331
2332MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2333
2334install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2335
2336# Installed binaries are usually stripped using `strip' when the user
2337# run `make install-strip'. However `strip' might not be the right
2338# tool to use in cross-compilation environments, therefore Automake
2339# will honor the `STRIP' environment variable to overrule this program.
2340if test "$cross_compiling" != no; then
2341 if test -n "$ac_tool_prefix"; then
2342 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2343set dummy ${ac_tool_prefix}strip; ac_word=$2
2344{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2346if test "${ac_cv_prog_STRIP+set}" = set; then
2347 echo $ECHO_N "(cached) $ECHO_C" >&6
2348else
2349 if test -n "$STRIP"; then
2350 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2351else
2352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353for as_dir in $PATH
2354do
2355 IFS=$as_save_IFS
2356 test -z "$as_dir" && as_dir=.
2357 for ac_exec_ext in '' $ac_executable_extensions; do
2358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2359 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2361 break 2
2362 fi
2363done
2364done
2365IFS=$as_save_IFS
2366
2367fi
2368fi
2369STRIP=$ac_cv_prog_STRIP
2370if test -n "$STRIP"; then
2371 { echo "$as_me:$LINENO: result: $STRIP" >&5
2372echo "${ECHO_T}$STRIP" >&6; }
2373else
2374 { echo "$as_me:$LINENO: result: no" >&5
2375echo "${ECHO_T}no" >&6; }
2376fi
2377
2378
2379fi
2380if test -z "$ac_cv_prog_STRIP"; then
2381 ac_ct_STRIP=$STRIP
2382 # Extract the first word of "strip", so it can be a program name with args.
2383set dummy strip; ac_word=$2
2384{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2386if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2387 echo $ECHO_N "(cached) $ECHO_C" >&6
2388else
2389 if test -n "$ac_ct_STRIP"; then
2390 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2391else
2392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393for as_dir in $PATH
2394do
2395 IFS=$as_save_IFS
2396 test -z "$as_dir" && as_dir=.
2397 for ac_exec_ext in '' $ac_executable_extensions; do
2398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2399 ac_cv_prog_ac_ct_STRIP="strip"
2400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2401 break 2
2402 fi
2403done
2404done
2405IFS=$as_save_IFS
2406
2407fi
2408fi
2409ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2410if test -n "$ac_ct_STRIP"; then
2411 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2412echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2413else
2414 { echo "$as_me:$LINENO: result: no" >&5
2415echo "${ECHO_T}no" >&6; }
2416fi
2417
2418 if test "x$ac_ct_STRIP" = x; then
2419 STRIP=":"
2420 else
2421 case $cross_compiling:$ac_tool_warned in
2422yes:)
2423{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2424whose name does not start with the host triplet. If you think this
2425configuration is useful to you, please write to autoconf@gnu.org." >&5
2426echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2427whose name does not start with the host triplet. If you think this
2428configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2429ac_tool_warned=yes ;;
2430esac
2431 STRIP=$ac_ct_STRIP
2432 fi
2433else
2434 STRIP="$ac_cv_prog_STRIP"
2435fi
2436
2437fi
2438INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2439
2440# We need awk for the "check" target. The system "awk" is bad on
2441# some platforms.
2442# Always define AMTAR for backward compatibility.
2443
2444AMTAR=${AMTAR-"${am_missing_run}tar"}
2445
2446am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2447
2448
2449
2450
2451
2452
2453ac_config_headers="$ac_config_headers include/libratbox_config.h"
2454
2455
2456
2457
2458cat >>confdefs.h <<\_ACEOF
2459#define _GNU_SOURCE 1
2460_ACEOF
2461
2462
2463
2464DEPDIR="${am__leading_dot}deps"
2465
2466ac_config_commands="$ac_config_commands depfiles"
2467
2468
2469am_make=${MAKE-make}
2470cat > confinc << 'END'
2471am__doit:
2472 @echo done
2473.PHONY: am__doit
2474END
2475# If we don't find an include directive, just comment out the code.
2476{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2477echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2478am__include="#"
2479am__quote=
2480_am_result=none
2481# First try GNU make style include.
2482echo "include confinc" > confmf
2483# We grep out `Entering directory' and `Leaving directory'
2484# messages which can occur if `w' ends up in MAKEFLAGS.
2485# In particular we don't look at `^make:' because GNU make might
2486# be invoked under some other name (usually "gmake"), in which
2487# case it prints its new name instead of `make'.
2488if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2489 am__include=include
2490 am__quote=
2491 _am_result=GNU
2492fi
2493# Now try BSD make style include.
2494if test "$am__include" = "#"; then
2495 echo '.include "confinc"' > confmf
2496 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2497 am__include=.include
2498 am__quote="\""
2499 _am_result=BSD
2500 fi
2501fi
2502
2503
2504{ echo "$as_me:$LINENO: result: $_am_result" >&5
2505echo "${ECHO_T}$_am_result" >&6; }
2506rm -f confinc confmf
2507
2508# Check whether --enable-dependency-tracking was given.
2509if test "${enable_dependency_tracking+set}" = set; then
2510 enableval=$enable_dependency_tracking;
2511fi
2512
2513if test "x$enable_dependency_tracking" != xno; then
2514 am_depcomp="$ac_aux_dir/depcomp"
2515 AMDEPBACKSLASH='\'
2516fi
2517 if test "x$enable_dependency_tracking" != xno; then
2518 AMDEP_TRUE=
2519 AMDEP_FALSE='#'
2520else
2521 AMDEP_TRUE='#'
2522 AMDEP_FALSE=
2523fi
2524
2525
2526ac_ext=c
2527ac_cpp='$CPP $CPPFLAGS'
2528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2530ac_compiler_gnu=$ac_cv_c_compiler_gnu
2531if test -n "$ac_tool_prefix"; then
2532 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2533set dummy ${ac_tool_prefix}gcc; ac_word=$2
2534{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2536if test "${ac_cv_prog_CC+set}" = set; then
2537 echo $ECHO_N "(cached) $ECHO_C" >&6
2538else
2539 if test -n "$CC"; then
2540 ac_cv_prog_CC="$CC" # Let the user override the test.
2541else
2542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543for as_dir in $PATH
2544do
2545 IFS=$as_save_IFS
2546 test -z "$as_dir" && as_dir=.
2547 for ac_exec_ext in '' $ac_executable_extensions; do
2548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2549 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2551 break 2
2552 fi
2553done
2554done
2555IFS=$as_save_IFS
2556
2557fi
2558fi
2559CC=$ac_cv_prog_CC
2560if test -n "$CC"; then
2561 { echo "$as_me:$LINENO: result: $CC" >&5
2562echo "${ECHO_T}$CC" >&6; }
2563else
2564 { echo "$as_me:$LINENO: result: no" >&5
2565echo "${ECHO_T}no" >&6; }
2566fi
2567
2568
2569fi
2570if test -z "$ac_cv_prog_CC"; then
2571 ac_ct_CC=$CC
2572 # Extract the first word of "gcc", so it can be a program name with args.
2573set dummy gcc; ac_word=$2
2574{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2576if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2577 echo $ECHO_N "(cached) $ECHO_C" >&6
2578else
2579 if test -n "$ac_ct_CC"; then
2580 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2581else
2582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583for as_dir in $PATH
2584do
2585 IFS=$as_save_IFS
2586 test -z "$as_dir" && as_dir=.
2587 for ac_exec_ext in '' $ac_executable_extensions; do
2588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2589 ac_cv_prog_ac_ct_CC="gcc"
2590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2591 break 2
2592 fi
2593done
2594done
2595IFS=$as_save_IFS
2596
2597fi
2598fi
2599ac_ct_CC=$ac_cv_prog_ac_ct_CC
2600if test -n "$ac_ct_CC"; then
2601 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2602echo "${ECHO_T}$ac_ct_CC" >&6; }
2603else
2604 { echo "$as_me:$LINENO: result: no" >&5
2605echo "${ECHO_T}no" >&6; }
2606fi
2607
2608 if test "x$ac_ct_CC" = x; then
2609 CC=""
2610 else
2611 case $cross_compiling:$ac_tool_warned in
2612yes:)
2613{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2614whose name does not start with the host triplet. If you think this
2615configuration is useful to you, please write to autoconf@gnu.org." >&5
2616echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2617whose name does not start with the host triplet. If you think this
2618configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2619ac_tool_warned=yes ;;
2620esac
2621 CC=$ac_ct_CC
2622 fi
2623else
2624 CC="$ac_cv_prog_CC"
2625fi
2626
2627if test -z "$CC"; then
2628 if test -n "$ac_tool_prefix"; then
2629 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2630set dummy ${ac_tool_prefix}cc; ac_word=$2
2631{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2633if test "${ac_cv_prog_CC+set}" = set; then
2634 echo $ECHO_N "(cached) $ECHO_C" >&6
2635else
2636 if test -n "$CC"; then
2637 ac_cv_prog_CC="$CC" # Let the user override the test.
2638else
2639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640for as_dir in $PATH
2641do
2642 IFS=$as_save_IFS
2643 test -z "$as_dir" && as_dir=.
2644 for ac_exec_ext in '' $ac_executable_extensions; do
2645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2646 ac_cv_prog_CC="${ac_tool_prefix}cc"
2647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2648 break 2
2649 fi
2650done
2651done
2652IFS=$as_save_IFS
2653
2654fi
2655fi
2656CC=$ac_cv_prog_CC
2657if test -n "$CC"; then
2658 { echo "$as_me:$LINENO: result: $CC" >&5
2659echo "${ECHO_T}$CC" >&6; }
2660else
2661 { echo "$as_me:$LINENO: result: no" >&5
2662echo "${ECHO_T}no" >&6; }
2663fi
2664
2665
2666 fi
2667fi
2668if test -z "$CC"; then
2669 # Extract the first word of "cc", so it can be a program name with args.
2670set dummy cc; ac_word=$2
2671{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2673if test "${ac_cv_prog_CC+set}" = set; then
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
2675else
2676 if test -n "$CC"; then
2677 ac_cv_prog_CC="$CC" # Let the user override the test.
2678else
2679 ac_prog_rejected=no
2680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681for as_dir in $PATH
2682do
2683 IFS=$as_save_IFS
2684 test -z "$as_dir" && as_dir=.
2685 for ac_exec_ext in '' $ac_executable_extensions; do
2686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2687 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2688 ac_prog_rejected=yes
2689 continue
2690 fi
2691 ac_cv_prog_CC="cc"
2692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 break 2
2694 fi
2695done
2696done
2697IFS=$as_save_IFS
2698
2699if test $ac_prog_rejected = yes; then
2700 # We found a bogon in the path, so make sure we never use it.
2701 set dummy $ac_cv_prog_CC
2702 shift
2703 if test $# != 0; then
2704 # We chose a different compiler from the bogus one.
2705 # However, it has the same basename, so the bogon will be chosen
2706 # first if we set CC to just the basename; use the full file name.
2707 shift
2708 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2709 fi
2710fi
2711fi
2712fi
2713CC=$ac_cv_prog_CC
2714if test -n "$CC"; then
2715 { echo "$as_me:$LINENO: result: $CC" >&5
2716echo "${ECHO_T}$CC" >&6; }
2717else
2718 { echo "$as_me:$LINENO: result: no" >&5
2719echo "${ECHO_T}no" >&6; }
2720fi
2721
2722
2723fi
2724if test -z "$CC"; then
2725 if test -n "$ac_tool_prefix"; then
2726 for ac_prog in cl.exe
2727 do
2728 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2729set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2730{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2732if test "${ac_cv_prog_CC+set}" = set; then
2733 echo $ECHO_N "(cached) $ECHO_C" >&6
2734else
2735 if test -n "$CC"; then
2736 ac_cv_prog_CC="$CC" # Let the user override the test.
2737else
2738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739for as_dir in $PATH
2740do
2741 IFS=$as_save_IFS
2742 test -z "$as_dir" && as_dir=.
2743 for ac_exec_ext in '' $ac_executable_extensions; do
2744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2745 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2747 break 2
2748 fi
2749done
2750done
2751IFS=$as_save_IFS
2752
2753fi
2754fi
2755CC=$ac_cv_prog_CC
2756if test -n "$CC"; then
2757 { echo "$as_me:$LINENO: result: $CC" >&5
2758echo "${ECHO_T}$CC" >&6; }
2759else
2760 { echo "$as_me:$LINENO: result: no" >&5
2761echo "${ECHO_T}no" >&6; }
2762fi
2763
2764
2765 test -n "$CC" && break
2766 done
2767fi
2768if test -z "$CC"; then
2769 ac_ct_CC=$CC
2770 for ac_prog in cl.exe
2771do
2772 # Extract the first word of "$ac_prog", so it can be a program name with args.
2773set dummy $ac_prog; ac_word=$2
2774{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2776if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2777 echo $ECHO_N "(cached) $ECHO_C" >&6
2778else
2779 if test -n "$ac_ct_CC"; then
2780 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2781else
2782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783for as_dir in $PATH
2784do
2785 IFS=$as_save_IFS
2786 test -z "$as_dir" && as_dir=.
2787 for ac_exec_ext in '' $ac_executable_extensions; do
2788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2789 ac_cv_prog_ac_ct_CC="$ac_prog"
2790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2791 break 2
2792 fi
2793done
2794done
2795IFS=$as_save_IFS
2796
2797fi
2798fi
2799ac_ct_CC=$ac_cv_prog_ac_ct_CC
2800if test -n "$ac_ct_CC"; then
2801 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2802echo "${ECHO_T}$ac_ct_CC" >&6; }
2803else
2804 { echo "$as_me:$LINENO: result: no" >&5
2805echo "${ECHO_T}no" >&6; }
2806fi
2807
2808
2809 test -n "$ac_ct_CC" && break
2810done
2811
2812 if test "x$ac_ct_CC" = x; then
2813 CC=""
2814 else
2815 case $cross_compiling:$ac_tool_warned in
2816yes:)
2817{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2818whose name does not start with the host triplet. If you think this
2819configuration is useful to you, please write to autoconf@gnu.org." >&5
2820echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2821whose name does not start with the host triplet. If you think this
2822configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2823ac_tool_warned=yes ;;
2824esac
2825 CC=$ac_ct_CC
2826 fi
2827fi
2828
2829fi
2830
2831
2832test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2833See \`config.log' for more details." >&5
2834echo "$as_me: error: no acceptable C compiler found in \$PATH
2835See \`config.log' for more details." >&2;}
2836 { (exit 1); exit 1; }; }
2837
2838# Provide some information about the compiler.
2839echo "$as_me:$LINENO: checking for C compiler version" >&5
2840ac_compiler=`set X $ac_compile; echo $2`
2841{ (ac_try="$ac_compiler --version >&5"
2842case "(($ac_try" in
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2845esac
2846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2847 (eval "$ac_compiler --version >&5") 2>&5
2848 ac_status=$?
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }
2851{ (ac_try="$ac_compiler -v >&5"
2852case "(($ac_try" in
2853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854 *) ac_try_echo=$ac_try;;
2855esac
2856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2857 (eval "$ac_compiler -v >&5") 2>&5
2858 ac_status=$?
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); }
2861{ (ac_try="$ac_compiler -V >&5"
2862case "(($ac_try" in
2863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864 *) ac_try_echo=$ac_try;;
2865esac
2866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2867 (eval "$ac_compiler -V >&5") 2>&5
2868 ac_status=$?
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }
2871
2872cat >conftest.$ac_ext <<_ACEOF
2873/* confdefs.h. */
2874_ACEOF
2875cat confdefs.h >>conftest.$ac_ext
2876cat >>conftest.$ac_ext <<_ACEOF
2877/* end confdefs.h. */
2878
2879int
2880main ()
2881{
2882
2883 ;
2884 return 0;
2885}
2886_ACEOF
2887ac_clean_files_save=$ac_clean_files
2888ac_clean_files="$ac_clean_files a.out a.exe b.out"
2889# Try to create an executable without -o first, disregard a.out.
2890# It will help us diagnose broken compilers, and finding out an intuition
2891# of exeext.
2892{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2893echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2894ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2895#
2896# List of possible output files, starting from the most likely.
2897# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2898# only as a last resort. b.out is created by i960 compilers.
2899ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2900#
2901# The IRIX 6 linker writes into existing files which may not be
2902# executable, retaining their permissions. Remove them first so a
2903# subsequent execution test works.
2904ac_rmfiles=
2905for ac_file in $ac_files
2906do
2907 case $ac_file in
2908 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2909 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2910 esac
2911done
2912rm -f $ac_rmfiles
2913
2914if { (ac_try="$ac_link_default"
2915case "(($ac_try" in
2916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2917 *) ac_try_echo=$ac_try;;
2918esac
2919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2920 (eval "$ac_link_default") 2>&5
2921 ac_status=$?
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); }; then
2924 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2925# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2926# in a Makefile. We should not override ac_cv_exeext if it was cached,
2927# so that the user can short-circuit this test for compilers unknown to
2928# Autoconf.
2929for ac_file in $ac_files ''
2930do
2931 test -f "$ac_file" || continue
2932 case $ac_file in
2933 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2934 ;;
2935 [ab].out )
2936 # We found the default executable, but exeext='' is most
2937 # certainly right.
2938 break;;
2939 *.* )
2940 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2941 then :; else
2942 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2943 fi
2944 # We set ac_cv_exeext here because the later test for it is not
2945 # safe: cross compilers may not add the suffix if given an `-o'
2946 # argument, so we may need to know it at that point already.
2947 # Even if this section looks crufty: it has the advantage of
2948 # actually working.
2949 break;;
2950 * )
2951 break;;
2952 esac
2953done
2954test "$ac_cv_exeext" = no && ac_cv_exeext=
2955
2956else
2957 ac_file=''
2958fi
2959
2960{ echo "$as_me:$LINENO: result: $ac_file" >&5
2961echo "${ECHO_T}$ac_file" >&6; }
2962if test -z "$ac_file"; then
2963 echo "$as_me: failed program was:" >&5
2964sed 's/^/| /' conftest.$ac_ext >&5
2965
2966{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2967See \`config.log' for more details." >&5
2968echo "$as_me: error: C compiler cannot create executables
2969See \`config.log' for more details." >&2;}
2970 { (exit 77); exit 77; }; }
2971fi
2972
2973ac_exeext=$ac_cv_exeext
2974
2975# Check that the compiler produces executables we can run. If not, either
2976# the compiler is broken, or we cross compile.
2977{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2978echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2979# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2980# If not cross compiling, check that we can run a simple program.
2981if test "$cross_compiling" != yes; then
2982 if { ac_try='./$ac_file'
2983 { (case "(($ac_try" in
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2986esac
2987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988 (eval "$ac_try") 2>&5
2989 ac_status=$?
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); }; }; then
2992 cross_compiling=no
2993 else
2994 if test "$cross_compiling" = maybe; then
2995 cross_compiling=yes
2996 else
2997 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2998If you meant to cross compile, use \`--host'.
2999See \`config.log' for more details." >&5
3000echo "$as_me: error: cannot run C compiled programs.
3001If you meant to cross compile, use \`--host'.
3002See \`config.log' for more details." >&2;}
3003 { (exit 1); exit 1; }; }
3004 fi
3005 fi
3006fi
3007{ echo "$as_me:$LINENO: result: yes" >&5
3008echo "${ECHO_T}yes" >&6; }
3009
3010rm -f a.out a.exe conftest$ac_cv_exeext b.out
3011ac_clean_files=$ac_clean_files_save
3012# Check that the compiler produces executables we can run. If not, either
3013# the compiler is broken, or we cross compile.
3014{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3015echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3016{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3017echo "${ECHO_T}$cross_compiling" >&6; }
3018
3019{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3020echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3021if { (ac_try="$ac_link"
3022case "(($ac_try" in
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3025esac
3026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027 (eval "$ac_link") 2>&5
3028 ac_status=$?
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); }; then
3031 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3032# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3033# work properly (i.e., refer to `conftest.exe'), while it won't with
3034# `rm'.
3035for ac_file in conftest.exe conftest conftest.*; do
3036 test -f "$ac_file" || continue
3037 case $ac_file in
3038 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3039 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3040 break;;
3041 * ) break;;
3042 esac
3043done
3044else
3045 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3046See \`config.log' for more details." >&5
3047echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3048See \`config.log' for more details." >&2;}
3049 { (exit 1); exit 1; }; }
3050fi
3051
3052rm -f conftest$ac_cv_exeext
3053{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3054echo "${ECHO_T}$ac_cv_exeext" >&6; }
3055
3056rm -f conftest.$ac_ext
3057EXEEXT=$ac_cv_exeext
3058ac_exeext=$EXEEXT
3059{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3060echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3061if test "${ac_cv_objext+set}" = set; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
3063else
3064 cat >conftest.$ac_ext <<_ACEOF
3065/* confdefs.h. */
3066_ACEOF
3067cat confdefs.h >>conftest.$ac_ext
3068cat >>conftest.$ac_ext <<_ACEOF
3069/* end confdefs.h. */
3070
3071int
3072main ()
3073{
3074
3075 ;
3076 return 0;
3077}
3078_ACEOF
3079rm -f conftest.o conftest.obj
3080if { (ac_try="$ac_compile"
3081case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084esac
3085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086 (eval "$ac_compile") 2>&5
3087 ac_status=$?
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }; then
3090 for ac_file in conftest.o conftest.obj conftest.*; do
3091 test -f "$ac_file" || continue;
3092 case $ac_file in
3093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3094 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3095 break;;
3096 esac
3097done
3098else
3099 echo "$as_me: failed program was:" >&5
3100sed 's/^/| /' conftest.$ac_ext >&5
3101
3102{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3103See \`config.log' for more details." >&5
3104echo "$as_me: error: cannot compute suffix of object files: cannot compile
3105See \`config.log' for more details." >&2;}
3106 { (exit 1); exit 1; }; }
3107fi
3108
3109rm -f conftest.$ac_cv_objext conftest.$ac_ext
3110fi
3111{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3112echo "${ECHO_T}$ac_cv_objext" >&6; }
3113OBJEXT=$ac_cv_objext
3114ac_objext=$OBJEXT
3115{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3116echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3117if test "${ac_cv_c_compiler_gnu+set}" = set; then
3118 echo $ECHO_N "(cached) $ECHO_C" >&6
3119else
3120 cat >conftest.$ac_ext <<_ACEOF
3121/* confdefs.h. */
3122_ACEOF
3123cat confdefs.h >>conftest.$ac_ext
3124cat >>conftest.$ac_ext <<_ACEOF
3125/* end confdefs.h. */
3126
3127int
3128main ()
3129{
3130#ifndef __GNUC__
3131 choke me
3132#endif
3133
3134 ;
3135 return 0;
3136}
3137_ACEOF
3138rm -f conftest.$ac_objext
3139if { (ac_try="$ac_compile"
3140case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143esac
3144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_compile") 2>conftest.er1
3146 ac_status=$?
3147 grep -v '^ *+' conftest.er1 >conftest.err
3148 rm -f conftest.er1
3149 cat conftest.err >&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); } && {
3152 test -z "$ac_c_werror_flag" ||
3153 test ! -s conftest.err
3154 } && test -s conftest.$ac_objext; then
3155 ac_compiler_gnu=yes
3156else
3157 echo "$as_me: failed program was:" >&5
3158sed 's/^/| /' conftest.$ac_ext >&5
3159
3160 ac_compiler_gnu=no
3161fi
3162
3163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3164ac_cv_c_compiler_gnu=$ac_compiler_gnu
3165
3166fi
3167{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3168echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3169GCC=`test $ac_compiler_gnu = yes && echo yes`
3170ac_test_CFLAGS=${CFLAGS+set}
3171ac_save_CFLAGS=$CFLAGS
3172{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3173echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3174if test "${ac_cv_prog_cc_g+set}" = set; then
3175 echo $ECHO_N "(cached) $ECHO_C" >&6
3176else
3177 ac_save_c_werror_flag=$ac_c_werror_flag
3178 ac_c_werror_flag=yes
3179 ac_cv_prog_cc_g=no
3180 CFLAGS="-g"
3181 cat >conftest.$ac_ext <<_ACEOF
3182/* confdefs.h. */
3183_ACEOF
3184cat confdefs.h >>conftest.$ac_ext
3185cat >>conftest.$ac_ext <<_ACEOF
3186/* end confdefs.h. */
3187
3188int
3189main ()
3190{
3191
3192 ;
3193 return 0;
3194}
3195_ACEOF
3196rm -f conftest.$ac_objext
3197if { (ac_try="$ac_compile"
3198case "(($ac_try" in
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3201esac
3202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3203 (eval "$ac_compile") 2>conftest.er1
3204 ac_status=$?
3205 grep -v '^ *+' conftest.er1 >conftest.err
3206 rm -f conftest.er1
3207 cat conftest.err >&5
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); } && {
3210 test -z "$ac_c_werror_flag" ||
3211 test ! -s conftest.err
3212 } && test -s conftest.$ac_objext; then
3213 ac_cv_prog_cc_g=yes
3214else
3215 echo "$as_me: failed program was:" >&5
3216sed 's/^/| /' conftest.$ac_ext >&5
3217
3218 CFLAGS=""
3219 cat >conftest.$ac_ext <<_ACEOF
3220/* confdefs.h. */
3221_ACEOF
3222cat confdefs.h >>conftest.$ac_ext
3223cat >>conftest.$ac_ext <<_ACEOF
3224/* end confdefs.h. */
3225
3226int
3227main ()
3228{
3229
3230 ;
3231 return 0;
3232}
3233_ACEOF
3234rm -f conftest.$ac_objext
3235if { (ac_try="$ac_compile"
3236case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3239esac
3240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241 (eval "$ac_compile") 2>conftest.er1
3242 ac_status=$?
3243 grep -v '^ *+' conftest.er1 >conftest.err
3244 rm -f conftest.er1
3245 cat conftest.err >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); } && {
3248 test -z "$ac_c_werror_flag" ||
3249 test ! -s conftest.err
3250 } && test -s conftest.$ac_objext; then
3251 :
3252else
3253 echo "$as_me: failed program was:" >&5
3254sed 's/^/| /' conftest.$ac_ext >&5
3255
3256 ac_c_werror_flag=$ac_save_c_werror_flag
3257 CFLAGS="-g"
3258 cat >conftest.$ac_ext <<_ACEOF
3259/* confdefs.h. */
3260_ACEOF
3261cat confdefs.h >>conftest.$ac_ext
3262cat >>conftest.$ac_ext <<_ACEOF
3263/* end confdefs.h. */
3264
3265int
3266main ()
3267{
3268
3269 ;
3270 return 0;
3271}
3272_ACEOF
3273rm -f conftest.$ac_objext
3274if { (ac_try="$ac_compile"
3275case "(($ac_try" in
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3278esac
3279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280 (eval "$ac_compile") 2>conftest.er1
3281 ac_status=$?
3282 grep -v '^ *+' conftest.er1 >conftest.err
3283 rm -f conftest.er1
3284 cat conftest.err >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } && {
3287 test -z "$ac_c_werror_flag" ||
3288 test ! -s conftest.err
3289 } && test -s conftest.$ac_objext; then
3290 ac_cv_prog_cc_g=yes
3291else
3292 echo "$as_me: failed program was:" >&5
3293sed 's/^/| /' conftest.$ac_ext >&5
3294
3295
3296fi
3297
3298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3299fi
3300
3301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3302fi
3303
3304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3305 ac_c_werror_flag=$ac_save_c_werror_flag
3306fi
3307{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3308echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3309if test "$ac_test_CFLAGS" = set; then
3310 CFLAGS=$ac_save_CFLAGS
3311elif test $ac_cv_prog_cc_g = yes; then
3312 if test "$GCC" = yes; then
3313 CFLAGS="-g -O2"
3314 else
3315 CFLAGS="-g"
3316 fi
3317else
3318 if test "$GCC" = yes; then
3319 CFLAGS="-O2"
3320 else
3321 CFLAGS=
3322 fi
3323fi
3324{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3325echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3326if test "${ac_cv_prog_cc_c89+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
3328else
3329 ac_cv_prog_cc_c89=no
3330ac_save_CC=$CC
3331cat >conftest.$ac_ext <<_ACEOF
3332/* confdefs.h. */
3333_ACEOF
3334cat confdefs.h >>conftest.$ac_ext
3335cat >>conftest.$ac_ext <<_ACEOF
3336/* end confdefs.h. */
3337#include <stdarg.h>
3338#include <stdio.h>
3339#include <sys/types.h>
3340#include <sys/stat.h>
3341/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3342struct buf { int x; };
3343FILE * (*rcsopen) (struct buf *, struct stat *, int);
3344static char *e (p, i)
3345 char **p;
3346 int i;
3347{
3348 return p[i];
3349}
3350static char *f (char * (*g) (char **, int), char **p, ...)
3351{
3352 char *s;
3353 va_list v;
3354 va_start (v,p);
3355 s = g (p, va_arg (v,int));
3356 va_end (v);
3357 return s;
3358}
3359
3360/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3361 function prototypes and stuff, but not '\xHH' hex character constants.
3362 These don't provoke an error unfortunately, instead are silently treated
3363 as 'x'. The following induces an error, until -std is added to get
3364 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3365 array size at least. It's necessary to write '\x00'==0 to get something
3366 that's true only with -std. */
3367int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3368
3369/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3370 inside strings and character constants. */
3371#define FOO(x) 'x'
3372int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3373
3374int test (int i, double x);
3375struct s1 {int (*f) (int a);};
3376struct s2 {int (*f) (double a);};
3377int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3378int argc;
3379char **argv;
3380int
3381main ()
3382{
3383return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3384 ;
3385 return 0;
3386}
3387_ACEOF
3388for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3389 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3390do
3391 CC="$ac_save_CC $ac_arg"
3392 rm -f conftest.$ac_objext
3393if { (ac_try="$ac_compile"
3394case "(($ac_try" in
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3397esac
3398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399 (eval "$ac_compile") 2>conftest.er1
3400 ac_status=$?
3401 grep -v '^ *+' conftest.er1 >conftest.err
3402 rm -f conftest.er1
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } && {
3406 test -z "$ac_c_werror_flag" ||
3407 test ! -s conftest.err
3408 } && test -s conftest.$ac_objext; then
3409 ac_cv_prog_cc_c89=$ac_arg
3410else
3411 echo "$as_me: failed program was:" >&5
3412sed 's/^/| /' conftest.$ac_ext >&5
3413
3414
3415fi
3416
3417rm -f core conftest.err conftest.$ac_objext
3418 test "x$ac_cv_prog_cc_c89" != "xno" && break
3419done
3420rm -f conftest.$ac_ext
3421CC=$ac_save_CC
3422
3423fi
3424# AC_CACHE_VAL
3425case "x$ac_cv_prog_cc_c89" in
3426 x)
3427 { echo "$as_me:$LINENO: result: none needed" >&5
3428echo "${ECHO_T}none needed" >&6; } ;;
3429 xno)
3430 { echo "$as_me:$LINENO: result: unsupported" >&5
3431echo "${ECHO_T}unsupported" >&6; } ;;
3432 *)
3433 CC="$CC $ac_cv_prog_cc_c89"
3434 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3435echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3436esac
3437
3438
3439ac_ext=c
3440ac_cpp='$CPP $CPPFLAGS'
3441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443ac_compiler_gnu=$ac_cv_c_compiler_gnu
3444
3445depcc="$CC" am_compiler_list=
3446
3447{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3448echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3449if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451else
3452 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3453 # We make a subdir and do the tests there. Otherwise we can end up
3454 # making bogus files that we don't know about and never remove. For
3455 # instance it was reported that on HP-UX the gcc test will end up
3456 # making a dummy file named `D' -- because `-MD' means `put the output
3457 # in D'.
3458 mkdir conftest.dir
3459 # Copy depcomp to subdir because otherwise we won't find it if we're
3460 # using a relative directory.
3461 cp "$am_depcomp" conftest.dir
3462 cd conftest.dir
3463 # We will build objects and dependencies in a subdirectory because
3464 # it helps to detect inapplicable dependency modes. For instance
3465 # both Tru64's cc and ICC support -MD to output dependencies as a
3466 # side effect of compilation, but ICC will put the dependencies in
3467 # the current directory while Tru64 will put them in the object
3468 # directory.
3469 mkdir sub
3470
3471 am_cv_CC_dependencies_compiler_type=none
3472 if test "$am_compiler_list" = ""; then
3473 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3474 fi
3475 for depmode in $am_compiler_list; do
3476 # Setup a source with many dependencies, because some compilers
3477 # like to wrap large dependency lists on column 80 (with \), and
3478 # we should not choose a depcomp mode which is confused by this.
3479 #
3480 # We need to recreate these files for each test, as the compiler may
3481 # overwrite some of them when testing with obscure command lines.
3482 # This happens at least with the AIX C compiler.
3483 : > sub/conftest.c
3484 for i in 1 2 3 4 5 6; do
3485 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3486 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3487 # Solaris 8's {/usr,}/bin/sh.
3488 touch sub/conftst$i.h
3489 done
3490 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3491
3492 case $depmode in
3493 nosideeffect)
3494 # after this tag, mechanisms are not by side-effect, so they'll
3495 # only be used when explicitly requested
3496 if test "x$enable_dependency_tracking" = xyes; then
3497 continue
3498 else
3499 break
3500 fi
3501 ;;
3502 none) break ;;
3503 esac
3504 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3505 # mode. It turns out that the SunPro C++ compiler does not properly
3506 # handle `-M -o', and we need to detect this.
3507 if depmode=$depmode \
3508 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3509 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3510 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3511 >/dev/null 2>conftest.err &&
3512 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3513 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3514 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3515 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3516 # icc doesn't choke on unknown options, it will just issue warnings
3517 # or remarks (even with -Werror). So we grep stderr for any message
3518 # that says an option was ignored or not supported.
3519 # When given -MP, icc 7.0 and 7.1 complain thusly:
3520 # icc: Command line warning: ignoring option '-M'; no argument required
3521 # The diagnosis changed in icc 8.0:
3522 # icc: Command line remark: option '-MP' not supported
3523 if (grep 'ignoring option' conftest.err ||
3524 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3525 am_cv_CC_dependencies_compiler_type=$depmode
3526 break
3527 fi
3528 fi
3529 done
3530
3531 cd ..
3532 rm -rf conftest.dir
3533else
3534 am_cv_CC_dependencies_compiler_type=none
3535fi
3536
3537fi
3538{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3539echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3540CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3541
3542 if
3543 test "x$enable_dependency_tracking" != xno \
3544 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3545 am__fastdepCC_TRUE=
3546 am__fastdepCC_FALSE='#'
3547else
3548 am__fastdepCC_TRUE='#'
3549 am__fastdepCC_FALSE=
3550fi
3551
3552
3553 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3554echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
3555if test "${ac_cv_prog_cc_c99+set}" = set; then
3556 echo $ECHO_N "(cached) $ECHO_C" >&6
3557else
3558 ac_cv_prog_cc_c99=no
3559ac_save_CC=$CC
3560cat >conftest.$ac_ext <<_ACEOF
3561/* confdefs.h. */
3562_ACEOF
3563cat confdefs.h >>conftest.$ac_ext
3564cat >>conftest.$ac_ext <<_ACEOF
3565/* end confdefs.h. */
3566#include <stdarg.h>
3567#include <stdbool.h>
3568#include <stdlib.h>
3569#include <wchar.h>
3570#include <stdio.h>
3571
3572// Check varargs macros. These examples are taken from C99 6.10.3.5.
3573#define debug(...) fprintf (stderr, __VA_ARGS__)
3574#define showlist(...) puts (#__VA_ARGS__)
3575#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3576static void
3577test_varargs_macros (void)
3578{
3579 int x = 1234;
3580 int y = 5678;
3581 debug ("Flag");
3582 debug ("X = %d\n", x);
3583 showlist (The first, second, and third items.);
3584 report (x>y, "x is %d but y is %d", x, y);
3585}
3586
3587// Check long long types.
3588#define BIG64 18446744073709551615ull
3589#define BIG32 4294967295ul
3590#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3591#if !BIG_OK
3592 your preprocessor is broken;
3593#endif
3594#if BIG_OK
3595#else
3596 your preprocessor is broken;
3597#endif
3598static long long int bignum = -9223372036854775807LL;
3599static unsigned long long int ubignum = BIG64;
3600
3601struct incomplete_array
3602{
3603 int datasize;
3604 double data[];
3605};
3606
3607struct named_init {
3608 int number;
3609 const wchar_t *name;
3610 double average;
3611};
3612
3613typedef const char *ccp;
3614
3615static inline int
3616test_restrict (ccp restrict text)
3617{
3618 // See if C++-style comments work.
3619 // Iterate through items via the restricted pointer.
3620 // Also check for declarations in for loops.
3621 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3622 continue;
3623 return 0;
3624}
3625
3626// Check varargs and va_copy.
3627static void
3628test_varargs (const char *format, ...)
3629{
3630 va_list args;
3631 va_start (args, format);
3632 va_list args_copy;
3633 va_copy (args_copy, args);
3634
3635 const char *str;
3636 int number;
3637 float fnumber;
3638
3639 while (*format)
3640 {
3641 switch (*format++)
3642 {
3643 case 's': // string
3644 str = va_arg (args_copy, const char *);
3645 break;
3646 case 'd': // int
3647 number = va_arg (args_copy, int);
3648 break;
3649 case 'f': // float
3650 fnumber = va_arg (args_copy, double);
3651 break;
3652 default:
3653 break;
3654 }
3655 }
3656 va_end (args_copy);
3657 va_end (args);
3658}
3659
3660int
3661main ()
3662{
3663
3664 // Check bool.
3665 _Bool success = false;
3666
3667 // Check restrict.
3668 if (test_restrict ("String literal") == 0)
3669 success = true;
3670 char *restrict newvar = "Another string";
3671
3672 // Check varargs.
3673 test_varargs ("s, d' f .", "string", 65, 34.234);
3674 test_varargs_macros ();
3675
3676 // Check flexible array members.
3677 struct incomplete_array *ia =
3678 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3679 ia->datasize = 10;
3680 for (int i = 0; i < ia->datasize; ++i)
3681 ia->data[i] = i * 1.234;
3682
3683 // Check named initializers.
3684 struct named_init ni = {
3685 .number = 34,
3686 .name = L"Test wide string",
3687 .average = 543.34343,
3688 };
3689
3690 ni.number = 58;
3691
3692 int dynamic_array[ni.number];
3693 dynamic_array[ni.number - 1] = 543;
3694
3695 // work around unused variable warnings
3696 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3697 || dynamic_array[ni.number - 1] != 543);
3698
3699 ;
3700 return 0;
3701}
3702_ACEOF
3703for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3704do
3705 CC="$ac_save_CC $ac_arg"
3706 rm -f conftest.$ac_objext
3707if { (ac_try="$ac_compile"
3708case "(($ac_try" in
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3711esac
3712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3713 (eval "$ac_compile") 2>conftest.er1
3714 ac_status=$?
3715 grep -v '^ *+' conftest.er1 >conftest.err
3716 rm -f conftest.er1
3717 cat conftest.err >&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); } && {
3720 test -z "$ac_c_werror_flag" ||
3721 test ! -s conftest.err
3722 } && test -s conftest.$ac_objext; then
3723 ac_cv_prog_cc_c99=$ac_arg
3724else
3725 echo "$as_me: failed program was:" >&5
3726sed 's/^/| /' conftest.$ac_ext >&5
3727
3728
3729fi
3730
3731rm -f core conftest.err conftest.$ac_objext
3732 test "x$ac_cv_prog_cc_c99" != "xno" && break
3733done
3734rm -f conftest.$ac_ext
3735CC=$ac_save_CC
3736
3737fi
3738# AC_CACHE_VAL
3739case "x$ac_cv_prog_cc_c99" in
3740 x)
3741 { echo "$as_me:$LINENO: result: none needed" >&5
3742echo "${ECHO_T}none needed" >&6; } ;;
3743 xno)
3744 { echo "$as_me:$LINENO: result: unsupported" >&5
3745echo "${ECHO_T}unsupported" >&6; } ;;
3746 *)
3747 CC="$CC $ac_cv_prog_cc_c99"
3748 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3749echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3750esac
3751
3752
3753
3754
3755if test x"$ac_cv_prog_cc_c99" = "xno"; then
3756 { { echo "$as_me:$LINENO: error: ircd-ratbox requires a C99 capable compiler" >&5
3757echo "$as_me: error: ircd-ratbox requires a C99 capable compiler" >&2;}
3758 { (exit 1); exit 1; }; }
3759fi
3760
3761
3762# Find a good install program. We prefer a C program (faster),
3763# so one script is as good as another. But avoid the broken or
3764# incompatible versions:
3765# SysV /etc/install, /usr/sbin/install
3766# SunOS /usr/etc/install
3767# IRIX /sbin/install
3768# AIX /bin/install
3769# AmigaOS /C/install, which installs bootblocks on floppy discs
3770# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3771# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3772# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3773# OS/2's system install, which has a completely different semantic
3774# ./install, which can be erroneously created by make from ./install.sh.
3775{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3776echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3777if test -z "$INSTALL"; then
3778if test "${ac_cv_path_install+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3780else
3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782for as_dir in $PATH
3783do
3784 IFS=$as_save_IFS
3785 test -z "$as_dir" && as_dir=.
3786 # Account for people who put trailing slashes in PATH elements.
3787case $as_dir/ in
3788 ./ | .// | /cC/* | \
3789 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3790 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3791 /usr/ucb/* ) ;;
3792 *)
3793 # OSF1 and SCO ODT 3.0 have their own names for install.
3794 # Don't use installbsd from OSF since it installs stuff as root
3795 # by default.
3796 for ac_prog in ginstall scoinst install; do
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3799 if test $ac_prog = install &&
3800 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3801 # AIX install. It has an incompatible calling convention.
3802 :
3803 elif test $ac_prog = install &&
3804 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3805 # program-specific install script used by HP pwplus--don't use.
3806 :
3807 else
3808 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3809 break 3
3810 fi
3811 fi
3812 done
3813 done
3814 ;;
3815esac
3816done
3817IFS=$as_save_IFS
3818
3819
3820fi
3821 if test "${ac_cv_path_install+set}" = set; then
3822 INSTALL=$ac_cv_path_install
3823 else
3824 # As a last resort, use the slow shell script. Don't cache a
3825 # value for INSTALL within a source directory, because that will
3826 # break other packages using the cache if that directory is
3827 # removed, or if the value is a relative name.
3828 INSTALL=$ac_install_sh
3829 fi
3830fi
3831{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3832echo "${ECHO_T}$INSTALL" >&6; }
3833
3834# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3835# It thinks the first close brace ends the variable substitution.
3836test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3837
3838test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3839
3840test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3841
3842{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3843echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3844if test "${ac_cv_path_GREP+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3846else
3847 # Extract the first word of "grep ggrep" to use in msg output
3848if test -z "$GREP"; then
3849set dummy grep ggrep; ac_prog_name=$2
3850if test "${ac_cv_path_GREP+set}" = set; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3852else
3853 ac_path_GREP_found=false
3854# Loop through the user's path and test for each of PROGNAME-LIST
3855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3857do
3858 IFS=$as_save_IFS
3859 test -z "$as_dir" && as_dir=.
3860 for ac_prog in grep ggrep; do
3861 for ac_exec_ext in '' $ac_executable_extensions; do
3862 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3863 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3864 # Check for GNU ac_path_GREP and select it if it is found.
3865 # Check for GNU $ac_path_GREP
3866case `"$ac_path_GREP" --version 2>&1` in
3867*GNU*)
3868 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3869*)
3870 ac_count=0
3871 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3872 while :
3873 do
3874 cat "conftest.in" "conftest.in" >"conftest.tmp"
3875 mv "conftest.tmp" "conftest.in"
3876 cp "conftest.in" "conftest.nl"
3877 echo 'GREP' >> "conftest.nl"
3878 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3879 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3880 ac_count=`expr $ac_count + 1`
3881 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3882 # Best one so far, save it but keep looking for a better one
3883 ac_cv_path_GREP="$ac_path_GREP"
3884 ac_path_GREP_max=$ac_count
3885 fi
3886 # 10*(2^10) chars as input seems more than enough
3887 test $ac_count -gt 10 && break
3888 done
3889 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3890esac
3891
3892
3893 $ac_path_GREP_found && break 3
3894 done
3895done
3896
3897done
3898IFS=$as_save_IFS
3899
3900
3901fi
3902
3903GREP="$ac_cv_path_GREP"
3904if test -z "$GREP"; then
3905 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3906echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3907 { (exit 1); exit 1; }; }
3908fi
3909
3910else
3911 ac_cv_path_GREP=$GREP
3912fi
3913
3914
3915fi
3916{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3917echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3918 GREP="$ac_cv_path_GREP"
3919
3920
3921{ echo "$as_me:$LINENO: checking for egrep" >&5
3922echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3923if test "${ac_cv_path_EGREP+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3925else
3926 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3927 then ac_cv_path_EGREP="$GREP -E"
3928 else
3929 # Extract the first word of "egrep" to use in msg output
3930if test -z "$EGREP"; then
3931set dummy egrep; ac_prog_name=$2
3932if test "${ac_cv_path_EGREP+set}" = set; then
3933 echo $ECHO_N "(cached) $ECHO_C" >&6
3934else
3935 ac_path_EGREP_found=false
3936# Loop through the user's path and test for each of PROGNAME-LIST
3937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3939do
3940 IFS=$as_save_IFS
3941 test -z "$as_dir" && as_dir=.
3942 for ac_prog in egrep; do
3943 for ac_exec_ext in '' $ac_executable_extensions; do
3944 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3945 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3946 # Check for GNU ac_path_EGREP and select it if it is found.
3947 # Check for GNU $ac_path_EGREP
3948case `"$ac_path_EGREP" --version 2>&1` in
3949*GNU*)
3950 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3951*)
3952 ac_count=0
3953 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3954 while :
3955 do
3956 cat "conftest.in" "conftest.in" >"conftest.tmp"
3957 mv "conftest.tmp" "conftest.in"
3958 cp "conftest.in" "conftest.nl"
3959 echo 'EGREP' >> "conftest.nl"
3960 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3961 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3962 ac_count=`expr $ac_count + 1`
3963 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3964 # Best one so far, save it but keep looking for a better one
3965 ac_cv_path_EGREP="$ac_path_EGREP"
3966 ac_path_EGREP_max=$ac_count
3967 fi
3968 # 10*(2^10) chars as input seems more than enough
3969 test $ac_count -gt 10 && break
3970 done
3971 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3972esac
3973
3974
3975 $ac_path_EGREP_found && break 3
3976 done
3977done
3978
3979done
3980IFS=$as_save_IFS
3981
3982
3983fi
3984
3985EGREP="$ac_cv_path_EGREP"
3986if test -z "$EGREP"; then
3987 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3988echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3989 { (exit 1); exit 1; }; }
3990fi
3991
3992else
3993 ac_cv_path_EGREP=$EGREP
3994fi
3995
3996
3997 fi
3998fi
3999{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4000echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4001 EGREP="$ac_cv_path_EGREP"
4002
4003
4004{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4005echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4006if test "${ac_cv_path_SED+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4008else
4009 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4010 for ac_i in 1 2 3 4 5 6 7; do
4011 ac_script="$ac_script$as_nl$ac_script"
4012 done
4013 echo "$ac_script" | sed 99q >conftest.sed
4014 $as_unset ac_script || ac_script=
4015 # Extract the first word of "sed gsed" to use in msg output
4016if test -z "$SED"; then
4017set dummy sed gsed; ac_prog_name=$2
4018if test "${ac_cv_path_SED+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4020else
4021 ac_path_SED_found=false
4022# Loop through the user's path and test for each of PROGNAME-LIST
4023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024for as_dir in $PATH
4025do
4026 IFS=$as_save_IFS
4027 test -z "$as_dir" && as_dir=.
4028 for ac_prog in sed gsed; do
4029 for ac_exec_ext in '' $ac_executable_extensions; do
4030 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4031 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4032 # Check for GNU ac_path_SED and select it if it is found.
4033 # Check for GNU $ac_path_SED
4034case `"$ac_path_SED" --version 2>&1` in
4035*GNU*)
4036 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4037*)
4038 ac_count=0
4039 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4040 while :
4041 do
4042 cat "conftest.in" "conftest.in" >"conftest.tmp"
4043 mv "conftest.tmp" "conftest.in"
4044 cp "conftest.in" "conftest.nl"
4045 echo '' >> "conftest.nl"
4046 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4047 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4048 ac_count=`expr $ac_count + 1`
4049 if test $ac_count -gt ${ac_path_SED_max-0}; then
4050 # Best one so far, save it but keep looking for a better one
4051 ac_cv_path_SED="$ac_path_SED"
4052 ac_path_SED_max=$ac_count
4053 fi
4054 # 10*(2^10) chars as input seems more than enough
4055 test $ac_count -gt 10 && break
4056 done
4057 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4058esac
4059
4060
4061 $ac_path_SED_found && break 3
4062 done
4063done
4064
4065done
4066IFS=$as_save_IFS
4067
4068
4069fi
4070
4071SED="$ac_cv_path_SED"
4072if test -z "$SED"; then
4073 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
4074echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
4075 { (exit 1); exit 1; }; }
4076fi
4077
4078else
4079 ac_cv_path_SED=$SED
4080fi
4081
4082fi
4083{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4084echo "${ECHO_T}$ac_cv_path_SED" >&6; }
4085 SED="$ac_cv_path_SED"
4086 rm -f conftest.sed
4087
4088
4089F77=no
4090CXX=no
4091GCJ=no
4092
4093# Check whether --enable-static was given.
4094if test "${enable_static+set}" = set; then
4095 enableval=$enable_static; p=${PACKAGE-default}
4096 case $enableval in
4097 yes) enable_static=yes ;;
4098 no) enable_static=no ;;
4099 *)
4100 enable_static=no
4101 # Look at the argument we got. We use all the common list separators.
4102 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4103 for pkg in $enableval; do
4104 IFS="$lt_save_ifs"
4105 if test "X$pkg" = "X$p"; then
4106 enable_static=yes
4107 fi
4108 done
4109 IFS="$lt_save_ifs"
4110 ;;
4111 esac
4112else
4113 enable_static=no
4114fi
4115
4116
4117
4118# Check whether --enable-shared was given.
4119if test "${enable_shared+set}" = set; then
4120 enableval=$enable_shared; p=${PACKAGE-default}
4121 case $enableval in
4122 yes) enable_shared=yes ;;
4123 no) enable_shared=no ;;
4124 *)
4125 enable_shared=no
4126 # Look at the argument we got. We use all the common list separators.
4127 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4128 for pkg in $enableval; do
4129 IFS="$lt_save_ifs"
4130 if test "X$pkg" = "X$p"; then
4131 enable_shared=yes
4132 fi
4133 done
4134 IFS="$lt_save_ifs"
4135 ;;
4136 esac
4137else
4138 enable_shared=yes
4139fi
4140
4141
4142{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4143echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
4144 # Check whether --enable-maintainer-mode was given.
4145if test "${enable_maintainer_mode+set}" = set; then
4146 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4147else
4148 USE_MAINTAINER_MODE=no
4149fi
4150
4151 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4152echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
4153 if test $USE_MAINTAINER_MODE = yes; then
4154 MAINTAINER_MODE_TRUE=
4155 MAINTAINER_MODE_FALSE='#'
4156else
4157 MAINTAINER_MODE_TRUE='#'
4158 MAINTAINER_MODE_FALSE=
4159fi
4160
4161 MAINT=$MAINTAINER_MODE_TRUE
4162
4163
4164
4165
4166{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
4167echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4168if test "${ac_cv_search_strerror+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4170else
4171 ac_func_search_save_LIBS=$LIBS
4172cat >conftest.$ac_ext <<_ACEOF
4173/* confdefs.h. */
4174_ACEOF
4175cat confdefs.h >>conftest.$ac_ext
4176cat >>conftest.$ac_ext <<_ACEOF
4177/* end confdefs.h. */
4178
4179/* Override any GCC internal prototype to avoid an error.
4180 Use char because int might match the return type of a GCC
4181 builtin and then its argument prototype would still apply. */
4182#ifdef __cplusplus
4183extern "C"
4184#endif
4185char strerror ();
4186int
4187main ()
4188{
4189return strerror ();
4190 ;
4191 return 0;
4192}
4193_ACEOF
4194for ac_lib in '' cposix; do
4195 if test -z "$ac_lib"; then
4196 ac_res="none required"
4197 else
4198 ac_res=-l$ac_lib
4199 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4200 fi
4201 rm -f conftest.$ac_objext conftest$ac_exeext
4202if { (ac_try="$ac_link"
4203case "(($ac_try" in
4204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205 *) ac_try_echo=$ac_try;;
4206esac
4207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4208 (eval "$ac_link") 2>conftest.er1
4209 ac_status=$?
4210 grep -v '^ *+' conftest.er1 >conftest.err
4211 rm -f conftest.er1
4212 cat conftest.err >&5
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); } && {
4215 test -z "$ac_c_werror_flag" ||
4216 test ! -s conftest.err
4217 } && test -s conftest$ac_exeext &&
4218 $as_test_x conftest$ac_exeext; then
4219 ac_cv_search_strerror=$ac_res
4220else
4221 echo "$as_me: failed program was:" >&5
4222sed 's/^/| /' conftest.$ac_ext >&5
4223
4224
4225fi
4226
4227rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4228 conftest$ac_exeext
4229 if test "${ac_cv_search_strerror+set}" = set; then
4230 break
4231fi
4232done
4233if test "${ac_cv_search_strerror+set}" = set; then
4234 :
4235else
4236 ac_cv_search_strerror=no
4237fi
4238rm conftest.$ac_ext
4239LIBS=$ac_func_search_save_LIBS
4240fi
4241{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4242echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4243ac_res=$ac_cv_search_strerror
4244if test "$ac_res" != no; then
4245 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4246
4247fi
4248
4249{ echo "$as_me:$LINENO: checking for inline" >&5
4250echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4251if test "${ac_cv_c_inline+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4253else
4254 ac_cv_c_inline=no
4255for ac_kw in inline __inline__ __inline; do
4256 cat >conftest.$ac_ext <<_ACEOF
4257/* confdefs.h. */
4258_ACEOF
4259cat confdefs.h >>conftest.$ac_ext
4260cat >>conftest.$ac_ext <<_ACEOF
4261/* end confdefs.h. */
4262#ifndef __cplusplus
4263typedef int foo_t;
4264static $ac_kw foo_t static_foo () {return 0; }
4265$ac_kw foo_t foo () {return 0; }
4266#endif
4267
4268_ACEOF
4269rm -f conftest.$ac_objext
4270if { (ac_try="$ac_compile"
4271case "(($ac_try" in
4272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273 *) ac_try_echo=$ac_try;;
4274esac
4275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4276 (eval "$ac_compile") 2>conftest.er1
4277 ac_status=$?
4278 grep -v '^ *+' conftest.er1 >conftest.err
4279 rm -f conftest.er1
4280 cat conftest.err >&5
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); } && {
4283 test -z "$ac_c_werror_flag" ||
4284 test ! -s conftest.err
4285 } && test -s conftest.$ac_objext; then
4286 ac_cv_c_inline=$ac_kw
4287else
4288 echo "$as_me: failed program was:" >&5
4289sed 's/^/| /' conftest.$ac_ext >&5
4290
4291
4292fi
4293
4294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4295 test "$ac_cv_c_inline" != no && break
4296done
4297
4298fi
4299{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4300echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4301
4302
4303case $ac_cv_c_inline in
4304 inline | yes) ;;
4305 *)
4306 case $ac_cv_c_inline in
4307 no) ac_val=;;
4308 *) ac_val=$ac_cv_c_inline;;
4309 esac
4310 cat >>confdefs.h <<_ACEOF
4311#ifndef __cplusplus
4312#define inline $ac_val
4313#endif
4314_ACEOF
4315 ;;
4316esac
4317
4318{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4319echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4320if test "${ac_cv_c_const+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4322else
4323 cat >conftest.$ac_ext <<_ACEOF
4324/* confdefs.h. */
4325_ACEOF
4326cat confdefs.h >>conftest.$ac_ext
4327cat >>conftest.$ac_ext <<_ACEOF
4328/* end confdefs.h. */
4329
4330int
4331main ()
4332{
4333/* FIXME: Include the comments suggested by Paul. */
4334#ifndef __cplusplus
4335 /* Ultrix mips cc rejects this. */
4336 typedef int charset[2];
4337 const charset cs;
4338 /* SunOS 4.1.1 cc rejects this. */
4339 char const *const *pcpcc;
4340 char **ppc;
4341 /* NEC SVR4.0.2 mips cc rejects this. */
4342 struct point {int x, y;};
4343 static struct point const zero = {0,0};
4344 /* AIX XL C 1.02.0.0 rejects this.
4345 It does not let you subtract one const X* pointer from another in
4346 an arm of an if-expression whose if-part is not a constant
4347 expression */
4348 const char *g = "string";
4349 pcpcc = &g + (g ? g-g : 0);
4350 /* HPUX 7.0 cc rejects these. */
4351 ++pcpcc;
4352 ppc = (char**) pcpcc;
4353 pcpcc = (char const *const *) ppc;
4354 { /* SCO 3.2v4 cc rejects this. */
4355 char *t;
4356 char const *s = 0 ? (char *) 0 : (char const *) 0;
4357
4358 *t++ = 0;
4359 if (s) return 0;
4360 }
4361 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4362 int x[] = {25, 17};
4363 const int *foo = &x[0];
4364 ++foo;
4365 }
4366 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4367 typedef const int *iptr;
4368 iptr p = 0;
4369 ++p;
4370 }
4371 { /* AIX XL C 1.02.0.0 rejects this saying
4372 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4373 struct s { int j; const int *ap[3]; };
4374 struct s *b; b->j = 5;
4375 }
4376 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4377 const int foo = 10;
4378 if (!foo) return 0;
4379 }
4380 return !cs[0] && !zero.x;
4381#endif
4382
4383 ;
4384 return 0;
4385}
4386_ACEOF
4387rm -f conftest.$ac_objext
4388if { (ac_try="$ac_compile"
4389case "(($ac_try" in
4390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391 *) ac_try_echo=$ac_try;;
4392esac
4393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4394 (eval "$ac_compile") 2>conftest.er1
4395 ac_status=$?
4396 grep -v '^ *+' conftest.er1 >conftest.err
4397 rm -f conftest.er1
4398 cat conftest.err >&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); } && {
4401 test -z "$ac_c_werror_flag" ||
4402 test ! -s conftest.err
4403 } && test -s conftest.$ac_objext; then
4404 ac_cv_c_const=yes
4405else
4406 echo "$as_me: failed program was:" >&5
4407sed 's/^/| /' conftest.$ac_ext >&5
4408
4409 ac_cv_c_const=no
4410fi
4411
4412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4413fi
4414{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4415echo "${ECHO_T}$ac_cv_c_const" >&6; }
4416if test $ac_cv_c_const = no; then
4417
4418cat >>confdefs.h <<\_ACEOF
4419#define const
4420_ACEOF
4421
4422fi
4423
4424{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4425echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4426set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4427if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4429else
4430 cat >conftest.make <<\_ACEOF
4431SHELL = /bin/sh
4432all:
4433 @echo '@@@%%%=$(MAKE)=@@@%%%'
4434_ACEOF
4435# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4436case `${MAKE-make} -f conftest.make 2>/dev/null` in
4437 *@@@%%%=?*=@@@%%%*)
4438 eval ac_cv_prog_make_${ac_make}_set=yes;;
4439 *)
4440 eval ac_cv_prog_make_${ac_make}_set=no;;
4441esac
4442rm -f conftest.make
4443fi
4444if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4445 { echo "$as_me:$LINENO: result: yes" >&5
4446echo "${ECHO_T}yes" >&6; }
4447 SET_MAKE=
4448else
4449 { echo "$as_me:$LINENO: result: no" >&5
4450echo "${ECHO_T}no" >&6; }
4451 SET_MAKE="MAKE=${MAKE-make}"
4452fi
4453
4454# Find a good install program. We prefer a C program (faster),
4455# so one script is as good as another. But avoid the broken or
4456# incompatible versions:
4457# SysV /etc/install, /usr/sbin/install
4458# SunOS /usr/etc/install
4459# IRIX /sbin/install
4460# AIX /bin/install
4461# AmigaOS /C/install, which installs bootblocks on floppy discs
4462# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4463# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4464# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4465# OS/2's system install, which has a completely different semantic
4466# ./install, which can be erroneously created by make from ./install.sh.
4467{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4468echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4469if test -z "$INSTALL"; then
4470if test "${ac_cv_path_install+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4472else
4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474for as_dir in $PATH
4475do
4476 IFS=$as_save_IFS
4477 test -z "$as_dir" && as_dir=.
4478 # Account for people who put trailing slashes in PATH elements.
4479case $as_dir/ in
4480 ./ | .// | /cC/* | \
4481 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4482 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4483 /usr/ucb/* ) ;;
4484 *)
4485 # OSF1 and SCO ODT 3.0 have their own names for install.
4486 # Don't use installbsd from OSF since it installs stuff as root
4487 # by default.
4488 for ac_prog in ginstall scoinst install; do
4489 for ac_exec_ext in '' $ac_executable_extensions; do
4490 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4491 if test $ac_prog = install &&
4492 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4493 # AIX install. It has an incompatible calling convention.
4494 :
4495 elif test $ac_prog = install &&
4496 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4497 # program-specific install script used by HP pwplus--don't use.
4498 :
4499 else
4500 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4501 break 3
4502 fi
4503 fi
4504 done
4505 done
4506 ;;
4507esac
4508done
4509IFS=$as_save_IFS
4510
4511
4512fi
4513 if test "${ac_cv_path_install+set}" = set; then
4514 INSTALL=$ac_cv_path_install
4515 else
4516 # As a last resort, use the slow shell script. Don't cache a
4517 # value for INSTALL within a source directory, because that will
4518 # break other packages using the cache if that directory is
4519 # removed, or if the value is a relative name.
4520 INSTALL=$ac_install_sh
4521 fi
4522fi
4523{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4524echo "${ECHO_T}$INSTALL" >&6; }
4525
4526# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4527# It thinks the first close brace ends the variable substitution.
4528test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4529
4530test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4531
4532test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4533
4534# Extract the first word of "automake", so it can be a program name with args.
4535set dummy automake; ac_word=$2
4536{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4538if test "${ac_cv_path_AUTOMAKE+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4540else
4541 case $AUTOMAKE in
4542 [\\/]* | ?:[\\/]*)
4543 ac_cv_path_AUTOMAKE="$AUTOMAKE" # Let the user override the test with a path.
4544 ;;
4545 *)
4546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547for as_dir in $PATH
4548do
4549 IFS=$as_save_IFS
4550 test -z "$as_dir" && as_dir=.
4551 for ac_exec_ext in '' $ac_executable_extensions; do
4552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4553 ac_cv_path_AUTOMAKE="$as_dir/$ac_word$ac_exec_ext"
4554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4555 break 2
4556 fi
4557done
4558done
4559IFS=$as_save_IFS
4560
4561 ;;
4562esac
4563fi
4564AUTOMAKE=$ac_cv_path_AUTOMAKE
4565if test -n "$AUTOMAKE"; then
4566 { echo "$as_me:$LINENO: result: $AUTOMAKE" >&5
4567echo "${ECHO_T}$AUTOMAKE" >&6; }
4568else
4569 { echo "$as_me:$LINENO: result: no" >&5
4570echo "${ECHO_T}no" >&6; }
4571fi
4572
4573
4574# Extract the first word of "aclocal", so it can be a program name with args.
4575set dummy aclocal; ac_word=$2
4576{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4578if test "${ac_cv_path_ACLOCAL+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4580else
4581 case $ACLOCAL in
4582 [\\/]* | ?:[\\/]*)
4583 ac_cv_path_ACLOCAL="$ACLOCAL" # Let the user override the test with a path.
4584 ;;
4585 *)
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587for as_dir in $PATH
4588do
4589 IFS=$as_save_IFS
4590 test -z "$as_dir" && as_dir=.
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4593 ac_cv_path_ACLOCAL="$as_dir/$ac_word$ac_exec_ext"
4594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4595 break 2
4596 fi
4597done
4598done
4599IFS=$as_save_IFS
4600
4601 ;;
4602esac
4603fi
4604ACLOCAL=$ac_cv_path_ACLOCAL
4605if test -n "$ACLOCAL"; then
4606 { echo "$as_me:$LINENO: result: $ACLOCAL" >&5
4607echo "${ECHO_T}$ACLOCAL" >&6; }
4608else
4609 { echo "$as_me:$LINENO: result: no" >&5
4610echo "${ECHO_T}no" >&6; }
4611fi
4612
4613
4614# Extract the first word of "autoheader", so it can be a program name with args.
4615set dummy autoheader; ac_word=$2
4616{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4618if test "${ac_cv_path_AUTOHEADER+set}" = set; then
4619 echo $ECHO_N "(cached) $ECHO_C" >&6
4620else
4621 case $AUTOHEADER in
4622 [\\/]* | ?:[\\/]*)
4623 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
4624 ;;
4625 *)
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627for as_dir in $PATH
4628do
4629 IFS=$as_save_IFS
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4633 ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext"
4634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4635 break 2
4636 fi
4637done
4638done
4639IFS=$as_save_IFS
4640
4641 ;;
4642esac
4643fi
4644AUTOHEADER=$ac_cv_path_AUTOHEADER
4645if test -n "$AUTOHEADER"; then
4646 { echo "$as_me:$LINENO: result: $AUTOHEADER" >&5
4647echo "${ECHO_T}$AUTOHEADER" >&6; }
4648else
4649 { echo "$as_me:$LINENO: result: no" >&5
4650echo "${ECHO_T}no" >&6; }
4651fi
4652
4653
4654# Extract the first word of "as", so it can be a program name with args.
4655set dummy as; ac_word=$2
4656{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4658if test "${ac_cv_path_AS+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4660else
4661 case $AS in
4662 [\\/]* | ?:[\\/]*)
4663 ac_cv_path_AS="$AS" # Let the user override the test with a path.
4664 ;;
4665 *)
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667for as_dir in $PATH
4668do
4669 IFS=$as_save_IFS
4670 test -z "$as_dir" && as_dir=.
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4673 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
4674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 break 2
4676 fi
4677done
4678done
4679IFS=$as_save_IFS
4680
4681 ;;
4682esac
4683fi
4684AS=$ac_cv_path_AS
4685if test -n "$AS"; then
4686 { echo "$as_me:$LINENO: result: $AS" >&5
4687echo "${ECHO_T}$AS" >&6; }
4688else
4689 { echo "$as_me:$LINENO: result: no" >&5
4690echo "${ECHO_T}no" >&6; }
4691fi
4692
4693
4694# Extract the first word of "rm", so it can be a program name with args.
4695set dummy rm; ac_word=$2
4696{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4698if test "${ac_cv_path_RM+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4700else
4701 case $RM in
4702 [\\/]* | ?:[\\/]*)
4703 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4704 ;;
4705 *)
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707for as_dir in $PATH
4708do
4709 IFS=$as_save_IFS
4710 test -z "$as_dir" && as_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4713 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4715 break 2
4716 fi
4717done
4718done
4719IFS=$as_save_IFS
4720
4721 ;;
4722esac
4723fi
4724RM=$ac_cv_path_RM
4725if test -n "$RM"; then
4726 { echo "$as_me:$LINENO: result: $RM" >&5
4727echo "${ECHO_T}$RM" >&6; }
4728else
4729 { echo "$as_me:$LINENO: result: no" >&5
4730echo "${ECHO_T}no" >&6; }
4731fi
4732
4733
4734# Extract the first word of "cp", so it can be a program name with args.
4735set dummy cp; ac_word=$2
4736{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4738if test "${ac_cv_path_CP+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4740else
4741 case $CP in
4742 [\\/]* | ?:[\\/]*)
4743 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4744 ;;
4745 *)
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747for as_dir in $PATH
4748do
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 break 2
4756 fi
4757done
4758done
4759IFS=$as_save_IFS
4760
4761 ;;
4762esac
4763fi
4764CP=$ac_cv_path_CP
4765if test -n "$CP"; then
4766 { echo "$as_me:$LINENO: result: $CP" >&5
4767echo "${ECHO_T}$CP" >&6; }
4768else
4769 { echo "$as_me:$LINENO: result: no" >&5
4770echo "${ECHO_T}no" >&6; }
4771fi
4772
4773
4774# Extract the first word of "mv", so it can be a program name with args.
4775set dummy mv; ac_word=$2
4776{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4778if test "${ac_cv_path_MV+set}" = set; then
4779 echo $ECHO_N "(cached) $ECHO_C" >&6
4780else
4781 case $MV in
4782 [\\/]* | ?:[\\/]*)
4783 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4784 ;;
4785 *)
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787for as_dir in $PATH
4788do
4789 IFS=$as_save_IFS
4790 test -z "$as_dir" && as_dir=.
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4793 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4795 break 2
4796 fi
4797done
4798done
4799IFS=$as_save_IFS
4800
4801 ;;
4802esac
4803fi
4804MV=$ac_cv_path_MV
4805if test -n "$MV"; then
4806 { echo "$as_me:$LINENO: result: $MV" >&5
4807echo "${ECHO_T}$MV" >&6; }
4808else
4809 { echo "$as_me:$LINENO: result: no" >&5
4810echo "${ECHO_T}no" >&6; }
4811fi
4812
4813
4814# Extract the first word of "ln", so it can be a program name with args.
4815set dummy ln; ac_word=$2
4816{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4818if test "${ac_cv_path_LN+set}" = set; then
4819 echo $ECHO_N "(cached) $ECHO_C" >&6
4820else
4821 case $LN in
4822 [\\/]* | ?:[\\/]*)
4823 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4824 ;;
4825 *)
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827for as_dir in $PATH
4828do
4829 IFS=$as_save_IFS
4830 test -z "$as_dir" && as_dir=.
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4833 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4835 break 2
4836 fi
4837done
4838done
4839IFS=$as_save_IFS
4840
4841 ;;
4842esac
4843fi
4844LN=$ac_cv_path_LN
4845if test -n "$LN"; then
4846 { echo "$as_me:$LINENO: result: $LN" >&5
4847echo "${ECHO_T}$LN" >&6; }
4848else
4849 { echo "$as_me:$LINENO: result: no" >&5
4850echo "${ECHO_T}no" >&6; }
4851fi
4852
4853
b57f37fb
WP
4854# Extract the first word of "touch", so it can be a program name with args.
4855set dummy touch; ac_word=$2
4856{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4858if test "${ac_cv_path_TOUCH+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4860else
4861 case $TOUCH in
4862 [\\/]* | ?:[\\/]*)
4863 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
4864 ;;
4865 *)
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867for as_dir in $PATH
4868do
4869 IFS=$as_save_IFS
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4873 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
4874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 break 2
4876 fi
4877done
4878done
4879IFS=$as_save_IFS
4880
4881 ;;
4882esac
4883fi
4884TOUCH=$ac_cv_path_TOUCH
4885if test -n "$TOUCH"; then
4886 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4887echo "${ECHO_T}$TOUCH" >&6; }
4888else
4889 { echo "$as_me:$LINENO: result: no" >&5
4890echo "${ECHO_T}no" >&6; }
4891fi
4892
4893
4894ac_ext=c
4895ac_cpp='$CPP $CPPFLAGS'
4896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4898ac_compiler_gnu=$ac_cv_c_compiler_gnu
4899
4900
4901# Check whether --enable-fast-install was given.
4902if test "${enable_fast_install+set}" = set; then
4903 enableval=$enable_fast_install; p=${PACKAGE-default}
4904 case $enableval in
4905 yes) enable_fast_install=yes ;;
4906 no) enable_fast_install=no ;;
4907 *)
4908 enable_fast_install=no
4909 # Look at the argument we got. We use all the common list separators.
4910 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4911 for pkg in $enableval; do
4912 IFS="$lt_save_ifs"
4913 if test "X$pkg" = "X$p"; then
4914 enable_fast_install=yes
4915 fi
4916 done
4917 IFS="$lt_save_ifs"
4918 ;;
4919 esac
4920else
4921 enable_fast_install=yes
4922fi
4923
4924
4925# Make sure we can run config.sub.
4926$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4927 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4928echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4929 { (exit 1); exit 1; }; }
4930
4931{ echo "$as_me:$LINENO: checking build system type" >&5
4932echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4933if test "${ac_cv_build+set}" = set; then
4934 echo $ECHO_N "(cached) $ECHO_C" >&6
4935else
4936 ac_build_alias=$build_alias
4937test "x$ac_build_alias" = x &&
4938 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4939test "x$ac_build_alias" = x &&
4940 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4941echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4942 { (exit 1); exit 1; }; }
4943ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4944 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4945echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4946 { (exit 1); exit 1; }; }
4947
4948fi
4949{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4950echo "${ECHO_T}$ac_cv_build" >&6; }
4951case $ac_cv_build in
4952*-*-*) ;;
4953*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4954echo "$as_me: error: invalid value of canonical build" >&2;}
4955 { (exit 1); exit 1; }; };;
4956esac
4957build=$ac_cv_build
4958ac_save_IFS=$IFS; IFS='-'
4959set x $ac_cv_build
4960shift
4961build_cpu=$1
4962build_vendor=$2
4963shift; shift
4964# Remember, the first character of IFS is used to create $*,
4965# except with old shells:
4966build_os=$*
4967IFS=$ac_save_IFS
4968case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4969
4970
4971{ echo "$as_me:$LINENO: checking host system type" >&5
4972echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4973if test "${ac_cv_host+set}" = set; then
4974 echo $ECHO_N "(cached) $ECHO_C" >&6
4975else
4976 if test "x$host_alias" = x; then
4977 ac_cv_host=$ac_cv_build
4978else
4979 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4980 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4981echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4982 { (exit 1); exit 1; }; }
4983fi
4984
4985fi
4986{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4987echo "${ECHO_T}$ac_cv_host" >&6; }
4988case $ac_cv_host in
4989*-*-*) ;;
4990*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4991echo "$as_me: error: invalid value of canonical host" >&2;}
4992 { (exit 1); exit 1; }; };;
4993esac
4994host=$ac_cv_host
4995ac_save_IFS=$IFS; IFS='-'
4996set x $ac_cv_host
4997shift
4998host_cpu=$1
4999host_vendor=$2
5000shift; shift
5001# Remember, the first character of IFS is used to create $*,
5002# except with old shells:
5003host_os=$*
5004IFS=$ac_save_IFS
5005case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5006
5007
5008{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5009echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5010if test "${lt_cv_path_SED+set}" = set; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
5012else
5013 # Loop through the user's path and test for sed and gsed.
5014# Then use that list of sed's as ones to test for truncation.
5015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016for as_dir in $PATH
5017do
5018 IFS=$as_save_IFS
5019 test -z "$as_dir" && as_dir=.
5020 for lt_ac_prog in sed gsed; do
5021 for ac_exec_ext in '' $ac_executable_extensions; do
5022 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5023 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5024 fi
5025 done
5026 done
5027done
5028IFS=$as_save_IFS
5029lt_ac_max=0
5030lt_ac_count=0
5031# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5032# along with /bin/sed that truncates output.
5033for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5034 test ! -f $lt_ac_sed && continue
5035 cat /dev/null > conftest.in
5036 lt_ac_count=0
5037 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5038 # Check for GNU sed and select it if it is found.
5039 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5040 lt_cv_path_SED=$lt_ac_sed
5041 break
5042 fi
5043 while true; do
5044 cat conftest.in conftest.in >conftest.tmp
5045 mv conftest.tmp conftest.in
5046 cp conftest.in conftest.nl
5047 echo >>conftest.nl
5048 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5049 cmp -s conftest.out conftest.nl || break
5050 # 10000 chars as input seems more than enough
5051 test $lt_ac_count -gt 10 && break
5052 lt_ac_count=`expr $lt_ac_count + 1`
5053 if test $lt_ac_count -gt $lt_ac_max; then
5054 lt_ac_max=$lt_ac_count
5055 lt_cv_path_SED=$lt_ac_sed
5056 fi
5057 done
5058done
5059
5060fi
5061
5062SED=$lt_cv_path_SED
5063
5064{ echo "$as_me:$LINENO: result: $SED" >&5
5065echo "${ECHO_T}$SED" >&6; }
5066
5067
5068# Check whether --with-gnu-ld was given.
5069if test "${with_gnu_ld+set}" = set; then
5070 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5071else
5072 with_gnu_ld=no
5073fi
5074
5075ac_prog=ld
5076if test "$GCC" = yes; then
5077 # Check if gcc -print-prog-name=ld gives a path.
5078 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5079echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5080 case $host in
5081 *-*-mingw*)
5082 # gcc leaves a trailing carriage return which upsets mingw
5083 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5084 *)
5085 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5086 esac
5087 case $ac_prog in
5088 # Accept absolute paths.
5089 [\\/]* | ?:[\\/]*)
5090 re_direlt='/[^/][^/]*/\.\./'
5091 # Canonicalize the pathname of ld
5092 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5093 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5094 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5095 done
5096 test -z "$LD" && LD="$ac_prog"
5097 ;;
5098 "")
5099 # If it fails, then pretend we aren't using GCC.
5100 ac_prog=ld
5101 ;;
5102 *)
5103 # If it is relative, then search for the first ld in PATH.
5104 with_gnu_ld=unknown
5105 ;;
5106 esac
5107elif test "$with_gnu_ld" = yes; then
5108 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5109echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5110else
5111 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5112echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5113fi
5114if test "${lt_cv_path_LD+set}" = set; then
5115 echo $ECHO_N "(cached) $ECHO_C" >&6
5116else
5117 if test -z "$LD"; then
5118 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5119 for ac_dir in $PATH; do
5120 IFS="$lt_save_ifs"
5121 test -z "$ac_dir" && ac_dir=.
5122 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5123 lt_cv_path_LD="$ac_dir/$ac_prog"
5124 # Check to see if the program is GNU ld. I'd rather use --version,
5125 # but apparently some variants of GNU ld only accept -v.
5126 # Break only if it was the GNU/non-GNU ld that we prefer.
5127 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5128 *GNU* | *'with BFD'*)
5129 test "$with_gnu_ld" != no && break
5130 ;;
5131 *)
5132 test "$with_gnu_ld" != yes && break
5133 ;;
5134 esac
5135 fi
5136 done
5137 IFS="$lt_save_ifs"
5138else
5139 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5140fi
5141fi
5142
5143LD="$lt_cv_path_LD"
5144if test -n "$LD"; then
5145 { echo "$as_me:$LINENO: result: $LD" >&5
5146echo "${ECHO_T}$LD" >&6; }
5147else
5148 { echo "$as_me:$LINENO: result: no" >&5
5149echo "${ECHO_T}no" >&6; }
5150fi
5151test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5152echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5153 { (exit 1); exit 1; }; }
5154{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5155echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5156if test "${lt_cv_prog_gnu_ld+set}" = set; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
5158else
5159 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5160case `$LD -v 2>&1 </dev/null` in
5161*GNU* | *'with BFD'*)
5162 lt_cv_prog_gnu_ld=yes
5163 ;;
5164*)
5165 lt_cv_prog_gnu_ld=no
5166 ;;
5167esac
5168fi
5169{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5170echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5171with_gnu_ld=$lt_cv_prog_gnu_ld
5172
5173
5174{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5175echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5176if test "${lt_cv_ld_reload_flag+set}" = set; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5178else
5179 lt_cv_ld_reload_flag='-r'
5180fi
5181{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5182echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5183reload_flag=$lt_cv_ld_reload_flag
5184case $reload_flag in
5185"" | " "*) ;;
5186*) reload_flag=" $reload_flag" ;;
5187esac
5188reload_cmds='$LD$reload_flag -o $output$reload_objs'
5189case $host_os in
5190 darwin*)
5191 if test "$GCC" = yes; then
5192 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5193 else
5194 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5195 fi
5196 ;;
5197esac
5198
5199{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5200echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5201if test "${lt_cv_path_NM+set}" = set; then
5202 echo $ECHO_N "(cached) $ECHO_C" >&6
5203else
5204 if test -n "$NM"; then
5205 # Let the user override the test.
5206 lt_cv_path_NM="$NM"
5207else
5208 lt_nm_to_check="${ac_tool_prefix}nm"
5209 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5210 lt_nm_to_check="$lt_nm_to_check nm"
5211 fi
5212 for lt_tmp_nm in $lt_nm_to_check; do
5213 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5214 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5215 IFS="$lt_save_ifs"
5216 test -z "$ac_dir" && ac_dir=.
5217 tmp_nm="$ac_dir/$lt_tmp_nm"
5218 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5219 # Check to see if the nm accepts a BSD-compat flag.
5220 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5221 # nm: unknown option "B" ignored
5222 # Tru64's nm complains that /dev/null is an invalid object file
5223 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5224 */dev/null* | *'Invalid file or object type'*)
5225 lt_cv_path_NM="$tmp_nm -B"
5226 break
5227 ;;
5228 *)
5229 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5230 */dev/null*)
5231 lt_cv_path_NM="$tmp_nm -p"
5232 break
5233 ;;
5234 *)
5235 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5236 continue # so that we can try to find one that supports BSD flags
5237 ;;
5238 esac
5239 ;;
5240 esac
5241 fi
5242 done
5243 IFS="$lt_save_ifs"
5244 done
5245 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5246fi
5247fi
5248{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5249echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5250NM="$lt_cv_path_NM"
5251
5252{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5253echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5254LN_S=$as_ln_s
5255if test "$LN_S" = "ln -s"; then
5256 { echo "$as_me:$LINENO: result: yes" >&5
5257echo "${ECHO_T}yes" >&6; }
5258else
5259 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5260echo "${ECHO_T}no, using $LN_S" >&6; }
5261fi
5262
5263{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5264echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5265if test "${lt_cv_deplibs_check_method+set}" = set; then
5266 echo $ECHO_N "(cached) $ECHO_C" >&6
5267else
5268 lt_cv_file_magic_cmd='$MAGIC_CMD'
5269lt_cv_file_magic_test_file=
5270lt_cv_deplibs_check_method='unknown'
5271# Need to set the preceding variable on all platforms that support
5272# interlibrary dependencies.
5273# 'none' -- dependencies not supported.
5274# `unknown' -- same as none, but documents that we really don't know.
5275# 'pass_all' -- all dependencies passed with no checks.
5276# 'test_compile' -- check by making test program.
5277# 'file_magic [[regex]]' -- check by looking for files in library path
5278# which responds to the $file_magic_cmd with a given extended regex.
5279# If you have `file' or equivalent on your system and you're not sure
5280# whether `pass_all' will *always* work, you probably want this one.
5281
5282case $host_os in
56efe974 5283aix[4-9]*)
b57f37fb
WP
5284 lt_cv_deplibs_check_method=pass_all
5285 ;;
5286
5287beos*)
5288 lt_cv_deplibs_check_method=pass_all
5289 ;;
5290
5291bsdi[45]*)
5292 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5293 lt_cv_file_magic_cmd='/usr/bin/file -L'
5294 lt_cv_file_magic_test_file=/shlib/libc.so
5295 ;;
5296
5297cygwin*)
5298 # func_win32_libid is a shell function defined in ltmain.sh
5299 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5300 lt_cv_file_magic_cmd='func_win32_libid'
5301 ;;
5302
5303mingw* | pw32*)
5304 # Base MSYS/MinGW do not provide the 'file' command needed by
5305 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5306 # unless we find 'file', for example because we are cross-compiling.
5307 if ( file / ) >/dev/null 2>&1; then
5308 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5309 lt_cv_file_magic_cmd='func_win32_libid'
5310 else
5311 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5312 lt_cv_file_magic_cmd='$OBJDUMP -f'
5313 fi
5314 ;;
5315
5316darwin* | rhapsody*)
5317 lt_cv_deplibs_check_method=pass_all
5318 ;;
5319
5320freebsd* | dragonfly*)
5321 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5322 case $host_cpu in
5323 i*86 )
5324 # Not sure whether the presence of OpenBSD here was a mistake.
5325 # Let's accept both of them until this is cleared up.
5326 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5327 lt_cv_file_magic_cmd=/usr/bin/file
5328 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5329 ;;
5330 esac
5331 else
5332 lt_cv_deplibs_check_method=pass_all
5333 fi
5334 ;;
5335
5336gnu*)
5337 lt_cv_deplibs_check_method=pass_all
5338 ;;
5339
5340hpux10.20* | hpux11*)
5341 lt_cv_file_magic_cmd=/usr/bin/file
5342 case $host_cpu in
5343 ia64*)
5344 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5345 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5346 ;;
5347 hppa*64*)
5348 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]'
5349 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5350 ;;
5351 *)
5352 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5353 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5354 ;;
5355 esac
5356 ;;
5357
5358interix[3-9]*)
5359 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5360 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5361 ;;
5362
5363irix5* | irix6* | nonstopux*)
5364 case $LD in
5365 *-32|*"-32 ") libmagic=32-bit;;
5366 *-n32|*"-n32 ") libmagic=N32;;
5367 *-64|*"-64 ") libmagic=64-bit;;
5368 *) libmagic=never-match;;
5369 esac
5370 lt_cv_deplibs_check_method=pass_all
5371 ;;
5372
5373# This must be Linux ELF.
5374linux* | k*bsd*-gnu)
5375 lt_cv_deplibs_check_method=pass_all
5376 ;;
5377
5378netbsd* | netbsdelf*-gnu)
5379 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5380 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5381 else
5382 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5383 fi
5384 ;;
5385
5386newos6*)
5387 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5388 lt_cv_file_magic_cmd=/usr/bin/file
5389 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5390 ;;
5391
5392nto-qnx*)
5393 lt_cv_deplibs_check_method=unknown
5394 ;;
5395
5396openbsd*)
5397 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5398 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5399 else
5400 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5401 fi
5402 ;;
5403
5404osf3* | osf4* | osf5*)
5405 lt_cv_deplibs_check_method=pass_all
5406 ;;
5407
5408rdos*)
5409 lt_cv_deplibs_check_method=pass_all
5410 ;;
5411
5412solaris*)
5413 lt_cv_deplibs_check_method=pass_all
5414 ;;
5415
5416sysv4 | sysv4.3*)
5417 case $host_vendor in
5418 motorola)
5419 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]'
5420 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5421 ;;
5422 ncr)
5423 lt_cv_deplibs_check_method=pass_all
5424 ;;
5425 sequent)
5426 lt_cv_file_magic_cmd='/bin/file'
5427 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5428 ;;
5429 sni)
5430 lt_cv_file_magic_cmd='/bin/file'
5431 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5432 lt_cv_file_magic_test_file=/lib/libc.so
5433 ;;
5434 siemens)
5435 lt_cv_deplibs_check_method=pass_all
5436 ;;
5437 pc)
5438 lt_cv_deplibs_check_method=pass_all
5439 ;;
5440 esac
5441 ;;
5442
5443sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5444 lt_cv_deplibs_check_method=pass_all
5445 ;;
5446esac
5447
5448fi
5449{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5450echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5451file_magic_cmd=$lt_cv_file_magic_cmd
5452deplibs_check_method=$lt_cv_deplibs_check_method
5453test -z "$deplibs_check_method" && deplibs_check_method=unknown
5454
5455
5456
5457
5458# If no C compiler was specified, use CC.
5459LTCC=${LTCC-"$CC"}
5460
5461# If no C compiler flags were specified, use CFLAGS.
5462LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5463
5464# Allow CC to be a program name with arguments.
5465compiler=$CC
5466
5467# Check whether --enable-libtool-lock was given.
5468if test "${enable_libtool_lock+set}" = set; then
5469 enableval=$enable_libtool_lock;
5470fi
5471
5472test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5473
5474# Some flags need to be propagated to the compiler or linker for good
5475# libtool support.
5476case $host in
5477ia64-*-hpux*)
5478 # Find out which ABI we are using.
5479 echo 'int i;' > conftest.$ac_ext
5480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5481 (eval $ac_compile) 2>&5
5482 ac_status=$?
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); }; then
5485 case `/usr/bin/file conftest.$ac_objext` in
5486 *ELF-32*)
5487 HPUX_IA64_MODE="32"
5488 ;;
5489 *ELF-64*)
5490 HPUX_IA64_MODE="64"
5491 ;;
5492 esac
5493 fi
5494 rm -rf conftest*
5495 ;;
5496*-*-irix6*)
5497 # Find out which ABI we are using.
94b4fbf9 5498 echo '#line 5498 "configure"' > conftest.$ac_ext
b57f37fb
WP
5499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5500 (eval $ac_compile) 2>&5
5501 ac_status=$?
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); }; then
5504 if test "$lt_cv_prog_gnu_ld" = yes; then
5505 case `/usr/bin/file conftest.$ac_objext` in
5506 *32-bit*)
5507 LD="${LD-ld} -melf32bsmip"
5508 ;;
5509 *N32*)
5510 LD="${LD-ld} -melf32bmipn32"
5511 ;;
5512 *64-bit*)
5513 LD="${LD-ld} -melf64bmip"
5514 ;;
5515 esac
5516 else
5517 case `/usr/bin/file conftest.$ac_objext` in
5518 *32-bit*)
5519 LD="${LD-ld} -32"
5520 ;;
5521 *N32*)
5522 LD="${LD-ld} -n32"
5523 ;;
5524 *64-bit*)
5525 LD="${LD-ld} -64"
5526 ;;
5527 esac
5528 fi
5529 fi
5530 rm -rf conftest*
5531 ;;
5532
5533x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5534s390*-*linux*|sparc*-*linux*)
5535 # Find out which ABI we are using.
5536 echo 'int i;' > conftest.$ac_ext
5537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5538 (eval $ac_compile) 2>&5
5539 ac_status=$?
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); }; then
5542 case `/usr/bin/file conftest.o` in
5543 *32-bit*)
5544 case $host in
5545 x86_64-*kfreebsd*-gnu)
5546 LD="${LD-ld} -m elf_i386_fbsd"
5547 ;;
5548 x86_64-*linux*)
5549 LD="${LD-ld} -m elf_i386"
5550 ;;
5551 ppc64-*linux*|powerpc64-*linux*)
5552 LD="${LD-ld} -m elf32ppclinux"
5553 ;;
5554 s390x-*linux*)
5555 LD="${LD-ld} -m elf_s390"
5556 ;;
5557 sparc64-*linux*)
5558 LD="${LD-ld} -m elf32_sparc"
5559 ;;
5560 esac
5561 ;;
5562 *64-bit*)
5563 case $host in
5564 x86_64-*kfreebsd*-gnu)
5565 LD="${LD-ld} -m elf_x86_64_fbsd"
5566 ;;
5567 x86_64-*linux*)
5568 LD="${LD-ld} -m elf_x86_64"
5569 ;;
5570 ppc*-*linux*|powerpc*-*linux*)
5571 LD="${LD-ld} -m elf64ppc"
5572 ;;
5573 s390*-*linux*)
5574 LD="${LD-ld} -m elf64_s390"
5575 ;;
5576 sparc*-*linux*)
5577 LD="${LD-ld} -m elf64_sparc"
5578 ;;
5579 esac
5580 ;;
5581 esac
5582 fi
5583 rm -rf conftest*
5584 ;;
5585
5586*-*-sco3.2v5*)
5587 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5588 SAVE_CFLAGS="$CFLAGS"
5589 CFLAGS="$CFLAGS -belf"
5590 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5591echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5592if test "${lt_cv_cc_needs_belf+set}" = set; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5594else
5595 ac_ext=c
5596ac_cpp='$CPP $CPPFLAGS'
5597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5599ac_compiler_gnu=$ac_cv_c_compiler_gnu
5600
5601 cat >conftest.$ac_ext <<_ACEOF
5602/* confdefs.h. */
5603_ACEOF
5604cat confdefs.h >>conftest.$ac_ext
5605cat >>conftest.$ac_ext <<_ACEOF
5606/* end confdefs.h. */
5607
5608int
5609main ()
5610{
5611
5612 ;
5613 return 0;
5614}
5615_ACEOF
5616rm -f conftest.$ac_objext conftest$ac_exeext
5617if { (ac_try="$ac_link"
5618case "(($ac_try" in
5619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5620 *) ac_try_echo=$ac_try;;
5621esac
5622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5623 (eval "$ac_link") 2>conftest.er1
5624 ac_status=$?
5625 grep -v '^ *+' conftest.er1 >conftest.err
5626 rm -f conftest.er1
5627 cat conftest.err >&5
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); } && {
5630 test -z "$ac_c_werror_flag" ||
5631 test ! -s conftest.err
5632 } && test -s conftest$ac_exeext &&
5633 $as_test_x conftest$ac_exeext; then
5634 lt_cv_cc_needs_belf=yes
5635else
5636 echo "$as_me: failed program was:" >&5
5637sed 's/^/| /' conftest.$ac_ext >&5
5638
5639 lt_cv_cc_needs_belf=no
5640fi
5641
5642rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5643 conftest$ac_exeext conftest.$ac_ext
5644 ac_ext=c
5645ac_cpp='$CPP $CPPFLAGS'
5646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5648ac_compiler_gnu=$ac_cv_c_compiler_gnu
5649
5650fi
5651{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5652echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5653 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5654 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5655 CFLAGS="$SAVE_CFLAGS"
5656 fi
5657 ;;
5658sparc*-*solaris*)
5659 # Find out which ABI we are using.
5660 echo 'int i;' > conftest.$ac_ext
5661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5662 (eval $ac_compile) 2>&5
5663 ac_status=$?
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); }; then
5666 case `/usr/bin/file conftest.o` in
5667 *64-bit*)
5668 case $lt_cv_prog_gnu_ld in
5669 yes*) LD="${LD-ld} -m elf64_sparc" ;;
56efe974
WP
5670 *)
5671 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5672 LD="${LD-ld} -64"
5673 fi
5674 ;;
b57f37fb
WP
5675 esac
5676 ;;
5677 esac
5678 fi
5679 rm -rf conftest*
5680 ;;
5681
5682
5683esac
5684
5685need_locks="$enable_libtool_lock"
5686
5687
5688ac_ext=c
5689ac_cpp='$CPP $CPPFLAGS'
5690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5692ac_compiler_gnu=$ac_cv_c_compiler_gnu
5693{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5694echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5695# On Suns, sometimes $CPP names a directory.
5696if test -n "$CPP" && test -d "$CPP"; then
5697 CPP=
5698fi
5699if test -z "$CPP"; then
5700 if test "${ac_cv_prog_CPP+set}" = set; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5702else
5703 # Double quotes because CPP needs to be expanded
5704 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5705 do
5706 ac_preproc_ok=false
5707for ac_c_preproc_warn_flag in '' yes
5708do
5709 # Use a header file that comes with gcc, so configuring glibc
5710 # with a fresh cross-compiler works.
5711 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5712 # <limits.h> exists even on freestanding compilers.
5713 # On the NeXT, cc -E runs the code through the compiler's parser,
5714 # not just through cpp. "Syntax error" is here to catch this case.
5715 cat >conftest.$ac_ext <<_ACEOF
5716/* confdefs.h. */
5717_ACEOF
5718cat confdefs.h >>conftest.$ac_ext
5719cat >>conftest.$ac_ext <<_ACEOF
5720/* end confdefs.h. */
5721#ifdef __STDC__
5722# include <limits.h>
5723#else
5724# include <assert.h>
5725#endif
5726 Syntax error
5727_ACEOF
5728if { (ac_try="$ac_cpp conftest.$ac_ext"
5729case "(($ac_try" in
5730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5731 *) ac_try_echo=$ac_try;;
5732esac
5733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5735 ac_status=$?
5736 grep -v '^ *+' conftest.er1 >conftest.err
5737 rm -f conftest.er1
5738 cat conftest.err >&5
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); } >/dev/null && {
5741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5742 test ! -s conftest.err
5743 }; then
5744 :
5745else
5746 echo "$as_me: failed program was:" >&5
5747sed 's/^/| /' conftest.$ac_ext >&5
5748
5749 # Broken: fails on valid input.
5750continue
5751fi
5752
5753rm -f conftest.err conftest.$ac_ext
5754
5755 # OK, works on sane cases. Now check whether nonexistent headers
5756 # can be detected and how.
5757 cat >conftest.$ac_ext <<_ACEOF
5758/* confdefs.h. */
5759_ACEOF
5760cat confdefs.h >>conftest.$ac_ext
5761cat >>conftest.$ac_ext <<_ACEOF
5762/* end confdefs.h. */
5763#include <ac_nonexistent.h>
5764_ACEOF
5765if { (ac_try="$ac_cpp conftest.$ac_ext"
5766case "(($ac_try" in
5767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5768 *) ac_try_echo=$ac_try;;
5769esac
5770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5772 ac_status=$?
5773 grep -v '^ *+' conftest.er1 >conftest.err
5774 rm -f conftest.er1
5775 cat conftest.err >&5
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); } >/dev/null && {
5778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5779 test ! -s conftest.err
5780 }; then
5781 # Broken: success on invalid input.
5782continue
5783else
5784 echo "$as_me: failed program was:" >&5
5785sed 's/^/| /' conftest.$ac_ext >&5
5786
5787 # Passes both tests.
5788ac_preproc_ok=:
5789break
5790fi
5791
5792rm -f conftest.err conftest.$ac_ext
5793
5794done
5795# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5796rm -f conftest.err conftest.$ac_ext
5797if $ac_preproc_ok; then
5798 break
5799fi
5800
5801 done
5802 ac_cv_prog_CPP=$CPP
5803
5804fi
5805 CPP=$ac_cv_prog_CPP
5806else
5807 ac_cv_prog_CPP=$CPP
5808fi
5809{ echo "$as_me:$LINENO: result: $CPP" >&5
5810echo "${ECHO_T}$CPP" >&6; }
5811ac_preproc_ok=false
5812for ac_c_preproc_warn_flag in '' yes
5813do
5814 # Use a header file that comes with gcc, so configuring glibc
5815 # with a fresh cross-compiler works.
5816 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5817 # <limits.h> exists even on freestanding compilers.
5818 # On the NeXT, cc -E runs the code through the compiler's parser,
5819 # not just through cpp. "Syntax error" is here to catch this case.
5820 cat >conftest.$ac_ext <<_ACEOF
5821/* confdefs.h. */
5822_ACEOF
5823cat confdefs.h >>conftest.$ac_ext
5824cat >>conftest.$ac_ext <<_ACEOF
5825/* end confdefs.h. */
5826#ifdef __STDC__
5827# include <limits.h>
5828#else
5829# include <assert.h>
5830#endif
5831 Syntax error
5832_ACEOF
5833if { (ac_try="$ac_cpp conftest.$ac_ext"
5834case "(($ac_try" in
5835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5836 *) ac_try_echo=$ac_try;;
5837esac
5838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5840 ac_status=$?
5841 grep -v '^ *+' conftest.er1 >conftest.err
5842 rm -f conftest.er1
5843 cat conftest.err >&5
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); } >/dev/null && {
5846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5847 test ! -s conftest.err
5848 }; then
5849 :
5850else
5851 echo "$as_me: failed program was:" >&5
5852sed 's/^/| /' conftest.$ac_ext >&5
5853
5854 # Broken: fails on valid input.
5855continue
5856fi
5857
5858rm -f conftest.err conftest.$ac_ext
5859
5860 # OK, works on sane cases. Now check whether nonexistent headers
5861 # can be detected and how.
5862 cat >conftest.$ac_ext <<_ACEOF
5863/* confdefs.h. */
5864_ACEOF
5865cat confdefs.h >>conftest.$ac_ext
5866cat >>conftest.$ac_ext <<_ACEOF
5867/* end confdefs.h. */
5868#include <ac_nonexistent.h>
5869_ACEOF
5870if { (ac_try="$ac_cpp conftest.$ac_ext"
5871case "(($ac_try" in
5872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5873 *) ac_try_echo=$ac_try;;
5874esac
5875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5877 ac_status=$?
5878 grep -v '^ *+' conftest.er1 >conftest.err
5879 rm -f conftest.er1
5880 cat conftest.err >&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); } >/dev/null && {
5883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5884 test ! -s conftest.err
5885 }; then
5886 # Broken: success on invalid input.
5887continue
5888else
5889 echo "$as_me: failed program was:" >&5
5890sed 's/^/| /' conftest.$ac_ext >&5
5891
5892 # Passes both tests.
5893ac_preproc_ok=:
5894break
5895fi
5896
5897rm -f conftest.err conftest.$ac_ext
5898
5899done
5900# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5901rm -f conftest.err conftest.$ac_ext
5902if $ac_preproc_ok; then
5903 :
5904else
5905 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5906See \`config.log' for more details." >&5
5907echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5908See \`config.log' for more details." >&2;}
5909 { (exit 1); exit 1; }; }
5910fi
5911
5912ac_ext=c
5913ac_cpp='$CPP $CPPFLAGS'
5914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5916ac_compiler_gnu=$ac_cv_c_compiler_gnu
5917
5918
5919{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5920echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5921if test "${ac_cv_header_stdc+set}" = set; then
5922 echo $ECHO_N "(cached) $ECHO_C" >&6
5923else
5924 cat >conftest.$ac_ext <<_ACEOF
5925/* confdefs.h. */
5926_ACEOF
5927cat confdefs.h >>conftest.$ac_ext
5928cat >>conftest.$ac_ext <<_ACEOF
5929/* end confdefs.h. */
5930#include <stdlib.h>
5931#include <stdarg.h>
5932#include <string.h>
5933#include <float.h>
5934
5935int
5936main ()
5937{
5938
5939 ;
5940 return 0;
5941}
5942_ACEOF
5943rm -f conftest.$ac_objext
5944if { (ac_try="$ac_compile"
5945case "(($ac_try" in
5946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5947 *) ac_try_echo=$ac_try;;
5948esac
5949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5950 (eval "$ac_compile") 2>conftest.er1
5951 ac_status=$?
5952 grep -v '^ *+' conftest.er1 >conftest.err
5953 rm -f conftest.er1
5954 cat conftest.err >&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } && {
5957 test -z "$ac_c_werror_flag" ||
5958 test ! -s conftest.err
5959 } && test -s conftest.$ac_objext; then
5960 ac_cv_header_stdc=yes
5961else
5962 echo "$as_me: failed program was:" >&5
5963sed 's/^/| /' conftest.$ac_ext >&5
5964
5965 ac_cv_header_stdc=no
5966fi
5967
5968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5969
5970if test $ac_cv_header_stdc = yes; then
5971 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5972 cat >conftest.$ac_ext <<_ACEOF
5973/* confdefs.h. */
5974_ACEOF
5975cat confdefs.h >>conftest.$ac_ext
5976cat >>conftest.$ac_ext <<_ACEOF
5977/* end confdefs.h. */
5978#include <string.h>
5979
5980_ACEOF
5981if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5982 $EGREP "memchr" >/dev/null 2>&1; then
5983 :
5984else
5985 ac_cv_header_stdc=no
5986fi
5987rm -f conftest*
5988
5989fi
5990
5991if test $ac_cv_header_stdc = yes; then
5992 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5993 cat >conftest.$ac_ext <<_ACEOF
5994/* confdefs.h. */
5995_ACEOF
5996cat confdefs.h >>conftest.$ac_ext
5997cat >>conftest.$ac_ext <<_ACEOF
5998/* end confdefs.h. */
5999#include <stdlib.h>
6000
6001_ACEOF
6002if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6003 $EGREP "free" >/dev/null 2>&1; then
6004 :
6005else
6006 ac_cv_header_stdc=no
6007fi
6008rm -f conftest*
6009
6010fi
6011
6012if test $ac_cv_header_stdc = yes; then
6013 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6014 if test "$cross_compiling" = yes; then
6015 :
6016else
6017 cat >conftest.$ac_ext <<_ACEOF
6018/* confdefs.h. */
6019_ACEOF
6020cat confdefs.h >>conftest.$ac_ext
6021cat >>conftest.$ac_ext <<_ACEOF
6022/* end confdefs.h. */
6023#include <ctype.h>
6024#include <stdlib.h>
6025#if ((' ' & 0x0FF) == 0x020)
6026# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6027# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6028#else
6029# define ISLOWER(c) \
6030 (('a' <= (c) && (c) <= 'i') \
6031 || ('j' <= (c) && (c) <= 'r') \
6032 || ('s' <= (c) && (c) <= 'z'))
6033# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6034#endif
6035
6036#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6037int
6038main ()
6039{
6040 int i;
6041 for (i = 0; i < 256; i++)
6042 if (XOR (islower (i), ISLOWER (i))
6043 || toupper (i) != TOUPPER (i))
6044 return 2;
6045 return 0;
6046}
6047_ACEOF
6048rm -f conftest$ac_exeext
6049if { (ac_try="$ac_link"
6050case "(($ac_try" in
6051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6052 *) ac_try_echo=$ac_try;;
6053esac
6054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6055 (eval "$ac_link") 2>&5
6056 ac_status=$?
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6059 { (case "(($ac_try" in
6060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061 *) ac_try_echo=$ac_try;;
6062esac
6063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6064 (eval "$ac_try") 2>&5
6065 ac_status=$?
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); }; }; then
6068 :
6069else
6070 echo "$as_me: program exited with status $ac_status" >&5
6071echo "$as_me: failed program was:" >&5
6072sed 's/^/| /' conftest.$ac_ext >&5
6073
6074( exit $ac_status )
6075ac_cv_header_stdc=no
6076fi
6077rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6078fi
6079
6080
6081fi
6082fi
6083{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6084echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6085if test $ac_cv_header_stdc = yes; then
6086
6087cat >>confdefs.h <<\_ACEOF
6088#define STDC_HEADERS 1
6089_ACEOF
6090
6091fi
6092
6093# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6104 inttypes.h stdint.h unistd.h
6105do
6106as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6107{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6108echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6109if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6111else
6112 cat >conftest.$ac_ext <<_ACEOF
6113/* confdefs.h. */
6114_ACEOF
6115cat confdefs.h >>conftest.$ac_ext
6116cat >>conftest.$ac_ext <<_ACEOF
6117/* end confdefs.h. */
6118$ac_includes_default
6119
6120#include <$ac_header>
6121_ACEOF
6122rm -f conftest.$ac_objext
6123if { (ac_try="$ac_compile"
6124case "(($ac_try" in
6125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126 *) ac_try_echo=$ac_try;;
6127esac
6128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6129 (eval "$ac_compile") 2>conftest.er1
6130 ac_status=$?
6131 grep -v '^ *+' conftest.er1 >conftest.err
6132 rm -f conftest.er1
6133 cat conftest.err >&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); } && {
6136 test -z "$ac_c_werror_flag" ||
6137 test ! -s conftest.err
6138 } && test -s conftest.$ac_objext; then
6139 eval "$as_ac_Header=yes"
6140else
6141 echo "$as_me: failed program was:" >&5
6142sed 's/^/| /' conftest.$ac_ext >&5
6143
6144 eval "$as_ac_Header=no"
6145fi
6146
6147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6148fi
6149ac_res=`eval echo '${'$as_ac_Header'}'`
6150 { echo "$as_me:$LINENO: result: $ac_res" >&5
6151echo "${ECHO_T}$ac_res" >&6; }
6152if test `eval echo '${'$as_ac_Header'}'` = yes; then
6153 cat >>confdefs.h <<_ACEOF
6154#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6155_ACEOF
6156
6157fi
6158
6159done
6160
6161
6162
6163for ac_header in dlfcn.h
6164do
6165as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6166if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6167 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6168echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6169if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6170 echo $ECHO_N "(cached) $ECHO_C" >&6
6171fi
6172ac_res=`eval echo '${'$as_ac_Header'}'`
6173 { echo "$as_me:$LINENO: result: $ac_res" >&5
6174echo "${ECHO_T}$ac_res" >&6; }
6175else
6176 # Is the header compilable?
6177{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6178echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6179cat >conftest.$ac_ext <<_ACEOF
6180/* confdefs.h. */
6181_ACEOF
6182cat confdefs.h >>conftest.$ac_ext
6183cat >>conftest.$ac_ext <<_ACEOF
6184/* end confdefs.h. */
6185$ac_includes_default
6186#include <$ac_header>
6187_ACEOF
6188rm -f conftest.$ac_objext
6189if { (ac_try="$ac_compile"
6190case "(($ac_try" in
6191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6192 *) ac_try_echo=$ac_try;;
6193esac
6194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6195 (eval "$ac_compile") 2>conftest.er1
6196 ac_status=$?
6197 grep -v '^ *+' conftest.er1 >conftest.err
6198 rm -f conftest.er1
6199 cat conftest.err >&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); } && {
6202 test -z "$ac_c_werror_flag" ||
6203 test ! -s conftest.err
6204 } && test -s conftest.$ac_objext; then
6205 ac_header_compiler=yes
6206else
6207 echo "$as_me: failed program was:" >&5
6208sed 's/^/| /' conftest.$ac_ext >&5
6209
6210 ac_header_compiler=no
6211fi
6212
6213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6214{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6215echo "${ECHO_T}$ac_header_compiler" >&6; }
6216
6217# Is the header present?
6218{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6219echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6220cat >conftest.$ac_ext <<_ACEOF
6221/* confdefs.h. */
6222_ACEOF
6223cat confdefs.h >>conftest.$ac_ext
6224cat >>conftest.$ac_ext <<_ACEOF
6225/* end confdefs.h. */
6226#include <$ac_header>
6227_ACEOF
6228if { (ac_try="$ac_cpp conftest.$ac_ext"
6229case "(($ac_try" in
6230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6231 *) ac_try_echo=$ac_try;;
6232esac
6233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6235 ac_status=$?
6236 grep -v '^ *+' conftest.er1 >conftest.err
6237 rm -f conftest.er1
6238 cat conftest.err >&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); } >/dev/null && {
6241 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6242 test ! -s conftest.err
6243 }; then
6244 ac_header_preproc=yes
6245else
6246 echo "$as_me: failed program was:" >&5
6247sed 's/^/| /' conftest.$ac_ext >&5
6248
6249 ac_header_preproc=no
6250fi
6251
6252rm -f conftest.err conftest.$ac_ext
6253{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6254echo "${ECHO_T}$ac_header_preproc" >&6; }
6255
6256# So? What about this header?
6257case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6258 yes:no: )
6259 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6260echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6262echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6263 ac_header_preproc=yes
6264 ;;
6265 no:yes:* )
6266 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6267echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6268 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6269echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6270 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6271echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6272 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6273echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6275echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6276 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6277echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6278
6279 ;;
6280esac
6281{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6282echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6283if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6284 echo $ECHO_N "(cached) $ECHO_C" >&6
6285else
6286 eval "$as_ac_Header=\$ac_header_preproc"
6287fi
6288ac_res=`eval echo '${'$as_ac_Header'}'`
6289 { echo "$as_me:$LINENO: result: $ac_res" >&5
6290echo "${ECHO_T}$ac_res" >&6; }
6291
6292fi
6293if test `eval echo '${'$as_ac_Header'}'` = yes; then
6294 cat >>confdefs.h <<_ACEOF
6295#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6296_ACEOF
6297
6298fi
6299
6300done
6301
6302ac_ext=cpp
6303ac_cpp='$CXXCPP $CPPFLAGS'
6304ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6305ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6306ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6307if test -z "$CXX"; then
6308 if test -n "$CCC"; then
6309 CXX=$CCC
6310 else
6311 if test -n "$ac_tool_prefix"; then
6312 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6313 do
6314 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6315set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6316{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6318if test "${ac_cv_prog_CXX+set}" = set; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6320else
6321 if test -n "$CXX"; then
6322 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6323else
6324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325for as_dir in $PATH
6326do
6327 IFS=$as_save_IFS
6328 test -z "$as_dir" && as_dir=.
6329 for ac_exec_ext in '' $ac_executable_extensions; do
6330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6331 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6333 break 2
6334 fi
6335done
6336done
6337IFS=$as_save_IFS
6338
6339fi
6340fi
6341CXX=$ac_cv_prog_CXX
6342if test -n "$CXX"; then
6343 { echo "$as_me:$LINENO: result: $CXX" >&5
6344echo "${ECHO_T}$CXX" >&6; }
6345else
6346 { echo "$as_me:$LINENO: result: no" >&5
6347echo "${ECHO_T}no" >&6; }
6348fi
6349
6350
6351 test -n "$CXX" && break
6352 done
6353fi
6354if test -z "$CXX"; then
6355 ac_ct_CXX=$CXX
6356 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6357do
6358 # Extract the first word of "$ac_prog", so it can be a program name with args.
6359set dummy $ac_prog; ac_word=$2
6360{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6362if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6363 echo $ECHO_N "(cached) $ECHO_C" >&6
6364else
6365 if test -n "$ac_ct_CXX"; then
6366 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6367else
6368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369for as_dir in $PATH
6370do
6371 IFS=$as_save_IFS
6372 test -z "$as_dir" && as_dir=.
6373 for ac_exec_ext in '' $ac_executable_extensions; do
6374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6375 ac_cv_prog_ac_ct_CXX="$ac_prog"
6376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6377 break 2
6378 fi
6379done
6380done
6381IFS=$as_save_IFS
6382
6383fi
6384fi
6385ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6386if test -n "$ac_ct_CXX"; then
6387 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6388echo "${ECHO_T}$ac_ct_CXX" >&6; }
6389else
6390 { echo "$as_me:$LINENO: result: no" >&5
6391echo "${ECHO_T}no" >&6; }
6392fi
6393
6394
6395 test -n "$ac_ct_CXX" && break
6396done
6397
6398 if test "x$ac_ct_CXX" = x; then
6399 CXX="g++"
6400 else
6401 case $cross_compiling:$ac_tool_warned in
6402yes:)
6403{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6404whose name does not start with the host triplet. If you think this
6405configuration is useful to you, please write to autoconf@gnu.org." >&5
6406echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6407whose name does not start with the host triplet. If you think this
6408configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6409ac_tool_warned=yes ;;
6410esac
6411 CXX=$ac_ct_CXX
6412 fi
6413fi
6414
6415 fi
6416fi
6417# Provide some information about the compiler.
6418echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6419ac_compiler=`set X $ac_compile; echo $2`
6420{ (ac_try="$ac_compiler --version >&5"
6421case "(($ac_try" in
6422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6423 *) ac_try_echo=$ac_try;;
6424esac
6425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6426 (eval "$ac_compiler --version >&5") 2>&5
6427 ac_status=$?
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); }
6430{ (ac_try="$ac_compiler -v >&5"
6431case "(($ac_try" in
6432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6433 *) ac_try_echo=$ac_try;;
6434esac
6435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6436 (eval "$ac_compiler -v >&5") 2>&5
6437 ac_status=$?
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); }
6440{ (ac_try="$ac_compiler -V >&5"
6441case "(($ac_try" in
6442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6443 *) ac_try_echo=$ac_try;;
6444esac
6445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6446 (eval "$ac_compiler -V >&5") 2>&5
6447 ac_status=$?
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }
6450
6451{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6452echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6453if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6454 echo $ECHO_N "(cached) $ECHO_C" >&6
6455else
6456 cat >conftest.$ac_ext <<_ACEOF
6457/* confdefs.h. */
6458_ACEOF
6459cat confdefs.h >>conftest.$ac_ext
6460cat >>conftest.$ac_ext <<_ACEOF
6461/* end confdefs.h. */
6462
6463int
6464main ()
6465{
6466#ifndef __GNUC__
6467 choke me
6468#endif
6469
6470 ;
6471 return 0;
6472}
6473_ACEOF
6474rm -f conftest.$ac_objext
6475if { (ac_try="$ac_compile"
6476case "(($ac_try" in
6477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6478 *) ac_try_echo=$ac_try;;
6479esac
6480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6481 (eval "$ac_compile") 2>conftest.er1
6482 ac_status=$?
6483 grep -v '^ *+' conftest.er1 >conftest.err
6484 rm -f conftest.er1
6485 cat conftest.err >&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } && {
6488 test -z "$ac_cxx_werror_flag" ||
6489 test ! -s conftest.err
6490 } && test -s conftest.$ac_objext; then
6491 ac_compiler_gnu=yes
6492else
6493 echo "$as_me: failed program was:" >&5
6494sed 's/^/| /' conftest.$ac_ext >&5
6495
6496 ac_compiler_gnu=no
6497fi
6498
6499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6500ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6501
6502fi
6503{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6504echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6505GXX=`test $ac_compiler_gnu = yes && echo yes`
6506ac_test_CXXFLAGS=${CXXFLAGS+set}
6507ac_save_CXXFLAGS=$CXXFLAGS
6508{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6509echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6510if test "${ac_cv_prog_cxx_g+set}" = set; then
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
6512else
6513 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6514 ac_cxx_werror_flag=yes
6515 ac_cv_prog_cxx_g=no
6516 CXXFLAGS="-g"
6517 cat >conftest.$ac_ext <<_ACEOF
6518/* confdefs.h. */
6519_ACEOF
6520cat confdefs.h >>conftest.$ac_ext
6521cat >>conftest.$ac_ext <<_ACEOF
6522/* end confdefs.h. */
6523
6524int
6525main ()
6526{
6527
6528 ;
6529 return 0;
6530}
6531_ACEOF
6532rm -f conftest.$ac_objext
6533if { (ac_try="$ac_compile"
6534case "(($ac_try" in
6535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6536 *) ac_try_echo=$ac_try;;
6537esac
6538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6539 (eval "$ac_compile") 2>conftest.er1
6540 ac_status=$?
6541 grep -v '^ *+' conftest.er1 >conftest.err
6542 rm -f conftest.er1
6543 cat conftest.err >&5
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); } && {
6546 test -z "$ac_cxx_werror_flag" ||
6547 test ! -s conftest.err
6548 } && test -s conftest.$ac_objext; then
6549 ac_cv_prog_cxx_g=yes
6550else
6551 echo "$as_me: failed program was:" >&5
6552sed 's/^/| /' conftest.$ac_ext >&5
6553
6554 CXXFLAGS=""
6555 cat >conftest.$ac_ext <<_ACEOF
6556/* confdefs.h. */
6557_ACEOF
6558cat confdefs.h >>conftest.$ac_ext
6559cat >>conftest.$ac_ext <<_ACEOF
6560/* end confdefs.h. */
6561
6562int
6563main ()
6564{
6565
6566 ;
6567 return 0;
6568}
6569_ACEOF
6570rm -f conftest.$ac_objext
6571if { (ac_try="$ac_compile"
6572case "(($ac_try" in
6573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6574 *) ac_try_echo=$ac_try;;
6575esac
6576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6577 (eval "$ac_compile") 2>conftest.er1
6578 ac_status=$?
6579 grep -v '^ *+' conftest.er1 >conftest.err
6580 rm -f conftest.er1
6581 cat conftest.err >&5
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); } && {
6584 test -z "$ac_cxx_werror_flag" ||
6585 test ! -s conftest.err
6586 } && test -s conftest.$ac_objext; then
6587 :
6588else
6589 echo "$as_me: failed program was:" >&5
6590sed 's/^/| /' conftest.$ac_ext >&5
6591
6592 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6593 CXXFLAGS="-g"
6594 cat >conftest.$ac_ext <<_ACEOF
6595/* confdefs.h. */
6596_ACEOF
6597cat confdefs.h >>conftest.$ac_ext
6598cat >>conftest.$ac_ext <<_ACEOF
6599/* end confdefs.h. */
6600
6601int
6602main ()
6603{
6604
6605 ;
6606 return 0;
6607}
6608_ACEOF
6609rm -f conftest.$ac_objext
6610if { (ac_try="$ac_compile"
6611case "(($ac_try" in
6612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6613 *) ac_try_echo=$ac_try;;
6614esac
6615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6616 (eval "$ac_compile") 2>conftest.er1
6617 ac_status=$?
6618 grep -v '^ *+' conftest.er1 >conftest.err
6619 rm -f conftest.er1
6620 cat conftest.err >&5
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); } && {
6623 test -z "$ac_cxx_werror_flag" ||
6624 test ! -s conftest.err
6625 } && test -s conftest.$ac_objext; then
6626 ac_cv_prog_cxx_g=yes
6627else
6628 echo "$as_me: failed program was:" >&5
6629sed 's/^/| /' conftest.$ac_ext >&5
6630
6631
6632fi
6633
6634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6635fi
6636
6637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6638fi
6639
6640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6641 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6642fi
6643{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6644echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6645if test "$ac_test_CXXFLAGS" = set; then
6646 CXXFLAGS=$ac_save_CXXFLAGS
6647elif test $ac_cv_prog_cxx_g = yes; then
6648 if test "$GXX" = yes; then
6649 CXXFLAGS="-g -O2"
6650 else
6651 CXXFLAGS="-g"
6652 fi
6653else
6654 if test "$GXX" = yes; then
6655 CXXFLAGS="-O2"
6656 else
6657 CXXFLAGS=
6658 fi
6659fi
6660ac_ext=cpp
6661ac_cpp='$CXXCPP $CPPFLAGS'
6662ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6663ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6664ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6665
6666depcc="$CXX" am_compiler_list=
6667
6668{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6669echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6670if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6672else
6673 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6674 # We make a subdir and do the tests there. Otherwise we can end up
6675 # making bogus files that we don't know about and never remove. For
6676 # instance it was reported that on HP-UX the gcc test will end up
6677 # making a dummy file named `D' -- because `-MD' means `put the output
6678 # in D'.
6679 mkdir conftest.dir
6680 # Copy depcomp to subdir because otherwise we won't find it if we're
6681 # using a relative directory.
6682 cp "$am_depcomp" conftest.dir
6683 cd conftest.dir
6684 # We will build objects and dependencies in a subdirectory because
6685 # it helps to detect inapplicable dependency modes. For instance
6686 # both Tru64's cc and ICC support -MD to output dependencies as a
6687 # side effect of compilation, but ICC will put the dependencies in
6688 # the current directory while Tru64 will put them in the object
6689 # directory.
6690 mkdir sub
6691
6692 am_cv_CXX_dependencies_compiler_type=none
6693 if test "$am_compiler_list" = ""; then
6694 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6695 fi
6696 for depmode in $am_compiler_list; do
6697 # Setup a source with many dependencies, because some compilers
6698 # like to wrap large dependency lists on column 80 (with \), and
6699 # we should not choose a depcomp mode which is confused by this.
6700 #
6701 # We need to recreate these files for each test, as the compiler may
6702 # overwrite some of them when testing with obscure command lines.
6703 # This happens at least with the AIX C compiler.
6704 : > sub/conftest.c
6705 for i in 1 2 3 4 5 6; do
6706 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6707 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6708 # Solaris 8's {/usr,}/bin/sh.
6709 touch sub/conftst$i.h
6710 done
6711 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6712
6713 case $depmode in
6714 nosideeffect)
6715 # after this tag, mechanisms are not by side-effect, so they'll
6716 # only be used when explicitly requested
6717 if test "x$enable_dependency_tracking" = xyes; then
6718 continue
6719 else
6720 break
6721 fi
6722 ;;
6723 none) break ;;
6724 esac
6725 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6726 # mode. It turns out that the SunPro C++ compiler does not properly
6727 # handle `-M -o', and we need to detect this.
6728 if depmode=$depmode \
6729 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6730 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6731 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6732 >/dev/null 2>conftest.err &&
6733 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6734 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6735 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6736 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6737 # icc doesn't choke on unknown options, it will just issue warnings
6738 # or remarks (even with -Werror). So we grep stderr for any message
6739 # that says an option was ignored or not supported.
6740 # When given -MP, icc 7.0 and 7.1 complain thusly:
6741 # icc: Command line warning: ignoring option '-M'; no argument required
6742 # The diagnosis changed in icc 8.0:
6743 # icc: Command line remark: option '-MP' not supported
6744 if (grep 'ignoring option' conftest.err ||
6745 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6746 am_cv_CXX_dependencies_compiler_type=$depmode
6747 break
6748 fi
6749 fi
6750 done
6751
6752 cd ..
6753 rm -rf conftest.dir
6754else
6755 am_cv_CXX_dependencies_compiler_type=none
6756fi
6757
6758fi
6759{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6760echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6761CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6762
6763 if
6764 test "x$enable_dependency_tracking" != xno \
6765 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6766 am__fastdepCXX_TRUE=
6767 am__fastdepCXX_FALSE='#'
6768else
6769 am__fastdepCXX_TRUE='#'
6770 am__fastdepCXX_FALSE=
6771fi
6772
6773
6774
6775
6776if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6777 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6778 (test "X$CXX" != "Xg++"))) ; then
6779 ac_ext=cpp
6780ac_cpp='$CXXCPP $CPPFLAGS'
6781ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6782ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6783ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6784{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6785echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6786if test -z "$CXXCPP"; then
6787 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6788 echo $ECHO_N "(cached) $ECHO_C" >&6
6789else
6790 # Double quotes because CXXCPP needs to be expanded
6791 for CXXCPP in "$CXX -E" "/lib/cpp"
6792 do
6793 ac_preproc_ok=false
6794for ac_cxx_preproc_warn_flag in '' yes
6795do
6796 # Use a header file that comes with gcc, so configuring glibc
6797 # with a fresh cross-compiler works.
6798 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6799 # <limits.h> exists even on freestanding compilers.
6800 # On the NeXT, cc -E runs the code through the compiler's parser,
6801 # not just through cpp. "Syntax error" is here to catch this case.
6802 cat >conftest.$ac_ext <<_ACEOF
6803/* confdefs.h. */
6804_ACEOF
6805cat confdefs.h >>conftest.$ac_ext
6806cat >>conftest.$ac_ext <<_ACEOF
6807/* end confdefs.h. */
6808#ifdef __STDC__
6809# include <limits.h>
6810#else
6811# include <assert.h>
6812#endif
6813 Syntax error
6814_ACEOF
6815if { (ac_try="$ac_cpp conftest.$ac_ext"
6816case "(($ac_try" in
6817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6818 *) ac_try_echo=$ac_try;;
6819esac
6820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6822 ac_status=$?
6823 grep -v '^ *+' conftest.er1 >conftest.err
6824 rm -f conftest.er1
6825 cat conftest.err >&5
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); } >/dev/null && {
6828 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6829 test ! -s conftest.err
6830 }; then
6831 :
6832else
6833 echo "$as_me: failed program was:" >&5
6834sed 's/^/| /' conftest.$ac_ext >&5
6835
6836 # Broken: fails on valid input.
6837continue
6838fi
6839
6840rm -f conftest.err conftest.$ac_ext
6841
6842 # OK, works on sane cases. Now check whether nonexistent headers
6843 # can be detected and how.
6844 cat >conftest.$ac_ext <<_ACEOF
6845/* confdefs.h. */
6846_ACEOF
6847cat confdefs.h >>conftest.$ac_ext
6848cat >>conftest.$ac_ext <<_ACEOF
6849/* end confdefs.h. */
6850#include <ac_nonexistent.h>
6851_ACEOF
6852if { (ac_try="$ac_cpp conftest.$ac_ext"
6853case "(($ac_try" in
6854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6855 *) ac_try_echo=$ac_try;;
6856esac
6857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6859 ac_status=$?
6860 grep -v '^ *+' conftest.er1 >conftest.err
6861 rm -f conftest.er1
6862 cat conftest.err >&5
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); } >/dev/null && {
6865 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6866 test ! -s conftest.err
6867 }; then
6868 # Broken: success on invalid input.
6869continue
6870else
6871 echo "$as_me: failed program was:" >&5
6872sed 's/^/| /' conftest.$ac_ext >&5
6873
6874 # Passes both tests.
6875ac_preproc_ok=:
6876break
6877fi
6878
6879rm -f conftest.err conftest.$ac_ext
6880
6881done
6882# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6883rm -f conftest.err conftest.$ac_ext
6884if $ac_preproc_ok; then
6885 break
6886fi
6887
6888 done
6889 ac_cv_prog_CXXCPP=$CXXCPP
6890
6891fi
6892 CXXCPP=$ac_cv_prog_CXXCPP
6893else
6894 ac_cv_prog_CXXCPP=$CXXCPP
6895fi
6896{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6897echo "${ECHO_T}$CXXCPP" >&6; }
6898ac_preproc_ok=false
6899for ac_cxx_preproc_warn_flag in '' yes
6900do
6901 # Use a header file that comes with gcc, so configuring glibc
6902 # with a fresh cross-compiler works.
6903 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6904 # <limits.h> exists even on freestanding compilers.
6905 # On the NeXT, cc -E runs the code through the compiler's parser,
6906 # not just through cpp. "Syntax error" is here to catch this case.
6907 cat >conftest.$ac_ext <<_ACEOF
6908/* confdefs.h. */
6909_ACEOF
6910cat confdefs.h >>conftest.$ac_ext
6911cat >>conftest.$ac_ext <<_ACEOF
6912/* end confdefs.h. */
6913#ifdef __STDC__
6914# include <limits.h>
6915#else
6916# include <assert.h>
6917#endif
6918 Syntax error
6919_ACEOF
6920if { (ac_try="$ac_cpp conftest.$ac_ext"
6921case "(($ac_try" in
6922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6923 *) ac_try_echo=$ac_try;;
6924esac
6925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6927 ac_status=$?
6928 grep -v '^ *+' conftest.er1 >conftest.err
6929 rm -f conftest.er1
6930 cat conftest.err >&5
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); } >/dev/null && {
6933 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6934 test ! -s conftest.err
6935 }; then
6936 :
6937else
6938 echo "$as_me: failed program was:" >&5
6939sed 's/^/| /' conftest.$ac_ext >&5
6940
6941 # Broken: fails on valid input.
6942continue
6943fi
6944
6945rm -f conftest.err conftest.$ac_ext
6946
6947 # OK, works on sane cases. Now check whether nonexistent headers
6948 # can be detected and how.
6949 cat >conftest.$ac_ext <<_ACEOF
6950/* confdefs.h. */
6951_ACEOF
6952cat confdefs.h >>conftest.$ac_ext
6953cat >>conftest.$ac_ext <<_ACEOF
6954/* end confdefs.h. */
6955#include <ac_nonexistent.h>
6956_ACEOF
6957if { (ac_try="$ac_cpp conftest.$ac_ext"
6958case "(($ac_try" in
6959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6960 *) ac_try_echo=$ac_try;;
6961esac
6962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6964 ac_status=$?
6965 grep -v '^ *+' conftest.er1 >conftest.err
6966 rm -f conftest.er1
6967 cat conftest.err >&5
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); } >/dev/null && {
6970 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6971 test ! -s conftest.err
6972 }; then
6973 # Broken: success on invalid input.
6974continue
6975else
6976 echo "$as_me: failed program was:" >&5
6977sed 's/^/| /' conftest.$ac_ext >&5
6978
6979 # Passes both tests.
6980ac_preproc_ok=:
6981break
6982fi
6983
6984rm -f conftest.err conftest.$ac_ext
6985
6986done
6987# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6988rm -f conftest.err conftest.$ac_ext
6989if $ac_preproc_ok; then
6990 :
6991else
6992 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6993See \`config.log' for more details." >&5
6994echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6995See \`config.log' for more details." >&2;}
6996 { (exit 1); exit 1; }; }
6997fi
6998
6999ac_ext=cpp
7000ac_cpp='$CXXCPP $CPPFLAGS'
7001ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7002ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7003ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7004
7005fi
7006
7007
7008ac_ext=f
7009ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7010ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7011ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7012if test -n "$ac_tool_prefix"; then
7013 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
7014 do
7015 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7016set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7017{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7019if test "${ac_cv_prog_F77+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7021else
7022 if test -n "$F77"; then
7023 ac_cv_prog_F77="$F77" # Let the user override the test.
7024else
7025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026for as_dir in $PATH
7027do
7028 IFS=$as_save_IFS
7029 test -z "$as_dir" && as_dir=.
7030 for ac_exec_ext in '' $ac_executable_extensions; do
7031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7032 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7034 break 2
7035 fi
7036done
7037done
7038IFS=$as_save_IFS
7039
7040fi
7041fi
7042F77=$ac_cv_prog_F77
7043if test -n "$F77"; then
7044 { echo "$as_me:$LINENO: result: $F77" >&5
7045echo "${ECHO_T}$F77" >&6; }
7046else
7047 { echo "$as_me:$LINENO: result: no" >&5
7048echo "${ECHO_T}no" >&6; }
7049fi
7050
7051
7052 test -n "$F77" && break
7053 done
7054fi
7055if test -z "$F77"; then
7056 ac_ct_F77=$F77
7057 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
7058do
7059 # Extract the first word of "$ac_prog", so it can be a program name with args.
7060set dummy $ac_prog; ac_word=$2
7061{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7063if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7064 echo $ECHO_N "(cached) $ECHO_C" >&6
7065else
7066 if test -n "$ac_ct_F77"; then
7067 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7068else
7069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070for as_dir in $PATH
7071do
7072 IFS=$as_save_IFS
7073 test -z "$as_dir" && as_dir=.
7074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7076 ac_cv_prog_ac_ct_F77="$ac_prog"
7077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7078 break 2
7079 fi
7080done
7081done
7082IFS=$as_save_IFS
7083
7084fi
7085fi
7086ac_ct_F77=$ac_cv_prog_ac_ct_F77
7087if test -n "$ac_ct_F77"; then
7088 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7089echo "${ECHO_T}$ac_ct_F77" >&6; }
7090else
7091 { echo "$as_me:$LINENO: result: no" >&5
7092echo "${ECHO_T}no" >&6; }
7093fi
7094
7095
7096 test -n "$ac_ct_F77" && break
7097done
7098
7099 if test "x$ac_ct_F77" = x; then
7100 F77=""
7101 else
7102 case $cross_compiling:$ac_tool_warned in
7103yes:)
7104{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7105whose name does not start with the host triplet. If you think this
7106configuration is useful to you, please write to autoconf@gnu.org." >&5
7107echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7108whose name does not start with the host triplet. If you think this
7109configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7110ac_tool_warned=yes ;;
7111esac
7112 F77=$ac_ct_F77
7113 fi
7114fi
7115
7116
7117# Provide some information about the compiler.
7118echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7119ac_compiler=`set X $ac_compile; echo $2`
7120{ (ac_try="$ac_compiler --version >&5"
7121case "(($ac_try" in
7122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7123 *) ac_try_echo=$ac_try;;
7124esac
7125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7126 (eval "$ac_compiler --version >&5") 2>&5
7127 ac_status=$?
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); }
7130{ (ac_try="$ac_compiler -v >&5"
7131case "(($ac_try" in
7132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7133 *) ac_try_echo=$ac_try;;
7134esac
7135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7136 (eval "$ac_compiler -v >&5") 2>&5
7137 ac_status=$?
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); }
7140{ (ac_try="$ac_compiler -V >&5"
7141case "(($ac_try" in
7142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7143 *) ac_try_echo=$ac_try;;
7144esac
7145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7146 (eval "$ac_compiler -V >&5") 2>&5
7147 ac_status=$?
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); }
7150rm -f a.out
7151
7152# If we don't use `.F' as extension, the preprocessor is not run on the
7153# input file. (Note that this only needs to work for GNU compilers.)
7154ac_save_ext=$ac_ext
7155ac_ext=F
7156{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7157echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7158if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7159 echo $ECHO_N "(cached) $ECHO_C" >&6
7160else
7161 cat >conftest.$ac_ext <<_ACEOF
7162 program main
7163#ifndef __GNUC__
7164 choke me
7165#endif
7166
7167 end
7168_ACEOF
7169rm -f conftest.$ac_objext
7170if { (ac_try="$ac_compile"
7171case "(($ac_try" in
7172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7173 *) ac_try_echo=$ac_try;;
7174esac
7175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7176 (eval "$ac_compile") 2>conftest.er1
7177 ac_status=$?
7178 grep -v '^ *+' conftest.er1 >conftest.err
7179 rm -f conftest.er1
7180 cat conftest.err >&5
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); } && {
7183 test -z "$ac_f77_werror_flag" ||
7184 test ! -s conftest.err
7185 } && test -s conftest.$ac_objext; then
7186 ac_compiler_gnu=yes
7187else
7188 echo "$as_me: failed program was:" >&5
7189sed 's/^/| /' conftest.$ac_ext >&5
7190
7191 ac_compiler_gnu=no
7192fi
7193
7194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7195ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7196
7197fi
7198{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7199echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7200ac_ext=$ac_save_ext
7201ac_test_FFLAGS=${FFLAGS+set}
7202ac_save_FFLAGS=$FFLAGS
7203FFLAGS=
7204{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7205echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7206if test "${ac_cv_prog_f77_g+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7208else
7209 FFLAGS=-g
7210cat >conftest.$ac_ext <<_ACEOF
7211 program main
7212
7213 end
7214_ACEOF
7215rm -f conftest.$ac_objext
7216if { (ac_try="$ac_compile"
7217case "(($ac_try" in
7218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7219 *) ac_try_echo=$ac_try;;
7220esac
7221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7222 (eval "$ac_compile") 2>conftest.er1
7223 ac_status=$?
7224 grep -v '^ *+' conftest.er1 >conftest.err
7225 rm -f conftest.er1
7226 cat conftest.err >&5
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); } && {
7229 test -z "$ac_f77_werror_flag" ||
7230 test ! -s conftest.err
7231 } && test -s conftest.$ac_objext; then
7232 ac_cv_prog_f77_g=yes
7233else
7234 echo "$as_me: failed program was:" >&5
7235sed 's/^/| /' conftest.$ac_ext >&5
7236
7237 ac_cv_prog_f77_g=no
7238fi
7239
7240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7241
7242fi
7243{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7244echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7245if test "$ac_test_FFLAGS" = set; then
7246 FFLAGS=$ac_save_FFLAGS
7247elif test $ac_cv_prog_f77_g = yes; then
7248 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7249 FFLAGS="-g -O2"
7250 else
7251 FFLAGS="-g"
7252 fi
7253else
7254 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7255 FFLAGS="-O2"
7256 else
7257 FFLAGS=
7258 fi
7259fi
7260
7261G77=`test $ac_compiler_gnu = yes && echo yes`
7262ac_ext=c
7263ac_cpp='$CPP $CPPFLAGS'
7264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7266ac_compiler_gnu=$ac_cv_c_compiler_gnu
7267
7268
7269
7270# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
b57f37fb
WP
7271# find the maximum length of command line arguments
7272{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7273echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7274if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7275 echo $ECHO_N "(cached) $ECHO_C" >&6
7276else
7277 i=0
7278 teststring="ABCD"
7279
7280 case $build_os in
7281 msdosdjgpp*)
7282 # On DJGPP, this test can blow up pretty badly due to problems in libc
7283 # (any single argument exceeding 2000 bytes causes a buffer overrun
7284 # during glob expansion). Even if it were fixed, the result of this
7285 # check would be larger than it should be.
7286 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7287 ;;
7288
7289 gnu*)
7290 # Under GNU Hurd, this test is not required because there is
7291 # no limit to the length of command line arguments.
7292 # Libtool will interpret -1 as no limit whatsoever
7293 lt_cv_sys_max_cmd_len=-1;
7294 ;;
7295
7296 cygwin* | mingw*)
7297 # On Win9x/ME, this test blows up -- it succeeds, but takes
7298 # about 5 minutes as the teststring grows exponentially.
7299 # Worse, since 9x/ME are not pre-emptively multitasking,
7300 # you end up with a "frozen" computer, even though with patience
7301 # the test eventually succeeds (with a max line length of 256k).
7302 # Instead, let's just punt: use the minimum linelength reported by
7303 # all of the supported platforms: 8192 (on NT/2K/XP).
7304 lt_cv_sys_max_cmd_len=8192;
7305 ;;
7306
7307 amigaos*)
7308 # On AmigaOS with pdksh, this test takes hours, literally.
7309 # So we just punt and use a minimum line length of 8192.
7310 lt_cv_sys_max_cmd_len=8192;
7311 ;;
7312
7313 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7314 # This has been around since 386BSD, at least. Likely further.
7315 if test -x /sbin/sysctl; then
7316 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7317 elif test -x /usr/sbin/sysctl; then
7318 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7319 else
7320 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7321 fi
7322 # And add a safety zone
7323 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7324 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7325 ;;
7326
7327 interix*)
7328 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7329 lt_cv_sys_max_cmd_len=196608
7330 ;;
7331
7332 osf*)
7333 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7334 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7335 # nice to cause kernel panics so lets avoid the loop below.
7336 # First set a reasonable default.
7337 lt_cv_sys_max_cmd_len=16384
7338 #
7339 if test -x /sbin/sysconfig; then
7340 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7341 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7342 esac
7343 fi
7344 ;;
7345 sco3.2v5*)
7346 lt_cv_sys_max_cmd_len=102400
7347 ;;
7348 sysv5* | sco5v6* | sysv4.2uw2*)
7349 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7350 if test -n "$kargmax"; then
7351 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7352 else
7353 lt_cv_sys_max_cmd_len=32768
7354 fi
7355 ;;
7356 *)
7357 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7358 if test -n "$lt_cv_sys_max_cmd_len"; then
7359 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7360 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7361 else
7362 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7363 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7364 = "XX$teststring") >/dev/null 2>&1 &&
7365 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7366 lt_cv_sys_max_cmd_len=$new_result &&
7367 test $i != 17 # 1/2 MB should be enough
7368 do
7369 i=`expr $i + 1`
7370 teststring=$teststring$teststring
7371 done
7372 teststring=
7373 # Add a significant safety factor because C++ compilers can tack on massive
7374 # amounts of additional arguments before passing them to the linker.
7375 # It appears as though 1/2 is a usable value.
7376 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7377 fi
7378 ;;
7379 esac
7380
7381fi
7382
7383if test -n $lt_cv_sys_max_cmd_len ; then
7384 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7385echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7386else
7387 { echo "$as_me:$LINENO: result: none" >&5
7388echo "${ECHO_T}none" >&6; }
7389fi
7390
7391
7392
7393
7394
7395# Check for command to grab the raw symbol name followed by C symbol from nm.
7396{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7397echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7398if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7400else
7401
7402# These are sane defaults that work on at least a few old systems.
7403# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7404
7405# Character class describing NM global symbol codes.
7406symcode='[BCDEGRST]'
7407
7408# Regexp to match symbols that can be accessed directly from C.
7409sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7410
7411# Transform an extracted symbol line into a proper C declaration
7412lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7413
7414# Transform an extracted symbol line into symbol name and symbol address
7415lt_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'"
7416
7417# Define system-specific variables.
7418case $host_os in
7419aix*)
7420 symcode='[BCDT]'
7421 ;;
7422cygwin* | mingw* | pw32*)
7423 symcode='[ABCDGISTW]'
7424 ;;
7425hpux*) # Its linker distinguishes data from code symbols
7426 if test "$host_cpu" = ia64; then
7427 symcode='[ABCDEGRST]'
7428 fi
7429 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7430 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'"
7431 ;;
7432linux* | k*bsd*-gnu)
7433 if test "$host_cpu" = ia64; then
7434 symcode='[ABCDGIRSTW]'
7435 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7436 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'"
7437 fi
7438 ;;
7439irix* | nonstopux*)
7440 symcode='[BCDEGRST]'
7441 ;;
7442osf*)
7443 symcode='[BCDEGQRST]'
7444 ;;
7445solaris*)
7446 symcode='[BDRT]'
7447 ;;
7448sco3.2v5*)
7449 symcode='[DT]'
7450 ;;
7451sysv4.2uw2*)
7452 symcode='[DT]'
7453 ;;
7454sysv5* | sco5v6* | unixware* | OpenUNIX*)
7455 symcode='[ABDT]'
7456 ;;
7457sysv4)
7458 symcode='[DFNSTU]'
7459 ;;
7460esac
7461
7462# Handle CRLF in mingw tool chain
7463opt_cr=
7464case $build_os in
7465mingw*)
7466 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7467 ;;
7468esac
7469
7470# If we're using GNU nm, then use its standard symbol codes.
7471case `$NM -V 2>&1` in
7472*GNU* | *'with BFD'*)
7473 symcode='[ABCDGIRSTW]' ;;
7474esac
7475
7476# Try without a prefix undercore, then with it.
7477for ac_symprfx in "" "_"; do
7478
7479 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7480 symxfrm="\\1 $ac_symprfx\\2 \\2"
7481
7482 # Write the raw and C identifiers.
7483 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7484
7485 # Check to see that the pipe works correctly.
7486 pipe_works=no
7487
7488 rm -f conftest*
7489 cat > conftest.$ac_ext <<EOF
7490#ifdef __cplusplus
7491extern "C" {
7492#endif
7493char nm_test_var;
7494void nm_test_func(){}
7495#ifdef __cplusplus
7496}
7497#endif
7498int main(){nm_test_var='a';nm_test_func();return(0);}
7499EOF
7500
7501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7502 (eval $ac_compile) 2>&5
7503 ac_status=$?
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); }; then
7506 # Now try to grab the symbols.
7507 nlist=conftest.nm
7508 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7509 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7510 ac_status=$?
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); } && test -s "$nlist"; then
7513 # Try sorting and uniquifying the output.
7514 if sort "$nlist" | uniq > "$nlist"T; then
7515 mv -f "$nlist"T "$nlist"
7516 else
7517 rm -f "$nlist"T
7518 fi
7519
7520 # Make sure that we snagged all the symbols we need.
7521 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7522 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7523 cat <<EOF > conftest.$ac_ext
7524#ifdef __cplusplus
7525extern "C" {
7526#endif
7527
7528EOF
7529 # Now generate the symbol file.
7530 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7531
7532 cat <<EOF >> conftest.$ac_ext
7533#if defined (__STDC__) && __STDC__
7534# define lt_ptr_t void *
7535#else
7536# define lt_ptr_t char *
7537# define const
7538#endif
7539
7540/* The mapping between symbol names and symbols. */
7541const struct {
7542 const char *name;
7543 lt_ptr_t address;
7544}
7545lt_preloaded_symbols[] =
7546{
7547EOF
7548 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7549 cat <<\EOF >> conftest.$ac_ext
7550 {0, (lt_ptr_t) 0}
7551};
7552
7553#ifdef __cplusplus
7554}
7555#endif
7556EOF
7557 # Now try linking the two files.
7558 mv conftest.$ac_objext conftstm.$ac_objext
7559 lt_save_LIBS="$LIBS"
7560 lt_save_CFLAGS="$CFLAGS"
7561 LIBS="conftstm.$ac_objext"
7562 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7564 (eval $ac_link) 2>&5
7565 ac_status=$?
7566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7568 pipe_works=yes
7569 fi
7570 LIBS="$lt_save_LIBS"
7571 CFLAGS="$lt_save_CFLAGS"
7572 else
7573 echo "cannot find nm_test_func in $nlist" >&5
7574 fi
7575 else
7576 echo "cannot find nm_test_var in $nlist" >&5
7577 fi
7578 else
7579 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7580 fi
7581 else
7582 echo "$progname: failed program was:" >&5
7583 cat conftest.$ac_ext >&5
7584 fi
56efe974 7585 rm -rf conftest* conftst*
b57f37fb
WP
7586
7587 # Do not use the global_symbol_pipe unless it works.
7588 if test "$pipe_works" = yes; then
7589 break
7590 else
7591 lt_cv_sys_global_symbol_pipe=
7592 fi
7593done
7594
7595fi
7596
7597if test -z "$lt_cv_sys_global_symbol_pipe"; then
7598 lt_cv_sys_global_symbol_to_cdecl=
7599fi
7600if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7601 { echo "$as_me:$LINENO: result: failed" >&5
7602echo "${ECHO_T}failed" >&6; }
7603else
7604 { echo "$as_me:$LINENO: result: ok" >&5
7605echo "${ECHO_T}ok" >&6; }
7606fi
7607
7608{ echo "$as_me:$LINENO: checking for objdir" >&5
7609echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7610if test "${lt_cv_objdir+set}" = set; then
7611 echo $ECHO_N "(cached) $ECHO_C" >&6
7612else
7613 rm -f .libs 2>/dev/null
7614mkdir .libs 2>/dev/null
7615if test -d .libs; then
7616 lt_cv_objdir=.libs
7617else
7618 # MS-DOS does not allow filenames that begin with a dot.
7619 lt_cv_objdir=_libs
7620fi
7621rmdir .libs 2>/dev/null
7622fi
7623{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7624echo "${ECHO_T}$lt_cv_objdir" >&6; }
7625objdir=$lt_cv_objdir
7626
7627
7628
7629
7630
7631case $host_os in
7632aix3*)
7633 # AIX sometimes has problems with the GCC collect2 program. For some
7634 # reason, if we set the COLLECT_NAMES environment variable, the problems
7635 # vanish in a puff of smoke.
7636 if test "X${COLLECT_NAMES+set}" != Xset; then
7637 COLLECT_NAMES=
7638 export COLLECT_NAMES
7639 fi
7640 ;;
7641esac
7642
7643# Sed substitution that helps us do robust quoting. It backslashifies
7644# metacharacters that are still active within double-quoted strings.
7645Xsed='sed -e 1s/^X//'
7646sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7647
7648# Same as above, but do not quote variable references.
7649double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7650
7651# Sed substitution to delay expansion of an escaped shell variable in a
7652# double_quote_subst'ed string.
7653delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7654
7655# Sed substitution to avoid accidental globbing in evaled expressions
7656no_glob_subst='s/\*/\\\*/g'
7657
7658# Constants:
7659rm="rm -f"
7660
7661# Global variables:
7662default_ofile=libtool
7663can_build_shared=yes
7664
7665# All known linkers require a `.a' archive for static linking (except MSVC,
7666# which needs '.lib').
7667libext=a
7668ltmain="$ac_aux_dir/ltmain.sh"
7669ofile="$default_ofile"
7670with_gnu_ld="$lt_cv_prog_gnu_ld"
7671
7672if test -n "$ac_tool_prefix"; then
7673 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7674set dummy ${ac_tool_prefix}ar; ac_word=$2
7675{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7677if test "${ac_cv_prog_AR+set}" = set; then
7678 echo $ECHO_N "(cached) $ECHO_C" >&6
7679else
7680 if test -n "$AR"; then
7681 ac_cv_prog_AR="$AR" # Let the user override the test.
7682else
7683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684for as_dir in $PATH
7685do
7686 IFS=$as_save_IFS
7687 test -z "$as_dir" && as_dir=.
7688 for ac_exec_ext in '' $ac_executable_extensions; do
7689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7690 ac_cv_prog_AR="${ac_tool_prefix}ar"
7691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7692 break 2
7693 fi
7694done
7695done
7696IFS=$as_save_IFS
7697
7698fi
7699fi
7700AR=$ac_cv_prog_AR
7701if test -n "$AR"; then
7702 { echo "$as_me:$LINENO: result: $AR" >&5
7703echo "${ECHO_T}$AR" >&6; }
7704else
7705 { echo "$as_me:$LINENO: result: no" >&5
7706echo "${ECHO_T}no" >&6; }
7707fi
7708
7709
7710fi
7711if test -z "$ac_cv_prog_AR"; then
7712 ac_ct_AR=$AR
7713 # Extract the first word of "ar", so it can be a program name with args.
7714set dummy ar; ac_word=$2
7715{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7717if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7719else
7720 if test -n "$ac_ct_AR"; then
7721 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7722else
7723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724for as_dir in $PATH
7725do
7726 IFS=$as_save_IFS
7727 test -z "$as_dir" && as_dir=.
7728 for ac_exec_ext in '' $ac_executable_extensions; do
7729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7730 ac_cv_prog_ac_ct_AR="ar"
7731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7732 break 2
7733 fi
7734done
7735done
7736IFS=$as_save_IFS
7737
7738fi
7739fi
7740ac_ct_AR=$ac_cv_prog_ac_ct_AR
7741if test -n "$ac_ct_AR"; then
7742 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7743echo "${ECHO_T}$ac_ct_AR" >&6; }
7744else
7745 { echo "$as_me:$LINENO: result: no" >&5
7746echo "${ECHO_T}no" >&6; }
7747fi
7748
7749 if test "x$ac_ct_AR" = x; then
7750 AR="false"
7751 else
7752 case $cross_compiling:$ac_tool_warned in
7753yes:)
7754{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7755whose name does not start with the host triplet. If you think this
7756configuration is useful to you, please write to autoconf@gnu.org." >&5
7757echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7758whose name does not start with the host triplet. If you think this
7759configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7760ac_tool_warned=yes ;;
7761esac
7762 AR=$ac_ct_AR
7763 fi
7764else
7765 AR="$ac_cv_prog_AR"
7766fi
7767
7768if test -n "$ac_tool_prefix"; then
7769 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7770set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7771{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7773if test "${ac_cv_prog_RANLIB+set}" = set; then
7774 echo $ECHO_N "(cached) $ECHO_C" >&6
7775else
7776 if test -n "$RANLIB"; then
7777 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7778else
7779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780for as_dir in $PATH
7781do
7782 IFS=$as_save_IFS
7783 test -z "$as_dir" && as_dir=.
7784 for ac_exec_ext in '' $ac_executable_extensions; do
7785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7786 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7788 break 2
7789 fi
7790done
7791done
7792IFS=$as_save_IFS
7793
7794fi
7795fi
7796RANLIB=$ac_cv_prog_RANLIB
7797if test -n "$RANLIB"; then
7798 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7799echo "${ECHO_T}$RANLIB" >&6; }
7800else
7801 { echo "$as_me:$LINENO: result: no" >&5
7802echo "${ECHO_T}no" >&6; }
7803fi
7804
7805
7806fi
7807if test -z "$ac_cv_prog_RANLIB"; then
7808 ac_ct_RANLIB=$RANLIB
7809 # Extract the first word of "ranlib", so it can be a program name with args.
7810set dummy ranlib; ac_word=$2
7811{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7813if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7814 echo $ECHO_N "(cached) $ECHO_C" >&6
7815else
7816 if test -n "$ac_ct_RANLIB"; then
7817 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7818else
7819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820for as_dir in $PATH
7821do
7822 IFS=$as_save_IFS
7823 test -z "$as_dir" && as_dir=.
7824 for ac_exec_ext in '' $ac_executable_extensions; do
7825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7826 ac_cv_prog_ac_ct_RANLIB="ranlib"
7827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7828 break 2
7829 fi
7830done
7831done
7832IFS=$as_save_IFS
7833
7834fi
7835fi
7836ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7837if test -n "$ac_ct_RANLIB"; then
7838 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7839echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7840else
7841 { echo "$as_me:$LINENO: result: no" >&5
7842echo "${ECHO_T}no" >&6; }
7843fi
7844
7845 if test "x$ac_ct_RANLIB" = x; then
7846 RANLIB=":"
7847 else
7848 case $cross_compiling:$ac_tool_warned in
7849yes:)
7850{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7851whose name does not start with the host triplet. If you think this
7852configuration is useful to you, please write to autoconf@gnu.org." >&5
7853echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7854whose name does not start with the host triplet. If you think this
7855configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7856ac_tool_warned=yes ;;
7857esac
7858 RANLIB=$ac_ct_RANLIB
7859 fi
7860else
7861 RANLIB="$ac_cv_prog_RANLIB"
7862fi
7863
7864if test -n "$ac_tool_prefix"; then
7865 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7866set dummy ${ac_tool_prefix}strip; ac_word=$2
7867{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7869if test "${ac_cv_prog_STRIP+set}" = set; then
7870 echo $ECHO_N "(cached) $ECHO_C" >&6
7871else
7872 if test -n "$STRIP"; then
7873 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7874else
7875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7876for as_dir in $PATH
7877do
7878 IFS=$as_save_IFS
7879 test -z "$as_dir" && as_dir=.
7880 for ac_exec_ext in '' $ac_executable_extensions; do
7881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7882 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7884 break 2
7885 fi
7886done
7887done
7888IFS=$as_save_IFS
7889
7890fi
7891fi
7892STRIP=$ac_cv_prog_STRIP
7893if test -n "$STRIP"; then
7894 { echo "$as_me:$LINENO: result: $STRIP" >&5
7895echo "${ECHO_T}$STRIP" >&6; }
7896else
7897 { echo "$as_me:$LINENO: result: no" >&5
7898echo "${ECHO_T}no" >&6; }
7899fi
7900
7901
7902fi
7903if test -z "$ac_cv_prog_STRIP"; then
7904 ac_ct_STRIP=$STRIP
7905 # Extract the first word of "strip", so it can be a program name with args.
7906set dummy strip; ac_word=$2
7907{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7909if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7911else
7912 if test -n "$ac_ct_STRIP"; then
7913 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7914else
7915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7916for as_dir in $PATH
7917do
7918 IFS=$as_save_IFS
7919 test -z "$as_dir" && as_dir=.
7920 for ac_exec_ext in '' $ac_executable_extensions; do
7921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7922 ac_cv_prog_ac_ct_STRIP="strip"
7923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7924 break 2
7925 fi
7926done
7927done
7928IFS=$as_save_IFS
7929
7930fi
7931fi
7932ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7933if test -n "$ac_ct_STRIP"; then
7934 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7935echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7936else
7937 { echo "$as_me:$LINENO: result: no" >&5
7938echo "${ECHO_T}no" >&6; }
7939fi
7940
7941 if test "x$ac_ct_STRIP" = x; then
7942 STRIP=":"
7943 else
7944 case $cross_compiling:$ac_tool_warned in
7945yes:)
7946{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7947whose name does not start with the host triplet. If you think this
7948configuration is useful to you, please write to autoconf@gnu.org." >&5
7949echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7950whose name does not start with the host triplet. If you think this
7951configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7952ac_tool_warned=yes ;;
7953esac
7954 STRIP=$ac_ct_STRIP
7955 fi
7956else
7957 STRIP="$ac_cv_prog_STRIP"
7958fi
7959
7960
7961old_CC="$CC"
7962old_CFLAGS="$CFLAGS"
7963
7964# Set sane defaults for various variables
7965test -z "$AR" && AR=ar
7966test -z "$AR_FLAGS" && AR_FLAGS=cru
7967test -z "$AS" && AS=as
7968test -z "$CC" && CC=cc
7969test -z "$LTCC" && LTCC=$CC
7970test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7971test -z "$DLLTOOL" && DLLTOOL=dlltool
7972test -z "$LD" && LD=ld
7973test -z "$LN_S" && LN_S="ln -s"
7974test -z "$MAGIC_CMD" && MAGIC_CMD=file
7975test -z "$NM" && NM=nm
7976test -z "$SED" && SED=sed
7977test -z "$OBJDUMP" && OBJDUMP=objdump
7978test -z "$RANLIB" && RANLIB=:
7979test -z "$STRIP" && STRIP=:
7980test -z "$ac_objext" && ac_objext=o
7981
7982# Determine commands to create old-style static archives.
7983old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7984old_postinstall_cmds='chmod 644 $oldlib'
7985old_postuninstall_cmds=
7986
7987if test -n "$RANLIB"; then
7988 case $host_os in
7989 openbsd*)
7990 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7991 ;;
7992 *)
7993 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7994 ;;
7995 esac
7996 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7997fi
7998
7999for cc_temp in $compiler""; do
8000 case $cc_temp in
8001 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8002 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8003 \-*) ;;
8004 *) break;;
8005 esac
8006done
8007cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8008
8009
8010# Only perform the check for file, if the check method requires it
8011case $deplibs_check_method in
8012file_magic*)
8013 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8014 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8015echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8016if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8017 echo $ECHO_N "(cached) $ECHO_C" >&6
8018else
8019 case $MAGIC_CMD in
8020[\\/*] | ?:[\\/]*)
8021 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8022 ;;
8023*)
8024 lt_save_MAGIC_CMD="$MAGIC_CMD"
8025 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8026 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8027 for ac_dir in $ac_dummy; do
8028 IFS="$lt_save_ifs"
8029 test -z "$ac_dir" && ac_dir=.
8030 if test -f $ac_dir/${ac_tool_prefix}file; then
8031 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8032 if test -n "$file_magic_test_file"; then
8033 case $deplibs_check_method in
8034 "file_magic "*)
8035 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8036 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8037 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8038 $EGREP "$file_magic_regex" > /dev/null; then
8039 :
8040 else
8041 cat <<EOF 1>&2
8042
8043*** Warning: the command libtool uses to detect shared libraries,
8044*** $file_magic_cmd, produces output that libtool cannot recognize.
8045*** The result is that libtool may fail to recognize shared libraries
8046*** as such. This will affect the creation of libtool libraries that
8047*** depend on shared libraries, but programs linked with such libtool
8048*** libraries will work regardless of this problem. Nevertheless, you
8049*** may want to report the problem to your system manager and/or to
8050*** bug-libtool@gnu.org
8051
8052EOF
8053 fi ;;
8054 esac
8055 fi
8056 break
8057 fi
8058 done
8059 IFS="$lt_save_ifs"
8060 MAGIC_CMD="$lt_save_MAGIC_CMD"
8061 ;;
8062esac
8063fi
8064
8065MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8066if test -n "$MAGIC_CMD"; then
8067 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8068echo "${ECHO_T}$MAGIC_CMD" >&6; }
8069else
8070 { echo "$as_me:$LINENO: result: no" >&5
8071echo "${ECHO_T}no" >&6; }
8072fi
8073
8074if test -z "$lt_cv_path_MAGIC_CMD"; then
8075 if test -n "$ac_tool_prefix"; then
8076 { echo "$as_me:$LINENO: checking for file" >&5
8077echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8078if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8079 echo $ECHO_N "(cached) $ECHO_C" >&6
8080else
8081 case $MAGIC_CMD in
8082[\\/*] | ?:[\\/]*)
8083 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8084 ;;
8085*)
8086 lt_save_MAGIC_CMD="$MAGIC_CMD"
8087 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8088 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8089 for ac_dir in $ac_dummy; do
8090 IFS="$lt_save_ifs"
8091 test -z "$ac_dir" && ac_dir=.
8092 if test -f $ac_dir/file; then
8093 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8094 if test -n "$file_magic_test_file"; then
8095 case $deplibs_check_method in
8096 "file_magic "*)
8097 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8098 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8099 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8100 $EGREP "$file_magic_regex" > /dev/null; then
8101 :
8102 else
8103 cat <<EOF 1>&2
8104
8105*** Warning: the command libtool uses to detect shared libraries,
8106*** $file_magic_cmd, produces output that libtool cannot recognize.
8107*** The result is that libtool may fail to recognize shared libraries
8108*** as such. This will affect the creation of libtool libraries that
8109*** depend on shared libraries, but programs linked with such libtool
8110*** libraries will work regardless of this problem. Nevertheless, you
8111*** may want to report the problem to your system manager and/or to
8112*** bug-libtool@gnu.org
8113
8114EOF
8115 fi ;;
8116 esac
8117 fi
8118 break
8119 fi
8120 done
8121 IFS="$lt_save_ifs"
8122 MAGIC_CMD="$lt_save_MAGIC_CMD"
8123 ;;
8124esac
8125fi
8126
8127MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8128if test -n "$MAGIC_CMD"; then
8129 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8130echo "${ECHO_T}$MAGIC_CMD" >&6; }
8131else
8132 { echo "$as_me:$LINENO: result: no" >&5
8133echo "${ECHO_T}no" >&6; }
8134fi
8135
8136 else
8137 MAGIC_CMD=:
8138 fi
8139fi
8140
8141 fi
8142 ;;
8143esac
8144
56efe974
WP
8145
8146 case $host_os in
8147 rhapsody* | darwin*)
8148 if test -n "$ac_tool_prefix"; then
8149 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8150set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8151{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8153if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
8154 echo $ECHO_N "(cached) $ECHO_C" >&6
8155else
8156 if test -n "$DSYMUTIL"; then
8157 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8158else
8159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8160for as_dir in $PATH
8161do
8162 IFS=$as_save_IFS
8163 test -z "$as_dir" && as_dir=.
8164 for ac_exec_ext in '' $ac_executable_extensions; do
8165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8166 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8168 break 2
8169 fi
8170done
8171done
8172IFS=$as_save_IFS
8173
8174fi
8175fi
8176DSYMUTIL=$ac_cv_prog_DSYMUTIL
8177if test -n "$DSYMUTIL"; then
8178 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
8179echo "${ECHO_T}$DSYMUTIL" >&6; }
8180else
8181 { echo "$as_me:$LINENO: result: no" >&5
8182echo "${ECHO_T}no" >&6; }
8183fi
8184
8185
8186fi
8187if test -z "$ac_cv_prog_DSYMUTIL"; then
8188 ac_ct_DSYMUTIL=$DSYMUTIL
8189 # Extract the first word of "dsymutil", so it can be a program name with args.
8190set dummy dsymutil; ac_word=$2
8191{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8193if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
8194 echo $ECHO_N "(cached) $ECHO_C" >&6
8195else
8196 if test -n "$ac_ct_DSYMUTIL"; then
8197 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8198else
8199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8200for as_dir in $PATH
8201do
8202 IFS=$as_save_IFS
8203 test -z "$as_dir" && as_dir=.
8204 for ac_exec_ext in '' $ac_executable_extensions; do
8205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8206 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8208 break 2
8209 fi
8210done
8211done
8212IFS=$as_save_IFS
8213
8214fi
8215fi
8216ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8217if test -n "$ac_ct_DSYMUTIL"; then
8218 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
8219echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
8220else
8221 { echo "$as_me:$LINENO: result: no" >&5
8222echo "${ECHO_T}no" >&6; }
8223fi
8224
8225 if test "x$ac_ct_DSYMUTIL" = x; then
8226 DSYMUTIL=":"
8227 else
8228 case $cross_compiling:$ac_tool_warned in
8229yes:)
8230{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8231whose name does not start with the host triplet. If you think this
8232configuration is useful to you, please write to autoconf@gnu.org." >&5
8233echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8234whose name does not start with the host triplet. If you think this
8235configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8236ac_tool_warned=yes ;;
8237esac
8238 DSYMUTIL=$ac_ct_DSYMUTIL
8239 fi
8240else
8241 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8242fi
8243
8244 if test -n "$ac_tool_prefix"; then
8245 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8246set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8247{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8249if test "${ac_cv_prog_NMEDIT+set}" = set; then
8250 echo $ECHO_N "(cached) $ECHO_C" >&6
8251else
8252 if test -n "$NMEDIT"; then
8253 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8254else
8255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8256for as_dir in $PATH
8257do
8258 IFS=$as_save_IFS
8259 test -z "$as_dir" && as_dir=.
8260 for ac_exec_ext in '' $ac_executable_extensions; do
8261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8262 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8264 break 2
8265 fi
8266done
8267done
8268IFS=$as_save_IFS
8269
8270fi
8271fi
8272NMEDIT=$ac_cv_prog_NMEDIT
8273if test -n "$NMEDIT"; then
8274 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
8275echo "${ECHO_T}$NMEDIT" >&6; }
8276else
8277 { echo "$as_me:$LINENO: result: no" >&5
8278echo "${ECHO_T}no" >&6; }
8279fi
8280
8281
8282fi
8283if test -z "$ac_cv_prog_NMEDIT"; then
8284 ac_ct_NMEDIT=$NMEDIT
8285 # Extract the first word of "nmedit", so it can be a program name with args.
8286set dummy nmedit; ac_word=$2
8287{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8289if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
8290 echo $ECHO_N "(cached) $ECHO_C" >&6
8291else
8292 if test -n "$ac_ct_NMEDIT"; then
8293 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8294else
8295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8296for as_dir in $PATH
8297do
8298 IFS=$as_save_IFS
8299 test -z "$as_dir" && as_dir=.
8300 for ac_exec_ext in '' $ac_executable_extensions; do
8301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8302 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8304 break 2
8305 fi
8306done
8307done
8308IFS=$as_save_IFS
8309
8310fi
8311fi
8312ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8313if test -n "$ac_ct_NMEDIT"; then
8314 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
8315echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
8316else
8317 { echo "$as_me:$LINENO: result: no" >&5
8318echo "${ECHO_T}no" >&6; }
8319fi
8320
8321 if test "x$ac_ct_NMEDIT" = x; then
8322 NMEDIT=":"
8323 else
8324 case $cross_compiling:$ac_tool_warned in
8325yes:)
8326{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8327whose name does not start with the host triplet. If you think this
8328configuration is useful to you, please write to autoconf@gnu.org." >&5
8329echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8330whose name does not start with the host triplet. If you think this
8331configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8332ac_tool_warned=yes ;;
8333esac
8334 NMEDIT=$ac_ct_NMEDIT
8335 fi
8336else
8337 NMEDIT="$ac_cv_prog_NMEDIT"
8338fi
8339
8340
8341 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8342echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
8343if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
8345else
8346 lt_cv_apple_cc_single_mod=no
8347 if test -z "${LT_MULTI_MODULE}"; then
8348 # By default we will add the -single_module flag. You can override
8349 # by either setting the environment variable LT_MULTI_MODULE
8350 # non-empty at configure time, or by adding -multi_module to the
8351 # link flags.
8352 echo "int foo(void){return 1;}" > conftest.c
8353 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8354 -dynamiclib ${wl}-single_module conftest.c
8355 if test -f libconftest.dylib; then
8356 lt_cv_apple_cc_single_mod=yes
8357 rm -rf libconftest.dylib*
8358 fi
8359 rm conftest.c
8360 fi
8361fi
8362{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8363echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
8364 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8365echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
8366if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8367 echo $ECHO_N "(cached) $ECHO_C" >&6
8368else
8369 lt_cv_ld_exported_symbols_list=no
8370 save_LDFLAGS=$LDFLAGS
8371 echo "_main" > conftest.sym
8372 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8373 cat >conftest.$ac_ext <<_ACEOF
8374/* confdefs.h. */
8375_ACEOF
8376cat confdefs.h >>conftest.$ac_ext
8377cat >>conftest.$ac_ext <<_ACEOF
8378/* end confdefs.h. */
8379
8380int
8381main ()
8382{
8383
8384 ;
8385 return 0;
8386}
8387_ACEOF
8388rm -f conftest.$ac_objext conftest$ac_exeext
8389if { (ac_try="$ac_link"
8390case "(($ac_try" in
8391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8392 *) ac_try_echo=$ac_try;;
8393esac
8394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8395 (eval "$ac_link") 2>conftest.er1
8396 ac_status=$?
8397 grep -v '^ *+' conftest.er1 >conftest.err
8398 rm -f conftest.er1
8399 cat conftest.err >&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); } && {
8402 test -z "$ac_c_werror_flag" ||
8403 test ! -s conftest.err
8404 } && test -s conftest$ac_exeext &&
8405 $as_test_x conftest$ac_exeext; then
8406 lt_cv_ld_exported_symbols_list=yes
8407else
8408 echo "$as_me: failed program was:" >&5
8409sed 's/^/| /' conftest.$ac_ext >&5
8410
8411 lt_cv_ld_exported_symbols_list=no
8412fi
8413
8414rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8415 conftest$ac_exeext conftest.$ac_ext
8416 LDFLAGS="$save_LDFLAGS"
8417
8418fi
8419{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8420echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8421 case $host_os in
8422 rhapsody* | darwin1.[0123])
8423 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8424 darwin1.*)
8425 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8426 darwin*)
8427 # if running on 10.5 or later, the deployment target defaults
8428 # to the OS version, if on x86, and 10.4, the deployment
8429 # target defaults to 10.4. Don't you love it?
8430 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8431 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8432 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8433 10.[012]*)
8434 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8435 10.*)
8436 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8437 esac
8438 ;;
8439 esac
8440 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8441 _lt_dar_single_mod='$single_module'
8442 fi
8443 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8444 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8445 else
8446 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
8447 fi
8448 if test "$DSYMUTIL" != ":"; then
8449 _lt_dsymutil="~$DSYMUTIL \$lib || :"
8450 else
8451 _lt_dsymutil=
8452 fi
8453 ;;
8454 esac
8455
8456
b57f37fb
WP
8457enable_dlopen=no
8458enable_win32_dll=no
8459
8460# Check whether --enable-libtool-lock was given.
8461if test "${enable_libtool_lock+set}" = set; then
8462 enableval=$enable_libtool_lock;
8463fi
8464
8465test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8466
8467
8468# Check whether --with-pic was given.
8469if test "${with_pic+set}" = set; then
8470 withval=$with_pic; pic_mode="$withval"
8471else
8472 pic_mode=default
8473fi
8474
8475test -z "$pic_mode" && pic_mode=default
8476
8477# Use C for the default configuration in the libtool script
8478tagname=
8479lt_save_CC="$CC"
8480ac_ext=c
8481ac_cpp='$CPP $CPPFLAGS'
8482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8484ac_compiler_gnu=$ac_cv_c_compiler_gnu
8485
8486
8487# Source file extension for C test sources.
8488ac_ext=c
8489
8490# Object file extension for compiled C test sources.
8491objext=o
8492objext=$objext
8493
8494# Code to be used in simple compile tests
8495lt_simple_compile_test_code="int some_variable = 0;"
8496
8497# Code to be used in simple link tests
8498lt_simple_link_test_code='int main(){return(0);}'
8499
8500
8501# If no C compiler was specified, use CC.
8502LTCC=${LTCC-"$CC"}
8503
8504# If no C compiler flags were specified, use CFLAGS.
8505LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8506
8507# Allow CC to be a program name with arguments.
8508compiler=$CC
8509
8510
8511# save warnings/boilerplate of simple test code
8512ac_outfile=conftest.$ac_objext
8513echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8514eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8515_lt_compiler_boilerplate=`cat conftest.err`
8516$rm conftest*
8517
8518ac_outfile=conftest.$ac_objext
8519echo "$lt_simple_link_test_code" >conftest.$ac_ext
8520eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8521_lt_linker_boilerplate=`cat conftest.err`
56efe974 8522$rm -r conftest*
b57f37fb
WP
8523
8524
8525
8526lt_prog_compiler_no_builtin_flag=
8527
8528if test "$GCC" = yes; then
8529 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8530
8531
8532{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8533echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8534if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8535 echo $ECHO_N "(cached) $ECHO_C" >&6
8536else
8537 lt_cv_prog_compiler_rtti_exceptions=no
8538 ac_outfile=conftest.$ac_objext
8539 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8540 lt_compiler_flag="-fno-rtti -fno-exceptions"
8541 # Insert the option either (1) after the last *FLAGS variable, or
8542 # (2) before a word containing "conftest.", or (3) at the end.
8543 # Note that $ac_compile itself does not contain backslashes and begins
8544 # with a dollar sign (not a hyphen), so the echo should work correctly.
8545 # The option is referenced via a variable to avoid confusing sed.
8546 lt_compile=`echo "$ac_compile" | $SED \
8547 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8549 -e 's:$: $lt_compiler_flag:'`
94b4fbf9 8550 (eval echo "\"\$as_me:8550: $lt_compile\"" >&5)
b57f37fb
WP
8551 (eval "$lt_compile" 2>conftest.err)
8552 ac_status=$?
8553 cat conftest.err >&5
94b4fbf9 8554 echo "$as_me:8554: \$? = $ac_status" >&5
b57f37fb
WP
8555 if (exit $ac_status) && test -s "$ac_outfile"; then
8556 # The compiler can only warn and ignore the option if not recognized
8557 # So say no if there are warnings other than the usual output.
8558 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8559 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8560 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8561 lt_cv_prog_compiler_rtti_exceptions=yes
8562 fi
8563 fi
8564 $rm conftest*
8565
8566fi
8567{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8568echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8569
8570if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8571 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8572else
8573 :
8574fi
8575
8576fi
8577
8578lt_prog_compiler_wl=
8579lt_prog_compiler_pic=
8580lt_prog_compiler_static=
8581
8582{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8583echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8584
8585 if test "$GCC" = yes; then
8586 lt_prog_compiler_wl='-Wl,'
8587 lt_prog_compiler_static='-static'
8588
8589 case $host_os in
8590 aix*)
8591 # All AIX code is PIC.
8592 if test "$host_cpu" = ia64; then
8593 # AIX 5 now supports IA64 processor
8594 lt_prog_compiler_static='-Bstatic'
8595 fi
8596 ;;
8597
8598 amigaos*)
8599 # FIXME: we need at least 68020 code to build shared libraries, but
8600 # adding the `-m68020' flag to GCC prevents building anything better,
8601 # like `-m68040'.
8602 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8603 ;;
8604
8605 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8606 # PIC is the default for these OSes.
8607 ;;
8608
8609 mingw* | cygwin* | pw32* | os2*)
8610 # This hack is so that the source file can tell whether it is being
8611 # built for inclusion in a dll (and should export symbols for example).
8612 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8613 # (--disable-auto-import) libraries
8614 lt_prog_compiler_pic='-DDLL_EXPORT'
8615 ;;
8616
8617 darwin* | rhapsody*)
8618 # PIC is the default on this platform
8619 # Common symbols not allowed in MH_DYLIB files
8620 lt_prog_compiler_pic='-fno-common'
8621 ;;
8622
8623 interix[3-9]*)
8624 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8625 # Instead, we relocate shared libraries at runtime.
8626 ;;
8627
8628 msdosdjgpp*)
8629 # Just because we use GCC doesn't mean we suddenly get shared libraries
8630 # on systems that don't support them.
8631 lt_prog_compiler_can_build_shared=no
8632 enable_shared=no
8633 ;;
8634
8635 sysv4*MP*)
8636 if test -d /usr/nec; then
8637 lt_prog_compiler_pic=-Kconform_pic
8638 fi
8639 ;;
8640
8641 hpux*)
8642 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8643 # not for PA HP-UX.
8644 case $host_cpu in
8645 hppa*64*|ia64*)
8646 # +Z the default
8647 ;;
8648 *)
8649 lt_prog_compiler_pic='-fPIC'
8650 ;;
8651 esac
8652 ;;
8653
8654 *)
8655 lt_prog_compiler_pic='-fPIC'
8656 ;;
8657 esac
8658 else
8659 # PORTME Check for flag to pass linker flags through the system compiler.
8660 case $host_os in
8661 aix*)
8662 lt_prog_compiler_wl='-Wl,'
8663 if test "$host_cpu" = ia64; then
8664 # AIX 5 now supports IA64 processor
8665 lt_prog_compiler_static='-Bstatic'
8666 else
8667 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8668 fi
8669 ;;
8670 darwin*)
8671 # PIC is the default on this platform
8672 # Common symbols not allowed in MH_DYLIB files
8673 case $cc_basename in
8674 xlc*)
8675 lt_prog_compiler_pic='-qnocommon'
8676 lt_prog_compiler_wl='-Wl,'
8677 ;;
8678 esac
8679 ;;
8680
8681 mingw* | cygwin* | pw32* | os2*)
8682 # This hack is so that the source file can tell whether it is being
8683 # built for inclusion in a dll (and should export symbols for example).
8684 lt_prog_compiler_pic='-DDLL_EXPORT'
8685 ;;
8686
8687 hpux9* | hpux10* | hpux11*)
8688 lt_prog_compiler_wl='-Wl,'
8689 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8690 # not for PA HP-UX.
8691 case $host_cpu in
8692 hppa*64*|ia64*)
8693 # +Z the default
8694 ;;
8695 *)
8696 lt_prog_compiler_pic='+Z'
8697 ;;
8698 esac
8699 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8700 lt_prog_compiler_static='${wl}-a ${wl}archive'
8701 ;;
8702
8703 irix5* | irix6* | nonstopux*)
8704 lt_prog_compiler_wl='-Wl,'
8705 # PIC (with -KPIC) is the default.
8706 lt_prog_compiler_static='-non_shared'
8707 ;;
8708
8709 newsos6)
8710 lt_prog_compiler_pic='-KPIC'
8711 lt_prog_compiler_static='-Bstatic'
8712 ;;
8713
8714 linux* | k*bsd*-gnu)
8715 case $cc_basename in
8716 icc* | ecc*)
8717 lt_prog_compiler_wl='-Wl,'
8718 lt_prog_compiler_pic='-KPIC'
8719 lt_prog_compiler_static='-static'
8720 ;;
8721 pgcc* | pgf77* | pgf90* | pgf95*)
8722 # Portland Group compilers (*not* the Pentium gcc compiler,
8723 # which looks to be a dead project)
8724 lt_prog_compiler_wl='-Wl,'
8725 lt_prog_compiler_pic='-fpic'
8726 lt_prog_compiler_static='-Bstatic'
8727 ;;
8728 ccc*)
8729 lt_prog_compiler_wl='-Wl,'
8730 # All Alpha code is PIC.
8731 lt_prog_compiler_static='-non_shared'
8732 ;;
8733 *)
8734 case `$CC -V 2>&1 | sed 5q` in
8735 *Sun\ C*)
8736 # Sun C 5.9
8737 lt_prog_compiler_pic='-KPIC'
8738 lt_prog_compiler_static='-Bstatic'
8739 lt_prog_compiler_wl='-Wl,'
8740 ;;
8741 *Sun\ F*)
8742 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8743 lt_prog_compiler_pic='-KPIC'
8744 lt_prog_compiler_static='-Bstatic'
8745 lt_prog_compiler_wl=''
8746 ;;
8747 esac
8748 ;;
8749 esac
8750 ;;
8751
8752 osf3* | osf4* | osf5*)
8753 lt_prog_compiler_wl='-Wl,'
8754 # All OSF/1 code is PIC.
8755 lt_prog_compiler_static='-non_shared'
8756 ;;
8757
8758 rdos*)
8759 lt_prog_compiler_static='-non_shared'
8760 ;;
8761
8762 solaris*)
8763 lt_prog_compiler_pic='-KPIC'
8764 lt_prog_compiler_static='-Bstatic'
8765 case $cc_basename in
8766 f77* | f90* | f95*)
8767 lt_prog_compiler_wl='-Qoption ld ';;
8768 *)
8769 lt_prog_compiler_wl='-Wl,';;
8770 esac
8771 ;;
8772
8773 sunos4*)
8774 lt_prog_compiler_wl='-Qoption ld '
8775 lt_prog_compiler_pic='-PIC'
8776 lt_prog_compiler_static='-Bstatic'
8777 ;;
8778
8779 sysv4 | sysv4.2uw2* | sysv4.3*)
8780 lt_prog_compiler_wl='-Wl,'
8781 lt_prog_compiler_pic='-KPIC'
8782 lt_prog_compiler_static='-Bstatic'
8783 ;;
8784
8785 sysv4*MP*)
8786 if test -d /usr/nec ;then
8787 lt_prog_compiler_pic='-Kconform_pic'
8788 lt_prog_compiler_static='-Bstatic'
8789 fi
8790 ;;
8791
8792 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8793 lt_prog_compiler_wl='-Wl,'
8794 lt_prog_compiler_pic='-KPIC'
8795 lt_prog_compiler_static='-Bstatic'
8796 ;;
8797
8798 unicos*)
8799 lt_prog_compiler_wl='-Wl,'
8800 lt_prog_compiler_can_build_shared=no
8801 ;;
8802
8803 uts4*)
8804 lt_prog_compiler_pic='-pic'
8805 lt_prog_compiler_static='-Bstatic'
8806 ;;
8807
8808 *)
8809 lt_prog_compiler_can_build_shared=no
8810 ;;
8811 esac
8812 fi
8813
8814{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8815echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8816
8817#
8818# Check to make sure the PIC flag actually works.
8819#
8820if test -n "$lt_prog_compiler_pic"; then
8821
8822{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8823echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
56efe974 8824if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
b57f37fb
WP
8825 echo $ECHO_N "(cached) $ECHO_C" >&6
8826else
56efe974 8827 lt_cv_prog_compiler_pic_works=no
b57f37fb
WP
8828 ac_outfile=conftest.$ac_objext
8829 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8830 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8831 # Insert the option either (1) after the last *FLAGS variable, or
8832 # (2) before a word containing "conftest.", or (3) at the end.
8833 # Note that $ac_compile itself does not contain backslashes and begins
8834 # with a dollar sign (not a hyphen), so the echo should work correctly.
8835 # The option is referenced via a variable to avoid confusing sed.
8836 lt_compile=`echo "$ac_compile" | $SED \
8837 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8838 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8839 -e 's:$: $lt_compiler_flag:'`
94b4fbf9 8840 (eval echo "\"\$as_me:8840: $lt_compile\"" >&5)
b57f37fb
WP
8841 (eval "$lt_compile" 2>conftest.err)
8842 ac_status=$?
8843 cat conftest.err >&5
94b4fbf9 8844 echo "$as_me:8844: \$? = $ac_status" >&5
b57f37fb
WP
8845 if (exit $ac_status) && test -s "$ac_outfile"; then
8846 # The compiler can only warn and ignore the option if not recognized
8847 # So say no if there are warnings other than the usual output.
8848 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8849 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8850 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
56efe974 8851 lt_cv_prog_compiler_pic_works=yes
b57f37fb
WP
8852 fi
8853 fi
8854 $rm conftest*
8855
8856fi
56efe974
WP
8857{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8858echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
b57f37fb 8859
56efe974 8860if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
b57f37fb
WP
8861 case $lt_prog_compiler_pic in
8862 "" | " "*) ;;
8863 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8864 esac
8865else
8866 lt_prog_compiler_pic=
8867 lt_prog_compiler_can_build_shared=no
8868fi
8869
8870fi
8871case $host_os in
8872 # For platforms which do not support PIC, -DPIC is meaningless:
8873 *djgpp*)
8874 lt_prog_compiler_pic=
8875 ;;
8876 *)
8877 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8878 ;;
8879esac
8880
8881#
8882# Check to make sure the static flag actually works.
8883#
8884wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8885{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8886echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
56efe974 8887if test "${lt_cv_prog_compiler_static_works+set}" = set; then
b57f37fb
WP
8888 echo $ECHO_N "(cached) $ECHO_C" >&6
8889else
56efe974 8890 lt_cv_prog_compiler_static_works=no
b57f37fb
WP
8891 save_LDFLAGS="$LDFLAGS"
8892 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8893 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8894 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8895 # The linker can only warn and ignore the option if not recognized
8896 # So say no if there are warnings
8897 if test -s conftest.err; then
8898 # Append any errors to the config.log.
8899 cat conftest.err 1>&5
8900 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8901 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8902 if diff conftest.exp conftest.er2 >/dev/null; then
56efe974 8903 lt_cv_prog_compiler_static_works=yes
b57f37fb
WP
8904 fi
8905 else
56efe974 8906 lt_cv_prog_compiler_static_works=yes
b57f37fb
WP
8907 fi
8908 fi
56efe974 8909 $rm -r conftest*
b57f37fb
WP
8910 LDFLAGS="$save_LDFLAGS"
8911
8912fi
56efe974
WP
8913{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8914echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
b57f37fb 8915
56efe974 8916if test x"$lt_cv_prog_compiler_static_works" = xyes; then
b57f37fb
WP
8917 :
8918else
8919 lt_prog_compiler_static=
8920fi
8921
8922
8923{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8924echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8925if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8926 echo $ECHO_N "(cached) $ECHO_C" >&6
8927else
8928 lt_cv_prog_compiler_c_o=no
8929 $rm -r conftest 2>/dev/null
8930 mkdir conftest
8931 cd conftest
8932 mkdir out
8933 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8934
8935 lt_compiler_flag="-o out/conftest2.$ac_objext"
8936 # Insert the option either (1) after the last *FLAGS variable, or
8937 # (2) before a word containing "conftest.", or (3) at the end.
8938 # Note that $ac_compile itself does not contain backslashes and begins
8939 # with a dollar sign (not a hyphen), so the echo should work correctly.
8940 lt_compile=`echo "$ac_compile" | $SED \
8941 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8942 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8943 -e 's:$: $lt_compiler_flag:'`
94b4fbf9 8944 (eval echo "\"\$as_me:8944: $lt_compile\"" >&5)
b57f37fb
WP
8945 (eval "$lt_compile" 2>out/conftest.err)
8946 ac_status=$?
8947 cat out/conftest.err >&5
94b4fbf9 8948 echo "$as_me:8948: \$? = $ac_status" >&5
b57f37fb
WP
8949 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8950 then
8951 # The compiler can only warn and ignore the option if not recognized
8952 # So say no if there are warnings
8953 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8954 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8955 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8956 lt_cv_prog_compiler_c_o=yes
8957 fi
8958 fi
8959 chmod u+w . 2>&5
8960 $rm conftest*
8961 # SGI C++ compiler will create directory out/ii_files/ for
8962 # template instantiation
8963 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8964 $rm out/* && rmdir out
8965 cd ..
8966 rmdir conftest
8967 $rm conftest*
8968
8969fi
8970{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8971echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8972
8973
8974hard_links="nottested"
8975if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8976 # do not overwrite the value of need_locks provided by the user
8977 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8978echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8979 hard_links=yes
8980 $rm conftest*
8981 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8982 touch conftest.a
8983 ln conftest.a conftest.b 2>&5 || hard_links=no
8984 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8985 { echo "$as_me:$LINENO: result: $hard_links" >&5
8986echo "${ECHO_T}$hard_links" >&6; }
8987 if test "$hard_links" = no; then
8988 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8989echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8990 need_locks=warn
8991 fi
8992else
8993 need_locks=no
8994fi
8995
8996{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8997echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8998
8999 runpath_var=
9000 allow_undefined_flag=
9001 enable_shared_with_static_runtimes=no
9002 archive_cmds=
9003 archive_expsym_cmds=
9004 old_archive_From_new_cmds=
9005 old_archive_from_expsyms_cmds=
9006 export_dynamic_flag_spec=
9007 whole_archive_flag_spec=
9008 thread_safe_flag_spec=
9009 hardcode_libdir_flag_spec=
9010 hardcode_libdir_flag_spec_ld=
9011 hardcode_libdir_separator=
9012 hardcode_direct=no
9013 hardcode_minus_L=no
9014 hardcode_shlibpath_var=unsupported
9015 link_all_deplibs=unknown
9016 hardcode_automatic=no
9017 module_cmds=
9018 module_expsym_cmds=
9019 always_export_symbols=no
9020 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9021 # include_expsyms should be a list of space-separated symbols to be *always*
9022 # included in the symbol list
9023 include_expsyms=
9024 # exclude_expsyms can be an extended regexp of symbols to exclude
9025 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9026 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9027 # as well as any symbol that contains `d'.
56efe974 9028 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
b57f37fb
WP
9029 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9030 # platforms (ab)use it in PIC code, but their linkers get confused if
9031 # the symbol is explicitly referenced. Since portable code cannot
9032 # rely on this symbol name, it's probably fine to never include it in
9033 # preloaded symbol tables.
56efe974 9034 # Exclude shared library initialization/finalization symbols.
b57f37fb
WP
9035 extract_expsyms_cmds=
9036 # Just being paranoid about ensuring that cc_basename is set.
9037 for cc_temp in $compiler""; do
9038 case $cc_temp in
9039 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9040 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9041 \-*) ;;
9042 *) break;;
9043 esac
9044done
9045cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9046
9047 case $host_os in
9048 cygwin* | mingw* | pw32*)
9049 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9050 # When not using gcc, we currently assume that we are using
9051 # Microsoft Visual C++.
9052 if test "$GCC" != yes; then
9053 with_gnu_ld=no
9054 fi
9055 ;;
9056 interix*)
9057 # we just hope/assume this is gcc and not c89 (= MSVC++)
9058 with_gnu_ld=yes
9059 ;;
9060 openbsd*)
9061 with_gnu_ld=no
9062 ;;
9063 esac
9064
9065 ld_shlibs=yes
9066 if test "$with_gnu_ld" = yes; then
9067 # If archive_cmds runs LD, not CC, wlarc should be empty
9068 wlarc='${wl}'
9069
9070 # Set some defaults for GNU ld with shared library support. These
9071 # are reset later if shared libraries are not supported. Putting them
9072 # here allows them to be overridden if necessary.
9073 runpath_var=LD_RUN_PATH
9074 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9075 export_dynamic_flag_spec='${wl}--export-dynamic'
9076 # ancient GNU ld didn't support --whole-archive et. al.
9077 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9078 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9079 else
9080 whole_archive_flag_spec=
9081 fi
9082 supports_anon_versioning=no
9083 case `$LD -v 2>/dev/null` in
9084 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9085 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9086 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9087 *\ 2.11.*) ;; # other 2.11 versions
9088 *) supports_anon_versioning=yes ;;
9089 esac
9090
9091 # See if GNU ld supports shared libraries.
9092 case $host_os in
56efe974 9093 aix[3-9]*)
b57f37fb
WP
9094 # On AIX/PPC, the GNU linker is very broken
9095 if test "$host_cpu" != ia64; then
9096 ld_shlibs=no
9097 cat <<EOF 1>&2
9098
9099*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9100*** to be unable to reliably create shared libraries on AIX.
9101*** Therefore, libtool is disabling shared libraries support. If you
9102*** really care for shared libraries, you may want to modify your PATH
9103*** so that a non-GNU linker is found, and then restart.
9104
9105EOF
9106 fi
9107 ;;
9108
9109 amigaos*)
9110 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)'
9111 hardcode_libdir_flag_spec='-L$libdir'
9112 hardcode_minus_L=yes
9113
9114 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9115 # that the semantics of dynamic libraries on AmigaOS, at least up
9116 # to version 4, is to share data among multiple programs linked
9117 # with the same dynamic library. Since this doesn't match the
9118 # behavior of shared libraries on other platforms, we can't use
9119 # them.
9120 ld_shlibs=no
9121 ;;
9122
9123 beos*)
9124 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9125 allow_undefined_flag=unsupported
9126 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9127 # support --undefined. This deserves some investigation. FIXME
9128 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9129 else
9130 ld_shlibs=no
9131 fi
9132 ;;
9133
9134 cygwin* | mingw* | pw32*)
9135 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9136 # as there is no search path for DLLs.
9137 hardcode_libdir_flag_spec='-L$libdir'
9138 allow_undefined_flag=unsupported
9139 always_export_symbols=no
9140 enable_shared_with_static_runtimes=yes
9141 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9142
9143 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9144 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9145 # If the export-symbols file already is a .def file (1st line
9146 # is EXPORTS), use it as is; otherwise, prepend...
9147 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9148 cp $export_symbols $output_objdir/$soname.def;
9149 else
9150 echo EXPORTS > $output_objdir/$soname.def;
9151 cat $export_symbols >> $output_objdir/$soname.def;
9152 fi~
9153 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9154 else
9155 ld_shlibs=no
9156 fi
9157 ;;
9158
9159 interix[3-9]*)
9160 hardcode_direct=no
9161 hardcode_shlibpath_var=no
9162 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9163 export_dynamic_flag_spec='${wl}-E'
9164 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9165 # Instead, shared libraries are loaded at an image base (0x10000000 by
9166 # default) and relocated if they conflict, which is a slow very memory
9167 # consuming and fragmenting process. To avoid this, we pick a random,
9168 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9169 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9170 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9171 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'
9172 ;;
9173
9174 gnu* | linux* | k*bsd*-gnu)
9175 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9176 tmp_addflag=
9177 case $cc_basename,$host_cpu in
9178 pgcc*) # Portland Group C compiler
9179 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'
9180 tmp_addflag=' $pic_flag'
9181 ;;
9182 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9183 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'
9184 tmp_addflag=' $pic_flag -Mnomain' ;;
9185 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9186 tmp_addflag=' -i_dynamic' ;;
9187 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9188 tmp_addflag=' -i_dynamic -nofor_main' ;;
9189 ifc* | ifort*) # Intel Fortran compiler
9190 tmp_addflag=' -nofor_main' ;;
9191 esac
9192 case `$CC -V 2>&1 | sed 5q` in
9193 *Sun\ C*) # Sun C 5.9
9194 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'
9195 tmp_sharedflag='-G' ;;
9196 *Sun\ F*) # Sun Fortran 8.3
9197 tmp_sharedflag='-G' ;;
9198 *)
9199 tmp_sharedflag='-shared' ;;
9200 esac
9201 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9202
9203 if test $supports_anon_versioning = yes; then
9204 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9205 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9206 $echo "local: *; };" >> $output_objdir/$libname.ver~
9207 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9208 fi
9209 link_all_deplibs=no
9210 else
9211 ld_shlibs=no
9212 fi
9213 ;;
9214
9215 netbsd* | netbsdelf*-gnu)
9216 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9217 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9218 wlarc=
9219 else
9220 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9221 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9222 fi
9223 ;;
9224
9225 solaris*)
9226 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9227 ld_shlibs=no
9228 cat <<EOF 1>&2
9229
9230*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9231*** create shared libraries on Solaris systems. Therefore, libtool
9232*** is disabling shared libraries support. We urge you to upgrade GNU
9233*** binutils to release 2.9.1 or newer. Another option is to modify
9234*** your PATH or compiler configuration so that the native linker is
9235*** used, and then restart.
9236
9237EOF
9238 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9239 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9240 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9241 else
9242 ld_shlibs=no
9243 fi
9244 ;;
9245
9246 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9247 case `$LD -v 2>&1` in
9248 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9249 ld_shlibs=no
9250 cat <<_LT_EOF 1>&2
9251
9252*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9253*** reliably create shared libraries on SCO systems. Therefore, libtool
9254*** is disabling shared libraries support. We urge you to upgrade GNU
9255*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9256*** your PATH or compiler configuration so that the native linker is
9257*** used, and then restart.
9258
9259_LT_EOF
9260 ;;
9261 *)
9262 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9263 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9264 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9265 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9266 else
9267 ld_shlibs=no
9268 fi
9269 ;;
9270 esac
9271 ;;
9272
9273 sunos4*)
9274 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9275 wlarc=
9276 hardcode_direct=yes
9277 hardcode_shlibpath_var=no
9278 ;;
9279
9280 *)
9281 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9282 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9283 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9284 else
9285 ld_shlibs=no
9286 fi
9287 ;;
9288 esac
9289
9290 if test "$ld_shlibs" = no; then
9291 runpath_var=
9292 hardcode_libdir_flag_spec=
9293 export_dynamic_flag_spec=
9294 whole_archive_flag_spec=
9295 fi
9296 else
9297 # PORTME fill in a description of your system's linker (not GNU ld)
9298 case $host_os in
9299 aix3*)
9300 allow_undefined_flag=unsupported
9301 always_export_symbols=yes
9302 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'
9303 # Note: this linker hardcodes the directories in LIBPATH if there
9304 # are no directories specified by -L.
9305 hardcode_minus_L=yes
9306 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9307 # Neither direct hardcoding nor static linking is supported with a
9308 # broken collect2.
9309 hardcode_direct=unsupported
9310 fi
9311 ;;
9312
56efe974 9313 aix[4-9]*)
b57f37fb
WP
9314 if test "$host_cpu" = ia64; then
9315 # On IA64, the linker does run time linking by default, so we don't
9316 # have to do anything special.
9317 aix_use_runtimelinking=no
9318 exp_sym_flag='-Bexport'
9319 no_entry_flag=""
9320 else
9321 # If we're using GNU nm, then we don't want the "-C" option.
9322 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9323 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9324 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'
9325 else
9326 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'
9327 fi
9328 aix_use_runtimelinking=no
9329
9330 # Test if we are trying to use run time linking or normal
9331 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9332 # need to do runtime linking.
56efe974 9333 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
b57f37fb
WP
9334 for ld_flag in $LDFLAGS; do
9335 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9336 aix_use_runtimelinking=yes
9337 break
9338 fi
9339 done
9340 ;;
9341 esac
9342
9343 exp_sym_flag='-bexport'
9344 no_entry_flag='-bnoentry'
9345 fi
9346
9347 # When large executables or shared objects are built, AIX ld can
9348 # have problems creating the table of contents. If linking a library
9349 # or program results in "error TOC overflow" add -mminimal-toc to
9350 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9351 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9352
9353 archive_cmds=''
9354 hardcode_direct=yes
9355 hardcode_libdir_separator=':'
9356 link_all_deplibs=yes
9357
9358 if test "$GCC" = yes; then
9359 case $host_os in aix4.[012]|aix4.[012].*)
9360 # We only want to do this on AIX 4.2 and lower, the check
9361 # below for broken collect2 doesn't work under 4.3+
9362 collect2name=`${CC} -print-prog-name=collect2`
9363 if test -f "$collect2name" && \
9364 strings "$collect2name" | grep resolve_lib_name >/dev/null
9365 then
9366 # We have reworked collect2
9367 :
9368 else
9369 # We have old collect2
9370 hardcode_direct=unsupported
9371 # It fails to find uninstalled libraries when the uninstalled
9372 # path is not listed in the libpath. Setting hardcode_minus_L
9373 # to unsupported forces relinking
9374 hardcode_minus_L=yes
9375 hardcode_libdir_flag_spec='-L$libdir'
9376 hardcode_libdir_separator=
9377 fi
9378 ;;
9379 esac
9380 shared_flag='-shared'
9381 if test "$aix_use_runtimelinking" = yes; then
9382 shared_flag="$shared_flag "'${wl}-G'
9383 fi
9384 else
9385 # not using gcc
9386 if test "$host_cpu" = ia64; then
9387 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9388 # chokes on -Wl,-G. The following line is correct:
9389 shared_flag='-G'
9390 else
9391 if test "$aix_use_runtimelinking" = yes; then
9392 shared_flag='${wl}-G'
9393 else
9394 shared_flag='${wl}-bM:SRE'
9395 fi
9396 fi
9397 fi
9398
9399 # It seems that -bexpall does not export symbols beginning with
9400 # underscore (_), so it is better to generate a list of symbols to export.
9401 always_export_symbols=yes
9402 if test "$aix_use_runtimelinking" = yes; then
9403 # Warning - without using the other runtime loading flags (-brtl),
9404 # -berok will link without error, but may produce a broken library.
9405 allow_undefined_flag='-berok'
9406 # Determine the default libpath from the value encoded in an empty executable.
9407 cat >conftest.$ac_ext <<_ACEOF
9408/* confdefs.h. */
9409_ACEOF
9410cat confdefs.h >>conftest.$ac_ext
9411cat >>conftest.$ac_ext <<_ACEOF
9412/* end confdefs.h. */
9413
9414int
9415main ()
9416{
9417
9418 ;
9419 return 0;
9420}
9421_ACEOF
9422rm -f conftest.$ac_objext conftest$ac_exeext
9423if { (ac_try="$ac_link"
9424case "(($ac_try" in
9425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9426 *) ac_try_echo=$ac_try;;
9427esac
9428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9429 (eval "$ac_link") 2>conftest.er1
9430 ac_status=$?
9431 grep -v '^ *+' conftest.er1 >conftest.err
9432 rm -f conftest.er1
9433 cat conftest.err >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } && {
9436 test -z "$ac_c_werror_flag" ||
9437 test ! -s conftest.err
9438 } && test -s conftest$ac_exeext &&
9439 $as_test_x conftest$ac_exeext; then
9440
9441lt_aix_libpath_sed='
9442 /Import File Strings/,/^$/ {
9443 /^0/ {
9444 s/^0 *\(.*\)$/\1/
9445 p
9446 }
9447 }'
9448aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9449# Check for a 64-bit object if we didn't find anything.
9450if test -z "$aix_libpath"; then
9451 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9452fi
9453else
9454 echo "$as_me: failed program was:" >&5
9455sed 's/^/| /' conftest.$ac_ext >&5
9456
9457
9458fi
9459
9460rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9461 conftest$ac_exeext conftest.$ac_ext
9462if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9463
9464 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9465 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"
9466 else
9467 if test "$host_cpu" = ia64; then
9468 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9469 allow_undefined_flag="-z nodefs"
9470 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"
9471 else
9472 # Determine the default libpath from the value encoded in an empty executable.
9473 cat >conftest.$ac_ext <<_ACEOF
9474/* confdefs.h. */
9475_ACEOF
9476cat confdefs.h >>conftest.$ac_ext
9477cat >>conftest.$ac_ext <<_ACEOF
9478/* end confdefs.h. */
9479
9480int
9481main ()
9482{
9483
9484 ;
9485 return 0;
9486}
9487_ACEOF
9488rm -f conftest.$ac_objext conftest$ac_exeext
9489if { (ac_try="$ac_link"
9490case "(($ac_try" in
9491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9492 *) ac_try_echo=$ac_try;;
9493esac
9494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9495 (eval "$ac_link") 2>conftest.er1
9496 ac_status=$?
9497 grep -v '^ *+' conftest.er1 >conftest.err
9498 rm -f conftest.er1
9499 cat conftest.err >&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); } && {
9502 test -z "$ac_c_werror_flag" ||
9503 test ! -s conftest.err
9504 } && test -s conftest$ac_exeext &&
9505 $as_test_x conftest$ac_exeext; then
9506
9507lt_aix_libpath_sed='
9508 /Import File Strings/,/^$/ {
9509 /^0/ {
9510 s/^0 *\(.*\)$/\1/
9511 p
9512 }
9513 }'
9514aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9515# Check for a 64-bit object if we didn't find anything.
9516if test -z "$aix_libpath"; then
9517 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9518fi
9519else
9520 echo "$as_me: failed program was:" >&5
9521sed 's/^/| /' conftest.$ac_ext >&5
9522
9523
9524fi
9525
9526rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9527 conftest$ac_exeext conftest.$ac_ext
9528if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9529
9530 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9531 # Warning - without using the other run time loading flags,
9532 # -berok will link without error, but may produce a broken library.
9533 no_undefined_flag=' ${wl}-bernotok'
9534 allow_undefined_flag=' ${wl}-berok'
9535 # Exported symbols can be pulled into shared objects from archives
9536 whole_archive_flag_spec='$convenience'
9537 archive_cmds_need_lc=yes
9538 # This is similar to how AIX traditionally builds its shared libraries.
9539 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'
9540 fi
9541 fi
9542 ;;
9543
9544 amigaos*)
9545 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)'
9546 hardcode_libdir_flag_spec='-L$libdir'
9547 hardcode_minus_L=yes
9548 # see comment about different semantics on the GNU ld section
9549 ld_shlibs=no
9550 ;;
9551
9552 bsdi[45]*)
9553 export_dynamic_flag_spec=-rdynamic
9554 ;;
9555
9556 cygwin* | mingw* | pw32*)
9557 # When not using gcc, we currently assume that we are using
9558 # Microsoft Visual C++.
9559 # hardcode_libdir_flag_spec is actually meaningless, as there is
9560 # no search path for DLLs.
9561 hardcode_libdir_flag_spec=' '
9562 allow_undefined_flag=unsupported
9563 # Tell ltmain to make .lib files, not .a files.
9564 libext=lib
9565 # Tell ltmain to make .dll files, not .so files.
9566 shrext_cmds=".dll"
9567 # FIXME: Setting linknames here is a bad hack.
9568 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9569 # The linker will automatically build a .lib file if we build a DLL.
9570 old_archive_From_new_cmds='true'
9571 # FIXME: Should let the user specify the lib program.
9572 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9573 fix_srcfile_path='`cygpath -w "$srcfile"`'
9574 enable_shared_with_static_runtimes=yes
9575 ;;
9576
9577 darwin* | rhapsody*)
9578 case $host_os in
9579 rhapsody* | darwin1.[012])
9580 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9581 ;;
9582 *) # Darwin 1.3 on
9583 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9584 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9585 else
9586 case ${MACOSX_DEPLOYMENT_TARGET} in
9587 10.[012])
9588 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9589 ;;
9590 10.*)
9591 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9592 ;;
9593 esac
9594 fi
9595 ;;
9596 esac
9597 archive_cmds_need_lc=no
9598 hardcode_direct=no
9599 hardcode_automatic=yes
9600 hardcode_shlibpath_var=unsupported
9601 whole_archive_flag_spec=''
9602 link_all_deplibs=yes
9603 if test "$GCC" = yes ; then
9604 output_verbose_link_cmd='echo'
56efe974
WP
9605 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9606 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9607 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9608 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
b57f37fb
WP
9609 else
9610 case $cc_basename in
9611 xlc*)
9612 output_verbose_link_cmd='echo'
9613 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9614 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9615 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9616 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}'
9617 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}'
9618 ;;
9619 *)
9620 ld_shlibs=no
9621 ;;
9622 esac
9623 fi
9624 ;;
9625
9626 dgux*)
9627 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9628 hardcode_libdir_flag_spec='-L$libdir'
9629 hardcode_shlibpath_var=no
9630 ;;
9631
9632 freebsd1*)
9633 ld_shlibs=no
9634 ;;
9635
9636 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9637 # support. Future versions do this automatically, but an explicit c++rt0.o
9638 # does not break anything, and helps significantly (at the cost of a little
9639 # extra space).
9640 freebsd2.2*)
9641 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9642 hardcode_libdir_flag_spec='-R$libdir'
9643 hardcode_direct=yes
9644 hardcode_shlibpath_var=no
9645 ;;
9646
9647 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9648 freebsd2*)
9649 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9650 hardcode_direct=yes
9651 hardcode_minus_L=yes
9652 hardcode_shlibpath_var=no
9653 ;;
9654
9655 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9656 freebsd* | dragonfly*)
9657 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9658 hardcode_libdir_flag_spec='-R$libdir'
9659 hardcode_direct=yes
9660 hardcode_shlibpath_var=no
9661 ;;
9662
9663 hpux9*)
9664 if test "$GCC" = yes; then
9665 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'
9666 else
9667 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'
9668 fi
9669 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9670 hardcode_libdir_separator=:
9671 hardcode_direct=yes
9672
9673 # hardcode_minus_L: Not really in the search PATH,
9674 # but as the default location of the library.
9675 hardcode_minus_L=yes
9676 export_dynamic_flag_spec='${wl}-E'
9677 ;;
9678
9679 hpux10*)
9680 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9681 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9682 else
9683 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9684 fi
9685 if test "$with_gnu_ld" = no; then
9686 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9687 hardcode_libdir_separator=:
9688
9689 hardcode_direct=yes
9690 export_dynamic_flag_spec='${wl}-E'
9691
9692 # hardcode_minus_L: Not really in the search PATH,
9693 # but as the default location of the library.
9694 hardcode_minus_L=yes
9695 fi
9696 ;;
9697
9698 hpux11*)
9699 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9700 case $host_cpu in
9701 hppa*64*)
9702 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9703 ;;
9704 ia64*)
9705 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9706 ;;
9707 *)
9708 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9709 ;;
9710 esac
9711 else
9712 case $host_cpu in
9713 hppa*64*)
9714 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9715 ;;
9716 ia64*)
9717 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9718 ;;
9719 *)
9720 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9721 ;;
9722 esac
9723 fi
9724 if test "$with_gnu_ld" = no; then
9725 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9726 hardcode_libdir_separator=:
9727
9728 case $host_cpu in
9729 hppa*64*|ia64*)
9730 hardcode_libdir_flag_spec_ld='+b $libdir'
9731 hardcode_direct=no
9732 hardcode_shlibpath_var=no
9733 ;;
9734 *)
9735 hardcode_direct=yes
9736 export_dynamic_flag_spec='${wl}-E'
9737
9738 # hardcode_minus_L: Not really in the search PATH,
9739 # but as the default location of the library.
9740 hardcode_minus_L=yes
9741 ;;
9742 esac
9743 fi
9744 ;;
9745
9746 irix5* | irix6* | nonstopux*)
9747 if test "$GCC" = yes; then
9748 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'
9749 else
9750 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'
9751 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9752 fi
9753 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9754 hardcode_libdir_separator=:
9755 link_all_deplibs=yes
9756 ;;
9757
9758 netbsd* | netbsdelf*-gnu)
9759 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9760 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9761 else
9762 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9763 fi
9764 hardcode_libdir_flag_spec='-R$libdir'
9765 hardcode_direct=yes
9766 hardcode_shlibpath_var=no
9767 ;;
9768
9769 newsos6)
9770 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9771 hardcode_direct=yes
9772 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9773 hardcode_libdir_separator=:
9774 hardcode_shlibpath_var=no
9775 ;;
9776
9777 openbsd*)
9778 if test -f /usr/libexec/ld.so; then
9779 hardcode_direct=yes
9780 hardcode_shlibpath_var=no
9781 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9782 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9783 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9784 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9785 export_dynamic_flag_spec='${wl}-E'
9786 else
9787 case $host_os in
9788 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9789 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9790 hardcode_libdir_flag_spec='-R$libdir'
9791 ;;
9792 *)
9793 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9794 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9795 ;;
9796 esac
9797 fi
9798 else
9799 ld_shlibs=no
9800 fi
9801 ;;
9802
9803 os2*)
9804 hardcode_libdir_flag_spec='-L$libdir'
9805 hardcode_minus_L=yes
9806 allow_undefined_flag=unsupported
9807 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'
9808 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9809 ;;
9810
9811 osf3*)
9812 if test "$GCC" = yes; then
9813 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9814 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'
9815 else
9816 allow_undefined_flag=' -expect_unresolved \*'
9817 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'
9818 fi
9819 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9820 hardcode_libdir_separator=:
9821 ;;
9822
9823 osf4* | osf5*) # as osf3* with the addition of -msym flag
9824 if test "$GCC" = yes; then
9825 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9826 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'
9827 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9828 else
9829 allow_undefined_flag=' -expect_unresolved \*'
9830 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'
9831 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9832 $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'
9833
9834 # Both c and cxx compiler support -rpath directly
9835 hardcode_libdir_flag_spec='-rpath $libdir'
9836 fi
9837 hardcode_libdir_separator=:
9838 ;;
9839
9840 solaris*)
9841 no_undefined_flag=' -z text'
9842 if test "$GCC" = yes; then
9843 wlarc='${wl}'
9844 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9845 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9846 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9847 else
9848 wlarc=''
9849 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9850 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9851 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9852 fi
9853 hardcode_libdir_flag_spec='-R$libdir'
9854 hardcode_shlibpath_var=no
9855 case $host_os in
9856 solaris2.[0-5] | solaris2.[0-5].*) ;;
9857 *)
9858 # The compiler driver will combine and reorder linker options,
9859 # but understands `-z linker_flag'. GCC discards it without `$wl',
9860 # but is careful enough not to reorder.
9861 # Supported since Solaris 2.6 (maybe 2.5.1?)
9862 if test "$GCC" = yes; then
9863 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9864 else
9865 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9866 fi
9867 ;;
9868 esac
9869 link_all_deplibs=yes
9870 ;;
9871
9872 sunos4*)
9873 if test "x$host_vendor" = xsequent; then
9874 # Use $CC to link under sequent, because it throws in some extra .o
9875 # files that make .init and .fini sections work.
9876 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9877 else
9878 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9879 fi
9880 hardcode_libdir_flag_spec='-L$libdir'
9881 hardcode_direct=yes
9882 hardcode_minus_L=yes
9883 hardcode_shlibpath_var=no
9884 ;;
9885
9886 sysv4)
9887 case $host_vendor in
9888 sni)
9889 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9890 hardcode_direct=yes # is this really true???
9891 ;;
9892 siemens)
9893 ## LD is ld it makes a PLAMLIB
9894 ## CC just makes a GrossModule.
9895 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9896 reload_cmds='$CC -r -o $output$reload_objs'
9897 hardcode_direct=no
9898 ;;
9899 motorola)
9900 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9901 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9902 ;;
9903 esac
9904 runpath_var='LD_RUN_PATH'
9905 hardcode_shlibpath_var=no
9906 ;;
9907
9908 sysv4.3*)
9909 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9910 hardcode_shlibpath_var=no
9911 export_dynamic_flag_spec='-Bexport'
9912 ;;
9913
9914 sysv4*MP*)
9915 if test -d /usr/nec; then
9916 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9917 hardcode_shlibpath_var=no
9918 runpath_var=LD_RUN_PATH
9919 hardcode_runpath_var=yes
9920 ld_shlibs=yes
9921 fi
9922 ;;
9923
9924 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9925 no_undefined_flag='${wl}-z,text'
9926 archive_cmds_need_lc=no
9927 hardcode_shlibpath_var=no
9928 runpath_var='LD_RUN_PATH'
9929
9930 if test "$GCC" = yes; then
9931 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9932 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9933 else
9934 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9935 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9936 fi
9937 ;;
9938
9939 sysv5* | sco3.2v5* | sco5v6*)
9940 # Note: We can NOT use -z defs as we might desire, because we do not
9941 # link with -lc, and that would cause any symbols used from libc to
9942 # always be unresolved, which means just about no library would
9943 # ever link correctly. If we're not using GNU ld we use -z text
9944 # though, which does catch some bad symbols but isn't as heavy-handed
9945 # as -z defs.
9946 no_undefined_flag='${wl}-z,text'
9947 allow_undefined_flag='${wl}-z,nodefs'
9948 archive_cmds_need_lc=no
9949 hardcode_shlibpath_var=no
9950 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9951 hardcode_libdir_separator=':'
9952 link_all_deplibs=yes
9953 export_dynamic_flag_spec='${wl}-Bexport'
9954 runpath_var='LD_RUN_PATH'
9955
9956 if test "$GCC" = yes; then
9957 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9958 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9959 else
9960 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9961 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9962 fi
9963 ;;
9964
9965 uts4*)
9966 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9967 hardcode_libdir_flag_spec='-L$libdir'
9968 hardcode_shlibpath_var=no
9969 ;;
9970
9971 *)
9972 ld_shlibs=no
9973 ;;
9974 esac
9975 fi
9976
9977{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9978echo "${ECHO_T}$ld_shlibs" >&6; }
9979test "$ld_shlibs" = no && can_build_shared=no
9980
9981#
9982# Do we need to explicitly link libc?
9983#
9984case "x$archive_cmds_need_lc" in
9985x|xyes)
9986 # Assume -lc should be added
9987 archive_cmds_need_lc=yes
9988
9989 if test "$enable_shared" = yes && test "$GCC" = yes; then
9990 case $archive_cmds in
9991 *'~'*)
9992 # FIXME: we may have to deal with multi-command sequences.
9993 ;;
9994 '$CC '*)
9995 # Test whether the compiler implicitly links with -lc since on some
9996 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9997 # to ld, don't add -lc before -lgcc.
9998 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9999echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10000 $rm conftest*
10001 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10002
10003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10004 (eval $ac_compile) 2>&5
10005 ac_status=$?
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); } 2>conftest.err; then
10008 soname=conftest
10009 lib=conftest
10010 libobjs=conftest.$ac_objext
10011 deplibs=
10012 wl=$lt_prog_compiler_wl
10013 pic_flag=$lt_prog_compiler_pic
10014 compiler_flags=-v
10015 linker_flags=-v
10016 verstring=
10017 output_objdir=.
10018 libname=conftest
10019 lt_save_allow_undefined_flag=$allow_undefined_flag
10020 allow_undefined_flag=
10021 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10022 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10023 ac_status=$?
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); }
10026 then
10027 archive_cmds_need_lc=no
10028 else
10029 archive_cmds_need_lc=yes
10030 fi
10031 allow_undefined_flag=$lt_save_allow_undefined_flag
10032 else
10033 cat conftest.err 1>&5
10034 fi
10035 $rm conftest*
10036 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10037echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10038 ;;
10039 esac
10040 fi
10041 ;;
10042esac
10043
10044{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10045echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10046library_names_spec=
10047libname_spec='lib$name'
10048soname_spec=
10049shrext_cmds=".so"
10050postinstall_cmds=
10051postuninstall_cmds=
10052finish_cmds=
10053finish_eval=
10054shlibpath_var=
10055shlibpath_overrides_runpath=unknown
10056version_type=none
10057dynamic_linker="$host_os ld.so"
10058sys_lib_dlsearch_path_spec="/lib /usr/lib"
10059
10060if test "$GCC" = yes; then
10061 case $host_os in
10062 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10063 *) lt_awk_arg="/^libraries:/" ;;
10064 esac
10065 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10066 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
10067 # if the path contains ";" then we assume it to be the separator
10068 # otherwise default to the standard path separator (i.e. ":") - it is
10069 # assumed that no part of a normal pathname contains ";" but that should
10070 # okay in the real world where ";" in dirpaths is itself problematic.
10071 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10072 else
10073 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10074 fi
10075 # Ok, now we have the path, separated by spaces, we can step through it
10076 # and add multilib dir if necessary.
10077 lt_tmp_lt_search_path_spec=
10078 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10079 for lt_sys_path in $lt_search_path_spec; do
10080 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10081 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10082 else
10083 test -d "$lt_sys_path" && \
10084 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10085 fi
10086 done
10087 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
10088BEGIN {RS=" "; FS="/|\n";} {
10089 lt_foo="";
10090 lt_count=0;
10091 for (lt_i = NF; lt_i > 0; lt_i--) {
10092 if ($lt_i != "" && $lt_i != ".") {
10093 if ($lt_i == "..") {
10094 lt_count++;
10095 } else {
10096 if (lt_count == 0) {
10097 lt_foo="/" $lt_i lt_foo;
10098 } else {
10099 lt_count--;
10100 }
10101 }
10102 }
10103 }
10104 if (lt_foo != "") { lt_freq[lt_foo]++; }
10105 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10106}'`
10107 sys_lib_search_path_spec=`echo $lt_search_path_spec`
10108else
10109 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10110fi
10111need_lib_prefix=unknown
10112hardcode_into_libs=no
10113
10114# when you set need_version to no, make sure it does not cause -set_version
10115# flags to be left without arguments
10116need_version=unknown
10117
10118case $host_os in
10119aix3*)
10120 version_type=linux
10121 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10122 shlibpath_var=LIBPATH
10123
10124 # AIX 3 has no versioning support, so we append a major version to the name.
10125 soname_spec='${libname}${release}${shared_ext}$major'
10126 ;;
10127
56efe974 10128aix[4-9]*)
b57f37fb
WP
10129 version_type=linux
10130 need_lib_prefix=no
10131 need_version=no
10132 hardcode_into_libs=yes
10133 if test "$host_cpu" = ia64; then
10134 # AIX 5 supports IA64
10135 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10136 shlibpath_var=LD_LIBRARY_PATH
10137 else
10138 # With GCC up to 2.95.x, collect2 would create an import file
10139 # for dependence libraries. The import file would start with
10140 # the line `#! .'. This would cause the generated library to
10141 # depend on `.', always an invalid library. This was fixed in
10142 # development snapshots of GCC prior to 3.0.
10143 case $host_os in
10144 aix4 | aix4.[01] | aix4.[01].*)
10145 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10146 echo ' yes '
10147 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10148 :
10149 else
10150 can_build_shared=no
10151 fi
10152 ;;
10153 esac
10154 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10155 # soname into executable. Probably we can add versioning support to
10156 # collect2, so additional links can be useful in future.
10157 if test "$aix_use_runtimelinking" = yes; then
10158 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10159 # instead of lib<name>.a to let people know that these are not
10160 # typical AIX shared libraries.
10161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10162 else
10163 # We preserve .a as extension for shared libraries through AIX4.2
10164 # and later when we are not doing run time linking.
10165 library_names_spec='${libname}${release}.a $libname.a'
10166 soname_spec='${libname}${release}${shared_ext}$major'
10167 fi
10168 shlibpath_var=LIBPATH
10169 fi
10170 ;;
10171
10172amigaos*)
10173 library_names_spec='$libname.ixlibrary $libname.a'
10174 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10175 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'
10176 ;;
10177
10178beos*)
10179 library_names_spec='${libname}${shared_ext}'
10180 dynamic_linker="$host_os ld.so"
10181 shlibpath_var=LIBRARY_PATH
10182 ;;
10183
10184bsdi[45]*)
10185 version_type=linux
10186 need_version=no
10187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10188 soname_spec='${libname}${release}${shared_ext}$major'
10189 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10190 shlibpath_var=LD_LIBRARY_PATH
10191 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10192 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10193 # the default ld.so.conf also contains /usr/contrib/lib and
10194 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10195 # libtool to hard-code these into programs
10196 ;;
10197
10198cygwin* | mingw* | pw32*)
10199 version_type=windows
10200 shrext_cmds=".dll"
10201 need_version=no
10202 need_lib_prefix=no
10203
10204 case $GCC,$host_os in
10205 yes,cygwin* | yes,mingw* | yes,pw32*)
10206 library_names_spec='$libname.dll.a'
10207 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10208 postinstall_cmds='base_file=`basename \${file}`~
10209 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10210 dldir=$destdir/`dirname \$dlpath`~
10211 test -d \$dldir || mkdir -p \$dldir~
10212 $install_prog $dir/$dlname \$dldir/$dlname~
10213 chmod a+x \$dldir/$dlname'
10214 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10215 dlpath=$dir/\$dldll~
10216 $rm \$dlpath'
10217 shlibpath_overrides_runpath=yes
10218
10219 case $host_os in
10220 cygwin*)
10221 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10222 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10223 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10224 ;;
10225 mingw*)
10226 # MinGW DLLs use traditional 'lib' prefix
10227 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10228 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10229 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10230 # It is most probably a Windows format PATH printed by
10231 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10232 # path with ; separators, and with drive letters. We can handle the
10233 # drive letters (cygwin fileutils understands them), so leave them,
10234 # especially as we might pass files found there to a mingw objdump,
10235 # which wouldn't understand a cygwinified path. Ahh.
10236 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10237 else
10238 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10239 fi
10240 ;;
10241 pw32*)
10242 # pw32 DLLs use 'pw' prefix rather than 'lib'
10243 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10244 ;;
10245 esac
10246 ;;
10247
10248 *)
10249 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10250 ;;
10251 esac
10252 dynamic_linker='Win32 ld.exe'
10253 # FIXME: first we should search . and the directory the executable is in
10254 shlibpath_var=PATH
10255 ;;
10256
10257darwin* | rhapsody*)
10258 dynamic_linker="$host_os dyld"
10259 version_type=darwin
10260 need_lib_prefix=no
10261 need_version=no
10262 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10263 soname_spec='${libname}${release}${major}$shared_ext'
10264 shlibpath_overrides_runpath=yes
10265 shlibpath_var=DYLD_LIBRARY_PATH
10266 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10267
10268 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10269 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10270 ;;
10271
10272dgux*)
10273 version_type=linux
10274 need_lib_prefix=no
10275 need_version=no
10276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10277 soname_spec='${libname}${release}${shared_ext}$major'
10278 shlibpath_var=LD_LIBRARY_PATH
10279 ;;
10280
10281freebsd1*)
10282 dynamic_linker=no
10283 ;;
10284
10285freebsd* | dragonfly*)
10286 # DragonFly does not have aout. When/if they implement a new
10287 # versioning mechanism, adjust this.
10288 if test -x /usr/bin/objformat; then
10289 objformat=`/usr/bin/objformat`
10290 else
10291 case $host_os in
10292 freebsd[123]*) objformat=aout ;;
10293 *) objformat=elf ;;
10294 esac
10295 fi
10296 version_type=freebsd-$objformat
10297 case $version_type in
10298 freebsd-elf*)
10299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10300 need_version=no
10301 need_lib_prefix=no
10302 ;;
10303 freebsd-*)
10304 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10305 need_version=yes
10306 ;;
10307 esac
10308 shlibpath_var=LD_LIBRARY_PATH
10309 case $host_os in
10310 freebsd2*)
10311 shlibpath_overrides_runpath=yes
10312 ;;
10313 freebsd3.[01]* | freebsdelf3.[01]*)
10314 shlibpath_overrides_runpath=yes
10315 hardcode_into_libs=yes
10316 ;;
10317 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10318 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10319 shlibpath_overrides_runpath=no
10320 hardcode_into_libs=yes
10321 ;;
10322 *) # from 4.6 on, and DragonFly
10323 shlibpath_overrides_runpath=yes
10324 hardcode_into_libs=yes
10325 ;;
10326 esac
10327 ;;
10328
10329gnu*)
10330 version_type=linux
10331 need_lib_prefix=no
10332 need_version=no
10333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10334 soname_spec='${libname}${release}${shared_ext}$major'
10335 shlibpath_var=LD_LIBRARY_PATH
10336 hardcode_into_libs=yes
10337 ;;
10338
10339hpux9* | hpux10* | hpux11*)
10340 # Give a soname corresponding to the major version so that dld.sl refuses to
10341 # link against other versions.
10342 version_type=sunos
10343 need_lib_prefix=no
10344 need_version=no
10345 case $host_cpu in
10346 ia64*)
10347 shrext_cmds='.so'
10348 hardcode_into_libs=yes
10349 dynamic_linker="$host_os dld.so"
10350 shlibpath_var=LD_LIBRARY_PATH
10351 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10353 soname_spec='${libname}${release}${shared_ext}$major'
10354 if test "X$HPUX_IA64_MODE" = X32; then
10355 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10356 else
10357 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10358 fi
10359 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10360 ;;
10361 hppa*64*)
10362 shrext_cmds='.sl'
10363 hardcode_into_libs=yes
10364 dynamic_linker="$host_os dld.sl"
10365 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10366 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10368 soname_spec='${libname}${release}${shared_ext}$major'
10369 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10370 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10371 ;;
10372 *)
10373 shrext_cmds='.sl'
10374 dynamic_linker="$host_os dld.sl"
10375 shlibpath_var=SHLIB_PATH
10376 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10378 soname_spec='${libname}${release}${shared_ext}$major'
10379 ;;
10380 esac
10381 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10382 postinstall_cmds='chmod 555 $lib'
10383 ;;
10384
10385interix[3-9]*)
10386 version_type=linux
10387 need_lib_prefix=no
10388 need_version=no
10389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10390 soname_spec='${libname}${release}${shared_ext}$major'
10391 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10392 shlibpath_var=LD_LIBRARY_PATH
10393 shlibpath_overrides_runpath=no
10394 hardcode_into_libs=yes
10395 ;;
10396
10397irix5* | irix6* | nonstopux*)
10398 case $host_os in
10399 nonstopux*) version_type=nonstopux ;;
10400 *)
10401 if test "$lt_cv_prog_gnu_ld" = yes; then
10402 version_type=linux
10403 else
10404 version_type=irix
10405 fi ;;
10406 esac
10407 need_lib_prefix=no
10408 need_version=no
10409 soname_spec='${libname}${release}${shared_ext}$major'
10410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10411 case $host_os in
10412 irix5* | nonstopux*)
10413 libsuff= shlibsuff=
10414 ;;
10415 *)
10416 case $LD in # libtool.m4 will add one of these switches to LD
10417 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10418 libsuff= shlibsuff= libmagic=32-bit;;
10419 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10420 libsuff=32 shlibsuff=N32 libmagic=N32;;
10421 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10422 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10423 *) libsuff= shlibsuff= libmagic=never-match;;
10424 esac
10425 ;;
10426 esac
10427 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10428 shlibpath_overrides_runpath=no
10429 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10430 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10431 hardcode_into_libs=yes
10432 ;;
10433
10434# No shared lib support for Linux oldld, aout, or coff.
10435linux*oldld* | linux*aout* | linux*coff*)
10436 dynamic_linker=no
10437 ;;
10438
10439# This must be Linux ELF.
10440linux* | k*bsd*-gnu)
10441 version_type=linux
10442 need_lib_prefix=no
10443 need_version=no
10444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10445 soname_spec='${libname}${release}${shared_ext}$major'
10446 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10447 shlibpath_var=LD_LIBRARY_PATH
10448 shlibpath_overrides_runpath=no
10449 # This implies no fast_install, which is unacceptable.
10450 # Some rework will be needed to allow for fast_install
10451 # before this can be enabled.
10452 hardcode_into_libs=yes
10453
10454 # Append ld.so.conf contents to the search path
10455 if test -f /etc/ld.so.conf; then
10456 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' ' '`
10457 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10458 fi
10459
10460 # We used to test for /lib/ld.so.1 and disable shared libraries on
10461 # powerpc, because MkLinux only supported shared libraries with the
10462 # GNU dynamic linker. Since this was broken with cross compilers,
10463 # most powerpc-linux boxes support dynamic linking these days and
10464 # people can always --disable-shared, the test was removed, and we
10465 # assume the GNU/Linux dynamic linker is in use.
10466 dynamic_linker='GNU/Linux ld.so'
10467 ;;
10468
10469netbsdelf*-gnu)
10470 version_type=linux
10471 need_lib_prefix=no
10472 need_version=no
10473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10474 soname_spec='${libname}${release}${shared_ext}$major'
10475 shlibpath_var=LD_LIBRARY_PATH
10476 shlibpath_overrides_runpath=no
10477 hardcode_into_libs=yes
10478 dynamic_linker='NetBSD ld.elf_so'
10479 ;;
10480
10481netbsd*)
10482 version_type=sunos
10483 need_lib_prefix=no
10484 need_version=no
10485 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10487 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10488 dynamic_linker='NetBSD (a.out) ld.so'
10489 else
10490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10491 soname_spec='${libname}${release}${shared_ext}$major'
10492 dynamic_linker='NetBSD ld.elf_so'
10493 fi
10494 shlibpath_var=LD_LIBRARY_PATH
10495 shlibpath_overrides_runpath=yes
10496 hardcode_into_libs=yes
10497 ;;
10498
10499newsos6)
10500 version_type=linux
10501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10502 shlibpath_var=LD_LIBRARY_PATH
10503 shlibpath_overrides_runpath=yes
10504 ;;
10505
10506nto-qnx*)
10507 version_type=linux
10508 need_lib_prefix=no
10509 need_version=no
10510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10511 soname_spec='${libname}${release}${shared_ext}$major'
10512 shlibpath_var=LD_LIBRARY_PATH
10513 shlibpath_overrides_runpath=yes
10514 ;;
10515
10516openbsd*)
10517 version_type=sunos
10518 sys_lib_dlsearch_path_spec="/usr/lib"
10519 need_lib_prefix=no
10520 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10521 case $host_os in
10522 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10523 *) need_version=no ;;
10524 esac
10525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10526 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10527 shlibpath_var=LD_LIBRARY_PATH
10528 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10529 case $host_os in
10530 openbsd2.[89] | openbsd2.[89].*)
10531 shlibpath_overrides_runpath=no
10532 ;;
10533 *)
10534 shlibpath_overrides_runpath=yes
10535 ;;
10536 esac
10537 else
10538 shlibpath_overrides_runpath=yes
10539 fi
10540 ;;
10541
10542os2*)
10543 libname_spec='$name'
10544 shrext_cmds=".dll"
10545 need_lib_prefix=no
10546 library_names_spec='$libname${shared_ext} $libname.a'
10547 dynamic_linker='OS/2 ld.exe'
10548 shlibpath_var=LIBPATH
10549 ;;
10550
10551osf3* | osf4* | osf5*)
10552 version_type=osf
10553 need_lib_prefix=no
10554 need_version=no
10555 soname_spec='${libname}${release}${shared_ext}$major'
10556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10557 shlibpath_var=LD_LIBRARY_PATH
10558 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10559 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10560 ;;
10561
10562rdos*)
10563 dynamic_linker=no
10564 ;;
10565
10566solaris*)
10567 version_type=linux
10568 need_lib_prefix=no
10569 need_version=no
10570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10571 soname_spec='${libname}${release}${shared_ext}$major'
10572 shlibpath_var=LD_LIBRARY_PATH
10573 shlibpath_overrides_runpath=yes
10574 hardcode_into_libs=yes
10575 # ldd complains unless libraries are executable
10576 postinstall_cmds='chmod +x $lib'
10577 ;;
10578
10579sunos4*)
10580 version_type=sunos
10581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10582 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10583 shlibpath_var=LD_LIBRARY_PATH
10584 shlibpath_overrides_runpath=yes
10585 if test "$with_gnu_ld" = yes; then
10586 need_lib_prefix=no
10587 fi
10588 need_version=yes
10589 ;;
10590
10591sysv4 | sysv4.3*)
10592 version_type=linux
10593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10594 soname_spec='${libname}${release}${shared_ext}$major'
10595 shlibpath_var=LD_LIBRARY_PATH
10596 case $host_vendor in
10597 sni)
10598 shlibpath_overrides_runpath=no
10599 need_lib_prefix=no
10600 export_dynamic_flag_spec='${wl}-Blargedynsym'
10601 runpath_var=LD_RUN_PATH
10602 ;;
10603 siemens)
10604 need_lib_prefix=no
10605 ;;
10606 motorola)
10607 need_lib_prefix=no
10608 need_version=no
10609 shlibpath_overrides_runpath=no
10610 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10611 ;;
10612 esac
10613 ;;
10614
10615sysv4*MP*)
10616 if test -d /usr/nec ;then
10617 version_type=linux
10618 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10619 soname_spec='$libname${shared_ext}.$major'
10620 shlibpath_var=LD_LIBRARY_PATH
10621 fi
10622 ;;
10623
10624sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10625 version_type=freebsd-elf
10626 need_lib_prefix=no
10627 need_version=no
10628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10629 soname_spec='${libname}${release}${shared_ext}$major'
10630 shlibpath_var=LD_LIBRARY_PATH
10631 hardcode_into_libs=yes
10632 if test "$with_gnu_ld" = yes; then
10633 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10634 shlibpath_overrides_runpath=no
10635 else
10636 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10637 shlibpath_overrides_runpath=yes
10638 case $host_os in
10639 sco3.2v5*)
10640 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10641 ;;
10642 esac
10643 fi
10644 sys_lib_dlsearch_path_spec='/usr/lib'
10645 ;;
10646
10647uts4*)
10648 version_type=linux
10649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10650 soname_spec='${libname}${release}${shared_ext}$major'
10651 shlibpath_var=LD_LIBRARY_PATH
10652 ;;
10653
10654*)
10655 dynamic_linker=no
10656 ;;
10657esac
10658{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10659echo "${ECHO_T}$dynamic_linker" >&6; }
10660test "$dynamic_linker" = no && can_build_shared=no
10661
56efe974
WP
10662if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10663 echo $ECHO_N "(cached) $ECHO_C" >&6
10664else
10665 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
10666fi
10667
10668sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10669if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10670 echo $ECHO_N "(cached) $ECHO_C" >&6
10671else
10672 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
10673fi
10674
10675sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10676
b57f37fb
WP
10677variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10678if test "$GCC" = yes; then
10679 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10680fi
10681
10682{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10683echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10684hardcode_action=
10685if test -n "$hardcode_libdir_flag_spec" || \
10686 test -n "$runpath_var" || \
10687 test "X$hardcode_automatic" = "Xyes" ; then
10688
10689 # We can hardcode non-existant directories.
10690 if test "$hardcode_direct" != no &&
10691 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10692 # have to relink, otherwise we might link with an installed library
10693 # when we should be linking with a yet-to-be-installed one
10694 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10695 test "$hardcode_minus_L" != no; then
10696 # Linking always hardcodes the temporary library directory.
10697 hardcode_action=relink
10698 else
10699 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10700 hardcode_action=immediate
10701 fi
10702else
10703 # We cannot hardcode anything, or else we can only hardcode existing
10704 # directories.
10705 hardcode_action=unsupported
10706fi
10707{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
10708echo "${ECHO_T}$hardcode_action" >&6; }
10709
10710if test "$hardcode_action" = relink; then
10711 # Fast installation is not supported
10712 enable_fast_install=no
10713elif test "$shlibpath_overrides_runpath" = yes ||
10714 test "$enable_shared" = no; then
10715 # Fast installation is not necessary
10716 enable_fast_install=needless
10717fi
10718
10719striplib=
10720old_striplib=
10721{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10722echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10723if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10724 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10725 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10726 { echo "$as_me:$LINENO: result: yes" >&5
10727echo "${ECHO_T}yes" >&6; }
10728else
10729# FIXME - insert some real tests, host_os isn't really good enough
10730 case $host_os in
10731 darwin*)
10732 if test -n "$STRIP" ; then
10733 striplib="$STRIP -x"
10734 old_striplib="$STRIP -S"
10735 { echo "$as_me:$LINENO: result: yes" >&5
10736echo "${ECHO_T}yes" >&6; }
10737 else
10738 { echo "$as_me:$LINENO: result: no" >&5
10739echo "${ECHO_T}no" >&6; }
10740fi
10741 ;;
10742 *)
10743 { echo "$as_me:$LINENO: result: no" >&5
10744echo "${ECHO_T}no" >&6; }
10745 ;;
10746 esac
10747fi
10748
10749if test "x$enable_dlopen" != xyes; then
10750 enable_dlopen=unknown
10751 enable_dlopen_self=unknown
10752 enable_dlopen_self_static=unknown
10753else
10754 lt_cv_dlopen=no
10755 lt_cv_dlopen_libs=
10756
10757 case $host_os in
10758 beos*)
10759 lt_cv_dlopen="load_add_on"
10760 lt_cv_dlopen_libs=
10761 lt_cv_dlopen_self=yes
10762 ;;
10763
10764 mingw* | pw32*)
10765 lt_cv_dlopen="LoadLibrary"
10766 lt_cv_dlopen_libs=
10767 ;;
10768
10769 cygwin*)
10770 lt_cv_dlopen="dlopen"
10771 lt_cv_dlopen_libs=
10772 ;;
10773
10774 darwin*)
10775 # if libdl is installed we need to link against it
10776 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10777echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10778if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10779 echo $ECHO_N "(cached) $ECHO_C" >&6
10780else
10781 ac_check_lib_save_LIBS=$LIBS
10782LIBS="-ldl $LIBS"
10783cat >conftest.$ac_ext <<_ACEOF
10784/* confdefs.h. */
10785_ACEOF
10786cat confdefs.h >>conftest.$ac_ext
10787cat >>conftest.$ac_ext <<_ACEOF
10788/* end confdefs.h. */
10789
10790/* Override any GCC internal prototype to avoid an error.
10791 Use char because int might match the return type of a GCC
10792 builtin and then its argument prototype would still apply. */
10793#ifdef __cplusplus
10794extern "C"
10795#endif
10796char dlopen ();
10797int
10798main ()
10799{
10800return dlopen ();
10801 ;
10802 return 0;
10803}
10804_ACEOF
10805rm -f conftest.$ac_objext conftest$ac_exeext
10806if { (ac_try="$ac_link"
10807case "(($ac_try" in
10808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10809 *) ac_try_echo=$ac_try;;
10810esac
10811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812 (eval "$ac_link") 2>conftest.er1
10813 ac_status=$?
10814 grep -v '^ *+' conftest.er1 >conftest.err
10815 rm -f conftest.er1
10816 cat conftest.err >&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); } && {
10819 test -z "$ac_c_werror_flag" ||
10820 test ! -s conftest.err
10821 } && test -s conftest$ac_exeext &&
10822 $as_test_x conftest$ac_exeext; then
10823 ac_cv_lib_dl_dlopen=yes
10824else
10825 echo "$as_me: failed program was:" >&5
10826sed 's/^/| /' conftest.$ac_ext >&5
10827
10828 ac_cv_lib_dl_dlopen=no
10829fi
10830
10831rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10832 conftest$ac_exeext conftest.$ac_ext
10833LIBS=$ac_check_lib_save_LIBS
10834fi
10835{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10836echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10837if test $ac_cv_lib_dl_dlopen = yes; then
10838 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10839else
10840
10841 lt_cv_dlopen="dyld"
10842 lt_cv_dlopen_libs=
10843 lt_cv_dlopen_self=yes
10844
10845fi
10846
10847 ;;
10848
10849 *)
10850 { echo "$as_me:$LINENO: checking for shl_load" >&5
10851echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10852if test "${ac_cv_func_shl_load+set}" = set; then
10853 echo $ECHO_N "(cached) $ECHO_C" >&6
10854else
10855 cat >conftest.$ac_ext <<_ACEOF
10856/* confdefs.h. */
10857_ACEOF
10858cat confdefs.h >>conftest.$ac_ext
10859cat >>conftest.$ac_ext <<_ACEOF
10860/* end confdefs.h. */
10861/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10863#define shl_load innocuous_shl_load
10864
10865/* System header to define __stub macros and hopefully few prototypes,
10866 which can conflict with char shl_load (); below.
10867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10868 <limits.h> exists even on freestanding compilers. */
10869
10870#ifdef __STDC__
10871# include <limits.h>
10872#else
10873# include <assert.h>
10874#endif
10875
10876#undef shl_load
10877
10878/* Override any GCC internal prototype to avoid an error.
10879 Use char because int might match the return type of a GCC
10880 builtin and then its argument prototype would still apply. */
10881#ifdef __cplusplus
10882extern "C"
10883#endif
10884char shl_load ();
10885/* The GNU C library defines this for functions which it implements
10886 to always fail with ENOSYS. Some functions are actually named
10887 something starting with __ and the normal name is an alias. */
10888#if defined __stub_shl_load || defined __stub___shl_load
10889choke me
10890#endif
10891
10892int
10893main ()
10894{
10895return shl_load ();
10896 ;
10897 return 0;
10898}
10899_ACEOF
10900rm -f conftest.$ac_objext conftest$ac_exeext
10901if { (ac_try="$ac_link"
10902case "(($ac_try" in
10903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10904 *) ac_try_echo=$ac_try;;
10905esac
10906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10907 (eval "$ac_link") 2>conftest.er1
10908 ac_status=$?
10909 grep -v '^ *+' conftest.er1 >conftest.err
10910 rm -f conftest.er1
10911 cat conftest.err >&5
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); } && {
10914 test -z "$ac_c_werror_flag" ||
10915 test ! -s conftest.err
10916 } && test -s conftest$ac_exeext &&
10917 $as_test_x conftest$ac_exeext; then
10918 ac_cv_func_shl_load=yes
10919else
10920 echo "$as_me: failed program was:" >&5
10921sed 's/^/| /' conftest.$ac_ext >&5
10922
10923 ac_cv_func_shl_load=no
10924fi
10925
10926rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10927 conftest$ac_exeext conftest.$ac_ext
10928fi
10929{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10930echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10931if test $ac_cv_func_shl_load = yes; then
10932 lt_cv_dlopen="shl_load"
10933else
10934 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10935echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10936if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
10938else
10939 ac_check_lib_save_LIBS=$LIBS
10940LIBS="-ldld $LIBS"
10941cat >conftest.$ac_ext <<_ACEOF
10942/* confdefs.h. */
10943_ACEOF
10944cat confdefs.h >>conftest.$ac_ext
10945cat >>conftest.$ac_ext <<_ACEOF
10946/* end confdefs.h. */
10947
10948/* Override any GCC internal prototype to avoid an error.
10949 Use char because int might match the return type of a GCC
10950 builtin and then its argument prototype would still apply. */
10951#ifdef __cplusplus
10952extern "C"
10953#endif
10954char shl_load ();
10955int
10956main ()
10957{
10958return shl_load ();
10959 ;
10960 return 0;
10961}
10962_ACEOF
10963rm -f conftest.$ac_objext conftest$ac_exeext
10964if { (ac_try="$ac_link"
10965case "(($ac_try" in
10966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10967 *) ac_try_echo=$ac_try;;
10968esac
10969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10970 (eval "$ac_link") 2>conftest.er1
10971 ac_status=$?
10972 grep -v '^ *+' conftest.er1 >conftest.err
10973 rm -f conftest.er1
10974 cat conftest.err >&5
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); } && {
10977 test -z "$ac_c_werror_flag" ||
10978 test ! -s conftest.err
10979 } && test -s conftest$ac_exeext &&
10980 $as_test_x conftest$ac_exeext; then
10981 ac_cv_lib_dld_shl_load=yes
10982else
10983 echo "$as_me: failed program was:" >&5
10984sed 's/^/| /' conftest.$ac_ext >&5
10985
10986 ac_cv_lib_dld_shl_load=no
10987fi
10988
10989rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10990 conftest$ac_exeext conftest.$ac_ext
10991LIBS=$ac_check_lib_save_LIBS
10992fi
10993{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10994echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10995if test $ac_cv_lib_dld_shl_load = yes; then
56efe974 10996 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
b57f37fb
WP
10997else
10998 { echo "$as_me:$LINENO: checking for dlopen" >&5
10999echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11000if test "${ac_cv_func_dlopen+set}" = set; then
11001 echo $ECHO_N "(cached) $ECHO_C" >&6
11002else
11003 cat >conftest.$ac_ext <<_ACEOF
11004/* confdefs.h. */
11005_ACEOF
11006cat confdefs.h >>conftest.$ac_ext
11007cat >>conftest.$ac_ext <<_ACEOF
11008/* end confdefs.h. */
11009/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11011#define dlopen innocuous_dlopen
11012
11013/* System header to define __stub macros and hopefully few prototypes,
11014 which can conflict with char dlopen (); below.
11015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11016 <limits.h> exists even on freestanding compilers. */
11017
11018#ifdef __STDC__
11019# include <limits.h>
11020#else
11021# include <assert.h>
11022#endif
11023
11024#undef dlopen
11025
11026/* Override any GCC internal prototype to avoid an error.
11027 Use char because int might match the return type of a GCC
11028 builtin and then its argument prototype would still apply. */
11029#ifdef __cplusplus
11030extern "C"
11031#endif
11032char dlopen ();
11033/* The GNU C library defines this for functions which it implements
11034 to always fail with ENOSYS. Some functions are actually named
11035 something starting with __ and the normal name is an alias. */
11036#if defined __stub_dlopen || defined __stub___dlopen
11037choke me
11038#endif
11039
11040int
11041main ()
11042{
11043return dlopen ();
11044 ;
11045 return 0;
11046}
11047_ACEOF
11048rm -f conftest.$ac_objext conftest$ac_exeext
11049if { (ac_try="$ac_link"
11050case "(($ac_try" in
11051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11052 *) ac_try_echo=$ac_try;;
11053esac
11054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11055 (eval "$ac_link") 2>conftest.er1
11056 ac_status=$?
11057 grep -v '^ *+' conftest.er1 >conftest.err
11058 rm -f conftest.er1
11059 cat conftest.err >&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); } && {
11062 test -z "$ac_c_werror_flag" ||
11063 test ! -s conftest.err
11064 } && test -s conftest$ac_exeext &&
11065 $as_test_x conftest$ac_exeext; then
11066 ac_cv_func_dlopen=yes
11067else
11068 echo "$as_me: failed program was:" >&5
11069sed 's/^/| /' conftest.$ac_ext >&5
11070
11071 ac_cv_func_dlopen=no
11072fi
11073
11074rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11075 conftest$ac_exeext conftest.$ac_ext
11076fi
11077{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11078echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11079if test $ac_cv_func_dlopen = yes; then
11080 lt_cv_dlopen="dlopen"
11081else
11082 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11083echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11084if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11085 echo $ECHO_N "(cached) $ECHO_C" >&6
11086else
11087 ac_check_lib_save_LIBS=$LIBS
11088LIBS="-ldl $LIBS"
11089cat >conftest.$ac_ext <<_ACEOF
11090/* confdefs.h. */
11091_ACEOF
11092cat confdefs.h >>conftest.$ac_ext
11093cat >>conftest.$ac_ext <<_ACEOF
11094/* end confdefs.h. */
11095
11096/* Override any GCC internal prototype to avoid an error.
11097 Use char because int might match the return type of a GCC
11098 builtin and then its argument prototype would still apply. */
11099#ifdef __cplusplus
11100extern "C"
11101#endif
11102char dlopen ();
11103int
11104main ()
11105{
11106return dlopen ();
11107 ;
11108 return 0;
11109}
11110_ACEOF
11111rm -f conftest.$ac_objext conftest$ac_exeext
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
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
11124 (exit $ac_status); } && {
11125 test -z "$ac_c_werror_flag" ||
11126 test ! -s conftest.err
11127 } && test -s conftest$ac_exeext &&
11128 $as_test_x conftest$ac_exeext; then
11129 ac_cv_lib_dl_dlopen=yes
11130else
11131 echo "$as_me: failed program was:" >&5
11132sed 's/^/| /' conftest.$ac_ext >&5
11133
11134 ac_cv_lib_dl_dlopen=no
11135fi
11136
11137rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11138 conftest$ac_exeext conftest.$ac_ext
11139LIBS=$ac_check_lib_save_LIBS
11140fi
11141{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11142echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11143if test $ac_cv_lib_dl_dlopen = yes; then
11144 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11145else
11146 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11147echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11148if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11149 echo $ECHO_N "(cached) $ECHO_C" >&6
11150else
11151 ac_check_lib_save_LIBS=$LIBS
11152LIBS="-lsvld $LIBS"
11153cat >conftest.$ac_ext <<_ACEOF
11154/* confdefs.h. */
11155_ACEOF
11156cat confdefs.h >>conftest.$ac_ext
11157cat >>conftest.$ac_ext <<_ACEOF
11158/* end confdefs.h. */
11159
11160/* Override any GCC internal prototype to avoid an error.
11161 Use char because int might match the return type of a GCC
11162 builtin and then its argument prototype would still apply. */
11163#ifdef __cplusplus
11164extern "C"
11165#endif
11166char dlopen ();
11167int
11168main ()
11169{
11170return dlopen ();
11171 ;
11172 return 0;
11173}
11174_ACEOF
11175rm -f conftest.$ac_objext conftest$ac_exeext
11176if { (ac_try="$ac_link"
11177case "(($ac_try" in
11178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11179 *) ac_try_echo=$ac_try;;
11180esac
11181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11182 (eval "$ac_link") 2>conftest.er1
11183 ac_status=$?
11184 grep -v '^ *+' conftest.er1 >conftest.err
11185 rm -f conftest.er1
11186 cat conftest.err >&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); } && {
11189 test -z "$ac_c_werror_flag" ||
11190 test ! -s conftest.err
11191 } && test -s conftest$ac_exeext &&
11192 $as_test_x conftest$ac_exeext; then
11193 ac_cv_lib_svld_dlopen=yes
11194else
11195 echo "$as_me: failed program was:" >&5
11196sed 's/^/| /' conftest.$ac_ext >&5
11197
11198 ac_cv_lib_svld_dlopen=no
11199fi
11200
11201rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11202 conftest$ac_exeext conftest.$ac_ext
11203LIBS=$ac_check_lib_save_LIBS
11204fi
11205{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11206echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11207if test $ac_cv_lib_svld_dlopen = yes; then
11208 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11209else
11210 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11211echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11212if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11213 echo $ECHO_N "(cached) $ECHO_C" >&6
11214else
11215 ac_check_lib_save_LIBS=$LIBS
11216LIBS="-ldld $LIBS"
11217cat >conftest.$ac_ext <<_ACEOF
11218/* confdefs.h. */
11219_ACEOF
11220cat confdefs.h >>conftest.$ac_ext
11221cat >>conftest.$ac_ext <<_ACEOF
11222/* end confdefs.h. */
11223
11224/* Override any GCC internal prototype to avoid an error.
11225 Use char because int might match the return type of a GCC
11226 builtin and then its argument prototype would still apply. */
11227#ifdef __cplusplus
11228extern "C"
11229#endif
11230char dld_link ();
11231int
11232main ()
11233{
11234return dld_link ();
11235 ;
11236 return 0;
11237}
11238_ACEOF
11239rm -f conftest.$ac_objext conftest$ac_exeext
11240if { (ac_try="$ac_link"
11241case "(($ac_try" in
11242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11243 *) ac_try_echo=$ac_try;;
11244esac
11245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11246 (eval "$ac_link") 2>conftest.er1
11247 ac_status=$?
11248 grep -v '^ *+' conftest.er1 >conftest.err
11249 rm -f conftest.er1
11250 cat conftest.err >&5
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); } && {
11253 test -z "$ac_c_werror_flag" ||
11254 test ! -s conftest.err
11255 } && test -s conftest$ac_exeext &&
11256 $as_test_x conftest$ac_exeext; then
11257 ac_cv_lib_dld_dld_link=yes
11258else
11259 echo "$as_me: failed program was:" >&5
11260sed 's/^/| /' conftest.$ac_ext >&5
11261
11262 ac_cv_lib_dld_dld_link=no
11263fi
11264
11265rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11266 conftest$ac_exeext conftest.$ac_ext
11267LIBS=$ac_check_lib_save_LIBS
11268fi
11269{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11270echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11271if test $ac_cv_lib_dld_dld_link = yes; then
56efe974 11272 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
b57f37fb
WP
11273fi
11274
11275
11276fi
11277
11278
11279fi
11280
11281
11282fi
11283
11284
11285fi
11286
11287
11288fi
11289
11290 ;;
11291 esac
11292
11293 if test "x$lt_cv_dlopen" != xno; then
11294 enable_dlopen=yes
11295 else
11296 enable_dlopen=no
11297 fi
11298
11299 case $lt_cv_dlopen in
11300 dlopen)
11301 save_CPPFLAGS="$CPPFLAGS"
11302 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11303
11304 save_LDFLAGS="$LDFLAGS"
11305 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11306
11307 save_LIBS="$LIBS"
11308 LIBS="$lt_cv_dlopen_libs $LIBS"
11309
11310 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11311echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11312if test "${lt_cv_dlopen_self+set}" = set; then
11313 echo $ECHO_N "(cached) $ECHO_C" >&6
11314else
11315 if test "$cross_compiling" = yes; then :
11316 lt_cv_dlopen_self=cross
11317else
11318 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11319 lt_status=$lt_dlunknown
11320 cat > conftest.$ac_ext <<EOF
94b4fbf9 11321#line 11321 "configure"
b57f37fb
WP
11322#include "confdefs.h"
11323
11324#if HAVE_DLFCN_H
11325#include <dlfcn.h>
11326#endif
11327
11328#include <stdio.h>
11329
11330#ifdef RTLD_GLOBAL
11331# define LT_DLGLOBAL RTLD_GLOBAL
11332#else
11333# ifdef DL_GLOBAL
11334# define LT_DLGLOBAL DL_GLOBAL
11335# else
11336# define LT_DLGLOBAL 0
11337# endif
11338#endif
11339
11340/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11341 find out it does not work in some platform. */
11342#ifndef LT_DLLAZY_OR_NOW
11343# ifdef RTLD_LAZY
11344# define LT_DLLAZY_OR_NOW RTLD_LAZY
11345# else
11346# ifdef DL_LAZY
11347# define LT_DLLAZY_OR_NOW DL_LAZY
11348# else
11349# ifdef RTLD_NOW
11350# define LT_DLLAZY_OR_NOW RTLD_NOW
11351# else
11352# ifdef DL_NOW
11353# define LT_DLLAZY_OR_NOW DL_NOW
11354# else
11355# define LT_DLLAZY_OR_NOW 0
11356# endif
11357# endif
11358# endif
11359# endif
11360#endif
11361
11362#ifdef __cplusplus
11363extern "C" void exit (int);
11364#endif
11365
11366void fnord() { int i=42;}
11367int main ()
11368{
11369 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11370 int status = $lt_dlunknown;
11371
11372 if (self)
11373 {
11374 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11375 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11376 /* dlclose (self); */
11377 }
11378 else
11379 puts (dlerror ());
11380
11381 exit (status);
11382}
11383EOF
11384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11385 (eval $ac_link) 2>&5
11386 ac_status=$?
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11389 (./conftest; exit; ) >&5 2>/dev/null
11390 lt_status=$?
11391 case x$lt_status in
11392 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11393 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11394 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11395 esac
11396 else :
11397 # compilation failed
11398 lt_cv_dlopen_self=no
11399 fi
11400fi
11401rm -fr conftest*
11402
11403
11404fi
11405{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11406echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11407
11408 if test "x$lt_cv_dlopen_self" = xyes; then
11409 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11410 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11411echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11412if test "${lt_cv_dlopen_self_static+set}" = set; then
11413 echo $ECHO_N "(cached) $ECHO_C" >&6
11414else
11415 if test "$cross_compiling" = yes; then :
11416 lt_cv_dlopen_self_static=cross
11417else
11418 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11419 lt_status=$lt_dlunknown
11420 cat > conftest.$ac_ext <<EOF
94b4fbf9 11421#line 11421 "configure"
b57f37fb
WP
11422#include "confdefs.h"
11423
11424#if HAVE_DLFCN_H
11425#include <dlfcn.h>
11426#endif
11427
11428#include <stdio.h>
11429
11430#ifdef RTLD_GLOBAL
11431# define LT_DLGLOBAL RTLD_GLOBAL
11432#else
11433# ifdef DL_GLOBAL
11434# define LT_DLGLOBAL DL_GLOBAL
11435# else
11436# define LT_DLGLOBAL 0
11437# endif
11438#endif
11439
11440/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11441 find out it does not work in some platform. */
11442#ifndef LT_DLLAZY_OR_NOW
11443# ifdef RTLD_LAZY
11444# define LT_DLLAZY_OR_NOW RTLD_LAZY
11445# else
11446# ifdef DL_LAZY
11447# define LT_DLLAZY_OR_NOW DL_LAZY
11448# else
11449# ifdef RTLD_NOW
11450# define LT_DLLAZY_OR_NOW RTLD_NOW
11451# else
11452# ifdef DL_NOW
11453# define LT_DLLAZY_OR_NOW DL_NOW
11454# else
11455# define LT_DLLAZY_OR_NOW 0
11456# endif
11457# endif
11458# endif
11459# endif
11460#endif
11461
11462#ifdef __cplusplus
11463extern "C" void exit (int);
11464#endif
11465
11466void fnord() { int i=42;}
11467int main ()
11468{
11469 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11470 int status = $lt_dlunknown;
11471
11472 if (self)
11473 {
11474 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11475 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11476 /* dlclose (self); */
11477 }
11478 else
11479 puts (dlerror ());
11480
11481 exit (status);
11482}
11483EOF
11484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11485 (eval $ac_link) 2>&5
11486 ac_status=$?
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11489 (./conftest; exit; ) >&5 2>/dev/null
11490 lt_status=$?
11491 case x$lt_status in
11492 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11493 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11494 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11495 esac
11496 else :
11497 # compilation failed
11498 lt_cv_dlopen_self_static=no
11499 fi
11500fi
11501rm -fr conftest*
11502
11503
11504fi
11505{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11506echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11507 fi
11508
11509 CPPFLAGS="$save_CPPFLAGS"
11510 LDFLAGS="$save_LDFLAGS"
11511 LIBS="$save_LIBS"
11512 ;;
11513 esac
11514
11515 case $lt_cv_dlopen_self in
11516 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11517 *) enable_dlopen_self=unknown ;;
11518 esac
11519
11520 case $lt_cv_dlopen_self_static in
11521 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11522 *) enable_dlopen_self_static=unknown ;;
11523 esac
11524fi
11525
11526
11527# Report which library types will actually be built
11528{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11529echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11530{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
11531echo "${ECHO_T}$can_build_shared" >&6; }
11532
11533{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11534echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11535test "$can_build_shared" = "no" && enable_shared=no
11536
11537# On AIX, shared libraries and static libraries use the same namespace, and
11538# are all built from PIC.
11539case $host_os in
11540aix3*)
11541 test "$enable_shared" = yes && enable_static=no
11542 if test -n "$RANLIB"; then
11543 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11544 postinstall_cmds='$RANLIB $lib'
11545 fi
11546 ;;
11547
56efe974 11548aix[4-9]*)
b57f37fb
WP
11549 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11550 test "$enable_shared" = yes && enable_static=no
11551 fi
11552 ;;
11553esac
11554{ echo "$as_me:$LINENO: result: $enable_shared" >&5
11555echo "${ECHO_T}$enable_shared" >&6; }
11556
11557{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11558echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11559# Make sure either enable_shared or enable_static is yes.
11560test "$enable_shared" = yes || enable_static=yes
11561{ echo "$as_me:$LINENO: result: $enable_static" >&5
11562echo "${ECHO_T}$enable_static" >&6; }
11563
11564# The else clause should only fire when bootstrapping the
11565# libtool distribution, otherwise you forgot to ship ltmain.sh
11566# with your package, and you will get complaints that there are
11567# no rules to generate ltmain.sh.
11568if test -f "$ltmain"; then
11569 # See if we are running on zsh, and set the options which allow our commands through
11570 # without removal of \ escapes.
11571 if test -n "${ZSH_VERSION+set}" ; then
11572 setopt NO_GLOB_SUBST
11573 fi
11574 # Now quote all the things that may contain metacharacters while being
11575 # careful not to overquote the AC_SUBSTed values. We take copies of the
11576 # variables and quote the copies for generation of the libtool script.
11577 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11578 SED SHELL STRIP \
11579 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11580 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11581 deplibs_check_method reload_flag reload_cmds need_locks \
11582 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11583 lt_cv_sys_global_symbol_to_c_name_address \
11584 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11585 old_postinstall_cmds old_postuninstall_cmds \
11586 compiler \
11587 CC \
11588 LD \
11589 lt_prog_compiler_wl \
11590 lt_prog_compiler_pic \
11591 lt_prog_compiler_static \
11592 lt_prog_compiler_no_builtin_flag \
11593 export_dynamic_flag_spec \
11594 thread_safe_flag_spec \
11595 whole_archive_flag_spec \
11596 enable_shared_with_static_runtimes \
11597 old_archive_cmds \
11598 old_archive_from_new_cmds \
11599 predep_objects \
11600 postdep_objects \
11601 predeps \
11602 postdeps \
11603 compiler_lib_search_path \
56efe974 11604 compiler_lib_search_dirs \
b57f37fb
WP
11605 archive_cmds \
11606 archive_expsym_cmds \
11607 postinstall_cmds \
11608 postuninstall_cmds \
11609 old_archive_from_expsyms_cmds \
11610 allow_undefined_flag \
11611 no_undefined_flag \
11612 export_symbols_cmds \
11613 hardcode_libdir_flag_spec \
11614 hardcode_libdir_flag_spec_ld \
11615 hardcode_libdir_separator \
11616 hardcode_automatic \
11617 module_cmds \
11618 module_expsym_cmds \
11619 lt_cv_prog_compiler_c_o \
11620 fix_srcfile_path \
11621 exclude_expsyms \
11622 include_expsyms; do
11623
11624 case $var in
11625 old_archive_cmds | \
11626 old_archive_from_new_cmds | \
11627 archive_cmds | \
11628 archive_expsym_cmds | \
11629 module_cmds | \
11630 module_expsym_cmds | \
11631 old_archive_from_expsyms_cmds | \
11632 export_symbols_cmds | \
11633 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11634 postinstall_cmds | postuninstall_cmds | \
11635 old_postinstall_cmds | old_postuninstall_cmds | \
11636 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11637 # Double-quote double-evaled strings.
11638 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11639 ;;
11640 *)
11641 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11642 ;;
11643 esac
11644 done
11645
11646 case $lt_echo in
11647 *'\$0 --fallback-echo"')
11648 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11649 ;;
11650 esac
11651
11652cfgfile="${ofile}T"
11653 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11654 $rm -f "$cfgfile"
11655 { echo "$as_me:$LINENO: creating $ofile" >&5
11656echo "$as_me: creating $ofile" >&6;}
11657
11658 cat <<__EOF__ >> "$cfgfile"
11659#! $SHELL
11660
11661# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11662# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11663# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11664#
56efe974 11665# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
b57f37fb
WP
11666# Free Software Foundation, Inc.
11667#
11668# This file is part of GNU Libtool:
11669# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11670#
11671# This program is free software; you can redistribute it and/or modify
11672# it under the terms of the GNU General Public License as published by
11673# the Free Software Foundation; either version 2 of the License, or
11674# (at your option) any later version.
11675#
11676# This program is distributed in the hope that it will be useful, but
11677# WITHOUT ANY WARRANTY; without even the implied warranty of
11678# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11679# General Public License for more details.
11680#
11681# You should have received a copy of the GNU General Public License
11682# along with this program; if not, write to the Free Software
11683# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11684#
11685# As a special exception to the GNU General Public License, if you
11686# distribute this file as part of a program that contains a
11687# configuration script generated by Autoconf, you may include it under
11688# the same distribution terms that you use for the rest of that program.
11689
11690# A sed program that does not truncate output.
11691SED=$lt_SED
11692
11693# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11694Xsed="$SED -e 1s/^X//"
11695
11696# The HP-UX ksh and POSIX shell print the target directory to stdout
11697# if CDPATH is set.
11698(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11699
11700# The names of the tagged configurations supported by this script.
11701available_tags=
11702
11703# ### BEGIN LIBTOOL CONFIG
11704
11705# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11706
11707# Shell to use when invoking shell scripts.
11708SHELL=$lt_SHELL
11709
11710# Whether or not to build shared libraries.
11711build_libtool_libs=$enable_shared
11712
11713# Whether or not to build static libraries.
11714build_old_libs=$enable_static
11715
11716# Whether or not to add -lc for building shared libraries.
11717build_libtool_need_lc=$archive_cmds_need_lc
11718
11719# Whether or not to disallow shared libs when runtime libs are static
11720allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11721
11722# Whether or not to optimize for fast installation.
11723fast_install=$enable_fast_install
11724
11725# The host system.
11726host_alias=$host_alias
11727host=$host
11728host_os=$host_os
11729
11730# The build system.
11731build_alias=$build_alias
11732build=$build
11733build_os=$build_os
11734
11735# An echo program that does not interpret backslashes.
11736echo=$lt_echo
11737
11738# The archiver.
11739AR=$lt_AR
11740AR_FLAGS=$lt_AR_FLAGS
11741
11742# A C compiler.
11743LTCC=$lt_LTCC
11744
11745# LTCC compiler flags.
11746LTCFLAGS=$lt_LTCFLAGS
11747
11748# A language-specific compiler.
11749CC=$lt_compiler
11750
11751# Is the compiler the GNU C compiler?
11752with_gcc=$GCC
11753
11754# An ERE matcher.
11755EGREP=$lt_EGREP
11756
11757# The linker used to build libraries.
11758LD=$lt_LD
11759
11760# Whether we need hard or soft links.
11761LN_S=$lt_LN_S
11762
11763# A BSD-compatible nm program.
11764NM=$lt_NM
11765
11766# A symbol stripping program
11767STRIP=$lt_STRIP
11768
11769# Used to examine libraries when file_magic_cmd begins "file"
11770MAGIC_CMD=$MAGIC_CMD
11771
11772# Used on cygwin: DLL creation program.
11773DLLTOOL="$DLLTOOL"
11774
11775# Used on cygwin: object dumper.
11776OBJDUMP="$OBJDUMP"
11777
11778# Used on cygwin: assembler.
11779AS="$AS"
11780
11781# The name of the directory that contains temporary libtool files.
11782objdir=$objdir
11783
11784# How to create reloadable object files.
11785reload_flag=$lt_reload_flag
11786reload_cmds=$lt_reload_cmds
11787
11788# How to pass a linker flag through the compiler.
11789wl=$lt_lt_prog_compiler_wl
11790
11791# Object file suffix (normally "o").
11792objext="$ac_objext"
11793
11794# Old archive suffix (normally "a").
11795libext="$libext"
11796
11797# Shared library suffix (normally ".so").
11798shrext_cmds='$shrext_cmds'
11799
11800# Executable file suffix (normally "").
11801exeext="$exeext"
11802
11803# Additional compiler flags for building library objects.
11804pic_flag=$lt_lt_prog_compiler_pic
11805pic_mode=$pic_mode
11806
11807# What is the maximum length of a command?
11808max_cmd_len=$lt_cv_sys_max_cmd_len
11809
11810# Does compiler simultaneously support -c and -o options?
11811compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11812
11813# Must we lock files when doing compilation?
11814need_locks=$lt_need_locks
11815
11816# Do we need the lib prefix for modules?
11817need_lib_prefix=$need_lib_prefix
11818
11819# Do we need a version for libraries?
11820need_version=$need_version
11821
11822# Whether dlopen is supported.
11823dlopen_support=$enable_dlopen
11824
11825# Whether dlopen of programs is supported.
11826dlopen_self=$enable_dlopen_self
11827
11828# Whether dlopen of statically linked programs is supported.
11829dlopen_self_static=$enable_dlopen_self_static
11830
11831# Compiler flag to prevent dynamic linking.
11832link_static_flag=$lt_lt_prog_compiler_static
11833
11834# Compiler flag to turn off builtin functions.
11835no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11836
11837# Compiler flag to allow reflexive dlopens.
11838export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11839
11840# Compiler flag to generate shared objects directly from archives.
11841whole_archive_flag_spec=$lt_whole_archive_flag_spec
11842
11843# Compiler flag to generate thread-safe objects.
11844thread_safe_flag_spec=$lt_thread_safe_flag_spec
11845
11846# Library versioning type.
11847version_type=$version_type
11848
11849# Format of library name prefix.
11850libname_spec=$lt_libname_spec
11851
11852# List of archive names. First name is the real one, the rest are links.
11853# The last name is the one that the linker finds with -lNAME.
11854library_names_spec=$lt_library_names_spec
11855
11856# The coded name of the library, if different from the real name.
11857soname_spec=$lt_soname_spec
11858
11859# Commands used to build and install an old-style archive.
11860RANLIB=$lt_RANLIB
11861old_archive_cmds=$lt_old_archive_cmds
11862old_postinstall_cmds=$lt_old_postinstall_cmds
11863old_postuninstall_cmds=$lt_old_postuninstall_cmds
11864
11865# Create an old-style archive from a shared archive.
11866old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11867
11868# Create a temporary old-style archive to link instead of a shared archive.
11869old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11870
11871# Commands used to build and install a shared archive.
11872archive_cmds=$lt_archive_cmds
11873archive_expsym_cmds=$lt_archive_expsym_cmds
11874postinstall_cmds=$lt_postinstall_cmds
11875postuninstall_cmds=$lt_postuninstall_cmds
11876
11877# Commands used to build a loadable module (assumed same as above if empty)
11878module_cmds=$lt_module_cmds
11879module_expsym_cmds=$lt_module_expsym_cmds
11880
11881# Commands to strip libraries.
11882old_striplib=$lt_old_striplib
11883striplib=$lt_striplib
11884
11885# Dependencies to place before the objects being linked to create a
11886# shared library.
11887predep_objects=$lt_predep_objects
11888
11889# Dependencies to place after the objects being linked to create a
11890# shared library.
11891postdep_objects=$lt_postdep_objects
11892
11893# Dependencies to place before the objects being linked to create a
11894# shared library.
11895predeps=$lt_predeps
11896
11897# Dependencies to place after the objects being linked to create a
11898# shared library.
11899postdeps=$lt_postdeps
11900
56efe974
WP
11901# The directories searched by this compiler when creating a shared
11902# library
11903compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11904
b57f37fb
WP
11905# The library search path used internally by the compiler when linking
11906# a shared library.
11907compiler_lib_search_path=$lt_compiler_lib_search_path
11908
11909# Method to check whether dependent libraries are shared objects.
11910deplibs_check_method=$lt_deplibs_check_method
11911
11912# Command to use when deplibs_check_method == file_magic.
11913file_magic_cmd=$lt_file_magic_cmd
11914
11915# Flag that allows shared libraries with undefined symbols to be built.
11916allow_undefined_flag=$lt_allow_undefined_flag
11917
11918# Flag that forces no undefined symbols.
11919no_undefined_flag=$lt_no_undefined_flag
11920
11921# Commands used to finish a libtool library installation in a directory.
11922finish_cmds=$lt_finish_cmds
11923
11924# Same as above, but a single script fragment to be evaled but not shown.
11925finish_eval=$lt_finish_eval
11926
11927# Take the output of nm and produce a listing of raw symbols and C names.
11928global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11929
11930# Transform the output of nm in a proper C declaration
11931global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11932
11933# Transform the output of nm in a C name address pair
11934global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11935
11936# This is the shared library runtime path variable.
11937runpath_var=$runpath_var
11938
11939# This is the shared library path variable.
11940shlibpath_var=$shlibpath_var
11941
11942# Is shlibpath searched before the hard-coded library search path?
11943shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11944
11945# How to hardcode a shared library path into an executable.
11946hardcode_action=$hardcode_action
11947
11948# Whether we should hardcode library paths into libraries.
11949hardcode_into_libs=$hardcode_into_libs
11950
11951# Flag to hardcode \$libdir into a binary during linking.
11952# This must work even if \$libdir does not exist.
11953hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11954
11955# If ld is used when linking, flag to hardcode \$libdir into
11956# a binary during linking. This must work even if \$libdir does
11957# not exist.
11958hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11959
11960# Whether we need a single -rpath flag with a separated argument.
11961hardcode_libdir_separator=$lt_hardcode_libdir_separator
11962
11963# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11964# resulting binary.
11965hardcode_direct=$hardcode_direct
11966
11967# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11968# resulting binary.
11969hardcode_minus_L=$hardcode_minus_L
11970
11971# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11972# the resulting binary.
11973hardcode_shlibpath_var=$hardcode_shlibpath_var
11974
11975# Set to yes if building a shared library automatically hardcodes DIR into the library
11976# and all subsequent libraries and executables linked against it.
11977hardcode_automatic=$hardcode_automatic
11978
11979# Variables whose values should be saved in libtool wrapper scripts and
11980# restored at relink time.
11981variables_saved_for_relink="$variables_saved_for_relink"
11982
11983# Whether libtool must link a program against all its dependency libraries.
11984link_all_deplibs=$link_all_deplibs
11985
11986# Compile-time system search path for libraries
11987sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11988
11989# Run-time system search path for libraries
11990sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11991
11992# Fix the shell variable \$srcfile for the compiler.
11993fix_srcfile_path=$lt_fix_srcfile_path
11994
11995# Set to yes if exported symbols are required.
11996always_export_symbols=$always_export_symbols
11997
11998# The commands to list exported symbols.
11999export_symbols_cmds=$lt_export_symbols_cmds
12000
12001# The commands to extract the exported symbol list from a shared archive.
12002extract_expsyms_cmds=$lt_extract_expsyms_cmds
12003
12004# Symbols that should not be listed in the preloaded symbols.
12005exclude_expsyms=$lt_exclude_expsyms
12006
12007# Symbols that must always be exported.
12008include_expsyms=$lt_include_expsyms
12009
12010# ### END LIBTOOL CONFIG
12011
12012__EOF__
12013
12014
12015 case $host_os in
12016 aix3*)
12017 cat <<\EOF >> "$cfgfile"
12018
12019# AIX sometimes has problems with the GCC collect2 program. For some
12020# reason, if we set the COLLECT_NAMES environment variable, the problems
12021# vanish in a puff of smoke.
12022if test "X${COLLECT_NAMES+set}" != Xset; then
12023 COLLECT_NAMES=
12024 export COLLECT_NAMES
12025fi
12026EOF
12027 ;;
12028 esac
12029
12030 # We use sed instead of cat because bash on DJGPP gets confused if
12031 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12032 # text mode, it properly converts lines to CR/LF. This bash problem
12033 # is reportedly fixed, but why not run on old versions too?
12034 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12035
12036 mv -f "$cfgfile" "$ofile" || \
12037 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12038 chmod +x "$ofile"
12039
12040else
12041 # If there is no Makefile yet, we rely on a make rule to execute
12042 # `config.status --recheck' to rerun these tests and create the
12043 # libtool script then.
12044 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12045 if test -f "$ltmain_in"; then
12046 test -f Makefile && make "$ltmain"
12047 fi
12048fi
12049
12050
12051ac_ext=c
12052ac_cpp='$CPP $CPPFLAGS'
12053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12055ac_compiler_gnu=$ac_cv_c_compiler_gnu
12056
12057CC="$lt_save_CC"
12058
12059
12060# Check whether --with-tags was given.
12061if test "${with_tags+set}" = set; then
12062 withval=$with_tags; tagnames="$withval"
12063fi
12064
12065
12066if test -f "$ltmain" && test -n "$tagnames"; then
12067 if test ! -f "${ofile}"; then
12068 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12069echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12070 fi
12071
12072 if test -z "$LTCC"; then
12073 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12074 if test -z "$LTCC"; then
12075 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12076echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12077 else
12078 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12079echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12080 fi
12081 fi
12082 if test -z "$LTCFLAGS"; then
12083 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12084 fi
12085
12086 # Extract list of available tagged configurations in $ofile.
12087 # Note that this assumes the entire list is on one line.
12088 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12089
12090 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12091 for tagname in $tagnames; do
12092 IFS="$lt_save_ifs"
12093 # Check whether tagname contains only valid characters
12094 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12095 "") ;;
12096 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12097echo "$as_me: error: invalid tag name: $tagname" >&2;}
12098 { (exit 1); exit 1; }; }
12099 ;;
12100 esac
12101
12102 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12103 then
12104 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12105echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12106 { (exit 1); exit 1; }; }
12107 fi
12108
12109 # Update the list of available tags.
12110 if test -n "$tagname"; then
12111 echo appending configuration tag \"$tagname\" to $ofile
12112
12113 case $tagname in
12114 CXX)
12115 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12116 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12117 (test "X$CXX" != "Xg++"))) ; then
12118 ac_ext=cpp
12119ac_cpp='$CXXCPP $CPPFLAGS'
12120ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12121ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12122ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12123
12124
12125
12126
12127archive_cmds_need_lc_CXX=no
12128allow_undefined_flag_CXX=
12129always_export_symbols_CXX=no
12130archive_expsym_cmds_CXX=
12131export_dynamic_flag_spec_CXX=
12132hardcode_direct_CXX=no
12133hardcode_libdir_flag_spec_CXX=
12134hardcode_libdir_flag_spec_ld_CXX=
12135hardcode_libdir_separator_CXX=
12136hardcode_minus_L_CXX=no
12137hardcode_shlibpath_var_CXX=unsupported
12138hardcode_automatic_CXX=no
12139module_cmds_CXX=
12140module_expsym_cmds_CXX=
12141link_all_deplibs_CXX=unknown
12142old_archive_cmds_CXX=$old_archive_cmds
12143no_undefined_flag_CXX=
12144whole_archive_flag_spec_CXX=
12145enable_shared_with_static_runtimes_CXX=no
12146
12147# Dependencies to place before and after the object being linked:
12148predep_objects_CXX=
12149postdep_objects_CXX=
12150predeps_CXX=
12151postdeps_CXX=
12152compiler_lib_search_path_CXX=
56efe974 12153compiler_lib_search_dirs_CXX=
b57f37fb
WP
12154
12155# Source file extension for C++ test sources.
12156ac_ext=cpp
12157
12158# Object file extension for compiled C++ test sources.
12159objext=o
12160objext_CXX=$objext
12161
12162# Code to be used in simple compile tests
12163lt_simple_compile_test_code="int some_variable = 0;"
12164
12165# Code to be used in simple link tests
12166lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12167
12168# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12169
12170# If no C compiler was specified, use CC.
12171LTCC=${LTCC-"$CC"}
12172
12173# If no C compiler flags were specified, use CFLAGS.
12174LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12175
12176# Allow CC to be a program name with arguments.
12177compiler=$CC
12178
12179
12180# save warnings/boilerplate of simple test code
12181ac_outfile=conftest.$ac_objext
12182echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12183eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12184_lt_compiler_boilerplate=`cat conftest.err`
12185$rm conftest*
12186
12187ac_outfile=conftest.$ac_objext
12188echo "$lt_simple_link_test_code" >conftest.$ac_ext
12189eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12190_lt_linker_boilerplate=`cat conftest.err`
56efe974 12191$rm -r conftest*
b57f37fb
WP
12192
12193
12194# Allow CC to be a program name with arguments.
12195lt_save_CC=$CC
12196lt_save_LD=$LD
12197lt_save_GCC=$GCC
12198GCC=$GXX
12199lt_save_with_gnu_ld=$with_gnu_ld
12200lt_save_path_LD=$lt_cv_path_LD
12201if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12202 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12203else
12204 $as_unset lt_cv_prog_gnu_ld
12205fi
12206if test -n "${lt_cv_path_LDCXX+set}"; then
12207 lt_cv_path_LD=$lt_cv_path_LDCXX
12208else
12209 $as_unset lt_cv_path_LD
12210fi
12211test -z "${LDCXX+set}" || LD=$LDCXX
12212CC=${CXX-"c++"}
12213compiler=$CC
12214compiler_CXX=$CC
12215for cc_temp in $compiler""; do
12216 case $cc_temp in
12217 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12218 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12219 \-*) ;;
12220 *) break;;
12221 esac
12222done
12223cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12224
12225
12226# We don't want -fno-exception wen compiling C++ code, so set the
12227# no_builtin_flag separately
12228if test "$GXX" = yes; then
12229 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12230else
12231 lt_prog_compiler_no_builtin_flag_CXX=
12232fi
12233
12234if test "$GXX" = yes; then
12235 # Set up default GNU C++ configuration
12236
12237
12238# Check whether --with-gnu-ld was given.
12239if test "${with_gnu_ld+set}" = set; then
12240 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12241else
12242 with_gnu_ld=no
12243fi
12244
12245ac_prog=ld
12246if test "$GCC" = yes; then
12247 # Check if gcc -print-prog-name=ld gives a path.
12248 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12249echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12250 case $host in
12251 *-*-mingw*)
12252 # gcc leaves a trailing carriage return which upsets mingw
12253 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12254 *)
12255 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12256 esac
12257 case $ac_prog in
12258 # Accept absolute paths.
12259 [\\/]* | ?:[\\/]*)
12260 re_direlt='/[^/][^/]*/\.\./'
12261 # Canonicalize the pathname of ld
12262 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12263 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12264 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12265 done
12266 test -z "$LD" && LD="$ac_prog"
12267 ;;
12268 "")
12269 # If it fails, then pretend we aren't using GCC.
12270 ac_prog=ld
12271 ;;
12272 *)
12273 # If it is relative, then search for the first ld in PATH.
12274 with_gnu_ld=unknown
12275 ;;
12276 esac
12277elif test "$with_gnu_ld" = yes; then
12278 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12279echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12280else
12281 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12282echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12283fi
12284if test "${lt_cv_path_LD+set}" = set; then
12285 echo $ECHO_N "(cached) $ECHO_C" >&6
12286else
12287 if test -z "$LD"; then
12288 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12289 for ac_dir in $PATH; do
12290 IFS="$lt_save_ifs"
12291 test -z "$ac_dir" && ac_dir=.
12292 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12293 lt_cv_path_LD="$ac_dir/$ac_prog"
12294 # Check to see if the program is GNU ld. I'd rather use --version,
12295 # but apparently some variants of GNU ld only accept -v.
12296 # Break only if it was the GNU/non-GNU ld that we prefer.
12297 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12298 *GNU* | *'with BFD'*)
12299 test "$with_gnu_ld" != no && break
12300 ;;
12301 *)
12302 test "$with_gnu_ld" != yes && break
12303 ;;
12304 esac
12305 fi
12306 done
12307 IFS="$lt_save_ifs"
12308else
12309 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12310fi
12311fi
12312
12313LD="$lt_cv_path_LD"
12314if test -n "$LD"; then
12315 { echo "$as_me:$LINENO: result: $LD" >&5
12316echo "${ECHO_T}$LD" >&6; }
12317else
12318 { echo "$as_me:$LINENO: result: no" >&5
12319echo "${ECHO_T}no" >&6; }
12320fi
12321test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12322echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12323 { (exit 1); exit 1; }; }
12324{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12325echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12326if test "${lt_cv_prog_gnu_ld+set}" = set; then
12327 echo $ECHO_N "(cached) $ECHO_C" >&6
12328else
12329 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12330case `$LD -v 2>&1 </dev/null` in
12331*GNU* | *'with BFD'*)
12332 lt_cv_prog_gnu_ld=yes
12333 ;;
12334*)
12335 lt_cv_prog_gnu_ld=no
12336 ;;
12337esac
12338fi
12339{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12340echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12341with_gnu_ld=$lt_cv_prog_gnu_ld
12342
12343
12344
12345 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12346 # archiving commands below assume that GNU ld is being used.
12347 if test "$with_gnu_ld" = yes; then
12348 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12349 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'
12350
12351 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12352 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12353
12354 # If archive_cmds runs LD, not CC, wlarc should be empty
12355 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12356 # investigate it a little bit more. (MM)
12357 wlarc='${wl}'
12358
12359 # ancient GNU ld didn't support --whole-archive et. al.
12360 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12361 grep 'no-whole-archive' > /dev/null; then
12362 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12363 else
12364 whole_archive_flag_spec_CXX=
12365 fi
12366 else
12367 with_gnu_ld=no
12368 wlarc=
12369
12370 # A generic and very simple default shared library creation
12371 # command for GNU C++ for the case where it uses the native
12372 # linker, instead of GNU ld. If possible, this setting should
12373 # overridden to take advantage of the native linker features on
12374 # the platform it is being used on.
12375 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12376 fi
12377
12378 # Commands to make compiler produce verbose output that lists
12379 # what "hidden" libraries, object files and flags are used when
12380 # linking a shared library.
12381 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12382
12383else
12384 GXX=no
12385 with_gnu_ld=no
12386 wlarc=
12387fi
12388
12389# PORTME: fill in a description of your system's C++ link characteristics
12390{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12391echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12392ld_shlibs_CXX=yes
12393case $host_os in
12394 aix3*)
12395 # FIXME: insert proper C++ library support
12396 ld_shlibs_CXX=no
12397 ;;
56efe974 12398 aix[4-9]*)
b57f37fb
WP
12399 if test "$host_cpu" = ia64; then
12400 # On IA64, the linker does run time linking by default, so we don't
12401 # have to do anything special.
12402 aix_use_runtimelinking=no
12403 exp_sym_flag='-Bexport'
12404 no_entry_flag=""
12405 else
12406 aix_use_runtimelinking=no
12407
12408 # Test if we are trying to use run time linking or normal
12409 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12410 # need to do runtime linking.
56efe974 12411 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
b57f37fb
WP
12412 for ld_flag in $LDFLAGS; do
12413 case $ld_flag in
12414 *-brtl*)
12415 aix_use_runtimelinking=yes
12416 break
12417 ;;
12418 esac
12419 done
12420 ;;
12421 esac
12422
12423 exp_sym_flag='-bexport'
12424 no_entry_flag='-bnoentry'
12425 fi
12426
12427 # When large executables or shared objects are built, AIX ld can
12428 # have problems creating the table of contents. If linking a library
12429 # or program results in "error TOC overflow" add -mminimal-toc to
12430 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12431 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12432
12433 archive_cmds_CXX=''
12434 hardcode_direct_CXX=yes
12435 hardcode_libdir_separator_CXX=':'
12436 link_all_deplibs_CXX=yes
12437
12438 if test "$GXX" = yes; then
12439 case $host_os in aix4.[012]|aix4.[012].*)
12440 # We only want to do this on AIX 4.2 and lower, the check
12441 # below for broken collect2 doesn't work under 4.3+
12442 collect2name=`${CC} -print-prog-name=collect2`
12443 if test -f "$collect2name" && \
12444 strings "$collect2name" | grep resolve_lib_name >/dev/null
12445 then
12446 # We have reworked collect2
12447 :
12448 else
12449 # We have old collect2
12450 hardcode_direct_CXX=unsupported
12451 # It fails to find uninstalled libraries when the uninstalled
12452 # path is not listed in the libpath. Setting hardcode_minus_L
12453 # to unsupported forces relinking
12454 hardcode_minus_L_CXX=yes
12455 hardcode_libdir_flag_spec_CXX='-L$libdir'
12456 hardcode_libdir_separator_CXX=
12457 fi
12458 ;;
12459 esac
12460 shared_flag='-shared'
12461 if test "$aix_use_runtimelinking" = yes; then
12462 shared_flag="$shared_flag "'${wl}-G'
12463 fi
12464 else
12465 # not using gcc
12466 if test "$host_cpu" = ia64; then
12467 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12468 # chokes on -Wl,-G. The following line is correct:
12469 shared_flag='-G'
12470 else
12471 if test "$aix_use_runtimelinking" = yes; then
12472 shared_flag='${wl}-G'
12473 else
12474 shared_flag='${wl}-bM:SRE'
12475 fi
12476 fi
12477 fi
12478
12479 # It seems that -bexpall does not export symbols beginning with
12480 # underscore (_), so it is better to generate a list of symbols to export.
12481 always_export_symbols_CXX=yes
12482 if test "$aix_use_runtimelinking" = yes; then
12483 # Warning - without using the other runtime loading flags (-brtl),
12484 # -berok will link without error, but may produce a broken library.
12485 allow_undefined_flag_CXX='-berok'
12486 # Determine the default libpath from the value encoded in an empty executable.
12487 cat >conftest.$ac_ext <<_ACEOF
12488/* confdefs.h. */
12489_ACEOF
12490cat confdefs.h >>conftest.$ac_ext
12491cat >>conftest.$ac_ext <<_ACEOF
12492/* end confdefs.h. */
12493
12494int
12495main ()
12496{
12497
12498 ;
12499 return 0;
12500}
12501_ACEOF
12502rm -f conftest.$ac_objext conftest$ac_exeext
12503if { (ac_try="$ac_link"
12504case "(($ac_try" in
12505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12506 *) ac_try_echo=$ac_try;;
12507esac
12508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12509 (eval "$ac_link") 2>conftest.er1
12510 ac_status=$?
12511 grep -v '^ *+' conftest.er1 >conftest.err
12512 rm -f conftest.er1
12513 cat conftest.err >&5
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); } && {
12516 test -z "$ac_cxx_werror_flag" ||
12517 test ! -s conftest.err
12518 } && test -s conftest$ac_exeext &&
12519 $as_test_x conftest$ac_exeext; then
12520
12521lt_aix_libpath_sed='
12522 /Import File Strings/,/^$/ {
12523 /^0/ {
12524 s/^0 *\(.*\)$/\1/
12525 p
12526 }
12527 }'
12528aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12529# Check for a 64-bit object if we didn't find anything.
12530if test -z "$aix_libpath"; then
12531 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12532fi
12533else
12534 echo "$as_me: failed program was:" >&5
12535sed 's/^/| /' conftest.$ac_ext >&5
12536
12537
12538fi
12539
12540rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12541 conftest$ac_exeext conftest.$ac_ext
12542if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12543
12544 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12545
12546 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"
12547 else
12548 if test "$host_cpu" = ia64; then
12549 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12550 allow_undefined_flag_CXX="-z nodefs"
12551 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"
12552 else
12553 # Determine the default libpath from the value encoded in an empty executable.
12554 cat >conftest.$ac_ext <<_ACEOF
12555/* confdefs.h. */
12556_ACEOF
12557cat confdefs.h >>conftest.$ac_ext
12558cat >>conftest.$ac_ext <<_ACEOF
12559/* end confdefs.h. */
12560
12561int
12562main ()
12563{
12564
12565 ;
12566 return 0;
12567}
12568_ACEOF
12569rm -f conftest.$ac_objext conftest$ac_exeext
12570if { (ac_try="$ac_link"
12571case "(($ac_try" in
12572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12573 *) ac_try_echo=$ac_try;;
12574esac
12575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12576 (eval "$ac_link") 2>conftest.er1
12577 ac_status=$?
12578 grep -v '^ *+' conftest.er1 >conftest.err
12579 rm -f conftest.er1
12580 cat conftest.err >&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); } && {
12583 test -z "$ac_cxx_werror_flag" ||
12584 test ! -s conftest.err
12585 } && test -s conftest$ac_exeext &&
12586 $as_test_x conftest$ac_exeext; then
12587
12588lt_aix_libpath_sed='
12589 /Import File Strings/,/^$/ {
12590 /^0/ {
12591 s/^0 *\(.*\)$/\1/
12592 p
12593 }
12594 }'
12595aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12596# Check for a 64-bit object if we didn't find anything.
12597if test -z "$aix_libpath"; then
12598 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12599fi
12600else
12601 echo "$as_me: failed program was:" >&5
12602sed 's/^/| /' conftest.$ac_ext >&5
12603
12604
12605fi
12606
12607rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12608 conftest$ac_exeext conftest.$ac_ext
12609if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12610
12611 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12612 # Warning - without using the other run time loading flags,
12613 # -berok will link without error, but may produce a broken library.
12614 no_undefined_flag_CXX=' ${wl}-bernotok'
12615 allow_undefined_flag_CXX=' ${wl}-berok'
12616 # Exported symbols can be pulled into shared objects from archives
12617 whole_archive_flag_spec_CXX='$convenience'
12618 archive_cmds_need_lc_CXX=yes
12619 # This is similar to how AIX traditionally builds its shared libraries.
12620 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'
12621 fi
12622 fi
12623 ;;
12624
12625 beos*)
12626 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12627 allow_undefined_flag_CXX=unsupported
12628 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12629 # support --undefined. This deserves some investigation. FIXME
12630 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12631 else
12632 ld_shlibs_CXX=no
12633 fi
12634 ;;
12635
12636 chorus*)
12637 case $cc_basename in
12638 *)
12639 # FIXME: insert proper C++ library support
12640 ld_shlibs_CXX=no
12641 ;;
12642 esac
12643 ;;
12644
12645 cygwin* | mingw* | pw32*)
12646 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12647 # as there is no search path for DLLs.
12648 hardcode_libdir_flag_spec_CXX='-L$libdir'
12649 allow_undefined_flag_CXX=unsupported
12650 always_export_symbols_CXX=no
12651 enable_shared_with_static_runtimes_CXX=yes
12652
12653 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12654 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'
12655 # If the export-symbols file already is a .def file (1st line
12656 # is EXPORTS), use it as is; otherwise, prepend...
12657 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12658 cp $export_symbols $output_objdir/$soname.def;
12659 else
12660 echo EXPORTS > $output_objdir/$soname.def;
12661 cat $export_symbols >> $output_objdir/$soname.def;
12662 fi~
12663 $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'
12664 else
12665 ld_shlibs_CXX=no
12666 fi
12667 ;;
12668 darwin* | rhapsody*)
b57f37fb
WP
12669 archive_cmds_need_lc_CXX=no
12670 hardcode_direct_CXX=no
12671 hardcode_automatic_CXX=yes
12672 hardcode_shlibpath_var_CXX=unsupported
12673 whole_archive_flag_spec_CXX=''
12674 link_all_deplibs_CXX=yes
56efe974
WP
12675 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12676 if test "$GXX" = yes ; then
b57f37fb 12677 output_verbose_link_cmd='echo'
56efe974
WP
12678 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12679 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12680 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12681 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12682 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12683 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${_lt_dsymutil}"
12684 archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
b57f37fb 12685 fi
b57f37fb
WP
12686 else
12687 case $cc_basename in
12688 xlc*)
12689 output_verbose_link_cmd='echo'
12690 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'
12691 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12692 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12693 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}'
12694 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}'
12695 ;;
12696 *)
12697 ld_shlibs_CXX=no
12698 ;;
12699 esac
12700 fi
12701 ;;
12702
12703 dgux*)
12704 case $cc_basename in
12705 ec++*)
12706 # FIXME: insert proper C++ library support
12707 ld_shlibs_CXX=no
12708 ;;
12709 ghcx*)
12710 # Green Hills C++ Compiler
12711 # FIXME: insert proper C++ library support
12712 ld_shlibs_CXX=no
12713 ;;
12714 *)
12715 # FIXME: insert proper C++ library support
12716 ld_shlibs_CXX=no
12717 ;;
12718 esac
12719 ;;
12720 freebsd[12]*)
12721 # C++ shared libraries reported to be fairly broken before switch to ELF
12722 ld_shlibs_CXX=no
12723 ;;
12724 freebsd-elf*)
12725 archive_cmds_need_lc_CXX=no
12726 ;;
12727 freebsd* | dragonfly*)
12728 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12729 # conventions
12730 ld_shlibs_CXX=yes
12731 ;;
12732 gnu*)
12733 ;;
12734 hpux9*)
12735 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12736 hardcode_libdir_separator_CXX=:
12737 export_dynamic_flag_spec_CXX='${wl}-E'
12738 hardcode_direct_CXX=yes
12739 hardcode_minus_L_CXX=yes # Not in the search PATH,
12740 # but as the default
12741 # location of the library.
12742
12743 case $cc_basename in
12744 CC*)
12745 # FIXME: insert proper C++ library support
12746 ld_shlibs_CXX=no
12747 ;;
12748 aCC*)
12749 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'
12750 # Commands to make compiler produce verbose output that lists
12751 # what "hidden" libraries, object files and flags are used when
12752 # linking a shared library.
12753 #
12754 # There doesn't appear to be a way to prevent this compiler from
12755 # explicitly linking system object files so we need to strip them
12756 # from the output so that they don't get included in the library
12757 # dependencies.
12758 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'
12759 ;;
12760 *)
12761 if test "$GXX" = yes; then
12762 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'
12763 else
12764 # FIXME: insert proper C++ library support
12765 ld_shlibs_CXX=no
12766 fi
12767 ;;
12768 esac
12769 ;;
12770 hpux10*|hpux11*)
12771 if test $with_gnu_ld = no; then
12772 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12773 hardcode_libdir_separator_CXX=:
12774
12775 case $host_cpu in
12776 hppa*64*|ia64*) ;;
12777 *)
12778 export_dynamic_flag_spec_CXX='${wl}-E'
12779 ;;
12780 esac
12781 fi
12782 case $host_cpu in
12783 hppa*64*|ia64*)
12784 hardcode_direct_CXX=no
12785 hardcode_shlibpath_var_CXX=no
12786 ;;
12787 *)
12788 hardcode_direct_CXX=yes
12789 hardcode_minus_L_CXX=yes # Not in the search PATH,
12790 # but as the default
12791 # location of the library.
12792 ;;
12793 esac
12794
12795 case $cc_basename in
12796 CC*)
12797 # FIXME: insert proper C++ library support
12798 ld_shlibs_CXX=no
12799 ;;
12800 aCC*)
12801 case $host_cpu in
12802 hppa*64*)
12803 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12804 ;;
12805 ia64*)
12806 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12807 ;;
12808 *)
12809 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12810 ;;
12811 esac
12812 # Commands to make compiler produce verbose output that lists
12813 # what "hidden" libraries, object files and flags are used when
12814 # linking a shared library.
12815 #
12816 # There doesn't appear to be a way to prevent this compiler from
12817 # explicitly linking system object files so we need to strip them
12818 # from the output so that they don't get included in the library
12819 # dependencies.
12820 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'
12821 ;;
12822 *)
12823 if test "$GXX" = yes; then
12824 if test $with_gnu_ld = no; then
12825 case $host_cpu in
12826 hppa*64*)
12827 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12828 ;;
12829 ia64*)
12830 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12831 ;;
12832 *)
12833 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'
12834 ;;
12835 esac
12836 fi
12837 else
12838 # FIXME: insert proper C++ library support
12839 ld_shlibs_CXX=no
12840 fi
12841 ;;
12842 esac
12843 ;;
12844 interix[3-9]*)
12845 hardcode_direct_CXX=no
12846 hardcode_shlibpath_var_CXX=no
12847 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12848 export_dynamic_flag_spec_CXX='${wl}-E'
12849 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12850 # Instead, shared libraries are loaded at an image base (0x10000000 by
12851 # default) and relocated if they conflict, which is a slow very memory
12852 # consuming and fragmenting process. To avoid this, we pick a random,
12853 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12854 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12855 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'
12856 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'
12857 ;;
12858 irix5* | irix6*)
12859 case $cc_basename in
12860 CC*)
12861 # SGI C++
12862 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'
12863
12864 # Archives containing C++ object files must be created using
12865 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12866 # necessary to make sure instantiated templates are included
12867 # in the archive.
12868 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12869 ;;
12870 *)
12871 if test "$GXX" = yes; then
12872 if test "$with_gnu_ld" = no; then
12873 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'
12874 else
12875 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'
12876 fi
12877 fi
12878 link_all_deplibs_CXX=yes
12879 ;;
12880 esac
12881 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12882 hardcode_libdir_separator_CXX=:
12883 ;;
12884 linux* | k*bsd*-gnu)
12885 case $cc_basename in
12886 KCC*)
12887 # Kuck and Associates, Inc. (KAI) C++ Compiler
12888
12889 # KCC will only create a shared library if the output file
12890 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12891 # to its proper name (with version) after linking.
12892 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'
12893 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'
12894 # Commands to make compiler produce verbose output that lists
12895 # what "hidden" libraries, object files and flags are used when
12896 # linking a shared library.
12897 #
12898 # There doesn't appear to be a way to prevent this compiler from
12899 # explicitly linking system object files so we need to strip them
12900 # from the output so that they don't get included in the library
12901 # dependencies.
12902 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'
12903
12904 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12905 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12906
12907 # Archives containing C++ object files must be created using
12908 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12909 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12910 ;;
12911 icpc*)
12912 # Intel C++
12913 with_gnu_ld=yes
12914 # version 8.0 and above of icpc choke on multiply defined symbols
12915 # if we add $predep_objects and $postdep_objects, however 7.1 and
12916 # earlier do not add the objects themselves.
12917 case `$CC -V 2>&1` in
12918 *"Version 7."*)
12919 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12920 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'
12921 ;;
12922 *) # Version 8.0 or newer
12923 tmp_idyn=
12924 case $host_cpu in
12925 ia64*) tmp_idyn=' -i_dynamic';;
12926 esac
12927 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12928 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'
12929 ;;
12930 esac
12931 archive_cmds_need_lc_CXX=no
12932 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12933 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12934 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12935 ;;
56efe974 12936 pgCC* | pgcpp*)
b57f37fb
WP
12937 # Portland Group C++ compiler
12938 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12939 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'
12940
12941 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12942 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12943 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'
12944 ;;
12945 cxx*)
12946 # Compaq C++
12947 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12948 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'
12949
12950 runpath_var=LD_RUN_PATH
12951 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12952 hardcode_libdir_separator_CXX=:
12953
12954 # Commands to make compiler produce verbose output that lists
12955 # what "hidden" libraries, object files and flags are used when
12956 # linking a shared library.
12957 #
12958 # There doesn't appear to be a way to prevent this compiler from
12959 # explicitly linking system object files so we need to strip them
12960 # from the output so that they don't get included in the library
12961 # dependencies.
12962 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'
12963 ;;
12964 *)
12965 case `$CC -V 2>&1 | sed 5q` in
12966 *Sun\ C*)
12967 # Sun C++ 5.9
12968 no_undefined_flag_CXX=' -zdefs'
12969 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12970 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'
12971 hardcode_libdir_flag_spec_CXX='-R$libdir'
12972 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'
12973
12974 # Not sure whether something based on
12975 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12976 # would be better.
12977 output_verbose_link_cmd='echo'
12978
12979 # Archives containing C++ object files must be created using
12980 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12981 # necessary to make sure instantiated templates are included
12982 # in the archive.
12983 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12984 ;;
12985 esac
12986 ;;
12987 esac
12988 ;;
12989 lynxos*)
12990 # FIXME: insert proper C++ library support
12991 ld_shlibs_CXX=no
12992 ;;
12993 m88k*)
12994 # FIXME: insert proper C++ library support
12995 ld_shlibs_CXX=no
12996 ;;
12997 mvs*)
12998 case $cc_basename in
12999 cxx*)
13000 # FIXME: insert proper C++ library support
13001 ld_shlibs_CXX=no
13002 ;;
13003 *)
13004 # FIXME: insert proper C++ library support
13005 ld_shlibs_CXX=no
13006 ;;
13007 esac
13008 ;;
13009 netbsd* | netbsdelf*-gnu)
13010 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13011 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13012 wlarc=
13013 hardcode_libdir_flag_spec_CXX='-R$libdir'
13014 hardcode_direct_CXX=yes
13015 hardcode_shlibpath_var_CXX=no
13016 fi
13017 # Workaround some broken pre-1.5 toolchains
13018 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13019 ;;
13020 openbsd2*)
13021 # C++ shared libraries are fairly broken
13022 ld_shlibs_CXX=no
13023 ;;
13024 openbsd*)
13025 if test -f /usr/libexec/ld.so; then
13026 hardcode_direct_CXX=yes
13027 hardcode_shlibpath_var_CXX=no
13028 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13029 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13030 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13031 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13032 export_dynamic_flag_spec_CXX='${wl}-E'
13033 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13034 fi
13035 output_verbose_link_cmd='echo'
13036 else
13037 ld_shlibs_CXX=no
13038 fi
13039 ;;
13040 osf3*)
13041 case $cc_basename in
13042 KCC*)
13043 # Kuck and Associates, Inc. (KAI) C++ Compiler
13044
13045 # KCC will only create a shared library if the output file
13046 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13047 # to its proper name (with version) after linking.
13048 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'
13049
13050 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13051 hardcode_libdir_separator_CXX=:
13052
13053 # Archives containing C++ object files must be created using
13054 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13055 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13056
13057 ;;
13058 RCC*)
13059 # Rational C++ 2.4.1
13060 # FIXME: insert proper C++ library support
13061 ld_shlibs_CXX=no
13062 ;;
13063 cxx*)
13064 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13065 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'
13066
13067 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13068 hardcode_libdir_separator_CXX=:
13069
13070 # Commands to make compiler produce verbose output that lists
13071 # what "hidden" libraries, object files and flags are used when
13072 # linking a shared library.
13073 #
13074 # There doesn't appear to be a way to prevent this compiler from
13075 # explicitly linking system object files so we need to strip them
13076 # from the output so that they don't get included in the library
13077 # dependencies.
13078 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'
13079 ;;
13080 *)
13081 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13082 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13083 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'
13084
13085 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13086 hardcode_libdir_separator_CXX=:
13087
13088 # Commands to make compiler produce verbose output that lists
13089 # what "hidden" libraries, object files and flags are used when
13090 # linking a shared library.
13091 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13092
13093 else
13094 # FIXME: insert proper C++ library support
13095 ld_shlibs_CXX=no
13096 fi
13097 ;;
13098 esac
13099 ;;
13100 osf4* | osf5*)
13101 case $cc_basename in
13102 KCC*)
13103 # Kuck and Associates, Inc. (KAI) C++ Compiler
13104
13105 # KCC will only create a shared library if the output file
13106 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13107 # to its proper name (with version) after linking.
13108 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'
13109
13110 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13111 hardcode_libdir_separator_CXX=:
13112
13113 # Archives containing C++ object files must be created using
13114 # the KAI C++ compiler.
13115 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13116 ;;
13117 RCC*)
13118 # Rational C++ 2.4.1
13119 # FIXME: insert proper C++ library support
13120 ld_shlibs_CXX=no
13121 ;;
13122 cxx*)
13123 allow_undefined_flag_CXX=' -expect_unresolved \*'
13124 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'
13125 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13126 echo "-hidden">> $lib.exp~
13127 $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~
13128 $rm $lib.exp'
13129
13130 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13131 hardcode_libdir_separator_CXX=:
13132
13133 # Commands to make compiler produce verbose output that lists
13134 # what "hidden" libraries, object files and flags are used when
13135 # linking a shared library.
13136 #
13137 # There doesn't appear to be a way to prevent this compiler from
13138 # explicitly linking system object files so we need to strip them
13139 # from the output so that they don't get included in the library
13140 # dependencies.
13141 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'
13142 ;;
13143 *)
13144 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13145 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13146 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'
13147
13148 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13149 hardcode_libdir_separator_CXX=:
13150
13151 # Commands to make compiler produce verbose output that lists
13152 # what "hidden" libraries, object files and flags are used when
13153 # linking a shared library.
13154 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13155
13156 else
13157 # FIXME: insert proper C++ library support
13158 ld_shlibs_CXX=no
13159 fi
13160 ;;
13161 esac
13162 ;;
13163 psos*)
13164 # FIXME: insert proper C++ library support
13165 ld_shlibs_CXX=no
13166 ;;
13167 sunos4*)
13168 case $cc_basename in
13169 CC*)
13170 # Sun C++ 4.x
13171 # FIXME: insert proper C++ library support
13172 ld_shlibs_CXX=no
13173 ;;
13174 lcc*)
13175 # Lucid
13176 # FIXME: insert proper C++ library support
13177 ld_shlibs_CXX=no
13178 ;;
13179 *)
13180 # FIXME: insert proper C++ library support
13181 ld_shlibs_CXX=no
13182 ;;
13183 esac
13184 ;;
13185 solaris*)
13186 case $cc_basename in
13187 CC*)
13188 # Sun C++ 4.2, 5.x and Centerline C++
13189 archive_cmds_need_lc_CXX=yes
13190 no_undefined_flag_CXX=' -zdefs'
13191 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13192 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13193 $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'
13194
13195 hardcode_libdir_flag_spec_CXX='-R$libdir'
13196 hardcode_shlibpath_var_CXX=no
13197 case $host_os in
13198 solaris2.[0-5] | solaris2.[0-5].*) ;;
13199 *)
13200 # The compiler driver will combine and reorder linker options,
13201 # but understands `-z linker_flag'.
13202 # Supported since Solaris 2.6 (maybe 2.5.1?)
13203 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13204 ;;
13205 esac
13206 link_all_deplibs_CXX=yes
13207
13208 output_verbose_link_cmd='echo'
13209
13210 # Archives containing C++ object files must be created using
13211 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13212 # necessary to make sure instantiated templates are included
13213 # in the archive.
13214 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13215 ;;
13216 gcx*)
13217 # Green Hills C++ Compiler
13218 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13219
13220 # The C++ compiler must be used to create the archive.
13221 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13222 ;;
13223 *)
13224 # GNU C++ compiler with Solaris linker
13225 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13226 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13227 if $CC --version | grep -v '^2\.7' > /dev/null; then
13228 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13229 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13230 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13231
13232 # Commands to make compiler produce verbose output that lists
13233 # what "hidden" libraries, object files and flags are used when
13234 # linking a shared library.
13235 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13236 else
13237 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13238 # platform.
13239 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13240 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13241 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13242
13243 # Commands to make compiler produce verbose output that lists
13244 # what "hidden" libraries, object files and flags are used when
13245 # linking a shared library.
13246 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13247 fi
13248
13249 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13250 case $host_os in
13251 solaris2.[0-5] | solaris2.[0-5].*) ;;
13252 *)
13253 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13254 ;;
13255 esac
13256 fi
13257 ;;
13258 esac
13259 ;;
13260 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13261 no_undefined_flag_CXX='${wl}-z,text'
13262 archive_cmds_need_lc_CXX=no
13263 hardcode_shlibpath_var_CXX=no
13264 runpath_var='LD_RUN_PATH'
13265
13266 case $cc_basename in
13267 CC*)
13268 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13269 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13270 ;;
13271 *)
13272 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13273 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13274 ;;
13275 esac
13276 ;;
13277 sysv5* | sco3.2v5* | sco5v6*)
13278 # Note: We can NOT use -z defs as we might desire, because we do not
13279 # link with -lc, and that would cause any symbols used from libc to
13280 # always be unresolved, which means just about no library would
13281 # ever link correctly. If we're not using GNU ld we use -z text
13282 # though, which does catch some bad symbols but isn't as heavy-handed
13283 # as -z defs.
13284 # For security reasons, it is highly recommended that you always
13285 # use absolute paths for naming shared libraries, and exclude the
13286 # DT_RUNPATH tag from executables and libraries. But doing so
13287 # requires that you compile everything twice, which is a pain.
13288 # So that behaviour is only enabled if SCOABSPATH is set to a
13289 # non-empty value in the environment. Most likely only useful for
13290 # creating official distributions of packages.
13291 # This is a hack until libtool officially supports absolute path
13292 # names for shared libraries.
13293 no_undefined_flag_CXX='${wl}-z,text'
13294 allow_undefined_flag_CXX='${wl}-z,nodefs'
13295 archive_cmds_need_lc_CXX=no
13296 hardcode_shlibpath_var_CXX=no
13297 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13298 hardcode_libdir_separator_CXX=':'
13299 link_all_deplibs_CXX=yes
13300 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13301 runpath_var='LD_RUN_PATH'
13302
13303 case $cc_basename in
13304 CC*)
13305 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13306 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13307 ;;
13308 *)
13309 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13310 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13311 ;;
13312 esac
13313 ;;
13314 tandem*)
13315 case $cc_basename in
13316 NCC*)
13317 # NonStop-UX NCC 3.20
13318 # FIXME: insert proper C++ library support
13319 ld_shlibs_CXX=no
13320 ;;
13321 *)
13322 # FIXME: insert proper C++ library support
13323 ld_shlibs_CXX=no
13324 ;;
13325 esac
13326 ;;
13327 vxworks*)
13328 # FIXME: insert proper C++ library support
13329 ld_shlibs_CXX=no
13330 ;;
13331 *)
13332 # FIXME: insert proper C++ library support
13333 ld_shlibs_CXX=no
13334 ;;
13335esac
13336{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13337echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13338test "$ld_shlibs_CXX" = no && can_build_shared=no
13339
13340GCC_CXX="$GXX"
13341LD_CXX="$LD"
13342
b57f37fb
WP
13343cat > conftest.$ac_ext <<EOF
13344class Foo
13345{
13346public:
13347 Foo (void) { a = 0; }
13348private:
13349 int a;
13350};
13351EOF
13352
13353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13354 (eval $ac_compile) 2>&5
13355 ac_status=$?
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); }; then
13358 # Parse the compiler output and extract the necessary
13359 # objects, libraries and library flags.
13360
13361 # Sentinel used to keep track of whether or not we are before
13362 # the conftest object file.
13363 pre_test_object_deps_done=no
13364
13365 # The `*' in the case matches for architectures that use `case' in
13366 # $output_verbose_cmd can trigger glob expansion during the loop
13367 # eval without this substitution.
13368 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13369
13370 for p in `eval $output_verbose_link_cmd`; do
13371 case $p in
13372
13373 -L* | -R* | -l*)
13374 # Some compilers place space between "-{L,R}" and the path.
13375 # Remove the space.
13376 if test $p = "-L" \
13377 || test $p = "-R"; then
13378 prev=$p
13379 continue
13380 else
13381 prev=
13382 fi
13383
13384 if test "$pre_test_object_deps_done" = no; then
13385 case $p in
13386 -L* | -R*)
13387 # Internal compiler library paths should come after those
13388 # provided the user. The postdeps already come after the
13389 # user supplied libs so there is no need to process them.
13390 if test -z "$compiler_lib_search_path_CXX"; then
13391 compiler_lib_search_path_CXX="${prev}${p}"
13392 else
13393 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13394 fi
13395 ;;
13396 # The "-l" case would never come before the object being
13397 # linked, so don't bother handling this case.
13398 esac
13399 else
13400 if test -z "$postdeps_CXX"; then
13401 postdeps_CXX="${prev}${p}"
13402 else
13403 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13404 fi
13405 fi
13406 ;;
13407
13408 *.$objext)
13409 # This assumes that the test object file only shows up
13410 # once in the compiler output.
13411 if test "$p" = "conftest.$objext"; then
13412 pre_test_object_deps_done=yes
13413 continue
13414 fi
13415
13416 if test "$pre_test_object_deps_done" = no; then
13417 if test -z "$predep_objects_CXX"; then
13418 predep_objects_CXX="$p"
13419 else
13420 predep_objects_CXX="$predep_objects_CXX $p"
13421 fi
13422 else
13423 if test -z "$postdep_objects_CXX"; then
13424 postdep_objects_CXX="$p"
13425 else
13426 postdep_objects_CXX="$postdep_objects_CXX $p"
13427 fi
13428 fi
13429 ;;
13430
13431 *) ;; # Ignore the rest.
13432
13433 esac
13434 done
13435
13436 # Clean up.
13437 rm -f a.out a.exe
13438else
13439 echo "libtool.m4: error: problem compiling CXX test program"
13440fi
13441
13442$rm -f confest.$objext
13443
56efe974
WP
13444compiler_lib_search_dirs_CXX=
13445if test -n "$compiler_lib_search_path_CXX"; then
13446 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13447fi
13448
b57f37fb
WP
13449# PORTME: override above test on systems where it is broken
13450case $host_os in
13451interix[3-9]*)
13452 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13453 # hack all around it, let's just trust "g++" to DTRT.
13454 predep_objects_CXX=
13455 postdep_objects_CXX=
13456 postdeps_CXX=
13457 ;;
13458
13459linux*)
13460 case `$CC -V 2>&1 | sed 5q` in
13461 *Sun\ C*)
13462 # Sun C++ 5.9
13463 #
13464 # The more standards-conforming stlport4 library is
13465 # incompatible with the Cstd library. Avoid specifying
13466 # it if it's in CXXFLAGS. Ignore libCrun as
13467 # -library=stlport4 depends on it.
13468 case " $CXX $CXXFLAGS " in
13469 *" -library=stlport4 "*)
13470 solaris_use_stlport4=yes
13471 ;;
13472 esac
13473 if test "$solaris_use_stlport4" != yes; then
13474 postdeps_CXX='-library=Cstd -library=Crun'
13475 fi
13476 ;;
13477 esac
13478 ;;
13479
13480solaris*)
13481 case $cc_basename in
13482 CC*)
13483 # The more standards-conforming stlport4 library is
13484 # incompatible with the Cstd library. Avoid specifying
13485 # it if it's in CXXFLAGS. Ignore libCrun as
13486 # -library=stlport4 depends on it.
13487 case " $CXX $CXXFLAGS " in
13488 *" -library=stlport4 "*)
13489 solaris_use_stlport4=yes
13490 ;;
13491 esac
13492
13493 # Adding this requires a known-good setup of shared libraries for
13494 # Sun compiler versions before 5.6, else PIC objects from an old
13495 # archive will be linked into the output, leading to subtle bugs.
13496 if test "$solaris_use_stlport4" != yes; then
13497 postdeps_CXX='-library=Cstd -library=Crun'
13498 fi
13499 ;;
13500 esac
13501 ;;
13502esac
13503
b57f37fb
WP
13504case " $postdeps_CXX " in
13505*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13506esac
13507
13508lt_prog_compiler_wl_CXX=
13509lt_prog_compiler_pic_CXX=
13510lt_prog_compiler_static_CXX=
13511
13512{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13513echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13514
13515 # C++ specific cases for pic, static, wl, etc.
13516 if test "$GXX" = yes; then
13517 lt_prog_compiler_wl_CXX='-Wl,'
13518 lt_prog_compiler_static_CXX='-static'
13519
13520 case $host_os in
13521 aix*)
13522 # All AIX code is PIC.
13523 if test "$host_cpu" = ia64; then
13524 # AIX 5 now supports IA64 processor
13525 lt_prog_compiler_static_CXX='-Bstatic'
13526 fi
13527 ;;
13528 amigaos*)
13529 # FIXME: we need at least 68020 code to build shared libraries, but
13530 # adding the `-m68020' flag to GCC prevents building anything better,
13531 # like `-m68040'.
13532 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13533 ;;
13534 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13535 # PIC is the default for these OSes.
13536 ;;
13537 mingw* | cygwin* | os2* | pw32*)
13538 # This hack is so that the source file can tell whether it is being
13539 # built for inclusion in a dll (and should export symbols for example).
13540 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13541 # (--disable-auto-import) libraries
13542 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13543 ;;
13544 darwin* | rhapsody*)
13545 # PIC is the default on this platform
13546 # Common symbols not allowed in MH_DYLIB files
13547 lt_prog_compiler_pic_CXX='-fno-common'
13548 ;;
13549 *djgpp*)
13550 # DJGPP does not support shared libraries at all
13551 lt_prog_compiler_pic_CXX=
13552 ;;
13553 interix[3-9]*)
13554 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13555 # Instead, we relocate shared libraries at runtime.
13556 ;;
13557 sysv4*MP*)
13558 if test -d /usr/nec; then
13559 lt_prog_compiler_pic_CXX=-Kconform_pic
13560 fi
13561 ;;
13562 hpux*)
13563 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13564 # not for PA HP-UX.
13565 case $host_cpu in
13566 hppa*64*|ia64*)
13567 ;;
13568 *)
13569 lt_prog_compiler_pic_CXX='-fPIC'
13570 ;;
13571 esac
13572 ;;
13573 *)
13574 lt_prog_compiler_pic_CXX='-fPIC'
13575 ;;
13576 esac
13577 else
13578 case $host_os in
56efe974 13579 aix[4-9]*)
b57f37fb
WP
13580 # All AIX code is PIC.
13581 if test "$host_cpu" = ia64; then
13582 # AIX 5 now supports IA64 processor
13583 lt_prog_compiler_static_CXX='-Bstatic'
13584 else
13585 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13586 fi
13587 ;;
13588 chorus*)
13589 case $cc_basename in
13590 cxch68*)
13591 # Green Hills C++ Compiler
13592 # _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"
13593 ;;
13594 esac
13595 ;;
13596 darwin*)
13597 # PIC is the default on this platform
13598 # Common symbols not allowed in MH_DYLIB files
13599 case $cc_basename in
13600 xlc*)
13601 lt_prog_compiler_pic_CXX='-qnocommon'
13602 lt_prog_compiler_wl_CXX='-Wl,'
13603 ;;
13604 esac
13605 ;;
13606 dgux*)
13607 case $cc_basename in
13608 ec++*)
13609 lt_prog_compiler_pic_CXX='-KPIC'
13610 ;;
13611 ghcx*)
13612 # Green Hills C++ Compiler
13613 lt_prog_compiler_pic_CXX='-pic'
13614 ;;
13615 *)
13616 ;;
13617 esac
13618 ;;
13619 freebsd* | dragonfly*)
13620 # FreeBSD uses GNU C++
13621 ;;
13622 hpux9* | hpux10* | hpux11*)
13623 case $cc_basename in
13624 CC*)
13625 lt_prog_compiler_wl_CXX='-Wl,'
13626 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13627 if test "$host_cpu" != ia64; then
13628 lt_prog_compiler_pic_CXX='+Z'
13629 fi
13630 ;;
13631 aCC*)
13632 lt_prog_compiler_wl_CXX='-Wl,'
13633 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13634 case $host_cpu in
13635 hppa*64*|ia64*)
13636 # +Z the default
13637 ;;
13638 *)
13639 lt_prog_compiler_pic_CXX='+Z'
13640 ;;
13641 esac
13642 ;;
13643 *)
13644 ;;
13645 esac
13646 ;;
13647 interix*)
13648 # This is c89, which is MS Visual C++ (no shared libs)
13649 # Anyone wants to do a port?
13650 ;;
13651 irix5* | irix6* | nonstopux*)
13652 case $cc_basename in
13653 CC*)
13654 lt_prog_compiler_wl_CXX='-Wl,'
13655 lt_prog_compiler_static_CXX='-non_shared'
13656 # CC pic flag -KPIC is the default.
13657 ;;
13658 *)
13659 ;;
13660 esac
13661 ;;
13662 linux* | k*bsd*-gnu)
13663 case $cc_basename in
13664 KCC*)
13665 # KAI C++ Compiler
13666 lt_prog_compiler_wl_CXX='--backend -Wl,'
13667 lt_prog_compiler_pic_CXX='-fPIC'
13668 ;;
13669 icpc* | ecpc*)
13670 # Intel C++
13671 lt_prog_compiler_wl_CXX='-Wl,'
13672 lt_prog_compiler_pic_CXX='-KPIC'
13673 lt_prog_compiler_static_CXX='-static'
13674 ;;
56efe974 13675 pgCC* | pgcpp*)
b57f37fb
WP
13676 # Portland Group C++ compiler.
13677 lt_prog_compiler_wl_CXX='-Wl,'
13678 lt_prog_compiler_pic_CXX='-fpic'
13679 lt_prog_compiler_static_CXX='-Bstatic'
13680 ;;
13681 cxx*)
13682 # Compaq C++
13683 # Make sure the PIC flag is empty. It appears that all Alpha
13684 # Linux and Compaq Tru64 Unix objects are PIC.
13685 lt_prog_compiler_pic_CXX=
13686 lt_prog_compiler_static_CXX='-non_shared'
13687 ;;
13688 *)
13689 case `$CC -V 2>&1 | sed 5q` in
13690 *Sun\ C*)
13691 # Sun C++ 5.9
13692 lt_prog_compiler_pic_CXX='-KPIC'
13693 lt_prog_compiler_static_CXX='-Bstatic'
13694 lt_prog_compiler_wl_CXX='-Qoption ld '
13695 ;;
13696 esac
13697 ;;
13698 esac
13699 ;;
13700 lynxos*)
13701 ;;
13702 m88k*)
13703 ;;
13704 mvs*)
13705 case $cc_basename in
13706 cxx*)
13707 lt_prog_compiler_pic_CXX='-W c,exportall'
13708 ;;
13709 *)
13710 ;;
13711 esac
13712 ;;
13713 netbsd* | netbsdelf*-gnu)
13714 ;;
13715 osf3* | osf4* | osf5*)
13716 case $cc_basename in
13717 KCC*)
13718 lt_prog_compiler_wl_CXX='--backend -Wl,'
13719 ;;
13720 RCC*)
13721 # Rational C++ 2.4.1
13722 lt_prog_compiler_pic_CXX='-pic'
13723 ;;
13724 cxx*)
13725 # Digital/Compaq C++
13726 lt_prog_compiler_wl_CXX='-Wl,'
13727 # Make sure the PIC flag is empty. It appears that all Alpha
13728 # Linux and Compaq Tru64 Unix objects are PIC.
13729 lt_prog_compiler_pic_CXX=
13730 lt_prog_compiler_static_CXX='-non_shared'
13731 ;;
13732 *)
13733 ;;
13734 esac
13735 ;;
13736 psos*)
13737 ;;
13738 solaris*)
13739 case $cc_basename in
13740 CC*)
13741 # Sun C++ 4.2, 5.x and Centerline C++
13742 lt_prog_compiler_pic_CXX='-KPIC'
13743 lt_prog_compiler_static_CXX='-Bstatic'
13744 lt_prog_compiler_wl_CXX='-Qoption ld '
13745 ;;
13746 gcx*)
13747 # Green Hills C++ Compiler
13748 lt_prog_compiler_pic_CXX='-PIC'
13749 ;;
13750 *)
13751 ;;
13752 esac
13753 ;;
13754 sunos4*)
13755 case $cc_basename in
13756 CC*)
13757 # Sun C++ 4.x
13758 lt_prog_compiler_pic_CXX='-pic'
13759 lt_prog_compiler_static_CXX='-Bstatic'
13760 ;;
13761 lcc*)
13762 # Lucid
13763 lt_prog_compiler_pic_CXX='-pic'
13764 ;;
13765 *)
13766 ;;
13767 esac
13768 ;;
13769 tandem*)
13770 case $cc_basename in
13771 NCC*)
13772 # NonStop-UX NCC 3.20
13773 lt_prog_compiler_pic_CXX='-KPIC'
13774 ;;
13775 *)
13776 ;;
13777 esac
13778 ;;
13779 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13780 case $cc_basename in
13781 CC*)
13782 lt_prog_compiler_wl_CXX='-Wl,'
13783 lt_prog_compiler_pic_CXX='-KPIC'
13784 lt_prog_compiler_static_CXX='-Bstatic'
13785 ;;
13786 esac
13787 ;;
13788 vxworks*)
13789 ;;
13790 *)
13791 lt_prog_compiler_can_build_shared_CXX=no
13792 ;;
13793 esac
13794 fi
13795
13796{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13797echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13798
13799#
13800# Check to make sure the PIC flag actually works.
13801#
13802if test -n "$lt_prog_compiler_pic_CXX"; then
13803
13804{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13805echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
56efe974 13806if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
b57f37fb
WP
13807 echo $ECHO_N "(cached) $ECHO_C" >&6
13808else
56efe974 13809 lt_cv_prog_compiler_pic_works_CXX=no
b57f37fb
WP
13810 ac_outfile=conftest.$ac_objext
13811 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13812 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13813 # Insert the option either (1) after the last *FLAGS variable, or
13814 # (2) before a word containing "conftest.", or (3) at the end.
13815 # Note that $ac_compile itself does not contain backslashes and begins
13816 # with a dollar sign (not a hyphen), so the echo should work correctly.
13817 # The option is referenced via a variable to avoid confusing sed.
13818 lt_compile=`echo "$ac_compile" | $SED \
13819 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13820 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13821 -e 's:$: $lt_compiler_flag:'`
94b4fbf9 13822 (eval echo "\"\$as_me:13822: $lt_compile\"" >&5)
b57f37fb
WP
13823 (eval "$lt_compile" 2>conftest.err)
13824 ac_status=$?
13825 cat conftest.err >&5
94b4fbf9 13826 echo "$as_me:13826: \$? = $ac_status" >&5
b57f37fb
WP
13827 if (exit $ac_status) && test -s "$ac_outfile"; then
13828 # The compiler can only warn and ignore the option if not recognized
13829 # So say no if there are warnings other than the usual output.
13830 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13831 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13832 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
56efe974 13833 lt_cv_prog_compiler_pic_works_CXX=yes
b57f37fb
WP
13834 fi
13835 fi
13836 $rm conftest*
13837
13838fi
56efe974
WP
13839{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13840echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
b57f37fb 13841
56efe974 13842if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
b57f37fb
WP
13843 case $lt_prog_compiler_pic_CXX in
13844 "" | " "*) ;;
13845 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13846 esac
13847else
13848 lt_prog_compiler_pic_CXX=
13849 lt_prog_compiler_can_build_shared_CXX=no
13850fi
13851
13852fi
13853case $host_os in
13854 # For platforms which do not support PIC, -DPIC is meaningless:
13855 *djgpp*)
13856 lt_prog_compiler_pic_CXX=
13857 ;;
13858 *)
13859 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13860 ;;
13861esac
13862
13863#
13864# Check to make sure the static flag actually works.
13865#
13866wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13867{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13868echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
56efe974 13869if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
b57f37fb
WP
13870 echo $ECHO_N "(cached) $ECHO_C" >&6
13871else
56efe974 13872 lt_cv_prog_compiler_static_works_CXX=no
b57f37fb
WP
13873 save_LDFLAGS="$LDFLAGS"
13874 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13875 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13876 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13877 # The linker can only warn and ignore the option if not recognized
13878 # So say no if there are warnings
13879 if test -s conftest.err; then
13880 # Append any errors to the config.log.
13881 cat conftest.err 1>&5
13882 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13883 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13884 if diff conftest.exp conftest.er2 >/dev/null; then
56efe974 13885 lt_cv_prog_compiler_static_works_CXX=yes
b57f37fb
WP
13886 fi
13887 else
56efe974 13888 lt_cv_prog_compiler_static_works_CXX=yes
b57f37fb
WP
13889 fi
13890 fi
56efe974 13891 $rm -r conftest*
b57f37fb
WP
13892 LDFLAGS="$save_LDFLAGS"
13893
13894fi
56efe974
WP
13895{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13896echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
b57f37fb 13897
56efe974 13898if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
b57f37fb
WP
13899 :
13900else
13901 lt_prog_compiler_static_CXX=
13902fi
13903
13904
13905{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13906echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13907if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13908 echo $ECHO_N "(cached) $ECHO_C" >&6
13909else
13910 lt_cv_prog_compiler_c_o_CXX=no
13911 $rm -r conftest 2>/dev/null
13912 mkdir conftest
13913 cd conftest
13914 mkdir out
13915 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13916
13917 lt_compiler_flag="-o out/conftest2.$ac_objext"
13918 # Insert the option either (1) after the last *FLAGS variable, or
13919 # (2) before a word containing "conftest.", or (3) at the end.
13920 # Note that $ac_compile itself does not contain backslashes and begins
13921 # with a dollar sign (not a hyphen), so the echo should work correctly.
13922 lt_compile=`echo "$ac_compile" | $SED \
13923 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13924 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13925 -e 's:$: $lt_compiler_flag:'`
94b4fbf9 13926 (eval echo "\"\$as_me:13926: $lt_compile\"" >&5)
b57f37fb
WP
13927 (eval "$lt_compile" 2>out/conftest.err)
13928 ac_status=$?
13929 cat out/conftest.err >&5
94b4fbf9 13930 echo "$as_me:13930: \$? = $ac_status" >&5
b57f37fb
WP
13931 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13932 then
13933 # The compiler can only warn and ignore the option if not recognized
13934 # So say no if there are warnings
13935 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13936 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13937 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13938 lt_cv_prog_compiler_c_o_CXX=yes
13939 fi
13940 fi
13941 chmod u+w . 2>&5
13942 $rm conftest*
13943 # SGI C++ compiler will create directory out/ii_files/ for
13944 # template instantiation
13945 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13946 $rm out/* && rmdir out
13947 cd ..
13948 rmdir conftest
13949 $rm conftest*
13950
13951fi
13952{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13953echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13954
13955
13956hard_links="nottested"
13957if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13958 # do not overwrite the value of need_locks provided by the user
13959 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13960echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13961 hard_links=yes
13962 $rm conftest*
13963 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13964 touch conftest.a
13965 ln conftest.a conftest.b 2>&5 || hard_links=no
13966 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13967 { echo "$as_me:$LINENO: result: $hard_links" >&5
13968echo "${ECHO_T}$hard_links" >&6; }
13969 if test "$hard_links" = no; then
13970 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13971echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13972 need_locks=warn
13973 fi
13974else
13975 need_locks=no
13976fi
13977
13978{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13979echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13980
13981 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13982 case $host_os in
56efe974 13983 aix[4-9]*)
b57f37fb
WP
13984 # If we're using GNU nm, then we don't want the "-C" option.
13985 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13986 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13987 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'
13988 else
13989 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'
13990 fi
13991 ;;
13992 pw32*)
13993 export_symbols_cmds_CXX="$ltdll_cmds"
13994 ;;
13995 cygwin* | mingw*)
13996 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'
13997 ;;
13998 linux* | k*bsd*-gnu)
13999 link_all_deplibs_CXX=no
14000 ;;
14001 *)
14002 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14003 ;;
14004 esac
56efe974 14005 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
b57f37fb
WP
14006
14007{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14008echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14009test "$ld_shlibs_CXX" = no && can_build_shared=no
14010
14011#
14012# Do we need to explicitly link libc?
14013#
14014case "x$archive_cmds_need_lc_CXX" in
14015x|xyes)
14016 # Assume -lc should be added
14017 archive_cmds_need_lc_CXX=yes
14018
14019 if test "$enable_shared" = yes && test "$GCC" = yes; then
14020 case $archive_cmds_CXX in
14021 *'~'*)
14022 # FIXME: we may have to deal with multi-command sequences.
14023 ;;
14024 '$CC '*)
14025 # Test whether the compiler implicitly links with -lc since on some
14026 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14027 # to ld, don't add -lc before -lgcc.
14028 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14029echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14030 $rm conftest*
14031 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14032
14033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14034 (eval $ac_compile) 2>&5
14035 ac_status=$?
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); } 2>conftest.err; then
14038 soname=conftest
14039 lib=conftest
14040 libobjs=conftest.$ac_objext
14041 deplibs=
14042 wl=$lt_prog_compiler_wl_CXX
14043 pic_flag=$lt_prog_compiler_pic_CXX
14044 compiler_flags=-v
14045 linker_flags=-v
14046 verstring=
14047 output_objdir=.
14048 libname=conftest
14049 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14050 allow_undefined_flag_CXX=
14051 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14052 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14053 ac_status=$?
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }
14056 then
14057 archive_cmds_need_lc_CXX=no
14058 else
14059 archive_cmds_need_lc_CXX=yes
14060 fi
14061 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14062 else
14063 cat conftest.err 1>&5
14064 fi
14065 $rm conftest*
14066 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14067echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14068 ;;
14069 esac
14070 fi
14071 ;;
14072esac
14073
14074{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14075echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14076library_names_spec=
14077libname_spec='lib$name'
14078soname_spec=
14079shrext_cmds=".so"
14080postinstall_cmds=
14081postuninstall_cmds=
14082finish_cmds=
14083finish_eval=
14084shlibpath_var=
14085shlibpath_overrides_runpath=unknown
14086version_type=none
14087dynamic_linker="$host_os ld.so"
14088sys_lib_dlsearch_path_spec="/lib /usr/lib"
14089
14090need_lib_prefix=unknown
14091hardcode_into_libs=no
14092
14093# when you set need_version to no, make sure it does not cause -set_version
14094# flags to be left without arguments
14095need_version=unknown
14096
14097case $host_os in
14098aix3*)
14099 version_type=linux
14100 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14101 shlibpath_var=LIBPATH
14102
14103 # AIX 3 has no versioning support, so we append a major version to the name.
14104 soname_spec='${libname}${release}${shared_ext}$major'
14105 ;;
14106
56efe974 14107aix[4-9]*)
b57f37fb
WP
14108 version_type=linux
14109 need_lib_prefix=no
14110 need_version=no
14111 hardcode_into_libs=yes
14112 if test "$host_cpu" = ia64; then
14113 # AIX 5 supports IA64
14114 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14115 shlibpath_var=LD_LIBRARY_PATH
14116 else
14117 # With GCC up to 2.95.x, collect2 would create an import file
14118 # for dependence libraries. The import file would start with
14119 # the line `#! .'. This would cause the generated library to
14120 # depend on `.', always an invalid library. This was fixed in
14121 # development snapshots of GCC prior to 3.0.
14122 case $host_os in
14123 aix4 | aix4.[01] | aix4.[01].*)
14124 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14125 echo ' yes '
14126 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14127 :
14128 else
14129 can_build_shared=no
14130 fi
14131 ;;
14132 esac
14133 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14134 # soname into executable. Probably we can add versioning support to
14135 # collect2, so additional links can be useful in future.
14136 if test "$aix_use_runtimelinking" = yes; then
14137 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14138 # instead of lib<name>.a to let people know that these are not
14139 # typical AIX shared libraries.
14140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14141 else
14142 # We preserve .a as extension for shared libraries through AIX4.2
14143 # and later when we are not doing run time linking.
14144 library_names_spec='${libname}${release}.a $libname.a'
14145 soname_spec='${libname}${release}${shared_ext}$major'
14146 fi
14147 shlibpath_var=LIBPATH
14148 fi
14149 ;;
14150
14151amigaos*)
14152 library_names_spec='$libname.ixlibrary $libname.a'
14153 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14154 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'
14155 ;;
14156
14157beos*)
14158 library_names_spec='${libname}${shared_ext}'
14159 dynamic_linker="$host_os ld.so"
14160 shlibpath_var=LIBRARY_PATH
14161 ;;
14162
14163bsdi[45]*)
14164 version_type=linux
14165 need_version=no
14166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14167 soname_spec='${libname}${release}${shared_ext}$major'
14168 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14169 shlibpath_var=LD_LIBRARY_PATH
14170 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14171 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14172 # the default ld.so.conf also contains /usr/contrib/lib and
14173 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14174 # libtool to hard-code these into programs
14175 ;;
14176
14177cygwin* | mingw* | pw32*)
14178 version_type=windows
14179 shrext_cmds=".dll"
14180 need_version=no
14181 need_lib_prefix=no
14182
14183 case $GCC,$host_os in
14184 yes,cygwin* | yes,mingw* | yes,pw32*)
14185 library_names_spec='$libname.dll.a'
14186 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14187 postinstall_cmds='base_file=`basename \${file}`~
14188 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14189 dldir=$destdir/`dirname \$dlpath`~
14190 test -d \$dldir || mkdir -p \$dldir~
14191 $install_prog $dir/$dlname \$dldir/$dlname~
14192 chmod a+x \$dldir/$dlname'
14193 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14194 dlpath=$dir/\$dldll~
14195 $rm \$dlpath'
14196 shlibpath_overrides_runpath=yes
14197
14198 case $host_os in
14199 cygwin*)
14200 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14201 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14202 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14203 ;;
14204 mingw*)
14205 # MinGW DLLs use traditional 'lib' prefix
14206 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14207 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14208 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14209 # It is most probably a Windows format PATH printed by
14210 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14211 # path with ; separators, and with drive letters. We can handle the
14212 # drive letters (cygwin fileutils understands them), so leave them,
14213 # especially as we might pass files found there to a mingw objdump,
14214 # which wouldn't understand a cygwinified path. Ahh.
14215 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14216 else
14217 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14218 fi
14219 ;;
14220 pw32*)
14221 # pw32 DLLs use 'pw' prefix rather than 'lib'
14222 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14223 ;;
14224 esac
14225 ;;
14226
14227 *)
14228 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14229 ;;
14230 esac
14231 dynamic_linker='Win32 ld.exe'
14232 # FIXME: first we should search . and the directory the executable is in
14233 shlibpath_var=PATH
14234 ;;
14235
14236darwin* | rhapsody*)
14237 dynamic_linker="$host_os dyld"
14238 version_type=darwin
14239 need_lib_prefix=no
14240 need_version=no
14241 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14242 soname_spec='${libname}${release}${major}$shared_ext'
14243 shlibpath_overrides_runpath=yes
14244 shlibpath_var=DYLD_LIBRARY_PATH
14245 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14246
14247 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14248 ;;
14249
14250dgux*)
14251 version_type=linux
14252 need_lib_prefix=no
14253 need_version=no
14254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14255 soname_spec='${libname}${release}${shared_ext}$major'
14256 shlibpath_var=LD_LIBRARY_PATH
14257 ;;
14258
14259freebsd1*)
14260 dynamic_linker=no
14261 ;;
14262
14263freebsd* | dragonfly*)
14264 # DragonFly does not have aout. When/if they implement a new
14265 # versioning mechanism, adjust this.
14266 if test -x /usr/bin/objformat; then
14267 objformat=`/usr/bin/objformat`
14268 else
14269 case $host_os in
14270 freebsd[123]*) objformat=aout ;;
14271 *) objformat=elf ;;
14272 esac
14273 fi
14274 version_type=freebsd-$objformat
14275 case $version_type in
14276 freebsd-elf*)
14277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14278 need_version=no
14279 need_lib_prefix=no
14280 ;;
14281 freebsd-*)
14282 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14283 need_version=yes
14284 ;;
14285 esac
14286 shlibpath_var=LD_LIBRARY_PATH
14287 case $host_os in
14288 freebsd2*)
14289 shlibpath_overrides_runpath=yes
14290 ;;
14291 freebsd3.[01]* | freebsdelf3.[01]*)
14292 shlibpath_overrides_runpath=yes
14293 hardcode_into_libs=yes
14294 ;;
14295 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14296 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14297 shlibpath_overrides_runpath=no
14298 hardcode_into_libs=yes
14299 ;;
14300 *) # from 4.6 on, and DragonFly
14301 shlibpath_overrides_runpath=yes
14302 hardcode_into_libs=yes
14303 ;;
14304 esac
14305 ;;
14306
14307gnu*)
14308 version_type=linux
14309 need_lib_prefix=no
14310 need_version=no
14311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14312 soname_spec='${libname}${release}${shared_ext}$major'
14313 shlibpath_var=LD_LIBRARY_PATH
14314 hardcode_into_libs=yes
14315 ;;
14316
14317hpux9* | hpux10* | hpux11*)
14318 # Give a soname corresponding to the major version so that dld.sl refuses to
14319 # link against other versions.
14320 version_type=sunos
14321 need_lib_prefix=no
14322 need_version=no
14323 case $host_cpu in
14324 ia64*)
14325 shrext_cmds='.so'
14326 hardcode_into_libs=yes
14327 dynamic_linker="$host_os dld.so"
14328 shlibpath_var=LD_LIBRARY_PATH
14329 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14331 soname_spec='${libname}${release}${shared_ext}$major'
14332 if test "X$HPUX_IA64_MODE" = X32; then
14333 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14334 else
14335 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14336 fi
14337 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14338 ;;
14339 hppa*64*)
14340 shrext_cmds='.sl'
14341 hardcode_into_libs=yes
14342 dynamic_linker="$host_os dld.sl"
14343 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14344 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14346 soname_spec='${libname}${release}${shared_ext}$major'
14347 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14348 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14349 ;;
14350 *)
14351 shrext_cmds='.sl'
14352 dynamic_linker="$host_os dld.sl"
14353 shlibpath_var=SHLIB_PATH
14354 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14356 soname_spec='${libname}${release}${shared_ext}$major'
14357 ;;
14358 esac
14359 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14360 postinstall_cmds='chmod 555 $lib'
14361 ;;
14362
14363interix[3-9]*)
14364 version_type=linux
14365 need_lib_prefix=no
14366 need_version=no
14367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14368 soname_spec='${libname}${release}${shared_ext}$major'
14369 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14370 shlibpath_var=LD_LIBRARY_PATH
14371 shlibpath_overrides_runpath=no
14372 hardcode_into_libs=yes
14373 ;;
14374
14375irix5* | irix6* | nonstopux*)
14376 case $host_os in
14377 nonstopux*) version_type=nonstopux ;;
14378 *)
14379 if test "$lt_cv_prog_gnu_ld" = yes; then
14380 version_type=linux
14381 else
14382 version_type=irix
14383 fi ;;
14384 esac
14385 need_lib_prefix=no
14386 need_version=no
14387 soname_spec='${libname}${release}${shared_ext}$major'
14388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14389 case $host_os in
14390 irix5* | nonstopux*)
14391 libsuff= shlibsuff=
14392 ;;
14393 *)
14394 case $LD in # libtool.m4 will add one of these switches to LD
14395 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14396 libsuff= shlibsuff= libmagic=32-bit;;
14397 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14398 libsuff=32 shlibsuff=N32 libmagic=N32;;
14399 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14400 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14401 *) libsuff= shlibsuff= libmagic=never-match;;
14402 esac
14403 ;;
14404 esac
14405 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14406 shlibpath_overrides_runpath=no
14407 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14408 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14409 hardcode_into_libs=yes
14410 ;;
14411
14412# No shared lib support for Linux oldld, aout, or coff.
14413linux*oldld* | linux*aout* | linux*coff*)
14414 dynamic_linker=no
14415 ;;
14416
14417# This must be Linux ELF.
14418linux* | k*bsd*-gnu)
14419 version_type=linux
14420 need_lib_prefix=no
14421 need_version=no
14422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14423 soname_spec='${libname}${release}${shared_ext}$major'
14424 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14425 shlibpath_var=LD_LIBRARY_PATH
14426 shlibpath_overrides_runpath=no
14427 # This implies no fast_install, which is unacceptable.
14428 # Some rework will be needed to allow for fast_install
14429 # before this can be enabled.
14430 hardcode_into_libs=yes
14431
14432 # Append ld.so.conf contents to the search path
14433 if test -f /etc/ld.so.conf; then
14434 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' ' '`
14435 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14436 fi
14437
14438 # We used to test for /lib/ld.so.1 and disable shared libraries on
14439 # powerpc, because MkLinux only supported shared libraries with the
14440 # GNU dynamic linker. Since this was broken with cross compilers,
14441 # most powerpc-linux boxes support dynamic linking these days and
14442 # people can always --disable-shared, the test was removed, and we
14443 # assume the GNU/Linux dynamic linker is in use.
14444 dynamic_linker='GNU/Linux ld.so'
14445 ;;
14446
14447netbsdelf*-gnu)
14448 version_type=linux
14449 need_lib_prefix=no
14450 need_version=no
14451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14452 soname_spec='${libname}${release}${shared_ext}$major'
14453 shlibpath_var=LD_LIBRARY_PATH
14454 shlibpath_overrides_runpath=no
14455 hardcode_into_libs=yes
14456 dynamic_linker='NetBSD ld.elf_so'
14457 ;;
14458
14459netbsd*)
14460 version_type=sunos
14461 need_lib_prefix=no
14462 need_version=no
14463 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14465 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14466 dynamic_linker='NetBSD (a.out) ld.so'
14467 else
14468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14469 soname_spec='${libname}${release}${shared_ext}$major'
14470 dynamic_linker='NetBSD ld.elf_so'
14471 fi
14472 shlibpath_var=LD_LIBRARY_PATH
14473 shlibpath_overrides_runpath=yes
14474 hardcode_into_libs=yes
14475 ;;
14476
14477newsos6)
14478 version_type=linux
14479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14480 shlibpath_var=LD_LIBRARY_PATH
14481 shlibpath_overrides_runpath=yes
14482 ;;
14483
14484nto-qnx*)
14485 version_type=linux
14486 need_lib_prefix=no
14487 need_version=no
14488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14489 soname_spec='${libname}${release}${shared_ext}$major'
14490 shlibpath_var=LD_LIBRARY_PATH
14491 shlibpath_overrides_runpath=yes
14492 ;;
14493
14494openbsd*)
14495 version_type=sunos
14496 sys_lib_dlsearch_path_spec="/usr/lib"
14497 need_lib_prefix=no
14498 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14499 case $host_os in
14500 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14501 *) need_version=no ;;
14502 esac
14503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14504 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14505 shlibpath_var=LD_LIBRARY_PATH
14506 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14507 case $host_os in
14508 openbsd2.[89] | openbsd2.[89].*)
14509 shlibpath_overrides_runpath=no
14510 ;;
14511 *)
14512 shlibpath_overrides_runpath=yes
14513 ;;
14514 esac
14515 else
14516 shlibpath_overrides_runpath=yes
14517 fi
14518 ;;
14519
14520os2*)
14521 libname_spec='$name'
14522 shrext_cmds=".dll"
14523 need_lib_prefix=no
14524 library_names_spec='$libname${shared_ext} $libname.a'
14525 dynamic_linker='OS/2 ld.exe'
14526 shlibpath_var=LIBPATH
14527 ;;
14528
14529osf3* | osf4* | osf5*)
14530 version_type=osf
14531 need_lib_prefix=no
14532 need_version=no
14533 soname_spec='${libname}${release}${shared_ext}$major'
14534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14535 shlibpath_var=LD_LIBRARY_PATH
14536 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14537 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14538 ;;
14539
14540rdos*)
14541 dynamic_linker=no
14542 ;;
14543
14544solaris*)
14545 version_type=linux
14546 need_lib_prefix=no
14547 need_version=no
14548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14549 soname_spec='${libname}${release}${shared_ext}$major'
14550 shlibpath_var=LD_LIBRARY_PATH
14551 shlibpath_overrides_runpath=yes
14552 hardcode_into_libs=yes
14553 # ldd complains unless libraries are executable
14554 postinstall_cmds='chmod +x $lib'
14555 ;;
14556
14557sunos4*)
14558 version_type=sunos
14559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14560 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14561 shlibpath_var=LD_LIBRARY_PATH
14562 shlibpath_overrides_runpath=yes
14563 if test "$with_gnu_ld" = yes; then
14564 need_lib_prefix=no
14565 fi
14566 need_version=yes
14567 ;;
14568
14569sysv4 | sysv4.3*)
14570 version_type=linux
14571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14572 soname_spec='${libname}${release}${shared_ext}$major'
14573 shlibpath_var=LD_LIBRARY_PATH
14574 case $host_vendor in
14575 sni)
14576 shlibpath_overrides_runpath=no
14577 need_lib_prefix=no
14578 export_dynamic_flag_spec='${wl}-Blargedynsym'
14579 runpath_var=LD_RUN_PATH
14580 ;;
14581 siemens)
14582 need_lib_prefix=no
14583 ;;
14584 motorola)
14585 need_lib_prefix=no
14586 need_version=no
14587 shlibpath_overrides_runpath=no
14588 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14589 ;;
14590 esac
14591 ;;
14592
14593sysv4*MP*)
14594 if test -d /usr/nec ;then
14595 version_type=linux
14596 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14597 soname_spec='$libname${shared_ext}.$major'
14598 shlibpath_var=LD_LIBRARY_PATH
14599 fi
14600 ;;
14601
14602sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14603 version_type=freebsd-elf
14604 need_lib_prefix=no
14605 need_version=no
14606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14607 soname_spec='${libname}${release}${shared_ext}$major'
14608 shlibpath_var=LD_LIBRARY_PATH
14609 hardcode_into_libs=yes
14610 if test "$with_gnu_ld" = yes; then
14611 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14612 shlibpath_overrides_runpath=no
14613 else
14614 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14615 shlibpath_overrides_runpath=yes
14616 case $host_os in
14617 sco3.2v5*)
14618 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14619 ;;
14620 esac
14621 fi
14622 sys_lib_dlsearch_path_spec='/usr/lib'
14623 ;;
14624
14625uts4*)
14626 version_type=linux
14627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14628 soname_spec='${libname}${release}${shared_ext}$major'
14629 shlibpath_var=LD_LIBRARY_PATH
14630 ;;
14631
14632*)
14633 dynamic_linker=no
14634 ;;
14635esac
14636{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14637echo "${ECHO_T}$dynamic_linker" >&6; }
14638test "$dynamic_linker" = no && can_build_shared=no
14639
56efe974
WP
14640if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14641 echo $ECHO_N "(cached) $ECHO_C" >&6
14642else
14643 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
14644fi
14645
14646sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14647if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14648 echo $ECHO_N "(cached) $ECHO_C" >&6
14649else
14650 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
14651fi
14652
14653sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14654
b57f37fb
WP
14655variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14656if test "$GCC" = yes; then
14657 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14658fi
14659
14660{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14661echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14662hardcode_action_CXX=
14663if test -n "$hardcode_libdir_flag_spec_CXX" || \
14664 test -n "$runpath_var_CXX" || \
14665 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14666
14667 # We can hardcode non-existant directories.
14668 if test "$hardcode_direct_CXX" != no &&
14669 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14670 # have to relink, otherwise we might link with an installed library
14671 # when we should be linking with a yet-to-be-installed one
14672 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14673 test "$hardcode_minus_L_CXX" != no; then
14674 # Linking always hardcodes the temporary library directory.
14675 hardcode_action_CXX=relink
14676 else
14677 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14678 hardcode_action_CXX=immediate
14679 fi
14680else
14681 # We cannot hardcode anything, or else we can only hardcode existing
14682 # directories.
14683 hardcode_action_CXX=unsupported
14684fi
14685{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14686echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14687
14688if test "$hardcode_action_CXX" = relink; then
14689 # Fast installation is not supported
14690 enable_fast_install=no
14691elif test "$shlibpath_overrides_runpath" = yes ||
14692 test "$enable_shared" = no; then
14693 # Fast installation is not necessary
14694 enable_fast_install=needless
14695fi
14696
14697
14698# The else clause should only fire when bootstrapping the
14699# libtool distribution, otherwise you forgot to ship ltmain.sh
14700# with your package, and you will get complaints that there are
14701# no rules to generate ltmain.sh.
14702if test -f "$ltmain"; then
14703 # See if we are running on zsh, and set the options which allow our commands through
14704 # without removal of \ escapes.
14705 if test -n "${ZSH_VERSION+set}" ; then
14706 setopt NO_GLOB_SUBST
14707 fi
14708 # Now quote all the things that may contain metacharacters while being
14709 # careful not to overquote the AC_SUBSTed values. We take copies of the
14710 # variables and quote the copies for generation of the libtool script.
14711 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14712 SED SHELL STRIP \
14713 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14714 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14715 deplibs_check_method reload_flag reload_cmds need_locks \
14716 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14717 lt_cv_sys_global_symbol_to_c_name_address \
14718 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14719 old_postinstall_cmds old_postuninstall_cmds \
14720 compiler_CXX \
14721 CC_CXX \
14722 LD_CXX \
14723 lt_prog_compiler_wl_CXX \
14724 lt_prog_compiler_pic_CXX \
14725 lt_prog_compiler_static_CXX \
14726 lt_prog_compiler_no_builtin_flag_CXX \
14727 export_dynamic_flag_spec_CXX \
14728 thread_safe_flag_spec_CXX \
14729 whole_archive_flag_spec_CXX \
14730 enable_shared_with_static_runtimes_CXX \
14731 old_archive_cmds_CXX \
14732 old_archive_from_new_cmds_CXX \
14733 predep_objects_CXX \
14734 postdep_objects_CXX \
14735 predeps_CXX \
14736 postdeps_CXX \
14737 compiler_lib_search_path_CXX \
56efe974 14738 compiler_lib_search_dirs_CXX \
b57f37fb
WP
14739 archive_cmds_CXX \
14740 archive_expsym_cmds_CXX \
14741 postinstall_cmds_CXX \
14742 postuninstall_cmds_CXX \
14743 old_archive_from_expsyms_cmds_CXX \
14744 allow_undefined_flag_CXX \
14745 no_undefined_flag_CXX \
14746 export_symbols_cmds_CXX \
14747 hardcode_libdir_flag_spec_CXX \
14748 hardcode_libdir_flag_spec_ld_CXX \
14749 hardcode_libdir_separator_CXX \
14750 hardcode_automatic_CXX \
14751 module_cmds_CXX \
14752 module_expsym_cmds_CXX \
14753 lt_cv_prog_compiler_c_o_CXX \
14754 fix_srcfile_path_CXX \
14755 exclude_expsyms_CXX \
14756 include_expsyms_CXX; do
14757
14758 case $var in
14759 old_archive_cmds_CXX | \
14760 old_archive_from_new_cmds_CXX | \
14761 archive_cmds_CXX | \
14762 archive_expsym_cmds_CXX | \
14763 module_cmds_CXX | \
14764 module_expsym_cmds_CXX | \
14765 old_archive_from_expsyms_cmds_CXX | \
14766 export_symbols_cmds_CXX | \
14767 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14768 postinstall_cmds | postuninstall_cmds | \
14769 old_postinstall_cmds | old_postuninstall_cmds | \
14770 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14771 # Double-quote double-evaled strings.
14772 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14773 ;;
14774 *)
14775 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14776 ;;
14777 esac
14778 done
14779
14780 case $lt_echo in
14781 *'\$0 --fallback-echo"')
14782 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14783 ;;
14784 esac
14785
14786cfgfile="$ofile"
14787
14788 cat <<__EOF__ >> "$cfgfile"
14789# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14790
14791# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14792
14793# Shell to use when invoking shell scripts.
14794SHELL=$lt_SHELL
14795
14796# Whether or not to build shared libraries.
14797build_libtool_libs=$enable_shared
14798
14799# Whether or not to build static libraries.
14800build_old_libs=$enable_static
14801
14802# Whether or not to add -lc for building shared libraries.
14803build_libtool_need_lc=$archive_cmds_need_lc_CXX
14804
14805# Whether or not to disallow shared libs when runtime libs are static
14806allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14807
14808# Whether or not to optimize for fast installation.
14809fast_install=$enable_fast_install
14810
14811# The host system.
14812host_alias=$host_alias
14813host=$host
14814host_os=$host_os
14815
14816# The build system.
14817build_alias=$build_alias
14818build=$build
14819build_os=$build_os
14820
14821# An echo program that does not interpret backslashes.
14822echo=$lt_echo
14823
14824# The archiver.
14825AR=$lt_AR
14826AR_FLAGS=$lt_AR_FLAGS
14827
14828# A C compiler.
14829LTCC=$lt_LTCC
14830
14831# LTCC compiler flags.
14832LTCFLAGS=$lt_LTCFLAGS
14833
14834# A language-specific compiler.
14835CC=$lt_compiler_CXX
14836
14837# Is the compiler the GNU C compiler?
14838with_gcc=$GCC_CXX
14839
14840# An ERE matcher.
14841EGREP=$lt_EGREP
14842
14843# The linker used to build libraries.
14844LD=$lt_LD_CXX
14845
14846# Whether we need hard or soft links.
14847LN_S=$lt_LN_S
14848
14849# A BSD-compatible nm program.
14850NM=$lt_NM
14851
14852# A symbol stripping program
14853STRIP=$lt_STRIP
14854
14855# Used to examine libraries when file_magic_cmd begins "file"
14856MAGIC_CMD=$MAGIC_CMD
14857
14858# Used on cygwin: DLL creation program.
14859DLLTOOL="$DLLTOOL"
14860
14861# Used on cygwin: object dumper.
14862OBJDUMP="$OBJDUMP"
14863
14864# Used on cygwin: assembler.
14865AS="$AS"
14866
14867# The name of the directory that contains temporary libtool files.
14868objdir=$objdir
14869
14870# How to create reloadable object files.
14871reload_flag=$lt_reload_flag
14872reload_cmds=$lt_reload_cmds
14873
14874# How to pass a linker flag through the compiler.
14875wl=$lt_lt_prog_compiler_wl_CXX
14876
14877# Object file suffix (normally "o").
14878objext="$ac_objext"
14879
14880# Old archive suffix (normally "a").
14881libext="$libext"
14882
14883# Shared library suffix (normally ".so").
14884shrext_cmds='$shrext_cmds'
14885
14886# Executable file suffix (normally "").
14887exeext="$exeext"
14888
14889# Additional compiler flags for building library objects.
14890pic_flag=$lt_lt_prog_compiler_pic_CXX
14891pic_mode=$pic_mode
14892
14893# What is the maximum length of a command?
14894max_cmd_len=$lt_cv_sys_max_cmd_len
14895
14896# Does compiler simultaneously support -c and -o options?
14897compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14898
14899# Must we lock files when doing compilation?
14900need_locks=$lt_need_locks
14901
14902# Do we need the lib prefix for modules?
14903need_lib_prefix=$need_lib_prefix
14904
14905# Do we need a version for libraries?
14906need_version=$need_version
14907
14908# Whether dlopen is supported.
14909dlopen_support=$enable_dlopen
14910
14911# Whether dlopen of programs is supported.
14912dlopen_self=$enable_dlopen_self
14913
14914# Whether dlopen of statically linked programs is supported.
14915dlopen_self_static=$enable_dlopen_self_static
14916
14917# Compiler flag to prevent dynamic linking.
14918link_static_flag=$lt_lt_prog_compiler_static_CXX
14919
14920# Compiler flag to turn off builtin functions.
14921no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14922
14923# Compiler flag to allow reflexive dlopens.
14924export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14925
14926# Compiler flag to generate shared objects directly from archives.
14927whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14928
14929# Compiler flag to generate thread-safe objects.
14930thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14931
14932# Library versioning type.
14933version_type=$version_type
14934
14935# Format of library name prefix.
14936libname_spec=$lt_libname_spec
14937
14938# List of archive names. First name is the real one, the rest are links.
14939# The last name is the one that the linker finds with -lNAME.
14940library_names_spec=$lt_library_names_spec
14941
14942# The coded name of the library, if different from the real name.
14943soname_spec=$lt_soname_spec
14944
14945# Commands used to build and install an old-style archive.
14946RANLIB=$lt_RANLIB
14947old_archive_cmds=$lt_old_archive_cmds_CXX
14948old_postinstall_cmds=$lt_old_postinstall_cmds
14949old_postuninstall_cmds=$lt_old_postuninstall_cmds
14950
14951# Create an old-style archive from a shared archive.
14952old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14953
14954# Create a temporary old-style archive to link instead of a shared archive.
14955old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14956
14957# Commands used to build and install a shared archive.
14958archive_cmds=$lt_archive_cmds_CXX
14959archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14960postinstall_cmds=$lt_postinstall_cmds
14961postuninstall_cmds=$lt_postuninstall_cmds
14962
14963# Commands used to build a loadable module (assumed same as above if empty)
14964module_cmds=$lt_module_cmds_CXX
14965module_expsym_cmds=$lt_module_expsym_cmds_CXX
14966
14967# Commands to strip libraries.
14968old_striplib=$lt_old_striplib
14969striplib=$lt_striplib
14970
14971# Dependencies to place before the objects being linked to create a
14972# shared library.
14973predep_objects=$lt_predep_objects_CXX
14974
14975# Dependencies to place after the objects being linked to create a
14976# shared library.
14977postdep_objects=$lt_postdep_objects_CXX
14978
14979# Dependencies to place before the objects being linked to create a
14980# shared library.
14981predeps=$lt_predeps_CXX
14982
14983# Dependencies to place after the objects being linked to create a
14984# shared library.
14985postdeps=$lt_postdeps_CXX
14986
56efe974
WP
14987# The directories searched by this compiler when creating a shared
14988# library
14989compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14990
b57f37fb
WP
14991# The library search path used internally by the compiler when linking
14992# a shared library.
14993compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14994
14995# Method to check whether dependent libraries are shared objects.
14996deplibs_check_method=$lt_deplibs_check_method
14997
14998# Command to use when deplibs_check_method == file_magic.
14999file_magic_cmd=$lt_file_magic_cmd
15000
15001# Flag that allows shared libraries with undefined symbols to be built.
15002allow_undefined_flag=$lt_allow_undefined_flag_CXX
15003
15004# Flag that forces no undefined symbols.
15005no_undefined_flag=$lt_no_undefined_flag_CXX
15006
15007# Commands used to finish a libtool library installation in a directory.
15008finish_cmds=$lt_finish_cmds
15009
15010# Same as above, but a single script fragment to be evaled but not shown.
15011finish_eval=$lt_finish_eval
15012
15013# Take the output of nm and produce a listing of raw symbols and C names.
15014global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15015
15016# Transform the output of nm in a proper C declaration
15017global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15018
15019# Transform the output of nm in a C name address pair
15020global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15021
15022# This is the shared library runtime path variable.
15023runpath_var=$runpath_var
15024
15025# This is the shared library path variable.
15026shlibpath_var=$shlibpath_var
15027
15028# Is shlibpath searched before the hard-coded library search path?
15029shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15030
15031# How to hardcode a shared library path into an executable.
15032hardcode_action=$hardcode_action_CXX
15033
15034# Whether we should hardcode library paths into libraries.
15035hardcode_into_libs=$hardcode_into_libs
15036
15037# Flag to hardcode \$libdir into a binary during linking.
15038# This must work even if \$libdir does not exist.
15039hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15040
15041# If ld is used when linking, flag to hardcode \$libdir into
15042# a binary during linking. This must work even if \$libdir does
15043# not exist.
15044hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15045
15046# Whether we need a single -rpath flag with a separated argument.
15047hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15048
15049# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15050# resulting binary.
15051hardcode_direct=$hardcode_direct_CXX
15052
15053# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15054# resulting binary.
15055hardcode_minus_L=$hardcode_minus_L_CXX
15056
15057# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15058# the resulting binary.
15059hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15060
15061# Set to yes if building a shared library automatically hardcodes DIR into the library
15062# and all subsequent libraries and executables linked against it.
15063hardcode_automatic=$hardcode_automatic_CXX
15064
15065# Variables whose values should be saved in libtool wrapper scripts and
15066# restored at relink time.
15067variables_saved_for_relink="$variables_saved_for_relink"
15068
15069# Whether libtool must link a program against all its dependency libraries.
15070link_all_deplibs=$link_all_deplibs_CXX
15071
15072# Compile-time system search path for libraries
15073sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15074
15075# Run-time system search path for libraries
15076sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15077
15078# Fix the shell variable \$srcfile for the compiler.
15079fix_srcfile_path=$lt_fix_srcfile_path
15080
15081# Set to yes if exported symbols are required.
15082always_export_symbols=$always_export_symbols_CXX
15083
15084# The commands to list exported symbols.
15085export_symbols_cmds=$lt_export_symbols_cmds_CXX
15086
15087# The commands to extract the exported symbol list from a shared archive.
15088extract_expsyms_cmds=$lt_extract_expsyms_cmds
15089
15090# Symbols that should not be listed in the preloaded symbols.
15091exclude_expsyms=$lt_exclude_expsyms_CXX
15092
15093# Symbols that must always be exported.
15094include_expsyms=$lt_include_expsyms_CXX
15095
15096# ### END LIBTOOL TAG CONFIG: $tagname
15097
15098__EOF__
15099
15100
15101else
15102 # If there is no Makefile yet, we rely on a make rule to execute
15103 # `config.status --recheck' to rerun these tests and create the
15104 # libtool script then.
15105 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15106 if test -f "$ltmain_in"; then
15107 test -f Makefile && make "$ltmain"
15108 fi
15109fi
15110
15111
15112ac_ext=c
15113ac_cpp='$CPP $CPPFLAGS'
15114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15116ac_compiler_gnu=$ac_cv_c_compiler_gnu
15117
15118CC=$lt_save_CC
15119LDCXX=$LD
15120LD=$lt_save_LD
15121GCC=$lt_save_GCC
15122with_gnu_ldcxx=$with_gnu_ld
15123with_gnu_ld=$lt_save_with_gnu_ld
15124lt_cv_path_LDCXX=$lt_cv_path_LD
15125lt_cv_path_LD=$lt_save_path_LD
15126lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15127lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15128
15129 else
15130 tagname=""
15131 fi
15132 ;;
15133
15134 F77)
15135 if test -n "$F77" && test "X$F77" != "Xno"; then
15136
15137ac_ext=f
15138ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15139ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15140ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15141
15142
15143archive_cmds_need_lc_F77=no
15144allow_undefined_flag_F77=
15145always_export_symbols_F77=no
15146archive_expsym_cmds_F77=
15147export_dynamic_flag_spec_F77=
15148hardcode_direct_F77=no
15149hardcode_libdir_flag_spec_F77=
15150hardcode_libdir_flag_spec_ld_F77=
15151hardcode_libdir_separator_F77=
15152hardcode_minus_L_F77=no
15153hardcode_automatic_F77=no
15154module_cmds_F77=
15155module_expsym_cmds_F77=
15156link_all_deplibs_F77=unknown
15157old_archive_cmds_F77=$old_archive_cmds
15158no_undefined_flag_F77=
15159whole_archive_flag_spec_F77=
15160enable_shared_with_static_runtimes_F77=no
15161
15162# Source file extension for f77 test sources.
15163ac_ext=f
15164
15165# Object file extension for compiled f77 test sources.
15166objext=o
15167objext_F77=$objext
15168
15169# Code to be used in simple compile tests
15170lt_simple_compile_test_code="\
15171 subroutine t
15172 return
15173 end
15174"
15175
15176# Code to be used in simple link tests
15177lt_simple_link_test_code="\
15178 program t
15179 end
15180"
15181
15182# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15183
15184# If no C compiler was specified, use CC.
15185LTCC=${LTCC-"$CC"}
15186
15187# If no C compiler flags were specified, use CFLAGS.
15188LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15189
15190# Allow CC to be a program name with arguments.
15191compiler=$CC
15192
15193
15194# save warnings/boilerplate of simple test code
15195ac_outfile=conftest.$ac_objext
15196echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15197eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15198_lt_compiler_boilerplate=`cat conftest.err`
15199$rm conftest*
15200
15201ac_outfile=conftest.$ac_objext
15202echo "$lt_simple_link_test_code" >conftest.$ac_ext
15203eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15204_lt_linker_boilerplate=`cat conftest.err`
56efe974 15205$rm -r conftest*
b57f37fb
WP
15206
15207
15208# Allow CC to be a program name with arguments.
15209lt_save_CC="$CC"
15210CC=${F77-"f77"}
15211compiler=$CC
15212compiler_F77=$CC
15213for cc_temp in $compiler""; do
15214 case $cc_temp in
15215 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15216 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15217 \-*) ;;
15218 *) break;;
15219 esac
15220done
15221cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15222
15223
15224{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15225echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15226{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
15227echo "${ECHO_T}$can_build_shared" >&6; }
15228
15229{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15230echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15231test "$can_build_shared" = "no" && enable_shared=no
15232
15233# On AIX, shared libraries and static libraries use the same namespace, and
15234# are all built from PIC.
15235case $host_os in
15236aix3*)
15237 test "$enable_shared" = yes && enable_static=no
15238 if test -n "$RANLIB"; then
15239 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15240 postinstall_cmds='$RANLIB $lib'
15241 fi
15242 ;;
56efe974 15243aix[4-9]*)
b57f37fb
WP
15244 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15245 test "$enable_shared" = yes && enable_static=no
15246 fi
15247 ;;
15248esac
15249{ echo "$as_me:$LINENO: result: $enable_shared" >&5
15250echo "${ECHO_T}$enable_shared" >&6; }
15251
15252{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15253echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15254# Make sure either enable_shared or enable_static is yes.
15255test "$enable_shared" = yes || enable_static=yes
15256{ echo "$as_me:$LINENO: result: $enable_static" >&5
15257echo "${ECHO_T}$enable_static" >&6; }
15258
15259GCC_F77="$G77"
15260LD_F77="$LD"
15261
15262lt_prog_compiler_wl_F77=
15263lt_prog_compiler_pic_F77=
15264lt_prog_compiler_static_F77=
15265
15266{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15267echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15268
15269 if test "$GCC" = yes; then
15270 lt_prog_compiler_wl_F77='-Wl,'
15271 lt_prog_compiler_static_F77='-static'
15272
15273 case $host_os in
15274 aix*)
15275 # All AIX code is PIC.
15276 if test "$host_cpu" = ia64; then
15277 # AIX 5 now supports IA64 processor
15278 lt_prog_compiler_static_F77='-Bstatic'
15279 fi
15280 ;;
15281
15282 amigaos*)
15283 # FIXME: we need at least 68020 code to build shared libraries, but
15284 # adding the `-m68020' flag to GCC prevents building anything better,
15285 # like `-m68040'.
15286 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15287 ;;
15288
15289 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15290 # PIC is the default for these OSes.
15291 ;;
15292
15293 mingw* | cygwin* | pw32* | os2*)
15294 # This hack is so that the source file can tell whether it is being
15295 # built for inclusion in a dll (and should export symbols for example).
15296 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15297 # (--disable-auto-import) libraries
15298 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15299 ;;
15300
15301 darwin* | rhapsody*)
15302 # PIC is the default on this platform
15303 # Common symbols not allowed in MH_DYLIB files
15304 lt_prog_compiler_pic_F77='-fno-common'
15305 ;;
15306
15307 interix[3-9]*)
15308 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15309 # Instead, we relocate shared libraries at runtime.
15310 ;;
15311
15312 msdosdjgpp*)
15313 # Just because we use GCC doesn't mean we suddenly get shared libraries
15314 # on systems that don't support them.
15315 lt_prog_compiler_can_build_shared_F77=no
15316 enable_shared=no
15317 ;;
15318
15319 sysv4*MP*)
15320 if test -d /usr/nec; then
15321 lt_prog_compiler_pic_F77=-Kconform_pic
15322 fi
15323 ;;
15324
15325 hpux*)
15326 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15327 # not for PA HP-UX.
15328 case $host_cpu in
15329 hppa*64*|ia64*)
15330 # +Z the default
15331 ;;
15332 *)
15333 lt_prog_compiler_pic_F77='-fPIC'
15334 ;;
15335 esac
15336 ;;
15337
15338 *)
15339 lt_prog_compiler_pic_F77='-fPIC'
15340 ;;
15341 esac
15342 else
15343 # PORTME Check for flag to pass linker flags through the system compiler.
15344 case $host_os in
15345 aix*)
15346 lt_prog_compiler_wl_F77='-Wl,'
15347 if test "$host_cpu" = ia64; then
15348 # AIX 5 now supports IA64 processor
15349 lt_prog_compiler_static_F77='-Bstatic'
15350 else
15351 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15352 fi
15353 ;;
15354 darwin*)
15355 # PIC is the default on this platform
15356 # Common symbols not allowed in MH_DYLIB files
15357 case $cc_basename in
15358 xlc*)
15359 lt_prog_compiler_pic_F77='-qnocommon'
15360 lt_prog_compiler_wl_F77='-Wl,'
15361 ;;
15362 esac
15363 ;;
15364
15365 mingw* | cygwin* | pw32* | os2*)
15366 # This hack is so that the source file can tell whether it is being
15367 # built for inclusion in a dll (and should export symbols for example).
15368 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15369 ;;
15370
15371 hpux9* | hpux10* | hpux11*)
15372 lt_prog_compiler_wl_F77='-Wl,'
15373 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15374 # not for PA HP-UX.
15375 case $host_cpu in
15376 hppa*64*|ia64*)
15377 # +Z the default
15378 ;;
15379 *)
15380 lt_prog_compiler_pic_F77='+Z'
15381 ;;
15382 esac
15383 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15384 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15385 ;;
15386
15387 irix5* | irix6* | nonstopux*)
15388 lt_prog_compiler_wl_F77='-Wl,'
15389 # PIC (with -KPIC) is the default.
15390 lt_prog_compiler_static_F77='-non_shared'
15391 ;;
15392
15393 newsos6)
15394 lt_prog_compiler_pic_F77='-KPIC'
15395 lt_prog_compiler_static_F77='-Bstatic'
15396 ;;
15397
15398 linux* | k*bsd*-gnu)
15399 case $cc_basename in
15400 icc* | ecc*)
15401 lt_prog_compiler_wl_F77='-Wl,'
15402 lt_prog_compiler_pic_F77='-KPIC'
15403 lt_prog_compiler_static_F77='-static'
15404 ;;
15405 pgcc* | pgf77* | pgf90* | pgf95*)
15406 # Portland Group compilers (*not* the Pentium gcc compiler,
15407 # which looks to be a dead project)
15408 lt_prog_compiler_wl_F77='-Wl,'
15409 lt_prog_compiler_pic_F77='-fpic'
15410 lt_prog_compiler_static_F77='-Bstatic'
15411 ;;
15412 ccc*)
15413 lt_prog_compiler_wl_F77='-Wl,'
15414 # All Alpha code is PIC.
15415 lt_prog_compiler_static_F77='-non_shared'
15416 ;;
15417 *)
15418 case `$CC -V 2>&1 | sed 5q` in
15419 *Sun\ C*)
15420 # Sun C 5.9
15421 lt_prog_compiler_pic_F77='-KPIC'
15422 lt_prog_compiler_static_F77='-Bstatic'
15423 lt_prog_compiler_wl_F77='-Wl,'
15424 ;;
15425 *Sun\ F*)
15426 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15427 lt_prog_compiler_pic_F77='-KPIC'
15428 lt_prog_compiler_static_F77='-Bstatic'
15429 lt_prog_compiler_wl_F77=''
15430 ;;
15431 esac
15432 ;;
15433 esac
15434 ;;
15435
15436 osf3* | osf4* | osf5*)
15437 lt_prog_compiler_wl_F77='-Wl,'
15438 # All OSF/1 code is PIC.
15439 lt_prog_compiler_static_F77='-non_shared'
15440 ;;
15441
15442 rdos*)
15443 lt_prog_compiler_static_F77='-non_shared'
15444 ;;
15445
15446 solaris*)
15447 lt_prog_compiler_pic_F77='-KPIC'
15448 lt_prog_compiler_static_F77='-Bstatic'
15449 case $cc_basename in
15450 f77* | f90* | f95*)
15451 lt_prog_compiler_wl_F77='-Qoption ld ';;
15452 *)
15453 lt_prog_compiler_wl_F77='-Wl,';;
15454 esac
15455 ;;
15456
15457 sunos4*)
15458 lt_prog_compiler_wl_F77='-Qoption ld '
15459 lt_prog_compiler_pic_F77='-PIC'
15460 lt_prog_compiler_static_F77='-Bstatic'
15461 ;;
15462
15463 sysv4 | sysv4.2uw2* | sysv4.3*)
15464 lt_prog_compiler_wl_F77='-Wl,'
15465 lt_prog_compiler_pic_F77='-KPIC'
15466 lt_prog_compiler_static_F77='-Bstatic'
15467 ;;
15468
15469 sysv4*MP*)
15470 if test -d /usr/nec ;then
15471 lt_prog_compiler_pic_F77='-Kconform_pic'
15472 lt_prog_compiler_static_F77='-Bstatic'
15473 fi
15474 ;;
15475
15476 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15477 lt_prog_compiler_wl_F77='-Wl,'
15478 lt_prog_compiler_pic_F77='-KPIC'
15479 lt_prog_compiler_static_F77='-Bstatic'
15480 ;;
15481
15482 unicos*)
15483 lt_prog_compiler_wl_F77='-Wl,'
15484 lt_prog_compiler_can_build_shared_F77=no
15485 ;;
15486
15487 uts4*)
15488 lt_prog_compiler_pic_F77='-pic'
15489 lt_prog_compiler_static_F77='-Bstatic'
15490 ;;
15491
15492 *)
15493 lt_prog_compiler_can_build_shared_F77=no
15494 ;;
15495 esac
15496 fi
15497
15498{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15499echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15500
15501#
15502# Check to make sure the PIC flag actually works.
15503#
15504if test -n "$lt_prog_compiler_pic_F77"; then
15505
15506{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15507echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
56efe974 15508if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
b57f37fb
WP
15509 echo $ECHO_N "(cached) $ECHO_C" >&6
15510else
56efe974 15511 lt_cv_prog_compiler_pic_works_F77=no
b57f37fb
WP
15512 ac_outfile=conftest.$ac_objext
15513 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15514 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15515 # Insert the option either (1) after the last *FLAGS variable, or
15516 # (2) before a word containing "conftest.", or (3) at the end.
15517 # Note that $ac_compile itself does not contain backslashes and begins
15518 # with a dollar sign (not a hyphen), so the echo should work correctly.
15519 # The option is referenced via a variable to avoid confusing sed.
15520 lt_compile=`echo "$ac_compile" | $SED \
15521 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15522 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15523 -e 's:$: $lt_compiler_flag:'`
94b4fbf9 15524 (eval echo "\"\$as_me:15524: $lt_compile\"" >&5)
b57f37fb
WP
15525 (eval "$lt_compile" 2>conftest.err)
15526 ac_status=$?
15527 cat conftest.err >&5
94b4fbf9 15528 echo "$as_me:15528: \$? = $ac_status" >&5
b57f37fb
WP
15529 if (exit $ac_status) && test -s "$ac_outfile"; then
15530 # The compiler can only warn and ignore the option if not recognized
15531 # So say no if there are warnings other than the usual output.
15532 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15533 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15534 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
56efe974 15535 lt_cv_prog_compiler_pic_works_F77=yes
b57f37fb
WP
15536 fi
15537 fi
15538 $rm conftest*
15539
15540fi
56efe974
WP
15541{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
15542echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
b57f37fb 15543
56efe974 15544if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
b57f37fb
WP
15545 case $lt_prog_compiler_pic_F77 in
15546 "" | " "*) ;;
15547 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15548 esac
15549else
15550 lt_prog_compiler_pic_F77=
15551 lt_prog_compiler_can_build_shared_F77=no
15552fi
15553
15554fi
15555case $host_os in
15556 # For platforms which do not support PIC, -DPIC is meaningless:
15557 *djgpp*)
15558 lt_prog_compiler_pic_F77=
15559 ;;
15560 *)
15561 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15562 ;;
15563esac
15564
15565#
15566# Check to make sure the static flag actually works.
15567#
15568wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15569{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15570echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
56efe974 15571if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
b57f37fb
WP
15572 echo $ECHO_N "(cached) $ECHO_C" >&6
15573else
56efe974 15574 lt_cv_prog_compiler_static_works_F77=no
b57f37fb
WP
15575 save_LDFLAGS="$LDFLAGS"
15576 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15577 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15578 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15579 # The linker can only warn and ignore the option if not recognized
15580 # So say no if there are warnings
15581 if test -s conftest.err; then
15582 # Append any errors to the config.log.
15583 cat conftest.err 1>&5
15584 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15585 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15586 if diff conftest.exp conftest.er2 >/dev/null; then
56efe974 15587 lt_cv_prog_compiler_static_works_F77=yes
b57f37fb
WP
15588 fi
15589 else
56efe974 15590 lt_cv_prog_compiler_static_works_F77=yes
b57f37fb
WP
15591 fi
15592 fi
56efe974 15593 $rm -r conftest*
b57f37fb
WP
15594 LDFLAGS="$save_LDFLAGS"
15595
15596fi
56efe974
WP
15597{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
15598echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
b57f37fb 15599
56efe974 15600if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
b57f37fb
WP
15601 :
15602else
15603 lt_prog_compiler_static_F77=
15604fi
15605
15606
15607{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15608echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15609if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15610 echo $ECHO_N "(cached) $ECHO_C" >&6
15611else
15612 lt_cv_prog_compiler_c_o_F77=no
15613 $rm -r conftest 2>/dev/null
15614 mkdir conftest
15615 cd conftest
15616 mkdir out
15617 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15618
15619 lt_compiler_flag="-o out/conftest2.$ac_objext"
15620 # Insert the option either (1) after the last *FLAGS variable, or
15621 # (2) before a word containing "conftest.", or (3) at the end.
15622 # Note that $ac_compile itself does not contain backslashes and begins
15623 # with a dollar sign (not a hyphen), so the echo should work correctly.
15624 lt_compile=`echo "$ac_compile" | $SED \
15625 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15626 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15627 -e 's:$: $lt_compiler_flag:'`
94b4fbf9 15628 (eval echo "\"\$as_me:15628: $lt_compile\"" >&5)
b57f37fb
WP
15629 (eval "$lt_compile" 2>out/conftest.err)
15630 ac_status=$?
15631 cat out/conftest.err >&5
94b4fbf9 15632 echo "$as_me:15632: \$? = $ac_status" >&5
b57f37fb
WP
15633 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15634 then
15635 # The compiler can only warn and ignore the option if not recognized
15636 # So say no if there are warnings
15637 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15638 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15639 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15640 lt_cv_prog_compiler_c_o_F77=yes
15641 fi
15642 fi
15643 chmod u+w . 2>&5
15644 $rm conftest*
15645 # SGI C++ compiler will create directory out/ii_files/ for
15646 # template instantiation
15647 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15648 $rm out/* && rmdir out
15649 cd ..
15650 rmdir conftest
15651 $rm conftest*
15652
15653fi
15654{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15655echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15656
15657
15658hard_links="nottested"
15659if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15660 # do not overwrite the value of need_locks provided by the user
15661 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15662echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15663 hard_links=yes
15664 $rm conftest*
15665 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15666 touch conftest.a
15667 ln conftest.a conftest.b 2>&5 || hard_links=no
15668 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15669 { echo "$as_me:$LINENO: result: $hard_links" >&5
15670echo "${ECHO_T}$hard_links" >&6; }
15671 if test "$hard_links" = no; then
15672 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15673echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15674 need_locks=warn
15675 fi
15676else
15677 need_locks=no
15678fi
15679
15680{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15681echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15682
15683 runpath_var=
15684 allow_undefined_flag_F77=
15685 enable_shared_with_static_runtimes_F77=no
15686 archive_cmds_F77=
15687 archive_expsym_cmds_F77=
15688 old_archive_From_new_cmds_F77=
15689 old_archive_from_expsyms_cmds_F77=
15690 export_dynamic_flag_spec_F77=
15691 whole_archive_flag_spec_F77=
15692 thread_safe_flag_spec_F77=
15693 hardcode_libdir_flag_spec_F77=
15694 hardcode_libdir_flag_spec_ld_F77=
15695 hardcode_libdir_separator_F77=
15696 hardcode_direct_F77=no
15697 hardcode_minus_L_F77=no
15698 hardcode_shlibpath_var_F77=unsupported
15699 link_all_deplibs_F77=unknown
15700 hardcode_automatic_F77=no
15701 module_cmds_F77=
15702 module_expsym_cmds_F77=
15703 always_export_symbols_F77=no
15704 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15705 # include_expsyms should be a list of space-separated symbols to be *always*
15706 # included in the symbol list
15707 include_expsyms_F77=
15708 # exclude_expsyms can be an extended regexp of symbols to exclude
15709 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15710 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15711 # as well as any symbol that contains `d'.
56efe974 15712 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
b57f37fb
WP
15713 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15714 # platforms (ab)use it in PIC code, but their linkers get confused if
15715 # the symbol is explicitly referenced. Since portable code cannot
15716 # rely on this symbol name, it's probably fine to never include it in
15717 # preloaded symbol tables.
56efe974 15718 # Exclude shared library initialization/finalization symbols.
b57f37fb
WP
15719 extract_expsyms_cmds=
15720 # Just being paranoid about ensuring that cc_basename is set.
15721 for cc_temp in $compiler""; do
15722 case $cc_temp in
15723 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15724 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15725 \-*) ;;
15726 *) break;;
15727 esac
15728done
15729cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15730
15731 case $host_os in
15732 cygwin* | mingw* | pw32*)
15733 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15734 # When not using gcc, we currently assume that we are using
15735 # Microsoft Visual C++.
15736 if test "$GCC" != yes; then
15737 with_gnu_ld=no
15738 fi
15739 ;;
15740 interix*)
15741 # we just hope/assume this is gcc and not c89 (= MSVC++)
15742 with_gnu_ld=yes
15743 ;;
15744 openbsd*)
15745 with_gnu_ld=no
15746 ;;
15747 esac
15748
15749 ld_shlibs_F77=yes
15750 if test "$with_gnu_ld" = yes; then
15751 # If archive_cmds runs LD, not CC, wlarc should be empty
15752 wlarc='${wl}'
15753
15754 # Set some defaults for GNU ld with shared library support. These
15755 # are reset later if shared libraries are not supported. Putting them
15756 # here allows them to be overridden if necessary.
15757 runpath_var=LD_RUN_PATH
15758 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15759 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15760 # ancient GNU ld didn't support --whole-archive et. al.
15761 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15762 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15763 else
15764 whole_archive_flag_spec_F77=
15765 fi
15766 supports_anon_versioning=no
15767 case `$LD -v 2>/dev/null` in
15768 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15769 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15770 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15771 *\ 2.11.*) ;; # other 2.11 versions
15772 *) supports_anon_versioning=yes ;;
15773 esac
15774
15775 # See if GNU ld supports shared libraries.
15776 case $host_os in
56efe974 15777 aix[3-9]*)
b57f37fb
WP
15778 # On AIX/PPC, the GNU linker is very broken
15779 if test "$host_cpu" != ia64; then
15780 ld_shlibs_F77=no
15781 cat <<EOF 1>&2
15782
15783*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15784*** to be unable to reliably create shared libraries on AIX.
15785*** Therefore, libtool is disabling shared libraries support. If you
15786*** really care for shared libraries, you may want to modify your PATH
15787*** so that a non-GNU linker is found, and then restart.
15788
15789EOF
15790 fi
15791 ;;
15792
15793 amigaos*)
15794 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)'
15795 hardcode_libdir_flag_spec_F77='-L$libdir'
15796 hardcode_minus_L_F77=yes
15797
15798 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15799 # that the semantics of dynamic libraries on AmigaOS, at least up
15800 # to version 4, is to share data among multiple programs linked
15801 # with the same dynamic library. Since this doesn't match the
15802 # behavior of shared libraries on other platforms, we can't use
15803 # them.
15804 ld_shlibs_F77=no
15805 ;;
15806
15807 beos*)
15808 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15809 allow_undefined_flag_F77=unsupported
15810 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15811 # support --undefined. This deserves some investigation. FIXME
15812 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15813 else
15814 ld_shlibs_F77=no
15815 fi
15816 ;;
15817
15818 cygwin* | mingw* | pw32*)
15819 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15820 # as there is no search path for DLLs.
15821 hardcode_libdir_flag_spec_F77='-L$libdir'
15822 allow_undefined_flag_F77=unsupported
15823 always_export_symbols_F77=no
15824 enable_shared_with_static_runtimes_F77=yes
15825 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15826
15827 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15828 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15829 # If the export-symbols file already is a .def file (1st line
15830 # is EXPORTS), use it as is; otherwise, prepend...
15831 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15832 cp $export_symbols $output_objdir/$soname.def;
15833 else
15834 echo EXPORTS > $output_objdir/$soname.def;
15835 cat $export_symbols >> $output_objdir/$soname.def;
15836 fi~
15837 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15838 else
15839 ld_shlibs_F77=no
15840 fi
15841 ;;
15842
15843 interix[3-9]*)
15844 hardcode_direct_F77=no
15845 hardcode_shlibpath_var_F77=no
15846 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15847 export_dynamic_flag_spec_F77='${wl}-E'
15848 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15849 # Instead, shared libraries are loaded at an image base (0x10000000 by
15850 # default) and relocated if they conflict, which is a slow very memory
15851 # consuming and fragmenting process. To avoid this, we pick a random,
15852 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15853 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15854 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'
15855 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'
15856 ;;
15857
15858 gnu* | linux* | k*bsd*-gnu)
15859 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15860 tmp_addflag=
15861 case $cc_basename,$host_cpu in
15862 pgcc*) # Portland Group C compiler
15863 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'
15864 tmp_addflag=' $pic_flag'
15865 ;;
15866 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15867 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'
15868 tmp_addflag=' $pic_flag -Mnomain' ;;
15869 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15870 tmp_addflag=' -i_dynamic' ;;
15871 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15872 tmp_addflag=' -i_dynamic -nofor_main' ;;
15873 ifc* | ifort*) # Intel Fortran compiler
15874 tmp_addflag=' -nofor_main' ;;
15875 esac
15876 case `$CC -V 2>&1 | sed 5q` in
15877 *Sun\ C*) # Sun C 5.9
15878 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'
15879 tmp_sharedflag='-G' ;;
15880 *Sun\ F*) # Sun Fortran 8.3
15881 tmp_sharedflag='-G' ;;
15882 *)
15883 tmp_sharedflag='-shared' ;;
15884 esac
15885 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15886
15887 if test $supports_anon_versioning = yes; then
15888 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15889 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15890 $echo "local: *; };" >> $output_objdir/$libname.ver~
15891 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15892 fi
15893 link_all_deplibs_F77=no
15894 else
15895 ld_shlibs_F77=no
15896 fi
15897 ;;
15898
15899 netbsd* | netbsdelf*-gnu)
15900 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15901 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15902 wlarc=
15903 else
15904 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15905 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15906 fi
15907 ;;
15908
15909 solaris*)
15910 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15911 ld_shlibs_F77=no
15912 cat <<EOF 1>&2
15913
15914*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15915*** create shared libraries on Solaris systems. Therefore, libtool
15916*** is disabling shared libraries support. We urge you to upgrade GNU
15917*** binutils to release 2.9.1 or newer. Another option is to modify
15918*** your PATH or compiler configuration so that the native linker is
15919*** used, and then restart.
15920
15921EOF
15922 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15923 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15924 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15925 else
15926 ld_shlibs_F77=no
15927 fi
15928 ;;
15929
15930 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15931 case `$LD -v 2>&1` in
15932 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15933 ld_shlibs_F77=no
15934 cat <<_LT_EOF 1>&2
15935
15936*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15937*** reliably create shared libraries on SCO systems. Therefore, libtool
15938*** is disabling shared libraries support. We urge you to upgrade GNU
15939*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15940*** your PATH or compiler configuration so that the native linker is
15941*** used, and then restart.
15942
15943_LT_EOF
15944 ;;
15945 *)
15946 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15947 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15948 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15949 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15950 else
15951 ld_shlibs_F77=no
15952 fi
15953 ;;
15954 esac
15955 ;;
15956
15957 sunos4*)
15958 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15959 wlarc=
15960 hardcode_direct_F77=yes
15961 hardcode_shlibpath_var_F77=no
15962 ;;
15963
15964 *)
15965 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15966 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15967 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15968 else
15969 ld_shlibs_F77=no
15970 fi
15971 ;;
15972 esac
15973
15974 if test "$ld_shlibs_F77" = no; then
15975 runpath_var=
15976 hardcode_libdir_flag_spec_F77=
15977 export_dynamic_flag_spec_F77=
15978 whole_archive_flag_spec_F77=
15979 fi
15980 else
15981 # PORTME fill in a description of your system's linker (not GNU ld)
15982 case $host_os in
15983 aix3*)
15984 allow_undefined_flag_F77=unsupported
15985 always_export_symbols_F77=yes
15986 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'
15987 # Note: this linker hardcodes the directories in LIBPATH if there
15988 # are no directories specified by -L.
15989 hardcode_minus_L_F77=yes
15990 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15991 # Neither direct hardcoding nor static linking is supported with a
15992 # broken collect2.
15993 hardcode_direct_F77=unsupported
15994 fi
15995 ;;
15996
56efe974 15997 aix[4-9]*)
b57f37fb
WP
15998 if test "$host_cpu" = ia64; then
15999 # On IA64, the linker does run time linking by default, so we don't
16000 # have to do anything special.
16001 aix_use_runtimelinking=no
16002 exp_sym_flag='-Bexport'
16003 no_entry_flag=""
16004 else
16005 # If we're using GNU nm, then we don't want the "-C" option.
16006 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16007 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16008 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'
16009 else
16010 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'
16011 fi
16012 aix_use_runtimelinking=no
16013
16014 # Test if we are trying to use run time linking or normal
16015 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16016 # need to do runtime linking.
56efe974 16017 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
b57f37fb
WP
16018 for ld_flag in $LDFLAGS; do
16019 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16020 aix_use_runtimelinking=yes
16021 break
16022 fi
16023 done
16024 ;;
16025 esac
16026
16027 exp_sym_flag='-bexport'
16028 no_entry_flag='-bnoentry'
16029 fi
16030
16031 # When large executables or shared objects are built, AIX ld can
16032 # have problems creating the table of contents. If linking a library
16033 # or program results in "error TOC overflow" add -mminimal-toc to
16034 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16035 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16036
16037 archive_cmds_F77=''
16038 hardcode_direct_F77=yes
16039 hardcode_libdir_separator_F77=':'
16040 link_all_deplibs_F77=yes
16041
16042 if test "$GCC" = yes; then
16043 case $host_os in aix4.[012]|aix4.[012].*)
16044 # We only want to do this on AIX 4.2 and lower, the check
16045 # below for broken collect2 doesn't work under 4.3+
16046 collect2name=`${CC} -print-prog-name=collect2`
16047 if test -f "$collect2name" && \
16048 strings "$collect2name" | grep resolve_lib_name >/dev/null
16049 then
16050 # We have reworked collect2
16051 :
16052 else
16053 # We have old collect2
16054 hardcode_direct_F77=unsupported
16055 # It fails to find uninstalled libraries when the uninstalled
16056 # path is not listed in the libpath. Setting hardcode_minus_L
16057 # to unsupported forces relinking
16058 hardcode_minus_L_F77=yes
16059 hardcode_libdir_flag_spec_F77='-L$libdir'
16060 hardcode_libdir_separator_F77=
16061 fi
16062 ;;
16063 esac
16064 shared_flag='-shared'
16065 if test "$aix_use_runtimelinking" = yes; then
16066 shared_flag="$shared_flag "'${wl}-G'
16067 fi
16068 else
16069 # not using gcc
16070 if test "$host_cpu" = ia64; then
16071 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16072 # chokes on -Wl,-G. The following line is correct:
16073 shared_flag='-G'
16074 else
16075 if test "$aix_use_runtimelinking" = yes; then
16076 shared_flag='${wl}-G'
16077 else
16078 shared_flag='${wl}-bM:SRE'
16079 fi
16080 fi
16081 fi
16082
16083 # It seems that -bexpall does not export symbols beginning with
16084 # underscore (_), so it is better to generate a list of symbols to export.
16085 always_export_symbols_F77=yes
16086 if test "$aix_use_runtimelinking" = yes; then
16087 # Warning - without using the other runtime loading flags (-brtl),
16088 # -berok will link without error, but may produce a broken library.
16089 allow_undefined_flag_F77='-berok'
16090 # Determine the default libpath from the value encoded in an empty executable.
16091 cat >conftest.$ac_ext <<_ACEOF
16092 program main
16093
16094 end
16095_ACEOF
16096rm -f conftest.$ac_objext conftest$ac_exeext
16097if { (ac_try="$ac_link"
16098case "(($ac_try" in
16099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16100 *) ac_try_echo=$ac_try;;
16101esac
16102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16103 (eval "$ac_link") 2>conftest.er1
16104 ac_status=$?
16105 grep -v '^ *+' conftest.er1 >conftest.err
16106 rm -f conftest.er1
16107 cat conftest.err >&5
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); } && {
16110 test -z "$ac_f77_werror_flag" ||
16111 test ! -s conftest.err
16112 } && test -s conftest$ac_exeext &&
16113 $as_test_x conftest$ac_exeext; then
16114
16115lt_aix_libpath_sed='
16116 /Import File Strings/,/^$/ {
16117 /^0/ {
16118 s/^0 *\(.*\)$/\1/
16119 p
16120 }
16121 }'
16122aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16123# Check for a 64-bit object if we didn't find anything.
16124if test -z "$aix_libpath"; then
16125 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16126fi
16127else
16128 echo "$as_me: failed program was:" >&5
16129sed 's/^/| /' conftest.$ac_ext >&5
16130
16131
16132fi
16133
16134rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16135 conftest$ac_exeext conftest.$ac_ext
16136if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16137
16138 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16139 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"
16140 else
16141 if test "$host_cpu" = ia64; then
16142 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16143 allow_undefined_flag_F77="-z nodefs"
16144 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"
16145 else
16146 # Determine the default libpath from the value encoded in an empty executable.
16147 cat >conftest.$ac_ext <<_ACEOF
16148 program main
16149
16150 end
16151_ACEOF
16152rm -f conftest.$ac_objext conftest$ac_exeext
16153if { (ac_try="$ac_link"
16154case "(($ac_try" in
16155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16156 *) ac_try_echo=$ac_try;;
16157esac
16158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16159 (eval "$ac_link") 2>conftest.er1
16160 ac_status=$?
16161 grep -v '^ *+' conftest.er1 >conftest.err
16162 rm -f conftest.er1
16163 cat conftest.err >&5
16164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); } && {
16166 test -z "$ac_f77_werror_flag" ||
16167 test ! -s conftest.err
16168 } && test -s conftest$ac_exeext &&
16169 $as_test_x conftest$ac_exeext; then
16170
16171lt_aix_libpath_sed='
16172 /Import File Strings/,/^$/ {
16173 /^0/ {
16174 s/^0 *\(.*\)$/\1/
16175 p
16176 }
16177 }'
16178aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16179# Check for a 64-bit object if we didn't find anything.
16180if test -z "$aix_libpath"; then
16181 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16182fi
16183else
16184 echo "$as_me: failed program was:" >&5
16185sed 's/^/| /' conftest.$ac_ext >&5
16186
16187
16188fi
16189
16190rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16191 conftest$ac_exeext conftest.$ac_ext
16192if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16193
16194 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16195 # Warning - without using the other run time loading flags,
16196 # -berok will link without error, but may produce a broken library.
16197 no_undefined_flag_F77=' ${wl}-bernotok'
16198 allow_undefined_flag_F77=' ${wl}-berok'
16199 # Exported symbols can be pulled into shared objects from archives
16200 whole_archive_flag_spec_F77='$convenience'
16201 archive_cmds_need_lc_F77=yes
16202 # This is similar to how AIX traditionally builds its shared libraries.
16203 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'
16204 fi
16205 fi
16206 ;;
16207
16208 amigaos*)
16209 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)'
16210 hardcode_libdir_flag_spec_F77='-L$libdir'
16211 hardcode_minus_L_F77=yes
16212 # see comment about different semantics on the GNU ld section
16213 ld_shlibs_F77=no
16214 ;;
16215
16216 bsdi[45]*)
16217 export_dynamic_flag_spec_F77=-rdynamic
16218 ;;
16219
16220 cygwin* | mingw* | pw32*)
16221 # When not using gcc, we currently assume that we are using
16222 # Microsoft Visual C++.
16223 # hardcode_libdir_flag_spec is actually meaningless, as there is
16224 # no search path for DLLs.
16225 hardcode_libdir_flag_spec_F77=' '
16226 allow_undefined_flag_F77=unsupported
16227 # Tell ltmain to make .lib files, not .a files.
16228 libext=lib
16229 # Tell ltmain to make .dll files, not .so files.
16230 shrext_cmds=".dll"
16231 # FIXME: Setting linknames here is a bad hack.
16232 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16233 # The linker will automatically build a .lib file if we build a DLL.
16234 old_archive_From_new_cmds_F77='true'
16235 # FIXME: Should let the user specify the lib program.
16236 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16237 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16238 enable_shared_with_static_runtimes_F77=yes
16239 ;;
16240
16241 darwin* | rhapsody*)
16242 case $host_os in
16243 rhapsody* | darwin1.[012])
16244 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16245 ;;
16246 *) # Darwin 1.3 on
16247 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16248 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16249 else
16250 case ${MACOSX_DEPLOYMENT_TARGET} in
16251 10.[012])
16252 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16253 ;;
16254 10.*)
16255 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16256 ;;
16257 esac
16258 fi
16259 ;;
16260 esac
16261 archive_cmds_need_lc_F77=no
16262 hardcode_direct_F77=no
16263 hardcode_automatic_F77=yes
16264 hardcode_shlibpath_var_F77=unsupported
16265 whole_archive_flag_spec_F77=''
16266 link_all_deplibs_F77=yes
16267 if test "$GCC" = yes ; then
16268 output_verbose_link_cmd='echo'
56efe974
WP
16269 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16270 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16271 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
16272 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
b57f37fb
WP
16273 else
16274 case $cc_basename in
16275 xlc*)
16276 output_verbose_link_cmd='echo'
16277 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16278 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16279 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16280 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}'
16281 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}'
16282 ;;
16283 *)
16284 ld_shlibs_F77=no
16285 ;;
16286 esac
16287 fi
16288 ;;
16289
16290 dgux*)
16291 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16292 hardcode_libdir_flag_spec_F77='-L$libdir'
16293 hardcode_shlibpath_var_F77=no
16294 ;;
16295
16296 freebsd1*)
16297 ld_shlibs_F77=no
16298 ;;
16299
16300 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16301 # support. Future versions do this automatically, but an explicit c++rt0.o
16302 # does not break anything, and helps significantly (at the cost of a little
16303 # extra space).
16304 freebsd2.2*)
16305 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16306 hardcode_libdir_flag_spec_F77='-R$libdir'
16307 hardcode_direct_F77=yes
16308 hardcode_shlibpath_var_F77=no
16309 ;;
16310
16311 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16312 freebsd2*)
16313 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16314 hardcode_direct_F77=yes
16315 hardcode_minus_L_F77=yes
16316 hardcode_shlibpath_var_F77=no
16317 ;;
16318
16319 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16320 freebsd* | dragonfly*)
16321 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16322 hardcode_libdir_flag_spec_F77='-R$libdir'
16323 hardcode_direct_F77=yes
16324 hardcode_shlibpath_var_F77=no
16325 ;;
16326
16327 hpux9*)
16328 if test "$GCC" = yes; then
16329 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'
16330 else
16331 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'
16332 fi
16333 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16334 hardcode_libdir_separator_F77=:
16335 hardcode_direct_F77=yes
16336
16337 # hardcode_minus_L: Not really in the search PATH,
16338 # but as the default location of the library.
16339 hardcode_minus_L_F77=yes
16340 export_dynamic_flag_spec_F77='${wl}-E'
16341 ;;
16342
16343 hpux10*)
16344 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16345 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16346 else
16347 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16348 fi
16349 if test "$with_gnu_ld" = no; then
16350 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16351 hardcode_libdir_separator_F77=:
16352
16353 hardcode_direct_F77=yes
16354 export_dynamic_flag_spec_F77='${wl}-E'
16355
16356 # hardcode_minus_L: Not really in the search PATH,
16357 # but as the default location of the library.
16358 hardcode_minus_L_F77=yes
16359 fi
16360 ;;
16361
16362 hpux11*)
16363 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16364 case $host_cpu in
16365 hppa*64*)
16366 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16367 ;;
16368 ia64*)
16369 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16370 ;;
16371 *)
16372 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16373 ;;
16374 esac
16375 else
16376 case $host_cpu in
16377 hppa*64*)
16378 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16379 ;;
16380 ia64*)
16381 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16382 ;;
16383 *)
16384 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16385 ;;
16386 esac
16387 fi
16388 if test "$with_gnu_ld" = no; then
16389 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16390 hardcode_libdir_separator_F77=:
16391
16392 case $host_cpu in
16393 hppa*64*|ia64*)
16394 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16395 hardcode_direct_F77=no
16396 hardcode_shlibpath_var_F77=no
16397 ;;
16398 *)
16399 hardcode_direct_F77=yes
16400 export_dynamic_flag_spec_F77='${wl}-E'
16401
16402 # hardcode_minus_L: Not really in the search PATH,
16403 # but as the default location of the library.
16404 hardcode_minus_L_F77=yes
16405 ;;
16406 esac
16407 fi
16408 ;;
16409
16410 irix5* | irix6* | nonstopux*)
16411 if test "$GCC" = yes; then
16412 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'
16413 else
16414 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'
16415 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16416 fi
16417 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16418 hardcode_libdir_separator_F77=:
16419 link_all_deplibs_F77=yes
16420 ;;
16421
16422 netbsd* | netbsdelf*-gnu)
16423 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16424 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16425 else
16426 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16427 fi
16428 hardcode_libdir_flag_spec_F77='-R$libdir'
16429 hardcode_direct_F77=yes
16430 hardcode_shlibpath_var_F77=no
16431 ;;
16432
16433 newsos6)
16434 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16435 hardcode_direct_F77=yes
16436 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16437 hardcode_libdir_separator_F77=:
16438 hardcode_shlibpath_var_F77=no
16439 ;;
16440
16441 openbsd*)
16442 if test -f /usr/libexec/ld.so; then
16443 hardcode_direct_F77=yes
16444 hardcode_shlibpath_var_F77=no
16445 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16446 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16447 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16448 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16449 export_dynamic_flag_spec_F77='${wl}-E'
16450 else
16451 case $host_os in
16452 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16453 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16454 hardcode_libdir_flag_spec_F77='-R$libdir'
16455 ;;
16456 *)
16457 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16458 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16459 ;;
16460 esac
16461 fi
16462 else
16463 ld_shlibs_F77=no
16464 fi
16465 ;;
16466
16467 os2*)
16468 hardcode_libdir_flag_spec_F77='-L$libdir'
16469 hardcode_minus_L_F77=yes
16470 allow_undefined_flag_F77=unsupported
16471 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'
16472 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16473 ;;
16474
16475 osf3*)
16476 if test "$GCC" = yes; then
16477 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16478 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'
16479 else
16480 allow_undefined_flag_F77=' -expect_unresolved \*'
16481 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'
16482 fi
16483 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16484 hardcode_libdir_separator_F77=:
16485 ;;
16486
16487 osf4* | osf5*) # as osf3* with the addition of -msym flag
16488 if test "$GCC" = yes; then
16489 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16490 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'
16491 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16492 else
16493 allow_undefined_flag_F77=' -expect_unresolved \*'
16494 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'
16495 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~
16496 $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'
16497
16498 # Both c and cxx compiler support -rpath directly
16499 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16500 fi
16501 hardcode_libdir_separator_F77=:
16502 ;;
16503
16504 solaris*)
16505 no_undefined_flag_F77=' -z text'
16506 if test "$GCC" = yes; then
16507 wlarc='${wl}'
16508 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16509 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16510 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16511 else
16512 wlarc=''
16513 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16514 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16515 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16516 fi
16517 hardcode_libdir_flag_spec_F77='-R$libdir'
16518 hardcode_shlibpath_var_F77=no
16519 case $host_os in
16520 solaris2.[0-5] | solaris2.[0-5].*) ;;
16521 *)
16522 # The compiler driver will combine and reorder linker options,
16523 # but understands `-z linker_flag'. GCC discards it without `$wl',
16524 # but is careful enough not to reorder.
16525 # Supported since Solaris 2.6 (maybe 2.5.1?)
16526 if test "$GCC" = yes; then
16527 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16528 else
16529 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16530 fi
16531 ;;
16532 esac
16533 link_all_deplibs_F77=yes
16534 ;;
16535
16536 sunos4*)
16537 if test "x$host_vendor" = xsequent; then
16538 # Use $CC to link under sequent, because it throws in some extra .o
16539 # files that make .init and .fini sections work.
16540 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16541 else
16542 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16543 fi
16544 hardcode_libdir_flag_spec_F77='-L$libdir'
16545 hardcode_direct_F77=yes
16546 hardcode_minus_L_F77=yes
16547 hardcode_shlibpath_var_F77=no
16548 ;;
16549
16550 sysv4)
16551 case $host_vendor in
16552 sni)
16553 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16554 hardcode_direct_F77=yes # is this really true???
16555 ;;
16556 siemens)
16557 ## LD is ld it makes a PLAMLIB
16558 ## CC just makes a GrossModule.
16559 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16560 reload_cmds_F77='$CC -r -o $output$reload_objs'
16561 hardcode_direct_F77=no
16562 ;;
16563 motorola)
16564 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16565 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16566 ;;
16567 esac
16568 runpath_var='LD_RUN_PATH'
16569 hardcode_shlibpath_var_F77=no
16570 ;;
16571
16572 sysv4.3*)
16573 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16574 hardcode_shlibpath_var_F77=no
16575 export_dynamic_flag_spec_F77='-Bexport'
16576 ;;
16577
16578 sysv4*MP*)
16579 if test -d /usr/nec; then
16580 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16581 hardcode_shlibpath_var_F77=no
16582 runpath_var=LD_RUN_PATH
16583 hardcode_runpath_var=yes
16584 ld_shlibs_F77=yes
16585 fi
16586 ;;
16587
16588 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16589 no_undefined_flag_F77='${wl}-z,text'
16590 archive_cmds_need_lc_F77=no
16591 hardcode_shlibpath_var_F77=no
16592 runpath_var='LD_RUN_PATH'
16593
16594 if test "$GCC" = yes; then
16595 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16596 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16597 else
16598 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16599 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16600 fi
16601 ;;
16602
16603 sysv5* | sco3.2v5* | sco5v6*)
16604 # Note: We can NOT use -z defs as we might desire, because we do not
16605 # link with -lc, and that would cause any symbols used from libc to
16606 # always be unresolved, which means just about no library would
16607 # ever link correctly. If we're not using GNU ld we use -z text
16608 # though, which does catch some bad symbols but isn't as heavy-handed
16609 # as -z defs.
16610 no_undefined_flag_F77='${wl}-z,text'
16611 allow_undefined_flag_F77='${wl}-z,nodefs'
16612 archive_cmds_need_lc_F77=no
16613 hardcode_shlibpath_var_F77=no
16614 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16615 hardcode_libdir_separator_F77=':'
16616 link_all_deplibs_F77=yes
16617 export_dynamic_flag_spec_F77='${wl}-Bexport'
16618 runpath_var='LD_RUN_PATH'
16619
16620 if test "$GCC" = yes; then
16621 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16622 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16623 else
16624 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16625 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16626 fi
16627 ;;
16628
16629 uts4*)
16630 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16631 hardcode_libdir_flag_spec_F77='-L$libdir'
16632 hardcode_shlibpath_var_F77=no
16633 ;;
16634
16635 *)
16636 ld_shlibs_F77=no
16637 ;;
16638 esac
16639 fi
16640
16641{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16642echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16643test "$ld_shlibs_F77" = no && can_build_shared=no
16644
16645#
16646# Do we need to explicitly link libc?
16647#
16648case "x$archive_cmds_need_lc_F77" in
16649x|xyes)
16650 # Assume -lc should be added
16651 archive_cmds_need_lc_F77=yes
16652
16653 if test "$enable_shared" = yes && test "$GCC" = yes; then
16654 case $archive_cmds_F77 in
16655 *'~'*)
16656 # FIXME: we may have to deal with multi-command sequences.
16657 ;;
16658 '$CC '*)
16659 # Test whether the compiler implicitly links with -lc since on some
16660 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16661 # to ld, don't add -lc before -lgcc.
16662 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16663echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16664 $rm conftest*
16665 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16666
16667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16668 (eval $ac_compile) 2>&5
16669 ac_status=$?
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); } 2>conftest.err; then
16672 soname=conftest
16673 lib=conftest
16674 libobjs=conftest.$ac_objext
16675 deplibs=
16676 wl=$lt_prog_compiler_wl_F77
16677 pic_flag=$lt_prog_compiler_pic_F77
16678 compiler_flags=-v
16679 linker_flags=-v
16680 verstring=
16681 output_objdir=.
16682 libname=conftest
16683 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16684 allow_undefined_flag_F77=
16685 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16686 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16687 ac_status=$?
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); }
16690 then
16691 archive_cmds_need_lc_F77=no
16692 else
16693 archive_cmds_need_lc_F77=yes
16694 fi
16695 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16696 else
16697 cat conftest.err 1>&5
16698 fi
16699 $rm conftest*
16700 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16701echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16702 ;;
16703 esac
16704 fi
16705 ;;
16706esac
16707
16708{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16709echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16710library_names_spec=
16711libname_spec='lib$name'
16712soname_spec=
16713shrext_cmds=".so"
16714postinstall_cmds=
16715postuninstall_cmds=
16716finish_cmds=
16717finish_eval=
16718shlibpath_var=
16719shlibpath_overrides_runpath=unknown
16720version_type=none
16721dynamic_linker="$host_os ld.so"
16722sys_lib_dlsearch_path_spec="/lib /usr/lib"
16723
16724need_lib_prefix=unknown
16725hardcode_into_libs=no
16726
16727# when you set need_version to no, make sure it does not cause -set_version
16728# flags to be left without arguments
16729need_version=unknown
16730
16731case $host_os in
16732aix3*)
16733 version_type=linux
16734 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16735 shlibpath_var=LIBPATH
16736
16737 # AIX 3 has no versioning support, so we append a major version to the name.
16738 soname_spec='${libname}${release}${shared_ext}$major'
16739 ;;
16740
56efe974 16741aix[4-9]*)
b57f37fb
WP
16742 version_type=linux
16743 need_lib_prefix=no
16744 need_version=no
16745 hardcode_into_libs=yes
16746 if test "$host_cpu" = ia64; then
16747 # AIX 5 supports IA64
16748 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16749 shlibpath_var=LD_LIBRARY_PATH
16750 else
16751 # With GCC up to 2.95.x, collect2 would create an import file
16752 # for dependence libraries. The import file would start with
16753 # the line `#! .'. This would cause the generated library to
16754 # depend on `.', always an invalid library. This was fixed in
16755 # development snapshots of GCC prior to 3.0.
16756 case $host_os in
16757 aix4 | aix4.[01] | aix4.[01].*)
16758 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16759 echo ' yes '
16760 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16761 :
16762 else
16763 can_build_shared=no
16764 fi
16765 ;;
16766 esac
16767 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16768 # soname into executable. Probably we can add versioning support to
16769 # collect2, so additional links can be useful in future.
16770 if test "$aix_use_runtimelinking" = yes; then
16771 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16772 # instead of lib<name>.a to let people know that these are not
16773 # typical AIX shared libraries.
16774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16775 else
16776 # We preserve .a as extension for shared libraries through AIX4.2
16777 # and later when we are not doing run time linking.
16778 library_names_spec='${libname}${release}.a $libname.a'
16779 soname_spec='${libname}${release}${shared_ext}$major'
16780 fi
16781 shlibpath_var=LIBPATH
16782 fi
16783 ;;
16784
16785amigaos*)
16786 library_names_spec='$libname.ixlibrary $libname.a'
16787 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16788 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'
16789 ;;
16790
16791beos*)
16792 library_names_spec='${libname}${shared_ext}'
16793 dynamic_linker="$host_os ld.so"
16794 shlibpath_var=LIBRARY_PATH
16795 ;;
16796
16797bsdi[45]*)
16798 version_type=linux
16799 need_version=no
16800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16801 soname_spec='${libname}${release}${shared_ext}$major'
16802 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16803 shlibpath_var=LD_LIBRARY_PATH
16804 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16805 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16806 # the default ld.so.conf also contains /usr/contrib/lib and
16807 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16808 # libtool to hard-code these into programs
16809 ;;
16810
16811cygwin* | mingw* | pw32*)
16812 version_type=windows
16813 shrext_cmds=".dll"
16814 need_version=no
16815 need_lib_prefix=no
16816
16817 case $GCC,$host_os in
16818 yes,cygwin* | yes,mingw* | yes,pw32*)
16819 library_names_spec='$libname.dll.a'
16820 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16821 postinstall_cmds='base_file=`basename \${file}`~
16822 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16823 dldir=$destdir/`dirname \$dlpath`~
16824 test -d \$dldir || mkdir -p \$dldir~
16825 $install_prog $dir/$dlname \$dldir/$dlname~
16826 chmod a+x \$dldir/$dlname'
16827 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16828 dlpath=$dir/\$dldll~
16829 $rm \$dlpath'
16830 shlibpath_overrides_runpath=yes
16831
16832 case $host_os in
16833 cygwin*)
16834 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16835 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16836 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16837 ;;
16838 mingw*)
16839 # MinGW DLLs use traditional 'lib' prefix
16840 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16841 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16842 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16843 # It is most probably a Windows format PATH printed by
16844 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16845 # path with ; separators, and with drive letters. We can handle the
16846 # drive letters (cygwin fileutils understands them), so leave them,
16847 # especially as we might pass files found there to a mingw objdump,
16848 # which wouldn't understand a cygwinified path. Ahh.
16849 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16850 else
16851 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16852 fi
16853 ;;
16854 pw32*)
16855 # pw32 DLLs use 'pw' prefix rather than 'lib'
16856 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16857 ;;
16858 esac
16859 ;;
16860
16861 *)
16862 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16863 ;;
16864 esac
16865 dynamic_linker='Win32 ld.exe'
16866 # FIXME: first we should search . and the directory the executable is in
16867 shlibpath_var=PATH
16868 ;;
16869
16870darwin* | rhapsody*)
16871 dynamic_linker="$host_os dyld"
16872 version_type=darwin
16873 need_lib_prefix=no
16874 need_version=no
16875 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16876 soname_spec='${libname}${release}${major}$shared_ext'
16877 shlibpath_overrides_runpath=yes
16878 shlibpath_var=DYLD_LIBRARY_PATH
16879 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16880
16881 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16882 ;;
16883
16884dgux*)
16885 version_type=linux
16886 need_lib_prefix=no
16887 need_version=no
16888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16889 soname_spec='${libname}${release}${shared_ext}$major'
16890 shlibpath_var=LD_LIBRARY_PATH
16891 ;;
16892
16893freebsd1*)
16894 dynamic_linker=no
16895 ;;
16896
16897freebsd* | dragonfly*)
16898 # DragonFly does not have aout. When/if they implement a new
16899 # versioning mechanism, adjust this.
16900 if test -x /usr/bin/objformat; then
16901 objformat=`/usr/bin/objformat`
16902 else
16903 case $host_os in
16904 freebsd[123]*) objformat=aout ;;
16905 *) objformat=elf ;;
16906 esac
16907 fi
16908 version_type=freebsd-$objformat
16909 case $version_type in
16910 freebsd-elf*)
16911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16912 need_version=no
16913 need_lib_prefix=no
16914 ;;
16915 freebsd-*)
16916 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16917 need_version=yes
16918 ;;
16919 esac
16920 shlibpath_var=LD_LIBRARY_PATH
16921 case $host_os in
16922 freebsd2*)
16923 shlibpath_overrides_runpath=yes
16924 ;;
16925 freebsd3.[01]* | freebsdelf3.[01]*)
16926 shlibpath_overrides_runpath=yes
16927 hardcode_into_libs=yes
16928 ;;
16929 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16930 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16931 shlibpath_overrides_runpath=no
16932 hardcode_into_libs=yes
16933 ;;
16934 *) # from 4.6 on, and DragonFly
16935 shlibpath_overrides_runpath=yes
16936 hardcode_into_libs=yes
16937 ;;
16938 esac
16939 ;;
16940
16941gnu*)
16942 version_type=linux
16943 need_lib_prefix=no
16944 need_version=no
16945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16946 soname_spec='${libname}${release}${shared_ext}$major'
16947 shlibpath_var=LD_LIBRARY_PATH
16948 hardcode_into_libs=yes
16949 ;;
16950
16951hpux9* | hpux10* | hpux11*)
16952 # Give a soname corresponding to the major version so that dld.sl refuses to
16953 # link against other versions.
16954 version_type=sunos
16955 need_lib_prefix=no
16956 need_version=no
16957 case $host_cpu in
16958 ia64*)
16959 shrext_cmds='.so'
16960 hardcode_into_libs=yes
16961 dynamic_linker="$host_os dld.so"
16962 shlibpath_var=LD_LIBRARY_PATH
16963 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16965 soname_spec='${libname}${release}${shared_ext}$major'
16966 if test "X$HPUX_IA64_MODE" = X32; then
16967 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16968 else
16969 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16970 fi
16971 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16972 ;;
16973 hppa*64*)
16974 shrext_cmds='.sl'
16975 hardcode_into_libs=yes
16976 dynamic_linker="$host_os dld.sl"
16977 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16978 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16980 soname_spec='${libname}${release}${shared_ext}$major'
16981 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16982 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16983 ;;
16984 *)
16985 shrext_cmds='.sl'
16986 dynamic_linker="$host_os dld.sl"
16987 shlibpath_var=SHLIB_PATH
16988 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16990 soname_spec='${libname}${release}${shared_ext}$major'
16991 ;;
16992 esac
16993 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16994 postinstall_cmds='chmod 555 $lib'
16995 ;;
16996
16997interix[3-9]*)
16998 version_type=linux
16999 need_lib_prefix=no
17000 need_version=no
17001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17002 soname_spec='${libname}${release}${shared_ext}$major'
17003 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17004 shlibpath_var=LD_LIBRARY_PATH
17005 shlibpath_overrides_runpath=no
17006 hardcode_into_libs=yes
17007 ;;
17008
17009irix5* | irix6* | nonstopux*)
17010 case $host_os in
17011 nonstopux*) version_type=nonstopux ;;
17012 *)
17013 if test "$lt_cv_prog_gnu_ld" = yes; then
17014 version_type=linux
17015 else
17016 version_type=irix
17017 fi ;;
17018 esac
17019 need_lib_prefix=no
17020 need_version=no
17021 soname_spec='${libname}${release}${shared_ext}$major'
17022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17023 case $host_os in
17024 irix5* | nonstopux*)
17025 libsuff= shlibsuff=
17026 ;;
17027 *)
17028 case $LD in # libtool.m4 will add one of these switches to LD
17029 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17030 libsuff= shlibsuff= libmagic=32-bit;;
17031 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17032 libsuff=32 shlibsuff=N32 libmagic=N32;;
17033 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17034 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17035 *) libsuff= shlibsuff= libmagic=never-match;;
17036 esac
17037 ;;
17038 esac
17039 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17040 shlibpath_overrides_runpath=no
17041 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17042 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17043 hardcode_into_libs=yes
17044 ;;
17045
17046# No shared lib support for Linux oldld, aout, or coff.
17047linux*oldld* | linux*aout* | linux*coff*)
17048 dynamic_linker=no
17049 ;;
17050
17051# This must be Linux ELF.
17052linux* | k*bsd*-gnu)
17053 version_type=linux
17054 need_lib_prefix=no
17055 need_version=no
17056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17057 soname_spec='${libname}${release}${shared_ext}$major'
17058 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17059 shlibpath_var=LD_LIBRARY_PATH
17060 shlibpath_overrides_runpath=no
17061 # This implies no fast_install, which is unacceptable.
17062 # Some rework will be needed to allow for fast_install
17063 # before this can be enabled.
17064 hardcode_into_libs=yes
17065
17066 # Append ld.so.conf contents to the search path
17067 if test -f /etc/ld.so.conf; then
17068 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' ' '`
17069 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17070 fi
17071
17072 # We used to test for /lib/ld.so.1 and disable shared libraries on
17073 # powerpc, because MkLinux only supported shared libraries with the
17074 # GNU dynamic linker. Since this was broken with cross compilers,
17075 # most powerpc-linux boxes support dynamic linking these days and
17076 # people can always --disable-shared, the test was removed, and we
17077 # assume the GNU/Linux dynamic linker is in use.
17078 dynamic_linker='GNU/Linux ld.so'
17079 ;;
17080
17081netbsdelf*-gnu)
17082 version_type=linux
17083 need_lib_prefix=no
17084 need_version=no
17085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17086 soname_spec='${libname}${release}${shared_ext}$major'
17087 shlibpath_var=LD_LIBRARY_PATH
17088 shlibpath_overrides_runpath=no
17089 hardcode_into_libs=yes
17090 dynamic_linker='NetBSD ld.elf_so'
17091 ;;
17092
17093netbsd*)
17094 version_type=sunos
17095 need_lib_prefix=no
17096 need_version=no
17097 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17099 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17100 dynamic_linker='NetBSD (a.out) ld.so'
17101 else
17102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17103 soname_spec='${libname}${release}${shared_ext}$major'
17104 dynamic_linker='NetBSD ld.elf_so'
17105 fi
17106 shlibpath_var=LD_LIBRARY_PATH
17107 shlibpath_overrides_runpath=yes
17108 hardcode_into_libs=yes
17109 ;;
17110
17111newsos6)
17112 version_type=linux
17113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17114 shlibpath_var=LD_LIBRARY_PATH
17115 shlibpath_overrides_runpath=yes
17116 ;;
17117
17118nto-qnx*)
17119 version_type=linux
17120 need_lib_prefix=no
17121 need_version=no
17122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17123 soname_spec='${libname}${release}${shared_ext}$major'
17124 shlibpath_var=LD_LIBRARY_PATH
17125 shlibpath_overrides_runpath=yes
17126 ;;
17127
17128openbsd*)
17129 version_type=sunos
17130 sys_lib_dlsearch_path_spec="/usr/lib"
17131 need_lib_prefix=no
17132 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17133 case $host_os in
17134 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17135 *) need_version=no ;;
17136 esac
17137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17138 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17139 shlibpath_var=LD_LIBRARY_PATH
17140 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17141 case $host_os in
17142 openbsd2.[89] | openbsd2.[89].*)
17143 shlibpath_overrides_runpath=no
17144 ;;
17145 *)
17146 shlibpath_overrides_runpath=yes
17147 ;;
17148 esac
17149 else
17150 shlibpath_overrides_runpath=yes
17151 fi
17152 ;;
17153
17154os2*)
17155 libname_spec='$name'
17156 shrext_cmds=".dll"
17157 need_lib_prefix=no
17158 library_names_spec='$libname${shared_ext} $libname.a'
17159 dynamic_linker='OS/2 ld.exe'
17160 shlibpath_var=LIBPATH
17161 ;;
17162
17163osf3* | osf4* | osf5*)
17164 version_type=osf
17165 need_lib_prefix=no
17166 need_version=no
17167 soname_spec='${libname}${release}${shared_ext}$major'
17168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17169 shlibpath_var=LD_LIBRARY_PATH
17170 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17171 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17172 ;;
17173
17174rdos*)
17175 dynamic_linker=no
17176 ;;
17177
17178solaris*)
17179 version_type=linux
17180 need_lib_prefix=no
17181 need_version=no
17182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17183 soname_spec='${libname}${release}${shared_ext}$major'
17184 shlibpath_var=LD_LIBRARY_PATH
17185 shlibpath_overrides_runpath=yes
17186 hardcode_into_libs=yes
17187 # ldd complains unless libraries are executable
17188 postinstall_cmds='chmod +x $lib'
17189 ;;
17190
17191sunos4*)
17192 version_type=sunos
17193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17194 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17195 shlibpath_var=LD_LIBRARY_PATH
17196 shlibpath_overrides_runpath=yes
17197 if test "$with_gnu_ld" = yes; then
17198 need_lib_prefix=no
17199 fi
17200 need_version=yes
17201 ;;
17202
17203sysv4 | sysv4.3*)
17204 version_type=linux
17205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17206 soname_spec='${libname}${release}${shared_ext}$major'
17207 shlibpath_var=LD_LIBRARY_PATH
17208 case $host_vendor in
17209 sni)
17210 shlibpath_overrides_runpath=no
17211 need_lib_prefix=no
17212 export_dynamic_flag_spec='${wl}-Blargedynsym'
17213 runpath_var=LD_RUN_PATH
17214 ;;
17215 siemens)
17216 need_lib_prefix=no
17217 ;;
17218 motorola)
17219 need_lib_prefix=no
17220 need_version=no
17221 shlibpath_overrides_runpath=no
17222 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17223 ;;
17224 esac
17225 ;;
17226
17227sysv4*MP*)
17228 if test -d /usr/nec ;then
17229 version_type=linux
17230 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17231 soname_spec='$libname${shared_ext}.$major'
17232 shlibpath_var=LD_LIBRARY_PATH
17233 fi
17234 ;;
17235
17236sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17237 version_type=freebsd-elf
17238 need_lib_prefix=no
17239 need_version=no
17240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17241 soname_spec='${libname}${release}${shared_ext}$major'
17242 shlibpath_var=LD_LIBRARY_PATH
17243 hardcode_into_libs=yes
17244 if test "$with_gnu_ld" = yes; then
17245 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17246 shlibpath_overrides_runpath=no
17247 else
17248 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17249 shlibpath_overrides_runpath=yes
17250 case $host_os in
17251 sco3.2v5*)
17252 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17253 ;;
17254 esac
17255 fi
17256 sys_lib_dlsearch_path_spec='/usr/lib'
17257 ;;
17258
17259uts4*)
17260 version_type=linux
17261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17262 soname_spec='${libname}${release}${shared_ext}$major'
17263 shlibpath_var=LD_LIBRARY_PATH
17264 ;;
17265
17266*)
17267 dynamic_linker=no
17268 ;;
17269esac
17270{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17271echo "${ECHO_T}$dynamic_linker" >&6; }
17272test "$dynamic_linker" = no && can_build_shared=no
17273
56efe974
WP
17274if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17275 echo $ECHO_N "(cached) $ECHO_C" >&6
17276else
17277 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
17278fi
17279
17280sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17281if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17282 echo $ECHO_N "(cached) $ECHO_C" >&6
17283else
17284 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
17285fi
17286
17287sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17288
b57f37fb
WP
17289variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17290if test "$GCC" = yes; then
17291 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17292fi
17293
17294{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17295echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17296hardcode_action_F77=
17297if test -n "$hardcode_libdir_flag_spec_F77" || \
17298 test -n "$runpath_var_F77" || \
17299 test "X$hardcode_automatic_F77" = "Xyes" ; then
17300
17301 # We can hardcode non-existant directories.
17302 if test "$hardcode_direct_F77" != no &&
17303 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17304 # have to relink, otherwise we might link with an installed library
17305 # when we should be linking with a yet-to-be-installed one
17306 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17307 test "$hardcode_minus_L_F77" != no; then
17308 # Linking always hardcodes the temporary library directory.
17309 hardcode_action_F77=relink
17310 else
17311 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17312 hardcode_action_F77=immediate
17313 fi
17314else
17315 # We cannot hardcode anything, or else we can only hardcode existing
17316 # directories.
17317 hardcode_action_F77=unsupported
17318fi
17319{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17320echo "${ECHO_T}$hardcode_action_F77" >&6; }
17321
17322if test "$hardcode_action_F77" = relink; then
17323 # Fast installation is not supported
17324 enable_fast_install=no
17325elif test "$shlibpath_overrides_runpath" = yes ||
17326 test "$enable_shared" = no; then
17327 # Fast installation is not necessary
17328 enable_fast_install=needless
17329fi
17330
17331
17332# The else clause should only fire when bootstrapping the
17333# libtool distribution, otherwise you forgot to ship ltmain.sh
17334# with your package, and you will get complaints that there are
17335# no rules to generate ltmain.sh.
17336if test -f "$ltmain"; then
17337 # See if we are running on zsh, and set the options which allow our commands through
17338 # without removal of \ escapes.
17339 if test -n "${ZSH_VERSION+set}" ; then
17340 setopt NO_GLOB_SUBST
17341 fi
17342 # Now quote all the things that may contain metacharacters while being
17343 # careful not to overquote the AC_SUBSTed values. We take copies of the
17344 # variables and quote the copies for generation of the libtool script.
17345 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17346 SED SHELL STRIP \
17347 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17348 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17349 deplibs_check_method reload_flag reload_cmds need_locks \
17350 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17351 lt_cv_sys_global_symbol_to_c_name_address \
17352 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17353 old_postinstall_cmds old_postuninstall_cmds \
17354 compiler_F77 \
17355 CC_F77 \
17356 LD_F77 \
17357 lt_prog_compiler_wl_F77 \
17358 lt_prog_compiler_pic_F77 \
17359 lt_prog_compiler_static_F77 \
17360 lt_prog_compiler_no_builtin_flag_F77 \
17361 export_dynamic_flag_spec_F77 \
17362 thread_safe_flag_spec_F77 \
17363 whole_archive_flag_spec_F77 \
17364 enable_shared_with_static_runtimes_F77 \
17365 old_archive_cmds_F77 \
17366 old_archive_from_new_cmds_F77 \
17367 predep_objects_F77 \
17368 postdep_objects_F77 \
17369 predeps_F77 \
17370 postdeps_F77 \
17371 compiler_lib_search_path_F77 \
56efe974 17372 compiler_lib_search_dirs_F77 \
b57f37fb
WP
17373 archive_cmds_F77 \
17374 archive_expsym_cmds_F77 \
17375 postinstall_cmds_F77 \
17376 postuninstall_cmds_F77 \
17377 old_archive_from_expsyms_cmds_F77 \
17378 allow_undefined_flag_F77 \
17379 no_undefined_flag_F77 \
17380 export_symbols_cmds_F77 \
17381 hardcode_libdir_flag_spec_F77 \
17382 hardcode_libdir_flag_spec_ld_F77 \
17383 hardcode_libdir_separator_F77 \
17384 hardcode_automatic_F77 \
17385 module_cmds_F77 \
17386 module_expsym_cmds_F77 \
17387 lt_cv_prog_compiler_c_o_F77 \
17388 fix_srcfile_path_F77 \
17389 exclude_expsyms_F77 \
17390 include_expsyms_F77; do
17391
17392 case $var in
17393 old_archive_cmds_F77 | \
17394 old_archive_from_new_cmds_F77 | \
17395 archive_cmds_F77 | \
17396 archive_expsym_cmds_F77 | \
17397 module_cmds_F77 | \
17398 module_expsym_cmds_F77 | \
17399 old_archive_from_expsyms_cmds_F77 | \
17400 export_symbols_cmds_F77 | \
17401 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17402 postinstall_cmds | postuninstall_cmds | \
17403 old_postinstall_cmds | old_postuninstall_cmds | \
17404 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17405 # Double-quote double-evaled strings.
17406 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17407 ;;
17408 *)
17409 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17410 ;;
17411 esac
17412 done
17413
17414 case $lt_echo in
17415 *'\$0 --fallback-echo"')
17416 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17417 ;;
17418 esac
17419
17420cfgfile="$ofile"
17421
17422 cat <<__EOF__ >> "$cfgfile"
17423# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17424
17425# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17426
17427# Shell to use when invoking shell scripts.
17428SHELL=$lt_SHELL
17429
17430# Whether or not to build shared libraries.
17431build_libtool_libs=$enable_shared
17432
17433# Whether or not to build static libraries.
17434build_old_libs=$enable_static
17435
17436# Whether or not to add -lc for building shared libraries.
17437build_libtool_need_lc=$archive_cmds_need_lc_F77
17438
17439# Whether or not to disallow shared libs when runtime libs are static
17440allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17441
17442# Whether or not to optimize for fast installation.
17443fast_install=$enable_fast_install
17444
17445# The host system.
17446host_alias=$host_alias
17447host=$host
17448host_os=$host_os
17449
17450# The build system.
17451build_alias=$build_alias
17452build=$build
17453build_os=$build_os
17454
17455# An echo program that does not interpret backslashes.
17456echo=$lt_echo
17457
17458# The archiver.
17459AR=$lt_AR
17460AR_FLAGS=$lt_AR_FLAGS
17461
17462# A C compiler.
17463LTCC=$lt_LTCC
17464
17465# LTCC compiler flags.
17466LTCFLAGS=$lt_LTCFLAGS
17467
17468# A language-specific compiler.
17469CC=$lt_compiler_F77
17470
17471# Is the compiler the GNU C compiler?
17472with_gcc=$GCC_F77
17473
17474# An ERE matcher.
17475EGREP=$lt_EGREP
17476
17477# The linker used to build libraries.
17478LD=$lt_LD_F77
17479
17480# Whether we need hard or soft links.
17481LN_S=$lt_LN_S
17482
17483# A BSD-compatible nm program.
17484NM=$lt_NM
17485
17486# A symbol stripping program
17487STRIP=$lt_STRIP
17488
17489# Used to examine libraries when file_magic_cmd begins "file"
17490MAGIC_CMD=$MAGIC_CMD
17491
17492# Used on cygwin: DLL creation program.
17493DLLTOOL="$DLLTOOL"
17494
17495# Used on cygwin: object dumper.
17496OBJDUMP="$OBJDUMP"
17497
17498# Used on cygwin: assembler.
17499AS="$AS"
17500
17501# The name of the directory that contains temporary libtool files.
17502objdir=$objdir
17503
17504# How to create reloadable object files.
17505reload_flag=$lt_reload_flag
17506reload_cmds=$lt_reload_cmds
17507
17508# How to pass a linker flag through the compiler.
17509wl=$lt_lt_prog_compiler_wl_F77
17510
17511# Object file suffix (normally "o").
17512objext="$ac_objext"
17513
17514# Old archive suffix (normally "a").
17515libext="$libext"
17516
17517# Shared library suffix (normally ".so").
17518shrext_cmds='$shrext_cmds'
17519
17520# Executable file suffix (normally "").
17521exeext="$exeext"
17522
17523# Additional compiler flags for building library objects.
17524pic_flag=$lt_lt_prog_compiler_pic_F77
17525pic_mode=$pic_mode
17526
17527# What is the maximum length of a command?
17528max_cmd_len=$lt_cv_sys_max_cmd_len
17529
17530# Does compiler simultaneously support -c and -o options?
17531compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17532
17533# Must we lock files when doing compilation?
17534need_locks=$lt_need_locks
17535
17536# Do we need the lib prefix for modules?
17537need_lib_prefix=$need_lib_prefix
17538
17539# Do we need a version for libraries?
17540need_version=$need_version
17541
17542# Whether dlopen is supported.
17543dlopen_support=$enable_dlopen
17544
17545# Whether dlopen of programs is supported.
17546dlopen_self=$enable_dlopen_self
17547
17548# Whether dlopen of statically linked programs is supported.
17549dlopen_self_static=$enable_dlopen_self_static
17550
17551# Compiler flag to prevent dynamic linking.
17552link_static_flag=$lt_lt_prog_compiler_static_F77
17553
17554# Compiler flag to turn off builtin functions.
17555no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17556
17557# Compiler flag to allow reflexive dlopens.
17558export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17559
17560# Compiler flag to generate shared objects directly from archives.
17561whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17562
17563# Compiler flag to generate thread-safe objects.
17564thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17565
17566# Library versioning type.
17567version_type=$version_type
17568
17569# Format of library name prefix.
17570libname_spec=$lt_libname_spec
17571
17572# List of archive names. First name is the real one, the rest are links.
17573# The last name is the one that the linker finds with -lNAME.
17574library_names_spec=$lt_library_names_spec
17575
17576# The coded name of the library, if different from the real name.
17577soname_spec=$lt_soname_spec
17578
17579# Commands used to build and install an old-style archive.
17580RANLIB=$lt_RANLIB
17581old_archive_cmds=$lt_old_archive_cmds_F77
17582old_postinstall_cmds=$lt_old_postinstall_cmds
17583old_postuninstall_cmds=$lt_old_postuninstall_cmds
17584
17585# Create an old-style archive from a shared archive.
17586old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17587
17588# Create a temporary old-style archive to link instead of a shared archive.
17589old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17590
17591# Commands used to build and install a shared archive.
17592archive_cmds=$lt_archive_cmds_F77
17593archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17594postinstall_cmds=$lt_postinstall_cmds
17595postuninstall_cmds=$lt_postuninstall_cmds
17596
17597# Commands used to build a loadable module (assumed same as above if empty)
17598module_cmds=$lt_module_cmds_F77
17599module_expsym_cmds=$lt_module_expsym_cmds_F77
17600
17601# Commands to strip libraries.
17602old_striplib=$lt_old_striplib
17603striplib=$lt_striplib
17604
17605# Dependencies to place before the objects being linked to create a
17606# shared library.
17607predep_objects=$lt_predep_objects_F77
17608
17609# Dependencies to place after the objects being linked to create a
17610# shared library.
17611postdep_objects=$lt_postdep_objects_F77
17612
17613# Dependencies to place before the objects being linked to create a
17614# shared library.
17615predeps=$lt_predeps_F77
17616
17617# Dependencies to place after the objects being linked to create a
17618# shared library.
17619postdeps=$lt_postdeps_F77
17620
56efe974
WP
17621# The directories searched by this compiler when creating a shared
17622# library
17623compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
17624
b57f37fb
WP
17625# The library search path used internally by the compiler when linking
17626# a shared library.
17627compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17628
17629# Method to check whether dependent libraries are shared objects.
17630deplibs_check_method=$lt_deplibs_check_method
17631
17632# Command to use when deplibs_check_method == file_magic.
17633file_magic_cmd=$lt_file_magic_cmd
17634
17635# Flag that allows shared libraries with undefined symbols to be built.
17636allow_undefined_flag=$lt_allow_undefined_flag_F77
17637
17638# Flag that forces no undefined symbols.
17639no_undefined_flag=$lt_no_undefined_flag_F77
17640
17641# Commands used to finish a libtool library installation in a directory.
17642finish_cmds=$lt_finish_cmds
17643
17644# Same as above, but a single script fragment to be evaled but not shown.
17645finish_eval=$lt_finish_eval
17646
17647# Take the output of nm and produce a listing of raw symbols and C names.
17648global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17649
17650# Transform the output of nm in a proper C declaration
17651global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17652
17653# Transform the output of nm in a C name address pair
17654global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17655
17656# This is the shared library runtime path variable.
17657runpath_var=$runpath_var
17658
17659# This is the shared library path variable.
17660shlibpath_var=$shlibpath_var
17661
17662# Is shlibpath searched before the hard-coded library search path?
17663shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17664
17665# How to hardcode a shared library path into an executable.
17666hardcode_action=$hardcode_action_F77
17667
17668# Whether we should hardcode library paths into libraries.
17669hardcode_into_libs=$hardcode_into_libs
17670
17671# Flag to hardcode \$libdir into a binary during linking.
17672# This must work even if \$libdir does not exist.
17673hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17674
17675# If ld is used when linking, flag to hardcode \$libdir into
17676# a binary during linking. This must work even if \$libdir does
17677# not exist.
17678hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17679
17680# Whether we need a single -rpath flag with a separated argument.
17681hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17682
17683# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17684# resulting binary.
17685hardcode_direct=$hardcode_direct_F77
17686
17687# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17688# resulting binary.
17689hardcode_minus_L=$hardcode_minus_L_F77
17690
17691# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17692# the resulting binary.
17693hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17694
17695# Set to yes if building a shared library automatically hardcodes DIR into the library
17696# and all subsequent libraries and executables linked against it.
17697hardcode_automatic=$hardcode_automatic_F77
17698
17699# Variables whose values should be saved in libtool wrapper scripts and
17700# restored at relink time.
17701variables_saved_for_relink="$variables_saved_for_relink"
17702
17703# Whether libtool must link a program against all its dependency libraries.
17704link_all_deplibs=$link_all_deplibs_F77
17705
17706# Compile-time system search path for libraries
17707sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17708
17709# Run-time system search path for libraries
17710sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17711
17712# Fix the shell variable \$srcfile for the compiler.
17713fix_srcfile_path=$lt_fix_srcfile_path
17714
17715# Set to yes if exported symbols are required.
17716always_export_symbols=$always_export_symbols_F77
17717
17718# The commands to list exported symbols.
17719export_symbols_cmds=$lt_export_symbols_cmds_F77
17720
17721# The commands to extract the exported symbol list from a shared archive.
17722extract_expsyms_cmds=$lt_extract_expsyms_cmds
17723
17724# Symbols that should not be listed in the preloaded symbols.
17725exclude_expsyms=$lt_exclude_expsyms_F77
17726
17727# Symbols that must always be exported.
17728include_expsyms=$lt_include_expsyms_F77
17729
17730# ### END LIBTOOL TAG CONFIG: $tagname
17731
17732__EOF__
17733
17734
17735else
17736 # If there is no Makefile yet, we rely on a make rule to execute
17737 # `config.status --recheck' to rerun these tests and create the
17738 # libtool script then.
17739 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17740 if test -f "$ltmain_in"; then
17741 test -f Makefile && make "$ltmain"
17742 fi
17743fi
17744
17745
17746ac_ext=c
17747ac_cpp='$CPP $CPPFLAGS'
17748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17750ac_compiler_gnu=$ac_cv_c_compiler_gnu
17751
17752CC="$lt_save_CC"
17753
17754 else
17755 tagname=""
17756 fi
17757 ;;
17758
17759 GCJ)
17760 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17761
17762
17763# Source file extension for Java test sources.
17764ac_ext=java
17765
17766# Object file extension for compiled Java test sources.
17767objext=o
17768objext_GCJ=$objext
17769
17770# Code to be used in simple compile tests
17771lt_simple_compile_test_code="class foo {}"
17772
17773# Code to be used in simple link tests
17774lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17775
17776# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17777
17778# If no C compiler was specified, use CC.
17779LTCC=${LTCC-"$CC"}
17780
17781# If no C compiler flags were specified, use CFLAGS.
17782LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17783
17784# Allow CC to be a program name with arguments.
17785compiler=$CC
17786
17787
17788# save warnings/boilerplate of simple test code
17789ac_outfile=conftest.$ac_objext
17790echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17791eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17792_lt_compiler_boilerplate=`cat conftest.err`
17793$rm conftest*
17794
17795ac_outfile=conftest.$ac_objext
17796echo "$lt_simple_link_test_code" >conftest.$ac_ext
17797eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17798_lt_linker_boilerplate=`cat conftest.err`
56efe974 17799$rm -r conftest*
b57f37fb
WP
17800
17801
17802# Allow CC to be a program name with arguments.
17803lt_save_CC="$CC"
17804CC=${GCJ-"gcj"}
17805compiler=$CC
17806compiler_GCJ=$CC
17807for cc_temp in $compiler""; do
17808 case $cc_temp in
17809 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17810 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17811 \-*) ;;
17812 *) break;;
17813 esac
17814done
17815cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17816
17817
17818# GCJ did not exist at the time GCC didn't implicitly link libc in.
17819archive_cmds_need_lc_GCJ=no
17820
17821old_archive_cmds_GCJ=$old_archive_cmds
17822
17823
17824lt_prog_compiler_no_builtin_flag_GCJ=
17825
17826if test "$GCC" = yes; then
17827 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17828
17829
17830{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17831echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17832if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17833 echo $ECHO_N "(cached) $ECHO_C" >&6
17834else
17835 lt_cv_prog_compiler_rtti_exceptions=no
17836 ac_outfile=conftest.$ac_objext
17837 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17838 lt_compiler_flag="-fno-rtti -fno-exceptions"
17839 # Insert the option either (1) after the last *FLAGS variable, or
17840 # (2) before a word containing "conftest.", or (3) at the end.
17841 # Note that $ac_compile itself does not contain backslashes and begins
17842 # with a dollar sign (not a hyphen), so the echo should work correctly.
17843 # The option is referenced via a variable to avoid confusing sed.
17844 lt_compile=`echo "$ac_compile" | $SED \
17845 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17846 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17847 -e 's:$: $lt_compiler_flag:'`
94b4fbf9 17848 (eval echo "\"\$as_me:17848: $lt_compile\"" >&5)
b57f37fb
WP
17849 (eval "$lt_compile" 2>conftest.err)
17850 ac_status=$?
17851 cat conftest.err >&5
94b4fbf9 17852 echo "$as_me:17852: \$? = $ac_status" >&5
b57f37fb
WP
17853 if (exit $ac_status) && test -s "$ac_outfile"; then
17854 # The compiler can only warn and ignore the option if not recognized
17855 # So say no if there are warnings other than the usual output.
17856 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17857 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17858 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17859 lt_cv_prog_compiler_rtti_exceptions=yes
17860 fi
17861 fi
17862 $rm conftest*
17863
17864fi
17865{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17866echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17867
17868if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17869 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17870else
17871 :
17872fi
17873
17874fi
17875
17876lt_prog_compiler_wl_GCJ=
17877lt_prog_compiler_pic_GCJ=
17878lt_prog_compiler_static_GCJ=
17879
17880{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17881echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17882
17883 if test "$GCC" = yes; then
17884 lt_prog_compiler_wl_GCJ='-Wl,'
17885 lt_prog_compiler_static_GCJ='-static'
17886
17887 case $host_os in
17888 aix*)
17889 # All AIX code is PIC.
17890 if test "$host_cpu" = ia64; then
17891 # AIX 5 now supports IA64 processor
17892 lt_prog_compiler_static_GCJ='-Bstatic'
17893 fi
17894 ;;
17895
17896 amigaos*)
17897 # FIXME: we need at least 68020 code to build shared libraries, but
17898 # adding the `-m68020' flag to GCC prevents building anything better,
17899 # like `-m68040'.
17900 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17901 ;;
17902
17903 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17904 # PIC is the default for these OSes.
17905 ;;
17906
17907 mingw* | cygwin* | pw32* | os2*)
17908 # This hack is so that the source file can tell whether it is being
17909 # built for inclusion in a dll (and should export symbols for example).
17910 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17911 # (--disable-auto-import) libraries
56efe974 17912
b57f37fb
WP
17913 ;;
17914
17915 darwin* | rhapsody*)
17916 # PIC is the default on this platform
17917 # Common symbols not allowed in MH_DYLIB files
17918 lt_prog_compiler_pic_GCJ='-fno-common'
17919 ;;
17920
17921 interix[3-9]*)
17922 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17923 # Instead, we relocate shared libraries at runtime.
17924 ;;
17925
17926 msdosdjgpp*)
17927 # Just because we use GCC doesn't mean we suddenly get shared libraries
17928 # on systems that don't support them.
17929 lt_prog_compiler_can_build_shared_GCJ=no
17930 enable_shared=no
17931 ;;
17932
17933 sysv4*MP*)
17934 if test -d /usr/nec; then
17935 lt_prog_compiler_pic_GCJ=-Kconform_pic
17936 fi
17937 ;;
17938
17939 hpux*)
17940 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17941 # not for PA HP-UX.
17942 case $host_cpu in
17943 hppa*64*|ia64*)
17944 # +Z the default
17945 ;;
17946 *)
17947 lt_prog_compiler_pic_GCJ='-fPIC'
17948 ;;
17949 esac
17950 ;;
17951
17952 *)
17953 lt_prog_compiler_pic_GCJ='-fPIC'
17954 ;;
17955 esac
17956 else
17957 # PORTME Check for flag to pass linker flags through the system compiler.
17958 case $host_os in
17959 aix*)
17960 lt_prog_compiler_wl_GCJ='-Wl,'
17961 if test "$host_cpu" = ia64; then
17962 # AIX 5 now supports IA64 processor
17963 lt_prog_compiler_static_GCJ='-Bstatic'
17964 else
17965 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17966 fi
17967 ;;
17968 darwin*)
17969 # PIC is the default on this platform
17970 # Common symbols not allowed in MH_DYLIB files
17971 case $cc_basename in
17972 xlc*)
17973 lt_prog_compiler_pic_GCJ='-qnocommon'
17974 lt_prog_compiler_wl_GCJ='-Wl,'
17975 ;;
17976 esac
17977 ;;
17978
17979 mingw* | cygwin* | pw32* | os2*)
17980 # This hack is so that the source file can tell whether it is being
17981 # built for inclusion in a dll (and should export symbols for example).
56efe974 17982
b57f37fb
WP
17983 ;;
17984
17985 hpux9* | hpux10* | hpux11*)
17986 lt_prog_compiler_wl_GCJ='-Wl,'
17987 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17988 # not for PA HP-UX.
17989 case $host_cpu in
17990 hppa*64*|ia64*)
17991 # +Z the default
17992 ;;
17993 *)
17994 lt_prog_compiler_pic_GCJ='+Z'
17995 ;;
17996 esac
17997 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17998 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17999 ;;
18000
18001 irix5* | irix6* | nonstopux*)
18002 lt_prog_compiler_wl_GCJ='-Wl,'
18003 # PIC (with -KPIC) is the default.
18004 lt_prog_compiler_static_GCJ='-non_shared'
18005 ;;
18006
18007 newsos6)
18008 lt_prog_compiler_pic_GCJ='-KPIC'
18009 lt_prog_compiler_static_GCJ='-Bstatic'
18010 ;;
18011
18012 linux* | k*bsd*-gnu)
18013 case $cc_basename in
18014 icc* | ecc*)
18015 lt_prog_compiler_wl_GCJ='-Wl,'
18016 lt_prog_compiler_pic_GCJ='-KPIC'
18017 lt_prog_compiler_static_GCJ='-static'
18018 ;;
18019 pgcc* | pgf77* | pgf90* | pgf95*)
18020 # Portland Group compilers (*not* the Pentium gcc compiler,
18021 # which looks to be a dead project)
18022 lt_prog_compiler_wl_GCJ='-Wl,'
18023 lt_prog_compiler_pic_GCJ='-fpic'
18024 lt_prog_compiler_static_GCJ='-Bstatic'
18025 ;;
18026 ccc*)
18027 lt_prog_compiler_wl_GCJ='-Wl,'
18028 # All Alpha code is PIC.
18029 lt_prog_compiler_static_GCJ='-non_shared'
18030 ;;
18031 *)
18032 case `$CC -V 2>&1 | sed 5q` in
18033 *Sun\ C*)
18034 # Sun C 5.9
18035 lt_prog_compiler_pic_GCJ='-KPIC'
18036 lt_prog_compiler_static_GCJ='-Bstatic'
18037 lt_prog_compiler_wl_GCJ='-Wl,'
18038 ;;
18039 *Sun\ F*)
18040 # Sun Fortran 8.3 passes all unrecognized flags to the linker
18041 lt_prog_compiler_pic_GCJ='-KPIC'
18042 lt_prog_compiler_static_GCJ='-Bstatic'
18043 lt_prog_compiler_wl_GCJ=''
18044 ;;
18045 esac
18046 ;;
18047 esac
18048 ;;
18049
18050 osf3* | osf4* | osf5*)
18051 lt_prog_compiler_wl_GCJ='-Wl,'
18052 # All OSF/1 code is PIC.
18053 lt_prog_compiler_static_GCJ='-non_shared'
18054 ;;
18055
18056 rdos*)
18057 lt_prog_compiler_static_GCJ='-non_shared'
18058 ;;
18059
18060 solaris*)
18061 lt_prog_compiler_pic_GCJ='-KPIC'
18062 lt_prog_compiler_static_GCJ='-Bstatic'
18063 case $cc_basename in
18064 f77* | f90* | f95*)
18065 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18066 *)
18067 lt_prog_compiler_wl_GCJ='-Wl,';;
18068 esac
18069 ;;
18070
18071 sunos4*)
18072 lt_prog_compiler_wl_GCJ='-Qoption ld '
18073 lt_prog_compiler_pic_GCJ='-PIC'
18074 lt_prog_compiler_static_GCJ='-Bstatic'
18075 ;;
18076
18077 sysv4 | sysv4.2uw2* | sysv4.3*)
18078 lt_prog_compiler_wl_GCJ='-Wl,'
18079 lt_prog_compiler_pic_GCJ='-KPIC'
18080 lt_prog_compiler_static_GCJ='-Bstatic'
18081 ;;
18082
18083 sysv4*MP*)
18084 if test -d /usr/nec ;then
18085 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18086 lt_prog_compiler_static_GCJ='-Bstatic'
18087 fi
18088 ;;
18089
18090 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18091 lt_prog_compiler_wl_GCJ='-Wl,'
18092 lt_prog_compiler_pic_GCJ='-KPIC'
18093 lt_prog_compiler_static_GCJ='-Bstatic'
18094 ;;
18095
18096 unicos*)
18097 lt_prog_compiler_wl_GCJ='-Wl,'
18098 lt_prog_compiler_can_build_shared_GCJ=no
18099 ;;
18100
18101 uts4*)
18102 lt_prog_compiler_pic_GCJ='-pic'
18103 lt_prog_compiler_static_GCJ='-Bstatic'
18104 ;;
18105
18106 *)
18107 lt_prog_compiler_can_build_shared_GCJ=no
18108 ;;
18109 esac
18110 fi
18111
18112{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18113echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18114
18115#
18116# Check to make sure the PIC flag actually works.
18117#
18118if test -n "$lt_prog_compiler_pic_GCJ"; then
18119
18120{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18121echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
56efe974 18122if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
b57f37fb
WP
18123 echo $ECHO_N "(cached) $ECHO_C" >&6
18124else
56efe974 18125 lt_cv_prog_compiler_pic_works_GCJ=no
b57f37fb
WP
18126 ac_outfile=conftest.$ac_objext
18127 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18128 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18129 # Insert the option either (1) after the last *FLAGS variable, or
18130 # (2) before a word containing "conftest.", or (3) at the end.
18131 # Note that $ac_compile itself does not contain backslashes and begins
18132 # with a dollar sign (not a hyphen), so the echo should work correctly.
18133 # The option is referenced via a variable to avoid confusing sed.
18134 lt_compile=`echo "$ac_compile" | $SED \
18135 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18136 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18137 -e 's:$: $lt_compiler_flag:'`
94b4fbf9 18138 (eval echo "\"\$as_me:18138: $lt_compile\"" >&5)
b57f37fb
WP
18139 (eval "$lt_compile" 2>conftest.err)
18140 ac_status=$?
18141 cat conftest.err >&5
94b4fbf9 18142 echo "$as_me:18142: \$? = $ac_status" >&5
b57f37fb
WP
18143 if (exit $ac_status) && test -s "$ac_outfile"; then
18144 # The compiler can only warn and ignore the option if not recognized
18145 # So say no if there are warnings other than the usual output.
18146 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18147 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18148 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
56efe974 18149 lt_cv_prog_compiler_pic_works_GCJ=yes
b57f37fb
WP
18150 fi
18151 fi
18152 $rm conftest*
18153
18154fi
56efe974
WP
18155{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
18156echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
b57f37fb 18157
56efe974 18158if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
b57f37fb
WP
18159 case $lt_prog_compiler_pic_GCJ in
18160 "" | " "*) ;;
18161 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18162 esac
18163else
18164 lt_prog_compiler_pic_GCJ=
18165 lt_prog_compiler_can_build_shared_GCJ=no
18166fi
18167
18168fi
18169case $host_os in
18170 # For platforms which do not support PIC, -DPIC is meaningless:
18171 *djgpp*)
18172 lt_prog_compiler_pic_GCJ=
18173 ;;
18174 *)
18175 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18176 ;;
18177esac
18178
18179#
18180# Check to make sure the static flag actually works.
18181#
18182wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18183{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18184echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
56efe974 18185if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
b57f37fb
WP
18186 echo $ECHO_N "(cached) $ECHO_C" >&6
18187else
56efe974 18188 lt_cv_prog_compiler_static_works_GCJ=no
b57f37fb
WP
18189 save_LDFLAGS="$LDFLAGS"
18190 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18191 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18192 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18193 # The linker can only warn and ignore the option if not recognized
18194 # So say no if there are warnings
18195 if test -s conftest.err; then
18196 # Append any errors to the config.log.
18197 cat conftest.err 1>&5
18198 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18199 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18200 if diff conftest.exp conftest.er2 >/dev/null; then
56efe974 18201 lt_cv_prog_compiler_static_works_GCJ=yes
b57f37fb
WP
18202 fi
18203 else
56efe974 18204 lt_cv_prog_compiler_static_works_GCJ=yes
b57f37fb
WP
18205 fi
18206 fi
56efe974 18207 $rm -r conftest*
b57f37fb
WP
18208 LDFLAGS="$save_LDFLAGS"
18209
18210fi
56efe974
WP
18211{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
18212echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
b57f37fb 18213
56efe974 18214if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
b57f37fb
WP
18215 :
18216else
18217 lt_prog_compiler_static_GCJ=
18218fi
18219
18220
18221{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18222echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18223if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18224 echo $ECHO_N "(cached) $ECHO_C" >&6
18225else
18226 lt_cv_prog_compiler_c_o_GCJ=no
18227 $rm -r conftest 2>/dev/null
18228 mkdir conftest
18229 cd conftest
18230 mkdir out
18231 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18232
18233 lt_compiler_flag="-o out/conftest2.$ac_objext"
18234 # Insert the option either (1) after the last *FLAGS variable, or
18235 # (2) before a word containing "conftest.", or (3) at the end.
18236 # Note that $ac_compile itself does not contain backslashes and begins
18237 # with a dollar sign (not a hyphen), so the echo should work correctly.
18238 lt_compile=`echo "$ac_compile" | $SED \
18239 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18240 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18241 -e 's:$: $lt_compiler_flag:'`
94b4fbf9 18242 (eval echo "\"\$as_me:18242: $lt_compile\"" >&5)
b57f37fb
WP
18243 (eval "$lt_compile" 2>out/conftest.err)
18244 ac_status=$?
18245 cat out/conftest.err >&5
94b4fbf9 18246 echo "$as_me:18246: \$? = $ac_status" >&5
b57f37fb
WP
18247 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18248 then
18249 # The compiler can only warn and ignore the option if not recognized
18250 # So say no if there are warnings
18251 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18252 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18253 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18254 lt_cv_prog_compiler_c_o_GCJ=yes
18255 fi
18256 fi
18257 chmod u+w . 2>&5
18258 $rm conftest*
18259 # SGI C++ compiler will create directory out/ii_files/ for
18260 # template instantiation
18261 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18262 $rm out/* && rmdir out
18263 cd ..
18264 rmdir conftest
18265 $rm conftest*
18266
18267fi
18268{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18269echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18270
18271
18272hard_links="nottested"
18273if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18274 # do not overwrite the value of need_locks provided by the user
18275 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18276echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18277 hard_links=yes
18278 $rm conftest*
18279 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18280 touch conftest.a
18281 ln conftest.a conftest.b 2>&5 || hard_links=no
18282 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18283 { echo "$as_me:$LINENO: result: $hard_links" >&5
18284echo "${ECHO_T}$hard_links" >&6; }
18285 if test "$hard_links" = no; then
18286 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18287echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18288 need_locks=warn
18289 fi
18290else
18291 need_locks=no
18292fi
18293
18294{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18295echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18296
18297 runpath_var=
18298 allow_undefined_flag_GCJ=
18299 enable_shared_with_static_runtimes_GCJ=no
18300 archive_cmds_GCJ=
18301 archive_expsym_cmds_GCJ=
18302 old_archive_From_new_cmds_GCJ=
18303 old_archive_from_expsyms_cmds_GCJ=
18304 export_dynamic_flag_spec_GCJ=
18305 whole_archive_flag_spec_GCJ=
18306 thread_safe_flag_spec_GCJ=
18307 hardcode_libdir_flag_spec_GCJ=
18308 hardcode_libdir_flag_spec_ld_GCJ=
18309 hardcode_libdir_separator_GCJ=
18310 hardcode_direct_GCJ=no
18311 hardcode_minus_L_GCJ=no
18312 hardcode_shlibpath_var_GCJ=unsupported
18313 link_all_deplibs_GCJ=unknown
18314 hardcode_automatic_GCJ=no
18315 module_cmds_GCJ=
18316 module_expsym_cmds_GCJ=
18317 always_export_symbols_GCJ=no
18318 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18319 # include_expsyms should be a list of space-separated symbols to be *always*
18320 # included in the symbol list
18321 include_expsyms_GCJ=
18322 # exclude_expsyms can be an extended regexp of symbols to exclude
18323 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18324 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18325 # as well as any symbol that contains `d'.
56efe974 18326 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
b57f37fb
WP
18327 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18328 # platforms (ab)use it in PIC code, but their linkers get confused if
18329 # the symbol is explicitly referenced. Since portable code cannot
18330 # rely on this symbol name, it's probably fine to never include it in
18331 # preloaded symbol tables.
56efe974 18332 # Exclude shared library initialization/finalization symbols.
b57f37fb
WP
18333 extract_expsyms_cmds=
18334 # Just being paranoid about ensuring that cc_basename is set.
18335 for cc_temp in $compiler""; do
18336 case $cc_temp in
18337 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18338 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18339 \-*) ;;
18340 *) break;;
18341 esac
18342done
18343cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18344
18345 case $host_os in
18346 cygwin* | mingw* | pw32*)
18347 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18348 # When not using gcc, we currently assume that we are using
18349 # Microsoft Visual C++.
18350 if test "$GCC" != yes; then
18351 with_gnu_ld=no
18352 fi
18353 ;;
18354 interix*)
18355 # we just hope/assume this is gcc and not c89 (= MSVC++)
18356 with_gnu_ld=yes
18357 ;;
18358 openbsd*)
18359 with_gnu_ld=no
18360 ;;
18361 esac
18362
18363 ld_shlibs_GCJ=yes
18364 if test "$with_gnu_ld" = yes; then
18365 # If archive_cmds runs LD, not CC, wlarc should be empty
18366 wlarc='${wl}'
18367
18368 # Set some defaults for GNU ld with shared library support. These
18369 # are reset later if shared libraries are not supported. Putting them
18370 # here allows them to be overridden if necessary.
18371 runpath_var=LD_RUN_PATH
18372 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18373 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18374 # ancient GNU ld didn't support --whole-archive et. al.
18375 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18376 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18377 else
18378 whole_archive_flag_spec_GCJ=
18379 fi
18380 supports_anon_versioning=no
18381 case `$LD -v 2>/dev/null` in
18382 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18383 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18384 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18385 *\ 2.11.*) ;; # other 2.11 versions
18386 *) supports_anon_versioning=yes ;;
18387 esac
18388
18389 # See if GNU ld supports shared libraries.
18390 case $host_os in
56efe974 18391 aix[3-9]*)
b57f37fb
WP
18392 # On AIX/PPC, the GNU linker is very broken
18393 if test "$host_cpu" != ia64; then
18394 ld_shlibs_GCJ=no
18395 cat <<EOF 1>&2
18396
18397*** Warning: the GNU linker, at least up to release 2.9.1, is reported
18398*** to be unable to reliably create shared libraries on AIX.
18399*** Therefore, libtool is disabling shared libraries support. If you
18400*** really care for shared libraries, you may want to modify your PATH
18401*** so that a non-GNU linker is found, and then restart.
18402
18403EOF
18404 fi
18405 ;;
18406
18407 amigaos*)
18408 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)'
18409 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18410 hardcode_minus_L_GCJ=yes
18411
18412 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18413 # that the semantics of dynamic libraries on AmigaOS, at least up
18414 # to version 4, is to share data among multiple programs linked
18415 # with the same dynamic library. Since this doesn't match the
18416 # behavior of shared libraries on other platforms, we can't use
18417 # them.
18418 ld_shlibs_GCJ=no
18419 ;;
18420
18421 beos*)
18422 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18423 allow_undefined_flag_GCJ=unsupported
18424 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18425 # support --undefined. This deserves some investigation. FIXME
18426 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18427 else
18428 ld_shlibs_GCJ=no
18429 fi
18430 ;;
18431
18432 cygwin* | mingw* | pw32*)
18433 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18434 # as there is no search path for DLLs.
18435 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18436 allow_undefined_flag_GCJ=unsupported
18437 always_export_symbols_GCJ=no
18438 enable_shared_with_static_runtimes_GCJ=yes
18439 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18440
18441 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18442 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18443 # If the export-symbols file already is a .def file (1st line
18444 # is EXPORTS), use it as is; otherwise, prepend...
18445 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18446 cp $export_symbols $output_objdir/$soname.def;
18447 else
18448 echo EXPORTS > $output_objdir/$soname.def;
18449 cat $export_symbols >> $output_objdir/$soname.def;
18450 fi~
18451 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18452 else
18453 ld_shlibs_GCJ=no
18454 fi
18455 ;;
18456
18457 interix[3-9]*)
18458 hardcode_direct_GCJ=no
18459 hardcode_shlibpath_var_GCJ=no
18460 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18461 export_dynamic_flag_spec_GCJ='${wl}-E'
18462 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18463 # Instead, shared libraries are loaded at an image base (0x10000000 by
18464 # default) and relocated if they conflict, which is a slow very memory
18465 # consuming and fragmenting process. To avoid this, we pick a random,
18466 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18467 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18468 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'
18469 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'
18470 ;;
18471
18472 gnu* | linux* | k*bsd*-gnu)
18473 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18474 tmp_addflag=
18475 case $cc_basename,$host_cpu in
18476 pgcc*) # Portland Group C compiler
18477 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'
18478 tmp_addflag=' $pic_flag'
18479 ;;
18480 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18481 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'
18482 tmp_addflag=' $pic_flag -Mnomain' ;;
18483 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18484 tmp_addflag=' -i_dynamic' ;;
18485 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18486 tmp_addflag=' -i_dynamic -nofor_main' ;;
18487 ifc* | ifort*) # Intel Fortran compiler
18488 tmp_addflag=' -nofor_main' ;;
18489 esac
18490 case `$CC -V 2>&1 | sed 5q` in
18491 *Sun\ C*) # Sun C 5.9
18492 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'
18493 tmp_sharedflag='-G' ;;
18494 *Sun\ F*) # Sun Fortran 8.3
18495 tmp_sharedflag='-G' ;;
18496 *)
18497 tmp_sharedflag='-shared' ;;
18498 esac
18499 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18500
18501 if test $supports_anon_versioning = yes; then
18502 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18503 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18504 $echo "local: *; };" >> $output_objdir/$libname.ver~
18505 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18506 fi
18507 link_all_deplibs_GCJ=no
18508 else
18509 ld_shlibs_GCJ=no
18510 fi
18511 ;;
18512
18513 netbsd* | netbsdelf*-gnu)
18514 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18515 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18516 wlarc=
18517 else
18518 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18519 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18520 fi
18521 ;;
18522
18523 solaris*)
18524 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18525 ld_shlibs_GCJ=no
18526 cat <<EOF 1>&2
18527
18528*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18529*** create shared libraries on Solaris systems. Therefore, libtool
18530*** is disabling shared libraries support. We urge you to upgrade GNU
18531*** binutils to release 2.9.1 or newer. Another option is to modify
18532*** your PATH or compiler configuration so that the native linker is
18533*** used, and then restart.
18534
18535EOF
18536 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18537 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18538 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18539 else
18540 ld_shlibs_GCJ=no
18541 fi
18542 ;;
18543
18544 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18545 case `$LD -v 2>&1` in
18546 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18547 ld_shlibs_GCJ=no
18548 cat <<_LT_EOF 1>&2
18549
18550*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18551*** reliably create shared libraries on SCO systems. Therefore, libtool
18552*** is disabling shared libraries support. We urge you to upgrade GNU
18553*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18554*** your PATH or compiler configuration so that the native linker is
18555*** used, and then restart.
18556
18557_LT_EOF
18558 ;;
18559 *)
18560 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18561 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18562 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18563 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18564 else
18565 ld_shlibs_GCJ=no
18566 fi
18567 ;;
18568 esac
18569 ;;
18570
18571 sunos4*)
18572 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18573 wlarc=
18574 hardcode_direct_GCJ=yes
18575 hardcode_shlibpath_var_GCJ=no
18576 ;;
18577
18578 *)
18579 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18580 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18581 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18582 else
18583 ld_shlibs_GCJ=no
18584 fi
18585 ;;
18586 esac
18587
18588 if test "$ld_shlibs_GCJ" = no; then
18589 runpath_var=
18590 hardcode_libdir_flag_spec_GCJ=
18591 export_dynamic_flag_spec_GCJ=
18592 whole_archive_flag_spec_GCJ=
18593 fi
18594 else
18595 # PORTME fill in a description of your system's linker (not GNU ld)
18596 case $host_os in
18597 aix3*)
18598 allow_undefined_flag_GCJ=unsupported
18599 always_export_symbols_GCJ=yes
18600 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'
18601 # Note: this linker hardcodes the directories in LIBPATH if there
18602 # are no directories specified by -L.
18603 hardcode_minus_L_GCJ=yes
18604 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18605 # Neither direct hardcoding nor static linking is supported with a
18606 # broken collect2.
18607 hardcode_direct_GCJ=unsupported
18608 fi
18609 ;;
18610
56efe974 18611 aix[4-9]*)
b57f37fb
WP
18612 if test "$host_cpu" = ia64; then
18613 # On IA64, the linker does run time linking by default, so we don't
18614 # have to do anything special.
18615 aix_use_runtimelinking=no
18616 exp_sym_flag='-Bexport'
18617 no_entry_flag=""
18618 else
18619 # If we're using GNU nm, then we don't want the "-C" option.
18620 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18621 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18622 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'
18623 else
18624 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'
18625 fi
18626 aix_use_runtimelinking=no
18627
18628 # Test if we are trying to use run time linking or normal
18629 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18630 # need to do runtime linking.
56efe974 18631 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
b57f37fb
WP
18632 for ld_flag in $LDFLAGS; do
18633 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18634 aix_use_runtimelinking=yes
18635 break
18636 fi
18637 done
18638 ;;
18639 esac
18640
18641 exp_sym_flag='-bexport'
18642 no_entry_flag='-bnoentry'
18643 fi
18644
18645 # When large executables or shared objects are built, AIX ld can
18646 # have problems creating the table of contents. If linking a library
18647 # or program results in "error TOC overflow" add -mminimal-toc to
18648 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18649 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18650
18651 archive_cmds_GCJ=''
18652 hardcode_direct_GCJ=yes
18653 hardcode_libdir_separator_GCJ=':'
18654 link_all_deplibs_GCJ=yes
18655
18656 if test "$GCC" = yes; then
18657 case $host_os in aix4.[012]|aix4.[012].*)
18658 # We only want to do this on AIX 4.2 and lower, the check
18659 # below for broken collect2 doesn't work under 4.3+
18660 collect2name=`${CC} -print-prog-name=collect2`
18661 if test -f "$collect2name" && \
18662 strings "$collect2name" | grep resolve_lib_name >/dev/null
18663 then
18664 # We have reworked collect2
18665 :
18666 else
18667 # We have old collect2
18668 hardcode_direct_GCJ=unsupported
18669 # It fails to find uninstalled libraries when the uninstalled
18670 # path is not listed in the libpath. Setting hardcode_minus_L
18671 # to unsupported forces relinking
18672 hardcode_minus_L_GCJ=yes
18673 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18674 hardcode_libdir_separator_GCJ=
18675 fi
18676 ;;
18677 esac
18678 shared_flag='-shared'
18679 if test "$aix_use_runtimelinking" = yes; then
18680 shared_flag="$shared_flag "'${wl}-G'
18681 fi
18682 else
18683 # not using gcc
18684 if test "$host_cpu" = ia64; then
18685 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18686 # chokes on -Wl,-G. The following line is correct:
18687 shared_flag='-G'
18688 else
18689 if test "$aix_use_runtimelinking" = yes; then
18690 shared_flag='${wl}-G'
18691 else
18692 shared_flag='${wl}-bM:SRE'
18693 fi
18694 fi
18695 fi
18696
18697 # It seems that -bexpall does not export symbols beginning with
18698 # underscore (_), so it is better to generate a list of symbols to export.
18699 always_export_symbols_GCJ=yes
18700 if test "$aix_use_runtimelinking" = yes; then
18701 # Warning - without using the other runtime loading flags (-brtl),
18702 # -berok will link without error, but may produce a broken library.
18703 allow_undefined_flag_GCJ='-berok'
18704 # Determine the default libpath from the value encoded in an empty executable.
18705 cat >conftest.$ac_ext <<_ACEOF
18706/* confdefs.h. */
18707_ACEOF
18708cat confdefs.h >>conftest.$ac_ext
18709cat >>conftest.$ac_ext <<_ACEOF
18710/* end confdefs.h. */
18711
18712int
18713main ()
18714{
18715
18716 ;
18717 return 0;
18718}
18719_ACEOF
18720rm -f conftest.$ac_objext conftest$ac_exeext
18721if { (ac_try="$ac_link"
18722case "(($ac_try" in
18723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18724 *) ac_try_echo=$ac_try;;
18725esac
18726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18727 (eval "$ac_link") 2>conftest.er1
18728 ac_status=$?
18729 grep -v '^ *+' conftest.er1 >conftest.err
18730 rm -f conftest.er1
18731 cat conftest.err >&5
18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); } && {
18734 test -z "$ac_c_werror_flag" ||
18735 test ! -s conftest.err
18736 } && test -s conftest$ac_exeext &&
18737 $as_test_x conftest$ac_exeext; then
18738
18739lt_aix_libpath_sed='
18740 /Import File Strings/,/^$/ {
18741 /^0/ {
18742 s/^0 *\(.*\)$/\1/
18743 p
18744 }
18745 }'
18746aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18747# Check for a 64-bit object if we didn't find anything.
18748if test -z "$aix_libpath"; then
18749 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18750fi
18751else
18752 echo "$as_me: failed program was:" >&5
18753sed 's/^/| /' conftest.$ac_ext >&5
18754
18755
18756fi
18757
18758rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18759 conftest$ac_exeext conftest.$ac_ext
18760if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18761
18762 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18763 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"
18764 else
18765 if test "$host_cpu" = ia64; then
18766 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18767 allow_undefined_flag_GCJ="-z nodefs"
18768 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"
18769 else
18770 # Determine the default libpath from the value encoded in an empty executable.
18771 cat >conftest.$ac_ext <<_ACEOF
18772/* confdefs.h. */
18773_ACEOF
18774cat confdefs.h >>conftest.$ac_ext
18775cat >>conftest.$ac_ext <<_ACEOF
18776/* end confdefs.h. */
18777
18778int
18779main ()
18780{
18781
18782 ;
18783 return 0;
18784}
18785_ACEOF
18786rm -f conftest.$ac_objext conftest$ac_exeext
18787if { (ac_try="$ac_link"
18788case "(($ac_try" in
18789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18790 *) ac_try_echo=$ac_try;;
18791esac
18792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18793 (eval "$ac_link") 2>conftest.er1
18794 ac_status=$?
18795 grep -v '^ *+' conftest.er1 >conftest.err
18796 rm -f conftest.er1
18797 cat conftest.err >&5
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); } && {
18800 test -z "$ac_c_werror_flag" ||
18801 test ! -s conftest.err
18802 } && test -s conftest$ac_exeext &&
18803 $as_test_x conftest$ac_exeext; then
18804
18805lt_aix_libpath_sed='
18806 /Import File Strings/,/^$/ {
18807 /^0/ {
18808 s/^0 *\(.*\)$/\1/
18809 p
18810 }
18811 }'
18812aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18813# Check for a 64-bit object if we didn't find anything.
18814if test -z "$aix_libpath"; then
18815 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18816fi
18817else
18818 echo "$as_me: failed program was:" >&5
18819sed 's/^/| /' conftest.$ac_ext >&5
18820
18821
18822fi
18823
18824rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18825 conftest$ac_exeext conftest.$ac_ext
18826if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18827
18828 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18829 # Warning - without using the other run time loading flags,
18830 # -berok will link without error, but may produce a broken library.
18831 no_undefined_flag_GCJ=' ${wl}-bernotok'
18832 allow_undefined_flag_GCJ=' ${wl}-berok'
18833 # Exported symbols can be pulled into shared objects from archives
18834 whole_archive_flag_spec_GCJ='$convenience'
18835 archive_cmds_need_lc_GCJ=yes
18836 # This is similar to how AIX traditionally builds its shared libraries.
18837 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'
18838 fi
18839 fi
18840 ;;
18841
18842 amigaos*)
18843 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)'
18844 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18845 hardcode_minus_L_GCJ=yes
18846 # see comment about different semantics on the GNU ld section
18847 ld_shlibs_GCJ=no
18848 ;;
18849
18850 bsdi[45]*)
18851 export_dynamic_flag_spec_GCJ=-rdynamic
18852 ;;
18853
18854 cygwin* | mingw* | pw32*)
18855 # When not using gcc, we currently assume that we are using
18856 # Microsoft Visual C++.
18857 # hardcode_libdir_flag_spec is actually meaningless, as there is
18858 # no search path for DLLs.
18859 hardcode_libdir_flag_spec_GCJ=' '
18860 allow_undefined_flag_GCJ=unsupported
18861 # Tell ltmain to make .lib files, not .a files.
18862 libext=lib
18863 # Tell ltmain to make .dll files, not .so files.
18864 shrext_cmds=".dll"
18865 # FIXME: Setting linknames here is a bad hack.
18866 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18867 # The linker will automatically build a .lib file if we build a DLL.
18868 old_archive_From_new_cmds_GCJ='true'
18869 # FIXME: Should let the user specify the lib program.
18870 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18871 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18872 enable_shared_with_static_runtimes_GCJ=yes
18873 ;;
18874
18875 darwin* | rhapsody*)
18876 case $host_os in
18877 rhapsody* | darwin1.[012])
18878 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18879 ;;
18880 *) # Darwin 1.3 on
18881 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18882 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18883 else
18884 case ${MACOSX_DEPLOYMENT_TARGET} in
18885 10.[012])
18886 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18887 ;;
18888 10.*)
18889 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18890 ;;
18891 esac
18892 fi
18893 ;;
18894 esac
18895 archive_cmds_need_lc_GCJ=no
18896 hardcode_direct_GCJ=no
18897 hardcode_automatic_GCJ=yes
18898 hardcode_shlibpath_var_GCJ=unsupported
18899 whole_archive_flag_spec_GCJ=''
18900 link_all_deplibs_GCJ=yes
18901 if test "$GCC" = yes ; then
18902 output_verbose_link_cmd='echo'
56efe974
WP
18903 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18904 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18905 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18906 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
b57f37fb
WP
18907 else
18908 case $cc_basename in
18909 xlc*)
18910 output_verbose_link_cmd='echo'
18911 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18912 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18913 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18914 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}'
18915 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}'
18916 ;;
18917 *)
18918 ld_shlibs_GCJ=no
18919 ;;
18920 esac
18921 fi
18922 ;;
18923
18924 dgux*)
18925 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18926 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18927 hardcode_shlibpath_var_GCJ=no
18928 ;;
18929
18930 freebsd1*)
18931 ld_shlibs_GCJ=no
18932 ;;
18933
18934 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18935 # support. Future versions do this automatically, but an explicit c++rt0.o
18936 # does not break anything, and helps significantly (at the cost of a little
18937 # extra space).
18938 freebsd2.2*)
18939 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18940 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18941 hardcode_direct_GCJ=yes
18942 hardcode_shlibpath_var_GCJ=no
18943 ;;
18944
18945 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18946 freebsd2*)
18947 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18948 hardcode_direct_GCJ=yes
18949 hardcode_minus_L_GCJ=yes
18950 hardcode_shlibpath_var_GCJ=no
18951 ;;
18952
18953 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18954 freebsd* | dragonfly*)
18955 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18956 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18957 hardcode_direct_GCJ=yes
18958 hardcode_shlibpath_var_GCJ=no
18959 ;;
18960
18961 hpux9*)
18962 if test "$GCC" = yes; then
18963 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'
18964 else
18965 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'
18966 fi
18967 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18968 hardcode_libdir_separator_GCJ=:
18969 hardcode_direct_GCJ=yes
18970
18971 # hardcode_minus_L: Not really in the search PATH,
18972 # but as the default location of the library.
18973 hardcode_minus_L_GCJ=yes
18974 export_dynamic_flag_spec_GCJ='${wl}-E'
18975 ;;
18976
18977 hpux10*)
18978 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18979 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18980 else
18981 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18982 fi
18983 if test "$with_gnu_ld" = no; then
18984 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18985 hardcode_libdir_separator_GCJ=:
18986
18987 hardcode_direct_GCJ=yes
18988 export_dynamic_flag_spec_GCJ='${wl}-E'
18989
18990 # hardcode_minus_L: Not really in the search PATH,
18991 # but as the default location of the library.
18992 hardcode_minus_L_GCJ=yes
18993 fi
18994 ;;
18995
18996 hpux11*)
18997 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18998 case $host_cpu in
18999 hppa*64*)
19000 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19001 ;;
19002 ia64*)
19003 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19004 ;;
19005 *)
19006 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19007 ;;
19008 esac
19009 else
19010 case $host_cpu in
19011 hppa*64*)
19012 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19013 ;;
19014 ia64*)
19015 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19016 ;;
19017 *)
19018 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19019 ;;
19020 esac
19021 fi
19022 if test "$with_gnu_ld" = no; then
19023 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19024 hardcode_libdir_separator_GCJ=:
19025
19026 case $host_cpu in
19027 hppa*64*|ia64*)
19028 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19029 hardcode_direct_GCJ=no
19030 hardcode_shlibpath_var_GCJ=no
19031 ;;
19032 *)
19033 hardcode_direct_GCJ=yes
19034 export_dynamic_flag_spec_GCJ='${wl}-E'
19035
19036 # hardcode_minus_L: Not really in the search PATH,
19037 # but as the default location of the library.
19038 hardcode_minus_L_GCJ=yes
19039 ;;
19040 esac
19041 fi
19042 ;;
19043
19044 irix5* | irix6* | nonstopux*)
19045 if test "$GCC" = yes; then
19046 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'
19047 else
19048 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'
19049 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19050 fi
19051 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19052 hardcode_libdir_separator_GCJ=:
19053 link_all_deplibs_GCJ=yes
19054 ;;
19055
19056 netbsd* | netbsdelf*-gnu)
19057 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19058 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19059 else
19060 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19061 fi
19062 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19063 hardcode_direct_GCJ=yes
19064 hardcode_shlibpath_var_GCJ=no
19065 ;;
19066
19067 newsos6)
19068 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19069 hardcode_direct_GCJ=yes
19070 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19071 hardcode_libdir_separator_GCJ=:
19072 hardcode_shlibpath_var_GCJ=no
19073 ;;
19074
19075 openbsd*)
19076 if test -f /usr/libexec/ld.so; then
19077 hardcode_direct_GCJ=yes
19078 hardcode_shlibpath_var_GCJ=no
19079 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19080 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19081 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19082 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19083 export_dynamic_flag_spec_GCJ='${wl}-E'
19084 else
19085 case $host_os in
19086 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19087 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19088 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19089 ;;
19090 *)
19091 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19092 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19093 ;;
19094 esac
19095 fi
19096 else
19097 ld_shlibs_GCJ=no
19098 fi
19099 ;;
19100
19101 os2*)
19102 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19103 hardcode_minus_L_GCJ=yes
19104 allow_undefined_flag_GCJ=unsupported
19105 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'
19106 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19107 ;;
19108
19109 osf3*)
19110 if test "$GCC" = yes; then
19111 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19112 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'
19113 else
19114 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19115 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'
19116 fi
19117 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19118 hardcode_libdir_separator_GCJ=:
19119 ;;
19120
19121 osf4* | osf5*) # as osf3* with the addition of -msym flag
19122 if test "$GCC" = yes; then
19123 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19124 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'
19125 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19126 else
19127 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19128 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'
19129 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~
19130 $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'
19131
19132 # Both c and cxx compiler support -rpath directly
19133 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19134 fi
19135 hardcode_libdir_separator_GCJ=:
19136 ;;
19137
19138 solaris*)
19139 no_undefined_flag_GCJ=' -z text'
19140 if test "$GCC" = yes; then
19141 wlarc='${wl}'
19142 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19143 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19144 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19145 else
19146 wlarc=''
19147 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19148 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19149 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19150 fi
19151 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19152 hardcode_shlibpath_var_GCJ=no
19153 case $host_os in
19154 solaris2.[0-5] | solaris2.[0-5].*) ;;
19155 *)
19156 # The compiler driver will combine and reorder linker options,
19157 # but understands `-z linker_flag'. GCC discards it without `$wl',
19158 # but is careful enough not to reorder.
19159 # Supported since Solaris 2.6 (maybe 2.5.1?)
19160 if test "$GCC" = yes; then
19161 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19162 else
19163 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19164 fi
19165 ;;
19166 esac
19167 link_all_deplibs_GCJ=yes
19168 ;;
19169
19170 sunos4*)
19171 if test "x$host_vendor" = xsequent; then
19172 # Use $CC to link under sequent, because it throws in some extra .o
19173 # files that make .init and .fini sections work.
19174 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19175 else
19176 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19177 fi
19178 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19179 hardcode_direct_GCJ=yes
19180 hardcode_minus_L_GCJ=yes
19181 hardcode_shlibpath_var_GCJ=no
19182 ;;
19183
19184 sysv4)
19185 case $host_vendor in
19186 sni)
19187 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19188 hardcode_direct_GCJ=yes # is this really true???
19189 ;;
19190 siemens)
19191 ## LD is ld it makes a PLAMLIB
19192 ## CC just makes a GrossModule.
19193 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19194 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19195 hardcode_direct_GCJ=no
19196 ;;
19197 motorola)
19198 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19199 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19200 ;;
19201 esac
19202 runpath_var='LD_RUN_PATH'
19203 hardcode_shlibpath_var_GCJ=no
19204 ;;
19205
19206 sysv4.3*)
19207 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19208 hardcode_shlibpath_var_GCJ=no
19209 export_dynamic_flag_spec_GCJ='-Bexport'
19210 ;;
19211
19212 sysv4*MP*)
19213 if test -d /usr/nec; then
19214 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19215 hardcode_shlibpath_var_GCJ=no
19216 runpath_var=LD_RUN_PATH
19217 hardcode_runpath_var=yes
19218 ld_shlibs_GCJ=yes
19219 fi
19220 ;;
19221
19222 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19223 no_undefined_flag_GCJ='${wl}-z,text'
19224 archive_cmds_need_lc_GCJ=no
19225 hardcode_shlibpath_var_GCJ=no
19226 runpath_var='LD_RUN_PATH'
19227
19228 if test "$GCC" = yes; then
19229 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19230 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19231 else
19232 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19233 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19234 fi
19235 ;;
19236
19237 sysv5* | sco3.2v5* | sco5v6*)
19238 # Note: We can NOT use -z defs as we might desire, because we do not
19239 # link with -lc, and that would cause any symbols used from libc to
19240 # always be unresolved, which means just about no library would
19241 # ever link correctly. If we're not using GNU ld we use -z text
19242 # though, which does catch some bad symbols but isn't as heavy-handed
19243 # as -z defs.
19244 no_undefined_flag_GCJ='${wl}-z,text'
19245 allow_undefined_flag_GCJ='${wl}-z,nodefs'
19246 archive_cmds_need_lc_GCJ=no
19247 hardcode_shlibpath_var_GCJ=no
19248 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19249 hardcode_libdir_separator_GCJ=':'
19250 link_all_deplibs_GCJ=yes
19251 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19252 runpath_var='LD_RUN_PATH'
19253
19254 if test "$GCC" = yes; then
19255 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19256 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19257 else
19258 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19259 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19260 fi
19261 ;;
19262
19263 uts4*)
19264 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19265 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19266 hardcode_shlibpath_var_GCJ=no
19267 ;;
19268
19269 *)
19270 ld_shlibs_GCJ=no
19271 ;;
19272 esac
19273 fi
19274
19275{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19276echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19277test "$ld_shlibs_GCJ" = no && can_build_shared=no
19278
19279#
19280# Do we need to explicitly link libc?
19281#
19282case "x$archive_cmds_need_lc_GCJ" in
19283x|xyes)
19284 # Assume -lc should be added
19285 archive_cmds_need_lc_GCJ=yes
19286
19287 if test "$enable_shared" = yes && test "$GCC" = yes; then
19288 case $archive_cmds_GCJ in
19289 *'~'*)
19290 # FIXME: we may have to deal with multi-command sequences.
19291 ;;
19292 '$CC '*)
19293 # Test whether the compiler implicitly links with -lc since on some
19294 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19295 # to ld, don't add -lc before -lgcc.
19296 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19297echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19298 $rm conftest*
19299 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19300
19301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19302 (eval $ac_compile) 2>&5
19303 ac_status=$?
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); } 2>conftest.err; then
19306 soname=conftest
19307 lib=conftest
19308 libobjs=conftest.$ac_objext
19309 deplibs=
19310 wl=$lt_prog_compiler_wl_GCJ
19311 pic_flag=$lt_prog_compiler_pic_GCJ
19312 compiler_flags=-v
19313 linker_flags=-v
19314 verstring=
19315 output_objdir=.
19316 libname=conftest
19317 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19318 allow_undefined_flag_GCJ=
19319 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19320 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19321 ac_status=$?
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); }
19324 then
19325 archive_cmds_need_lc_GCJ=no
19326 else
19327 archive_cmds_need_lc_GCJ=yes
19328 fi
19329 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19330 else
19331 cat conftest.err 1>&5
19332 fi
19333 $rm conftest*
19334 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19335echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19336 ;;
19337 esac
19338 fi
19339 ;;
19340esac
19341
19342{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19343echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19344library_names_spec=
19345libname_spec='lib$name'
19346soname_spec=
19347shrext_cmds=".so"
19348postinstall_cmds=
19349postuninstall_cmds=
19350finish_cmds=
19351finish_eval=
19352shlibpath_var=
19353shlibpath_overrides_runpath=unknown
19354version_type=none
19355dynamic_linker="$host_os ld.so"
19356sys_lib_dlsearch_path_spec="/lib /usr/lib"
19357
19358need_lib_prefix=unknown
19359hardcode_into_libs=no
19360
19361# when you set need_version to no, make sure it does not cause -set_version
19362# flags to be left without arguments
19363need_version=unknown
19364
19365case $host_os in
19366aix3*)
19367 version_type=linux
19368 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19369 shlibpath_var=LIBPATH
19370
19371 # AIX 3 has no versioning support, so we append a major version to the name.
19372 soname_spec='${libname}${release}${shared_ext}$major'
19373 ;;
19374
56efe974 19375aix[4-9]*)
b57f37fb
WP
19376 version_type=linux
19377 need_lib_prefix=no
19378 need_version=no
19379 hardcode_into_libs=yes
19380 if test "$host_cpu" = ia64; then
19381 # AIX 5 supports IA64
19382 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19383 shlibpath_var=LD_LIBRARY_PATH
19384 else
19385 # With GCC up to 2.95.x, collect2 would create an import file
19386 # for dependence libraries. The import file would start with
19387 # the line `#! .'. This would cause the generated library to
19388 # depend on `.', always an invalid library. This was fixed in
19389 # development snapshots of GCC prior to 3.0.
19390 case $host_os in
19391 aix4 | aix4.[01] | aix4.[01].*)
19392 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19393 echo ' yes '
19394 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19395 :
19396 else
19397 can_build_shared=no
19398 fi
19399 ;;
19400 esac
19401 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19402 # soname into executable. Probably we can add versioning support to
19403 # collect2, so additional links can be useful in future.
19404 if test "$aix_use_runtimelinking" = yes; then
19405 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19406 # instead of lib<name>.a to let people know that these are not
19407 # typical AIX shared libraries.
19408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19409 else
19410 # We preserve .a as extension for shared libraries through AIX4.2
19411 # and later when we are not doing run time linking.
19412 library_names_spec='${libname}${release}.a $libname.a'
19413 soname_spec='${libname}${release}${shared_ext}$major'
19414 fi
19415 shlibpath_var=LIBPATH
19416 fi
19417 ;;
19418
19419amigaos*)
19420 library_names_spec='$libname.ixlibrary $libname.a'
19421 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19422 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'
19423 ;;
19424
19425beos*)
19426 library_names_spec='${libname}${shared_ext}'
19427 dynamic_linker="$host_os ld.so"
19428 shlibpath_var=LIBRARY_PATH
19429 ;;
19430
19431bsdi[45]*)
19432 version_type=linux
19433 need_version=no
19434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19435 soname_spec='${libname}${release}${shared_ext}$major'
19436 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19437 shlibpath_var=LD_LIBRARY_PATH
19438 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19439 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19440 # the default ld.so.conf also contains /usr/contrib/lib and
19441 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19442 # libtool to hard-code these into programs
19443 ;;
19444
19445cygwin* | mingw* | pw32*)
19446 version_type=windows
19447 shrext_cmds=".dll"
19448 need_version=no
19449 need_lib_prefix=no
19450
19451 case $GCC,$host_os in
19452 yes,cygwin* | yes,mingw* | yes,pw32*)
19453 library_names_spec='$libname.dll.a'
19454 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19455 postinstall_cmds='base_file=`basename \${file}`~
19456 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19457 dldir=$destdir/`dirname \$dlpath`~
19458 test -d \$dldir || mkdir -p \$dldir~
19459 $install_prog $dir/$dlname \$dldir/$dlname~
19460 chmod a+x \$dldir/$dlname'
19461 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19462 dlpath=$dir/\$dldll~
19463 $rm \$dlpath'
19464 shlibpath_overrides_runpath=yes
19465
19466 case $host_os in
19467 cygwin*)
19468 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19469 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19470 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19471 ;;
19472 mingw*)
19473 # MinGW DLLs use traditional 'lib' prefix
19474 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19475 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19476 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19477 # It is most probably a Windows format PATH printed by
19478 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19479 # path with ; separators, and with drive letters. We can handle the
19480 # drive letters (cygwin fileutils understands them), so leave them,
19481 # especially as we might pass files found there to a mingw objdump,
19482 # which wouldn't understand a cygwinified path. Ahh.
19483 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19484 else
19485 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19486 fi
19487 ;;
19488 pw32*)
19489 # pw32 DLLs use 'pw' prefix rather than 'lib'
19490 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19491 ;;
19492 esac
19493 ;;
19494
19495 *)
19496 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19497 ;;
19498 esac
19499 dynamic_linker='Win32 ld.exe'
19500 # FIXME: first we should search . and the directory the executable is in
19501 shlibpath_var=PATH
19502 ;;
19503
19504darwin* | rhapsody*)
19505 dynamic_linker="$host_os dyld"
19506 version_type=darwin
19507 need_lib_prefix=no
19508 need_version=no
19509 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19510 soname_spec='${libname}${release}${major}$shared_ext'
19511 shlibpath_overrides_runpath=yes
19512 shlibpath_var=DYLD_LIBRARY_PATH
19513 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19514
19515 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19516 ;;
19517
19518dgux*)
19519 version_type=linux
19520 need_lib_prefix=no
19521 need_version=no
19522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19523 soname_spec='${libname}${release}${shared_ext}$major'
19524 shlibpath_var=LD_LIBRARY_PATH
19525 ;;
19526
19527freebsd1*)
19528 dynamic_linker=no
19529 ;;
19530
19531freebsd* | dragonfly*)
19532 # DragonFly does not have aout. When/if they implement a new
19533 # versioning mechanism, adjust this.
19534 if test -x /usr/bin/objformat; then
19535 objformat=`/usr/bin/objformat`
19536 else
19537 case $host_os in
19538 freebsd[123]*) objformat=aout ;;
19539 *) objformat=elf ;;
19540 esac
19541 fi
19542 version_type=freebsd-$objformat
19543 case $version_type in
19544 freebsd-elf*)
19545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19546 need_version=no
19547 need_lib_prefix=no
19548 ;;
19549 freebsd-*)
19550 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19551 need_version=yes
19552 ;;
19553 esac
19554 shlibpath_var=LD_LIBRARY_PATH
19555 case $host_os in
19556 freebsd2*)
19557 shlibpath_overrides_runpath=yes
19558 ;;
19559 freebsd3.[01]* | freebsdelf3.[01]*)
19560 shlibpath_overrides_runpath=yes
19561 hardcode_into_libs=yes
19562 ;;
19563 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19564 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19565 shlibpath_overrides_runpath=no
19566 hardcode_into_libs=yes
19567 ;;
19568 *) # from 4.6 on, and DragonFly
19569 shlibpath_overrides_runpath=yes
19570 hardcode_into_libs=yes
19571 ;;
19572 esac
19573 ;;
19574
19575gnu*)
19576 version_type=linux
19577 need_lib_prefix=no
19578 need_version=no
19579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19580 soname_spec='${libname}${release}${shared_ext}$major'
19581 shlibpath_var=LD_LIBRARY_PATH
19582 hardcode_into_libs=yes
19583 ;;
19584
19585hpux9* | hpux10* | hpux11*)
19586 # Give a soname corresponding to the major version so that dld.sl refuses to
19587 # link against other versions.
19588 version_type=sunos
19589 need_lib_prefix=no
19590 need_version=no
19591 case $host_cpu in
19592 ia64*)
19593 shrext_cmds='.so'
19594 hardcode_into_libs=yes
19595 dynamic_linker="$host_os dld.so"
19596 shlibpath_var=LD_LIBRARY_PATH
19597 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19599 soname_spec='${libname}${release}${shared_ext}$major'
19600 if test "X$HPUX_IA64_MODE" = X32; then
19601 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19602 else
19603 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19604 fi
19605 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19606 ;;
19607 hppa*64*)
19608 shrext_cmds='.sl'
19609 hardcode_into_libs=yes
19610 dynamic_linker="$host_os dld.sl"
19611 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19612 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19614 soname_spec='${libname}${release}${shared_ext}$major'
19615 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19616 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19617 ;;
19618 *)
19619 shrext_cmds='.sl'
19620 dynamic_linker="$host_os dld.sl"
19621 shlibpath_var=SHLIB_PATH
19622 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19624 soname_spec='${libname}${release}${shared_ext}$major'
19625 ;;
19626 esac
19627 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19628 postinstall_cmds='chmod 555 $lib'
19629 ;;
19630
19631interix[3-9]*)
19632 version_type=linux
19633 need_lib_prefix=no
19634 need_version=no
19635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19636 soname_spec='${libname}${release}${shared_ext}$major'
19637 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19638 shlibpath_var=LD_LIBRARY_PATH
19639 shlibpath_overrides_runpath=no
19640 hardcode_into_libs=yes
19641 ;;
19642
19643irix5* | irix6* | nonstopux*)
19644 case $host_os in
19645 nonstopux*) version_type=nonstopux ;;
19646 *)
19647 if test "$lt_cv_prog_gnu_ld" = yes; then
19648 version_type=linux
19649 else
19650 version_type=irix
19651 fi ;;
19652 esac
19653 need_lib_prefix=no
19654 need_version=no
19655 soname_spec='${libname}${release}${shared_ext}$major'
19656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19657 case $host_os in
19658 irix5* | nonstopux*)
19659 libsuff= shlibsuff=
19660 ;;
19661 *)
19662 case $LD in # libtool.m4 will add one of these switches to LD
19663 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19664 libsuff= shlibsuff= libmagic=32-bit;;
19665 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19666 libsuff=32 shlibsuff=N32 libmagic=N32;;
19667 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19668 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19669 *) libsuff= shlibsuff= libmagic=never-match;;
19670 esac
19671 ;;
19672 esac
19673 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19674 shlibpath_overrides_runpath=no
19675 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19676 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19677 hardcode_into_libs=yes
19678 ;;
19679
19680# No shared lib support for Linux oldld, aout, or coff.
19681linux*oldld* | linux*aout* | linux*coff*)
19682 dynamic_linker=no
19683 ;;
19684
19685# This must be Linux ELF.
19686linux* | k*bsd*-gnu)
19687 version_type=linux
19688 need_lib_prefix=no
19689 need_version=no
19690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19691 soname_spec='${libname}${release}${shared_ext}$major'
19692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19693 shlibpath_var=LD_LIBRARY_PATH
19694 shlibpath_overrides_runpath=no
19695 # This implies no fast_install, which is unacceptable.
19696 # Some rework will be needed to allow for fast_install
19697 # before this can be enabled.
19698 hardcode_into_libs=yes
19699
19700 # Append ld.so.conf contents to the search path
19701 if test -f /etc/ld.so.conf; then
19702 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' ' '`
19703 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19704 fi
19705
19706 # We used to test for /lib/ld.so.1 and disable shared libraries on
19707 # powerpc, because MkLinux only supported shared libraries with the
19708 # GNU dynamic linker. Since this was broken with cross compilers,
19709 # most powerpc-linux boxes support dynamic linking these days and
19710 # people can always --disable-shared, the test was removed, and we
19711 # assume the GNU/Linux dynamic linker is in use.
19712 dynamic_linker='GNU/Linux ld.so'
19713 ;;
19714
19715netbsdelf*-gnu)
19716 version_type=linux
19717 need_lib_prefix=no
19718 need_version=no
19719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19720 soname_spec='${libname}${release}${shared_ext}$major'
19721 shlibpath_var=LD_LIBRARY_PATH
19722 shlibpath_overrides_runpath=no
19723 hardcode_into_libs=yes
19724 dynamic_linker='NetBSD ld.elf_so'
19725 ;;
19726
19727netbsd*)
19728 version_type=sunos
19729 need_lib_prefix=no
19730 need_version=no
19731 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19733 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19734 dynamic_linker='NetBSD (a.out) ld.so'
19735 else
19736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19737 soname_spec='${libname}${release}${shared_ext}$major'
19738 dynamic_linker='NetBSD ld.elf_so'
19739 fi
19740 shlibpath_var=LD_LIBRARY_PATH
19741 shlibpath_overrides_runpath=yes
19742 hardcode_into_libs=yes
19743 ;;
19744
19745newsos6)
19746 version_type=linux
19747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19748 shlibpath_var=LD_LIBRARY_PATH
19749 shlibpath_overrides_runpath=yes
19750 ;;
19751
19752nto-qnx*)
19753 version_type=linux
19754 need_lib_prefix=no
19755 need_version=no
19756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19757 soname_spec='${libname}${release}${shared_ext}$major'
19758 shlibpath_var=LD_LIBRARY_PATH
19759 shlibpath_overrides_runpath=yes
19760 ;;
19761
19762openbsd*)
19763 version_type=sunos
19764 sys_lib_dlsearch_path_spec="/usr/lib"
19765 need_lib_prefix=no
19766 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19767 case $host_os in
19768 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19769 *) need_version=no ;;
19770 esac
19771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19772 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19773 shlibpath_var=LD_LIBRARY_PATH
19774 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19775 case $host_os in
19776 openbsd2.[89] | openbsd2.[89].*)
19777 shlibpath_overrides_runpath=no
19778 ;;
19779 *)
19780 shlibpath_overrides_runpath=yes
19781 ;;
19782 esac
19783 else
19784 shlibpath_overrides_runpath=yes
19785 fi
19786 ;;
19787
19788os2*)
19789 libname_spec='$name'
19790 shrext_cmds=".dll"
19791 need_lib_prefix=no
19792 library_names_spec='$libname${shared_ext} $libname.a'
19793 dynamic_linker='OS/2 ld.exe'
19794 shlibpath_var=LIBPATH
19795 ;;
19796
19797osf3* | osf4* | osf5*)
19798 version_type=osf
19799 need_lib_prefix=no
19800 need_version=no
19801 soname_spec='${libname}${release}${shared_ext}$major'
19802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19803 shlibpath_var=LD_LIBRARY_PATH
19804 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19805 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19806 ;;
19807
19808rdos*)
19809 dynamic_linker=no
19810 ;;
19811
19812solaris*)
19813 version_type=linux
19814 need_lib_prefix=no
19815 need_version=no
19816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19817 soname_spec='${libname}${release}${shared_ext}$major'
19818 shlibpath_var=LD_LIBRARY_PATH
19819 shlibpath_overrides_runpath=yes
19820 hardcode_into_libs=yes
19821 # ldd complains unless libraries are executable
19822 postinstall_cmds='chmod +x $lib'
19823 ;;
19824
19825sunos4*)
19826 version_type=sunos
19827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19828 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19829 shlibpath_var=LD_LIBRARY_PATH
19830 shlibpath_overrides_runpath=yes
19831 if test "$with_gnu_ld" = yes; then
19832 need_lib_prefix=no
19833 fi
19834 need_version=yes
19835 ;;
19836
19837sysv4 | sysv4.3*)
19838 version_type=linux
19839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19840 soname_spec='${libname}${release}${shared_ext}$major'
19841 shlibpath_var=LD_LIBRARY_PATH
19842 case $host_vendor in
19843 sni)
19844 shlibpath_overrides_runpath=no
19845 need_lib_prefix=no
19846 export_dynamic_flag_spec='${wl}-Blargedynsym'
19847 runpath_var=LD_RUN_PATH
19848 ;;
19849 siemens)
19850 need_lib_prefix=no
19851 ;;
19852 motorola)
19853 need_lib_prefix=no
19854 need_version=no
19855 shlibpath_overrides_runpath=no
19856 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19857 ;;
19858 esac
19859 ;;
19860
19861sysv4*MP*)
19862 if test -d /usr/nec ;then
19863 version_type=linux
19864 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19865 soname_spec='$libname${shared_ext}.$major'
19866 shlibpath_var=LD_LIBRARY_PATH
19867 fi
19868 ;;
19869
19870sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19871 version_type=freebsd-elf
19872 need_lib_prefix=no
19873 need_version=no
19874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19875 soname_spec='${libname}${release}${shared_ext}$major'
19876 shlibpath_var=LD_LIBRARY_PATH
19877 hardcode_into_libs=yes
19878 if test "$with_gnu_ld" = yes; then
19879 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19880 shlibpath_overrides_runpath=no
19881 else
19882 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19883 shlibpath_overrides_runpath=yes
19884 case $host_os in
19885 sco3.2v5*)
19886 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19887 ;;
19888 esac
19889 fi
19890 sys_lib_dlsearch_path_spec='/usr/lib'
19891 ;;
19892
19893uts4*)
19894 version_type=linux
19895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19896 soname_spec='${libname}${release}${shared_ext}$major'
19897 shlibpath_var=LD_LIBRARY_PATH
19898 ;;
19899
19900*)
19901 dynamic_linker=no
19902 ;;
19903esac
19904{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19905echo "${ECHO_T}$dynamic_linker" >&6; }
19906test "$dynamic_linker" = no && can_build_shared=no
19907
56efe974
WP
19908if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19909 echo $ECHO_N "(cached) $ECHO_C" >&6
19910else
19911 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19912fi
19913
19914sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19915if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19916 echo $ECHO_N "(cached) $ECHO_C" >&6
19917else
19918 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19919fi
19920
19921sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19922
b57f37fb
WP
19923variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19924if test "$GCC" = yes; then
19925 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19926fi
19927
19928{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19929echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19930hardcode_action_GCJ=
19931if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19932 test -n "$runpath_var_GCJ" || \
19933 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19934
19935 # We can hardcode non-existant directories.
19936 if test "$hardcode_direct_GCJ" != no &&
19937 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19938 # have to relink, otherwise we might link with an installed library
19939 # when we should be linking with a yet-to-be-installed one
19940 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19941 test "$hardcode_minus_L_GCJ" != no; then
19942 # Linking always hardcodes the temporary library directory.
19943 hardcode_action_GCJ=relink
19944 else
19945 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19946 hardcode_action_GCJ=immediate
19947 fi
19948else
19949 # We cannot hardcode anything, or else we can only hardcode existing
19950 # directories.
19951 hardcode_action_GCJ=unsupported
19952fi
19953{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19954echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19955
19956if test "$hardcode_action_GCJ" = relink; then
19957 # Fast installation is not supported
19958 enable_fast_install=no
19959elif test "$shlibpath_overrides_runpath" = yes ||
19960 test "$enable_shared" = no; then
19961 # Fast installation is not necessary
19962 enable_fast_install=needless
19963fi
19964
19965
19966# The else clause should only fire when bootstrapping the
19967# libtool distribution, otherwise you forgot to ship ltmain.sh
19968# with your package, and you will get complaints that there are
19969# no rules to generate ltmain.sh.
19970if test -f "$ltmain"; then
19971 # See if we are running on zsh, and set the options which allow our commands through
19972 # without removal of \ escapes.
19973 if test -n "${ZSH_VERSION+set}" ; then
19974 setopt NO_GLOB_SUBST
19975 fi
19976 # Now quote all the things that may contain metacharacters while being
19977 # careful not to overquote the AC_SUBSTed values. We take copies of the
19978 # variables and quote the copies for generation of the libtool script.
19979 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19980 SED SHELL STRIP \
19981 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19982 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19983 deplibs_check_method reload_flag reload_cmds need_locks \
19984 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19985 lt_cv_sys_global_symbol_to_c_name_address \
19986 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19987 old_postinstall_cmds old_postuninstall_cmds \
19988 compiler_GCJ \
19989 CC_GCJ \
19990 LD_GCJ \
19991 lt_prog_compiler_wl_GCJ \
19992 lt_prog_compiler_pic_GCJ \
19993 lt_prog_compiler_static_GCJ \
19994 lt_prog_compiler_no_builtin_flag_GCJ \
19995 export_dynamic_flag_spec_GCJ \
19996 thread_safe_flag_spec_GCJ \
19997 whole_archive_flag_spec_GCJ \
19998 enable_shared_with_static_runtimes_GCJ \
19999 old_archive_cmds_GCJ \
20000 old_archive_from_new_cmds_GCJ \
20001 predep_objects_GCJ \
20002 postdep_objects_GCJ \
20003 predeps_GCJ \
20004 postdeps_GCJ \
20005 compiler_lib_search_path_GCJ \
56efe974 20006 compiler_lib_search_dirs_GCJ \
b57f37fb
WP
20007 archive_cmds_GCJ \
20008 archive_expsym_cmds_GCJ \
20009 postinstall_cmds_GCJ \
20010 postuninstall_cmds_GCJ \
20011 old_archive_from_expsyms_cmds_GCJ \
20012 allow_undefined_flag_GCJ \
20013 no_undefined_flag_GCJ \
20014 export_symbols_cmds_GCJ \
20015 hardcode_libdir_flag_spec_GCJ \
20016 hardcode_libdir_flag_spec_ld_GCJ \
20017 hardcode_libdir_separator_GCJ \
20018 hardcode_automatic_GCJ \
20019 module_cmds_GCJ \
20020 module_expsym_cmds_GCJ \
20021 lt_cv_prog_compiler_c_o_GCJ \
20022 fix_srcfile_path_GCJ \
20023 exclude_expsyms_GCJ \
20024 include_expsyms_GCJ; do
20025
20026 case $var in
20027 old_archive_cmds_GCJ | \
20028 old_archive_from_new_cmds_GCJ | \
20029 archive_cmds_GCJ | \
20030 archive_expsym_cmds_GCJ | \
20031 module_cmds_GCJ | \
20032 module_expsym_cmds_GCJ | \
20033 old_archive_from_expsyms_cmds_GCJ | \
20034 export_symbols_cmds_GCJ | \
20035 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20036 postinstall_cmds | postuninstall_cmds | \
20037 old_postinstall_cmds | old_postuninstall_cmds | \
20038 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20039 # Double-quote double-evaled strings.
20040 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20041 ;;
20042 *)
20043 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20044 ;;
20045 esac
20046 done
20047
20048 case $lt_echo in
20049 *'\$0 --fallback-echo"')
20050 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20051 ;;
20052 esac
20053
20054cfgfile="$ofile"
20055
20056 cat <<__EOF__ >> "$cfgfile"
20057# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20058
20059# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20060
20061# Shell to use when invoking shell scripts.
20062SHELL=$lt_SHELL
20063
20064# Whether or not to build shared libraries.
20065build_libtool_libs=$enable_shared
20066
20067# Whether or not to build static libraries.
20068build_old_libs=$enable_static
20069
20070# Whether or not to add -lc for building shared libraries.
20071build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20072
20073# Whether or not to disallow shared libs when runtime libs are static
20074allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20075
20076# Whether or not to optimize for fast installation.
20077fast_install=$enable_fast_install
20078
20079# The host system.
20080host_alias=$host_alias
20081host=$host
20082host_os=$host_os
20083
20084# The build system.
20085build_alias=$build_alias
20086build=$build
20087build_os=$build_os
20088
20089# An echo program that does not interpret backslashes.
20090echo=$lt_echo
20091
20092# The archiver.
20093AR=$lt_AR
20094AR_FLAGS=$lt_AR_FLAGS
20095
20096# A C compiler.
20097LTCC=$lt_LTCC
20098
20099# LTCC compiler flags.
20100LTCFLAGS=$lt_LTCFLAGS
20101
20102# A language-specific compiler.
20103CC=$lt_compiler_GCJ
20104
20105# Is the compiler the GNU C compiler?
20106with_gcc=$GCC_GCJ
20107
20108# An ERE matcher.
20109EGREP=$lt_EGREP
20110
20111# The linker used to build libraries.
20112LD=$lt_LD_GCJ
20113
20114# Whether we need hard or soft links.
20115LN_S=$lt_LN_S
20116
20117# A BSD-compatible nm program.
20118NM=$lt_NM
20119
20120# A symbol stripping program
20121STRIP=$lt_STRIP
20122
20123# Used to examine libraries when file_magic_cmd begins "file"
20124MAGIC_CMD=$MAGIC_CMD
20125
20126# Used on cygwin: DLL creation program.
20127DLLTOOL="$DLLTOOL"
20128
20129# Used on cygwin: object dumper.
20130OBJDUMP="$OBJDUMP"
20131
20132# Used on cygwin: assembler.
20133AS="$AS"
20134
20135# The name of the directory that contains temporary libtool files.
20136objdir=$objdir
20137
20138# How to create reloadable object files.
20139reload_flag=$lt_reload_flag
20140reload_cmds=$lt_reload_cmds
20141
20142# How to pass a linker flag through the compiler.
20143wl=$lt_lt_prog_compiler_wl_GCJ
20144
20145# Object file suffix (normally "o").
20146objext="$ac_objext"
20147
20148# Old archive suffix (normally "a").
20149libext="$libext"
20150
20151# Shared library suffix (normally ".so").
20152shrext_cmds='$shrext_cmds'
20153
20154# Executable file suffix (normally "").
20155exeext="$exeext"
20156
20157# Additional compiler flags for building library objects.
20158pic_flag=$lt_lt_prog_compiler_pic_GCJ
20159pic_mode=$pic_mode
20160
20161# What is the maximum length of a command?
20162max_cmd_len=$lt_cv_sys_max_cmd_len
20163
20164# Does compiler simultaneously support -c and -o options?
20165compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20166
20167# Must we lock files when doing compilation?
20168need_locks=$lt_need_locks
20169
20170# Do we need the lib prefix for modules?
20171need_lib_prefix=$need_lib_prefix
20172
20173# Do we need a version for libraries?
20174need_version=$need_version
20175
20176# Whether dlopen is supported.
20177dlopen_support=$enable_dlopen
20178
20179# Whether dlopen of programs is supported.
20180dlopen_self=$enable_dlopen_self
20181
20182# Whether dlopen of statically linked programs is supported.
20183dlopen_self_static=$enable_dlopen_self_static
20184
20185# Compiler flag to prevent dynamic linking.
20186link_static_flag=$lt_lt_prog_compiler_static_GCJ
20187
20188# Compiler flag to turn off builtin functions.
20189no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20190
20191# Compiler flag to allow reflexive dlopens.
20192export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20193
20194# Compiler flag to generate shared objects directly from archives.
20195whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20196
20197# Compiler flag to generate thread-safe objects.
20198thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20199
20200# Library versioning type.
20201version_type=$version_type
20202
20203# Format of library name prefix.
20204libname_spec=$lt_libname_spec
20205
20206# List of archive names. First name is the real one, the rest are links.
20207# The last name is the one that the linker finds with -lNAME.
20208library_names_spec=$lt_library_names_spec
20209
20210# The coded name of the library, if different from the real name.
20211soname_spec=$lt_soname_spec
20212
20213# Commands used to build and install an old-style archive.
20214RANLIB=$lt_RANLIB
20215old_archive_cmds=$lt_old_archive_cmds_GCJ
20216old_postinstall_cmds=$lt_old_postinstall_cmds
20217old_postuninstall_cmds=$lt_old_postuninstall_cmds
20218
20219# Create an old-style archive from a shared archive.
20220old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20221
20222# Create a temporary old-style archive to link instead of a shared archive.
20223old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20224
20225# Commands used to build and install a shared archive.
20226archive_cmds=$lt_archive_cmds_GCJ
20227archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20228postinstall_cmds=$lt_postinstall_cmds
20229postuninstall_cmds=$lt_postuninstall_cmds
20230
20231# Commands used to build a loadable module (assumed same as above if empty)
20232module_cmds=$lt_module_cmds_GCJ
20233module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20234
20235# Commands to strip libraries.
20236old_striplib=$lt_old_striplib
20237striplib=$lt_striplib
20238
20239# Dependencies to place before the objects being linked to create a
20240# shared library.
20241predep_objects=$lt_predep_objects_GCJ
20242
20243# Dependencies to place after the objects being linked to create a
20244# shared library.
20245postdep_objects=$lt_postdep_objects_GCJ
20246
20247# Dependencies to place before the objects being linked to create a
20248# shared library.
20249predeps=$lt_predeps_GCJ
20250
20251# Dependencies to place after the objects being linked to create a
20252# shared library.
20253postdeps=$lt_postdeps_GCJ
20254
56efe974
WP
20255# The directories searched by this compiler when creating a shared
20256# library
20257compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
20258
b57f37fb
WP
20259# The library search path used internally by the compiler when linking
20260# a shared library.
20261compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20262
20263# Method to check whether dependent libraries are shared objects.
20264deplibs_check_method=$lt_deplibs_check_method
20265
20266# Command to use when deplibs_check_method == file_magic.
20267file_magic_cmd=$lt_file_magic_cmd
20268
20269# Flag that allows shared libraries with undefined symbols to be built.
20270allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20271
20272# Flag that forces no undefined symbols.
20273no_undefined_flag=$lt_no_undefined_flag_GCJ
20274
20275# Commands used to finish a libtool library installation in a directory.
20276finish_cmds=$lt_finish_cmds
20277
20278# Same as above, but a single script fragment to be evaled but not shown.
20279finish_eval=$lt_finish_eval
20280
20281# Take the output of nm and produce a listing of raw symbols and C names.
20282global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20283
20284# Transform the output of nm in a proper C declaration
20285global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20286
20287# Transform the output of nm in a C name address pair
20288global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20289
20290# This is the shared library runtime path variable.
20291runpath_var=$runpath_var
20292
20293# This is the shared library path variable.
20294shlibpath_var=$shlibpath_var
20295
20296# Is shlibpath searched before the hard-coded library search path?
20297shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20298
20299# How to hardcode a shared library path into an executable.
20300hardcode_action=$hardcode_action_GCJ
20301
20302# Whether we should hardcode library paths into libraries.
20303hardcode_into_libs=$hardcode_into_libs
20304
20305# Flag to hardcode \$libdir into a binary during linking.
20306# This must work even if \$libdir does not exist.
20307hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20308
20309# If ld is used when linking, flag to hardcode \$libdir into
20310# a binary during linking. This must work even if \$libdir does
20311# not exist.
20312hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20313
20314# Whether we need a single -rpath flag with a separated argument.
20315hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20316
20317# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20318# resulting binary.
20319hardcode_direct=$hardcode_direct_GCJ
20320
20321# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20322# resulting binary.
20323hardcode_minus_L=$hardcode_minus_L_GCJ
20324
20325# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20326# the resulting binary.
20327hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20328
20329# Set to yes if building a shared library automatically hardcodes DIR into the library
20330# and all subsequent libraries and executables linked against it.
20331hardcode_automatic=$hardcode_automatic_GCJ
20332
20333# Variables whose values should be saved in libtool wrapper scripts and
20334# restored at relink time.
20335variables_saved_for_relink="$variables_saved_for_relink"
20336
20337# Whether libtool must link a program against all its dependency libraries.
20338link_all_deplibs=$link_all_deplibs_GCJ
20339
20340# Compile-time system search path for libraries
20341sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20342
20343# Run-time system search path for libraries
20344sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20345
20346# Fix the shell variable \$srcfile for the compiler.
20347fix_srcfile_path=$lt_fix_srcfile_path
20348
20349# Set to yes if exported symbols are required.
20350always_export_symbols=$always_export_symbols_GCJ
20351
20352# The commands to list exported symbols.
20353export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20354
20355# The commands to extract the exported symbol list from a shared archive.
20356extract_expsyms_cmds=$lt_extract_expsyms_cmds
20357
20358# Symbols that should not be listed in the preloaded symbols.
20359exclude_expsyms=$lt_exclude_expsyms_GCJ
20360
20361# Symbols that must always be exported.
20362include_expsyms=$lt_include_expsyms_GCJ
20363
20364# ### END LIBTOOL TAG CONFIG: $tagname
20365
20366__EOF__
20367
20368
20369else
20370 # If there is no Makefile yet, we rely on a make rule to execute
20371 # `config.status --recheck' to rerun these tests and create the
20372 # libtool script then.
20373 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20374 if test -f "$ltmain_in"; then
20375 test -f Makefile && make "$ltmain"
20376 fi
20377fi
20378
20379
20380ac_ext=c
20381ac_cpp='$CPP $CPPFLAGS'
20382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20384ac_compiler_gnu=$ac_cv_c_compiler_gnu
20385
20386CC="$lt_save_CC"
20387
20388 else
20389 tagname=""
20390 fi
20391 ;;
20392
20393 RC)
20394
20395
20396# Source file extension for RC test sources.
20397ac_ext=rc
20398
20399# Object file extension for compiled RC test sources.
20400objext=o
20401objext_RC=$objext
20402
20403# Code to be used in simple compile tests
20404lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20405
20406# Code to be used in simple link tests
20407lt_simple_link_test_code="$lt_simple_compile_test_code"
20408
20409# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20410
20411# If no C compiler was specified, use CC.
20412LTCC=${LTCC-"$CC"}
20413
20414# If no C compiler flags were specified, use CFLAGS.
20415LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20416
20417# Allow CC to be a program name with arguments.
20418compiler=$CC
20419
20420
20421# save warnings/boilerplate of simple test code
20422ac_outfile=conftest.$ac_objext
20423echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20424eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20425_lt_compiler_boilerplate=`cat conftest.err`
20426$rm conftest*
20427
20428ac_outfile=conftest.$ac_objext
20429echo "$lt_simple_link_test_code" >conftest.$ac_ext
20430eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20431_lt_linker_boilerplate=`cat conftest.err`
56efe974 20432$rm -r conftest*
b57f37fb
WP
20433
20434
20435# Allow CC to be a program name with arguments.
20436lt_save_CC="$CC"
20437CC=${RC-"windres"}
20438compiler=$CC
20439compiler_RC=$CC
20440for cc_temp in $compiler""; do
20441 case $cc_temp in
20442 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20443 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20444 \-*) ;;
20445 *) break;;
20446 esac
20447done
20448cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20449
20450lt_cv_prog_compiler_c_o_RC=yes
20451
20452# The else clause should only fire when bootstrapping the
20453# libtool distribution, otherwise you forgot to ship ltmain.sh
20454# with your package, and you will get complaints that there are
20455# no rules to generate ltmain.sh.
20456if test -f "$ltmain"; then
20457 # See if we are running on zsh, and set the options which allow our commands through
20458 # without removal of \ escapes.
20459 if test -n "${ZSH_VERSION+set}" ; then
20460 setopt NO_GLOB_SUBST
20461 fi
20462 # Now quote all the things that may contain metacharacters while being
20463 # careful not to overquote the AC_SUBSTed values. We take copies of the
20464 # variables and quote the copies for generation of the libtool script.
20465 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20466 SED SHELL STRIP \
20467 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20468 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20469 deplibs_check_method reload_flag reload_cmds need_locks \
20470 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20471 lt_cv_sys_global_symbol_to_c_name_address \
20472 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20473 old_postinstall_cmds old_postuninstall_cmds \
20474 compiler_RC \
20475 CC_RC \
20476 LD_RC \
20477 lt_prog_compiler_wl_RC \
20478 lt_prog_compiler_pic_RC \
20479 lt_prog_compiler_static_RC \
20480 lt_prog_compiler_no_builtin_flag_RC \
20481 export_dynamic_flag_spec_RC \
20482 thread_safe_flag_spec_RC \
20483 whole_archive_flag_spec_RC \
20484 enable_shared_with_static_runtimes_RC \
20485 old_archive_cmds_RC \
20486 old_archive_from_new_cmds_RC \
20487 predep_objects_RC \
20488 postdep_objects_RC \
20489 predeps_RC \
20490 postdeps_RC \
20491 compiler_lib_search_path_RC \
56efe974 20492 compiler_lib_search_dirs_RC \
b57f37fb
WP
20493 archive_cmds_RC \
20494 archive_expsym_cmds_RC \
20495 postinstall_cmds_RC \
20496 postuninstall_cmds_RC \
20497 old_archive_from_expsyms_cmds_RC \
20498 allow_undefined_flag_RC \
20499 no_undefined_flag_RC \
20500 export_symbols_cmds_RC \
20501 hardcode_libdir_flag_spec_RC \
20502 hardcode_libdir_flag_spec_ld_RC \
20503 hardcode_libdir_separator_RC \
20504 hardcode_automatic_RC \
20505 module_cmds_RC \
20506 module_expsym_cmds_RC \
20507 lt_cv_prog_compiler_c_o_RC \
20508 fix_srcfile_path_RC \
20509 exclude_expsyms_RC \
20510 include_expsyms_RC; do
20511
20512 case $var in
20513 old_archive_cmds_RC | \
20514 old_archive_from_new_cmds_RC | \
20515 archive_cmds_RC | \
20516 archive_expsym_cmds_RC | \
20517 module_cmds_RC | \
20518 module_expsym_cmds_RC | \
20519 old_archive_from_expsyms_cmds_RC | \
20520 export_symbols_cmds_RC | \
20521 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20522 postinstall_cmds | postuninstall_cmds | \
20523 old_postinstall_cmds | old_postuninstall_cmds | \
20524 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20525 # Double-quote double-evaled strings.
20526 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20527 ;;
20528 *)
20529 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20530 ;;
20531 esac
20532 done
20533
20534 case $lt_echo in
20535 *'\$0 --fallback-echo"')
20536 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20537 ;;
20538 esac
20539
20540cfgfile="$ofile"
20541
20542 cat <<__EOF__ >> "$cfgfile"
20543# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20544
20545# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20546
20547# Shell to use when invoking shell scripts.
20548SHELL=$lt_SHELL
20549
20550# Whether or not to build shared libraries.
20551build_libtool_libs=$enable_shared
20552
20553# Whether or not to build static libraries.
20554build_old_libs=$enable_static
20555
20556# Whether or not to add -lc for building shared libraries.
20557build_libtool_need_lc=$archive_cmds_need_lc_RC
20558
20559# Whether or not to disallow shared libs when runtime libs are static
20560allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20561
20562# Whether or not to optimize for fast installation.
20563fast_install=$enable_fast_install
20564
20565# The host system.
20566host_alias=$host_alias
20567host=$host
20568host_os=$host_os
20569
20570# The build system.
20571build_alias=$build_alias
20572build=$build
20573build_os=$build_os
20574
20575# An echo program that does not interpret backslashes.
20576echo=$lt_echo
20577
20578# The archiver.
20579AR=$lt_AR
20580AR_FLAGS=$lt_AR_FLAGS
20581
20582# A C compiler.
20583LTCC=$lt_LTCC
20584
20585# LTCC compiler flags.
20586LTCFLAGS=$lt_LTCFLAGS
20587
20588# A language-specific compiler.
20589CC=$lt_compiler_RC
20590
20591# Is the compiler the GNU C compiler?
20592with_gcc=$GCC_RC
20593
20594# An ERE matcher.
20595EGREP=$lt_EGREP
20596
20597# The linker used to build libraries.
20598LD=$lt_LD_RC
20599
20600# Whether we need hard or soft links.
20601LN_S=$lt_LN_S
20602
20603# A BSD-compatible nm program.
20604NM=$lt_NM
20605
20606# A symbol stripping program
20607STRIP=$lt_STRIP
20608
20609# Used to examine libraries when file_magic_cmd begins "file"
20610MAGIC_CMD=$MAGIC_CMD
20611
20612# Used on cygwin: DLL creation program.
20613DLLTOOL="$DLLTOOL"
20614
20615# Used on cygwin: object dumper.
20616OBJDUMP="$OBJDUMP"
20617
20618# Used on cygwin: assembler.
20619AS="$AS"
20620
20621# The name of the directory that contains temporary libtool files.
20622objdir=$objdir
20623
20624# How to create reloadable object files.
20625reload_flag=$lt_reload_flag
20626reload_cmds=$lt_reload_cmds
20627
20628# How to pass a linker flag through the compiler.
20629wl=$lt_lt_prog_compiler_wl_RC
20630
20631# Object file suffix (normally "o").
20632objext="$ac_objext"
20633
20634# Old archive suffix (normally "a").
20635libext="$libext"
20636
20637# Shared library suffix (normally ".so").
20638shrext_cmds='$shrext_cmds'
20639
20640# Executable file suffix (normally "").
20641exeext="$exeext"
20642
20643# Additional compiler flags for building library objects.
20644pic_flag=$lt_lt_prog_compiler_pic_RC
20645pic_mode=$pic_mode
20646
20647# What is the maximum length of a command?
20648max_cmd_len=$lt_cv_sys_max_cmd_len
20649
20650# Does compiler simultaneously support -c and -o options?
20651compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20652
20653# Must we lock files when doing compilation?
20654need_locks=$lt_need_locks
20655
20656# Do we need the lib prefix for modules?
20657need_lib_prefix=$need_lib_prefix
20658
20659# Do we need a version for libraries?
20660need_version=$need_version
20661
20662# Whether dlopen is supported.
20663dlopen_support=$enable_dlopen
20664
20665# Whether dlopen of programs is supported.
20666dlopen_self=$enable_dlopen_self
20667
20668# Whether dlopen of statically linked programs is supported.
20669dlopen_self_static=$enable_dlopen_self_static
20670
20671# Compiler flag to prevent dynamic linking.
20672link_static_flag=$lt_lt_prog_compiler_static_RC
20673
20674# Compiler flag to turn off builtin functions.
20675no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20676
20677# Compiler flag to allow reflexive dlopens.
20678export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20679
20680# Compiler flag to generate shared objects directly from archives.
20681whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20682
20683# Compiler flag to generate thread-safe objects.
20684thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20685
20686# Library versioning type.
20687version_type=$version_type
20688
20689# Format of library name prefix.
20690libname_spec=$lt_libname_spec
20691
20692# List of archive names. First name is the real one, the rest are links.
20693# The last name is the one that the linker finds with -lNAME.
20694library_names_spec=$lt_library_names_spec
20695
20696# The coded name of the library, if different from the real name.
20697soname_spec=$lt_soname_spec
20698
20699# Commands used to build and install an old-style archive.
20700RANLIB=$lt_RANLIB
20701old_archive_cmds=$lt_old_archive_cmds_RC
20702old_postinstall_cmds=$lt_old_postinstall_cmds
20703old_postuninstall_cmds=$lt_old_postuninstall_cmds
20704
20705# Create an old-style archive from a shared archive.
20706old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20707
20708# Create a temporary old-style archive to link instead of a shared archive.
20709old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20710
20711# Commands used to build and install a shared archive.
20712archive_cmds=$lt_archive_cmds_RC
20713archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20714postinstall_cmds=$lt_postinstall_cmds
20715postuninstall_cmds=$lt_postuninstall_cmds
20716
20717# Commands used to build a loadable module (assumed same as above if empty)
20718module_cmds=$lt_module_cmds_RC
20719module_expsym_cmds=$lt_module_expsym_cmds_RC
20720
20721# Commands to strip libraries.
20722old_striplib=$lt_old_striplib
20723striplib=$lt_striplib
20724
20725# Dependencies to place before the objects being linked to create a
20726# shared library.
20727predep_objects=$lt_predep_objects_RC
20728
20729# Dependencies to place after the objects being linked to create a
20730# shared library.
20731postdep_objects=$lt_postdep_objects_RC
20732
20733# Dependencies to place before the objects being linked to create a
20734# shared library.
20735predeps=$lt_predeps_RC
20736
20737# Dependencies to place after the objects being linked to create a
20738# shared library.
20739postdeps=$lt_postdeps_RC
20740
56efe974
WP
20741# The directories searched by this compiler when creating a shared
20742# library
20743compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
20744
b57f37fb
WP
20745# The library search path used internally by the compiler when linking
20746# a shared library.
20747compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20748
20749# Method to check whether dependent libraries are shared objects.
20750deplibs_check_method=$lt_deplibs_check_method
20751
20752# Command to use when deplibs_check_method == file_magic.
20753file_magic_cmd=$lt_file_magic_cmd
20754
20755# Flag that allows shared libraries with undefined symbols to be built.
20756allow_undefined_flag=$lt_allow_undefined_flag_RC
20757
20758# Flag that forces no undefined symbols.
20759no_undefined_flag=$lt_no_undefined_flag_RC
20760
20761# Commands used to finish a libtool library installation in a directory.
20762finish_cmds=$lt_finish_cmds
20763
20764# Same as above, but a single script fragment to be evaled but not shown.
20765finish_eval=$lt_finish_eval
20766
20767# Take the output of nm and produce a listing of raw symbols and C names.
20768global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20769
20770# Transform the output of nm in a proper C declaration
20771global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20772
20773# Transform the output of nm in a C name address pair
20774global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20775
20776# This is the shared library runtime path variable.
20777runpath_var=$runpath_var
20778
20779# This is the shared library path variable.
20780shlibpath_var=$shlibpath_var
20781
20782# Is shlibpath searched before the hard-coded library search path?
20783shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20784
20785# How to hardcode a shared library path into an executable.
20786hardcode_action=$hardcode_action_RC
20787
20788# Whether we should hardcode library paths into libraries.
20789hardcode_into_libs=$hardcode_into_libs
20790
20791# Flag to hardcode \$libdir into a binary during linking.
20792# This must work even if \$libdir does not exist.
20793hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20794
20795# If ld is used when linking, flag to hardcode \$libdir into
20796# a binary during linking. This must work even if \$libdir does
20797# not exist.
20798hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20799
20800# Whether we need a single -rpath flag with a separated argument.
20801hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20802
20803# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20804# resulting binary.
20805hardcode_direct=$hardcode_direct_RC
20806
20807# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20808# resulting binary.
20809hardcode_minus_L=$hardcode_minus_L_RC
20810
20811# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20812# the resulting binary.
20813hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20814
20815# Set to yes if building a shared library automatically hardcodes DIR into the library
20816# and all subsequent libraries and executables linked against it.
20817hardcode_automatic=$hardcode_automatic_RC
20818
20819# Variables whose values should be saved in libtool wrapper scripts and
20820# restored at relink time.
20821variables_saved_for_relink="$variables_saved_for_relink"
20822
20823# Whether libtool must link a program against all its dependency libraries.
20824link_all_deplibs=$link_all_deplibs_RC
20825
20826# Compile-time system search path for libraries
20827sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20828
20829# Run-time system search path for libraries
20830sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20831
20832# Fix the shell variable \$srcfile for the compiler.
20833fix_srcfile_path=$lt_fix_srcfile_path
20834
20835# Set to yes if exported symbols are required.
20836always_export_symbols=$always_export_symbols_RC
20837
20838# The commands to list exported symbols.
20839export_symbols_cmds=$lt_export_symbols_cmds_RC
20840
20841# The commands to extract the exported symbol list from a shared archive.
20842extract_expsyms_cmds=$lt_extract_expsyms_cmds
20843
20844# Symbols that should not be listed in the preloaded symbols.
20845exclude_expsyms=$lt_exclude_expsyms_RC
20846
20847# Symbols that must always be exported.
20848include_expsyms=$lt_include_expsyms_RC
20849
20850# ### END LIBTOOL TAG CONFIG: $tagname
20851
20852__EOF__
20853
20854
20855else
20856 # If there is no Makefile yet, we rely on a make rule to execute
20857 # `config.status --recheck' to rerun these tests and create the
20858 # libtool script then.
20859 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20860 if test -f "$ltmain_in"; then
20861 test -f Makefile && make "$ltmain"
20862 fi
20863fi
20864
20865
20866ac_ext=c
20867ac_cpp='$CPP $CPPFLAGS'
20868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20870ac_compiler_gnu=$ac_cv_c_compiler_gnu
20871
20872CC="$lt_save_CC"
20873
20874 ;;
20875
20876 *)
20877 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20878echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20879 { (exit 1); exit 1; }; }
20880 ;;
20881 esac
20882
20883 # Append the new tag name to the list of available tags.
20884 if test -n "$tagname" ; then
20885 available_tags="$available_tags $tagname"
20886 fi
20887 fi
20888 done
20889 IFS="$lt_save_ifs"
20890
20891 # Now substitute the updated list of available tags.
20892 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20893 mv "${ofile}T" "$ofile"
20894 chmod +x "$ofile"
20895 else
20896 rm -f "${ofile}T"
20897 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20898echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20899 { (exit 1); exit 1; }; }
20900 fi
20901fi
20902
20903
20904
20905# This can be used to rebuild libtool when needed
20906LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20907
20908# Always use our own libtool.
20909LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20910
20911# Prevent multiple expansion
20912
20913
20914
20915
20916
20917
20918
20919
20920
20921
20922
20923
20924
20925
20926
20927
20928
20929
20930
20931
20932
20933LIBTOOL="$LIBTOOL --silent"
20934
b57f37fb
WP
20935case "$host_os" in
20936*cygwin*)
20937
20938cat >>confdefs.h <<_ACEOF
20939#define CYGWIN 1
20940_ACEOF
20941
20942
20943cat >>confdefs.h <<_ACEOF
20944#define WINDOWS 1
20945_ACEOF
20946
20947 ;;
20948*mingw*)
20949
20950cat >>confdefs.h <<_ACEOF
20951#define MINGW 1
20952_ACEOF
20953
20954
20955cat >>confdefs.h <<_ACEOF
20956#define WINDOWS 1
20957_ACEOF
20958
20959 if test "${ac_cv_header_windows_h+set}" = set; then
20960 { echo "$as_me:$LINENO: checking for windows.h" >&5
20961echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
20962if test "${ac_cv_header_windows_h+set}" = set; then
20963 echo $ECHO_N "(cached) $ECHO_C" >&6
20964fi
20965{ echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
20966echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
20967else
20968 # Is the header compilable?
20969{ echo "$as_me:$LINENO: checking windows.h usability" >&5
20970echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6; }
20971cat >conftest.$ac_ext <<_ACEOF
20972/* confdefs.h. */
20973_ACEOF
20974cat confdefs.h >>conftest.$ac_ext
20975cat >>conftest.$ac_ext <<_ACEOF
20976/* end confdefs.h. */
20977$ac_includes_default
20978#include <windows.h>
20979_ACEOF
20980rm -f conftest.$ac_objext
20981if { (ac_try="$ac_compile"
20982case "(($ac_try" in
20983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20984 *) ac_try_echo=$ac_try;;
20985esac
20986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20987 (eval "$ac_compile") 2>conftest.er1
20988 ac_status=$?
20989 grep -v '^ *+' conftest.er1 >conftest.err
20990 rm -f conftest.er1
20991 cat conftest.err >&5
20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); } && {
20994 test -z "$ac_c_werror_flag" ||
20995 test ! -s conftest.err
20996 } && test -s conftest.$ac_objext; then
20997 ac_header_compiler=yes
20998else
20999 echo "$as_me: failed program was:" >&5
21000sed 's/^/| /' conftest.$ac_ext >&5
21001
21002 ac_header_compiler=no
21003fi
21004
21005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21006{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21007echo "${ECHO_T}$ac_header_compiler" >&6; }
21008
21009# Is the header present?
21010{ echo "$as_me:$LINENO: checking windows.h presence" >&5
21011echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6; }
21012cat >conftest.$ac_ext <<_ACEOF
21013/* confdefs.h. */
21014_ACEOF
21015cat confdefs.h >>conftest.$ac_ext
21016cat >>conftest.$ac_ext <<_ACEOF
21017/* end confdefs.h. */
21018#include <windows.h>
21019_ACEOF
21020if { (ac_try="$ac_cpp conftest.$ac_ext"
21021case "(($ac_try" in
21022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21023 *) ac_try_echo=$ac_try;;
21024esac
21025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21027 ac_status=$?
21028 grep -v '^ *+' conftest.er1 >conftest.err
21029 rm -f conftest.er1
21030 cat conftest.err >&5
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); } >/dev/null && {
21033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21034 test ! -s conftest.err
21035 }; then
21036 ac_header_preproc=yes
21037else
21038 echo "$as_me: failed program was:" >&5
21039sed 's/^/| /' conftest.$ac_ext >&5
21040
21041 ac_header_preproc=no
21042fi
21043
21044rm -f conftest.err conftest.$ac_ext
21045{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21046echo "${ECHO_T}$ac_header_preproc" >&6; }
21047
21048# So? What about this header?
21049case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21050 yes:no: )
21051 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
21052echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21053 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
21054echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
21055 ac_header_preproc=yes
21056 ;;
21057 no:yes:* )
21058 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
21059echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
21060 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
21061echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
21062 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
21063echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
21064 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
21065echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
21066 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
21067echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
21068 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
21069echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
21070
21071 ;;
21072esac
21073{ echo "$as_me:$LINENO: checking for windows.h" >&5
21074echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
21075if test "${ac_cv_header_windows_h+set}" = set; then
21076 echo $ECHO_N "(cached) $ECHO_C" >&6
21077else
21078 ac_cv_header_windows_h=$ac_header_preproc
21079fi
21080{ echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21081echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
21082
21083fi
21084if test $ac_cv_header_windows_h = yes; then
21085 :
21086else
21087 { { echo "$as_me:$LINENO: error: ** MinGW and no windows.h. I give up." >&5
21088echo "$as_me: error: ** MinGW and no windows.h. I give up." >&2;}
21089 { (exit 1); exit 1; }; }
21090fi
21091
21092
21093 if test "${ac_cv_header_winsock2_h+set}" = set; then
21094 { echo "$as_me:$LINENO: checking for winsock2.h" >&5
21095echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
21096if test "${ac_cv_header_winsock2_h+set}" = set; then
21097 echo $ECHO_N "(cached) $ECHO_C" >&6
21098fi
21099{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
21100echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
21101else
21102 # Is the header compilable?
21103{ echo "$as_me:$LINENO: checking winsock2.h usability" >&5
21104echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6; }
21105cat >conftest.$ac_ext <<_ACEOF
21106/* confdefs.h. */
21107_ACEOF
21108cat confdefs.h >>conftest.$ac_ext
21109cat >>conftest.$ac_ext <<_ACEOF
21110/* end confdefs.h. */
21111$ac_includes_default
21112#include <winsock2.h>
21113_ACEOF
21114rm -f conftest.$ac_objext
21115if { (ac_try="$ac_compile"
21116case "(($ac_try" in
21117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21118 *) ac_try_echo=$ac_try;;
21119esac
21120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21121 (eval "$ac_compile") 2>conftest.er1
21122 ac_status=$?
21123 grep -v '^ *+' conftest.er1 >conftest.err
21124 rm -f conftest.er1
21125 cat conftest.err >&5
21126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127 (exit $ac_status); } && {
21128 test -z "$ac_c_werror_flag" ||
21129 test ! -s conftest.err
21130 } && test -s conftest.$ac_objext; then
21131 ac_header_compiler=yes
21132else
21133 echo "$as_me: failed program was:" >&5
21134sed 's/^/| /' conftest.$ac_ext >&5
21135
21136 ac_header_compiler=no
21137fi
21138
21139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21140{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21141echo "${ECHO_T}$ac_header_compiler" >&6; }
21142
21143# Is the header present?
21144{ echo "$as_me:$LINENO: checking winsock2.h presence" >&5
21145echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6; }
21146cat >conftest.$ac_ext <<_ACEOF
21147/* confdefs.h. */
21148_ACEOF
21149cat confdefs.h >>conftest.$ac_ext
21150cat >>conftest.$ac_ext <<_ACEOF
21151/* end confdefs.h. */
21152#include <winsock2.h>
21153_ACEOF
21154if { (ac_try="$ac_cpp conftest.$ac_ext"
21155case "(($ac_try" in
21156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21157 *) ac_try_echo=$ac_try;;
21158esac
21159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21160 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21161 ac_status=$?
21162 grep -v '^ *+' conftest.er1 >conftest.err
21163 rm -f conftest.er1
21164 cat conftest.err >&5
21165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166 (exit $ac_status); } >/dev/null && {
21167 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21168 test ! -s conftest.err
21169 }; then
21170 ac_header_preproc=yes
21171else
21172 echo "$as_me: failed program was:" >&5
21173sed 's/^/| /' conftest.$ac_ext >&5
21174
21175 ac_header_preproc=no
21176fi
21177
21178rm -f conftest.err conftest.$ac_ext
21179{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21180echo "${ECHO_T}$ac_header_preproc" >&6; }
21181
21182# So? What about this header?
21183case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21184 yes:no: )
21185 { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
21186echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21187 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
21188echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
21189 ac_header_preproc=yes
21190 ;;
21191 no:yes:* )
21192 { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
21193echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
21194 { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5
21195echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;}
21196 { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
21197echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
21198 { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5
21199echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;}
21200 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
21201echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
21202 { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
21203echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;}
21204
21205 ;;
21206esac
21207{ echo "$as_me:$LINENO: checking for winsock2.h" >&5
21208echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
21209if test "${ac_cv_header_winsock2_h+set}" = set; then
21210 echo $ECHO_N "(cached) $ECHO_C" >&6
21211else
21212 ac_cv_header_winsock2_h=$ac_header_preproc
21213fi
21214{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
21215echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
21216
21217fi
21218if test $ac_cv_header_winsock2_h = yes; then
21219 :
21220else
21221 { { echo "$as_me:$LINENO: error: ** MinGW and no winsock2.h. I give up." >&5
21222echo "$as_me: error: ** MinGW and no winsock2.h. I give up." >&2;}
21223 { (exit 1); exit 1; }; }
21224fi
21225
21226
94b4fbf9
VY
21227
21228cat >>confdefs.h <<_ACEOF
21229#define HAVE_WINSOCK2_H 1
21230_ACEOF
21231
21232
21233cat >>confdefs.h <<_ACEOF
21234#define HAVE_WINSOCK_H 1
21235_ACEOF
21236
b57f37fb
WP
21237 LIBS="$LIBS -lws2_32 -liphlpapi"
21238 is_mingw="yes"
21239 ;;
21240*interix*)
21241 CPPFLAGS="$CFLAGS -D_ALL_SOURCE -D_XOPEN_SOURCE=500"
21242 ;;
b62765e9 21243*solaris*|*sunos*)
63ae37cc 21244 CPPFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_XPG4_2 -D__EXTENSIONS__"
b57f37fb
WP
21245 ;;
21246*)
21247 ;;
21248esac
21249
21250 if test "$is_mingw" = "yes"; then
21251 MINGW_TRUE=
21252 MINGW_FALSE='#'
21253else
21254 MINGW_TRUE='#'
21255 MINGW_FALSE=
21256fi
21257
21258
21259
21260# backwards support for IRC_CFLAGS
94b4fbf9 21261CFLAGS="$IRC_CFLAGS $CFLAGS -Wall"
b57f37fb
WP
21262
21263if test "$libexecdir" = '${exec_prefix}/libexec' &&
21264 test "$localstatedir" = '${prefix}/var'; then
21265 libexecdir='${bindir}'
21266 localstatedir='${prefix}'
21267fi
21268
b57f37fb
WP
21269{ echo "$as_me:$LINENO: checking for pid_t" >&5
21270echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
21271if test "${ac_cv_type_pid_t+set}" = set; then
21272 echo $ECHO_N "(cached) $ECHO_C" >&6
21273else
21274 cat >conftest.$ac_ext <<_ACEOF
21275/* confdefs.h. */
21276_ACEOF
21277cat confdefs.h >>conftest.$ac_ext
21278cat >>conftest.$ac_ext <<_ACEOF
21279/* end confdefs.h. */
21280$ac_includes_default
21281typedef pid_t ac__type_new_;
21282int
21283main ()
21284{
21285if ((ac__type_new_ *) 0)
21286 return 0;
21287if (sizeof (ac__type_new_))
21288 return 0;
21289 ;
21290 return 0;
21291}
21292_ACEOF
21293rm -f conftest.$ac_objext
21294if { (ac_try="$ac_compile"
21295case "(($ac_try" in
21296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21297 *) ac_try_echo=$ac_try;;
21298esac
21299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21300 (eval "$ac_compile") 2>conftest.er1
21301 ac_status=$?
21302 grep -v '^ *+' conftest.er1 >conftest.err
21303 rm -f conftest.er1
21304 cat conftest.err >&5
21305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306 (exit $ac_status); } && {
21307 test -z "$ac_c_werror_flag" ||
21308 test ! -s conftest.err
21309 } && test -s conftest.$ac_objext; then
21310 ac_cv_type_pid_t=yes
21311else
21312 echo "$as_me: failed program was:" >&5
21313sed 's/^/| /' conftest.$ac_ext >&5
21314
21315 ac_cv_type_pid_t=no
21316fi
21317
21318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21319fi
21320{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21321echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
21322if test $ac_cv_type_pid_t = yes; then
21323 :
21324else
21325
21326cat >>confdefs.h <<_ACEOF
21327#define pid_t int
21328_ACEOF
21329
21330fi
21331
21332{ echo "$as_me:$LINENO: checking for size_t" >&5
21333echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21334if test "${ac_cv_type_size_t+set}" = set; then
21335 echo $ECHO_N "(cached) $ECHO_C" >&6
21336else
21337 cat >conftest.$ac_ext <<_ACEOF
21338/* confdefs.h. */
21339_ACEOF
21340cat confdefs.h >>conftest.$ac_ext
21341cat >>conftest.$ac_ext <<_ACEOF
21342/* end confdefs.h. */
21343$ac_includes_default
21344typedef size_t ac__type_new_;
21345int
21346main ()
21347{
21348if ((ac__type_new_ *) 0)
21349 return 0;
21350if (sizeof (ac__type_new_))
21351 return 0;
21352 ;
21353 return 0;
21354}
21355_ACEOF
21356rm -f conftest.$ac_objext
21357if { (ac_try="$ac_compile"
21358case "(($ac_try" in
21359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21360 *) ac_try_echo=$ac_try;;
21361esac
21362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21363 (eval "$ac_compile") 2>conftest.er1
21364 ac_status=$?
21365 grep -v '^ *+' conftest.er1 >conftest.err
21366 rm -f conftest.er1
21367 cat conftest.err >&5
21368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369 (exit $ac_status); } && {
21370 test -z "$ac_c_werror_flag" ||
21371 test ! -s conftest.err
21372 } && test -s conftest.$ac_objext; then
21373 ac_cv_type_size_t=yes
21374else
21375 echo "$as_me: failed program was:" >&5
21376sed 's/^/| /' conftest.$ac_ext >&5
21377
21378 ac_cv_type_size_t=no
21379fi
21380
21381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21382fi
21383{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21384echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21385if test $ac_cv_type_size_t = yes; then
21386 :
21387else
21388
21389cat >>confdefs.h <<_ACEOF
21390#define size_t unsigned int
21391_ACEOF
21392
21393fi
21394
21395{ echo "$as_me:$LINENO: checking for ssize_t" >&5
21396echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
21397if test "${ac_cv_type_ssize_t+set}" = set; then
21398 echo $ECHO_N "(cached) $ECHO_C" >&6
21399else
21400 cat >conftest.$ac_ext <<_ACEOF
21401/* confdefs.h. */
21402_ACEOF
21403cat confdefs.h >>conftest.$ac_ext
21404cat >>conftest.$ac_ext <<_ACEOF
21405/* end confdefs.h. */
21406$ac_includes_default
21407typedef ssize_t ac__type_new_;
21408int
21409main ()
21410{
21411if ((ac__type_new_ *) 0)
21412 return 0;
21413if (sizeof (ac__type_new_))
21414 return 0;
21415 ;
21416 return 0;
21417}
21418_ACEOF
21419rm -f conftest.$ac_objext
21420if { (ac_try="$ac_compile"
21421case "(($ac_try" in
21422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21423 *) ac_try_echo=$ac_try;;
21424esac
21425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21426 (eval "$ac_compile") 2>conftest.er1
21427 ac_status=$?
21428 grep -v '^ *+' conftest.er1 >conftest.err
21429 rm -f conftest.er1
21430 cat conftest.err >&5
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); } && {
21433 test -z "$ac_c_werror_flag" ||
21434 test ! -s conftest.err
21435 } && test -s conftest.$ac_objext; then
21436 ac_cv_type_ssize_t=yes
21437else
21438 echo "$as_me: failed program was:" >&5
21439sed 's/^/| /' conftest.$ac_ext >&5
21440
21441 ac_cv_type_ssize_t=no
21442fi
21443
21444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21445fi
21446{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
21447echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
21448if test $ac_cv_type_ssize_t = yes; then
21449 :
21450else
21451
21452cat >>confdefs.h <<_ACEOF
21453#define ssize_t int
21454_ACEOF
21455
21456fi
21457
21458{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21459echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
21460if test "${ac_cv_type_uid_t+set}" = set; then
21461 echo $ECHO_N "(cached) $ECHO_C" >&6
21462else
21463 cat >conftest.$ac_ext <<_ACEOF
21464/* confdefs.h. */
21465_ACEOF
21466cat confdefs.h >>conftest.$ac_ext
21467cat >>conftest.$ac_ext <<_ACEOF
21468/* end confdefs.h. */
21469#include <sys/types.h>
21470
21471_ACEOF
21472if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21473 $EGREP "uid_t" >/dev/null 2>&1; then
21474 ac_cv_type_uid_t=yes
21475else
21476 ac_cv_type_uid_t=no
21477fi
21478rm -f conftest*
21479
21480fi
21481{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21482echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
21483if test $ac_cv_type_uid_t = no; then
21484
21485cat >>confdefs.h <<\_ACEOF
21486#define uid_t int
21487_ACEOF
21488
21489
21490cat >>confdefs.h <<\_ACEOF
21491#define gid_t int
21492_ACEOF
21493
21494fi
21495
21496
21497
21498{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21499echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21500if test "${ac_cv_header_stdc+set}" = set; then
21501 echo $ECHO_N "(cached) $ECHO_C" >&6
21502else
21503 cat >conftest.$ac_ext <<_ACEOF
21504/* confdefs.h. */
21505_ACEOF
21506cat confdefs.h >>conftest.$ac_ext
21507cat >>conftest.$ac_ext <<_ACEOF
21508/* end confdefs.h. */
21509#include <stdlib.h>
21510#include <stdarg.h>
21511#include <string.h>
21512#include <float.h>
21513
21514int
21515main ()
21516{
21517
21518 ;
21519 return 0;
21520}
21521_ACEOF
21522rm -f conftest.$ac_objext
21523if { (ac_try="$ac_compile"
21524case "(($ac_try" in
21525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21526 *) ac_try_echo=$ac_try;;
21527esac
21528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21529 (eval "$ac_compile") 2>conftest.er1
21530 ac_status=$?
21531 grep -v '^ *+' conftest.er1 >conftest.err
21532 rm -f conftest.er1
21533 cat conftest.err >&5
21534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535 (exit $ac_status); } && {
21536 test -z "$ac_c_werror_flag" ||
21537 test ! -s conftest.err
21538 } && test -s conftest.$ac_objext; then
21539 ac_cv_header_stdc=yes
21540else
21541 echo "$as_me: failed program was:" >&5
21542sed 's/^/| /' conftest.$ac_ext >&5
21543
21544 ac_cv_header_stdc=no
21545fi
21546
21547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21548
21549if test $ac_cv_header_stdc = yes; then
21550 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21551 cat >conftest.$ac_ext <<_ACEOF
21552/* confdefs.h. */
21553_ACEOF
21554cat confdefs.h >>conftest.$ac_ext
21555cat >>conftest.$ac_ext <<_ACEOF
21556/* end confdefs.h. */
21557#include <string.h>
21558
21559_ACEOF
21560if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21561 $EGREP "memchr" >/dev/null 2>&1; then
21562 :
21563else
21564 ac_cv_header_stdc=no
21565fi
21566rm -f conftest*
21567
21568fi
21569
21570if test $ac_cv_header_stdc = yes; then
21571 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21572 cat >conftest.$ac_ext <<_ACEOF
21573/* confdefs.h. */
21574_ACEOF
21575cat confdefs.h >>conftest.$ac_ext
21576cat >>conftest.$ac_ext <<_ACEOF
21577/* end confdefs.h. */
21578#include <stdlib.h>
21579
21580_ACEOF
21581if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21582 $EGREP "free" >/dev/null 2>&1; then
21583 :
21584else
21585 ac_cv_header_stdc=no
21586fi
21587rm -f conftest*
21588
21589fi
21590
21591if test $ac_cv_header_stdc = yes; then
21592 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21593 if test "$cross_compiling" = yes; then
21594 :
21595else
21596 cat >conftest.$ac_ext <<_ACEOF
21597/* confdefs.h. */
21598_ACEOF
21599cat confdefs.h >>conftest.$ac_ext
21600cat >>conftest.$ac_ext <<_ACEOF
21601/* end confdefs.h. */
21602#include <ctype.h>
21603#include <stdlib.h>
21604#if ((' ' & 0x0FF) == 0x020)
21605# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21606# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21607#else
21608# define ISLOWER(c) \
21609 (('a' <= (c) && (c) <= 'i') \
21610 || ('j' <= (c) && (c) <= 'r') \
21611 || ('s' <= (c) && (c) <= 'z'))
21612# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21613#endif
21614
21615#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21616int
21617main ()
21618{
21619 int i;
21620 for (i = 0; i < 256; i++)
21621 if (XOR (islower (i), ISLOWER (i))
21622 || toupper (i) != TOUPPER (i))
21623 return 2;
21624 return 0;
21625}
21626_ACEOF
21627rm -f conftest$ac_exeext
21628if { (ac_try="$ac_link"
21629case "(($ac_try" in
21630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21631 *) ac_try_echo=$ac_try;;
21632esac
21633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21634 (eval "$ac_link") 2>&5
21635 ac_status=$?
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21638 { (case "(($ac_try" in
21639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21640 *) ac_try_echo=$ac_try;;
21641esac
21642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21643 (eval "$ac_try") 2>&5
21644 ac_status=$?
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); }; }; then
21647 :
21648else
21649 echo "$as_me: program exited with status $ac_status" >&5
21650echo "$as_me: failed program was:" >&5
21651sed 's/^/| /' conftest.$ac_ext >&5
21652
21653( exit $ac_status )
21654ac_cv_header_stdc=no
21655fi
21656rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21657fi
21658
21659
21660fi
21661fi
21662{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21663echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21664if test $ac_cv_header_stdc = yes; then
21665
21666cat >>confdefs.h <<\_ACEOF
21667#define STDC_HEADERS 1
21668_ACEOF
21669
21670fi
21671
21672
21673
21674
21675
21676
21677
21678
21679
21680
21681
21682
21683
21684
21685
21686
21687
21688
21689
21690
21691
94b4fbf9
VY
21692
21693for ac_header in crypt.h unistd.h sys/socket.h sys/stat.h sys/time.h time.h netinet/in.h arpa/inet.h errno.h sys/uio.h spawn.h sys/poll.h sys/epoll.h sys/select.h sys/devpoll.h sys/event.h port.h signal.h sys/signalfd.h sys/timerfd.h
b57f37fb
WP
21694do
21695as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21696if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21697 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21698echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21699if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21700 echo $ECHO_N "(cached) $ECHO_C" >&6
21701fi
21702ac_res=`eval echo '${'$as_ac_Header'}'`
21703 { echo "$as_me:$LINENO: result: $ac_res" >&5
21704echo "${ECHO_T}$ac_res" >&6; }
21705else
21706 # Is the header compilable?
21707{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21708echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21709cat >conftest.$ac_ext <<_ACEOF
21710/* confdefs.h. */
21711_ACEOF
21712cat confdefs.h >>conftest.$ac_ext
21713cat >>conftest.$ac_ext <<_ACEOF
21714/* end confdefs.h. */
21715$ac_includes_default
21716#include <$ac_header>
21717_ACEOF
21718rm -f conftest.$ac_objext
21719if { (ac_try="$ac_compile"
21720case "(($ac_try" in
21721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21722 *) ac_try_echo=$ac_try;;
21723esac
21724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21725 (eval "$ac_compile") 2>conftest.er1
21726 ac_status=$?
21727 grep -v '^ *+' conftest.er1 >conftest.err
21728 rm -f conftest.er1
21729 cat conftest.err >&5
21730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731 (exit $ac_status); } && {
21732 test -z "$ac_c_werror_flag" ||
21733 test ! -s conftest.err
21734 } && test -s conftest.$ac_objext; then
21735 ac_header_compiler=yes
21736else
21737 echo "$as_me: failed program was:" >&5
21738sed 's/^/| /' conftest.$ac_ext >&5
21739
21740 ac_header_compiler=no
21741fi
21742
21743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21744{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21745echo "${ECHO_T}$ac_header_compiler" >&6; }
21746
21747# Is the header present?
21748{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21749echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21750cat >conftest.$ac_ext <<_ACEOF
21751/* confdefs.h. */
21752_ACEOF
21753cat confdefs.h >>conftest.$ac_ext
21754cat >>conftest.$ac_ext <<_ACEOF
21755/* end confdefs.h. */
21756#include <$ac_header>
21757_ACEOF
21758if { (ac_try="$ac_cpp conftest.$ac_ext"
21759case "(($ac_try" in
21760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21761 *) ac_try_echo=$ac_try;;
21762esac
21763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21765 ac_status=$?
21766 grep -v '^ *+' conftest.er1 >conftest.err
21767 rm -f conftest.er1
21768 cat conftest.err >&5
21769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770 (exit $ac_status); } >/dev/null && {
21771 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21772 test ! -s conftest.err
21773 }; then
21774 ac_header_preproc=yes
21775else
21776 echo "$as_me: failed program was:" >&5
21777sed 's/^/| /' conftest.$ac_ext >&5
21778
21779 ac_header_preproc=no
21780fi
21781
21782rm -f conftest.err conftest.$ac_ext
21783{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21784echo "${ECHO_T}$ac_header_preproc" >&6; }
21785
21786# So? What about this header?
21787case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21788 yes:no: )
21789 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21790echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21792echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21793 ac_header_preproc=yes
21794 ;;
21795 no:yes:* )
21796 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21797echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21798 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21799echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21800 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21801echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21802 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21803echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21805echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21806 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21807echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21808
21809 ;;
21810esac
21811{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21812echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21813if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21814 echo $ECHO_N "(cached) $ECHO_C" >&6
21815else
21816 eval "$as_ac_Header=\$ac_header_preproc"
21817fi
21818ac_res=`eval echo '${'$as_ac_Header'}'`
21819 { echo "$as_me:$LINENO: result: $ac_res" >&5
21820echo "${ECHO_T}$ac_res" >&6; }
21821
21822fi
21823if test `eval echo '${'$as_ac_Header'}'` = yes; then
21824 cat >>confdefs.h <<_ACEOF
21825#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21826_ACEOF
21827
21828fi
21829
21830done
21831
21832{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21833echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21834if test "${ac_cv_header_time+set}" = set; then
21835 echo $ECHO_N "(cached) $ECHO_C" >&6
21836else
21837 cat >conftest.$ac_ext <<_ACEOF
21838/* confdefs.h. */
21839_ACEOF
21840cat confdefs.h >>conftest.$ac_ext
21841cat >>conftest.$ac_ext <<_ACEOF
21842/* end confdefs.h. */
21843#include <sys/types.h>
21844#include <sys/time.h>
21845#include <time.h>
21846
21847int
21848main ()
21849{
21850if ((struct tm *) 0)
21851return 0;
21852 ;
21853 return 0;
21854}
21855_ACEOF
21856rm -f conftest.$ac_objext
21857if { (ac_try="$ac_compile"
21858case "(($ac_try" in
21859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21860 *) ac_try_echo=$ac_try;;
21861esac
21862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21863 (eval "$ac_compile") 2>conftest.er1
21864 ac_status=$?
21865 grep -v '^ *+' conftest.er1 >conftest.err
21866 rm -f conftest.er1
21867 cat conftest.err >&5
21868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869 (exit $ac_status); } && {
21870 test -z "$ac_c_werror_flag" ||
21871 test ! -s conftest.err
21872 } && test -s conftest.$ac_objext; then
21873 ac_cv_header_time=yes
21874else
21875 echo "$as_me: failed program was:" >&5
21876sed 's/^/| /' conftest.$ac_ext >&5
21877
21878 ac_cv_header_time=no
21879fi
21880
21881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21882fi
21883{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21884echo "${ECHO_T}$ac_cv_header_time" >&6; }
21885if test $ac_cv_header_time = yes; then
21886
21887cat >>confdefs.h <<\_ACEOF
21888#define TIME_WITH_SYS_TIME 1
21889_ACEOF
21890
21891fi
21892
21893
21894
21895{ echo "$as_me:$LINENO: checking for library containing socket" >&5
21896echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
21897if test "${ac_cv_search_socket+set}" = set; then
21898 echo $ECHO_N "(cached) $ECHO_C" >&6
21899else
21900 ac_func_search_save_LIBS=$LIBS
21901cat >conftest.$ac_ext <<_ACEOF
21902/* confdefs.h. */
21903_ACEOF
21904cat confdefs.h >>conftest.$ac_ext
21905cat >>conftest.$ac_ext <<_ACEOF
21906/* end confdefs.h. */
21907
21908/* Override any GCC internal prototype to avoid an error.
21909 Use char because int might match the return type of a GCC
21910 builtin and then its argument prototype would still apply. */
21911#ifdef __cplusplus
21912extern "C"
21913#endif
21914char socket ();
21915int
21916main ()
21917{
21918return socket ();
21919 ;
21920 return 0;
21921}
21922_ACEOF
21923for ac_lib in '' socket; do
21924 if test -z "$ac_lib"; then
21925 ac_res="none required"
21926 else
21927 ac_res=-l$ac_lib
21928 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21929 fi
21930 rm -f conftest.$ac_objext conftest$ac_exeext
21931if { (ac_try="$ac_link"
21932case "(($ac_try" in
21933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21934 *) ac_try_echo=$ac_try;;
21935esac
21936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21937 (eval "$ac_link") 2>conftest.er1
21938 ac_status=$?
21939 grep -v '^ *+' conftest.er1 >conftest.err
21940 rm -f conftest.er1
21941 cat conftest.err >&5
21942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943 (exit $ac_status); } && {
21944 test -z "$ac_c_werror_flag" ||
21945 test ! -s conftest.err
21946 } && test -s conftest$ac_exeext &&
21947 $as_test_x conftest$ac_exeext; then
21948 ac_cv_search_socket=$ac_res
21949else
21950 echo "$as_me: failed program was:" >&5
21951sed 's/^/| /' conftest.$ac_ext >&5
21952
21953
21954fi
21955
21956rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21957 conftest$ac_exeext
21958 if test "${ac_cv_search_socket+set}" = set; then
21959 break
21960fi
21961done
21962if test "${ac_cv_search_socket+set}" = set; then
21963 :
21964else
21965 ac_cv_search_socket=no
21966fi
21967rm conftest.$ac_ext
21968LIBS=$ac_func_search_save_LIBS
21969fi
21970{ echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
21971echo "${ECHO_T}$ac_cv_search_socket" >&6; }
21972ac_res=$ac_cv_search_socket
21973if test "$ac_res" != no; then
21974 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21975
21976fi
21977
21978
21979
21980{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
21981echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
21982if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
21983 echo $ECHO_N "(cached) $ECHO_C" >&6
21984else
21985 cat >conftest.$ac_ext <<_ACEOF
21986/* confdefs.h. */
21987_ACEOF
21988cat confdefs.h >>conftest.$ac_ext
21989cat >>conftest.$ac_ext <<_ACEOF
21990/* end confdefs.h. */
21991
21992#ifdef HAVE_SYS_TYPES_H
21993#include <sys/types.h>
21994#endif
21995#ifdef HAVE_SYS_SOCKET_H
21996#include <sys/socket.h>
21997#endif
21998#ifdef HAVE_WINSOCK2_H
21999#include <winsock2.h>
22000#endif
22001
22002
22003int
22004main ()
22005{
22006static struct sockaddr ac_aggr;
22007if (ac_aggr.sa_len)
22008return 0;
22009 ;
22010 return 0;
22011}
22012_ACEOF
22013rm -f conftest.$ac_objext
22014if { (ac_try="$ac_compile"
22015case "(($ac_try" in
22016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22017 *) ac_try_echo=$ac_try;;
22018esac
22019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22020 (eval "$ac_compile") 2>conftest.er1
22021 ac_status=$?
22022 grep -v '^ *+' conftest.er1 >conftest.err
22023 rm -f conftest.er1
22024 cat conftest.err >&5
22025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026 (exit $ac_status); } && {
22027 test -z "$ac_c_werror_flag" ||
22028 test ! -s conftest.err
22029 } && test -s conftest.$ac_objext; then
22030 ac_cv_member_struct_sockaddr_sa_len=yes
22031else
22032 echo "$as_me: failed program was:" >&5
22033sed 's/^/| /' conftest.$ac_ext >&5
22034
22035 cat >conftest.$ac_ext <<_ACEOF
22036/* confdefs.h. */
22037_ACEOF
22038cat confdefs.h >>conftest.$ac_ext
22039cat >>conftest.$ac_ext <<_ACEOF
22040/* end confdefs.h. */
22041
22042#ifdef HAVE_SYS_TYPES_H
22043#include <sys/types.h>
22044#endif
22045#ifdef HAVE_SYS_SOCKET_H
22046#include <sys/socket.h>
22047#endif
22048#ifdef HAVE_WINSOCK2_H
22049#include <winsock2.h>
22050#endif
22051
22052
22053int
22054main ()
22055{
22056static struct sockaddr ac_aggr;
22057if (sizeof ac_aggr.sa_len)
22058return 0;
22059 ;
22060 return 0;
22061}
22062_ACEOF
22063rm -f conftest.$ac_objext
22064if { (ac_try="$ac_compile"
22065case "(($ac_try" in
22066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22067 *) ac_try_echo=$ac_try;;
22068esac
22069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22070 (eval "$ac_compile") 2>conftest.er1
22071 ac_status=$?
22072 grep -v '^ *+' conftest.er1 >conftest.err
22073 rm -f conftest.er1
22074 cat conftest.err >&5
22075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076 (exit $ac_status); } && {
22077 test -z "$ac_c_werror_flag" ||
22078 test ! -s conftest.err
22079 } && test -s conftest.$ac_objext; then
22080 ac_cv_member_struct_sockaddr_sa_len=yes
22081else
22082 echo "$as_me: failed program was:" >&5
22083sed 's/^/| /' conftest.$ac_ext >&5
22084
22085 ac_cv_member_struct_sockaddr_sa_len=no
22086fi
22087
22088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22089fi
22090
22091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22092fi
22093{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
22094echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
22095if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
22096
22097cat >>confdefs.h <<\_ACEOF
22098#define SOCKADDR_IN_HAS_LEN 1
22099_ACEOF
22100
22101fi
22102
22103
22104{ echo "$as_me:$LINENO: checking for socklen_t" >&5
22105echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
22106if test "${ac_cv_type_socklen_t+set}" = set; then
22107 echo $ECHO_N "(cached) $ECHO_C" >&6
22108else
22109 cat >conftest.$ac_ext <<_ACEOF
22110/* confdefs.h. */
22111_ACEOF
22112cat confdefs.h >>conftest.$ac_ext
22113cat >>conftest.$ac_ext <<_ACEOF
22114/* end confdefs.h. */
b57f37fb 22115#include <sys/types.h>
b57f37fb 22116#include <sys/socket.h>
b57f37fb
WP
22117
22118typedef socklen_t ac__type_new_;
22119int
22120main ()
22121{
22122if ((ac__type_new_ *) 0)
22123 return 0;
22124if (sizeof (ac__type_new_))
22125 return 0;
22126 ;
22127 return 0;
22128}
22129_ACEOF
22130rm -f conftest.$ac_objext
22131if { (ac_try="$ac_compile"
22132case "(($ac_try" in
22133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22134 *) ac_try_echo=$ac_try;;
22135esac
22136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22137 (eval "$ac_compile") 2>conftest.er1
22138 ac_status=$?
22139 grep -v '^ *+' conftest.er1 >conftest.err
22140 rm -f conftest.er1
22141 cat conftest.err >&5
22142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22143 (exit $ac_status); } && {
22144 test -z "$ac_c_werror_flag" ||
22145 test ! -s conftest.err
22146 } && test -s conftest.$ac_objext; then
22147 ac_cv_type_socklen_t=yes
22148else
22149 echo "$as_me: failed program was:" >&5
22150sed 's/^/| /' conftest.$ac_ext >&5
22151
22152 ac_cv_type_socklen_t=no
22153fi
22154
22155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22156fi
22157{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22158echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
22159if test $ac_cv_type_socklen_t = yes; then
4414eb3c 22160 rb_socklen_t=socklen_t
b57f37fb
WP
22161else
22162
4414eb3c
VY
22163 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
22164echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
22165 if test "${rb_socklen_t+set}" = set; then
22166 echo $ECHO_N "(cached) $ECHO_C" >&6
22167else
22168
22169 # Systems have either "struct sockaddr *" or
22170 # "void *" as the second argument to getpeername
22171 rb_socklen_t=
22172 for arg2 in "struct sockaddr" void; do
22173 for t in int size_t unsigned long "unsigned long"; do
22174 cat >conftest.$ac_ext <<_ACEOF
22175/* confdefs.h. */
22176_ACEOF
22177cat confdefs.h >>conftest.$ac_ext
22178cat >>conftest.$ac_ext <<_ACEOF
22179/* end confdefs.h. */
22180
94b4fbf9 22181#ifdef HAVE_SYS_TYPES_H
4414eb3c 22182#include <sys/types.h>
94b4fbf9
VY
22183#endif
22184#ifdef HAVE_SYS_SOCKET_H
4414eb3c 22185#include <sys/socket.h>
94b4fbf9
VY
22186#endif
22187#ifdef HAVE_WINSOCK2_H
22188#include <winsock2.h>
22189#endif
4414eb3c
VY
22190int getpeername (int, $arg2 *, $t *);
22191
22192int
22193main ()
22194{
22195
22196$t len;
22197getpeername(0,0,&len);
22198
22199 ;
22200 return 0;
22201}
b57f37fb 22202_ACEOF
4414eb3c
VY
22203rm -f conftest.$ac_objext
22204if { (ac_try="$ac_compile"
22205case "(($ac_try" in
22206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22207 *) ac_try_echo=$ac_try;;
22208esac
22209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22210 (eval "$ac_compile") 2>conftest.er1
22211 ac_status=$?
22212 grep -v '^ *+' conftest.er1 >conftest.err
22213 rm -f conftest.er1
22214 cat conftest.err >&5
22215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216 (exit $ac_status); } && {
22217 test -z "$ac_c_werror_flag" ||
22218 test ! -s conftest.err
22219 } && test -s conftest.$ac_objext; then
22220
22221 rb_socklen_t="$t"
22222 break
22223
22224else
22225 echo "$as_me: failed program was:" >&5
22226sed 's/^/| /' conftest.$ac_ext >&5
b57f37fb 22227
4414eb3c
VY
22228
22229fi
22230
22231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22232 done
22233 done
22234
22235 if test "x$rb_socklen_t" = x; then
94b4fbf9
VY
22236 { echo "$as_me:$LINENO: WARNING: Cannot find a type to use in place of socklen_t using int" >&5
22237echo "$as_me: WARNING: Cannot find a type to use in place of socklen_t using int" >&2;}
22238 rb_socklen_t=int
4414eb3c
VY
22239 fi
22240
22241fi
22242
22243 { echo "$as_me:$LINENO: result: $rb_socklen_t" >&5
22244echo "${ECHO_T}$rb_socklen_t" >&6; }
b57f37fb
WP
22245fi
22246
22247
4414eb3c
VY
22248
22249
22250
22251
b57f37fb
WP
22252# Check whether --enable-ipv6 was given.
22253if test "${enable_ipv6+set}" = set; then
22254 enableval=$enable_ipv6; ipv6=$enableval
22255else
22256 ipv6=yes
22257fi
22258
22259
22260if test x$ipv6 != xyes; then
22261 have_v6="no"
22262else
22263
22264have_v6=yes
22265
22266 { echo "$as_me:$LINENO: checking for INET6 protocol support" >&5
22267echo $ECHO_N "checking for INET6 protocol support... $ECHO_C" >&6; }
22268if test "${rb_cv_proto_inet6+set}" = set; then
22269 echo $ECHO_N "(cached) $ECHO_C" >&6
22270else
22271
22272 cat >conftest.$ac_ext <<_ACEOF
22273/* confdefs.h. */
22274_ACEOF
22275cat confdefs.h >>conftest.$ac_ext
22276cat >>conftest.$ac_ext <<_ACEOF
22277/* end confdefs.h. */
22278
22279#include <sys/types.h>
22280#include <sys/socket.h>
22281
22282#ifndef PF_INET6
22283#error Missing PF_INET6
22284#endif
22285#ifndef AF_INET6
22286#error Mlssing AF_INET6
22287#endif
22288
22289_ACEOF
22290if { (ac_try="$ac_cpp conftest.$ac_ext"
22291case "(($ac_try" in
22292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22293 *) ac_try_echo=$ac_try;;
22294esac
22295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22297 ac_status=$?
22298 grep -v '^ *+' conftest.er1 >conftest.err
22299 rm -f conftest.er1
22300 cat conftest.err >&5
22301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302 (exit $ac_status); } >/dev/null && {
22303 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22304 test ! -s conftest.err
22305 }; then
22306
22307 rb_cv_proto_inet6=yes
22308
22309else
22310 echo "$as_me: failed program was:" >&5
22311sed 's/^/| /' conftest.$ac_ext >&5
22312
22313
22314 rb_cv_proto_inet6=no
22315
22316fi
22317
22318rm -f conftest.err conftest.$ac_ext
22319
22320fi
22321{ echo "$as_me:$LINENO: result: $rb_cv_proto_inet6" >&5
22322echo "${ECHO_T}$rb_cv_proto_inet6" >&6; }
22323
22324 if test "X$rb_cv_proto_inet6" = "Xyes"; then :
22325
22326 else :
22327
22328 { echo "$as_me:$LINENO: Disabling IPv6 support: PF_INET6 not found" >&5
22329echo "$as_me: Disabling IPv6 support: PF_INET6 not found" >&6;}
22330 have_v6=no
22331
22332 fi
22333
22334
22335 if test "X$have_v6" = "Xyes"; then
22336
22337 rb_have_sockaddr_in6=
22338 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
22339echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
22340if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
22341 echo $ECHO_N "(cached) $ECHO_C" >&6
22342else
22343 cat >conftest.$ac_ext <<_ACEOF
22344/* confdefs.h. */
22345_ACEOF
22346cat confdefs.h >>conftest.$ac_ext
22347cat >>conftest.$ac_ext <<_ACEOF
22348/* end confdefs.h. */
22349
22350#include <sys/types.h>
22351#include <sys/socket.h>
22352#include <netinet/in.h>
22353
22354
22355typedef struct sockaddr_in6 ac__type_new_;
22356int
22357main ()
22358{
22359if ((ac__type_new_ *) 0)
22360 return 0;
22361if (sizeof (ac__type_new_))
22362 return 0;
22363 ;
22364 return 0;
22365}
22366_ACEOF
22367rm -f conftest.$ac_objext
22368if { (ac_try="$ac_compile"
22369case "(($ac_try" in
22370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22371 *) ac_try_echo=$ac_try;;
22372esac
22373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22374 (eval "$ac_compile") 2>conftest.er1
22375 ac_status=$?
22376 grep -v '^ *+' conftest.er1 >conftest.err
22377 rm -f conftest.er1
22378 cat conftest.err >&5
22379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380 (exit $ac_status); } && {
22381 test -z "$ac_c_werror_flag" ||
22382 test ! -s conftest.err
22383 } && test -s conftest.$ac_objext; then
22384 ac_cv_type_struct_sockaddr_in6=yes
22385else
22386 echo "$as_me: failed program was:" >&5
22387sed 's/^/| /' conftest.$ac_ext >&5
22388
22389 ac_cv_type_struct_sockaddr_in6=no
22390fi
22391
22392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22393fi
22394{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
22395echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
22396if test $ac_cv_type_struct_sockaddr_in6 = yes; then
22397
22398cat >>confdefs.h <<_ACEOF
22399#define HAVE_STRUCT_SOCKADDR_IN6 1
22400_ACEOF
22401
22402
22403 rb_have_sockaddr_in6=yes
22404
22405else
22406
22407 rb_have_sockaddr_in6=no
22408
22409fi
22410
22411
22412 if test "X$rb_have_sockaddr_in6" = "Xyes"; then :
22413
22414 else :
22415
22416 { echo "$as_me:$LINENO: Disabling IPv6 support: struct sockaddr_in6 not found" >&5
22417echo "$as_me: Disabling IPv6 support: struct sockaddr_in6 not found" >&6;}
22418 have_v6=no
22419
22420 fi
22421
22422 fi
22423
22424fi
22425
22426{ echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
22427echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
22428if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
22429 echo $ECHO_N "(cached) $ECHO_C" >&6
22430else
22431 cat >conftest.$ac_ext <<_ACEOF
22432/* confdefs.h. */
22433_ACEOF
22434cat confdefs.h >>conftest.$ac_ext
22435cat >>conftest.$ac_ext <<_ACEOF
22436/* end confdefs.h. */
22437
22438 #include <sys/types.h>
22439 #include <sys/socket.h>
22440
22441
22442typedef struct sockaddr_storage ac__type_new_;
22443int
22444main ()
22445{
22446if ((ac__type_new_ *) 0)
22447 return 0;
22448if (sizeof (ac__type_new_))
22449 return 0;
22450 ;
22451 return 0;
22452}
22453_ACEOF
22454rm -f conftest.$ac_objext
22455if { (ac_try="$ac_compile"
22456case "(($ac_try" in
22457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22458 *) ac_try_echo=$ac_try;;
22459esac
22460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22461 (eval "$ac_compile") 2>conftest.er1
22462 ac_status=$?
22463 grep -v '^ *+' conftest.er1 >conftest.err
22464 rm -f conftest.er1
22465 cat conftest.err >&5
22466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467 (exit $ac_status); } && {
22468 test -z "$ac_c_werror_flag" ||
22469 test ! -s conftest.err
22470 } && test -s conftest.$ac_objext; then
22471 ac_cv_type_struct_sockaddr_storage=yes
22472else
22473 echo "$as_me: failed program was:" >&5
22474sed 's/^/| /' conftest.$ac_ext >&5
22475
22476 ac_cv_type_struct_sockaddr_storage=no
22477fi
22478
22479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22480fi
22481{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
22482echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
22483if test $ac_cv_type_struct_sockaddr_storage = yes; then
22484
22485cat >>confdefs.h <<_ACEOF
22486#define HAVE_STRUCT_SOCKADDR_STORAGE 1
22487_ACEOF
22488
22489
22490 rb_have_sockaddr_storage=yes
22491
22492fi
22493
22494
22495
22496save_LIBS=$LIBS
22497{ echo "$as_me:$LINENO: checking for library containing crypt" >&5
22498echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
22499if test "${ac_cv_search_crypt+set}" = set; then
22500 echo $ECHO_N "(cached) $ECHO_C" >&6
22501else
22502 ac_func_search_save_LIBS=$LIBS
22503cat >conftest.$ac_ext <<_ACEOF
22504/* confdefs.h. */
22505_ACEOF
22506cat confdefs.h >>conftest.$ac_ext
22507cat >>conftest.$ac_ext <<_ACEOF
22508/* end confdefs.h. */
22509
22510/* Override any GCC internal prototype to avoid an error.
22511 Use char because int might match the return type of a GCC
22512 builtin and then its argument prototype would still apply. */
22513#ifdef __cplusplus
22514extern "C"
22515#endif
22516char crypt ();
22517int
22518main ()
22519{
22520return crypt ();
22521 ;
22522 return 0;
22523}
22524_ACEOF
22525for ac_lib in '' crypt descrypt; do
22526 if test -z "$ac_lib"; then
22527 ac_res="none required"
22528 else
22529 ac_res=-l$ac_lib
22530 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22531 fi
22532 rm -f conftest.$ac_objext conftest$ac_exeext
22533if { (ac_try="$ac_link"
22534case "(($ac_try" in
22535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22536 *) ac_try_echo=$ac_try;;
22537esac
22538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22539 (eval "$ac_link") 2>conftest.er1
22540 ac_status=$?
22541 grep -v '^ *+' conftest.er1 >conftest.err
22542 rm -f conftest.er1
22543 cat conftest.err >&5
22544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545 (exit $ac_status); } && {
22546 test -z "$ac_c_werror_flag" ||
22547 test ! -s conftest.err
22548 } && test -s conftest$ac_exeext &&
22549 $as_test_x conftest$ac_exeext; then
22550 ac_cv_search_crypt=$ac_res
22551else
22552 echo "$as_me: failed program was:" >&5
22553sed 's/^/| /' conftest.$ac_ext >&5
22554
22555
22556fi
22557
22558rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22559 conftest$ac_exeext
22560 if test "${ac_cv_search_crypt+set}" = set; then
22561 break
22562fi
22563done
22564if test "${ac_cv_search_crypt+set}" = set; then
22565 :
22566else
22567 ac_cv_search_crypt=no
22568fi
22569rm conftest.$ac_ext
22570LIBS=$ac_func_search_save_LIBS
22571fi
22572{ echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
22573echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
22574ac_res=$ac_cv_search_crypt
22575if test "$ac_res" != no; then
22576 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22577
22578fi
22579
22580LIBS=$save_LIBS
22581
22582CRYPT_LIB=$ac_cv_search_crypt
22583
22584if test "$CRYPT_LIB" = "none required"; then
22585 unset CRYPT_LIB
22586elif test "$CRYPT_LIB" = no; then
22587 need_crypt=yes;
22588
22589cat >>confdefs.h <<\_ACEOF
22590#define NEED_CRYPT 1
22591_ACEOF
22592
22593 unset CRYPT_LIB
22594fi
22595
eb66895a 22596 if test x"$need_crypt" = "xyes"; then
b57f37fb
WP
22597 NEED_CRYPT_TRUE=
22598 NEED_CRYPT_FALSE='#'
22599else
22600 NEED_CRYPT_TRUE='#'
22601 NEED_CRYPT_FALSE=
22602fi
22603
22604
22605
22606
22607
22608if test "${ac_cv_header_stdarg_h+set}" = set; then
22609 { echo "$as_me:$LINENO: checking for stdarg.h" >&5
22610echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
22611if test "${ac_cv_header_stdarg_h+set}" = set; then
22612 echo $ECHO_N "(cached) $ECHO_C" >&6
22613fi
22614{ echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
22615echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
22616else
22617 # Is the header compilable?
22618{ echo "$as_me:$LINENO: checking stdarg.h usability" >&5
22619echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; }
22620cat >conftest.$ac_ext <<_ACEOF
22621/* confdefs.h. */
22622_ACEOF
22623cat confdefs.h >>conftest.$ac_ext
22624cat >>conftest.$ac_ext <<_ACEOF
22625/* end confdefs.h. */
22626$ac_includes_default
22627#include <stdarg.h>
22628_ACEOF
22629rm -f conftest.$ac_objext
22630if { (ac_try="$ac_compile"
22631case "(($ac_try" in
22632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22633 *) ac_try_echo=$ac_try;;
22634esac
22635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22636 (eval "$ac_compile") 2>conftest.er1
22637 ac_status=$?
22638 grep -v '^ *+' conftest.er1 >conftest.err
22639 rm -f conftest.er1
22640 cat conftest.err >&5
22641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642 (exit $ac_status); } && {
22643 test -z "$ac_c_werror_flag" ||
22644 test ! -s conftest.err
22645 } && test -s conftest.$ac_objext; then
22646 ac_header_compiler=yes
22647else
22648 echo "$as_me: failed program was:" >&5
22649sed 's/^/| /' conftest.$ac_ext >&5
22650
22651 ac_header_compiler=no
22652fi
22653
22654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22655{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22656echo "${ECHO_T}$ac_header_compiler" >&6; }
22657
22658# Is the header present?
22659{ echo "$as_me:$LINENO: checking stdarg.h presence" >&5
22660echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; }
22661cat >conftest.$ac_ext <<_ACEOF
22662/* confdefs.h. */
22663_ACEOF
22664cat confdefs.h >>conftest.$ac_ext
22665cat >>conftest.$ac_ext <<_ACEOF
22666/* end confdefs.h. */
22667#include <stdarg.h>
22668_ACEOF
22669if { (ac_try="$ac_cpp conftest.$ac_ext"
22670case "(($ac_try" in
22671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22672 *) ac_try_echo=$ac_try;;
22673esac
22674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22676 ac_status=$?
22677 grep -v '^ *+' conftest.er1 >conftest.err
22678 rm -f conftest.er1
22679 cat conftest.err >&5
22680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681 (exit $ac_status); } >/dev/null && {
22682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22683 test ! -s conftest.err
22684 }; then
22685 ac_header_preproc=yes
22686else
22687 echo "$as_me: failed program was:" >&5
22688sed 's/^/| /' conftest.$ac_ext >&5
22689
22690 ac_header_preproc=no
22691fi
22692
22693rm -f conftest.err conftest.$ac_ext
22694{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22695echo "${ECHO_T}$ac_header_preproc" >&6; }
22696
22697# So? What about this header?
22698case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22699 yes:no: )
22700 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
22701echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22702 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
22703echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
22704 ac_header_preproc=yes
22705 ;;
22706 no:yes:* )
22707 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
22708echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
22709 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
22710echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
22711 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
22712echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
22713 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
22714echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
22715 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
22716echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
22717 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
22718echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
22719
22720 ;;
22721esac
22722{ echo "$as_me:$LINENO: checking for stdarg.h" >&5
22723echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
22724if test "${ac_cv_header_stdarg_h+set}" = set; then
22725 echo $ECHO_N "(cached) $ECHO_C" >&6
22726else
22727 ac_cv_header_stdarg_h=$ac_header_preproc
22728fi
22729{ echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
22730echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
22731
22732fi
22733if test $ac_cv_header_stdarg_h = yes; then
22734 :
22735else
22736 { { echo "$as_me:$LINENO: error: ** stdarg.h could not be found - libratbox will not compile without it **" >&5
22737echo "$as_me: error: ** stdarg.h could not be found - libratbox will not compile without it **" >&2;}
22738 { (exit 1); exit 1; }; }
22739fi
22740
22741
22742
22743{ echo "$as_me:$LINENO: checking for sa_family_t" >&5
22744echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
22745if test "${ac_cv_type_sa_family_t+set}" = set; then
22746 echo $ECHO_N "(cached) $ECHO_C" >&6
22747else
22748 cat >conftest.$ac_ext <<_ACEOF
22749/* confdefs.h. */
22750_ACEOF
22751cat confdefs.h >>conftest.$ac_ext
22752cat >>conftest.$ac_ext <<_ACEOF
22753/* end confdefs.h. */
22754#include <sys/types.h>
22755#include <sys/socket.h>
22756
22757typedef sa_family_t ac__type_new_;
22758int
22759main ()
22760{
22761if ((ac__type_new_ *) 0)
22762 return 0;
22763if (sizeof (ac__type_new_))
22764 return 0;
22765 ;
22766 return 0;
22767}
22768_ACEOF
22769rm -f conftest.$ac_objext
22770if { (ac_try="$ac_compile"
22771case "(($ac_try" in
22772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22773 *) ac_try_echo=$ac_try;;
22774esac
22775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22776 (eval "$ac_compile") 2>conftest.er1
22777 ac_status=$?
22778 grep -v '^ *+' conftest.er1 >conftest.err
22779 rm -f conftest.er1
22780 cat conftest.err >&5
22781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782 (exit $ac_status); } && {
22783 test -z "$ac_c_werror_flag" ||
22784 test ! -s conftest.err
22785 } && test -s conftest.$ac_objext; then
22786 ac_cv_type_sa_family_t=yes
22787else
22788 echo "$as_me: failed program was:" >&5
22789sed 's/^/| /' conftest.$ac_ext >&5
22790
22791 ac_cv_type_sa_family_t=no
22792fi
22793
22794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22795fi
22796{ echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
22797echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6; }
22798if test $ac_cv_type_sa_family_t = yes; then
22799 :
22800else
22801
22802cat >>confdefs.h <<\_ACEOF
22803#define sa_family_t u_int16_t
22804_ACEOF
22805
22806fi
22807
22808
22809
22810
22811
22812
22813
22814
22815
22816
22817
22818
22819
22820
22821
22822
22823
22824
22825
22826
22827
4414eb3c
VY
22828
22829
94b4fbf9
VY
22830
22831for ac_func in socketpair gettimeofday writev sendmsg gmtime_r strtok_r usleep posix_spawn strlcpy strlcat strnlen fstat signalfd select poll kevent port_create epoll_ctl arc4random getrusage timerfd_create
b57f37fb
WP
22832do
22833as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22834{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22835echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22836if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22837 echo $ECHO_N "(cached) $ECHO_C" >&6
22838else
22839 cat >conftest.$ac_ext <<_ACEOF
22840/* confdefs.h. */
22841_ACEOF
22842cat confdefs.h >>conftest.$ac_ext
22843cat >>conftest.$ac_ext <<_ACEOF
22844/* end confdefs.h. */
22845/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22847#define $ac_func innocuous_$ac_func
22848
22849/* System header to define __stub macros and hopefully few prototypes,
22850 which can conflict with char $ac_func (); below.
22851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22852 <limits.h> exists even on freestanding compilers. */
22853
22854#ifdef __STDC__
22855# include <limits.h>
22856#else
22857# include <assert.h>
22858#endif
22859
22860#undef $ac_func
22861
22862/* Override any GCC internal prototype to avoid an error.
22863 Use char because int might match the return type of a GCC
22864 builtin and then its argument prototype would still apply. */
22865#ifdef __cplusplus
22866extern "C"
22867#endif
22868char $ac_func ();
22869/* The GNU C library defines this for functions which it implements
22870 to always fail with ENOSYS. Some functions are actually named
22871 something starting with __ and the normal name is an alias. */
22872#if defined __stub_$ac_func || defined __stub___$ac_func
22873choke me
22874#endif
22875
22876int
22877main ()
22878{
22879return $ac_func ();
22880 ;
22881 return 0;
22882}
22883_ACEOF
22884rm -f conftest.$ac_objext conftest$ac_exeext
22885if { (ac_try="$ac_link"
22886case "(($ac_try" in
22887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22888 *) ac_try_echo=$ac_try;;
22889esac
22890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22891 (eval "$ac_link") 2>conftest.er1
22892 ac_status=$?
22893 grep -v '^ *+' conftest.er1 >conftest.err
22894 rm -f conftest.er1
22895 cat conftest.err >&5
22896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22897 (exit $ac_status); } && {
22898 test -z "$ac_c_werror_flag" ||
22899 test ! -s conftest.err
22900 } && test -s conftest$ac_exeext &&
22901 $as_test_x conftest$ac_exeext; then
22902 eval "$as_ac_var=yes"
22903else
22904 echo "$as_me: failed program was:" >&5
22905sed 's/^/| /' conftest.$ac_ext >&5
22906
22907 eval "$as_ac_var=no"
22908fi
22909
22910rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22911 conftest$ac_exeext conftest.$ac_ext
22912fi
22913ac_res=`eval echo '${'$as_ac_var'}'`
22914 { echo "$as_me:$LINENO: result: $ac_res" >&5
22915echo "${ECHO_T}$ac_res" >&6; }
22916if test `eval echo '${'$as_ac_var'}'` = yes; then
22917 cat >>confdefs.h <<_ACEOF
22918#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22919_ACEOF
22920
22921fi
22922done
22923
22924
22925{ echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
22926echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
22927if test "${ac_cv_search_nanosleep+set}" = set; then
22928 echo $ECHO_N "(cached) $ECHO_C" >&6
22929else
22930 ac_func_search_save_LIBS=$LIBS
22931cat >conftest.$ac_ext <<_ACEOF
22932/* confdefs.h. */
22933_ACEOF
22934cat confdefs.h >>conftest.$ac_ext
22935cat >>conftest.$ac_ext <<_ACEOF
22936/* end confdefs.h. */
22937
22938/* Override any GCC internal prototype to avoid an error.
22939 Use char because int might match the return type of a GCC
22940 builtin and then its argument prototype would still apply. */
22941#ifdef __cplusplus
22942extern "C"
22943#endif
22944char nanosleep ();
22945int
22946main ()
22947{
22948return nanosleep ();
22949 ;
22950 return 0;
22951}
22952_ACEOF
22953for ac_lib in '' rt posix4; do
22954 if test -z "$ac_lib"; then
22955 ac_res="none required"
22956 else
22957 ac_res=-l$ac_lib
22958 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22959 fi
22960 rm -f conftest.$ac_objext conftest$ac_exeext
22961if { (ac_try="$ac_link"
22962case "(($ac_try" in
22963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22964 *) ac_try_echo=$ac_try;;
22965esac
22966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22967 (eval "$ac_link") 2>conftest.er1
22968 ac_status=$?
22969 grep -v '^ *+' conftest.er1 >conftest.err
22970 rm -f conftest.er1
22971 cat conftest.err >&5
22972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22973 (exit $ac_status); } && {
22974 test -z "$ac_c_werror_flag" ||
22975 test ! -s conftest.err
22976 } && test -s conftest$ac_exeext &&
22977 $as_test_x conftest$ac_exeext; then
22978 ac_cv_search_nanosleep=$ac_res
22979else
22980 echo "$as_me: failed program was:" >&5
22981sed 's/^/| /' conftest.$ac_ext >&5
22982
22983
22984fi
22985
22986rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22987 conftest$ac_exeext
22988 if test "${ac_cv_search_nanosleep+set}" = set; then
22989 break
22990fi
22991done
22992if test "${ac_cv_search_nanosleep+set}" = set; then
22993 :
22994else
22995 ac_cv_search_nanosleep=no
22996fi
22997rm conftest.$ac_ext
22998LIBS=$ac_func_search_save_LIBS
22999fi
23000{ echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
23001echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
23002ac_res=$ac_cv_search_nanosleep
23003if test "$ac_res" != no; then
23004 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23005
23006cat >>confdefs.h <<\_ACEOF
23007#define HAVE_NANOSLEEP 1
23008_ACEOF
23009
23010fi
23011
23012{ echo "$as_me:$LINENO: checking for library containing timer_create" >&5
23013echo $ECHO_N "checking for library containing timer_create... $ECHO_C" >&6; }
23014if test "${ac_cv_search_timer_create+set}" = set; then
23015 echo $ECHO_N "(cached) $ECHO_C" >&6
23016else
23017 ac_func_search_save_LIBS=$LIBS
23018cat >conftest.$ac_ext <<_ACEOF
23019/* confdefs.h. */
23020_ACEOF
23021cat confdefs.h >>conftest.$ac_ext
23022cat >>conftest.$ac_ext <<_ACEOF
23023/* end confdefs.h. */
23024
23025/* Override any GCC internal prototype to avoid an error.
23026 Use char because int might match the return type of a GCC
23027 builtin and then its argument prototype would still apply. */
23028#ifdef __cplusplus
23029extern "C"
23030#endif
23031char timer_create ();
23032int
23033main ()
23034{
23035return timer_create ();
23036 ;
23037 return 0;
23038}
23039_ACEOF
23040for ac_lib in '' rt; do
23041 if test -z "$ac_lib"; then
23042 ac_res="none required"
23043 else
23044 ac_res=-l$ac_lib
23045 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23046 fi
23047 rm -f conftest.$ac_objext conftest$ac_exeext
23048if { (ac_try="$ac_link"
23049case "(($ac_try" in
23050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23051 *) ac_try_echo=$ac_try;;
23052esac
23053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23054 (eval "$ac_link") 2>conftest.er1
23055 ac_status=$?
23056 grep -v '^ *+' conftest.er1 >conftest.err
23057 rm -f conftest.er1
23058 cat conftest.err >&5
23059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060 (exit $ac_status); } && {
23061 test -z "$ac_c_werror_flag" ||
23062 test ! -s conftest.err
23063 } && test -s conftest$ac_exeext &&
23064 $as_test_x conftest$ac_exeext; then
23065 ac_cv_search_timer_create=$ac_res
23066else
23067 echo "$as_me: failed program was:" >&5
23068sed 's/^/| /' conftest.$ac_ext >&5
23069
23070
23071fi
23072
23073rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23074 conftest$ac_exeext
23075 if test "${ac_cv_search_timer_create+set}" = set; then
23076 break
23077fi
23078done
23079if test "${ac_cv_search_timer_create+set}" = set; then
23080 :
23081else
23082 ac_cv_search_timer_create=no
23083fi
23084rm conftest.$ac_ext
23085LIBS=$ac_func_search_save_LIBS
23086fi
23087{ echo "$as_me:$LINENO: result: $ac_cv_search_timer_create" >&5
23088echo "${ECHO_T}$ac_cv_search_timer_create" >&6; }
23089ac_res=$ac_cv_search_timer_create
23090if test "$ac_res" != no; then
23091 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23092
23093cat >>confdefs.h <<\_ACEOF
23094#define HAVE_TIMER_CREATE 1
23095_ACEOF
23096
23097fi
23098
23099{ echo "$as_me:$LINENO: checking for a working timer_create(CLOCK_REALTIME)" >&5
23100echo $ECHO_N "checking for a working timer_create(CLOCK_REALTIME)... $ECHO_C" >&6; }
23101if test "${rb__cv_timer_create_works+set}" = set; then
23102 echo $ECHO_N "(cached) $ECHO_C" >&6
23103else
23104 if test "$cross_compiling" = yes; then
23105 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23106See \`config.log' for more details." >&5
23107echo "$as_me: error: cannot run test program while cross compiling
23108See \`config.log' for more details." >&2;}
23109 { (exit 1); exit 1; }; }
23110else
23111 cat >conftest.$ac_ext <<_ACEOF
23112/* confdefs.h. */
23113_ACEOF
23114cat confdefs.h >>conftest.$ac_ext
23115cat >>conftest.$ac_ext <<_ACEOF
23116/* end confdefs.h. */
23117
23118#ifdef HAVE_TIME_H
23119#include <time.h>
23120#endif
23121#ifdef HAVE_SIGNAL_H
23122#include <signal.h>
23123#endif
23124#ifdef HAVE_UNISTD_H
23125#include <unistd.h>
23126#endif
23127int main(int argc, char *argv[])
23128{
23129#if HAVE_TIMER_CREATE
23130 struct sigevent ev;
23131 timer_t timer;
23132 ev.sigev_notify = SIGEV_SIGNAL;
23133 ev.sigev_signo = SIGVTALRM;
23134 if (timer_create(CLOCK_REALTIME, &ev, &timer) != 0) {
23135 return 1;
23136 }
23137#else
23138 return 1;
23139#endif
23140 return 0;
23141}
23142
23143_ACEOF
23144rm -f conftest$ac_exeext
23145if { (ac_try="$ac_link"
23146case "(($ac_try" in
23147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23148 *) ac_try_echo=$ac_try;;
23149esac
23150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23151 (eval "$ac_link") 2>&5
23152 ac_status=$?
23153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23155 { (case "(($ac_try" in
23156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23157 *) ac_try_echo=$ac_try;;
23158esac
23159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23160 (eval "$ac_try") 2>&5
23161 ac_status=$?
23162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23163 (exit $ac_status); }; }; then
23164 rb__cv_timer_create_works=yes
23165else
23166 echo "$as_me: program exited with status $ac_status" >&5
23167echo "$as_me: failed program was:" >&5
23168sed 's/^/| /' conftest.$ac_ext >&5
23169
23170( exit $ac_status )
23171rb__cv_timer_create_works=no
23172fi
23173rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23174fi
23175
23176
23177
23178fi
23179{ echo "$as_me:$LINENO: result: $rb__cv_timer_create_works" >&5
23180echo "${ECHO_T}$rb__cv_timer_create_works" >&6; }
23181case $rb__cv_timer_create_works in
23182 yes)
23183cat >>confdefs.h <<\_ACEOF
23184#define USE_TIMER_CREATE 1
23185_ACEOF
23186;;
23187esac
23188
94b4fbf9
VY
23189{ echo "$as_me:$LINENO: checking for a working timerfd_create(CLOCK_REALTIME)" >&5
23190echo $ECHO_N "checking for a working timerfd_create(CLOCK_REALTIME)... $ECHO_C" >&6; }
23191if test "${rb__cv_timerfd_create_works+set}" = set; then
23192 echo $ECHO_N "(cached) $ECHO_C" >&6
23193else
23194 if test "$cross_compiling" = yes; then
23195 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23196See \`config.log' for more details." >&5
23197echo "$as_me: error: cannot run test program while cross compiling
23198See \`config.log' for more details." >&2;}
23199 { (exit 1); exit 1; }; }
23200else
23201 cat >conftest.$ac_ext <<_ACEOF
23202/* confdefs.h. */
23203_ACEOF
23204cat confdefs.h >>conftest.$ac_ext
23205cat >>conftest.$ac_ext <<_ACEOF
23206/* end confdefs.h. */
23207
23208#ifdef HAVE_TIME_H
23209#include <time.h>
23210#endif
23211#ifdef HAVE_SIGNAL_H
23212#include <signal.h>
23213#endif
23214#ifdef HAVE_UNISTD_H
23215#include <unistd.h>
23216#endif
23217#ifdef HAVE_SYS_TIMERFD_H
23218#include <sys/timerfd.h>
23219#endif
23220int main(int argc, char *argv[])
23221{
23222#if defined(HAVE_TIMERFD_CREATE) && defined(HAVE_SYS_TIMERFD_H)
23223 if (timerfd_create(CLOCK_REALTIME, 0) < 0) {
23224 return 1;
23225 }
23226#else
23227 return 1;
23228#endif
23229 return 0;
23230}
23231
23232_ACEOF
23233rm -f conftest$ac_exeext
23234if { (ac_try="$ac_link"
23235case "(($ac_try" in
23236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23237 *) ac_try_echo=$ac_try;;
23238esac
23239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23240 (eval "$ac_link") 2>&5
23241 ac_status=$?
23242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23243 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23244 { (case "(($ac_try" in
23245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23246 *) ac_try_echo=$ac_try;;
23247esac
23248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23249 (eval "$ac_try") 2>&5
23250 ac_status=$?
23251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23252 (exit $ac_status); }; }; then
23253 rb__cv_timerfd_create_works=yes
23254else
23255 echo "$as_me: program exited with status $ac_status" >&5
23256echo "$as_me: failed program was:" >&5
23257sed 's/^/| /' conftest.$ac_ext >&5
23258
23259( exit $ac_status )
23260rb__cv_timerfd_create_works=no
23261fi
23262rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23263fi
23264
23265
23266
23267fi
23268{ echo "$as_me:$LINENO: result: $rb__cv_timerfd_create_works" >&5
23269echo "${ECHO_T}$rb__cv_timerfd_create_works" >&6; }
23270case $rb__cv_timerfd_create_works in
23271 yes)
23272cat >>confdefs.h <<\_ACEOF
23273#define USE_TIMERFD_CREATE 1
23274_ACEOF
23275;;
23276esac
23277
b57f37fb
WP
23278
23279# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23280# for constant arguments. Useless!
23281{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
23282echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
23283if test "${ac_cv_working_alloca_h+set}" = set; then
23284 echo $ECHO_N "(cached) $ECHO_C" >&6
23285else
23286 cat >conftest.$ac_ext <<_ACEOF
23287/* confdefs.h. */
23288_ACEOF
23289cat confdefs.h >>conftest.$ac_ext
23290cat >>conftest.$ac_ext <<_ACEOF
23291/* end confdefs.h. */
23292#include <alloca.h>
23293int
23294main ()
23295{
23296char *p = (char *) alloca (2 * sizeof (int));
23297 if (p) return 0;
23298 ;
23299 return 0;
23300}
23301_ACEOF
23302rm -f conftest.$ac_objext conftest$ac_exeext
23303if { (ac_try="$ac_link"
23304case "(($ac_try" in
23305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23306 *) ac_try_echo=$ac_try;;
23307esac
23308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23309 (eval "$ac_link") 2>conftest.er1
23310 ac_status=$?
23311 grep -v '^ *+' conftest.er1 >conftest.err
23312 rm -f conftest.er1
23313 cat conftest.err >&5
23314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23315 (exit $ac_status); } && {
23316 test -z "$ac_c_werror_flag" ||
23317 test ! -s conftest.err
23318 } && test -s conftest$ac_exeext &&
23319 $as_test_x conftest$ac_exeext; then
23320 ac_cv_working_alloca_h=yes
23321else
23322 echo "$as_me: failed program was:" >&5
23323sed 's/^/| /' conftest.$ac_ext >&5
23324
23325 ac_cv_working_alloca_h=no
23326fi
23327
23328rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23329 conftest$ac_exeext conftest.$ac_ext
23330fi
23331{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
23332echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
23333if test $ac_cv_working_alloca_h = yes; then
23334
23335cat >>confdefs.h <<\_ACEOF
23336#define HAVE_ALLOCA_H 1
23337_ACEOF
23338
23339fi
23340
23341{ echo "$as_me:$LINENO: checking for alloca" >&5
23342echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
23343if test "${ac_cv_func_alloca_works+set}" = set; then
23344 echo $ECHO_N "(cached) $ECHO_C" >&6
23345else
23346 cat >conftest.$ac_ext <<_ACEOF
23347/* confdefs.h. */
23348_ACEOF
23349cat confdefs.h >>conftest.$ac_ext
23350cat >>conftest.$ac_ext <<_ACEOF
23351/* end confdefs.h. */
23352#ifdef __GNUC__
23353# define alloca __builtin_alloca
23354#else
23355# ifdef _MSC_VER
23356# include <malloc.h>
23357# define alloca _alloca
23358# else
23359# ifdef HAVE_ALLOCA_H
23360# include <alloca.h>
23361# else
23362# ifdef _AIX
23363 #pragma alloca
23364# else
23365# ifndef alloca /* predefined by HP cc +Olibcalls */
23366char *alloca ();
23367# endif
23368# endif
23369# endif
23370# endif
23371#endif
23372
23373int
23374main ()
23375{
23376char *p = (char *) alloca (1);
23377 if (p) return 0;
23378 ;
23379 return 0;
23380}
23381_ACEOF
23382rm -f conftest.$ac_objext conftest$ac_exeext
23383if { (ac_try="$ac_link"
23384case "(($ac_try" in
23385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23386 *) ac_try_echo=$ac_try;;
23387esac
23388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23389 (eval "$ac_link") 2>conftest.er1
23390 ac_status=$?
23391 grep -v '^ *+' conftest.er1 >conftest.err
23392 rm -f conftest.er1
23393 cat conftest.err >&5
23394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23395 (exit $ac_status); } && {
23396 test -z "$ac_c_werror_flag" ||
23397 test ! -s conftest.err
23398 } && test -s conftest$ac_exeext &&
23399 $as_test_x conftest$ac_exeext; then
23400 ac_cv_func_alloca_works=yes
23401else
23402 echo "$as_me: failed program was:" >&5
23403sed 's/^/| /' conftest.$ac_ext >&5
23404
23405 ac_cv_func_alloca_works=no
23406fi
23407
23408rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23409 conftest$ac_exeext conftest.$ac_ext
23410fi
23411{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
23412echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
23413
23414if test $ac_cv_func_alloca_works = yes; then
23415
23416cat >>confdefs.h <<\_ACEOF
23417#define HAVE_ALLOCA 1
23418_ACEOF
23419
23420else
23421 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
23422# that cause trouble. Some versions do not even contain alloca or
23423# contain a buggy version. If you still want to use their alloca,
23424# use ar to extract alloca.o from them instead of compiling alloca.c.
23425
23426ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
23427
23428cat >>confdefs.h <<\_ACEOF
23429#define C_ALLOCA 1
23430_ACEOF
23431
23432
23433{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
23434echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
23435if test "${ac_cv_os_cray+set}" = set; then
23436 echo $ECHO_N "(cached) $ECHO_C" >&6
23437else
23438 cat >conftest.$ac_ext <<_ACEOF
23439/* confdefs.h. */
23440_ACEOF
23441cat confdefs.h >>conftest.$ac_ext
23442cat >>conftest.$ac_ext <<_ACEOF
23443/* end confdefs.h. */
23444#if defined CRAY && ! defined CRAY2
23445webecray
23446#else
23447wenotbecray
23448#endif
23449
23450_ACEOF
23451if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23452 $EGREP "webecray" >/dev/null 2>&1; then
23453 ac_cv_os_cray=yes
23454else
23455 ac_cv_os_cray=no
23456fi
23457rm -f conftest*
23458
23459fi
23460{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
23461echo "${ECHO_T}$ac_cv_os_cray" >&6; }
23462if test $ac_cv_os_cray = yes; then
23463 for ac_func in _getb67 GETB67 getb67; do
23464 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23465{ echo "$as_me:$LINENO: checking for $ac_func" >&5
23466echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23467if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23468 echo $ECHO_N "(cached) $ECHO_C" >&6
23469else
23470 cat >conftest.$ac_ext <<_ACEOF
23471/* confdefs.h. */
23472_ACEOF
23473cat confdefs.h >>conftest.$ac_ext
23474cat >>conftest.$ac_ext <<_ACEOF
23475/* end confdefs.h. */
23476/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23478#define $ac_func innocuous_$ac_func
23479
23480/* System header to define __stub macros and hopefully few prototypes,
23481 which can conflict with char $ac_func (); below.
23482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23483 <limits.h> exists even on freestanding compilers. */
23484
23485#ifdef __STDC__
23486# include <limits.h>
23487#else
23488# include <assert.h>
23489#endif
23490
23491#undef $ac_func
23492
23493/* Override any GCC internal prototype to avoid an error.
23494 Use char because int might match the return type of a GCC
23495 builtin and then its argument prototype would still apply. */
23496#ifdef __cplusplus
23497extern "C"
23498#endif
23499char $ac_func ();
23500/* The GNU C library defines this for functions which it implements
23501 to always fail with ENOSYS. Some functions are actually named
23502 something starting with __ and the normal name is an alias. */
23503#if defined __stub_$ac_func || defined __stub___$ac_func
23504choke me
23505#endif
23506
23507int
23508main ()
23509{
23510return $ac_func ();
23511 ;
23512 return 0;
23513}
23514_ACEOF
23515rm -f conftest.$ac_objext conftest$ac_exeext
23516if { (ac_try="$ac_link"
23517case "(($ac_try" in
23518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23519 *) ac_try_echo=$ac_try;;
23520esac
23521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23522 (eval "$ac_link") 2>conftest.er1
23523 ac_status=$?
23524 grep -v '^ *+' conftest.er1 >conftest.err
23525 rm -f conftest.er1
23526 cat conftest.err >&5
23527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528 (exit $ac_status); } && {
23529 test -z "$ac_c_werror_flag" ||
23530 test ! -s conftest.err
23531 } && test -s conftest$ac_exeext &&
23532 $as_test_x conftest$ac_exeext; then
23533 eval "$as_ac_var=yes"
23534else
23535 echo "$as_me: failed program was:" >&5
23536sed 's/^/| /' conftest.$ac_ext >&5
23537
23538 eval "$as_ac_var=no"
23539fi
23540
23541rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23542 conftest$ac_exeext conftest.$ac_ext
23543fi
23544ac_res=`eval echo '${'$as_ac_var'}'`
23545 { echo "$as_me:$LINENO: result: $ac_res" >&5
23546echo "${ECHO_T}$ac_res" >&6; }
23547if test `eval echo '${'$as_ac_var'}'` = yes; then
23548
23549cat >>confdefs.h <<_ACEOF
23550#define CRAY_STACKSEG_END $ac_func
23551_ACEOF
23552
23553 break
23554fi
23555
23556 done
23557fi
23558
23559{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
23560echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
23561if test "${ac_cv_c_stack_direction+set}" = set; then
23562 echo $ECHO_N "(cached) $ECHO_C" >&6
23563else
23564 if test "$cross_compiling" = yes; then
23565 ac_cv_c_stack_direction=0
23566else
23567 cat >conftest.$ac_ext <<_ACEOF
23568/* confdefs.h. */
23569_ACEOF
23570cat confdefs.h >>conftest.$ac_ext
23571cat >>conftest.$ac_ext <<_ACEOF
23572/* end confdefs.h. */
23573$ac_includes_default
23574int
23575find_stack_direction ()
23576{
23577 static char *addr = 0;
23578 auto char dummy;
23579 if (addr == 0)
23580 {
23581 addr = &dummy;
23582 return find_stack_direction ();
23583 }
23584 else
23585 return (&dummy > addr) ? 1 : -1;
23586}
23587
23588int
23589main ()
23590{
23591 return find_stack_direction () < 0;
23592}
23593_ACEOF
23594rm -f conftest$ac_exeext
23595if { (ac_try="$ac_link"
23596case "(($ac_try" in
23597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23598 *) ac_try_echo=$ac_try;;
23599esac
23600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23601 (eval "$ac_link") 2>&5
23602 ac_status=$?
23603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23605 { (case "(($ac_try" in
23606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23607 *) ac_try_echo=$ac_try;;
23608esac
23609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23610 (eval "$ac_try") 2>&5
23611 ac_status=$?
23612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613 (exit $ac_status); }; }; then
23614 ac_cv_c_stack_direction=1
23615else
23616 echo "$as_me: program exited with status $ac_status" >&5
23617echo "$as_me: failed program was:" >&5
23618sed 's/^/| /' conftest.$ac_ext >&5
23619
23620( exit $ac_status )
23621ac_cv_c_stack_direction=-1
23622fi
23623rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23624fi
23625
23626
23627fi
23628{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23629echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
23630
23631cat >>confdefs.h <<_ACEOF
23632#define STACK_DIRECTION $ac_cv_c_stack_direction
23633_ACEOF
23634
23635
23636fi
23637
23638
23639for ac_header in vfork.h
23640do
23641as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23642if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23643 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23645if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23646 echo $ECHO_N "(cached) $ECHO_C" >&6
23647fi
23648ac_res=`eval echo '${'$as_ac_Header'}'`
23649 { echo "$as_me:$LINENO: result: $ac_res" >&5
23650echo "${ECHO_T}$ac_res" >&6; }
23651else
23652 # Is the header compilable?
23653{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
23654echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23655cat >conftest.$ac_ext <<_ACEOF
23656/* confdefs.h. */
23657_ACEOF
23658cat confdefs.h >>conftest.$ac_ext
23659cat >>conftest.$ac_ext <<_ACEOF
23660/* end confdefs.h. */
23661$ac_includes_default
23662#include <$ac_header>
23663_ACEOF
23664rm -f conftest.$ac_objext
23665if { (ac_try="$ac_compile"
23666case "(($ac_try" in
23667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23668 *) ac_try_echo=$ac_try;;
23669esac
23670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23671 (eval "$ac_compile") 2>conftest.er1
23672 ac_status=$?
23673 grep -v '^ *+' conftest.er1 >conftest.err
23674 rm -f conftest.er1
23675 cat conftest.err >&5
23676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23677 (exit $ac_status); } && {
23678 test -z "$ac_c_werror_flag" ||
23679 test ! -s conftest.err
23680 } && test -s conftest.$ac_objext; then
23681 ac_header_compiler=yes
23682else
23683 echo "$as_me: failed program was:" >&5
23684sed 's/^/| /' conftest.$ac_ext >&5
23685
23686 ac_header_compiler=no
23687fi
23688
23689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23690{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23691echo "${ECHO_T}$ac_header_compiler" >&6; }
23692
23693# Is the header present?
23694{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
23695echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23696cat >conftest.$ac_ext <<_ACEOF
23697/* confdefs.h. */
23698_ACEOF
23699cat confdefs.h >>conftest.$ac_ext
23700cat >>conftest.$ac_ext <<_ACEOF
23701/* end confdefs.h. */
23702#include <$ac_header>
23703_ACEOF
23704if { (ac_try="$ac_cpp conftest.$ac_ext"
23705case "(($ac_try" in
23706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23707 *) ac_try_echo=$ac_try;;
23708esac
23709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23711 ac_status=$?
23712 grep -v '^ *+' conftest.er1 >conftest.err
23713 rm -f conftest.er1
23714 cat conftest.err >&5
23715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23716 (exit $ac_status); } >/dev/null && {
23717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23718 test ! -s conftest.err
23719 }; then
23720 ac_header_preproc=yes
23721else
23722 echo "$as_me: failed program was:" >&5
23723sed 's/^/| /' conftest.$ac_ext >&5
23724
23725 ac_header_preproc=no
23726fi
23727
23728rm -f conftest.err conftest.$ac_ext
23729{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23730echo "${ECHO_T}$ac_header_preproc" >&6; }
23731
23732# So? What about this header?
23733case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23734 yes:no: )
23735 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23736echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23738echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23739 ac_header_preproc=yes
23740 ;;
23741 no:yes:* )
23742 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23743echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23744 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23745echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23746 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23747echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23748 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23749echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23751echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23752 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23753echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23754
23755 ;;
23756esac
23757{ echo "$as_me:$LINENO: checking for $ac_header" >&5
23758echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23759if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23760 echo $ECHO_N "(cached) $ECHO_C" >&6
23761else
23762 eval "$as_ac_Header=\$ac_header_preproc"
23763fi
23764ac_res=`eval echo '${'$as_ac_Header'}'`
23765 { echo "$as_me:$LINENO: result: $ac_res" >&5
23766echo "${ECHO_T}$ac_res" >&6; }
23767
23768fi
23769if test `eval echo '${'$as_ac_Header'}'` = yes; then
23770 cat >>confdefs.h <<_ACEOF
23771#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23772_ACEOF
23773
23774fi
23775
23776done
23777
23778
23779
23780for ac_func in fork vfork
23781do
23782as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23783{ echo "$as_me:$LINENO: checking for $ac_func" >&5
23784echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23785if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23786 echo $ECHO_N "(cached) $ECHO_C" >&6
23787else
23788 cat >conftest.$ac_ext <<_ACEOF
23789/* confdefs.h. */
23790_ACEOF
23791cat confdefs.h >>conftest.$ac_ext
23792cat >>conftest.$ac_ext <<_ACEOF
23793/* end confdefs.h. */
23794/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23796#define $ac_func innocuous_$ac_func
23797
23798/* System header to define __stub macros and hopefully few prototypes,
23799 which can conflict with char $ac_func (); below.
23800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23801 <limits.h> exists even on freestanding compilers. */
23802
23803#ifdef __STDC__
23804# include <limits.h>
23805#else
23806# include <assert.h>
23807#endif
23808
23809#undef $ac_func
23810
23811/* Override any GCC internal prototype to avoid an error.
23812 Use char because int might match the return type of a GCC
23813 builtin and then its argument prototype would still apply. */
23814#ifdef __cplusplus
23815extern "C"
23816#endif
23817char $ac_func ();
23818/* The GNU C library defines this for functions which it implements
23819 to always fail with ENOSYS. Some functions are actually named
23820 something starting with __ and the normal name is an alias. */
23821#if defined __stub_$ac_func || defined __stub___$ac_func
23822choke me
23823#endif
23824
23825int
23826main ()
23827{
23828return $ac_func ();
23829 ;
23830 return 0;
23831}
23832_ACEOF
23833rm -f conftest.$ac_objext conftest$ac_exeext
23834if { (ac_try="$ac_link"
23835case "(($ac_try" in
23836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23837 *) ac_try_echo=$ac_try;;
23838esac
23839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23840 (eval "$ac_link") 2>conftest.er1
23841 ac_status=$?
23842 grep -v '^ *+' conftest.er1 >conftest.err
23843 rm -f conftest.er1
23844 cat conftest.err >&5
23845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23846 (exit $ac_status); } && {
23847 test -z "$ac_c_werror_flag" ||
23848 test ! -s conftest.err
23849 } && test -s conftest$ac_exeext &&
23850 $as_test_x conftest$ac_exeext; then
23851 eval "$as_ac_var=yes"
23852else
23853 echo "$as_me: failed program was:" >&5
23854sed 's/^/| /' conftest.$ac_ext >&5
23855
23856 eval "$as_ac_var=no"
23857fi
23858
23859rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23860 conftest$ac_exeext conftest.$ac_ext
23861fi
23862ac_res=`eval echo '${'$as_ac_var'}'`
23863 { echo "$as_me:$LINENO: result: $ac_res" >&5
23864echo "${ECHO_T}$ac_res" >&6; }
23865if test `eval echo '${'$as_ac_var'}'` = yes; then
23866 cat >>confdefs.h <<_ACEOF
23867#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23868_ACEOF
23869
23870fi
23871done
23872
23873if test "x$ac_cv_func_fork" = xyes; then
23874 { echo "$as_me:$LINENO: checking for working fork" >&5
23875echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23876if test "${ac_cv_func_fork_works+set}" = set; then
23877 echo $ECHO_N "(cached) $ECHO_C" >&6
23878else
23879 if test "$cross_compiling" = yes; then
23880 ac_cv_func_fork_works=cross
23881else
23882 cat >conftest.$ac_ext <<_ACEOF
23883/* confdefs.h. */
23884_ACEOF
23885cat confdefs.h >>conftest.$ac_ext
23886cat >>conftest.$ac_ext <<_ACEOF
23887/* end confdefs.h. */
23888$ac_includes_default
23889int
23890main ()
23891{
23892
23893 /* By Ruediger Kuhlmann. */
23894 return fork () < 0;
23895
23896 ;
23897 return 0;
23898}
23899_ACEOF
23900rm -f conftest$ac_exeext
23901if { (ac_try="$ac_link"
23902case "(($ac_try" in
23903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23904 *) ac_try_echo=$ac_try;;
23905esac
23906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23907 (eval "$ac_link") 2>&5
23908 ac_status=$?
23909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23910 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23911 { (case "(($ac_try" in
23912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23913 *) ac_try_echo=$ac_try;;
23914esac
23915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23916 (eval "$ac_try") 2>&5
23917 ac_status=$?
23918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23919 (exit $ac_status); }; }; then
23920 ac_cv_func_fork_works=yes
23921else
23922 echo "$as_me: program exited with status $ac_status" >&5
23923echo "$as_me: failed program was:" >&5
23924sed 's/^/| /' conftest.$ac_ext >&5
23925
23926( exit $ac_status )
23927ac_cv_func_fork_works=no
23928fi
23929rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23930fi
23931
23932
23933fi
23934{ echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23935echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23936
23937else
23938 ac_cv_func_fork_works=$ac_cv_func_fork
23939fi
23940if test "x$ac_cv_func_fork_works" = xcross; then
23941 case $host in
23942 *-*-amigaos* | *-*-msdosdjgpp*)
23943 # Override, as these systems have only a dummy fork() stub
23944 ac_cv_func_fork_works=no
23945 ;;
23946 *)
23947 ac_cv_func_fork_works=yes
23948 ;;
23949 esac
23950 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23951echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23952fi
23953ac_cv_func_vfork_works=$ac_cv_func_vfork
23954if test "x$ac_cv_func_vfork" = xyes; then
23955 { echo "$as_me:$LINENO: checking for working vfork" >&5
23956echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23957if test "${ac_cv_func_vfork_works+set}" = set; then
23958 echo $ECHO_N "(cached) $ECHO_C" >&6
23959else
23960 if test "$cross_compiling" = yes; then
23961 ac_cv_func_vfork_works=cross
23962else
23963 cat >conftest.$ac_ext <<_ACEOF
23964/* confdefs.h. */
23965_ACEOF
23966cat confdefs.h >>conftest.$ac_ext
23967cat >>conftest.$ac_ext <<_ACEOF
23968/* end confdefs.h. */
23969/* Thanks to Paul Eggert for this test. */
23970$ac_includes_default
23971#include <sys/wait.h>
23972#ifdef HAVE_VFORK_H
23973# include <vfork.h>
23974#endif
23975/* On some sparc systems, changes by the child to local and incoming
23976 argument registers are propagated back to the parent. The compiler
23977 is told about this with #include <vfork.h>, but some compilers
23978 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23979 static variable whose address is put into a register that is
23980 clobbered by the vfork. */
23981static void
23982#ifdef __cplusplus
23983sparc_address_test (int arg)
23984# else
23985sparc_address_test (arg) int arg;
23986#endif
23987{
23988 static pid_t child;
23989 if (!child) {
23990 child = vfork ();
23991 if (child < 0) {
23992 perror ("vfork");
23993 _exit(2);
23994 }
23995 if (!child) {
23996 arg = getpid();
23997 write(-1, "", 0);
23998 _exit (arg);
23999 }
24000 }
24001}
24002
24003int
24004main ()
24005{
24006 pid_t parent = getpid ();
24007 pid_t child;
24008
24009 sparc_address_test (0);
24010
24011 child = vfork ();
24012
24013 if (child == 0) {
24014 /* Here is another test for sparc vfork register problems. This
24015 test uses lots of local variables, at least as many local
24016 variables as main has allocated so far including compiler
24017 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24018 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24019 reuse the register of parent for one of the local variables,
24020 since it will think that parent can't possibly be used any more
24021 in this routine. Assigning to the local variable will thus
24022 munge parent in the parent process. */
24023 pid_t
24024 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24025 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24026 /* Convince the compiler that p..p7 are live; otherwise, it might
24027 use the same hardware register for all 8 local variables. */
24028 if (p != p1 || p != p2 || p != p3 || p != p4
24029 || p != p5 || p != p6 || p != p7)
24030 _exit(1);
24031
24032 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24033 from child file descriptors. If the child closes a descriptor
24034 before it execs or exits, this munges the parent's descriptor
24035 as well. Test for this by closing stdout in the child. */
24036 _exit(close(fileno(stdout)) != 0);
24037 } else {
24038 int status;
24039 struct stat st;
24040
24041 while (wait(&status) != child)
24042 ;
24043 return (
24044 /* Was there some problem with vforking? */
24045 child < 0
24046
24047 /* Did the child fail? (This shouldn't happen.) */
24048 || status
24049
24050 /* Did the vfork/compiler bug occur? */
24051 || parent != getpid()
24052
24053 /* Did the file descriptor bug occur? */
24054 || fstat(fileno(stdout), &st) != 0
24055 );
24056 }
24057}
24058_ACEOF
24059rm -f conftest$ac_exeext
24060if { (ac_try="$ac_link"
24061case "(($ac_try" in
24062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24063 *) ac_try_echo=$ac_try;;
24064esac
24065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24066 (eval "$ac_link") 2>&5
24067 ac_status=$?
24068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24070 { (case "(($ac_try" in
24071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24072 *) ac_try_echo=$ac_try;;
24073esac
24074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24075 (eval "$ac_try") 2>&5
24076 ac_status=$?
24077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24078 (exit $ac_status); }; }; then
24079 ac_cv_func_vfork_works=yes
24080else
24081 echo "$as_me: program exited with status $ac_status" >&5
24082echo "$as_me: failed program was:" >&5
24083sed 's/^/| /' conftest.$ac_ext >&5
24084
24085( exit $ac_status )
24086ac_cv_func_vfork_works=no
24087fi
24088rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24089fi
24090
24091
24092fi
24093{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
24094echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
24095
24096fi;
24097if test "x$ac_cv_func_fork_works" = xcross; then
24098 ac_cv_func_vfork_works=$ac_cv_func_vfork
24099 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24100echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24101fi
24102
24103if test "x$ac_cv_func_vfork_works" = xyes; then
24104
24105cat >>confdefs.h <<\_ACEOF
24106#define HAVE_WORKING_VFORK 1
24107_ACEOF
24108
24109else
24110
24111cat >>confdefs.h <<\_ACEOF
24112#define vfork fork
24113_ACEOF
24114
24115fi
24116if test "x$ac_cv_func_fork_works" = xyes; then
24117
24118cat >>confdefs.h <<\_ACEOF
24119#define HAVE_WORKING_FORK 1
24120_ACEOF
24121
24122fi
24123
24124
24125
24126for ac_header in stdlib.h unistd.h
24127do
24128as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24129if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24130 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24131echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24132if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24133 echo $ECHO_N "(cached) $ECHO_C" >&6
24134fi
24135ac_res=`eval echo '${'$as_ac_Header'}'`
24136 { echo "$as_me:$LINENO: result: $ac_res" >&5
24137echo "${ECHO_T}$ac_res" >&6; }
24138else
24139 # Is the header compilable?
24140{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
24141echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24142cat >conftest.$ac_ext <<_ACEOF
24143/* confdefs.h. */
24144_ACEOF
24145cat confdefs.h >>conftest.$ac_ext
24146cat >>conftest.$ac_ext <<_ACEOF
24147/* end confdefs.h. */
24148$ac_includes_default
24149#include <$ac_header>
24150_ACEOF
24151rm -f conftest.$ac_objext
24152if { (ac_try="$ac_compile"
24153case "(($ac_try" in
24154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24155 *) ac_try_echo=$ac_try;;
24156esac
24157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24158 (eval "$ac_compile") 2>conftest.er1
24159 ac_status=$?
24160 grep -v '^ *+' conftest.er1 >conftest.err
24161 rm -f conftest.er1
24162 cat conftest.err >&5
24163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24164 (exit $ac_status); } && {
24165 test -z "$ac_c_werror_flag" ||
24166 test ! -s conftest.err
24167 } && test -s conftest.$ac_objext; then
24168 ac_header_compiler=yes
24169else
24170 echo "$as_me: failed program was:" >&5
24171sed 's/^/| /' conftest.$ac_ext >&5
24172
24173 ac_header_compiler=no
24174fi
24175
24176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24177{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24178echo "${ECHO_T}$ac_header_compiler" >&6; }
24179
24180# Is the header present?
24181{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
24182echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24183cat >conftest.$ac_ext <<_ACEOF
24184/* confdefs.h. */
24185_ACEOF
24186cat confdefs.h >>conftest.$ac_ext
24187cat >>conftest.$ac_ext <<_ACEOF
24188/* end confdefs.h. */
24189#include <$ac_header>
24190_ACEOF
24191if { (ac_try="$ac_cpp conftest.$ac_ext"
24192case "(($ac_try" in
24193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24194 *) ac_try_echo=$ac_try;;
24195esac
24196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24198 ac_status=$?
24199 grep -v '^ *+' conftest.er1 >conftest.err
24200 rm -f conftest.er1
24201 cat conftest.err >&5
24202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24203 (exit $ac_status); } >/dev/null && {
24204 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24205 test ! -s conftest.err
24206 }; then
24207 ac_header_preproc=yes
24208else
24209 echo "$as_me: failed program was:" >&5
24210sed 's/^/| /' conftest.$ac_ext >&5
24211
24212 ac_header_preproc=no
24213fi
24214
24215rm -f conftest.err conftest.$ac_ext
24216{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24217echo "${ECHO_T}$ac_header_preproc" >&6; }
24218
24219# So? What about this header?
24220case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24221 yes:no: )
24222 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24223echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24225echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24226 ac_header_preproc=yes
24227 ;;
24228 no:yes:* )
24229 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24230echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24231 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24232echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24233 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24234echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24235 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24236echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24238echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24239 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24240echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24241
24242 ;;
24243esac
24244{ echo "$as_me:$LINENO: checking for $ac_header" >&5
24245echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24246if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24247 echo $ECHO_N "(cached) $ECHO_C" >&6
24248else
24249 eval "$as_ac_Header=\$ac_header_preproc"
24250fi
24251ac_res=`eval echo '${'$as_ac_Header'}'`
24252 { echo "$as_me:$LINENO: result: $ac_res" >&5
24253echo "${ECHO_T}$ac_res" >&6; }
24254
24255fi
24256if test `eval echo '${'$as_ac_Header'}'` = yes; then
24257 cat >>confdefs.h <<_ACEOF
24258#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24259_ACEOF
24260
24261fi
24262
24263done
24264
24265
24266for ac_func in getpagesize
24267do
24268as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24269{ echo "$as_me:$LINENO: checking for $ac_func" >&5
24270echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24271if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24272 echo $ECHO_N "(cached) $ECHO_C" >&6
24273else
24274 cat >conftest.$ac_ext <<_ACEOF
24275/* confdefs.h. */
24276_ACEOF
24277cat confdefs.h >>conftest.$ac_ext
24278cat >>conftest.$ac_ext <<_ACEOF
24279/* end confdefs.h. */
24280/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24282#define $ac_func innocuous_$ac_func
24283
24284/* System header to define __stub macros and hopefully few prototypes,
24285 which can conflict with char $ac_func (); below.
24286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24287 <limits.h> exists even on freestanding compilers. */
24288
24289#ifdef __STDC__
24290# include <limits.h>
24291#else
24292# include <assert.h>
24293#endif
24294
24295#undef $ac_func
24296
24297/* Override any GCC internal prototype to avoid an error.
24298 Use char because int might match the return type of a GCC
24299 builtin and then its argument prototype would still apply. */
24300#ifdef __cplusplus
24301extern "C"
24302#endif
24303char $ac_func ();
24304/* The GNU C library defines this for functions which it implements
24305 to always fail with ENOSYS. Some functions are actually named
24306 something starting with __ and the normal name is an alias. */
24307#if defined __stub_$ac_func || defined __stub___$ac_func
24308choke me
24309#endif
24310
24311int
24312main ()
24313{
24314return $ac_func ();
24315 ;
24316 return 0;
24317}
24318_ACEOF
24319rm -f conftest.$ac_objext conftest$ac_exeext
24320if { (ac_try="$ac_link"
24321case "(($ac_try" in
24322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24323 *) ac_try_echo=$ac_try;;
24324esac
24325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24326 (eval "$ac_link") 2>conftest.er1
24327 ac_status=$?
24328 grep -v '^ *+' conftest.er1 >conftest.err
24329 rm -f conftest.er1
24330 cat conftest.err >&5
24331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24332 (exit $ac_status); } && {
24333 test -z "$ac_c_werror_flag" ||
24334 test ! -s conftest.err
24335 } && test -s conftest$ac_exeext &&
24336 $as_test_x conftest$ac_exeext; then
24337 eval "$as_ac_var=yes"
24338else
24339 echo "$as_me: failed program was:" >&5
24340sed 's/^/| /' conftest.$ac_ext >&5
24341
24342 eval "$as_ac_var=no"
24343fi
24344
24345rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24346 conftest$ac_exeext conftest.$ac_ext
24347fi
24348ac_res=`eval echo '${'$as_ac_var'}'`
24349 { echo "$as_me:$LINENO: result: $ac_res" >&5
24350echo "${ECHO_T}$ac_res" >&6; }
24351if test `eval echo '${'$as_ac_var'}'` = yes; then
24352 cat >>confdefs.h <<_ACEOF
24353#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24354_ACEOF
24355
24356fi
24357done
24358
24359{ echo "$as_me:$LINENO: checking for working mmap" >&5
24360echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
24361if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
24362 echo $ECHO_N "(cached) $ECHO_C" >&6
24363else
24364 if test "$cross_compiling" = yes; then
24365 ac_cv_func_mmap_fixed_mapped=no
24366else
24367 cat >conftest.$ac_ext <<_ACEOF
24368/* confdefs.h. */
24369_ACEOF
24370cat confdefs.h >>conftest.$ac_ext
24371cat >>conftest.$ac_ext <<_ACEOF
24372/* end confdefs.h. */
24373$ac_includes_default
24374/* malloc might have been renamed as rpl_malloc. */
24375#undef malloc
24376
24377/* Thanks to Mike Haertel and Jim Avera for this test.
24378 Here is a matrix of mmap possibilities:
24379 mmap private not fixed
24380 mmap private fixed at somewhere currently unmapped
24381 mmap private fixed at somewhere already mapped
24382 mmap shared not fixed
24383 mmap shared fixed at somewhere currently unmapped
24384 mmap shared fixed at somewhere already mapped
24385 For private mappings, we should verify that changes cannot be read()
24386 back from the file, nor mmap's back from the file at a different
24387 address. (There have been systems where private was not correctly
24388 implemented like the infamous i386 svr4.0, and systems where the
24389 VM page cache was not coherent with the file system buffer cache
24390 like early versions of FreeBSD and possibly contemporary NetBSD.)
24391 For shared mappings, we should conversely verify that changes get
24392 propagated back to all the places they're supposed to be.
24393
24394 Grep wants private fixed already mapped.
24395 The main things grep needs to know about mmap are:
24396 * does it exist and is it safe to write into the mmap'd area
24397 * how to use it (BSD variants) */
24398
24399#include <fcntl.h>
24400#include <sys/mman.h>
24401
24402#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24403char *malloc ();
24404#endif
24405
24406/* This mess was copied from the GNU getpagesize.h. */
24407#ifndef HAVE_GETPAGESIZE
24408/* Assume that all systems that can run configure have sys/param.h. */
24409# ifndef HAVE_SYS_PARAM_H
24410# define HAVE_SYS_PARAM_H 1
24411# endif
24412
24413# ifdef _SC_PAGESIZE
24414# define getpagesize() sysconf(_SC_PAGESIZE)
24415# else /* no _SC_PAGESIZE */
24416# ifdef HAVE_SYS_PARAM_H
24417# include <sys/param.h>
24418# ifdef EXEC_PAGESIZE
24419# define getpagesize() EXEC_PAGESIZE
24420# else /* no EXEC_PAGESIZE */
24421# ifdef NBPG
24422# define getpagesize() NBPG * CLSIZE
24423# ifndef CLSIZE
24424# define CLSIZE 1
24425# endif /* no CLSIZE */
24426# else /* no NBPG */
24427# ifdef NBPC
24428# define getpagesize() NBPC
24429# else /* no NBPC */
24430# ifdef PAGESIZE
24431# define getpagesize() PAGESIZE
24432# endif /* PAGESIZE */
24433# endif /* no NBPC */
24434# endif /* no NBPG */
24435# endif /* no EXEC_PAGESIZE */
24436# else /* no HAVE_SYS_PARAM_H */
24437# define getpagesize() 8192 /* punt totally */
24438# endif /* no HAVE_SYS_PARAM_H */
24439# endif /* no _SC_PAGESIZE */
24440
24441#endif /* no HAVE_GETPAGESIZE */
24442
24443int
24444main ()
24445{
24446 char *data, *data2, *data3;
24447 int i, pagesize;
24448 int fd;
24449
24450 pagesize = getpagesize ();
24451
24452 /* First, make a file with some known garbage in it. */
24453 data = (char *) malloc (pagesize);
24454 if (!data)
24455 return 1;
24456 for (i = 0; i < pagesize; ++i)
24457 *(data + i) = rand ();
24458 umask (0);
24459 fd = creat ("conftest.mmap", 0600);
24460 if (fd < 0)
24461 return 1;
24462 if (write (fd, data, pagesize) != pagesize)
24463 return 1;
24464 close (fd);
24465
24466 /* Next, try to mmap the file at a fixed address which already has
24467 something else allocated at it. If we can, also make sure that
24468 we see the same garbage. */
24469 fd = open ("conftest.mmap", O_RDWR);
24470 if (fd < 0)
24471 return 1;
24472 data2 = (char *) malloc (2 * pagesize);
24473 if (!data2)
24474 return 1;
24475 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
24476 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24477 MAP_PRIVATE | MAP_FIXED, fd, 0L))
24478 return 1;
24479 for (i = 0; i < pagesize; ++i)
24480 if (*(data + i) != *(data2 + i))
24481 return 1;
24482
24483 /* Finally, make sure that changes to the mapped area do not
24484 percolate back to the file as seen by read(). (This is a bug on
24485 some variants of i386 svr4.0.) */
24486 for (i = 0; i < pagesize; ++i)
24487 *(data2 + i) = *(data2 + i) + 1;
24488 data3 = (char *) malloc (pagesize);
24489 if (!data3)
24490 return 1;
24491 if (read (fd, data3, pagesize) != pagesize)
24492 return 1;
24493 for (i = 0; i < pagesize; ++i)
24494 if (*(data + i) != *(data3 + i))
24495 return 1;
24496 close (fd);
24497 return 0;
24498}
24499_ACEOF
24500rm -f conftest$ac_exeext
24501if { (ac_try="$ac_link"
24502case "(($ac_try" in
24503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24504 *) ac_try_echo=$ac_try;;
24505esac
24506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24507 (eval "$ac_link") 2>&5
24508 ac_status=$?
24509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24511 { (case "(($ac_try" in
24512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24513 *) ac_try_echo=$ac_try;;
24514esac
24515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24516 (eval "$ac_try") 2>&5
24517 ac_status=$?
24518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24519 (exit $ac_status); }; }; then
24520 ac_cv_func_mmap_fixed_mapped=yes
24521else
24522 echo "$as_me: program exited with status $ac_status" >&5
24523echo "$as_me: failed program was:" >&5
24524sed 's/^/| /' conftest.$ac_ext >&5
24525
24526( exit $ac_status )
24527ac_cv_func_mmap_fixed_mapped=no
24528fi
24529rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24530fi
24531
24532
24533fi
24534{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
24535echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
24536if test $ac_cv_func_mmap_fixed_mapped = yes; then
24537
24538cat >>confdefs.h <<\_ACEOF
24539#define HAVE_MMAP 1
24540_ACEOF
24541
24542fi
24543rm -f conftest.mmap
24544
24545
24546{ echo "$as_me:$LINENO: checking for /dev/poll" >&5
24547echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; }
24548if test -c "/dev/poll"; then
24549 { echo "$as_me:$LINENO: result: yes" >&5
24550echo "${ECHO_T}yes" >&6; }
24551
24552cat >>confdefs.h <<\_ACEOF
24553#define HAVE_DEVPOLL 1
24554_ACEOF
24555
24556else
24557 { echo "$as_me:$LINENO: result: no" >&5
24558echo "${ECHO_T}no" >&6; }
24559fi
24560
24561
24562if test "$is_mingw" = "yes"; then
24563
24564cat >>confdefs.h <<\_ACEOF
24565#define HAVE_WIN32 1
24566_ACEOF
24567
24568fi
24569
24570
24571{ echo "$as_me:$LINENO: checking for OpenSSL" >&5
24572echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
24573# Check whether --enable-openssl was given.
24574if test "${enable_openssl+set}" = set; then
24575 enableval=$enable_openssl; cf_enable_openssl=$enableval
24576else
24577 cf_enable_openssl="auto"
24578fi
24579
24580
24581if test "$cf_enable_openssl" != "no" ; then
24582 cf_openssl_basedir=""
24583 if test "$cf_enable_openssl" != "auto" &&
24584 test "$cf_enable_openssl" != "yes" ; then
24585 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
24586 else
24587 for dirs in /usr/local/ssl /usr/pkg /usr/local \
24588 /usr/local/openssl ; do
24589 if test -f "${dirs}/include/openssl/opensslv.h" ; then
24590 cf_openssl_basedir="${dirs}"
24591 break
24592 fi
24593 done
24594 unset dirs
24595 fi
24596 if test ! -z "$cf_openssl_basedir"; then
24597 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
033be687 24598 SSL_CFLAGS="-I${cf_openssl_basedir}/include"
b57f37fb
WP
24599 SSL_LIBS="-L${cf_openssl_basedir}/lib"
24600 else
24601 cf_openssl_basedir=""
24602 fi
24603 else
24604 if test -f "/usr/include/openssl/opensslv.h" ; then
24605 cf_openssl_basedir="/usr"
24606 fi
24607 fi
24608
24609 if test ! -z "$cf_openssl_basedir"; then
24610 { echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5
24611echo "${ECHO_T}$cf_openssl_basedir" >&6; }
24612 cf_enable_openssl="yes"
24613 else
24614 { echo "$as_me:$LINENO: result: not found. Specify a correct path?" >&5
24615echo "${ECHO_T}not found. Specify a correct path?" >&6; }
24616 cf_enable_openssl="no"
24617 fi
24618 unset cf_openssl_basedir
24619else
24620 { echo "$as_me:$LINENO: result: disabled" >&5
24621echo "${ECHO_T}disabled" >&6; }
24622fi
24623
24624save_CPPFLAGS="$CPPFLAGS"
033be687 24625CPPFLAGS="$CPPFLAGS $SSL_CFLAGS"
b57f37fb
WP
24626save_LIBS="$LIBS"
24627LIBS="$LIBS $SSL_LIBS"
24628if test "$cf_enable_openssl" != no; then
24629 { echo "$as_me:$LINENO: checking for OpenSSL 0.9.7 or above" >&5
24630echo $ECHO_N "checking for OpenSSL 0.9.7 or above... $ECHO_C" >&6; }
24631 if test "$cross_compiling" = yes; then
24632 cf_enable_openssl=no
24633else
24634 cat >conftest.$ac_ext <<_ACEOF
24635/* confdefs.h. */
24636_ACEOF
24637cat confdefs.h >>conftest.$ac_ext
24638cat >>conftest.$ac_ext <<_ACEOF
24639/* end confdefs.h. */
24640#include <openssl/opensslv.h>
24641 #include <stdlib.h>
24642int
24643main ()
24644{
24645if (OPENSSL_VERSION_NUMBER >= 0x00907000)
24646 exit(0); else exit(1);
24647 ;
24648 return 0;
24649}
24650_ACEOF
24651rm -f conftest$ac_exeext
24652if { (ac_try="$ac_link"
24653case "(($ac_try" in
24654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24655 *) ac_try_echo=$ac_try;;
24656esac
24657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24658 (eval "$ac_link") 2>&5
24659 ac_status=$?
24660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24662 { (case "(($ac_try" in
24663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24664 *) ac_try_echo=$ac_try;;
24665esac
24666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24667 (eval "$ac_try") 2>&5
24668 ac_status=$?
24669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24670 (exit $ac_status); }; }; then
24671 cf_enable_openssl=yes
24672else
24673 echo "$as_me: program exited with status $ac_status" >&5
24674echo "$as_me: failed program was:" >&5
24675sed 's/^/| /' conftest.$ac_ext >&5
24676
24677( exit $ac_status )
24678cf_enable_openssl=no
24679fi
24680rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24681fi
24682
24683
24684
24685 if test "$cf_enable_openssl" != no; then
24686 { echo "$as_me:$LINENO: result: found" >&5
24687echo "${ECHO_T}found" >&6; }
24688 else
24689 { echo "$as_me:$LINENO: result: no - OpenSSL support disabled" >&5
24690echo "${ECHO_T}no - OpenSSL support disabled" >&6; }
24691 fi
24692
24693fi
24694
24695
24696if test "$cf_enable_openssl" != no; then
24697 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
24698 { echo "$as_me:$LINENO: checking for RAND_status in -lcrypto" >&5
24699echo $ECHO_N "checking for RAND_status in -lcrypto... $ECHO_C" >&6; }
24700if test "${ac_cv_lib_crypto_RAND_status+set}" = set; then
24701 echo $ECHO_N "(cached) $ECHO_C" >&6
24702else
24703 ac_check_lib_save_LIBS=$LIBS
24704LIBS="-lcrypto $LIBS"
24705cat >conftest.$ac_ext <<_ACEOF
24706/* confdefs.h. */
24707_ACEOF
24708cat confdefs.h >>conftest.$ac_ext
24709cat >>conftest.$ac_ext <<_ACEOF
24710/* end confdefs.h. */
24711
24712/* Override any GCC internal prototype to avoid an error.
24713 Use char because int might match the return type of a GCC
24714 builtin and then its argument prototype would still apply. */
24715#ifdef __cplusplus
24716extern "C"
24717#endif
24718char RAND_status ();
24719int
24720main ()
24721{
24722return RAND_status ();
24723 ;
24724 return 0;
24725}
24726_ACEOF
24727rm -f conftest.$ac_objext conftest$ac_exeext
24728if { (ac_try="$ac_link"
24729case "(($ac_try" in
24730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24731 *) ac_try_echo=$ac_try;;
24732esac
24733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24734 (eval "$ac_link") 2>conftest.er1
24735 ac_status=$?
24736 grep -v '^ *+' conftest.er1 >conftest.err
24737 rm -f conftest.er1
24738 cat conftest.err >&5
24739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24740 (exit $ac_status); } && {
24741 test -z "$ac_c_werror_flag" ||
24742 test ! -s conftest.err
24743 } && test -s conftest$ac_exeext &&
24744 $as_test_x conftest$ac_exeext; then
24745 ac_cv_lib_crypto_RAND_status=yes
24746else
24747 echo "$as_me: failed program was:" >&5
24748sed 's/^/| /' conftest.$ac_ext >&5
24749
24750 ac_cv_lib_crypto_RAND_status=no
24751fi
24752
24753rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24754 conftest$ac_exeext conftest.$ac_ext
24755LIBS=$ac_check_lib_save_LIBS
24756fi
24757{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RAND_status" >&5
24758echo "${ECHO_T}$ac_cv_lib_crypto_RAND_status" >&6; }
24759if test $ac_cv_lib_crypto_RAND_status = yes; then
24760 cf_enable_openssl=yes
24761else
24762 cf_enable_openssl=no
24763fi
24764
24765fi
24766
b57f37fb
WP
24767if test "$cf_enable_openssl" != no; then
24768 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
24769 { echo "$as_me:$LINENO: checking for SSL_read in -lssl" >&5
24770echo $ECHO_N "checking for SSL_read in -lssl... $ECHO_C" >&6; }
24771if test "${ac_cv_lib_ssl_SSL_read+set}" = set; then
24772 echo $ECHO_N "(cached) $ECHO_C" >&6
24773else
24774 ac_check_lib_save_LIBS=$LIBS
24775LIBS="-lssl -lcrypto $LIBS"
24776cat >conftest.$ac_ext <<_ACEOF
24777/* confdefs.h. */
24778_ACEOF
24779cat confdefs.h >>conftest.$ac_ext
24780cat >>conftest.$ac_ext <<_ACEOF
24781/* end confdefs.h. */
24782
24783/* Override any GCC internal prototype to avoid an error.
24784 Use char because int might match the return type of a GCC
24785 builtin and then its argument prototype would still apply. */
24786#ifdef __cplusplus
24787extern "C"
24788#endif
24789char SSL_read ();
24790int
24791main ()
24792{
24793return SSL_read ();
24794 ;
24795 return 0;
24796}
24797_ACEOF
24798rm -f conftest.$ac_objext conftest$ac_exeext
24799if { (ac_try="$ac_link"
24800case "(($ac_try" in
24801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24802 *) ac_try_echo=$ac_try;;
24803esac
24804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24805 (eval "$ac_link") 2>conftest.er1
24806 ac_status=$?
24807 grep -v '^ *+' conftest.er1 >conftest.err
24808 rm -f conftest.er1
24809 cat conftest.err >&5
24810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24811 (exit $ac_status); } && {
24812 test -z "$ac_c_werror_flag" ||
24813 test ! -s conftest.err
24814 } && test -s conftest$ac_exeext &&
24815 $as_test_x conftest$ac_exeext; then
24816 ac_cv_lib_ssl_SSL_read=yes
24817else
24818 echo "$as_me: failed program was:" >&5
24819sed 's/^/| /' conftest.$ac_ext >&5
24820
24821 ac_cv_lib_ssl_SSL_read=no
24822fi
24823
24824rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24825 conftest$ac_exeext conftest.$ac_ext
24826LIBS=$ac_check_lib_save_LIBS
24827fi
24828{ echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_read" >&5
24829echo "${ECHO_T}$ac_cv_lib_ssl_SSL_read" >&6; }
24830if test $ac_cv_lib_ssl_SSL_read = yes; then
94b4fbf9 24831 SSL_LIBS="$SSL_LIBS -lssl -lcrypto"
b57f37fb
WP
24832else
24833 cf_enable_openssl=no
24834fi
24835
24836fi
24837
033be687
VY
24838
24839
24840{ echo "$as_me:$LINENO: checking for GnuTLS" >&5
24841echo $ECHO_N "checking for GnuTLS... $ECHO_C" >&6; }
24842# Check whether --enable-gnutls was given.
24843if test "${enable_gnutls+set}" = set; then
24844 enableval=$enable_gnutls; cf_enable_gnutls=$enableval
24845else
24846 cf_enable_gnutls="auto"
24847fi
24848
24849
24850if test "$cf_enable_gnutls" != no; then
24851
24852
24853if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
24854 if test -n "$ac_tool_prefix"; then
24855 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24856set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24857{ echo "$as_me:$LINENO: checking for $ac_word" >&5
24858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24859if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24860 echo $ECHO_N "(cached) $ECHO_C" >&6
24861else
24862 case $PKG_CONFIG in
24863 [\\/]* | ?:[\\/]*)
24864 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24865 ;;
24866 *)
24867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24868for as_dir in $PATH
24869do
24870 IFS=$as_save_IFS
24871 test -z "$as_dir" && as_dir=.
24872 for ac_exec_ext in '' $ac_executable_extensions; do
24873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24874 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24876 break 2
24877 fi
24878done
24879done
24880IFS=$as_save_IFS
24881
24882 ;;
24883esac
24884fi
24885PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24886if test -n "$PKG_CONFIG"; then
24887 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24888echo "${ECHO_T}$PKG_CONFIG" >&6; }
24889else
24890 { echo "$as_me:$LINENO: result: no" >&5
24891echo "${ECHO_T}no" >&6; }
24892fi
24893
24894
24895fi
24896if test -z "$ac_cv_path_PKG_CONFIG"; then
24897 ac_pt_PKG_CONFIG=$PKG_CONFIG
24898 # Extract the first word of "pkg-config", so it can be a program name with args.
24899set dummy pkg-config; ac_word=$2
24900{ echo "$as_me:$LINENO: checking for $ac_word" >&5
24901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24902if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
24903 echo $ECHO_N "(cached) $ECHO_C" >&6
24904else
24905 case $ac_pt_PKG_CONFIG in
24906 [\\/]* | ?:[\\/]*)
24907 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
24908 ;;
24909 *)
24910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24911for as_dir in $PATH
24912do
24913 IFS=$as_save_IFS
24914 test -z "$as_dir" && as_dir=.
24915 for ac_exec_ext in '' $ac_executable_extensions; do
24916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24917 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24919 break 2
24920 fi
24921done
24922done
24923IFS=$as_save_IFS
24924
24925 ;;
24926esac
24927fi
24928ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
24929if test -n "$ac_pt_PKG_CONFIG"; then
24930 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
24931echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
24932else
24933 { echo "$as_me:$LINENO: result: no" >&5
24934echo "${ECHO_T}no" >&6; }
24935fi
24936
24937 if test "x$ac_pt_PKG_CONFIG" = x; then
24938 PKG_CONFIG=""
24939 else
24940 case $cross_compiling:$ac_tool_warned in
24941yes:)
24942{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
24943whose name does not start with the host triplet. If you think this
24944configuration is useful to you, please write to autoconf@gnu.org." >&5
24945echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
24946whose name does not start with the host triplet. If you think this
24947configuration is useful to you, please write to autoconf@gnu.org." >&2;}
24948ac_tool_warned=yes ;;
24949esac
24950 PKG_CONFIG=$ac_pt_PKG_CONFIG
24951 fi
24952else
24953 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
24954fi
24955
24956fi
24957if test -n "$PKG_CONFIG"; then
24958 _pkg_min_version=0.9.0
24959 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
24960echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
24961 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
24962 { echo "$as_me:$LINENO: result: yes" >&5
24963echo "${ECHO_T}yes" >&6; }
24964 else
24965 { echo "$as_me:$LINENO: result: no" >&5
24966echo "${ECHO_T}no" >&6; }
24967 PKG_CONFIG=""
24968 fi
24969
24970fi
24971
24972pkg_failed=no
24973{ echo "$as_me:$LINENO: checking for GNUTLS" >&5
24974echo $ECHO_N "checking for GNUTLS... $ECHO_C" >&6; }
24975
24976if test -n "$PKG_CONFIG"; then
24977 if test -n "$GNUTLS_CFLAGS"; then
24978 pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
24979 else
24980 if test -n "$PKG_CONFIG" && \
24981 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnutls\"") >&5
24982 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
24983 ac_status=$?
24984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24985 (exit $ac_status); }; then
24986 pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls" 2>/dev/null`
24987else
24988 pkg_failed=yes
24989fi
24990 fi
24991else
24992 pkg_failed=untried
24993fi
24994if test -n "$PKG_CONFIG"; then
24995 if test -n "$GNUTLS_LIBS"; then
24996 pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
24997 else
24998 if test -n "$PKG_CONFIG" && \
24999 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnutls\"") >&5
25000 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
25001 ac_status=$?
25002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25003 (exit $ac_status); }; then
25004 pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls" 2>/dev/null`
25005else
25006 pkg_failed=yes
25007fi
25008 fi
25009else
25010 pkg_failed=untried
25011fi
25012
25013
25014
25015if test $pkg_failed = yes; then
25016
25017if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25018 _pkg_short_errors_supported=yes
25019else
25020 _pkg_short_errors_supported=no
25021fi
25022 if test $_pkg_short_errors_supported = yes; then
25023 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnutls"`
25024 else
25025 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls"`
25026 fi
25027 # Put the nasty error message in config.log where it belongs
25028 echo "$GNUTLS_PKG_ERRORS" >&5
25029
25030 { echo "$as_me:$LINENO: result: no" >&5
25031echo "${ECHO_T}no" >&6; }
25032 cf_enable_gnutls="no"
25033elif test $pkg_failed = untried; then
25034 cf_enable_gnutls="no"
25035else
25036 GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
25037 GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
25038 { echo "$as_me:$LINENO: result: yes" >&5
25039echo "${ECHO_T}yes" >&6; }
25040
25041 cf_enable_gnutls="yes"
25042
25043fi
25044fi
25045
25046if test "$cf_enable_gnutls" = "auto" -a "$cf_enable_openssl" = "yes"; then
25047 cf_enable_gnutls="no"
25048fi
25049
25050if test x"$cf_enable_openssl" != xno; then
b57f37fb
WP
25051
25052cat >>confdefs.h <<\_ACEOF
25053#define HAVE_OPENSSL 1
25054_ACEOF
25055
033be687
VY
25056 GNUTLS_CFLAGS=""
25057 GNUTLS_LIBS=""
25058 SSL_TYPE="openssl"
25059elif test x"$cf_enable_gnutls" != xno; then
25060
25061cat >>confdefs.h <<\_ACEOF
25062#define HAVE_GNUTLS 1
25063_ACEOF
25064
25065 SSL_LIBS=""
25066 SSL_CFLAGS=""
25067 SSL_TYPE="gnutls"
b57f37fb
WP
25068fi
25069
25070
033be687
VY
25071
25072
b57f37fb
WP
25073CPPFLAGS="$save_CPPFLAGS"
25074LIBS="$save_LIBS"
25075
25076
25077
25078
25079
25080
25081# Check whether --enable-assert was given.
25082if test "${enable_assert+set}" = set; then
25083 enableval=$enable_assert; assert=$enableval
25084else
25085 assert=no
25086fi
25087
25088
25089if test "$assert" = no; then
25090
25091cat >>confdefs.h <<\_ACEOF
25092#define NDEBUG 1
25093_ACEOF
25094
25095elif test "$assert" = soft; then
25096
25097cat >>confdefs.h <<\_ACEOF
25098#define SOFT_ASSERT 1
25099_ACEOF
25100
25101
25102cat >>confdefs.h <<\_ACEOF
25103#define NDEBUG 1
25104_ACEOF
25105
25106elif test "$assert" = yes; then
25107 assert = "hard";
25108fi
25109
25110{ echo "$as_me:$LINENO: checking if you want to do a profile build" >&5
25111echo $ECHO_N "checking if you want to do a profile build... $ECHO_C" >&6; }
25112# Check whether --enable-profile was given.
25113if test "${enable_profile+set}" = set; then
25114 enableval=$enable_profile; profile=$enableval
25115else
25116 profile=no
25117fi
25118
25119
25120if test "$profile" = yes; then
25121 if test "$ac_cv_c_compiler_gnu" = yes; then
25122 CFLAGS="$CFLAGS -pg -static"
25123 { echo "$as_me:$LINENO: result: yes, adding -pg -static" >&5
25124echo "${ECHO_T}yes, adding -pg -static" >&6; }
25125
25126cat >>confdefs.h <<\_ACEOF
25127#define RATBOX_PROFILE 1
25128_ACEOF
25129
25130 else
25131 { echo "$as_me:$LINENO: result: no, profile builds only work with gcc" >&5
25132echo "${ECHO_T}no, profile builds only work with gcc" >&6; }
25133 fi
25134else
25135 { echo "$as_me:$LINENO: result: no" >&5
25136echo "${ECHO_T}no" >&6; }
25137fi
25138
25139# Check whether --enable-balloc was given.
25140if test "${enable_balloc+set}" = set; then
25141 enableval=$enable_balloc; balloc=$enableval
25142else
25143 balloc=yes
25144fi
25145
25146
25147if test "$balloc" = no; then
25148
25149cat >>confdefs.h <<\_ACEOF
25150#define NOBALLOC 1
25151_ACEOF
25152
25153fi
25154
25155# Check whether --enable-warnings was given.
25156if test "${enable_warnings+set}" = set; then
25157 enableval=$enable_warnings; CFLAGS="$CFLAGS -Wall -Werror -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -W -Wno-unused -Wunused-function -Wunused-variable"
25158fi
25159
25160
25161
25162
25163
25164
25165
25166
25167
25168
033be687 25169
b57f37fb
WP
25170if test "$prefix" = "NONE"; then
25171
25172cat >>confdefs.h <<_ACEOF
25173#define RB_PREFIX "$ac_default_prefix"
25174_ACEOF
25175
25176
25177else
25178
25179
25180 prefix=`echo $prefix | sed 's/\/$//'`
25181
25182cat >>confdefs.h <<_ACEOF
25183#define RB_PREFIX "$prefix"
25184_ACEOF
25185
25186
25187fi
25188
25189
25190
b57f37fb
WP
25191ac_config_commands="$ac_config_commands include/librb-config.h"
25192
25193
033be687 25194
eb66895a 25195ac_config_files="$ac_config_files src/Makefile Makefile libratbox.pc"
b57f37fb
WP
25196
25197
25198cat >confcache <<\_ACEOF
25199# This file is a shell script that caches the results of configure
25200# tests run on this system so they can be shared between configure
25201# scripts and configure runs, see configure's option --config-cache.
25202# It is not useful on other systems. If it contains results you don't
25203# want to keep, you may remove or edit it.
25204#
25205# config.status only pays attention to the cache file if you give it
25206# the --recheck option to rerun configure.
25207#
25208# `ac_cv_env_foo' variables (set or unset) will be overridden when
25209# loading this file, other *unset* `ac_cv_foo' will be assigned the
25210# following values.
25211
25212_ACEOF
25213
25214# The following way of writing the cache mishandles newlines in values,
25215# but we know of no workaround that is simple, portable, and efficient.
25216# So, we kill variables containing newlines.
25217# Ultrix sh set writes to stderr and can't be redirected directly,
25218# and sets the high bit in the cache file unless we assign to the vars.
25219(
25220 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25221 eval ac_val=\$$ac_var
25222 case $ac_val in #(
25223 *${as_nl}*)
25224 case $ac_var in #(
25225 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25226echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25227 esac
25228 case $ac_var in #(
25229 _ | IFS | as_nl) ;; #(
25230 *) $as_unset $ac_var ;;
25231 esac ;;
25232 esac
25233 done
25234
25235 (set) 2>&1 |
25236 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25237 *${as_nl}ac_space=\ *)
25238 # `set' does not quote correctly, so add quotes (double-quote
25239 # substitution turns \\\\ into \\, and sed turns \\ into \).
25240 sed -n \
25241 "s/'/'\\\\''/g;
25242 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25243 ;; #(
25244 *)
25245 # `set' quotes correctly as required by POSIX, so do not add quotes.
25246 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25247 ;;
25248 esac |
25249 sort
25250) |
25251 sed '
25252 /^ac_cv_env_/b end
25253 t clear
25254 :clear
25255 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25256 t end
25257 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25258 :end' >>confcache
25259if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25260 if test -w "$cache_file"; then
25261 test "x$cache_file" != "x/dev/null" &&
25262 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25263echo "$as_me: updating cache $cache_file" >&6;}
25264 cat confcache >$cache_file
25265 else
25266 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25267echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25268 fi
25269fi
25270rm -f confcache
25271
25272test "x$prefix" = xNONE && prefix=$ac_default_prefix
25273# Let make expand exec_prefix.
25274test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25275
25276DEFS=-DHAVE_CONFIG_H
25277
25278ac_libobjs=
25279ac_ltlibobjs=
25280for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25281 # 1. Remove the extension, and $U if already installed.
25282 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25283 ac_i=`echo "$ac_i" | sed "$ac_script"`
25284 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25285 # will be set to the directory where LIBOBJS objects are built.
25286 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25287 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25288done
25289LIBOBJS=$ac_libobjs
25290
25291LTLIBOBJS=$ac_ltlibobjs
25292
25293
25294if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25295 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25296Usually this means the macro was only invoked conditionally." >&5
25297echo "$as_me: error: conditional \"AMDEP\" was never defined.
25298Usually this means the macro was only invoked conditionally." >&2;}
25299 { (exit 1); exit 1; }; }
25300fi
25301if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25302 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25303Usually this means the macro was only invoked conditionally." >&5
25304echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25305Usually this means the macro was only invoked conditionally." >&2;}
25306 { (exit 1); exit 1; }; }
25307fi
25308if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25309 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25310Usually this means the macro was only invoked conditionally." >&5
25311echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
25312Usually this means the macro was only invoked conditionally." >&2;}
25313 { (exit 1); exit 1; }; }
25314fi
25315if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25316 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25317Usually this means the macro was only invoked conditionally." >&5
25318echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25319Usually this means the macro was only invoked conditionally." >&2;}
25320 { (exit 1); exit 1; }; }
25321fi
25322if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
25323 { { echo "$as_me:$LINENO: error: conditional \"MINGW\" was never defined.
25324Usually this means the macro was only invoked conditionally." >&5
25325echo "$as_me: error: conditional \"MINGW\" was never defined.
25326Usually this means the macro was only invoked conditionally." >&2;}
25327 { (exit 1); exit 1; }; }
25328fi
25329if test -z "${NEED_CRYPT_TRUE}" && test -z "${NEED_CRYPT_FALSE}"; then
25330 { { echo "$as_me:$LINENO: error: conditional \"NEED_CRYPT\" was never defined.
25331Usually this means the macro was only invoked conditionally." >&5
25332echo "$as_me: error: conditional \"NEED_CRYPT\" was never defined.
25333Usually this means the macro was only invoked conditionally." >&2;}
25334 { (exit 1); exit 1; }; }
25335fi
25336
25337: ${CONFIG_STATUS=./config.status}
25338ac_clean_files_save=$ac_clean_files
25339ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25340{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25341echo "$as_me: creating $CONFIG_STATUS" >&6;}
25342cat >$CONFIG_STATUS <<_ACEOF
25343#! $SHELL
25344# Generated by $as_me.
25345# Run this file to recreate the current configuration.
25346# Compiler output produced by configure, useful for debugging
25347# configure, is in config.log if it exists.
25348
25349debug=false
25350ac_cs_recheck=false
25351ac_cs_silent=false
25352SHELL=\${CONFIG_SHELL-$SHELL}
25353_ACEOF
25354
25355cat >>$CONFIG_STATUS <<\_ACEOF
25356## --------------------- ##
25357## M4sh Initialization. ##
25358## --------------------- ##
25359
25360# Be more Bourne compatible
25361DUALCASE=1; export DUALCASE # for MKS sh
25362if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25363 emulate sh
25364 NULLCMD=:
25365 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25366 # is contrary to our usage. Disable this feature.
25367 alias -g '${1+"$@"}'='"$@"'
25368 setopt NO_GLOB_SUBST
25369else
25370 case `(set -o) 2>/dev/null` in
25371 *posix*) set -o posix ;;
25372esac
25373
25374fi
25375
25376
25377
25378
25379# PATH needs CR
25380# Avoid depending upon Character Ranges.
25381as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25382as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25383as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25384as_cr_digits='0123456789'
25385as_cr_alnum=$as_cr_Letters$as_cr_digits
25386
25387# The user is always right.
25388if test "${PATH_SEPARATOR+set}" != set; then
25389 echo "#! /bin/sh" >conf$$.sh
25390 echo "exit 0" >>conf$$.sh
25391 chmod +x conf$$.sh
25392 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25393 PATH_SEPARATOR=';'
25394 else
25395 PATH_SEPARATOR=:
25396 fi
25397 rm -f conf$$.sh
25398fi
25399
25400# Support unset when possible.
25401if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25402 as_unset=unset
25403else
25404 as_unset=false
25405fi
25406
25407
25408# IFS
25409# We need space, tab and new line, in precisely that order. Quoting is
25410# there to prevent editors from complaining about space-tab.
25411# (If _AS_PATH_WALK were called with IFS unset, it would disable word
25412# splitting by setting IFS to empty value.)
25413as_nl='
25414'
25415IFS=" "" $as_nl"
25416
25417# Find who we are. Look in the path if we contain no directory separator.
25418case $0 in
25419 *[\\/]* ) as_myself=$0 ;;
25420 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25421for as_dir in $PATH
25422do
25423 IFS=$as_save_IFS
25424 test -z "$as_dir" && as_dir=.
25425 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25426done
25427IFS=$as_save_IFS
25428
25429 ;;
25430esac
25431# We did not find ourselves, most probably we were run as `sh COMMAND'
25432# in which case we are not to be found in the path.
25433if test "x$as_myself" = x; then
25434 as_myself=$0
25435fi
25436if test ! -f "$as_myself"; then
25437 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25438 { (exit 1); exit 1; }
25439fi
25440
25441# Work around bugs in pre-3.0 UWIN ksh.
25442for as_var in ENV MAIL MAILPATH
25443do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25444done
25445PS1='$ '
25446PS2='> '
25447PS4='+ '
25448
25449# NLS nuisances.
25450for as_var in \
25451 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25452 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25453 LC_TELEPHONE LC_TIME
25454do
25455 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25456 eval $as_var=C; export $as_var
25457 else
25458 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25459 fi
25460done
25461
25462# Required to use basename.
25463if expr a : '\(a\)' >/dev/null 2>&1 &&
25464 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25465 as_expr=expr
25466else
25467 as_expr=false
25468fi
25469
25470if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25471 as_basename=basename
25472else
25473 as_basename=false
25474fi
25475
25476
25477# Name of the executable.
25478as_me=`$as_basename -- "$0" ||
25479$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25480 X"$0" : 'X\(//\)$' \| \
25481 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25482echo X/"$0" |
25483 sed '/^.*\/\([^/][^/]*\)\/*$/{
25484 s//\1/
25485 q
25486 }
25487 /^X\/\(\/\/\)$/{
25488 s//\1/
25489 q
25490 }
25491 /^X\/\(\/\).*/{
25492 s//\1/
25493 q
25494 }
25495 s/.*/./; q'`
25496
25497# CDPATH.
25498$as_unset CDPATH
25499
25500
25501
25502 as_lineno_1=$LINENO
25503 as_lineno_2=$LINENO
25504 test "x$as_lineno_1" != "x$as_lineno_2" &&
25505 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25506
25507 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25508 # uniformly replaced by the line number. The first 'sed' inserts a
25509 # line-number line after each line using $LINENO; the second 'sed'
25510 # does the real work. The second script uses 'N' to pair each
25511 # line-number line with the line containing $LINENO, and appends
25512 # trailing '-' during substitution so that $LINENO is not a special
25513 # case at line end.
25514 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25515 # scripts with optimization help from Paolo Bonzini. Blame Lee
25516 # E. McMahon (1931-1989) for sed's syntax. :-)
25517 sed -n '
25518 p
25519 /[$]LINENO/=
25520 ' <$as_myself |
25521 sed '
25522 s/[$]LINENO.*/&-/
25523 t lineno
25524 b
25525 :lineno
25526 N
25527 :loop
25528 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25529 t loop
25530 s/-\n.*//
25531 ' >$as_me.lineno &&
25532 chmod +x "$as_me.lineno" ||
25533 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25534 { (exit 1); exit 1; }; }
25535
25536 # Don't try to exec as it changes $[0], causing all sort of problems
25537 # (the dirname of $[0] is not the place where we might find the
25538 # original and so on. Autoconf is especially sensitive to this).
25539 . "./$as_me.lineno"
25540 # Exit status is that of the last command.
25541 exit
25542}
25543
25544
25545if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25546 as_dirname=dirname
25547else
25548 as_dirname=false
25549fi
25550
25551ECHO_C= ECHO_N= ECHO_T=
25552case `echo -n x` in
25553-n*)
25554 case `echo 'x\c'` in
25555 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25556 *) ECHO_C='\c';;
25557 esac;;
25558*)
25559 ECHO_N='-n';;
25560esac
25561
25562if expr a : '\(a\)' >/dev/null 2>&1 &&
25563 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25564 as_expr=expr
25565else
25566 as_expr=false
25567fi
25568
25569rm -f conf$$ conf$$.exe conf$$.file
25570if test -d conf$$.dir; then
25571 rm -f conf$$.dir/conf$$.file
25572else
25573 rm -f conf$$.dir
25574 mkdir conf$$.dir
25575fi
25576echo >conf$$.file
25577if ln -s conf$$.file conf$$ 2>/dev/null; then
25578 as_ln_s='ln -s'
25579 # ... but there are two gotchas:
25580 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25581 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25582 # In both cases, we have to default to `cp -p'.
25583 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25584 as_ln_s='cp -p'
25585elif ln conf$$.file conf$$ 2>/dev/null; then
25586 as_ln_s=ln
25587else
25588 as_ln_s='cp -p'
25589fi
25590rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25591rmdir conf$$.dir 2>/dev/null
25592
25593if mkdir -p . 2>/dev/null; then
25594 as_mkdir_p=:
25595else
25596 test -d ./-p && rmdir ./-p
25597 as_mkdir_p=false
25598fi
25599
25600if test -x / >/dev/null 2>&1; then
25601 as_test_x='test -x'
25602else
25603 if ls -dL / >/dev/null 2>&1; then
25604 as_ls_L_option=L
25605 else
25606 as_ls_L_option=
25607 fi
25608 as_test_x='
25609 eval sh -c '\''
25610 if test -d "$1"; then
25611 test -d "$1/.";
25612 else
25613 case $1 in
25614 -*)set "./$1";;
25615 esac;
25616 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25617 ???[sx]*):;;*)false;;esac;fi
25618 '\'' sh
25619 '
25620fi
25621as_executable_p=$as_test_x
25622
25623# Sed expression to map a string onto a valid CPP name.
25624as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25625
25626# Sed expression to map a string onto a valid variable name.
25627as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25628
25629
25630exec 6>&1
25631
25632# Save the log message, to keep $[0] and so on meaningful, and to
25633# report actual input values of CONFIG_FILES etc. instead of their
25634# values after options handling.
25635ac_log="
25636This file was extended by libratbox $as_me devel, which was
25637generated by GNU Autoconf 2.61. Invocation command line was
25638
25639 CONFIG_FILES = $CONFIG_FILES
25640 CONFIG_HEADERS = $CONFIG_HEADERS
25641 CONFIG_LINKS = $CONFIG_LINKS
25642 CONFIG_COMMANDS = $CONFIG_COMMANDS
25643 $ $0 $@
25644
25645on `(hostname || uname -n) 2>/dev/null | sed 1q`
25646"
25647
25648_ACEOF
25649
25650cat >>$CONFIG_STATUS <<_ACEOF
25651# Files that config.status was made for.
25652config_files="$ac_config_files"
25653config_headers="$ac_config_headers"
25654config_commands="$ac_config_commands"
25655
25656_ACEOF
25657
25658cat >>$CONFIG_STATUS <<\_ACEOF
25659ac_cs_usage="\
25660\`$as_me' instantiates files from templates according to the
25661current configuration.
25662
25663Usage: $0 [OPTIONS] [FILE]...
25664
25665 -h, --help print this help, then exit
25666 -V, --version print version number and configuration settings, then exit
25667 -q, --quiet do not print progress messages
25668 -d, --debug don't remove temporary files
25669 --recheck update $as_me by reconfiguring in the same conditions
25670 --file=FILE[:TEMPLATE]
25671 instantiate the configuration file FILE
25672 --header=FILE[:TEMPLATE]
25673 instantiate the configuration header FILE
25674
25675Configuration files:
25676$config_files
25677
25678Configuration headers:
25679$config_headers
25680
25681Configuration commands:
25682$config_commands
25683
25684Report bugs to <bug-autoconf@gnu.org>."
25685
25686_ACEOF
25687cat >>$CONFIG_STATUS <<_ACEOF
25688ac_cs_version="\\
25689libratbox config.status devel
25690configured by $0, generated by GNU Autoconf 2.61,
25691 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25692
25693Copyright (C) 2006 Free Software Foundation, Inc.
25694This config.status script is free software; the Free Software Foundation
25695gives unlimited permission to copy, distribute and modify it."
25696
25697ac_pwd='$ac_pwd'
25698srcdir='$srcdir'
25699INSTALL='$INSTALL'
25700MKDIR_P='$MKDIR_P'
25701_ACEOF
25702
25703cat >>$CONFIG_STATUS <<\_ACEOF
25704# If no file are specified by the user, then we need to provide default
25705# value. By we need to know if files were specified by the user.
25706ac_need_defaults=:
25707while test $# != 0
25708do
25709 case $1 in
25710 --*=*)
25711 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25712 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25713 ac_shift=:
25714 ;;
25715 *)
25716 ac_option=$1
25717 ac_optarg=$2
25718 ac_shift=shift
25719 ;;
25720 esac
25721
25722 case $ac_option in
25723 # Handling of the options.
25724 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25725 ac_cs_recheck=: ;;
25726 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25727 echo "$ac_cs_version"; exit ;;
25728 --debug | --debu | --deb | --de | --d | -d )
25729 debug=: ;;
25730 --file | --fil | --fi | --f )
25731 $ac_shift
25732 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25733 ac_need_defaults=false;;
25734 --header | --heade | --head | --hea )
25735 $ac_shift
25736 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25737 ac_need_defaults=false;;
25738 --he | --h)
25739 # Conflict between --help and --header
25740 { echo "$as_me: error: ambiguous option: $1
25741Try \`$0 --help' for more information." >&2
25742 { (exit 1); exit 1; }; };;
25743 --help | --hel | -h )
25744 echo "$ac_cs_usage"; exit ;;
25745 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25746 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25747 ac_cs_silent=: ;;
25748
25749 # This is an error.
25750 -*) { echo "$as_me: error: unrecognized option: $1
25751Try \`$0 --help' for more information." >&2
25752 { (exit 1); exit 1; }; } ;;
25753
25754 *) ac_config_targets="$ac_config_targets $1"
25755 ac_need_defaults=false ;;
25756
25757 esac
25758 shift
25759done
25760
25761ac_configure_extra_args=
25762
25763if $ac_cs_silent; then
25764 exec 6>/dev/null
25765 ac_configure_extra_args="$ac_configure_extra_args --silent"
25766fi
25767
25768_ACEOF
25769cat >>$CONFIG_STATUS <<_ACEOF
25770if \$ac_cs_recheck; then
25771 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25772 CONFIG_SHELL=$SHELL
25773 export CONFIG_SHELL
25774 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25775fi
25776
25777_ACEOF
25778cat >>$CONFIG_STATUS <<\_ACEOF
25779exec 5>>config.log
25780{
25781 echo
25782 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25783## Running $as_me. ##
25784_ASBOX
25785 echo "$ac_log"
25786} >&5
25787
25788_ACEOF
25789cat >>$CONFIG_STATUS <<_ACEOF
25790#
25791# INIT-COMMANDS
25792#
25793AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25794
b57f37fb
WP
25795 if test x$ac_cv_header_stdc = xyes; then
25796 rb_header_stdc=yes
25797 fi
25798 if test x$ac_cv_header_stdlib_h = xyes; then
25799 rb_header_stdlib_h=yes
25800 fi
25801 if test x$ac_cv_header_string_h = xyes; then
25802 rb_header_string_h=yes
25803 fi
25804 if test x$ac_cv_header_memory_h = xyes; then
25805 rb_header_memory_h=yes
25806 fi
25807 if test "x${ac_cv_working_alloca_h+set}" = xset ; then
25808 rb_alloca_h="$ac_cv_working_alloca_h"
25809 else
25810 rb_alloc_h="$ac_cv_header_alloca_h"
25811 fi
25812 if test x$ac_cv_member_struct_sockaddr_sa_len = xyes; then
25813 rb_sockaddr_sa_len=yes
25814 fi
25815 if test x$ac_cv_header_sys_socket_h = xyes; then
25816 rb_sys_socket_h=yes
25817 fi
25818 if test x$ac_cv_header_sys_types_h = xyes; then
25819 rb_sys_types_h=yes
25820 fi
25821 if test x$ac_cv_header_sys_stat_h = xyes; then
25822 rb_sys_stat_h=yes
25823 fi
25824 if test x$ac_cv_header_sys_time_h = xyes; then
25825 rb_sys_time_h=yes
25826 fi
25827 if test x$ac_cv_header_time = xyes; then
25828 rb_time_h=yes
25829 fi
25830
25831 if test x$ac_cv_header_stdint_h = xyes; then
25832 rb_stdint_h=yes
25833 fi
25834 if test x$ac_cv_header_inttypes_h = xyes; then
25835 rb_inttypes_h=yes
25836 fi
25837 if test x$ac_cv_header_netinet_in_h = xyes; then
25838 rb_netinet_in_h=yes
25839 fi
25840
25841 if test x$ac_cv_header_crypt_h = xyes; then
25842 rb_crypt_h=yes
25843 fi
25844 if test x$ac_cv_header_errno_h = xyes; then
25845 rb_errno_h=yes
25846 fi
25847 if test x$ac_cv_header_unistd_h = xyes; then
25848 rb_unistd_h=yes
25849 fi
25850 if test x$ac_cv_header_windows_h = xyes; then
25851 rb_windows_h=yes
25852 fi
25853 if test x$ac_cv_header_winsock2_h = xyes; then
25854 rb_winsock2_h=yes
25855 fi
4414eb3c
VY
25856
25857 rb_socklen_t=$rb_socklen_t
25858
b57f37fb
WP
25859 if test "x$rb_have_sockaddr_storage" = "xyes"; then
25860 rb_sockaddr_storage="yes"
25861 else
25862 rb_sockaddr_storage="no"
25863 fi
25864
25865 rb_have_ipv6="$have_v6"
25866
25867 rb_mv="$MV"
25868 rb_rm="$RM"
25869
25870
25871
25872
25873
25874
25875_ACEOF
25876
25877cat >>$CONFIG_STATUS <<\_ACEOF
25878
25879# Handling of arguments.
25880for ac_config_target in $ac_config_targets
25881do
25882 case $ac_config_target in
25883 "include/libratbox_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/libratbox_config.h" ;;
25884 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25885 "include/librb-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/librb-config.h" ;;
25886 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
25887 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
eb66895a 25888 "libratbox.pc") CONFIG_FILES="$CONFIG_FILES libratbox.pc" ;;
b57f37fb
WP
25889
25890 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25891echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25892 { (exit 1); exit 1; }; };;
25893 esac
25894done
25895
25896
25897# If the user did not use the arguments to specify the items to instantiate,
25898# then the envvar interface is used. Set only those that are not.
25899# We use the long form for the default assignment because of an extremely
25900# bizarre bug on SunOS 4.1.3.
25901if $ac_need_defaults; then
25902 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25903 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25904 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25905fi
25906
25907# Have a temporary directory for convenience. Make it in the build tree
25908# simply because there is no reason against having it here, and in addition,
25909# creating and moving files from /tmp can sometimes cause problems.
25910# Hook for its removal unless debugging.
25911# Note that there is a small window in which the directory will not be cleaned:
25912# after its creation but before its name has been assigned to `$tmp'.
25913$debug ||
25914{
25915 tmp=
25916 trap 'exit_status=$?
25917 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25918' 0
25919 trap '{ (exit 1); exit 1; }' 1 2 13 15
25920}
25921# Create a (secure) tmp directory for tmp files.
25922
25923{
25924 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25925 test -n "$tmp" && test -d "$tmp"
25926} ||
25927{
25928 tmp=./conf$$-$RANDOM
25929 (umask 077 && mkdir "$tmp")
25930} ||
25931{
25932 echo "$me: cannot create a temporary directory in ." >&2
25933 { (exit 1); exit 1; }
25934}
25935
25936#
25937# Set up the sed scripts for CONFIG_FILES section.
25938#
25939
25940# No need to generate the scripts if there are no CONFIG_FILES.
25941# This happens for instance when ./config.status config.h
25942if test -n "$CONFIG_FILES"; then
25943
25944_ACEOF
25945
25946
25947
25948ac_delim='%!_!# '
25949for ac_last_try in false false false false false :; do
25950 cat >conf$$subs.sed <<_ACEOF
25951SHELL!$SHELL$ac_delim
25952PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25953PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25954PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25955PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25956PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25957PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25958exec_prefix!$exec_prefix$ac_delim
25959prefix!$prefix$ac_delim
25960program_transform_name!$program_transform_name$ac_delim
25961bindir!$bindir$ac_delim
25962sbindir!$sbindir$ac_delim
25963libexecdir!$libexecdir$ac_delim
25964datarootdir!$datarootdir$ac_delim
25965datadir!$datadir$ac_delim
25966sysconfdir!$sysconfdir$ac_delim
25967sharedstatedir!$sharedstatedir$ac_delim
25968localstatedir!$localstatedir$ac_delim
25969includedir!$includedir$ac_delim
25970oldincludedir!$oldincludedir$ac_delim
25971docdir!$docdir$ac_delim
25972infodir!$infodir$ac_delim
25973htmldir!$htmldir$ac_delim
25974dvidir!$dvidir$ac_delim
25975pdfdir!$pdfdir$ac_delim
25976psdir!$psdir$ac_delim
25977libdir!$libdir$ac_delim
25978localedir!$localedir$ac_delim
25979mandir!$mandir$ac_delim
25980DEFS!$DEFS$ac_delim
25981ECHO_C!$ECHO_C$ac_delim
25982ECHO_N!$ECHO_N$ac_delim
25983ECHO_T!$ECHO_T$ac_delim
25984LIBS!$LIBS$ac_delim
25985build_alias!$build_alias$ac_delim
25986host_alias!$host_alias$ac_delim
25987target_alias!$target_alias$ac_delim
25988INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25989INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25990INSTALL_DATA!$INSTALL_DATA$ac_delim
25991am__isrc!$am__isrc$ac_delim
25992CYGPATH_W!$CYGPATH_W$ac_delim
25993PACKAGE!$PACKAGE$ac_delim
25994VERSION!$VERSION$ac_delim
25995ACLOCAL!$ACLOCAL$ac_delim
25996AUTOCONF!$AUTOCONF$ac_delim
25997AUTOMAKE!$AUTOMAKE$ac_delim
25998AUTOHEADER!$AUTOHEADER$ac_delim
25999MAKEINFO!$MAKEINFO$ac_delim
26000install_sh!$install_sh$ac_delim
26001STRIP!$STRIP$ac_delim
26002INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
26003mkdir_p!$mkdir_p$ac_delim
26004AWK!$AWK$ac_delim
26005SET_MAKE!$SET_MAKE$ac_delim
26006am__leading_dot!$am__leading_dot$ac_delim
26007AMTAR!$AMTAR$ac_delim
26008am__tar!$am__tar$ac_delim
26009am__untar!$am__untar$ac_delim
26010CC!$CC$ac_delim
26011CFLAGS!$CFLAGS$ac_delim
26012LDFLAGS!$LDFLAGS$ac_delim
26013CPPFLAGS!$CPPFLAGS$ac_delim
26014ac_ct_CC!$ac_ct_CC$ac_delim
26015EXEEXT!$EXEEXT$ac_delim
26016OBJEXT!$OBJEXT$ac_delim
26017DEPDIR!$DEPDIR$ac_delim
26018am__include!$am__include$ac_delim
26019am__quote!$am__quote$ac_delim
26020AMDEP_TRUE!$AMDEP_TRUE$ac_delim
26021AMDEP_FALSE!$AMDEP_FALSE$ac_delim
26022AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
26023CCDEPMODE!$CCDEPMODE$ac_delim
26024am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
26025am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
26026GREP!$GREP$ac_delim
26027EGREP!$EGREP$ac_delim
26028SED!$SED$ac_delim
26029MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
26030MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
26031MAINT!$MAINT$ac_delim
26032AS!$AS$ac_delim
26033RM!$RM$ac_delim
26034CP!$CP$ac_delim
26035MV!$MV$ac_delim
26036LN!$LN$ac_delim
b57f37fb
WP
26037TOUCH!$TOUCH$ac_delim
26038build!$build$ac_delim
26039build_cpu!$build_cpu$ac_delim
26040build_vendor!$build_vendor$ac_delim
26041build_os!$build_os$ac_delim
26042host!$host$ac_delim
26043host_cpu!$host_cpu$ac_delim
26044host_vendor!$host_vendor$ac_delim
94b4fbf9
VY
26045host_os!$host_os$ac_delim
26046LN_S!$LN_S$ac_delim
26047ECHO!$ECHO$ac_delim
b57f37fb
WP
26048_ACEOF
26049
26050 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26051 break
26052 elif $ac_last_try; then
26053 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26054echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26055 { (exit 1); exit 1; }; }
26056 else
26057 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26058 fi
26059done
26060
26061ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26062if test -n "$ac_eof"; then
26063 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26064 ac_eof=`expr $ac_eof + 1`
26065fi
26066
26067cat >>$CONFIG_STATUS <<_ACEOF
26068cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26069/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26070_ACEOF
26071sed '
26072s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26073s/^/s,@/; s/!/@,|#_!!_#|/
26074:n
26075t n
26076s/'"$ac_delim"'$/,g/; t
26077s/$/\\/; p
26078N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26079' >>$CONFIG_STATUS <conf$$subs.sed
26080rm -f conf$$subs.sed
26081cat >>$CONFIG_STATUS <<_ACEOF
26082CEOF$ac_eof
26083_ACEOF
26084
26085
26086ac_delim='%!_!# '
26087for ac_last_try in false false false false false :; do
26088 cat >conf$$subs.sed <<_ACEOF
94b4fbf9
VY
26089AR!$AR$ac_delim
26090RANLIB!$RANLIB$ac_delim
56efe974
WP
26091DSYMUTIL!$DSYMUTIL$ac_delim
26092NMEDIT!$NMEDIT$ac_delim
b57f37fb
WP
26093CPP!$CPP$ac_delim
26094CXX!$CXX$ac_delim
26095CXXFLAGS!$CXXFLAGS$ac_delim
26096ac_ct_CXX!$ac_ct_CXX$ac_delim
26097CXXDEPMODE!$CXXDEPMODE$ac_delim
26098am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
26099am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
26100CXXCPP!$CXXCPP$ac_delim
26101F77!$F77$ac_delim
26102FFLAGS!$FFLAGS$ac_delim
26103ac_ct_F77!$ac_ct_F77$ac_delim
26104LIBTOOL!$LIBTOOL$ac_delim
b57f37fb
WP
26105MINGW_TRUE!$MINGW_TRUE$ac_delim
26106MINGW_FALSE!$MINGW_FALSE$ac_delim
26107NEED_CRYPT_TRUE!$NEED_CRYPT_TRUE$ac_delim
26108NEED_CRYPT_FALSE!$NEED_CRYPT_FALSE$ac_delim
26109CRYPT_LIB!$CRYPT_LIB$ac_delim
26110ALLOCA!$ALLOCA$ac_delim
dd910409
WP
26111PKG_CONFIG!$PKG_CONFIG$ac_delim
26112GNUTLS_CFLAGS!$GNUTLS_CFLAGS$ac_delim
26113GNUTLS_LIBS!$GNUTLS_LIBS$ac_delim
b57f37fb
WP
26114PICFLAGS!$PICFLAGS$ac_delim
26115SEDOBJ!$SEDOBJ$ac_delim
033be687 26116SSL_CFLAGS!$SSL_CFLAGS$ac_delim
b57f37fb
WP
26117SSL_LIBS!$SSL_LIBS$ac_delim
26118RB_PREFIX!$RB_PREFIX$ac_delim
26119LIBOBJS!$LIBOBJS$ac_delim
26120LTLIBOBJS!$LTLIBOBJS$ac_delim
26121_ACEOF
26122
94b4fbf9 26123 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 32; then
b57f37fb
WP
26124 break
26125 elif $ac_last_try; then
26126 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26127echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26128 { (exit 1); exit 1; }; }
26129 else
26130 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26131 fi
26132done
26133
26134ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26135if test -n "$ac_eof"; then
26136 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26137 ac_eof=`expr $ac_eof + 1`
26138fi
26139
26140cat >>$CONFIG_STATUS <<_ACEOF
26141cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26142/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26143_ACEOF
26144sed '
26145s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26146s/^/s,@/; s/!/@,|#_!!_#|/
26147:n
26148t n
26149s/'"$ac_delim"'$/,g/; t
26150s/$/\\/; p
26151N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26152' >>$CONFIG_STATUS <conf$$subs.sed
26153rm -f conf$$subs.sed
26154cat >>$CONFIG_STATUS <<_ACEOF
26155:end
26156s/|#_!!_#|//g
26157CEOF$ac_eof
26158_ACEOF
26159
26160
26161# VPATH may cause trouble with some makes, so we remove $(srcdir),
26162# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26163# trailing colons and then remove the whole line if VPATH becomes empty
26164# (actually we leave an empty line to preserve line numbers).
26165if test "x$srcdir" = x.; then
26166 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26167s/:*\$(srcdir):*/:/
26168s/:*\${srcdir}:*/:/
26169s/:*@srcdir@:*/:/
26170s/^\([^=]*=[ ]*\):*/\1/
26171s/:*$//
26172s/^[^=]*=[ ]*$//
26173}'
26174fi
26175
26176cat >>$CONFIG_STATUS <<\_ACEOF
26177fi # test -n "$CONFIG_FILES"
26178
26179
26180for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
26181do
26182 case $ac_tag in
26183 :[FHLC]) ac_mode=$ac_tag; continue;;
26184 esac
26185 case $ac_mode$ac_tag in
26186 :[FHL]*:*);;
26187 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26188echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26189 { (exit 1); exit 1; }; };;
26190 :[FH]-) ac_tag=-:-;;
26191 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26192 esac
26193 ac_save_IFS=$IFS
26194 IFS=:
26195 set x $ac_tag
26196 IFS=$ac_save_IFS
26197 shift
26198 ac_file=$1
26199 shift
26200
26201 case $ac_mode in
26202 :L) ac_source=$1;;
26203 :[FH])
26204 ac_file_inputs=
26205 for ac_f
26206 do
26207 case $ac_f in
26208 -) ac_f="$tmp/stdin";;
26209 *) # Look for the file first in the build tree, then in the source tree
26210 # (if the path is not absolute). The absolute path cannot be DOS-style,
26211 # because $ac_f cannot contain `:'.
26212 test -f "$ac_f" ||
26213 case $ac_f in
26214 [\\/$]*) false;;
26215 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26216 esac ||
26217 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26218echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26219 { (exit 1); exit 1; }; };;
26220 esac
26221 ac_file_inputs="$ac_file_inputs $ac_f"
26222 done
26223
26224 # Let's still pretend it is `configure' which instantiates (i.e., don't
26225 # use $as_me), people would be surprised to read:
26226 # /* config.h. Generated by config.status. */
26227 configure_input="Generated from "`IFS=:
26228 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26229 if test x"$ac_file" != x-; then
26230 configure_input="$ac_file. $configure_input"
26231 { echo "$as_me:$LINENO: creating $ac_file" >&5
26232echo "$as_me: creating $ac_file" >&6;}
26233 fi
26234
26235 case $ac_tag in
26236 *:-:* | *:-) cat >"$tmp/stdin";;
26237 esac
26238 ;;
26239 esac
26240
26241 ac_dir=`$as_dirname -- "$ac_file" ||
26242$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26243 X"$ac_file" : 'X\(//\)[^/]' \| \
26244 X"$ac_file" : 'X\(//\)$' \| \
26245 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26246echo X"$ac_file" |
26247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26248 s//\1/
26249 q
26250 }
26251 /^X\(\/\/\)[^/].*/{
26252 s//\1/
26253 q
26254 }
26255 /^X\(\/\/\)$/{
26256 s//\1/
26257 q
26258 }
26259 /^X\(\/\).*/{
26260 s//\1/
26261 q
26262 }
26263 s/.*/./; q'`
26264 { as_dir="$ac_dir"
26265 case $as_dir in #(
26266 -*) as_dir=./$as_dir;;
26267 esac
26268 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26269 as_dirs=
26270 while :; do
26271 case $as_dir in #(
26272 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26273 *) as_qdir=$as_dir;;
26274 esac
26275 as_dirs="'$as_qdir' $as_dirs"
26276 as_dir=`$as_dirname -- "$as_dir" ||
26277$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26278 X"$as_dir" : 'X\(//\)[^/]' \| \
26279 X"$as_dir" : 'X\(//\)$' \| \
26280 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26281echo X"$as_dir" |
26282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26283 s//\1/
26284 q
26285 }
26286 /^X\(\/\/\)[^/].*/{
26287 s//\1/
26288 q
26289 }
26290 /^X\(\/\/\)$/{
26291 s//\1/
26292 q
26293 }
26294 /^X\(\/\).*/{
26295 s//\1/
26296 q
26297 }
26298 s/.*/./; q'`
26299 test -d "$as_dir" && break
26300 done
26301 test -z "$as_dirs" || eval "mkdir $as_dirs"
26302 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26303echo "$as_me: error: cannot create directory $as_dir" >&2;}
26304 { (exit 1); exit 1; }; }; }
26305 ac_builddir=.
26306
26307case "$ac_dir" in
26308.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26309*)
26310 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26311 # A ".." for each directory in $ac_dir_suffix.
26312 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26313 case $ac_top_builddir_sub in
26314 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26315 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26316 esac ;;
26317esac
26318ac_abs_top_builddir=$ac_pwd
26319ac_abs_builddir=$ac_pwd$ac_dir_suffix
26320# for backward compatibility:
26321ac_top_builddir=$ac_top_build_prefix
26322
26323case $srcdir in
26324 .) # We are building in place.
26325 ac_srcdir=.
26326 ac_top_srcdir=$ac_top_builddir_sub
26327 ac_abs_top_srcdir=$ac_pwd ;;
26328 [\\/]* | ?:[\\/]* ) # Absolute name.
26329 ac_srcdir=$srcdir$ac_dir_suffix;
26330 ac_top_srcdir=$srcdir
26331 ac_abs_top_srcdir=$srcdir ;;
26332 *) # Relative name.
26333 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26334 ac_top_srcdir=$ac_top_build_prefix$srcdir
26335 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26336esac
26337ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26338
26339
26340 case $ac_mode in
26341 :F)
26342 #
26343 # CONFIG_FILE
26344 #
26345
26346 case $INSTALL in
26347 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26348 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26349 esac
26350 ac_MKDIR_P=$MKDIR_P
26351 case $MKDIR_P in
26352 [\\/$]* | ?:[\\/]* ) ;;
26353 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26354 esac
26355_ACEOF
26356
26357cat >>$CONFIG_STATUS <<\_ACEOF
26358# If the template does not know about datarootdir, expand it.
26359# FIXME: This hack should be removed a few years after 2.60.
26360ac_datarootdir_hack=; ac_datarootdir_seen=
26361
26362case `sed -n '/datarootdir/ {
26363 p
26364 q
26365}
26366/@datadir@/p
26367/@docdir@/p
26368/@infodir@/p
26369/@localedir@/p
26370/@mandir@/p
26371' $ac_file_inputs` in
26372*datarootdir*) ac_datarootdir_seen=yes;;
26373*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26374 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26375echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26376_ACEOF
26377cat >>$CONFIG_STATUS <<_ACEOF
26378 ac_datarootdir_hack='
26379 s&@datadir@&$datadir&g
26380 s&@docdir@&$docdir&g
26381 s&@infodir@&$infodir&g
26382 s&@localedir@&$localedir&g
26383 s&@mandir@&$mandir&g
26384 s&\\\${datarootdir}&$datarootdir&g' ;;
26385esac
26386_ACEOF
26387
26388# Neutralize VPATH when `$srcdir' = `.'.
26389# Shell code in configure.ac might set extrasub.
26390# FIXME: do we really want to maintain this feature?
26391cat >>$CONFIG_STATUS <<_ACEOF
26392 sed "$ac_vpsub
26393$extrasub
26394_ACEOF
26395cat >>$CONFIG_STATUS <<\_ACEOF
26396:t
26397/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26398s&@configure_input@&$configure_input&;t t
26399s&@top_builddir@&$ac_top_builddir_sub&;t t
26400s&@srcdir@&$ac_srcdir&;t t
26401s&@abs_srcdir@&$ac_abs_srcdir&;t t
26402s&@top_srcdir@&$ac_top_srcdir&;t t
26403s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26404s&@builddir@&$ac_builddir&;t t
26405s&@abs_builddir@&$ac_abs_builddir&;t t
26406s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26407s&@INSTALL@&$ac_INSTALL&;t t
26408s&@MKDIR_P@&$ac_MKDIR_P&;t t
26409$ac_datarootdir_hack
26410" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26411
26412test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26413 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26414 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26415 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26416which seems to be undefined. Please make sure it is defined." >&5
26417echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26418which seems to be undefined. Please make sure it is defined." >&2;}
26419
26420 rm -f "$tmp/stdin"
26421 case $ac_file in
26422 -) cat "$tmp/out"; rm -f "$tmp/out";;
26423 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26424 esac
26425 ;;
26426 :H)
26427 #
26428 # CONFIG_HEADER
26429 #
26430_ACEOF
26431
26432# Transform confdefs.h into a sed script `conftest.defines', that
26433# substitutes the proper values into config.h.in to produce config.h.
26434rm -f conftest.defines conftest.tail
26435# First, append a space to every undef/define line, to ease matching.
26436echo 's/$/ /' >conftest.defines
26437# Then, protect against being on the right side of a sed subst, or in
26438# an unquoted here document, in config.status. If some macros were
26439# called several times there might be several #defines for the same
26440# symbol, which is useless. But do not sort them, since the last
26441# AC_DEFINE must be honored.
26442ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26443# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26444# NAME is the cpp macro being defined, VALUE is the value it is being given.
26445# PARAMS is the parameter list in the macro definition--in most cases, it's
26446# just an empty string.
26447ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26448ac_dB='\\)[ (].*,\\1define\\2'
26449ac_dC=' '
26450ac_dD=' ,'
26451
26452uniq confdefs.h |
26453 sed -n '
26454 t rset
26455 :rset
26456 s/^[ ]*#[ ]*define[ ][ ]*//
26457 t ok
26458 d
26459 :ok
26460 s/[\\&,]/\\&/g
26461 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26462 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26463 ' >>conftest.defines
26464
26465# Remove the space that was appended to ease matching.
26466# Then replace #undef with comments. This is necessary, for
26467# example, in the case of _POSIX_SOURCE, which is predefined and required
26468# on some systems where configure will not decide to define it.
26469# (The regexp can be short, since the line contains either #define or #undef.)
26470echo 's/ $//
26471s,^[ #]*u.*,/* & */,' >>conftest.defines
26472
26473# Break up conftest.defines:
26474ac_max_sed_lines=50
26475
26476# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26477# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26478# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26479# et cetera.
26480ac_in='$ac_file_inputs'
26481ac_out='"$tmp/out1"'
26482ac_nxt='"$tmp/out2"'
26483
26484while :
26485do
26486 # Write a here document:
26487 cat >>$CONFIG_STATUS <<_ACEOF
26488 # First, check the format of the line:
26489 cat >"\$tmp/defines.sed" <<\\CEOF
26490/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26491/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26492b
26493:def
26494_ACEOF
26495 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26496 echo 'CEOF
26497 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26498 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26499 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26500 grep . conftest.tail >/dev/null || break
26501 rm -f conftest.defines
26502 mv conftest.tail conftest.defines
26503done
26504rm -f conftest.defines conftest.tail
26505
26506echo "ac_result=$ac_in" >>$CONFIG_STATUS
26507cat >>$CONFIG_STATUS <<\_ACEOF
26508 if test x"$ac_file" != x-; then
26509 echo "/* $configure_input */" >"$tmp/config.h"
26510 cat "$ac_result" >>"$tmp/config.h"
26511 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26512 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26513echo "$as_me: $ac_file is unchanged" >&6;}
26514 else
26515 rm -f $ac_file
26516 mv "$tmp/config.h" $ac_file
26517 fi
26518 else
26519 echo "/* $configure_input */"
26520 cat "$ac_result"
26521 fi
26522 rm -f "$tmp/out12"
26523# Compute $ac_file's index in $config_headers.
56efe974 26524_am_arg=$ac_file
b57f37fb
WP
26525_am_stamp_count=1
26526for _am_header in $config_headers :; do
26527 case $_am_header in
56efe974 26528 $_am_arg | $_am_arg:* )
b57f37fb
WP
26529 break ;;
26530 * )
26531 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26532 esac
26533done
56efe974
WP
26534echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26535$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26536 X"$_am_arg" : 'X\(//\)[^/]' \| \
26537 X"$_am_arg" : 'X\(//\)$' \| \
26538 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26539echo X"$_am_arg" |
b57f37fb
WP
26540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26541 s//\1/
26542 q
26543 }
26544 /^X\(\/\/\)[^/].*/{
26545 s//\1/
26546 q
26547 }
26548 /^X\(\/\/\)$/{
26549 s//\1/
26550 q
26551 }
26552 /^X\(\/\).*/{
26553 s//\1/
26554 q
26555 }
26556 s/.*/./; q'`/stamp-h$_am_stamp_count
26557 ;;
26558
26559 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
26560echo "$as_me: executing $ac_file commands" >&6;}
26561 ;;
26562 esac
26563
26564
26565 case $ac_file$ac_mode in
26566 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26567 # Strip MF so we end up with the name of the file.
26568 mf=`echo "$mf" | sed -e 's/:.*$//'`
26569 # Check whether this is an Automake generated Makefile or not.
26570 # We used to match only the files named `Makefile.in', but
26571 # some people rename them; so instead we look at the file content.
26572 # Grep'ing the first line is not enough: some people post-process
26573 # each Makefile.in and add a new line on top of each file to say so.
26574 # Grep'ing the whole file is not good either: AIX grep has a line
26575 # limit of 2048, but all sed's we know have understand at least 4000.
56efe974 26576 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
b57f37fb
WP
26577 dirpart=`$as_dirname -- "$mf" ||
26578$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26579 X"$mf" : 'X\(//\)[^/]' \| \
26580 X"$mf" : 'X\(//\)$' \| \
26581 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26582echo X"$mf" |
26583 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26584 s//\1/
26585 q
26586 }
26587 /^X\(\/\/\)[^/].*/{
26588 s//\1/
26589 q
26590 }
26591 /^X\(\/\/\)$/{
26592 s//\1/
26593 q
26594 }
26595 /^X\(\/\).*/{
26596 s//\1/
26597 q
26598 }
26599 s/.*/./; q'`
26600 else
26601 continue
26602 fi
26603 # Extract the definition of DEPDIR, am__include, and am__quote
26604 # from the Makefile without running `make'.
26605 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26606 test -z "$DEPDIR" && continue
26607 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26608 test -z "am__include" && continue
26609 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26610 # When using ansi2knr, U may be empty or an underscore; expand it
26611 U=`sed -n 's/^U = //p' < "$mf"`
26612 # Find all dependency output files, they are included files with
26613 # $(DEPDIR) in their names. We invoke sed twice because it is the
26614 # simplest approach to changing $(DEPDIR) to its actual value in the
26615 # expansion.
26616 for file in `sed -n "
26617 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26618 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26619 # Make sure the directory exists.
26620 test -f "$dirpart/$file" && continue
26621 fdir=`$as_dirname -- "$file" ||
26622$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26623 X"$file" : 'X\(//\)[^/]' \| \
26624 X"$file" : 'X\(//\)$' \| \
26625 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26626echo X"$file" |
26627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26628 s//\1/
26629 q
26630 }
26631 /^X\(\/\/\)[^/].*/{
26632 s//\1/
26633 q
26634 }
26635 /^X\(\/\/\)$/{
26636 s//\1/
26637 q
26638 }
26639 /^X\(\/\).*/{
26640 s//\1/
26641 q
26642 }
26643 s/.*/./; q'`
26644 { as_dir=$dirpart/$fdir
26645 case $as_dir in #(
26646 -*) as_dir=./$as_dir;;
26647 esac
26648 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26649 as_dirs=
26650 while :; do
26651 case $as_dir in #(
26652 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26653 *) as_qdir=$as_dir;;
26654 esac
26655 as_dirs="'$as_qdir' $as_dirs"
26656 as_dir=`$as_dirname -- "$as_dir" ||
26657$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26658 X"$as_dir" : 'X\(//\)[^/]' \| \
26659 X"$as_dir" : 'X\(//\)$' \| \
26660 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26661echo X"$as_dir" |
26662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26663 s//\1/
26664 q
26665 }
26666 /^X\(\/\/\)[^/].*/{
26667 s//\1/
26668 q
26669 }
26670 /^X\(\/\/\)$/{
26671 s//\1/
26672 q
26673 }
26674 /^X\(\/\).*/{
26675 s//\1/
26676 q
26677 }
26678 s/.*/./; q'`
26679 test -d "$as_dir" && break
26680 done
26681 test -z "$as_dirs" || eval "mkdir $as_dirs"
26682 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26683echo "$as_me: error: cannot create directory $as_dir" >&2;}
26684 { (exit 1); exit 1; }; }; }
26685 # echo "creating $dirpart/$file"
26686 echo '# dummy' > "$dirpart/$file"
26687 done
26688done
26689 ;;
26690 "include/librb-config.h":C)
26691 outfile=include/librb-config.h.tmp
26692 cat > $outfile <<\_______EOF
26693/*
26694 * librb-config.h: libratbox config file. Please modify configure.ac
26695 */
26696
26697#ifndef __LIBRB_CONFIG_H
26698#define __LIBRB_CONFIG_H
26699
26700_______EOF
26701
26702if test "x$rb_have_ipv6" = "xyes"; then
26703 echo "#define RB_IPV6 1" >> $outfile
26704fi
26705
26706if test "x$rb_windows_h" = "xyes"; then
26707 echo '#define WIN32_LEAN_AND_MEAN 1' >> $outfile
26708 echo '#include <windows.h>' >> $outfile
26709 echo '#include <winsock2.h>' >> $outfile
26710 echo '#include <iphlpapi.h>' >> $outfile
26711fi
26712
26713if test "x$rb_alloca_h" = "xyes"; then
26714 echo '#define RB_HAVE_ALLOCA_H 1' >> $outfile
26715fi
26716
26717if test "x$rb_header_stdc" = "xyes"; then
26718 echo '#include <stdlib.h>' >> $outfile
26719 echo '#include <stddef.h>' >> $outfile
26720elif test "x$rb_header_stdlib" = "xyes"; then
26721 echo '#include <stdlib.h>' >> $outfile
26722fi
26723
26724if test "x$rb_header_string_h" = "xyes"; then
26725 echo '#include <string.h>' >> $outfile
26726fi
26727
26728if test "x$rb_stdint_h" = "xyes"; then
26729 echo '#include <stdint.h>' >> $outfile
26730fi
26731
26732if test "x$rb_inttypes_h" = "xyes"; then
26733 echo '#include <inttypes.h>' >> $outfile
26734fi
26735
26736if test "x$rb_sys_types_h" = "xyes"; then
26737 echo '#include <sys/types.h>' >> $outfile
26738fi
26739if test "x$rb_sys_time_h" = "xyes"; then
26740 echo '#include <sys/time.h>' >> $outfile
26741fi
26742if test "x$rb_sys_stat_h" = "xyes"; then
26743 echo '#include <sys/stat.h>' >> $outfile
26744fi
26745if test "x$rb_time_h" = "xyes"; then
26746 echo '#include <time.h>' >> $outfile
26747fi
26748
26749if test "x$rb_sys_socket_h" = "xyes"; then
26750 echo '#include <sys/socket.h>' >> $outfile
26751fi
26752
26753if test "x$rb_netinet_in_h" = "xyes"; then
26754 echo '#include <netinet/in.h>' >> $outfile
26755fi
26756
26757if test "x$rb_arpa_inet_h" = "xyes"; then
26758 echo '#include <arpa/inet.h>' >> $outfile
26759fi
26760
26761if test "x$rb_unistd_h" = "xyes"; then
26762 echo '#include <unistd.h>' >> $outfile
26763fi
26764
26765if test "x$rb_crypt_h" = "xyes"; then
26766 echo '#include <crypt.h>' >> $outfile
26767fi
26768
26769if test "x$rb_errno_h" = "xyes"; then
26770 echo '#include <errno.h>' >> $outfile
26771fi
26772
4414eb3c
VY
26773echo "typedef $rb_socklen_t rb_socklen_t;" >> $outfile
26774
26775
b57f37fb
WP
26776if test "x$rb_sockaddr_sa_len" = "xyes"; then
26777 echo '#define RB_SOCKADDR_HAS_SA_LEN 1' >> $outfile
26778fi
26779
b57f37fb
WP
26780if test "x$rb_sockaddr_storage" = "xyes"; then
26781 echo '#define rb_sockaddr_storage sockaddr_storage' >> $outfile
26782else
94b4fbf9 26783 echo 'struct rb_sockaddr_storage { uint8_t _padding[128]; };' >> $outfile
b57f37fb
WP
26784fi
26785
26786cat >> $outfile <<\_______EOF
26787#endif /* __LIBRB_CONFIG_H */
26788_______EOF
26789
26790if cmp -s $outfile include/librb-config.h; then
26791 { echo "$as_me:$LINENO: include/librb-config.h is unchanged" >&5
26792echo "$as_me: include/librb-config.h is unchanged" >&6;}
26793 ${rb_rm} -f $outfile
26794else
26795 ${rb_mv} $outfile include/librb-config.h
26796fi
26797
26798 ;;
26799
26800 esac
26801done # for ac_tag
26802
26803
26804{ (exit 0); exit 0; }
26805_ACEOF
26806chmod +x $CONFIG_STATUS
26807ac_clean_files=$ac_clean_files_save
26808
26809
26810# configure is writing to config.log, and then calls config.status.
26811# config.status does its own redirection, appending to config.log.
26812# Unfortunately, on DOS this fails, as config.log is still kept open
26813# by configure, so config.status won't be able to write to it; its
26814# output is simply discarded. So we exec the FD to /dev/null,
26815# effectively closing config.log, so it can be properly (re)opened and
26816# appended to by config.status. When coming back to configure, we
26817# need to make the FD available again.
26818if test "$no_create" != yes; then
26819 ac_cs_success=:
26820 ac_config_status_args=
26821 test "$silent" = yes &&
26822 ac_config_status_args="$ac_config_status_args --quiet"
26823 exec 5>/dev/null
26824 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26825 exec 5>>config.log
26826 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26827 # would make configure fail if this is the last instruction.
26828 $ac_cs_success || { (exit 1); exit 1; }
26829fi
26830
b57f37fb
WP
26831
26832
26833echo
26834echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION"
26835echo
26836
26837echo "Installing into: $prefix"
26838
26839echo "IPv6 support ................... $have_v6"
26840echo "Assert debugging ............... $assert"
26841echo "Block allocator ................ $balloc"
033be687 26842echo "SSL Type........................ $SSL_TYPE"
b57f37fb
WP
26843echo
26844