]> jfr.im git - irc/rqf/shadowircd.git/blame - libratbox/configure
dlink -> rb_dlink
[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#
5# $Id: configure.ac 23020 2006-09-01 18:20:19Z androsyn $
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
858AR
859LD
860RANLIB
861TOUCH
862build
863build_cpu
864build_vendor
865build_os
866host
867host_cpu
868host_vendor
869host_os
870LN_S
871ECHO
56efe974
WP
872DSYMUTIL
873NMEDIT
b57f37fb
WP
874CPP
875CXX
876CXXFLAGS
877ac_ct_CXX
878CXXDEPMODE
879am__fastdepCXX_TRUE
880am__fastdepCXX_FALSE
881CXXCPP
882F77
883FFLAGS
884ac_ct_F77
885LIBTOOL
886subdirs
887MINGW_TRUE
888MINGW_FALSE
889NEED_CRYPT_TRUE
890NEED_CRYPT_FALSE
891CRYPT_LIB
892ALLOCA
893PICFLAGS
894SEDOBJ
895SSL_INCLUDES
896SSL_LIBS
897RB_PREFIX
898LIBOBJS
899LTLIBOBJS'
900ac_subst_files=''
901 ac_precious_vars='build_alias
902host_alias
903target_alias
904CC
905CFLAGS
906LDFLAGS
907LIBS
908CPPFLAGS
909CPP
910CXX
911CXXFLAGS
912CCC
913CXXCPP
914F77
915FFLAGS'
916ac_subdirs_all='libltdl'
917
918# Initialize some variables set by options.
919ac_init_help=
920ac_init_version=false
921# The variables have the same names as the options, with
922# dashes changed to underlines.
923cache_file=/dev/null
924exec_prefix=NONE
925no_create=
926no_recursion=
927prefix=NONE
928program_prefix=NONE
929program_suffix=NONE
930program_transform_name=s,x,x,
931silent=
932site=
933srcdir=
934verbose=
935x_includes=NONE
936x_libraries=NONE
937
938# Installation directory options.
939# These are left unexpanded so users can "make install exec_prefix=/foo"
940# and all the variables that are supposed to be based on exec_prefix
941# by default will actually change.
942# Use braces instead of parens because sh, perl, etc. also accept them.
943# (The list follows the same order as the GNU Coding Standards.)
944bindir='${exec_prefix}/bin'
945sbindir='${exec_prefix}/sbin'
946libexecdir='${exec_prefix}/libexec'
947datarootdir='${prefix}/share'
948datadir='${datarootdir}'
949sysconfdir='${prefix}/etc'
950sharedstatedir='${prefix}/com'
951localstatedir='${prefix}/var'
952includedir='${prefix}/include'
953oldincludedir='/usr/include'
954docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
955infodir='${datarootdir}/info'
956htmldir='${docdir}'
957dvidir='${docdir}'
958pdfdir='${docdir}'
959psdir='${docdir}'
960libdir='${exec_prefix}/lib'
961localedir='${datarootdir}/locale'
962mandir='${datarootdir}/man'
963
964ac_prev=
965ac_dashdash=
966for ac_option
967do
968 # If the previous option needs an argument, assign it.
969 if test -n "$ac_prev"; then
970 eval $ac_prev=\$ac_option
971 ac_prev=
972 continue
973 fi
974
975 case $ac_option in
976 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
977 *) ac_optarg=yes ;;
978 esac
979
980 # Accept the important Cygnus configure options, so we can diagnose typos.
981
982 case $ac_dashdash$ac_option in
983 --)
984 ac_dashdash=yes ;;
985
986 -bindir | --bindir | --bindi | --bind | --bin | --bi)
987 ac_prev=bindir ;;
988 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
989 bindir=$ac_optarg ;;
990
991 -build | --build | --buil | --bui | --bu)
992 ac_prev=build_alias ;;
993 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
994 build_alias=$ac_optarg ;;
995
996 -cache-file | --cache-file | --cache-fil | --cache-fi \
997 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
998 ac_prev=cache_file ;;
999 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1000 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1001 cache_file=$ac_optarg ;;
1002
1003 --config-cache | -C)
1004 cache_file=config.cache ;;
1005
1006 -datadir | --datadir | --datadi | --datad)
1007 ac_prev=datadir ;;
1008 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1009 datadir=$ac_optarg ;;
1010
1011 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1012 | --dataroo | --dataro | --datar)
1013 ac_prev=datarootdir ;;
1014 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1015 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1016 datarootdir=$ac_optarg ;;
1017
1018 -disable-* | --disable-*)
1019 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1022 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1023 { (exit 1); exit 1; }; }
1024 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1025 eval enable_$ac_feature=no ;;
1026
1027 -docdir | --docdir | --docdi | --doc | --do)
1028 ac_prev=docdir ;;
1029 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1030 docdir=$ac_optarg ;;
1031
1032 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1033 ac_prev=dvidir ;;
1034 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1035 dvidir=$ac_optarg ;;
1036
1037 -enable-* | --enable-*)
1038 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1041 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1042 { (exit 1); exit 1; }; }
1043 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1044 eval enable_$ac_feature=\$ac_optarg ;;
1045
1046 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1047 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1048 | --exec | --exe | --ex)
1049 ac_prev=exec_prefix ;;
1050 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1051 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1052 | --exec=* | --exe=* | --ex=*)
1053 exec_prefix=$ac_optarg ;;
1054
1055 -gas | --gas | --ga | --g)
1056 # Obsolete; use --with-gas.
1057 with_gas=yes ;;
1058
1059 -help | --help | --hel | --he | -h)
1060 ac_init_help=long ;;
1061 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1062 ac_init_help=recursive ;;
1063 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1064 ac_init_help=short ;;
1065
1066 -host | --host | --hos | --ho)
1067 ac_prev=host_alias ;;
1068 -host=* | --host=* | --hos=* | --ho=*)
1069 host_alias=$ac_optarg ;;
1070
1071 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1072 ac_prev=htmldir ;;
1073 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1074 | --ht=*)
1075 htmldir=$ac_optarg ;;
1076
1077 -includedir | --includedir | --includedi | --included | --include \
1078 | --includ | --inclu | --incl | --inc)
1079 ac_prev=includedir ;;
1080 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1081 | --includ=* | --inclu=* | --incl=* | --inc=*)
1082 includedir=$ac_optarg ;;
1083
1084 -infodir | --infodir | --infodi | --infod | --info | --inf)
1085 ac_prev=infodir ;;
1086 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1087 infodir=$ac_optarg ;;
1088
1089 -libdir | --libdir | --libdi | --libd)
1090 ac_prev=libdir ;;
1091 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1092 libdir=$ac_optarg ;;
1093
1094 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1095 | --libexe | --libex | --libe)
1096 ac_prev=libexecdir ;;
1097 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1098 | --libexe=* | --libex=* | --libe=*)
1099 libexecdir=$ac_optarg ;;
1100
1101 -localedir | --localedir | --localedi | --localed | --locale)
1102 ac_prev=localedir ;;
1103 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1104 localedir=$ac_optarg ;;
1105
1106 -localstatedir | --localstatedir | --localstatedi | --localstated \
1107 | --localstate | --localstat | --localsta | --localst | --locals)
1108 ac_prev=localstatedir ;;
1109 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1110 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1111 localstatedir=$ac_optarg ;;
1112
1113 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1114 ac_prev=mandir ;;
1115 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1116 mandir=$ac_optarg ;;
1117
1118 -nfp | --nfp | --nf)
1119 # Obsolete; use --without-fp.
1120 with_fp=no ;;
1121
1122 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1123 | --no-cr | --no-c | -n)
1124 no_create=yes ;;
1125
1126 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1127 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1128 no_recursion=yes ;;
1129
1130 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1131 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1132 | --oldin | --oldi | --old | --ol | --o)
1133 ac_prev=oldincludedir ;;
1134 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1135 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1136 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1137 oldincludedir=$ac_optarg ;;
1138
1139 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1140 ac_prev=prefix ;;
1141 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1142 prefix=$ac_optarg ;;
1143
1144 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1145 | --program-pre | --program-pr | --program-p)
1146 ac_prev=program_prefix ;;
1147 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1148 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1149 program_prefix=$ac_optarg ;;
1150
1151 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1152 | --program-suf | --program-su | --program-s)
1153 ac_prev=program_suffix ;;
1154 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1155 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1156 program_suffix=$ac_optarg ;;
1157
1158 -program-transform-name | --program-transform-name \
1159 | --program-transform-nam | --program-transform-na \
1160 | --program-transform-n | --program-transform- \
1161 | --program-transform | --program-transfor \
1162 | --program-transfo | --program-transf \
1163 | --program-trans | --program-tran \
1164 | --progr-tra | --program-tr | --program-t)
1165 ac_prev=program_transform_name ;;
1166 -program-transform-name=* | --program-transform-name=* \
1167 | --program-transform-nam=* | --program-transform-na=* \
1168 | --program-transform-n=* | --program-transform-=* \
1169 | --program-transform=* | --program-transfor=* \
1170 | --program-transfo=* | --program-transf=* \
1171 | --program-trans=* | --program-tran=* \
1172 | --progr-tra=* | --program-tr=* | --program-t=*)
1173 program_transform_name=$ac_optarg ;;
1174
1175 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1176 ac_prev=pdfdir ;;
1177 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1178 pdfdir=$ac_optarg ;;
1179
1180 -psdir | --psdir | --psdi | --psd | --ps)
1181 ac_prev=psdir ;;
1182 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1183 psdir=$ac_optarg ;;
1184
1185 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1186 | -silent | --silent | --silen | --sile | --sil)
1187 silent=yes ;;
1188
1189 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1190 ac_prev=sbindir ;;
1191 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1192 | --sbi=* | --sb=*)
1193 sbindir=$ac_optarg ;;
1194
1195 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1196 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1197 | --sharedst | --shareds | --shared | --share | --shar \
1198 | --sha | --sh)
1199 ac_prev=sharedstatedir ;;
1200 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1201 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1202 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1203 | --sha=* | --sh=*)
1204 sharedstatedir=$ac_optarg ;;
1205
1206 -site | --site | --sit)
1207 ac_prev=site ;;
1208 -site=* | --site=* | --sit=*)
1209 site=$ac_optarg ;;
1210
1211 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1212 ac_prev=srcdir ;;
1213 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1214 srcdir=$ac_optarg ;;
1215
1216 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1217 | --syscon | --sysco | --sysc | --sys | --sy)
1218 ac_prev=sysconfdir ;;
1219 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1220 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1221 sysconfdir=$ac_optarg ;;
1222
1223 -target | --target | --targe | --targ | --tar | --ta | --t)
1224 ac_prev=target_alias ;;
1225 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1226 target_alias=$ac_optarg ;;
1227
1228 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1229 verbose=yes ;;
1230
1231 -version | --version | --versio | --versi | --vers | -V)
1232 ac_init_version=: ;;
1233
1234 -with-* | --with-*)
1235 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1236 # Reject names that are not valid shell variable names.
1237 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238 { echo "$as_me: error: invalid package name: $ac_package" >&2
1239 { (exit 1); exit 1; }; }
1240 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1241 eval with_$ac_package=\$ac_optarg ;;
1242
1243 -without-* | --without-*)
1244 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1245 # Reject names that are not valid shell variable names.
1246 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1247 { echo "$as_me: error: invalid package name: $ac_package" >&2
1248 { (exit 1); exit 1; }; }
1249 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1250 eval with_$ac_package=no ;;
1251
1252 --x)
1253 # Obsolete; use --with-x.
1254 with_x=yes ;;
1255
1256 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1257 | --x-incl | --x-inc | --x-in | --x-i)
1258 ac_prev=x_includes ;;
1259 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1260 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1261 x_includes=$ac_optarg ;;
1262
1263 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1264 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1265 ac_prev=x_libraries ;;
1266 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1267 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1268 x_libraries=$ac_optarg ;;
1269
1270 -*) { echo "$as_me: error: unrecognized option: $ac_option
1271Try \`$0 --help' for more information." >&2
1272 { (exit 1); exit 1; }; }
1273 ;;
1274
1275 *=*)
1276 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1279 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1280 { (exit 1); exit 1; }; }
1281 eval $ac_envvar=\$ac_optarg
1282 export $ac_envvar ;;
1283
1284 *)
1285 # FIXME: should be removed in autoconf 3.0.
1286 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1287 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1288 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1289 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1290 ;;
1291
1292 esac
1293done
1294
1295if test -n "$ac_prev"; then
1296 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1297 { echo "$as_me: error: missing argument to $ac_option" >&2
1298 { (exit 1); exit 1; }; }
1299fi
1300
1301# Be sure to have absolute directory names.
1302for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1303 datadir sysconfdir sharedstatedir localstatedir includedir \
1304 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1305 libdir localedir mandir
1306do
1307 eval ac_val=\$$ac_var
1308 case $ac_val in
1309 [\\/$]* | ?:[\\/]* ) continue;;
1310 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1311 esac
1312 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1313 { (exit 1); exit 1; }; }
1314done
1315
1316# There might be people who depend on the old broken behavior: `$host'
1317# used to hold the argument of --host etc.
1318# FIXME: To remove some day.
1319build=$build_alias
1320host=$host_alias
1321target=$target_alias
1322
1323# FIXME: To remove some day.
1324if test "x$host_alias" != x; then
1325 if test "x$build_alias" = x; then
1326 cross_compiling=maybe
1327 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1328 If a cross compiler is detected then cross compile mode will be used." >&2
1329 elif test "x$build_alias" != "x$host_alias"; then
1330 cross_compiling=yes
1331 fi
1332fi
1333
1334ac_tool_prefix=
1335test -n "$host_alias" && ac_tool_prefix=$host_alias-
1336
1337test "$silent" = yes && exec 6>/dev/null
1338
1339
1340ac_pwd=`pwd` && test -n "$ac_pwd" &&
1341ac_ls_di=`ls -di .` &&
1342ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1343 { echo "$as_me: error: Working directory cannot be determined" >&2
1344 { (exit 1); exit 1; }; }
1345test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1346 { echo "$as_me: error: pwd does not report name of working directory" >&2
1347 { (exit 1); exit 1; }; }
1348
1349
1350# Find the source files, if location was not specified.
1351if test -z "$srcdir"; then
1352 ac_srcdir_defaulted=yes
1353 # Try the directory containing this script, then the parent directory.
1354 ac_confdir=`$as_dirname -- "$0" ||
1355$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1356 X"$0" : 'X\(//\)[^/]' \| \
1357 X"$0" : 'X\(//\)$' \| \
1358 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1359echo X"$0" |
1360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1361 s//\1/
1362 q
1363 }
1364 /^X\(\/\/\)[^/].*/{
1365 s//\1/
1366 q
1367 }
1368 /^X\(\/\/\)$/{
1369 s//\1/
1370 q
1371 }
1372 /^X\(\/\).*/{
1373 s//\1/
1374 q
1375 }
1376 s/.*/./; q'`
1377 srcdir=$ac_confdir
1378 if test ! -r "$srcdir/$ac_unique_file"; then
1379 srcdir=..
1380 fi
1381else
1382 ac_srcdir_defaulted=no
1383fi
1384if test ! -r "$srcdir/$ac_unique_file"; then
1385 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1386 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1387 { (exit 1); exit 1; }; }
1388fi
1389ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1390ac_abs_confdir=`(
1391 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1392 { (exit 1); exit 1; }; }
1393 pwd)`
1394# When building in place, set srcdir=.
1395if test "$ac_abs_confdir" = "$ac_pwd"; then
1396 srcdir=.
1397fi
1398# Remove unnecessary trailing slashes from srcdir.
1399# Double slashes in file names in object file debugging info
1400# mess up M-x gdb in Emacs.
1401case $srcdir in
1402*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1403esac
1404for ac_var in $ac_precious_vars; do
1405 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1406 eval ac_env_${ac_var}_value=\$${ac_var}
1407 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1408 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1409done
1410
1411#
1412# Report the --help message.
1413#
1414if test "$ac_init_help" = "long"; then
1415 # Omit some internal or obsolete options to make the list less imposing.
1416 # This message is too long to be a string in the A/UX 3.1 sh.
1417 cat <<_ACEOF
1418\`configure' configures libratbox devel to adapt to many kinds of systems.
1419
1420Usage: $0 [OPTION]... [VAR=VALUE]...
1421
1422To assign environment variables (e.g., CC, CFLAGS...), specify them as
1423VAR=VALUE. See below for descriptions of some of the useful variables.
1424
1425Defaults for the options are specified in brackets.
1426
1427Configuration:
1428 -h, --help display this help and exit
1429 --help=short display options specific to this package
1430 --help=recursive display the short help of all the included packages
1431 -V, --version display version information and exit
1432 -q, --quiet, --silent do not print \`checking...' messages
1433 --cache-file=FILE cache test results in FILE [disabled]
1434 -C, --config-cache alias for \`--cache-file=config.cache'
1435 -n, --no-create do not create output files
1436 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1437
1438Installation directories:
1439 --prefix=PREFIX install architecture-independent files in PREFIX
1440 [$ac_default_prefix]
1441 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1442 [PREFIX]
1443
1444By default, \`make install' will install all the files in
1445\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1446an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1447for instance \`--prefix=\$HOME'.
1448
1449For better control, use the options below.
1450
1451Fine tuning of the installation directories:
1452 --bindir=DIR user executables [EPREFIX/bin]
1453 --sbindir=DIR system admin executables [EPREFIX/sbin]
1454 --libexecdir=DIR program executables [EPREFIX/libexec]
1455 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1456 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1457 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1458 --libdir=DIR object code libraries [EPREFIX/lib]
1459 --includedir=DIR C header files [PREFIX/include]
1460 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1461 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1462 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1463 --infodir=DIR info documentation [DATAROOTDIR/info]
1464 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1465 --mandir=DIR man documentation [DATAROOTDIR/man]
1466 --docdir=DIR documentation root [DATAROOTDIR/doc/libratbox]
1467 --htmldir=DIR html documentation [DOCDIR]
1468 --dvidir=DIR dvi documentation [DOCDIR]
1469 --pdfdir=DIR pdf documentation [DOCDIR]
1470 --psdir=DIR ps documentation [DOCDIR]
1471_ACEOF
1472
1473 cat <<\_ACEOF
1474
1475Program names:
1476 --program-prefix=PREFIX prepend PREFIX to installed program names
1477 --program-suffix=SUFFIX append SUFFIX to installed program names
1478 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1479
1480System types:
1481 --build=BUILD configure for building on BUILD [guessed]
1482 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1483_ACEOF
1484fi
1485
1486if test -n "$ac_init_help"; then
1487 case $ac_init_help in
1488 short | recursive ) echo "Configuration of libratbox devel:";;
1489 esac
1490 cat <<\_ACEOF
1491
1492Optional Features:
1493 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1494 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1495 --disable-dependency-tracking speeds up one-time build
1496 --enable-dependency-tracking do not reject slow dependency extractors
1497 --enable-static[=PKGS] build static libraries [default=no]
1498 --enable-shared[=PKGS] build shared libraries [default=yes]
1499 --enable-maintainer-mode enable make rules and dependencies not useful
1500 (and sometimes confusing) to the casual installer
1501 --enable-fast-install[=PKGS]
1502 optimize for fast installation [default=yes]
1503 --disable-libtool-lock avoid locking (might break parallel builds)
1504 --disable-ipv6 Disable IPv6 support
1505 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1506 --disable-openssl Disable OpenSSL support.
1507 --enable-assert Enable assert(). Choose between soft(warnings) and
1508 hard(aborts the daemon)
1509 --enable-profile Enable profiling
1510 --disable-balloc Disable the block allocator.
1511 --enable-warnings Enable all sorts of warnings for debugging.
1512
1513Optional Packages:
1514 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1515 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1516 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1517 --with-pic try to use only PIC/non-PIC objects [default=use
1518 both]
1519 --with-tags[=TAGS] include additional configurations [automatic]
1520
1521Some influential environment variables:
1522 CC C compiler command
1523 CFLAGS C compiler flags
1524 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1525 nonstandard directory <lib dir>
1526 LIBS libraries to pass to the linker, e.g. -l<library>
1527 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1528 you have headers in a nonstandard directory <include dir>
1529 CPP C preprocessor
1530 CXX C++ compiler command
1531 CXXFLAGS C++ compiler flags
1532 CXXCPP C++ preprocessor
1533 F77 Fortran 77 compiler command
1534 FFLAGS Fortran 77 compiler flags
1535
1536Use these variables to override the choices made by `configure' or to help
1537it to find libraries and programs with nonstandard names/locations.
1538
1539_ACEOF
1540ac_status=$?
1541fi
1542
1543if test "$ac_init_help" = "recursive"; then
1544 # If there are subdirs, report their specific --help.
1545 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1546 test -d "$ac_dir" || continue
1547 ac_builddir=.
1548
1549case "$ac_dir" in
1550.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551*)
1552 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1553 # A ".." for each directory in $ac_dir_suffix.
1554 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1555 case $ac_top_builddir_sub in
1556 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1558 esac ;;
1559esac
1560ac_abs_top_builddir=$ac_pwd
1561ac_abs_builddir=$ac_pwd$ac_dir_suffix
1562# for backward compatibility:
1563ac_top_builddir=$ac_top_build_prefix
1564
1565case $srcdir in
1566 .) # We are building in place.
1567 ac_srcdir=.
1568 ac_top_srcdir=$ac_top_builddir_sub
1569 ac_abs_top_srcdir=$ac_pwd ;;
1570 [\\/]* | ?:[\\/]* ) # Absolute name.
1571 ac_srcdir=$srcdir$ac_dir_suffix;
1572 ac_top_srcdir=$srcdir
1573 ac_abs_top_srcdir=$srcdir ;;
1574 *) # Relative name.
1575 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1576 ac_top_srcdir=$ac_top_build_prefix$srcdir
1577 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1578esac
1579ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1580
1581 cd "$ac_dir" || { ac_status=$?; continue; }
1582 # Check for guested configure.
1583 if test -f "$ac_srcdir/configure.gnu"; then
1584 echo &&
1585 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586 elif test -f "$ac_srcdir/configure"; then
1587 echo &&
1588 $SHELL "$ac_srcdir/configure" --help=recursive
1589 else
1590 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591 fi || ac_status=$?
1592 cd "$ac_pwd" || { ac_status=$?; break; }
1593 done
1594fi
1595
1596test -n "$ac_init_help" && exit $ac_status
1597if $ac_init_version; then
1598 cat <<\_ACEOF
1599libratbox configure devel
1600generated by GNU Autoconf 2.61
1601
1602Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16032002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1604This configure script is free software; the Free Software Foundation
1605gives unlimited permission to copy, distribute and modify it.
1606
1607$Id: configure.ac 23020 2006-09-01 18:20:19Z androsyn $
1608_ACEOF
1609 exit
1610fi
1611cat >config.log <<_ACEOF
1612This file contains any messages produced by compilers while
1613running configure, to aid debugging if configure makes a mistake.
1614
1615It was created by libratbox $as_me devel, which was
1616generated by GNU Autoconf 2.61. Invocation command line was
1617
1618 $ $0 $@
1619
1620_ACEOF
1621exec 5>>config.log
1622{
1623cat <<_ASUNAME
1624## --------- ##
1625## Platform. ##
1626## --------- ##
1627
1628hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1629uname -m = `(uname -m) 2>/dev/null || echo unknown`
1630uname -r = `(uname -r) 2>/dev/null || echo unknown`
1631uname -s = `(uname -s) 2>/dev/null || echo unknown`
1632uname -v = `(uname -v) 2>/dev/null || echo unknown`
1633
1634/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1635/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1636
1637/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1638/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1639/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1640/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1641/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1642/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1643/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1644
1645_ASUNAME
1646
1647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648for as_dir in $PATH
1649do
1650 IFS=$as_save_IFS
1651 test -z "$as_dir" && as_dir=.
1652 echo "PATH: $as_dir"
1653done
1654IFS=$as_save_IFS
1655
1656} >&5
1657
1658cat >&5 <<_ACEOF
1659
1660
1661## ----------- ##
1662## Core tests. ##
1663## ----------- ##
1664
1665_ACEOF
1666
1667
1668# Keep a trace of the command line.
1669# Strip out --no-create and --no-recursion so they do not pile up.
1670# Strip out --silent because we don't want to record it for future runs.
1671# Also quote any args containing shell meta-characters.
1672# Make two passes to allow for proper duplicate-argument suppression.
1673ac_configure_args=
1674ac_configure_args0=
1675ac_configure_args1=
1676ac_must_keep_next=false
1677for ac_pass in 1 2
1678do
1679 for ac_arg
1680 do
1681 case $ac_arg in
1682 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1683 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1684 | -silent | --silent | --silen | --sile | --sil)
1685 continue ;;
1686 *\'*)
1687 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1688 esac
1689 case $ac_pass in
1690 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1691 2)
1692 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1693 if test $ac_must_keep_next = true; then
1694 ac_must_keep_next=false # Got value, back to normal.
1695 else
1696 case $ac_arg in
1697 *=* | --config-cache | -C | -disable-* | --disable-* \
1698 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1699 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1700 | -with-* | --with-* | -without-* | --without-* | --x)
1701 case "$ac_configure_args0 " in
1702 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1703 esac
1704 ;;
1705 -* ) ac_must_keep_next=true ;;
1706 esac
1707 fi
1708 ac_configure_args="$ac_configure_args '$ac_arg'"
1709 ;;
1710 esac
1711 done
1712done
1713$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1714$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1715
1716# When interrupted or exit'd, cleanup temporary files, and complete
1717# config.log. We remove comments because anyway the quotes in there
1718# would cause problems or look ugly.
1719# WARNING: Use '\'' to represent an apostrophe within the trap.
1720# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1721trap 'exit_status=$?
1722 # Save into config.log some information that might help in debugging.
1723 {
1724 echo
1725
1726 cat <<\_ASBOX
1727## ---------------- ##
1728## Cache variables. ##
1729## ---------------- ##
1730_ASBOX
1731 echo
1732 # The following way of writing the cache mishandles newlines in values,
1733(
1734 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1735 eval ac_val=\$$ac_var
1736 case $ac_val in #(
1737 *${as_nl}*)
1738 case $ac_var in #(
1739 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1740echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1741 esac
1742 case $ac_var in #(
1743 _ | IFS | as_nl) ;; #(
1744 *) $as_unset $ac_var ;;
1745 esac ;;
1746 esac
1747 done
1748 (set) 2>&1 |
1749 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1750 *${as_nl}ac_space=\ *)
1751 sed -n \
1752 "s/'\''/'\''\\\\'\'''\''/g;
1753 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1754 ;; #(
1755 *)
1756 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1757 ;;
1758 esac |
1759 sort
1760)
1761 echo
1762
1763 cat <<\_ASBOX
1764## ----------------- ##
1765## Output variables. ##
1766## ----------------- ##
1767_ASBOX
1768 echo
1769 for ac_var in $ac_subst_vars
1770 do
1771 eval ac_val=\$$ac_var
1772 case $ac_val in
1773 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1774 esac
1775 echo "$ac_var='\''$ac_val'\''"
1776 done | sort
1777 echo
1778
1779 if test -n "$ac_subst_files"; then
1780 cat <<\_ASBOX
1781## ------------------- ##
1782## File substitutions. ##
1783## ------------------- ##
1784_ASBOX
1785 echo
1786 for ac_var in $ac_subst_files
1787 do
1788 eval ac_val=\$$ac_var
1789 case $ac_val in
1790 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1791 esac
1792 echo "$ac_var='\''$ac_val'\''"
1793 done | sort
1794 echo
1795 fi
1796
1797 if test -s confdefs.h; then
1798 cat <<\_ASBOX
1799## ----------- ##
1800## confdefs.h. ##
1801## ----------- ##
1802_ASBOX
1803 echo
1804 cat confdefs.h
1805 echo
1806 fi
1807 test "$ac_signal" != 0 &&
1808 echo "$as_me: caught signal $ac_signal"
1809 echo "$as_me: exit $exit_status"
1810 } >&5
1811 rm -f core *.core core.conftest.* &&
1812 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1813 exit $exit_status
1814' 0
1815for ac_signal in 1 2 13 15; do
1816 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1817done
1818ac_signal=0
1819
1820# confdefs.h avoids OS command line length limits that DEFS can exceed.
1821rm -f -r conftest* confdefs.h
1822
1823# Predefined preprocessor variables.
1824
1825cat >>confdefs.h <<_ACEOF
1826#define PACKAGE_NAME "$PACKAGE_NAME"
1827_ACEOF
1828
1829
1830cat >>confdefs.h <<_ACEOF
1831#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1832_ACEOF
1833
1834
1835cat >>confdefs.h <<_ACEOF
1836#define PACKAGE_VERSION "$PACKAGE_VERSION"
1837_ACEOF
1838
1839
1840cat >>confdefs.h <<_ACEOF
1841#define PACKAGE_STRING "$PACKAGE_STRING"
1842_ACEOF
1843
1844
1845cat >>confdefs.h <<_ACEOF
1846#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1847_ACEOF
1848
1849
1850# Let the site file select an alternate cache file if it wants to.
1851# Prefer explicitly selected file to automatically selected ones.
1852if test -n "$CONFIG_SITE"; then
1853 set x "$CONFIG_SITE"
1854elif test "x$prefix" != xNONE; then
1855 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1856else
1857 set x "$ac_default_prefix/share/config.site" \
1858 "$ac_default_prefix/etc/config.site"
1859fi
1860shift
1861for ac_site_file
1862do
1863 if test -r "$ac_site_file"; then
1864 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1865echo "$as_me: loading site script $ac_site_file" >&6;}
1866 sed 's/^/| /' "$ac_site_file" >&5
1867 . "$ac_site_file"
1868 fi
1869done
1870
1871if test -r "$cache_file"; then
1872 # Some versions of bash will fail to source /dev/null (special
1873 # files actually), so we avoid doing that.
1874 if test -f "$cache_file"; then
1875 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1876echo "$as_me: loading cache $cache_file" >&6;}
1877 case $cache_file in
1878 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1879 *) . "./$cache_file";;
1880 esac
1881 fi
1882else
1883 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1884echo "$as_me: creating cache $cache_file" >&6;}
1885 >$cache_file
1886fi
1887
1888# Check that the precious variables saved in the cache have kept the same
1889# value.
1890ac_cache_corrupted=false
1891for ac_var in $ac_precious_vars; do
1892 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1893 eval ac_new_set=\$ac_env_${ac_var}_set
1894 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1895 eval ac_new_val=\$ac_env_${ac_var}_value
1896 case $ac_old_set,$ac_new_set in
1897 set,)
1898 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1899echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1900 ac_cache_corrupted=: ;;
1901 ,set)
1902 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1903echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1904 ac_cache_corrupted=: ;;
1905 ,);;
1906 *)
1907 if test "x$ac_old_val" != "x$ac_new_val"; then
1908 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1909echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1910 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1911echo "$as_me: former value: $ac_old_val" >&2;}
1912 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1913echo "$as_me: current value: $ac_new_val" >&2;}
1914 ac_cache_corrupted=:
1915 fi;;
1916 esac
1917 # Pass precious variables to config.status.
1918 if test "$ac_new_set" = set; then
1919 case $ac_new_val in
1920 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1921 *) ac_arg=$ac_var=$ac_new_val ;;
1922 esac
1923 case " $ac_configure_args " in
1924 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1925 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1926 esac
1927 fi
1928done
1929if $ac_cache_corrupted; then
1930 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1931echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1932 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1933echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1934 { (exit 1); exit 1; }; }
1935fi
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961ac_ext=c
1962ac_cpp='$CPP $CPPFLAGS'
1963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1965ac_compiler_gnu=$ac_cv_c_compiler_gnu
1966
1967
1968am__api_version='1.10'
1969
1970ac_aux_dir=
1971for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1972 if test -f "$ac_dir/install-sh"; then
1973 ac_aux_dir=$ac_dir
1974 ac_install_sh="$ac_aux_dir/install-sh -c"
1975 break
1976 elif test -f "$ac_dir/install.sh"; then
1977 ac_aux_dir=$ac_dir
1978 ac_install_sh="$ac_aux_dir/install.sh -c"
1979 break
1980 elif test -f "$ac_dir/shtool"; then
1981 ac_aux_dir=$ac_dir
1982 ac_install_sh="$ac_aux_dir/shtool install -c"
1983 break
1984 fi
1985done
1986if test -z "$ac_aux_dir"; then
1987 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1988echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1989 { (exit 1); exit 1; }; }
1990fi
1991
1992# These three variables are undocumented and unsupported,
1993# and are intended to be withdrawn in a future Autoconf release.
1994# They can cause serious problems if a builder's source tree is in a directory
1995# whose full name contains unusual characters.
1996ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1997ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1998ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1999
2000
2001# Find a good install program. We prefer a C program (faster),
2002# so one script is as good as another. But avoid the broken or
2003# incompatible versions:
2004# SysV /etc/install, /usr/sbin/install
2005# SunOS /usr/etc/install
2006# IRIX /sbin/install
2007# AIX /bin/install
2008# AmigaOS /C/install, which installs bootblocks on floppy discs
2009# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2010# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2011# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2012# OS/2's system install, which has a completely different semantic
2013# ./install, which can be erroneously created by make from ./install.sh.
2014{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2015echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2016if test -z "$INSTALL"; then
2017if test "${ac_cv_path_install+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2019else
2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021for as_dir in $PATH
2022do
2023 IFS=$as_save_IFS
2024 test -z "$as_dir" && as_dir=.
2025 # Account for people who put trailing slashes in PATH elements.
2026case $as_dir/ in
2027 ./ | .// | /cC/* | \
2028 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2029 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2030 /usr/ucb/* ) ;;
2031 *)
2032 # OSF1 and SCO ODT 3.0 have their own names for install.
2033 # Don't use installbsd from OSF since it installs stuff as root
2034 # by default.
2035 for ac_prog in ginstall scoinst install; do
2036 for ac_exec_ext in '' $ac_executable_extensions; do
2037 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2038 if test $ac_prog = install &&
2039 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2040 # AIX install. It has an incompatible calling convention.
2041 :
2042 elif test $ac_prog = install &&
2043 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2044 # program-specific install script used by HP pwplus--don't use.
2045 :
2046 else
2047 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2048 break 3
2049 fi
2050 fi
2051 done
2052 done
2053 ;;
2054esac
2055done
2056IFS=$as_save_IFS
2057
2058
2059fi
2060 if test "${ac_cv_path_install+set}" = set; then
2061 INSTALL=$ac_cv_path_install
2062 else
2063 # As a last resort, use the slow shell script. Don't cache a
2064 # value for INSTALL within a source directory, because that will
2065 # break other packages using the cache if that directory is
2066 # removed, or if the value is a relative name.
2067 INSTALL=$ac_install_sh
2068 fi
2069fi
2070{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2071echo "${ECHO_T}$INSTALL" >&6; }
2072
2073# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2074# It thinks the first close brace ends the variable substitution.
2075test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2076
2077test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2078
2079test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2080
2081{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2082echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2083# Just in case
2084sleep 1
2085echo timestamp > conftest.file
2086# Do `set' in a subshell so we don't clobber the current shell's
2087# arguments. Must try -L first in case configure is actually a
2088# symlink; some systems play weird games with the mod time of symlinks
2089# (eg FreeBSD returns the mod time of the symlink's containing
2090# directory).
2091if (
2092 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2093 if test "$*" = "X"; then
2094 # -L didn't work.
2095 set X `ls -t $srcdir/configure conftest.file`
2096 fi
2097 rm -f conftest.file
2098 if test "$*" != "X $srcdir/configure conftest.file" \
2099 && test "$*" != "X conftest.file $srcdir/configure"; then
2100
2101 # If neither matched, then we have a broken ls. This can happen
2102 # if, for instance, CONFIG_SHELL is bash and it inherits a
2103 # broken ls alias from the environment. This has actually
2104 # happened. Such a system could not be considered "sane".
2105 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2106alias in your environment" >&5
2107echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2108alias in your environment" >&2;}
2109 { (exit 1); exit 1; }; }
2110 fi
2111
2112 test "$2" = conftest.file
2113 )
2114then
2115 # Ok.
2116 :
2117else
2118 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2119Check your system clock" >&5
2120echo "$as_me: error: newly created file is older than distributed files!
2121Check your system clock" >&2;}
2122 { (exit 1); exit 1; }; }
2123fi
2124{ echo "$as_me:$LINENO: result: yes" >&5
2125echo "${ECHO_T}yes" >&6; }
2126test "$program_prefix" != NONE &&
2127 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2128# Use a double $ so make ignores it.
2129test "$program_suffix" != NONE &&
2130 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2131# Double any \ or $. echo might interpret backslashes.
2132# By default was `s,x,x', remove it if useless.
2133cat <<\_ACEOF >conftest.sed
2134s/[\\$]/&&/g;s/;s,x,x,$//
2135_ACEOF
2136program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2137rm -f conftest.sed
2138
2139# expand $ac_aux_dir to an absolute path
2140am_aux_dir=`cd $ac_aux_dir && pwd`
2141
2142test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2143# Use eval to expand $SHELL
2144if eval "$MISSING --run true"; then
2145 am_missing_run="$MISSING --run "
2146else
2147 am_missing_run=
2148 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2149echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2150fi
2151
2152{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2153echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2154if test -z "$MKDIR_P"; then
2155 if test "${ac_cv_path_mkdir+set}" = set; then
2156 echo $ECHO_N "(cached) $ECHO_C" >&6
2157else
2158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2159for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2160do
2161 IFS=$as_save_IFS
2162 test -z "$as_dir" && as_dir=.
2163 for ac_prog in mkdir gmkdir; do
2164 for ac_exec_ext in '' $ac_executable_extensions; do
2165 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2166 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2167 'mkdir (GNU coreutils) '* | \
2168 'mkdir (coreutils) '* | \
2169 'mkdir (fileutils) '4.1*)
2170 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2171 break 3;;
2172 esac
2173 done
2174 done
2175done
2176IFS=$as_save_IFS
2177
2178fi
2179
2180 if test "${ac_cv_path_mkdir+set}" = set; then
2181 MKDIR_P="$ac_cv_path_mkdir -p"
2182 else
2183 # As a last resort, use the slow shell script. Don't cache a
2184 # value for MKDIR_P within a source directory, because that will
2185 # break other packages using the cache if that directory is
2186 # removed, or if the value is a relative name.
2187 test -d ./--version && rmdir ./--version
2188 MKDIR_P="$ac_install_sh -d"
2189 fi
2190fi
2191{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2192echo "${ECHO_T}$MKDIR_P" >&6; }
2193
2194mkdir_p="$MKDIR_P"
2195case $mkdir_p in
2196 [\\/$]* | ?:[\\/]*) ;;
2197 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2198esac
2199
2200for ac_prog in gawk mawk nawk awk
2201do
2202 # Extract the first word of "$ac_prog", so it can be a program name with args.
2203set dummy $ac_prog; ac_word=$2
2204{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2206if test "${ac_cv_prog_AWK+set}" = set; then
2207 echo $ECHO_N "(cached) $ECHO_C" >&6
2208else
2209 if test -n "$AWK"; then
2210 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2211else
2212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2213for as_dir in $PATH
2214do
2215 IFS=$as_save_IFS
2216 test -z "$as_dir" && as_dir=.
2217 for ac_exec_ext in '' $ac_executable_extensions; do
2218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2219 ac_cv_prog_AWK="$ac_prog"
2220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2221 break 2
2222 fi
2223done
2224done
2225IFS=$as_save_IFS
2226
2227fi
2228fi
2229AWK=$ac_cv_prog_AWK
2230if test -n "$AWK"; then
2231 { echo "$as_me:$LINENO: result: $AWK" >&5
2232echo "${ECHO_T}$AWK" >&6; }
2233else
2234 { echo "$as_me:$LINENO: result: no" >&5
2235echo "${ECHO_T}no" >&6; }
2236fi
2237
2238
2239 test -n "$AWK" && break
2240done
2241
2242{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2243echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2244set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2245if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2246 echo $ECHO_N "(cached) $ECHO_C" >&6
2247else
2248 cat >conftest.make <<\_ACEOF
2249SHELL = /bin/sh
2250all:
2251 @echo '@@@%%%=$(MAKE)=@@@%%%'
2252_ACEOF
2253# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2254case `${MAKE-make} -f conftest.make 2>/dev/null` in
2255 *@@@%%%=?*=@@@%%%*)
2256 eval ac_cv_prog_make_${ac_make}_set=yes;;
2257 *)
2258 eval ac_cv_prog_make_${ac_make}_set=no;;
2259esac
2260rm -f conftest.make
2261fi
2262if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2263 { echo "$as_me:$LINENO: result: yes" >&5
2264echo "${ECHO_T}yes" >&6; }
2265 SET_MAKE=
2266else
2267 { echo "$as_me:$LINENO: result: no" >&5
2268echo "${ECHO_T}no" >&6; }
2269 SET_MAKE="MAKE=${MAKE-make}"
2270fi
2271
2272rm -rf .tst 2>/dev/null
2273mkdir .tst 2>/dev/null
2274if test -d .tst; then
2275 am__leading_dot=.
2276else
2277 am__leading_dot=_
2278fi
2279rmdir .tst 2>/dev/null
2280
2281if test "`cd $srcdir && pwd`" != "`pwd`"; then
2282 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2283 # is not polluted with repeated "-I."
2284 am__isrc=' -I$(srcdir)'
2285 # test to see if srcdir already configured
2286 if test -f $srcdir/config.status; then
2287 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2288echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2289 { (exit 1); exit 1; }; }
2290 fi
2291fi
2292
2293# test whether we have cygpath
2294if test -z "$CYGPATH_W"; then
2295 if (cygpath --version) >/dev/null 2>/dev/null; then
2296 CYGPATH_W='cygpath -w'
2297 else
2298 CYGPATH_W=echo
2299 fi
2300fi
2301
2302
2303# Define the identity of the package.
2304 PACKAGE=libratbox
2305 VERSION=devel
2306
2307
2308# Some tools Automake needs.
2309
2310ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2311
2312
2313AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2314
2315
2316AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2317
2318
2319AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2320
2321
2322MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2323
2324install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2325
2326# Installed binaries are usually stripped using `strip' when the user
2327# run `make install-strip'. However `strip' might not be the right
2328# tool to use in cross-compilation environments, therefore Automake
2329# will honor the `STRIP' environment variable to overrule this program.
2330if test "$cross_compiling" != no; then
2331 if test -n "$ac_tool_prefix"; then
2332 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2333set dummy ${ac_tool_prefix}strip; ac_word=$2
2334{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2336if test "${ac_cv_prog_STRIP+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2338else
2339 if test -n "$STRIP"; then
2340 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2341else
2342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343for as_dir in $PATH
2344do
2345 IFS=$as_save_IFS
2346 test -z "$as_dir" && as_dir=.
2347 for ac_exec_ext in '' $ac_executable_extensions; do
2348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2349 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351 break 2
2352 fi
2353done
2354done
2355IFS=$as_save_IFS
2356
2357fi
2358fi
2359STRIP=$ac_cv_prog_STRIP
2360if test -n "$STRIP"; then
2361 { echo "$as_me:$LINENO: result: $STRIP" >&5
2362echo "${ECHO_T}$STRIP" >&6; }
2363else
2364 { echo "$as_me:$LINENO: result: no" >&5
2365echo "${ECHO_T}no" >&6; }
2366fi
2367
2368
2369fi
2370if test -z "$ac_cv_prog_STRIP"; then
2371 ac_ct_STRIP=$STRIP
2372 # Extract the first word of "strip", so it can be a program name with args.
2373set dummy strip; ac_word=$2
2374{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2376if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2377 echo $ECHO_N "(cached) $ECHO_C" >&6
2378else
2379 if test -n "$ac_ct_STRIP"; then
2380 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2381else
2382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383for as_dir in $PATH
2384do
2385 IFS=$as_save_IFS
2386 test -z "$as_dir" && as_dir=.
2387 for ac_exec_ext in '' $ac_executable_extensions; do
2388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2389 ac_cv_prog_ac_ct_STRIP="strip"
2390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2391 break 2
2392 fi
2393done
2394done
2395IFS=$as_save_IFS
2396
2397fi
2398fi
2399ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2400if test -n "$ac_ct_STRIP"; then
2401 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2402echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2403else
2404 { echo "$as_me:$LINENO: result: no" >&5
2405echo "${ECHO_T}no" >&6; }
2406fi
2407
2408 if test "x$ac_ct_STRIP" = x; then
2409 STRIP=":"
2410 else
2411 case $cross_compiling:$ac_tool_warned in
2412yes:)
2413{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2414whose name does not start with the host triplet. If you think this
2415configuration is useful to you, please write to autoconf@gnu.org." >&5
2416echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2417whose name does not start with the host triplet. If you think this
2418configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2419ac_tool_warned=yes ;;
2420esac
2421 STRIP=$ac_ct_STRIP
2422 fi
2423else
2424 STRIP="$ac_cv_prog_STRIP"
2425fi
2426
2427fi
2428INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2429
2430# We need awk for the "check" target. The system "awk" is bad on
2431# some platforms.
2432# Always define AMTAR for backward compatibility.
2433
2434AMTAR=${AMTAR-"${am_missing_run}tar"}
2435
2436am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2437
2438
2439
2440
2441
2442
2443ac_config_headers="$ac_config_headers include/libratbox_config.h"
2444
2445
2446
2447
2448cat >>confdefs.h <<\_ACEOF
2449#define _GNU_SOURCE 1
2450_ACEOF
2451
2452
2453
2454DEPDIR="${am__leading_dot}deps"
2455
2456ac_config_commands="$ac_config_commands depfiles"
2457
2458
2459am_make=${MAKE-make}
2460cat > confinc << 'END'
2461am__doit:
2462 @echo done
2463.PHONY: am__doit
2464END
2465# If we don't find an include directive, just comment out the code.
2466{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2467echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2468am__include="#"
2469am__quote=
2470_am_result=none
2471# First try GNU make style include.
2472echo "include confinc" > confmf
2473# We grep out `Entering directory' and `Leaving directory'
2474# messages which can occur if `w' ends up in MAKEFLAGS.
2475# In particular we don't look at `^make:' because GNU make might
2476# be invoked under some other name (usually "gmake"), in which
2477# case it prints its new name instead of `make'.
2478if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2479 am__include=include
2480 am__quote=
2481 _am_result=GNU
2482fi
2483# Now try BSD make style include.
2484if test "$am__include" = "#"; then
2485 echo '.include "confinc"' > confmf
2486 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2487 am__include=.include
2488 am__quote="\""
2489 _am_result=BSD
2490 fi
2491fi
2492
2493
2494{ echo "$as_me:$LINENO: result: $_am_result" >&5
2495echo "${ECHO_T}$_am_result" >&6; }
2496rm -f confinc confmf
2497
2498# Check whether --enable-dependency-tracking was given.
2499if test "${enable_dependency_tracking+set}" = set; then
2500 enableval=$enable_dependency_tracking;
2501fi
2502
2503if test "x$enable_dependency_tracking" != xno; then
2504 am_depcomp="$ac_aux_dir/depcomp"
2505 AMDEPBACKSLASH='\'
2506fi
2507 if test "x$enable_dependency_tracking" != xno; then
2508 AMDEP_TRUE=
2509 AMDEP_FALSE='#'
2510else
2511 AMDEP_TRUE='#'
2512 AMDEP_FALSE=
2513fi
2514
2515
2516ac_ext=c
2517ac_cpp='$CPP $CPPFLAGS'
2518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2520ac_compiler_gnu=$ac_cv_c_compiler_gnu
2521if test -n "$ac_tool_prefix"; then
2522 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2523set dummy ${ac_tool_prefix}gcc; ac_word=$2
2524{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2526if test "${ac_cv_prog_CC+set}" = set; then
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
2528else
2529 if test -n "$CC"; then
2530 ac_cv_prog_CC="$CC" # Let the user override the test.
2531else
2532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533for as_dir in $PATH
2534do
2535 IFS=$as_save_IFS
2536 test -z "$as_dir" && as_dir=.
2537 for ac_exec_ext in '' $ac_executable_extensions; do
2538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2539 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2541 break 2
2542 fi
2543done
2544done
2545IFS=$as_save_IFS
2546
2547fi
2548fi
2549CC=$ac_cv_prog_CC
2550if test -n "$CC"; then
2551 { echo "$as_me:$LINENO: result: $CC" >&5
2552echo "${ECHO_T}$CC" >&6; }
2553else
2554 { echo "$as_me:$LINENO: result: no" >&5
2555echo "${ECHO_T}no" >&6; }
2556fi
2557
2558
2559fi
2560if test -z "$ac_cv_prog_CC"; then
2561 ac_ct_CC=$CC
2562 # Extract the first word of "gcc", so it can be a program name with args.
2563set dummy gcc; ac_word=$2
2564{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2566if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2567 echo $ECHO_N "(cached) $ECHO_C" >&6
2568else
2569 if test -n "$ac_ct_CC"; then
2570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2571else
2572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573for as_dir in $PATH
2574do
2575 IFS=$as_save_IFS
2576 test -z "$as_dir" && as_dir=.
2577 for ac_exec_ext in '' $ac_executable_extensions; do
2578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2579 ac_cv_prog_ac_ct_CC="gcc"
2580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2581 break 2
2582 fi
2583done
2584done
2585IFS=$as_save_IFS
2586
2587fi
2588fi
2589ac_ct_CC=$ac_cv_prog_ac_ct_CC
2590if test -n "$ac_ct_CC"; then
2591 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2592echo "${ECHO_T}$ac_ct_CC" >&6; }
2593else
2594 { echo "$as_me:$LINENO: result: no" >&5
2595echo "${ECHO_T}no" >&6; }
2596fi
2597
2598 if test "x$ac_ct_CC" = x; then
2599 CC=""
2600 else
2601 case $cross_compiling:$ac_tool_warned in
2602yes:)
2603{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2604whose name does not start with the host triplet. If you think this
2605configuration is useful to you, please write to autoconf@gnu.org." >&5
2606echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2607whose name does not start with the host triplet. If you think this
2608configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2609ac_tool_warned=yes ;;
2610esac
2611 CC=$ac_ct_CC
2612 fi
2613else
2614 CC="$ac_cv_prog_CC"
2615fi
2616
2617if test -z "$CC"; then
2618 if test -n "$ac_tool_prefix"; then
2619 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2620set dummy ${ac_tool_prefix}cc; ac_word=$2
2621{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2623if test "${ac_cv_prog_CC+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2625else
2626 if test -n "$CC"; then
2627 ac_cv_prog_CC="$CC" # Let the user override the test.
2628else
2629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630for as_dir in $PATH
2631do
2632 IFS=$as_save_IFS
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
2635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2636 ac_cv_prog_CC="${ac_tool_prefix}cc"
2637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638 break 2
2639 fi
2640done
2641done
2642IFS=$as_save_IFS
2643
2644fi
2645fi
2646CC=$ac_cv_prog_CC
2647if test -n "$CC"; then
2648 { echo "$as_me:$LINENO: result: $CC" >&5
2649echo "${ECHO_T}$CC" >&6; }
2650else
2651 { echo "$as_me:$LINENO: result: no" >&5
2652echo "${ECHO_T}no" >&6; }
2653fi
2654
2655
2656 fi
2657fi
2658if test -z "$CC"; then
2659 # Extract the first word of "cc", so it can be a program name with args.
2660set dummy cc; ac_word=$2
2661{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2663if test "${ac_cv_prog_CC+set}" = set; then
2664 echo $ECHO_N "(cached) $ECHO_C" >&6
2665else
2666 if test -n "$CC"; then
2667 ac_cv_prog_CC="$CC" # Let the user override the test.
2668else
2669 ac_prog_rejected=no
2670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671for as_dir in $PATH
2672do
2673 IFS=$as_save_IFS
2674 test -z "$as_dir" && as_dir=.
2675 for ac_exec_ext in '' $ac_executable_extensions; do
2676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2677 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2678 ac_prog_rejected=yes
2679 continue
2680 fi
2681 ac_cv_prog_CC="cc"
2682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2683 break 2
2684 fi
2685done
2686done
2687IFS=$as_save_IFS
2688
2689if test $ac_prog_rejected = yes; then
2690 # We found a bogon in the path, so make sure we never use it.
2691 set dummy $ac_cv_prog_CC
2692 shift
2693 if test $# != 0; then
2694 # We chose a different compiler from the bogus one.
2695 # However, it has the same basename, so the bogon will be chosen
2696 # first if we set CC to just the basename; use the full file name.
2697 shift
2698 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2699 fi
2700fi
2701fi
2702fi
2703CC=$ac_cv_prog_CC
2704if test -n "$CC"; then
2705 { echo "$as_me:$LINENO: result: $CC" >&5
2706echo "${ECHO_T}$CC" >&6; }
2707else
2708 { echo "$as_me:$LINENO: result: no" >&5
2709echo "${ECHO_T}no" >&6; }
2710fi
2711
2712
2713fi
2714if test -z "$CC"; then
2715 if test -n "$ac_tool_prefix"; then
2716 for ac_prog in cl.exe
2717 do
2718 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2719set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2720{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2721echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2722if test "${ac_cv_prog_CC+set}" = set; then
2723 echo $ECHO_N "(cached) $ECHO_C" >&6
2724else
2725 if test -n "$CC"; then
2726 ac_cv_prog_CC="$CC" # Let the user override the test.
2727else
2728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729for as_dir in $PATH
2730do
2731 IFS=$as_save_IFS
2732 test -z "$as_dir" && as_dir=.
2733 for ac_exec_ext in '' $ac_executable_extensions; do
2734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2735 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2737 break 2
2738 fi
2739done
2740done
2741IFS=$as_save_IFS
2742
2743fi
2744fi
2745CC=$ac_cv_prog_CC
2746if test -n "$CC"; then
2747 { echo "$as_me:$LINENO: result: $CC" >&5
2748echo "${ECHO_T}$CC" >&6; }
2749else
2750 { echo "$as_me:$LINENO: result: no" >&5
2751echo "${ECHO_T}no" >&6; }
2752fi
2753
2754
2755 test -n "$CC" && break
2756 done
2757fi
2758if test -z "$CC"; then
2759 ac_ct_CC=$CC
2760 for ac_prog in cl.exe
2761do
2762 # Extract the first word of "$ac_prog", so it can be a program name with args.
2763set dummy $ac_prog; ac_word=$2
2764{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2766if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2767 echo $ECHO_N "(cached) $ECHO_C" >&6
2768else
2769 if test -n "$ac_ct_CC"; then
2770 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2771else
2772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773for as_dir in $PATH
2774do
2775 IFS=$as_save_IFS
2776 test -z "$as_dir" && as_dir=.
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2779 ac_cv_prog_ac_ct_CC="$ac_prog"
2780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2781 break 2
2782 fi
2783done
2784done
2785IFS=$as_save_IFS
2786
2787fi
2788fi
2789ac_ct_CC=$ac_cv_prog_ac_ct_CC
2790if test -n "$ac_ct_CC"; then
2791 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2792echo "${ECHO_T}$ac_ct_CC" >&6; }
2793else
2794 { echo "$as_me:$LINENO: result: no" >&5
2795echo "${ECHO_T}no" >&6; }
2796fi
2797
2798
2799 test -n "$ac_ct_CC" && break
2800done
2801
2802 if test "x$ac_ct_CC" = x; then
2803 CC=""
2804 else
2805 case $cross_compiling:$ac_tool_warned in
2806yes:)
2807{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2808whose name does not start with the host triplet. If you think this
2809configuration is useful to you, please write to autoconf@gnu.org." >&5
2810echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2811whose name does not start with the host triplet. If you think this
2812configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2813ac_tool_warned=yes ;;
2814esac
2815 CC=$ac_ct_CC
2816 fi
2817fi
2818
2819fi
2820
2821
2822test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2823See \`config.log' for more details." >&5
2824echo "$as_me: error: no acceptable C compiler found in \$PATH
2825See \`config.log' for more details." >&2;}
2826 { (exit 1); exit 1; }; }
2827
2828# Provide some information about the compiler.
2829echo "$as_me:$LINENO: checking for C compiler version" >&5
2830ac_compiler=`set X $ac_compile; echo $2`
2831{ (ac_try="$ac_compiler --version >&5"
2832case "(($ac_try" in
2833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834 *) ac_try_echo=$ac_try;;
2835esac
2836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2837 (eval "$ac_compiler --version >&5") 2>&5
2838 ac_status=$?
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }
2841{ (ac_try="$ac_compiler -v >&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 -v >&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
2862cat >conftest.$ac_ext <<_ACEOF
2863/* confdefs.h. */
2864_ACEOF
2865cat confdefs.h >>conftest.$ac_ext
2866cat >>conftest.$ac_ext <<_ACEOF
2867/* end confdefs.h. */
2868
2869int
2870main ()
2871{
2872
2873 ;
2874 return 0;
2875}
2876_ACEOF
2877ac_clean_files_save=$ac_clean_files
2878ac_clean_files="$ac_clean_files a.out a.exe b.out"
2879# Try to create an executable without -o first, disregard a.out.
2880# It will help us diagnose broken compilers, and finding out an intuition
2881# of exeext.
2882{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2883echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2884ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2885#
2886# List of possible output files, starting from the most likely.
2887# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2888# only as a last resort. b.out is created by i960 compilers.
2889ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2890#
2891# The IRIX 6 linker writes into existing files which may not be
2892# executable, retaining their permissions. Remove them first so a
2893# subsequent execution test works.
2894ac_rmfiles=
2895for ac_file in $ac_files
2896do
2897 case $ac_file in
2898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2899 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2900 esac
2901done
2902rm -f $ac_rmfiles
2903
2904if { (ac_try="$ac_link_default"
2905case "(($ac_try" in
2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2908esac
2909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910 (eval "$ac_link_default") 2>&5
2911 ac_status=$?
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }; then
2914 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2915# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2916# in a Makefile. We should not override ac_cv_exeext if it was cached,
2917# so that the user can short-circuit this test for compilers unknown to
2918# Autoconf.
2919for ac_file in $ac_files ''
2920do
2921 test -f "$ac_file" || continue
2922 case $ac_file in
2923 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2924 ;;
2925 [ab].out )
2926 # We found the default executable, but exeext='' is most
2927 # certainly right.
2928 break;;
2929 *.* )
2930 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2931 then :; else
2932 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2933 fi
2934 # We set ac_cv_exeext here because the later test for it is not
2935 # safe: cross compilers may not add the suffix if given an `-o'
2936 # argument, so we may need to know it at that point already.
2937 # Even if this section looks crufty: it has the advantage of
2938 # actually working.
2939 break;;
2940 * )
2941 break;;
2942 esac
2943done
2944test "$ac_cv_exeext" = no && ac_cv_exeext=
2945
2946else
2947 ac_file=''
2948fi
2949
2950{ echo "$as_me:$LINENO: result: $ac_file" >&5
2951echo "${ECHO_T}$ac_file" >&6; }
2952if test -z "$ac_file"; then
2953 echo "$as_me: failed program was:" >&5
2954sed 's/^/| /' conftest.$ac_ext >&5
2955
2956{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2957See \`config.log' for more details." >&5
2958echo "$as_me: error: C compiler cannot create executables
2959See \`config.log' for more details." >&2;}
2960 { (exit 77); exit 77; }; }
2961fi
2962
2963ac_exeext=$ac_cv_exeext
2964
2965# Check that the compiler produces executables we can run. If not, either
2966# the compiler is broken, or we cross compile.
2967{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2968echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2969# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2970# If not cross compiling, check that we can run a simple program.
2971if test "$cross_compiling" != yes; then
2972 if { ac_try='./$ac_file'
2973 { (case "(($ac_try" in
2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975 *) ac_try_echo=$ac_try;;
2976esac
2977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2978 (eval "$ac_try") 2>&5
2979 ac_status=$?
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); }; }; then
2982 cross_compiling=no
2983 else
2984 if test "$cross_compiling" = maybe; then
2985 cross_compiling=yes
2986 else
2987 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2988If you meant to cross compile, use \`--host'.
2989See \`config.log' for more details." >&5
2990echo "$as_me: error: cannot run C compiled programs.
2991If you meant to cross compile, use \`--host'.
2992See \`config.log' for more details." >&2;}
2993 { (exit 1); exit 1; }; }
2994 fi
2995 fi
2996fi
2997{ echo "$as_me:$LINENO: result: yes" >&5
2998echo "${ECHO_T}yes" >&6; }
2999
3000rm -f a.out a.exe conftest$ac_cv_exeext b.out
3001ac_clean_files=$ac_clean_files_save
3002# Check that the compiler produces executables we can run. If not, either
3003# the compiler is broken, or we cross compile.
3004{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3005echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3006{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3007echo "${ECHO_T}$cross_compiling" >&6; }
3008
3009{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3010echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3011if { (ac_try="$ac_link"
3012case "(($ac_try" in
3013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014 *) ac_try_echo=$ac_try;;
3015esac
3016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3017 (eval "$ac_link") 2>&5
3018 ac_status=$?
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); }; then
3021 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3022# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3023# work properly (i.e., refer to `conftest.exe'), while it won't with
3024# `rm'.
3025for ac_file in conftest.exe conftest conftest.*; do
3026 test -f "$ac_file" || continue
3027 case $ac_file in
3028 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3029 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3030 break;;
3031 * ) break;;
3032 esac
3033done
3034else
3035 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3036See \`config.log' for more details." >&5
3037echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3038See \`config.log' for more details." >&2;}
3039 { (exit 1); exit 1; }; }
3040fi
3041
3042rm -f conftest$ac_cv_exeext
3043{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3044echo "${ECHO_T}$ac_cv_exeext" >&6; }
3045
3046rm -f conftest.$ac_ext
3047EXEEXT=$ac_cv_exeext
3048ac_exeext=$EXEEXT
3049{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3050echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3051if test "${ac_cv_objext+set}" = set; then
3052 echo $ECHO_N "(cached) $ECHO_C" >&6
3053else
3054 cat >conftest.$ac_ext <<_ACEOF
3055/* confdefs.h. */
3056_ACEOF
3057cat confdefs.h >>conftest.$ac_ext
3058cat >>conftest.$ac_ext <<_ACEOF
3059/* end confdefs.h. */
3060
3061int
3062main ()
3063{
3064
3065 ;
3066 return 0;
3067}
3068_ACEOF
3069rm -f conftest.o conftest.obj
3070if { (ac_try="$ac_compile"
3071case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074esac
3075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_compile") 2>&5
3077 ac_status=$?
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; then
3080 for ac_file in conftest.o conftest.obj conftest.*; do
3081 test -f "$ac_file" || continue;
3082 case $ac_file in
3083 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3084 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3085 break;;
3086 esac
3087done
3088else
3089 echo "$as_me: failed program was:" >&5
3090sed 's/^/| /' conftest.$ac_ext >&5
3091
3092{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3093See \`config.log' for more details." >&5
3094echo "$as_me: error: cannot compute suffix of object files: cannot compile
3095See \`config.log' for more details." >&2;}
3096 { (exit 1); exit 1; }; }
3097fi
3098
3099rm -f conftest.$ac_cv_objext conftest.$ac_ext
3100fi
3101{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3102echo "${ECHO_T}$ac_cv_objext" >&6; }
3103OBJEXT=$ac_cv_objext
3104ac_objext=$OBJEXT
3105{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3106echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3107if test "${ac_cv_c_compiler_gnu+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
3109else
3110 cat >conftest.$ac_ext <<_ACEOF
3111/* confdefs.h. */
3112_ACEOF
3113cat confdefs.h >>conftest.$ac_ext
3114cat >>conftest.$ac_ext <<_ACEOF
3115/* end confdefs.h. */
3116
3117int
3118main ()
3119{
3120#ifndef __GNUC__
3121 choke me
3122#endif
3123
3124 ;
3125 return 0;
3126}
3127_ACEOF
3128rm -f conftest.$ac_objext
3129if { (ac_try="$ac_compile"
3130case "(($ac_try" in
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3133esac
3134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_compile") 2>conftest.er1
3136 ac_status=$?
3137 grep -v '^ *+' conftest.er1 >conftest.err
3138 rm -f conftest.er1
3139 cat conftest.err >&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); } && {
3142 test -z "$ac_c_werror_flag" ||
3143 test ! -s conftest.err
3144 } && test -s conftest.$ac_objext; then
3145 ac_compiler_gnu=yes
3146else
3147 echo "$as_me: failed program was:" >&5
3148sed 's/^/| /' conftest.$ac_ext >&5
3149
3150 ac_compiler_gnu=no
3151fi
3152
3153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3154ac_cv_c_compiler_gnu=$ac_compiler_gnu
3155
3156fi
3157{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3158echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3159GCC=`test $ac_compiler_gnu = yes && echo yes`
3160ac_test_CFLAGS=${CFLAGS+set}
3161ac_save_CFLAGS=$CFLAGS
3162{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3163echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3164if test "${ac_cv_prog_cc_g+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
3166else
3167 ac_save_c_werror_flag=$ac_c_werror_flag
3168 ac_c_werror_flag=yes
3169 ac_cv_prog_cc_g=no
3170 CFLAGS="-g"
3171 cat >conftest.$ac_ext <<_ACEOF
3172/* confdefs.h. */
3173_ACEOF
3174cat confdefs.h >>conftest.$ac_ext
3175cat >>conftest.$ac_ext <<_ACEOF
3176/* end confdefs.h. */
3177
3178int
3179main ()
3180{
3181
3182 ;
3183 return 0;
3184}
3185_ACEOF
3186rm -f conftest.$ac_objext
3187if { (ac_try="$ac_compile"
3188case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3191esac
3192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193 (eval "$ac_compile") 2>conftest.er1
3194 ac_status=$?
3195 grep -v '^ *+' conftest.er1 >conftest.err
3196 rm -f conftest.er1
3197 cat conftest.err >&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); } && {
3200 test -z "$ac_c_werror_flag" ||
3201 test ! -s conftest.err
3202 } && test -s conftest.$ac_objext; then
3203 ac_cv_prog_cc_g=yes
3204else
3205 echo "$as_me: failed program was:" >&5
3206sed 's/^/| /' conftest.$ac_ext >&5
3207
3208 CFLAGS=""
3209 cat >conftest.$ac_ext <<_ACEOF
3210/* confdefs.h. */
3211_ACEOF
3212cat confdefs.h >>conftest.$ac_ext
3213cat >>conftest.$ac_ext <<_ACEOF
3214/* end confdefs.h. */
3215
3216int
3217main ()
3218{
3219
3220 ;
3221 return 0;
3222}
3223_ACEOF
3224rm -f conftest.$ac_objext
3225if { (ac_try="$ac_compile"
3226case "(($ac_try" in
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3229esac
3230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3231 (eval "$ac_compile") 2>conftest.er1
3232 ac_status=$?
3233 grep -v '^ *+' conftest.er1 >conftest.err
3234 rm -f conftest.er1
3235 cat conftest.err >&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); } && {
3238 test -z "$ac_c_werror_flag" ||
3239 test ! -s conftest.err
3240 } && test -s conftest.$ac_objext; then
3241 :
3242else
3243 echo "$as_me: failed program was:" >&5
3244sed 's/^/| /' conftest.$ac_ext >&5
3245
3246 ac_c_werror_flag=$ac_save_c_werror_flag
3247 CFLAGS="-g"
3248 cat >conftest.$ac_ext <<_ACEOF
3249/* confdefs.h. */
3250_ACEOF
3251cat confdefs.h >>conftest.$ac_ext
3252cat >>conftest.$ac_ext <<_ACEOF
3253/* end confdefs.h. */
3254
3255int
3256main ()
3257{
3258
3259 ;
3260 return 0;
3261}
3262_ACEOF
3263rm -f conftest.$ac_objext
3264if { (ac_try="$ac_compile"
3265case "(($ac_try" in
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3268esac
3269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3270 (eval "$ac_compile") 2>conftest.er1
3271 ac_status=$?
3272 grep -v '^ *+' conftest.er1 >conftest.err
3273 rm -f conftest.er1
3274 cat conftest.err >&5
3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); } && {
3277 test -z "$ac_c_werror_flag" ||
3278 test ! -s conftest.err
3279 } && test -s conftest.$ac_objext; then
3280 ac_cv_prog_cc_g=yes
3281else
3282 echo "$as_me: failed program was:" >&5
3283sed 's/^/| /' conftest.$ac_ext >&5
3284
3285
3286fi
3287
3288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3289fi
3290
3291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3292fi
3293
3294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3295 ac_c_werror_flag=$ac_save_c_werror_flag
3296fi
3297{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3298echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3299if test "$ac_test_CFLAGS" = set; then
3300 CFLAGS=$ac_save_CFLAGS
3301elif test $ac_cv_prog_cc_g = yes; then
3302 if test "$GCC" = yes; then
3303 CFLAGS="-g -O2"
3304 else
3305 CFLAGS="-g"
3306 fi
3307else
3308 if test "$GCC" = yes; then
3309 CFLAGS="-O2"
3310 else
3311 CFLAGS=
3312 fi
3313fi
3314{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3315echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3316if test "${ac_cv_prog_cc_c89+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3318else
3319 ac_cv_prog_cc_c89=no
3320ac_save_CC=$CC
3321cat >conftest.$ac_ext <<_ACEOF
3322/* confdefs.h. */
3323_ACEOF
3324cat confdefs.h >>conftest.$ac_ext
3325cat >>conftest.$ac_ext <<_ACEOF
3326/* end confdefs.h. */
3327#include <stdarg.h>
3328#include <stdio.h>
3329#include <sys/types.h>
3330#include <sys/stat.h>
3331/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3332struct buf { int x; };
3333FILE * (*rcsopen) (struct buf *, struct stat *, int);
3334static char *e (p, i)
3335 char **p;
3336 int i;
3337{
3338 return p[i];
3339}
3340static char *f (char * (*g) (char **, int), char **p, ...)
3341{
3342 char *s;
3343 va_list v;
3344 va_start (v,p);
3345 s = g (p, va_arg (v,int));
3346 va_end (v);
3347 return s;
3348}
3349
3350/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3351 function prototypes and stuff, but not '\xHH' hex character constants.
3352 These don't provoke an error unfortunately, instead are silently treated
3353 as 'x'. The following induces an error, until -std is added to get
3354 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3355 array size at least. It's necessary to write '\x00'==0 to get something
3356 that's true only with -std. */
3357int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3358
3359/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3360 inside strings and character constants. */
3361#define FOO(x) 'x'
3362int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3363
3364int test (int i, double x);
3365struct s1 {int (*f) (int a);};
3366struct s2 {int (*f) (double a);};
3367int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3368int argc;
3369char **argv;
3370int
3371main ()
3372{
3373return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3374 ;
3375 return 0;
3376}
3377_ACEOF
3378for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3379 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3380do
3381 CC="$ac_save_CC $ac_arg"
3382 rm -f conftest.$ac_objext
3383if { (ac_try="$ac_compile"
3384case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3387esac
3388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3389 (eval "$ac_compile") 2>conftest.er1
3390 ac_status=$?
3391 grep -v '^ *+' conftest.er1 >conftest.err
3392 rm -f conftest.er1
3393 cat conftest.err >&5
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); } && {
3396 test -z "$ac_c_werror_flag" ||
3397 test ! -s conftest.err
3398 } && test -s conftest.$ac_objext; then
3399 ac_cv_prog_cc_c89=$ac_arg
3400else
3401 echo "$as_me: failed program was:" >&5
3402sed 's/^/| /' conftest.$ac_ext >&5
3403
3404
3405fi
3406
3407rm -f core conftest.err conftest.$ac_objext
3408 test "x$ac_cv_prog_cc_c89" != "xno" && break
3409done
3410rm -f conftest.$ac_ext
3411CC=$ac_save_CC
3412
3413fi
3414# AC_CACHE_VAL
3415case "x$ac_cv_prog_cc_c89" in
3416 x)
3417 { echo "$as_me:$LINENO: result: none needed" >&5
3418echo "${ECHO_T}none needed" >&6; } ;;
3419 xno)
3420 { echo "$as_me:$LINENO: result: unsupported" >&5
3421echo "${ECHO_T}unsupported" >&6; } ;;
3422 *)
3423 CC="$CC $ac_cv_prog_cc_c89"
3424 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3425echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3426esac
3427
3428
3429ac_ext=c
3430ac_cpp='$CPP $CPPFLAGS'
3431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3433ac_compiler_gnu=$ac_cv_c_compiler_gnu
3434
3435depcc="$CC" am_compiler_list=
3436
3437{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3438echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3439if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3441else
3442 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3443 # We make a subdir and do the tests there. Otherwise we can end up
3444 # making bogus files that we don't know about and never remove. For
3445 # instance it was reported that on HP-UX the gcc test will end up
3446 # making a dummy file named `D' -- because `-MD' means `put the output
3447 # in D'.
3448 mkdir conftest.dir
3449 # Copy depcomp to subdir because otherwise we won't find it if we're
3450 # using a relative directory.
3451 cp "$am_depcomp" conftest.dir
3452 cd conftest.dir
3453 # We will build objects and dependencies in a subdirectory because
3454 # it helps to detect inapplicable dependency modes. For instance
3455 # both Tru64's cc and ICC support -MD to output dependencies as a
3456 # side effect of compilation, but ICC will put the dependencies in
3457 # the current directory while Tru64 will put them in the object
3458 # directory.
3459 mkdir sub
3460
3461 am_cv_CC_dependencies_compiler_type=none
3462 if test "$am_compiler_list" = ""; then
3463 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3464 fi
3465 for depmode in $am_compiler_list; do
3466 # Setup a source with many dependencies, because some compilers
3467 # like to wrap large dependency lists on column 80 (with \), and
3468 # we should not choose a depcomp mode which is confused by this.
3469 #
3470 # We need to recreate these files for each test, as the compiler may
3471 # overwrite some of them when testing with obscure command lines.
3472 # This happens at least with the AIX C compiler.
3473 : > sub/conftest.c
3474 for i in 1 2 3 4 5 6; do
3475 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3476 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3477 # Solaris 8's {/usr,}/bin/sh.
3478 touch sub/conftst$i.h
3479 done
3480 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3481
3482 case $depmode in
3483 nosideeffect)
3484 # after this tag, mechanisms are not by side-effect, so they'll
3485 # only be used when explicitly requested
3486 if test "x$enable_dependency_tracking" = xyes; then
3487 continue
3488 else
3489 break
3490 fi
3491 ;;
3492 none) break ;;
3493 esac
3494 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3495 # mode. It turns out that the SunPro C++ compiler does not properly
3496 # handle `-M -o', and we need to detect this.
3497 if depmode=$depmode \
3498 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3499 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3500 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3501 >/dev/null 2>conftest.err &&
3502 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3503 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3504 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3505 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3506 # icc doesn't choke on unknown options, it will just issue warnings
3507 # or remarks (even with -Werror). So we grep stderr for any message
3508 # that says an option was ignored or not supported.
3509 # When given -MP, icc 7.0 and 7.1 complain thusly:
3510 # icc: Command line warning: ignoring option '-M'; no argument required
3511 # The diagnosis changed in icc 8.0:
3512 # icc: Command line remark: option '-MP' not supported
3513 if (grep 'ignoring option' conftest.err ||
3514 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3515 am_cv_CC_dependencies_compiler_type=$depmode
3516 break
3517 fi
3518 fi
3519 done
3520
3521 cd ..
3522 rm -rf conftest.dir
3523else
3524 am_cv_CC_dependencies_compiler_type=none
3525fi
3526
3527fi
3528{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3529echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3530CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3531
3532 if
3533 test "x$enable_dependency_tracking" != xno \
3534 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3535 am__fastdepCC_TRUE=
3536 am__fastdepCC_FALSE='#'
3537else
3538 am__fastdepCC_TRUE='#'
3539 am__fastdepCC_FALSE=
3540fi
3541
3542
3543 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3544echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
3545if test "${ac_cv_prog_cc_c99+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
3547else
3548 ac_cv_prog_cc_c99=no
3549ac_save_CC=$CC
3550cat >conftest.$ac_ext <<_ACEOF
3551/* confdefs.h. */
3552_ACEOF
3553cat confdefs.h >>conftest.$ac_ext
3554cat >>conftest.$ac_ext <<_ACEOF
3555/* end confdefs.h. */
3556#include <stdarg.h>
3557#include <stdbool.h>
3558#include <stdlib.h>
3559#include <wchar.h>
3560#include <stdio.h>
3561
3562// Check varargs macros. These examples are taken from C99 6.10.3.5.
3563#define debug(...) fprintf (stderr, __VA_ARGS__)
3564#define showlist(...) puts (#__VA_ARGS__)
3565#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3566static void
3567test_varargs_macros (void)
3568{
3569 int x = 1234;
3570 int y = 5678;
3571 debug ("Flag");
3572 debug ("X = %d\n", x);
3573 showlist (The first, second, and third items.);
3574 report (x>y, "x is %d but y is %d", x, y);
3575}
3576
3577// Check long long types.
3578#define BIG64 18446744073709551615ull
3579#define BIG32 4294967295ul
3580#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3581#if !BIG_OK
3582 your preprocessor is broken;
3583#endif
3584#if BIG_OK
3585#else
3586 your preprocessor is broken;
3587#endif
3588static long long int bignum = -9223372036854775807LL;
3589static unsigned long long int ubignum = BIG64;
3590
3591struct incomplete_array
3592{
3593 int datasize;
3594 double data[];
3595};
3596
3597struct named_init {
3598 int number;
3599 const wchar_t *name;
3600 double average;
3601};
3602
3603typedef const char *ccp;
3604
3605static inline int
3606test_restrict (ccp restrict text)
3607{
3608 // See if C++-style comments work.
3609 // Iterate through items via the restricted pointer.
3610 // Also check for declarations in for loops.
3611 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3612 continue;
3613 return 0;
3614}
3615
3616// Check varargs and va_copy.
3617static void
3618test_varargs (const char *format, ...)
3619{
3620 va_list args;
3621 va_start (args, format);
3622 va_list args_copy;
3623 va_copy (args_copy, args);
3624
3625 const char *str;
3626 int number;
3627 float fnumber;
3628
3629 while (*format)
3630 {
3631 switch (*format++)
3632 {
3633 case 's': // string
3634 str = va_arg (args_copy, const char *);
3635 break;
3636 case 'd': // int
3637 number = va_arg (args_copy, int);
3638 break;
3639 case 'f': // float
3640 fnumber = va_arg (args_copy, double);
3641 break;
3642 default:
3643 break;
3644 }
3645 }
3646 va_end (args_copy);
3647 va_end (args);
3648}
3649
3650int
3651main ()
3652{
3653
3654 // Check bool.
3655 _Bool success = false;
3656
3657 // Check restrict.
3658 if (test_restrict ("String literal") == 0)
3659 success = true;
3660 char *restrict newvar = "Another string";
3661
3662 // Check varargs.
3663 test_varargs ("s, d' f .", "string", 65, 34.234);
3664 test_varargs_macros ();
3665
3666 // Check flexible array members.
3667 struct incomplete_array *ia =
3668 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3669 ia->datasize = 10;
3670 for (int i = 0; i < ia->datasize; ++i)
3671 ia->data[i] = i * 1.234;
3672
3673 // Check named initializers.
3674 struct named_init ni = {
3675 .number = 34,
3676 .name = L"Test wide string",
3677 .average = 543.34343,
3678 };
3679
3680 ni.number = 58;
3681
3682 int dynamic_array[ni.number];
3683 dynamic_array[ni.number - 1] = 543;
3684
3685 // work around unused variable warnings
3686 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3687 || dynamic_array[ni.number - 1] != 543);
3688
3689 ;
3690 return 0;
3691}
3692_ACEOF
3693for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3694do
3695 CC="$ac_save_CC $ac_arg"
3696 rm -f conftest.$ac_objext
3697if { (ac_try="$ac_compile"
3698case "(($ac_try" in
3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700 *) ac_try_echo=$ac_try;;
3701esac
3702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3703 (eval "$ac_compile") 2>conftest.er1
3704 ac_status=$?
3705 grep -v '^ *+' conftest.er1 >conftest.err
3706 rm -f conftest.er1
3707 cat conftest.err >&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } && {
3710 test -z "$ac_c_werror_flag" ||
3711 test ! -s conftest.err
3712 } && test -s conftest.$ac_objext; then
3713 ac_cv_prog_cc_c99=$ac_arg
3714else
3715 echo "$as_me: failed program was:" >&5
3716sed 's/^/| /' conftest.$ac_ext >&5
3717
3718
3719fi
3720
3721rm -f core conftest.err conftest.$ac_objext
3722 test "x$ac_cv_prog_cc_c99" != "xno" && break
3723done
3724rm -f conftest.$ac_ext
3725CC=$ac_save_CC
3726
3727fi
3728# AC_CACHE_VAL
3729case "x$ac_cv_prog_cc_c99" in
3730 x)
3731 { echo "$as_me:$LINENO: result: none needed" >&5
3732echo "${ECHO_T}none needed" >&6; } ;;
3733 xno)
3734 { echo "$as_me:$LINENO: result: unsupported" >&5
3735echo "${ECHO_T}unsupported" >&6; } ;;
3736 *)
3737 CC="$CC $ac_cv_prog_cc_c99"
3738 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3739echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3740esac
3741
3742
3743
3744
3745if test x"$ac_cv_prog_cc_c99" = "xno"; then
3746 { { echo "$as_me:$LINENO: error: ircd-ratbox requires a C99 capable compiler" >&5
3747echo "$as_me: error: ircd-ratbox requires a C99 capable compiler" >&2;}
3748 { (exit 1); exit 1; }; }
3749fi
3750
3751
3752# Find a good install program. We prefer a C program (faster),
3753# so one script is as good as another. But avoid the broken or
3754# incompatible versions:
3755# SysV /etc/install, /usr/sbin/install
3756# SunOS /usr/etc/install
3757# IRIX /sbin/install
3758# AIX /bin/install
3759# AmigaOS /C/install, which installs bootblocks on floppy discs
3760# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3761# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3762# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3763# OS/2's system install, which has a completely different semantic
3764# ./install, which can be erroneously created by make from ./install.sh.
3765{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3766echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3767if test -z "$INSTALL"; then
3768if test "${ac_cv_path_install+set}" = set; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
3770else
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772for as_dir in $PATH
3773do
3774 IFS=$as_save_IFS
3775 test -z "$as_dir" && as_dir=.
3776 # Account for people who put trailing slashes in PATH elements.
3777case $as_dir/ in
3778 ./ | .// | /cC/* | \
3779 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3780 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3781 /usr/ucb/* ) ;;
3782 *)
3783 # OSF1 and SCO ODT 3.0 have their own names for install.
3784 # Don't use installbsd from OSF since it installs stuff as root
3785 # by default.
3786 for ac_prog in ginstall scoinst install; do
3787 for ac_exec_ext in '' $ac_executable_extensions; do
3788 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3789 if test $ac_prog = install &&
3790 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3791 # AIX install. It has an incompatible calling convention.
3792 :
3793 elif test $ac_prog = install &&
3794 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3795 # program-specific install script used by HP pwplus--don't use.
3796 :
3797 else
3798 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3799 break 3
3800 fi
3801 fi
3802 done
3803 done
3804 ;;
3805esac
3806done
3807IFS=$as_save_IFS
3808
3809
3810fi
3811 if test "${ac_cv_path_install+set}" = set; then
3812 INSTALL=$ac_cv_path_install
3813 else
3814 # As a last resort, use the slow shell script. Don't cache a
3815 # value for INSTALL within a source directory, because that will
3816 # break other packages using the cache if that directory is
3817 # removed, or if the value is a relative name.
3818 INSTALL=$ac_install_sh
3819 fi
3820fi
3821{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3822echo "${ECHO_T}$INSTALL" >&6; }
3823
3824# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3825# It thinks the first close brace ends the variable substitution.
3826test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3827
3828test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3829
3830test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3831
3832{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3833echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3834if test "${ac_cv_path_GREP+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3836else
3837 # Extract the first word of "grep ggrep" to use in msg output
3838if test -z "$GREP"; then
3839set dummy grep ggrep; ac_prog_name=$2
3840if test "${ac_cv_path_GREP+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3842else
3843 ac_path_GREP_found=false
3844# Loop through the user's path and test for each of PROGNAME-LIST
3845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3847do
3848 IFS=$as_save_IFS
3849 test -z "$as_dir" && as_dir=.
3850 for ac_prog in grep ggrep; do
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3853 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3854 # Check for GNU ac_path_GREP and select it if it is found.
3855 # Check for GNU $ac_path_GREP
3856case `"$ac_path_GREP" --version 2>&1` in
3857*GNU*)
3858 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3859*)
3860 ac_count=0
3861 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3862 while :
3863 do
3864 cat "conftest.in" "conftest.in" >"conftest.tmp"
3865 mv "conftest.tmp" "conftest.in"
3866 cp "conftest.in" "conftest.nl"
3867 echo 'GREP' >> "conftest.nl"
3868 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3869 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3870 ac_count=`expr $ac_count + 1`
3871 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3872 # Best one so far, save it but keep looking for a better one
3873 ac_cv_path_GREP="$ac_path_GREP"
3874 ac_path_GREP_max=$ac_count
3875 fi
3876 # 10*(2^10) chars as input seems more than enough
3877 test $ac_count -gt 10 && break
3878 done
3879 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3880esac
3881
3882
3883 $ac_path_GREP_found && break 3
3884 done
3885done
3886
3887done
3888IFS=$as_save_IFS
3889
3890
3891fi
3892
3893GREP="$ac_cv_path_GREP"
3894if test -z "$GREP"; then
3895 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3896echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3897 { (exit 1); exit 1; }; }
3898fi
3899
3900else
3901 ac_cv_path_GREP=$GREP
3902fi
3903
3904
3905fi
3906{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3907echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3908 GREP="$ac_cv_path_GREP"
3909
3910
3911{ echo "$as_me:$LINENO: checking for egrep" >&5
3912echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3913if test "${ac_cv_path_EGREP+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3915else
3916 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3917 then ac_cv_path_EGREP="$GREP -E"
3918 else
3919 # Extract the first word of "egrep" to use in msg output
3920if test -z "$EGREP"; then
3921set dummy egrep; ac_prog_name=$2
3922if test "${ac_cv_path_EGREP+set}" = set; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3924else
3925 ac_path_EGREP_found=false
3926# Loop through the user's path and test for each of PROGNAME-LIST
3927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3929do
3930 IFS=$as_save_IFS
3931 test -z "$as_dir" && as_dir=.
3932 for ac_prog in egrep; do
3933 for ac_exec_ext in '' $ac_executable_extensions; do
3934 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3935 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3936 # Check for GNU ac_path_EGREP and select it if it is found.
3937 # Check for GNU $ac_path_EGREP
3938case `"$ac_path_EGREP" --version 2>&1` in
3939*GNU*)
3940 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3941*)
3942 ac_count=0
3943 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3944 while :
3945 do
3946 cat "conftest.in" "conftest.in" >"conftest.tmp"
3947 mv "conftest.tmp" "conftest.in"
3948 cp "conftest.in" "conftest.nl"
3949 echo 'EGREP' >> "conftest.nl"
3950 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3951 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3952 ac_count=`expr $ac_count + 1`
3953 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3954 # Best one so far, save it but keep looking for a better one
3955 ac_cv_path_EGREP="$ac_path_EGREP"
3956 ac_path_EGREP_max=$ac_count
3957 fi
3958 # 10*(2^10) chars as input seems more than enough
3959 test $ac_count -gt 10 && break
3960 done
3961 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3962esac
3963
3964
3965 $ac_path_EGREP_found && break 3
3966 done
3967done
3968
3969done
3970IFS=$as_save_IFS
3971
3972
3973fi
3974
3975EGREP="$ac_cv_path_EGREP"
3976if test -z "$EGREP"; then
3977 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3978echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3979 { (exit 1); exit 1; }; }
3980fi
3981
3982else
3983 ac_cv_path_EGREP=$EGREP
3984fi
3985
3986
3987 fi
3988fi
3989{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3990echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3991 EGREP="$ac_cv_path_EGREP"
3992
3993
3994{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3995echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3996if test "${ac_cv_path_SED+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3998else
3999 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4000 for ac_i in 1 2 3 4 5 6 7; do
4001 ac_script="$ac_script$as_nl$ac_script"
4002 done
4003 echo "$ac_script" | sed 99q >conftest.sed
4004 $as_unset ac_script || ac_script=
4005 # Extract the first word of "sed gsed" to use in msg output
4006if test -z "$SED"; then
4007set dummy sed gsed; ac_prog_name=$2
4008if test "${ac_cv_path_SED+set}" = set; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4010else
4011 ac_path_SED_found=false
4012# Loop through the user's path and test for each of PROGNAME-LIST
4013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014for as_dir in $PATH
4015do
4016 IFS=$as_save_IFS
4017 test -z "$as_dir" && as_dir=.
4018 for ac_prog in sed gsed; do
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4021 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4022 # Check for GNU ac_path_SED and select it if it is found.
4023 # Check for GNU $ac_path_SED
4024case `"$ac_path_SED" --version 2>&1` in
4025*GNU*)
4026 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4027*)
4028 ac_count=0
4029 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4030 while :
4031 do
4032 cat "conftest.in" "conftest.in" >"conftest.tmp"
4033 mv "conftest.tmp" "conftest.in"
4034 cp "conftest.in" "conftest.nl"
4035 echo '' >> "conftest.nl"
4036 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4037 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4038 ac_count=`expr $ac_count + 1`
4039 if test $ac_count -gt ${ac_path_SED_max-0}; then
4040 # Best one so far, save it but keep looking for a better one
4041 ac_cv_path_SED="$ac_path_SED"
4042 ac_path_SED_max=$ac_count
4043 fi
4044 # 10*(2^10) chars as input seems more than enough
4045 test $ac_count -gt 10 && break
4046 done
4047 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4048esac
4049
4050
4051 $ac_path_SED_found && break 3
4052 done
4053done
4054
4055done
4056IFS=$as_save_IFS
4057
4058
4059fi
4060
4061SED="$ac_cv_path_SED"
4062if test -z "$SED"; then
4063 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
4064echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
4065 { (exit 1); exit 1; }; }
4066fi
4067
4068else
4069 ac_cv_path_SED=$SED
4070fi
4071
4072fi
4073{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4074echo "${ECHO_T}$ac_cv_path_SED" >&6; }
4075 SED="$ac_cv_path_SED"
4076 rm -f conftest.sed
4077
4078
4079F77=no
4080CXX=no
4081GCJ=no
4082
4083# Check whether --enable-static was given.
4084if test "${enable_static+set}" = set; then
4085 enableval=$enable_static; p=${PACKAGE-default}
4086 case $enableval in
4087 yes) enable_static=yes ;;
4088 no) enable_static=no ;;
4089 *)
4090 enable_static=no
4091 # Look at the argument we got. We use all the common list separators.
4092 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4093 for pkg in $enableval; do
4094 IFS="$lt_save_ifs"
4095 if test "X$pkg" = "X$p"; then
4096 enable_static=yes
4097 fi
4098 done
4099 IFS="$lt_save_ifs"
4100 ;;
4101 esac
4102else
4103 enable_static=no
4104fi
4105
4106
4107
4108# Check whether --enable-shared was given.
4109if test "${enable_shared+set}" = set; then
4110 enableval=$enable_shared; p=${PACKAGE-default}
4111 case $enableval in
4112 yes) enable_shared=yes ;;
4113 no) enable_shared=no ;;
4114 *)
4115 enable_shared=no
4116 # Look at the argument we got. We use all the common list separators.
4117 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4118 for pkg in $enableval; do
4119 IFS="$lt_save_ifs"
4120 if test "X$pkg" = "X$p"; then
4121 enable_shared=yes
4122 fi
4123 done
4124 IFS="$lt_save_ifs"
4125 ;;
4126 esac
4127else
4128 enable_shared=yes
4129fi
4130
4131
4132{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4133echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
4134 # Check whether --enable-maintainer-mode was given.
4135if test "${enable_maintainer_mode+set}" = set; then
4136 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4137else
4138 USE_MAINTAINER_MODE=no
4139fi
4140
4141 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4142echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
4143 if test $USE_MAINTAINER_MODE = yes; then
4144 MAINTAINER_MODE_TRUE=
4145 MAINTAINER_MODE_FALSE='#'
4146else
4147 MAINTAINER_MODE_TRUE='#'
4148 MAINTAINER_MODE_FALSE=
4149fi
4150
4151 MAINT=$MAINTAINER_MODE_TRUE
4152
4153
4154
4155
4156{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
4157echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4158if test "${ac_cv_search_strerror+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4160else
4161 ac_func_search_save_LIBS=$LIBS
4162cat >conftest.$ac_ext <<_ACEOF
4163/* confdefs.h. */
4164_ACEOF
4165cat confdefs.h >>conftest.$ac_ext
4166cat >>conftest.$ac_ext <<_ACEOF
4167/* end confdefs.h. */
4168
4169/* Override any GCC internal prototype to avoid an error.
4170 Use char because int might match the return type of a GCC
4171 builtin and then its argument prototype would still apply. */
4172#ifdef __cplusplus
4173extern "C"
4174#endif
4175char strerror ();
4176int
4177main ()
4178{
4179return strerror ();
4180 ;
4181 return 0;
4182}
4183_ACEOF
4184for ac_lib in '' cposix; do
4185 if test -z "$ac_lib"; then
4186 ac_res="none required"
4187 else
4188 ac_res=-l$ac_lib
4189 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4190 fi
4191 rm -f conftest.$ac_objext conftest$ac_exeext
4192if { (ac_try="$ac_link"
4193case "(($ac_try" in
4194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4195 *) ac_try_echo=$ac_try;;
4196esac
4197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4198 (eval "$ac_link") 2>conftest.er1
4199 ac_status=$?
4200 grep -v '^ *+' conftest.er1 >conftest.err
4201 rm -f conftest.er1
4202 cat conftest.err >&5
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); } && {
4205 test -z "$ac_c_werror_flag" ||
4206 test ! -s conftest.err
4207 } && test -s conftest$ac_exeext &&
4208 $as_test_x conftest$ac_exeext; then
4209 ac_cv_search_strerror=$ac_res
4210else
4211 echo "$as_me: failed program was:" >&5
4212sed 's/^/| /' conftest.$ac_ext >&5
4213
4214
4215fi
4216
4217rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4218 conftest$ac_exeext
4219 if test "${ac_cv_search_strerror+set}" = set; then
4220 break
4221fi
4222done
4223if test "${ac_cv_search_strerror+set}" = set; then
4224 :
4225else
4226 ac_cv_search_strerror=no
4227fi
4228rm conftest.$ac_ext
4229LIBS=$ac_func_search_save_LIBS
4230fi
4231{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4232echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4233ac_res=$ac_cv_search_strerror
4234if test "$ac_res" != no; then
4235 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4236
4237fi
4238
4239{ echo "$as_me:$LINENO: checking for inline" >&5
4240echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4241if test "${ac_cv_c_inline+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4243else
4244 ac_cv_c_inline=no
4245for ac_kw in inline __inline__ __inline; do
4246 cat >conftest.$ac_ext <<_ACEOF
4247/* confdefs.h. */
4248_ACEOF
4249cat confdefs.h >>conftest.$ac_ext
4250cat >>conftest.$ac_ext <<_ACEOF
4251/* end confdefs.h. */
4252#ifndef __cplusplus
4253typedef int foo_t;
4254static $ac_kw foo_t static_foo () {return 0; }
4255$ac_kw foo_t foo () {return 0; }
4256#endif
4257
4258_ACEOF
4259rm -f conftest.$ac_objext
4260if { (ac_try="$ac_compile"
4261case "(($ac_try" in
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4264esac
4265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4266 (eval "$ac_compile") 2>conftest.er1
4267 ac_status=$?
4268 grep -v '^ *+' conftest.er1 >conftest.err
4269 rm -f conftest.er1
4270 cat conftest.err >&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); } && {
4273 test -z "$ac_c_werror_flag" ||
4274 test ! -s conftest.err
4275 } && test -s conftest.$ac_objext; then
4276 ac_cv_c_inline=$ac_kw
4277else
4278 echo "$as_me: failed program was:" >&5
4279sed 's/^/| /' conftest.$ac_ext >&5
4280
4281
4282fi
4283
4284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4285 test "$ac_cv_c_inline" != no && break
4286done
4287
4288fi
4289{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4290echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4291
4292
4293case $ac_cv_c_inline in
4294 inline | yes) ;;
4295 *)
4296 case $ac_cv_c_inline in
4297 no) ac_val=;;
4298 *) ac_val=$ac_cv_c_inline;;
4299 esac
4300 cat >>confdefs.h <<_ACEOF
4301#ifndef __cplusplus
4302#define inline $ac_val
4303#endif
4304_ACEOF
4305 ;;
4306esac
4307
4308{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4309echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4310if test "${ac_cv_c_const+set}" = set; then
4311 echo $ECHO_N "(cached) $ECHO_C" >&6
4312else
4313 cat >conftest.$ac_ext <<_ACEOF
4314/* confdefs.h. */
4315_ACEOF
4316cat confdefs.h >>conftest.$ac_ext
4317cat >>conftest.$ac_ext <<_ACEOF
4318/* end confdefs.h. */
4319
4320int
4321main ()
4322{
4323/* FIXME: Include the comments suggested by Paul. */
4324#ifndef __cplusplus
4325 /* Ultrix mips cc rejects this. */
4326 typedef int charset[2];
4327 const charset cs;
4328 /* SunOS 4.1.1 cc rejects this. */
4329 char const *const *pcpcc;
4330 char **ppc;
4331 /* NEC SVR4.0.2 mips cc rejects this. */
4332 struct point {int x, y;};
4333 static struct point const zero = {0,0};
4334 /* AIX XL C 1.02.0.0 rejects this.
4335 It does not let you subtract one const X* pointer from another in
4336 an arm of an if-expression whose if-part is not a constant
4337 expression */
4338 const char *g = "string";
4339 pcpcc = &g + (g ? g-g : 0);
4340 /* HPUX 7.0 cc rejects these. */
4341 ++pcpcc;
4342 ppc = (char**) pcpcc;
4343 pcpcc = (char const *const *) ppc;
4344 { /* SCO 3.2v4 cc rejects this. */
4345 char *t;
4346 char const *s = 0 ? (char *) 0 : (char const *) 0;
4347
4348 *t++ = 0;
4349 if (s) return 0;
4350 }
4351 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4352 int x[] = {25, 17};
4353 const int *foo = &x[0];
4354 ++foo;
4355 }
4356 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4357 typedef const int *iptr;
4358 iptr p = 0;
4359 ++p;
4360 }
4361 { /* AIX XL C 1.02.0.0 rejects this saying
4362 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4363 struct s { int j; const int *ap[3]; };
4364 struct s *b; b->j = 5;
4365 }
4366 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4367 const int foo = 10;
4368 if (!foo) return 0;
4369 }
4370 return !cs[0] && !zero.x;
4371#endif
4372
4373 ;
4374 return 0;
4375}
4376_ACEOF
4377rm -f conftest.$ac_objext
4378if { (ac_try="$ac_compile"
4379case "(($ac_try" in
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4382esac
4383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4384 (eval "$ac_compile") 2>conftest.er1
4385 ac_status=$?
4386 grep -v '^ *+' conftest.er1 >conftest.err
4387 rm -f conftest.er1
4388 cat conftest.err >&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); } && {
4391 test -z "$ac_c_werror_flag" ||
4392 test ! -s conftest.err
4393 } && test -s conftest.$ac_objext; then
4394 ac_cv_c_const=yes
4395else
4396 echo "$as_me: failed program was:" >&5
4397sed 's/^/| /' conftest.$ac_ext >&5
4398
4399 ac_cv_c_const=no
4400fi
4401
4402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4403fi
4404{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4405echo "${ECHO_T}$ac_cv_c_const" >&6; }
4406if test $ac_cv_c_const = no; then
4407
4408cat >>confdefs.h <<\_ACEOF
4409#define const
4410_ACEOF
4411
4412fi
4413
4414{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4415echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4416set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4417if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
4419else
4420 cat >conftest.make <<\_ACEOF
4421SHELL = /bin/sh
4422all:
4423 @echo '@@@%%%=$(MAKE)=@@@%%%'
4424_ACEOF
4425# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4426case `${MAKE-make} -f conftest.make 2>/dev/null` in
4427 *@@@%%%=?*=@@@%%%*)
4428 eval ac_cv_prog_make_${ac_make}_set=yes;;
4429 *)
4430 eval ac_cv_prog_make_${ac_make}_set=no;;
4431esac
4432rm -f conftest.make
4433fi
4434if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4435 { echo "$as_me:$LINENO: result: yes" >&5
4436echo "${ECHO_T}yes" >&6; }
4437 SET_MAKE=
4438else
4439 { echo "$as_me:$LINENO: result: no" >&5
4440echo "${ECHO_T}no" >&6; }
4441 SET_MAKE="MAKE=${MAKE-make}"
4442fi
4443
4444# Find a good install program. We prefer a C program (faster),
4445# so one script is as good as another. But avoid the broken or
4446# incompatible versions:
4447# SysV /etc/install, /usr/sbin/install
4448# SunOS /usr/etc/install
4449# IRIX /sbin/install
4450# AIX /bin/install
4451# AmigaOS /C/install, which installs bootblocks on floppy discs
4452# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4453# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4454# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4455# OS/2's system install, which has a completely different semantic
4456# ./install, which can be erroneously created by make from ./install.sh.
4457{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4458echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4459if test -z "$INSTALL"; then
4460if test "${ac_cv_path_install+set}" = set; then
4461 echo $ECHO_N "(cached) $ECHO_C" >&6
4462else
4463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464for as_dir in $PATH
4465do
4466 IFS=$as_save_IFS
4467 test -z "$as_dir" && as_dir=.
4468 # Account for people who put trailing slashes in PATH elements.
4469case $as_dir/ in
4470 ./ | .// | /cC/* | \
4471 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4472 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4473 /usr/ucb/* ) ;;
4474 *)
4475 # OSF1 and SCO ODT 3.0 have their own names for install.
4476 # Don't use installbsd from OSF since it installs stuff as root
4477 # by default.
4478 for ac_prog in ginstall scoinst install; do
4479 for ac_exec_ext in '' $ac_executable_extensions; do
4480 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4481 if test $ac_prog = install &&
4482 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4483 # AIX install. It has an incompatible calling convention.
4484 :
4485 elif test $ac_prog = install &&
4486 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4487 # program-specific install script used by HP pwplus--don't use.
4488 :
4489 else
4490 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4491 break 3
4492 fi
4493 fi
4494 done
4495 done
4496 ;;
4497esac
4498done
4499IFS=$as_save_IFS
4500
4501
4502fi
4503 if test "${ac_cv_path_install+set}" = set; then
4504 INSTALL=$ac_cv_path_install
4505 else
4506 # As a last resort, use the slow shell script. Don't cache a
4507 # value for INSTALL within a source directory, because that will
4508 # break other packages using the cache if that directory is
4509 # removed, or if the value is a relative name.
4510 INSTALL=$ac_install_sh
4511 fi
4512fi
4513{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4514echo "${ECHO_T}$INSTALL" >&6; }
4515
4516# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4517# It thinks the first close brace ends the variable substitution.
4518test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4519
4520test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4521
4522test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4523
4524# Extract the first word of "automake", so it can be a program name with args.
4525set dummy automake; ac_word=$2
4526{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4528if test "${ac_cv_path_AUTOMAKE+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4530else
4531 case $AUTOMAKE in
4532 [\\/]* | ?:[\\/]*)
4533 ac_cv_path_AUTOMAKE="$AUTOMAKE" # Let the user override the test with a path.
4534 ;;
4535 *)
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537for as_dir in $PATH
4538do
4539 IFS=$as_save_IFS
4540 test -z "$as_dir" && as_dir=.
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4543 ac_cv_path_AUTOMAKE="$as_dir/$ac_word$ac_exec_ext"
4544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4545 break 2
4546 fi
4547done
4548done
4549IFS=$as_save_IFS
4550
4551 ;;
4552esac
4553fi
4554AUTOMAKE=$ac_cv_path_AUTOMAKE
4555if test -n "$AUTOMAKE"; then
4556 { echo "$as_me:$LINENO: result: $AUTOMAKE" >&5
4557echo "${ECHO_T}$AUTOMAKE" >&6; }
4558else
4559 { echo "$as_me:$LINENO: result: no" >&5
4560echo "${ECHO_T}no" >&6; }
4561fi
4562
4563
4564# Extract the first word of "aclocal", so it can be a program name with args.
4565set dummy aclocal; ac_word=$2
4566{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4568if test "${ac_cv_path_ACLOCAL+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4570else
4571 case $ACLOCAL in
4572 [\\/]* | ?:[\\/]*)
4573 ac_cv_path_ACLOCAL="$ACLOCAL" # Let the user override the test with a path.
4574 ;;
4575 *)
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577for as_dir in $PATH
4578do
4579 IFS=$as_save_IFS
4580 test -z "$as_dir" && as_dir=.
4581 for ac_exec_ext in '' $ac_executable_extensions; do
4582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4583 ac_cv_path_ACLOCAL="$as_dir/$ac_word$ac_exec_ext"
4584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4585 break 2
4586 fi
4587done
4588done
4589IFS=$as_save_IFS
4590
4591 ;;
4592esac
4593fi
4594ACLOCAL=$ac_cv_path_ACLOCAL
4595if test -n "$ACLOCAL"; then
4596 { echo "$as_me:$LINENO: result: $ACLOCAL" >&5
4597echo "${ECHO_T}$ACLOCAL" >&6; }
4598else
4599 { echo "$as_me:$LINENO: result: no" >&5
4600echo "${ECHO_T}no" >&6; }
4601fi
4602
4603
4604# Extract the first word of "autoheader", so it can be a program name with args.
4605set dummy autoheader; ac_word=$2
4606{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4608if test "${ac_cv_path_AUTOHEADER+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4610else
4611 case $AUTOHEADER in
4612 [\\/]* | ?:[\\/]*)
4613 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
4614 ;;
4615 *)
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617for as_dir in $PATH
4618do
4619 IFS=$as_save_IFS
4620 test -z "$as_dir" && as_dir=.
4621 for ac_exec_ext in '' $ac_executable_extensions; do
4622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4623 ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext"
4624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4625 break 2
4626 fi
4627done
4628done
4629IFS=$as_save_IFS
4630
4631 ;;
4632esac
4633fi
4634AUTOHEADER=$ac_cv_path_AUTOHEADER
4635if test -n "$AUTOHEADER"; then
4636 { echo "$as_me:$LINENO: result: $AUTOHEADER" >&5
4637echo "${ECHO_T}$AUTOHEADER" >&6; }
4638else
4639 { echo "$as_me:$LINENO: result: no" >&5
4640echo "${ECHO_T}no" >&6; }
4641fi
4642
4643
4644# Extract the first word of "as", so it can be a program name with args.
4645set dummy as; ac_word=$2
4646{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4648if test "${ac_cv_path_AS+set}" = set; then
4649 echo $ECHO_N "(cached) $ECHO_C" >&6
4650else
4651 case $AS in
4652 [\\/]* | ?:[\\/]*)
4653 ac_cv_path_AS="$AS" # Let the user override the test with a path.
4654 ;;
4655 *)
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657for as_dir in $PATH
4658do
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4663 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
4664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 break 2
4666 fi
4667done
4668done
4669IFS=$as_save_IFS
4670
4671 ;;
4672esac
4673fi
4674AS=$ac_cv_path_AS
4675if test -n "$AS"; then
4676 { echo "$as_me:$LINENO: result: $AS" >&5
4677echo "${ECHO_T}$AS" >&6; }
4678else
4679 { echo "$as_me:$LINENO: result: no" >&5
4680echo "${ECHO_T}no" >&6; }
4681fi
4682
4683
4684# Extract the first word of "rm", so it can be a program name with args.
4685set dummy rm; ac_word=$2
4686{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4688if test "${ac_cv_path_RM+set}" = set; then
4689 echo $ECHO_N "(cached) $ECHO_C" >&6
4690else
4691 case $RM in
4692 [\\/]* | ?:[\\/]*)
4693 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4694 ;;
4695 *)
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697for as_dir in $PATH
4698do
4699 IFS=$as_save_IFS
4700 test -z "$as_dir" && as_dir=.
4701 for ac_exec_ext in '' $ac_executable_extensions; do
4702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4703 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4705 break 2
4706 fi
4707done
4708done
4709IFS=$as_save_IFS
4710
4711 ;;
4712esac
4713fi
4714RM=$ac_cv_path_RM
4715if test -n "$RM"; then
4716 { echo "$as_me:$LINENO: result: $RM" >&5
4717echo "${ECHO_T}$RM" >&6; }
4718else
4719 { echo "$as_me:$LINENO: result: no" >&5
4720echo "${ECHO_T}no" >&6; }
4721fi
4722
4723
4724# Extract the first word of "cp", so it can be a program name with args.
4725set dummy cp; ac_word=$2
4726{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4728if test "${ac_cv_path_CP+set}" = set; then
4729 echo $ECHO_N "(cached) $ECHO_C" >&6
4730else
4731 case $CP in
4732 [\\/]* | ?:[\\/]*)
4733 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4734 ;;
4735 *)
4736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737for as_dir in $PATH
4738do
4739 IFS=$as_save_IFS
4740 test -z "$as_dir" && as_dir=.
4741 for ac_exec_ext in '' $ac_executable_extensions; do
4742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4743 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4745 break 2
4746 fi
4747done
4748done
4749IFS=$as_save_IFS
4750
4751 ;;
4752esac
4753fi
4754CP=$ac_cv_path_CP
4755if test -n "$CP"; then
4756 { echo "$as_me:$LINENO: result: $CP" >&5
4757echo "${ECHO_T}$CP" >&6; }
4758else
4759 { echo "$as_me:$LINENO: result: no" >&5
4760echo "${ECHO_T}no" >&6; }
4761fi
4762
4763
4764# Extract the first word of "mv", so it can be a program name with args.
4765set dummy mv; ac_word=$2
4766{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4768if test "${ac_cv_path_MV+set}" = set; then
4769 echo $ECHO_N "(cached) $ECHO_C" >&6
4770else
4771 case $MV in
4772 [\\/]* | ?:[\\/]*)
4773 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4774 ;;
4775 *)
4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777for as_dir in $PATH
4778do
4779 IFS=$as_save_IFS
4780 test -z "$as_dir" && as_dir=.
4781 for ac_exec_ext in '' $ac_executable_extensions; do
4782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4783 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4785 break 2
4786 fi
4787done
4788done
4789IFS=$as_save_IFS
4790
4791 ;;
4792esac
4793fi
4794MV=$ac_cv_path_MV
4795if test -n "$MV"; then
4796 { echo "$as_me:$LINENO: result: $MV" >&5
4797echo "${ECHO_T}$MV" >&6; }
4798else
4799 { echo "$as_me:$LINENO: result: no" >&5
4800echo "${ECHO_T}no" >&6; }
4801fi
4802
4803
4804# Extract the first word of "ln", so it can be a program name with args.
4805set dummy ln; ac_word=$2
4806{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4808if test "${ac_cv_path_LN+set}" = set; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4810else
4811 case $LN in
4812 [\\/]* | ?:[\\/]*)
4813 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4814 ;;
4815 *)
4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817for as_dir in $PATH
4818do
4819 IFS=$as_save_IFS
4820 test -z "$as_dir" && as_dir=.
4821 for ac_exec_ext in '' $ac_executable_extensions; do
4822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4823 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4825 break 2
4826 fi
4827done
4828done
4829IFS=$as_save_IFS
4830
4831 ;;
4832esac
4833fi
4834LN=$ac_cv_path_LN
4835if test -n "$LN"; then
4836 { echo "$as_me:$LINENO: result: $LN" >&5
4837echo "${ECHO_T}$LN" >&6; }
4838else
4839 { echo "$as_me:$LINENO: result: no" >&5
4840echo "${ECHO_T}no" >&6; }
4841fi
4842
4843
4844# Extract the first word of "ar", so it can be a program name with args.
4845set dummy ar; ac_word=$2
4846{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4848if test "${ac_cv_path_AR+set}" = set; then
4849 echo $ECHO_N "(cached) $ECHO_C" >&6
4850else
4851 case $AR in
4852 [\\/]* | ?:[\\/]*)
4853 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4854 ;;
4855 *)
4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857for as_dir in $PATH
4858do
4859 IFS=$as_save_IFS
4860 test -z "$as_dir" && as_dir=.
4861 for ac_exec_ext in '' $ac_executable_extensions; do
4862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4863 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4865 break 2
4866 fi
4867done
4868done
4869IFS=$as_save_IFS
4870
4871 ;;
4872esac
4873fi
4874AR=$ac_cv_path_AR
4875if test -n "$AR"; then
4876 { echo "$as_me:$LINENO: result: $AR" >&5
4877echo "${ECHO_T}$AR" >&6; }
4878else
4879 { echo "$as_me:$LINENO: result: no" >&5
4880echo "${ECHO_T}no" >&6; }
4881fi
4882
4883
4884# Extract the first word of "ld", so it can be a program name with args.
4885set dummy ld; ac_word=$2
4886{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4888if test "${ac_cv_path_LD+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4890else
4891 case $LD in
4892 [\\/]* | ?:[\\/]*)
4893 ac_cv_path_LD="$LD" # Let the user override the test with a path.
4894 ;;
4895 *)
4896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897for as_dir in $PATH
4898do
4899 IFS=$as_save_IFS
4900 test -z "$as_dir" && as_dir=.
4901 for ac_exec_ext in '' $ac_executable_extensions; do
4902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4903 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
4904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4905 break 2
4906 fi
4907done
4908done
4909IFS=$as_save_IFS
4910
4911 ;;
4912esac
4913fi
4914LD=$ac_cv_path_LD
4915if test -n "$LD"; then
4916 { echo "$as_me:$LINENO: result: $LD" >&5
4917echo "${ECHO_T}$LD" >&6; }
4918else
4919 { echo "$as_me:$LINENO: result: no" >&5
4920echo "${ECHO_T}no" >&6; }
4921fi
4922
4923
4924# Extract the first word of "ranlib", so it can be a program name with args.
4925set dummy ranlib; ac_word=$2
4926{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4928if test "${ac_cv_path_RANLIB+set}" = set; then
4929 echo $ECHO_N "(cached) $ECHO_C" >&6
4930else
4931 case $RANLIB in
4932 [\\/]* | ?:[\\/]*)
4933 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
4934 ;;
4935 *)
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937for as_dir in $PATH
4938do
4939 IFS=$as_save_IFS
4940 test -z "$as_dir" && as_dir=.
4941 for ac_exec_ext in '' $ac_executable_extensions; do
4942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4943 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
4944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4945 break 2
4946 fi
4947done
4948done
4949IFS=$as_save_IFS
4950
4951 ;;
4952esac
4953fi
4954RANLIB=$ac_cv_path_RANLIB
4955if test -n "$RANLIB"; then
4956 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4957echo "${ECHO_T}$RANLIB" >&6; }
4958else
4959 { echo "$as_me:$LINENO: result: no" >&5
4960echo "${ECHO_T}no" >&6; }
4961fi
4962
4963
4964# Extract the first word of "touch", so it can be a program name with args.
4965set dummy touch; ac_word=$2
4966{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4968if test "${ac_cv_path_TOUCH+set}" = set; then
4969 echo $ECHO_N "(cached) $ECHO_C" >&6
4970else
4971 case $TOUCH in
4972 [\\/]* | ?:[\\/]*)
4973 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
4974 ;;
4975 *)
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977for as_dir in $PATH
4978do
4979 IFS=$as_save_IFS
4980 test -z "$as_dir" && as_dir=.
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4983 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
4984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4985 break 2
4986 fi
4987done
4988done
4989IFS=$as_save_IFS
4990
4991 ;;
4992esac
4993fi
4994TOUCH=$ac_cv_path_TOUCH
4995if test -n "$TOUCH"; then
4996 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4997echo "${ECHO_T}$TOUCH" >&6; }
4998else
4999 { echo "$as_me:$LINENO: result: no" >&5
5000echo "${ECHO_T}no" >&6; }
5001fi
5002
5003
5004ac_ext=c
5005ac_cpp='$CPP $CPPFLAGS'
5006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5008ac_compiler_gnu=$ac_cv_c_compiler_gnu
5009
5010
5011# Check whether --enable-fast-install was given.
5012if test "${enable_fast_install+set}" = set; then
5013 enableval=$enable_fast_install; p=${PACKAGE-default}
5014 case $enableval in
5015 yes) enable_fast_install=yes ;;
5016 no) enable_fast_install=no ;;
5017 *)
5018 enable_fast_install=no
5019 # Look at the argument we got. We use all the common list separators.
5020 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5021 for pkg in $enableval; do
5022 IFS="$lt_save_ifs"
5023 if test "X$pkg" = "X$p"; then
5024 enable_fast_install=yes
5025 fi
5026 done
5027 IFS="$lt_save_ifs"
5028 ;;
5029 esac
5030else
5031 enable_fast_install=yes
5032fi
5033
5034
5035# Make sure we can run config.sub.
5036$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5037 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5038echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5039 { (exit 1); exit 1; }; }
5040
5041{ echo "$as_me:$LINENO: checking build system type" >&5
5042echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5043if test "${ac_cv_build+set}" = set; then
5044 echo $ECHO_N "(cached) $ECHO_C" >&6
5045else
5046 ac_build_alias=$build_alias
5047test "x$ac_build_alias" = x &&
5048 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5049test "x$ac_build_alias" = x &&
5050 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5051echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5052 { (exit 1); exit 1; }; }
5053ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5054 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5055echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5056 { (exit 1); exit 1; }; }
5057
5058fi
5059{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5060echo "${ECHO_T}$ac_cv_build" >&6; }
5061case $ac_cv_build in
5062*-*-*) ;;
5063*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5064echo "$as_me: error: invalid value of canonical build" >&2;}
5065 { (exit 1); exit 1; }; };;
5066esac
5067build=$ac_cv_build
5068ac_save_IFS=$IFS; IFS='-'
5069set x $ac_cv_build
5070shift
5071build_cpu=$1
5072build_vendor=$2
5073shift; shift
5074# Remember, the first character of IFS is used to create $*,
5075# except with old shells:
5076build_os=$*
5077IFS=$ac_save_IFS
5078case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5079
5080
5081{ echo "$as_me:$LINENO: checking host system type" >&5
5082echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5083if test "${ac_cv_host+set}" = set; then
5084 echo $ECHO_N "(cached) $ECHO_C" >&6
5085else
5086 if test "x$host_alias" = x; then
5087 ac_cv_host=$ac_cv_build
5088else
5089 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5090 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5091echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5092 { (exit 1); exit 1; }; }
5093fi
5094
5095fi
5096{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5097echo "${ECHO_T}$ac_cv_host" >&6; }
5098case $ac_cv_host in
5099*-*-*) ;;
5100*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5101echo "$as_me: error: invalid value of canonical host" >&2;}
5102 { (exit 1); exit 1; }; };;
5103esac
5104host=$ac_cv_host
5105ac_save_IFS=$IFS; IFS='-'
5106set x $ac_cv_host
5107shift
5108host_cpu=$1
5109host_vendor=$2
5110shift; shift
5111# Remember, the first character of IFS is used to create $*,
5112# except with old shells:
5113host_os=$*
5114IFS=$ac_save_IFS
5115case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5116
5117
5118{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5119echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5120if test "${lt_cv_path_SED+set}" = set; then
5121 echo $ECHO_N "(cached) $ECHO_C" >&6
5122else
5123 # Loop through the user's path and test for sed and gsed.
5124# Then use that list of sed's as ones to test for truncation.
5125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126for as_dir in $PATH
5127do
5128 IFS=$as_save_IFS
5129 test -z "$as_dir" && as_dir=.
5130 for lt_ac_prog in sed gsed; do
5131 for ac_exec_ext in '' $ac_executable_extensions; do
5132 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5133 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5134 fi
5135 done
5136 done
5137done
5138IFS=$as_save_IFS
5139lt_ac_max=0
5140lt_ac_count=0
5141# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5142# along with /bin/sed that truncates output.
5143for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5144 test ! -f $lt_ac_sed && continue
5145 cat /dev/null > conftest.in
5146 lt_ac_count=0
5147 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5148 # Check for GNU sed and select it if it is found.
5149 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5150 lt_cv_path_SED=$lt_ac_sed
5151 break
5152 fi
5153 while true; do
5154 cat conftest.in conftest.in >conftest.tmp
5155 mv conftest.tmp conftest.in
5156 cp conftest.in conftest.nl
5157 echo >>conftest.nl
5158 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5159 cmp -s conftest.out conftest.nl || break
5160 # 10000 chars as input seems more than enough
5161 test $lt_ac_count -gt 10 && break
5162 lt_ac_count=`expr $lt_ac_count + 1`
5163 if test $lt_ac_count -gt $lt_ac_max; then
5164 lt_ac_max=$lt_ac_count
5165 lt_cv_path_SED=$lt_ac_sed
5166 fi
5167 done
5168done
5169
5170fi
5171
5172SED=$lt_cv_path_SED
5173
5174{ echo "$as_me:$LINENO: result: $SED" >&5
5175echo "${ECHO_T}$SED" >&6; }
5176
5177
5178# Check whether --with-gnu-ld was given.
5179if test "${with_gnu_ld+set}" = set; then
5180 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5181else
5182 with_gnu_ld=no
5183fi
5184
5185ac_prog=ld
5186if test "$GCC" = yes; then
5187 # Check if gcc -print-prog-name=ld gives a path.
5188 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5189echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5190 case $host in
5191 *-*-mingw*)
5192 # gcc leaves a trailing carriage return which upsets mingw
5193 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5194 *)
5195 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5196 esac
5197 case $ac_prog in
5198 # Accept absolute paths.
5199 [\\/]* | ?:[\\/]*)
5200 re_direlt='/[^/][^/]*/\.\./'
5201 # Canonicalize the pathname of ld
5202 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5203 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5204 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5205 done
5206 test -z "$LD" && LD="$ac_prog"
5207 ;;
5208 "")
5209 # If it fails, then pretend we aren't using GCC.
5210 ac_prog=ld
5211 ;;
5212 *)
5213 # If it is relative, then search for the first ld in PATH.
5214 with_gnu_ld=unknown
5215 ;;
5216 esac
5217elif test "$with_gnu_ld" = yes; then
5218 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5219echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5220else
5221 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5222echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5223fi
5224if test "${lt_cv_path_LD+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5226else
5227 if test -z "$LD"; then
5228 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5229 for ac_dir in $PATH; do
5230 IFS="$lt_save_ifs"
5231 test -z "$ac_dir" && ac_dir=.
5232 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5233 lt_cv_path_LD="$ac_dir/$ac_prog"
5234 # Check to see if the program is GNU ld. I'd rather use --version,
5235 # but apparently some variants of GNU ld only accept -v.
5236 # Break only if it was the GNU/non-GNU ld that we prefer.
5237 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5238 *GNU* | *'with BFD'*)
5239 test "$with_gnu_ld" != no && break
5240 ;;
5241 *)
5242 test "$with_gnu_ld" != yes && break
5243 ;;
5244 esac
5245 fi
5246 done
5247 IFS="$lt_save_ifs"
5248else
5249 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5250fi
5251fi
5252
5253LD="$lt_cv_path_LD"
5254if test -n "$LD"; then
5255 { echo "$as_me:$LINENO: result: $LD" >&5
5256echo "${ECHO_T}$LD" >&6; }
5257else
5258 { echo "$as_me:$LINENO: result: no" >&5
5259echo "${ECHO_T}no" >&6; }
5260fi
5261test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5262echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5263 { (exit 1); exit 1; }; }
5264{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5265echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5266if test "${lt_cv_prog_gnu_ld+set}" = set; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5268else
5269 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5270case `$LD -v 2>&1 </dev/null` in
5271*GNU* | *'with BFD'*)
5272 lt_cv_prog_gnu_ld=yes
5273 ;;
5274*)
5275 lt_cv_prog_gnu_ld=no
5276 ;;
5277esac
5278fi
5279{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5280echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5281with_gnu_ld=$lt_cv_prog_gnu_ld
5282
5283
5284{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5285echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5286if test "${lt_cv_ld_reload_flag+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5288else
5289 lt_cv_ld_reload_flag='-r'
5290fi
5291{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5292echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5293reload_flag=$lt_cv_ld_reload_flag
5294case $reload_flag in
5295"" | " "*) ;;
5296*) reload_flag=" $reload_flag" ;;
5297esac
5298reload_cmds='$LD$reload_flag -o $output$reload_objs'
5299case $host_os in
5300 darwin*)
5301 if test "$GCC" = yes; then
5302 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5303 else
5304 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5305 fi
5306 ;;
5307esac
5308
5309{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5310echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5311if test "${lt_cv_path_NM+set}" = set; then
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
5313else
5314 if test -n "$NM"; then
5315 # Let the user override the test.
5316 lt_cv_path_NM="$NM"
5317else
5318 lt_nm_to_check="${ac_tool_prefix}nm"
5319 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5320 lt_nm_to_check="$lt_nm_to_check nm"
5321 fi
5322 for lt_tmp_nm in $lt_nm_to_check; do
5323 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5324 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5325 IFS="$lt_save_ifs"
5326 test -z "$ac_dir" && ac_dir=.
5327 tmp_nm="$ac_dir/$lt_tmp_nm"
5328 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5329 # Check to see if the nm accepts a BSD-compat flag.
5330 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5331 # nm: unknown option "B" ignored
5332 # Tru64's nm complains that /dev/null is an invalid object file
5333 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5334 */dev/null* | *'Invalid file or object type'*)
5335 lt_cv_path_NM="$tmp_nm -B"
5336 break
5337 ;;
5338 *)
5339 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5340 */dev/null*)
5341 lt_cv_path_NM="$tmp_nm -p"
5342 break
5343 ;;
5344 *)
5345 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5346 continue # so that we can try to find one that supports BSD flags
5347 ;;
5348 esac
5349 ;;
5350 esac
5351 fi
5352 done
5353 IFS="$lt_save_ifs"
5354 done
5355 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5356fi
5357fi
5358{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5359echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5360NM="$lt_cv_path_NM"
5361
5362{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5363echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5364LN_S=$as_ln_s
5365if test "$LN_S" = "ln -s"; then
5366 { echo "$as_me:$LINENO: result: yes" >&5
5367echo "${ECHO_T}yes" >&6; }
5368else
5369 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5370echo "${ECHO_T}no, using $LN_S" >&6; }
5371fi
5372
5373{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5374echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5375if test "${lt_cv_deplibs_check_method+set}" = set; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5377else
5378 lt_cv_file_magic_cmd='$MAGIC_CMD'
5379lt_cv_file_magic_test_file=
5380lt_cv_deplibs_check_method='unknown'
5381# Need to set the preceding variable on all platforms that support
5382# interlibrary dependencies.
5383# 'none' -- dependencies not supported.
5384# `unknown' -- same as none, but documents that we really don't know.
5385# 'pass_all' -- all dependencies passed with no checks.
5386# 'test_compile' -- check by making test program.
5387# 'file_magic [[regex]]' -- check by looking for files in library path
5388# which responds to the $file_magic_cmd with a given extended regex.
5389# If you have `file' or equivalent on your system and you're not sure
5390# whether `pass_all' will *always* work, you probably want this one.
5391
5392case $host_os in
56efe974 5393aix[4-9]*)
b57f37fb
WP
5394 lt_cv_deplibs_check_method=pass_all
5395 ;;
5396
5397beos*)
5398 lt_cv_deplibs_check_method=pass_all
5399 ;;
5400
5401bsdi[45]*)
5402 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5403 lt_cv_file_magic_cmd='/usr/bin/file -L'
5404 lt_cv_file_magic_test_file=/shlib/libc.so
5405 ;;
5406
5407cygwin*)
5408 # func_win32_libid is a shell function defined in ltmain.sh
5409 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5410 lt_cv_file_magic_cmd='func_win32_libid'
5411 ;;
5412
5413mingw* | pw32*)
5414 # Base MSYS/MinGW do not provide the 'file' command needed by
5415 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5416 # unless we find 'file', for example because we are cross-compiling.
5417 if ( file / ) >/dev/null 2>&1; then
5418 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5419 lt_cv_file_magic_cmd='func_win32_libid'
5420 else
5421 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5422 lt_cv_file_magic_cmd='$OBJDUMP -f'
5423 fi
5424 ;;
5425
5426darwin* | rhapsody*)
5427 lt_cv_deplibs_check_method=pass_all
5428 ;;
5429
5430freebsd* | dragonfly*)
5431 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5432 case $host_cpu in
5433 i*86 )
5434 # Not sure whether the presence of OpenBSD here was a mistake.
5435 # Let's accept both of them until this is cleared up.
5436 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5437 lt_cv_file_magic_cmd=/usr/bin/file
5438 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5439 ;;
5440 esac
5441 else
5442 lt_cv_deplibs_check_method=pass_all
5443 fi
5444 ;;
5445
5446gnu*)
5447 lt_cv_deplibs_check_method=pass_all
5448 ;;
5449
5450hpux10.20* | hpux11*)
5451 lt_cv_file_magic_cmd=/usr/bin/file
5452 case $host_cpu in
5453 ia64*)
5454 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5455 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5456 ;;
5457 hppa*64*)
5458 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]'
5459 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5460 ;;
5461 *)
5462 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5463 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5464 ;;
5465 esac
5466 ;;
5467
5468interix[3-9]*)
5469 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5470 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5471 ;;
5472
5473irix5* | irix6* | nonstopux*)
5474 case $LD in
5475 *-32|*"-32 ") libmagic=32-bit;;
5476 *-n32|*"-n32 ") libmagic=N32;;
5477 *-64|*"-64 ") libmagic=64-bit;;
5478 *) libmagic=never-match;;
5479 esac
5480 lt_cv_deplibs_check_method=pass_all
5481 ;;
5482
5483# This must be Linux ELF.
5484linux* | k*bsd*-gnu)
5485 lt_cv_deplibs_check_method=pass_all
5486 ;;
5487
5488netbsd* | netbsdelf*-gnu)
5489 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5490 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5491 else
5492 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5493 fi
5494 ;;
5495
5496newos6*)
5497 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5498 lt_cv_file_magic_cmd=/usr/bin/file
5499 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5500 ;;
5501
5502nto-qnx*)
5503 lt_cv_deplibs_check_method=unknown
5504 ;;
5505
5506openbsd*)
5507 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5508 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5509 else
5510 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5511 fi
5512 ;;
5513
5514osf3* | osf4* | osf5*)
5515 lt_cv_deplibs_check_method=pass_all
5516 ;;
5517
5518rdos*)
5519 lt_cv_deplibs_check_method=pass_all
5520 ;;
5521
5522solaris*)
5523 lt_cv_deplibs_check_method=pass_all
5524 ;;
5525
5526sysv4 | sysv4.3*)
5527 case $host_vendor in
5528 motorola)
5529 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]'
5530 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5531 ;;
5532 ncr)
5533 lt_cv_deplibs_check_method=pass_all
5534 ;;
5535 sequent)
5536 lt_cv_file_magic_cmd='/bin/file'
5537 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5538 ;;
5539 sni)
5540 lt_cv_file_magic_cmd='/bin/file'
5541 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5542 lt_cv_file_magic_test_file=/lib/libc.so
5543 ;;
5544 siemens)
5545 lt_cv_deplibs_check_method=pass_all
5546 ;;
5547 pc)
5548 lt_cv_deplibs_check_method=pass_all
5549 ;;
5550 esac
5551 ;;
5552
5553sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5554 lt_cv_deplibs_check_method=pass_all
5555 ;;
5556esac
5557
5558fi
5559{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5560echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5561file_magic_cmd=$lt_cv_file_magic_cmd
5562deplibs_check_method=$lt_cv_deplibs_check_method
5563test -z "$deplibs_check_method" && deplibs_check_method=unknown
5564
5565
5566
5567
5568# If no C compiler was specified, use CC.
5569LTCC=${LTCC-"$CC"}
5570
5571# If no C compiler flags were specified, use CFLAGS.
5572LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5573
5574# Allow CC to be a program name with arguments.
5575compiler=$CC
5576
5577# Check whether --enable-libtool-lock was given.
5578if test "${enable_libtool_lock+set}" = set; then
5579 enableval=$enable_libtool_lock;
5580fi
5581
5582test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5583
5584# Some flags need to be propagated to the compiler or linker for good
5585# libtool support.
5586case $host in
5587ia64-*-hpux*)
5588 # Find out which ABI we are using.
5589 echo 'int i;' > conftest.$ac_ext
5590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5591 (eval $ac_compile) 2>&5
5592 ac_status=$?
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); }; then
5595 case `/usr/bin/file conftest.$ac_objext` in
5596 *ELF-32*)
5597 HPUX_IA64_MODE="32"
5598 ;;
5599 *ELF-64*)
5600 HPUX_IA64_MODE="64"
5601 ;;
5602 esac
5603 fi
5604 rm -rf conftest*
5605 ;;
5606*-*-irix6*)
5607 # Find out which ABI we are using.
56efe974 5608 echo '#line 5608 "configure"' > conftest.$ac_ext
b57f37fb
WP
5609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5610 (eval $ac_compile) 2>&5
5611 ac_status=$?
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); }; then
5614 if test "$lt_cv_prog_gnu_ld" = yes; then
5615 case `/usr/bin/file conftest.$ac_objext` in
5616 *32-bit*)
5617 LD="${LD-ld} -melf32bsmip"
5618 ;;
5619 *N32*)
5620 LD="${LD-ld} -melf32bmipn32"
5621 ;;
5622 *64-bit*)
5623 LD="${LD-ld} -melf64bmip"
5624 ;;
5625 esac
5626 else
5627 case `/usr/bin/file conftest.$ac_objext` in
5628 *32-bit*)
5629 LD="${LD-ld} -32"
5630 ;;
5631 *N32*)
5632 LD="${LD-ld} -n32"
5633 ;;
5634 *64-bit*)
5635 LD="${LD-ld} -64"
5636 ;;
5637 esac
5638 fi
5639 fi
5640 rm -rf conftest*
5641 ;;
5642
5643x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5644s390*-*linux*|sparc*-*linux*)
5645 # Find out which ABI we are using.
5646 echo 'int i;' > conftest.$ac_ext
5647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5648 (eval $ac_compile) 2>&5
5649 ac_status=$?
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; then
5652 case `/usr/bin/file conftest.o` in
5653 *32-bit*)
5654 case $host in
5655 x86_64-*kfreebsd*-gnu)
5656 LD="${LD-ld} -m elf_i386_fbsd"
5657 ;;
5658 x86_64-*linux*)
5659 LD="${LD-ld} -m elf_i386"
5660 ;;
5661 ppc64-*linux*|powerpc64-*linux*)
5662 LD="${LD-ld} -m elf32ppclinux"
5663 ;;
5664 s390x-*linux*)
5665 LD="${LD-ld} -m elf_s390"
5666 ;;
5667 sparc64-*linux*)
5668 LD="${LD-ld} -m elf32_sparc"
5669 ;;
5670 esac
5671 ;;
5672 *64-bit*)
5673 case $host in
5674 x86_64-*kfreebsd*-gnu)
5675 LD="${LD-ld} -m elf_x86_64_fbsd"
5676 ;;
5677 x86_64-*linux*)
5678 LD="${LD-ld} -m elf_x86_64"
5679 ;;
5680 ppc*-*linux*|powerpc*-*linux*)
5681 LD="${LD-ld} -m elf64ppc"
5682 ;;
5683 s390*-*linux*)
5684 LD="${LD-ld} -m elf64_s390"
5685 ;;
5686 sparc*-*linux*)
5687 LD="${LD-ld} -m elf64_sparc"
5688 ;;
5689 esac
5690 ;;
5691 esac
5692 fi
5693 rm -rf conftest*
5694 ;;
5695
5696*-*-sco3.2v5*)
5697 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5698 SAVE_CFLAGS="$CFLAGS"
5699 CFLAGS="$CFLAGS -belf"
5700 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5701echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5702if test "${lt_cv_cc_needs_belf+set}" = set; then
5703 echo $ECHO_N "(cached) $ECHO_C" >&6
5704else
5705 ac_ext=c
5706ac_cpp='$CPP $CPPFLAGS'
5707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5709ac_compiler_gnu=$ac_cv_c_compiler_gnu
5710
5711 cat >conftest.$ac_ext <<_ACEOF
5712/* confdefs.h. */
5713_ACEOF
5714cat confdefs.h >>conftest.$ac_ext
5715cat >>conftest.$ac_ext <<_ACEOF
5716/* end confdefs.h. */
5717
5718int
5719main ()
5720{
5721
5722 ;
5723 return 0;
5724}
5725_ACEOF
5726rm -f conftest.$ac_objext conftest$ac_exeext
5727if { (ac_try="$ac_link"
5728case "(($ac_try" in
5729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5730 *) ac_try_echo=$ac_try;;
5731esac
5732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5733 (eval "$ac_link") 2>conftest.er1
5734 ac_status=$?
5735 grep -v '^ *+' conftest.er1 >conftest.err
5736 rm -f conftest.er1
5737 cat conftest.err >&5
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); } && {
5740 test -z "$ac_c_werror_flag" ||
5741 test ! -s conftest.err
5742 } && test -s conftest$ac_exeext &&
5743 $as_test_x conftest$ac_exeext; then
5744 lt_cv_cc_needs_belf=yes
5745else
5746 echo "$as_me: failed program was:" >&5
5747sed 's/^/| /' conftest.$ac_ext >&5
5748
5749 lt_cv_cc_needs_belf=no
5750fi
5751
5752rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5753 conftest$ac_exeext conftest.$ac_ext
5754 ac_ext=c
5755ac_cpp='$CPP $CPPFLAGS'
5756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5758ac_compiler_gnu=$ac_cv_c_compiler_gnu
5759
5760fi
5761{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5762echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5763 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5764 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5765 CFLAGS="$SAVE_CFLAGS"
5766 fi
5767 ;;
5768sparc*-*solaris*)
5769 # Find out which ABI we are using.
5770 echo 'int i;' > conftest.$ac_ext
5771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5772 (eval $ac_compile) 2>&5
5773 ac_status=$?
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); }; then
5776 case `/usr/bin/file conftest.o` in
5777 *64-bit*)
5778 case $lt_cv_prog_gnu_ld in
5779 yes*) LD="${LD-ld} -m elf64_sparc" ;;
56efe974
WP
5780 *)
5781 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5782 LD="${LD-ld} -64"
5783 fi
5784 ;;
b57f37fb
WP
5785 esac
5786 ;;
5787 esac
5788 fi
5789 rm -rf conftest*
5790 ;;
5791
5792
5793esac
5794
5795need_locks="$enable_libtool_lock"
5796
5797
5798ac_ext=c
5799ac_cpp='$CPP $CPPFLAGS'
5800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5802ac_compiler_gnu=$ac_cv_c_compiler_gnu
5803{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5804echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5805# On Suns, sometimes $CPP names a directory.
5806if test -n "$CPP" && test -d "$CPP"; then
5807 CPP=
5808fi
5809if test -z "$CPP"; then
5810 if test "${ac_cv_prog_CPP+set}" = set; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
5812else
5813 # Double quotes because CPP needs to be expanded
5814 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5815 do
5816 ac_preproc_ok=false
5817for ac_c_preproc_warn_flag in '' yes
5818do
5819 # Use a header file that comes with gcc, so configuring glibc
5820 # with a fresh cross-compiler works.
5821 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5822 # <limits.h> exists even on freestanding compilers.
5823 # On the NeXT, cc -E runs the code through the compiler's parser,
5824 # not just through cpp. "Syntax error" is here to catch this case.
5825 cat >conftest.$ac_ext <<_ACEOF
5826/* confdefs.h. */
5827_ACEOF
5828cat confdefs.h >>conftest.$ac_ext
5829cat >>conftest.$ac_ext <<_ACEOF
5830/* end confdefs.h. */
5831#ifdef __STDC__
5832# include <limits.h>
5833#else
5834# include <assert.h>
5835#endif
5836 Syntax error
5837_ACEOF
5838if { (ac_try="$ac_cpp conftest.$ac_ext"
5839case "(($ac_try" in
5840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5841 *) ac_try_echo=$ac_try;;
5842esac
5843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5845 ac_status=$?
5846 grep -v '^ *+' conftest.er1 >conftest.err
5847 rm -f conftest.er1
5848 cat conftest.err >&5
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); } >/dev/null && {
5851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5852 test ! -s conftest.err
5853 }; then
5854 :
5855else
5856 echo "$as_me: failed program was:" >&5
5857sed 's/^/| /' conftest.$ac_ext >&5
5858
5859 # Broken: fails on valid input.
5860continue
5861fi
5862
5863rm -f conftest.err conftest.$ac_ext
5864
5865 # OK, works on sane cases. Now check whether nonexistent headers
5866 # can be detected and how.
5867 cat >conftest.$ac_ext <<_ACEOF
5868/* confdefs.h. */
5869_ACEOF
5870cat confdefs.h >>conftest.$ac_ext
5871cat >>conftest.$ac_ext <<_ACEOF
5872/* end confdefs.h. */
5873#include <ac_nonexistent.h>
5874_ACEOF
5875if { (ac_try="$ac_cpp conftest.$ac_ext"
5876case "(($ac_try" in
5877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5878 *) ac_try_echo=$ac_try;;
5879esac
5880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5882 ac_status=$?
5883 grep -v '^ *+' conftest.er1 >conftest.err
5884 rm -f conftest.er1
5885 cat conftest.err >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } >/dev/null && {
5888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5889 test ! -s conftest.err
5890 }; then
5891 # Broken: success on invalid input.
5892continue
5893else
5894 echo "$as_me: failed program was:" >&5
5895sed 's/^/| /' conftest.$ac_ext >&5
5896
5897 # Passes both tests.
5898ac_preproc_ok=:
5899break
5900fi
5901
5902rm -f conftest.err conftest.$ac_ext
5903
5904done
5905# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5906rm -f conftest.err conftest.$ac_ext
5907if $ac_preproc_ok; then
5908 break
5909fi
5910
5911 done
5912 ac_cv_prog_CPP=$CPP
5913
5914fi
5915 CPP=$ac_cv_prog_CPP
5916else
5917 ac_cv_prog_CPP=$CPP
5918fi
5919{ echo "$as_me:$LINENO: result: $CPP" >&5
5920echo "${ECHO_T}$CPP" >&6; }
5921ac_preproc_ok=false
5922for ac_c_preproc_warn_flag in '' yes
5923do
5924 # Use a header file that comes with gcc, so configuring glibc
5925 # with a fresh cross-compiler works.
5926 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5927 # <limits.h> exists even on freestanding compilers.
5928 # On the NeXT, cc -E runs the code through the compiler's parser,
5929 # not just through cpp. "Syntax error" is here to catch this case.
5930 cat >conftest.$ac_ext <<_ACEOF
5931/* confdefs.h. */
5932_ACEOF
5933cat confdefs.h >>conftest.$ac_ext
5934cat >>conftest.$ac_ext <<_ACEOF
5935/* end confdefs.h. */
5936#ifdef __STDC__
5937# include <limits.h>
5938#else
5939# include <assert.h>
5940#endif
5941 Syntax error
5942_ACEOF
5943if { (ac_try="$ac_cpp conftest.$ac_ext"
5944case "(($ac_try" in
5945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946 *) ac_try_echo=$ac_try;;
5947esac
5948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5950 ac_status=$?
5951 grep -v '^ *+' conftest.er1 >conftest.err
5952 rm -f conftest.er1
5953 cat conftest.err >&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); } >/dev/null && {
5956 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5957 test ! -s conftest.err
5958 }; then
5959 :
5960else
5961 echo "$as_me: failed program was:" >&5
5962sed 's/^/| /' conftest.$ac_ext >&5
5963
5964 # Broken: fails on valid input.
5965continue
5966fi
5967
5968rm -f conftest.err conftest.$ac_ext
5969
5970 # OK, works on sane cases. Now check whether nonexistent headers
5971 # can be detected and how.
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 <ac_nonexistent.h>
5979_ACEOF
5980if { (ac_try="$ac_cpp conftest.$ac_ext"
5981case "(($ac_try" in
5982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5983 *) ac_try_echo=$ac_try;;
5984esac
5985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5987 ac_status=$?
5988 grep -v '^ *+' conftest.er1 >conftest.err
5989 rm -f conftest.er1
5990 cat conftest.err >&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); } >/dev/null && {
5993 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5994 test ! -s conftest.err
5995 }; then
5996 # Broken: success on invalid input.
5997continue
5998else
5999 echo "$as_me: failed program was:" >&5
6000sed 's/^/| /' conftest.$ac_ext >&5
6001
6002 # Passes both tests.
6003ac_preproc_ok=:
6004break
6005fi
6006
6007rm -f conftest.err conftest.$ac_ext
6008
6009done
6010# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6011rm -f conftest.err conftest.$ac_ext
6012if $ac_preproc_ok; then
6013 :
6014else
6015 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6016See \`config.log' for more details." >&5
6017echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6018See \`config.log' for more details." >&2;}
6019 { (exit 1); exit 1; }; }
6020fi
6021
6022ac_ext=c
6023ac_cpp='$CPP $CPPFLAGS'
6024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6026ac_compiler_gnu=$ac_cv_c_compiler_gnu
6027
6028
6029{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6030echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6031if test "${ac_cv_header_stdc+set}" = set; then
6032 echo $ECHO_N "(cached) $ECHO_C" >&6
6033else
6034 cat >conftest.$ac_ext <<_ACEOF
6035/* confdefs.h. */
6036_ACEOF
6037cat confdefs.h >>conftest.$ac_ext
6038cat >>conftest.$ac_ext <<_ACEOF
6039/* end confdefs.h. */
6040#include <stdlib.h>
6041#include <stdarg.h>
6042#include <string.h>
6043#include <float.h>
6044
6045int
6046main ()
6047{
6048
6049 ;
6050 return 0;
6051}
6052_ACEOF
6053rm -f conftest.$ac_objext
6054if { (ac_try="$ac_compile"
6055case "(($ac_try" in
6056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6057 *) ac_try_echo=$ac_try;;
6058esac
6059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6060 (eval "$ac_compile") 2>conftest.er1
6061 ac_status=$?
6062 grep -v '^ *+' conftest.er1 >conftest.err
6063 rm -f conftest.er1
6064 cat conftest.err >&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); } && {
6067 test -z "$ac_c_werror_flag" ||
6068 test ! -s conftest.err
6069 } && test -s conftest.$ac_objext; then
6070 ac_cv_header_stdc=yes
6071else
6072 echo "$as_me: failed program was:" >&5
6073sed 's/^/| /' conftest.$ac_ext >&5
6074
6075 ac_cv_header_stdc=no
6076fi
6077
6078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6079
6080if test $ac_cv_header_stdc = yes; then
6081 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6082 cat >conftest.$ac_ext <<_ACEOF
6083/* confdefs.h. */
6084_ACEOF
6085cat confdefs.h >>conftest.$ac_ext
6086cat >>conftest.$ac_ext <<_ACEOF
6087/* end confdefs.h. */
6088#include <string.h>
6089
6090_ACEOF
6091if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6092 $EGREP "memchr" >/dev/null 2>&1; then
6093 :
6094else
6095 ac_cv_header_stdc=no
6096fi
6097rm -f conftest*
6098
6099fi
6100
6101if test $ac_cv_header_stdc = yes; then
6102 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6103 cat >conftest.$ac_ext <<_ACEOF
6104/* confdefs.h. */
6105_ACEOF
6106cat confdefs.h >>conftest.$ac_ext
6107cat >>conftest.$ac_ext <<_ACEOF
6108/* end confdefs.h. */
6109#include <stdlib.h>
6110
6111_ACEOF
6112if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6113 $EGREP "free" >/dev/null 2>&1; then
6114 :
6115else
6116 ac_cv_header_stdc=no
6117fi
6118rm -f conftest*
6119
6120fi
6121
6122if test $ac_cv_header_stdc = yes; then
6123 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6124 if test "$cross_compiling" = yes; then
6125 :
6126else
6127 cat >conftest.$ac_ext <<_ACEOF
6128/* confdefs.h. */
6129_ACEOF
6130cat confdefs.h >>conftest.$ac_ext
6131cat >>conftest.$ac_ext <<_ACEOF
6132/* end confdefs.h. */
6133#include <ctype.h>
6134#include <stdlib.h>
6135#if ((' ' & 0x0FF) == 0x020)
6136# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6137# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6138#else
6139# define ISLOWER(c) \
6140 (('a' <= (c) && (c) <= 'i') \
6141 || ('j' <= (c) && (c) <= 'r') \
6142 || ('s' <= (c) && (c) <= 'z'))
6143# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6144#endif
6145
6146#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6147int
6148main ()
6149{
6150 int i;
6151 for (i = 0; i < 256; i++)
6152 if (XOR (islower (i), ISLOWER (i))
6153 || toupper (i) != TOUPPER (i))
6154 return 2;
6155 return 0;
6156}
6157_ACEOF
6158rm -f conftest$ac_exeext
6159if { (ac_try="$ac_link"
6160case "(($ac_try" in
6161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6162 *) ac_try_echo=$ac_try;;
6163esac
6164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6165 (eval "$ac_link") 2>&5
6166 ac_status=$?
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6169 { (case "(($ac_try" in
6170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171 *) ac_try_echo=$ac_try;;
6172esac
6173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174 (eval "$ac_try") 2>&5
6175 ac_status=$?
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); }; }; then
6178 :
6179else
6180 echo "$as_me: program exited with status $ac_status" >&5
6181echo "$as_me: failed program was:" >&5
6182sed 's/^/| /' conftest.$ac_ext >&5
6183
6184( exit $ac_status )
6185ac_cv_header_stdc=no
6186fi
6187rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6188fi
6189
6190
6191fi
6192fi
6193{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6194echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6195if test $ac_cv_header_stdc = yes; then
6196
6197cat >>confdefs.h <<\_ACEOF
6198#define STDC_HEADERS 1
6199_ACEOF
6200
6201fi
6202
6203# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6214 inttypes.h stdint.h unistd.h
6215do
6216as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6217{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6218echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6219if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6221else
6222 cat >conftest.$ac_ext <<_ACEOF
6223/* confdefs.h. */
6224_ACEOF
6225cat confdefs.h >>conftest.$ac_ext
6226cat >>conftest.$ac_ext <<_ACEOF
6227/* end confdefs.h. */
6228$ac_includes_default
6229
6230#include <$ac_header>
6231_ACEOF
6232rm -f conftest.$ac_objext
6233if { (ac_try="$ac_compile"
6234case "(($ac_try" in
6235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6236 *) ac_try_echo=$ac_try;;
6237esac
6238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6239 (eval "$ac_compile") 2>conftest.er1
6240 ac_status=$?
6241 grep -v '^ *+' conftest.er1 >conftest.err
6242 rm -f conftest.er1
6243 cat conftest.err >&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); } && {
6246 test -z "$ac_c_werror_flag" ||
6247 test ! -s conftest.err
6248 } && test -s conftest.$ac_objext; then
6249 eval "$as_ac_Header=yes"
6250else
6251 echo "$as_me: failed program was:" >&5
6252sed 's/^/| /' conftest.$ac_ext >&5
6253
6254 eval "$as_ac_Header=no"
6255fi
6256
6257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6258fi
6259ac_res=`eval echo '${'$as_ac_Header'}'`
6260 { echo "$as_me:$LINENO: result: $ac_res" >&5
6261echo "${ECHO_T}$ac_res" >&6; }
6262if test `eval echo '${'$as_ac_Header'}'` = yes; then
6263 cat >>confdefs.h <<_ACEOF
6264#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6265_ACEOF
6266
6267fi
6268
6269done
6270
6271
6272
6273for ac_header in dlfcn.h
6274do
6275as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6276if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6278echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6279if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
6281fi
6282ac_res=`eval echo '${'$as_ac_Header'}'`
6283 { echo "$as_me:$LINENO: result: $ac_res" >&5
6284echo "${ECHO_T}$ac_res" >&6; }
6285else
6286 # Is the header compilable?
6287{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6288echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6289cat >conftest.$ac_ext <<_ACEOF
6290/* confdefs.h. */
6291_ACEOF
6292cat confdefs.h >>conftest.$ac_ext
6293cat >>conftest.$ac_ext <<_ACEOF
6294/* end confdefs.h. */
6295$ac_includes_default
6296#include <$ac_header>
6297_ACEOF
6298rm -f conftest.$ac_objext
6299if { (ac_try="$ac_compile"
6300case "(($ac_try" in
6301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302 *) ac_try_echo=$ac_try;;
6303esac
6304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6305 (eval "$ac_compile") 2>conftest.er1
6306 ac_status=$?
6307 grep -v '^ *+' conftest.er1 >conftest.err
6308 rm -f conftest.er1
6309 cat conftest.err >&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } && {
6312 test -z "$ac_c_werror_flag" ||
6313 test ! -s conftest.err
6314 } && test -s conftest.$ac_objext; then
6315 ac_header_compiler=yes
6316else
6317 echo "$as_me: failed program was:" >&5
6318sed 's/^/| /' conftest.$ac_ext >&5
6319
6320 ac_header_compiler=no
6321fi
6322
6323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6324{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6325echo "${ECHO_T}$ac_header_compiler" >&6; }
6326
6327# Is the header present?
6328{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6329echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6330cat >conftest.$ac_ext <<_ACEOF
6331/* confdefs.h. */
6332_ACEOF
6333cat confdefs.h >>conftest.$ac_ext
6334cat >>conftest.$ac_ext <<_ACEOF
6335/* end confdefs.h. */
6336#include <$ac_header>
6337_ACEOF
6338if { (ac_try="$ac_cpp conftest.$ac_ext"
6339case "(($ac_try" in
6340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6341 *) ac_try_echo=$ac_try;;
6342esac
6343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6345 ac_status=$?
6346 grep -v '^ *+' conftest.er1 >conftest.err
6347 rm -f conftest.er1
6348 cat conftest.err >&5
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); } >/dev/null && {
6351 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6352 test ! -s conftest.err
6353 }; then
6354 ac_header_preproc=yes
6355else
6356 echo "$as_me: failed program was:" >&5
6357sed 's/^/| /' conftest.$ac_ext >&5
6358
6359 ac_header_preproc=no
6360fi
6361
6362rm -f conftest.err conftest.$ac_ext
6363{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6364echo "${ECHO_T}$ac_header_preproc" >&6; }
6365
6366# So? What about this header?
6367case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6368 yes:no: )
6369 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6370echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6372echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6373 ac_header_preproc=yes
6374 ;;
6375 no:yes:* )
6376 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6377echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6378 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6379echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6380 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6381echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6382 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6383echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6385echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6386 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6387echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6388
6389 ;;
6390esac
6391{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6392echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6393if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6395else
6396 eval "$as_ac_Header=\$ac_header_preproc"
6397fi
6398ac_res=`eval echo '${'$as_ac_Header'}'`
6399 { echo "$as_me:$LINENO: result: $ac_res" >&5
6400echo "${ECHO_T}$ac_res" >&6; }
6401
6402fi
6403if test `eval echo '${'$as_ac_Header'}'` = yes; then
6404 cat >>confdefs.h <<_ACEOF
6405#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6406_ACEOF
6407
6408fi
6409
6410done
6411
6412ac_ext=cpp
6413ac_cpp='$CXXCPP $CPPFLAGS'
6414ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6415ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6416ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6417if test -z "$CXX"; then
6418 if test -n "$CCC"; then
6419 CXX=$CCC
6420 else
6421 if test -n "$ac_tool_prefix"; then
6422 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6423 do
6424 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6425set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6426{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6428if test "${ac_cv_prog_CXX+set}" = set; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
6430else
6431 if test -n "$CXX"; then
6432 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6433else
6434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435for as_dir in $PATH
6436do
6437 IFS=$as_save_IFS
6438 test -z "$as_dir" && as_dir=.
6439 for ac_exec_ext in '' $ac_executable_extensions; do
6440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6441 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6443 break 2
6444 fi
6445done
6446done
6447IFS=$as_save_IFS
6448
6449fi
6450fi
6451CXX=$ac_cv_prog_CXX
6452if test -n "$CXX"; then
6453 { echo "$as_me:$LINENO: result: $CXX" >&5
6454echo "${ECHO_T}$CXX" >&6; }
6455else
6456 { echo "$as_me:$LINENO: result: no" >&5
6457echo "${ECHO_T}no" >&6; }
6458fi
6459
6460
6461 test -n "$CXX" && break
6462 done
6463fi
6464if test -z "$CXX"; then
6465 ac_ct_CXX=$CXX
6466 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6467do
6468 # Extract the first word of "$ac_prog", so it can be a program name with args.
6469set dummy $ac_prog; ac_word=$2
6470{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6472if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
6474else
6475 if test -n "$ac_ct_CXX"; then
6476 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6477else
6478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479for as_dir in $PATH
6480do
6481 IFS=$as_save_IFS
6482 test -z "$as_dir" && as_dir=.
6483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6485 ac_cv_prog_ac_ct_CXX="$ac_prog"
6486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6487 break 2
6488 fi
6489done
6490done
6491IFS=$as_save_IFS
6492
6493fi
6494fi
6495ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6496if test -n "$ac_ct_CXX"; then
6497 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6498echo "${ECHO_T}$ac_ct_CXX" >&6; }
6499else
6500 { echo "$as_me:$LINENO: result: no" >&5
6501echo "${ECHO_T}no" >&6; }
6502fi
6503
6504
6505 test -n "$ac_ct_CXX" && break
6506done
6507
6508 if test "x$ac_ct_CXX" = x; then
6509 CXX="g++"
6510 else
6511 case $cross_compiling:$ac_tool_warned in
6512yes:)
6513{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6514whose name does not start with the host triplet. If you think this
6515configuration is useful to you, please write to autoconf@gnu.org." >&5
6516echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6517whose name does not start with the host triplet. If you think this
6518configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6519ac_tool_warned=yes ;;
6520esac
6521 CXX=$ac_ct_CXX
6522 fi
6523fi
6524
6525 fi
6526fi
6527# Provide some information about the compiler.
6528echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6529ac_compiler=`set X $ac_compile; echo $2`
6530{ (ac_try="$ac_compiler --version >&5"
6531case "(($ac_try" in
6532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6533 *) ac_try_echo=$ac_try;;
6534esac
6535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6536 (eval "$ac_compiler --version >&5") 2>&5
6537 ac_status=$?
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); }
6540{ (ac_try="$ac_compiler -v >&5"
6541case "(($ac_try" in
6542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6543 *) ac_try_echo=$ac_try;;
6544esac
6545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6546 (eval "$ac_compiler -v >&5") 2>&5
6547 ac_status=$?
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }
6550{ (ac_try="$ac_compiler -V >&5"
6551case "(($ac_try" in
6552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6553 *) ac_try_echo=$ac_try;;
6554esac
6555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6556 (eval "$ac_compiler -V >&5") 2>&5
6557 ac_status=$?
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); }
6560
6561{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6562echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6563if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6565else
6566 cat >conftest.$ac_ext <<_ACEOF
6567/* confdefs.h. */
6568_ACEOF
6569cat confdefs.h >>conftest.$ac_ext
6570cat >>conftest.$ac_ext <<_ACEOF
6571/* end confdefs.h. */
6572
6573int
6574main ()
6575{
6576#ifndef __GNUC__
6577 choke me
6578#endif
6579
6580 ;
6581 return 0;
6582}
6583_ACEOF
6584rm -f conftest.$ac_objext
6585if { (ac_try="$ac_compile"
6586case "(($ac_try" in
6587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6588 *) ac_try_echo=$ac_try;;
6589esac
6590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6591 (eval "$ac_compile") 2>conftest.er1
6592 ac_status=$?
6593 grep -v '^ *+' conftest.er1 >conftest.err
6594 rm -f conftest.er1
6595 cat conftest.err >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); } && {
6598 test -z "$ac_cxx_werror_flag" ||
6599 test ! -s conftest.err
6600 } && test -s conftest.$ac_objext; then
6601 ac_compiler_gnu=yes
6602else
6603 echo "$as_me: failed program was:" >&5
6604sed 's/^/| /' conftest.$ac_ext >&5
6605
6606 ac_compiler_gnu=no
6607fi
6608
6609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6610ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6611
6612fi
6613{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6614echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6615GXX=`test $ac_compiler_gnu = yes && echo yes`
6616ac_test_CXXFLAGS=${CXXFLAGS+set}
6617ac_save_CXXFLAGS=$CXXFLAGS
6618{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6619echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6620if test "${ac_cv_prog_cxx_g+set}" = set; then
6621 echo $ECHO_N "(cached) $ECHO_C" >&6
6622else
6623 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6624 ac_cxx_werror_flag=yes
6625 ac_cv_prog_cxx_g=no
6626 CXXFLAGS="-g"
6627 cat >conftest.$ac_ext <<_ACEOF
6628/* confdefs.h. */
6629_ACEOF
6630cat confdefs.h >>conftest.$ac_ext
6631cat >>conftest.$ac_ext <<_ACEOF
6632/* end confdefs.h. */
6633
6634int
6635main ()
6636{
6637
6638 ;
6639 return 0;
6640}
6641_ACEOF
6642rm -f conftest.$ac_objext
6643if { (ac_try="$ac_compile"
6644case "(($ac_try" in
6645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6646 *) ac_try_echo=$ac_try;;
6647esac
6648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6649 (eval "$ac_compile") 2>conftest.er1
6650 ac_status=$?
6651 grep -v '^ *+' conftest.er1 >conftest.err
6652 rm -f conftest.er1
6653 cat conftest.err >&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); } && {
6656 test -z "$ac_cxx_werror_flag" ||
6657 test ! -s conftest.err
6658 } && test -s conftest.$ac_objext; then
6659 ac_cv_prog_cxx_g=yes
6660else
6661 echo "$as_me: failed program was:" >&5
6662sed 's/^/| /' conftest.$ac_ext >&5
6663
6664 CXXFLAGS=""
6665 cat >conftest.$ac_ext <<_ACEOF
6666/* confdefs.h. */
6667_ACEOF
6668cat confdefs.h >>conftest.$ac_ext
6669cat >>conftest.$ac_ext <<_ACEOF
6670/* end confdefs.h. */
6671
6672int
6673main ()
6674{
6675
6676 ;
6677 return 0;
6678}
6679_ACEOF
6680rm -f conftest.$ac_objext
6681if { (ac_try="$ac_compile"
6682case "(($ac_try" in
6683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6684 *) ac_try_echo=$ac_try;;
6685esac
6686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6687 (eval "$ac_compile") 2>conftest.er1
6688 ac_status=$?
6689 grep -v '^ *+' conftest.er1 >conftest.err
6690 rm -f conftest.er1
6691 cat conftest.err >&5
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); } && {
6694 test -z "$ac_cxx_werror_flag" ||
6695 test ! -s conftest.err
6696 } && test -s conftest.$ac_objext; then
6697 :
6698else
6699 echo "$as_me: failed program was:" >&5
6700sed 's/^/| /' conftest.$ac_ext >&5
6701
6702 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6703 CXXFLAGS="-g"
6704 cat >conftest.$ac_ext <<_ACEOF
6705/* confdefs.h. */
6706_ACEOF
6707cat confdefs.h >>conftest.$ac_ext
6708cat >>conftest.$ac_ext <<_ACEOF
6709/* end confdefs.h. */
6710
6711int
6712main ()
6713{
6714
6715 ;
6716 return 0;
6717}
6718_ACEOF
6719rm -f conftest.$ac_objext
6720if { (ac_try="$ac_compile"
6721case "(($ac_try" in
6722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6723 *) ac_try_echo=$ac_try;;
6724esac
6725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6726 (eval "$ac_compile") 2>conftest.er1
6727 ac_status=$?
6728 grep -v '^ *+' conftest.er1 >conftest.err
6729 rm -f conftest.er1
6730 cat conftest.err >&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); } && {
6733 test -z "$ac_cxx_werror_flag" ||
6734 test ! -s conftest.err
6735 } && test -s conftest.$ac_objext; then
6736 ac_cv_prog_cxx_g=yes
6737else
6738 echo "$as_me: failed program was:" >&5
6739sed 's/^/| /' conftest.$ac_ext >&5
6740
6741
6742fi
6743
6744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6745fi
6746
6747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6748fi
6749
6750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6751 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6752fi
6753{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6754echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6755if test "$ac_test_CXXFLAGS" = set; then
6756 CXXFLAGS=$ac_save_CXXFLAGS
6757elif test $ac_cv_prog_cxx_g = yes; then
6758 if test "$GXX" = yes; then
6759 CXXFLAGS="-g -O2"
6760 else
6761 CXXFLAGS="-g"
6762 fi
6763else
6764 if test "$GXX" = yes; then
6765 CXXFLAGS="-O2"
6766 else
6767 CXXFLAGS=
6768 fi
6769fi
6770ac_ext=cpp
6771ac_cpp='$CXXCPP $CPPFLAGS'
6772ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6773ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6774ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6775
6776depcc="$CXX" am_compiler_list=
6777
6778{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6779echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6780if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6781 echo $ECHO_N "(cached) $ECHO_C" >&6
6782else
6783 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6784 # We make a subdir and do the tests there. Otherwise we can end up
6785 # making bogus files that we don't know about and never remove. For
6786 # instance it was reported that on HP-UX the gcc test will end up
6787 # making a dummy file named `D' -- because `-MD' means `put the output
6788 # in D'.
6789 mkdir conftest.dir
6790 # Copy depcomp to subdir because otherwise we won't find it if we're
6791 # using a relative directory.
6792 cp "$am_depcomp" conftest.dir
6793 cd conftest.dir
6794 # We will build objects and dependencies in a subdirectory because
6795 # it helps to detect inapplicable dependency modes. For instance
6796 # both Tru64's cc and ICC support -MD to output dependencies as a
6797 # side effect of compilation, but ICC will put the dependencies in
6798 # the current directory while Tru64 will put them in the object
6799 # directory.
6800 mkdir sub
6801
6802 am_cv_CXX_dependencies_compiler_type=none
6803 if test "$am_compiler_list" = ""; then
6804 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6805 fi
6806 for depmode in $am_compiler_list; do
6807 # Setup a source with many dependencies, because some compilers
6808 # like to wrap large dependency lists on column 80 (with \), and
6809 # we should not choose a depcomp mode which is confused by this.
6810 #
6811 # We need to recreate these files for each test, as the compiler may
6812 # overwrite some of them when testing with obscure command lines.
6813 # This happens at least with the AIX C compiler.
6814 : > sub/conftest.c
6815 for i in 1 2 3 4 5 6; do
6816 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6817 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6818 # Solaris 8's {/usr,}/bin/sh.
6819 touch sub/conftst$i.h
6820 done
6821 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6822
6823 case $depmode in
6824 nosideeffect)
6825 # after this tag, mechanisms are not by side-effect, so they'll
6826 # only be used when explicitly requested
6827 if test "x$enable_dependency_tracking" = xyes; then
6828 continue
6829 else
6830 break
6831 fi
6832 ;;
6833 none) break ;;
6834 esac
6835 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6836 # mode. It turns out that the SunPro C++ compiler does not properly
6837 # handle `-M -o', and we need to detect this.
6838 if depmode=$depmode \
6839 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6840 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6841 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6842 >/dev/null 2>conftest.err &&
6843 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6844 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6845 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6846 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6847 # icc doesn't choke on unknown options, it will just issue warnings
6848 # or remarks (even with -Werror). So we grep stderr for any message
6849 # that says an option was ignored or not supported.
6850 # When given -MP, icc 7.0 and 7.1 complain thusly:
6851 # icc: Command line warning: ignoring option '-M'; no argument required
6852 # The diagnosis changed in icc 8.0:
6853 # icc: Command line remark: option '-MP' not supported
6854 if (grep 'ignoring option' conftest.err ||
6855 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6856 am_cv_CXX_dependencies_compiler_type=$depmode
6857 break
6858 fi
6859 fi
6860 done
6861
6862 cd ..
6863 rm -rf conftest.dir
6864else
6865 am_cv_CXX_dependencies_compiler_type=none
6866fi
6867
6868fi
6869{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6870echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6871CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6872
6873 if
6874 test "x$enable_dependency_tracking" != xno \
6875 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6876 am__fastdepCXX_TRUE=
6877 am__fastdepCXX_FALSE='#'
6878else
6879 am__fastdepCXX_TRUE='#'
6880 am__fastdepCXX_FALSE=
6881fi
6882
6883
6884
6885
6886if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6887 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6888 (test "X$CXX" != "Xg++"))) ; then
6889 ac_ext=cpp
6890ac_cpp='$CXXCPP $CPPFLAGS'
6891ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6892ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6893ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6894{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6895echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6896if test -z "$CXXCPP"; then
6897 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6898 echo $ECHO_N "(cached) $ECHO_C" >&6
6899else
6900 # Double quotes because CXXCPP needs to be expanded
6901 for CXXCPP in "$CXX -E" "/lib/cpp"
6902 do
6903 ac_preproc_ok=false
6904for ac_cxx_preproc_warn_flag in '' yes
6905do
6906 # Use a header file that comes with gcc, so configuring glibc
6907 # with a fresh cross-compiler works.
6908 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6909 # <limits.h> exists even on freestanding compilers.
6910 # On the NeXT, cc -E runs the code through the compiler's parser,
6911 # not just through cpp. "Syntax error" is here to catch this case.
6912 cat >conftest.$ac_ext <<_ACEOF
6913/* confdefs.h. */
6914_ACEOF
6915cat confdefs.h >>conftest.$ac_ext
6916cat >>conftest.$ac_ext <<_ACEOF
6917/* end confdefs.h. */
6918#ifdef __STDC__
6919# include <limits.h>
6920#else
6921# include <assert.h>
6922#endif
6923 Syntax error
6924_ACEOF
6925if { (ac_try="$ac_cpp conftest.$ac_ext"
6926case "(($ac_try" in
6927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6928 *) ac_try_echo=$ac_try;;
6929esac
6930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6932 ac_status=$?
6933 grep -v '^ *+' conftest.er1 >conftest.err
6934 rm -f conftest.er1
6935 cat conftest.err >&5
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); } >/dev/null && {
6938 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6939 test ! -s conftest.err
6940 }; then
6941 :
6942else
6943 echo "$as_me: failed program was:" >&5
6944sed 's/^/| /' conftest.$ac_ext >&5
6945
6946 # Broken: fails on valid input.
6947continue
6948fi
6949
6950rm -f conftest.err conftest.$ac_ext
6951
6952 # OK, works on sane cases. Now check whether nonexistent headers
6953 # can be detected and how.
6954 cat >conftest.$ac_ext <<_ACEOF
6955/* confdefs.h. */
6956_ACEOF
6957cat confdefs.h >>conftest.$ac_ext
6958cat >>conftest.$ac_ext <<_ACEOF
6959/* end confdefs.h. */
6960#include <ac_nonexistent.h>
6961_ACEOF
6962if { (ac_try="$ac_cpp conftest.$ac_ext"
6963case "(($ac_try" in
6964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6965 *) ac_try_echo=$ac_try;;
6966esac
6967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6969 ac_status=$?
6970 grep -v '^ *+' conftest.er1 >conftest.err
6971 rm -f conftest.er1
6972 cat conftest.err >&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); } >/dev/null && {
6975 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6976 test ! -s conftest.err
6977 }; then
6978 # Broken: success on invalid input.
6979continue
6980else
6981 echo "$as_me: failed program was:" >&5
6982sed 's/^/| /' conftest.$ac_ext >&5
6983
6984 # Passes both tests.
6985ac_preproc_ok=:
6986break
6987fi
6988
6989rm -f conftest.err conftest.$ac_ext
6990
6991done
6992# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6993rm -f conftest.err conftest.$ac_ext
6994if $ac_preproc_ok; then
6995 break
6996fi
6997
6998 done
6999 ac_cv_prog_CXXCPP=$CXXCPP
7000
7001fi
7002 CXXCPP=$ac_cv_prog_CXXCPP
7003else
7004 ac_cv_prog_CXXCPP=$CXXCPP
7005fi
7006{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
7007echo "${ECHO_T}$CXXCPP" >&6; }
7008ac_preproc_ok=false
7009for ac_cxx_preproc_warn_flag in '' yes
7010do
7011 # Use a header file that comes with gcc, so configuring glibc
7012 # with a fresh cross-compiler works.
7013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7014 # <limits.h> exists even on freestanding compilers.
7015 # On the NeXT, cc -E runs the code through the compiler's parser,
7016 # not just through cpp. "Syntax error" is here to catch this case.
7017 cat >conftest.$ac_ext <<_ACEOF
7018/* confdefs.h. */
7019_ACEOF
7020cat confdefs.h >>conftest.$ac_ext
7021cat >>conftest.$ac_ext <<_ACEOF
7022/* end confdefs.h. */
7023#ifdef __STDC__
7024# include <limits.h>
7025#else
7026# include <assert.h>
7027#endif
7028 Syntax error
7029_ACEOF
7030if { (ac_try="$ac_cpp conftest.$ac_ext"
7031case "(($ac_try" in
7032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7033 *) ac_try_echo=$ac_try;;
7034esac
7035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7037 ac_status=$?
7038 grep -v '^ *+' conftest.er1 >conftest.err
7039 rm -f conftest.er1
7040 cat conftest.err >&5
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); } >/dev/null && {
7043 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7044 test ! -s conftest.err
7045 }; then
7046 :
7047else
7048 echo "$as_me: failed program was:" >&5
7049sed 's/^/| /' conftest.$ac_ext >&5
7050
7051 # Broken: fails on valid input.
7052continue
7053fi
7054
7055rm -f conftest.err conftest.$ac_ext
7056
7057 # OK, works on sane cases. Now check whether nonexistent headers
7058 # can be detected and how.
7059 cat >conftest.$ac_ext <<_ACEOF
7060/* confdefs.h. */
7061_ACEOF
7062cat confdefs.h >>conftest.$ac_ext
7063cat >>conftest.$ac_ext <<_ACEOF
7064/* end confdefs.h. */
7065#include <ac_nonexistent.h>
7066_ACEOF
7067if { (ac_try="$ac_cpp conftest.$ac_ext"
7068case "(($ac_try" in
7069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7070 *) ac_try_echo=$ac_try;;
7071esac
7072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7074 ac_status=$?
7075 grep -v '^ *+' conftest.er1 >conftest.err
7076 rm -f conftest.er1
7077 cat conftest.err >&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); } >/dev/null && {
7080 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7081 test ! -s conftest.err
7082 }; then
7083 # Broken: success on invalid input.
7084continue
7085else
7086 echo "$as_me: failed program was:" >&5
7087sed 's/^/| /' conftest.$ac_ext >&5
7088
7089 # Passes both tests.
7090ac_preproc_ok=:
7091break
7092fi
7093
7094rm -f conftest.err conftest.$ac_ext
7095
7096done
7097# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7098rm -f conftest.err conftest.$ac_ext
7099if $ac_preproc_ok; then
7100 :
7101else
7102 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7103See \`config.log' for more details." >&5
7104echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7105See \`config.log' for more details." >&2;}
7106 { (exit 1); exit 1; }; }
7107fi
7108
7109ac_ext=cpp
7110ac_cpp='$CXXCPP $CPPFLAGS'
7111ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7112ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7113ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7114
7115fi
7116
7117
7118ac_ext=f
7119ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7120ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7121ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7122if test -n "$ac_tool_prefix"; then
7123 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
7124 do
7125 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7126set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7127{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7129if test "${ac_cv_prog_F77+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7131else
7132 if test -n "$F77"; then
7133 ac_cv_prog_F77="$F77" # Let the user override the test.
7134else
7135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136for as_dir in $PATH
7137do
7138 IFS=$as_save_IFS
7139 test -z "$as_dir" && as_dir=.
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7142 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144 break 2
7145 fi
7146done
7147done
7148IFS=$as_save_IFS
7149
7150fi
7151fi
7152F77=$ac_cv_prog_F77
7153if test -n "$F77"; then
7154 { echo "$as_me:$LINENO: result: $F77" >&5
7155echo "${ECHO_T}$F77" >&6; }
7156else
7157 { echo "$as_me:$LINENO: result: no" >&5
7158echo "${ECHO_T}no" >&6; }
7159fi
7160
7161
7162 test -n "$F77" && break
7163 done
7164fi
7165if test -z "$F77"; then
7166 ac_ct_F77=$F77
7167 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
7168do
7169 # Extract the first word of "$ac_prog", so it can be a program name with args.
7170set dummy $ac_prog; ac_word=$2
7171{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7173if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7174 echo $ECHO_N "(cached) $ECHO_C" >&6
7175else
7176 if test -n "$ac_ct_F77"; then
7177 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7178else
7179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180for as_dir in $PATH
7181do
7182 IFS=$as_save_IFS
7183 test -z "$as_dir" && as_dir=.
7184 for ac_exec_ext in '' $ac_executable_extensions; do
7185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7186 ac_cv_prog_ac_ct_F77="$ac_prog"
7187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 break 2
7189 fi
7190done
7191done
7192IFS=$as_save_IFS
7193
7194fi
7195fi
7196ac_ct_F77=$ac_cv_prog_ac_ct_F77
7197if test -n "$ac_ct_F77"; then
7198 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7199echo "${ECHO_T}$ac_ct_F77" >&6; }
7200else
7201 { echo "$as_me:$LINENO: result: no" >&5
7202echo "${ECHO_T}no" >&6; }
7203fi
7204
7205
7206 test -n "$ac_ct_F77" && break
7207done
7208
7209 if test "x$ac_ct_F77" = x; then
7210 F77=""
7211 else
7212 case $cross_compiling:$ac_tool_warned in
7213yes:)
7214{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7215whose name does not start with the host triplet. If you think this
7216configuration is useful to you, please write to autoconf@gnu.org." >&5
7217echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7218whose name does not start with the host triplet. If you think this
7219configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7220ac_tool_warned=yes ;;
7221esac
7222 F77=$ac_ct_F77
7223 fi
7224fi
7225
7226
7227# Provide some information about the compiler.
7228echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7229ac_compiler=`set X $ac_compile; echo $2`
7230{ (ac_try="$ac_compiler --version >&5"
7231case "(($ac_try" in
7232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7233 *) ac_try_echo=$ac_try;;
7234esac
7235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7236 (eval "$ac_compiler --version >&5") 2>&5
7237 ac_status=$?
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); }
7240{ (ac_try="$ac_compiler -v >&5"
7241case "(($ac_try" in
7242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7243 *) ac_try_echo=$ac_try;;
7244esac
7245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7246 (eval "$ac_compiler -v >&5") 2>&5
7247 ac_status=$?
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); }
7250{ (ac_try="$ac_compiler -V >&5"
7251case "(($ac_try" in
7252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7253 *) ac_try_echo=$ac_try;;
7254esac
7255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7256 (eval "$ac_compiler -V >&5") 2>&5
7257 ac_status=$?
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); }
7260rm -f a.out
7261
7262# If we don't use `.F' as extension, the preprocessor is not run on the
7263# input file. (Note that this only needs to work for GNU compilers.)
7264ac_save_ext=$ac_ext
7265ac_ext=F
7266{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7267echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7268if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7269 echo $ECHO_N "(cached) $ECHO_C" >&6
7270else
7271 cat >conftest.$ac_ext <<_ACEOF
7272 program main
7273#ifndef __GNUC__
7274 choke me
7275#endif
7276
7277 end
7278_ACEOF
7279rm -f conftest.$ac_objext
7280if { (ac_try="$ac_compile"
7281case "(($ac_try" in
7282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7283 *) ac_try_echo=$ac_try;;
7284esac
7285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7286 (eval "$ac_compile") 2>conftest.er1
7287 ac_status=$?
7288 grep -v '^ *+' conftest.er1 >conftest.err
7289 rm -f conftest.er1
7290 cat conftest.err >&5
7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); } && {
7293 test -z "$ac_f77_werror_flag" ||
7294 test ! -s conftest.err
7295 } && test -s conftest.$ac_objext; then
7296 ac_compiler_gnu=yes
7297else
7298 echo "$as_me: failed program was:" >&5
7299sed 's/^/| /' conftest.$ac_ext >&5
7300
7301 ac_compiler_gnu=no
7302fi
7303
7304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7305ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7306
7307fi
7308{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7309echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7310ac_ext=$ac_save_ext
7311ac_test_FFLAGS=${FFLAGS+set}
7312ac_save_FFLAGS=$FFLAGS
7313FFLAGS=
7314{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7315echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7316if test "${ac_cv_prog_f77_g+set}" = set; then
7317 echo $ECHO_N "(cached) $ECHO_C" >&6
7318else
7319 FFLAGS=-g
7320cat >conftest.$ac_ext <<_ACEOF
7321 program main
7322
7323 end
7324_ACEOF
7325rm -f conftest.$ac_objext
7326if { (ac_try="$ac_compile"
7327case "(($ac_try" in
7328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7329 *) ac_try_echo=$ac_try;;
7330esac
7331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7332 (eval "$ac_compile") 2>conftest.er1
7333 ac_status=$?
7334 grep -v '^ *+' conftest.er1 >conftest.err
7335 rm -f conftest.er1
7336 cat conftest.err >&5
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); } && {
7339 test -z "$ac_f77_werror_flag" ||
7340 test ! -s conftest.err
7341 } && test -s conftest.$ac_objext; then
7342 ac_cv_prog_f77_g=yes
7343else
7344 echo "$as_me: failed program was:" >&5
7345sed 's/^/| /' conftest.$ac_ext >&5
7346
7347 ac_cv_prog_f77_g=no
7348fi
7349
7350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7351
7352fi
7353{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7354echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7355if test "$ac_test_FFLAGS" = set; then
7356 FFLAGS=$ac_save_FFLAGS
7357elif test $ac_cv_prog_f77_g = yes; then
7358 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7359 FFLAGS="-g -O2"
7360 else
7361 FFLAGS="-g"
7362 fi
7363else
7364 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7365 FFLAGS="-O2"
7366 else
7367 FFLAGS=
7368 fi
7369fi
7370
7371G77=`test $ac_compiler_gnu = yes && echo yes`
7372ac_ext=c
7373ac_cpp='$CPP $CPPFLAGS'
7374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7376ac_compiler_gnu=$ac_cv_c_compiler_gnu
7377
7378
7379
7380# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
b57f37fb
WP
7381# find the maximum length of command line arguments
7382{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7383echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7384if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7386else
7387 i=0
7388 teststring="ABCD"
7389
7390 case $build_os in
7391 msdosdjgpp*)
7392 # On DJGPP, this test can blow up pretty badly due to problems in libc
7393 # (any single argument exceeding 2000 bytes causes a buffer overrun
7394 # during glob expansion). Even if it were fixed, the result of this
7395 # check would be larger than it should be.
7396 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7397 ;;
7398
7399 gnu*)
7400 # Under GNU Hurd, this test is not required because there is
7401 # no limit to the length of command line arguments.
7402 # Libtool will interpret -1 as no limit whatsoever
7403 lt_cv_sys_max_cmd_len=-1;
7404 ;;
7405
7406 cygwin* | mingw*)
7407 # On Win9x/ME, this test blows up -- it succeeds, but takes
7408 # about 5 minutes as the teststring grows exponentially.
7409 # Worse, since 9x/ME are not pre-emptively multitasking,
7410 # you end up with a "frozen" computer, even though with patience
7411 # the test eventually succeeds (with a max line length of 256k).
7412 # Instead, let's just punt: use the minimum linelength reported by
7413 # all of the supported platforms: 8192 (on NT/2K/XP).
7414 lt_cv_sys_max_cmd_len=8192;
7415 ;;
7416
7417 amigaos*)
7418 # On AmigaOS with pdksh, this test takes hours, literally.
7419 # So we just punt and use a minimum line length of 8192.
7420 lt_cv_sys_max_cmd_len=8192;
7421 ;;
7422
7423 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7424 # This has been around since 386BSD, at least. Likely further.
7425 if test -x /sbin/sysctl; then
7426 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7427 elif test -x /usr/sbin/sysctl; then
7428 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7429 else
7430 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7431 fi
7432 # And add a safety zone
7433 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7434 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7435 ;;
7436
7437 interix*)
7438 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7439 lt_cv_sys_max_cmd_len=196608
7440 ;;
7441
7442 osf*)
7443 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7444 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7445 # nice to cause kernel panics so lets avoid the loop below.
7446 # First set a reasonable default.
7447 lt_cv_sys_max_cmd_len=16384
7448 #
7449 if test -x /sbin/sysconfig; then
7450 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7451 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7452 esac
7453 fi
7454 ;;
7455 sco3.2v5*)
7456 lt_cv_sys_max_cmd_len=102400
7457 ;;
7458 sysv5* | sco5v6* | sysv4.2uw2*)
7459 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7460 if test -n "$kargmax"; then
7461 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7462 else
7463 lt_cv_sys_max_cmd_len=32768
7464 fi
7465 ;;
7466 *)
7467 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7468 if test -n "$lt_cv_sys_max_cmd_len"; then
7469 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7470 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7471 else
7472 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7473 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7474 = "XX$teststring") >/dev/null 2>&1 &&
7475 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7476 lt_cv_sys_max_cmd_len=$new_result &&
7477 test $i != 17 # 1/2 MB should be enough
7478 do
7479 i=`expr $i + 1`
7480 teststring=$teststring$teststring
7481 done
7482 teststring=
7483 # Add a significant safety factor because C++ compilers can tack on massive
7484 # amounts of additional arguments before passing them to the linker.
7485 # It appears as though 1/2 is a usable value.
7486 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7487 fi
7488 ;;
7489 esac
7490
7491fi
7492
7493if test -n $lt_cv_sys_max_cmd_len ; then
7494 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7495echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7496else
7497 { echo "$as_me:$LINENO: result: none" >&5
7498echo "${ECHO_T}none" >&6; }
7499fi
7500
7501
7502
7503
7504
7505# Check for command to grab the raw symbol name followed by C symbol from nm.
7506{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7507echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7508if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7510else
7511
7512# These are sane defaults that work on at least a few old systems.
7513# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7514
7515# Character class describing NM global symbol codes.
7516symcode='[BCDEGRST]'
7517
7518# Regexp to match symbols that can be accessed directly from C.
7519sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7520
7521# Transform an extracted symbol line into a proper C declaration
7522lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7523
7524# Transform an extracted symbol line into symbol name and symbol address
7525lt_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'"
7526
7527# Define system-specific variables.
7528case $host_os in
7529aix*)
7530 symcode='[BCDT]'
7531 ;;
7532cygwin* | mingw* | pw32*)
7533 symcode='[ABCDGISTW]'
7534 ;;
7535hpux*) # Its linker distinguishes data from code symbols
7536 if test "$host_cpu" = ia64; then
7537 symcode='[ABCDEGRST]'
7538 fi
7539 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7540 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'"
7541 ;;
7542linux* | k*bsd*-gnu)
7543 if test "$host_cpu" = ia64; then
7544 symcode='[ABCDGIRSTW]'
7545 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7546 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'"
7547 fi
7548 ;;
7549irix* | nonstopux*)
7550 symcode='[BCDEGRST]'
7551 ;;
7552osf*)
7553 symcode='[BCDEGQRST]'
7554 ;;
7555solaris*)
7556 symcode='[BDRT]'
7557 ;;
7558sco3.2v5*)
7559 symcode='[DT]'
7560 ;;
7561sysv4.2uw2*)
7562 symcode='[DT]'
7563 ;;
7564sysv5* | sco5v6* | unixware* | OpenUNIX*)
7565 symcode='[ABDT]'
7566 ;;
7567sysv4)
7568 symcode='[DFNSTU]'
7569 ;;
7570esac
7571
7572# Handle CRLF in mingw tool chain
7573opt_cr=
7574case $build_os in
7575mingw*)
7576 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7577 ;;
7578esac
7579
7580# If we're using GNU nm, then use its standard symbol codes.
7581case `$NM -V 2>&1` in
7582*GNU* | *'with BFD'*)
7583 symcode='[ABCDGIRSTW]' ;;
7584esac
7585
7586# Try without a prefix undercore, then with it.
7587for ac_symprfx in "" "_"; do
7588
7589 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7590 symxfrm="\\1 $ac_symprfx\\2 \\2"
7591
7592 # Write the raw and C identifiers.
7593 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7594
7595 # Check to see that the pipe works correctly.
7596 pipe_works=no
7597
7598 rm -f conftest*
7599 cat > conftest.$ac_ext <<EOF
7600#ifdef __cplusplus
7601extern "C" {
7602#endif
7603char nm_test_var;
7604void nm_test_func(){}
7605#ifdef __cplusplus
7606}
7607#endif
7608int main(){nm_test_var='a';nm_test_func();return(0);}
7609EOF
7610
7611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7612 (eval $ac_compile) 2>&5
7613 ac_status=$?
7614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615 (exit $ac_status); }; then
7616 # Now try to grab the symbols.
7617 nlist=conftest.nm
7618 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7619 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7620 ac_status=$?
7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); } && test -s "$nlist"; then
7623 # Try sorting and uniquifying the output.
7624 if sort "$nlist" | uniq > "$nlist"T; then
7625 mv -f "$nlist"T "$nlist"
7626 else
7627 rm -f "$nlist"T
7628 fi
7629
7630 # Make sure that we snagged all the symbols we need.
7631 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7632 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7633 cat <<EOF > conftest.$ac_ext
7634#ifdef __cplusplus
7635extern "C" {
7636#endif
7637
7638EOF
7639 # Now generate the symbol file.
7640 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7641
7642 cat <<EOF >> conftest.$ac_ext
7643#if defined (__STDC__) && __STDC__
7644# define lt_ptr_t void *
7645#else
7646# define lt_ptr_t char *
7647# define const
7648#endif
7649
7650/* The mapping between symbol names and symbols. */
7651const struct {
7652 const char *name;
7653 lt_ptr_t address;
7654}
7655lt_preloaded_symbols[] =
7656{
7657EOF
7658 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7659 cat <<\EOF >> conftest.$ac_ext
7660 {0, (lt_ptr_t) 0}
7661};
7662
7663#ifdef __cplusplus
7664}
7665#endif
7666EOF
7667 # Now try linking the two files.
7668 mv conftest.$ac_objext conftstm.$ac_objext
7669 lt_save_LIBS="$LIBS"
7670 lt_save_CFLAGS="$CFLAGS"
7671 LIBS="conftstm.$ac_objext"
7672 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7674 (eval $ac_link) 2>&5
7675 ac_status=$?
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7678 pipe_works=yes
7679 fi
7680 LIBS="$lt_save_LIBS"
7681 CFLAGS="$lt_save_CFLAGS"
7682 else
7683 echo "cannot find nm_test_func in $nlist" >&5
7684 fi
7685 else
7686 echo "cannot find nm_test_var in $nlist" >&5
7687 fi
7688 else
7689 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7690 fi
7691 else
7692 echo "$progname: failed program was:" >&5
7693 cat conftest.$ac_ext >&5
7694 fi
56efe974 7695 rm -rf conftest* conftst*
b57f37fb
WP
7696
7697 # Do not use the global_symbol_pipe unless it works.
7698 if test "$pipe_works" = yes; then
7699 break
7700 else
7701 lt_cv_sys_global_symbol_pipe=
7702 fi
7703done
7704
7705fi
7706
7707if test -z "$lt_cv_sys_global_symbol_pipe"; then
7708 lt_cv_sys_global_symbol_to_cdecl=
7709fi
7710if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7711 { echo "$as_me:$LINENO: result: failed" >&5
7712echo "${ECHO_T}failed" >&6; }
7713else
7714 { echo "$as_me:$LINENO: result: ok" >&5
7715echo "${ECHO_T}ok" >&6; }
7716fi
7717
7718{ echo "$as_me:$LINENO: checking for objdir" >&5
7719echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7720if test "${lt_cv_objdir+set}" = set; then
7721 echo $ECHO_N "(cached) $ECHO_C" >&6
7722else
7723 rm -f .libs 2>/dev/null
7724mkdir .libs 2>/dev/null
7725if test -d .libs; then
7726 lt_cv_objdir=.libs
7727else
7728 # MS-DOS does not allow filenames that begin with a dot.
7729 lt_cv_objdir=_libs
7730fi
7731rmdir .libs 2>/dev/null
7732fi
7733{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7734echo "${ECHO_T}$lt_cv_objdir" >&6; }
7735objdir=$lt_cv_objdir
7736
7737
7738
7739
7740
7741case $host_os in
7742aix3*)
7743 # AIX sometimes has problems with the GCC collect2 program. For some
7744 # reason, if we set the COLLECT_NAMES environment variable, the problems
7745 # vanish in a puff of smoke.
7746 if test "X${COLLECT_NAMES+set}" != Xset; then
7747 COLLECT_NAMES=
7748 export COLLECT_NAMES
7749 fi
7750 ;;
7751esac
7752
7753# Sed substitution that helps us do robust quoting. It backslashifies
7754# metacharacters that are still active within double-quoted strings.
7755Xsed='sed -e 1s/^X//'
7756sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7757
7758# Same as above, but do not quote variable references.
7759double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7760
7761# Sed substitution to delay expansion of an escaped shell variable in a
7762# double_quote_subst'ed string.
7763delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7764
7765# Sed substitution to avoid accidental globbing in evaled expressions
7766no_glob_subst='s/\*/\\\*/g'
7767
7768# Constants:
7769rm="rm -f"
7770
7771# Global variables:
7772default_ofile=libtool
7773can_build_shared=yes
7774
7775# All known linkers require a `.a' archive for static linking (except MSVC,
7776# which needs '.lib').
7777libext=a
7778ltmain="$ac_aux_dir/ltmain.sh"
7779ofile="$default_ofile"
7780with_gnu_ld="$lt_cv_prog_gnu_ld"
7781
7782if test -n "$ac_tool_prefix"; then
7783 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7784set dummy ${ac_tool_prefix}ar; ac_word=$2
7785{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7787if test "${ac_cv_prog_AR+set}" = set; then
7788 echo $ECHO_N "(cached) $ECHO_C" >&6
7789else
7790 if test -n "$AR"; then
7791 ac_cv_prog_AR="$AR" # Let the user override the test.
7792else
7793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794for as_dir in $PATH
7795do
7796 IFS=$as_save_IFS
7797 test -z "$as_dir" && as_dir=.
7798 for ac_exec_ext in '' $ac_executable_extensions; do
7799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7800 ac_cv_prog_AR="${ac_tool_prefix}ar"
7801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7802 break 2
7803 fi
7804done
7805done
7806IFS=$as_save_IFS
7807
7808fi
7809fi
7810AR=$ac_cv_prog_AR
7811if test -n "$AR"; then
7812 { echo "$as_me:$LINENO: result: $AR" >&5
7813echo "${ECHO_T}$AR" >&6; }
7814else
7815 { echo "$as_me:$LINENO: result: no" >&5
7816echo "${ECHO_T}no" >&6; }
7817fi
7818
7819
7820fi
7821if test -z "$ac_cv_prog_AR"; then
7822 ac_ct_AR=$AR
7823 # Extract the first word of "ar", so it can be a program name with args.
7824set dummy ar; ac_word=$2
7825{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7827if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7828 echo $ECHO_N "(cached) $ECHO_C" >&6
7829else
7830 if test -n "$ac_ct_AR"; then
7831 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7832else
7833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7834for as_dir in $PATH
7835do
7836 IFS=$as_save_IFS
7837 test -z "$as_dir" && as_dir=.
7838 for ac_exec_ext in '' $ac_executable_extensions; do
7839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7840 ac_cv_prog_ac_ct_AR="ar"
7841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7842 break 2
7843 fi
7844done
7845done
7846IFS=$as_save_IFS
7847
7848fi
7849fi
7850ac_ct_AR=$ac_cv_prog_ac_ct_AR
7851if test -n "$ac_ct_AR"; then
7852 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7853echo "${ECHO_T}$ac_ct_AR" >&6; }
7854else
7855 { echo "$as_me:$LINENO: result: no" >&5
7856echo "${ECHO_T}no" >&6; }
7857fi
7858
7859 if test "x$ac_ct_AR" = x; then
7860 AR="false"
7861 else
7862 case $cross_compiling:$ac_tool_warned in
7863yes:)
7864{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7865whose name does not start with the host triplet. If you think this
7866configuration is useful to you, please write to autoconf@gnu.org." >&5
7867echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7868whose name does not start with the host triplet. If you think this
7869configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7870ac_tool_warned=yes ;;
7871esac
7872 AR=$ac_ct_AR
7873 fi
7874else
7875 AR="$ac_cv_prog_AR"
7876fi
7877
7878if test -n "$ac_tool_prefix"; then
7879 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7880set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7881{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7883if test "${ac_cv_prog_RANLIB+set}" = set; then
7884 echo $ECHO_N "(cached) $ECHO_C" >&6
7885else
7886 if test -n "$RANLIB"; then
7887 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7888else
7889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7890for as_dir in $PATH
7891do
7892 IFS=$as_save_IFS
7893 test -z "$as_dir" && as_dir=.
7894 for ac_exec_ext in '' $ac_executable_extensions; do
7895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7896 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7898 break 2
7899 fi
7900done
7901done
7902IFS=$as_save_IFS
7903
7904fi
7905fi
7906RANLIB=$ac_cv_prog_RANLIB
7907if test -n "$RANLIB"; then
7908 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7909echo "${ECHO_T}$RANLIB" >&6; }
7910else
7911 { echo "$as_me:$LINENO: result: no" >&5
7912echo "${ECHO_T}no" >&6; }
7913fi
7914
7915
7916fi
7917if test -z "$ac_cv_prog_RANLIB"; then
7918 ac_ct_RANLIB=$RANLIB
7919 # Extract the first word of "ranlib", so it can be a program name with args.
7920set dummy ranlib; ac_word=$2
7921{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7923if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7924 echo $ECHO_N "(cached) $ECHO_C" >&6
7925else
7926 if test -n "$ac_ct_RANLIB"; then
7927 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7928else
7929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7930for as_dir in $PATH
7931do
7932 IFS=$as_save_IFS
7933 test -z "$as_dir" && as_dir=.
7934 for ac_exec_ext in '' $ac_executable_extensions; do
7935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7936 ac_cv_prog_ac_ct_RANLIB="ranlib"
7937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7938 break 2
7939 fi
7940done
7941done
7942IFS=$as_save_IFS
7943
7944fi
7945fi
7946ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7947if test -n "$ac_ct_RANLIB"; then
7948 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7949echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7950else
7951 { echo "$as_me:$LINENO: result: no" >&5
7952echo "${ECHO_T}no" >&6; }
7953fi
7954
7955 if test "x$ac_ct_RANLIB" = x; then
7956 RANLIB=":"
7957 else
7958 case $cross_compiling:$ac_tool_warned in
7959yes:)
7960{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7961whose name does not start with the host triplet. If you think this
7962configuration is useful to you, please write to autoconf@gnu.org." >&5
7963echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7964whose name does not start with the host triplet. If you think this
7965configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7966ac_tool_warned=yes ;;
7967esac
7968 RANLIB=$ac_ct_RANLIB
7969 fi
7970else
7971 RANLIB="$ac_cv_prog_RANLIB"
7972fi
7973
7974if test -n "$ac_tool_prefix"; then
7975 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7976set dummy ${ac_tool_prefix}strip; ac_word=$2
7977{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7979if test "${ac_cv_prog_STRIP+set}" = set; then
7980 echo $ECHO_N "(cached) $ECHO_C" >&6
7981else
7982 if test -n "$STRIP"; then
7983 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7984else
7985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7986for as_dir in $PATH
7987do
7988 IFS=$as_save_IFS
7989 test -z "$as_dir" && as_dir=.
7990 for ac_exec_ext in '' $ac_executable_extensions; do
7991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7992 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7994 break 2
7995 fi
7996done
7997done
7998IFS=$as_save_IFS
7999
8000fi
8001fi
8002STRIP=$ac_cv_prog_STRIP
8003if test -n "$STRIP"; then
8004 { echo "$as_me:$LINENO: result: $STRIP" >&5
8005echo "${ECHO_T}$STRIP" >&6; }
8006else
8007 { echo "$as_me:$LINENO: result: no" >&5
8008echo "${ECHO_T}no" >&6; }
8009fi
8010
8011
8012fi
8013if test -z "$ac_cv_prog_STRIP"; then
8014 ac_ct_STRIP=$STRIP
8015 # Extract the first word of "strip", so it can be a program name with args.
8016set dummy strip; ac_word=$2
8017{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8019if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8020 echo $ECHO_N "(cached) $ECHO_C" >&6
8021else
8022 if test -n "$ac_ct_STRIP"; then
8023 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8024else
8025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026for as_dir in $PATH
8027do
8028 IFS=$as_save_IFS
8029 test -z "$as_dir" && as_dir=.
8030 for ac_exec_ext in '' $ac_executable_extensions; do
8031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8032 ac_cv_prog_ac_ct_STRIP="strip"
8033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8034 break 2
8035 fi
8036done
8037done
8038IFS=$as_save_IFS
8039
8040fi
8041fi
8042ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8043if test -n "$ac_ct_STRIP"; then
8044 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8045echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8046else
8047 { echo "$as_me:$LINENO: result: no" >&5
8048echo "${ECHO_T}no" >&6; }
8049fi
8050
8051 if test "x$ac_ct_STRIP" = x; then
8052 STRIP=":"
8053 else
8054 case $cross_compiling:$ac_tool_warned in
8055yes:)
8056{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8057whose name does not start with the host triplet. If you think this
8058configuration is useful to you, please write to autoconf@gnu.org." >&5
8059echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8060whose name does not start with the host triplet. If you think this
8061configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8062ac_tool_warned=yes ;;
8063esac
8064 STRIP=$ac_ct_STRIP
8065 fi
8066else
8067 STRIP="$ac_cv_prog_STRIP"
8068fi
8069
8070
8071old_CC="$CC"
8072old_CFLAGS="$CFLAGS"
8073
8074# Set sane defaults for various variables
8075test -z "$AR" && AR=ar
8076test -z "$AR_FLAGS" && AR_FLAGS=cru
8077test -z "$AS" && AS=as
8078test -z "$CC" && CC=cc
8079test -z "$LTCC" && LTCC=$CC
8080test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8081test -z "$DLLTOOL" && DLLTOOL=dlltool
8082test -z "$LD" && LD=ld
8083test -z "$LN_S" && LN_S="ln -s"
8084test -z "$MAGIC_CMD" && MAGIC_CMD=file
8085test -z "$NM" && NM=nm
8086test -z "$SED" && SED=sed
8087test -z "$OBJDUMP" && OBJDUMP=objdump
8088test -z "$RANLIB" && RANLIB=:
8089test -z "$STRIP" && STRIP=:
8090test -z "$ac_objext" && ac_objext=o
8091
8092# Determine commands to create old-style static archives.
8093old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8094old_postinstall_cmds='chmod 644 $oldlib'
8095old_postuninstall_cmds=
8096
8097if test -n "$RANLIB"; then
8098 case $host_os in
8099 openbsd*)
8100 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8101 ;;
8102 *)
8103 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8104 ;;
8105 esac
8106 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8107fi
8108
8109for cc_temp in $compiler""; do
8110 case $cc_temp in
8111 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8112 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8113 \-*) ;;
8114 *) break;;
8115 esac
8116done
8117cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8118
8119
8120# Only perform the check for file, if the check method requires it
8121case $deplibs_check_method in
8122file_magic*)
8123 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8124 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8125echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8126if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8127 echo $ECHO_N "(cached) $ECHO_C" >&6
8128else
8129 case $MAGIC_CMD in
8130[\\/*] | ?:[\\/]*)
8131 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8132 ;;
8133*)
8134 lt_save_MAGIC_CMD="$MAGIC_CMD"
8135 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8136 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8137 for ac_dir in $ac_dummy; do
8138 IFS="$lt_save_ifs"
8139 test -z "$ac_dir" && ac_dir=.
8140 if test -f $ac_dir/${ac_tool_prefix}file; then
8141 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8142 if test -n "$file_magic_test_file"; then
8143 case $deplibs_check_method in
8144 "file_magic "*)
8145 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8146 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8147 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8148 $EGREP "$file_magic_regex" > /dev/null; then
8149 :
8150 else
8151 cat <<EOF 1>&2
8152
8153*** Warning: the command libtool uses to detect shared libraries,
8154*** $file_magic_cmd, produces output that libtool cannot recognize.
8155*** The result is that libtool may fail to recognize shared libraries
8156*** as such. This will affect the creation of libtool libraries that
8157*** depend on shared libraries, but programs linked with such libtool
8158*** libraries will work regardless of this problem. Nevertheless, you
8159*** may want to report the problem to your system manager and/or to
8160*** bug-libtool@gnu.org
8161
8162EOF
8163 fi ;;
8164 esac
8165 fi
8166 break
8167 fi
8168 done
8169 IFS="$lt_save_ifs"
8170 MAGIC_CMD="$lt_save_MAGIC_CMD"
8171 ;;
8172esac
8173fi
8174
8175MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8176if test -n "$MAGIC_CMD"; then
8177 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8178echo "${ECHO_T}$MAGIC_CMD" >&6; }
8179else
8180 { echo "$as_me:$LINENO: result: no" >&5
8181echo "${ECHO_T}no" >&6; }
8182fi
8183
8184if test -z "$lt_cv_path_MAGIC_CMD"; then
8185 if test -n "$ac_tool_prefix"; then
8186 { echo "$as_me:$LINENO: checking for file" >&5
8187echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8188if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8189 echo $ECHO_N "(cached) $ECHO_C" >&6
8190else
8191 case $MAGIC_CMD in
8192[\\/*] | ?:[\\/]*)
8193 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8194 ;;
8195*)
8196 lt_save_MAGIC_CMD="$MAGIC_CMD"
8197 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8198 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8199 for ac_dir in $ac_dummy; do
8200 IFS="$lt_save_ifs"
8201 test -z "$ac_dir" && ac_dir=.
8202 if test -f $ac_dir/file; then
8203 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8204 if test -n "$file_magic_test_file"; then
8205 case $deplibs_check_method in
8206 "file_magic "*)
8207 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8208 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8209 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8210 $EGREP "$file_magic_regex" > /dev/null; then
8211 :
8212 else
8213 cat <<EOF 1>&2
8214
8215*** Warning: the command libtool uses to detect shared libraries,
8216*** $file_magic_cmd, produces output that libtool cannot recognize.
8217*** The result is that libtool may fail to recognize shared libraries
8218*** as such. This will affect the creation of libtool libraries that
8219*** depend on shared libraries, but programs linked with such libtool
8220*** libraries will work regardless of this problem. Nevertheless, you
8221*** may want to report the problem to your system manager and/or to
8222*** bug-libtool@gnu.org
8223
8224EOF
8225 fi ;;
8226 esac
8227 fi
8228 break
8229 fi
8230 done
8231 IFS="$lt_save_ifs"
8232 MAGIC_CMD="$lt_save_MAGIC_CMD"
8233 ;;
8234esac
8235fi
8236
8237MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8238if test -n "$MAGIC_CMD"; then
8239 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8240echo "${ECHO_T}$MAGIC_CMD" >&6; }
8241else
8242 { echo "$as_me:$LINENO: result: no" >&5
8243echo "${ECHO_T}no" >&6; }
8244fi
8245
8246 else
8247 MAGIC_CMD=:
8248 fi
8249fi
8250
8251 fi
8252 ;;
8253esac
8254
56efe974
WP
8255
8256 case $host_os in
8257 rhapsody* | darwin*)
8258 if test -n "$ac_tool_prefix"; then
8259 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8260set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8261{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8263if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
8264 echo $ECHO_N "(cached) $ECHO_C" >&6
8265else
8266 if test -n "$DSYMUTIL"; then
8267 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8268else
8269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270for as_dir in $PATH
8271do
8272 IFS=$as_save_IFS
8273 test -z "$as_dir" && as_dir=.
8274 for ac_exec_ext in '' $ac_executable_extensions; do
8275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8276 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8278 break 2
8279 fi
8280done
8281done
8282IFS=$as_save_IFS
8283
8284fi
8285fi
8286DSYMUTIL=$ac_cv_prog_DSYMUTIL
8287if test -n "$DSYMUTIL"; then
8288 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
8289echo "${ECHO_T}$DSYMUTIL" >&6; }
8290else
8291 { echo "$as_me:$LINENO: result: no" >&5
8292echo "${ECHO_T}no" >&6; }
8293fi
8294
8295
8296fi
8297if test -z "$ac_cv_prog_DSYMUTIL"; then
8298 ac_ct_DSYMUTIL=$DSYMUTIL
8299 # Extract the first word of "dsymutil", so it can be a program name with args.
8300set dummy dsymutil; ac_word=$2
8301{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8303if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
8304 echo $ECHO_N "(cached) $ECHO_C" >&6
8305else
8306 if test -n "$ac_ct_DSYMUTIL"; then
8307 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8308else
8309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310for as_dir in $PATH
8311do
8312 IFS=$as_save_IFS
8313 test -z "$as_dir" && as_dir=.
8314 for ac_exec_ext in '' $ac_executable_extensions; do
8315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8316 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8318 break 2
8319 fi
8320done
8321done
8322IFS=$as_save_IFS
8323
8324fi
8325fi
8326ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8327if test -n "$ac_ct_DSYMUTIL"; then
8328 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
8329echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
8330else
8331 { echo "$as_me:$LINENO: result: no" >&5
8332echo "${ECHO_T}no" >&6; }
8333fi
8334
8335 if test "x$ac_ct_DSYMUTIL" = x; then
8336 DSYMUTIL=":"
8337 else
8338 case $cross_compiling:$ac_tool_warned in
8339yes:)
8340{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8341whose name does not start with the host triplet. If you think this
8342configuration is useful to you, please write to autoconf@gnu.org." >&5
8343echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8344whose name does not start with the host triplet. If you think this
8345configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8346ac_tool_warned=yes ;;
8347esac
8348 DSYMUTIL=$ac_ct_DSYMUTIL
8349 fi
8350else
8351 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8352fi
8353
8354 if test -n "$ac_tool_prefix"; then
8355 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8356set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8357{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8359if test "${ac_cv_prog_NMEDIT+set}" = set; then
8360 echo $ECHO_N "(cached) $ECHO_C" >&6
8361else
8362 if test -n "$NMEDIT"; then
8363 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8364else
8365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366for as_dir in $PATH
8367do
8368 IFS=$as_save_IFS
8369 test -z "$as_dir" && as_dir=.
8370 for ac_exec_ext in '' $ac_executable_extensions; do
8371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8372 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8374 break 2
8375 fi
8376done
8377done
8378IFS=$as_save_IFS
8379
8380fi
8381fi
8382NMEDIT=$ac_cv_prog_NMEDIT
8383if test -n "$NMEDIT"; then
8384 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
8385echo "${ECHO_T}$NMEDIT" >&6; }
8386else
8387 { echo "$as_me:$LINENO: result: no" >&5
8388echo "${ECHO_T}no" >&6; }
8389fi
8390
8391
8392fi
8393if test -z "$ac_cv_prog_NMEDIT"; then
8394 ac_ct_NMEDIT=$NMEDIT
8395 # Extract the first word of "nmedit", so it can be a program name with args.
8396set dummy nmedit; ac_word=$2
8397{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8399if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
8400 echo $ECHO_N "(cached) $ECHO_C" >&6
8401else
8402 if test -n "$ac_ct_NMEDIT"; then
8403 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8404else
8405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8406for as_dir in $PATH
8407do
8408 IFS=$as_save_IFS
8409 test -z "$as_dir" && as_dir=.
8410 for ac_exec_ext in '' $ac_executable_extensions; do
8411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8412 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8414 break 2
8415 fi
8416done
8417done
8418IFS=$as_save_IFS
8419
8420fi
8421fi
8422ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8423if test -n "$ac_ct_NMEDIT"; then
8424 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
8425echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
8426else
8427 { echo "$as_me:$LINENO: result: no" >&5
8428echo "${ECHO_T}no" >&6; }
8429fi
8430
8431 if test "x$ac_ct_NMEDIT" = x; then
8432 NMEDIT=":"
8433 else
8434 case $cross_compiling:$ac_tool_warned in
8435yes:)
8436{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8437whose name does not start with the host triplet. If you think this
8438configuration is useful to you, please write to autoconf@gnu.org." >&5
8439echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8440whose name does not start with the host triplet. If you think this
8441configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8442ac_tool_warned=yes ;;
8443esac
8444 NMEDIT=$ac_ct_NMEDIT
8445 fi
8446else
8447 NMEDIT="$ac_cv_prog_NMEDIT"
8448fi
8449
8450
8451 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8452echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
8453if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8454 echo $ECHO_N "(cached) $ECHO_C" >&6
8455else
8456 lt_cv_apple_cc_single_mod=no
8457 if test -z "${LT_MULTI_MODULE}"; then
8458 # By default we will add the -single_module flag. You can override
8459 # by either setting the environment variable LT_MULTI_MODULE
8460 # non-empty at configure time, or by adding -multi_module to the
8461 # link flags.
8462 echo "int foo(void){return 1;}" > conftest.c
8463 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8464 -dynamiclib ${wl}-single_module conftest.c
8465 if test -f libconftest.dylib; then
8466 lt_cv_apple_cc_single_mod=yes
8467 rm -rf libconftest.dylib*
8468 fi
8469 rm conftest.c
8470 fi
8471fi
8472{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8473echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
8474 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8475echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
8476if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8477 echo $ECHO_N "(cached) $ECHO_C" >&6
8478else
8479 lt_cv_ld_exported_symbols_list=no
8480 save_LDFLAGS=$LDFLAGS
8481 echo "_main" > conftest.sym
8482 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8483 cat >conftest.$ac_ext <<_ACEOF
8484/* confdefs.h. */
8485_ACEOF
8486cat confdefs.h >>conftest.$ac_ext
8487cat >>conftest.$ac_ext <<_ACEOF
8488/* end confdefs.h. */
8489
8490int
8491main ()
8492{
8493
8494 ;
8495 return 0;
8496}
8497_ACEOF
8498rm -f conftest.$ac_objext conftest$ac_exeext
8499if { (ac_try="$ac_link"
8500case "(($ac_try" in
8501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8502 *) ac_try_echo=$ac_try;;
8503esac
8504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8505 (eval "$ac_link") 2>conftest.er1
8506 ac_status=$?
8507 grep -v '^ *+' conftest.er1 >conftest.err
8508 rm -f conftest.er1
8509 cat conftest.err >&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); } && {
8512 test -z "$ac_c_werror_flag" ||
8513 test ! -s conftest.err
8514 } && test -s conftest$ac_exeext &&
8515 $as_test_x conftest$ac_exeext; then
8516 lt_cv_ld_exported_symbols_list=yes
8517else
8518 echo "$as_me: failed program was:" >&5
8519sed 's/^/| /' conftest.$ac_ext >&5
8520
8521 lt_cv_ld_exported_symbols_list=no
8522fi
8523
8524rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8525 conftest$ac_exeext conftest.$ac_ext
8526 LDFLAGS="$save_LDFLAGS"
8527
8528fi
8529{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8530echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8531 case $host_os in
8532 rhapsody* | darwin1.[0123])
8533 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8534 darwin1.*)
8535 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8536 darwin*)
8537 # if running on 10.5 or later, the deployment target defaults
8538 # to the OS version, if on x86, and 10.4, the deployment
8539 # target defaults to 10.4. Don't you love it?
8540 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8541 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8542 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8543 10.[012]*)
8544 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8545 10.*)
8546 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8547 esac
8548 ;;
8549 esac
8550 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8551 _lt_dar_single_mod='$single_module'
8552 fi
8553 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8554 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8555 else
8556 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
8557 fi
8558 if test "$DSYMUTIL" != ":"; then
8559 _lt_dsymutil="~$DSYMUTIL \$lib || :"
8560 else
8561 _lt_dsymutil=
8562 fi
8563 ;;
8564 esac
8565
8566
b57f37fb
WP
8567enable_dlopen=no
8568enable_win32_dll=no
8569
8570# Check whether --enable-libtool-lock was given.
8571if test "${enable_libtool_lock+set}" = set; then
8572 enableval=$enable_libtool_lock;
8573fi
8574
8575test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8576
8577
8578# Check whether --with-pic was given.
8579if test "${with_pic+set}" = set; then
8580 withval=$with_pic; pic_mode="$withval"
8581else
8582 pic_mode=default
8583fi
8584
8585test -z "$pic_mode" && pic_mode=default
8586
8587# Use C for the default configuration in the libtool script
8588tagname=
8589lt_save_CC="$CC"
8590ac_ext=c
8591ac_cpp='$CPP $CPPFLAGS'
8592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8594ac_compiler_gnu=$ac_cv_c_compiler_gnu
8595
8596
8597# Source file extension for C test sources.
8598ac_ext=c
8599
8600# Object file extension for compiled C test sources.
8601objext=o
8602objext=$objext
8603
8604# Code to be used in simple compile tests
8605lt_simple_compile_test_code="int some_variable = 0;"
8606
8607# Code to be used in simple link tests
8608lt_simple_link_test_code='int main(){return(0);}'
8609
8610
8611# If no C compiler was specified, use CC.
8612LTCC=${LTCC-"$CC"}
8613
8614# If no C compiler flags were specified, use CFLAGS.
8615LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8616
8617# Allow CC to be a program name with arguments.
8618compiler=$CC
8619
8620
8621# save warnings/boilerplate of simple test code
8622ac_outfile=conftest.$ac_objext
8623echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8624eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8625_lt_compiler_boilerplate=`cat conftest.err`
8626$rm conftest*
8627
8628ac_outfile=conftest.$ac_objext
8629echo "$lt_simple_link_test_code" >conftest.$ac_ext
8630eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8631_lt_linker_boilerplate=`cat conftest.err`
56efe974 8632$rm -r conftest*
b57f37fb
WP
8633
8634
8635
8636lt_prog_compiler_no_builtin_flag=
8637
8638if test "$GCC" = yes; then
8639 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8640
8641
8642{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8643echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8644if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8645 echo $ECHO_N "(cached) $ECHO_C" >&6
8646else
8647 lt_cv_prog_compiler_rtti_exceptions=no
8648 ac_outfile=conftest.$ac_objext
8649 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8650 lt_compiler_flag="-fno-rtti -fno-exceptions"
8651 # Insert the option either (1) after the last *FLAGS variable, or
8652 # (2) before a word containing "conftest.", or (3) at the end.
8653 # Note that $ac_compile itself does not contain backslashes and begins
8654 # with a dollar sign (not a hyphen), so the echo should work correctly.
8655 # The option is referenced via a variable to avoid confusing sed.
8656 lt_compile=`echo "$ac_compile" | $SED \
8657 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8658 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8659 -e 's:$: $lt_compiler_flag:'`
56efe974 8660 (eval echo "\"\$as_me:8660: $lt_compile\"" >&5)
b57f37fb
WP
8661 (eval "$lt_compile" 2>conftest.err)
8662 ac_status=$?
8663 cat conftest.err >&5
56efe974 8664 echo "$as_me:8664: \$? = $ac_status" >&5
b57f37fb
WP
8665 if (exit $ac_status) && test -s "$ac_outfile"; then
8666 # The compiler can only warn and ignore the option if not recognized
8667 # So say no if there are warnings other than the usual output.
8668 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8669 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8670 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8671 lt_cv_prog_compiler_rtti_exceptions=yes
8672 fi
8673 fi
8674 $rm conftest*
8675
8676fi
8677{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8678echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8679
8680if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8681 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8682else
8683 :
8684fi
8685
8686fi
8687
8688lt_prog_compiler_wl=
8689lt_prog_compiler_pic=
8690lt_prog_compiler_static=
8691
8692{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8693echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8694
8695 if test "$GCC" = yes; then
8696 lt_prog_compiler_wl='-Wl,'
8697 lt_prog_compiler_static='-static'
8698
8699 case $host_os in
8700 aix*)
8701 # All AIX code is PIC.
8702 if test "$host_cpu" = ia64; then
8703 # AIX 5 now supports IA64 processor
8704 lt_prog_compiler_static='-Bstatic'
8705 fi
8706 ;;
8707
8708 amigaos*)
8709 # FIXME: we need at least 68020 code to build shared libraries, but
8710 # adding the `-m68020' flag to GCC prevents building anything better,
8711 # like `-m68040'.
8712 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8713 ;;
8714
8715 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8716 # PIC is the default for these OSes.
8717 ;;
8718
8719 mingw* | cygwin* | pw32* | os2*)
8720 # This hack is so that the source file can tell whether it is being
8721 # built for inclusion in a dll (and should export symbols for example).
8722 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8723 # (--disable-auto-import) libraries
8724 lt_prog_compiler_pic='-DDLL_EXPORT'
8725 ;;
8726
8727 darwin* | rhapsody*)
8728 # PIC is the default on this platform
8729 # Common symbols not allowed in MH_DYLIB files
8730 lt_prog_compiler_pic='-fno-common'
8731 ;;
8732
8733 interix[3-9]*)
8734 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8735 # Instead, we relocate shared libraries at runtime.
8736 ;;
8737
8738 msdosdjgpp*)
8739 # Just because we use GCC doesn't mean we suddenly get shared libraries
8740 # on systems that don't support them.
8741 lt_prog_compiler_can_build_shared=no
8742 enable_shared=no
8743 ;;
8744
8745 sysv4*MP*)
8746 if test -d /usr/nec; then
8747 lt_prog_compiler_pic=-Kconform_pic
8748 fi
8749 ;;
8750
8751 hpux*)
8752 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8753 # not for PA HP-UX.
8754 case $host_cpu in
8755 hppa*64*|ia64*)
8756 # +Z the default
8757 ;;
8758 *)
8759 lt_prog_compiler_pic='-fPIC'
8760 ;;
8761 esac
8762 ;;
8763
8764 *)
8765 lt_prog_compiler_pic='-fPIC'
8766 ;;
8767 esac
8768 else
8769 # PORTME Check for flag to pass linker flags through the system compiler.
8770 case $host_os in
8771 aix*)
8772 lt_prog_compiler_wl='-Wl,'
8773 if test "$host_cpu" = ia64; then
8774 # AIX 5 now supports IA64 processor
8775 lt_prog_compiler_static='-Bstatic'
8776 else
8777 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8778 fi
8779 ;;
8780 darwin*)
8781 # PIC is the default on this platform
8782 # Common symbols not allowed in MH_DYLIB files
8783 case $cc_basename in
8784 xlc*)
8785 lt_prog_compiler_pic='-qnocommon'
8786 lt_prog_compiler_wl='-Wl,'
8787 ;;
8788 esac
8789 ;;
8790
8791 mingw* | cygwin* | pw32* | os2*)
8792 # This hack is so that the source file can tell whether it is being
8793 # built for inclusion in a dll (and should export symbols for example).
8794 lt_prog_compiler_pic='-DDLL_EXPORT'
8795 ;;
8796
8797 hpux9* | hpux10* | hpux11*)
8798 lt_prog_compiler_wl='-Wl,'
8799 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8800 # not for PA HP-UX.
8801 case $host_cpu in
8802 hppa*64*|ia64*)
8803 # +Z the default
8804 ;;
8805 *)
8806 lt_prog_compiler_pic='+Z'
8807 ;;
8808 esac
8809 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8810 lt_prog_compiler_static='${wl}-a ${wl}archive'
8811 ;;
8812
8813 irix5* | irix6* | nonstopux*)
8814 lt_prog_compiler_wl='-Wl,'
8815 # PIC (with -KPIC) is the default.
8816 lt_prog_compiler_static='-non_shared'
8817 ;;
8818
8819 newsos6)
8820 lt_prog_compiler_pic='-KPIC'
8821 lt_prog_compiler_static='-Bstatic'
8822 ;;
8823
8824 linux* | k*bsd*-gnu)
8825 case $cc_basename in
8826 icc* | ecc*)
8827 lt_prog_compiler_wl='-Wl,'
8828 lt_prog_compiler_pic='-KPIC'
8829 lt_prog_compiler_static='-static'
8830 ;;
8831 pgcc* | pgf77* | pgf90* | pgf95*)
8832 # Portland Group compilers (*not* the Pentium gcc compiler,
8833 # which looks to be a dead project)
8834 lt_prog_compiler_wl='-Wl,'
8835 lt_prog_compiler_pic='-fpic'
8836 lt_prog_compiler_static='-Bstatic'
8837 ;;
8838 ccc*)
8839 lt_prog_compiler_wl='-Wl,'
8840 # All Alpha code is PIC.
8841 lt_prog_compiler_static='-non_shared'
8842 ;;
8843 *)
8844 case `$CC -V 2>&1 | sed 5q` in
8845 *Sun\ C*)
8846 # Sun C 5.9
8847 lt_prog_compiler_pic='-KPIC'
8848 lt_prog_compiler_static='-Bstatic'
8849 lt_prog_compiler_wl='-Wl,'
8850 ;;
8851 *Sun\ F*)
8852 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8853 lt_prog_compiler_pic='-KPIC'
8854 lt_prog_compiler_static='-Bstatic'
8855 lt_prog_compiler_wl=''
8856 ;;
8857 esac
8858 ;;
8859 esac
8860 ;;
8861
8862 osf3* | osf4* | osf5*)
8863 lt_prog_compiler_wl='-Wl,'
8864 # All OSF/1 code is PIC.
8865 lt_prog_compiler_static='-non_shared'
8866 ;;
8867
8868 rdos*)
8869 lt_prog_compiler_static='-non_shared'
8870 ;;
8871
8872 solaris*)
8873 lt_prog_compiler_pic='-KPIC'
8874 lt_prog_compiler_static='-Bstatic'
8875 case $cc_basename in
8876 f77* | f90* | f95*)
8877 lt_prog_compiler_wl='-Qoption ld ';;
8878 *)
8879 lt_prog_compiler_wl='-Wl,';;
8880 esac
8881 ;;
8882
8883 sunos4*)
8884 lt_prog_compiler_wl='-Qoption ld '
8885 lt_prog_compiler_pic='-PIC'
8886 lt_prog_compiler_static='-Bstatic'
8887 ;;
8888
8889 sysv4 | sysv4.2uw2* | sysv4.3*)
8890 lt_prog_compiler_wl='-Wl,'
8891 lt_prog_compiler_pic='-KPIC'
8892 lt_prog_compiler_static='-Bstatic'
8893 ;;
8894
8895 sysv4*MP*)
8896 if test -d /usr/nec ;then
8897 lt_prog_compiler_pic='-Kconform_pic'
8898 lt_prog_compiler_static='-Bstatic'
8899 fi
8900 ;;
8901
8902 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8903 lt_prog_compiler_wl='-Wl,'
8904 lt_prog_compiler_pic='-KPIC'
8905 lt_prog_compiler_static='-Bstatic'
8906 ;;
8907
8908 unicos*)
8909 lt_prog_compiler_wl='-Wl,'
8910 lt_prog_compiler_can_build_shared=no
8911 ;;
8912
8913 uts4*)
8914 lt_prog_compiler_pic='-pic'
8915 lt_prog_compiler_static='-Bstatic'
8916 ;;
8917
8918 *)
8919 lt_prog_compiler_can_build_shared=no
8920 ;;
8921 esac
8922 fi
8923
8924{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8925echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8926
8927#
8928# Check to make sure the PIC flag actually works.
8929#
8930if test -n "$lt_prog_compiler_pic"; then
8931
8932{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8933echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
56efe974 8934if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
b57f37fb
WP
8935 echo $ECHO_N "(cached) $ECHO_C" >&6
8936else
56efe974 8937 lt_cv_prog_compiler_pic_works=no
b57f37fb
WP
8938 ac_outfile=conftest.$ac_objext
8939 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8940 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8941 # Insert the option either (1) after the last *FLAGS variable, or
8942 # (2) before a word containing "conftest.", or (3) at the end.
8943 # Note that $ac_compile itself does not contain backslashes and begins
8944 # with a dollar sign (not a hyphen), so the echo should work correctly.
8945 # The option is referenced via a variable to avoid confusing sed.
8946 lt_compile=`echo "$ac_compile" | $SED \
8947 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8948 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8949 -e 's:$: $lt_compiler_flag:'`
56efe974 8950 (eval echo "\"\$as_me:8950: $lt_compile\"" >&5)
b57f37fb
WP
8951 (eval "$lt_compile" 2>conftest.err)
8952 ac_status=$?
8953 cat conftest.err >&5
56efe974 8954 echo "$as_me:8954: \$? = $ac_status" >&5
b57f37fb
WP
8955 if (exit $ac_status) && test -s "$ac_outfile"; then
8956 # The compiler can only warn and ignore the option if not recognized
8957 # So say no if there are warnings other than the usual output.
8958 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8959 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8960 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
56efe974 8961 lt_cv_prog_compiler_pic_works=yes
b57f37fb
WP
8962 fi
8963 fi
8964 $rm conftest*
8965
8966fi
56efe974
WP
8967{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8968echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
b57f37fb 8969
56efe974 8970if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
b57f37fb
WP
8971 case $lt_prog_compiler_pic in
8972 "" | " "*) ;;
8973 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8974 esac
8975else
8976 lt_prog_compiler_pic=
8977 lt_prog_compiler_can_build_shared=no
8978fi
8979
8980fi
8981case $host_os in
8982 # For platforms which do not support PIC, -DPIC is meaningless:
8983 *djgpp*)
8984 lt_prog_compiler_pic=
8985 ;;
8986 *)
8987 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8988 ;;
8989esac
8990
8991#
8992# Check to make sure the static flag actually works.
8993#
8994wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8995{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8996echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
56efe974 8997if test "${lt_cv_prog_compiler_static_works+set}" = set; then
b57f37fb
WP
8998 echo $ECHO_N "(cached) $ECHO_C" >&6
8999else
56efe974 9000 lt_cv_prog_compiler_static_works=no
b57f37fb
WP
9001 save_LDFLAGS="$LDFLAGS"
9002 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9003 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9004 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9005 # The linker can only warn and ignore the option if not recognized
9006 # So say no if there are warnings
9007 if test -s conftest.err; then
9008 # Append any errors to the config.log.
9009 cat conftest.err 1>&5
9010 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9011 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9012 if diff conftest.exp conftest.er2 >/dev/null; then
56efe974 9013 lt_cv_prog_compiler_static_works=yes
b57f37fb
WP
9014 fi
9015 else
56efe974 9016 lt_cv_prog_compiler_static_works=yes
b57f37fb
WP
9017 fi
9018 fi
56efe974 9019 $rm -r conftest*
b57f37fb
WP
9020 LDFLAGS="$save_LDFLAGS"
9021
9022fi
56efe974
WP
9023{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9024echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
b57f37fb 9025
56efe974 9026if test x"$lt_cv_prog_compiler_static_works" = xyes; then
b57f37fb
WP
9027 :
9028else
9029 lt_prog_compiler_static=
9030fi
9031
9032
9033{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9034echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9035if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9036 echo $ECHO_N "(cached) $ECHO_C" >&6
9037else
9038 lt_cv_prog_compiler_c_o=no
9039 $rm -r conftest 2>/dev/null
9040 mkdir conftest
9041 cd conftest
9042 mkdir out
9043 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9044
9045 lt_compiler_flag="-o out/conftest2.$ac_objext"
9046 # Insert the option either (1) after the last *FLAGS variable, or
9047 # (2) before a word containing "conftest.", or (3) at the end.
9048 # Note that $ac_compile itself does not contain backslashes and begins
9049 # with a dollar sign (not a hyphen), so the echo should work correctly.
9050 lt_compile=`echo "$ac_compile" | $SED \
9051 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9052 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9053 -e 's:$: $lt_compiler_flag:'`
56efe974 9054 (eval echo "\"\$as_me:9054: $lt_compile\"" >&5)
b57f37fb
WP
9055 (eval "$lt_compile" 2>out/conftest.err)
9056 ac_status=$?
9057 cat out/conftest.err >&5
56efe974 9058 echo "$as_me:9058: \$? = $ac_status" >&5
b57f37fb
WP
9059 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9060 then
9061 # The compiler can only warn and ignore the option if not recognized
9062 # So say no if there are warnings
9063 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9064 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9065 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9066 lt_cv_prog_compiler_c_o=yes
9067 fi
9068 fi
9069 chmod u+w . 2>&5
9070 $rm conftest*
9071 # SGI C++ compiler will create directory out/ii_files/ for
9072 # template instantiation
9073 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9074 $rm out/* && rmdir out
9075 cd ..
9076 rmdir conftest
9077 $rm conftest*
9078
9079fi
9080{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9081echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9082
9083
9084hard_links="nottested"
9085if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9086 # do not overwrite the value of need_locks provided by the user
9087 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9088echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9089 hard_links=yes
9090 $rm conftest*
9091 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9092 touch conftest.a
9093 ln conftest.a conftest.b 2>&5 || hard_links=no
9094 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9095 { echo "$as_me:$LINENO: result: $hard_links" >&5
9096echo "${ECHO_T}$hard_links" >&6; }
9097 if test "$hard_links" = no; then
9098 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9099echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9100 need_locks=warn
9101 fi
9102else
9103 need_locks=no
9104fi
9105
9106{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9107echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9108
9109 runpath_var=
9110 allow_undefined_flag=
9111 enable_shared_with_static_runtimes=no
9112 archive_cmds=
9113 archive_expsym_cmds=
9114 old_archive_From_new_cmds=
9115 old_archive_from_expsyms_cmds=
9116 export_dynamic_flag_spec=
9117 whole_archive_flag_spec=
9118 thread_safe_flag_spec=
9119 hardcode_libdir_flag_spec=
9120 hardcode_libdir_flag_spec_ld=
9121 hardcode_libdir_separator=
9122 hardcode_direct=no
9123 hardcode_minus_L=no
9124 hardcode_shlibpath_var=unsupported
9125 link_all_deplibs=unknown
9126 hardcode_automatic=no
9127 module_cmds=
9128 module_expsym_cmds=
9129 always_export_symbols=no
9130 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9131 # include_expsyms should be a list of space-separated symbols to be *always*
9132 # included in the symbol list
9133 include_expsyms=
9134 # exclude_expsyms can be an extended regexp of symbols to exclude
9135 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9136 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9137 # as well as any symbol that contains `d'.
56efe974 9138 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
b57f37fb
WP
9139 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9140 # platforms (ab)use it in PIC code, but their linkers get confused if
9141 # the symbol is explicitly referenced. Since portable code cannot
9142 # rely on this symbol name, it's probably fine to never include it in
9143 # preloaded symbol tables.
56efe974 9144 # Exclude shared library initialization/finalization symbols.
b57f37fb
WP
9145 extract_expsyms_cmds=
9146 # Just being paranoid about ensuring that cc_basename is set.
9147 for cc_temp in $compiler""; do
9148 case $cc_temp in
9149 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9150 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9151 \-*) ;;
9152 *) break;;
9153 esac
9154done
9155cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9156
9157 case $host_os in
9158 cygwin* | mingw* | pw32*)
9159 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9160 # When not using gcc, we currently assume that we are using
9161 # Microsoft Visual C++.
9162 if test "$GCC" != yes; then
9163 with_gnu_ld=no
9164 fi
9165 ;;
9166 interix*)
9167 # we just hope/assume this is gcc and not c89 (= MSVC++)
9168 with_gnu_ld=yes
9169 ;;
9170 openbsd*)
9171 with_gnu_ld=no
9172 ;;
9173 esac
9174
9175 ld_shlibs=yes
9176 if test "$with_gnu_ld" = yes; then
9177 # If archive_cmds runs LD, not CC, wlarc should be empty
9178 wlarc='${wl}'
9179
9180 # Set some defaults for GNU ld with shared library support. These
9181 # are reset later if shared libraries are not supported. Putting them
9182 # here allows them to be overridden if necessary.
9183 runpath_var=LD_RUN_PATH
9184 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9185 export_dynamic_flag_spec='${wl}--export-dynamic'
9186 # ancient GNU ld didn't support --whole-archive et. al.
9187 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9188 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9189 else
9190 whole_archive_flag_spec=
9191 fi
9192 supports_anon_versioning=no
9193 case `$LD -v 2>/dev/null` in
9194 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9195 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9196 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9197 *\ 2.11.*) ;; # other 2.11 versions
9198 *) supports_anon_versioning=yes ;;
9199 esac
9200
9201 # See if GNU ld supports shared libraries.
9202 case $host_os in
56efe974 9203 aix[3-9]*)
b57f37fb
WP
9204 # On AIX/PPC, the GNU linker is very broken
9205 if test "$host_cpu" != ia64; then
9206 ld_shlibs=no
9207 cat <<EOF 1>&2
9208
9209*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9210*** to be unable to reliably create shared libraries on AIX.
9211*** Therefore, libtool is disabling shared libraries support. If you
9212*** really care for shared libraries, you may want to modify your PATH
9213*** so that a non-GNU linker is found, and then restart.
9214
9215EOF
9216 fi
9217 ;;
9218
9219 amigaos*)
9220 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)'
9221 hardcode_libdir_flag_spec='-L$libdir'
9222 hardcode_minus_L=yes
9223
9224 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9225 # that the semantics of dynamic libraries on AmigaOS, at least up
9226 # to version 4, is to share data among multiple programs linked
9227 # with the same dynamic library. Since this doesn't match the
9228 # behavior of shared libraries on other platforms, we can't use
9229 # them.
9230 ld_shlibs=no
9231 ;;
9232
9233 beos*)
9234 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9235 allow_undefined_flag=unsupported
9236 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9237 # support --undefined. This deserves some investigation. FIXME
9238 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9239 else
9240 ld_shlibs=no
9241 fi
9242 ;;
9243
9244 cygwin* | mingw* | pw32*)
9245 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9246 # as there is no search path for DLLs.
9247 hardcode_libdir_flag_spec='-L$libdir'
9248 allow_undefined_flag=unsupported
9249 always_export_symbols=no
9250 enable_shared_with_static_runtimes=yes
9251 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9252
9253 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9254 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9255 # If the export-symbols file already is a .def file (1st line
9256 # is EXPORTS), use it as is; otherwise, prepend...
9257 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9258 cp $export_symbols $output_objdir/$soname.def;
9259 else
9260 echo EXPORTS > $output_objdir/$soname.def;
9261 cat $export_symbols >> $output_objdir/$soname.def;
9262 fi~
9263 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9264 else
9265 ld_shlibs=no
9266 fi
9267 ;;
9268
9269 interix[3-9]*)
9270 hardcode_direct=no
9271 hardcode_shlibpath_var=no
9272 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9273 export_dynamic_flag_spec='${wl}-E'
9274 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9275 # Instead, shared libraries are loaded at an image base (0x10000000 by
9276 # default) and relocated if they conflict, which is a slow very memory
9277 # consuming and fragmenting process. To avoid this, we pick a random,
9278 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9279 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9280 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9281 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'
9282 ;;
9283
9284 gnu* | linux* | k*bsd*-gnu)
9285 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9286 tmp_addflag=
9287 case $cc_basename,$host_cpu in
9288 pgcc*) # Portland Group C compiler
9289 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'
9290 tmp_addflag=' $pic_flag'
9291 ;;
9292 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9293 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'
9294 tmp_addflag=' $pic_flag -Mnomain' ;;
9295 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9296 tmp_addflag=' -i_dynamic' ;;
9297 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9298 tmp_addflag=' -i_dynamic -nofor_main' ;;
9299 ifc* | ifort*) # Intel Fortran compiler
9300 tmp_addflag=' -nofor_main' ;;
9301 esac
9302 case `$CC -V 2>&1 | sed 5q` in
9303 *Sun\ C*) # Sun C 5.9
9304 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'
9305 tmp_sharedflag='-G' ;;
9306 *Sun\ F*) # Sun Fortran 8.3
9307 tmp_sharedflag='-G' ;;
9308 *)
9309 tmp_sharedflag='-shared' ;;
9310 esac
9311 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9312
9313 if test $supports_anon_versioning = yes; then
9314 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9315 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9316 $echo "local: *; };" >> $output_objdir/$libname.ver~
9317 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9318 fi
9319 link_all_deplibs=no
9320 else
9321 ld_shlibs=no
9322 fi
9323 ;;
9324
9325 netbsd* | netbsdelf*-gnu)
9326 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9327 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9328 wlarc=
9329 else
9330 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9331 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9332 fi
9333 ;;
9334
9335 solaris*)
9336 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9337 ld_shlibs=no
9338 cat <<EOF 1>&2
9339
9340*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9341*** create shared libraries on Solaris systems. Therefore, libtool
9342*** is disabling shared libraries support. We urge you to upgrade GNU
9343*** binutils to release 2.9.1 or newer. Another option is to modify
9344*** your PATH or compiler configuration so that the native linker is
9345*** used, and then restart.
9346
9347EOF
9348 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9349 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9350 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9351 else
9352 ld_shlibs=no
9353 fi
9354 ;;
9355
9356 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9357 case `$LD -v 2>&1` in
9358 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9359 ld_shlibs=no
9360 cat <<_LT_EOF 1>&2
9361
9362*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9363*** reliably create shared libraries on SCO systems. Therefore, libtool
9364*** is disabling shared libraries support. We urge you to upgrade GNU
9365*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9366*** your PATH or compiler configuration so that the native linker is
9367*** used, and then restart.
9368
9369_LT_EOF
9370 ;;
9371 *)
9372 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9373 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9374 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9375 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9376 else
9377 ld_shlibs=no
9378 fi
9379 ;;
9380 esac
9381 ;;
9382
9383 sunos4*)
9384 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9385 wlarc=
9386 hardcode_direct=yes
9387 hardcode_shlibpath_var=no
9388 ;;
9389
9390 *)
9391 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9392 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9393 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9394 else
9395 ld_shlibs=no
9396 fi
9397 ;;
9398 esac
9399
9400 if test "$ld_shlibs" = no; then
9401 runpath_var=
9402 hardcode_libdir_flag_spec=
9403 export_dynamic_flag_spec=
9404 whole_archive_flag_spec=
9405 fi
9406 else
9407 # PORTME fill in a description of your system's linker (not GNU ld)
9408 case $host_os in
9409 aix3*)
9410 allow_undefined_flag=unsupported
9411 always_export_symbols=yes
9412 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'
9413 # Note: this linker hardcodes the directories in LIBPATH if there
9414 # are no directories specified by -L.
9415 hardcode_minus_L=yes
9416 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9417 # Neither direct hardcoding nor static linking is supported with a
9418 # broken collect2.
9419 hardcode_direct=unsupported
9420 fi
9421 ;;
9422
56efe974 9423 aix[4-9]*)
b57f37fb
WP
9424 if test "$host_cpu" = ia64; then
9425 # On IA64, the linker does run time linking by default, so we don't
9426 # have to do anything special.
9427 aix_use_runtimelinking=no
9428 exp_sym_flag='-Bexport'
9429 no_entry_flag=""
9430 else
9431 # If we're using GNU nm, then we don't want the "-C" option.
9432 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9433 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9434 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'
9435 else
9436 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'
9437 fi
9438 aix_use_runtimelinking=no
9439
9440 # Test if we are trying to use run time linking or normal
9441 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9442 # need to do runtime linking.
56efe974 9443 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
b57f37fb
WP
9444 for ld_flag in $LDFLAGS; do
9445 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9446 aix_use_runtimelinking=yes
9447 break
9448 fi
9449 done
9450 ;;
9451 esac
9452
9453 exp_sym_flag='-bexport'
9454 no_entry_flag='-bnoentry'
9455 fi
9456
9457 # When large executables or shared objects are built, AIX ld can
9458 # have problems creating the table of contents. If linking a library
9459 # or program results in "error TOC overflow" add -mminimal-toc to
9460 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9461 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9462
9463 archive_cmds=''
9464 hardcode_direct=yes
9465 hardcode_libdir_separator=':'
9466 link_all_deplibs=yes
9467
9468 if test "$GCC" = yes; then
9469 case $host_os in aix4.[012]|aix4.[012].*)
9470 # We only want to do this on AIX 4.2 and lower, the check
9471 # below for broken collect2 doesn't work under 4.3+
9472 collect2name=`${CC} -print-prog-name=collect2`
9473 if test -f "$collect2name" && \
9474 strings "$collect2name" | grep resolve_lib_name >/dev/null
9475 then
9476 # We have reworked collect2
9477 :
9478 else
9479 # We have old collect2
9480 hardcode_direct=unsupported
9481 # It fails to find uninstalled libraries when the uninstalled
9482 # path is not listed in the libpath. Setting hardcode_minus_L
9483 # to unsupported forces relinking
9484 hardcode_minus_L=yes
9485 hardcode_libdir_flag_spec='-L$libdir'
9486 hardcode_libdir_separator=
9487 fi
9488 ;;
9489 esac
9490 shared_flag='-shared'
9491 if test "$aix_use_runtimelinking" = yes; then
9492 shared_flag="$shared_flag "'${wl}-G'
9493 fi
9494 else
9495 # not using gcc
9496 if test "$host_cpu" = ia64; then
9497 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9498 # chokes on -Wl,-G. The following line is correct:
9499 shared_flag='-G'
9500 else
9501 if test "$aix_use_runtimelinking" = yes; then
9502 shared_flag='${wl}-G'
9503 else
9504 shared_flag='${wl}-bM:SRE'
9505 fi
9506 fi
9507 fi
9508
9509 # It seems that -bexpall does not export symbols beginning with
9510 # underscore (_), so it is better to generate a list of symbols to export.
9511 always_export_symbols=yes
9512 if test "$aix_use_runtimelinking" = yes; then
9513 # Warning - without using the other runtime loading flags (-brtl),
9514 # -berok will link without error, but may produce a broken library.
9515 allow_undefined_flag='-berok'
9516 # Determine the default libpath from the value encoded in an empty executable.
9517 cat >conftest.$ac_ext <<_ACEOF
9518/* confdefs.h. */
9519_ACEOF
9520cat confdefs.h >>conftest.$ac_ext
9521cat >>conftest.$ac_ext <<_ACEOF
9522/* end confdefs.h. */
9523
9524int
9525main ()
9526{
9527
9528 ;
9529 return 0;
9530}
9531_ACEOF
9532rm -f conftest.$ac_objext conftest$ac_exeext
9533if { (ac_try="$ac_link"
9534case "(($ac_try" in
9535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9536 *) ac_try_echo=$ac_try;;
9537esac
9538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9539 (eval "$ac_link") 2>conftest.er1
9540 ac_status=$?
9541 grep -v '^ *+' conftest.er1 >conftest.err
9542 rm -f conftest.er1
9543 cat conftest.err >&5
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); } && {
9546 test -z "$ac_c_werror_flag" ||
9547 test ! -s conftest.err
9548 } && test -s conftest$ac_exeext &&
9549 $as_test_x conftest$ac_exeext; then
9550
9551lt_aix_libpath_sed='
9552 /Import File Strings/,/^$/ {
9553 /^0/ {
9554 s/^0 *\(.*\)$/\1/
9555 p
9556 }
9557 }'
9558aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9559# Check for a 64-bit object if we didn't find anything.
9560if test -z "$aix_libpath"; then
9561 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9562fi
9563else
9564 echo "$as_me: failed program was:" >&5
9565sed 's/^/| /' conftest.$ac_ext >&5
9566
9567
9568fi
9569
9570rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9571 conftest$ac_exeext conftest.$ac_ext
9572if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9573
9574 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9575 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"
9576 else
9577 if test "$host_cpu" = ia64; then
9578 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9579 allow_undefined_flag="-z nodefs"
9580 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"
9581 else
9582 # Determine the default libpath from the value encoded in an empty executable.
9583 cat >conftest.$ac_ext <<_ACEOF
9584/* confdefs.h. */
9585_ACEOF
9586cat confdefs.h >>conftest.$ac_ext
9587cat >>conftest.$ac_ext <<_ACEOF
9588/* end confdefs.h. */
9589
9590int
9591main ()
9592{
9593
9594 ;
9595 return 0;
9596}
9597_ACEOF
9598rm -f conftest.$ac_objext conftest$ac_exeext
9599if { (ac_try="$ac_link"
9600case "(($ac_try" in
9601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9602 *) ac_try_echo=$ac_try;;
9603esac
9604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9605 (eval "$ac_link") 2>conftest.er1
9606 ac_status=$?
9607 grep -v '^ *+' conftest.er1 >conftest.err
9608 rm -f conftest.er1
9609 cat conftest.err >&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); } && {
9612 test -z "$ac_c_werror_flag" ||
9613 test ! -s conftest.err
9614 } && test -s conftest$ac_exeext &&
9615 $as_test_x conftest$ac_exeext; then
9616
9617lt_aix_libpath_sed='
9618 /Import File Strings/,/^$/ {
9619 /^0/ {
9620 s/^0 *\(.*\)$/\1/
9621 p
9622 }
9623 }'
9624aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9625# Check for a 64-bit object if we didn't find anything.
9626if test -z "$aix_libpath"; then
9627 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9628fi
9629else
9630 echo "$as_me: failed program was:" >&5
9631sed 's/^/| /' conftest.$ac_ext >&5
9632
9633
9634fi
9635
9636rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9637 conftest$ac_exeext conftest.$ac_ext
9638if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9639
9640 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9641 # Warning - without using the other run time loading flags,
9642 # -berok will link without error, but may produce a broken library.
9643 no_undefined_flag=' ${wl}-bernotok'
9644 allow_undefined_flag=' ${wl}-berok'
9645 # Exported symbols can be pulled into shared objects from archives
9646 whole_archive_flag_spec='$convenience'
9647 archive_cmds_need_lc=yes
9648 # This is similar to how AIX traditionally builds its shared libraries.
9649 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'
9650 fi
9651 fi
9652 ;;
9653
9654 amigaos*)
9655 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)'
9656 hardcode_libdir_flag_spec='-L$libdir'
9657 hardcode_minus_L=yes
9658 # see comment about different semantics on the GNU ld section
9659 ld_shlibs=no
9660 ;;
9661
9662 bsdi[45]*)
9663 export_dynamic_flag_spec=-rdynamic
9664 ;;
9665
9666 cygwin* | mingw* | pw32*)
9667 # When not using gcc, we currently assume that we are using
9668 # Microsoft Visual C++.
9669 # hardcode_libdir_flag_spec is actually meaningless, as there is
9670 # no search path for DLLs.
9671 hardcode_libdir_flag_spec=' '
9672 allow_undefined_flag=unsupported
9673 # Tell ltmain to make .lib files, not .a files.
9674 libext=lib
9675 # Tell ltmain to make .dll files, not .so files.
9676 shrext_cmds=".dll"
9677 # FIXME: Setting linknames here is a bad hack.
9678 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9679 # The linker will automatically build a .lib file if we build a DLL.
9680 old_archive_From_new_cmds='true'
9681 # FIXME: Should let the user specify the lib program.
9682 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9683 fix_srcfile_path='`cygpath -w "$srcfile"`'
9684 enable_shared_with_static_runtimes=yes
9685 ;;
9686
9687 darwin* | rhapsody*)
9688 case $host_os in
9689 rhapsody* | darwin1.[012])
9690 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9691 ;;
9692 *) # Darwin 1.3 on
9693 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9694 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9695 else
9696 case ${MACOSX_DEPLOYMENT_TARGET} in
9697 10.[012])
9698 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9699 ;;
9700 10.*)
9701 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9702 ;;
9703 esac
9704 fi
9705 ;;
9706 esac
9707 archive_cmds_need_lc=no
9708 hardcode_direct=no
9709 hardcode_automatic=yes
9710 hardcode_shlibpath_var=unsupported
9711 whole_archive_flag_spec=''
9712 link_all_deplibs=yes
9713 if test "$GCC" = yes ; then
9714 output_verbose_link_cmd='echo'
56efe974
WP
9715 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9716 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9717 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}"
9718 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
9719 else
9720 case $cc_basename in
9721 xlc*)
9722 output_verbose_link_cmd='echo'
9723 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9724 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9725 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9726 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}'
9727 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}'
9728 ;;
9729 *)
9730 ld_shlibs=no
9731 ;;
9732 esac
9733 fi
9734 ;;
9735
9736 dgux*)
9737 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9738 hardcode_libdir_flag_spec='-L$libdir'
9739 hardcode_shlibpath_var=no
9740 ;;
9741
9742 freebsd1*)
9743 ld_shlibs=no
9744 ;;
9745
9746 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9747 # support. Future versions do this automatically, but an explicit c++rt0.o
9748 # does not break anything, and helps significantly (at the cost of a little
9749 # extra space).
9750 freebsd2.2*)
9751 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9752 hardcode_libdir_flag_spec='-R$libdir'
9753 hardcode_direct=yes
9754 hardcode_shlibpath_var=no
9755 ;;
9756
9757 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9758 freebsd2*)
9759 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9760 hardcode_direct=yes
9761 hardcode_minus_L=yes
9762 hardcode_shlibpath_var=no
9763 ;;
9764
9765 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9766 freebsd* | dragonfly*)
9767 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9768 hardcode_libdir_flag_spec='-R$libdir'
9769 hardcode_direct=yes
9770 hardcode_shlibpath_var=no
9771 ;;
9772
9773 hpux9*)
9774 if test "$GCC" = yes; then
9775 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'
9776 else
9777 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'
9778 fi
9779 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9780 hardcode_libdir_separator=:
9781 hardcode_direct=yes
9782
9783 # hardcode_minus_L: Not really in the search PATH,
9784 # but as the default location of the library.
9785 hardcode_minus_L=yes
9786 export_dynamic_flag_spec='${wl}-E'
9787 ;;
9788
9789 hpux10*)
9790 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9791 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9792 else
9793 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9794 fi
9795 if test "$with_gnu_ld" = no; then
9796 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9797 hardcode_libdir_separator=:
9798
9799 hardcode_direct=yes
9800 export_dynamic_flag_spec='${wl}-E'
9801
9802 # hardcode_minus_L: Not really in the search PATH,
9803 # but as the default location of the library.
9804 hardcode_minus_L=yes
9805 fi
9806 ;;
9807
9808 hpux11*)
9809 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9810 case $host_cpu in
9811 hppa*64*)
9812 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9813 ;;
9814 ia64*)
9815 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9816 ;;
9817 *)
9818 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9819 ;;
9820 esac
9821 else
9822 case $host_cpu in
9823 hppa*64*)
9824 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9825 ;;
9826 ia64*)
9827 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9828 ;;
9829 *)
9830 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9831 ;;
9832 esac
9833 fi
9834 if test "$with_gnu_ld" = no; then
9835 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9836 hardcode_libdir_separator=:
9837
9838 case $host_cpu in
9839 hppa*64*|ia64*)
9840 hardcode_libdir_flag_spec_ld='+b $libdir'
9841 hardcode_direct=no
9842 hardcode_shlibpath_var=no
9843 ;;
9844 *)
9845 hardcode_direct=yes
9846 export_dynamic_flag_spec='${wl}-E'
9847
9848 # hardcode_minus_L: Not really in the search PATH,
9849 # but as the default location of the library.
9850 hardcode_minus_L=yes
9851 ;;
9852 esac
9853 fi
9854 ;;
9855
9856 irix5* | irix6* | nonstopux*)
9857 if test "$GCC" = yes; then
9858 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'
9859 else
9860 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'
9861 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9862 fi
9863 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9864 hardcode_libdir_separator=:
9865 link_all_deplibs=yes
9866 ;;
9867
9868 netbsd* | netbsdelf*-gnu)
9869 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9870 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9871 else
9872 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9873 fi
9874 hardcode_libdir_flag_spec='-R$libdir'
9875 hardcode_direct=yes
9876 hardcode_shlibpath_var=no
9877 ;;
9878
9879 newsos6)
9880 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9881 hardcode_direct=yes
9882 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9883 hardcode_libdir_separator=:
9884 hardcode_shlibpath_var=no
9885 ;;
9886
9887 openbsd*)
9888 if test -f /usr/libexec/ld.so; then
9889 hardcode_direct=yes
9890 hardcode_shlibpath_var=no
9891 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9892 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9893 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9894 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9895 export_dynamic_flag_spec='${wl}-E'
9896 else
9897 case $host_os in
9898 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9899 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9900 hardcode_libdir_flag_spec='-R$libdir'
9901 ;;
9902 *)
9903 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9904 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9905 ;;
9906 esac
9907 fi
9908 else
9909 ld_shlibs=no
9910 fi
9911 ;;
9912
9913 os2*)
9914 hardcode_libdir_flag_spec='-L$libdir'
9915 hardcode_minus_L=yes
9916 allow_undefined_flag=unsupported
9917 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'
9918 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9919 ;;
9920
9921 osf3*)
9922 if test "$GCC" = yes; then
9923 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9924 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'
9925 else
9926 allow_undefined_flag=' -expect_unresolved \*'
9927 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'
9928 fi
9929 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9930 hardcode_libdir_separator=:
9931 ;;
9932
9933 osf4* | osf5*) # as osf3* with the addition of -msym flag
9934 if test "$GCC" = yes; then
9935 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9936 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'
9937 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9938 else
9939 allow_undefined_flag=' -expect_unresolved \*'
9940 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'
9941 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9942 $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'
9943
9944 # Both c and cxx compiler support -rpath directly
9945 hardcode_libdir_flag_spec='-rpath $libdir'
9946 fi
9947 hardcode_libdir_separator=:
9948 ;;
9949
9950 solaris*)
9951 no_undefined_flag=' -z text'
9952 if test "$GCC" = yes; then
9953 wlarc='${wl}'
9954 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9955 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9956 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9957 else
9958 wlarc=''
9959 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9960 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9961 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9962 fi
9963 hardcode_libdir_flag_spec='-R$libdir'
9964 hardcode_shlibpath_var=no
9965 case $host_os in
9966 solaris2.[0-5] | solaris2.[0-5].*) ;;
9967 *)
9968 # The compiler driver will combine and reorder linker options,
9969 # but understands `-z linker_flag'. GCC discards it without `$wl',
9970 # but is careful enough not to reorder.
9971 # Supported since Solaris 2.6 (maybe 2.5.1?)
9972 if test "$GCC" = yes; then
9973 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9974 else
9975 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9976 fi
9977 ;;
9978 esac
9979 link_all_deplibs=yes
9980 ;;
9981
9982 sunos4*)
9983 if test "x$host_vendor" = xsequent; then
9984 # Use $CC to link under sequent, because it throws in some extra .o
9985 # files that make .init and .fini sections work.
9986 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9987 else
9988 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9989 fi
9990 hardcode_libdir_flag_spec='-L$libdir'
9991 hardcode_direct=yes
9992 hardcode_minus_L=yes
9993 hardcode_shlibpath_var=no
9994 ;;
9995
9996 sysv4)
9997 case $host_vendor in
9998 sni)
9999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10000 hardcode_direct=yes # is this really true???
10001 ;;
10002 siemens)
10003 ## LD is ld it makes a PLAMLIB
10004 ## CC just makes a GrossModule.
10005 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10006 reload_cmds='$CC -r -o $output$reload_objs'
10007 hardcode_direct=no
10008 ;;
10009 motorola)
10010 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10011 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10012 ;;
10013 esac
10014 runpath_var='LD_RUN_PATH'
10015 hardcode_shlibpath_var=no
10016 ;;
10017
10018 sysv4.3*)
10019 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10020 hardcode_shlibpath_var=no
10021 export_dynamic_flag_spec='-Bexport'
10022 ;;
10023
10024 sysv4*MP*)
10025 if test -d /usr/nec; then
10026 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10027 hardcode_shlibpath_var=no
10028 runpath_var=LD_RUN_PATH
10029 hardcode_runpath_var=yes
10030 ld_shlibs=yes
10031 fi
10032 ;;
10033
10034 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10035 no_undefined_flag='${wl}-z,text'
10036 archive_cmds_need_lc=no
10037 hardcode_shlibpath_var=no
10038 runpath_var='LD_RUN_PATH'
10039
10040 if test "$GCC" = yes; then
10041 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10042 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10043 else
10044 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10045 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10046 fi
10047 ;;
10048
10049 sysv5* | sco3.2v5* | sco5v6*)
10050 # Note: We can NOT use -z defs as we might desire, because we do not
10051 # link with -lc, and that would cause any symbols used from libc to
10052 # always be unresolved, which means just about no library would
10053 # ever link correctly. If we're not using GNU ld we use -z text
10054 # though, which does catch some bad symbols but isn't as heavy-handed
10055 # as -z defs.
10056 no_undefined_flag='${wl}-z,text'
10057 allow_undefined_flag='${wl}-z,nodefs'
10058 archive_cmds_need_lc=no
10059 hardcode_shlibpath_var=no
10060 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10061 hardcode_libdir_separator=':'
10062 link_all_deplibs=yes
10063 export_dynamic_flag_spec='${wl}-Bexport'
10064 runpath_var='LD_RUN_PATH'
10065
10066 if test "$GCC" = yes; then
10067 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10068 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10069 else
10070 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10071 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10072 fi
10073 ;;
10074
10075 uts4*)
10076 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10077 hardcode_libdir_flag_spec='-L$libdir'
10078 hardcode_shlibpath_var=no
10079 ;;
10080
10081 *)
10082 ld_shlibs=no
10083 ;;
10084 esac
10085 fi
10086
10087{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10088echo "${ECHO_T}$ld_shlibs" >&6; }
10089test "$ld_shlibs" = no && can_build_shared=no
10090
10091#
10092# Do we need to explicitly link libc?
10093#
10094case "x$archive_cmds_need_lc" in
10095x|xyes)
10096 # Assume -lc should be added
10097 archive_cmds_need_lc=yes
10098
10099 if test "$enable_shared" = yes && test "$GCC" = yes; then
10100 case $archive_cmds in
10101 *'~'*)
10102 # FIXME: we may have to deal with multi-command sequences.
10103 ;;
10104 '$CC '*)
10105 # Test whether the compiler implicitly links with -lc since on some
10106 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10107 # to ld, don't add -lc before -lgcc.
10108 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10109echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10110 $rm conftest*
10111 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10112
10113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10114 (eval $ac_compile) 2>&5
10115 ac_status=$?
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); } 2>conftest.err; then
10118 soname=conftest
10119 lib=conftest
10120 libobjs=conftest.$ac_objext
10121 deplibs=
10122 wl=$lt_prog_compiler_wl
10123 pic_flag=$lt_prog_compiler_pic
10124 compiler_flags=-v
10125 linker_flags=-v
10126 verstring=
10127 output_objdir=.
10128 libname=conftest
10129 lt_save_allow_undefined_flag=$allow_undefined_flag
10130 allow_undefined_flag=
10131 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10132 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10133 ac_status=$?
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); }
10136 then
10137 archive_cmds_need_lc=no
10138 else
10139 archive_cmds_need_lc=yes
10140 fi
10141 allow_undefined_flag=$lt_save_allow_undefined_flag
10142 else
10143 cat conftest.err 1>&5
10144 fi
10145 $rm conftest*
10146 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10147echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10148 ;;
10149 esac
10150 fi
10151 ;;
10152esac
10153
10154{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10155echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10156library_names_spec=
10157libname_spec='lib$name'
10158soname_spec=
10159shrext_cmds=".so"
10160postinstall_cmds=
10161postuninstall_cmds=
10162finish_cmds=
10163finish_eval=
10164shlibpath_var=
10165shlibpath_overrides_runpath=unknown
10166version_type=none
10167dynamic_linker="$host_os ld.so"
10168sys_lib_dlsearch_path_spec="/lib /usr/lib"
10169
10170if test "$GCC" = yes; then
10171 case $host_os in
10172 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10173 *) lt_awk_arg="/^libraries:/" ;;
10174 esac
10175 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10176 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
10177 # if the path contains ";" then we assume it to be the separator
10178 # otherwise default to the standard path separator (i.e. ":") - it is
10179 # assumed that no part of a normal pathname contains ";" but that should
10180 # okay in the real world where ";" in dirpaths is itself problematic.
10181 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10182 else
10183 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10184 fi
10185 # Ok, now we have the path, separated by spaces, we can step through it
10186 # and add multilib dir if necessary.
10187 lt_tmp_lt_search_path_spec=
10188 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10189 for lt_sys_path in $lt_search_path_spec; do
10190 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10191 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10192 else
10193 test -d "$lt_sys_path" && \
10194 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10195 fi
10196 done
10197 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
10198BEGIN {RS=" "; FS="/|\n";} {
10199 lt_foo="";
10200 lt_count=0;
10201 for (lt_i = NF; lt_i > 0; lt_i--) {
10202 if ($lt_i != "" && $lt_i != ".") {
10203 if ($lt_i == "..") {
10204 lt_count++;
10205 } else {
10206 if (lt_count == 0) {
10207 lt_foo="/" $lt_i lt_foo;
10208 } else {
10209 lt_count--;
10210 }
10211 }
10212 }
10213 }
10214 if (lt_foo != "") { lt_freq[lt_foo]++; }
10215 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10216}'`
10217 sys_lib_search_path_spec=`echo $lt_search_path_spec`
10218else
10219 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10220fi
10221need_lib_prefix=unknown
10222hardcode_into_libs=no
10223
10224# when you set need_version to no, make sure it does not cause -set_version
10225# flags to be left without arguments
10226need_version=unknown
10227
10228case $host_os in
10229aix3*)
10230 version_type=linux
10231 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10232 shlibpath_var=LIBPATH
10233
10234 # AIX 3 has no versioning support, so we append a major version to the name.
10235 soname_spec='${libname}${release}${shared_ext}$major'
10236 ;;
10237
56efe974 10238aix[4-9]*)
b57f37fb
WP
10239 version_type=linux
10240 need_lib_prefix=no
10241 need_version=no
10242 hardcode_into_libs=yes
10243 if test "$host_cpu" = ia64; then
10244 # AIX 5 supports IA64
10245 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10246 shlibpath_var=LD_LIBRARY_PATH
10247 else
10248 # With GCC up to 2.95.x, collect2 would create an import file
10249 # for dependence libraries. The import file would start with
10250 # the line `#! .'. This would cause the generated library to
10251 # depend on `.', always an invalid library. This was fixed in
10252 # development snapshots of GCC prior to 3.0.
10253 case $host_os in
10254 aix4 | aix4.[01] | aix4.[01].*)
10255 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10256 echo ' yes '
10257 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10258 :
10259 else
10260 can_build_shared=no
10261 fi
10262 ;;
10263 esac
10264 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10265 # soname into executable. Probably we can add versioning support to
10266 # collect2, so additional links can be useful in future.
10267 if test "$aix_use_runtimelinking" = yes; then
10268 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10269 # instead of lib<name>.a to let people know that these are not
10270 # typical AIX shared libraries.
10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10272 else
10273 # We preserve .a as extension for shared libraries through AIX4.2
10274 # and later when we are not doing run time linking.
10275 library_names_spec='${libname}${release}.a $libname.a'
10276 soname_spec='${libname}${release}${shared_ext}$major'
10277 fi
10278 shlibpath_var=LIBPATH
10279 fi
10280 ;;
10281
10282amigaos*)
10283 library_names_spec='$libname.ixlibrary $libname.a'
10284 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10285 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'
10286 ;;
10287
10288beos*)
10289 library_names_spec='${libname}${shared_ext}'
10290 dynamic_linker="$host_os ld.so"
10291 shlibpath_var=LIBRARY_PATH
10292 ;;
10293
10294bsdi[45]*)
10295 version_type=linux
10296 need_version=no
10297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10298 soname_spec='${libname}${release}${shared_ext}$major'
10299 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10300 shlibpath_var=LD_LIBRARY_PATH
10301 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10302 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10303 # the default ld.so.conf also contains /usr/contrib/lib and
10304 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10305 # libtool to hard-code these into programs
10306 ;;
10307
10308cygwin* | mingw* | pw32*)
10309 version_type=windows
10310 shrext_cmds=".dll"
10311 need_version=no
10312 need_lib_prefix=no
10313
10314 case $GCC,$host_os in
10315 yes,cygwin* | yes,mingw* | yes,pw32*)
10316 library_names_spec='$libname.dll.a'
10317 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10318 postinstall_cmds='base_file=`basename \${file}`~
10319 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10320 dldir=$destdir/`dirname \$dlpath`~
10321 test -d \$dldir || mkdir -p \$dldir~
10322 $install_prog $dir/$dlname \$dldir/$dlname~
10323 chmod a+x \$dldir/$dlname'
10324 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10325 dlpath=$dir/\$dldll~
10326 $rm \$dlpath'
10327 shlibpath_overrides_runpath=yes
10328
10329 case $host_os in
10330 cygwin*)
10331 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10332 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10333 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10334 ;;
10335 mingw*)
10336 # MinGW DLLs use traditional 'lib' prefix
10337 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10338 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10339 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10340 # It is most probably a Windows format PATH printed by
10341 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10342 # path with ; separators, and with drive letters. We can handle the
10343 # drive letters (cygwin fileutils understands them), so leave them,
10344 # especially as we might pass files found there to a mingw objdump,
10345 # which wouldn't understand a cygwinified path. Ahh.
10346 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10347 else
10348 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10349 fi
10350 ;;
10351 pw32*)
10352 # pw32 DLLs use 'pw' prefix rather than 'lib'
10353 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10354 ;;
10355 esac
10356 ;;
10357
10358 *)
10359 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10360 ;;
10361 esac
10362 dynamic_linker='Win32 ld.exe'
10363 # FIXME: first we should search . and the directory the executable is in
10364 shlibpath_var=PATH
10365 ;;
10366
10367darwin* | rhapsody*)
10368 dynamic_linker="$host_os dyld"
10369 version_type=darwin
10370 need_lib_prefix=no
10371 need_version=no
10372 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10373 soname_spec='${libname}${release}${major}$shared_ext'
10374 shlibpath_overrides_runpath=yes
10375 shlibpath_var=DYLD_LIBRARY_PATH
10376 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10377
10378 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10379 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10380 ;;
10381
10382dgux*)
10383 version_type=linux
10384 need_lib_prefix=no
10385 need_version=no
10386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10387 soname_spec='${libname}${release}${shared_ext}$major'
10388 shlibpath_var=LD_LIBRARY_PATH
10389 ;;
10390
10391freebsd1*)
10392 dynamic_linker=no
10393 ;;
10394
10395freebsd* | dragonfly*)
10396 # DragonFly does not have aout. When/if they implement a new
10397 # versioning mechanism, adjust this.
10398 if test -x /usr/bin/objformat; then
10399 objformat=`/usr/bin/objformat`
10400 else
10401 case $host_os in
10402 freebsd[123]*) objformat=aout ;;
10403 *) objformat=elf ;;
10404 esac
10405 fi
10406 version_type=freebsd-$objformat
10407 case $version_type in
10408 freebsd-elf*)
10409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10410 need_version=no
10411 need_lib_prefix=no
10412 ;;
10413 freebsd-*)
10414 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10415 need_version=yes
10416 ;;
10417 esac
10418 shlibpath_var=LD_LIBRARY_PATH
10419 case $host_os in
10420 freebsd2*)
10421 shlibpath_overrides_runpath=yes
10422 ;;
10423 freebsd3.[01]* | freebsdelf3.[01]*)
10424 shlibpath_overrides_runpath=yes
10425 hardcode_into_libs=yes
10426 ;;
10427 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10428 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10429 shlibpath_overrides_runpath=no
10430 hardcode_into_libs=yes
10431 ;;
10432 *) # from 4.6 on, and DragonFly
10433 shlibpath_overrides_runpath=yes
10434 hardcode_into_libs=yes
10435 ;;
10436 esac
10437 ;;
10438
10439gnu*)
10440 version_type=linux
10441 need_lib_prefix=no
10442 need_version=no
10443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10444 soname_spec='${libname}${release}${shared_ext}$major'
10445 shlibpath_var=LD_LIBRARY_PATH
10446 hardcode_into_libs=yes
10447 ;;
10448
10449hpux9* | hpux10* | hpux11*)
10450 # Give a soname corresponding to the major version so that dld.sl refuses to
10451 # link against other versions.
10452 version_type=sunos
10453 need_lib_prefix=no
10454 need_version=no
10455 case $host_cpu in
10456 ia64*)
10457 shrext_cmds='.so'
10458 hardcode_into_libs=yes
10459 dynamic_linker="$host_os dld.so"
10460 shlibpath_var=LD_LIBRARY_PATH
10461 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10463 soname_spec='${libname}${release}${shared_ext}$major'
10464 if test "X$HPUX_IA64_MODE" = X32; then
10465 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10466 else
10467 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10468 fi
10469 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10470 ;;
10471 hppa*64*)
10472 shrext_cmds='.sl'
10473 hardcode_into_libs=yes
10474 dynamic_linker="$host_os dld.sl"
10475 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10476 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10478 soname_spec='${libname}${release}${shared_ext}$major'
10479 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10480 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10481 ;;
10482 *)
10483 shrext_cmds='.sl'
10484 dynamic_linker="$host_os dld.sl"
10485 shlibpath_var=SHLIB_PATH
10486 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10488 soname_spec='${libname}${release}${shared_ext}$major'
10489 ;;
10490 esac
10491 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10492 postinstall_cmds='chmod 555 $lib'
10493 ;;
10494
10495interix[3-9]*)
10496 version_type=linux
10497 need_lib_prefix=no
10498 need_version=no
10499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10500 soname_spec='${libname}${release}${shared_ext}$major'
10501 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10502 shlibpath_var=LD_LIBRARY_PATH
10503 shlibpath_overrides_runpath=no
10504 hardcode_into_libs=yes
10505 ;;
10506
10507irix5* | irix6* | nonstopux*)
10508 case $host_os in
10509 nonstopux*) version_type=nonstopux ;;
10510 *)
10511 if test "$lt_cv_prog_gnu_ld" = yes; then
10512 version_type=linux
10513 else
10514 version_type=irix
10515 fi ;;
10516 esac
10517 need_lib_prefix=no
10518 need_version=no
10519 soname_spec='${libname}${release}${shared_ext}$major'
10520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10521 case $host_os in
10522 irix5* | nonstopux*)
10523 libsuff= shlibsuff=
10524 ;;
10525 *)
10526 case $LD in # libtool.m4 will add one of these switches to LD
10527 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10528 libsuff= shlibsuff= libmagic=32-bit;;
10529 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10530 libsuff=32 shlibsuff=N32 libmagic=N32;;
10531 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10532 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10533 *) libsuff= shlibsuff= libmagic=never-match;;
10534 esac
10535 ;;
10536 esac
10537 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10538 shlibpath_overrides_runpath=no
10539 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10540 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10541 hardcode_into_libs=yes
10542 ;;
10543
10544# No shared lib support for Linux oldld, aout, or coff.
10545linux*oldld* | linux*aout* | linux*coff*)
10546 dynamic_linker=no
10547 ;;
10548
10549# This must be Linux ELF.
10550linux* | k*bsd*-gnu)
10551 version_type=linux
10552 need_lib_prefix=no
10553 need_version=no
10554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10555 soname_spec='${libname}${release}${shared_ext}$major'
10556 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10557 shlibpath_var=LD_LIBRARY_PATH
10558 shlibpath_overrides_runpath=no
10559 # This implies no fast_install, which is unacceptable.
10560 # Some rework will be needed to allow for fast_install
10561 # before this can be enabled.
10562 hardcode_into_libs=yes
10563
10564 # Append ld.so.conf contents to the search path
10565 if test -f /etc/ld.so.conf; then
10566 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' ' '`
10567 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10568 fi
10569
10570 # We used to test for /lib/ld.so.1 and disable shared libraries on
10571 # powerpc, because MkLinux only supported shared libraries with the
10572 # GNU dynamic linker. Since this was broken with cross compilers,
10573 # most powerpc-linux boxes support dynamic linking these days and
10574 # people can always --disable-shared, the test was removed, and we
10575 # assume the GNU/Linux dynamic linker is in use.
10576 dynamic_linker='GNU/Linux ld.so'
10577 ;;
10578
10579netbsdelf*-gnu)
10580 version_type=linux
10581 need_lib_prefix=no
10582 need_version=no
10583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10584 soname_spec='${libname}${release}${shared_ext}$major'
10585 shlibpath_var=LD_LIBRARY_PATH
10586 shlibpath_overrides_runpath=no
10587 hardcode_into_libs=yes
10588 dynamic_linker='NetBSD ld.elf_so'
10589 ;;
10590
10591netbsd*)
10592 version_type=sunos
10593 need_lib_prefix=no
10594 need_version=no
10595 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10597 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10598 dynamic_linker='NetBSD (a.out) ld.so'
10599 else
10600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10601 soname_spec='${libname}${release}${shared_ext}$major'
10602 dynamic_linker='NetBSD ld.elf_so'
10603 fi
10604 shlibpath_var=LD_LIBRARY_PATH
10605 shlibpath_overrides_runpath=yes
10606 hardcode_into_libs=yes
10607 ;;
10608
10609newsos6)
10610 version_type=linux
10611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10612 shlibpath_var=LD_LIBRARY_PATH
10613 shlibpath_overrides_runpath=yes
10614 ;;
10615
10616nto-qnx*)
10617 version_type=linux
10618 need_lib_prefix=no
10619 need_version=no
10620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10621 soname_spec='${libname}${release}${shared_ext}$major'
10622 shlibpath_var=LD_LIBRARY_PATH
10623 shlibpath_overrides_runpath=yes
10624 ;;
10625
10626openbsd*)
10627 version_type=sunos
10628 sys_lib_dlsearch_path_spec="/usr/lib"
10629 need_lib_prefix=no
10630 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10631 case $host_os in
10632 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10633 *) need_version=no ;;
10634 esac
10635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10636 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10637 shlibpath_var=LD_LIBRARY_PATH
10638 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10639 case $host_os in
10640 openbsd2.[89] | openbsd2.[89].*)
10641 shlibpath_overrides_runpath=no
10642 ;;
10643 *)
10644 shlibpath_overrides_runpath=yes
10645 ;;
10646 esac
10647 else
10648 shlibpath_overrides_runpath=yes
10649 fi
10650 ;;
10651
10652os2*)
10653 libname_spec='$name'
10654 shrext_cmds=".dll"
10655 need_lib_prefix=no
10656 library_names_spec='$libname${shared_ext} $libname.a'
10657 dynamic_linker='OS/2 ld.exe'
10658 shlibpath_var=LIBPATH
10659 ;;
10660
10661osf3* | osf4* | osf5*)
10662 version_type=osf
10663 need_lib_prefix=no
10664 need_version=no
10665 soname_spec='${libname}${release}${shared_ext}$major'
10666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10667 shlibpath_var=LD_LIBRARY_PATH
10668 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10669 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10670 ;;
10671
10672rdos*)
10673 dynamic_linker=no
10674 ;;
10675
10676solaris*)
10677 version_type=linux
10678 need_lib_prefix=no
10679 need_version=no
10680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10681 soname_spec='${libname}${release}${shared_ext}$major'
10682 shlibpath_var=LD_LIBRARY_PATH
10683 shlibpath_overrides_runpath=yes
10684 hardcode_into_libs=yes
10685 # ldd complains unless libraries are executable
10686 postinstall_cmds='chmod +x $lib'
10687 ;;
10688
10689sunos4*)
10690 version_type=sunos
10691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10692 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10693 shlibpath_var=LD_LIBRARY_PATH
10694 shlibpath_overrides_runpath=yes
10695 if test "$with_gnu_ld" = yes; then
10696 need_lib_prefix=no
10697 fi
10698 need_version=yes
10699 ;;
10700
10701sysv4 | sysv4.3*)
10702 version_type=linux
10703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10704 soname_spec='${libname}${release}${shared_ext}$major'
10705 shlibpath_var=LD_LIBRARY_PATH
10706 case $host_vendor in
10707 sni)
10708 shlibpath_overrides_runpath=no
10709 need_lib_prefix=no
10710 export_dynamic_flag_spec='${wl}-Blargedynsym'
10711 runpath_var=LD_RUN_PATH
10712 ;;
10713 siemens)
10714 need_lib_prefix=no
10715 ;;
10716 motorola)
10717 need_lib_prefix=no
10718 need_version=no
10719 shlibpath_overrides_runpath=no
10720 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10721 ;;
10722 esac
10723 ;;
10724
10725sysv4*MP*)
10726 if test -d /usr/nec ;then
10727 version_type=linux
10728 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10729 soname_spec='$libname${shared_ext}.$major'
10730 shlibpath_var=LD_LIBRARY_PATH
10731 fi
10732 ;;
10733
10734sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10735 version_type=freebsd-elf
10736 need_lib_prefix=no
10737 need_version=no
10738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10739 soname_spec='${libname}${release}${shared_ext}$major'
10740 shlibpath_var=LD_LIBRARY_PATH
10741 hardcode_into_libs=yes
10742 if test "$with_gnu_ld" = yes; then
10743 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10744 shlibpath_overrides_runpath=no
10745 else
10746 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10747 shlibpath_overrides_runpath=yes
10748 case $host_os in
10749 sco3.2v5*)
10750 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10751 ;;
10752 esac
10753 fi
10754 sys_lib_dlsearch_path_spec='/usr/lib'
10755 ;;
10756
10757uts4*)
10758 version_type=linux
10759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10760 soname_spec='${libname}${release}${shared_ext}$major'
10761 shlibpath_var=LD_LIBRARY_PATH
10762 ;;
10763
10764*)
10765 dynamic_linker=no
10766 ;;
10767esac
10768{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10769echo "${ECHO_T}$dynamic_linker" >&6; }
10770test "$dynamic_linker" = no && can_build_shared=no
10771
56efe974
WP
10772if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10773 echo $ECHO_N "(cached) $ECHO_C" >&6
10774else
10775 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
10776fi
10777
10778sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10779if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10780 echo $ECHO_N "(cached) $ECHO_C" >&6
10781else
10782 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
10783fi
10784
10785sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10786
b57f37fb
WP
10787variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10788if test "$GCC" = yes; then
10789 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10790fi
10791
10792{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10793echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10794hardcode_action=
10795if test -n "$hardcode_libdir_flag_spec" || \
10796 test -n "$runpath_var" || \
10797 test "X$hardcode_automatic" = "Xyes" ; then
10798
10799 # We can hardcode non-existant directories.
10800 if test "$hardcode_direct" != no &&
10801 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10802 # have to relink, otherwise we might link with an installed library
10803 # when we should be linking with a yet-to-be-installed one
10804 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10805 test "$hardcode_minus_L" != no; then
10806 # Linking always hardcodes the temporary library directory.
10807 hardcode_action=relink
10808 else
10809 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10810 hardcode_action=immediate
10811 fi
10812else
10813 # We cannot hardcode anything, or else we can only hardcode existing
10814 # directories.
10815 hardcode_action=unsupported
10816fi
10817{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
10818echo "${ECHO_T}$hardcode_action" >&6; }
10819
10820if test "$hardcode_action" = relink; then
10821 # Fast installation is not supported
10822 enable_fast_install=no
10823elif test "$shlibpath_overrides_runpath" = yes ||
10824 test "$enable_shared" = no; then
10825 # Fast installation is not necessary
10826 enable_fast_install=needless
10827fi
10828
10829striplib=
10830old_striplib=
10831{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10832echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10833if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10834 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10835 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10836 { echo "$as_me:$LINENO: result: yes" >&5
10837echo "${ECHO_T}yes" >&6; }
10838else
10839# FIXME - insert some real tests, host_os isn't really good enough
10840 case $host_os in
10841 darwin*)
10842 if test -n "$STRIP" ; then
10843 striplib="$STRIP -x"
10844 old_striplib="$STRIP -S"
10845 { echo "$as_me:$LINENO: result: yes" >&5
10846echo "${ECHO_T}yes" >&6; }
10847 else
10848 { echo "$as_me:$LINENO: result: no" >&5
10849echo "${ECHO_T}no" >&6; }
10850fi
10851 ;;
10852 *)
10853 { echo "$as_me:$LINENO: result: no" >&5
10854echo "${ECHO_T}no" >&6; }
10855 ;;
10856 esac
10857fi
10858
10859if test "x$enable_dlopen" != xyes; then
10860 enable_dlopen=unknown
10861 enable_dlopen_self=unknown
10862 enable_dlopen_self_static=unknown
10863else
10864 lt_cv_dlopen=no
10865 lt_cv_dlopen_libs=
10866
10867 case $host_os in
10868 beos*)
10869 lt_cv_dlopen="load_add_on"
10870 lt_cv_dlopen_libs=
10871 lt_cv_dlopen_self=yes
10872 ;;
10873
10874 mingw* | pw32*)
10875 lt_cv_dlopen="LoadLibrary"
10876 lt_cv_dlopen_libs=
10877 ;;
10878
10879 cygwin*)
10880 lt_cv_dlopen="dlopen"
10881 lt_cv_dlopen_libs=
10882 ;;
10883
10884 darwin*)
10885 # if libdl is installed we need to link against it
10886 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10887echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10888if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10889 echo $ECHO_N "(cached) $ECHO_C" >&6
10890else
10891 ac_check_lib_save_LIBS=$LIBS
10892LIBS="-ldl $LIBS"
10893cat >conftest.$ac_ext <<_ACEOF
10894/* confdefs.h. */
10895_ACEOF
10896cat confdefs.h >>conftest.$ac_ext
10897cat >>conftest.$ac_ext <<_ACEOF
10898/* end confdefs.h. */
10899
10900/* Override any GCC internal prototype to avoid an error.
10901 Use char because int might match the return type of a GCC
10902 builtin and then its argument prototype would still apply. */
10903#ifdef __cplusplus
10904extern "C"
10905#endif
10906char dlopen ();
10907int
10908main ()
10909{
10910return dlopen ();
10911 ;
10912 return 0;
10913}
10914_ACEOF
10915rm -f conftest.$ac_objext conftest$ac_exeext
10916if { (ac_try="$ac_link"
10917case "(($ac_try" in
10918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10919 *) ac_try_echo=$ac_try;;
10920esac
10921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10922 (eval "$ac_link") 2>conftest.er1
10923 ac_status=$?
10924 grep -v '^ *+' conftest.er1 >conftest.err
10925 rm -f conftest.er1
10926 cat conftest.err >&5
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); } && {
10929 test -z "$ac_c_werror_flag" ||
10930 test ! -s conftest.err
10931 } && test -s conftest$ac_exeext &&
10932 $as_test_x conftest$ac_exeext; then
10933 ac_cv_lib_dl_dlopen=yes
10934else
10935 echo "$as_me: failed program was:" >&5
10936sed 's/^/| /' conftest.$ac_ext >&5
10937
10938 ac_cv_lib_dl_dlopen=no
10939fi
10940
10941rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10942 conftest$ac_exeext conftest.$ac_ext
10943LIBS=$ac_check_lib_save_LIBS
10944fi
10945{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10946echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10947if test $ac_cv_lib_dl_dlopen = yes; then
10948 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10949else
10950
10951 lt_cv_dlopen="dyld"
10952 lt_cv_dlopen_libs=
10953 lt_cv_dlopen_self=yes
10954
10955fi
10956
10957 ;;
10958
10959 *)
10960 { echo "$as_me:$LINENO: checking for shl_load" >&5
10961echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10962if test "${ac_cv_func_shl_load+set}" = set; then
10963 echo $ECHO_N "(cached) $ECHO_C" >&6
10964else
10965 cat >conftest.$ac_ext <<_ACEOF
10966/* confdefs.h. */
10967_ACEOF
10968cat confdefs.h >>conftest.$ac_ext
10969cat >>conftest.$ac_ext <<_ACEOF
10970/* end confdefs.h. */
10971/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10973#define shl_load innocuous_shl_load
10974
10975/* System header to define __stub macros and hopefully few prototypes,
10976 which can conflict with char shl_load (); below.
10977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10978 <limits.h> exists even on freestanding compilers. */
10979
10980#ifdef __STDC__
10981# include <limits.h>
10982#else
10983# include <assert.h>
10984#endif
10985
10986#undef shl_load
10987
10988/* Override any GCC internal prototype to avoid an error.
10989 Use char because int might match the return type of a GCC
10990 builtin and then its argument prototype would still apply. */
10991#ifdef __cplusplus
10992extern "C"
10993#endif
10994char shl_load ();
10995/* The GNU C library defines this for functions which it implements
10996 to always fail with ENOSYS. Some functions are actually named
10997 something starting with __ and the normal name is an alias. */
10998#if defined __stub_shl_load || defined __stub___shl_load
10999choke me
11000#endif
11001
11002int
11003main ()
11004{
11005return shl_load ();
11006 ;
11007 return 0;
11008}
11009_ACEOF
11010rm -f conftest.$ac_objext conftest$ac_exeext
11011if { (ac_try="$ac_link"
11012case "(($ac_try" in
11013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11014 *) ac_try_echo=$ac_try;;
11015esac
11016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11017 (eval "$ac_link") 2>conftest.er1
11018 ac_status=$?
11019 grep -v '^ *+' conftest.er1 >conftest.err
11020 rm -f conftest.er1
11021 cat conftest.err >&5
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); } && {
11024 test -z "$ac_c_werror_flag" ||
11025 test ! -s conftest.err
11026 } && test -s conftest$ac_exeext &&
11027 $as_test_x conftest$ac_exeext; then
11028 ac_cv_func_shl_load=yes
11029else
11030 echo "$as_me: failed program was:" >&5
11031sed 's/^/| /' conftest.$ac_ext >&5
11032
11033 ac_cv_func_shl_load=no
11034fi
11035
11036rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11037 conftest$ac_exeext conftest.$ac_ext
11038fi
11039{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11040echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11041if test $ac_cv_func_shl_load = yes; then
11042 lt_cv_dlopen="shl_load"
11043else
11044 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11045echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11046if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11047 echo $ECHO_N "(cached) $ECHO_C" >&6
11048else
11049 ac_check_lib_save_LIBS=$LIBS
11050LIBS="-ldld $LIBS"
11051cat >conftest.$ac_ext <<_ACEOF
11052/* confdefs.h. */
11053_ACEOF
11054cat confdefs.h >>conftest.$ac_ext
11055cat >>conftest.$ac_ext <<_ACEOF
11056/* end confdefs.h. */
11057
11058/* Override any GCC internal prototype to avoid an error.
11059 Use char because int might match the return type of a GCC
11060 builtin and then its argument prototype would still apply. */
11061#ifdef __cplusplus
11062extern "C"
11063#endif
11064char shl_load ();
11065int
11066main ()
11067{
11068return shl_load ();
11069 ;
11070 return 0;
11071}
11072_ACEOF
11073rm -f conftest.$ac_objext conftest$ac_exeext
11074if { (ac_try="$ac_link"
11075case "(($ac_try" in
11076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11077 *) ac_try_echo=$ac_try;;
11078esac
11079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11080 (eval "$ac_link") 2>conftest.er1
11081 ac_status=$?
11082 grep -v '^ *+' conftest.er1 >conftest.err
11083 rm -f conftest.er1
11084 cat conftest.err >&5
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); } && {
11087 test -z "$ac_c_werror_flag" ||
11088 test ! -s conftest.err
11089 } && test -s conftest$ac_exeext &&
11090 $as_test_x conftest$ac_exeext; then
11091 ac_cv_lib_dld_shl_load=yes
11092else
11093 echo "$as_me: failed program was:" >&5
11094sed 's/^/| /' conftest.$ac_ext >&5
11095
11096 ac_cv_lib_dld_shl_load=no
11097fi
11098
11099rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11100 conftest$ac_exeext conftest.$ac_ext
11101LIBS=$ac_check_lib_save_LIBS
11102fi
11103{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11104echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11105if test $ac_cv_lib_dld_shl_load = yes; then
56efe974 11106 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
b57f37fb
WP
11107else
11108 { echo "$as_me:$LINENO: checking for dlopen" >&5
11109echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11110if test "${ac_cv_func_dlopen+set}" = set; then
11111 echo $ECHO_N "(cached) $ECHO_C" >&6
11112else
11113 cat >conftest.$ac_ext <<_ACEOF
11114/* confdefs.h. */
11115_ACEOF
11116cat confdefs.h >>conftest.$ac_ext
11117cat >>conftest.$ac_ext <<_ACEOF
11118/* end confdefs.h. */
11119/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11121#define dlopen innocuous_dlopen
11122
11123/* System header to define __stub macros and hopefully few prototypes,
11124 which can conflict with char dlopen (); below.
11125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11126 <limits.h> exists even on freestanding compilers. */
11127
11128#ifdef __STDC__
11129# include <limits.h>
11130#else
11131# include <assert.h>
11132#endif
11133
11134#undef dlopen
11135
11136/* Override any GCC internal prototype to avoid an error.
11137 Use char because int might match the return type of a GCC
11138 builtin and then its argument prototype would still apply. */
11139#ifdef __cplusplus
11140extern "C"
11141#endif
11142char dlopen ();
11143/* The GNU C library defines this for functions which it implements
11144 to always fail with ENOSYS. Some functions are actually named
11145 something starting with __ and the normal name is an alias. */
11146#if defined __stub_dlopen || defined __stub___dlopen
11147choke me
11148#endif
11149
11150int
11151main ()
11152{
11153return dlopen ();
11154 ;
11155 return 0;
11156}
11157_ACEOF
11158rm -f conftest.$ac_objext conftest$ac_exeext
11159if { (ac_try="$ac_link"
11160case "(($ac_try" in
11161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11162 *) ac_try_echo=$ac_try;;
11163esac
11164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11165 (eval "$ac_link") 2>conftest.er1
11166 ac_status=$?
11167 grep -v '^ *+' conftest.er1 >conftest.err
11168 rm -f conftest.er1
11169 cat conftest.err >&5
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); } && {
11172 test -z "$ac_c_werror_flag" ||
11173 test ! -s conftest.err
11174 } && test -s conftest$ac_exeext &&
11175 $as_test_x conftest$ac_exeext; then
11176 ac_cv_func_dlopen=yes
11177else
11178 echo "$as_me: failed program was:" >&5
11179sed 's/^/| /' conftest.$ac_ext >&5
11180
11181 ac_cv_func_dlopen=no
11182fi
11183
11184rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11185 conftest$ac_exeext conftest.$ac_ext
11186fi
11187{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11188echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11189if test $ac_cv_func_dlopen = yes; then
11190 lt_cv_dlopen="dlopen"
11191else
11192 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11193echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11194if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11195 echo $ECHO_N "(cached) $ECHO_C" >&6
11196else
11197 ac_check_lib_save_LIBS=$LIBS
11198LIBS="-ldl $LIBS"
11199cat >conftest.$ac_ext <<_ACEOF
11200/* confdefs.h. */
11201_ACEOF
11202cat confdefs.h >>conftest.$ac_ext
11203cat >>conftest.$ac_ext <<_ACEOF
11204/* end confdefs.h. */
11205
11206/* Override any GCC internal prototype to avoid an error.
11207 Use char because int might match the return type of a GCC
11208 builtin and then its argument prototype would still apply. */
11209#ifdef __cplusplus
11210extern "C"
11211#endif
11212char dlopen ();
11213int
11214main ()
11215{
11216return dlopen ();
11217 ;
11218 return 0;
11219}
11220_ACEOF
11221rm -f conftest.$ac_objext conftest$ac_exeext
11222if { (ac_try="$ac_link"
11223case "(($ac_try" in
11224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11225 *) ac_try_echo=$ac_try;;
11226esac
11227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11228 (eval "$ac_link") 2>conftest.er1
11229 ac_status=$?
11230 grep -v '^ *+' conftest.er1 >conftest.err
11231 rm -f conftest.er1
11232 cat conftest.err >&5
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); } && {
11235 test -z "$ac_c_werror_flag" ||
11236 test ! -s conftest.err
11237 } && test -s conftest$ac_exeext &&
11238 $as_test_x conftest$ac_exeext; then
11239 ac_cv_lib_dl_dlopen=yes
11240else
11241 echo "$as_me: failed program was:" >&5
11242sed 's/^/| /' conftest.$ac_ext >&5
11243
11244 ac_cv_lib_dl_dlopen=no
11245fi
11246
11247rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11248 conftest$ac_exeext conftest.$ac_ext
11249LIBS=$ac_check_lib_save_LIBS
11250fi
11251{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11252echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11253if test $ac_cv_lib_dl_dlopen = yes; then
11254 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11255else
11256 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11257echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11258if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11259 echo $ECHO_N "(cached) $ECHO_C" >&6
11260else
11261 ac_check_lib_save_LIBS=$LIBS
11262LIBS="-lsvld $LIBS"
11263cat >conftest.$ac_ext <<_ACEOF
11264/* confdefs.h. */
11265_ACEOF
11266cat confdefs.h >>conftest.$ac_ext
11267cat >>conftest.$ac_ext <<_ACEOF
11268/* end confdefs.h. */
11269
11270/* Override any GCC internal prototype to avoid an error.
11271 Use char because int might match the return type of a GCC
11272 builtin and then its argument prototype would still apply. */
11273#ifdef __cplusplus
11274extern "C"
11275#endif
11276char dlopen ();
11277int
11278main ()
11279{
11280return dlopen ();
11281 ;
11282 return 0;
11283}
11284_ACEOF
11285rm -f conftest.$ac_objext conftest$ac_exeext
11286if { (ac_try="$ac_link"
11287case "(($ac_try" in
11288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11289 *) ac_try_echo=$ac_try;;
11290esac
11291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11292 (eval "$ac_link") 2>conftest.er1
11293 ac_status=$?
11294 grep -v '^ *+' conftest.er1 >conftest.err
11295 rm -f conftest.er1
11296 cat conftest.err >&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); } && {
11299 test -z "$ac_c_werror_flag" ||
11300 test ! -s conftest.err
11301 } && test -s conftest$ac_exeext &&
11302 $as_test_x conftest$ac_exeext; then
11303 ac_cv_lib_svld_dlopen=yes
11304else
11305 echo "$as_me: failed program was:" >&5
11306sed 's/^/| /' conftest.$ac_ext >&5
11307
11308 ac_cv_lib_svld_dlopen=no
11309fi
11310
11311rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11312 conftest$ac_exeext conftest.$ac_ext
11313LIBS=$ac_check_lib_save_LIBS
11314fi
11315{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11316echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11317if test $ac_cv_lib_svld_dlopen = yes; then
11318 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11319else
11320 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11321echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11322if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11323 echo $ECHO_N "(cached) $ECHO_C" >&6
11324else
11325 ac_check_lib_save_LIBS=$LIBS
11326LIBS="-ldld $LIBS"
11327cat >conftest.$ac_ext <<_ACEOF
11328/* confdefs.h. */
11329_ACEOF
11330cat confdefs.h >>conftest.$ac_ext
11331cat >>conftest.$ac_ext <<_ACEOF
11332/* end confdefs.h. */
11333
11334/* Override any GCC internal prototype to avoid an error.
11335 Use char because int might match the return type of a GCC
11336 builtin and then its argument prototype would still apply. */
11337#ifdef __cplusplus
11338extern "C"
11339#endif
11340char dld_link ();
11341int
11342main ()
11343{
11344return dld_link ();
11345 ;
11346 return 0;
11347}
11348_ACEOF
11349rm -f conftest.$ac_objext conftest$ac_exeext
11350if { (ac_try="$ac_link"
11351case "(($ac_try" in
11352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11353 *) ac_try_echo=$ac_try;;
11354esac
11355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11356 (eval "$ac_link") 2>conftest.er1
11357 ac_status=$?
11358 grep -v '^ *+' conftest.er1 >conftest.err
11359 rm -f conftest.er1
11360 cat conftest.err >&5
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); } && {
11363 test -z "$ac_c_werror_flag" ||
11364 test ! -s conftest.err
11365 } && test -s conftest$ac_exeext &&
11366 $as_test_x conftest$ac_exeext; then
11367 ac_cv_lib_dld_dld_link=yes
11368else
11369 echo "$as_me: failed program was:" >&5
11370sed 's/^/| /' conftest.$ac_ext >&5
11371
11372 ac_cv_lib_dld_dld_link=no
11373fi
11374
11375rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11376 conftest$ac_exeext conftest.$ac_ext
11377LIBS=$ac_check_lib_save_LIBS
11378fi
11379{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11380echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11381if test $ac_cv_lib_dld_dld_link = yes; then
56efe974 11382 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
b57f37fb
WP
11383fi
11384
11385
11386fi
11387
11388
11389fi
11390
11391
11392fi
11393
11394
11395fi
11396
11397
11398fi
11399
11400 ;;
11401 esac
11402
11403 if test "x$lt_cv_dlopen" != xno; then
11404 enable_dlopen=yes
11405 else
11406 enable_dlopen=no
11407 fi
11408
11409 case $lt_cv_dlopen in
11410 dlopen)
11411 save_CPPFLAGS="$CPPFLAGS"
11412 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11413
11414 save_LDFLAGS="$LDFLAGS"
11415 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11416
11417 save_LIBS="$LIBS"
11418 LIBS="$lt_cv_dlopen_libs $LIBS"
11419
11420 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11421echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11422if test "${lt_cv_dlopen_self+set}" = set; then
11423 echo $ECHO_N "(cached) $ECHO_C" >&6
11424else
11425 if test "$cross_compiling" = yes; then :
11426 lt_cv_dlopen_self=cross
11427else
11428 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11429 lt_status=$lt_dlunknown
11430 cat > conftest.$ac_ext <<EOF
56efe974 11431#line 11431 "configure"
b57f37fb
WP
11432#include "confdefs.h"
11433
11434#if HAVE_DLFCN_H
11435#include <dlfcn.h>
11436#endif
11437
11438#include <stdio.h>
11439
11440#ifdef RTLD_GLOBAL
11441# define LT_DLGLOBAL RTLD_GLOBAL
11442#else
11443# ifdef DL_GLOBAL
11444# define LT_DLGLOBAL DL_GLOBAL
11445# else
11446# define LT_DLGLOBAL 0
11447# endif
11448#endif
11449
11450/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11451 find out it does not work in some platform. */
11452#ifndef LT_DLLAZY_OR_NOW
11453# ifdef RTLD_LAZY
11454# define LT_DLLAZY_OR_NOW RTLD_LAZY
11455# else
11456# ifdef DL_LAZY
11457# define LT_DLLAZY_OR_NOW DL_LAZY
11458# else
11459# ifdef RTLD_NOW
11460# define LT_DLLAZY_OR_NOW RTLD_NOW
11461# else
11462# ifdef DL_NOW
11463# define LT_DLLAZY_OR_NOW DL_NOW
11464# else
11465# define LT_DLLAZY_OR_NOW 0
11466# endif
11467# endif
11468# endif
11469# endif
11470#endif
11471
11472#ifdef __cplusplus
11473extern "C" void exit (int);
11474#endif
11475
11476void fnord() { int i=42;}
11477int main ()
11478{
11479 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11480 int status = $lt_dlunknown;
11481
11482 if (self)
11483 {
11484 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11485 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11486 /* dlclose (self); */
11487 }
11488 else
11489 puts (dlerror ());
11490
11491 exit (status);
11492}
11493EOF
11494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11495 (eval $ac_link) 2>&5
11496 ac_status=$?
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11499 (./conftest; exit; ) >&5 2>/dev/null
11500 lt_status=$?
11501 case x$lt_status in
11502 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11503 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11504 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11505 esac
11506 else :
11507 # compilation failed
11508 lt_cv_dlopen_self=no
11509 fi
11510fi
11511rm -fr conftest*
11512
11513
11514fi
11515{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11516echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11517
11518 if test "x$lt_cv_dlopen_self" = xyes; then
11519 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11520 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11521echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11522if test "${lt_cv_dlopen_self_static+set}" = set; then
11523 echo $ECHO_N "(cached) $ECHO_C" >&6
11524else
11525 if test "$cross_compiling" = yes; then :
11526 lt_cv_dlopen_self_static=cross
11527else
11528 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11529 lt_status=$lt_dlunknown
11530 cat > conftest.$ac_ext <<EOF
56efe974 11531#line 11531 "configure"
b57f37fb
WP
11532#include "confdefs.h"
11533
11534#if HAVE_DLFCN_H
11535#include <dlfcn.h>
11536#endif
11537
11538#include <stdio.h>
11539
11540#ifdef RTLD_GLOBAL
11541# define LT_DLGLOBAL RTLD_GLOBAL
11542#else
11543# ifdef DL_GLOBAL
11544# define LT_DLGLOBAL DL_GLOBAL
11545# else
11546# define LT_DLGLOBAL 0
11547# endif
11548#endif
11549
11550/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11551 find out it does not work in some platform. */
11552#ifndef LT_DLLAZY_OR_NOW
11553# ifdef RTLD_LAZY
11554# define LT_DLLAZY_OR_NOW RTLD_LAZY
11555# else
11556# ifdef DL_LAZY
11557# define LT_DLLAZY_OR_NOW DL_LAZY
11558# else
11559# ifdef RTLD_NOW
11560# define LT_DLLAZY_OR_NOW RTLD_NOW
11561# else
11562# ifdef DL_NOW
11563# define LT_DLLAZY_OR_NOW DL_NOW
11564# else
11565# define LT_DLLAZY_OR_NOW 0
11566# endif
11567# endif
11568# endif
11569# endif
11570#endif
11571
11572#ifdef __cplusplus
11573extern "C" void exit (int);
11574#endif
11575
11576void fnord() { int i=42;}
11577int main ()
11578{
11579 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11580 int status = $lt_dlunknown;
11581
11582 if (self)
11583 {
11584 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11585 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11586 /* dlclose (self); */
11587 }
11588 else
11589 puts (dlerror ());
11590
11591 exit (status);
11592}
11593EOF
11594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11595 (eval $ac_link) 2>&5
11596 ac_status=$?
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11599 (./conftest; exit; ) >&5 2>/dev/null
11600 lt_status=$?
11601 case x$lt_status in
11602 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11603 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11604 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11605 esac
11606 else :
11607 # compilation failed
11608 lt_cv_dlopen_self_static=no
11609 fi
11610fi
11611rm -fr conftest*
11612
11613
11614fi
11615{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11616echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11617 fi
11618
11619 CPPFLAGS="$save_CPPFLAGS"
11620 LDFLAGS="$save_LDFLAGS"
11621 LIBS="$save_LIBS"
11622 ;;
11623 esac
11624
11625 case $lt_cv_dlopen_self in
11626 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11627 *) enable_dlopen_self=unknown ;;
11628 esac
11629
11630 case $lt_cv_dlopen_self_static in
11631 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11632 *) enable_dlopen_self_static=unknown ;;
11633 esac
11634fi
11635
11636
11637# Report which library types will actually be built
11638{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11639echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11640{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
11641echo "${ECHO_T}$can_build_shared" >&6; }
11642
11643{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11644echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11645test "$can_build_shared" = "no" && enable_shared=no
11646
11647# On AIX, shared libraries and static libraries use the same namespace, and
11648# are all built from PIC.
11649case $host_os in
11650aix3*)
11651 test "$enable_shared" = yes && enable_static=no
11652 if test -n "$RANLIB"; then
11653 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11654 postinstall_cmds='$RANLIB $lib'
11655 fi
11656 ;;
11657
56efe974 11658aix[4-9]*)
b57f37fb
WP
11659 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11660 test "$enable_shared" = yes && enable_static=no
11661 fi
11662 ;;
11663esac
11664{ echo "$as_me:$LINENO: result: $enable_shared" >&5
11665echo "${ECHO_T}$enable_shared" >&6; }
11666
11667{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11668echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11669# Make sure either enable_shared or enable_static is yes.
11670test "$enable_shared" = yes || enable_static=yes
11671{ echo "$as_me:$LINENO: result: $enable_static" >&5
11672echo "${ECHO_T}$enable_static" >&6; }
11673
11674# The else clause should only fire when bootstrapping the
11675# libtool distribution, otherwise you forgot to ship ltmain.sh
11676# with your package, and you will get complaints that there are
11677# no rules to generate ltmain.sh.
11678if test -f "$ltmain"; then
11679 # See if we are running on zsh, and set the options which allow our commands through
11680 # without removal of \ escapes.
11681 if test -n "${ZSH_VERSION+set}" ; then
11682 setopt NO_GLOB_SUBST
11683 fi
11684 # Now quote all the things that may contain metacharacters while being
11685 # careful not to overquote the AC_SUBSTed values. We take copies of the
11686 # variables and quote the copies for generation of the libtool script.
11687 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11688 SED SHELL STRIP \
11689 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11690 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11691 deplibs_check_method reload_flag reload_cmds need_locks \
11692 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11693 lt_cv_sys_global_symbol_to_c_name_address \
11694 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11695 old_postinstall_cmds old_postuninstall_cmds \
11696 compiler \
11697 CC \
11698 LD \
11699 lt_prog_compiler_wl \
11700 lt_prog_compiler_pic \
11701 lt_prog_compiler_static \
11702 lt_prog_compiler_no_builtin_flag \
11703 export_dynamic_flag_spec \
11704 thread_safe_flag_spec \
11705 whole_archive_flag_spec \
11706 enable_shared_with_static_runtimes \
11707 old_archive_cmds \
11708 old_archive_from_new_cmds \
11709 predep_objects \
11710 postdep_objects \
11711 predeps \
11712 postdeps \
11713 compiler_lib_search_path \
56efe974 11714 compiler_lib_search_dirs \
b57f37fb
WP
11715 archive_cmds \
11716 archive_expsym_cmds \
11717 postinstall_cmds \
11718 postuninstall_cmds \
11719 old_archive_from_expsyms_cmds \
11720 allow_undefined_flag \
11721 no_undefined_flag \
11722 export_symbols_cmds \
11723 hardcode_libdir_flag_spec \
11724 hardcode_libdir_flag_spec_ld \
11725 hardcode_libdir_separator \
11726 hardcode_automatic \
11727 module_cmds \
11728 module_expsym_cmds \
11729 lt_cv_prog_compiler_c_o \
11730 fix_srcfile_path \
11731 exclude_expsyms \
11732 include_expsyms; do
11733
11734 case $var in
11735 old_archive_cmds | \
11736 old_archive_from_new_cmds | \
11737 archive_cmds | \
11738 archive_expsym_cmds | \
11739 module_cmds | \
11740 module_expsym_cmds | \
11741 old_archive_from_expsyms_cmds | \
11742 export_symbols_cmds | \
11743 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11744 postinstall_cmds | postuninstall_cmds | \
11745 old_postinstall_cmds | old_postuninstall_cmds | \
11746 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11747 # Double-quote double-evaled strings.
11748 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11749 ;;
11750 *)
11751 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11752 ;;
11753 esac
11754 done
11755
11756 case $lt_echo in
11757 *'\$0 --fallback-echo"')
11758 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11759 ;;
11760 esac
11761
11762cfgfile="${ofile}T"
11763 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11764 $rm -f "$cfgfile"
11765 { echo "$as_me:$LINENO: creating $ofile" >&5
11766echo "$as_me: creating $ofile" >&6;}
11767
11768 cat <<__EOF__ >> "$cfgfile"
11769#! $SHELL
11770
11771# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11772# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11773# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11774#
56efe974 11775# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
b57f37fb
WP
11776# Free Software Foundation, Inc.
11777#
11778# This file is part of GNU Libtool:
11779# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11780#
11781# This program is free software; you can redistribute it and/or modify
11782# it under the terms of the GNU General Public License as published by
11783# the Free Software Foundation; either version 2 of the License, or
11784# (at your option) any later version.
11785#
11786# This program is distributed in the hope that it will be useful, but
11787# WITHOUT ANY WARRANTY; without even the implied warranty of
11788# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11789# General Public License for more details.
11790#
11791# You should have received a copy of the GNU General Public License
11792# along with this program; if not, write to the Free Software
11793# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11794#
11795# As a special exception to the GNU General Public License, if you
11796# distribute this file as part of a program that contains a
11797# configuration script generated by Autoconf, you may include it under
11798# the same distribution terms that you use for the rest of that program.
11799
11800# A sed program that does not truncate output.
11801SED=$lt_SED
11802
11803# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11804Xsed="$SED -e 1s/^X//"
11805
11806# The HP-UX ksh and POSIX shell print the target directory to stdout
11807# if CDPATH is set.
11808(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11809
11810# The names of the tagged configurations supported by this script.
11811available_tags=
11812
11813# ### BEGIN LIBTOOL CONFIG
11814
11815# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11816
11817# Shell to use when invoking shell scripts.
11818SHELL=$lt_SHELL
11819
11820# Whether or not to build shared libraries.
11821build_libtool_libs=$enable_shared
11822
11823# Whether or not to build static libraries.
11824build_old_libs=$enable_static
11825
11826# Whether or not to add -lc for building shared libraries.
11827build_libtool_need_lc=$archive_cmds_need_lc
11828
11829# Whether or not to disallow shared libs when runtime libs are static
11830allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11831
11832# Whether or not to optimize for fast installation.
11833fast_install=$enable_fast_install
11834
11835# The host system.
11836host_alias=$host_alias
11837host=$host
11838host_os=$host_os
11839
11840# The build system.
11841build_alias=$build_alias
11842build=$build
11843build_os=$build_os
11844
11845# An echo program that does not interpret backslashes.
11846echo=$lt_echo
11847
11848# The archiver.
11849AR=$lt_AR
11850AR_FLAGS=$lt_AR_FLAGS
11851
11852# A C compiler.
11853LTCC=$lt_LTCC
11854
11855# LTCC compiler flags.
11856LTCFLAGS=$lt_LTCFLAGS
11857
11858# A language-specific compiler.
11859CC=$lt_compiler
11860
11861# Is the compiler the GNU C compiler?
11862with_gcc=$GCC
11863
11864# An ERE matcher.
11865EGREP=$lt_EGREP
11866
11867# The linker used to build libraries.
11868LD=$lt_LD
11869
11870# Whether we need hard or soft links.
11871LN_S=$lt_LN_S
11872
11873# A BSD-compatible nm program.
11874NM=$lt_NM
11875
11876# A symbol stripping program
11877STRIP=$lt_STRIP
11878
11879# Used to examine libraries when file_magic_cmd begins "file"
11880MAGIC_CMD=$MAGIC_CMD
11881
11882# Used on cygwin: DLL creation program.
11883DLLTOOL="$DLLTOOL"
11884
11885# Used on cygwin: object dumper.
11886OBJDUMP="$OBJDUMP"
11887
11888# Used on cygwin: assembler.
11889AS="$AS"
11890
11891# The name of the directory that contains temporary libtool files.
11892objdir=$objdir
11893
11894# How to create reloadable object files.
11895reload_flag=$lt_reload_flag
11896reload_cmds=$lt_reload_cmds
11897
11898# How to pass a linker flag through the compiler.
11899wl=$lt_lt_prog_compiler_wl
11900
11901# Object file suffix (normally "o").
11902objext="$ac_objext"
11903
11904# Old archive suffix (normally "a").
11905libext="$libext"
11906
11907# Shared library suffix (normally ".so").
11908shrext_cmds='$shrext_cmds'
11909
11910# Executable file suffix (normally "").
11911exeext="$exeext"
11912
11913# Additional compiler flags for building library objects.
11914pic_flag=$lt_lt_prog_compiler_pic
11915pic_mode=$pic_mode
11916
11917# What is the maximum length of a command?
11918max_cmd_len=$lt_cv_sys_max_cmd_len
11919
11920# Does compiler simultaneously support -c and -o options?
11921compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11922
11923# Must we lock files when doing compilation?
11924need_locks=$lt_need_locks
11925
11926# Do we need the lib prefix for modules?
11927need_lib_prefix=$need_lib_prefix
11928
11929# Do we need a version for libraries?
11930need_version=$need_version
11931
11932# Whether dlopen is supported.
11933dlopen_support=$enable_dlopen
11934
11935# Whether dlopen of programs is supported.
11936dlopen_self=$enable_dlopen_self
11937
11938# Whether dlopen of statically linked programs is supported.
11939dlopen_self_static=$enable_dlopen_self_static
11940
11941# Compiler flag to prevent dynamic linking.
11942link_static_flag=$lt_lt_prog_compiler_static
11943
11944# Compiler flag to turn off builtin functions.
11945no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11946
11947# Compiler flag to allow reflexive dlopens.
11948export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11949
11950# Compiler flag to generate shared objects directly from archives.
11951whole_archive_flag_spec=$lt_whole_archive_flag_spec
11952
11953# Compiler flag to generate thread-safe objects.
11954thread_safe_flag_spec=$lt_thread_safe_flag_spec
11955
11956# Library versioning type.
11957version_type=$version_type
11958
11959# Format of library name prefix.
11960libname_spec=$lt_libname_spec
11961
11962# List of archive names. First name is the real one, the rest are links.
11963# The last name is the one that the linker finds with -lNAME.
11964library_names_spec=$lt_library_names_spec
11965
11966# The coded name of the library, if different from the real name.
11967soname_spec=$lt_soname_spec
11968
11969# Commands used to build and install an old-style archive.
11970RANLIB=$lt_RANLIB
11971old_archive_cmds=$lt_old_archive_cmds
11972old_postinstall_cmds=$lt_old_postinstall_cmds
11973old_postuninstall_cmds=$lt_old_postuninstall_cmds
11974
11975# Create an old-style archive from a shared archive.
11976old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11977
11978# Create a temporary old-style archive to link instead of a shared archive.
11979old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11980
11981# Commands used to build and install a shared archive.
11982archive_cmds=$lt_archive_cmds
11983archive_expsym_cmds=$lt_archive_expsym_cmds
11984postinstall_cmds=$lt_postinstall_cmds
11985postuninstall_cmds=$lt_postuninstall_cmds
11986
11987# Commands used to build a loadable module (assumed same as above if empty)
11988module_cmds=$lt_module_cmds
11989module_expsym_cmds=$lt_module_expsym_cmds
11990
11991# Commands to strip libraries.
11992old_striplib=$lt_old_striplib
11993striplib=$lt_striplib
11994
11995# Dependencies to place before the objects being linked to create a
11996# shared library.
11997predep_objects=$lt_predep_objects
11998
11999# Dependencies to place after the objects being linked to create a
12000# shared library.
12001postdep_objects=$lt_postdep_objects
12002
12003# Dependencies to place before the objects being linked to create a
12004# shared library.
12005predeps=$lt_predeps
12006
12007# Dependencies to place after the objects being linked to create a
12008# shared library.
12009postdeps=$lt_postdeps
12010
56efe974
WP
12011# The directories searched by this compiler when creating a shared
12012# library
12013compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
12014
b57f37fb
WP
12015# The library search path used internally by the compiler when linking
12016# a shared library.
12017compiler_lib_search_path=$lt_compiler_lib_search_path
12018
12019# Method to check whether dependent libraries are shared objects.
12020deplibs_check_method=$lt_deplibs_check_method
12021
12022# Command to use when deplibs_check_method == file_magic.
12023file_magic_cmd=$lt_file_magic_cmd
12024
12025# Flag that allows shared libraries with undefined symbols to be built.
12026allow_undefined_flag=$lt_allow_undefined_flag
12027
12028# Flag that forces no undefined symbols.
12029no_undefined_flag=$lt_no_undefined_flag
12030
12031# Commands used to finish a libtool library installation in a directory.
12032finish_cmds=$lt_finish_cmds
12033
12034# Same as above, but a single script fragment to be evaled but not shown.
12035finish_eval=$lt_finish_eval
12036
12037# Take the output of nm and produce a listing of raw symbols and C names.
12038global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12039
12040# Transform the output of nm in a proper C declaration
12041global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12042
12043# Transform the output of nm in a C name address pair
12044global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12045
12046# This is the shared library runtime path variable.
12047runpath_var=$runpath_var
12048
12049# This is the shared library path variable.
12050shlibpath_var=$shlibpath_var
12051
12052# Is shlibpath searched before the hard-coded library search path?
12053shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12054
12055# How to hardcode a shared library path into an executable.
12056hardcode_action=$hardcode_action
12057
12058# Whether we should hardcode library paths into libraries.
12059hardcode_into_libs=$hardcode_into_libs
12060
12061# Flag to hardcode \$libdir into a binary during linking.
12062# This must work even if \$libdir does not exist.
12063hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12064
12065# If ld is used when linking, flag to hardcode \$libdir into
12066# a binary during linking. This must work even if \$libdir does
12067# not exist.
12068hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12069
12070# Whether we need a single -rpath flag with a separated argument.
12071hardcode_libdir_separator=$lt_hardcode_libdir_separator
12072
12073# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12074# resulting binary.
12075hardcode_direct=$hardcode_direct
12076
12077# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12078# resulting binary.
12079hardcode_minus_L=$hardcode_minus_L
12080
12081# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12082# the resulting binary.
12083hardcode_shlibpath_var=$hardcode_shlibpath_var
12084
12085# Set to yes if building a shared library automatically hardcodes DIR into the library
12086# and all subsequent libraries and executables linked against it.
12087hardcode_automatic=$hardcode_automatic
12088
12089# Variables whose values should be saved in libtool wrapper scripts and
12090# restored at relink time.
12091variables_saved_for_relink="$variables_saved_for_relink"
12092
12093# Whether libtool must link a program against all its dependency libraries.
12094link_all_deplibs=$link_all_deplibs
12095
12096# Compile-time system search path for libraries
12097sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12098
12099# Run-time system search path for libraries
12100sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12101
12102# Fix the shell variable \$srcfile for the compiler.
12103fix_srcfile_path=$lt_fix_srcfile_path
12104
12105# Set to yes if exported symbols are required.
12106always_export_symbols=$always_export_symbols
12107
12108# The commands to list exported symbols.
12109export_symbols_cmds=$lt_export_symbols_cmds
12110
12111# The commands to extract the exported symbol list from a shared archive.
12112extract_expsyms_cmds=$lt_extract_expsyms_cmds
12113
12114# Symbols that should not be listed in the preloaded symbols.
12115exclude_expsyms=$lt_exclude_expsyms
12116
12117# Symbols that must always be exported.
12118include_expsyms=$lt_include_expsyms
12119
12120# ### END LIBTOOL CONFIG
12121
12122__EOF__
12123
12124
12125 case $host_os in
12126 aix3*)
12127 cat <<\EOF >> "$cfgfile"
12128
12129# AIX sometimes has problems with the GCC collect2 program. For some
12130# reason, if we set the COLLECT_NAMES environment variable, the problems
12131# vanish in a puff of smoke.
12132if test "X${COLLECT_NAMES+set}" != Xset; then
12133 COLLECT_NAMES=
12134 export COLLECT_NAMES
12135fi
12136EOF
12137 ;;
12138 esac
12139
12140 # We use sed instead of cat because bash on DJGPP gets confused if
12141 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12142 # text mode, it properly converts lines to CR/LF. This bash problem
12143 # is reportedly fixed, but why not run on old versions too?
12144 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12145
12146 mv -f "$cfgfile" "$ofile" || \
12147 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12148 chmod +x "$ofile"
12149
12150else
12151 # If there is no Makefile yet, we rely on a make rule to execute
12152 # `config.status --recheck' to rerun these tests and create the
12153 # libtool script then.
12154 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12155 if test -f "$ltmain_in"; then
12156 test -f Makefile && make "$ltmain"
12157 fi
12158fi
12159
12160
12161ac_ext=c
12162ac_cpp='$CPP $CPPFLAGS'
12163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12165ac_compiler_gnu=$ac_cv_c_compiler_gnu
12166
12167CC="$lt_save_CC"
12168
12169
12170# Check whether --with-tags was given.
12171if test "${with_tags+set}" = set; then
12172 withval=$with_tags; tagnames="$withval"
12173fi
12174
12175
12176if test -f "$ltmain" && test -n "$tagnames"; then
12177 if test ! -f "${ofile}"; then
12178 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12179echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12180 fi
12181
12182 if test -z "$LTCC"; then
12183 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12184 if test -z "$LTCC"; then
12185 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12186echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12187 else
12188 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12189echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12190 fi
12191 fi
12192 if test -z "$LTCFLAGS"; then
12193 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12194 fi
12195
12196 # Extract list of available tagged configurations in $ofile.
12197 # Note that this assumes the entire list is on one line.
12198 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12199
12200 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12201 for tagname in $tagnames; do
12202 IFS="$lt_save_ifs"
12203 # Check whether tagname contains only valid characters
12204 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12205 "") ;;
12206 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12207echo "$as_me: error: invalid tag name: $tagname" >&2;}
12208 { (exit 1); exit 1; }; }
12209 ;;
12210 esac
12211
12212 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12213 then
12214 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12215echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12216 { (exit 1); exit 1; }; }
12217 fi
12218
12219 # Update the list of available tags.
12220 if test -n "$tagname"; then
12221 echo appending configuration tag \"$tagname\" to $ofile
12222
12223 case $tagname in
12224 CXX)
12225 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12226 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12227 (test "X$CXX" != "Xg++"))) ; then
12228 ac_ext=cpp
12229ac_cpp='$CXXCPP $CPPFLAGS'
12230ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12231ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12232ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12233
12234
12235
12236
12237archive_cmds_need_lc_CXX=no
12238allow_undefined_flag_CXX=
12239always_export_symbols_CXX=no
12240archive_expsym_cmds_CXX=
12241export_dynamic_flag_spec_CXX=
12242hardcode_direct_CXX=no
12243hardcode_libdir_flag_spec_CXX=
12244hardcode_libdir_flag_spec_ld_CXX=
12245hardcode_libdir_separator_CXX=
12246hardcode_minus_L_CXX=no
12247hardcode_shlibpath_var_CXX=unsupported
12248hardcode_automatic_CXX=no
12249module_cmds_CXX=
12250module_expsym_cmds_CXX=
12251link_all_deplibs_CXX=unknown
12252old_archive_cmds_CXX=$old_archive_cmds
12253no_undefined_flag_CXX=
12254whole_archive_flag_spec_CXX=
12255enable_shared_with_static_runtimes_CXX=no
12256
12257# Dependencies to place before and after the object being linked:
12258predep_objects_CXX=
12259postdep_objects_CXX=
12260predeps_CXX=
12261postdeps_CXX=
12262compiler_lib_search_path_CXX=
56efe974 12263compiler_lib_search_dirs_CXX=
b57f37fb
WP
12264
12265# Source file extension for C++ test sources.
12266ac_ext=cpp
12267
12268# Object file extension for compiled C++ test sources.
12269objext=o
12270objext_CXX=$objext
12271
12272# Code to be used in simple compile tests
12273lt_simple_compile_test_code="int some_variable = 0;"
12274
12275# Code to be used in simple link tests
12276lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12277
12278# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12279
12280# If no C compiler was specified, use CC.
12281LTCC=${LTCC-"$CC"}
12282
12283# If no C compiler flags were specified, use CFLAGS.
12284LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12285
12286# Allow CC to be a program name with arguments.
12287compiler=$CC
12288
12289
12290# save warnings/boilerplate of simple test code
12291ac_outfile=conftest.$ac_objext
12292echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12293eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12294_lt_compiler_boilerplate=`cat conftest.err`
12295$rm conftest*
12296
12297ac_outfile=conftest.$ac_objext
12298echo "$lt_simple_link_test_code" >conftest.$ac_ext
12299eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12300_lt_linker_boilerplate=`cat conftest.err`
56efe974 12301$rm -r conftest*
b57f37fb
WP
12302
12303
12304# Allow CC to be a program name with arguments.
12305lt_save_CC=$CC
12306lt_save_LD=$LD
12307lt_save_GCC=$GCC
12308GCC=$GXX
12309lt_save_with_gnu_ld=$with_gnu_ld
12310lt_save_path_LD=$lt_cv_path_LD
12311if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12312 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12313else
12314 $as_unset lt_cv_prog_gnu_ld
12315fi
12316if test -n "${lt_cv_path_LDCXX+set}"; then
12317 lt_cv_path_LD=$lt_cv_path_LDCXX
12318else
12319 $as_unset lt_cv_path_LD
12320fi
12321test -z "${LDCXX+set}" || LD=$LDCXX
12322CC=${CXX-"c++"}
12323compiler=$CC
12324compiler_CXX=$CC
12325for cc_temp in $compiler""; do
12326 case $cc_temp in
12327 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12328 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12329 \-*) ;;
12330 *) break;;
12331 esac
12332done
12333cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12334
12335
12336# We don't want -fno-exception wen compiling C++ code, so set the
12337# no_builtin_flag separately
12338if test "$GXX" = yes; then
12339 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12340else
12341 lt_prog_compiler_no_builtin_flag_CXX=
12342fi
12343
12344if test "$GXX" = yes; then
12345 # Set up default GNU C++ configuration
12346
12347
12348# Check whether --with-gnu-ld was given.
12349if test "${with_gnu_ld+set}" = set; then
12350 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12351else
12352 with_gnu_ld=no
12353fi
12354
12355ac_prog=ld
12356if test "$GCC" = yes; then
12357 # Check if gcc -print-prog-name=ld gives a path.
12358 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12359echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12360 case $host in
12361 *-*-mingw*)
12362 # gcc leaves a trailing carriage return which upsets mingw
12363 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12364 *)
12365 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12366 esac
12367 case $ac_prog in
12368 # Accept absolute paths.
12369 [\\/]* | ?:[\\/]*)
12370 re_direlt='/[^/][^/]*/\.\./'
12371 # Canonicalize the pathname of ld
12372 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12373 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12374 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12375 done
12376 test -z "$LD" && LD="$ac_prog"
12377 ;;
12378 "")
12379 # If it fails, then pretend we aren't using GCC.
12380 ac_prog=ld
12381 ;;
12382 *)
12383 # If it is relative, then search for the first ld in PATH.
12384 with_gnu_ld=unknown
12385 ;;
12386 esac
12387elif test "$with_gnu_ld" = yes; then
12388 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12389echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12390else
12391 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12392echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12393fi
12394if test "${lt_cv_path_LD+set}" = set; then
12395 echo $ECHO_N "(cached) $ECHO_C" >&6
12396else
12397 if test -z "$LD"; then
12398 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12399 for ac_dir in $PATH; do
12400 IFS="$lt_save_ifs"
12401 test -z "$ac_dir" && ac_dir=.
12402 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12403 lt_cv_path_LD="$ac_dir/$ac_prog"
12404 # Check to see if the program is GNU ld. I'd rather use --version,
12405 # but apparently some variants of GNU ld only accept -v.
12406 # Break only if it was the GNU/non-GNU ld that we prefer.
12407 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12408 *GNU* | *'with BFD'*)
12409 test "$with_gnu_ld" != no && break
12410 ;;
12411 *)
12412 test "$with_gnu_ld" != yes && break
12413 ;;
12414 esac
12415 fi
12416 done
12417 IFS="$lt_save_ifs"
12418else
12419 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12420fi
12421fi
12422
12423LD="$lt_cv_path_LD"
12424if test -n "$LD"; then
12425 { echo "$as_me:$LINENO: result: $LD" >&5
12426echo "${ECHO_T}$LD" >&6; }
12427else
12428 { echo "$as_me:$LINENO: result: no" >&5
12429echo "${ECHO_T}no" >&6; }
12430fi
12431test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12432echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12433 { (exit 1); exit 1; }; }
12434{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12435echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12436if test "${lt_cv_prog_gnu_ld+set}" = set; then
12437 echo $ECHO_N "(cached) $ECHO_C" >&6
12438else
12439 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12440case `$LD -v 2>&1 </dev/null` in
12441*GNU* | *'with BFD'*)
12442 lt_cv_prog_gnu_ld=yes
12443 ;;
12444*)
12445 lt_cv_prog_gnu_ld=no
12446 ;;
12447esac
12448fi
12449{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12450echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12451with_gnu_ld=$lt_cv_prog_gnu_ld
12452
12453
12454
12455 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12456 # archiving commands below assume that GNU ld is being used.
12457 if test "$with_gnu_ld" = yes; then
12458 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12459 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'
12460
12461 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12462 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12463
12464 # If archive_cmds runs LD, not CC, wlarc should be empty
12465 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12466 # investigate it a little bit more. (MM)
12467 wlarc='${wl}'
12468
12469 # ancient GNU ld didn't support --whole-archive et. al.
12470 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12471 grep 'no-whole-archive' > /dev/null; then
12472 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12473 else
12474 whole_archive_flag_spec_CXX=
12475 fi
12476 else
12477 with_gnu_ld=no
12478 wlarc=
12479
12480 # A generic and very simple default shared library creation
12481 # command for GNU C++ for the case where it uses the native
12482 # linker, instead of GNU ld. If possible, this setting should
12483 # overridden to take advantage of the native linker features on
12484 # the platform it is being used on.
12485 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12486 fi
12487
12488 # Commands to make compiler produce verbose output that lists
12489 # what "hidden" libraries, object files and flags are used when
12490 # linking a shared library.
12491 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12492
12493else
12494 GXX=no
12495 with_gnu_ld=no
12496 wlarc=
12497fi
12498
12499# PORTME: fill in a description of your system's C++ link characteristics
12500{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12501echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12502ld_shlibs_CXX=yes
12503case $host_os in
12504 aix3*)
12505 # FIXME: insert proper C++ library support
12506 ld_shlibs_CXX=no
12507 ;;
56efe974 12508 aix[4-9]*)
b57f37fb
WP
12509 if test "$host_cpu" = ia64; then
12510 # On IA64, the linker does run time linking by default, so we don't
12511 # have to do anything special.
12512 aix_use_runtimelinking=no
12513 exp_sym_flag='-Bexport'
12514 no_entry_flag=""
12515 else
12516 aix_use_runtimelinking=no
12517
12518 # Test if we are trying to use run time linking or normal
12519 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12520 # need to do runtime linking.
56efe974 12521 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
b57f37fb
WP
12522 for ld_flag in $LDFLAGS; do
12523 case $ld_flag in
12524 *-brtl*)
12525 aix_use_runtimelinking=yes
12526 break
12527 ;;
12528 esac
12529 done
12530 ;;
12531 esac
12532
12533 exp_sym_flag='-bexport'
12534 no_entry_flag='-bnoentry'
12535 fi
12536
12537 # When large executables or shared objects are built, AIX ld can
12538 # have problems creating the table of contents. If linking a library
12539 # or program results in "error TOC overflow" add -mminimal-toc to
12540 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12541 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12542
12543 archive_cmds_CXX=''
12544 hardcode_direct_CXX=yes
12545 hardcode_libdir_separator_CXX=':'
12546 link_all_deplibs_CXX=yes
12547
12548 if test "$GXX" = yes; then
12549 case $host_os in aix4.[012]|aix4.[012].*)
12550 # We only want to do this on AIX 4.2 and lower, the check
12551 # below for broken collect2 doesn't work under 4.3+
12552 collect2name=`${CC} -print-prog-name=collect2`
12553 if test -f "$collect2name" && \
12554 strings "$collect2name" | grep resolve_lib_name >/dev/null
12555 then
12556 # We have reworked collect2
12557 :
12558 else
12559 # We have old collect2
12560 hardcode_direct_CXX=unsupported
12561 # It fails to find uninstalled libraries when the uninstalled
12562 # path is not listed in the libpath. Setting hardcode_minus_L
12563 # to unsupported forces relinking
12564 hardcode_minus_L_CXX=yes
12565 hardcode_libdir_flag_spec_CXX='-L$libdir'
12566 hardcode_libdir_separator_CXX=
12567 fi
12568 ;;
12569 esac
12570 shared_flag='-shared'
12571 if test "$aix_use_runtimelinking" = yes; then
12572 shared_flag="$shared_flag "'${wl}-G'
12573 fi
12574 else
12575 # not using gcc
12576 if test "$host_cpu" = ia64; then
12577 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12578 # chokes on -Wl,-G. The following line is correct:
12579 shared_flag='-G'
12580 else
12581 if test "$aix_use_runtimelinking" = yes; then
12582 shared_flag='${wl}-G'
12583 else
12584 shared_flag='${wl}-bM:SRE'
12585 fi
12586 fi
12587 fi
12588
12589 # It seems that -bexpall does not export symbols beginning with
12590 # underscore (_), so it is better to generate a list of symbols to export.
12591 always_export_symbols_CXX=yes
12592 if test "$aix_use_runtimelinking" = yes; then
12593 # Warning - without using the other runtime loading flags (-brtl),
12594 # -berok will link without error, but may produce a broken library.
12595 allow_undefined_flag_CXX='-berok'
12596 # Determine the default libpath from the value encoded in an empty executable.
12597 cat >conftest.$ac_ext <<_ACEOF
12598/* confdefs.h. */
12599_ACEOF
12600cat confdefs.h >>conftest.$ac_ext
12601cat >>conftest.$ac_ext <<_ACEOF
12602/* end confdefs.h. */
12603
12604int
12605main ()
12606{
12607
12608 ;
12609 return 0;
12610}
12611_ACEOF
12612rm -f conftest.$ac_objext conftest$ac_exeext
12613if { (ac_try="$ac_link"
12614case "(($ac_try" in
12615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12616 *) ac_try_echo=$ac_try;;
12617esac
12618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12619 (eval "$ac_link") 2>conftest.er1
12620 ac_status=$?
12621 grep -v '^ *+' conftest.er1 >conftest.err
12622 rm -f conftest.er1
12623 cat conftest.err >&5
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); } && {
12626 test -z "$ac_cxx_werror_flag" ||
12627 test ! -s conftest.err
12628 } && test -s conftest$ac_exeext &&
12629 $as_test_x conftest$ac_exeext; then
12630
12631lt_aix_libpath_sed='
12632 /Import File Strings/,/^$/ {
12633 /^0/ {
12634 s/^0 *\(.*\)$/\1/
12635 p
12636 }
12637 }'
12638aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12639# Check for a 64-bit object if we didn't find anything.
12640if test -z "$aix_libpath"; then
12641 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12642fi
12643else
12644 echo "$as_me: failed program was:" >&5
12645sed 's/^/| /' conftest.$ac_ext >&5
12646
12647
12648fi
12649
12650rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12651 conftest$ac_exeext conftest.$ac_ext
12652if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12653
12654 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12655
12656 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"
12657 else
12658 if test "$host_cpu" = ia64; then
12659 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12660 allow_undefined_flag_CXX="-z nodefs"
12661 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"
12662 else
12663 # Determine the default libpath from the value encoded in an empty executable.
12664 cat >conftest.$ac_ext <<_ACEOF
12665/* confdefs.h. */
12666_ACEOF
12667cat confdefs.h >>conftest.$ac_ext
12668cat >>conftest.$ac_ext <<_ACEOF
12669/* end confdefs.h. */
12670
12671int
12672main ()
12673{
12674
12675 ;
12676 return 0;
12677}
12678_ACEOF
12679rm -f conftest.$ac_objext conftest$ac_exeext
12680if { (ac_try="$ac_link"
12681case "(($ac_try" in
12682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12683 *) ac_try_echo=$ac_try;;
12684esac
12685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12686 (eval "$ac_link") 2>conftest.er1
12687 ac_status=$?
12688 grep -v '^ *+' conftest.er1 >conftest.err
12689 rm -f conftest.er1
12690 cat conftest.err >&5
12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 (exit $ac_status); } && {
12693 test -z "$ac_cxx_werror_flag" ||
12694 test ! -s conftest.err
12695 } && test -s conftest$ac_exeext &&
12696 $as_test_x conftest$ac_exeext; then
12697
12698lt_aix_libpath_sed='
12699 /Import File Strings/,/^$/ {
12700 /^0/ {
12701 s/^0 *\(.*\)$/\1/
12702 p
12703 }
12704 }'
12705aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12706# Check for a 64-bit object if we didn't find anything.
12707if test -z "$aix_libpath"; then
12708 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12709fi
12710else
12711 echo "$as_me: failed program was:" >&5
12712sed 's/^/| /' conftest.$ac_ext >&5
12713
12714
12715fi
12716
12717rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12718 conftest$ac_exeext conftest.$ac_ext
12719if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12720
12721 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12722 # Warning - without using the other run time loading flags,
12723 # -berok will link without error, but may produce a broken library.
12724 no_undefined_flag_CXX=' ${wl}-bernotok'
12725 allow_undefined_flag_CXX=' ${wl}-berok'
12726 # Exported symbols can be pulled into shared objects from archives
12727 whole_archive_flag_spec_CXX='$convenience'
12728 archive_cmds_need_lc_CXX=yes
12729 # This is similar to how AIX traditionally builds its shared libraries.
12730 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'
12731 fi
12732 fi
12733 ;;
12734
12735 beos*)
12736 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12737 allow_undefined_flag_CXX=unsupported
12738 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12739 # support --undefined. This deserves some investigation. FIXME
12740 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12741 else
12742 ld_shlibs_CXX=no
12743 fi
12744 ;;
12745
12746 chorus*)
12747 case $cc_basename in
12748 *)
12749 # FIXME: insert proper C++ library support
12750 ld_shlibs_CXX=no
12751 ;;
12752 esac
12753 ;;
12754
12755 cygwin* | mingw* | pw32*)
12756 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12757 # as there is no search path for DLLs.
12758 hardcode_libdir_flag_spec_CXX='-L$libdir'
12759 allow_undefined_flag_CXX=unsupported
12760 always_export_symbols_CXX=no
12761 enable_shared_with_static_runtimes_CXX=yes
12762
12763 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12764 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'
12765 # If the export-symbols file already is a .def file (1st line
12766 # is EXPORTS), use it as is; otherwise, prepend...
12767 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12768 cp $export_symbols $output_objdir/$soname.def;
12769 else
12770 echo EXPORTS > $output_objdir/$soname.def;
12771 cat $export_symbols >> $output_objdir/$soname.def;
12772 fi~
12773 $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'
12774 else
12775 ld_shlibs_CXX=no
12776 fi
12777 ;;
12778 darwin* | rhapsody*)
b57f37fb
WP
12779 archive_cmds_need_lc_CXX=no
12780 hardcode_direct_CXX=no
12781 hardcode_automatic_CXX=yes
12782 hardcode_shlibpath_var_CXX=unsupported
12783 whole_archive_flag_spec_CXX=''
12784 link_all_deplibs_CXX=yes
56efe974
WP
12785 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12786 if test "$GXX" = yes ; then
b57f37fb 12787 output_verbose_link_cmd='echo'
56efe974
WP
12788 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}"
12789 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12790 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}"
12791 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}"
12792 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12793 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}"
12794 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 12795 fi
b57f37fb
WP
12796 else
12797 case $cc_basename in
12798 xlc*)
12799 output_verbose_link_cmd='echo'
12800 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'
12801 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12802 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12803 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}'
12804 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}'
12805 ;;
12806 *)
12807 ld_shlibs_CXX=no
12808 ;;
12809 esac
12810 fi
12811 ;;
12812
12813 dgux*)
12814 case $cc_basename in
12815 ec++*)
12816 # FIXME: insert proper C++ library support
12817 ld_shlibs_CXX=no
12818 ;;
12819 ghcx*)
12820 # Green Hills C++ Compiler
12821 # FIXME: insert proper C++ library support
12822 ld_shlibs_CXX=no
12823 ;;
12824 *)
12825 # FIXME: insert proper C++ library support
12826 ld_shlibs_CXX=no
12827 ;;
12828 esac
12829 ;;
12830 freebsd[12]*)
12831 # C++ shared libraries reported to be fairly broken before switch to ELF
12832 ld_shlibs_CXX=no
12833 ;;
12834 freebsd-elf*)
12835 archive_cmds_need_lc_CXX=no
12836 ;;
12837 freebsd* | dragonfly*)
12838 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12839 # conventions
12840 ld_shlibs_CXX=yes
12841 ;;
12842 gnu*)
12843 ;;
12844 hpux9*)
12845 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12846 hardcode_libdir_separator_CXX=:
12847 export_dynamic_flag_spec_CXX='${wl}-E'
12848 hardcode_direct_CXX=yes
12849 hardcode_minus_L_CXX=yes # Not in the search PATH,
12850 # but as the default
12851 # location of the library.
12852
12853 case $cc_basename in
12854 CC*)
12855 # FIXME: insert proper C++ library support
12856 ld_shlibs_CXX=no
12857 ;;
12858 aCC*)
12859 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'
12860 # Commands to make compiler produce verbose output that lists
12861 # what "hidden" libraries, object files and flags are used when
12862 # linking a shared library.
12863 #
12864 # There doesn't appear to be a way to prevent this compiler from
12865 # explicitly linking system object files so we need to strip them
12866 # from the output so that they don't get included in the library
12867 # dependencies.
12868 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'
12869 ;;
12870 *)
12871 if test "$GXX" = yes; then
12872 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'
12873 else
12874 # FIXME: insert proper C++ library support
12875 ld_shlibs_CXX=no
12876 fi
12877 ;;
12878 esac
12879 ;;
12880 hpux10*|hpux11*)
12881 if test $with_gnu_ld = no; then
12882 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12883 hardcode_libdir_separator_CXX=:
12884
12885 case $host_cpu in
12886 hppa*64*|ia64*) ;;
12887 *)
12888 export_dynamic_flag_spec_CXX='${wl}-E'
12889 ;;
12890 esac
12891 fi
12892 case $host_cpu in
12893 hppa*64*|ia64*)
12894 hardcode_direct_CXX=no
12895 hardcode_shlibpath_var_CXX=no
12896 ;;
12897 *)
12898 hardcode_direct_CXX=yes
12899 hardcode_minus_L_CXX=yes # Not in the search PATH,
12900 # but as the default
12901 # location of the library.
12902 ;;
12903 esac
12904
12905 case $cc_basename in
12906 CC*)
12907 # FIXME: insert proper C++ library support
12908 ld_shlibs_CXX=no
12909 ;;
12910 aCC*)
12911 case $host_cpu in
12912 hppa*64*)
12913 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12914 ;;
12915 ia64*)
12916 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12917 ;;
12918 *)
12919 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12920 ;;
12921 esac
12922 # Commands to make compiler produce verbose output that lists
12923 # what "hidden" libraries, object files and flags are used when
12924 # linking a shared library.
12925 #
12926 # There doesn't appear to be a way to prevent this compiler from
12927 # explicitly linking system object files so we need to strip them
12928 # from the output so that they don't get included in the library
12929 # dependencies.
12930 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'
12931 ;;
12932 *)
12933 if test "$GXX" = yes; then
12934 if test $with_gnu_ld = no; then
12935 case $host_cpu in
12936 hppa*64*)
12937 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12938 ;;
12939 ia64*)
12940 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12941 ;;
12942 *)
12943 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'
12944 ;;
12945 esac
12946 fi
12947 else
12948 # FIXME: insert proper C++ library support
12949 ld_shlibs_CXX=no
12950 fi
12951 ;;
12952 esac
12953 ;;
12954 interix[3-9]*)
12955 hardcode_direct_CXX=no
12956 hardcode_shlibpath_var_CXX=no
12957 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12958 export_dynamic_flag_spec_CXX='${wl}-E'
12959 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12960 # Instead, shared libraries are loaded at an image base (0x10000000 by
12961 # default) and relocated if they conflict, which is a slow very memory
12962 # consuming and fragmenting process. To avoid this, we pick a random,
12963 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12964 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12965 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'
12966 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'
12967 ;;
12968 irix5* | irix6*)
12969 case $cc_basename in
12970 CC*)
12971 # SGI C++
12972 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'
12973
12974 # Archives containing C++ object files must be created using
12975 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12976 # necessary to make sure instantiated templates are included
12977 # in the archive.
12978 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12979 ;;
12980 *)
12981 if test "$GXX" = yes; then
12982 if test "$with_gnu_ld" = no; then
12983 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'
12984 else
12985 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'
12986 fi
12987 fi
12988 link_all_deplibs_CXX=yes
12989 ;;
12990 esac
12991 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12992 hardcode_libdir_separator_CXX=:
12993 ;;
12994 linux* | k*bsd*-gnu)
12995 case $cc_basename in
12996 KCC*)
12997 # Kuck and Associates, Inc. (KAI) C++ Compiler
12998
12999 # KCC will only create a shared library if the output file
13000 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13001 # to its proper name (with version) after linking.
13002 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'
13003 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'
13004 # Commands to make compiler produce verbose output that lists
13005 # what "hidden" libraries, object files and flags are used when
13006 # linking a shared library.
13007 #
13008 # There doesn't appear to be a way to prevent this compiler from
13009 # explicitly linking system object files so we need to strip them
13010 # from the output so that they don't get included in the library
13011 # dependencies.
13012 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'
13013
13014 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13015 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13016
13017 # Archives containing C++ object files must be created using
13018 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13019 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13020 ;;
13021 icpc*)
13022 # Intel C++
13023 with_gnu_ld=yes
13024 # version 8.0 and above of icpc choke on multiply defined symbols
13025 # if we add $predep_objects and $postdep_objects, however 7.1 and
13026 # earlier do not add the objects themselves.
13027 case `$CC -V 2>&1` in
13028 *"Version 7."*)
13029 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13030 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'
13031 ;;
13032 *) # Version 8.0 or newer
13033 tmp_idyn=
13034 case $host_cpu in
13035 ia64*) tmp_idyn=' -i_dynamic';;
13036 esac
13037 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13038 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'
13039 ;;
13040 esac
13041 archive_cmds_need_lc_CXX=no
13042 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13043 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13044 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13045 ;;
56efe974 13046 pgCC* | pgcpp*)
b57f37fb
WP
13047 # Portland Group C++ compiler
13048 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13049 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'
13050
13051 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13052 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13053 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'
13054 ;;
13055 cxx*)
13056 # Compaq C++
13057 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13058 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'
13059
13060 runpath_var=LD_RUN_PATH
13061 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13062 hardcode_libdir_separator_CXX=:
13063
13064 # Commands to make compiler produce verbose output that lists
13065 # what "hidden" libraries, object files and flags are used when
13066 # linking a shared library.
13067 #
13068 # There doesn't appear to be a way to prevent this compiler from
13069 # explicitly linking system object files so we need to strip them
13070 # from the output so that they don't get included in the library
13071 # dependencies.
13072 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'
13073 ;;
13074 *)
13075 case `$CC -V 2>&1 | sed 5q` in
13076 *Sun\ C*)
13077 # Sun C++ 5.9
13078 no_undefined_flag_CXX=' -zdefs'
13079 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13080 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'
13081 hardcode_libdir_flag_spec_CXX='-R$libdir'
13082 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'
13083
13084 # Not sure whether something based on
13085 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13086 # would be better.
13087 output_verbose_link_cmd='echo'
13088
13089 # Archives containing C++ object files must be created using
13090 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13091 # necessary to make sure instantiated templates are included
13092 # in the archive.
13093 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13094 ;;
13095 esac
13096 ;;
13097 esac
13098 ;;
13099 lynxos*)
13100 # FIXME: insert proper C++ library support
13101 ld_shlibs_CXX=no
13102 ;;
13103 m88k*)
13104 # FIXME: insert proper C++ library support
13105 ld_shlibs_CXX=no
13106 ;;
13107 mvs*)
13108 case $cc_basename in
13109 cxx*)
13110 # FIXME: insert proper C++ library support
13111 ld_shlibs_CXX=no
13112 ;;
13113 *)
13114 # FIXME: insert proper C++ library support
13115 ld_shlibs_CXX=no
13116 ;;
13117 esac
13118 ;;
13119 netbsd* | netbsdelf*-gnu)
13120 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13121 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13122 wlarc=
13123 hardcode_libdir_flag_spec_CXX='-R$libdir'
13124 hardcode_direct_CXX=yes
13125 hardcode_shlibpath_var_CXX=no
13126 fi
13127 # Workaround some broken pre-1.5 toolchains
13128 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13129 ;;
13130 openbsd2*)
13131 # C++ shared libraries are fairly broken
13132 ld_shlibs_CXX=no
13133 ;;
13134 openbsd*)
13135 if test -f /usr/libexec/ld.so; then
13136 hardcode_direct_CXX=yes
13137 hardcode_shlibpath_var_CXX=no
13138 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13139 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13140 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13141 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13142 export_dynamic_flag_spec_CXX='${wl}-E'
13143 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13144 fi
13145 output_verbose_link_cmd='echo'
13146 else
13147 ld_shlibs_CXX=no
13148 fi
13149 ;;
13150 osf3*)
13151 case $cc_basename in
13152 KCC*)
13153 # Kuck and Associates, Inc. (KAI) C++ Compiler
13154
13155 # KCC will only create a shared library if the output file
13156 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13157 # to its proper name (with version) after linking.
13158 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'
13159
13160 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13161 hardcode_libdir_separator_CXX=:
13162
13163 # Archives containing C++ object files must be created using
13164 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13165 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13166
13167 ;;
13168 RCC*)
13169 # Rational C++ 2.4.1
13170 # FIXME: insert proper C++ library support
13171 ld_shlibs_CXX=no
13172 ;;
13173 cxx*)
13174 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13175 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'
13176
13177 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13178 hardcode_libdir_separator_CXX=:
13179
13180 # Commands to make compiler produce verbose output that lists
13181 # what "hidden" libraries, object files and flags are used when
13182 # linking a shared library.
13183 #
13184 # There doesn't appear to be a way to prevent this compiler from
13185 # explicitly linking system object files so we need to strip them
13186 # from the output so that they don't get included in the library
13187 # dependencies.
13188 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'
13189 ;;
13190 *)
13191 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13192 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13193 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'
13194
13195 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13196 hardcode_libdir_separator_CXX=:
13197
13198 # Commands to make compiler produce verbose output that lists
13199 # what "hidden" libraries, object files and flags are used when
13200 # linking a shared library.
13201 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13202
13203 else
13204 # FIXME: insert proper C++ library support
13205 ld_shlibs_CXX=no
13206 fi
13207 ;;
13208 esac
13209 ;;
13210 osf4* | osf5*)
13211 case $cc_basename in
13212 KCC*)
13213 # Kuck and Associates, Inc. (KAI) C++ Compiler
13214
13215 # KCC will only create a shared library if the output file
13216 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13217 # to its proper name (with version) after linking.
13218 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'
13219
13220 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13221 hardcode_libdir_separator_CXX=:
13222
13223 # Archives containing C++ object files must be created using
13224 # the KAI C++ compiler.
13225 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13226 ;;
13227 RCC*)
13228 # Rational C++ 2.4.1
13229 # FIXME: insert proper C++ library support
13230 ld_shlibs_CXX=no
13231 ;;
13232 cxx*)
13233 allow_undefined_flag_CXX=' -expect_unresolved \*'
13234 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'
13235 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13236 echo "-hidden">> $lib.exp~
13237 $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~
13238 $rm $lib.exp'
13239
13240 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13241 hardcode_libdir_separator_CXX=:
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 #
13247 # There doesn't appear to be a way to prevent this compiler from
13248 # explicitly linking system object files so we need to strip them
13249 # from the output so that they don't get included in the library
13250 # dependencies.
13251 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'
13252 ;;
13253 *)
13254 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13255 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13256 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'
13257
13258 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13259 hardcode_libdir_separator_CXX=:
13260
13261 # Commands to make compiler produce verbose output that lists
13262 # what "hidden" libraries, object files and flags are used when
13263 # linking a shared library.
13264 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13265
13266 else
13267 # FIXME: insert proper C++ library support
13268 ld_shlibs_CXX=no
13269 fi
13270 ;;
13271 esac
13272 ;;
13273 psos*)
13274 # FIXME: insert proper C++ library support
13275 ld_shlibs_CXX=no
13276 ;;
13277 sunos4*)
13278 case $cc_basename in
13279 CC*)
13280 # Sun C++ 4.x
13281 # FIXME: insert proper C++ library support
13282 ld_shlibs_CXX=no
13283 ;;
13284 lcc*)
13285 # Lucid
13286 # FIXME: insert proper C++ library support
13287 ld_shlibs_CXX=no
13288 ;;
13289 *)
13290 # FIXME: insert proper C++ library support
13291 ld_shlibs_CXX=no
13292 ;;
13293 esac
13294 ;;
13295 solaris*)
13296 case $cc_basename in
13297 CC*)
13298 # Sun C++ 4.2, 5.x and Centerline C++
13299 archive_cmds_need_lc_CXX=yes
13300 no_undefined_flag_CXX=' -zdefs'
13301 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13302 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13303 $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'
13304
13305 hardcode_libdir_flag_spec_CXX='-R$libdir'
13306 hardcode_shlibpath_var_CXX=no
13307 case $host_os in
13308 solaris2.[0-5] | solaris2.[0-5].*) ;;
13309 *)
13310 # The compiler driver will combine and reorder linker options,
13311 # but understands `-z linker_flag'.
13312 # Supported since Solaris 2.6 (maybe 2.5.1?)
13313 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13314 ;;
13315 esac
13316 link_all_deplibs_CXX=yes
13317
13318 output_verbose_link_cmd='echo'
13319
13320 # Archives containing C++ object files must be created using
13321 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13322 # necessary to make sure instantiated templates are included
13323 # in the archive.
13324 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13325 ;;
13326 gcx*)
13327 # Green Hills C++ Compiler
13328 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13329
13330 # The C++ compiler must be used to create the archive.
13331 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13332 ;;
13333 *)
13334 # GNU C++ compiler with Solaris linker
13335 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13336 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13337 if $CC --version | grep -v '^2\.7' > /dev/null; then
13338 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13339 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13340 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13341
13342 # Commands to make compiler produce verbose output that lists
13343 # what "hidden" libraries, object files and flags are used when
13344 # linking a shared library.
13345 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13346 else
13347 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13348 # platform.
13349 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13350 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13351 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13352
13353 # Commands to make compiler produce verbose output that lists
13354 # what "hidden" libraries, object files and flags are used when
13355 # linking a shared library.
13356 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13357 fi
13358
13359 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13360 case $host_os in
13361 solaris2.[0-5] | solaris2.[0-5].*) ;;
13362 *)
13363 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13364 ;;
13365 esac
13366 fi
13367 ;;
13368 esac
13369 ;;
13370 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13371 no_undefined_flag_CXX='${wl}-z,text'
13372 archive_cmds_need_lc_CXX=no
13373 hardcode_shlibpath_var_CXX=no
13374 runpath_var='LD_RUN_PATH'
13375
13376 case $cc_basename in
13377 CC*)
13378 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13379 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13380 ;;
13381 *)
13382 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13383 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13384 ;;
13385 esac
13386 ;;
13387 sysv5* | sco3.2v5* | sco5v6*)
13388 # Note: We can NOT use -z defs as we might desire, because we do not
13389 # link with -lc, and that would cause any symbols used from libc to
13390 # always be unresolved, which means just about no library would
13391 # ever link correctly. If we're not using GNU ld we use -z text
13392 # though, which does catch some bad symbols but isn't as heavy-handed
13393 # as -z defs.
13394 # For security reasons, it is highly recommended that you always
13395 # use absolute paths for naming shared libraries, and exclude the
13396 # DT_RUNPATH tag from executables and libraries. But doing so
13397 # requires that you compile everything twice, which is a pain.
13398 # So that behaviour is only enabled if SCOABSPATH is set to a
13399 # non-empty value in the environment. Most likely only useful for
13400 # creating official distributions of packages.
13401 # This is a hack until libtool officially supports absolute path
13402 # names for shared libraries.
13403 no_undefined_flag_CXX='${wl}-z,text'
13404 allow_undefined_flag_CXX='${wl}-z,nodefs'
13405 archive_cmds_need_lc_CXX=no
13406 hardcode_shlibpath_var_CXX=no
13407 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13408 hardcode_libdir_separator_CXX=':'
13409 link_all_deplibs_CXX=yes
13410 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13411 runpath_var='LD_RUN_PATH'
13412
13413 case $cc_basename in
13414 CC*)
13415 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13416 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13417 ;;
13418 *)
13419 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13420 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13421 ;;
13422 esac
13423 ;;
13424 tandem*)
13425 case $cc_basename in
13426 NCC*)
13427 # NonStop-UX NCC 3.20
13428 # FIXME: insert proper C++ library support
13429 ld_shlibs_CXX=no
13430 ;;
13431 *)
13432 # FIXME: insert proper C++ library support
13433 ld_shlibs_CXX=no
13434 ;;
13435 esac
13436 ;;
13437 vxworks*)
13438 # FIXME: insert proper C++ library support
13439 ld_shlibs_CXX=no
13440 ;;
13441 *)
13442 # FIXME: insert proper C++ library support
13443 ld_shlibs_CXX=no
13444 ;;
13445esac
13446{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13447echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13448test "$ld_shlibs_CXX" = no && can_build_shared=no
13449
13450GCC_CXX="$GXX"
13451LD_CXX="$LD"
13452
b57f37fb
WP
13453cat > conftest.$ac_ext <<EOF
13454class Foo
13455{
13456public:
13457 Foo (void) { a = 0; }
13458private:
13459 int a;
13460};
13461EOF
13462
13463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13464 (eval $ac_compile) 2>&5
13465 ac_status=$?
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); }; then
13468 # Parse the compiler output and extract the necessary
13469 # objects, libraries and library flags.
13470
13471 # Sentinel used to keep track of whether or not we are before
13472 # the conftest object file.
13473 pre_test_object_deps_done=no
13474
13475 # The `*' in the case matches for architectures that use `case' in
13476 # $output_verbose_cmd can trigger glob expansion during the loop
13477 # eval without this substitution.
13478 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13479
13480 for p in `eval $output_verbose_link_cmd`; do
13481 case $p in
13482
13483 -L* | -R* | -l*)
13484 # Some compilers place space between "-{L,R}" and the path.
13485 # Remove the space.
13486 if test $p = "-L" \
13487 || test $p = "-R"; then
13488 prev=$p
13489 continue
13490 else
13491 prev=
13492 fi
13493
13494 if test "$pre_test_object_deps_done" = no; then
13495 case $p in
13496 -L* | -R*)
13497 # Internal compiler library paths should come after those
13498 # provided the user. The postdeps already come after the
13499 # user supplied libs so there is no need to process them.
13500 if test -z "$compiler_lib_search_path_CXX"; then
13501 compiler_lib_search_path_CXX="${prev}${p}"
13502 else
13503 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13504 fi
13505 ;;
13506 # The "-l" case would never come before the object being
13507 # linked, so don't bother handling this case.
13508 esac
13509 else
13510 if test -z "$postdeps_CXX"; then
13511 postdeps_CXX="${prev}${p}"
13512 else
13513 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13514 fi
13515 fi
13516 ;;
13517
13518 *.$objext)
13519 # This assumes that the test object file only shows up
13520 # once in the compiler output.
13521 if test "$p" = "conftest.$objext"; then
13522 pre_test_object_deps_done=yes
13523 continue
13524 fi
13525
13526 if test "$pre_test_object_deps_done" = no; then
13527 if test -z "$predep_objects_CXX"; then
13528 predep_objects_CXX="$p"
13529 else
13530 predep_objects_CXX="$predep_objects_CXX $p"
13531 fi
13532 else
13533 if test -z "$postdep_objects_CXX"; then
13534 postdep_objects_CXX="$p"
13535 else
13536 postdep_objects_CXX="$postdep_objects_CXX $p"
13537 fi
13538 fi
13539 ;;
13540
13541 *) ;; # Ignore the rest.
13542
13543 esac
13544 done
13545
13546 # Clean up.
13547 rm -f a.out a.exe
13548else
13549 echo "libtool.m4: error: problem compiling CXX test program"
13550fi
13551
13552$rm -f confest.$objext
13553
56efe974
WP
13554compiler_lib_search_dirs_CXX=
13555if test -n "$compiler_lib_search_path_CXX"; then
13556 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13557fi
13558
b57f37fb
WP
13559# PORTME: override above test on systems where it is broken
13560case $host_os in
13561interix[3-9]*)
13562 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13563 # hack all around it, let's just trust "g++" to DTRT.
13564 predep_objects_CXX=
13565 postdep_objects_CXX=
13566 postdeps_CXX=
13567 ;;
13568
13569linux*)
13570 case `$CC -V 2>&1 | sed 5q` in
13571 *Sun\ C*)
13572 # Sun C++ 5.9
13573 #
13574 # The more standards-conforming stlport4 library is
13575 # incompatible with the Cstd library. Avoid specifying
13576 # it if it's in CXXFLAGS. Ignore libCrun as
13577 # -library=stlport4 depends on it.
13578 case " $CXX $CXXFLAGS " in
13579 *" -library=stlport4 "*)
13580 solaris_use_stlport4=yes
13581 ;;
13582 esac
13583 if test "$solaris_use_stlport4" != yes; then
13584 postdeps_CXX='-library=Cstd -library=Crun'
13585 fi
13586 ;;
13587 esac
13588 ;;
13589
13590solaris*)
13591 case $cc_basename in
13592 CC*)
13593 # The more standards-conforming stlport4 library is
13594 # incompatible with the Cstd library. Avoid specifying
13595 # it if it's in CXXFLAGS. Ignore libCrun as
13596 # -library=stlport4 depends on it.
13597 case " $CXX $CXXFLAGS " in
13598 *" -library=stlport4 "*)
13599 solaris_use_stlport4=yes
13600 ;;
13601 esac
13602
13603 # Adding this requires a known-good setup of shared libraries for
13604 # Sun compiler versions before 5.6, else PIC objects from an old
13605 # archive will be linked into the output, leading to subtle bugs.
13606 if test "$solaris_use_stlport4" != yes; then
13607 postdeps_CXX='-library=Cstd -library=Crun'
13608 fi
13609 ;;
13610 esac
13611 ;;
13612esac
13613
b57f37fb
WP
13614case " $postdeps_CXX " in
13615*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13616esac
13617
13618lt_prog_compiler_wl_CXX=
13619lt_prog_compiler_pic_CXX=
13620lt_prog_compiler_static_CXX=
13621
13622{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13623echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13624
13625 # C++ specific cases for pic, static, wl, etc.
13626 if test "$GXX" = yes; then
13627 lt_prog_compiler_wl_CXX='-Wl,'
13628 lt_prog_compiler_static_CXX='-static'
13629
13630 case $host_os in
13631 aix*)
13632 # All AIX code is PIC.
13633 if test "$host_cpu" = ia64; then
13634 # AIX 5 now supports IA64 processor
13635 lt_prog_compiler_static_CXX='-Bstatic'
13636 fi
13637 ;;
13638 amigaos*)
13639 # FIXME: we need at least 68020 code to build shared libraries, but
13640 # adding the `-m68020' flag to GCC prevents building anything better,
13641 # like `-m68040'.
13642 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13643 ;;
13644 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13645 # PIC is the default for these OSes.
13646 ;;
13647 mingw* | cygwin* | os2* | pw32*)
13648 # This hack is so that the source file can tell whether it is being
13649 # built for inclusion in a dll (and should export symbols for example).
13650 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13651 # (--disable-auto-import) libraries
13652 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13653 ;;
13654 darwin* | rhapsody*)
13655 # PIC is the default on this platform
13656 # Common symbols not allowed in MH_DYLIB files
13657 lt_prog_compiler_pic_CXX='-fno-common'
13658 ;;
13659 *djgpp*)
13660 # DJGPP does not support shared libraries at all
13661 lt_prog_compiler_pic_CXX=
13662 ;;
13663 interix[3-9]*)
13664 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13665 # Instead, we relocate shared libraries at runtime.
13666 ;;
13667 sysv4*MP*)
13668 if test -d /usr/nec; then
13669 lt_prog_compiler_pic_CXX=-Kconform_pic
13670 fi
13671 ;;
13672 hpux*)
13673 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13674 # not for PA HP-UX.
13675 case $host_cpu in
13676 hppa*64*|ia64*)
13677 ;;
13678 *)
13679 lt_prog_compiler_pic_CXX='-fPIC'
13680 ;;
13681 esac
13682 ;;
13683 *)
13684 lt_prog_compiler_pic_CXX='-fPIC'
13685 ;;
13686 esac
13687 else
13688 case $host_os in
56efe974 13689 aix[4-9]*)
b57f37fb
WP
13690 # All AIX code is PIC.
13691 if test "$host_cpu" = ia64; then
13692 # AIX 5 now supports IA64 processor
13693 lt_prog_compiler_static_CXX='-Bstatic'
13694 else
13695 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13696 fi
13697 ;;
13698 chorus*)
13699 case $cc_basename in
13700 cxch68*)
13701 # Green Hills C++ Compiler
13702 # _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"
13703 ;;
13704 esac
13705 ;;
13706 darwin*)
13707 # PIC is the default on this platform
13708 # Common symbols not allowed in MH_DYLIB files
13709 case $cc_basename in
13710 xlc*)
13711 lt_prog_compiler_pic_CXX='-qnocommon'
13712 lt_prog_compiler_wl_CXX='-Wl,'
13713 ;;
13714 esac
13715 ;;
13716 dgux*)
13717 case $cc_basename in
13718 ec++*)
13719 lt_prog_compiler_pic_CXX='-KPIC'
13720 ;;
13721 ghcx*)
13722 # Green Hills C++ Compiler
13723 lt_prog_compiler_pic_CXX='-pic'
13724 ;;
13725 *)
13726 ;;
13727 esac
13728 ;;
13729 freebsd* | dragonfly*)
13730 # FreeBSD uses GNU C++
13731 ;;
13732 hpux9* | hpux10* | hpux11*)
13733 case $cc_basename in
13734 CC*)
13735 lt_prog_compiler_wl_CXX='-Wl,'
13736 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13737 if test "$host_cpu" != ia64; then
13738 lt_prog_compiler_pic_CXX='+Z'
13739 fi
13740 ;;
13741 aCC*)
13742 lt_prog_compiler_wl_CXX='-Wl,'
13743 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13744 case $host_cpu in
13745 hppa*64*|ia64*)
13746 # +Z the default
13747 ;;
13748 *)
13749 lt_prog_compiler_pic_CXX='+Z'
13750 ;;
13751 esac
13752 ;;
13753 *)
13754 ;;
13755 esac
13756 ;;
13757 interix*)
13758 # This is c89, which is MS Visual C++ (no shared libs)
13759 # Anyone wants to do a port?
13760 ;;
13761 irix5* | irix6* | nonstopux*)
13762 case $cc_basename in
13763 CC*)
13764 lt_prog_compiler_wl_CXX='-Wl,'
13765 lt_prog_compiler_static_CXX='-non_shared'
13766 # CC pic flag -KPIC is the default.
13767 ;;
13768 *)
13769 ;;
13770 esac
13771 ;;
13772 linux* | k*bsd*-gnu)
13773 case $cc_basename in
13774 KCC*)
13775 # KAI C++ Compiler
13776 lt_prog_compiler_wl_CXX='--backend -Wl,'
13777 lt_prog_compiler_pic_CXX='-fPIC'
13778 ;;
13779 icpc* | ecpc*)
13780 # Intel C++
13781 lt_prog_compiler_wl_CXX='-Wl,'
13782 lt_prog_compiler_pic_CXX='-KPIC'
13783 lt_prog_compiler_static_CXX='-static'
13784 ;;
56efe974 13785 pgCC* | pgcpp*)
b57f37fb
WP
13786 # Portland Group C++ compiler.
13787 lt_prog_compiler_wl_CXX='-Wl,'
13788 lt_prog_compiler_pic_CXX='-fpic'
13789 lt_prog_compiler_static_CXX='-Bstatic'
13790 ;;
13791 cxx*)
13792 # Compaq C++
13793 # Make sure the PIC flag is empty. It appears that all Alpha
13794 # Linux and Compaq Tru64 Unix objects are PIC.
13795 lt_prog_compiler_pic_CXX=
13796 lt_prog_compiler_static_CXX='-non_shared'
13797 ;;
13798 *)
13799 case `$CC -V 2>&1 | sed 5q` in
13800 *Sun\ C*)
13801 # Sun C++ 5.9
13802 lt_prog_compiler_pic_CXX='-KPIC'
13803 lt_prog_compiler_static_CXX='-Bstatic'
13804 lt_prog_compiler_wl_CXX='-Qoption ld '
13805 ;;
13806 esac
13807 ;;
13808 esac
13809 ;;
13810 lynxos*)
13811 ;;
13812 m88k*)
13813 ;;
13814 mvs*)
13815 case $cc_basename in
13816 cxx*)
13817 lt_prog_compiler_pic_CXX='-W c,exportall'
13818 ;;
13819 *)
13820 ;;
13821 esac
13822 ;;
13823 netbsd* | netbsdelf*-gnu)
13824 ;;
13825 osf3* | osf4* | osf5*)
13826 case $cc_basename in
13827 KCC*)
13828 lt_prog_compiler_wl_CXX='--backend -Wl,'
13829 ;;
13830 RCC*)
13831 # Rational C++ 2.4.1
13832 lt_prog_compiler_pic_CXX='-pic'
13833 ;;
13834 cxx*)
13835 # Digital/Compaq C++
13836 lt_prog_compiler_wl_CXX='-Wl,'
13837 # Make sure the PIC flag is empty. It appears that all Alpha
13838 # Linux and Compaq Tru64 Unix objects are PIC.
13839 lt_prog_compiler_pic_CXX=
13840 lt_prog_compiler_static_CXX='-non_shared'
13841 ;;
13842 *)
13843 ;;
13844 esac
13845 ;;
13846 psos*)
13847 ;;
13848 solaris*)
13849 case $cc_basename in
13850 CC*)
13851 # Sun C++ 4.2, 5.x and Centerline C++
13852 lt_prog_compiler_pic_CXX='-KPIC'
13853 lt_prog_compiler_static_CXX='-Bstatic'
13854 lt_prog_compiler_wl_CXX='-Qoption ld '
13855 ;;
13856 gcx*)
13857 # Green Hills C++ Compiler
13858 lt_prog_compiler_pic_CXX='-PIC'
13859 ;;
13860 *)
13861 ;;
13862 esac
13863 ;;
13864 sunos4*)
13865 case $cc_basename in
13866 CC*)
13867 # Sun C++ 4.x
13868 lt_prog_compiler_pic_CXX='-pic'
13869 lt_prog_compiler_static_CXX='-Bstatic'
13870 ;;
13871 lcc*)
13872 # Lucid
13873 lt_prog_compiler_pic_CXX='-pic'
13874 ;;
13875 *)
13876 ;;
13877 esac
13878 ;;
13879 tandem*)
13880 case $cc_basename in
13881 NCC*)
13882 # NonStop-UX NCC 3.20
13883 lt_prog_compiler_pic_CXX='-KPIC'
13884 ;;
13885 *)
13886 ;;
13887 esac
13888 ;;
13889 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13890 case $cc_basename in
13891 CC*)
13892 lt_prog_compiler_wl_CXX='-Wl,'
13893 lt_prog_compiler_pic_CXX='-KPIC'
13894 lt_prog_compiler_static_CXX='-Bstatic'
13895 ;;
13896 esac
13897 ;;
13898 vxworks*)
13899 ;;
13900 *)
13901 lt_prog_compiler_can_build_shared_CXX=no
13902 ;;
13903 esac
13904 fi
13905
13906{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13907echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13908
13909#
13910# Check to make sure the PIC flag actually works.
13911#
13912if test -n "$lt_prog_compiler_pic_CXX"; then
13913
13914{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13915echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
56efe974 13916if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
b57f37fb
WP
13917 echo $ECHO_N "(cached) $ECHO_C" >&6
13918else
56efe974 13919 lt_cv_prog_compiler_pic_works_CXX=no
b57f37fb
WP
13920 ac_outfile=conftest.$ac_objext
13921 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13922 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13923 # Insert the option either (1) after the last *FLAGS variable, or
13924 # (2) before a word containing "conftest.", or (3) at the end.
13925 # Note that $ac_compile itself does not contain backslashes and begins
13926 # with a dollar sign (not a hyphen), so the echo should work correctly.
13927 # The option is referenced via a variable to avoid confusing sed.
13928 lt_compile=`echo "$ac_compile" | $SED \
13929 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13930 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13931 -e 's:$: $lt_compiler_flag:'`
56efe974 13932 (eval echo "\"\$as_me:13932: $lt_compile\"" >&5)
b57f37fb
WP
13933 (eval "$lt_compile" 2>conftest.err)
13934 ac_status=$?
13935 cat conftest.err >&5
56efe974 13936 echo "$as_me:13936: \$? = $ac_status" >&5
b57f37fb
WP
13937 if (exit $ac_status) && test -s "$ac_outfile"; then
13938 # The compiler can only warn and ignore the option if not recognized
13939 # So say no if there are warnings other than the usual output.
13940 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13941 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13942 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
56efe974 13943 lt_cv_prog_compiler_pic_works_CXX=yes
b57f37fb
WP
13944 fi
13945 fi
13946 $rm conftest*
13947
13948fi
56efe974
WP
13949{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13950echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
b57f37fb 13951
56efe974 13952if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
b57f37fb
WP
13953 case $lt_prog_compiler_pic_CXX in
13954 "" | " "*) ;;
13955 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13956 esac
13957else
13958 lt_prog_compiler_pic_CXX=
13959 lt_prog_compiler_can_build_shared_CXX=no
13960fi
13961
13962fi
13963case $host_os in
13964 # For platforms which do not support PIC, -DPIC is meaningless:
13965 *djgpp*)
13966 lt_prog_compiler_pic_CXX=
13967 ;;
13968 *)
13969 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13970 ;;
13971esac
13972
13973#
13974# Check to make sure the static flag actually works.
13975#
13976wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13977{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13978echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
56efe974 13979if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
b57f37fb
WP
13980 echo $ECHO_N "(cached) $ECHO_C" >&6
13981else
56efe974 13982 lt_cv_prog_compiler_static_works_CXX=no
b57f37fb
WP
13983 save_LDFLAGS="$LDFLAGS"
13984 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13985 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13986 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13987 # The linker can only warn and ignore the option if not recognized
13988 # So say no if there are warnings
13989 if test -s conftest.err; then
13990 # Append any errors to the config.log.
13991 cat conftest.err 1>&5
13992 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13993 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13994 if diff conftest.exp conftest.er2 >/dev/null; then
56efe974 13995 lt_cv_prog_compiler_static_works_CXX=yes
b57f37fb
WP
13996 fi
13997 else
56efe974 13998 lt_cv_prog_compiler_static_works_CXX=yes
b57f37fb
WP
13999 fi
14000 fi
56efe974 14001 $rm -r conftest*
b57f37fb
WP
14002 LDFLAGS="$save_LDFLAGS"
14003
14004fi
56efe974
WP
14005{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14006echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
b57f37fb 14007
56efe974 14008if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
b57f37fb
WP
14009 :
14010else
14011 lt_prog_compiler_static_CXX=
14012fi
14013
14014
14015{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14016echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14017if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14018 echo $ECHO_N "(cached) $ECHO_C" >&6
14019else
14020 lt_cv_prog_compiler_c_o_CXX=no
14021 $rm -r conftest 2>/dev/null
14022 mkdir conftest
14023 cd conftest
14024 mkdir out
14025 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14026
14027 lt_compiler_flag="-o out/conftest2.$ac_objext"
14028 # Insert the option either (1) after the last *FLAGS variable, or
14029 # (2) before a word containing "conftest.", or (3) at the end.
14030 # Note that $ac_compile itself does not contain backslashes and begins
14031 # with a dollar sign (not a hyphen), so the echo should work correctly.
14032 lt_compile=`echo "$ac_compile" | $SED \
14033 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14034 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14035 -e 's:$: $lt_compiler_flag:'`
56efe974 14036 (eval echo "\"\$as_me:14036: $lt_compile\"" >&5)
b57f37fb
WP
14037 (eval "$lt_compile" 2>out/conftest.err)
14038 ac_status=$?
14039 cat out/conftest.err >&5
56efe974 14040 echo "$as_me:14040: \$? = $ac_status" >&5
b57f37fb
WP
14041 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14042 then
14043 # The compiler can only warn and ignore the option if not recognized
14044 # So say no if there are warnings
14045 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14046 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14047 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14048 lt_cv_prog_compiler_c_o_CXX=yes
14049 fi
14050 fi
14051 chmod u+w . 2>&5
14052 $rm conftest*
14053 # SGI C++ compiler will create directory out/ii_files/ for
14054 # template instantiation
14055 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14056 $rm out/* && rmdir out
14057 cd ..
14058 rmdir conftest
14059 $rm conftest*
14060
14061fi
14062{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14063echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14064
14065
14066hard_links="nottested"
14067if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14068 # do not overwrite the value of need_locks provided by the user
14069 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14070echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14071 hard_links=yes
14072 $rm conftest*
14073 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14074 touch conftest.a
14075 ln conftest.a conftest.b 2>&5 || hard_links=no
14076 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14077 { echo "$as_me:$LINENO: result: $hard_links" >&5
14078echo "${ECHO_T}$hard_links" >&6; }
14079 if test "$hard_links" = no; then
14080 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14081echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14082 need_locks=warn
14083 fi
14084else
14085 need_locks=no
14086fi
14087
14088{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14089echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14090
14091 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14092 case $host_os in
56efe974 14093 aix[4-9]*)
b57f37fb
WP
14094 # If we're using GNU nm, then we don't want the "-C" option.
14095 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14096 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14097 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'
14098 else
14099 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'
14100 fi
14101 ;;
14102 pw32*)
14103 export_symbols_cmds_CXX="$ltdll_cmds"
14104 ;;
14105 cygwin* | mingw*)
14106 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'
14107 ;;
14108 linux* | k*bsd*-gnu)
14109 link_all_deplibs_CXX=no
14110 ;;
14111 *)
14112 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14113 ;;
14114 esac
56efe974 14115 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
b57f37fb
WP
14116
14117{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14118echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14119test "$ld_shlibs_CXX" = no && can_build_shared=no
14120
14121#
14122# Do we need to explicitly link libc?
14123#
14124case "x$archive_cmds_need_lc_CXX" in
14125x|xyes)
14126 # Assume -lc should be added
14127 archive_cmds_need_lc_CXX=yes
14128
14129 if test "$enable_shared" = yes && test "$GCC" = yes; then
14130 case $archive_cmds_CXX in
14131 *'~'*)
14132 # FIXME: we may have to deal with multi-command sequences.
14133 ;;
14134 '$CC '*)
14135 # Test whether the compiler implicitly links with -lc since on some
14136 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14137 # to ld, don't add -lc before -lgcc.
14138 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14139echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14140 $rm conftest*
14141 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14142
14143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14144 (eval $ac_compile) 2>&5
14145 ac_status=$?
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); } 2>conftest.err; then
14148 soname=conftest
14149 lib=conftest
14150 libobjs=conftest.$ac_objext
14151 deplibs=
14152 wl=$lt_prog_compiler_wl_CXX
14153 pic_flag=$lt_prog_compiler_pic_CXX
14154 compiler_flags=-v
14155 linker_flags=-v
14156 verstring=
14157 output_objdir=.
14158 libname=conftest
14159 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14160 allow_undefined_flag_CXX=
14161 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14162 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14163 ac_status=$?
14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); }
14166 then
14167 archive_cmds_need_lc_CXX=no
14168 else
14169 archive_cmds_need_lc_CXX=yes
14170 fi
14171 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14172 else
14173 cat conftest.err 1>&5
14174 fi
14175 $rm conftest*
14176 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14177echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14178 ;;
14179 esac
14180 fi
14181 ;;
14182esac
14183
14184{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14185echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14186library_names_spec=
14187libname_spec='lib$name'
14188soname_spec=
14189shrext_cmds=".so"
14190postinstall_cmds=
14191postuninstall_cmds=
14192finish_cmds=
14193finish_eval=
14194shlibpath_var=
14195shlibpath_overrides_runpath=unknown
14196version_type=none
14197dynamic_linker="$host_os ld.so"
14198sys_lib_dlsearch_path_spec="/lib /usr/lib"
14199
14200need_lib_prefix=unknown
14201hardcode_into_libs=no
14202
14203# when you set need_version to no, make sure it does not cause -set_version
14204# flags to be left without arguments
14205need_version=unknown
14206
14207case $host_os in
14208aix3*)
14209 version_type=linux
14210 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14211 shlibpath_var=LIBPATH
14212
14213 # AIX 3 has no versioning support, so we append a major version to the name.
14214 soname_spec='${libname}${release}${shared_ext}$major'
14215 ;;
14216
56efe974 14217aix[4-9]*)
b57f37fb
WP
14218 version_type=linux
14219 need_lib_prefix=no
14220 need_version=no
14221 hardcode_into_libs=yes
14222 if test "$host_cpu" = ia64; then
14223 # AIX 5 supports IA64
14224 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14225 shlibpath_var=LD_LIBRARY_PATH
14226 else
14227 # With GCC up to 2.95.x, collect2 would create an import file
14228 # for dependence libraries. The import file would start with
14229 # the line `#! .'. This would cause the generated library to
14230 # depend on `.', always an invalid library. This was fixed in
14231 # development snapshots of GCC prior to 3.0.
14232 case $host_os in
14233 aix4 | aix4.[01] | aix4.[01].*)
14234 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14235 echo ' yes '
14236 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14237 :
14238 else
14239 can_build_shared=no
14240 fi
14241 ;;
14242 esac
14243 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14244 # soname into executable. Probably we can add versioning support to
14245 # collect2, so additional links can be useful in future.
14246 if test "$aix_use_runtimelinking" = yes; then
14247 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14248 # instead of lib<name>.a to let people know that these are not
14249 # typical AIX shared libraries.
14250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14251 else
14252 # We preserve .a as extension for shared libraries through AIX4.2
14253 # and later when we are not doing run time linking.
14254 library_names_spec='${libname}${release}.a $libname.a'
14255 soname_spec='${libname}${release}${shared_ext}$major'
14256 fi
14257 shlibpath_var=LIBPATH
14258 fi
14259 ;;
14260
14261amigaos*)
14262 library_names_spec='$libname.ixlibrary $libname.a'
14263 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14264 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'
14265 ;;
14266
14267beos*)
14268 library_names_spec='${libname}${shared_ext}'
14269 dynamic_linker="$host_os ld.so"
14270 shlibpath_var=LIBRARY_PATH
14271 ;;
14272
14273bsdi[45]*)
14274 version_type=linux
14275 need_version=no
14276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14277 soname_spec='${libname}${release}${shared_ext}$major'
14278 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14279 shlibpath_var=LD_LIBRARY_PATH
14280 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14281 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14282 # the default ld.so.conf also contains /usr/contrib/lib and
14283 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14284 # libtool to hard-code these into programs
14285 ;;
14286
14287cygwin* | mingw* | pw32*)
14288 version_type=windows
14289 shrext_cmds=".dll"
14290 need_version=no
14291 need_lib_prefix=no
14292
14293 case $GCC,$host_os in
14294 yes,cygwin* | yes,mingw* | yes,pw32*)
14295 library_names_spec='$libname.dll.a'
14296 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14297 postinstall_cmds='base_file=`basename \${file}`~
14298 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14299 dldir=$destdir/`dirname \$dlpath`~
14300 test -d \$dldir || mkdir -p \$dldir~
14301 $install_prog $dir/$dlname \$dldir/$dlname~
14302 chmod a+x \$dldir/$dlname'
14303 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14304 dlpath=$dir/\$dldll~
14305 $rm \$dlpath'
14306 shlibpath_overrides_runpath=yes
14307
14308 case $host_os in
14309 cygwin*)
14310 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14311 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14312 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14313 ;;
14314 mingw*)
14315 # MinGW DLLs use traditional 'lib' prefix
14316 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14317 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14318 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14319 # It is most probably a Windows format PATH printed by
14320 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14321 # path with ; separators, and with drive letters. We can handle the
14322 # drive letters (cygwin fileutils understands them), so leave them,
14323 # especially as we might pass files found there to a mingw objdump,
14324 # which wouldn't understand a cygwinified path. Ahh.
14325 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14326 else
14327 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14328 fi
14329 ;;
14330 pw32*)
14331 # pw32 DLLs use 'pw' prefix rather than 'lib'
14332 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14333 ;;
14334 esac
14335 ;;
14336
14337 *)
14338 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14339 ;;
14340 esac
14341 dynamic_linker='Win32 ld.exe'
14342 # FIXME: first we should search . and the directory the executable is in
14343 shlibpath_var=PATH
14344 ;;
14345
14346darwin* | rhapsody*)
14347 dynamic_linker="$host_os dyld"
14348 version_type=darwin
14349 need_lib_prefix=no
14350 need_version=no
14351 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14352 soname_spec='${libname}${release}${major}$shared_ext'
14353 shlibpath_overrides_runpath=yes
14354 shlibpath_var=DYLD_LIBRARY_PATH
14355 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14356
14357 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14358 ;;
14359
14360dgux*)
14361 version_type=linux
14362 need_lib_prefix=no
14363 need_version=no
14364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14365 soname_spec='${libname}${release}${shared_ext}$major'
14366 shlibpath_var=LD_LIBRARY_PATH
14367 ;;
14368
14369freebsd1*)
14370 dynamic_linker=no
14371 ;;
14372
14373freebsd* | dragonfly*)
14374 # DragonFly does not have aout. When/if they implement a new
14375 # versioning mechanism, adjust this.
14376 if test -x /usr/bin/objformat; then
14377 objformat=`/usr/bin/objformat`
14378 else
14379 case $host_os in
14380 freebsd[123]*) objformat=aout ;;
14381 *) objformat=elf ;;
14382 esac
14383 fi
14384 version_type=freebsd-$objformat
14385 case $version_type in
14386 freebsd-elf*)
14387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14388 need_version=no
14389 need_lib_prefix=no
14390 ;;
14391 freebsd-*)
14392 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14393 need_version=yes
14394 ;;
14395 esac
14396 shlibpath_var=LD_LIBRARY_PATH
14397 case $host_os in
14398 freebsd2*)
14399 shlibpath_overrides_runpath=yes
14400 ;;
14401 freebsd3.[01]* | freebsdelf3.[01]*)
14402 shlibpath_overrides_runpath=yes
14403 hardcode_into_libs=yes
14404 ;;
14405 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14406 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14407 shlibpath_overrides_runpath=no
14408 hardcode_into_libs=yes
14409 ;;
14410 *) # from 4.6 on, and DragonFly
14411 shlibpath_overrides_runpath=yes
14412 hardcode_into_libs=yes
14413 ;;
14414 esac
14415 ;;
14416
14417gnu*)
14418 version_type=linux
14419 need_lib_prefix=no
14420 need_version=no
14421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14422 soname_spec='${libname}${release}${shared_ext}$major'
14423 shlibpath_var=LD_LIBRARY_PATH
14424 hardcode_into_libs=yes
14425 ;;
14426
14427hpux9* | hpux10* | hpux11*)
14428 # Give a soname corresponding to the major version so that dld.sl refuses to
14429 # link against other versions.
14430 version_type=sunos
14431 need_lib_prefix=no
14432 need_version=no
14433 case $host_cpu in
14434 ia64*)
14435 shrext_cmds='.so'
14436 hardcode_into_libs=yes
14437 dynamic_linker="$host_os dld.so"
14438 shlibpath_var=LD_LIBRARY_PATH
14439 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14441 soname_spec='${libname}${release}${shared_ext}$major'
14442 if test "X$HPUX_IA64_MODE" = X32; then
14443 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14444 else
14445 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14446 fi
14447 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14448 ;;
14449 hppa*64*)
14450 shrext_cmds='.sl'
14451 hardcode_into_libs=yes
14452 dynamic_linker="$host_os dld.sl"
14453 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14454 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14456 soname_spec='${libname}${release}${shared_ext}$major'
14457 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14458 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14459 ;;
14460 *)
14461 shrext_cmds='.sl'
14462 dynamic_linker="$host_os dld.sl"
14463 shlibpath_var=SHLIB_PATH
14464 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14466 soname_spec='${libname}${release}${shared_ext}$major'
14467 ;;
14468 esac
14469 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14470 postinstall_cmds='chmod 555 $lib'
14471 ;;
14472
14473interix[3-9]*)
14474 version_type=linux
14475 need_lib_prefix=no
14476 need_version=no
14477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14478 soname_spec='${libname}${release}${shared_ext}$major'
14479 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14480 shlibpath_var=LD_LIBRARY_PATH
14481 shlibpath_overrides_runpath=no
14482 hardcode_into_libs=yes
14483 ;;
14484
14485irix5* | irix6* | nonstopux*)
14486 case $host_os in
14487 nonstopux*) version_type=nonstopux ;;
14488 *)
14489 if test "$lt_cv_prog_gnu_ld" = yes; then
14490 version_type=linux
14491 else
14492 version_type=irix
14493 fi ;;
14494 esac
14495 need_lib_prefix=no
14496 need_version=no
14497 soname_spec='${libname}${release}${shared_ext}$major'
14498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14499 case $host_os in
14500 irix5* | nonstopux*)
14501 libsuff= shlibsuff=
14502 ;;
14503 *)
14504 case $LD in # libtool.m4 will add one of these switches to LD
14505 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14506 libsuff= shlibsuff= libmagic=32-bit;;
14507 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14508 libsuff=32 shlibsuff=N32 libmagic=N32;;
14509 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14510 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14511 *) libsuff= shlibsuff= libmagic=never-match;;
14512 esac
14513 ;;
14514 esac
14515 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14516 shlibpath_overrides_runpath=no
14517 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14518 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14519 hardcode_into_libs=yes
14520 ;;
14521
14522# No shared lib support for Linux oldld, aout, or coff.
14523linux*oldld* | linux*aout* | linux*coff*)
14524 dynamic_linker=no
14525 ;;
14526
14527# This must be Linux ELF.
14528linux* | k*bsd*-gnu)
14529 version_type=linux
14530 need_lib_prefix=no
14531 need_version=no
14532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14533 soname_spec='${libname}${release}${shared_ext}$major'
14534 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14535 shlibpath_var=LD_LIBRARY_PATH
14536 shlibpath_overrides_runpath=no
14537 # This implies no fast_install, which is unacceptable.
14538 # Some rework will be needed to allow for fast_install
14539 # before this can be enabled.
14540 hardcode_into_libs=yes
14541
14542 # Append ld.so.conf contents to the search path
14543 if test -f /etc/ld.so.conf; then
14544 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' ' '`
14545 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14546 fi
14547
14548 # We used to test for /lib/ld.so.1 and disable shared libraries on
14549 # powerpc, because MkLinux only supported shared libraries with the
14550 # GNU dynamic linker. Since this was broken with cross compilers,
14551 # most powerpc-linux boxes support dynamic linking these days and
14552 # people can always --disable-shared, the test was removed, and we
14553 # assume the GNU/Linux dynamic linker is in use.
14554 dynamic_linker='GNU/Linux ld.so'
14555 ;;
14556
14557netbsdelf*-gnu)
14558 version_type=linux
14559 need_lib_prefix=no
14560 need_version=no
14561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14562 soname_spec='${libname}${release}${shared_ext}$major'
14563 shlibpath_var=LD_LIBRARY_PATH
14564 shlibpath_overrides_runpath=no
14565 hardcode_into_libs=yes
14566 dynamic_linker='NetBSD ld.elf_so'
14567 ;;
14568
14569netbsd*)
14570 version_type=sunos
14571 need_lib_prefix=no
14572 need_version=no
14573 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14575 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14576 dynamic_linker='NetBSD (a.out) ld.so'
14577 else
14578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14579 soname_spec='${libname}${release}${shared_ext}$major'
14580 dynamic_linker='NetBSD ld.elf_so'
14581 fi
14582 shlibpath_var=LD_LIBRARY_PATH
14583 shlibpath_overrides_runpath=yes
14584 hardcode_into_libs=yes
14585 ;;
14586
14587newsos6)
14588 version_type=linux
14589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14590 shlibpath_var=LD_LIBRARY_PATH
14591 shlibpath_overrides_runpath=yes
14592 ;;
14593
14594nto-qnx*)
14595 version_type=linux
14596 need_lib_prefix=no
14597 need_version=no
14598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14599 soname_spec='${libname}${release}${shared_ext}$major'
14600 shlibpath_var=LD_LIBRARY_PATH
14601 shlibpath_overrides_runpath=yes
14602 ;;
14603
14604openbsd*)
14605 version_type=sunos
14606 sys_lib_dlsearch_path_spec="/usr/lib"
14607 need_lib_prefix=no
14608 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14609 case $host_os in
14610 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14611 *) need_version=no ;;
14612 esac
14613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14614 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14615 shlibpath_var=LD_LIBRARY_PATH
14616 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14617 case $host_os in
14618 openbsd2.[89] | openbsd2.[89].*)
14619 shlibpath_overrides_runpath=no
14620 ;;
14621 *)
14622 shlibpath_overrides_runpath=yes
14623 ;;
14624 esac
14625 else
14626 shlibpath_overrides_runpath=yes
14627 fi
14628 ;;
14629
14630os2*)
14631 libname_spec='$name'
14632 shrext_cmds=".dll"
14633 need_lib_prefix=no
14634 library_names_spec='$libname${shared_ext} $libname.a'
14635 dynamic_linker='OS/2 ld.exe'
14636 shlibpath_var=LIBPATH
14637 ;;
14638
14639osf3* | osf4* | osf5*)
14640 version_type=osf
14641 need_lib_prefix=no
14642 need_version=no
14643 soname_spec='${libname}${release}${shared_ext}$major'
14644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14645 shlibpath_var=LD_LIBRARY_PATH
14646 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14647 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14648 ;;
14649
14650rdos*)
14651 dynamic_linker=no
14652 ;;
14653
14654solaris*)
14655 version_type=linux
14656 need_lib_prefix=no
14657 need_version=no
14658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14659 soname_spec='${libname}${release}${shared_ext}$major'
14660 shlibpath_var=LD_LIBRARY_PATH
14661 shlibpath_overrides_runpath=yes
14662 hardcode_into_libs=yes
14663 # ldd complains unless libraries are executable
14664 postinstall_cmds='chmod +x $lib'
14665 ;;
14666
14667sunos4*)
14668 version_type=sunos
14669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14670 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14671 shlibpath_var=LD_LIBRARY_PATH
14672 shlibpath_overrides_runpath=yes
14673 if test "$with_gnu_ld" = yes; then
14674 need_lib_prefix=no
14675 fi
14676 need_version=yes
14677 ;;
14678
14679sysv4 | sysv4.3*)
14680 version_type=linux
14681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14682 soname_spec='${libname}${release}${shared_ext}$major'
14683 shlibpath_var=LD_LIBRARY_PATH
14684 case $host_vendor in
14685 sni)
14686 shlibpath_overrides_runpath=no
14687 need_lib_prefix=no
14688 export_dynamic_flag_spec='${wl}-Blargedynsym'
14689 runpath_var=LD_RUN_PATH
14690 ;;
14691 siemens)
14692 need_lib_prefix=no
14693 ;;
14694 motorola)
14695 need_lib_prefix=no
14696 need_version=no
14697 shlibpath_overrides_runpath=no
14698 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14699 ;;
14700 esac
14701 ;;
14702
14703sysv4*MP*)
14704 if test -d /usr/nec ;then
14705 version_type=linux
14706 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14707 soname_spec='$libname${shared_ext}.$major'
14708 shlibpath_var=LD_LIBRARY_PATH
14709 fi
14710 ;;
14711
14712sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14713 version_type=freebsd-elf
14714 need_lib_prefix=no
14715 need_version=no
14716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14717 soname_spec='${libname}${release}${shared_ext}$major'
14718 shlibpath_var=LD_LIBRARY_PATH
14719 hardcode_into_libs=yes
14720 if test "$with_gnu_ld" = yes; then
14721 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14722 shlibpath_overrides_runpath=no
14723 else
14724 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14725 shlibpath_overrides_runpath=yes
14726 case $host_os in
14727 sco3.2v5*)
14728 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14729 ;;
14730 esac
14731 fi
14732 sys_lib_dlsearch_path_spec='/usr/lib'
14733 ;;
14734
14735uts4*)
14736 version_type=linux
14737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14738 soname_spec='${libname}${release}${shared_ext}$major'
14739 shlibpath_var=LD_LIBRARY_PATH
14740 ;;
14741
14742*)
14743 dynamic_linker=no
14744 ;;
14745esac
14746{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14747echo "${ECHO_T}$dynamic_linker" >&6; }
14748test "$dynamic_linker" = no && can_build_shared=no
14749
56efe974
WP
14750if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14751 echo $ECHO_N "(cached) $ECHO_C" >&6
14752else
14753 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
14754fi
14755
14756sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14757if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14758 echo $ECHO_N "(cached) $ECHO_C" >&6
14759else
14760 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
14761fi
14762
14763sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14764
b57f37fb
WP
14765variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14766if test "$GCC" = yes; then
14767 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14768fi
14769
14770{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14771echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14772hardcode_action_CXX=
14773if test -n "$hardcode_libdir_flag_spec_CXX" || \
14774 test -n "$runpath_var_CXX" || \
14775 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14776
14777 # We can hardcode non-existant directories.
14778 if test "$hardcode_direct_CXX" != no &&
14779 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14780 # have to relink, otherwise we might link with an installed library
14781 # when we should be linking with a yet-to-be-installed one
14782 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14783 test "$hardcode_minus_L_CXX" != no; then
14784 # Linking always hardcodes the temporary library directory.
14785 hardcode_action_CXX=relink
14786 else
14787 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14788 hardcode_action_CXX=immediate
14789 fi
14790else
14791 # We cannot hardcode anything, or else we can only hardcode existing
14792 # directories.
14793 hardcode_action_CXX=unsupported
14794fi
14795{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14796echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14797
14798if test "$hardcode_action_CXX" = relink; then
14799 # Fast installation is not supported
14800 enable_fast_install=no
14801elif test "$shlibpath_overrides_runpath" = yes ||
14802 test "$enable_shared" = no; then
14803 # Fast installation is not necessary
14804 enable_fast_install=needless
14805fi
14806
14807
14808# The else clause should only fire when bootstrapping the
14809# libtool distribution, otherwise you forgot to ship ltmain.sh
14810# with your package, and you will get complaints that there are
14811# no rules to generate ltmain.sh.
14812if test -f "$ltmain"; then
14813 # See if we are running on zsh, and set the options which allow our commands through
14814 # without removal of \ escapes.
14815 if test -n "${ZSH_VERSION+set}" ; then
14816 setopt NO_GLOB_SUBST
14817 fi
14818 # Now quote all the things that may contain metacharacters while being
14819 # careful not to overquote the AC_SUBSTed values. We take copies of the
14820 # variables and quote the copies for generation of the libtool script.
14821 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14822 SED SHELL STRIP \
14823 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14824 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14825 deplibs_check_method reload_flag reload_cmds need_locks \
14826 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14827 lt_cv_sys_global_symbol_to_c_name_address \
14828 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14829 old_postinstall_cmds old_postuninstall_cmds \
14830 compiler_CXX \
14831 CC_CXX \
14832 LD_CXX \
14833 lt_prog_compiler_wl_CXX \
14834 lt_prog_compiler_pic_CXX \
14835 lt_prog_compiler_static_CXX \
14836 lt_prog_compiler_no_builtin_flag_CXX \
14837 export_dynamic_flag_spec_CXX \
14838 thread_safe_flag_spec_CXX \
14839 whole_archive_flag_spec_CXX \
14840 enable_shared_with_static_runtimes_CXX \
14841 old_archive_cmds_CXX \
14842 old_archive_from_new_cmds_CXX \
14843 predep_objects_CXX \
14844 postdep_objects_CXX \
14845 predeps_CXX \
14846 postdeps_CXX \
14847 compiler_lib_search_path_CXX \
56efe974 14848 compiler_lib_search_dirs_CXX \
b57f37fb
WP
14849 archive_cmds_CXX \
14850 archive_expsym_cmds_CXX \
14851 postinstall_cmds_CXX \
14852 postuninstall_cmds_CXX \
14853 old_archive_from_expsyms_cmds_CXX \
14854 allow_undefined_flag_CXX \
14855 no_undefined_flag_CXX \
14856 export_symbols_cmds_CXX \
14857 hardcode_libdir_flag_spec_CXX \
14858 hardcode_libdir_flag_spec_ld_CXX \
14859 hardcode_libdir_separator_CXX \
14860 hardcode_automatic_CXX \
14861 module_cmds_CXX \
14862 module_expsym_cmds_CXX \
14863 lt_cv_prog_compiler_c_o_CXX \
14864 fix_srcfile_path_CXX \
14865 exclude_expsyms_CXX \
14866 include_expsyms_CXX; do
14867
14868 case $var in
14869 old_archive_cmds_CXX | \
14870 old_archive_from_new_cmds_CXX | \
14871 archive_cmds_CXX | \
14872 archive_expsym_cmds_CXX | \
14873 module_cmds_CXX | \
14874 module_expsym_cmds_CXX | \
14875 old_archive_from_expsyms_cmds_CXX | \
14876 export_symbols_cmds_CXX | \
14877 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14878 postinstall_cmds | postuninstall_cmds | \
14879 old_postinstall_cmds | old_postuninstall_cmds | \
14880 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14881 # Double-quote double-evaled strings.
14882 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14883 ;;
14884 *)
14885 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14886 ;;
14887 esac
14888 done
14889
14890 case $lt_echo in
14891 *'\$0 --fallback-echo"')
14892 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14893 ;;
14894 esac
14895
14896cfgfile="$ofile"
14897
14898 cat <<__EOF__ >> "$cfgfile"
14899# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14900
14901# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14902
14903# Shell to use when invoking shell scripts.
14904SHELL=$lt_SHELL
14905
14906# Whether or not to build shared libraries.
14907build_libtool_libs=$enable_shared
14908
14909# Whether or not to build static libraries.
14910build_old_libs=$enable_static
14911
14912# Whether or not to add -lc for building shared libraries.
14913build_libtool_need_lc=$archive_cmds_need_lc_CXX
14914
14915# Whether or not to disallow shared libs when runtime libs are static
14916allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14917
14918# Whether or not to optimize for fast installation.
14919fast_install=$enable_fast_install
14920
14921# The host system.
14922host_alias=$host_alias
14923host=$host
14924host_os=$host_os
14925
14926# The build system.
14927build_alias=$build_alias
14928build=$build
14929build_os=$build_os
14930
14931# An echo program that does not interpret backslashes.
14932echo=$lt_echo
14933
14934# The archiver.
14935AR=$lt_AR
14936AR_FLAGS=$lt_AR_FLAGS
14937
14938# A C compiler.
14939LTCC=$lt_LTCC
14940
14941# LTCC compiler flags.
14942LTCFLAGS=$lt_LTCFLAGS
14943
14944# A language-specific compiler.
14945CC=$lt_compiler_CXX
14946
14947# Is the compiler the GNU C compiler?
14948with_gcc=$GCC_CXX
14949
14950# An ERE matcher.
14951EGREP=$lt_EGREP
14952
14953# The linker used to build libraries.
14954LD=$lt_LD_CXX
14955
14956# Whether we need hard or soft links.
14957LN_S=$lt_LN_S
14958
14959# A BSD-compatible nm program.
14960NM=$lt_NM
14961
14962# A symbol stripping program
14963STRIP=$lt_STRIP
14964
14965# Used to examine libraries when file_magic_cmd begins "file"
14966MAGIC_CMD=$MAGIC_CMD
14967
14968# Used on cygwin: DLL creation program.
14969DLLTOOL="$DLLTOOL"
14970
14971# Used on cygwin: object dumper.
14972OBJDUMP="$OBJDUMP"
14973
14974# Used on cygwin: assembler.
14975AS="$AS"
14976
14977# The name of the directory that contains temporary libtool files.
14978objdir=$objdir
14979
14980# How to create reloadable object files.
14981reload_flag=$lt_reload_flag
14982reload_cmds=$lt_reload_cmds
14983
14984# How to pass a linker flag through the compiler.
14985wl=$lt_lt_prog_compiler_wl_CXX
14986
14987# Object file suffix (normally "o").
14988objext="$ac_objext"
14989
14990# Old archive suffix (normally "a").
14991libext="$libext"
14992
14993# Shared library suffix (normally ".so").
14994shrext_cmds='$shrext_cmds'
14995
14996# Executable file suffix (normally "").
14997exeext="$exeext"
14998
14999# Additional compiler flags for building library objects.
15000pic_flag=$lt_lt_prog_compiler_pic_CXX
15001pic_mode=$pic_mode
15002
15003# What is the maximum length of a command?
15004max_cmd_len=$lt_cv_sys_max_cmd_len
15005
15006# Does compiler simultaneously support -c and -o options?
15007compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15008
15009# Must we lock files when doing compilation?
15010need_locks=$lt_need_locks
15011
15012# Do we need the lib prefix for modules?
15013need_lib_prefix=$need_lib_prefix
15014
15015# Do we need a version for libraries?
15016need_version=$need_version
15017
15018# Whether dlopen is supported.
15019dlopen_support=$enable_dlopen
15020
15021# Whether dlopen of programs is supported.
15022dlopen_self=$enable_dlopen_self
15023
15024# Whether dlopen of statically linked programs is supported.
15025dlopen_self_static=$enable_dlopen_self_static
15026
15027# Compiler flag to prevent dynamic linking.
15028link_static_flag=$lt_lt_prog_compiler_static_CXX
15029
15030# Compiler flag to turn off builtin functions.
15031no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15032
15033# Compiler flag to allow reflexive dlopens.
15034export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15035
15036# Compiler flag to generate shared objects directly from archives.
15037whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15038
15039# Compiler flag to generate thread-safe objects.
15040thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15041
15042# Library versioning type.
15043version_type=$version_type
15044
15045# Format of library name prefix.
15046libname_spec=$lt_libname_spec
15047
15048# List of archive names. First name is the real one, the rest are links.
15049# The last name is the one that the linker finds with -lNAME.
15050library_names_spec=$lt_library_names_spec
15051
15052# The coded name of the library, if different from the real name.
15053soname_spec=$lt_soname_spec
15054
15055# Commands used to build and install an old-style archive.
15056RANLIB=$lt_RANLIB
15057old_archive_cmds=$lt_old_archive_cmds_CXX
15058old_postinstall_cmds=$lt_old_postinstall_cmds
15059old_postuninstall_cmds=$lt_old_postuninstall_cmds
15060
15061# Create an old-style archive from a shared archive.
15062old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15063
15064# Create a temporary old-style archive to link instead of a shared archive.
15065old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15066
15067# Commands used to build and install a shared archive.
15068archive_cmds=$lt_archive_cmds_CXX
15069archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15070postinstall_cmds=$lt_postinstall_cmds
15071postuninstall_cmds=$lt_postuninstall_cmds
15072
15073# Commands used to build a loadable module (assumed same as above if empty)
15074module_cmds=$lt_module_cmds_CXX
15075module_expsym_cmds=$lt_module_expsym_cmds_CXX
15076
15077# Commands to strip libraries.
15078old_striplib=$lt_old_striplib
15079striplib=$lt_striplib
15080
15081# Dependencies to place before the objects being linked to create a
15082# shared library.
15083predep_objects=$lt_predep_objects_CXX
15084
15085# Dependencies to place after the objects being linked to create a
15086# shared library.
15087postdep_objects=$lt_postdep_objects_CXX
15088
15089# Dependencies to place before the objects being linked to create a
15090# shared library.
15091predeps=$lt_predeps_CXX
15092
15093# Dependencies to place after the objects being linked to create a
15094# shared library.
15095postdeps=$lt_postdeps_CXX
15096
56efe974
WP
15097# The directories searched by this compiler when creating a shared
15098# library
15099compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
15100
b57f37fb
WP
15101# The library search path used internally by the compiler when linking
15102# a shared library.
15103compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15104
15105# Method to check whether dependent libraries are shared objects.
15106deplibs_check_method=$lt_deplibs_check_method
15107
15108# Command to use when deplibs_check_method == file_magic.
15109file_magic_cmd=$lt_file_magic_cmd
15110
15111# Flag that allows shared libraries with undefined symbols to be built.
15112allow_undefined_flag=$lt_allow_undefined_flag_CXX
15113
15114# Flag that forces no undefined symbols.
15115no_undefined_flag=$lt_no_undefined_flag_CXX
15116
15117# Commands used to finish a libtool library installation in a directory.
15118finish_cmds=$lt_finish_cmds
15119
15120# Same as above, but a single script fragment to be evaled but not shown.
15121finish_eval=$lt_finish_eval
15122
15123# Take the output of nm and produce a listing of raw symbols and C names.
15124global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15125
15126# Transform the output of nm in a proper C declaration
15127global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15128
15129# Transform the output of nm in a C name address pair
15130global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15131
15132# This is the shared library runtime path variable.
15133runpath_var=$runpath_var
15134
15135# This is the shared library path variable.
15136shlibpath_var=$shlibpath_var
15137
15138# Is shlibpath searched before the hard-coded library search path?
15139shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15140
15141# How to hardcode a shared library path into an executable.
15142hardcode_action=$hardcode_action_CXX
15143
15144# Whether we should hardcode library paths into libraries.
15145hardcode_into_libs=$hardcode_into_libs
15146
15147# Flag to hardcode \$libdir into a binary during linking.
15148# This must work even if \$libdir does not exist.
15149hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15150
15151# If ld is used when linking, flag to hardcode \$libdir into
15152# a binary during linking. This must work even if \$libdir does
15153# not exist.
15154hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15155
15156# Whether we need a single -rpath flag with a separated argument.
15157hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15158
15159# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15160# resulting binary.
15161hardcode_direct=$hardcode_direct_CXX
15162
15163# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15164# resulting binary.
15165hardcode_minus_L=$hardcode_minus_L_CXX
15166
15167# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15168# the resulting binary.
15169hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15170
15171# Set to yes if building a shared library automatically hardcodes DIR into the library
15172# and all subsequent libraries and executables linked against it.
15173hardcode_automatic=$hardcode_automatic_CXX
15174
15175# Variables whose values should be saved in libtool wrapper scripts and
15176# restored at relink time.
15177variables_saved_for_relink="$variables_saved_for_relink"
15178
15179# Whether libtool must link a program against all its dependency libraries.
15180link_all_deplibs=$link_all_deplibs_CXX
15181
15182# Compile-time system search path for libraries
15183sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15184
15185# Run-time system search path for libraries
15186sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15187
15188# Fix the shell variable \$srcfile for the compiler.
15189fix_srcfile_path=$lt_fix_srcfile_path
15190
15191# Set to yes if exported symbols are required.
15192always_export_symbols=$always_export_symbols_CXX
15193
15194# The commands to list exported symbols.
15195export_symbols_cmds=$lt_export_symbols_cmds_CXX
15196
15197# The commands to extract the exported symbol list from a shared archive.
15198extract_expsyms_cmds=$lt_extract_expsyms_cmds
15199
15200# Symbols that should not be listed in the preloaded symbols.
15201exclude_expsyms=$lt_exclude_expsyms_CXX
15202
15203# Symbols that must always be exported.
15204include_expsyms=$lt_include_expsyms_CXX
15205
15206# ### END LIBTOOL TAG CONFIG: $tagname
15207
15208__EOF__
15209
15210
15211else
15212 # If there is no Makefile yet, we rely on a make rule to execute
15213 # `config.status --recheck' to rerun these tests and create the
15214 # libtool script then.
15215 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15216 if test -f "$ltmain_in"; then
15217 test -f Makefile && make "$ltmain"
15218 fi
15219fi
15220
15221
15222ac_ext=c
15223ac_cpp='$CPP $CPPFLAGS'
15224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15226ac_compiler_gnu=$ac_cv_c_compiler_gnu
15227
15228CC=$lt_save_CC
15229LDCXX=$LD
15230LD=$lt_save_LD
15231GCC=$lt_save_GCC
15232with_gnu_ldcxx=$with_gnu_ld
15233with_gnu_ld=$lt_save_with_gnu_ld
15234lt_cv_path_LDCXX=$lt_cv_path_LD
15235lt_cv_path_LD=$lt_save_path_LD
15236lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15237lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15238
15239 else
15240 tagname=""
15241 fi
15242 ;;
15243
15244 F77)
15245 if test -n "$F77" && test "X$F77" != "Xno"; then
15246
15247ac_ext=f
15248ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15249ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15250ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15251
15252
15253archive_cmds_need_lc_F77=no
15254allow_undefined_flag_F77=
15255always_export_symbols_F77=no
15256archive_expsym_cmds_F77=
15257export_dynamic_flag_spec_F77=
15258hardcode_direct_F77=no
15259hardcode_libdir_flag_spec_F77=
15260hardcode_libdir_flag_spec_ld_F77=
15261hardcode_libdir_separator_F77=
15262hardcode_minus_L_F77=no
15263hardcode_automatic_F77=no
15264module_cmds_F77=
15265module_expsym_cmds_F77=
15266link_all_deplibs_F77=unknown
15267old_archive_cmds_F77=$old_archive_cmds
15268no_undefined_flag_F77=
15269whole_archive_flag_spec_F77=
15270enable_shared_with_static_runtimes_F77=no
15271
15272# Source file extension for f77 test sources.
15273ac_ext=f
15274
15275# Object file extension for compiled f77 test sources.
15276objext=o
15277objext_F77=$objext
15278
15279# Code to be used in simple compile tests
15280lt_simple_compile_test_code="\
15281 subroutine t
15282 return
15283 end
15284"
15285
15286# Code to be used in simple link tests
15287lt_simple_link_test_code="\
15288 program t
15289 end
15290"
15291
15292# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15293
15294# If no C compiler was specified, use CC.
15295LTCC=${LTCC-"$CC"}
15296
15297# If no C compiler flags were specified, use CFLAGS.
15298LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15299
15300# Allow CC to be a program name with arguments.
15301compiler=$CC
15302
15303
15304# save warnings/boilerplate of simple test code
15305ac_outfile=conftest.$ac_objext
15306echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15307eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15308_lt_compiler_boilerplate=`cat conftest.err`
15309$rm conftest*
15310
15311ac_outfile=conftest.$ac_objext
15312echo "$lt_simple_link_test_code" >conftest.$ac_ext
15313eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15314_lt_linker_boilerplate=`cat conftest.err`
56efe974 15315$rm -r conftest*
b57f37fb
WP
15316
15317
15318# Allow CC to be a program name with arguments.
15319lt_save_CC="$CC"
15320CC=${F77-"f77"}
15321compiler=$CC
15322compiler_F77=$CC
15323for cc_temp in $compiler""; do
15324 case $cc_temp in
15325 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15326 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15327 \-*) ;;
15328 *) break;;
15329 esac
15330done
15331cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15332
15333
15334{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15335echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15336{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
15337echo "${ECHO_T}$can_build_shared" >&6; }
15338
15339{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15340echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15341test "$can_build_shared" = "no" && enable_shared=no
15342
15343# On AIX, shared libraries and static libraries use the same namespace, and
15344# are all built from PIC.
15345case $host_os in
15346aix3*)
15347 test "$enable_shared" = yes && enable_static=no
15348 if test -n "$RANLIB"; then
15349 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15350 postinstall_cmds='$RANLIB $lib'
15351 fi
15352 ;;
56efe974 15353aix[4-9]*)
b57f37fb
WP
15354 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15355 test "$enable_shared" = yes && enable_static=no
15356 fi
15357 ;;
15358esac
15359{ echo "$as_me:$LINENO: result: $enable_shared" >&5
15360echo "${ECHO_T}$enable_shared" >&6; }
15361
15362{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15363echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15364# Make sure either enable_shared or enable_static is yes.
15365test "$enable_shared" = yes || enable_static=yes
15366{ echo "$as_me:$LINENO: result: $enable_static" >&5
15367echo "${ECHO_T}$enable_static" >&6; }
15368
15369GCC_F77="$G77"
15370LD_F77="$LD"
15371
15372lt_prog_compiler_wl_F77=
15373lt_prog_compiler_pic_F77=
15374lt_prog_compiler_static_F77=
15375
15376{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15377echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15378
15379 if test "$GCC" = yes; then
15380 lt_prog_compiler_wl_F77='-Wl,'
15381 lt_prog_compiler_static_F77='-static'
15382
15383 case $host_os in
15384 aix*)
15385 # All AIX code is PIC.
15386 if test "$host_cpu" = ia64; then
15387 # AIX 5 now supports IA64 processor
15388 lt_prog_compiler_static_F77='-Bstatic'
15389 fi
15390 ;;
15391
15392 amigaos*)
15393 # FIXME: we need at least 68020 code to build shared libraries, but
15394 # adding the `-m68020' flag to GCC prevents building anything better,
15395 # like `-m68040'.
15396 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15397 ;;
15398
15399 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15400 # PIC is the default for these OSes.
15401 ;;
15402
15403 mingw* | cygwin* | pw32* | os2*)
15404 # This hack is so that the source file can tell whether it is being
15405 # built for inclusion in a dll (and should export symbols for example).
15406 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15407 # (--disable-auto-import) libraries
15408 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15409 ;;
15410
15411 darwin* | rhapsody*)
15412 # PIC is the default on this platform
15413 # Common symbols not allowed in MH_DYLIB files
15414 lt_prog_compiler_pic_F77='-fno-common'
15415 ;;
15416
15417 interix[3-9]*)
15418 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15419 # Instead, we relocate shared libraries at runtime.
15420 ;;
15421
15422 msdosdjgpp*)
15423 # Just because we use GCC doesn't mean we suddenly get shared libraries
15424 # on systems that don't support them.
15425 lt_prog_compiler_can_build_shared_F77=no
15426 enable_shared=no
15427 ;;
15428
15429 sysv4*MP*)
15430 if test -d /usr/nec; then
15431 lt_prog_compiler_pic_F77=-Kconform_pic
15432 fi
15433 ;;
15434
15435 hpux*)
15436 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15437 # not for PA HP-UX.
15438 case $host_cpu in
15439 hppa*64*|ia64*)
15440 # +Z the default
15441 ;;
15442 *)
15443 lt_prog_compiler_pic_F77='-fPIC'
15444 ;;
15445 esac
15446 ;;
15447
15448 *)
15449 lt_prog_compiler_pic_F77='-fPIC'
15450 ;;
15451 esac
15452 else
15453 # PORTME Check for flag to pass linker flags through the system compiler.
15454 case $host_os in
15455 aix*)
15456 lt_prog_compiler_wl_F77='-Wl,'
15457 if test "$host_cpu" = ia64; then
15458 # AIX 5 now supports IA64 processor
15459 lt_prog_compiler_static_F77='-Bstatic'
15460 else
15461 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15462 fi
15463 ;;
15464 darwin*)
15465 # PIC is the default on this platform
15466 # Common symbols not allowed in MH_DYLIB files
15467 case $cc_basename in
15468 xlc*)
15469 lt_prog_compiler_pic_F77='-qnocommon'
15470 lt_prog_compiler_wl_F77='-Wl,'
15471 ;;
15472 esac
15473 ;;
15474
15475 mingw* | cygwin* | pw32* | os2*)
15476 # This hack is so that the source file can tell whether it is being
15477 # built for inclusion in a dll (and should export symbols for example).
15478 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15479 ;;
15480
15481 hpux9* | hpux10* | hpux11*)
15482 lt_prog_compiler_wl_F77='-Wl,'
15483 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15484 # not for PA HP-UX.
15485 case $host_cpu in
15486 hppa*64*|ia64*)
15487 # +Z the default
15488 ;;
15489 *)
15490 lt_prog_compiler_pic_F77='+Z'
15491 ;;
15492 esac
15493 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15494 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15495 ;;
15496
15497 irix5* | irix6* | nonstopux*)
15498 lt_prog_compiler_wl_F77='-Wl,'
15499 # PIC (with -KPIC) is the default.
15500 lt_prog_compiler_static_F77='-non_shared'
15501 ;;
15502
15503 newsos6)
15504 lt_prog_compiler_pic_F77='-KPIC'
15505 lt_prog_compiler_static_F77='-Bstatic'
15506 ;;
15507
15508 linux* | k*bsd*-gnu)
15509 case $cc_basename in
15510 icc* | ecc*)
15511 lt_prog_compiler_wl_F77='-Wl,'
15512 lt_prog_compiler_pic_F77='-KPIC'
15513 lt_prog_compiler_static_F77='-static'
15514 ;;
15515 pgcc* | pgf77* | pgf90* | pgf95*)
15516 # Portland Group compilers (*not* the Pentium gcc compiler,
15517 # which looks to be a dead project)
15518 lt_prog_compiler_wl_F77='-Wl,'
15519 lt_prog_compiler_pic_F77='-fpic'
15520 lt_prog_compiler_static_F77='-Bstatic'
15521 ;;
15522 ccc*)
15523 lt_prog_compiler_wl_F77='-Wl,'
15524 # All Alpha code is PIC.
15525 lt_prog_compiler_static_F77='-non_shared'
15526 ;;
15527 *)
15528 case `$CC -V 2>&1 | sed 5q` in
15529 *Sun\ C*)
15530 # Sun C 5.9
15531 lt_prog_compiler_pic_F77='-KPIC'
15532 lt_prog_compiler_static_F77='-Bstatic'
15533 lt_prog_compiler_wl_F77='-Wl,'
15534 ;;
15535 *Sun\ F*)
15536 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15537 lt_prog_compiler_pic_F77='-KPIC'
15538 lt_prog_compiler_static_F77='-Bstatic'
15539 lt_prog_compiler_wl_F77=''
15540 ;;
15541 esac
15542 ;;
15543 esac
15544 ;;
15545
15546 osf3* | osf4* | osf5*)
15547 lt_prog_compiler_wl_F77='-Wl,'
15548 # All OSF/1 code is PIC.
15549 lt_prog_compiler_static_F77='-non_shared'
15550 ;;
15551
15552 rdos*)
15553 lt_prog_compiler_static_F77='-non_shared'
15554 ;;
15555
15556 solaris*)
15557 lt_prog_compiler_pic_F77='-KPIC'
15558 lt_prog_compiler_static_F77='-Bstatic'
15559 case $cc_basename in
15560 f77* | f90* | f95*)
15561 lt_prog_compiler_wl_F77='-Qoption ld ';;
15562 *)
15563 lt_prog_compiler_wl_F77='-Wl,';;
15564 esac
15565 ;;
15566
15567 sunos4*)
15568 lt_prog_compiler_wl_F77='-Qoption ld '
15569 lt_prog_compiler_pic_F77='-PIC'
15570 lt_prog_compiler_static_F77='-Bstatic'
15571 ;;
15572
15573 sysv4 | sysv4.2uw2* | sysv4.3*)
15574 lt_prog_compiler_wl_F77='-Wl,'
15575 lt_prog_compiler_pic_F77='-KPIC'
15576 lt_prog_compiler_static_F77='-Bstatic'
15577 ;;
15578
15579 sysv4*MP*)
15580 if test -d /usr/nec ;then
15581 lt_prog_compiler_pic_F77='-Kconform_pic'
15582 lt_prog_compiler_static_F77='-Bstatic'
15583 fi
15584 ;;
15585
15586 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15587 lt_prog_compiler_wl_F77='-Wl,'
15588 lt_prog_compiler_pic_F77='-KPIC'
15589 lt_prog_compiler_static_F77='-Bstatic'
15590 ;;
15591
15592 unicos*)
15593 lt_prog_compiler_wl_F77='-Wl,'
15594 lt_prog_compiler_can_build_shared_F77=no
15595 ;;
15596
15597 uts4*)
15598 lt_prog_compiler_pic_F77='-pic'
15599 lt_prog_compiler_static_F77='-Bstatic'
15600 ;;
15601
15602 *)
15603 lt_prog_compiler_can_build_shared_F77=no
15604 ;;
15605 esac
15606 fi
15607
15608{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15609echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15610
15611#
15612# Check to make sure the PIC flag actually works.
15613#
15614if test -n "$lt_prog_compiler_pic_F77"; then
15615
15616{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15617echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
56efe974 15618if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
b57f37fb
WP
15619 echo $ECHO_N "(cached) $ECHO_C" >&6
15620else
56efe974 15621 lt_cv_prog_compiler_pic_works_F77=no
b57f37fb
WP
15622 ac_outfile=conftest.$ac_objext
15623 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15624 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15625 # Insert the option either (1) after the last *FLAGS variable, or
15626 # (2) before a word containing "conftest.", or (3) at the end.
15627 # Note that $ac_compile itself does not contain backslashes and begins
15628 # with a dollar sign (not a hyphen), so the echo should work correctly.
15629 # The option is referenced via a variable to avoid confusing sed.
15630 lt_compile=`echo "$ac_compile" | $SED \
15631 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15632 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15633 -e 's:$: $lt_compiler_flag:'`
56efe974 15634 (eval echo "\"\$as_me:15634: $lt_compile\"" >&5)
b57f37fb
WP
15635 (eval "$lt_compile" 2>conftest.err)
15636 ac_status=$?
15637 cat conftest.err >&5
56efe974 15638 echo "$as_me:15638: \$? = $ac_status" >&5
b57f37fb
WP
15639 if (exit $ac_status) && test -s "$ac_outfile"; then
15640 # The compiler can only warn and ignore the option if not recognized
15641 # So say no if there are warnings other than the usual output.
15642 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15643 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15644 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
56efe974 15645 lt_cv_prog_compiler_pic_works_F77=yes
b57f37fb
WP
15646 fi
15647 fi
15648 $rm conftest*
15649
15650fi
56efe974
WP
15651{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
15652echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
b57f37fb 15653
56efe974 15654if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
b57f37fb
WP
15655 case $lt_prog_compiler_pic_F77 in
15656 "" | " "*) ;;
15657 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15658 esac
15659else
15660 lt_prog_compiler_pic_F77=
15661 lt_prog_compiler_can_build_shared_F77=no
15662fi
15663
15664fi
15665case $host_os in
15666 # For platforms which do not support PIC, -DPIC is meaningless:
15667 *djgpp*)
15668 lt_prog_compiler_pic_F77=
15669 ;;
15670 *)
15671 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15672 ;;
15673esac
15674
15675#
15676# Check to make sure the static flag actually works.
15677#
15678wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15679{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15680echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
56efe974 15681if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
b57f37fb
WP
15682 echo $ECHO_N "(cached) $ECHO_C" >&6
15683else
56efe974 15684 lt_cv_prog_compiler_static_works_F77=no
b57f37fb
WP
15685 save_LDFLAGS="$LDFLAGS"
15686 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15687 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15688 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15689 # The linker can only warn and ignore the option if not recognized
15690 # So say no if there are warnings
15691 if test -s conftest.err; then
15692 # Append any errors to the config.log.
15693 cat conftest.err 1>&5
15694 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15695 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15696 if diff conftest.exp conftest.er2 >/dev/null; then
56efe974 15697 lt_cv_prog_compiler_static_works_F77=yes
b57f37fb
WP
15698 fi
15699 else
56efe974 15700 lt_cv_prog_compiler_static_works_F77=yes
b57f37fb
WP
15701 fi
15702 fi
56efe974 15703 $rm -r conftest*
b57f37fb
WP
15704 LDFLAGS="$save_LDFLAGS"
15705
15706fi
56efe974
WP
15707{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
15708echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
b57f37fb 15709
56efe974 15710if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
b57f37fb
WP
15711 :
15712else
15713 lt_prog_compiler_static_F77=
15714fi
15715
15716
15717{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15718echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15719if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15720 echo $ECHO_N "(cached) $ECHO_C" >&6
15721else
15722 lt_cv_prog_compiler_c_o_F77=no
15723 $rm -r conftest 2>/dev/null
15724 mkdir conftest
15725 cd conftest
15726 mkdir out
15727 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15728
15729 lt_compiler_flag="-o out/conftest2.$ac_objext"
15730 # Insert the option either (1) after the last *FLAGS variable, or
15731 # (2) before a word containing "conftest.", or (3) at the end.
15732 # Note that $ac_compile itself does not contain backslashes and begins
15733 # with a dollar sign (not a hyphen), so the echo should work correctly.
15734 lt_compile=`echo "$ac_compile" | $SED \
15735 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15736 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15737 -e 's:$: $lt_compiler_flag:'`
56efe974 15738 (eval echo "\"\$as_me:15738: $lt_compile\"" >&5)
b57f37fb
WP
15739 (eval "$lt_compile" 2>out/conftest.err)
15740 ac_status=$?
15741 cat out/conftest.err >&5
56efe974 15742 echo "$as_me:15742: \$? = $ac_status" >&5
b57f37fb
WP
15743 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15744 then
15745 # The compiler can only warn and ignore the option if not recognized
15746 # So say no if there are warnings
15747 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15748 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15749 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15750 lt_cv_prog_compiler_c_o_F77=yes
15751 fi
15752 fi
15753 chmod u+w . 2>&5
15754 $rm conftest*
15755 # SGI C++ compiler will create directory out/ii_files/ for
15756 # template instantiation
15757 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15758 $rm out/* && rmdir out
15759 cd ..
15760 rmdir conftest
15761 $rm conftest*
15762
15763fi
15764{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15765echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15766
15767
15768hard_links="nottested"
15769if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15770 # do not overwrite the value of need_locks provided by the user
15771 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15772echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15773 hard_links=yes
15774 $rm conftest*
15775 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15776 touch conftest.a
15777 ln conftest.a conftest.b 2>&5 || hard_links=no
15778 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15779 { echo "$as_me:$LINENO: result: $hard_links" >&5
15780echo "${ECHO_T}$hard_links" >&6; }
15781 if test "$hard_links" = no; then
15782 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15783echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15784 need_locks=warn
15785 fi
15786else
15787 need_locks=no
15788fi
15789
15790{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15791echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15792
15793 runpath_var=
15794 allow_undefined_flag_F77=
15795 enable_shared_with_static_runtimes_F77=no
15796 archive_cmds_F77=
15797 archive_expsym_cmds_F77=
15798 old_archive_From_new_cmds_F77=
15799 old_archive_from_expsyms_cmds_F77=
15800 export_dynamic_flag_spec_F77=
15801 whole_archive_flag_spec_F77=
15802 thread_safe_flag_spec_F77=
15803 hardcode_libdir_flag_spec_F77=
15804 hardcode_libdir_flag_spec_ld_F77=
15805 hardcode_libdir_separator_F77=
15806 hardcode_direct_F77=no
15807 hardcode_minus_L_F77=no
15808 hardcode_shlibpath_var_F77=unsupported
15809 link_all_deplibs_F77=unknown
15810 hardcode_automatic_F77=no
15811 module_cmds_F77=
15812 module_expsym_cmds_F77=
15813 always_export_symbols_F77=no
15814 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15815 # include_expsyms should be a list of space-separated symbols to be *always*
15816 # included in the symbol list
15817 include_expsyms_F77=
15818 # exclude_expsyms can be an extended regexp of symbols to exclude
15819 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15820 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15821 # as well as any symbol that contains `d'.
56efe974 15822 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
b57f37fb
WP
15823 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15824 # platforms (ab)use it in PIC code, but their linkers get confused if
15825 # the symbol is explicitly referenced. Since portable code cannot
15826 # rely on this symbol name, it's probably fine to never include it in
15827 # preloaded symbol tables.
56efe974 15828 # Exclude shared library initialization/finalization symbols.
b57f37fb
WP
15829 extract_expsyms_cmds=
15830 # Just being paranoid about ensuring that cc_basename is set.
15831 for cc_temp in $compiler""; do
15832 case $cc_temp in
15833 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15834 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15835 \-*) ;;
15836 *) break;;
15837 esac
15838done
15839cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15840
15841 case $host_os in
15842 cygwin* | mingw* | pw32*)
15843 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15844 # When not using gcc, we currently assume that we are using
15845 # Microsoft Visual C++.
15846 if test "$GCC" != yes; then
15847 with_gnu_ld=no
15848 fi
15849 ;;
15850 interix*)
15851 # we just hope/assume this is gcc and not c89 (= MSVC++)
15852 with_gnu_ld=yes
15853 ;;
15854 openbsd*)
15855 with_gnu_ld=no
15856 ;;
15857 esac
15858
15859 ld_shlibs_F77=yes
15860 if test "$with_gnu_ld" = yes; then
15861 # If archive_cmds runs LD, not CC, wlarc should be empty
15862 wlarc='${wl}'
15863
15864 # Set some defaults for GNU ld with shared library support. These
15865 # are reset later if shared libraries are not supported. Putting them
15866 # here allows them to be overridden if necessary.
15867 runpath_var=LD_RUN_PATH
15868 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15869 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15870 # ancient GNU ld didn't support --whole-archive et. al.
15871 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15872 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15873 else
15874 whole_archive_flag_spec_F77=
15875 fi
15876 supports_anon_versioning=no
15877 case `$LD -v 2>/dev/null` in
15878 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15879 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15880 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15881 *\ 2.11.*) ;; # other 2.11 versions
15882 *) supports_anon_versioning=yes ;;
15883 esac
15884
15885 # See if GNU ld supports shared libraries.
15886 case $host_os in
56efe974 15887 aix[3-9]*)
b57f37fb
WP
15888 # On AIX/PPC, the GNU linker is very broken
15889 if test "$host_cpu" != ia64; then
15890 ld_shlibs_F77=no
15891 cat <<EOF 1>&2
15892
15893*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15894*** to be unable to reliably create shared libraries on AIX.
15895*** Therefore, libtool is disabling shared libraries support. If you
15896*** really care for shared libraries, you may want to modify your PATH
15897*** so that a non-GNU linker is found, and then restart.
15898
15899EOF
15900 fi
15901 ;;
15902
15903 amigaos*)
15904 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)'
15905 hardcode_libdir_flag_spec_F77='-L$libdir'
15906 hardcode_minus_L_F77=yes
15907
15908 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15909 # that the semantics of dynamic libraries on AmigaOS, at least up
15910 # to version 4, is to share data among multiple programs linked
15911 # with the same dynamic library. Since this doesn't match the
15912 # behavior of shared libraries on other platforms, we can't use
15913 # them.
15914 ld_shlibs_F77=no
15915 ;;
15916
15917 beos*)
15918 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15919 allow_undefined_flag_F77=unsupported
15920 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15921 # support --undefined. This deserves some investigation. FIXME
15922 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15923 else
15924 ld_shlibs_F77=no
15925 fi
15926 ;;
15927
15928 cygwin* | mingw* | pw32*)
15929 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15930 # as there is no search path for DLLs.
15931 hardcode_libdir_flag_spec_F77='-L$libdir'
15932 allow_undefined_flag_F77=unsupported
15933 always_export_symbols_F77=no
15934 enable_shared_with_static_runtimes_F77=yes
15935 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15936
15937 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15938 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15939 # If the export-symbols file already is a .def file (1st line
15940 # is EXPORTS), use it as is; otherwise, prepend...
15941 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15942 cp $export_symbols $output_objdir/$soname.def;
15943 else
15944 echo EXPORTS > $output_objdir/$soname.def;
15945 cat $export_symbols >> $output_objdir/$soname.def;
15946 fi~
15947 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15948 else
15949 ld_shlibs_F77=no
15950 fi
15951 ;;
15952
15953 interix[3-9]*)
15954 hardcode_direct_F77=no
15955 hardcode_shlibpath_var_F77=no
15956 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15957 export_dynamic_flag_spec_F77='${wl}-E'
15958 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15959 # Instead, shared libraries are loaded at an image base (0x10000000 by
15960 # default) and relocated if they conflict, which is a slow very memory
15961 # consuming and fragmenting process. To avoid this, we pick a random,
15962 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15963 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15964 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'
15965 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'
15966 ;;
15967
15968 gnu* | linux* | k*bsd*-gnu)
15969 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15970 tmp_addflag=
15971 case $cc_basename,$host_cpu in
15972 pgcc*) # Portland Group C compiler
15973 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'
15974 tmp_addflag=' $pic_flag'
15975 ;;
15976 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15977 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'
15978 tmp_addflag=' $pic_flag -Mnomain' ;;
15979 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15980 tmp_addflag=' -i_dynamic' ;;
15981 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15982 tmp_addflag=' -i_dynamic -nofor_main' ;;
15983 ifc* | ifort*) # Intel Fortran compiler
15984 tmp_addflag=' -nofor_main' ;;
15985 esac
15986 case `$CC -V 2>&1 | sed 5q` in
15987 *Sun\ C*) # Sun C 5.9
15988 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'
15989 tmp_sharedflag='-G' ;;
15990 *Sun\ F*) # Sun Fortran 8.3
15991 tmp_sharedflag='-G' ;;
15992 *)
15993 tmp_sharedflag='-shared' ;;
15994 esac
15995 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15996
15997 if test $supports_anon_versioning = yes; then
15998 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15999 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16000 $echo "local: *; };" >> $output_objdir/$libname.ver~
16001 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16002 fi
16003 link_all_deplibs_F77=no
16004 else
16005 ld_shlibs_F77=no
16006 fi
16007 ;;
16008
16009 netbsd* | netbsdelf*-gnu)
16010 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16011 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16012 wlarc=
16013 else
16014 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16015 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16016 fi
16017 ;;
16018
16019 solaris*)
16020 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16021 ld_shlibs_F77=no
16022 cat <<EOF 1>&2
16023
16024*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16025*** create shared libraries on Solaris systems. Therefore, libtool
16026*** is disabling shared libraries support. We urge you to upgrade GNU
16027*** binutils to release 2.9.1 or newer. Another option is to modify
16028*** your PATH or compiler configuration so that the native linker is
16029*** used, and then restart.
16030
16031EOF
16032 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16033 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16034 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16035 else
16036 ld_shlibs_F77=no
16037 fi
16038 ;;
16039
16040 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16041 case `$LD -v 2>&1` in
16042 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16043 ld_shlibs_F77=no
16044 cat <<_LT_EOF 1>&2
16045
16046*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16047*** reliably create shared libraries on SCO systems. Therefore, libtool
16048*** is disabling shared libraries support. We urge you to upgrade GNU
16049*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16050*** your PATH or compiler configuration so that the native linker is
16051*** used, and then restart.
16052
16053_LT_EOF
16054 ;;
16055 *)
16056 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16057 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16058 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16059 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16060 else
16061 ld_shlibs_F77=no
16062 fi
16063 ;;
16064 esac
16065 ;;
16066
16067 sunos4*)
16068 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16069 wlarc=
16070 hardcode_direct_F77=yes
16071 hardcode_shlibpath_var_F77=no
16072 ;;
16073
16074 *)
16075 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16076 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16077 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16078 else
16079 ld_shlibs_F77=no
16080 fi
16081 ;;
16082 esac
16083
16084 if test "$ld_shlibs_F77" = no; then
16085 runpath_var=
16086 hardcode_libdir_flag_spec_F77=
16087 export_dynamic_flag_spec_F77=
16088 whole_archive_flag_spec_F77=
16089 fi
16090 else
16091 # PORTME fill in a description of your system's linker (not GNU ld)
16092 case $host_os in
16093 aix3*)
16094 allow_undefined_flag_F77=unsupported
16095 always_export_symbols_F77=yes
16096 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'
16097 # Note: this linker hardcodes the directories in LIBPATH if there
16098 # are no directories specified by -L.
16099 hardcode_minus_L_F77=yes
16100 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16101 # Neither direct hardcoding nor static linking is supported with a
16102 # broken collect2.
16103 hardcode_direct_F77=unsupported
16104 fi
16105 ;;
16106
56efe974 16107 aix[4-9]*)
b57f37fb
WP
16108 if test "$host_cpu" = ia64; then
16109 # On IA64, the linker does run time linking by default, so we don't
16110 # have to do anything special.
16111 aix_use_runtimelinking=no
16112 exp_sym_flag='-Bexport'
16113 no_entry_flag=""
16114 else
16115 # If we're using GNU nm, then we don't want the "-C" option.
16116 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16117 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16118 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'
16119 else
16120 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'
16121 fi
16122 aix_use_runtimelinking=no
16123
16124 # Test if we are trying to use run time linking or normal
16125 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16126 # need to do runtime linking.
56efe974 16127 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
b57f37fb
WP
16128 for ld_flag in $LDFLAGS; do
16129 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16130 aix_use_runtimelinking=yes
16131 break
16132 fi
16133 done
16134 ;;
16135 esac
16136
16137 exp_sym_flag='-bexport'
16138 no_entry_flag='-bnoentry'
16139 fi
16140
16141 # When large executables or shared objects are built, AIX ld can
16142 # have problems creating the table of contents. If linking a library
16143 # or program results in "error TOC overflow" add -mminimal-toc to
16144 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16145 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16146
16147 archive_cmds_F77=''
16148 hardcode_direct_F77=yes
16149 hardcode_libdir_separator_F77=':'
16150 link_all_deplibs_F77=yes
16151
16152 if test "$GCC" = yes; then
16153 case $host_os in aix4.[012]|aix4.[012].*)
16154 # We only want to do this on AIX 4.2 and lower, the check
16155 # below for broken collect2 doesn't work under 4.3+
16156 collect2name=`${CC} -print-prog-name=collect2`
16157 if test -f "$collect2name" && \
16158 strings "$collect2name" | grep resolve_lib_name >/dev/null
16159 then
16160 # We have reworked collect2
16161 :
16162 else
16163 # We have old collect2
16164 hardcode_direct_F77=unsupported
16165 # It fails to find uninstalled libraries when the uninstalled
16166 # path is not listed in the libpath. Setting hardcode_minus_L
16167 # to unsupported forces relinking
16168 hardcode_minus_L_F77=yes
16169 hardcode_libdir_flag_spec_F77='-L$libdir'
16170 hardcode_libdir_separator_F77=
16171 fi
16172 ;;
16173 esac
16174 shared_flag='-shared'
16175 if test "$aix_use_runtimelinking" = yes; then
16176 shared_flag="$shared_flag "'${wl}-G'
16177 fi
16178 else
16179 # not using gcc
16180 if test "$host_cpu" = ia64; then
16181 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16182 # chokes on -Wl,-G. The following line is correct:
16183 shared_flag='-G'
16184 else
16185 if test "$aix_use_runtimelinking" = yes; then
16186 shared_flag='${wl}-G'
16187 else
16188 shared_flag='${wl}-bM:SRE'
16189 fi
16190 fi
16191 fi
16192
16193 # It seems that -bexpall does not export symbols beginning with
16194 # underscore (_), so it is better to generate a list of symbols to export.
16195 always_export_symbols_F77=yes
16196 if test "$aix_use_runtimelinking" = yes; then
16197 # Warning - without using the other runtime loading flags (-brtl),
16198 # -berok will link without error, but may produce a broken library.
16199 allow_undefined_flag_F77='-berok'
16200 # Determine the default libpath from the value encoded in an empty executable.
16201 cat >conftest.$ac_ext <<_ACEOF
16202 program main
16203
16204 end
16205_ACEOF
16206rm -f conftest.$ac_objext conftest$ac_exeext
16207if { (ac_try="$ac_link"
16208case "(($ac_try" in
16209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16210 *) ac_try_echo=$ac_try;;
16211esac
16212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16213 (eval "$ac_link") 2>conftest.er1
16214 ac_status=$?
16215 grep -v '^ *+' conftest.er1 >conftest.err
16216 rm -f conftest.er1
16217 cat conftest.err >&5
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); } && {
16220 test -z "$ac_f77_werror_flag" ||
16221 test ! -s conftest.err
16222 } && test -s conftest$ac_exeext &&
16223 $as_test_x conftest$ac_exeext; then
16224
16225lt_aix_libpath_sed='
16226 /Import File Strings/,/^$/ {
16227 /^0/ {
16228 s/^0 *\(.*\)$/\1/
16229 p
16230 }
16231 }'
16232aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16233# Check for a 64-bit object if we didn't find anything.
16234if test -z "$aix_libpath"; then
16235 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16236fi
16237else
16238 echo "$as_me: failed program was:" >&5
16239sed 's/^/| /' conftest.$ac_ext >&5
16240
16241
16242fi
16243
16244rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16245 conftest$ac_exeext conftest.$ac_ext
16246if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16247
16248 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16249 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"
16250 else
16251 if test "$host_cpu" = ia64; then
16252 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16253 allow_undefined_flag_F77="-z nodefs"
16254 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"
16255 else
16256 # Determine the default libpath from the value encoded in an empty executable.
16257 cat >conftest.$ac_ext <<_ACEOF
16258 program main
16259
16260 end
16261_ACEOF
16262rm -f conftest.$ac_objext conftest$ac_exeext
16263if { (ac_try="$ac_link"
16264case "(($ac_try" in
16265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16266 *) ac_try_echo=$ac_try;;
16267esac
16268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16269 (eval "$ac_link") 2>conftest.er1
16270 ac_status=$?
16271 grep -v '^ *+' conftest.er1 >conftest.err
16272 rm -f conftest.er1
16273 cat conftest.err >&5
16274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275 (exit $ac_status); } && {
16276 test -z "$ac_f77_werror_flag" ||
16277 test ! -s conftest.err
16278 } && test -s conftest$ac_exeext &&
16279 $as_test_x conftest$ac_exeext; then
16280
16281lt_aix_libpath_sed='
16282 /Import File Strings/,/^$/ {
16283 /^0/ {
16284 s/^0 *\(.*\)$/\1/
16285 p
16286 }
16287 }'
16288aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16289# Check for a 64-bit object if we didn't find anything.
16290if test -z "$aix_libpath"; then
16291 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16292fi
16293else
16294 echo "$as_me: failed program was:" >&5
16295sed 's/^/| /' conftest.$ac_ext >&5
16296
16297
16298fi
16299
16300rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16301 conftest$ac_exeext conftest.$ac_ext
16302if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16303
16304 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16305 # Warning - without using the other run time loading flags,
16306 # -berok will link without error, but may produce a broken library.
16307 no_undefined_flag_F77=' ${wl}-bernotok'
16308 allow_undefined_flag_F77=' ${wl}-berok'
16309 # Exported symbols can be pulled into shared objects from archives
16310 whole_archive_flag_spec_F77='$convenience'
16311 archive_cmds_need_lc_F77=yes
16312 # This is similar to how AIX traditionally builds its shared libraries.
16313 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'
16314 fi
16315 fi
16316 ;;
16317
16318 amigaos*)
16319 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)'
16320 hardcode_libdir_flag_spec_F77='-L$libdir'
16321 hardcode_minus_L_F77=yes
16322 # see comment about different semantics on the GNU ld section
16323 ld_shlibs_F77=no
16324 ;;
16325
16326 bsdi[45]*)
16327 export_dynamic_flag_spec_F77=-rdynamic
16328 ;;
16329
16330 cygwin* | mingw* | pw32*)
16331 # When not using gcc, we currently assume that we are using
16332 # Microsoft Visual C++.
16333 # hardcode_libdir_flag_spec is actually meaningless, as there is
16334 # no search path for DLLs.
16335 hardcode_libdir_flag_spec_F77=' '
16336 allow_undefined_flag_F77=unsupported
16337 # Tell ltmain to make .lib files, not .a files.
16338 libext=lib
16339 # Tell ltmain to make .dll files, not .so files.
16340 shrext_cmds=".dll"
16341 # FIXME: Setting linknames here is a bad hack.
16342 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16343 # The linker will automatically build a .lib file if we build a DLL.
16344 old_archive_From_new_cmds_F77='true'
16345 # FIXME: Should let the user specify the lib program.
16346 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16347 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16348 enable_shared_with_static_runtimes_F77=yes
16349 ;;
16350
16351 darwin* | rhapsody*)
16352 case $host_os in
16353 rhapsody* | darwin1.[012])
16354 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16355 ;;
16356 *) # Darwin 1.3 on
16357 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16358 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16359 else
16360 case ${MACOSX_DEPLOYMENT_TARGET} in
16361 10.[012])
16362 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16363 ;;
16364 10.*)
16365 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16366 ;;
16367 esac
16368 fi
16369 ;;
16370 esac
16371 archive_cmds_need_lc_F77=no
16372 hardcode_direct_F77=no
16373 hardcode_automatic_F77=yes
16374 hardcode_shlibpath_var_F77=unsupported
16375 whole_archive_flag_spec_F77=''
16376 link_all_deplibs_F77=yes
16377 if test "$GCC" = yes ; then
16378 output_verbose_link_cmd='echo'
56efe974
WP
16379 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}"
16380 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16381 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}"
16382 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
16383 else
16384 case $cc_basename in
16385 xlc*)
16386 output_verbose_link_cmd='echo'
16387 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16388 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16389 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16390 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}'
16391 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}'
16392 ;;
16393 *)
16394 ld_shlibs_F77=no
16395 ;;
16396 esac
16397 fi
16398 ;;
16399
16400 dgux*)
16401 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16402 hardcode_libdir_flag_spec_F77='-L$libdir'
16403 hardcode_shlibpath_var_F77=no
16404 ;;
16405
16406 freebsd1*)
16407 ld_shlibs_F77=no
16408 ;;
16409
16410 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16411 # support. Future versions do this automatically, but an explicit c++rt0.o
16412 # does not break anything, and helps significantly (at the cost of a little
16413 # extra space).
16414 freebsd2.2*)
16415 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16416 hardcode_libdir_flag_spec_F77='-R$libdir'
16417 hardcode_direct_F77=yes
16418 hardcode_shlibpath_var_F77=no
16419 ;;
16420
16421 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16422 freebsd2*)
16423 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16424 hardcode_direct_F77=yes
16425 hardcode_minus_L_F77=yes
16426 hardcode_shlibpath_var_F77=no
16427 ;;
16428
16429 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16430 freebsd* | dragonfly*)
16431 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16432 hardcode_libdir_flag_spec_F77='-R$libdir'
16433 hardcode_direct_F77=yes
16434 hardcode_shlibpath_var_F77=no
16435 ;;
16436
16437 hpux9*)
16438 if test "$GCC" = yes; then
16439 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'
16440 else
16441 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'
16442 fi
16443 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16444 hardcode_libdir_separator_F77=:
16445 hardcode_direct_F77=yes
16446
16447 # hardcode_minus_L: Not really in the search PATH,
16448 # but as the default location of the library.
16449 hardcode_minus_L_F77=yes
16450 export_dynamic_flag_spec_F77='${wl}-E'
16451 ;;
16452
16453 hpux10*)
16454 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16455 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16456 else
16457 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16458 fi
16459 if test "$with_gnu_ld" = no; then
16460 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16461 hardcode_libdir_separator_F77=:
16462
16463 hardcode_direct_F77=yes
16464 export_dynamic_flag_spec_F77='${wl}-E'
16465
16466 # hardcode_minus_L: Not really in the search PATH,
16467 # but as the default location of the library.
16468 hardcode_minus_L_F77=yes
16469 fi
16470 ;;
16471
16472 hpux11*)
16473 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16474 case $host_cpu in
16475 hppa*64*)
16476 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16477 ;;
16478 ia64*)
16479 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16480 ;;
16481 *)
16482 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16483 ;;
16484 esac
16485 else
16486 case $host_cpu in
16487 hppa*64*)
16488 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16489 ;;
16490 ia64*)
16491 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16492 ;;
16493 *)
16494 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16495 ;;
16496 esac
16497 fi
16498 if test "$with_gnu_ld" = no; then
16499 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16500 hardcode_libdir_separator_F77=:
16501
16502 case $host_cpu in
16503 hppa*64*|ia64*)
16504 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16505 hardcode_direct_F77=no
16506 hardcode_shlibpath_var_F77=no
16507 ;;
16508 *)
16509 hardcode_direct_F77=yes
16510 export_dynamic_flag_spec_F77='${wl}-E'
16511
16512 # hardcode_minus_L: Not really in the search PATH,
16513 # but as the default location of the library.
16514 hardcode_minus_L_F77=yes
16515 ;;
16516 esac
16517 fi
16518 ;;
16519
16520 irix5* | irix6* | nonstopux*)
16521 if test "$GCC" = yes; then
16522 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'
16523 else
16524 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'
16525 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16526 fi
16527 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16528 hardcode_libdir_separator_F77=:
16529 link_all_deplibs_F77=yes
16530 ;;
16531
16532 netbsd* | netbsdelf*-gnu)
16533 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16534 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16535 else
16536 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16537 fi
16538 hardcode_libdir_flag_spec_F77='-R$libdir'
16539 hardcode_direct_F77=yes
16540 hardcode_shlibpath_var_F77=no
16541 ;;
16542
16543 newsos6)
16544 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16545 hardcode_direct_F77=yes
16546 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16547 hardcode_libdir_separator_F77=:
16548 hardcode_shlibpath_var_F77=no
16549 ;;
16550
16551 openbsd*)
16552 if test -f /usr/libexec/ld.so; then
16553 hardcode_direct_F77=yes
16554 hardcode_shlibpath_var_F77=no
16555 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16556 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16557 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16558 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16559 export_dynamic_flag_spec_F77='${wl}-E'
16560 else
16561 case $host_os in
16562 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16563 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16564 hardcode_libdir_flag_spec_F77='-R$libdir'
16565 ;;
16566 *)
16567 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16568 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16569 ;;
16570 esac
16571 fi
16572 else
16573 ld_shlibs_F77=no
16574 fi
16575 ;;
16576
16577 os2*)
16578 hardcode_libdir_flag_spec_F77='-L$libdir'
16579 hardcode_minus_L_F77=yes
16580 allow_undefined_flag_F77=unsupported
16581 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'
16582 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16583 ;;
16584
16585 osf3*)
16586 if test "$GCC" = yes; then
16587 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16588 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'
16589 else
16590 allow_undefined_flag_F77=' -expect_unresolved \*'
16591 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'
16592 fi
16593 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16594 hardcode_libdir_separator_F77=:
16595 ;;
16596
16597 osf4* | osf5*) # as osf3* with the addition of -msym flag
16598 if test "$GCC" = yes; then
16599 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16600 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'
16601 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16602 else
16603 allow_undefined_flag_F77=' -expect_unresolved \*'
16604 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'
16605 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~
16606 $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'
16607
16608 # Both c and cxx compiler support -rpath directly
16609 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16610 fi
16611 hardcode_libdir_separator_F77=:
16612 ;;
16613
16614 solaris*)
16615 no_undefined_flag_F77=' -z text'
16616 if test "$GCC" = yes; then
16617 wlarc='${wl}'
16618 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16619 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16620 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16621 else
16622 wlarc=''
16623 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16624 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16625 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16626 fi
16627 hardcode_libdir_flag_spec_F77='-R$libdir'
16628 hardcode_shlibpath_var_F77=no
16629 case $host_os in
16630 solaris2.[0-5] | solaris2.[0-5].*) ;;
16631 *)
16632 # The compiler driver will combine and reorder linker options,
16633 # but understands `-z linker_flag'. GCC discards it without `$wl',
16634 # but is careful enough not to reorder.
16635 # Supported since Solaris 2.6 (maybe 2.5.1?)
16636 if test "$GCC" = yes; then
16637 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16638 else
16639 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16640 fi
16641 ;;
16642 esac
16643 link_all_deplibs_F77=yes
16644 ;;
16645
16646 sunos4*)
16647 if test "x$host_vendor" = xsequent; then
16648 # Use $CC to link under sequent, because it throws in some extra .o
16649 # files that make .init and .fini sections work.
16650 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16651 else
16652 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16653 fi
16654 hardcode_libdir_flag_spec_F77='-L$libdir'
16655 hardcode_direct_F77=yes
16656 hardcode_minus_L_F77=yes
16657 hardcode_shlibpath_var_F77=no
16658 ;;
16659
16660 sysv4)
16661 case $host_vendor in
16662 sni)
16663 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16664 hardcode_direct_F77=yes # is this really true???
16665 ;;
16666 siemens)
16667 ## LD is ld it makes a PLAMLIB
16668 ## CC just makes a GrossModule.
16669 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16670 reload_cmds_F77='$CC -r -o $output$reload_objs'
16671 hardcode_direct_F77=no
16672 ;;
16673 motorola)
16674 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16675 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16676 ;;
16677 esac
16678 runpath_var='LD_RUN_PATH'
16679 hardcode_shlibpath_var_F77=no
16680 ;;
16681
16682 sysv4.3*)
16683 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16684 hardcode_shlibpath_var_F77=no
16685 export_dynamic_flag_spec_F77='-Bexport'
16686 ;;
16687
16688 sysv4*MP*)
16689 if test -d /usr/nec; then
16690 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16691 hardcode_shlibpath_var_F77=no
16692 runpath_var=LD_RUN_PATH
16693 hardcode_runpath_var=yes
16694 ld_shlibs_F77=yes
16695 fi
16696 ;;
16697
16698 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16699 no_undefined_flag_F77='${wl}-z,text'
16700 archive_cmds_need_lc_F77=no
16701 hardcode_shlibpath_var_F77=no
16702 runpath_var='LD_RUN_PATH'
16703
16704 if test "$GCC" = yes; then
16705 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16706 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16707 else
16708 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16709 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16710 fi
16711 ;;
16712
16713 sysv5* | sco3.2v5* | sco5v6*)
16714 # Note: We can NOT use -z defs as we might desire, because we do not
16715 # link with -lc, and that would cause any symbols used from libc to
16716 # always be unresolved, which means just about no library would
16717 # ever link correctly. If we're not using GNU ld we use -z text
16718 # though, which does catch some bad symbols but isn't as heavy-handed
16719 # as -z defs.
16720 no_undefined_flag_F77='${wl}-z,text'
16721 allow_undefined_flag_F77='${wl}-z,nodefs'
16722 archive_cmds_need_lc_F77=no
16723 hardcode_shlibpath_var_F77=no
16724 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16725 hardcode_libdir_separator_F77=':'
16726 link_all_deplibs_F77=yes
16727 export_dynamic_flag_spec_F77='${wl}-Bexport'
16728 runpath_var='LD_RUN_PATH'
16729
16730 if test "$GCC" = yes; then
16731 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16732 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16733 else
16734 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16735 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16736 fi
16737 ;;
16738
16739 uts4*)
16740 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16741 hardcode_libdir_flag_spec_F77='-L$libdir'
16742 hardcode_shlibpath_var_F77=no
16743 ;;
16744
16745 *)
16746 ld_shlibs_F77=no
16747 ;;
16748 esac
16749 fi
16750
16751{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16752echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16753test "$ld_shlibs_F77" = no && can_build_shared=no
16754
16755#
16756# Do we need to explicitly link libc?
16757#
16758case "x$archive_cmds_need_lc_F77" in
16759x|xyes)
16760 # Assume -lc should be added
16761 archive_cmds_need_lc_F77=yes
16762
16763 if test "$enable_shared" = yes && test "$GCC" = yes; then
16764 case $archive_cmds_F77 in
16765 *'~'*)
16766 # FIXME: we may have to deal with multi-command sequences.
16767 ;;
16768 '$CC '*)
16769 # Test whether the compiler implicitly links with -lc since on some
16770 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16771 # to ld, don't add -lc before -lgcc.
16772 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16773echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16774 $rm conftest*
16775 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16776
16777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16778 (eval $ac_compile) 2>&5
16779 ac_status=$?
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); } 2>conftest.err; then
16782 soname=conftest
16783 lib=conftest
16784 libobjs=conftest.$ac_objext
16785 deplibs=
16786 wl=$lt_prog_compiler_wl_F77
16787 pic_flag=$lt_prog_compiler_pic_F77
16788 compiler_flags=-v
16789 linker_flags=-v
16790 verstring=
16791 output_objdir=.
16792 libname=conftest
16793 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16794 allow_undefined_flag_F77=
16795 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16796 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16797 ac_status=$?
16798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); }
16800 then
16801 archive_cmds_need_lc_F77=no
16802 else
16803 archive_cmds_need_lc_F77=yes
16804 fi
16805 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16806 else
16807 cat conftest.err 1>&5
16808 fi
16809 $rm conftest*
16810 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16811echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16812 ;;
16813 esac
16814 fi
16815 ;;
16816esac
16817
16818{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16819echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16820library_names_spec=
16821libname_spec='lib$name'
16822soname_spec=
16823shrext_cmds=".so"
16824postinstall_cmds=
16825postuninstall_cmds=
16826finish_cmds=
16827finish_eval=
16828shlibpath_var=
16829shlibpath_overrides_runpath=unknown
16830version_type=none
16831dynamic_linker="$host_os ld.so"
16832sys_lib_dlsearch_path_spec="/lib /usr/lib"
16833
16834need_lib_prefix=unknown
16835hardcode_into_libs=no
16836
16837# when you set need_version to no, make sure it does not cause -set_version
16838# flags to be left without arguments
16839need_version=unknown
16840
16841case $host_os in
16842aix3*)
16843 version_type=linux
16844 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16845 shlibpath_var=LIBPATH
16846
16847 # AIX 3 has no versioning support, so we append a major version to the name.
16848 soname_spec='${libname}${release}${shared_ext}$major'
16849 ;;
16850
56efe974 16851aix[4-9]*)
b57f37fb
WP
16852 version_type=linux
16853 need_lib_prefix=no
16854 need_version=no
16855 hardcode_into_libs=yes
16856 if test "$host_cpu" = ia64; then
16857 # AIX 5 supports IA64
16858 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16859 shlibpath_var=LD_LIBRARY_PATH
16860 else
16861 # With GCC up to 2.95.x, collect2 would create an import file
16862 # for dependence libraries. The import file would start with
16863 # the line `#! .'. This would cause the generated library to
16864 # depend on `.', always an invalid library. This was fixed in
16865 # development snapshots of GCC prior to 3.0.
16866 case $host_os in
16867 aix4 | aix4.[01] | aix4.[01].*)
16868 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16869 echo ' yes '
16870 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16871 :
16872 else
16873 can_build_shared=no
16874 fi
16875 ;;
16876 esac
16877 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16878 # soname into executable. Probably we can add versioning support to
16879 # collect2, so additional links can be useful in future.
16880 if test "$aix_use_runtimelinking" = yes; then
16881 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16882 # instead of lib<name>.a to let people know that these are not
16883 # typical AIX shared libraries.
16884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16885 else
16886 # We preserve .a as extension for shared libraries through AIX4.2
16887 # and later when we are not doing run time linking.
16888 library_names_spec='${libname}${release}.a $libname.a'
16889 soname_spec='${libname}${release}${shared_ext}$major'
16890 fi
16891 shlibpath_var=LIBPATH
16892 fi
16893 ;;
16894
16895amigaos*)
16896 library_names_spec='$libname.ixlibrary $libname.a'
16897 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16898 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'
16899 ;;
16900
16901beos*)
16902 library_names_spec='${libname}${shared_ext}'
16903 dynamic_linker="$host_os ld.so"
16904 shlibpath_var=LIBRARY_PATH
16905 ;;
16906
16907bsdi[45]*)
16908 version_type=linux
16909 need_version=no
16910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16911 soname_spec='${libname}${release}${shared_ext}$major'
16912 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16913 shlibpath_var=LD_LIBRARY_PATH
16914 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16915 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16916 # the default ld.so.conf also contains /usr/contrib/lib and
16917 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16918 # libtool to hard-code these into programs
16919 ;;
16920
16921cygwin* | mingw* | pw32*)
16922 version_type=windows
16923 shrext_cmds=".dll"
16924 need_version=no
16925 need_lib_prefix=no
16926
16927 case $GCC,$host_os in
16928 yes,cygwin* | yes,mingw* | yes,pw32*)
16929 library_names_spec='$libname.dll.a'
16930 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16931 postinstall_cmds='base_file=`basename \${file}`~
16932 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16933 dldir=$destdir/`dirname \$dlpath`~
16934 test -d \$dldir || mkdir -p \$dldir~
16935 $install_prog $dir/$dlname \$dldir/$dlname~
16936 chmod a+x \$dldir/$dlname'
16937 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16938 dlpath=$dir/\$dldll~
16939 $rm \$dlpath'
16940 shlibpath_overrides_runpath=yes
16941
16942 case $host_os in
16943 cygwin*)
16944 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16945 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16946 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16947 ;;
16948 mingw*)
16949 # MinGW DLLs use traditional 'lib' prefix
16950 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16951 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16952 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16953 # It is most probably a Windows format PATH printed by
16954 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16955 # path with ; separators, and with drive letters. We can handle the
16956 # drive letters (cygwin fileutils understands them), so leave them,
16957 # especially as we might pass files found there to a mingw objdump,
16958 # which wouldn't understand a cygwinified path. Ahh.
16959 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16960 else
16961 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16962 fi
16963 ;;
16964 pw32*)
16965 # pw32 DLLs use 'pw' prefix rather than 'lib'
16966 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16967 ;;
16968 esac
16969 ;;
16970
16971 *)
16972 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16973 ;;
16974 esac
16975 dynamic_linker='Win32 ld.exe'
16976 # FIXME: first we should search . and the directory the executable is in
16977 shlibpath_var=PATH
16978 ;;
16979
16980darwin* | rhapsody*)
16981 dynamic_linker="$host_os dyld"
16982 version_type=darwin
16983 need_lib_prefix=no
16984 need_version=no
16985 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16986 soname_spec='${libname}${release}${major}$shared_ext'
16987 shlibpath_overrides_runpath=yes
16988 shlibpath_var=DYLD_LIBRARY_PATH
16989 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16990
16991 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16992 ;;
16993
16994dgux*)
16995 version_type=linux
16996 need_lib_prefix=no
16997 need_version=no
16998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16999 soname_spec='${libname}${release}${shared_ext}$major'
17000 shlibpath_var=LD_LIBRARY_PATH
17001 ;;
17002
17003freebsd1*)
17004 dynamic_linker=no
17005 ;;
17006
17007freebsd* | dragonfly*)
17008 # DragonFly does not have aout. When/if they implement a new
17009 # versioning mechanism, adjust this.
17010 if test -x /usr/bin/objformat; then
17011 objformat=`/usr/bin/objformat`
17012 else
17013 case $host_os in
17014 freebsd[123]*) objformat=aout ;;
17015 *) objformat=elf ;;
17016 esac
17017 fi
17018 version_type=freebsd-$objformat
17019 case $version_type in
17020 freebsd-elf*)
17021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17022 need_version=no
17023 need_lib_prefix=no
17024 ;;
17025 freebsd-*)
17026 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17027 need_version=yes
17028 ;;
17029 esac
17030 shlibpath_var=LD_LIBRARY_PATH
17031 case $host_os in
17032 freebsd2*)
17033 shlibpath_overrides_runpath=yes
17034 ;;
17035 freebsd3.[01]* | freebsdelf3.[01]*)
17036 shlibpath_overrides_runpath=yes
17037 hardcode_into_libs=yes
17038 ;;
17039 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17040 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17041 shlibpath_overrides_runpath=no
17042 hardcode_into_libs=yes
17043 ;;
17044 *) # from 4.6 on, and DragonFly
17045 shlibpath_overrides_runpath=yes
17046 hardcode_into_libs=yes
17047 ;;
17048 esac
17049 ;;
17050
17051gnu*)
17052 version_type=linux
17053 need_lib_prefix=no
17054 need_version=no
17055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17056 soname_spec='${libname}${release}${shared_ext}$major'
17057 shlibpath_var=LD_LIBRARY_PATH
17058 hardcode_into_libs=yes
17059 ;;
17060
17061hpux9* | hpux10* | hpux11*)
17062 # Give a soname corresponding to the major version so that dld.sl refuses to
17063 # link against other versions.
17064 version_type=sunos
17065 need_lib_prefix=no
17066 need_version=no
17067 case $host_cpu in
17068 ia64*)
17069 shrext_cmds='.so'
17070 hardcode_into_libs=yes
17071 dynamic_linker="$host_os dld.so"
17072 shlibpath_var=LD_LIBRARY_PATH
17073 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17075 soname_spec='${libname}${release}${shared_ext}$major'
17076 if test "X$HPUX_IA64_MODE" = X32; then
17077 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17078 else
17079 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17080 fi
17081 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17082 ;;
17083 hppa*64*)
17084 shrext_cmds='.sl'
17085 hardcode_into_libs=yes
17086 dynamic_linker="$host_os dld.sl"
17087 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17088 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17090 soname_spec='${libname}${release}${shared_ext}$major'
17091 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17092 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17093 ;;
17094 *)
17095 shrext_cmds='.sl'
17096 dynamic_linker="$host_os dld.sl"
17097 shlibpath_var=SHLIB_PATH
17098 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17100 soname_spec='${libname}${release}${shared_ext}$major'
17101 ;;
17102 esac
17103 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17104 postinstall_cmds='chmod 555 $lib'
17105 ;;
17106
17107interix[3-9]*)
17108 version_type=linux
17109 need_lib_prefix=no
17110 need_version=no
17111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17112 soname_spec='${libname}${release}${shared_ext}$major'
17113 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17114 shlibpath_var=LD_LIBRARY_PATH
17115 shlibpath_overrides_runpath=no
17116 hardcode_into_libs=yes
17117 ;;
17118
17119irix5* | irix6* | nonstopux*)
17120 case $host_os in
17121 nonstopux*) version_type=nonstopux ;;
17122 *)
17123 if test "$lt_cv_prog_gnu_ld" = yes; then
17124 version_type=linux
17125 else
17126 version_type=irix
17127 fi ;;
17128 esac
17129 need_lib_prefix=no
17130 need_version=no
17131 soname_spec='${libname}${release}${shared_ext}$major'
17132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17133 case $host_os in
17134 irix5* | nonstopux*)
17135 libsuff= shlibsuff=
17136 ;;
17137 *)
17138 case $LD in # libtool.m4 will add one of these switches to LD
17139 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17140 libsuff= shlibsuff= libmagic=32-bit;;
17141 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17142 libsuff=32 shlibsuff=N32 libmagic=N32;;
17143 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17144 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17145 *) libsuff= shlibsuff= libmagic=never-match;;
17146 esac
17147 ;;
17148 esac
17149 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17150 shlibpath_overrides_runpath=no
17151 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17152 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17153 hardcode_into_libs=yes
17154 ;;
17155
17156# No shared lib support for Linux oldld, aout, or coff.
17157linux*oldld* | linux*aout* | linux*coff*)
17158 dynamic_linker=no
17159 ;;
17160
17161# This must be Linux ELF.
17162linux* | k*bsd*-gnu)
17163 version_type=linux
17164 need_lib_prefix=no
17165 need_version=no
17166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17167 soname_spec='${libname}${release}${shared_ext}$major'
17168 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17169 shlibpath_var=LD_LIBRARY_PATH
17170 shlibpath_overrides_runpath=no
17171 # This implies no fast_install, which is unacceptable.
17172 # Some rework will be needed to allow for fast_install
17173 # before this can be enabled.
17174 hardcode_into_libs=yes
17175
17176 # Append ld.so.conf contents to the search path
17177 if test -f /etc/ld.so.conf; then
17178 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' ' '`
17179 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17180 fi
17181
17182 # We used to test for /lib/ld.so.1 and disable shared libraries on
17183 # powerpc, because MkLinux only supported shared libraries with the
17184 # GNU dynamic linker. Since this was broken with cross compilers,
17185 # most powerpc-linux boxes support dynamic linking these days and
17186 # people can always --disable-shared, the test was removed, and we
17187 # assume the GNU/Linux dynamic linker is in use.
17188 dynamic_linker='GNU/Linux ld.so'
17189 ;;
17190
17191netbsdelf*-gnu)
17192 version_type=linux
17193 need_lib_prefix=no
17194 need_version=no
17195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17196 soname_spec='${libname}${release}${shared_ext}$major'
17197 shlibpath_var=LD_LIBRARY_PATH
17198 shlibpath_overrides_runpath=no
17199 hardcode_into_libs=yes
17200 dynamic_linker='NetBSD ld.elf_so'
17201 ;;
17202
17203netbsd*)
17204 version_type=sunos
17205 need_lib_prefix=no
17206 need_version=no
17207 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17210 dynamic_linker='NetBSD (a.out) ld.so'
17211 else
17212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17213 soname_spec='${libname}${release}${shared_ext}$major'
17214 dynamic_linker='NetBSD ld.elf_so'
17215 fi
17216 shlibpath_var=LD_LIBRARY_PATH
17217 shlibpath_overrides_runpath=yes
17218 hardcode_into_libs=yes
17219 ;;
17220
17221newsos6)
17222 version_type=linux
17223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17224 shlibpath_var=LD_LIBRARY_PATH
17225 shlibpath_overrides_runpath=yes
17226 ;;
17227
17228nto-qnx*)
17229 version_type=linux
17230 need_lib_prefix=no
17231 need_version=no
17232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17233 soname_spec='${libname}${release}${shared_ext}$major'
17234 shlibpath_var=LD_LIBRARY_PATH
17235 shlibpath_overrides_runpath=yes
17236 ;;
17237
17238openbsd*)
17239 version_type=sunos
17240 sys_lib_dlsearch_path_spec="/usr/lib"
17241 need_lib_prefix=no
17242 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17243 case $host_os in
17244 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17245 *) need_version=no ;;
17246 esac
17247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17248 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17249 shlibpath_var=LD_LIBRARY_PATH
17250 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17251 case $host_os in
17252 openbsd2.[89] | openbsd2.[89].*)
17253 shlibpath_overrides_runpath=no
17254 ;;
17255 *)
17256 shlibpath_overrides_runpath=yes
17257 ;;
17258 esac
17259 else
17260 shlibpath_overrides_runpath=yes
17261 fi
17262 ;;
17263
17264os2*)
17265 libname_spec='$name'
17266 shrext_cmds=".dll"
17267 need_lib_prefix=no
17268 library_names_spec='$libname${shared_ext} $libname.a'
17269 dynamic_linker='OS/2 ld.exe'
17270 shlibpath_var=LIBPATH
17271 ;;
17272
17273osf3* | osf4* | osf5*)
17274 version_type=osf
17275 need_lib_prefix=no
17276 need_version=no
17277 soname_spec='${libname}${release}${shared_ext}$major'
17278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17279 shlibpath_var=LD_LIBRARY_PATH
17280 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17281 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17282 ;;
17283
17284rdos*)
17285 dynamic_linker=no
17286 ;;
17287
17288solaris*)
17289 version_type=linux
17290 need_lib_prefix=no
17291 need_version=no
17292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17293 soname_spec='${libname}${release}${shared_ext}$major'
17294 shlibpath_var=LD_LIBRARY_PATH
17295 shlibpath_overrides_runpath=yes
17296 hardcode_into_libs=yes
17297 # ldd complains unless libraries are executable
17298 postinstall_cmds='chmod +x $lib'
17299 ;;
17300
17301sunos4*)
17302 version_type=sunos
17303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17304 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17305 shlibpath_var=LD_LIBRARY_PATH
17306 shlibpath_overrides_runpath=yes
17307 if test "$with_gnu_ld" = yes; then
17308 need_lib_prefix=no
17309 fi
17310 need_version=yes
17311 ;;
17312
17313sysv4 | sysv4.3*)
17314 version_type=linux
17315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17316 soname_spec='${libname}${release}${shared_ext}$major'
17317 shlibpath_var=LD_LIBRARY_PATH
17318 case $host_vendor in
17319 sni)
17320 shlibpath_overrides_runpath=no
17321 need_lib_prefix=no
17322 export_dynamic_flag_spec='${wl}-Blargedynsym'
17323 runpath_var=LD_RUN_PATH
17324 ;;
17325 siemens)
17326 need_lib_prefix=no
17327 ;;
17328 motorola)
17329 need_lib_prefix=no
17330 need_version=no
17331 shlibpath_overrides_runpath=no
17332 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17333 ;;
17334 esac
17335 ;;
17336
17337sysv4*MP*)
17338 if test -d /usr/nec ;then
17339 version_type=linux
17340 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17341 soname_spec='$libname${shared_ext}.$major'
17342 shlibpath_var=LD_LIBRARY_PATH
17343 fi
17344 ;;
17345
17346sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17347 version_type=freebsd-elf
17348 need_lib_prefix=no
17349 need_version=no
17350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17351 soname_spec='${libname}${release}${shared_ext}$major'
17352 shlibpath_var=LD_LIBRARY_PATH
17353 hardcode_into_libs=yes
17354 if test "$with_gnu_ld" = yes; then
17355 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17356 shlibpath_overrides_runpath=no
17357 else
17358 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17359 shlibpath_overrides_runpath=yes
17360 case $host_os in
17361 sco3.2v5*)
17362 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17363 ;;
17364 esac
17365 fi
17366 sys_lib_dlsearch_path_spec='/usr/lib'
17367 ;;
17368
17369uts4*)
17370 version_type=linux
17371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17372 soname_spec='${libname}${release}${shared_ext}$major'
17373 shlibpath_var=LD_LIBRARY_PATH
17374 ;;
17375
17376*)
17377 dynamic_linker=no
17378 ;;
17379esac
17380{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17381echo "${ECHO_T}$dynamic_linker" >&6; }
17382test "$dynamic_linker" = no && can_build_shared=no
17383
56efe974
WP
17384if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17385 echo $ECHO_N "(cached) $ECHO_C" >&6
17386else
17387 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
17388fi
17389
17390sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17391if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17392 echo $ECHO_N "(cached) $ECHO_C" >&6
17393else
17394 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
17395fi
17396
17397sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17398
b57f37fb
WP
17399variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17400if test "$GCC" = yes; then
17401 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17402fi
17403
17404{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17405echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17406hardcode_action_F77=
17407if test -n "$hardcode_libdir_flag_spec_F77" || \
17408 test -n "$runpath_var_F77" || \
17409 test "X$hardcode_automatic_F77" = "Xyes" ; then
17410
17411 # We can hardcode non-existant directories.
17412 if test "$hardcode_direct_F77" != no &&
17413 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17414 # have to relink, otherwise we might link with an installed library
17415 # when we should be linking with a yet-to-be-installed one
17416 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17417 test "$hardcode_minus_L_F77" != no; then
17418 # Linking always hardcodes the temporary library directory.
17419 hardcode_action_F77=relink
17420 else
17421 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17422 hardcode_action_F77=immediate
17423 fi
17424else
17425 # We cannot hardcode anything, or else we can only hardcode existing
17426 # directories.
17427 hardcode_action_F77=unsupported
17428fi
17429{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17430echo "${ECHO_T}$hardcode_action_F77" >&6; }
17431
17432if test "$hardcode_action_F77" = relink; then
17433 # Fast installation is not supported
17434 enable_fast_install=no
17435elif test "$shlibpath_overrides_runpath" = yes ||
17436 test "$enable_shared" = no; then
17437 # Fast installation is not necessary
17438 enable_fast_install=needless
17439fi
17440
17441
17442# The else clause should only fire when bootstrapping the
17443# libtool distribution, otherwise you forgot to ship ltmain.sh
17444# with your package, and you will get complaints that there are
17445# no rules to generate ltmain.sh.
17446if test -f "$ltmain"; then
17447 # See if we are running on zsh, and set the options which allow our commands through
17448 # without removal of \ escapes.
17449 if test -n "${ZSH_VERSION+set}" ; then
17450 setopt NO_GLOB_SUBST
17451 fi
17452 # Now quote all the things that may contain metacharacters while being
17453 # careful not to overquote the AC_SUBSTed values. We take copies of the
17454 # variables and quote the copies for generation of the libtool script.
17455 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17456 SED SHELL STRIP \
17457 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17458 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17459 deplibs_check_method reload_flag reload_cmds need_locks \
17460 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17461 lt_cv_sys_global_symbol_to_c_name_address \
17462 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17463 old_postinstall_cmds old_postuninstall_cmds \
17464 compiler_F77 \
17465 CC_F77 \
17466 LD_F77 \
17467 lt_prog_compiler_wl_F77 \
17468 lt_prog_compiler_pic_F77 \
17469 lt_prog_compiler_static_F77 \
17470 lt_prog_compiler_no_builtin_flag_F77 \
17471 export_dynamic_flag_spec_F77 \
17472 thread_safe_flag_spec_F77 \
17473 whole_archive_flag_spec_F77 \
17474 enable_shared_with_static_runtimes_F77 \
17475 old_archive_cmds_F77 \
17476 old_archive_from_new_cmds_F77 \
17477 predep_objects_F77 \
17478 postdep_objects_F77 \
17479 predeps_F77 \
17480 postdeps_F77 \
17481 compiler_lib_search_path_F77 \
56efe974 17482 compiler_lib_search_dirs_F77 \
b57f37fb
WP
17483 archive_cmds_F77 \
17484 archive_expsym_cmds_F77 \
17485 postinstall_cmds_F77 \
17486 postuninstall_cmds_F77 \
17487 old_archive_from_expsyms_cmds_F77 \
17488 allow_undefined_flag_F77 \
17489 no_undefined_flag_F77 \
17490 export_symbols_cmds_F77 \
17491 hardcode_libdir_flag_spec_F77 \
17492 hardcode_libdir_flag_spec_ld_F77 \
17493 hardcode_libdir_separator_F77 \
17494 hardcode_automatic_F77 \
17495 module_cmds_F77 \
17496 module_expsym_cmds_F77 \
17497 lt_cv_prog_compiler_c_o_F77 \
17498 fix_srcfile_path_F77 \
17499 exclude_expsyms_F77 \
17500 include_expsyms_F77; do
17501
17502 case $var in
17503 old_archive_cmds_F77 | \
17504 old_archive_from_new_cmds_F77 | \
17505 archive_cmds_F77 | \
17506 archive_expsym_cmds_F77 | \
17507 module_cmds_F77 | \
17508 module_expsym_cmds_F77 | \
17509 old_archive_from_expsyms_cmds_F77 | \
17510 export_symbols_cmds_F77 | \
17511 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17512 postinstall_cmds | postuninstall_cmds | \
17513 old_postinstall_cmds | old_postuninstall_cmds | \
17514 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17515 # Double-quote double-evaled strings.
17516 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17517 ;;
17518 *)
17519 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17520 ;;
17521 esac
17522 done
17523
17524 case $lt_echo in
17525 *'\$0 --fallback-echo"')
17526 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17527 ;;
17528 esac
17529
17530cfgfile="$ofile"
17531
17532 cat <<__EOF__ >> "$cfgfile"
17533# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17534
17535# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17536
17537# Shell to use when invoking shell scripts.
17538SHELL=$lt_SHELL
17539
17540# Whether or not to build shared libraries.
17541build_libtool_libs=$enable_shared
17542
17543# Whether or not to build static libraries.
17544build_old_libs=$enable_static
17545
17546# Whether or not to add -lc for building shared libraries.
17547build_libtool_need_lc=$archive_cmds_need_lc_F77
17548
17549# Whether or not to disallow shared libs when runtime libs are static
17550allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17551
17552# Whether or not to optimize for fast installation.
17553fast_install=$enable_fast_install
17554
17555# The host system.
17556host_alias=$host_alias
17557host=$host
17558host_os=$host_os
17559
17560# The build system.
17561build_alias=$build_alias
17562build=$build
17563build_os=$build_os
17564
17565# An echo program that does not interpret backslashes.
17566echo=$lt_echo
17567
17568# The archiver.
17569AR=$lt_AR
17570AR_FLAGS=$lt_AR_FLAGS
17571
17572# A C compiler.
17573LTCC=$lt_LTCC
17574
17575# LTCC compiler flags.
17576LTCFLAGS=$lt_LTCFLAGS
17577
17578# A language-specific compiler.
17579CC=$lt_compiler_F77
17580
17581# Is the compiler the GNU C compiler?
17582with_gcc=$GCC_F77
17583
17584# An ERE matcher.
17585EGREP=$lt_EGREP
17586
17587# The linker used to build libraries.
17588LD=$lt_LD_F77
17589
17590# Whether we need hard or soft links.
17591LN_S=$lt_LN_S
17592
17593# A BSD-compatible nm program.
17594NM=$lt_NM
17595
17596# A symbol stripping program
17597STRIP=$lt_STRIP
17598
17599# Used to examine libraries when file_magic_cmd begins "file"
17600MAGIC_CMD=$MAGIC_CMD
17601
17602# Used on cygwin: DLL creation program.
17603DLLTOOL="$DLLTOOL"
17604
17605# Used on cygwin: object dumper.
17606OBJDUMP="$OBJDUMP"
17607
17608# Used on cygwin: assembler.
17609AS="$AS"
17610
17611# The name of the directory that contains temporary libtool files.
17612objdir=$objdir
17613
17614# How to create reloadable object files.
17615reload_flag=$lt_reload_flag
17616reload_cmds=$lt_reload_cmds
17617
17618# How to pass a linker flag through the compiler.
17619wl=$lt_lt_prog_compiler_wl_F77
17620
17621# Object file suffix (normally "o").
17622objext="$ac_objext"
17623
17624# Old archive suffix (normally "a").
17625libext="$libext"
17626
17627# Shared library suffix (normally ".so").
17628shrext_cmds='$shrext_cmds'
17629
17630# Executable file suffix (normally "").
17631exeext="$exeext"
17632
17633# Additional compiler flags for building library objects.
17634pic_flag=$lt_lt_prog_compiler_pic_F77
17635pic_mode=$pic_mode
17636
17637# What is the maximum length of a command?
17638max_cmd_len=$lt_cv_sys_max_cmd_len
17639
17640# Does compiler simultaneously support -c and -o options?
17641compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17642
17643# Must we lock files when doing compilation?
17644need_locks=$lt_need_locks
17645
17646# Do we need the lib prefix for modules?
17647need_lib_prefix=$need_lib_prefix
17648
17649# Do we need a version for libraries?
17650need_version=$need_version
17651
17652# Whether dlopen is supported.
17653dlopen_support=$enable_dlopen
17654
17655# Whether dlopen of programs is supported.
17656dlopen_self=$enable_dlopen_self
17657
17658# Whether dlopen of statically linked programs is supported.
17659dlopen_self_static=$enable_dlopen_self_static
17660
17661# Compiler flag to prevent dynamic linking.
17662link_static_flag=$lt_lt_prog_compiler_static_F77
17663
17664# Compiler flag to turn off builtin functions.
17665no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17666
17667# Compiler flag to allow reflexive dlopens.
17668export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17669
17670# Compiler flag to generate shared objects directly from archives.
17671whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17672
17673# Compiler flag to generate thread-safe objects.
17674thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17675
17676# Library versioning type.
17677version_type=$version_type
17678
17679# Format of library name prefix.
17680libname_spec=$lt_libname_spec
17681
17682# List of archive names. First name is the real one, the rest are links.
17683# The last name is the one that the linker finds with -lNAME.
17684library_names_spec=$lt_library_names_spec
17685
17686# The coded name of the library, if different from the real name.
17687soname_spec=$lt_soname_spec
17688
17689# Commands used to build and install an old-style archive.
17690RANLIB=$lt_RANLIB
17691old_archive_cmds=$lt_old_archive_cmds_F77
17692old_postinstall_cmds=$lt_old_postinstall_cmds
17693old_postuninstall_cmds=$lt_old_postuninstall_cmds
17694
17695# Create an old-style archive from a shared archive.
17696old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17697
17698# Create a temporary old-style archive to link instead of a shared archive.
17699old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17700
17701# Commands used to build and install a shared archive.
17702archive_cmds=$lt_archive_cmds_F77
17703archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17704postinstall_cmds=$lt_postinstall_cmds
17705postuninstall_cmds=$lt_postuninstall_cmds
17706
17707# Commands used to build a loadable module (assumed same as above if empty)
17708module_cmds=$lt_module_cmds_F77
17709module_expsym_cmds=$lt_module_expsym_cmds_F77
17710
17711# Commands to strip libraries.
17712old_striplib=$lt_old_striplib
17713striplib=$lt_striplib
17714
17715# Dependencies to place before the objects being linked to create a
17716# shared library.
17717predep_objects=$lt_predep_objects_F77
17718
17719# Dependencies to place after the objects being linked to create a
17720# shared library.
17721postdep_objects=$lt_postdep_objects_F77
17722
17723# Dependencies to place before the objects being linked to create a
17724# shared library.
17725predeps=$lt_predeps_F77
17726
17727# Dependencies to place after the objects being linked to create a
17728# shared library.
17729postdeps=$lt_postdeps_F77
17730
56efe974
WP
17731# The directories searched by this compiler when creating a shared
17732# library
17733compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
17734
b57f37fb
WP
17735# The library search path used internally by the compiler when linking
17736# a shared library.
17737compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17738
17739# Method to check whether dependent libraries are shared objects.
17740deplibs_check_method=$lt_deplibs_check_method
17741
17742# Command to use when deplibs_check_method == file_magic.
17743file_magic_cmd=$lt_file_magic_cmd
17744
17745# Flag that allows shared libraries with undefined symbols to be built.
17746allow_undefined_flag=$lt_allow_undefined_flag_F77
17747
17748# Flag that forces no undefined symbols.
17749no_undefined_flag=$lt_no_undefined_flag_F77
17750
17751# Commands used to finish a libtool library installation in a directory.
17752finish_cmds=$lt_finish_cmds
17753
17754# Same as above, but a single script fragment to be evaled but not shown.
17755finish_eval=$lt_finish_eval
17756
17757# Take the output of nm and produce a listing of raw symbols and C names.
17758global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17759
17760# Transform the output of nm in a proper C declaration
17761global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17762
17763# Transform the output of nm in a C name address pair
17764global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17765
17766# This is the shared library runtime path variable.
17767runpath_var=$runpath_var
17768
17769# This is the shared library path variable.
17770shlibpath_var=$shlibpath_var
17771
17772# Is shlibpath searched before the hard-coded library search path?
17773shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17774
17775# How to hardcode a shared library path into an executable.
17776hardcode_action=$hardcode_action_F77
17777
17778# Whether we should hardcode library paths into libraries.
17779hardcode_into_libs=$hardcode_into_libs
17780
17781# Flag to hardcode \$libdir into a binary during linking.
17782# This must work even if \$libdir does not exist.
17783hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17784
17785# If ld is used when linking, flag to hardcode \$libdir into
17786# a binary during linking. This must work even if \$libdir does
17787# not exist.
17788hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17789
17790# Whether we need a single -rpath flag with a separated argument.
17791hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17792
17793# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17794# resulting binary.
17795hardcode_direct=$hardcode_direct_F77
17796
17797# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17798# resulting binary.
17799hardcode_minus_L=$hardcode_minus_L_F77
17800
17801# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17802# the resulting binary.
17803hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17804
17805# Set to yes if building a shared library automatically hardcodes DIR into the library
17806# and all subsequent libraries and executables linked against it.
17807hardcode_automatic=$hardcode_automatic_F77
17808
17809# Variables whose values should be saved in libtool wrapper scripts and
17810# restored at relink time.
17811variables_saved_for_relink="$variables_saved_for_relink"
17812
17813# Whether libtool must link a program against all its dependency libraries.
17814link_all_deplibs=$link_all_deplibs_F77
17815
17816# Compile-time system search path for libraries
17817sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17818
17819# Run-time system search path for libraries
17820sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17821
17822# Fix the shell variable \$srcfile for the compiler.
17823fix_srcfile_path=$lt_fix_srcfile_path
17824
17825# Set to yes if exported symbols are required.
17826always_export_symbols=$always_export_symbols_F77
17827
17828# The commands to list exported symbols.
17829export_symbols_cmds=$lt_export_symbols_cmds_F77
17830
17831# The commands to extract the exported symbol list from a shared archive.
17832extract_expsyms_cmds=$lt_extract_expsyms_cmds
17833
17834# Symbols that should not be listed in the preloaded symbols.
17835exclude_expsyms=$lt_exclude_expsyms_F77
17836
17837# Symbols that must always be exported.
17838include_expsyms=$lt_include_expsyms_F77
17839
17840# ### END LIBTOOL TAG CONFIG: $tagname
17841
17842__EOF__
17843
17844
17845else
17846 # If there is no Makefile yet, we rely on a make rule to execute
17847 # `config.status --recheck' to rerun these tests and create the
17848 # libtool script then.
17849 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17850 if test -f "$ltmain_in"; then
17851 test -f Makefile && make "$ltmain"
17852 fi
17853fi
17854
17855
17856ac_ext=c
17857ac_cpp='$CPP $CPPFLAGS'
17858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17860ac_compiler_gnu=$ac_cv_c_compiler_gnu
17861
17862CC="$lt_save_CC"
17863
17864 else
17865 tagname=""
17866 fi
17867 ;;
17868
17869 GCJ)
17870 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17871
17872
17873# Source file extension for Java test sources.
17874ac_ext=java
17875
17876# Object file extension for compiled Java test sources.
17877objext=o
17878objext_GCJ=$objext
17879
17880# Code to be used in simple compile tests
17881lt_simple_compile_test_code="class foo {}"
17882
17883# Code to be used in simple link tests
17884lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17885
17886# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17887
17888# If no C compiler was specified, use CC.
17889LTCC=${LTCC-"$CC"}
17890
17891# If no C compiler flags were specified, use CFLAGS.
17892LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17893
17894# Allow CC to be a program name with arguments.
17895compiler=$CC
17896
17897
17898# save warnings/boilerplate of simple test code
17899ac_outfile=conftest.$ac_objext
17900echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17901eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17902_lt_compiler_boilerplate=`cat conftest.err`
17903$rm conftest*
17904
17905ac_outfile=conftest.$ac_objext
17906echo "$lt_simple_link_test_code" >conftest.$ac_ext
17907eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17908_lt_linker_boilerplate=`cat conftest.err`
56efe974 17909$rm -r conftest*
b57f37fb
WP
17910
17911
17912# Allow CC to be a program name with arguments.
17913lt_save_CC="$CC"
17914CC=${GCJ-"gcj"}
17915compiler=$CC
17916compiler_GCJ=$CC
17917for cc_temp in $compiler""; do
17918 case $cc_temp in
17919 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17920 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17921 \-*) ;;
17922 *) break;;
17923 esac
17924done
17925cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17926
17927
17928# GCJ did not exist at the time GCC didn't implicitly link libc in.
17929archive_cmds_need_lc_GCJ=no
17930
17931old_archive_cmds_GCJ=$old_archive_cmds
17932
17933
17934lt_prog_compiler_no_builtin_flag_GCJ=
17935
17936if test "$GCC" = yes; then
17937 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17938
17939
17940{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17941echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17942if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17943 echo $ECHO_N "(cached) $ECHO_C" >&6
17944else
17945 lt_cv_prog_compiler_rtti_exceptions=no
17946 ac_outfile=conftest.$ac_objext
17947 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17948 lt_compiler_flag="-fno-rtti -fno-exceptions"
17949 # Insert the option either (1) after the last *FLAGS variable, or
17950 # (2) before a word containing "conftest.", or (3) at the end.
17951 # Note that $ac_compile itself does not contain backslashes and begins
17952 # with a dollar sign (not a hyphen), so the echo should work correctly.
17953 # The option is referenced via a variable to avoid confusing sed.
17954 lt_compile=`echo "$ac_compile" | $SED \
17955 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17956 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17957 -e 's:$: $lt_compiler_flag:'`
56efe974 17958 (eval echo "\"\$as_me:17958: $lt_compile\"" >&5)
b57f37fb
WP
17959 (eval "$lt_compile" 2>conftest.err)
17960 ac_status=$?
17961 cat conftest.err >&5
56efe974 17962 echo "$as_me:17962: \$? = $ac_status" >&5
b57f37fb
WP
17963 if (exit $ac_status) && test -s "$ac_outfile"; then
17964 # The compiler can only warn and ignore the option if not recognized
17965 # So say no if there are warnings other than the usual output.
17966 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17967 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17968 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17969 lt_cv_prog_compiler_rtti_exceptions=yes
17970 fi
17971 fi
17972 $rm conftest*
17973
17974fi
17975{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17976echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17977
17978if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17979 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17980else
17981 :
17982fi
17983
17984fi
17985
17986lt_prog_compiler_wl_GCJ=
17987lt_prog_compiler_pic_GCJ=
17988lt_prog_compiler_static_GCJ=
17989
17990{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17991echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17992
17993 if test "$GCC" = yes; then
17994 lt_prog_compiler_wl_GCJ='-Wl,'
17995 lt_prog_compiler_static_GCJ='-static'
17996
17997 case $host_os in
17998 aix*)
17999 # All AIX code is PIC.
18000 if test "$host_cpu" = ia64; then
18001 # AIX 5 now supports IA64 processor
18002 lt_prog_compiler_static_GCJ='-Bstatic'
18003 fi
18004 ;;
18005
18006 amigaos*)
18007 # FIXME: we need at least 68020 code to build shared libraries, but
18008 # adding the `-m68020' flag to GCC prevents building anything better,
18009 # like `-m68040'.
18010 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18011 ;;
18012
18013 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18014 # PIC is the default for these OSes.
18015 ;;
18016
18017 mingw* | cygwin* | pw32* | os2*)
18018 # This hack is so that the source file can tell whether it is being
18019 # built for inclusion in a dll (and should export symbols for example).
18020 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18021 # (--disable-auto-import) libraries
56efe974 18022
b57f37fb
WP
18023 ;;
18024
18025 darwin* | rhapsody*)
18026 # PIC is the default on this platform
18027 # Common symbols not allowed in MH_DYLIB files
18028 lt_prog_compiler_pic_GCJ='-fno-common'
18029 ;;
18030
18031 interix[3-9]*)
18032 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18033 # Instead, we relocate shared libraries at runtime.
18034 ;;
18035
18036 msdosdjgpp*)
18037 # Just because we use GCC doesn't mean we suddenly get shared libraries
18038 # on systems that don't support them.
18039 lt_prog_compiler_can_build_shared_GCJ=no
18040 enable_shared=no
18041 ;;
18042
18043 sysv4*MP*)
18044 if test -d /usr/nec; then
18045 lt_prog_compiler_pic_GCJ=-Kconform_pic
18046 fi
18047 ;;
18048
18049 hpux*)
18050 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18051 # not for PA HP-UX.
18052 case $host_cpu in
18053 hppa*64*|ia64*)
18054 # +Z the default
18055 ;;
18056 *)
18057 lt_prog_compiler_pic_GCJ='-fPIC'
18058 ;;
18059 esac
18060 ;;
18061
18062 *)
18063 lt_prog_compiler_pic_GCJ='-fPIC'
18064 ;;
18065 esac
18066 else
18067 # PORTME Check for flag to pass linker flags through the system compiler.
18068 case $host_os in
18069 aix*)
18070 lt_prog_compiler_wl_GCJ='-Wl,'
18071 if test "$host_cpu" = ia64; then
18072 # AIX 5 now supports IA64 processor
18073 lt_prog_compiler_static_GCJ='-Bstatic'
18074 else
18075 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18076 fi
18077 ;;
18078 darwin*)
18079 # PIC is the default on this platform
18080 # Common symbols not allowed in MH_DYLIB files
18081 case $cc_basename in
18082 xlc*)
18083 lt_prog_compiler_pic_GCJ='-qnocommon'
18084 lt_prog_compiler_wl_GCJ='-Wl,'
18085 ;;
18086 esac
18087 ;;
18088
18089 mingw* | cygwin* | pw32* | os2*)
18090 # This hack is so that the source file can tell whether it is being
18091 # built for inclusion in a dll (and should export symbols for example).
56efe974 18092
b57f37fb
WP
18093 ;;
18094
18095 hpux9* | hpux10* | hpux11*)
18096 lt_prog_compiler_wl_GCJ='-Wl,'
18097 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18098 # not for PA HP-UX.
18099 case $host_cpu in
18100 hppa*64*|ia64*)
18101 # +Z the default
18102 ;;
18103 *)
18104 lt_prog_compiler_pic_GCJ='+Z'
18105 ;;
18106 esac
18107 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18108 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18109 ;;
18110
18111 irix5* | irix6* | nonstopux*)
18112 lt_prog_compiler_wl_GCJ='-Wl,'
18113 # PIC (with -KPIC) is the default.
18114 lt_prog_compiler_static_GCJ='-non_shared'
18115 ;;
18116
18117 newsos6)
18118 lt_prog_compiler_pic_GCJ='-KPIC'
18119 lt_prog_compiler_static_GCJ='-Bstatic'
18120 ;;
18121
18122 linux* | k*bsd*-gnu)
18123 case $cc_basename in
18124 icc* | ecc*)
18125 lt_prog_compiler_wl_GCJ='-Wl,'
18126 lt_prog_compiler_pic_GCJ='-KPIC'
18127 lt_prog_compiler_static_GCJ='-static'
18128 ;;
18129 pgcc* | pgf77* | pgf90* | pgf95*)
18130 # Portland Group compilers (*not* the Pentium gcc compiler,
18131 # which looks to be a dead project)
18132 lt_prog_compiler_wl_GCJ='-Wl,'
18133 lt_prog_compiler_pic_GCJ='-fpic'
18134 lt_prog_compiler_static_GCJ='-Bstatic'
18135 ;;
18136 ccc*)
18137 lt_prog_compiler_wl_GCJ='-Wl,'
18138 # All Alpha code is PIC.
18139 lt_prog_compiler_static_GCJ='-non_shared'
18140 ;;
18141 *)
18142 case `$CC -V 2>&1 | sed 5q` in
18143 *Sun\ C*)
18144 # Sun C 5.9
18145 lt_prog_compiler_pic_GCJ='-KPIC'
18146 lt_prog_compiler_static_GCJ='-Bstatic'
18147 lt_prog_compiler_wl_GCJ='-Wl,'
18148 ;;
18149 *Sun\ F*)
18150 # Sun Fortran 8.3 passes all unrecognized flags to the linker
18151 lt_prog_compiler_pic_GCJ='-KPIC'
18152 lt_prog_compiler_static_GCJ='-Bstatic'
18153 lt_prog_compiler_wl_GCJ=''
18154 ;;
18155 esac
18156 ;;
18157 esac
18158 ;;
18159
18160 osf3* | osf4* | osf5*)
18161 lt_prog_compiler_wl_GCJ='-Wl,'
18162 # All OSF/1 code is PIC.
18163 lt_prog_compiler_static_GCJ='-non_shared'
18164 ;;
18165
18166 rdos*)
18167 lt_prog_compiler_static_GCJ='-non_shared'
18168 ;;
18169
18170 solaris*)
18171 lt_prog_compiler_pic_GCJ='-KPIC'
18172 lt_prog_compiler_static_GCJ='-Bstatic'
18173 case $cc_basename in
18174 f77* | f90* | f95*)
18175 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18176 *)
18177 lt_prog_compiler_wl_GCJ='-Wl,';;
18178 esac
18179 ;;
18180
18181 sunos4*)
18182 lt_prog_compiler_wl_GCJ='-Qoption ld '
18183 lt_prog_compiler_pic_GCJ='-PIC'
18184 lt_prog_compiler_static_GCJ='-Bstatic'
18185 ;;
18186
18187 sysv4 | sysv4.2uw2* | sysv4.3*)
18188 lt_prog_compiler_wl_GCJ='-Wl,'
18189 lt_prog_compiler_pic_GCJ='-KPIC'
18190 lt_prog_compiler_static_GCJ='-Bstatic'
18191 ;;
18192
18193 sysv4*MP*)
18194 if test -d /usr/nec ;then
18195 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18196 lt_prog_compiler_static_GCJ='-Bstatic'
18197 fi
18198 ;;
18199
18200 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18201 lt_prog_compiler_wl_GCJ='-Wl,'
18202 lt_prog_compiler_pic_GCJ='-KPIC'
18203 lt_prog_compiler_static_GCJ='-Bstatic'
18204 ;;
18205
18206 unicos*)
18207 lt_prog_compiler_wl_GCJ='-Wl,'
18208 lt_prog_compiler_can_build_shared_GCJ=no
18209 ;;
18210
18211 uts4*)
18212 lt_prog_compiler_pic_GCJ='-pic'
18213 lt_prog_compiler_static_GCJ='-Bstatic'
18214 ;;
18215
18216 *)
18217 lt_prog_compiler_can_build_shared_GCJ=no
18218 ;;
18219 esac
18220 fi
18221
18222{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18223echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18224
18225#
18226# Check to make sure the PIC flag actually works.
18227#
18228if test -n "$lt_prog_compiler_pic_GCJ"; then
18229
18230{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18231echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
56efe974 18232if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
b57f37fb
WP
18233 echo $ECHO_N "(cached) $ECHO_C" >&6
18234else
56efe974 18235 lt_cv_prog_compiler_pic_works_GCJ=no
b57f37fb
WP
18236 ac_outfile=conftest.$ac_objext
18237 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18238 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18239 # Insert the option either (1) after the last *FLAGS variable, or
18240 # (2) before a word containing "conftest.", or (3) at the end.
18241 # Note that $ac_compile itself does not contain backslashes and begins
18242 # with a dollar sign (not a hyphen), so the echo should work correctly.
18243 # The option is referenced via a variable to avoid confusing sed.
18244 lt_compile=`echo "$ac_compile" | $SED \
18245 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18246 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18247 -e 's:$: $lt_compiler_flag:'`
56efe974 18248 (eval echo "\"\$as_me:18248: $lt_compile\"" >&5)
b57f37fb
WP
18249 (eval "$lt_compile" 2>conftest.err)
18250 ac_status=$?
18251 cat conftest.err >&5
56efe974 18252 echo "$as_me:18252: \$? = $ac_status" >&5
b57f37fb
WP
18253 if (exit $ac_status) && test -s "$ac_outfile"; then
18254 # The compiler can only warn and ignore the option if not recognized
18255 # So say no if there are warnings other than the usual output.
18256 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18257 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18258 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
56efe974 18259 lt_cv_prog_compiler_pic_works_GCJ=yes
b57f37fb
WP
18260 fi
18261 fi
18262 $rm conftest*
18263
18264fi
56efe974
WP
18265{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
18266echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
b57f37fb 18267
56efe974 18268if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
b57f37fb
WP
18269 case $lt_prog_compiler_pic_GCJ in
18270 "" | " "*) ;;
18271 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18272 esac
18273else
18274 lt_prog_compiler_pic_GCJ=
18275 lt_prog_compiler_can_build_shared_GCJ=no
18276fi
18277
18278fi
18279case $host_os in
18280 # For platforms which do not support PIC, -DPIC is meaningless:
18281 *djgpp*)
18282 lt_prog_compiler_pic_GCJ=
18283 ;;
18284 *)
18285 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18286 ;;
18287esac
18288
18289#
18290# Check to make sure the static flag actually works.
18291#
18292wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18293{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18294echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
56efe974 18295if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
b57f37fb
WP
18296 echo $ECHO_N "(cached) $ECHO_C" >&6
18297else
56efe974 18298 lt_cv_prog_compiler_static_works_GCJ=no
b57f37fb
WP
18299 save_LDFLAGS="$LDFLAGS"
18300 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18301 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18302 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18303 # The linker can only warn and ignore the option if not recognized
18304 # So say no if there are warnings
18305 if test -s conftest.err; then
18306 # Append any errors to the config.log.
18307 cat conftest.err 1>&5
18308 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18309 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18310 if diff conftest.exp conftest.er2 >/dev/null; then
56efe974 18311 lt_cv_prog_compiler_static_works_GCJ=yes
b57f37fb
WP
18312 fi
18313 else
56efe974 18314 lt_cv_prog_compiler_static_works_GCJ=yes
b57f37fb
WP
18315 fi
18316 fi
56efe974 18317 $rm -r conftest*
b57f37fb
WP
18318 LDFLAGS="$save_LDFLAGS"
18319
18320fi
56efe974
WP
18321{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
18322echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
b57f37fb 18323
56efe974 18324if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
b57f37fb
WP
18325 :
18326else
18327 lt_prog_compiler_static_GCJ=
18328fi
18329
18330
18331{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18332echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18333if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18334 echo $ECHO_N "(cached) $ECHO_C" >&6
18335else
18336 lt_cv_prog_compiler_c_o_GCJ=no
18337 $rm -r conftest 2>/dev/null
18338 mkdir conftest
18339 cd conftest
18340 mkdir out
18341 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18342
18343 lt_compiler_flag="-o out/conftest2.$ac_objext"
18344 # Insert the option either (1) after the last *FLAGS variable, or
18345 # (2) before a word containing "conftest.", or (3) at the end.
18346 # Note that $ac_compile itself does not contain backslashes and begins
18347 # with a dollar sign (not a hyphen), so the echo should work correctly.
18348 lt_compile=`echo "$ac_compile" | $SED \
18349 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18350 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18351 -e 's:$: $lt_compiler_flag:'`
56efe974 18352 (eval echo "\"\$as_me:18352: $lt_compile\"" >&5)
b57f37fb
WP
18353 (eval "$lt_compile" 2>out/conftest.err)
18354 ac_status=$?
18355 cat out/conftest.err >&5
56efe974 18356 echo "$as_me:18356: \$? = $ac_status" >&5
b57f37fb
WP
18357 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18358 then
18359 # The compiler can only warn and ignore the option if not recognized
18360 # So say no if there are warnings
18361 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18362 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18363 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18364 lt_cv_prog_compiler_c_o_GCJ=yes
18365 fi
18366 fi
18367 chmod u+w . 2>&5
18368 $rm conftest*
18369 # SGI C++ compiler will create directory out/ii_files/ for
18370 # template instantiation
18371 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18372 $rm out/* && rmdir out
18373 cd ..
18374 rmdir conftest
18375 $rm conftest*
18376
18377fi
18378{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18379echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18380
18381
18382hard_links="nottested"
18383if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18384 # do not overwrite the value of need_locks provided by the user
18385 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18386echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18387 hard_links=yes
18388 $rm conftest*
18389 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18390 touch conftest.a
18391 ln conftest.a conftest.b 2>&5 || hard_links=no
18392 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18393 { echo "$as_me:$LINENO: result: $hard_links" >&5
18394echo "${ECHO_T}$hard_links" >&6; }
18395 if test "$hard_links" = no; then
18396 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18397echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18398 need_locks=warn
18399 fi
18400else
18401 need_locks=no
18402fi
18403
18404{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18405echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18406
18407 runpath_var=
18408 allow_undefined_flag_GCJ=
18409 enable_shared_with_static_runtimes_GCJ=no
18410 archive_cmds_GCJ=
18411 archive_expsym_cmds_GCJ=
18412 old_archive_From_new_cmds_GCJ=
18413 old_archive_from_expsyms_cmds_GCJ=
18414 export_dynamic_flag_spec_GCJ=
18415 whole_archive_flag_spec_GCJ=
18416 thread_safe_flag_spec_GCJ=
18417 hardcode_libdir_flag_spec_GCJ=
18418 hardcode_libdir_flag_spec_ld_GCJ=
18419 hardcode_libdir_separator_GCJ=
18420 hardcode_direct_GCJ=no
18421 hardcode_minus_L_GCJ=no
18422 hardcode_shlibpath_var_GCJ=unsupported
18423 link_all_deplibs_GCJ=unknown
18424 hardcode_automatic_GCJ=no
18425 module_cmds_GCJ=
18426 module_expsym_cmds_GCJ=
18427 always_export_symbols_GCJ=no
18428 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18429 # include_expsyms should be a list of space-separated symbols to be *always*
18430 # included in the symbol list
18431 include_expsyms_GCJ=
18432 # exclude_expsyms can be an extended regexp of symbols to exclude
18433 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18434 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18435 # as well as any symbol that contains `d'.
56efe974 18436 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
b57f37fb
WP
18437 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18438 # platforms (ab)use it in PIC code, but their linkers get confused if
18439 # the symbol is explicitly referenced. Since portable code cannot
18440 # rely on this symbol name, it's probably fine to never include it in
18441 # preloaded symbol tables.
56efe974 18442 # Exclude shared library initialization/finalization symbols.
b57f37fb
WP
18443 extract_expsyms_cmds=
18444 # Just being paranoid about ensuring that cc_basename is set.
18445 for cc_temp in $compiler""; do
18446 case $cc_temp in
18447 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18448 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18449 \-*) ;;
18450 *) break;;
18451 esac
18452done
18453cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18454
18455 case $host_os in
18456 cygwin* | mingw* | pw32*)
18457 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18458 # When not using gcc, we currently assume that we are using
18459 # Microsoft Visual C++.
18460 if test "$GCC" != yes; then
18461 with_gnu_ld=no
18462 fi
18463 ;;
18464 interix*)
18465 # we just hope/assume this is gcc and not c89 (= MSVC++)
18466 with_gnu_ld=yes
18467 ;;
18468 openbsd*)
18469 with_gnu_ld=no
18470 ;;
18471 esac
18472
18473 ld_shlibs_GCJ=yes
18474 if test "$with_gnu_ld" = yes; then
18475 # If archive_cmds runs LD, not CC, wlarc should be empty
18476 wlarc='${wl}'
18477
18478 # Set some defaults for GNU ld with shared library support. These
18479 # are reset later if shared libraries are not supported. Putting them
18480 # here allows them to be overridden if necessary.
18481 runpath_var=LD_RUN_PATH
18482 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18483 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18484 # ancient GNU ld didn't support --whole-archive et. al.
18485 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18486 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18487 else
18488 whole_archive_flag_spec_GCJ=
18489 fi
18490 supports_anon_versioning=no
18491 case `$LD -v 2>/dev/null` in
18492 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18493 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18494 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18495 *\ 2.11.*) ;; # other 2.11 versions
18496 *) supports_anon_versioning=yes ;;
18497 esac
18498
18499 # See if GNU ld supports shared libraries.
18500 case $host_os in
56efe974 18501 aix[3-9]*)
b57f37fb
WP
18502 # On AIX/PPC, the GNU linker is very broken
18503 if test "$host_cpu" != ia64; then
18504 ld_shlibs_GCJ=no
18505 cat <<EOF 1>&2
18506
18507*** Warning: the GNU linker, at least up to release 2.9.1, is reported
18508*** to be unable to reliably create shared libraries on AIX.
18509*** Therefore, libtool is disabling shared libraries support. If you
18510*** really care for shared libraries, you may want to modify your PATH
18511*** so that a non-GNU linker is found, and then restart.
18512
18513EOF
18514 fi
18515 ;;
18516
18517 amigaos*)
18518 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)'
18519 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18520 hardcode_minus_L_GCJ=yes
18521
18522 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18523 # that the semantics of dynamic libraries on AmigaOS, at least up
18524 # to version 4, is to share data among multiple programs linked
18525 # with the same dynamic library. Since this doesn't match the
18526 # behavior of shared libraries on other platforms, we can't use
18527 # them.
18528 ld_shlibs_GCJ=no
18529 ;;
18530
18531 beos*)
18532 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18533 allow_undefined_flag_GCJ=unsupported
18534 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18535 # support --undefined. This deserves some investigation. FIXME
18536 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18537 else
18538 ld_shlibs_GCJ=no
18539 fi
18540 ;;
18541
18542 cygwin* | mingw* | pw32*)
18543 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18544 # as there is no search path for DLLs.
18545 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18546 allow_undefined_flag_GCJ=unsupported
18547 always_export_symbols_GCJ=no
18548 enable_shared_with_static_runtimes_GCJ=yes
18549 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18550
18551 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18552 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18553 # If the export-symbols file already is a .def file (1st line
18554 # is EXPORTS), use it as is; otherwise, prepend...
18555 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18556 cp $export_symbols $output_objdir/$soname.def;
18557 else
18558 echo EXPORTS > $output_objdir/$soname.def;
18559 cat $export_symbols >> $output_objdir/$soname.def;
18560 fi~
18561 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18562 else
18563 ld_shlibs_GCJ=no
18564 fi
18565 ;;
18566
18567 interix[3-9]*)
18568 hardcode_direct_GCJ=no
18569 hardcode_shlibpath_var_GCJ=no
18570 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18571 export_dynamic_flag_spec_GCJ='${wl}-E'
18572 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18573 # Instead, shared libraries are loaded at an image base (0x10000000 by
18574 # default) and relocated if they conflict, which is a slow very memory
18575 # consuming and fragmenting process. To avoid this, we pick a random,
18576 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18577 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18578 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'
18579 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'
18580 ;;
18581
18582 gnu* | linux* | k*bsd*-gnu)
18583 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18584 tmp_addflag=
18585 case $cc_basename,$host_cpu in
18586 pgcc*) # Portland Group C compiler
18587 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'
18588 tmp_addflag=' $pic_flag'
18589 ;;
18590 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18591 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'
18592 tmp_addflag=' $pic_flag -Mnomain' ;;
18593 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18594 tmp_addflag=' -i_dynamic' ;;
18595 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18596 tmp_addflag=' -i_dynamic -nofor_main' ;;
18597 ifc* | ifort*) # Intel Fortran compiler
18598 tmp_addflag=' -nofor_main' ;;
18599 esac
18600 case `$CC -V 2>&1 | sed 5q` in
18601 *Sun\ C*) # Sun C 5.9
18602 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'
18603 tmp_sharedflag='-G' ;;
18604 *Sun\ F*) # Sun Fortran 8.3
18605 tmp_sharedflag='-G' ;;
18606 *)
18607 tmp_sharedflag='-shared' ;;
18608 esac
18609 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18610
18611 if test $supports_anon_versioning = yes; then
18612 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18613 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18614 $echo "local: *; };" >> $output_objdir/$libname.ver~
18615 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18616 fi
18617 link_all_deplibs_GCJ=no
18618 else
18619 ld_shlibs_GCJ=no
18620 fi
18621 ;;
18622
18623 netbsd* | netbsdelf*-gnu)
18624 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18625 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18626 wlarc=
18627 else
18628 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18629 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18630 fi
18631 ;;
18632
18633 solaris*)
18634 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18635 ld_shlibs_GCJ=no
18636 cat <<EOF 1>&2
18637
18638*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18639*** create shared libraries on Solaris systems. Therefore, libtool
18640*** is disabling shared libraries support. We urge you to upgrade GNU
18641*** binutils to release 2.9.1 or newer. Another option is to modify
18642*** your PATH or compiler configuration so that the native linker is
18643*** used, and then restart.
18644
18645EOF
18646 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18647 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18648 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18649 else
18650 ld_shlibs_GCJ=no
18651 fi
18652 ;;
18653
18654 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18655 case `$LD -v 2>&1` in
18656 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18657 ld_shlibs_GCJ=no
18658 cat <<_LT_EOF 1>&2
18659
18660*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18661*** reliably create shared libraries on SCO systems. Therefore, libtool
18662*** is disabling shared libraries support. We urge you to upgrade GNU
18663*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18664*** your PATH or compiler configuration so that the native linker is
18665*** used, and then restart.
18666
18667_LT_EOF
18668 ;;
18669 *)
18670 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18671 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18672 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18673 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18674 else
18675 ld_shlibs_GCJ=no
18676 fi
18677 ;;
18678 esac
18679 ;;
18680
18681 sunos4*)
18682 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18683 wlarc=
18684 hardcode_direct_GCJ=yes
18685 hardcode_shlibpath_var_GCJ=no
18686 ;;
18687
18688 *)
18689 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18690 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18691 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18692 else
18693 ld_shlibs_GCJ=no
18694 fi
18695 ;;
18696 esac
18697
18698 if test "$ld_shlibs_GCJ" = no; then
18699 runpath_var=
18700 hardcode_libdir_flag_spec_GCJ=
18701 export_dynamic_flag_spec_GCJ=
18702 whole_archive_flag_spec_GCJ=
18703 fi
18704 else
18705 # PORTME fill in a description of your system's linker (not GNU ld)
18706 case $host_os in
18707 aix3*)
18708 allow_undefined_flag_GCJ=unsupported
18709 always_export_symbols_GCJ=yes
18710 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'
18711 # Note: this linker hardcodes the directories in LIBPATH if there
18712 # are no directories specified by -L.
18713 hardcode_minus_L_GCJ=yes
18714 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18715 # Neither direct hardcoding nor static linking is supported with a
18716 # broken collect2.
18717 hardcode_direct_GCJ=unsupported
18718 fi
18719 ;;
18720
56efe974 18721 aix[4-9]*)
b57f37fb
WP
18722 if test "$host_cpu" = ia64; then
18723 # On IA64, the linker does run time linking by default, so we don't
18724 # have to do anything special.
18725 aix_use_runtimelinking=no
18726 exp_sym_flag='-Bexport'
18727 no_entry_flag=""
18728 else
18729 # If we're using GNU nm, then we don't want the "-C" option.
18730 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18731 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18732 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'
18733 else
18734 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'
18735 fi
18736 aix_use_runtimelinking=no
18737
18738 # Test if we are trying to use run time linking or normal
18739 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18740 # need to do runtime linking.
56efe974 18741 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
b57f37fb
WP
18742 for ld_flag in $LDFLAGS; do
18743 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18744 aix_use_runtimelinking=yes
18745 break
18746 fi
18747 done
18748 ;;
18749 esac
18750
18751 exp_sym_flag='-bexport'
18752 no_entry_flag='-bnoentry'
18753 fi
18754
18755 # When large executables or shared objects are built, AIX ld can
18756 # have problems creating the table of contents. If linking a library
18757 # or program results in "error TOC overflow" add -mminimal-toc to
18758 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18759 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18760
18761 archive_cmds_GCJ=''
18762 hardcode_direct_GCJ=yes
18763 hardcode_libdir_separator_GCJ=':'
18764 link_all_deplibs_GCJ=yes
18765
18766 if test "$GCC" = yes; then
18767 case $host_os in aix4.[012]|aix4.[012].*)
18768 # We only want to do this on AIX 4.2 and lower, the check
18769 # below for broken collect2 doesn't work under 4.3+
18770 collect2name=`${CC} -print-prog-name=collect2`
18771 if test -f "$collect2name" && \
18772 strings "$collect2name" | grep resolve_lib_name >/dev/null
18773 then
18774 # We have reworked collect2
18775 :
18776 else
18777 # We have old collect2
18778 hardcode_direct_GCJ=unsupported
18779 # It fails to find uninstalled libraries when the uninstalled
18780 # path is not listed in the libpath. Setting hardcode_minus_L
18781 # to unsupported forces relinking
18782 hardcode_minus_L_GCJ=yes
18783 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18784 hardcode_libdir_separator_GCJ=
18785 fi
18786 ;;
18787 esac
18788 shared_flag='-shared'
18789 if test "$aix_use_runtimelinking" = yes; then
18790 shared_flag="$shared_flag "'${wl}-G'
18791 fi
18792 else
18793 # not using gcc
18794 if test "$host_cpu" = ia64; then
18795 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18796 # chokes on -Wl,-G. The following line is correct:
18797 shared_flag='-G'
18798 else
18799 if test "$aix_use_runtimelinking" = yes; then
18800 shared_flag='${wl}-G'
18801 else
18802 shared_flag='${wl}-bM:SRE'
18803 fi
18804 fi
18805 fi
18806
18807 # It seems that -bexpall does not export symbols beginning with
18808 # underscore (_), so it is better to generate a list of symbols to export.
18809 always_export_symbols_GCJ=yes
18810 if test "$aix_use_runtimelinking" = yes; then
18811 # Warning - without using the other runtime loading flags (-brtl),
18812 # -berok will link without error, but may produce a broken library.
18813 allow_undefined_flag_GCJ='-berok'
18814 # Determine the default libpath from the value encoded in an empty executable.
18815 cat >conftest.$ac_ext <<_ACEOF
18816/* confdefs.h. */
18817_ACEOF
18818cat confdefs.h >>conftest.$ac_ext
18819cat >>conftest.$ac_ext <<_ACEOF
18820/* end confdefs.h. */
18821
18822int
18823main ()
18824{
18825
18826 ;
18827 return 0;
18828}
18829_ACEOF
18830rm -f conftest.$ac_objext conftest$ac_exeext
18831if { (ac_try="$ac_link"
18832case "(($ac_try" in
18833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18834 *) ac_try_echo=$ac_try;;
18835esac
18836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18837 (eval "$ac_link") 2>conftest.er1
18838 ac_status=$?
18839 grep -v '^ *+' conftest.er1 >conftest.err
18840 rm -f conftest.er1
18841 cat conftest.err >&5
18842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); } && {
18844 test -z "$ac_c_werror_flag" ||
18845 test ! -s conftest.err
18846 } && test -s conftest$ac_exeext &&
18847 $as_test_x conftest$ac_exeext; then
18848
18849lt_aix_libpath_sed='
18850 /Import File Strings/,/^$/ {
18851 /^0/ {
18852 s/^0 *\(.*\)$/\1/
18853 p
18854 }
18855 }'
18856aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18857# Check for a 64-bit object if we didn't find anything.
18858if test -z "$aix_libpath"; then
18859 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18860fi
18861else
18862 echo "$as_me: failed program was:" >&5
18863sed 's/^/| /' conftest.$ac_ext >&5
18864
18865
18866fi
18867
18868rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18869 conftest$ac_exeext conftest.$ac_ext
18870if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18871
18872 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18873 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"
18874 else
18875 if test "$host_cpu" = ia64; then
18876 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18877 allow_undefined_flag_GCJ="-z nodefs"
18878 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"
18879 else
18880 # Determine the default libpath from the value encoded in an empty executable.
18881 cat >conftest.$ac_ext <<_ACEOF
18882/* confdefs.h. */
18883_ACEOF
18884cat confdefs.h >>conftest.$ac_ext
18885cat >>conftest.$ac_ext <<_ACEOF
18886/* end confdefs.h. */
18887
18888int
18889main ()
18890{
18891
18892 ;
18893 return 0;
18894}
18895_ACEOF
18896rm -f conftest.$ac_objext conftest$ac_exeext
18897if { (ac_try="$ac_link"
18898case "(($ac_try" in
18899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18900 *) ac_try_echo=$ac_try;;
18901esac
18902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18903 (eval "$ac_link") 2>conftest.er1
18904 ac_status=$?
18905 grep -v '^ *+' conftest.er1 >conftest.err
18906 rm -f conftest.er1
18907 cat conftest.err >&5
18908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909 (exit $ac_status); } && {
18910 test -z "$ac_c_werror_flag" ||
18911 test ! -s conftest.err
18912 } && test -s conftest$ac_exeext &&
18913 $as_test_x conftest$ac_exeext; then
18914
18915lt_aix_libpath_sed='
18916 /Import File Strings/,/^$/ {
18917 /^0/ {
18918 s/^0 *\(.*\)$/\1/
18919 p
18920 }
18921 }'
18922aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18923# Check for a 64-bit object if we didn't find anything.
18924if test -z "$aix_libpath"; then
18925 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18926fi
18927else
18928 echo "$as_me: failed program was:" >&5
18929sed 's/^/| /' conftest.$ac_ext >&5
18930
18931
18932fi
18933
18934rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18935 conftest$ac_exeext conftest.$ac_ext
18936if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18937
18938 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18939 # Warning - without using the other run time loading flags,
18940 # -berok will link without error, but may produce a broken library.
18941 no_undefined_flag_GCJ=' ${wl}-bernotok'
18942 allow_undefined_flag_GCJ=' ${wl}-berok'
18943 # Exported symbols can be pulled into shared objects from archives
18944 whole_archive_flag_spec_GCJ='$convenience'
18945 archive_cmds_need_lc_GCJ=yes
18946 # This is similar to how AIX traditionally builds its shared libraries.
18947 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'
18948 fi
18949 fi
18950 ;;
18951
18952 amigaos*)
18953 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)'
18954 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18955 hardcode_minus_L_GCJ=yes
18956 # see comment about different semantics on the GNU ld section
18957 ld_shlibs_GCJ=no
18958 ;;
18959
18960 bsdi[45]*)
18961 export_dynamic_flag_spec_GCJ=-rdynamic
18962 ;;
18963
18964 cygwin* | mingw* | pw32*)
18965 # When not using gcc, we currently assume that we are using
18966 # Microsoft Visual C++.
18967 # hardcode_libdir_flag_spec is actually meaningless, as there is
18968 # no search path for DLLs.
18969 hardcode_libdir_flag_spec_GCJ=' '
18970 allow_undefined_flag_GCJ=unsupported
18971 # Tell ltmain to make .lib files, not .a files.
18972 libext=lib
18973 # Tell ltmain to make .dll files, not .so files.
18974 shrext_cmds=".dll"
18975 # FIXME: Setting linknames here is a bad hack.
18976 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18977 # The linker will automatically build a .lib file if we build a DLL.
18978 old_archive_From_new_cmds_GCJ='true'
18979 # FIXME: Should let the user specify the lib program.
18980 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18981 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18982 enable_shared_with_static_runtimes_GCJ=yes
18983 ;;
18984
18985 darwin* | rhapsody*)
18986 case $host_os in
18987 rhapsody* | darwin1.[012])
18988 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18989 ;;
18990 *) # Darwin 1.3 on
18991 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18992 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18993 else
18994 case ${MACOSX_DEPLOYMENT_TARGET} in
18995 10.[012])
18996 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18997 ;;
18998 10.*)
18999 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19000 ;;
19001 esac
19002 fi
19003 ;;
19004 esac
19005 archive_cmds_need_lc_GCJ=no
19006 hardcode_direct_GCJ=no
19007 hardcode_automatic_GCJ=yes
19008 hardcode_shlibpath_var_GCJ=unsupported
19009 whole_archive_flag_spec_GCJ=''
19010 link_all_deplibs_GCJ=yes
19011 if test "$GCC" = yes ; then
19012 output_verbose_link_cmd='echo'
56efe974
WP
19013 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}"
19014 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19015 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}"
19016 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
19017 else
19018 case $cc_basename in
19019 xlc*)
19020 output_verbose_link_cmd='echo'
19021 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19022 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19023 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19024 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}'
19025 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}'
19026 ;;
19027 *)
19028 ld_shlibs_GCJ=no
19029 ;;
19030 esac
19031 fi
19032 ;;
19033
19034 dgux*)
19035 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19036 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19037 hardcode_shlibpath_var_GCJ=no
19038 ;;
19039
19040 freebsd1*)
19041 ld_shlibs_GCJ=no
19042 ;;
19043
19044 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19045 # support. Future versions do this automatically, but an explicit c++rt0.o
19046 # does not break anything, and helps significantly (at the cost of a little
19047 # extra space).
19048 freebsd2.2*)
19049 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19050 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19051 hardcode_direct_GCJ=yes
19052 hardcode_shlibpath_var_GCJ=no
19053 ;;
19054
19055 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19056 freebsd2*)
19057 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19058 hardcode_direct_GCJ=yes
19059 hardcode_minus_L_GCJ=yes
19060 hardcode_shlibpath_var_GCJ=no
19061 ;;
19062
19063 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19064 freebsd* | dragonfly*)
19065 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19066 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19067 hardcode_direct_GCJ=yes
19068 hardcode_shlibpath_var_GCJ=no
19069 ;;
19070
19071 hpux9*)
19072 if test "$GCC" = yes; then
19073 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'
19074 else
19075 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'
19076 fi
19077 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19078 hardcode_libdir_separator_GCJ=:
19079 hardcode_direct_GCJ=yes
19080
19081 # hardcode_minus_L: Not really in the search PATH,
19082 # but as the default location of the library.
19083 hardcode_minus_L_GCJ=yes
19084 export_dynamic_flag_spec_GCJ='${wl}-E'
19085 ;;
19086
19087 hpux10*)
19088 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19089 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19090 else
19091 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19092 fi
19093 if test "$with_gnu_ld" = no; then
19094 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19095 hardcode_libdir_separator_GCJ=:
19096
19097 hardcode_direct_GCJ=yes
19098 export_dynamic_flag_spec_GCJ='${wl}-E'
19099
19100 # hardcode_minus_L: Not really in the search PATH,
19101 # but as the default location of the library.
19102 hardcode_minus_L_GCJ=yes
19103 fi
19104 ;;
19105
19106 hpux11*)
19107 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19108 case $host_cpu in
19109 hppa*64*)
19110 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19111 ;;
19112 ia64*)
19113 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19114 ;;
19115 *)
19116 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19117 ;;
19118 esac
19119 else
19120 case $host_cpu in
19121 hppa*64*)
19122 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19123 ;;
19124 ia64*)
19125 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19126 ;;
19127 *)
19128 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19129 ;;
19130 esac
19131 fi
19132 if test "$with_gnu_ld" = no; then
19133 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19134 hardcode_libdir_separator_GCJ=:
19135
19136 case $host_cpu in
19137 hppa*64*|ia64*)
19138 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19139 hardcode_direct_GCJ=no
19140 hardcode_shlibpath_var_GCJ=no
19141 ;;
19142 *)
19143 hardcode_direct_GCJ=yes
19144 export_dynamic_flag_spec_GCJ='${wl}-E'
19145
19146 # hardcode_minus_L: Not really in the search PATH,
19147 # but as the default location of the library.
19148 hardcode_minus_L_GCJ=yes
19149 ;;
19150 esac
19151 fi
19152 ;;
19153
19154 irix5* | irix6* | nonstopux*)
19155 if test "$GCC" = yes; then
19156 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'
19157 else
19158 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'
19159 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19160 fi
19161 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19162 hardcode_libdir_separator_GCJ=:
19163 link_all_deplibs_GCJ=yes
19164 ;;
19165
19166 netbsd* | netbsdelf*-gnu)
19167 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19168 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19169 else
19170 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19171 fi
19172 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19173 hardcode_direct_GCJ=yes
19174 hardcode_shlibpath_var_GCJ=no
19175 ;;
19176
19177 newsos6)
19178 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19179 hardcode_direct_GCJ=yes
19180 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19181 hardcode_libdir_separator_GCJ=:
19182 hardcode_shlibpath_var_GCJ=no
19183 ;;
19184
19185 openbsd*)
19186 if test -f /usr/libexec/ld.so; then
19187 hardcode_direct_GCJ=yes
19188 hardcode_shlibpath_var_GCJ=no
19189 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19190 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19191 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19192 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19193 export_dynamic_flag_spec_GCJ='${wl}-E'
19194 else
19195 case $host_os in
19196 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19197 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19198 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19199 ;;
19200 *)
19201 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19202 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19203 ;;
19204 esac
19205 fi
19206 else
19207 ld_shlibs_GCJ=no
19208 fi
19209 ;;
19210
19211 os2*)
19212 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19213 hardcode_minus_L_GCJ=yes
19214 allow_undefined_flag_GCJ=unsupported
19215 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'
19216 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19217 ;;
19218
19219 osf3*)
19220 if test "$GCC" = yes; then
19221 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19222 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'
19223 else
19224 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19225 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'
19226 fi
19227 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19228 hardcode_libdir_separator_GCJ=:
19229 ;;
19230
19231 osf4* | osf5*) # as osf3* with the addition of -msym flag
19232 if test "$GCC" = yes; then
19233 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19234 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'
19235 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19236 else
19237 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19238 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'
19239 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~
19240 $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'
19241
19242 # Both c and cxx compiler support -rpath directly
19243 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19244 fi
19245 hardcode_libdir_separator_GCJ=:
19246 ;;
19247
19248 solaris*)
19249 no_undefined_flag_GCJ=' -z text'
19250 if test "$GCC" = yes; then
19251 wlarc='${wl}'
19252 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19253 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19254 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19255 else
19256 wlarc=''
19257 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19258 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19259 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19260 fi
19261 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19262 hardcode_shlibpath_var_GCJ=no
19263 case $host_os in
19264 solaris2.[0-5] | solaris2.[0-5].*) ;;
19265 *)
19266 # The compiler driver will combine and reorder linker options,
19267 # but understands `-z linker_flag'. GCC discards it without `$wl',
19268 # but is careful enough not to reorder.
19269 # Supported since Solaris 2.6 (maybe 2.5.1?)
19270 if test "$GCC" = yes; then
19271 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19272 else
19273 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19274 fi
19275 ;;
19276 esac
19277 link_all_deplibs_GCJ=yes
19278 ;;
19279
19280 sunos4*)
19281 if test "x$host_vendor" = xsequent; then
19282 # Use $CC to link under sequent, because it throws in some extra .o
19283 # files that make .init and .fini sections work.
19284 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19285 else
19286 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19287 fi
19288 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19289 hardcode_direct_GCJ=yes
19290 hardcode_minus_L_GCJ=yes
19291 hardcode_shlibpath_var_GCJ=no
19292 ;;
19293
19294 sysv4)
19295 case $host_vendor in
19296 sni)
19297 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19298 hardcode_direct_GCJ=yes # is this really true???
19299 ;;
19300 siemens)
19301 ## LD is ld it makes a PLAMLIB
19302 ## CC just makes a GrossModule.
19303 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19304 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19305 hardcode_direct_GCJ=no
19306 ;;
19307 motorola)
19308 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19309 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19310 ;;
19311 esac
19312 runpath_var='LD_RUN_PATH'
19313 hardcode_shlibpath_var_GCJ=no
19314 ;;
19315
19316 sysv4.3*)
19317 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19318 hardcode_shlibpath_var_GCJ=no
19319 export_dynamic_flag_spec_GCJ='-Bexport'
19320 ;;
19321
19322 sysv4*MP*)
19323 if test -d /usr/nec; then
19324 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19325 hardcode_shlibpath_var_GCJ=no
19326 runpath_var=LD_RUN_PATH
19327 hardcode_runpath_var=yes
19328 ld_shlibs_GCJ=yes
19329 fi
19330 ;;
19331
19332 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19333 no_undefined_flag_GCJ='${wl}-z,text'
19334 archive_cmds_need_lc_GCJ=no
19335 hardcode_shlibpath_var_GCJ=no
19336 runpath_var='LD_RUN_PATH'
19337
19338 if test "$GCC" = yes; then
19339 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19340 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19341 else
19342 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19343 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19344 fi
19345 ;;
19346
19347 sysv5* | sco3.2v5* | sco5v6*)
19348 # Note: We can NOT use -z defs as we might desire, because we do not
19349 # link with -lc, and that would cause any symbols used from libc to
19350 # always be unresolved, which means just about no library would
19351 # ever link correctly. If we're not using GNU ld we use -z text
19352 # though, which does catch some bad symbols but isn't as heavy-handed
19353 # as -z defs.
19354 no_undefined_flag_GCJ='${wl}-z,text'
19355 allow_undefined_flag_GCJ='${wl}-z,nodefs'
19356 archive_cmds_need_lc_GCJ=no
19357 hardcode_shlibpath_var_GCJ=no
19358 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19359 hardcode_libdir_separator_GCJ=':'
19360 link_all_deplibs_GCJ=yes
19361 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19362 runpath_var='LD_RUN_PATH'
19363
19364 if test "$GCC" = yes; then
19365 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19366 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19367 else
19368 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19369 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19370 fi
19371 ;;
19372
19373 uts4*)
19374 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19375 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19376 hardcode_shlibpath_var_GCJ=no
19377 ;;
19378
19379 *)
19380 ld_shlibs_GCJ=no
19381 ;;
19382 esac
19383 fi
19384
19385{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19386echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19387test "$ld_shlibs_GCJ" = no && can_build_shared=no
19388
19389#
19390# Do we need to explicitly link libc?
19391#
19392case "x$archive_cmds_need_lc_GCJ" in
19393x|xyes)
19394 # Assume -lc should be added
19395 archive_cmds_need_lc_GCJ=yes
19396
19397 if test "$enable_shared" = yes && test "$GCC" = yes; then
19398 case $archive_cmds_GCJ in
19399 *'~'*)
19400 # FIXME: we may have to deal with multi-command sequences.
19401 ;;
19402 '$CC '*)
19403 # Test whether the compiler implicitly links with -lc since on some
19404 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19405 # to ld, don't add -lc before -lgcc.
19406 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19407echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19408 $rm conftest*
19409 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19410
19411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19412 (eval $ac_compile) 2>&5
19413 ac_status=$?
19414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415 (exit $ac_status); } 2>conftest.err; then
19416 soname=conftest
19417 lib=conftest
19418 libobjs=conftest.$ac_objext
19419 deplibs=
19420 wl=$lt_prog_compiler_wl_GCJ
19421 pic_flag=$lt_prog_compiler_pic_GCJ
19422 compiler_flags=-v
19423 linker_flags=-v
19424 verstring=
19425 output_objdir=.
19426 libname=conftest
19427 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19428 allow_undefined_flag_GCJ=
19429 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19430 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19431 ac_status=$?
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); }
19434 then
19435 archive_cmds_need_lc_GCJ=no
19436 else
19437 archive_cmds_need_lc_GCJ=yes
19438 fi
19439 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19440 else
19441 cat conftest.err 1>&5
19442 fi
19443 $rm conftest*
19444 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19445echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19446 ;;
19447 esac
19448 fi
19449 ;;
19450esac
19451
19452{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19453echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19454library_names_spec=
19455libname_spec='lib$name'
19456soname_spec=
19457shrext_cmds=".so"
19458postinstall_cmds=
19459postuninstall_cmds=
19460finish_cmds=
19461finish_eval=
19462shlibpath_var=
19463shlibpath_overrides_runpath=unknown
19464version_type=none
19465dynamic_linker="$host_os ld.so"
19466sys_lib_dlsearch_path_spec="/lib /usr/lib"
19467
19468need_lib_prefix=unknown
19469hardcode_into_libs=no
19470
19471# when you set need_version to no, make sure it does not cause -set_version
19472# flags to be left without arguments
19473need_version=unknown
19474
19475case $host_os in
19476aix3*)
19477 version_type=linux
19478 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19479 shlibpath_var=LIBPATH
19480
19481 # AIX 3 has no versioning support, so we append a major version to the name.
19482 soname_spec='${libname}${release}${shared_ext}$major'
19483 ;;
19484
56efe974 19485aix[4-9]*)
b57f37fb
WP
19486 version_type=linux
19487 need_lib_prefix=no
19488 need_version=no
19489 hardcode_into_libs=yes
19490 if test "$host_cpu" = ia64; then
19491 # AIX 5 supports IA64
19492 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19493 shlibpath_var=LD_LIBRARY_PATH
19494 else
19495 # With GCC up to 2.95.x, collect2 would create an import file
19496 # for dependence libraries. The import file would start with
19497 # the line `#! .'. This would cause the generated library to
19498 # depend on `.', always an invalid library. This was fixed in
19499 # development snapshots of GCC prior to 3.0.
19500 case $host_os in
19501 aix4 | aix4.[01] | aix4.[01].*)
19502 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19503 echo ' yes '
19504 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19505 :
19506 else
19507 can_build_shared=no
19508 fi
19509 ;;
19510 esac
19511 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19512 # soname into executable. Probably we can add versioning support to
19513 # collect2, so additional links can be useful in future.
19514 if test "$aix_use_runtimelinking" = yes; then
19515 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19516 # instead of lib<name>.a to let people know that these are not
19517 # typical AIX shared libraries.
19518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19519 else
19520 # We preserve .a as extension for shared libraries through AIX4.2
19521 # and later when we are not doing run time linking.
19522 library_names_spec='${libname}${release}.a $libname.a'
19523 soname_spec='${libname}${release}${shared_ext}$major'
19524 fi
19525 shlibpath_var=LIBPATH
19526 fi
19527 ;;
19528
19529amigaos*)
19530 library_names_spec='$libname.ixlibrary $libname.a'
19531 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19532 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'
19533 ;;
19534
19535beos*)
19536 library_names_spec='${libname}${shared_ext}'
19537 dynamic_linker="$host_os ld.so"
19538 shlibpath_var=LIBRARY_PATH
19539 ;;
19540
19541bsdi[45]*)
19542 version_type=linux
19543 need_version=no
19544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19545 soname_spec='${libname}${release}${shared_ext}$major'
19546 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19547 shlibpath_var=LD_LIBRARY_PATH
19548 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19549 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19550 # the default ld.so.conf also contains /usr/contrib/lib and
19551 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19552 # libtool to hard-code these into programs
19553 ;;
19554
19555cygwin* | mingw* | pw32*)
19556 version_type=windows
19557 shrext_cmds=".dll"
19558 need_version=no
19559 need_lib_prefix=no
19560
19561 case $GCC,$host_os in
19562 yes,cygwin* | yes,mingw* | yes,pw32*)
19563 library_names_spec='$libname.dll.a'
19564 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19565 postinstall_cmds='base_file=`basename \${file}`~
19566 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19567 dldir=$destdir/`dirname \$dlpath`~
19568 test -d \$dldir || mkdir -p \$dldir~
19569 $install_prog $dir/$dlname \$dldir/$dlname~
19570 chmod a+x \$dldir/$dlname'
19571 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19572 dlpath=$dir/\$dldll~
19573 $rm \$dlpath'
19574 shlibpath_overrides_runpath=yes
19575
19576 case $host_os in
19577 cygwin*)
19578 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19579 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19580 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19581 ;;
19582 mingw*)
19583 # MinGW DLLs use traditional 'lib' prefix
19584 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19585 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19586 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19587 # It is most probably a Windows format PATH printed by
19588 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19589 # path with ; separators, and with drive letters. We can handle the
19590 # drive letters (cygwin fileutils understands them), so leave them,
19591 # especially as we might pass files found there to a mingw objdump,
19592 # which wouldn't understand a cygwinified path. Ahh.
19593 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19594 else
19595 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19596 fi
19597 ;;
19598 pw32*)
19599 # pw32 DLLs use 'pw' prefix rather than 'lib'
19600 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19601 ;;
19602 esac
19603 ;;
19604
19605 *)
19606 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19607 ;;
19608 esac
19609 dynamic_linker='Win32 ld.exe'
19610 # FIXME: first we should search . and the directory the executable is in
19611 shlibpath_var=PATH
19612 ;;
19613
19614darwin* | rhapsody*)
19615 dynamic_linker="$host_os dyld"
19616 version_type=darwin
19617 need_lib_prefix=no
19618 need_version=no
19619 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19620 soname_spec='${libname}${release}${major}$shared_ext'
19621 shlibpath_overrides_runpath=yes
19622 shlibpath_var=DYLD_LIBRARY_PATH
19623 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19624
19625 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19626 ;;
19627
19628dgux*)
19629 version_type=linux
19630 need_lib_prefix=no
19631 need_version=no
19632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19633 soname_spec='${libname}${release}${shared_ext}$major'
19634 shlibpath_var=LD_LIBRARY_PATH
19635 ;;
19636
19637freebsd1*)
19638 dynamic_linker=no
19639 ;;
19640
19641freebsd* | dragonfly*)
19642 # DragonFly does not have aout. When/if they implement a new
19643 # versioning mechanism, adjust this.
19644 if test -x /usr/bin/objformat; then
19645 objformat=`/usr/bin/objformat`
19646 else
19647 case $host_os in
19648 freebsd[123]*) objformat=aout ;;
19649 *) objformat=elf ;;
19650 esac
19651 fi
19652 version_type=freebsd-$objformat
19653 case $version_type in
19654 freebsd-elf*)
19655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19656 need_version=no
19657 need_lib_prefix=no
19658 ;;
19659 freebsd-*)
19660 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19661 need_version=yes
19662 ;;
19663 esac
19664 shlibpath_var=LD_LIBRARY_PATH
19665 case $host_os in
19666 freebsd2*)
19667 shlibpath_overrides_runpath=yes
19668 ;;
19669 freebsd3.[01]* | freebsdelf3.[01]*)
19670 shlibpath_overrides_runpath=yes
19671 hardcode_into_libs=yes
19672 ;;
19673 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19674 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19675 shlibpath_overrides_runpath=no
19676 hardcode_into_libs=yes
19677 ;;
19678 *) # from 4.6 on, and DragonFly
19679 shlibpath_overrides_runpath=yes
19680 hardcode_into_libs=yes
19681 ;;
19682 esac
19683 ;;
19684
19685gnu*)
19686 version_type=linux
19687 need_lib_prefix=no
19688 need_version=no
19689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19690 soname_spec='${libname}${release}${shared_ext}$major'
19691 shlibpath_var=LD_LIBRARY_PATH
19692 hardcode_into_libs=yes
19693 ;;
19694
19695hpux9* | hpux10* | hpux11*)
19696 # Give a soname corresponding to the major version so that dld.sl refuses to
19697 # link against other versions.
19698 version_type=sunos
19699 need_lib_prefix=no
19700 need_version=no
19701 case $host_cpu in
19702 ia64*)
19703 shrext_cmds='.so'
19704 hardcode_into_libs=yes
19705 dynamic_linker="$host_os dld.so"
19706 shlibpath_var=LD_LIBRARY_PATH
19707 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19709 soname_spec='${libname}${release}${shared_ext}$major'
19710 if test "X$HPUX_IA64_MODE" = X32; then
19711 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19712 else
19713 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19714 fi
19715 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19716 ;;
19717 hppa*64*)
19718 shrext_cmds='.sl'
19719 hardcode_into_libs=yes
19720 dynamic_linker="$host_os dld.sl"
19721 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19722 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19724 soname_spec='${libname}${release}${shared_ext}$major'
19725 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19726 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19727 ;;
19728 *)
19729 shrext_cmds='.sl'
19730 dynamic_linker="$host_os dld.sl"
19731 shlibpath_var=SHLIB_PATH
19732 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19734 soname_spec='${libname}${release}${shared_ext}$major'
19735 ;;
19736 esac
19737 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19738 postinstall_cmds='chmod 555 $lib'
19739 ;;
19740
19741interix[3-9]*)
19742 version_type=linux
19743 need_lib_prefix=no
19744 need_version=no
19745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19746 soname_spec='${libname}${release}${shared_ext}$major'
19747 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19748 shlibpath_var=LD_LIBRARY_PATH
19749 shlibpath_overrides_runpath=no
19750 hardcode_into_libs=yes
19751 ;;
19752
19753irix5* | irix6* | nonstopux*)
19754 case $host_os in
19755 nonstopux*) version_type=nonstopux ;;
19756 *)
19757 if test "$lt_cv_prog_gnu_ld" = yes; then
19758 version_type=linux
19759 else
19760 version_type=irix
19761 fi ;;
19762 esac
19763 need_lib_prefix=no
19764 need_version=no
19765 soname_spec='${libname}${release}${shared_ext}$major'
19766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19767 case $host_os in
19768 irix5* | nonstopux*)
19769 libsuff= shlibsuff=
19770 ;;
19771 *)
19772 case $LD in # libtool.m4 will add one of these switches to LD
19773 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19774 libsuff= shlibsuff= libmagic=32-bit;;
19775 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19776 libsuff=32 shlibsuff=N32 libmagic=N32;;
19777 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19778 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19779 *) libsuff= shlibsuff= libmagic=never-match;;
19780 esac
19781 ;;
19782 esac
19783 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19784 shlibpath_overrides_runpath=no
19785 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19786 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19787 hardcode_into_libs=yes
19788 ;;
19789
19790# No shared lib support for Linux oldld, aout, or coff.
19791linux*oldld* | linux*aout* | linux*coff*)
19792 dynamic_linker=no
19793 ;;
19794
19795# This must be Linux ELF.
19796linux* | k*bsd*-gnu)
19797 version_type=linux
19798 need_lib_prefix=no
19799 need_version=no
19800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19801 soname_spec='${libname}${release}${shared_ext}$major'
19802 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19803 shlibpath_var=LD_LIBRARY_PATH
19804 shlibpath_overrides_runpath=no
19805 # This implies no fast_install, which is unacceptable.
19806 # Some rework will be needed to allow for fast_install
19807 # before this can be enabled.
19808 hardcode_into_libs=yes
19809
19810 # Append ld.so.conf contents to the search path
19811 if test -f /etc/ld.so.conf; then
19812 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' ' '`
19813 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19814 fi
19815
19816 # We used to test for /lib/ld.so.1 and disable shared libraries on
19817 # powerpc, because MkLinux only supported shared libraries with the
19818 # GNU dynamic linker. Since this was broken with cross compilers,
19819 # most powerpc-linux boxes support dynamic linking these days and
19820 # people can always --disable-shared, the test was removed, and we
19821 # assume the GNU/Linux dynamic linker is in use.
19822 dynamic_linker='GNU/Linux ld.so'
19823 ;;
19824
19825netbsdelf*-gnu)
19826 version_type=linux
19827 need_lib_prefix=no
19828 need_version=no
19829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19830 soname_spec='${libname}${release}${shared_ext}$major'
19831 shlibpath_var=LD_LIBRARY_PATH
19832 shlibpath_overrides_runpath=no
19833 hardcode_into_libs=yes
19834 dynamic_linker='NetBSD ld.elf_so'
19835 ;;
19836
19837netbsd*)
19838 version_type=sunos
19839 need_lib_prefix=no
19840 need_version=no
19841 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19843 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19844 dynamic_linker='NetBSD (a.out) ld.so'
19845 else
19846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19847 soname_spec='${libname}${release}${shared_ext}$major'
19848 dynamic_linker='NetBSD ld.elf_so'
19849 fi
19850 shlibpath_var=LD_LIBRARY_PATH
19851 shlibpath_overrides_runpath=yes
19852 hardcode_into_libs=yes
19853 ;;
19854
19855newsos6)
19856 version_type=linux
19857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19858 shlibpath_var=LD_LIBRARY_PATH
19859 shlibpath_overrides_runpath=yes
19860 ;;
19861
19862nto-qnx*)
19863 version_type=linux
19864 need_lib_prefix=no
19865 need_version=no
19866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19867 soname_spec='${libname}${release}${shared_ext}$major'
19868 shlibpath_var=LD_LIBRARY_PATH
19869 shlibpath_overrides_runpath=yes
19870 ;;
19871
19872openbsd*)
19873 version_type=sunos
19874 sys_lib_dlsearch_path_spec="/usr/lib"
19875 need_lib_prefix=no
19876 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19877 case $host_os in
19878 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19879 *) need_version=no ;;
19880 esac
19881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19882 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19883 shlibpath_var=LD_LIBRARY_PATH
19884 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19885 case $host_os in
19886 openbsd2.[89] | openbsd2.[89].*)
19887 shlibpath_overrides_runpath=no
19888 ;;
19889 *)
19890 shlibpath_overrides_runpath=yes
19891 ;;
19892 esac
19893 else
19894 shlibpath_overrides_runpath=yes
19895 fi
19896 ;;
19897
19898os2*)
19899 libname_spec='$name'
19900 shrext_cmds=".dll"
19901 need_lib_prefix=no
19902 library_names_spec='$libname${shared_ext} $libname.a'
19903 dynamic_linker='OS/2 ld.exe'
19904 shlibpath_var=LIBPATH
19905 ;;
19906
19907osf3* | osf4* | osf5*)
19908 version_type=osf
19909 need_lib_prefix=no
19910 need_version=no
19911 soname_spec='${libname}${release}${shared_ext}$major'
19912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19913 shlibpath_var=LD_LIBRARY_PATH
19914 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19915 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19916 ;;
19917
19918rdos*)
19919 dynamic_linker=no
19920 ;;
19921
19922solaris*)
19923 version_type=linux
19924 need_lib_prefix=no
19925 need_version=no
19926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19927 soname_spec='${libname}${release}${shared_ext}$major'
19928 shlibpath_var=LD_LIBRARY_PATH
19929 shlibpath_overrides_runpath=yes
19930 hardcode_into_libs=yes
19931 # ldd complains unless libraries are executable
19932 postinstall_cmds='chmod +x $lib'
19933 ;;
19934
19935sunos4*)
19936 version_type=sunos
19937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19938 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19939 shlibpath_var=LD_LIBRARY_PATH
19940 shlibpath_overrides_runpath=yes
19941 if test "$with_gnu_ld" = yes; then
19942 need_lib_prefix=no
19943 fi
19944 need_version=yes
19945 ;;
19946
19947sysv4 | sysv4.3*)
19948 version_type=linux
19949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19950 soname_spec='${libname}${release}${shared_ext}$major'
19951 shlibpath_var=LD_LIBRARY_PATH
19952 case $host_vendor in
19953 sni)
19954 shlibpath_overrides_runpath=no
19955 need_lib_prefix=no
19956 export_dynamic_flag_spec='${wl}-Blargedynsym'
19957 runpath_var=LD_RUN_PATH
19958 ;;
19959 siemens)
19960 need_lib_prefix=no
19961 ;;
19962 motorola)
19963 need_lib_prefix=no
19964 need_version=no
19965 shlibpath_overrides_runpath=no
19966 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19967 ;;
19968 esac
19969 ;;
19970
19971sysv4*MP*)
19972 if test -d /usr/nec ;then
19973 version_type=linux
19974 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19975 soname_spec='$libname${shared_ext}.$major'
19976 shlibpath_var=LD_LIBRARY_PATH
19977 fi
19978 ;;
19979
19980sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19981 version_type=freebsd-elf
19982 need_lib_prefix=no
19983 need_version=no
19984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19985 soname_spec='${libname}${release}${shared_ext}$major'
19986 shlibpath_var=LD_LIBRARY_PATH
19987 hardcode_into_libs=yes
19988 if test "$with_gnu_ld" = yes; then
19989 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19990 shlibpath_overrides_runpath=no
19991 else
19992 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19993 shlibpath_overrides_runpath=yes
19994 case $host_os in
19995 sco3.2v5*)
19996 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19997 ;;
19998 esac
19999 fi
20000 sys_lib_dlsearch_path_spec='/usr/lib'
20001 ;;
20002
20003uts4*)
20004 version_type=linux
20005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20006 soname_spec='${libname}${release}${shared_ext}$major'
20007 shlibpath_var=LD_LIBRARY_PATH
20008 ;;
20009
20010*)
20011 dynamic_linker=no
20012 ;;
20013esac
20014{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20015echo "${ECHO_T}$dynamic_linker" >&6; }
20016test "$dynamic_linker" = no && can_build_shared=no
20017
56efe974
WP
20018if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20019 echo $ECHO_N "(cached) $ECHO_C" >&6
20020else
20021 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
20022fi
20023
20024sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20025if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20026 echo $ECHO_N "(cached) $ECHO_C" >&6
20027else
20028 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
20029fi
20030
20031sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20032
b57f37fb
WP
20033variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20034if test "$GCC" = yes; then
20035 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20036fi
20037
20038{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20039echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20040hardcode_action_GCJ=
20041if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20042 test -n "$runpath_var_GCJ" || \
20043 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20044
20045 # We can hardcode non-existant directories.
20046 if test "$hardcode_direct_GCJ" != no &&
20047 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20048 # have to relink, otherwise we might link with an installed library
20049 # when we should be linking with a yet-to-be-installed one
20050 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20051 test "$hardcode_minus_L_GCJ" != no; then
20052 # Linking always hardcodes the temporary library directory.
20053 hardcode_action_GCJ=relink
20054 else
20055 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20056 hardcode_action_GCJ=immediate
20057 fi
20058else
20059 # We cannot hardcode anything, or else we can only hardcode existing
20060 # directories.
20061 hardcode_action_GCJ=unsupported
20062fi
20063{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20064echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20065
20066if test "$hardcode_action_GCJ" = relink; then
20067 # Fast installation is not supported
20068 enable_fast_install=no
20069elif test "$shlibpath_overrides_runpath" = yes ||
20070 test "$enable_shared" = no; then
20071 # Fast installation is not necessary
20072 enable_fast_install=needless
20073fi
20074
20075
20076# The else clause should only fire when bootstrapping the
20077# libtool distribution, otherwise you forgot to ship ltmain.sh
20078# with your package, and you will get complaints that there are
20079# no rules to generate ltmain.sh.
20080if test -f "$ltmain"; then
20081 # See if we are running on zsh, and set the options which allow our commands through
20082 # without removal of \ escapes.
20083 if test -n "${ZSH_VERSION+set}" ; then
20084 setopt NO_GLOB_SUBST
20085 fi
20086 # Now quote all the things that may contain metacharacters while being
20087 # careful not to overquote the AC_SUBSTed values. We take copies of the
20088 # variables and quote the copies for generation of the libtool script.
20089 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20090 SED SHELL STRIP \
20091 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20092 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20093 deplibs_check_method reload_flag reload_cmds need_locks \
20094 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20095 lt_cv_sys_global_symbol_to_c_name_address \
20096 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20097 old_postinstall_cmds old_postuninstall_cmds \
20098 compiler_GCJ \
20099 CC_GCJ \
20100 LD_GCJ \
20101 lt_prog_compiler_wl_GCJ \
20102 lt_prog_compiler_pic_GCJ \
20103 lt_prog_compiler_static_GCJ \
20104 lt_prog_compiler_no_builtin_flag_GCJ \
20105 export_dynamic_flag_spec_GCJ \
20106 thread_safe_flag_spec_GCJ \
20107 whole_archive_flag_spec_GCJ \
20108 enable_shared_with_static_runtimes_GCJ \
20109 old_archive_cmds_GCJ \
20110 old_archive_from_new_cmds_GCJ \
20111 predep_objects_GCJ \
20112 postdep_objects_GCJ \
20113 predeps_GCJ \
20114 postdeps_GCJ \
20115 compiler_lib_search_path_GCJ \
56efe974 20116 compiler_lib_search_dirs_GCJ \
b57f37fb
WP
20117 archive_cmds_GCJ \
20118 archive_expsym_cmds_GCJ \
20119 postinstall_cmds_GCJ \
20120 postuninstall_cmds_GCJ \
20121 old_archive_from_expsyms_cmds_GCJ \
20122 allow_undefined_flag_GCJ \
20123 no_undefined_flag_GCJ \
20124 export_symbols_cmds_GCJ \
20125 hardcode_libdir_flag_spec_GCJ \
20126 hardcode_libdir_flag_spec_ld_GCJ \
20127 hardcode_libdir_separator_GCJ \
20128 hardcode_automatic_GCJ \
20129 module_cmds_GCJ \
20130 module_expsym_cmds_GCJ \
20131 lt_cv_prog_compiler_c_o_GCJ \
20132 fix_srcfile_path_GCJ \
20133 exclude_expsyms_GCJ \
20134 include_expsyms_GCJ; do
20135
20136 case $var in
20137 old_archive_cmds_GCJ | \
20138 old_archive_from_new_cmds_GCJ | \
20139 archive_cmds_GCJ | \
20140 archive_expsym_cmds_GCJ | \
20141 module_cmds_GCJ | \
20142 module_expsym_cmds_GCJ | \
20143 old_archive_from_expsyms_cmds_GCJ | \
20144 export_symbols_cmds_GCJ | \
20145 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20146 postinstall_cmds | postuninstall_cmds | \
20147 old_postinstall_cmds | old_postuninstall_cmds | \
20148 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20149 # Double-quote double-evaled strings.
20150 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20151 ;;
20152 *)
20153 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20154 ;;
20155 esac
20156 done
20157
20158 case $lt_echo in
20159 *'\$0 --fallback-echo"')
20160 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20161 ;;
20162 esac
20163
20164cfgfile="$ofile"
20165
20166 cat <<__EOF__ >> "$cfgfile"
20167# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20168
20169# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20170
20171# Shell to use when invoking shell scripts.
20172SHELL=$lt_SHELL
20173
20174# Whether or not to build shared libraries.
20175build_libtool_libs=$enable_shared
20176
20177# Whether or not to build static libraries.
20178build_old_libs=$enable_static
20179
20180# Whether or not to add -lc for building shared libraries.
20181build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20182
20183# Whether or not to disallow shared libs when runtime libs are static
20184allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20185
20186# Whether or not to optimize for fast installation.
20187fast_install=$enable_fast_install
20188
20189# The host system.
20190host_alias=$host_alias
20191host=$host
20192host_os=$host_os
20193
20194# The build system.
20195build_alias=$build_alias
20196build=$build
20197build_os=$build_os
20198
20199# An echo program that does not interpret backslashes.
20200echo=$lt_echo
20201
20202# The archiver.
20203AR=$lt_AR
20204AR_FLAGS=$lt_AR_FLAGS
20205
20206# A C compiler.
20207LTCC=$lt_LTCC
20208
20209# LTCC compiler flags.
20210LTCFLAGS=$lt_LTCFLAGS
20211
20212# A language-specific compiler.
20213CC=$lt_compiler_GCJ
20214
20215# Is the compiler the GNU C compiler?
20216with_gcc=$GCC_GCJ
20217
20218# An ERE matcher.
20219EGREP=$lt_EGREP
20220
20221# The linker used to build libraries.
20222LD=$lt_LD_GCJ
20223
20224# Whether we need hard or soft links.
20225LN_S=$lt_LN_S
20226
20227# A BSD-compatible nm program.
20228NM=$lt_NM
20229
20230# A symbol stripping program
20231STRIP=$lt_STRIP
20232
20233# Used to examine libraries when file_magic_cmd begins "file"
20234MAGIC_CMD=$MAGIC_CMD
20235
20236# Used on cygwin: DLL creation program.
20237DLLTOOL="$DLLTOOL"
20238
20239# Used on cygwin: object dumper.
20240OBJDUMP="$OBJDUMP"
20241
20242# Used on cygwin: assembler.
20243AS="$AS"
20244
20245# The name of the directory that contains temporary libtool files.
20246objdir=$objdir
20247
20248# How to create reloadable object files.
20249reload_flag=$lt_reload_flag
20250reload_cmds=$lt_reload_cmds
20251
20252# How to pass a linker flag through the compiler.
20253wl=$lt_lt_prog_compiler_wl_GCJ
20254
20255# Object file suffix (normally "o").
20256objext="$ac_objext"
20257
20258# Old archive suffix (normally "a").
20259libext="$libext"
20260
20261# Shared library suffix (normally ".so").
20262shrext_cmds='$shrext_cmds'
20263
20264# Executable file suffix (normally "").
20265exeext="$exeext"
20266
20267# Additional compiler flags for building library objects.
20268pic_flag=$lt_lt_prog_compiler_pic_GCJ
20269pic_mode=$pic_mode
20270
20271# What is the maximum length of a command?
20272max_cmd_len=$lt_cv_sys_max_cmd_len
20273
20274# Does compiler simultaneously support -c and -o options?
20275compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20276
20277# Must we lock files when doing compilation?
20278need_locks=$lt_need_locks
20279
20280# Do we need the lib prefix for modules?
20281need_lib_prefix=$need_lib_prefix
20282
20283# Do we need a version for libraries?
20284need_version=$need_version
20285
20286# Whether dlopen is supported.
20287dlopen_support=$enable_dlopen
20288
20289# Whether dlopen of programs is supported.
20290dlopen_self=$enable_dlopen_self
20291
20292# Whether dlopen of statically linked programs is supported.
20293dlopen_self_static=$enable_dlopen_self_static
20294
20295# Compiler flag to prevent dynamic linking.
20296link_static_flag=$lt_lt_prog_compiler_static_GCJ
20297
20298# Compiler flag to turn off builtin functions.
20299no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20300
20301# Compiler flag to allow reflexive dlopens.
20302export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20303
20304# Compiler flag to generate shared objects directly from archives.
20305whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20306
20307# Compiler flag to generate thread-safe objects.
20308thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20309
20310# Library versioning type.
20311version_type=$version_type
20312
20313# Format of library name prefix.
20314libname_spec=$lt_libname_spec
20315
20316# List of archive names. First name is the real one, the rest are links.
20317# The last name is the one that the linker finds with -lNAME.
20318library_names_spec=$lt_library_names_spec
20319
20320# The coded name of the library, if different from the real name.
20321soname_spec=$lt_soname_spec
20322
20323# Commands used to build and install an old-style archive.
20324RANLIB=$lt_RANLIB
20325old_archive_cmds=$lt_old_archive_cmds_GCJ
20326old_postinstall_cmds=$lt_old_postinstall_cmds
20327old_postuninstall_cmds=$lt_old_postuninstall_cmds
20328
20329# Create an old-style archive from a shared archive.
20330old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20331
20332# Create a temporary old-style archive to link instead of a shared archive.
20333old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20334
20335# Commands used to build and install a shared archive.
20336archive_cmds=$lt_archive_cmds_GCJ
20337archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20338postinstall_cmds=$lt_postinstall_cmds
20339postuninstall_cmds=$lt_postuninstall_cmds
20340
20341# Commands used to build a loadable module (assumed same as above if empty)
20342module_cmds=$lt_module_cmds_GCJ
20343module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20344
20345# Commands to strip libraries.
20346old_striplib=$lt_old_striplib
20347striplib=$lt_striplib
20348
20349# Dependencies to place before the objects being linked to create a
20350# shared library.
20351predep_objects=$lt_predep_objects_GCJ
20352
20353# Dependencies to place after the objects being linked to create a
20354# shared library.
20355postdep_objects=$lt_postdep_objects_GCJ
20356
20357# Dependencies to place before the objects being linked to create a
20358# shared library.
20359predeps=$lt_predeps_GCJ
20360
20361# Dependencies to place after the objects being linked to create a
20362# shared library.
20363postdeps=$lt_postdeps_GCJ
20364
56efe974
WP
20365# The directories searched by this compiler when creating a shared
20366# library
20367compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
20368
b57f37fb
WP
20369# The library search path used internally by the compiler when linking
20370# a shared library.
20371compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20372
20373# Method to check whether dependent libraries are shared objects.
20374deplibs_check_method=$lt_deplibs_check_method
20375
20376# Command to use when deplibs_check_method == file_magic.
20377file_magic_cmd=$lt_file_magic_cmd
20378
20379# Flag that allows shared libraries with undefined symbols to be built.
20380allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20381
20382# Flag that forces no undefined symbols.
20383no_undefined_flag=$lt_no_undefined_flag_GCJ
20384
20385# Commands used to finish a libtool library installation in a directory.
20386finish_cmds=$lt_finish_cmds
20387
20388# Same as above, but a single script fragment to be evaled but not shown.
20389finish_eval=$lt_finish_eval
20390
20391# Take the output of nm and produce a listing of raw symbols and C names.
20392global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20393
20394# Transform the output of nm in a proper C declaration
20395global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20396
20397# Transform the output of nm in a C name address pair
20398global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20399
20400# This is the shared library runtime path variable.
20401runpath_var=$runpath_var
20402
20403# This is the shared library path variable.
20404shlibpath_var=$shlibpath_var
20405
20406# Is shlibpath searched before the hard-coded library search path?
20407shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20408
20409# How to hardcode a shared library path into an executable.
20410hardcode_action=$hardcode_action_GCJ
20411
20412# Whether we should hardcode library paths into libraries.
20413hardcode_into_libs=$hardcode_into_libs
20414
20415# Flag to hardcode \$libdir into a binary during linking.
20416# This must work even if \$libdir does not exist.
20417hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20418
20419# If ld is used when linking, flag to hardcode \$libdir into
20420# a binary during linking. This must work even if \$libdir does
20421# not exist.
20422hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20423
20424# Whether we need a single -rpath flag with a separated argument.
20425hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20426
20427# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20428# resulting binary.
20429hardcode_direct=$hardcode_direct_GCJ
20430
20431# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20432# resulting binary.
20433hardcode_minus_L=$hardcode_minus_L_GCJ
20434
20435# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20436# the resulting binary.
20437hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20438
20439# Set to yes if building a shared library automatically hardcodes DIR into the library
20440# and all subsequent libraries and executables linked against it.
20441hardcode_automatic=$hardcode_automatic_GCJ
20442
20443# Variables whose values should be saved in libtool wrapper scripts and
20444# restored at relink time.
20445variables_saved_for_relink="$variables_saved_for_relink"
20446
20447# Whether libtool must link a program against all its dependency libraries.
20448link_all_deplibs=$link_all_deplibs_GCJ
20449
20450# Compile-time system search path for libraries
20451sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20452
20453# Run-time system search path for libraries
20454sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20455
20456# Fix the shell variable \$srcfile for the compiler.
20457fix_srcfile_path=$lt_fix_srcfile_path
20458
20459# Set to yes if exported symbols are required.
20460always_export_symbols=$always_export_symbols_GCJ
20461
20462# The commands to list exported symbols.
20463export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20464
20465# The commands to extract the exported symbol list from a shared archive.
20466extract_expsyms_cmds=$lt_extract_expsyms_cmds
20467
20468# Symbols that should not be listed in the preloaded symbols.
20469exclude_expsyms=$lt_exclude_expsyms_GCJ
20470
20471# Symbols that must always be exported.
20472include_expsyms=$lt_include_expsyms_GCJ
20473
20474# ### END LIBTOOL TAG CONFIG: $tagname
20475
20476__EOF__
20477
20478
20479else
20480 # If there is no Makefile yet, we rely on a make rule to execute
20481 # `config.status --recheck' to rerun these tests and create the
20482 # libtool script then.
20483 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20484 if test -f "$ltmain_in"; then
20485 test -f Makefile && make "$ltmain"
20486 fi
20487fi
20488
20489
20490ac_ext=c
20491ac_cpp='$CPP $CPPFLAGS'
20492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20494ac_compiler_gnu=$ac_cv_c_compiler_gnu
20495
20496CC="$lt_save_CC"
20497
20498 else
20499 tagname=""
20500 fi
20501 ;;
20502
20503 RC)
20504
20505
20506# Source file extension for RC test sources.
20507ac_ext=rc
20508
20509# Object file extension for compiled RC test sources.
20510objext=o
20511objext_RC=$objext
20512
20513# Code to be used in simple compile tests
20514lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20515
20516# Code to be used in simple link tests
20517lt_simple_link_test_code="$lt_simple_compile_test_code"
20518
20519# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20520
20521# If no C compiler was specified, use CC.
20522LTCC=${LTCC-"$CC"}
20523
20524# If no C compiler flags were specified, use CFLAGS.
20525LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20526
20527# Allow CC to be a program name with arguments.
20528compiler=$CC
20529
20530
20531# save warnings/boilerplate of simple test code
20532ac_outfile=conftest.$ac_objext
20533echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20534eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20535_lt_compiler_boilerplate=`cat conftest.err`
20536$rm conftest*
20537
20538ac_outfile=conftest.$ac_objext
20539echo "$lt_simple_link_test_code" >conftest.$ac_ext
20540eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20541_lt_linker_boilerplate=`cat conftest.err`
56efe974 20542$rm -r conftest*
b57f37fb
WP
20543
20544
20545# Allow CC to be a program name with arguments.
20546lt_save_CC="$CC"
20547CC=${RC-"windres"}
20548compiler=$CC
20549compiler_RC=$CC
20550for cc_temp in $compiler""; do
20551 case $cc_temp in
20552 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20553 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20554 \-*) ;;
20555 *) break;;
20556 esac
20557done
20558cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20559
20560lt_cv_prog_compiler_c_o_RC=yes
20561
20562# The else clause should only fire when bootstrapping the
20563# libtool distribution, otherwise you forgot to ship ltmain.sh
20564# with your package, and you will get complaints that there are
20565# no rules to generate ltmain.sh.
20566if test -f "$ltmain"; then
20567 # See if we are running on zsh, and set the options which allow our commands through
20568 # without removal of \ escapes.
20569 if test -n "${ZSH_VERSION+set}" ; then
20570 setopt NO_GLOB_SUBST
20571 fi
20572 # Now quote all the things that may contain metacharacters while being
20573 # careful not to overquote the AC_SUBSTed values. We take copies of the
20574 # variables and quote the copies for generation of the libtool script.
20575 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20576 SED SHELL STRIP \
20577 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20578 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20579 deplibs_check_method reload_flag reload_cmds need_locks \
20580 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20581 lt_cv_sys_global_symbol_to_c_name_address \
20582 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20583 old_postinstall_cmds old_postuninstall_cmds \
20584 compiler_RC \
20585 CC_RC \
20586 LD_RC \
20587 lt_prog_compiler_wl_RC \
20588 lt_prog_compiler_pic_RC \
20589 lt_prog_compiler_static_RC \
20590 lt_prog_compiler_no_builtin_flag_RC \
20591 export_dynamic_flag_spec_RC \
20592 thread_safe_flag_spec_RC \
20593 whole_archive_flag_spec_RC \
20594 enable_shared_with_static_runtimes_RC \
20595 old_archive_cmds_RC \
20596 old_archive_from_new_cmds_RC \
20597 predep_objects_RC \
20598 postdep_objects_RC \
20599 predeps_RC \
20600 postdeps_RC \
20601 compiler_lib_search_path_RC \
56efe974 20602 compiler_lib_search_dirs_RC \
b57f37fb
WP
20603 archive_cmds_RC \
20604 archive_expsym_cmds_RC \
20605 postinstall_cmds_RC \
20606 postuninstall_cmds_RC \
20607 old_archive_from_expsyms_cmds_RC \
20608 allow_undefined_flag_RC \
20609 no_undefined_flag_RC \
20610 export_symbols_cmds_RC \
20611 hardcode_libdir_flag_spec_RC \
20612 hardcode_libdir_flag_spec_ld_RC \
20613 hardcode_libdir_separator_RC \
20614 hardcode_automatic_RC \
20615 module_cmds_RC \
20616 module_expsym_cmds_RC \
20617 lt_cv_prog_compiler_c_o_RC \
20618 fix_srcfile_path_RC \
20619 exclude_expsyms_RC \
20620 include_expsyms_RC; do
20621
20622 case $var in
20623 old_archive_cmds_RC | \
20624 old_archive_from_new_cmds_RC | \
20625 archive_cmds_RC | \
20626 archive_expsym_cmds_RC | \
20627 module_cmds_RC | \
20628 module_expsym_cmds_RC | \
20629 old_archive_from_expsyms_cmds_RC | \
20630 export_symbols_cmds_RC | \
20631 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20632 postinstall_cmds | postuninstall_cmds | \
20633 old_postinstall_cmds | old_postuninstall_cmds | \
20634 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20635 # Double-quote double-evaled strings.
20636 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20637 ;;
20638 *)
20639 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20640 ;;
20641 esac
20642 done
20643
20644 case $lt_echo in
20645 *'\$0 --fallback-echo"')
20646 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20647 ;;
20648 esac
20649
20650cfgfile="$ofile"
20651
20652 cat <<__EOF__ >> "$cfgfile"
20653# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20654
20655# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20656
20657# Shell to use when invoking shell scripts.
20658SHELL=$lt_SHELL
20659
20660# Whether or not to build shared libraries.
20661build_libtool_libs=$enable_shared
20662
20663# Whether or not to build static libraries.
20664build_old_libs=$enable_static
20665
20666# Whether or not to add -lc for building shared libraries.
20667build_libtool_need_lc=$archive_cmds_need_lc_RC
20668
20669# Whether or not to disallow shared libs when runtime libs are static
20670allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20671
20672# Whether or not to optimize for fast installation.
20673fast_install=$enable_fast_install
20674
20675# The host system.
20676host_alias=$host_alias
20677host=$host
20678host_os=$host_os
20679
20680# The build system.
20681build_alias=$build_alias
20682build=$build
20683build_os=$build_os
20684
20685# An echo program that does not interpret backslashes.
20686echo=$lt_echo
20687
20688# The archiver.
20689AR=$lt_AR
20690AR_FLAGS=$lt_AR_FLAGS
20691
20692# A C compiler.
20693LTCC=$lt_LTCC
20694
20695# LTCC compiler flags.
20696LTCFLAGS=$lt_LTCFLAGS
20697
20698# A language-specific compiler.
20699CC=$lt_compiler_RC
20700
20701# Is the compiler the GNU C compiler?
20702with_gcc=$GCC_RC
20703
20704# An ERE matcher.
20705EGREP=$lt_EGREP
20706
20707# The linker used to build libraries.
20708LD=$lt_LD_RC
20709
20710# Whether we need hard or soft links.
20711LN_S=$lt_LN_S
20712
20713# A BSD-compatible nm program.
20714NM=$lt_NM
20715
20716# A symbol stripping program
20717STRIP=$lt_STRIP
20718
20719# Used to examine libraries when file_magic_cmd begins "file"
20720MAGIC_CMD=$MAGIC_CMD
20721
20722# Used on cygwin: DLL creation program.
20723DLLTOOL="$DLLTOOL"
20724
20725# Used on cygwin: object dumper.
20726OBJDUMP="$OBJDUMP"
20727
20728# Used on cygwin: assembler.
20729AS="$AS"
20730
20731# The name of the directory that contains temporary libtool files.
20732objdir=$objdir
20733
20734# How to create reloadable object files.
20735reload_flag=$lt_reload_flag
20736reload_cmds=$lt_reload_cmds
20737
20738# How to pass a linker flag through the compiler.
20739wl=$lt_lt_prog_compiler_wl_RC
20740
20741# Object file suffix (normally "o").
20742objext="$ac_objext"
20743
20744# Old archive suffix (normally "a").
20745libext="$libext"
20746
20747# Shared library suffix (normally ".so").
20748shrext_cmds='$shrext_cmds'
20749
20750# Executable file suffix (normally "").
20751exeext="$exeext"
20752
20753# Additional compiler flags for building library objects.
20754pic_flag=$lt_lt_prog_compiler_pic_RC
20755pic_mode=$pic_mode
20756
20757# What is the maximum length of a command?
20758max_cmd_len=$lt_cv_sys_max_cmd_len
20759
20760# Does compiler simultaneously support -c and -o options?
20761compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20762
20763# Must we lock files when doing compilation?
20764need_locks=$lt_need_locks
20765
20766# Do we need the lib prefix for modules?
20767need_lib_prefix=$need_lib_prefix
20768
20769# Do we need a version for libraries?
20770need_version=$need_version
20771
20772# Whether dlopen is supported.
20773dlopen_support=$enable_dlopen
20774
20775# Whether dlopen of programs is supported.
20776dlopen_self=$enable_dlopen_self
20777
20778# Whether dlopen of statically linked programs is supported.
20779dlopen_self_static=$enable_dlopen_self_static
20780
20781# Compiler flag to prevent dynamic linking.
20782link_static_flag=$lt_lt_prog_compiler_static_RC
20783
20784# Compiler flag to turn off builtin functions.
20785no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20786
20787# Compiler flag to allow reflexive dlopens.
20788export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20789
20790# Compiler flag to generate shared objects directly from archives.
20791whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20792
20793# Compiler flag to generate thread-safe objects.
20794thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20795
20796# Library versioning type.
20797version_type=$version_type
20798
20799# Format of library name prefix.
20800libname_spec=$lt_libname_spec
20801
20802# List of archive names. First name is the real one, the rest are links.
20803# The last name is the one that the linker finds with -lNAME.
20804library_names_spec=$lt_library_names_spec
20805
20806# The coded name of the library, if different from the real name.
20807soname_spec=$lt_soname_spec
20808
20809# Commands used to build and install an old-style archive.
20810RANLIB=$lt_RANLIB
20811old_archive_cmds=$lt_old_archive_cmds_RC
20812old_postinstall_cmds=$lt_old_postinstall_cmds
20813old_postuninstall_cmds=$lt_old_postuninstall_cmds
20814
20815# Create an old-style archive from a shared archive.
20816old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20817
20818# Create a temporary old-style archive to link instead of a shared archive.
20819old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20820
20821# Commands used to build and install a shared archive.
20822archive_cmds=$lt_archive_cmds_RC
20823archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20824postinstall_cmds=$lt_postinstall_cmds
20825postuninstall_cmds=$lt_postuninstall_cmds
20826
20827# Commands used to build a loadable module (assumed same as above if empty)
20828module_cmds=$lt_module_cmds_RC
20829module_expsym_cmds=$lt_module_expsym_cmds_RC
20830
20831# Commands to strip libraries.
20832old_striplib=$lt_old_striplib
20833striplib=$lt_striplib
20834
20835# Dependencies to place before the objects being linked to create a
20836# shared library.
20837predep_objects=$lt_predep_objects_RC
20838
20839# Dependencies to place after the objects being linked to create a
20840# shared library.
20841postdep_objects=$lt_postdep_objects_RC
20842
20843# Dependencies to place before the objects being linked to create a
20844# shared library.
20845predeps=$lt_predeps_RC
20846
20847# Dependencies to place after the objects being linked to create a
20848# shared library.
20849postdeps=$lt_postdeps_RC
20850
56efe974
WP
20851# The directories searched by this compiler when creating a shared
20852# library
20853compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
20854
b57f37fb
WP
20855# The library search path used internally by the compiler when linking
20856# a shared library.
20857compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20858
20859# Method to check whether dependent libraries are shared objects.
20860deplibs_check_method=$lt_deplibs_check_method
20861
20862# Command to use when deplibs_check_method == file_magic.
20863file_magic_cmd=$lt_file_magic_cmd
20864
20865# Flag that allows shared libraries with undefined symbols to be built.
20866allow_undefined_flag=$lt_allow_undefined_flag_RC
20867
20868# Flag that forces no undefined symbols.
20869no_undefined_flag=$lt_no_undefined_flag_RC
20870
20871# Commands used to finish a libtool library installation in a directory.
20872finish_cmds=$lt_finish_cmds
20873
20874# Same as above, but a single script fragment to be evaled but not shown.
20875finish_eval=$lt_finish_eval
20876
20877# Take the output of nm and produce a listing of raw symbols and C names.
20878global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20879
20880# Transform the output of nm in a proper C declaration
20881global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20882
20883# Transform the output of nm in a C name address pair
20884global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20885
20886# This is the shared library runtime path variable.
20887runpath_var=$runpath_var
20888
20889# This is the shared library path variable.
20890shlibpath_var=$shlibpath_var
20891
20892# Is shlibpath searched before the hard-coded library search path?
20893shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20894
20895# How to hardcode a shared library path into an executable.
20896hardcode_action=$hardcode_action_RC
20897
20898# Whether we should hardcode library paths into libraries.
20899hardcode_into_libs=$hardcode_into_libs
20900
20901# Flag to hardcode \$libdir into a binary during linking.
20902# This must work even if \$libdir does not exist.
20903hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20904
20905# If ld is used when linking, flag to hardcode \$libdir into
20906# a binary during linking. This must work even if \$libdir does
20907# not exist.
20908hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20909
20910# Whether we need a single -rpath flag with a separated argument.
20911hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20912
20913# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20914# resulting binary.
20915hardcode_direct=$hardcode_direct_RC
20916
20917# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20918# resulting binary.
20919hardcode_minus_L=$hardcode_minus_L_RC
20920
20921# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20922# the resulting binary.
20923hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20924
20925# Set to yes if building a shared library automatically hardcodes DIR into the library
20926# and all subsequent libraries and executables linked against it.
20927hardcode_automatic=$hardcode_automatic_RC
20928
20929# Variables whose values should be saved in libtool wrapper scripts and
20930# restored at relink time.
20931variables_saved_for_relink="$variables_saved_for_relink"
20932
20933# Whether libtool must link a program against all its dependency libraries.
20934link_all_deplibs=$link_all_deplibs_RC
20935
20936# Compile-time system search path for libraries
20937sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20938
20939# Run-time system search path for libraries
20940sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20941
20942# Fix the shell variable \$srcfile for the compiler.
20943fix_srcfile_path=$lt_fix_srcfile_path
20944
20945# Set to yes if exported symbols are required.
20946always_export_symbols=$always_export_symbols_RC
20947
20948# The commands to list exported symbols.
20949export_symbols_cmds=$lt_export_symbols_cmds_RC
20950
20951# The commands to extract the exported symbol list from a shared archive.
20952extract_expsyms_cmds=$lt_extract_expsyms_cmds
20953
20954# Symbols that should not be listed in the preloaded symbols.
20955exclude_expsyms=$lt_exclude_expsyms_RC
20956
20957# Symbols that must always be exported.
20958include_expsyms=$lt_include_expsyms_RC
20959
20960# ### END LIBTOOL TAG CONFIG: $tagname
20961
20962__EOF__
20963
20964
20965else
20966 # If there is no Makefile yet, we rely on a make rule to execute
20967 # `config.status --recheck' to rerun these tests and create the
20968 # libtool script then.
20969 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20970 if test -f "$ltmain_in"; then
20971 test -f Makefile && make "$ltmain"
20972 fi
20973fi
20974
20975
20976ac_ext=c
20977ac_cpp='$CPP $CPPFLAGS'
20978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20980ac_compiler_gnu=$ac_cv_c_compiler_gnu
20981
20982CC="$lt_save_CC"
20983
20984 ;;
20985
20986 *)
20987 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20988echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20989 { (exit 1); exit 1; }; }
20990 ;;
20991 esac
20992
20993 # Append the new tag name to the list of available tags.
20994 if test -n "$tagname" ; then
20995 available_tags="$available_tags $tagname"
20996 fi
20997 fi
20998 done
20999 IFS="$lt_save_ifs"
21000
21001 # Now substitute the updated list of available tags.
21002 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21003 mv "${ofile}T" "$ofile"
21004 chmod +x "$ofile"
21005 else
21006 rm -f "${ofile}T"
21007 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21008echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21009 { (exit 1); exit 1; }; }
21010 fi
21011fi
21012
21013
21014
21015# This can be used to rebuild libtool when needed
21016LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21017
21018# Always use our own libtool.
21019LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21020
21021# Prevent multiple expansion
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043LIBTOOL="$LIBTOOL --silent"
21044
21045subdirs="$subdirs libltdl"
21046
21047
21048
21049case "$host_os" in
21050*cygwin*)
21051
21052cat >>confdefs.h <<_ACEOF
21053#define CYGWIN 1
21054_ACEOF
21055
21056
21057cat >>confdefs.h <<_ACEOF
21058#define WINDOWS 1
21059_ACEOF
21060
21061 ;;
21062*mingw*)
21063
21064cat >>confdefs.h <<_ACEOF
21065#define MINGW 1
21066_ACEOF
21067
21068
21069cat >>confdefs.h <<_ACEOF
21070#define WINDOWS 1
21071_ACEOF
21072
21073 if test "${ac_cv_header_windows_h+set}" = set; then
21074 { echo "$as_me:$LINENO: checking for windows.h" >&5
21075echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
21076if test "${ac_cv_header_windows_h+set}" = set; then
21077 echo $ECHO_N "(cached) $ECHO_C" >&6
21078fi
21079{ echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21080echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
21081else
21082 # Is the header compilable?
21083{ echo "$as_me:$LINENO: checking windows.h usability" >&5
21084echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6; }
21085cat >conftest.$ac_ext <<_ACEOF
21086/* confdefs.h. */
21087_ACEOF
21088cat confdefs.h >>conftest.$ac_ext
21089cat >>conftest.$ac_ext <<_ACEOF
21090/* end confdefs.h. */
21091$ac_includes_default
21092#include <windows.h>
21093_ACEOF
21094rm -f conftest.$ac_objext
21095if { (ac_try="$ac_compile"
21096case "(($ac_try" in
21097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21098 *) ac_try_echo=$ac_try;;
21099esac
21100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21101 (eval "$ac_compile") 2>conftest.er1
21102 ac_status=$?
21103 grep -v '^ *+' conftest.er1 >conftest.err
21104 rm -f conftest.er1
21105 cat conftest.err >&5
21106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); } && {
21108 test -z "$ac_c_werror_flag" ||
21109 test ! -s conftest.err
21110 } && test -s conftest.$ac_objext; then
21111 ac_header_compiler=yes
21112else
21113 echo "$as_me: failed program was:" >&5
21114sed 's/^/| /' conftest.$ac_ext >&5
21115
21116 ac_header_compiler=no
21117fi
21118
21119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21120{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21121echo "${ECHO_T}$ac_header_compiler" >&6; }
21122
21123# Is the header present?
21124{ echo "$as_me:$LINENO: checking windows.h presence" >&5
21125echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6; }
21126cat >conftest.$ac_ext <<_ACEOF
21127/* confdefs.h. */
21128_ACEOF
21129cat confdefs.h >>conftest.$ac_ext
21130cat >>conftest.$ac_ext <<_ACEOF
21131/* end confdefs.h. */
21132#include <windows.h>
21133_ACEOF
21134if { (ac_try="$ac_cpp conftest.$ac_ext"
21135case "(($ac_try" in
21136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21137 *) ac_try_echo=$ac_try;;
21138esac
21139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21141 ac_status=$?
21142 grep -v '^ *+' conftest.er1 >conftest.err
21143 rm -f conftest.er1
21144 cat conftest.err >&5
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); } >/dev/null && {
21147 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21148 test ! -s conftest.err
21149 }; then
21150 ac_header_preproc=yes
21151else
21152 echo "$as_me: failed program was:" >&5
21153sed 's/^/| /' conftest.$ac_ext >&5
21154
21155 ac_header_preproc=no
21156fi
21157
21158rm -f conftest.err conftest.$ac_ext
21159{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21160echo "${ECHO_T}$ac_header_preproc" >&6; }
21161
21162# So? What about this header?
21163case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21164 yes:no: )
21165 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
21166echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21167 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
21168echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
21169 ac_header_preproc=yes
21170 ;;
21171 no:yes:* )
21172 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
21173echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
21174 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
21175echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
21176 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
21177echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
21178 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
21179echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
21180 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
21181echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
21182 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
21183echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
21184
21185 ;;
21186esac
21187{ echo "$as_me:$LINENO: checking for windows.h" >&5
21188echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
21189if test "${ac_cv_header_windows_h+set}" = set; then
21190 echo $ECHO_N "(cached) $ECHO_C" >&6
21191else
21192 ac_cv_header_windows_h=$ac_header_preproc
21193fi
21194{ echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21195echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
21196
21197fi
21198if test $ac_cv_header_windows_h = yes; then
21199 :
21200else
21201 { { echo "$as_me:$LINENO: error: ** MinGW and no windows.h. I give up." >&5
21202echo "$as_me: error: ** MinGW and no windows.h. I give up." >&2;}
21203 { (exit 1); exit 1; }; }
21204fi
21205
21206
21207 if test "${ac_cv_header_winsock2_h+set}" = set; then
21208 { echo "$as_me:$LINENO: checking for winsock2.h" >&5
21209echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
21210if test "${ac_cv_header_winsock2_h+set}" = set; then
21211 echo $ECHO_N "(cached) $ECHO_C" >&6
21212fi
21213{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
21214echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
21215else
21216 # Is the header compilable?
21217{ echo "$as_me:$LINENO: checking winsock2.h usability" >&5
21218echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6; }
21219cat >conftest.$ac_ext <<_ACEOF
21220/* confdefs.h. */
21221_ACEOF
21222cat confdefs.h >>conftest.$ac_ext
21223cat >>conftest.$ac_ext <<_ACEOF
21224/* end confdefs.h. */
21225$ac_includes_default
21226#include <winsock2.h>
21227_ACEOF
21228rm -f conftest.$ac_objext
21229if { (ac_try="$ac_compile"
21230case "(($ac_try" in
21231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21232 *) ac_try_echo=$ac_try;;
21233esac
21234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21235 (eval "$ac_compile") 2>conftest.er1
21236 ac_status=$?
21237 grep -v '^ *+' conftest.er1 >conftest.err
21238 rm -f conftest.er1
21239 cat conftest.err >&5
21240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21241 (exit $ac_status); } && {
21242 test -z "$ac_c_werror_flag" ||
21243 test ! -s conftest.err
21244 } && test -s conftest.$ac_objext; then
21245 ac_header_compiler=yes
21246else
21247 echo "$as_me: failed program was:" >&5
21248sed 's/^/| /' conftest.$ac_ext >&5
21249
21250 ac_header_compiler=no
21251fi
21252
21253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21254{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21255echo "${ECHO_T}$ac_header_compiler" >&6; }
21256
21257# Is the header present?
21258{ echo "$as_me:$LINENO: checking winsock2.h presence" >&5
21259echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6; }
21260cat >conftest.$ac_ext <<_ACEOF
21261/* confdefs.h. */
21262_ACEOF
21263cat confdefs.h >>conftest.$ac_ext
21264cat >>conftest.$ac_ext <<_ACEOF
21265/* end confdefs.h. */
21266#include <winsock2.h>
21267_ACEOF
21268if { (ac_try="$ac_cpp conftest.$ac_ext"
21269case "(($ac_try" in
21270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21271 *) ac_try_echo=$ac_try;;
21272esac
21273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21275 ac_status=$?
21276 grep -v '^ *+' conftest.er1 >conftest.err
21277 rm -f conftest.er1
21278 cat conftest.err >&5
21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280 (exit $ac_status); } >/dev/null && {
21281 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21282 test ! -s conftest.err
21283 }; then
21284 ac_header_preproc=yes
21285else
21286 echo "$as_me: failed program was:" >&5
21287sed 's/^/| /' conftest.$ac_ext >&5
21288
21289 ac_header_preproc=no
21290fi
21291
21292rm -f conftest.err conftest.$ac_ext
21293{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21294echo "${ECHO_T}$ac_header_preproc" >&6; }
21295
21296# So? What about this header?
21297case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21298 yes:no: )
21299 { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
21300echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21301 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
21302echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
21303 ac_header_preproc=yes
21304 ;;
21305 no:yes:* )
21306 { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
21307echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
21308 { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5
21309echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;}
21310 { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
21311echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
21312 { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5
21313echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;}
21314 { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
21315echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
21316 { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
21317echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;}
21318
21319 ;;
21320esac
21321{ echo "$as_me:$LINENO: checking for winsock2.h" >&5
21322echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
21323if test "${ac_cv_header_winsock2_h+set}" = set; then
21324 echo $ECHO_N "(cached) $ECHO_C" >&6
21325else
21326 ac_cv_header_winsock2_h=$ac_header_preproc
21327fi
21328{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
21329echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
21330
21331fi
21332if test $ac_cv_header_winsock2_h = yes; then
21333 :
21334else
21335 { { echo "$as_me:$LINENO: error: ** MinGW and no winsock2.h. I give up." >&5
21336echo "$as_me: error: ** MinGW and no winsock2.h. I give up." >&2;}
21337 { (exit 1); exit 1; }; }
21338fi
21339
21340
21341 LIBS="$LIBS -lws2_32 -liphlpapi"
21342 is_mingw="yes"
21343 ;;
21344*interix*)
21345 CPPFLAGS="$CFLAGS -D_ALL_SOURCE -D_XOPEN_SOURCE=500"
21346 ;;
21347*solaris*)
21348 CPPFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS"
21349 ;;
21350*)
21351 ;;
21352esac
21353
21354 if test "$is_mingw" = "yes"; then
21355 MINGW_TRUE=
21356 MINGW_FALSE='#'
21357else
21358 MINGW_TRUE='#'
21359 MINGW_FALSE=
21360fi
21361
21362
21363
21364# backwards support for IRC_CFLAGS
21365CFLAGS="$IRC_CFLAGS $CFLAGS -O0 -Wall"
21366
21367if test "$libexecdir" = '${exec_prefix}/libexec' &&
21368 test "$localstatedir" = '${prefix}/var'; then
21369 libexecdir='${bindir}'
21370 localstatedir='${prefix}'
21371fi
21372
21373
21374 { echo "$as_me:$LINENO: checking for int8_t" >&5
21375echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
21376if test "${ac_cv_c_int8_t+set}" = set; then
21377 echo $ECHO_N "(cached) $ECHO_C" >&6
21378else
21379 ac_cv_c_int8_t=no
21380 for ac_type in 'int8_t' 'int' 'long int' \
21381 'long long int' 'short int' 'signed char'; do
21382 cat >conftest.$ac_ext <<_ACEOF
21383/* confdefs.h. */
21384_ACEOF
21385cat confdefs.h >>conftest.$ac_ext
21386cat >>conftest.$ac_ext <<_ACEOF
21387/* end confdefs.h. */
21388$ac_includes_default
21389int
21390main ()
21391{
21392static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
21393test_array [0] = 0
21394
21395 ;
21396 return 0;
21397}
21398_ACEOF
21399rm -f conftest.$ac_objext
21400if { (ac_try="$ac_compile"
21401case "(($ac_try" in
21402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21403 *) ac_try_echo=$ac_try;;
21404esac
21405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21406 (eval "$ac_compile") 2>conftest.er1
21407 ac_status=$?
21408 grep -v '^ *+' conftest.er1 >conftest.err
21409 rm -f conftest.er1
21410 cat conftest.err >&5
21411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412 (exit $ac_status); } && {
21413 test -z "$ac_c_werror_flag" ||
21414 test ! -s conftest.err
21415 } && test -s conftest.$ac_objext; then
21416 cat >conftest.$ac_ext <<_ACEOF
21417/* confdefs.h. */
21418_ACEOF
21419cat confdefs.h >>conftest.$ac_ext
21420cat >>conftest.$ac_ext <<_ACEOF
21421/* end confdefs.h. */
21422$ac_includes_default
21423int
21424main ()
21425{
21426static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
21427 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
21428test_array [0] = 0
21429
21430 ;
21431 return 0;
21432}
21433_ACEOF
21434rm -f conftest.$ac_objext
21435if { (ac_try="$ac_compile"
21436case "(($ac_try" in
21437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21438 *) ac_try_echo=$ac_try;;
21439esac
21440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21441 (eval "$ac_compile") 2>conftest.er1
21442 ac_status=$?
21443 grep -v '^ *+' conftest.er1 >conftest.err
21444 rm -f conftest.er1
21445 cat conftest.err >&5
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); } && {
21448 test -z "$ac_c_werror_flag" ||
21449 test ! -s conftest.err
21450 } && test -s conftest.$ac_objext; then
21451 :
21452else
21453 echo "$as_me: failed program was:" >&5
21454sed 's/^/| /' conftest.$ac_ext >&5
21455
21456 case $ac_type in
21457 int8_t) ac_cv_c_int8_t=yes ;;
21458 *) ac_cv_c_int8_t=$ac_type ;;
21459esac
21460
21461fi
21462
21463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21464else
21465 echo "$as_me: failed program was:" >&5
21466sed 's/^/| /' conftest.$ac_ext >&5
21467
21468
21469fi
21470
21471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21472 test "$ac_cv_c_int8_t" != no && break
21473 done
21474fi
21475{ echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
21476echo "${ECHO_T}$ac_cv_c_int8_t" >&6; }
21477 case $ac_cv_c_int8_t in #(
21478 no|yes) ;; #(
21479 *)
21480
21481cat >>confdefs.h <<_ACEOF
21482#define int8_t $ac_cv_c_int8_t
21483_ACEOF
21484;;
21485 esac
21486
21487
21488 { echo "$as_me:$LINENO: checking for int16_t" >&5
21489echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
21490if test "${ac_cv_c_int16_t+set}" = set; then
21491 echo $ECHO_N "(cached) $ECHO_C" >&6
21492else
21493 ac_cv_c_int16_t=no
21494 for ac_type in 'int16_t' 'int' 'long int' \
21495 'long long int' 'short int' 'signed char'; do
21496 cat >conftest.$ac_ext <<_ACEOF
21497/* confdefs.h. */
21498_ACEOF
21499cat confdefs.h >>conftest.$ac_ext
21500cat >>conftest.$ac_ext <<_ACEOF
21501/* end confdefs.h. */
21502$ac_includes_default
21503int
21504main ()
21505{
21506static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
21507test_array [0] = 0
21508
21509 ;
21510 return 0;
21511}
21512_ACEOF
21513rm -f conftest.$ac_objext
21514if { (ac_try="$ac_compile"
21515case "(($ac_try" in
21516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21517 *) ac_try_echo=$ac_try;;
21518esac
21519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21520 (eval "$ac_compile") 2>conftest.er1
21521 ac_status=$?
21522 grep -v '^ *+' conftest.er1 >conftest.err
21523 rm -f conftest.er1
21524 cat conftest.err >&5
21525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21526 (exit $ac_status); } && {
21527 test -z "$ac_c_werror_flag" ||
21528 test ! -s conftest.err
21529 } && test -s conftest.$ac_objext; then
21530 cat >conftest.$ac_ext <<_ACEOF
21531/* confdefs.h. */
21532_ACEOF
21533cat confdefs.h >>conftest.$ac_ext
21534cat >>conftest.$ac_ext <<_ACEOF
21535/* end confdefs.h. */
21536$ac_includes_default
21537int
21538main ()
21539{
21540static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
21541 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
21542test_array [0] = 0
21543
21544 ;
21545 return 0;
21546}
21547_ACEOF
21548rm -f conftest.$ac_objext
21549if { (ac_try="$ac_compile"
21550case "(($ac_try" in
21551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21552 *) ac_try_echo=$ac_try;;
21553esac
21554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21555 (eval "$ac_compile") 2>conftest.er1
21556 ac_status=$?
21557 grep -v '^ *+' conftest.er1 >conftest.err
21558 rm -f conftest.er1
21559 cat conftest.err >&5
21560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561 (exit $ac_status); } && {
21562 test -z "$ac_c_werror_flag" ||
21563 test ! -s conftest.err
21564 } && test -s conftest.$ac_objext; then
21565 :
21566else
21567 echo "$as_me: failed program was:" >&5
21568sed 's/^/| /' conftest.$ac_ext >&5
21569
21570 case $ac_type in
21571 int16_t) ac_cv_c_int16_t=yes ;;
21572 *) ac_cv_c_int16_t=$ac_type ;;
21573esac
21574
21575fi
21576
21577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21578else
21579 echo "$as_me: failed program was:" >&5
21580sed 's/^/| /' conftest.$ac_ext >&5
21581
21582
21583fi
21584
21585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21586 test "$ac_cv_c_int16_t" != no && break
21587 done
21588fi
21589{ echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
21590echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
21591 case $ac_cv_c_int16_t in #(
21592 no|yes) ;; #(
21593 *)
21594
21595cat >>confdefs.h <<_ACEOF
21596#define int16_t $ac_cv_c_int16_t
21597_ACEOF
21598;;
21599 esac
21600
21601
21602 { echo "$as_me:$LINENO: checking for int32_t" >&5
21603echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
21604if test "${ac_cv_c_int32_t+set}" = set; then
21605 echo $ECHO_N "(cached) $ECHO_C" >&6
21606else
21607 ac_cv_c_int32_t=no
21608 for ac_type in 'int32_t' 'int' 'long int' \
21609 'long long int' 'short int' 'signed char'; do
21610 cat >conftest.$ac_ext <<_ACEOF
21611/* confdefs.h. */
21612_ACEOF
21613cat confdefs.h >>conftest.$ac_ext
21614cat >>conftest.$ac_ext <<_ACEOF
21615/* end confdefs.h. */
21616$ac_includes_default
21617int
21618main ()
21619{
21620static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
21621test_array [0] = 0
21622
21623 ;
21624 return 0;
21625}
21626_ACEOF
21627rm -f conftest.$ac_objext
21628if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
21635 ac_status=$?
21636 grep -v '^ *+' conftest.er1 >conftest.err
21637 rm -f conftest.er1
21638 cat conftest.err >&5
21639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640 (exit $ac_status); } && {
21641 test -z "$ac_c_werror_flag" ||
21642 test ! -s conftest.err
21643 } && test -s conftest.$ac_objext; then
21644 cat >conftest.$ac_ext <<_ACEOF
21645/* confdefs.h. */
21646_ACEOF
21647cat confdefs.h >>conftest.$ac_ext
21648cat >>conftest.$ac_ext <<_ACEOF
21649/* end confdefs.h. */
21650$ac_includes_default
21651int
21652main ()
21653{
21654static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
21655 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
21656test_array [0] = 0
21657
21658 ;
21659 return 0;
21660}
21661_ACEOF
21662rm -f conftest.$ac_objext
21663if { (ac_try="$ac_compile"
21664case "(($ac_try" in
21665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21666 *) ac_try_echo=$ac_try;;
21667esac
21668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21669 (eval "$ac_compile") 2>conftest.er1
21670 ac_status=$?
21671 grep -v '^ *+' conftest.er1 >conftest.err
21672 rm -f conftest.er1
21673 cat conftest.err >&5
21674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675 (exit $ac_status); } && {
21676 test -z "$ac_c_werror_flag" ||
21677 test ! -s conftest.err
21678 } && test -s conftest.$ac_objext; then
21679 :
21680else
21681 echo "$as_me: failed program was:" >&5
21682sed 's/^/| /' conftest.$ac_ext >&5
21683
21684 case $ac_type in
21685 int32_t) ac_cv_c_int32_t=yes ;;
21686 *) ac_cv_c_int32_t=$ac_type ;;
21687esac
21688
21689fi
21690
21691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21692else
21693 echo "$as_me: failed program was:" >&5
21694sed 's/^/| /' conftest.$ac_ext >&5
21695
21696
21697fi
21698
21699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21700 test "$ac_cv_c_int32_t" != no && break
21701 done
21702fi
21703{ echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
21704echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
21705 case $ac_cv_c_int32_t in #(
21706 no|yes) ;; #(
21707 *)
21708
21709cat >>confdefs.h <<_ACEOF
21710#define int32_t $ac_cv_c_int32_t
21711_ACEOF
21712;;
21713 esac
21714
21715
21716 { echo "$as_me:$LINENO: checking for int64_t" >&5
21717echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
21718if test "${ac_cv_c_int64_t+set}" = set; then
21719 echo $ECHO_N "(cached) $ECHO_C" >&6
21720else
21721 ac_cv_c_int64_t=no
21722 for ac_type in 'int64_t' 'int' 'long int' \
21723 'long long int' 'short int' 'signed char'; do
21724 cat >conftest.$ac_ext <<_ACEOF
21725/* confdefs.h. */
21726_ACEOF
21727cat confdefs.h >>conftest.$ac_ext
21728cat >>conftest.$ac_ext <<_ACEOF
21729/* end confdefs.h. */
21730$ac_includes_default
21731int
21732main ()
21733{
21734static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
21735test_array [0] = 0
21736
21737 ;
21738 return 0;
21739}
21740_ACEOF
21741rm -f conftest.$ac_objext
21742if { (ac_try="$ac_compile"
21743case "(($ac_try" in
21744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21745 *) ac_try_echo=$ac_try;;
21746esac
21747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21748 (eval "$ac_compile") 2>conftest.er1
21749 ac_status=$?
21750 grep -v '^ *+' conftest.er1 >conftest.err
21751 rm -f conftest.er1
21752 cat conftest.err >&5
21753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754 (exit $ac_status); } && {
21755 test -z "$ac_c_werror_flag" ||
21756 test ! -s conftest.err
21757 } && test -s conftest.$ac_objext; then
21758 cat >conftest.$ac_ext <<_ACEOF
21759/* confdefs.h. */
21760_ACEOF
21761cat confdefs.h >>conftest.$ac_ext
21762cat >>conftest.$ac_ext <<_ACEOF
21763/* end confdefs.h. */
21764$ac_includes_default
21765int
21766main ()
21767{
21768static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
21769 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
21770test_array [0] = 0
21771
21772 ;
21773 return 0;
21774}
21775_ACEOF
21776rm -f conftest.$ac_objext
21777if { (ac_try="$ac_compile"
21778case "(($ac_try" in
21779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21780 *) ac_try_echo=$ac_try;;
21781esac
21782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21783 (eval "$ac_compile") 2>conftest.er1
21784 ac_status=$?
21785 grep -v '^ *+' conftest.er1 >conftest.err
21786 rm -f conftest.er1
21787 cat conftest.err >&5
21788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789 (exit $ac_status); } && {
21790 test -z "$ac_c_werror_flag" ||
21791 test ! -s conftest.err
21792 } && test -s conftest.$ac_objext; then
21793 :
21794else
21795 echo "$as_me: failed program was:" >&5
21796sed 's/^/| /' conftest.$ac_ext >&5
21797
21798 case $ac_type in
21799 int64_t) ac_cv_c_int64_t=yes ;;
21800 *) ac_cv_c_int64_t=$ac_type ;;
21801esac
21802
21803fi
21804
21805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21806else
21807 echo "$as_me: failed program was:" >&5
21808sed 's/^/| /' conftest.$ac_ext >&5
21809
21810
21811fi
21812
21813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21814 test "$ac_cv_c_int64_t" != no && break
21815 done
21816fi
21817{ echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
21818echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
21819 case $ac_cv_c_int64_t in #(
21820 no|yes) ;; #(
21821 *)
21822
21823cat >>confdefs.h <<_ACEOF
21824#define int64_t $ac_cv_c_int64_t
21825_ACEOF
21826;;
21827 esac
21828
21829
21830 { echo "$as_me:$LINENO: checking for uint8_t" >&5
21831echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
21832if test "${ac_cv_c_uint8_t+set}" = set; then
21833 echo $ECHO_N "(cached) $ECHO_C" >&6
21834else
21835 ac_cv_c_uint8_t=no
21836 for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
21837 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
21838 cat >conftest.$ac_ext <<_ACEOF
21839/* confdefs.h. */
21840_ACEOF
21841cat confdefs.h >>conftest.$ac_ext
21842cat >>conftest.$ac_ext <<_ACEOF
21843/* end confdefs.h. */
21844$ac_includes_default
21845int
21846main ()
21847{
21848static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
21849test_array [0] = 0
21850
21851 ;
21852 return 0;
21853}
21854_ACEOF
21855rm -f conftest.$ac_objext
21856if { (ac_try="$ac_compile"
21857case "(($ac_try" in
21858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21859 *) ac_try_echo=$ac_try;;
21860esac
21861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21862 (eval "$ac_compile") 2>conftest.er1
21863 ac_status=$?
21864 grep -v '^ *+' conftest.er1 >conftest.err
21865 rm -f conftest.er1
21866 cat conftest.err >&5
21867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21868 (exit $ac_status); } && {
21869 test -z "$ac_c_werror_flag" ||
21870 test ! -s conftest.err
21871 } && test -s conftest.$ac_objext; then
21872 case $ac_type in
21873 uint8_t) ac_cv_c_uint8_t=yes ;;
21874 *) ac_cv_c_uint8_t=$ac_type ;;
21875esac
21876
21877else
21878 echo "$as_me: failed program was:" >&5
21879sed 's/^/| /' conftest.$ac_ext >&5
21880
21881
21882fi
21883
21884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21885 test "$ac_cv_c_uint8_t" != no && break
21886 done
21887fi
21888{ echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
21889echo "${ECHO_T}$ac_cv_c_uint8_t" >&6; }
21890 case $ac_cv_c_uint8_t in #(
21891 no|yes) ;; #(
21892 *)
21893
21894cat >>confdefs.h <<\_ACEOF
21895#define _UINT8_T 1
21896_ACEOF
21897
21898
21899cat >>confdefs.h <<_ACEOF
21900#define uint8_t $ac_cv_c_uint8_t
21901_ACEOF
21902;;
21903 esac
21904
21905
21906 { echo "$as_me:$LINENO: checking for uint16_t" >&5
21907echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
21908if test "${ac_cv_c_uint16_t+set}" = set; then
21909 echo $ECHO_N "(cached) $ECHO_C" >&6
21910else
21911 ac_cv_c_uint16_t=no
21912 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
21913 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
21914 cat >conftest.$ac_ext <<_ACEOF
21915/* confdefs.h. */
21916_ACEOF
21917cat confdefs.h >>conftest.$ac_ext
21918cat >>conftest.$ac_ext <<_ACEOF
21919/* end confdefs.h. */
21920$ac_includes_default
21921int
21922main ()
21923{
21924static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
21925test_array [0] = 0
21926
21927 ;
21928 return 0;
21929}
21930_ACEOF
21931rm -f conftest.$ac_objext
21932if { (ac_try="$ac_compile"
21933case "(($ac_try" in
21934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21935 *) ac_try_echo=$ac_try;;
21936esac
21937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21938 (eval "$ac_compile") 2>conftest.er1
21939 ac_status=$?
21940 grep -v '^ *+' conftest.er1 >conftest.err
21941 rm -f conftest.er1
21942 cat conftest.err >&5
21943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944 (exit $ac_status); } && {
21945 test -z "$ac_c_werror_flag" ||
21946 test ! -s conftest.err
21947 } && test -s conftest.$ac_objext; then
21948 case $ac_type in
21949 uint16_t) ac_cv_c_uint16_t=yes ;;
21950 *) ac_cv_c_uint16_t=$ac_type ;;
21951esac
21952
21953else
21954 echo "$as_me: failed program was:" >&5
21955sed 's/^/| /' conftest.$ac_ext >&5
21956
21957
21958fi
21959
21960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21961 test "$ac_cv_c_uint16_t" != no && break
21962 done
21963fi
21964{ echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
21965echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
21966 case $ac_cv_c_uint16_t in #(
21967 no|yes) ;; #(
21968 *)
21969
21970
21971cat >>confdefs.h <<_ACEOF
21972#define uint16_t $ac_cv_c_uint16_t
21973_ACEOF
21974;;
21975 esac
21976
21977
21978 { echo "$as_me:$LINENO: checking for uint32_t" >&5
21979echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
21980if test "${ac_cv_c_uint32_t+set}" = set; then
21981 echo $ECHO_N "(cached) $ECHO_C" >&6
21982else
21983 ac_cv_c_uint32_t=no
21984 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
21985 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
21986 cat >conftest.$ac_ext <<_ACEOF
21987/* confdefs.h. */
21988_ACEOF
21989cat confdefs.h >>conftest.$ac_ext
21990cat >>conftest.$ac_ext <<_ACEOF
21991/* end confdefs.h. */
21992$ac_includes_default
21993int
21994main ()
21995{
21996static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
21997test_array [0] = 0
21998
21999 ;
22000 return 0;
22001}
22002_ACEOF
22003rm -f conftest.$ac_objext
22004if { (ac_try="$ac_compile"
22005case "(($ac_try" in
22006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22007 *) ac_try_echo=$ac_try;;
22008esac
22009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22010 (eval "$ac_compile") 2>conftest.er1
22011 ac_status=$?
22012 grep -v '^ *+' conftest.er1 >conftest.err
22013 rm -f conftest.er1
22014 cat conftest.err >&5
22015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016 (exit $ac_status); } && {
22017 test -z "$ac_c_werror_flag" ||
22018 test ! -s conftest.err
22019 } && test -s conftest.$ac_objext; then
22020 case $ac_type in
22021 uint32_t) ac_cv_c_uint32_t=yes ;;
22022 *) ac_cv_c_uint32_t=$ac_type ;;
22023esac
22024
22025else
22026 echo "$as_me: failed program was:" >&5
22027sed 's/^/| /' conftest.$ac_ext >&5
22028
22029
22030fi
22031
22032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22033 test "$ac_cv_c_uint32_t" != no && break
22034 done
22035fi
22036{ echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
22037echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
22038 case $ac_cv_c_uint32_t in #(
22039 no|yes) ;; #(
22040 *)
22041
22042cat >>confdefs.h <<\_ACEOF
22043#define _UINT32_T 1
22044_ACEOF
22045
22046
22047cat >>confdefs.h <<_ACEOF
22048#define uint32_t $ac_cv_c_uint32_t
22049_ACEOF
22050;;
22051 esac
22052
22053
22054 { echo "$as_me:$LINENO: checking for uint64_t" >&5
22055echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
22056if test "${ac_cv_c_uint64_t+set}" = set; then
22057 echo $ECHO_N "(cached) $ECHO_C" >&6
22058else
22059 ac_cv_c_uint64_t=no
22060 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
22061 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
22062 cat >conftest.$ac_ext <<_ACEOF
22063/* confdefs.h. */
22064_ACEOF
22065cat confdefs.h >>conftest.$ac_ext
22066cat >>conftest.$ac_ext <<_ACEOF
22067/* end confdefs.h. */
22068$ac_includes_default
22069int
22070main ()
22071{
22072static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
22073test_array [0] = 0
22074
22075 ;
22076 return 0;
22077}
22078_ACEOF
22079rm -f conftest.$ac_objext
22080if { (ac_try="$ac_compile"
22081case "(($ac_try" in
22082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22083 *) ac_try_echo=$ac_try;;
22084esac
22085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22086 (eval "$ac_compile") 2>conftest.er1
22087 ac_status=$?
22088 grep -v '^ *+' conftest.er1 >conftest.err
22089 rm -f conftest.er1
22090 cat conftest.err >&5
22091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22092 (exit $ac_status); } && {
22093 test -z "$ac_c_werror_flag" ||
22094 test ! -s conftest.err
22095 } && test -s conftest.$ac_objext; then
22096 case $ac_type in
22097 uint64_t) ac_cv_c_uint64_t=yes ;;
22098 *) ac_cv_c_uint64_t=$ac_type ;;
22099esac
22100
22101else
22102 echo "$as_me: failed program was:" >&5
22103sed 's/^/| /' conftest.$ac_ext >&5
22104
22105
22106fi
22107
22108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22109 test "$ac_cv_c_uint64_t" != no && break
22110 done
22111fi
22112{ echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
22113echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
22114 case $ac_cv_c_uint64_t in #(
22115 no|yes) ;; #(
22116 *)
22117
22118cat >>confdefs.h <<\_ACEOF
22119#define _UINT64_T 1
22120_ACEOF
22121
22122
22123cat >>confdefs.h <<_ACEOF
22124#define uint64_t $ac_cv_c_uint64_t
22125_ACEOF
22126;;
22127 esac
22128
22129
22130
22131 { echo "$as_me:$LINENO: checking for intptr_t" >&5
22132echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
22133if test "${ac_cv_type_intptr_t+set}" = set; then
22134 echo $ECHO_N "(cached) $ECHO_C" >&6
22135else
22136 cat >conftest.$ac_ext <<_ACEOF
22137/* confdefs.h. */
22138_ACEOF
22139cat confdefs.h >>conftest.$ac_ext
22140cat >>conftest.$ac_ext <<_ACEOF
22141/* end confdefs.h. */
22142$ac_includes_default
22143typedef intptr_t ac__type_new_;
22144int
22145main ()
22146{
22147if ((ac__type_new_ *) 0)
22148 return 0;
22149if (sizeof (ac__type_new_))
22150 return 0;
22151 ;
22152 return 0;
22153}
22154_ACEOF
22155rm -f conftest.$ac_objext
22156if { (ac_try="$ac_compile"
22157case "(($ac_try" in
22158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22159 *) ac_try_echo=$ac_try;;
22160esac
22161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22162 (eval "$ac_compile") 2>conftest.er1
22163 ac_status=$?
22164 grep -v '^ *+' conftest.er1 >conftest.err
22165 rm -f conftest.er1
22166 cat conftest.err >&5
22167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22168 (exit $ac_status); } && {
22169 test -z "$ac_c_werror_flag" ||
22170 test ! -s conftest.err
22171 } && test -s conftest.$ac_objext; then
22172 ac_cv_type_intptr_t=yes
22173else
22174 echo "$as_me: failed program was:" >&5
22175sed 's/^/| /' conftest.$ac_ext >&5
22176
22177 ac_cv_type_intptr_t=no
22178fi
22179
22180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22181fi
22182{ echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
22183echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
22184if test $ac_cv_type_intptr_t = yes; then
22185
22186cat >>confdefs.h <<\_ACEOF
22187#define HAVE_INTPTR_T 1
22188_ACEOF
22189 ac_cv_c_intptr_t=yes
22190else
22191 for ac_type in 'int' 'long int' 'long long int'; do
22192 cat >conftest.$ac_ext <<_ACEOF
22193/* confdefs.h. */
22194_ACEOF
22195cat confdefs.h >>conftest.$ac_ext
22196cat >>conftest.$ac_ext <<_ACEOF
22197/* end confdefs.h. */
22198$ac_includes_default
22199int
22200main ()
22201{
22202static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22203test_array [0] = 0
22204
22205 ;
22206 return 0;
22207}
22208_ACEOF
22209rm -f conftest.$ac_objext
22210if { (ac_try="$ac_compile"
22211case "(($ac_try" in
22212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22213 *) ac_try_echo=$ac_try;;
22214esac
22215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22216 (eval "$ac_compile") 2>conftest.er1
22217 ac_status=$?
22218 grep -v '^ *+' conftest.er1 >conftest.err
22219 rm -f conftest.er1
22220 cat conftest.err >&5
22221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222 (exit $ac_status); } && {
22223 test -z "$ac_c_werror_flag" ||
22224 test ! -s conftest.err
22225 } && test -s conftest.$ac_objext; then
22226
22227cat >>confdefs.h <<_ACEOF
22228#define intptr_t $ac_type
22229_ACEOF
22230 ac_cv_c_intptr_t="$ac_type"
22231 ac_type=
22232else
22233 echo "$as_me: failed program was:" >&5
22234sed 's/^/| /' conftest.$ac_ext >&5
22235
22236
22237fi
22238
22239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22240 test -z "$ac_type" && break
22241 done
22242fi
22243
22244
22245
22246 { echo "$as_me:$LINENO: checking for long long int" >&5
22247echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
22248if test "${ac_cv_type_long_long_int+set}" = set; then
22249 echo $ECHO_N "(cached) $ECHO_C" >&6
22250else
22251 cat >conftest.$ac_ext <<_ACEOF
56efe974
WP
22252
22253 /* confdefs.h. */
b57f37fb
WP
22254_ACEOF
22255cat confdefs.h >>conftest.$ac_ext
22256cat >>conftest.$ac_ext <<_ACEOF
22257/* end confdefs.h. */
56efe974
WP
22258/* Test preprocessor. */
22259 #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22260 error in preprocessor;
22261 #endif
22262 #if ! (18446744073709551615ULL <= -1ull)
22263 error in preprocessor;
22264 #endif
22265 /* Test literals. */
22266 long long int ll = 9223372036854775807ll;
22267 long long int nll = -9223372036854775807LL;
22268 unsigned long long int ull = 18446744073709551615ULL;
22269 /* Test constant expressions. */
22270 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22271 ? 1 : -1)];
22272 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22273 ? 1 : -1)];
22274 int i = 63;
b57f37fb
WP
22275int
22276main ()
22277{
56efe974
WP
22278/* Test availability of runtime routines for shift and division. */
22279 long long int llmax = 9223372036854775807ll;
22280 unsigned long long int ullmax = 18446744073709551615ull;
22281 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22282 | (llmax / ll) | (llmax % ll)
22283 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22284 | (ullmax / ull) | (ullmax % ull));
b57f37fb
WP
22285 ;
22286 return 0;
22287}
56efe974 22288
b57f37fb
WP
22289_ACEOF
22290rm -f conftest.$ac_objext conftest$ac_exeext
22291if { (ac_try="$ac_link"
22292case "(($ac_try" in
22293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22294 *) ac_try_echo=$ac_try;;
22295esac
22296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22297 (eval "$ac_link") 2>conftest.er1
22298 ac_status=$?
22299 grep -v '^ *+' conftest.er1 >conftest.err
22300 rm -f conftest.er1
22301 cat conftest.err >&5
22302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303 (exit $ac_status); } && {
22304 test -z "$ac_c_werror_flag" ||
22305 test ! -s conftest.err
22306 } && test -s conftest$ac_exeext &&
22307 $as_test_x conftest$ac_exeext; then
56efe974 22308 if test "$cross_compiling" = yes; then
b57f37fb 22309 ac_cv_type_long_long_int=yes
56efe974
WP
22310else
22311 cat >conftest.$ac_ext <<_ACEOF
22312/* confdefs.h. */
22313_ACEOF
22314cat confdefs.h >>conftest.$ac_ext
22315cat >>conftest.$ac_ext <<_ACEOF
22316/* end confdefs.h. */
22317#include <limits.h>
22318 #ifndef LLONG_MAX
22319 # define HALF \
22320 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22321 # define LLONG_MAX (HALF - 1 + HALF)
22322 #endif
22323int
22324main ()
22325{
22326long long int n = 1;
22327 int i;
22328 for (i = 0; ; i++)
22329 {
22330 long long int m = n << i;
22331 if (m >> i != n)
22332 return 1;
22333 if (LLONG_MAX / 2 < m)
22334 break;
22335 }
22336 return 0;
22337 ;
22338 return 0;
22339}
22340_ACEOF
22341rm -f conftest$ac_exeext
22342if { (ac_try="$ac_link"
22343case "(($ac_try" in
22344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22345 *) ac_try_echo=$ac_try;;
22346esac
22347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22348 (eval "$ac_link") 2>&5
22349 ac_status=$?
22350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22352 { (case "(($ac_try" in
22353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22354 *) ac_try_echo=$ac_try;;
22355esac
22356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22357 (eval "$ac_try") 2>&5
22358 ac_status=$?
22359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360 (exit $ac_status); }; }; then
22361 ac_cv_type_long_long_int=yes
22362else
22363 echo "$as_me: program exited with status $ac_status" >&5
22364echo "$as_me: failed program was:" >&5
22365sed 's/^/| /' conftest.$ac_ext >&5
22366
22367( exit $ac_status )
22368ac_cv_type_long_long_int=no
22369fi
22370rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22371fi
22372
22373
b57f37fb
WP
22374else
22375 echo "$as_me: failed program was:" >&5
22376sed 's/^/| /' conftest.$ac_ext >&5
22377
22378 ac_cv_type_long_long_int=no
22379fi
22380
22381rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22382 conftest$ac_exeext conftest.$ac_ext
22383fi
22384{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
22385echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
22386 if test $ac_cv_type_long_long_int = yes; then
22387
22388cat >>confdefs.h <<\_ACEOF
22389#define HAVE_LONG_LONG_INT 1
22390_ACEOF
22391
22392 fi
22393
22394
22395
22396 { echo "$as_me:$LINENO: checking for intmax_t" >&5
22397echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
22398if test "${ac_cv_type_intmax_t+set}" = set; then
22399 echo $ECHO_N "(cached) $ECHO_C" >&6
22400else
22401 cat >conftest.$ac_ext <<_ACEOF
22402/* confdefs.h. */
22403_ACEOF
22404cat confdefs.h >>conftest.$ac_ext
22405cat >>conftest.$ac_ext <<_ACEOF
22406/* end confdefs.h. */
22407$ac_includes_default
22408typedef intmax_t ac__type_new_;
22409int
22410main ()
22411{
22412if ((ac__type_new_ *) 0)
22413 return 0;
22414if (sizeof (ac__type_new_))
22415 return 0;
22416 ;
22417 return 0;
22418}
22419_ACEOF
22420rm -f conftest.$ac_objext
22421if { (ac_try="$ac_compile"
22422case "(($ac_try" in
22423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22424 *) ac_try_echo=$ac_try;;
22425esac
22426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22427 (eval "$ac_compile") 2>conftest.er1
22428 ac_status=$?
22429 grep -v '^ *+' conftest.er1 >conftest.err
22430 rm -f conftest.er1
22431 cat conftest.err >&5
22432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433 (exit $ac_status); } && {
22434 test -z "$ac_c_werror_flag" ||
22435 test ! -s conftest.err
22436 } && test -s conftest.$ac_objext; then
22437 ac_cv_type_intmax_t=yes
22438else
22439 echo "$as_me: failed program was:" >&5
22440sed 's/^/| /' conftest.$ac_ext >&5
22441
22442 ac_cv_type_intmax_t=no
22443fi
22444
22445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22446fi
22447{ echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
22448echo "${ECHO_T}$ac_cv_type_intmax_t" >&6; }
22449if test $ac_cv_type_intmax_t = yes; then
22450
22451cat >>confdefs.h <<\_ACEOF
22452#define HAVE_INTMAX_T 1
22453_ACEOF
22454 ac_cv_c_intmax_t=yes
22455else
22456 test $ac_cv_type_long_long_int = yes \
22457 && ac_type='long long int' \
22458 || ac_type='long int'
22459
22460cat >>confdefs.h <<_ACEOF
22461#define intmax_t $ac_type
22462_ACEOF
22463 ac_cv_c_intmax_t="$ac_type"
22464fi
22465
22466
22467
22468 { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
22469echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
22470if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
22471 echo $ECHO_N "(cached) $ECHO_C" >&6
22472else
22473 cat >conftest.$ac_ext <<_ACEOF
56efe974
WP
22474
22475 /* confdefs.h. */
b57f37fb
WP
22476_ACEOF
22477cat confdefs.h >>conftest.$ac_ext
22478cat >>conftest.$ac_ext <<_ACEOF
22479/* end confdefs.h. */
56efe974
WP
22480/* Test preprocessor. */
22481 #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22482 error in preprocessor;
22483 #endif
22484 #if ! (18446744073709551615ULL <= -1ull)
22485 error in preprocessor;
22486 #endif
22487 /* Test literals. */
22488 long long int ll = 9223372036854775807ll;
22489 long long int nll = -9223372036854775807LL;
22490 unsigned long long int ull = 18446744073709551615ULL;
22491 /* Test constant expressions. */
22492 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22493 ? 1 : -1)];
22494 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22495 ? 1 : -1)];
22496 int i = 63;
b57f37fb
WP
22497int
22498main ()
22499{
56efe974
WP
22500/* Test availability of runtime routines for shift and division. */
22501 long long int llmax = 9223372036854775807ll;
22502 unsigned long long int ullmax = 18446744073709551615ull;
22503 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22504 | (llmax / ll) | (llmax % ll)
22505 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22506 | (ullmax / ull) | (ullmax % ull));
b57f37fb
WP
22507 ;
22508 return 0;
22509}
56efe974 22510
b57f37fb
WP
22511_ACEOF
22512rm -f conftest.$ac_objext conftest$ac_exeext
22513if { (ac_try="$ac_link"
22514case "(($ac_try" in
22515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22516 *) ac_try_echo=$ac_try;;
22517esac
22518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22519 (eval "$ac_link") 2>conftest.er1
22520 ac_status=$?
22521 grep -v '^ *+' conftest.er1 >conftest.err
22522 rm -f conftest.er1
22523 cat conftest.err >&5
22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); } && {
22526 test -z "$ac_c_werror_flag" ||
22527 test ! -s conftest.err
22528 } && test -s conftest$ac_exeext &&
22529 $as_test_x conftest$ac_exeext; then
22530 ac_cv_type_unsigned_long_long_int=yes
22531else
22532 echo "$as_me: failed program was:" >&5
22533sed 's/^/| /' conftest.$ac_ext >&5
22534
22535 ac_cv_type_unsigned_long_long_int=no
22536fi
22537
22538rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22539 conftest$ac_exeext conftest.$ac_ext
22540fi
22541{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
22542echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
22543 if test $ac_cv_type_unsigned_long_long_int = yes; then
22544
22545cat >>confdefs.h <<\_ACEOF
22546#define HAVE_UNSIGNED_LONG_LONG_INT 1
22547_ACEOF
22548
22549 fi
22550
22551
22552
22553 { echo "$as_me:$LINENO: checking for uintmax_t" >&5
22554echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6; }
22555if test "${ac_cv_type_uintmax_t+set}" = set; then
22556 echo $ECHO_N "(cached) $ECHO_C" >&6
22557else
22558 cat >conftest.$ac_ext <<_ACEOF
22559/* confdefs.h. */
22560_ACEOF
22561cat confdefs.h >>conftest.$ac_ext
22562cat >>conftest.$ac_ext <<_ACEOF
22563/* end confdefs.h. */
22564$ac_includes_default
22565typedef uintmax_t ac__type_new_;
22566int
22567main ()
22568{
22569if ((ac__type_new_ *) 0)
22570 return 0;
22571if (sizeof (ac__type_new_))
22572 return 0;
22573 ;
22574 return 0;
22575}
22576_ACEOF
22577rm -f conftest.$ac_objext
22578if { (ac_try="$ac_compile"
22579case "(($ac_try" in
22580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22581 *) ac_try_echo=$ac_try;;
22582esac
22583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22584 (eval "$ac_compile") 2>conftest.er1
22585 ac_status=$?
22586 grep -v '^ *+' conftest.er1 >conftest.err
22587 rm -f conftest.er1
22588 cat conftest.err >&5
22589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22590 (exit $ac_status); } && {
22591 test -z "$ac_c_werror_flag" ||
22592 test ! -s conftest.err
22593 } && test -s conftest.$ac_objext; then
22594 ac_cv_type_uintmax_t=yes
22595else
22596 echo "$as_me: failed program was:" >&5
22597sed 's/^/| /' conftest.$ac_ext >&5
22598
22599 ac_cv_type_uintmax_t=no
22600fi
22601
22602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22603fi
22604{ echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
22605echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6; }
22606if test $ac_cv_type_uintmax_t = yes; then
22607
22608cat >>confdefs.h <<\_ACEOF
22609#define HAVE_UINTMAX_T 1
22610_ACEOF
22611 ac_cv_c_uintmax_t=yes
22612else
22613 test $ac_cv_type_unsigned_long_long_int = yes \
22614 && ac_type='unsigned long long int' \
22615 || ac_type='unsigned long int'
22616
22617cat >>confdefs.h <<_ACEOF
22618#define uintmax_t $ac_type
22619_ACEOF
22620 ac_cv_c_uintmax_t="$ac_type"
22621fi
22622
22623
22624
22625 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
22626echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
22627if test "${ac_cv_type_uintptr_t+set}" = set; then
22628 echo $ECHO_N "(cached) $ECHO_C" >&6
22629else
22630 cat >conftest.$ac_ext <<_ACEOF
22631/* confdefs.h. */
22632_ACEOF
22633cat confdefs.h >>conftest.$ac_ext
22634cat >>conftest.$ac_ext <<_ACEOF
22635/* end confdefs.h. */
22636$ac_includes_default
22637typedef uintptr_t ac__type_new_;
22638int
22639main ()
22640{
22641if ((ac__type_new_ *) 0)
22642 return 0;
22643if (sizeof (ac__type_new_))
22644 return 0;
22645 ;
22646 return 0;
22647}
22648_ACEOF
22649rm -f conftest.$ac_objext
22650if { (ac_try="$ac_compile"
22651case "(($ac_try" in
22652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22653 *) ac_try_echo=$ac_try;;
22654esac
22655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22656 (eval "$ac_compile") 2>conftest.er1
22657 ac_status=$?
22658 grep -v '^ *+' conftest.er1 >conftest.err
22659 rm -f conftest.er1
22660 cat conftest.err >&5
22661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22662 (exit $ac_status); } && {
22663 test -z "$ac_c_werror_flag" ||
22664 test ! -s conftest.err
22665 } && test -s conftest.$ac_objext; then
22666 ac_cv_type_uintptr_t=yes
22667else
22668 echo "$as_me: failed program was:" >&5
22669sed 's/^/| /' conftest.$ac_ext >&5
22670
22671 ac_cv_type_uintptr_t=no
22672fi
22673
22674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22675fi
22676{ echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
22677echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
22678if test $ac_cv_type_uintptr_t = yes; then
22679
22680cat >>confdefs.h <<\_ACEOF
22681#define HAVE_UINTPTR_T 1
22682_ACEOF
22683 ac_cv_c_uintptr_t=yes
22684else
22685 for ac_type in 'unsigned int' 'unsigned long int' \
22686 'unsigned long long int'; do
22687 cat >conftest.$ac_ext <<_ACEOF
22688/* confdefs.h. */
22689_ACEOF
22690cat confdefs.h >>conftest.$ac_ext
22691cat >>conftest.$ac_ext <<_ACEOF
22692/* end confdefs.h. */
22693$ac_includes_default
22694int
22695main ()
22696{
22697static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22698test_array [0] = 0
22699
22700 ;
22701 return 0;
22702}
22703_ACEOF
22704rm -f conftest.$ac_objext
22705if { (ac_try="$ac_compile"
22706case "(($ac_try" in
22707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22708 *) ac_try_echo=$ac_try;;
22709esac
22710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22711 (eval "$ac_compile") 2>conftest.er1
22712 ac_status=$?
22713 grep -v '^ *+' conftest.er1 >conftest.err
22714 rm -f conftest.er1
22715 cat conftest.err >&5
22716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717 (exit $ac_status); } && {
22718 test -z "$ac_c_werror_flag" ||
22719 test ! -s conftest.err
22720 } && test -s conftest.$ac_objext; then
22721
22722cat >>confdefs.h <<_ACEOF
22723#define uintptr_t $ac_type
22724_ACEOF
22725 ac_cv_c_uintptr_t="$ac_type"
22726 ac_type=
22727else
22728 echo "$as_me: failed program was:" >&5
22729sed 's/^/| /' conftest.$ac_ext >&5
22730
22731
22732fi
22733
22734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22735 test -z "$ac_type" && break
22736 done
22737fi
22738
22739
22740
22741{ echo "$as_me:$LINENO: checking for pid_t" >&5
22742echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22743if test "${ac_cv_type_pid_t+set}" = set; then
22744 echo $ECHO_N "(cached) $ECHO_C" >&6
22745else
22746 cat >conftest.$ac_ext <<_ACEOF
22747/* confdefs.h. */
22748_ACEOF
22749cat confdefs.h >>conftest.$ac_ext
22750cat >>conftest.$ac_ext <<_ACEOF
22751/* end confdefs.h. */
22752$ac_includes_default
22753typedef pid_t ac__type_new_;
22754int
22755main ()
22756{
22757if ((ac__type_new_ *) 0)
22758 return 0;
22759if (sizeof (ac__type_new_))
22760 return 0;
22761 ;
22762 return 0;
22763}
22764_ACEOF
22765rm -f conftest.$ac_objext
22766if { (ac_try="$ac_compile"
22767case "(($ac_try" in
22768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22769 *) ac_try_echo=$ac_try;;
22770esac
22771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22772 (eval "$ac_compile") 2>conftest.er1
22773 ac_status=$?
22774 grep -v '^ *+' conftest.er1 >conftest.err
22775 rm -f conftest.er1
22776 cat conftest.err >&5
22777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22778 (exit $ac_status); } && {
22779 test -z "$ac_c_werror_flag" ||
22780 test ! -s conftest.err
22781 } && test -s conftest.$ac_objext; then
22782 ac_cv_type_pid_t=yes
22783else
22784 echo "$as_me: failed program was:" >&5
22785sed 's/^/| /' conftest.$ac_ext >&5
22786
22787 ac_cv_type_pid_t=no
22788fi
22789
22790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22791fi
22792{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22793echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22794if test $ac_cv_type_pid_t = yes; then
22795 :
22796else
22797
22798cat >>confdefs.h <<_ACEOF
22799#define pid_t int
22800_ACEOF
22801
22802fi
22803
22804{ echo "$as_me:$LINENO: checking for size_t" >&5
22805echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22806if test "${ac_cv_type_size_t+set}" = set; then
22807 echo $ECHO_N "(cached) $ECHO_C" >&6
22808else
22809 cat >conftest.$ac_ext <<_ACEOF
22810/* confdefs.h. */
22811_ACEOF
22812cat confdefs.h >>conftest.$ac_ext
22813cat >>conftest.$ac_ext <<_ACEOF
22814/* end confdefs.h. */
22815$ac_includes_default
22816typedef size_t ac__type_new_;
22817int
22818main ()
22819{
22820if ((ac__type_new_ *) 0)
22821 return 0;
22822if (sizeof (ac__type_new_))
22823 return 0;
22824 ;
22825 return 0;
22826}
22827_ACEOF
22828rm -f conftest.$ac_objext
22829if { (ac_try="$ac_compile"
22830case "(($ac_try" in
22831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22832 *) ac_try_echo=$ac_try;;
22833esac
22834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22835 (eval "$ac_compile") 2>conftest.er1
22836 ac_status=$?
22837 grep -v '^ *+' conftest.er1 >conftest.err
22838 rm -f conftest.er1
22839 cat conftest.err >&5
22840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22841 (exit $ac_status); } && {
22842 test -z "$ac_c_werror_flag" ||
22843 test ! -s conftest.err
22844 } && test -s conftest.$ac_objext; then
22845 ac_cv_type_size_t=yes
22846else
22847 echo "$as_me: failed program was:" >&5
22848sed 's/^/| /' conftest.$ac_ext >&5
22849
22850 ac_cv_type_size_t=no
22851fi
22852
22853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22854fi
22855{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22856echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22857if test $ac_cv_type_size_t = yes; then
22858 :
22859else
22860
22861cat >>confdefs.h <<_ACEOF
22862#define size_t unsigned int
22863_ACEOF
22864
22865fi
22866
22867{ echo "$as_me:$LINENO: checking for ssize_t" >&5
22868echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
22869if test "${ac_cv_type_ssize_t+set}" = set; then
22870 echo $ECHO_N "(cached) $ECHO_C" >&6
22871else
22872 cat >conftest.$ac_ext <<_ACEOF
22873/* confdefs.h. */
22874_ACEOF
22875cat confdefs.h >>conftest.$ac_ext
22876cat >>conftest.$ac_ext <<_ACEOF
22877/* end confdefs.h. */
22878$ac_includes_default
22879typedef ssize_t ac__type_new_;
22880int
22881main ()
22882{
22883if ((ac__type_new_ *) 0)
22884 return 0;
22885if (sizeof (ac__type_new_))
22886 return 0;
22887 ;
22888 return 0;
22889}
22890_ACEOF
22891rm -f conftest.$ac_objext
22892if { (ac_try="$ac_compile"
22893case "(($ac_try" in
22894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22895 *) ac_try_echo=$ac_try;;
22896esac
22897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22898 (eval "$ac_compile") 2>conftest.er1
22899 ac_status=$?
22900 grep -v '^ *+' conftest.er1 >conftest.err
22901 rm -f conftest.er1
22902 cat conftest.err >&5
22903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904 (exit $ac_status); } && {
22905 test -z "$ac_c_werror_flag" ||
22906 test ! -s conftest.err
22907 } && test -s conftest.$ac_objext; then
22908 ac_cv_type_ssize_t=yes
22909else
22910 echo "$as_me: failed program was:" >&5
22911sed 's/^/| /' conftest.$ac_ext >&5
22912
22913 ac_cv_type_ssize_t=no
22914fi
22915
22916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22917fi
22918{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22919echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
22920if test $ac_cv_type_ssize_t = yes; then
22921 :
22922else
22923
22924cat >>confdefs.h <<_ACEOF
22925#define ssize_t int
22926_ACEOF
22927
22928fi
22929
22930{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22931echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22932if test "${ac_cv_type_uid_t+set}" = set; then
22933 echo $ECHO_N "(cached) $ECHO_C" >&6
22934else
22935 cat >conftest.$ac_ext <<_ACEOF
22936/* confdefs.h. */
22937_ACEOF
22938cat confdefs.h >>conftest.$ac_ext
22939cat >>conftest.$ac_ext <<_ACEOF
22940/* end confdefs.h. */
22941#include <sys/types.h>
22942
22943_ACEOF
22944if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22945 $EGREP "uid_t" >/dev/null 2>&1; then
22946 ac_cv_type_uid_t=yes
22947else
22948 ac_cv_type_uid_t=no
22949fi
22950rm -f conftest*
22951
22952fi
22953{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22954echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22955if test $ac_cv_type_uid_t = no; then
22956
22957cat >>confdefs.h <<\_ACEOF
22958#define uid_t int
22959_ACEOF
22960
22961
22962cat >>confdefs.h <<\_ACEOF
22963#define gid_t int
22964_ACEOF
22965
22966fi
22967
22968
22969
22970{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22971echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
22972if test "${ac_cv_header_stdc+set}" = set; then
22973 echo $ECHO_N "(cached) $ECHO_C" >&6
22974else
22975 cat >conftest.$ac_ext <<_ACEOF
22976/* confdefs.h. */
22977_ACEOF
22978cat confdefs.h >>conftest.$ac_ext
22979cat >>conftest.$ac_ext <<_ACEOF
22980/* end confdefs.h. */
22981#include <stdlib.h>
22982#include <stdarg.h>
22983#include <string.h>
22984#include <float.h>
22985
22986int
22987main ()
22988{
22989
22990 ;
22991 return 0;
22992}
22993_ACEOF
22994rm -f conftest.$ac_objext
22995if { (ac_try="$ac_compile"
22996case "(($ac_try" in
22997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22998 *) ac_try_echo=$ac_try;;
22999esac
23000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23001 (eval "$ac_compile") 2>conftest.er1
23002 ac_status=$?
23003 grep -v '^ *+' conftest.er1 >conftest.err
23004 rm -f conftest.er1
23005 cat conftest.err >&5
23006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007 (exit $ac_status); } && {
23008 test -z "$ac_c_werror_flag" ||
23009 test ! -s conftest.err
23010 } && test -s conftest.$ac_objext; then
23011 ac_cv_header_stdc=yes
23012else
23013 echo "$as_me: failed program was:" >&5
23014sed 's/^/| /' conftest.$ac_ext >&5
23015
23016 ac_cv_header_stdc=no
23017fi
23018
23019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23020
23021if test $ac_cv_header_stdc = yes; then
23022 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23023 cat >conftest.$ac_ext <<_ACEOF
23024/* confdefs.h. */
23025_ACEOF
23026cat confdefs.h >>conftest.$ac_ext
23027cat >>conftest.$ac_ext <<_ACEOF
23028/* end confdefs.h. */
23029#include <string.h>
23030
23031_ACEOF
23032if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23033 $EGREP "memchr" >/dev/null 2>&1; then
23034 :
23035else
23036 ac_cv_header_stdc=no
23037fi
23038rm -f conftest*
23039
23040fi
23041
23042if test $ac_cv_header_stdc = yes; then
23043 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23044 cat >conftest.$ac_ext <<_ACEOF
23045/* confdefs.h. */
23046_ACEOF
23047cat confdefs.h >>conftest.$ac_ext
23048cat >>conftest.$ac_ext <<_ACEOF
23049/* end confdefs.h. */
23050#include <stdlib.h>
23051
23052_ACEOF
23053if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23054 $EGREP "free" >/dev/null 2>&1; then
23055 :
23056else
23057 ac_cv_header_stdc=no
23058fi
23059rm -f conftest*
23060
23061fi
23062
23063if test $ac_cv_header_stdc = yes; then
23064 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23065 if test "$cross_compiling" = yes; then
23066 :
23067else
23068 cat >conftest.$ac_ext <<_ACEOF
23069/* confdefs.h. */
23070_ACEOF
23071cat confdefs.h >>conftest.$ac_ext
23072cat >>conftest.$ac_ext <<_ACEOF
23073/* end confdefs.h. */
23074#include <ctype.h>
23075#include <stdlib.h>
23076#if ((' ' & 0x0FF) == 0x020)
23077# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23078# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23079#else
23080# define ISLOWER(c) \
23081 (('a' <= (c) && (c) <= 'i') \
23082 || ('j' <= (c) && (c) <= 'r') \
23083 || ('s' <= (c) && (c) <= 'z'))
23084# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23085#endif
23086
23087#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23088int
23089main ()
23090{
23091 int i;
23092 for (i = 0; i < 256; i++)
23093 if (XOR (islower (i), ISLOWER (i))
23094 || toupper (i) != TOUPPER (i))
23095 return 2;
23096 return 0;
23097}
23098_ACEOF
23099rm -f conftest$ac_exeext
23100if { (ac_try="$ac_link"
23101case "(($ac_try" in
23102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23103 *) ac_try_echo=$ac_try;;
23104esac
23105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23106 (eval "$ac_link") 2>&5
23107 ac_status=$?
23108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23109 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23110 { (case "(($ac_try" in
23111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23112 *) ac_try_echo=$ac_try;;
23113esac
23114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23115 (eval "$ac_try") 2>&5
23116 ac_status=$?
23117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23118 (exit $ac_status); }; }; then
23119 :
23120else
23121 echo "$as_me: program exited with status $ac_status" >&5
23122echo "$as_me: failed program was:" >&5
23123sed 's/^/| /' conftest.$ac_ext >&5
23124
23125( exit $ac_status )
23126ac_cv_header_stdc=no
23127fi
23128rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23129fi
23130
23131
23132fi
23133fi
23134{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
23135echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
23136if test $ac_cv_header_stdc = yes; then
23137
23138cat >>confdefs.h <<\_ACEOF
23139#define STDC_HEADERS 1
23140_ACEOF
23141
23142fi
23143
23144
23145
23146
23147
23148
23149
23150
23151
23152
23153
23154
23155
23156
23157
23158
23159
23160
23161
23162
23163
23164for 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
23165do
23166as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23167if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23168 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23169echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23170if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23171 echo $ECHO_N "(cached) $ECHO_C" >&6
23172fi
23173ac_res=`eval echo '${'$as_ac_Header'}'`
23174 { echo "$as_me:$LINENO: result: $ac_res" >&5
23175echo "${ECHO_T}$ac_res" >&6; }
23176else
23177 # Is the header compilable?
23178{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
23179echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23180cat >conftest.$ac_ext <<_ACEOF
23181/* confdefs.h. */
23182_ACEOF
23183cat confdefs.h >>conftest.$ac_ext
23184cat >>conftest.$ac_ext <<_ACEOF
23185/* end confdefs.h. */
23186$ac_includes_default
23187#include <$ac_header>
23188_ACEOF
23189rm -f conftest.$ac_objext
23190if { (ac_try="$ac_compile"
23191case "(($ac_try" in
23192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23193 *) ac_try_echo=$ac_try;;
23194esac
23195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23196 (eval "$ac_compile") 2>conftest.er1
23197 ac_status=$?
23198 grep -v '^ *+' conftest.er1 >conftest.err
23199 rm -f conftest.er1
23200 cat conftest.err >&5
23201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23202 (exit $ac_status); } && {
23203 test -z "$ac_c_werror_flag" ||
23204 test ! -s conftest.err
23205 } && test -s conftest.$ac_objext; then
23206 ac_header_compiler=yes
23207else
23208 echo "$as_me: failed program was:" >&5
23209sed 's/^/| /' conftest.$ac_ext >&5
23210
23211 ac_header_compiler=no
23212fi
23213
23214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23215{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23216echo "${ECHO_T}$ac_header_compiler" >&6; }
23217
23218# Is the header present?
23219{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
23220echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23221cat >conftest.$ac_ext <<_ACEOF
23222/* confdefs.h. */
23223_ACEOF
23224cat confdefs.h >>conftest.$ac_ext
23225cat >>conftest.$ac_ext <<_ACEOF
23226/* end confdefs.h. */
23227#include <$ac_header>
23228_ACEOF
23229if { (ac_try="$ac_cpp conftest.$ac_ext"
23230case "(($ac_try" in
23231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23232 *) ac_try_echo=$ac_try;;
23233esac
23234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23236 ac_status=$?
23237 grep -v '^ *+' conftest.er1 >conftest.err
23238 rm -f conftest.er1
23239 cat conftest.err >&5
23240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); } >/dev/null && {
23242 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23243 test ! -s conftest.err
23244 }; then
23245 ac_header_preproc=yes
23246else
23247 echo "$as_me: failed program was:" >&5
23248sed 's/^/| /' conftest.$ac_ext >&5
23249
23250 ac_header_preproc=no
23251fi
23252
23253rm -f conftest.err conftest.$ac_ext
23254{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23255echo "${ECHO_T}$ac_header_preproc" >&6; }
23256
23257# So? What about this header?
23258case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23259 yes:no: )
23260 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23261echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23263echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23264 ac_header_preproc=yes
23265 ;;
23266 no:yes:* )
23267 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23268echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23269 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23270echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23271 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23272echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23273 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23274echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23276echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23277 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23278echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23279
23280 ;;
23281esac
23282{ echo "$as_me:$LINENO: checking for $ac_header" >&5
23283echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23284if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23285 echo $ECHO_N "(cached) $ECHO_C" >&6
23286else
23287 eval "$as_ac_Header=\$ac_header_preproc"
23288fi
23289ac_res=`eval echo '${'$as_ac_Header'}'`
23290 { echo "$as_me:$LINENO: result: $ac_res" >&5
23291echo "${ECHO_T}$ac_res" >&6; }
23292
23293fi
23294if test `eval echo '${'$as_ac_Header'}'` = yes; then
23295 cat >>confdefs.h <<_ACEOF
23296#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23297_ACEOF
23298
23299fi
23300
23301done
23302
23303{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
23304echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
23305if test "${ac_cv_header_time+set}" = set; then
23306 echo $ECHO_N "(cached) $ECHO_C" >&6
23307else
23308 cat >conftest.$ac_ext <<_ACEOF
23309/* confdefs.h. */
23310_ACEOF
23311cat confdefs.h >>conftest.$ac_ext
23312cat >>conftest.$ac_ext <<_ACEOF
23313/* end confdefs.h. */
23314#include <sys/types.h>
23315#include <sys/time.h>
23316#include <time.h>
23317
23318int
23319main ()
23320{
23321if ((struct tm *) 0)
23322return 0;
23323 ;
23324 return 0;
23325}
23326_ACEOF
23327rm -f conftest.$ac_objext
23328if { (ac_try="$ac_compile"
23329case "(($ac_try" in
23330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23331 *) ac_try_echo=$ac_try;;
23332esac
23333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23334 (eval "$ac_compile") 2>conftest.er1
23335 ac_status=$?
23336 grep -v '^ *+' conftest.er1 >conftest.err
23337 rm -f conftest.er1
23338 cat conftest.err >&5
23339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23340 (exit $ac_status); } && {
23341 test -z "$ac_c_werror_flag" ||
23342 test ! -s conftest.err
23343 } && test -s conftest.$ac_objext; then
23344 ac_cv_header_time=yes
23345else
23346 echo "$as_me: failed program was:" >&5
23347sed 's/^/| /' conftest.$ac_ext >&5
23348
23349 ac_cv_header_time=no
23350fi
23351
23352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23353fi
23354{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
23355echo "${ECHO_T}$ac_cv_header_time" >&6; }
23356if test $ac_cv_header_time = yes; then
23357
23358cat >>confdefs.h <<\_ACEOF
23359#define TIME_WITH_SYS_TIME 1
23360_ACEOF
23361
23362fi
23363
23364
23365
23366{ echo "$as_me:$LINENO: checking for library containing socket" >&5
23367echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
23368if test "${ac_cv_search_socket+set}" = set; then
23369 echo $ECHO_N "(cached) $ECHO_C" >&6
23370else
23371 ac_func_search_save_LIBS=$LIBS
23372cat >conftest.$ac_ext <<_ACEOF
23373/* confdefs.h. */
23374_ACEOF
23375cat confdefs.h >>conftest.$ac_ext
23376cat >>conftest.$ac_ext <<_ACEOF
23377/* end confdefs.h. */
23378
23379/* Override any GCC internal prototype to avoid an error.
23380 Use char because int might match the return type of a GCC
23381 builtin and then its argument prototype would still apply. */
23382#ifdef __cplusplus
23383extern "C"
23384#endif
23385char socket ();
23386int
23387main ()
23388{
23389return socket ();
23390 ;
23391 return 0;
23392}
23393_ACEOF
23394for ac_lib in '' socket; do
23395 if test -z "$ac_lib"; then
23396 ac_res="none required"
23397 else
23398 ac_res=-l$ac_lib
23399 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23400 fi
23401 rm -f conftest.$ac_objext conftest$ac_exeext
23402if { (ac_try="$ac_link"
23403case "(($ac_try" in
23404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23405 *) ac_try_echo=$ac_try;;
23406esac
23407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23408 (eval "$ac_link") 2>conftest.er1
23409 ac_status=$?
23410 grep -v '^ *+' conftest.er1 >conftest.err
23411 rm -f conftest.er1
23412 cat conftest.err >&5
23413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414 (exit $ac_status); } && {
23415 test -z "$ac_c_werror_flag" ||
23416 test ! -s conftest.err
23417 } && test -s conftest$ac_exeext &&
23418 $as_test_x conftest$ac_exeext; then
23419 ac_cv_search_socket=$ac_res
23420else
23421 echo "$as_me: failed program was:" >&5
23422sed 's/^/| /' conftest.$ac_ext >&5
23423
23424
23425fi
23426
23427rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23428 conftest$ac_exeext
23429 if test "${ac_cv_search_socket+set}" = set; then
23430 break
23431fi
23432done
23433if test "${ac_cv_search_socket+set}" = set; then
23434 :
23435else
23436 ac_cv_search_socket=no
23437fi
23438rm conftest.$ac_ext
23439LIBS=$ac_func_search_save_LIBS
23440fi
23441{ echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
23442echo "${ECHO_T}$ac_cv_search_socket" >&6; }
23443ac_res=$ac_cv_search_socket
23444if test "$ac_res" != no; then
23445 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23446
23447fi
23448
23449
23450
23451{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
23452echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
23453if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
23454 echo $ECHO_N "(cached) $ECHO_C" >&6
23455else
23456 cat >conftest.$ac_ext <<_ACEOF
23457/* confdefs.h. */
23458_ACEOF
23459cat confdefs.h >>conftest.$ac_ext
23460cat >>conftest.$ac_ext <<_ACEOF
23461/* end confdefs.h. */
23462
23463#ifdef HAVE_SYS_TYPES_H
23464#include <sys/types.h>
23465#endif
23466#ifdef HAVE_SYS_SOCKET_H
23467#include <sys/socket.h>
23468#endif
23469#ifdef HAVE_WINSOCK2_H
23470#include <winsock2.h>
23471#endif
23472
23473
23474int
23475main ()
23476{
23477static struct sockaddr ac_aggr;
23478if (ac_aggr.sa_len)
23479return 0;
23480 ;
23481 return 0;
23482}
23483_ACEOF
23484rm -f conftest.$ac_objext
23485if { (ac_try="$ac_compile"
23486case "(($ac_try" in
23487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23488 *) ac_try_echo=$ac_try;;
23489esac
23490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23491 (eval "$ac_compile") 2>conftest.er1
23492 ac_status=$?
23493 grep -v '^ *+' conftest.er1 >conftest.err
23494 rm -f conftest.er1
23495 cat conftest.err >&5
23496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497 (exit $ac_status); } && {
23498 test -z "$ac_c_werror_flag" ||
23499 test ! -s conftest.err
23500 } && test -s conftest.$ac_objext; then
23501 ac_cv_member_struct_sockaddr_sa_len=yes
23502else
23503 echo "$as_me: failed program was:" >&5
23504sed 's/^/| /' conftest.$ac_ext >&5
23505
23506 cat >conftest.$ac_ext <<_ACEOF
23507/* confdefs.h. */
23508_ACEOF
23509cat confdefs.h >>conftest.$ac_ext
23510cat >>conftest.$ac_ext <<_ACEOF
23511/* end confdefs.h. */
23512
23513#ifdef HAVE_SYS_TYPES_H
23514#include <sys/types.h>
23515#endif
23516#ifdef HAVE_SYS_SOCKET_H
23517#include <sys/socket.h>
23518#endif
23519#ifdef HAVE_WINSOCK2_H
23520#include <winsock2.h>
23521#endif
23522
23523
23524int
23525main ()
23526{
23527static struct sockaddr ac_aggr;
23528if (sizeof ac_aggr.sa_len)
23529return 0;
23530 ;
23531 return 0;
23532}
23533_ACEOF
23534rm -f conftest.$ac_objext
23535if { (ac_try="$ac_compile"
23536case "(($ac_try" in
23537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23538 *) ac_try_echo=$ac_try;;
23539esac
23540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23541 (eval "$ac_compile") 2>conftest.er1
23542 ac_status=$?
23543 grep -v '^ *+' conftest.er1 >conftest.err
23544 rm -f conftest.er1
23545 cat conftest.err >&5
23546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23547 (exit $ac_status); } && {
23548 test -z "$ac_c_werror_flag" ||
23549 test ! -s conftest.err
23550 } && test -s conftest.$ac_objext; then
23551 ac_cv_member_struct_sockaddr_sa_len=yes
23552else
23553 echo "$as_me: failed program was:" >&5
23554sed 's/^/| /' conftest.$ac_ext >&5
23555
23556 ac_cv_member_struct_sockaddr_sa_len=no
23557fi
23558
23559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23560fi
23561
23562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23563fi
23564{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
23565echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
23566if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
23567
23568cat >>confdefs.h <<\_ACEOF
23569#define SOCKADDR_IN_HAS_LEN 1
23570_ACEOF
23571
23572fi
23573
23574
23575{ echo "$as_me:$LINENO: checking for socklen_t" >&5
23576echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23577if test "${ac_cv_type_socklen_t+set}" = set; then
23578 echo $ECHO_N "(cached) $ECHO_C" >&6
23579else
23580 cat >conftest.$ac_ext <<_ACEOF
23581/* confdefs.h. */
23582_ACEOF
23583cat confdefs.h >>conftest.$ac_ext
23584cat >>conftest.$ac_ext <<_ACEOF
23585/* end confdefs.h. */
23586
23587#ifdef HAVE_SYS_TYPES_H
23588#include <sys/types.h>
23589#endif
23590#ifdef HAVE_SYS_SOCKET_H
23591#include <sys/socket.h>
23592#endif
23593#ifdef HAVE_WINSOCK2_H
23594#include <winsock2.h>
23595#endif
23596
23597
23598
23599typedef socklen_t ac__type_new_;
23600int
23601main ()
23602{
23603if ((ac__type_new_ *) 0)
23604 return 0;
23605if (sizeof (ac__type_new_))
23606 return 0;
23607 ;
23608 return 0;
23609}
23610_ACEOF
23611rm -f conftest.$ac_objext
23612if { (ac_try="$ac_compile"
23613case "(($ac_try" in
23614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23615 *) ac_try_echo=$ac_try;;
23616esac
23617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23618 (eval "$ac_compile") 2>conftest.er1
23619 ac_status=$?
23620 grep -v '^ *+' conftest.er1 >conftest.err
23621 rm -f conftest.er1
23622 cat conftest.err >&5
23623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23624 (exit $ac_status); } && {
23625 test -z "$ac_c_werror_flag" ||
23626 test ! -s conftest.err
23627 } && test -s conftest.$ac_objext; then
23628 ac_cv_type_socklen_t=yes
23629else
23630 echo "$as_me: failed program was:" >&5
23631sed 's/^/| /' conftest.$ac_ext >&5
23632
23633 ac_cv_type_socklen_t=no
23634fi
23635
23636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23637fi
23638{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
23639echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
23640if test $ac_cv_type_socklen_t = yes; then
23641 :
23642else
23643
23644cat >>confdefs.h <<\_ACEOF
23645#define socklen_t unsigned int
23646_ACEOF
23647
23648fi
23649
23650
23651# Check whether --enable-ipv6 was given.
23652if test "${enable_ipv6+set}" = set; then
23653 enableval=$enable_ipv6; ipv6=$enableval
23654else
23655 ipv6=yes
23656fi
23657
23658
23659if test x$ipv6 != xyes; then
23660 have_v6="no"
23661else
23662
23663have_v6=yes
23664
23665 { echo "$as_me:$LINENO: checking for INET6 protocol support" >&5
23666echo $ECHO_N "checking for INET6 protocol support... $ECHO_C" >&6; }
23667if test "${rb_cv_proto_inet6+set}" = set; then
23668 echo $ECHO_N "(cached) $ECHO_C" >&6
23669else
23670
23671 cat >conftest.$ac_ext <<_ACEOF
23672/* confdefs.h. */
23673_ACEOF
23674cat confdefs.h >>conftest.$ac_ext
23675cat >>conftest.$ac_ext <<_ACEOF
23676/* end confdefs.h. */
23677
23678#include <sys/types.h>
23679#include <sys/socket.h>
23680
23681#ifndef PF_INET6
23682#error Missing PF_INET6
23683#endif
23684#ifndef AF_INET6
23685#error Mlssing AF_INET6
23686#endif
23687
23688_ACEOF
23689if { (ac_try="$ac_cpp conftest.$ac_ext"
23690case "(($ac_try" in
23691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23692 *) ac_try_echo=$ac_try;;
23693esac
23694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23696 ac_status=$?
23697 grep -v '^ *+' conftest.er1 >conftest.err
23698 rm -f conftest.er1
23699 cat conftest.err >&5
23700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701 (exit $ac_status); } >/dev/null && {
23702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23703 test ! -s conftest.err
23704 }; then
23705
23706 rb_cv_proto_inet6=yes
23707
23708else
23709 echo "$as_me: failed program was:" >&5
23710sed 's/^/| /' conftest.$ac_ext >&5
23711
23712
23713 rb_cv_proto_inet6=no
23714
23715fi
23716
23717rm -f conftest.err conftest.$ac_ext
23718
23719fi
23720{ echo "$as_me:$LINENO: result: $rb_cv_proto_inet6" >&5
23721echo "${ECHO_T}$rb_cv_proto_inet6" >&6; }
23722
23723 if test "X$rb_cv_proto_inet6" = "Xyes"; then :
23724
23725 else :
23726
23727 { echo "$as_me:$LINENO: Disabling IPv6 support: PF_INET6 not found" >&5
23728echo "$as_me: Disabling IPv6 support: PF_INET6 not found" >&6;}
23729 have_v6=no
23730
23731 fi
23732
23733
23734 if test "X$have_v6" = "Xyes"; then
23735
23736 rb_have_sockaddr_in6=
23737 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
23738echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
23739if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
23740 echo $ECHO_N "(cached) $ECHO_C" >&6
23741else
23742 cat >conftest.$ac_ext <<_ACEOF
23743/* confdefs.h. */
23744_ACEOF
23745cat confdefs.h >>conftest.$ac_ext
23746cat >>conftest.$ac_ext <<_ACEOF
23747/* end confdefs.h. */
23748
23749#include <sys/types.h>
23750#include <sys/socket.h>
23751#include <netinet/in.h>
23752
23753
23754typedef struct sockaddr_in6 ac__type_new_;
23755int
23756main ()
23757{
23758if ((ac__type_new_ *) 0)
23759 return 0;
23760if (sizeof (ac__type_new_))
23761 return 0;
23762 ;
23763 return 0;
23764}
23765_ACEOF
23766rm -f conftest.$ac_objext
23767if { (ac_try="$ac_compile"
23768case "(($ac_try" in
23769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23770 *) ac_try_echo=$ac_try;;
23771esac
23772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23773 (eval "$ac_compile") 2>conftest.er1
23774 ac_status=$?
23775 grep -v '^ *+' conftest.er1 >conftest.err
23776 rm -f conftest.er1
23777 cat conftest.err >&5
23778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23779 (exit $ac_status); } && {
23780 test -z "$ac_c_werror_flag" ||
23781 test ! -s conftest.err
23782 } && test -s conftest.$ac_objext; then
23783 ac_cv_type_struct_sockaddr_in6=yes
23784else
23785 echo "$as_me: failed program was:" >&5
23786sed 's/^/| /' conftest.$ac_ext >&5
23787
23788 ac_cv_type_struct_sockaddr_in6=no
23789fi
23790
23791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23792fi
23793{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
23794echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
23795if test $ac_cv_type_struct_sockaddr_in6 = yes; then
23796
23797cat >>confdefs.h <<_ACEOF
23798#define HAVE_STRUCT_SOCKADDR_IN6 1
23799_ACEOF
23800
23801
23802 rb_have_sockaddr_in6=yes
23803
23804else
23805
23806 rb_have_sockaddr_in6=no
23807
23808fi
23809
23810
23811 if test "X$rb_have_sockaddr_in6" = "Xyes"; then :
23812
23813 else :
23814
23815 { echo "$as_me:$LINENO: Disabling IPv6 support: struct sockaddr_in6 not found" >&5
23816echo "$as_me: Disabling IPv6 support: struct sockaddr_in6 not found" >&6;}
23817 have_v6=no
23818
23819 fi
23820
23821 fi
23822
23823fi
23824
23825{ echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
23826echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
23827if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
23828 echo $ECHO_N "(cached) $ECHO_C" >&6
23829else
23830 cat >conftest.$ac_ext <<_ACEOF
23831/* confdefs.h. */
23832_ACEOF
23833cat confdefs.h >>conftest.$ac_ext
23834cat >>conftest.$ac_ext <<_ACEOF
23835/* end confdefs.h. */
23836
23837 #include <sys/types.h>
23838 #include <sys/socket.h>
23839
23840
23841typedef struct sockaddr_storage ac__type_new_;
23842int
23843main ()
23844{
23845if ((ac__type_new_ *) 0)
23846 return 0;
23847if (sizeof (ac__type_new_))
23848 return 0;
23849 ;
23850 return 0;
23851}
23852_ACEOF
23853rm -f conftest.$ac_objext
23854if { (ac_try="$ac_compile"
23855case "(($ac_try" in
23856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23857 *) ac_try_echo=$ac_try;;
23858esac
23859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23860 (eval "$ac_compile") 2>conftest.er1
23861 ac_status=$?
23862 grep -v '^ *+' conftest.er1 >conftest.err
23863 rm -f conftest.er1
23864 cat conftest.err >&5
23865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866 (exit $ac_status); } && {
23867 test -z "$ac_c_werror_flag" ||
23868 test ! -s conftest.err
23869 } && test -s conftest.$ac_objext; then
23870 ac_cv_type_struct_sockaddr_storage=yes
23871else
23872 echo "$as_me: failed program was:" >&5
23873sed 's/^/| /' conftest.$ac_ext >&5
23874
23875 ac_cv_type_struct_sockaddr_storage=no
23876fi
23877
23878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23879fi
23880{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
23881echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
23882if test $ac_cv_type_struct_sockaddr_storage = yes; then
23883
23884cat >>confdefs.h <<_ACEOF
23885#define HAVE_STRUCT_SOCKADDR_STORAGE 1
23886_ACEOF
23887
23888
23889 rb_have_sockaddr_storage=yes
23890
23891fi
23892
23893
23894
23895save_LIBS=$LIBS
23896{ echo "$as_me:$LINENO: checking for library containing crypt" >&5
23897echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
23898if test "${ac_cv_search_crypt+set}" = set; then
23899 echo $ECHO_N "(cached) $ECHO_C" >&6
23900else
23901 ac_func_search_save_LIBS=$LIBS
23902cat >conftest.$ac_ext <<_ACEOF
23903/* confdefs.h. */
23904_ACEOF
23905cat confdefs.h >>conftest.$ac_ext
23906cat >>conftest.$ac_ext <<_ACEOF
23907/* end confdefs.h. */
23908
23909/* Override any GCC internal prototype to avoid an error.
23910 Use char because int might match the return type of a GCC
23911 builtin and then its argument prototype would still apply. */
23912#ifdef __cplusplus
23913extern "C"
23914#endif
23915char crypt ();
23916int
23917main ()
23918{
23919return crypt ();
23920 ;
23921 return 0;
23922}
23923_ACEOF
23924for ac_lib in '' crypt descrypt; do
23925 if test -z "$ac_lib"; then
23926 ac_res="none required"
23927 else
23928 ac_res=-l$ac_lib
23929 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23930 fi
23931 rm -f conftest.$ac_objext conftest$ac_exeext
23932if { (ac_try="$ac_link"
23933case "(($ac_try" in
23934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23935 *) ac_try_echo=$ac_try;;
23936esac
23937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23938 (eval "$ac_link") 2>conftest.er1
23939 ac_status=$?
23940 grep -v '^ *+' conftest.er1 >conftest.err
23941 rm -f conftest.er1
23942 cat conftest.err >&5
23943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23944 (exit $ac_status); } && {
23945 test -z "$ac_c_werror_flag" ||
23946 test ! -s conftest.err
23947 } && test -s conftest$ac_exeext &&
23948 $as_test_x conftest$ac_exeext; then
23949 ac_cv_search_crypt=$ac_res
23950else
23951 echo "$as_me: failed program was:" >&5
23952sed 's/^/| /' conftest.$ac_ext >&5
23953
23954
23955fi
23956
23957rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23958 conftest$ac_exeext
23959 if test "${ac_cv_search_crypt+set}" = set; then
23960 break
23961fi
23962done
23963if test "${ac_cv_search_crypt+set}" = set; then
23964 :
23965else
23966 ac_cv_search_crypt=no
23967fi
23968rm conftest.$ac_ext
23969LIBS=$ac_func_search_save_LIBS
23970fi
23971{ echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
23972echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
23973ac_res=$ac_cv_search_crypt
23974if test "$ac_res" != no; then
23975 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23976
23977fi
23978
23979LIBS=$save_LIBS
23980
23981CRYPT_LIB=$ac_cv_search_crypt
23982
23983if test "$CRYPT_LIB" = "none required"; then
23984 unset CRYPT_LIB
23985elif test "$CRYPT_LIB" = no; then
23986 need_crypt=yes;
23987
23988cat >>confdefs.h <<\_ACEOF
23989#define NEED_CRYPT 1
23990_ACEOF
23991
23992 unset CRYPT_LIB
23993fi
23994
23995 if test x"$need_crypt" == "xyes"; then
23996 NEED_CRYPT_TRUE=
23997 NEED_CRYPT_FALSE='#'
23998else
23999 NEED_CRYPT_TRUE='#'
24000 NEED_CRYPT_FALSE=
24001fi
24002
24003
24004
24005
24006
24007if test "${ac_cv_header_stdarg_h+set}" = set; then
24008 { echo "$as_me:$LINENO: checking for stdarg.h" >&5
24009echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
24010if test "${ac_cv_header_stdarg_h+set}" = set; then
24011 echo $ECHO_N "(cached) $ECHO_C" >&6
24012fi
24013{ echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
24014echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
24015else
24016 # Is the header compilable?
24017{ echo "$as_me:$LINENO: checking stdarg.h usability" >&5
24018echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; }
24019cat >conftest.$ac_ext <<_ACEOF
24020/* confdefs.h. */
24021_ACEOF
24022cat confdefs.h >>conftest.$ac_ext
24023cat >>conftest.$ac_ext <<_ACEOF
24024/* end confdefs.h. */
24025$ac_includes_default
24026#include <stdarg.h>
24027_ACEOF
24028rm -f conftest.$ac_objext
24029if { (ac_try="$ac_compile"
24030case "(($ac_try" in
24031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24032 *) ac_try_echo=$ac_try;;
24033esac
24034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24035 (eval "$ac_compile") 2>conftest.er1
24036 ac_status=$?
24037 grep -v '^ *+' conftest.er1 >conftest.err
24038 rm -f conftest.er1
24039 cat conftest.err >&5
24040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24041 (exit $ac_status); } && {
24042 test -z "$ac_c_werror_flag" ||
24043 test ! -s conftest.err
24044 } && test -s conftest.$ac_objext; then
24045 ac_header_compiler=yes
24046else
24047 echo "$as_me: failed program was:" >&5
24048sed 's/^/| /' conftest.$ac_ext >&5
24049
24050 ac_header_compiler=no
24051fi
24052
24053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24054{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24055echo "${ECHO_T}$ac_header_compiler" >&6; }
24056
24057# Is the header present?
24058{ echo "$as_me:$LINENO: checking stdarg.h presence" >&5
24059echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; }
24060cat >conftest.$ac_ext <<_ACEOF
24061/* confdefs.h. */
24062_ACEOF
24063cat confdefs.h >>conftest.$ac_ext
24064cat >>conftest.$ac_ext <<_ACEOF
24065/* end confdefs.h. */
24066#include <stdarg.h>
24067_ACEOF
24068if { (ac_try="$ac_cpp conftest.$ac_ext"
24069case "(($ac_try" in
24070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24071 *) ac_try_echo=$ac_try;;
24072esac
24073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24075 ac_status=$?
24076 grep -v '^ *+' conftest.er1 >conftest.err
24077 rm -f conftest.er1
24078 cat conftest.err >&5
24079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24080 (exit $ac_status); } >/dev/null && {
24081 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24082 test ! -s conftest.err
24083 }; then
24084 ac_header_preproc=yes
24085else
24086 echo "$as_me: failed program was:" >&5
24087sed 's/^/| /' conftest.$ac_ext >&5
24088
24089 ac_header_preproc=no
24090fi
24091
24092rm -f conftest.err conftest.$ac_ext
24093{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24094echo "${ECHO_T}$ac_header_preproc" >&6; }
24095
24096# So? What about this header?
24097case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24098 yes:no: )
24099 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
24100echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24101 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
24102echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
24103 ac_header_preproc=yes
24104 ;;
24105 no:yes:* )
24106 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
24107echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
24108 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
24109echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
24110 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
24111echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
24112 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
24113echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
24114 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
24115echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
24116 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
24117echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
24118
24119 ;;
24120esac
24121{ echo "$as_me:$LINENO: checking for stdarg.h" >&5
24122echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
24123if test "${ac_cv_header_stdarg_h+set}" = set; then
24124 echo $ECHO_N "(cached) $ECHO_C" >&6
24125else
24126 ac_cv_header_stdarg_h=$ac_header_preproc
24127fi
24128{ echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
24129echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
24130
24131fi
24132if test $ac_cv_header_stdarg_h = yes; then
24133 :
24134else
24135 { { echo "$as_me:$LINENO: error: ** stdarg.h could not be found - libratbox will not compile without it **" >&5
24136echo "$as_me: error: ** stdarg.h could not be found - libratbox will not compile without it **" >&2;}
24137 { (exit 1); exit 1; }; }
24138fi
24139
24140
24141
24142{ echo "$as_me:$LINENO: checking for sa_family_t" >&5
24143echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
24144if test "${ac_cv_type_sa_family_t+set}" = set; then
24145 echo $ECHO_N "(cached) $ECHO_C" >&6
24146else
24147 cat >conftest.$ac_ext <<_ACEOF
24148/* confdefs.h. */
24149_ACEOF
24150cat confdefs.h >>conftest.$ac_ext
24151cat >>conftest.$ac_ext <<_ACEOF
24152/* end confdefs.h. */
24153#include <sys/types.h>
24154#include <sys/socket.h>
24155
24156typedef sa_family_t ac__type_new_;
24157int
24158main ()
24159{
24160if ((ac__type_new_ *) 0)
24161 return 0;
24162if (sizeof (ac__type_new_))
24163 return 0;
24164 ;
24165 return 0;
24166}
24167_ACEOF
24168rm -f conftest.$ac_objext
24169if { (ac_try="$ac_compile"
24170case "(($ac_try" in
24171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24172 *) ac_try_echo=$ac_try;;
24173esac
24174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24175 (eval "$ac_compile") 2>conftest.er1
24176 ac_status=$?
24177 grep -v '^ *+' conftest.er1 >conftest.err
24178 rm -f conftest.er1
24179 cat conftest.err >&5
24180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24181 (exit $ac_status); } && {
24182 test -z "$ac_c_werror_flag" ||
24183 test ! -s conftest.err
24184 } && test -s conftest.$ac_objext; then
24185 ac_cv_type_sa_family_t=yes
24186else
24187 echo "$as_me: failed program was:" >&5
24188sed 's/^/| /' conftest.$ac_ext >&5
24189
24190 ac_cv_type_sa_family_t=no
24191fi
24192
24193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24194fi
24195{ echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
24196echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6; }
24197if test $ac_cv_type_sa_family_t = yes; then
24198 :
24199else
24200
24201cat >>confdefs.h <<\_ACEOF
24202#define sa_family_t u_int16_t
24203_ACEOF
24204
24205fi
24206
24207
24208
24209
24210
24211
24212
24213
24214
24215
24216
24217
24218
24219
24220
24221
24222
24223
24224
24225
24226
24227for 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
24228do
24229as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24230{ echo "$as_me:$LINENO: checking for $ac_func" >&5
24231echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24232if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24233 echo $ECHO_N "(cached) $ECHO_C" >&6
24234else
24235 cat >conftest.$ac_ext <<_ACEOF
24236/* confdefs.h. */
24237_ACEOF
24238cat confdefs.h >>conftest.$ac_ext
24239cat >>conftest.$ac_ext <<_ACEOF
24240/* end confdefs.h. */
24241/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24243#define $ac_func innocuous_$ac_func
24244
24245/* System header to define __stub macros and hopefully few prototypes,
24246 which can conflict with char $ac_func (); below.
24247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24248 <limits.h> exists even on freestanding compilers. */
24249
24250#ifdef __STDC__
24251# include <limits.h>
24252#else
24253# include <assert.h>
24254#endif
24255
24256#undef $ac_func
24257
24258/* Override any GCC internal prototype to avoid an error.
24259 Use char because int might match the return type of a GCC
24260 builtin and then its argument prototype would still apply. */
24261#ifdef __cplusplus
24262extern "C"
24263#endif
24264char $ac_func ();
24265/* The GNU C library defines this for functions which it implements
24266 to always fail with ENOSYS. Some functions are actually named
24267 something starting with __ and the normal name is an alias. */
24268#if defined __stub_$ac_func || defined __stub___$ac_func
24269choke me
24270#endif
24271
24272int
24273main ()
24274{
24275return $ac_func ();
24276 ;
24277 return 0;
24278}
24279_ACEOF
24280rm -f conftest.$ac_objext conftest$ac_exeext
24281if { (ac_try="$ac_link"
24282case "(($ac_try" in
24283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24284 *) ac_try_echo=$ac_try;;
24285esac
24286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24287 (eval "$ac_link") 2>conftest.er1
24288 ac_status=$?
24289 grep -v '^ *+' conftest.er1 >conftest.err
24290 rm -f conftest.er1
24291 cat conftest.err >&5
24292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24293 (exit $ac_status); } && {
24294 test -z "$ac_c_werror_flag" ||
24295 test ! -s conftest.err
24296 } && test -s conftest$ac_exeext &&
24297 $as_test_x conftest$ac_exeext; then
24298 eval "$as_ac_var=yes"
24299else
24300 echo "$as_me: failed program was:" >&5
24301sed 's/^/| /' conftest.$ac_ext >&5
24302
24303 eval "$as_ac_var=no"
24304fi
24305
24306rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24307 conftest$ac_exeext conftest.$ac_ext
24308fi
24309ac_res=`eval echo '${'$as_ac_var'}'`
24310 { echo "$as_me:$LINENO: result: $ac_res" >&5
24311echo "${ECHO_T}$ac_res" >&6; }
24312if test `eval echo '${'$as_ac_var'}'` = yes; then
24313 cat >>confdefs.h <<_ACEOF
24314#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24315_ACEOF
24316
24317fi
24318done
24319
24320
24321{ echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
24322echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
24323if test "${ac_cv_search_nanosleep+set}" = set; then
24324 echo $ECHO_N "(cached) $ECHO_C" >&6
24325else
24326 ac_func_search_save_LIBS=$LIBS
24327cat >conftest.$ac_ext <<_ACEOF
24328/* confdefs.h. */
24329_ACEOF
24330cat confdefs.h >>conftest.$ac_ext
24331cat >>conftest.$ac_ext <<_ACEOF
24332/* end confdefs.h. */
24333
24334/* Override any GCC internal prototype to avoid an error.
24335 Use char because int might match the return type of a GCC
24336 builtin and then its argument prototype would still apply. */
24337#ifdef __cplusplus
24338extern "C"
24339#endif
24340char nanosleep ();
24341int
24342main ()
24343{
24344return nanosleep ();
24345 ;
24346 return 0;
24347}
24348_ACEOF
24349for ac_lib in '' rt posix4; do
24350 if test -z "$ac_lib"; then
24351 ac_res="none required"
24352 else
24353 ac_res=-l$ac_lib
24354 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24355 fi
24356 rm -f conftest.$ac_objext conftest$ac_exeext
24357if { (ac_try="$ac_link"
24358case "(($ac_try" in
24359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24360 *) ac_try_echo=$ac_try;;
24361esac
24362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24363 (eval "$ac_link") 2>conftest.er1
24364 ac_status=$?
24365 grep -v '^ *+' conftest.er1 >conftest.err
24366 rm -f conftest.er1
24367 cat conftest.err >&5
24368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24369 (exit $ac_status); } && {
24370 test -z "$ac_c_werror_flag" ||
24371 test ! -s conftest.err
24372 } && test -s conftest$ac_exeext &&
24373 $as_test_x conftest$ac_exeext; then
24374 ac_cv_search_nanosleep=$ac_res
24375else
24376 echo "$as_me: failed program was:" >&5
24377sed 's/^/| /' conftest.$ac_ext >&5
24378
24379
24380fi
24381
24382rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24383 conftest$ac_exeext
24384 if test "${ac_cv_search_nanosleep+set}" = set; then
24385 break
24386fi
24387done
24388if test "${ac_cv_search_nanosleep+set}" = set; then
24389 :
24390else
24391 ac_cv_search_nanosleep=no
24392fi
24393rm conftest.$ac_ext
24394LIBS=$ac_func_search_save_LIBS
24395fi
24396{ echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
24397echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
24398ac_res=$ac_cv_search_nanosleep
24399if test "$ac_res" != no; then
24400 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24401
24402cat >>confdefs.h <<\_ACEOF
24403#define HAVE_NANOSLEEP 1
24404_ACEOF
24405
24406fi
24407
24408{ echo "$as_me:$LINENO: checking for library containing timer_create" >&5
24409echo $ECHO_N "checking for library containing timer_create... $ECHO_C" >&6; }
24410if test "${ac_cv_search_timer_create+set}" = set; then
24411 echo $ECHO_N "(cached) $ECHO_C" >&6
24412else
24413 ac_func_search_save_LIBS=$LIBS
24414cat >conftest.$ac_ext <<_ACEOF
24415/* confdefs.h. */
24416_ACEOF
24417cat confdefs.h >>conftest.$ac_ext
24418cat >>conftest.$ac_ext <<_ACEOF
24419/* end confdefs.h. */
24420
24421/* Override any GCC internal prototype to avoid an error.
24422 Use char because int might match the return type of a GCC
24423 builtin and then its argument prototype would still apply. */
24424#ifdef __cplusplus
24425extern "C"
24426#endif
24427char timer_create ();
24428int
24429main ()
24430{
24431return timer_create ();
24432 ;
24433 return 0;
24434}
24435_ACEOF
24436for ac_lib in '' rt; do
24437 if test -z "$ac_lib"; then
24438 ac_res="none required"
24439 else
24440 ac_res=-l$ac_lib
24441 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24442 fi
24443 rm -f conftest.$ac_objext conftest$ac_exeext
24444if { (ac_try="$ac_link"
24445case "(($ac_try" in
24446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24447 *) ac_try_echo=$ac_try;;
24448esac
24449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24450 (eval "$ac_link") 2>conftest.er1
24451 ac_status=$?
24452 grep -v '^ *+' conftest.er1 >conftest.err
24453 rm -f conftest.er1
24454 cat conftest.err >&5
24455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24456 (exit $ac_status); } && {
24457 test -z "$ac_c_werror_flag" ||
24458 test ! -s conftest.err
24459 } && test -s conftest$ac_exeext &&
24460 $as_test_x conftest$ac_exeext; then
24461 ac_cv_search_timer_create=$ac_res
24462else
24463 echo "$as_me: failed program was:" >&5
24464sed 's/^/| /' conftest.$ac_ext >&5
24465
24466
24467fi
24468
24469rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24470 conftest$ac_exeext
24471 if test "${ac_cv_search_timer_create+set}" = set; then
24472 break
24473fi
24474done
24475if test "${ac_cv_search_timer_create+set}" = set; then
24476 :
24477else
24478 ac_cv_search_timer_create=no
24479fi
24480rm conftest.$ac_ext
24481LIBS=$ac_func_search_save_LIBS
24482fi
24483{ echo "$as_me:$LINENO: result: $ac_cv_search_timer_create" >&5
24484echo "${ECHO_T}$ac_cv_search_timer_create" >&6; }
24485ac_res=$ac_cv_search_timer_create
24486if test "$ac_res" != no; then
24487 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24488
24489cat >>confdefs.h <<\_ACEOF
24490#define HAVE_TIMER_CREATE 1
24491_ACEOF
24492
24493fi
24494
24495{ echo "$as_me:$LINENO: checking for a working timer_create(CLOCK_REALTIME)" >&5
24496echo $ECHO_N "checking for a working timer_create(CLOCK_REALTIME)... $ECHO_C" >&6; }
24497if test "${rb__cv_timer_create_works+set}" = set; then
24498 echo $ECHO_N "(cached) $ECHO_C" >&6
24499else
24500 if test "$cross_compiling" = yes; then
24501 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24502See \`config.log' for more details." >&5
24503echo "$as_me: error: cannot run test program while cross compiling
24504See \`config.log' for more details." >&2;}
24505 { (exit 1); exit 1; }; }
24506else
24507 cat >conftest.$ac_ext <<_ACEOF
24508/* confdefs.h. */
24509_ACEOF
24510cat confdefs.h >>conftest.$ac_ext
24511cat >>conftest.$ac_ext <<_ACEOF
24512/* end confdefs.h. */
24513
24514#ifdef HAVE_TIME_H
24515#include <time.h>
24516#endif
24517#ifdef HAVE_SIGNAL_H
24518#include <signal.h>
24519#endif
24520#ifdef HAVE_UNISTD_H
24521#include <unistd.h>
24522#endif
24523int main(int argc, char *argv[])
24524{
24525#if HAVE_TIMER_CREATE
24526 struct sigevent ev;
24527 timer_t timer;
24528 ev.sigev_notify = SIGEV_SIGNAL;
24529 ev.sigev_signo = SIGVTALRM;
24530 if (timer_create(CLOCK_REALTIME, &ev, &timer) != 0) {
24531 return 1;
24532 }
24533#else
24534 return 1;
24535#endif
24536 return 0;
24537}
24538
24539_ACEOF
24540rm -f conftest$ac_exeext
24541if { (ac_try="$ac_link"
24542case "(($ac_try" in
24543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24544 *) ac_try_echo=$ac_try;;
24545esac
24546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24547 (eval "$ac_link") 2>&5
24548 ac_status=$?
24549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24551 { (case "(($ac_try" in
24552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24553 *) ac_try_echo=$ac_try;;
24554esac
24555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24556 (eval "$ac_try") 2>&5
24557 ac_status=$?
24558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24559 (exit $ac_status); }; }; then
24560 rb__cv_timer_create_works=yes
24561else
24562 echo "$as_me: program exited with status $ac_status" >&5
24563echo "$as_me: failed program was:" >&5
24564sed 's/^/| /' conftest.$ac_ext >&5
24565
24566( exit $ac_status )
24567rb__cv_timer_create_works=no
24568fi
24569rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24570fi
24571
24572
24573
24574fi
24575{ echo "$as_me:$LINENO: result: $rb__cv_timer_create_works" >&5
24576echo "${ECHO_T}$rb__cv_timer_create_works" >&6; }
24577case $rb__cv_timer_create_works in
24578 yes)
24579cat >>confdefs.h <<\_ACEOF
24580#define USE_TIMER_CREATE 1
24581_ACEOF
24582;;
24583esac
24584
24585
24586# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24587# for constant arguments. Useless!
24588{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
24589echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
24590if test "${ac_cv_working_alloca_h+set}" = set; then
24591 echo $ECHO_N "(cached) $ECHO_C" >&6
24592else
24593 cat >conftest.$ac_ext <<_ACEOF
24594/* confdefs.h. */
24595_ACEOF
24596cat confdefs.h >>conftest.$ac_ext
24597cat >>conftest.$ac_ext <<_ACEOF
24598/* end confdefs.h. */
24599#include <alloca.h>
24600int
24601main ()
24602{
24603char *p = (char *) alloca (2 * sizeof (int));
24604 if (p) return 0;
24605 ;
24606 return 0;
24607}
24608_ACEOF
24609rm -f conftest.$ac_objext conftest$ac_exeext
24610if { (ac_try="$ac_link"
24611case "(($ac_try" in
24612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24613 *) ac_try_echo=$ac_try;;
24614esac
24615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24616 (eval "$ac_link") 2>conftest.er1
24617 ac_status=$?
24618 grep -v '^ *+' conftest.er1 >conftest.err
24619 rm -f conftest.er1
24620 cat conftest.err >&5
24621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24622 (exit $ac_status); } && {
24623 test -z "$ac_c_werror_flag" ||
24624 test ! -s conftest.err
24625 } && test -s conftest$ac_exeext &&
24626 $as_test_x conftest$ac_exeext; then
24627 ac_cv_working_alloca_h=yes
24628else
24629 echo "$as_me: failed program was:" >&5
24630sed 's/^/| /' conftest.$ac_ext >&5
24631
24632 ac_cv_working_alloca_h=no
24633fi
24634
24635rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24636 conftest$ac_exeext conftest.$ac_ext
24637fi
24638{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24639echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
24640if test $ac_cv_working_alloca_h = yes; then
24641
24642cat >>confdefs.h <<\_ACEOF
24643#define HAVE_ALLOCA_H 1
24644_ACEOF
24645
24646fi
24647
24648{ echo "$as_me:$LINENO: checking for alloca" >&5
24649echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
24650if test "${ac_cv_func_alloca_works+set}" = set; then
24651 echo $ECHO_N "(cached) $ECHO_C" >&6
24652else
24653 cat >conftest.$ac_ext <<_ACEOF
24654/* confdefs.h. */
24655_ACEOF
24656cat confdefs.h >>conftest.$ac_ext
24657cat >>conftest.$ac_ext <<_ACEOF
24658/* end confdefs.h. */
24659#ifdef __GNUC__
24660# define alloca __builtin_alloca
24661#else
24662# ifdef _MSC_VER
24663# include <malloc.h>
24664# define alloca _alloca
24665# else
24666# ifdef HAVE_ALLOCA_H
24667# include <alloca.h>
24668# else
24669# ifdef _AIX
24670 #pragma alloca
24671# else
24672# ifndef alloca /* predefined by HP cc +Olibcalls */
24673char *alloca ();
24674# endif
24675# endif
24676# endif
24677# endif
24678#endif
24679
24680int
24681main ()
24682{
24683char *p = (char *) alloca (1);
24684 if (p) return 0;
24685 ;
24686 return 0;
24687}
24688_ACEOF
24689rm -f conftest.$ac_objext conftest$ac_exeext
24690if { (ac_try="$ac_link"
24691case "(($ac_try" in
24692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24693 *) ac_try_echo=$ac_try;;
24694esac
24695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24696 (eval "$ac_link") 2>conftest.er1
24697 ac_status=$?
24698 grep -v '^ *+' conftest.er1 >conftest.err
24699 rm -f conftest.er1
24700 cat conftest.err >&5
24701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24702 (exit $ac_status); } && {
24703 test -z "$ac_c_werror_flag" ||
24704 test ! -s conftest.err
24705 } && test -s conftest$ac_exeext &&
24706 $as_test_x conftest$ac_exeext; then
24707 ac_cv_func_alloca_works=yes
24708else
24709 echo "$as_me: failed program was:" >&5
24710sed 's/^/| /' conftest.$ac_ext >&5
24711
24712 ac_cv_func_alloca_works=no
24713fi
24714
24715rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24716 conftest$ac_exeext conftest.$ac_ext
24717fi
24718{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24719echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
24720
24721if test $ac_cv_func_alloca_works = yes; then
24722
24723cat >>confdefs.h <<\_ACEOF
24724#define HAVE_ALLOCA 1
24725_ACEOF
24726
24727else
24728 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24729# that cause trouble. Some versions do not even contain alloca or
24730# contain a buggy version. If you still want to use their alloca,
24731# use ar to extract alloca.o from them instead of compiling alloca.c.
24732
24733ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
24734
24735cat >>confdefs.h <<\_ACEOF
24736#define C_ALLOCA 1
24737_ACEOF
24738
24739
24740{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24741echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
24742if test "${ac_cv_os_cray+set}" = set; then
24743 echo $ECHO_N "(cached) $ECHO_C" >&6
24744else
24745 cat >conftest.$ac_ext <<_ACEOF
24746/* confdefs.h. */
24747_ACEOF
24748cat confdefs.h >>conftest.$ac_ext
24749cat >>conftest.$ac_ext <<_ACEOF
24750/* end confdefs.h. */
24751#if defined CRAY && ! defined CRAY2
24752webecray
24753#else
24754wenotbecray
24755#endif
24756
24757_ACEOF
24758if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24759 $EGREP "webecray" >/dev/null 2>&1; then
24760 ac_cv_os_cray=yes
24761else
24762 ac_cv_os_cray=no
24763fi
24764rm -f conftest*
24765
24766fi
24767{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24768echo "${ECHO_T}$ac_cv_os_cray" >&6; }
24769if test $ac_cv_os_cray = yes; then
24770 for ac_func in _getb67 GETB67 getb67; do
24771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24772{ echo "$as_me:$LINENO: checking for $ac_func" >&5
24773echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24774if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24775 echo $ECHO_N "(cached) $ECHO_C" >&6
24776else
24777 cat >conftest.$ac_ext <<_ACEOF
24778/* confdefs.h. */
24779_ACEOF
24780cat confdefs.h >>conftest.$ac_ext
24781cat >>conftest.$ac_ext <<_ACEOF
24782/* end confdefs.h. */
24783/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24785#define $ac_func innocuous_$ac_func
24786
24787/* System header to define __stub macros and hopefully few prototypes,
24788 which can conflict with char $ac_func (); below.
24789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24790 <limits.h> exists even on freestanding compilers. */
24791
24792#ifdef __STDC__
24793# include <limits.h>
24794#else
24795# include <assert.h>
24796#endif
24797
24798#undef $ac_func
24799
24800/* Override any GCC internal prototype to avoid an error.
24801 Use char because int might match the return type of a GCC
24802 builtin and then its argument prototype would still apply. */
24803#ifdef __cplusplus
24804extern "C"
24805#endif
24806char $ac_func ();
24807/* The GNU C library defines this for functions which it implements
24808 to always fail with ENOSYS. Some functions are actually named
24809 something starting with __ and the normal name is an alias. */
24810#if defined __stub_$ac_func || defined __stub___$ac_func
24811choke me
24812#endif
24813
24814int
24815main ()
24816{
24817return $ac_func ();
24818 ;
24819 return 0;
24820}
24821_ACEOF
24822rm -f conftest.$ac_objext conftest$ac_exeext
24823if { (ac_try="$ac_link"
24824case "(($ac_try" in
24825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24826 *) ac_try_echo=$ac_try;;
24827esac
24828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24829 (eval "$ac_link") 2>conftest.er1
24830 ac_status=$?
24831 grep -v '^ *+' conftest.er1 >conftest.err
24832 rm -f conftest.er1
24833 cat conftest.err >&5
24834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24835 (exit $ac_status); } && {
24836 test -z "$ac_c_werror_flag" ||
24837 test ! -s conftest.err
24838 } && test -s conftest$ac_exeext &&
24839 $as_test_x conftest$ac_exeext; then
24840 eval "$as_ac_var=yes"
24841else
24842 echo "$as_me: failed program was:" >&5
24843sed 's/^/| /' conftest.$ac_ext >&5
24844
24845 eval "$as_ac_var=no"
24846fi
24847
24848rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24849 conftest$ac_exeext conftest.$ac_ext
24850fi
24851ac_res=`eval echo '${'$as_ac_var'}'`
24852 { echo "$as_me:$LINENO: result: $ac_res" >&5
24853echo "${ECHO_T}$ac_res" >&6; }
24854if test `eval echo '${'$as_ac_var'}'` = yes; then
24855
24856cat >>confdefs.h <<_ACEOF
24857#define CRAY_STACKSEG_END $ac_func
24858_ACEOF
24859
24860 break
24861fi
24862
24863 done
24864fi
24865
24866{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
24867echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
24868if test "${ac_cv_c_stack_direction+set}" = set; then
24869 echo $ECHO_N "(cached) $ECHO_C" >&6
24870else
24871 if test "$cross_compiling" = yes; then
24872 ac_cv_c_stack_direction=0
24873else
24874 cat >conftest.$ac_ext <<_ACEOF
24875/* confdefs.h. */
24876_ACEOF
24877cat confdefs.h >>conftest.$ac_ext
24878cat >>conftest.$ac_ext <<_ACEOF
24879/* end confdefs.h. */
24880$ac_includes_default
24881int
24882find_stack_direction ()
24883{
24884 static char *addr = 0;
24885 auto char dummy;
24886 if (addr == 0)
24887 {
24888 addr = &dummy;
24889 return find_stack_direction ();
24890 }
24891 else
24892 return (&dummy > addr) ? 1 : -1;
24893}
24894
24895int
24896main ()
24897{
24898 return find_stack_direction () < 0;
24899}
24900_ACEOF
24901rm -f conftest$ac_exeext
24902if { (ac_try="$ac_link"
24903case "(($ac_try" in
24904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24905 *) ac_try_echo=$ac_try;;
24906esac
24907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24908 (eval "$ac_link") 2>&5
24909 ac_status=$?
24910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24912 { (case "(($ac_try" in
24913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24914 *) ac_try_echo=$ac_try;;
24915esac
24916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24917 (eval "$ac_try") 2>&5
24918 ac_status=$?
24919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24920 (exit $ac_status); }; }; then
24921 ac_cv_c_stack_direction=1
24922else
24923 echo "$as_me: program exited with status $ac_status" >&5
24924echo "$as_me: failed program was:" >&5
24925sed 's/^/| /' conftest.$ac_ext >&5
24926
24927( exit $ac_status )
24928ac_cv_c_stack_direction=-1
24929fi
24930rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24931fi
24932
24933
24934fi
24935{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
24936echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
24937
24938cat >>confdefs.h <<_ACEOF
24939#define STACK_DIRECTION $ac_cv_c_stack_direction
24940_ACEOF
24941
24942
24943fi
24944
24945
24946for ac_header in vfork.h
24947do
24948as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24949if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24951echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24952if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24953 echo $ECHO_N "(cached) $ECHO_C" >&6
24954fi
24955ac_res=`eval echo '${'$as_ac_Header'}'`
24956 { echo "$as_me:$LINENO: result: $ac_res" >&5
24957echo "${ECHO_T}$ac_res" >&6; }
24958else
24959 # Is the header compilable?
24960{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
24961echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24962cat >conftest.$ac_ext <<_ACEOF
24963/* confdefs.h. */
24964_ACEOF
24965cat confdefs.h >>conftest.$ac_ext
24966cat >>conftest.$ac_ext <<_ACEOF
24967/* end confdefs.h. */
24968$ac_includes_default
24969#include <$ac_header>
24970_ACEOF
24971rm -f conftest.$ac_objext
24972if { (ac_try="$ac_compile"
24973case "(($ac_try" in
24974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24975 *) ac_try_echo=$ac_try;;
24976esac
24977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24978 (eval "$ac_compile") 2>conftest.er1
24979 ac_status=$?
24980 grep -v '^ *+' conftest.er1 >conftest.err
24981 rm -f conftest.er1
24982 cat conftest.err >&5
24983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24984 (exit $ac_status); } && {
24985 test -z "$ac_c_werror_flag" ||
24986 test ! -s conftest.err
24987 } && test -s conftest.$ac_objext; then
24988 ac_header_compiler=yes
24989else
24990 echo "$as_me: failed program was:" >&5
24991sed 's/^/| /' conftest.$ac_ext >&5
24992
24993 ac_header_compiler=no
24994fi
24995
24996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24997{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24998echo "${ECHO_T}$ac_header_compiler" >&6; }
24999
25000# Is the header present?
25001{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
25002echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25003cat >conftest.$ac_ext <<_ACEOF
25004/* confdefs.h. */
25005_ACEOF
25006cat confdefs.h >>conftest.$ac_ext
25007cat >>conftest.$ac_ext <<_ACEOF
25008/* end confdefs.h. */
25009#include <$ac_header>
25010_ACEOF
25011if { (ac_try="$ac_cpp conftest.$ac_ext"
25012case "(($ac_try" in
25013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25014 *) ac_try_echo=$ac_try;;
25015esac
25016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25018 ac_status=$?
25019 grep -v '^ *+' conftest.er1 >conftest.err
25020 rm -f conftest.er1
25021 cat conftest.err >&5
25022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023 (exit $ac_status); } >/dev/null && {
25024 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25025 test ! -s conftest.err
25026 }; then
25027 ac_header_preproc=yes
25028else
25029 echo "$as_me: failed program was:" >&5
25030sed 's/^/| /' conftest.$ac_ext >&5
25031
25032 ac_header_preproc=no
25033fi
25034
25035rm -f conftest.err conftest.$ac_ext
25036{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25037echo "${ECHO_T}$ac_header_preproc" >&6; }
25038
25039# So? What about this header?
25040case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25041 yes:no: )
25042 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25043echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25045echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25046 ac_header_preproc=yes
25047 ;;
25048 no:yes:* )
25049 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25050echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25051 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25052echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25053 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25054echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25055 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25056echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25058echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25059 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25060echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25061
25062 ;;
25063esac
25064{ echo "$as_me:$LINENO: checking for $ac_header" >&5
25065echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25066if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25067 echo $ECHO_N "(cached) $ECHO_C" >&6
25068else
25069 eval "$as_ac_Header=\$ac_header_preproc"
25070fi
25071ac_res=`eval echo '${'$as_ac_Header'}'`
25072 { echo "$as_me:$LINENO: result: $ac_res" >&5
25073echo "${ECHO_T}$ac_res" >&6; }
25074
25075fi
25076if test `eval echo '${'$as_ac_Header'}'` = yes; then
25077 cat >>confdefs.h <<_ACEOF
25078#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25079_ACEOF
25080
25081fi
25082
25083done
25084
25085
25086
25087for ac_func in fork vfork
25088do
25089as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25090{ echo "$as_me:$LINENO: checking for $ac_func" >&5
25091echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25092if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25093 echo $ECHO_N "(cached) $ECHO_C" >&6
25094else
25095 cat >conftest.$ac_ext <<_ACEOF
25096/* confdefs.h. */
25097_ACEOF
25098cat confdefs.h >>conftest.$ac_ext
25099cat >>conftest.$ac_ext <<_ACEOF
25100/* end confdefs.h. */
25101/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25103#define $ac_func innocuous_$ac_func
25104
25105/* System header to define __stub macros and hopefully few prototypes,
25106 which can conflict with char $ac_func (); below.
25107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25108 <limits.h> exists even on freestanding compilers. */
25109
25110#ifdef __STDC__
25111# include <limits.h>
25112#else
25113# include <assert.h>
25114#endif
25115
25116#undef $ac_func
25117
25118/* Override any GCC internal prototype to avoid an error.
25119 Use char because int might match the return type of a GCC
25120 builtin and then its argument prototype would still apply. */
25121#ifdef __cplusplus
25122extern "C"
25123#endif
25124char $ac_func ();
25125/* The GNU C library defines this for functions which it implements
25126 to always fail with ENOSYS. Some functions are actually named
25127 something starting with __ and the normal name is an alias. */
25128#if defined __stub_$ac_func || defined __stub___$ac_func
25129choke me
25130#endif
25131
25132int
25133main ()
25134{
25135return $ac_func ();
25136 ;
25137 return 0;
25138}
25139_ACEOF
25140rm -f conftest.$ac_objext conftest$ac_exeext
25141if { (ac_try="$ac_link"
25142case "(($ac_try" in
25143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25144 *) ac_try_echo=$ac_try;;
25145esac
25146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25147 (eval "$ac_link") 2>conftest.er1
25148 ac_status=$?
25149 grep -v '^ *+' conftest.er1 >conftest.err
25150 rm -f conftest.er1
25151 cat conftest.err >&5
25152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25153 (exit $ac_status); } && {
25154 test -z "$ac_c_werror_flag" ||
25155 test ! -s conftest.err
25156 } && test -s conftest$ac_exeext &&
25157 $as_test_x conftest$ac_exeext; then
25158 eval "$as_ac_var=yes"
25159else
25160 echo "$as_me: failed program was:" >&5
25161sed 's/^/| /' conftest.$ac_ext >&5
25162
25163 eval "$as_ac_var=no"
25164fi
25165
25166rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25167 conftest$ac_exeext conftest.$ac_ext
25168fi
25169ac_res=`eval echo '${'$as_ac_var'}'`
25170 { echo "$as_me:$LINENO: result: $ac_res" >&5
25171echo "${ECHO_T}$ac_res" >&6; }
25172if test `eval echo '${'$as_ac_var'}'` = yes; then
25173 cat >>confdefs.h <<_ACEOF
25174#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25175_ACEOF
25176
25177fi
25178done
25179
25180if test "x$ac_cv_func_fork" = xyes; then
25181 { echo "$as_me:$LINENO: checking for working fork" >&5
25182echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
25183if test "${ac_cv_func_fork_works+set}" = set; then
25184 echo $ECHO_N "(cached) $ECHO_C" >&6
25185else
25186 if test "$cross_compiling" = yes; then
25187 ac_cv_func_fork_works=cross
25188else
25189 cat >conftest.$ac_ext <<_ACEOF
25190/* confdefs.h. */
25191_ACEOF
25192cat confdefs.h >>conftest.$ac_ext
25193cat >>conftest.$ac_ext <<_ACEOF
25194/* end confdefs.h. */
25195$ac_includes_default
25196int
25197main ()
25198{
25199
25200 /* By Ruediger Kuhlmann. */
25201 return fork () < 0;
25202
25203 ;
25204 return 0;
25205}
25206_ACEOF
25207rm -f conftest$ac_exeext
25208if { (ac_try="$ac_link"
25209case "(($ac_try" in
25210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25211 *) ac_try_echo=$ac_try;;
25212esac
25213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25214 (eval "$ac_link") 2>&5
25215 ac_status=$?
25216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25218 { (case "(($ac_try" in
25219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25220 *) ac_try_echo=$ac_try;;
25221esac
25222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25223 (eval "$ac_try") 2>&5
25224 ac_status=$?
25225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25226 (exit $ac_status); }; }; then
25227 ac_cv_func_fork_works=yes
25228else
25229 echo "$as_me: program exited with status $ac_status" >&5
25230echo "$as_me: failed program was:" >&5
25231sed 's/^/| /' conftest.$ac_ext >&5
25232
25233( exit $ac_status )
25234ac_cv_func_fork_works=no
25235fi
25236rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25237fi
25238
25239
25240fi
25241{ echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25242echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
25243
25244else
25245 ac_cv_func_fork_works=$ac_cv_func_fork
25246fi
25247if test "x$ac_cv_func_fork_works" = xcross; then
25248 case $host in
25249 *-*-amigaos* | *-*-msdosdjgpp*)
25250 # Override, as these systems have only a dummy fork() stub
25251 ac_cv_func_fork_works=no
25252 ;;
25253 *)
25254 ac_cv_func_fork_works=yes
25255 ;;
25256 esac
25257 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25258echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25259fi
25260ac_cv_func_vfork_works=$ac_cv_func_vfork
25261if test "x$ac_cv_func_vfork" = xyes; then
25262 { echo "$as_me:$LINENO: checking for working vfork" >&5
25263echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
25264if test "${ac_cv_func_vfork_works+set}" = set; then
25265 echo $ECHO_N "(cached) $ECHO_C" >&6
25266else
25267 if test "$cross_compiling" = yes; then
25268 ac_cv_func_vfork_works=cross
25269else
25270 cat >conftest.$ac_ext <<_ACEOF
25271/* confdefs.h. */
25272_ACEOF
25273cat confdefs.h >>conftest.$ac_ext
25274cat >>conftest.$ac_ext <<_ACEOF
25275/* end confdefs.h. */
25276/* Thanks to Paul Eggert for this test. */
25277$ac_includes_default
25278#include <sys/wait.h>
25279#ifdef HAVE_VFORK_H
25280# include <vfork.h>
25281#endif
25282/* On some sparc systems, changes by the child to local and incoming
25283 argument registers are propagated back to the parent. The compiler
25284 is told about this with #include <vfork.h>, but some compilers
25285 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25286 static variable whose address is put into a register that is
25287 clobbered by the vfork. */
25288static void
25289#ifdef __cplusplus
25290sparc_address_test (int arg)
25291# else
25292sparc_address_test (arg) int arg;
25293#endif
25294{
25295 static pid_t child;
25296 if (!child) {
25297 child = vfork ();
25298 if (child < 0) {
25299 perror ("vfork");
25300 _exit(2);
25301 }
25302 if (!child) {
25303 arg = getpid();
25304 write(-1, "", 0);
25305 _exit (arg);
25306 }
25307 }
25308}
25309
25310int
25311main ()
25312{
25313 pid_t parent = getpid ();
25314 pid_t child;
25315
25316 sparc_address_test (0);
25317
25318 child = vfork ();
25319
25320 if (child == 0) {
25321 /* Here is another test for sparc vfork register problems. This
25322 test uses lots of local variables, at least as many local
25323 variables as main has allocated so far including compiler
25324 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25325 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25326 reuse the register of parent for one of the local variables,
25327 since it will think that parent can't possibly be used any more
25328 in this routine. Assigning to the local variable will thus
25329 munge parent in the parent process. */
25330 pid_t
25331 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25332 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25333 /* Convince the compiler that p..p7 are live; otherwise, it might
25334 use the same hardware register for all 8 local variables. */
25335 if (p != p1 || p != p2 || p != p3 || p != p4
25336 || p != p5 || p != p6 || p != p7)
25337 _exit(1);
25338
25339 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25340 from child file descriptors. If the child closes a descriptor
25341 before it execs or exits, this munges the parent's descriptor
25342 as well. Test for this by closing stdout in the child. */
25343 _exit(close(fileno(stdout)) != 0);
25344 } else {
25345 int status;
25346 struct stat st;
25347
25348 while (wait(&status) != child)
25349 ;
25350 return (
25351 /* Was there some problem with vforking? */
25352 child < 0
25353
25354 /* Did the child fail? (This shouldn't happen.) */
25355 || status
25356
25357 /* Did the vfork/compiler bug occur? */
25358 || parent != getpid()
25359
25360 /* Did the file descriptor bug occur? */
25361 || fstat(fileno(stdout), &st) != 0
25362 );
25363 }
25364}
25365_ACEOF
25366rm -f conftest$ac_exeext
25367if { (ac_try="$ac_link"
25368case "(($ac_try" in
25369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25370 *) ac_try_echo=$ac_try;;
25371esac
25372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25373 (eval "$ac_link") 2>&5
25374 ac_status=$?
25375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25377 { (case "(($ac_try" in
25378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25379 *) ac_try_echo=$ac_try;;
25380esac
25381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25382 (eval "$ac_try") 2>&5
25383 ac_status=$?
25384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25385 (exit $ac_status); }; }; then
25386 ac_cv_func_vfork_works=yes
25387else
25388 echo "$as_me: program exited with status $ac_status" >&5
25389echo "$as_me: failed program was:" >&5
25390sed 's/^/| /' conftest.$ac_ext >&5
25391
25392( exit $ac_status )
25393ac_cv_func_vfork_works=no
25394fi
25395rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25396fi
25397
25398
25399fi
25400{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25401echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
25402
25403fi;
25404if test "x$ac_cv_func_fork_works" = xcross; then
25405 ac_cv_func_vfork_works=$ac_cv_func_vfork
25406 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25407echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25408fi
25409
25410if test "x$ac_cv_func_vfork_works" = xyes; then
25411
25412cat >>confdefs.h <<\_ACEOF
25413#define HAVE_WORKING_VFORK 1
25414_ACEOF
25415
25416else
25417
25418cat >>confdefs.h <<\_ACEOF
25419#define vfork fork
25420_ACEOF
25421
25422fi
25423if test "x$ac_cv_func_fork_works" = xyes; then
25424
25425cat >>confdefs.h <<\_ACEOF
25426#define HAVE_WORKING_FORK 1
25427_ACEOF
25428
25429fi
25430
25431
25432
25433for ac_header in stdlib.h unistd.h
25434do
25435as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25436if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25437 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25438echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25439if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25440 echo $ECHO_N "(cached) $ECHO_C" >&6
25441fi
25442ac_res=`eval echo '${'$as_ac_Header'}'`
25443 { echo "$as_me:$LINENO: result: $ac_res" >&5
25444echo "${ECHO_T}$ac_res" >&6; }
25445else
25446 # Is the header compilable?
25447{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
25448echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25449cat >conftest.$ac_ext <<_ACEOF
25450/* confdefs.h. */
25451_ACEOF
25452cat confdefs.h >>conftest.$ac_ext
25453cat >>conftest.$ac_ext <<_ACEOF
25454/* end confdefs.h. */
25455$ac_includes_default
25456#include <$ac_header>
25457_ACEOF
25458rm -f conftest.$ac_objext
25459if { (ac_try="$ac_compile"
25460case "(($ac_try" in
25461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25462 *) ac_try_echo=$ac_try;;
25463esac
25464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25465 (eval "$ac_compile") 2>conftest.er1
25466 ac_status=$?
25467 grep -v '^ *+' conftest.er1 >conftest.err
25468 rm -f conftest.er1
25469 cat conftest.err >&5
25470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25471 (exit $ac_status); } && {
25472 test -z "$ac_c_werror_flag" ||
25473 test ! -s conftest.err
25474 } && test -s conftest.$ac_objext; then
25475 ac_header_compiler=yes
25476else
25477 echo "$as_me: failed program was:" >&5
25478sed 's/^/| /' conftest.$ac_ext >&5
25479
25480 ac_header_compiler=no
25481fi
25482
25483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25484{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25485echo "${ECHO_T}$ac_header_compiler" >&6; }
25486
25487# Is the header present?
25488{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
25489echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25490cat >conftest.$ac_ext <<_ACEOF
25491/* confdefs.h. */
25492_ACEOF
25493cat confdefs.h >>conftest.$ac_ext
25494cat >>conftest.$ac_ext <<_ACEOF
25495/* end confdefs.h. */
25496#include <$ac_header>
25497_ACEOF
25498if { (ac_try="$ac_cpp conftest.$ac_ext"
25499case "(($ac_try" in
25500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25501 *) ac_try_echo=$ac_try;;
25502esac
25503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25505 ac_status=$?
25506 grep -v '^ *+' conftest.er1 >conftest.err
25507 rm -f conftest.er1
25508 cat conftest.err >&5
25509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25510 (exit $ac_status); } >/dev/null && {
25511 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25512 test ! -s conftest.err
25513 }; then
25514 ac_header_preproc=yes
25515else
25516 echo "$as_me: failed program was:" >&5
25517sed 's/^/| /' conftest.$ac_ext >&5
25518
25519 ac_header_preproc=no
25520fi
25521
25522rm -f conftest.err conftest.$ac_ext
25523{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25524echo "${ECHO_T}$ac_header_preproc" >&6; }
25525
25526# So? What about this header?
25527case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25528 yes:no: )
25529 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25530echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25532echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25533 ac_header_preproc=yes
25534 ;;
25535 no:yes:* )
25536 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25537echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25538 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25539echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25540 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25541echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25542 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25543echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25545echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25546 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25547echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25548
25549 ;;
25550esac
25551{ echo "$as_me:$LINENO: checking for $ac_header" >&5
25552echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25553if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25554 echo $ECHO_N "(cached) $ECHO_C" >&6
25555else
25556 eval "$as_ac_Header=\$ac_header_preproc"
25557fi
25558ac_res=`eval echo '${'$as_ac_Header'}'`
25559 { echo "$as_me:$LINENO: result: $ac_res" >&5
25560echo "${ECHO_T}$ac_res" >&6; }
25561
25562fi
25563if test `eval echo '${'$as_ac_Header'}'` = yes; then
25564 cat >>confdefs.h <<_ACEOF
25565#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25566_ACEOF
25567
25568fi
25569
25570done
25571
25572
25573for ac_func in getpagesize
25574do
25575as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25576{ echo "$as_me:$LINENO: checking for $ac_func" >&5
25577echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25578if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25579 echo $ECHO_N "(cached) $ECHO_C" >&6
25580else
25581 cat >conftest.$ac_ext <<_ACEOF
25582/* confdefs.h. */
25583_ACEOF
25584cat confdefs.h >>conftest.$ac_ext
25585cat >>conftest.$ac_ext <<_ACEOF
25586/* end confdefs.h. */
25587/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25589#define $ac_func innocuous_$ac_func
25590
25591/* System header to define __stub macros and hopefully few prototypes,
25592 which can conflict with char $ac_func (); below.
25593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25594 <limits.h> exists even on freestanding compilers. */
25595
25596#ifdef __STDC__
25597# include <limits.h>
25598#else
25599# include <assert.h>
25600#endif
25601
25602#undef $ac_func
25603
25604/* Override any GCC internal prototype to avoid an error.
25605 Use char because int might match the return type of a GCC
25606 builtin and then its argument prototype would still apply. */
25607#ifdef __cplusplus
25608extern "C"
25609#endif
25610char $ac_func ();
25611/* The GNU C library defines this for functions which it implements
25612 to always fail with ENOSYS. Some functions are actually named
25613 something starting with __ and the normal name is an alias. */
25614#if defined __stub_$ac_func || defined __stub___$ac_func
25615choke me
25616#endif
25617
25618int
25619main ()
25620{
25621return $ac_func ();
25622 ;
25623 return 0;
25624}
25625_ACEOF
25626rm -f conftest.$ac_objext conftest$ac_exeext
25627if { (ac_try="$ac_link"
25628case "(($ac_try" in
25629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25630 *) ac_try_echo=$ac_try;;
25631esac
25632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25633 (eval "$ac_link") 2>conftest.er1
25634 ac_status=$?
25635 grep -v '^ *+' conftest.er1 >conftest.err
25636 rm -f conftest.er1
25637 cat conftest.err >&5
25638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25639 (exit $ac_status); } && {
25640 test -z "$ac_c_werror_flag" ||
25641 test ! -s conftest.err
25642 } && test -s conftest$ac_exeext &&
25643 $as_test_x conftest$ac_exeext; then
25644 eval "$as_ac_var=yes"
25645else
25646 echo "$as_me: failed program was:" >&5
25647sed 's/^/| /' conftest.$ac_ext >&5
25648
25649 eval "$as_ac_var=no"
25650fi
25651
25652rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25653 conftest$ac_exeext conftest.$ac_ext
25654fi
25655ac_res=`eval echo '${'$as_ac_var'}'`
25656 { echo "$as_me:$LINENO: result: $ac_res" >&5
25657echo "${ECHO_T}$ac_res" >&6; }
25658if test `eval echo '${'$as_ac_var'}'` = yes; then
25659 cat >>confdefs.h <<_ACEOF
25660#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25661_ACEOF
25662
25663fi
25664done
25665
25666{ echo "$as_me:$LINENO: checking for working mmap" >&5
25667echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
25668if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
25669 echo $ECHO_N "(cached) $ECHO_C" >&6
25670else
25671 if test "$cross_compiling" = yes; then
25672 ac_cv_func_mmap_fixed_mapped=no
25673else
25674 cat >conftest.$ac_ext <<_ACEOF
25675/* confdefs.h. */
25676_ACEOF
25677cat confdefs.h >>conftest.$ac_ext
25678cat >>conftest.$ac_ext <<_ACEOF
25679/* end confdefs.h. */
25680$ac_includes_default
25681/* malloc might have been renamed as rpl_malloc. */
25682#undef malloc
25683
25684/* Thanks to Mike Haertel and Jim Avera for this test.
25685 Here is a matrix of mmap possibilities:
25686 mmap private not fixed
25687 mmap private fixed at somewhere currently unmapped
25688 mmap private fixed at somewhere already mapped
25689 mmap shared not fixed
25690 mmap shared fixed at somewhere currently unmapped
25691 mmap shared fixed at somewhere already mapped
25692 For private mappings, we should verify that changes cannot be read()
25693 back from the file, nor mmap's back from the file at a different
25694 address. (There have been systems where private was not correctly
25695 implemented like the infamous i386 svr4.0, and systems where the
25696 VM page cache was not coherent with the file system buffer cache
25697 like early versions of FreeBSD and possibly contemporary NetBSD.)
25698 For shared mappings, we should conversely verify that changes get
25699 propagated back to all the places they're supposed to be.
25700
25701 Grep wants private fixed already mapped.
25702 The main things grep needs to know about mmap are:
25703 * does it exist and is it safe to write into the mmap'd area
25704 * how to use it (BSD variants) */
25705
25706#include <fcntl.h>
25707#include <sys/mman.h>
25708
25709#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
25710char *malloc ();
25711#endif
25712
25713/* This mess was copied from the GNU getpagesize.h. */
25714#ifndef HAVE_GETPAGESIZE
25715/* Assume that all systems that can run configure have sys/param.h. */
25716# ifndef HAVE_SYS_PARAM_H
25717# define HAVE_SYS_PARAM_H 1
25718# endif
25719
25720# ifdef _SC_PAGESIZE
25721# define getpagesize() sysconf(_SC_PAGESIZE)
25722# else /* no _SC_PAGESIZE */
25723# ifdef HAVE_SYS_PARAM_H
25724# include <sys/param.h>
25725# ifdef EXEC_PAGESIZE
25726# define getpagesize() EXEC_PAGESIZE
25727# else /* no EXEC_PAGESIZE */
25728# ifdef NBPG
25729# define getpagesize() NBPG * CLSIZE
25730# ifndef CLSIZE
25731# define CLSIZE 1
25732# endif /* no CLSIZE */
25733# else /* no NBPG */
25734# ifdef NBPC
25735# define getpagesize() NBPC
25736# else /* no NBPC */
25737# ifdef PAGESIZE
25738# define getpagesize() PAGESIZE
25739# endif /* PAGESIZE */
25740# endif /* no NBPC */
25741# endif /* no NBPG */
25742# endif /* no EXEC_PAGESIZE */
25743# else /* no HAVE_SYS_PARAM_H */
25744# define getpagesize() 8192 /* punt totally */
25745# endif /* no HAVE_SYS_PARAM_H */
25746# endif /* no _SC_PAGESIZE */
25747
25748#endif /* no HAVE_GETPAGESIZE */
25749
25750int
25751main ()
25752{
25753 char *data, *data2, *data3;
25754 int i, pagesize;
25755 int fd;
25756
25757 pagesize = getpagesize ();
25758
25759 /* First, make a file with some known garbage in it. */
25760 data = (char *) malloc (pagesize);
25761 if (!data)
25762 return 1;
25763 for (i = 0; i < pagesize; ++i)
25764 *(data + i) = rand ();
25765 umask (0);
25766 fd = creat ("conftest.mmap", 0600);
25767 if (fd < 0)
25768 return 1;
25769 if (write (fd, data, pagesize) != pagesize)
25770 return 1;
25771 close (fd);
25772
25773 /* Next, try to mmap the file at a fixed address which already has
25774 something else allocated at it. If we can, also make sure that
25775 we see the same garbage. */
25776 fd = open ("conftest.mmap", O_RDWR);
25777 if (fd < 0)
25778 return 1;
25779 data2 = (char *) malloc (2 * pagesize);
25780 if (!data2)
25781 return 1;
25782 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
25783 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
25784 MAP_PRIVATE | MAP_FIXED, fd, 0L))
25785 return 1;
25786 for (i = 0; i < pagesize; ++i)
25787 if (*(data + i) != *(data2 + i))
25788 return 1;
25789
25790 /* Finally, make sure that changes to the mapped area do not
25791 percolate back to the file as seen by read(). (This is a bug on
25792 some variants of i386 svr4.0.) */
25793 for (i = 0; i < pagesize; ++i)
25794 *(data2 + i) = *(data2 + i) + 1;
25795 data3 = (char *) malloc (pagesize);
25796 if (!data3)
25797 return 1;
25798 if (read (fd, data3, pagesize) != pagesize)
25799 return 1;
25800 for (i = 0; i < pagesize; ++i)
25801 if (*(data + i) != *(data3 + i))
25802 return 1;
25803 close (fd);
25804 return 0;
25805}
25806_ACEOF
25807rm -f conftest$ac_exeext
25808if { (ac_try="$ac_link"
25809case "(($ac_try" in
25810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25811 *) ac_try_echo=$ac_try;;
25812esac
25813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25814 (eval "$ac_link") 2>&5
25815 ac_status=$?
25816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25818 { (case "(($ac_try" in
25819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25820 *) ac_try_echo=$ac_try;;
25821esac
25822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25823 (eval "$ac_try") 2>&5
25824 ac_status=$?
25825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25826 (exit $ac_status); }; }; then
25827 ac_cv_func_mmap_fixed_mapped=yes
25828else
25829 echo "$as_me: program exited with status $ac_status" >&5
25830echo "$as_me: failed program was:" >&5
25831sed 's/^/| /' conftest.$ac_ext >&5
25832
25833( exit $ac_status )
25834ac_cv_func_mmap_fixed_mapped=no
25835fi
25836rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25837fi
25838
25839
25840fi
25841{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
25842echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
25843if test $ac_cv_func_mmap_fixed_mapped = yes; then
25844
25845cat >>confdefs.h <<\_ACEOF
25846#define HAVE_MMAP 1
25847_ACEOF
25848
25849fi
25850rm -f conftest.mmap
25851
25852
25853{ echo "$as_me:$LINENO: checking for /dev/poll" >&5
25854echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; }
25855if test -c "/dev/poll"; then
25856 { echo "$as_me:$LINENO: result: yes" >&5
25857echo "${ECHO_T}yes" >&6; }
25858
25859cat >>confdefs.h <<\_ACEOF
25860#define HAVE_DEVPOLL 1
25861_ACEOF
25862
25863else
25864 { echo "$as_me:$LINENO: result: no" >&5
25865echo "${ECHO_T}no" >&6; }
25866fi
25867
25868
25869if test "$is_mingw" = "yes"; then
25870
25871cat >>confdefs.h <<\_ACEOF
25872#define HAVE_WIN32 1
25873_ACEOF
25874
25875fi
25876
25877
25878{ echo "$as_me:$LINENO: checking for OpenSSL" >&5
25879echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
25880# Check whether --enable-openssl was given.
25881if test "${enable_openssl+set}" = set; then
25882 enableval=$enable_openssl; cf_enable_openssl=$enableval
25883else
25884 cf_enable_openssl="auto"
25885fi
25886
25887
25888if test "$cf_enable_openssl" != "no" ; then
25889 cf_openssl_basedir=""
25890 if test "$cf_enable_openssl" != "auto" &&
25891 test "$cf_enable_openssl" != "yes" ; then
25892 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
25893 else
25894 for dirs in /usr/local/ssl /usr/pkg /usr/local \
25895 /usr/local/openssl ; do
25896 if test -f "${dirs}/include/openssl/opensslv.h" ; then
25897 cf_openssl_basedir="${dirs}"
25898 break
25899 fi
25900 done
25901 unset dirs
25902 fi
25903 if test ! -z "$cf_openssl_basedir"; then
25904 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
25905 SSL_INCLUDES="-I${cf_openssl_basedir}/include"
25906 SSL_LIBS="-L${cf_openssl_basedir}/lib"
25907 else
25908 cf_openssl_basedir=""
25909 fi
25910 else
25911 if test -f "/usr/include/openssl/opensslv.h" ; then
25912 cf_openssl_basedir="/usr"
25913 fi
25914 fi
25915
25916 if test ! -z "$cf_openssl_basedir"; then
25917 { echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5
25918echo "${ECHO_T}$cf_openssl_basedir" >&6; }
25919 cf_enable_openssl="yes"
25920 else
25921 { echo "$as_me:$LINENO: result: not found. Specify a correct path?" >&5
25922echo "${ECHO_T}not found. Specify a correct path?" >&6; }
25923 cf_enable_openssl="no"
25924 fi
25925 unset cf_openssl_basedir
25926else
25927 { echo "$as_me:$LINENO: result: disabled" >&5
25928echo "${ECHO_T}disabled" >&6; }
25929fi
25930
25931save_CPPFLAGS="$CPPFLAGS"
25932CPPFLAGS="$CPPFLAGS $SSL_INCLUDES"
25933save_LIBS="$LIBS"
25934LIBS="$LIBS $SSL_LIBS"
25935if test "$cf_enable_openssl" != no; then
25936 { echo "$as_me:$LINENO: checking for OpenSSL 0.9.7 or above" >&5
25937echo $ECHO_N "checking for OpenSSL 0.9.7 or above... $ECHO_C" >&6; }
25938 if test "$cross_compiling" = yes; then
25939 cf_enable_openssl=no
25940else
25941 cat >conftest.$ac_ext <<_ACEOF
25942/* confdefs.h. */
25943_ACEOF
25944cat confdefs.h >>conftest.$ac_ext
25945cat >>conftest.$ac_ext <<_ACEOF
25946/* end confdefs.h. */
25947#include <openssl/opensslv.h>
25948 #include <stdlib.h>
25949int
25950main ()
25951{
25952if (OPENSSL_VERSION_NUMBER >= 0x00907000)
25953 exit(0); else exit(1);
25954 ;
25955 return 0;
25956}
25957_ACEOF
25958rm -f conftest$ac_exeext
25959if { (ac_try="$ac_link"
25960case "(($ac_try" in
25961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25962 *) ac_try_echo=$ac_try;;
25963esac
25964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25965 (eval "$ac_link") 2>&5
25966 ac_status=$?
25967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25969 { (case "(($ac_try" in
25970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25971 *) ac_try_echo=$ac_try;;
25972esac
25973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25974 (eval "$ac_try") 2>&5
25975 ac_status=$?
25976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25977 (exit $ac_status); }; }; then
25978 cf_enable_openssl=yes
25979else
25980 echo "$as_me: program exited with status $ac_status" >&5
25981echo "$as_me: failed program was:" >&5
25982sed 's/^/| /' conftest.$ac_ext >&5
25983
25984( exit $ac_status )
25985cf_enable_openssl=no
25986fi
25987rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25988fi
25989
25990
25991
25992 if test "$cf_enable_openssl" != no; then
25993 { echo "$as_me:$LINENO: result: found" >&5
25994echo "${ECHO_T}found" >&6; }
25995 else
25996 { echo "$as_me:$LINENO: result: no - OpenSSL support disabled" >&5
25997echo "${ECHO_T}no - OpenSSL support disabled" >&6; }
25998 fi
25999
26000fi
26001
26002
26003if test "$cf_enable_openssl" != no; then
26004 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
26005 { echo "$as_me:$LINENO: checking for RAND_status in -lcrypto" >&5
26006echo $ECHO_N "checking for RAND_status in -lcrypto... $ECHO_C" >&6; }
26007if test "${ac_cv_lib_crypto_RAND_status+set}" = set; then
26008 echo $ECHO_N "(cached) $ECHO_C" >&6
26009else
26010 ac_check_lib_save_LIBS=$LIBS
26011LIBS="-lcrypto $LIBS"
26012cat >conftest.$ac_ext <<_ACEOF
26013/* confdefs.h. */
26014_ACEOF
26015cat confdefs.h >>conftest.$ac_ext
26016cat >>conftest.$ac_ext <<_ACEOF
26017/* end confdefs.h. */
26018
26019/* Override any GCC internal prototype to avoid an error.
26020 Use char because int might match the return type of a GCC
26021 builtin and then its argument prototype would still apply. */
26022#ifdef __cplusplus
26023extern "C"
26024#endif
26025char RAND_status ();
26026int
26027main ()
26028{
26029return RAND_status ();
26030 ;
26031 return 0;
26032}
26033_ACEOF
26034rm -f conftest.$ac_objext conftest$ac_exeext
26035if { (ac_try="$ac_link"
26036case "(($ac_try" in
26037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26038 *) ac_try_echo=$ac_try;;
26039esac
26040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26041 (eval "$ac_link") 2>conftest.er1
26042 ac_status=$?
26043 grep -v '^ *+' conftest.er1 >conftest.err
26044 rm -f conftest.er1
26045 cat conftest.err >&5
26046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26047 (exit $ac_status); } && {
26048 test -z "$ac_c_werror_flag" ||
26049 test ! -s conftest.err
26050 } && test -s conftest$ac_exeext &&
26051 $as_test_x conftest$ac_exeext; then
26052 ac_cv_lib_crypto_RAND_status=yes
26053else
26054 echo "$as_me: failed program was:" >&5
26055sed 's/^/| /' conftest.$ac_ext >&5
26056
26057 ac_cv_lib_crypto_RAND_status=no
26058fi
26059
26060rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26061 conftest$ac_exeext conftest.$ac_ext
26062LIBS=$ac_check_lib_save_LIBS
26063fi
26064{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RAND_status" >&5
26065echo "${ECHO_T}$ac_cv_lib_crypto_RAND_status" >&6; }
26066if test $ac_cv_lib_crypto_RAND_status = yes; then
26067 cf_enable_openssl=yes
26068else
26069 cf_enable_openssl=no
26070fi
26071
26072fi
26073
26074
26075if test "$cf_enable_openssl" != no; then
26076 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
26077 { echo "$as_me:$LINENO: checking for SSL_read in -lssl" >&5
26078echo $ECHO_N "checking for SSL_read in -lssl... $ECHO_C" >&6; }
26079if test "${ac_cv_lib_ssl_SSL_read+set}" = set; then
26080 echo $ECHO_N "(cached) $ECHO_C" >&6
26081else
26082 ac_check_lib_save_LIBS=$LIBS
26083LIBS="-lssl -lcrypto $LIBS"
26084cat >conftest.$ac_ext <<_ACEOF
26085/* confdefs.h. */
26086_ACEOF
26087cat confdefs.h >>conftest.$ac_ext
26088cat >>conftest.$ac_ext <<_ACEOF
26089/* end confdefs.h. */
26090
26091/* Override any GCC internal prototype to avoid an error.
26092 Use char because int might match the return type of a GCC
26093 builtin and then its argument prototype would still apply. */
26094#ifdef __cplusplus
26095extern "C"
26096#endif
26097char SSL_read ();
26098int
26099main ()
26100{
26101return SSL_read ();
26102 ;
26103 return 0;
26104}
26105_ACEOF
26106rm -f conftest.$ac_objext conftest$ac_exeext
26107if { (ac_try="$ac_link"
26108case "(($ac_try" in
26109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26110 *) ac_try_echo=$ac_try;;
26111esac
26112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26113 (eval "$ac_link") 2>conftest.er1
26114 ac_status=$?
26115 grep -v '^ *+' conftest.er1 >conftest.err
26116 rm -f conftest.er1
26117 cat conftest.err >&5
26118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26119 (exit $ac_status); } && {
26120 test -z "$ac_c_werror_flag" ||
26121 test ! -s conftest.err
26122 } && test -s conftest$ac_exeext &&
26123 $as_test_x conftest$ac_exeext; then
26124 ac_cv_lib_ssl_SSL_read=yes
26125else
26126 echo "$as_me: failed program was:" >&5
26127sed 's/^/| /' conftest.$ac_ext >&5
26128
26129 ac_cv_lib_ssl_SSL_read=no
26130fi
26131
26132rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26133 conftest$ac_exeext conftest.$ac_ext
26134LIBS=$ac_check_lib_save_LIBS
26135fi
26136{ echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_read" >&5
26137echo "${ECHO_T}$ac_cv_lib_ssl_SSL_read" >&6; }
26138if test $ac_cv_lib_ssl_SSL_read = yes; then
26139 SSL_LIBS="-lssl -lcrypto"
26140else
26141 cf_enable_openssl=no
26142fi
26143
26144fi
26145
26146if test "$cf_enable_openssl" != no; then
26147
26148cat >>confdefs.h <<\_ACEOF
26149#define HAVE_OPENSSL 1
26150_ACEOF
26151
26152fi
26153
26154
26155CPPFLAGS="$save_CPPFLAGS"
26156LIBS="$save_LIBS"
26157
26158
26159
26160
26161
26162
26163# Check whether --enable-assert was given.
26164if test "${enable_assert+set}" = set; then
26165 enableval=$enable_assert; assert=$enableval
26166else
26167 assert=no
26168fi
26169
26170
26171if test "$assert" = no; then
26172
26173cat >>confdefs.h <<\_ACEOF
26174#define NDEBUG 1
26175_ACEOF
26176
26177elif test "$assert" = soft; then
26178
26179cat >>confdefs.h <<\_ACEOF
26180#define SOFT_ASSERT 1
26181_ACEOF
26182
26183
26184cat >>confdefs.h <<\_ACEOF
26185#define NDEBUG 1
26186_ACEOF
26187
26188elif test "$assert" = yes; then
26189 assert = "hard";
26190fi
26191
26192{ echo "$as_me:$LINENO: checking if you want to do a profile build" >&5
26193echo $ECHO_N "checking if you want to do a profile build... $ECHO_C" >&6; }
26194# Check whether --enable-profile was given.
26195if test "${enable_profile+set}" = set; then
26196 enableval=$enable_profile; profile=$enableval
26197else
26198 profile=no
26199fi
26200
26201
26202if test "$profile" = yes; then
26203 if test "$ac_cv_c_compiler_gnu" = yes; then
26204 CFLAGS="$CFLAGS -pg -static"
26205 { echo "$as_me:$LINENO: result: yes, adding -pg -static" >&5
26206echo "${ECHO_T}yes, adding -pg -static" >&6; }
26207
26208cat >>confdefs.h <<\_ACEOF
26209#define RATBOX_PROFILE 1
26210_ACEOF
26211
26212 else
26213 { echo "$as_me:$LINENO: result: no, profile builds only work with gcc" >&5
26214echo "${ECHO_T}no, profile builds only work with gcc" >&6; }
26215 fi
26216else
26217 { echo "$as_me:$LINENO: result: no" >&5
26218echo "${ECHO_T}no" >&6; }
26219fi
26220
26221# Check whether --enable-balloc was given.
26222if test "${enable_balloc+set}" = set; then
26223 enableval=$enable_balloc; balloc=$enableval
26224else
26225 balloc=yes
26226fi
26227
26228
26229if test "$balloc" = no; then
26230
26231cat >>confdefs.h <<\_ACEOF
26232#define NOBALLOC 1
26233_ACEOF
26234
26235fi
26236
26237# Check whether --enable-warnings was given.
26238if test "${enable_warnings+set}" = set; then
26239 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"
26240fi
26241
26242
26243
26244
26245
26246
26247
26248
26249
26250
26251if test "$prefix" = "NONE"; then
26252
26253cat >>confdefs.h <<_ACEOF
26254#define RB_PREFIX "$ac_default_prefix"
26255_ACEOF
26256
26257
26258else
26259
26260
26261 prefix=`echo $prefix | sed 's/\/$//'`
26262
26263cat >>confdefs.h <<_ACEOF
26264#define RB_PREFIX "$prefix"
26265_ACEOF
26266
26267
26268fi
26269
26270
26271
26272for dtype in uint64_t uint32_t uint16_t uint8_t int64_t int32_t int16_t int8_t intmax_t intptr_t uintmax_t uintptr_t
26273do
26274 var="\$ac_cv_c_${dtype}"
26275 t_type=$(eval echo $var);
26276 if test "x$t_type" = "xyes"; then
26277 eval rb_$dtype="\"$dtype\""
26278 else
26279 eval rb_$dtype="\"$t_type\""
26280 fi
26281done
26282
26283ac_config_commands="$ac_config_commands include/librb-config.h"
26284
26285
26286
26287ac_config_files="$ac_config_files src/Makefile Makefile"
26288
26289
26290cat >confcache <<\_ACEOF
26291# This file is a shell script that caches the results of configure
26292# tests run on this system so they can be shared between configure
26293# scripts and configure runs, see configure's option --config-cache.
26294# It is not useful on other systems. If it contains results you don't
26295# want to keep, you may remove or edit it.
26296#
26297# config.status only pays attention to the cache file if you give it
26298# the --recheck option to rerun configure.
26299#
26300# `ac_cv_env_foo' variables (set or unset) will be overridden when
26301# loading this file, other *unset* `ac_cv_foo' will be assigned the
26302# following values.
26303
26304_ACEOF
26305
26306# The following way of writing the cache mishandles newlines in values,
26307# but we know of no workaround that is simple, portable, and efficient.
26308# So, we kill variables containing newlines.
26309# Ultrix sh set writes to stderr and can't be redirected directly,
26310# and sets the high bit in the cache file unless we assign to the vars.
26311(
26312 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26313 eval ac_val=\$$ac_var
26314 case $ac_val in #(
26315 *${as_nl}*)
26316 case $ac_var in #(
26317 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26318echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26319 esac
26320 case $ac_var in #(
26321 _ | IFS | as_nl) ;; #(
26322 *) $as_unset $ac_var ;;
26323 esac ;;
26324 esac
26325 done
26326
26327 (set) 2>&1 |
26328 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26329 *${as_nl}ac_space=\ *)
26330 # `set' does not quote correctly, so add quotes (double-quote
26331 # substitution turns \\\\ into \\, and sed turns \\ into \).
26332 sed -n \
26333 "s/'/'\\\\''/g;
26334 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26335 ;; #(
26336 *)
26337 # `set' quotes correctly as required by POSIX, so do not add quotes.
26338 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26339 ;;
26340 esac |
26341 sort
26342) |
26343 sed '
26344 /^ac_cv_env_/b end
26345 t clear
26346 :clear
26347 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26348 t end
26349 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26350 :end' >>confcache
26351if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26352 if test -w "$cache_file"; then
26353 test "x$cache_file" != "x/dev/null" &&
26354 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26355echo "$as_me: updating cache $cache_file" >&6;}
26356 cat confcache >$cache_file
26357 else
26358 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26359echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26360 fi
26361fi
26362rm -f confcache
26363
26364test "x$prefix" = xNONE && prefix=$ac_default_prefix
26365# Let make expand exec_prefix.
26366test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26367
26368DEFS=-DHAVE_CONFIG_H
26369
26370ac_libobjs=
26371ac_ltlibobjs=
26372for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26373 # 1. Remove the extension, and $U if already installed.
26374 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26375 ac_i=`echo "$ac_i" | sed "$ac_script"`
26376 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26377 # will be set to the directory where LIBOBJS objects are built.
26378 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26379 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26380done
26381LIBOBJS=$ac_libobjs
26382
26383LTLIBOBJS=$ac_ltlibobjs
26384
26385
26386if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26387 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26388Usually this means the macro was only invoked conditionally." >&5
26389echo "$as_me: error: conditional \"AMDEP\" was never defined.
26390Usually this means the macro was only invoked conditionally." >&2;}
26391 { (exit 1); exit 1; }; }
26392fi
26393if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26394 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26395Usually this means the macro was only invoked conditionally." >&5
26396echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26397Usually this means the macro was only invoked conditionally." >&2;}
26398 { (exit 1); exit 1; }; }
26399fi
26400if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26401 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
26402Usually this means the macro was only invoked conditionally." >&5
26403echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
26404Usually this means the macro was only invoked conditionally." >&2;}
26405 { (exit 1); exit 1; }; }
26406fi
26407if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26408 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26409Usually this means the macro was only invoked conditionally." >&5
26410echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26411Usually this means the macro was only invoked conditionally." >&2;}
26412 { (exit 1); exit 1; }; }
26413fi
26414if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
26415 { { echo "$as_me:$LINENO: error: conditional \"MINGW\" was never defined.
26416Usually this means the macro was only invoked conditionally." >&5
26417echo "$as_me: error: conditional \"MINGW\" was never defined.
26418Usually this means the macro was only invoked conditionally." >&2;}
26419 { (exit 1); exit 1; }; }
26420fi
26421if test -z "${NEED_CRYPT_TRUE}" && test -z "${NEED_CRYPT_FALSE}"; then
26422 { { echo "$as_me:$LINENO: error: conditional \"NEED_CRYPT\" was never defined.
26423Usually this means the macro was only invoked conditionally." >&5
26424echo "$as_me: error: conditional \"NEED_CRYPT\" was never defined.
26425Usually this means the macro was only invoked conditionally." >&2;}
26426 { (exit 1); exit 1; }; }
26427fi
26428
26429: ${CONFIG_STATUS=./config.status}
26430ac_clean_files_save=$ac_clean_files
26431ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26432{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26433echo "$as_me: creating $CONFIG_STATUS" >&6;}
26434cat >$CONFIG_STATUS <<_ACEOF
26435#! $SHELL
26436# Generated by $as_me.
26437# Run this file to recreate the current configuration.
26438# Compiler output produced by configure, useful for debugging
26439# configure, is in config.log if it exists.
26440
26441debug=false
26442ac_cs_recheck=false
26443ac_cs_silent=false
26444SHELL=\${CONFIG_SHELL-$SHELL}
26445_ACEOF
26446
26447cat >>$CONFIG_STATUS <<\_ACEOF
26448## --------------------- ##
26449## M4sh Initialization. ##
26450## --------------------- ##
26451
26452# Be more Bourne compatible
26453DUALCASE=1; export DUALCASE # for MKS sh
26454if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26455 emulate sh
26456 NULLCMD=:
26457 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26458 # is contrary to our usage. Disable this feature.
26459 alias -g '${1+"$@"}'='"$@"'
26460 setopt NO_GLOB_SUBST
26461else
26462 case `(set -o) 2>/dev/null` in
26463 *posix*) set -o posix ;;
26464esac
26465
26466fi
26467
26468
26469
26470
26471# PATH needs CR
26472# Avoid depending upon Character Ranges.
26473as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26474as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26475as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26476as_cr_digits='0123456789'
26477as_cr_alnum=$as_cr_Letters$as_cr_digits
26478
26479# The user is always right.
26480if test "${PATH_SEPARATOR+set}" != set; then
26481 echo "#! /bin/sh" >conf$$.sh
26482 echo "exit 0" >>conf$$.sh
26483 chmod +x conf$$.sh
26484 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26485 PATH_SEPARATOR=';'
26486 else
26487 PATH_SEPARATOR=:
26488 fi
26489 rm -f conf$$.sh
26490fi
26491
26492# Support unset when possible.
26493if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26494 as_unset=unset
26495else
26496 as_unset=false
26497fi
26498
26499
26500# IFS
26501# We need space, tab and new line, in precisely that order. Quoting is
26502# there to prevent editors from complaining about space-tab.
26503# (If _AS_PATH_WALK were called with IFS unset, it would disable word
26504# splitting by setting IFS to empty value.)
26505as_nl='
26506'
26507IFS=" "" $as_nl"
26508
26509# Find who we are. Look in the path if we contain no directory separator.
26510case $0 in
26511 *[\\/]* ) as_myself=$0 ;;
26512 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26513for as_dir in $PATH
26514do
26515 IFS=$as_save_IFS
26516 test -z "$as_dir" && as_dir=.
26517 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26518done
26519IFS=$as_save_IFS
26520
26521 ;;
26522esac
26523# We did not find ourselves, most probably we were run as `sh COMMAND'
26524# in which case we are not to be found in the path.
26525if test "x$as_myself" = x; then
26526 as_myself=$0
26527fi
26528if test ! -f "$as_myself"; then
26529 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26530 { (exit 1); exit 1; }
26531fi
26532
26533# Work around bugs in pre-3.0 UWIN ksh.
26534for as_var in ENV MAIL MAILPATH
26535do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26536done
26537PS1='$ '
26538PS2='> '
26539PS4='+ '
26540
26541# NLS nuisances.
26542for as_var in \
26543 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26544 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26545 LC_TELEPHONE LC_TIME
26546do
26547 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26548 eval $as_var=C; export $as_var
26549 else
26550 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26551 fi
26552done
26553
26554# Required to use basename.
26555if expr a : '\(a\)' >/dev/null 2>&1 &&
26556 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26557 as_expr=expr
26558else
26559 as_expr=false
26560fi
26561
26562if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26563 as_basename=basename
26564else
26565 as_basename=false
26566fi
26567
26568
26569# Name of the executable.
26570as_me=`$as_basename -- "$0" ||
26571$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26572 X"$0" : 'X\(//\)$' \| \
26573 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26574echo X/"$0" |
26575 sed '/^.*\/\([^/][^/]*\)\/*$/{
26576 s//\1/
26577 q
26578 }
26579 /^X\/\(\/\/\)$/{
26580 s//\1/
26581 q
26582 }
26583 /^X\/\(\/\).*/{
26584 s//\1/
26585 q
26586 }
26587 s/.*/./; q'`
26588
26589# CDPATH.
26590$as_unset CDPATH
26591
26592
26593
26594 as_lineno_1=$LINENO
26595 as_lineno_2=$LINENO
26596 test "x$as_lineno_1" != "x$as_lineno_2" &&
26597 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26598
26599 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26600 # uniformly replaced by the line number. The first 'sed' inserts a
26601 # line-number line after each line using $LINENO; the second 'sed'
26602 # does the real work. The second script uses 'N' to pair each
26603 # line-number line with the line containing $LINENO, and appends
26604 # trailing '-' during substitution so that $LINENO is not a special
26605 # case at line end.
26606 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26607 # scripts with optimization help from Paolo Bonzini. Blame Lee
26608 # E. McMahon (1931-1989) for sed's syntax. :-)
26609 sed -n '
26610 p
26611 /[$]LINENO/=
26612 ' <$as_myself |
26613 sed '
26614 s/[$]LINENO.*/&-/
26615 t lineno
26616 b
26617 :lineno
26618 N
26619 :loop
26620 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26621 t loop
26622 s/-\n.*//
26623 ' >$as_me.lineno &&
26624 chmod +x "$as_me.lineno" ||
26625 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26626 { (exit 1); exit 1; }; }
26627
26628 # Don't try to exec as it changes $[0], causing all sort of problems
26629 # (the dirname of $[0] is not the place where we might find the
26630 # original and so on. Autoconf is especially sensitive to this).
26631 . "./$as_me.lineno"
26632 # Exit status is that of the last command.
26633 exit
26634}
26635
26636
26637if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26638 as_dirname=dirname
26639else
26640 as_dirname=false
26641fi
26642
26643ECHO_C= ECHO_N= ECHO_T=
26644case `echo -n x` in
26645-n*)
26646 case `echo 'x\c'` in
26647 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26648 *) ECHO_C='\c';;
26649 esac;;
26650*)
26651 ECHO_N='-n';;
26652esac
26653
26654if expr a : '\(a\)' >/dev/null 2>&1 &&
26655 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26656 as_expr=expr
26657else
26658 as_expr=false
26659fi
26660
26661rm -f conf$$ conf$$.exe conf$$.file
26662if test -d conf$$.dir; then
26663 rm -f conf$$.dir/conf$$.file
26664else
26665 rm -f conf$$.dir
26666 mkdir conf$$.dir
26667fi
26668echo >conf$$.file
26669if ln -s conf$$.file conf$$ 2>/dev/null; then
26670 as_ln_s='ln -s'
26671 # ... but there are two gotchas:
26672 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26673 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26674 # In both cases, we have to default to `cp -p'.
26675 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26676 as_ln_s='cp -p'
26677elif ln conf$$.file conf$$ 2>/dev/null; then
26678 as_ln_s=ln
26679else
26680 as_ln_s='cp -p'
26681fi
26682rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26683rmdir conf$$.dir 2>/dev/null
26684
26685if mkdir -p . 2>/dev/null; then
26686 as_mkdir_p=:
26687else
26688 test -d ./-p && rmdir ./-p
26689 as_mkdir_p=false
26690fi
26691
26692if test -x / >/dev/null 2>&1; then
26693 as_test_x='test -x'
26694else
26695 if ls -dL / >/dev/null 2>&1; then
26696 as_ls_L_option=L
26697 else
26698 as_ls_L_option=
26699 fi
26700 as_test_x='
26701 eval sh -c '\''
26702 if test -d "$1"; then
26703 test -d "$1/.";
26704 else
26705 case $1 in
26706 -*)set "./$1";;
26707 esac;
26708 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26709 ???[sx]*):;;*)false;;esac;fi
26710 '\'' sh
26711 '
26712fi
26713as_executable_p=$as_test_x
26714
26715# Sed expression to map a string onto a valid CPP name.
26716as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26717
26718# Sed expression to map a string onto a valid variable name.
26719as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26720
26721
26722exec 6>&1
26723
26724# Save the log message, to keep $[0] and so on meaningful, and to
26725# report actual input values of CONFIG_FILES etc. instead of their
26726# values after options handling.
26727ac_log="
26728This file was extended by libratbox $as_me devel, which was
26729generated by GNU Autoconf 2.61. Invocation command line was
26730
26731 CONFIG_FILES = $CONFIG_FILES
26732 CONFIG_HEADERS = $CONFIG_HEADERS
26733 CONFIG_LINKS = $CONFIG_LINKS
26734 CONFIG_COMMANDS = $CONFIG_COMMANDS
26735 $ $0 $@
26736
26737on `(hostname || uname -n) 2>/dev/null | sed 1q`
26738"
26739
26740_ACEOF
26741
26742cat >>$CONFIG_STATUS <<_ACEOF
26743# Files that config.status was made for.
26744config_files="$ac_config_files"
26745config_headers="$ac_config_headers"
26746config_commands="$ac_config_commands"
26747
26748_ACEOF
26749
26750cat >>$CONFIG_STATUS <<\_ACEOF
26751ac_cs_usage="\
26752\`$as_me' instantiates files from templates according to the
26753current configuration.
26754
26755Usage: $0 [OPTIONS] [FILE]...
26756
26757 -h, --help print this help, then exit
26758 -V, --version print version number and configuration settings, then exit
26759 -q, --quiet do not print progress messages
26760 -d, --debug don't remove temporary files
26761 --recheck update $as_me by reconfiguring in the same conditions
26762 --file=FILE[:TEMPLATE]
26763 instantiate the configuration file FILE
26764 --header=FILE[:TEMPLATE]
26765 instantiate the configuration header FILE
26766
26767Configuration files:
26768$config_files
26769
26770Configuration headers:
26771$config_headers
26772
26773Configuration commands:
26774$config_commands
26775
26776Report bugs to <bug-autoconf@gnu.org>."
26777
26778_ACEOF
26779cat >>$CONFIG_STATUS <<_ACEOF
26780ac_cs_version="\\
26781libratbox config.status devel
26782configured by $0, generated by GNU Autoconf 2.61,
26783 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26784
26785Copyright (C) 2006 Free Software Foundation, Inc.
26786This config.status script is free software; the Free Software Foundation
26787gives unlimited permission to copy, distribute and modify it."
26788
26789ac_pwd='$ac_pwd'
26790srcdir='$srcdir'
26791INSTALL='$INSTALL'
26792MKDIR_P='$MKDIR_P'
26793_ACEOF
26794
26795cat >>$CONFIG_STATUS <<\_ACEOF
26796# If no file are specified by the user, then we need to provide default
26797# value. By we need to know if files were specified by the user.
26798ac_need_defaults=:
26799while test $# != 0
26800do
26801 case $1 in
26802 --*=*)
26803 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26804 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26805 ac_shift=:
26806 ;;
26807 *)
26808 ac_option=$1
26809 ac_optarg=$2
26810 ac_shift=shift
26811 ;;
26812 esac
26813
26814 case $ac_option in
26815 # Handling of the options.
26816 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26817 ac_cs_recheck=: ;;
26818 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26819 echo "$ac_cs_version"; exit ;;
26820 --debug | --debu | --deb | --de | --d | -d )
26821 debug=: ;;
26822 --file | --fil | --fi | --f )
26823 $ac_shift
26824 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26825 ac_need_defaults=false;;
26826 --header | --heade | --head | --hea )
26827 $ac_shift
26828 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26829 ac_need_defaults=false;;
26830 --he | --h)
26831 # Conflict between --help and --header
26832 { echo "$as_me: error: ambiguous option: $1
26833Try \`$0 --help' for more information." >&2
26834 { (exit 1); exit 1; }; };;
26835 --help | --hel | -h )
26836 echo "$ac_cs_usage"; exit ;;
26837 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26838 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26839 ac_cs_silent=: ;;
26840
26841 # This is an error.
26842 -*) { echo "$as_me: error: unrecognized option: $1
26843Try \`$0 --help' for more information." >&2
26844 { (exit 1); exit 1; }; } ;;
26845
26846 *) ac_config_targets="$ac_config_targets $1"
26847 ac_need_defaults=false ;;
26848
26849 esac
26850 shift
26851done
26852
26853ac_configure_extra_args=
26854
26855if $ac_cs_silent; then
26856 exec 6>/dev/null
26857 ac_configure_extra_args="$ac_configure_extra_args --silent"
26858fi
26859
26860_ACEOF
26861cat >>$CONFIG_STATUS <<_ACEOF
26862if \$ac_cs_recheck; then
26863 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26864 CONFIG_SHELL=$SHELL
26865 export CONFIG_SHELL
26866 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26867fi
26868
26869_ACEOF
26870cat >>$CONFIG_STATUS <<\_ACEOF
26871exec 5>>config.log
26872{
26873 echo
26874 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26875## Running $as_me. ##
26876_ASBOX
26877 echo "$ac_log"
26878} >&5
26879
26880_ACEOF
26881cat >>$CONFIG_STATUS <<_ACEOF
26882#
26883# INIT-COMMANDS
26884#
26885AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26886
26887 rb_uint64_t="$rb_uint64_t"
26888 rb_uint32_t="$rb_uint32_t"
26889 rb_uint16_t="$rb_uint16_t"
26890 rb_uint8_t="$rb_uint8_t"
26891 rb_int64_t="$rb_int64_t"
26892 rb_int32_t="$rb_int32_t"
26893 rb_int16_t="$rb_int16_t"
26894 rb_int8_t="$rb_int8_t"
26895 rb_intmax_t="$rb_intmax_t"
26896 rb_intptr_t="$rb_intptr_t"
26897 rb_uintmax_t="$rb_uintmax_t"
26898 rb_uintptr_t="$rb_uintptr_t"
26899 if test x$ac_cv_header_stdc = xyes; then
26900 rb_header_stdc=yes
26901 fi
26902 if test x$ac_cv_header_stdlib_h = xyes; then
26903 rb_header_stdlib_h=yes
26904 fi
26905 if test x$ac_cv_header_string_h = xyes; then
26906 rb_header_string_h=yes
26907 fi
26908 if test x$ac_cv_header_memory_h = xyes; then
26909 rb_header_memory_h=yes
26910 fi
26911 if test "x${ac_cv_working_alloca_h+set}" = xset ; then
26912 rb_alloca_h="$ac_cv_working_alloca_h"
26913 else
26914 rb_alloc_h="$ac_cv_header_alloca_h"
26915 fi
26916 if test x$ac_cv_member_struct_sockaddr_sa_len = xyes; then
26917 rb_sockaddr_sa_len=yes
26918 fi
26919 if test x$ac_cv_header_sys_socket_h = xyes; then
26920 rb_sys_socket_h=yes
26921 fi
26922 if test x$ac_cv_header_sys_types_h = xyes; then
26923 rb_sys_types_h=yes
26924 fi
26925 if test x$ac_cv_header_sys_stat_h = xyes; then
26926 rb_sys_stat_h=yes
26927 fi
26928 if test x$ac_cv_header_sys_time_h = xyes; then
26929 rb_sys_time_h=yes
26930 fi
26931 if test x$ac_cv_header_time = xyes; then
26932 rb_time_h=yes
26933 fi
26934
26935 if test x$ac_cv_header_stdint_h = xyes; then
26936 rb_stdint_h=yes
26937 fi
26938 if test x$ac_cv_header_inttypes_h = xyes; then
26939 rb_inttypes_h=yes
26940 fi
26941 if test x$ac_cv_header_netinet_in_h = xyes; then
26942 rb_netinet_in_h=yes
26943 fi
26944
26945 if test x$ac_cv_header_crypt_h = xyes; then
26946 rb_crypt_h=yes
26947 fi
26948 if test x$ac_cv_header_errno_h = xyes; then
26949 rb_errno_h=yes
26950 fi
26951 if test x$ac_cv_header_unistd_h = xyes; then
26952 rb_unistd_h=yes
26953 fi
26954 if test x$ac_cv_header_windows_h = xyes; then
26955 rb_windows_h=yes
26956 fi
26957 if test x$ac_cv_header_winsock2_h = xyes; then
26958 rb_winsock2_h=yes
26959 fi
26960 if test x$ac_cv_type_socklen_t = xyes; then
26961 rb_socklen_t="socklen_t"
26962 else
26963 rb_socklen_t="unsigned int"
26964 fi
26965 if test "x$rb_have_sockaddr_storage" = "xyes"; then
26966 rb_sockaddr_storage="yes"
26967 else
26968 rb_sockaddr_storage="no"
26969 fi
26970
26971 rb_have_ipv6="$have_v6"
26972
26973 rb_mv="$MV"
26974 rb_rm="$RM"
26975
26976
26977
26978
26979
26980
26981_ACEOF
26982
26983cat >>$CONFIG_STATUS <<\_ACEOF
26984
26985# Handling of arguments.
26986for ac_config_target in $ac_config_targets
26987do
26988 case $ac_config_target in
26989 "include/libratbox_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/libratbox_config.h" ;;
26990 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26991 "include/librb-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/librb-config.h" ;;
26992 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26993 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26994
26995 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26996echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26997 { (exit 1); exit 1; }; };;
26998 esac
26999done
27000
27001
27002# If the user did not use the arguments to specify the items to instantiate,
27003# then the envvar interface is used. Set only those that are not.
27004# We use the long form for the default assignment because of an extremely
27005# bizarre bug on SunOS 4.1.3.
27006if $ac_need_defaults; then
27007 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27008 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27009 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27010fi
27011
27012# Have a temporary directory for convenience. Make it in the build tree
27013# simply because there is no reason against having it here, and in addition,
27014# creating and moving files from /tmp can sometimes cause problems.
27015# Hook for its removal unless debugging.
27016# Note that there is a small window in which the directory will not be cleaned:
27017# after its creation but before its name has been assigned to `$tmp'.
27018$debug ||
27019{
27020 tmp=
27021 trap 'exit_status=$?
27022 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27023' 0
27024 trap '{ (exit 1); exit 1; }' 1 2 13 15
27025}
27026# Create a (secure) tmp directory for tmp files.
27027
27028{
27029 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27030 test -n "$tmp" && test -d "$tmp"
27031} ||
27032{
27033 tmp=./conf$$-$RANDOM
27034 (umask 077 && mkdir "$tmp")
27035} ||
27036{
27037 echo "$me: cannot create a temporary directory in ." >&2
27038 { (exit 1); exit 1; }
27039}
27040
27041#
27042# Set up the sed scripts for CONFIG_FILES section.
27043#
27044
27045# No need to generate the scripts if there are no CONFIG_FILES.
27046# This happens for instance when ./config.status config.h
27047if test -n "$CONFIG_FILES"; then
27048
27049_ACEOF
27050
27051
27052
27053ac_delim='%!_!# '
27054for ac_last_try in false false false false false :; do
27055 cat >conf$$subs.sed <<_ACEOF
27056SHELL!$SHELL$ac_delim
27057PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27058PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27059PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27060PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27061PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27062PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27063exec_prefix!$exec_prefix$ac_delim
27064prefix!$prefix$ac_delim
27065program_transform_name!$program_transform_name$ac_delim
27066bindir!$bindir$ac_delim
27067sbindir!$sbindir$ac_delim
27068libexecdir!$libexecdir$ac_delim
27069datarootdir!$datarootdir$ac_delim
27070datadir!$datadir$ac_delim
27071sysconfdir!$sysconfdir$ac_delim
27072sharedstatedir!$sharedstatedir$ac_delim
27073localstatedir!$localstatedir$ac_delim
27074includedir!$includedir$ac_delim
27075oldincludedir!$oldincludedir$ac_delim
27076docdir!$docdir$ac_delim
27077infodir!$infodir$ac_delim
27078htmldir!$htmldir$ac_delim
27079dvidir!$dvidir$ac_delim
27080pdfdir!$pdfdir$ac_delim
27081psdir!$psdir$ac_delim
27082libdir!$libdir$ac_delim
27083localedir!$localedir$ac_delim
27084mandir!$mandir$ac_delim
27085DEFS!$DEFS$ac_delim
27086ECHO_C!$ECHO_C$ac_delim
27087ECHO_N!$ECHO_N$ac_delim
27088ECHO_T!$ECHO_T$ac_delim
27089LIBS!$LIBS$ac_delim
27090build_alias!$build_alias$ac_delim
27091host_alias!$host_alias$ac_delim
27092target_alias!$target_alias$ac_delim
27093INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27094INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27095INSTALL_DATA!$INSTALL_DATA$ac_delim
27096am__isrc!$am__isrc$ac_delim
27097CYGPATH_W!$CYGPATH_W$ac_delim
27098PACKAGE!$PACKAGE$ac_delim
27099VERSION!$VERSION$ac_delim
27100ACLOCAL!$ACLOCAL$ac_delim
27101AUTOCONF!$AUTOCONF$ac_delim
27102AUTOMAKE!$AUTOMAKE$ac_delim
27103AUTOHEADER!$AUTOHEADER$ac_delim
27104MAKEINFO!$MAKEINFO$ac_delim
27105install_sh!$install_sh$ac_delim
27106STRIP!$STRIP$ac_delim
27107INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
27108mkdir_p!$mkdir_p$ac_delim
27109AWK!$AWK$ac_delim
27110SET_MAKE!$SET_MAKE$ac_delim
27111am__leading_dot!$am__leading_dot$ac_delim
27112AMTAR!$AMTAR$ac_delim
27113am__tar!$am__tar$ac_delim
27114am__untar!$am__untar$ac_delim
27115CC!$CC$ac_delim
27116CFLAGS!$CFLAGS$ac_delim
27117LDFLAGS!$LDFLAGS$ac_delim
27118CPPFLAGS!$CPPFLAGS$ac_delim
27119ac_ct_CC!$ac_ct_CC$ac_delim
27120EXEEXT!$EXEEXT$ac_delim
27121OBJEXT!$OBJEXT$ac_delim
27122DEPDIR!$DEPDIR$ac_delim
27123am__include!$am__include$ac_delim
27124am__quote!$am__quote$ac_delim
27125AMDEP_TRUE!$AMDEP_TRUE$ac_delim
27126AMDEP_FALSE!$AMDEP_FALSE$ac_delim
27127AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
27128CCDEPMODE!$CCDEPMODE$ac_delim
27129am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
27130am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
27131GREP!$GREP$ac_delim
27132EGREP!$EGREP$ac_delim
27133SED!$SED$ac_delim
27134MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
27135MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
27136MAINT!$MAINT$ac_delim
27137AS!$AS$ac_delim
27138RM!$RM$ac_delim
27139CP!$CP$ac_delim
27140MV!$MV$ac_delim
27141LN!$LN$ac_delim
27142AR!$AR$ac_delim
27143LD!$LD$ac_delim
27144RANLIB!$RANLIB$ac_delim
27145TOUCH!$TOUCH$ac_delim
27146build!$build$ac_delim
27147build_cpu!$build_cpu$ac_delim
27148build_vendor!$build_vendor$ac_delim
27149build_os!$build_os$ac_delim
27150host!$host$ac_delim
27151host_cpu!$host_cpu$ac_delim
27152host_vendor!$host_vendor$ac_delim
27153_ACEOF
27154
27155 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27156 break
27157 elif $ac_last_try; then
27158 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27159echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27160 { (exit 1); exit 1; }; }
27161 else
27162 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27163 fi
27164done
27165
27166ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27167if test -n "$ac_eof"; then
27168 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27169 ac_eof=`expr $ac_eof + 1`
27170fi
27171
27172cat >>$CONFIG_STATUS <<_ACEOF
27173cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27174/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27175_ACEOF
27176sed '
27177s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27178s/^/s,@/; s/!/@,|#_!!_#|/
27179:n
27180t n
27181s/'"$ac_delim"'$/,g/; t
27182s/$/\\/; p
27183N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27184' >>$CONFIG_STATUS <conf$$subs.sed
27185rm -f conf$$subs.sed
27186cat >>$CONFIG_STATUS <<_ACEOF
27187CEOF$ac_eof
27188_ACEOF
27189
27190
27191ac_delim='%!_!# '
27192for ac_last_try in false false false false false :; do
27193 cat >conf$$subs.sed <<_ACEOF
27194host_os!$host_os$ac_delim
27195LN_S!$LN_S$ac_delim
27196ECHO!$ECHO$ac_delim
56efe974
WP
27197DSYMUTIL!$DSYMUTIL$ac_delim
27198NMEDIT!$NMEDIT$ac_delim
b57f37fb
WP
27199CPP!$CPP$ac_delim
27200CXX!$CXX$ac_delim
27201CXXFLAGS!$CXXFLAGS$ac_delim
27202ac_ct_CXX!$ac_ct_CXX$ac_delim
27203CXXDEPMODE!$CXXDEPMODE$ac_delim
27204am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
27205am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
27206CXXCPP!$CXXCPP$ac_delim
27207F77!$F77$ac_delim
27208FFLAGS!$FFLAGS$ac_delim
27209ac_ct_F77!$ac_ct_F77$ac_delim
27210LIBTOOL!$LIBTOOL$ac_delim
27211subdirs!$subdirs$ac_delim
27212MINGW_TRUE!$MINGW_TRUE$ac_delim
27213MINGW_FALSE!$MINGW_FALSE$ac_delim
27214NEED_CRYPT_TRUE!$NEED_CRYPT_TRUE$ac_delim
27215NEED_CRYPT_FALSE!$NEED_CRYPT_FALSE$ac_delim
27216CRYPT_LIB!$CRYPT_LIB$ac_delim
27217ALLOCA!$ALLOCA$ac_delim
27218PICFLAGS!$PICFLAGS$ac_delim
27219SEDOBJ!$SEDOBJ$ac_delim
27220SSL_INCLUDES!$SSL_INCLUDES$ac_delim
27221SSL_LIBS!$SSL_LIBS$ac_delim
27222RB_PREFIX!$RB_PREFIX$ac_delim
27223LIBOBJS!$LIBOBJS$ac_delim
27224LTLIBOBJS!$LTLIBOBJS$ac_delim
27225_ACEOF
27226
56efe974 27227 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 31; then
b57f37fb
WP
27228 break
27229 elif $ac_last_try; then
27230 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27231echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27232 { (exit 1); exit 1; }; }
27233 else
27234 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27235 fi
27236done
27237
27238ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27239if test -n "$ac_eof"; then
27240 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27241 ac_eof=`expr $ac_eof + 1`
27242fi
27243
27244cat >>$CONFIG_STATUS <<_ACEOF
27245cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27246/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27247_ACEOF
27248sed '
27249s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27250s/^/s,@/; s/!/@,|#_!!_#|/
27251:n
27252t n
27253s/'"$ac_delim"'$/,g/; t
27254s/$/\\/; p
27255N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27256' >>$CONFIG_STATUS <conf$$subs.sed
27257rm -f conf$$subs.sed
27258cat >>$CONFIG_STATUS <<_ACEOF
27259:end
27260s/|#_!!_#|//g
27261CEOF$ac_eof
27262_ACEOF
27263
27264
27265# VPATH may cause trouble with some makes, so we remove $(srcdir),
27266# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27267# trailing colons and then remove the whole line if VPATH becomes empty
27268# (actually we leave an empty line to preserve line numbers).
27269if test "x$srcdir" = x.; then
27270 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27271s/:*\$(srcdir):*/:/
27272s/:*\${srcdir}:*/:/
27273s/:*@srcdir@:*/:/
27274s/^\([^=]*=[ ]*\):*/\1/
27275s/:*$//
27276s/^[^=]*=[ ]*$//
27277}'
27278fi
27279
27280cat >>$CONFIG_STATUS <<\_ACEOF
27281fi # test -n "$CONFIG_FILES"
27282
27283
27284for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
27285do
27286 case $ac_tag in
27287 :[FHLC]) ac_mode=$ac_tag; continue;;
27288 esac
27289 case $ac_mode$ac_tag in
27290 :[FHL]*:*);;
27291 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27292echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27293 { (exit 1); exit 1; }; };;
27294 :[FH]-) ac_tag=-:-;;
27295 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27296 esac
27297 ac_save_IFS=$IFS
27298 IFS=:
27299 set x $ac_tag
27300 IFS=$ac_save_IFS
27301 shift
27302 ac_file=$1
27303 shift
27304
27305 case $ac_mode in
27306 :L) ac_source=$1;;
27307 :[FH])
27308 ac_file_inputs=
27309 for ac_f
27310 do
27311 case $ac_f in
27312 -) ac_f="$tmp/stdin";;
27313 *) # Look for the file first in the build tree, then in the source tree
27314 # (if the path is not absolute). The absolute path cannot be DOS-style,
27315 # because $ac_f cannot contain `:'.
27316 test -f "$ac_f" ||
27317 case $ac_f in
27318 [\\/$]*) false;;
27319 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27320 esac ||
27321 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27322echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27323 { (exit 1); exit 1; }; };;
27324 esac
27325 ac_file_inputs="$ac_file_inputs $ac_f"
27326 done
27327
27328 # Let's still pretend it is `configure' which instantiates (i.e., don't
27329 # use $as_me), people would be surprised to read:
27330 # /* config.h. Generated by config.status. */
27331 configure_input="Generated from "`IFS=:
27332 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27333 if test x"$ac_file" != x-; then
27334 configure_input="$ac_file. $configure_input"
27335 { echo "$as_me:$LINENO: creating $ac_file" >&5
27336echo "$as_me: creating $ac_file" >&6;}
27337 fi
27338
27339 case $ac_tag in
27340 *:-:* | *:-) cat >"$tmp/stdin";;
27341 esac
27342 ;;
27343 esac
27344
27345 ac_dir=`$as_dirname -- "$ac_file" ||
27346$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27347 X"$ac_file" : 'X\(//\)[^/]' \| \
27348 X"$ac_file" : 'X\(//\)$' \| \
27349 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27350echo X"$ac_file" |
27351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27352 s//\1/
27353 q
27354 }
27355 /^X\(\/\/\)[^/].*/{
27356 s//\1/
27357 q
27358 }
27359 /^X\(\/\/\)$/{
27360 s//\1/
27361 q
27362 }
27363 /^X\(\/\).*/{
27364 s//\1/
27365 q
27366 }
27367 s/.*/./; q'`
27368 { as_dir="$ac_dir"
27369 case $as_dir in #(
27370 -*) as_dir=./$as_dir;;
27371 esac
27372 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27373 as_dirs=
27374 while :; do
27375 case $as_dir in #(
27376 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27377 *) as_qdir=$as_dir;;
27378 esac
27379 as_dirs="'$as_qdir' $as_dirs"
27380 as_dir=`$as_dirname -- "$as_dir" ||
27381$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27382 X"$as_dir" : 'X\(//\)[^/]' \| \
27383 X"$as_dir" : 'X\(//\)$' \| \
27384 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27385echo X"$as_dir" |
27386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27387 s//\1/
27388 q
27389 }
27390 /^X\(\/\/\)[^/].*/{
27391 s//\1/
27392 q
27393 }
27394 /^X\(\/\/\)$/{
27395 s//\1/
27396 q
27397 }
27398 /^X\(\/\).*/{
27399 s//\1/
27400 q
27401 }
27402 s/.*/./; q'`
27403 test -d "$as_dir" && break
27404 done
27405 test -z "$as_dirs" || eval "mkdir $as_dirs"
27406 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27407echo "$as_me: error: cannot create directory $as_dir" >&2;}
27408 { (exit 1); exit 1; }; }; }
27409 ac_builddir=.
27410
27411case "$ac_dir" in
27412.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27413*)
27414 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27415 # A ".." for each directory in $ac_dir_suffix.
27416 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27417 case $ac_top_builddir_sub in
27418 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27419 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27420 esac ;;
27421esac
27422ac_abs_top_builddir=$ac_pwd
27423ac_abs_builddir=$ac_pwd$ac_dir_suffix
27424# for backward compatibility:
27425ac_top_builddir=$ac_top_build_prefix
27426
27427case $srcdir in
27428 .) # We are building in place.
27429 ac_srcdir=.
27430 ac_top_srcdir=$ac_top_builddir_sub
27431 ac_abs_top_srcdir=$ac_pwd ;;
27432 [\\/]* | ?:[\\/]* ) # Absolute name.
27433 ac_srcdir=$srcdir$ac_dir_suffix;
27434 ac_top_srcdir=$srcdir
27435 ac_abs_top_srcdir=$srcdir ;;
27436 *) # Relative name.
27437 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27438 ac_top_srcdir=$ac_top_build_prefix$srcdir
27439 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27440esac
27441ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27442
27443
27444 case $ac_mode in
27445 :F)
27446 #
27447 # CONFIG_FILE
27448 #
27449
27450 case $INSTALL in
27451 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27452 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27453 esac
27454 ac_MKDIR_P=$MKDIR_P
27455 case $MKDIR_P in
27456 [\\/$]* | ?:[\\/]* ) ;;
27457 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27458 esac
27459_ACEOF
27460
27461cat >>$CONFIG_STATUS <<\_ACEOF
27462# If the template does not know about datarootdir, expand it.
27463# FIXME: This hack should be removed a few years after 2.60.
27464ac_datarootdir_hack=; ac_datarootdir_seen=
27465
27466case `sed -n '/datarootdir/ {
27467 p
27468 q
27469}
27470/@datadir@/p
27471/@docdir@/p
27472/@infodir@/p
27473/@localedir@/p
27474/@mandir@/p
27475' $ac_file_inputs` in
27476*datarootdir*) ac_datarootdir_seen=yes;;
27477*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27478 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27479echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27480_ACEOF
27481cat >>$CONFIG_STATUS <<_ACEOF
27482 ac_datarootdir_hack='
27483 s&@datadir@&$datadir&g
27484 s&@docdir@&$docdir&g
27485 s&@infodir@&$infodir&g
27486 s&@localedir@&$localedir&g
27487 s&@mandir@&$mandir&g
27488 s&\\\${datarootdir}&$datarootdir&g' ;;
27489esac
27490_ACEOF
27491
27492# Neutralize VPATH when `$srcdir' = `.'.
27493# Shell code in configure.ac might set extrasub.
27494# FIXME: do we really want to maintain this feature?
27495cat >>$CONFIG_STATUS <<_ACEOF
27496 sed "$ac_vpsub
27497$extrasub
27498_ACEOF
27499cat >>$CONFIG_STATUS <<\_ACEOF
27500:t
27501/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27502s&@configure_input@&$configure_input&;t t
27503s&@top_builddir@&$ac_top_builddir_sub&;t t
27504s&@srcdir@&$ac_srcdir&;t t
27505s&@abs_srcdir@&$ac_abs_srcdir&;t t
27506s&@top_srcdir@&$ac_top_srcdir&;t t
27507s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27508s&@builddir@&$ac_builddir&;t t
27509s&@abs_builddir@&$ac_abs_builddir&;t t
27510s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27511s&@INSTALL@&$ac_INSTALL&;t t
27512s&@MKDIR_P@&$ac_MKDIR_P&;t t
27513$ac_datarootdir_hack
27514" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27515
27516test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27517 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27518 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27519 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27520which seems to be undefined. Please make sure it is defined." >&5
27521echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27522which seems to be undefined. Please make sure it is defined." >&2;}
27523
27524 rm -f "$tmp/stdin"
27525 case $ac_file in
27526 -) cat "$tmp/out"; rm -f "$tmp/out";;
27527 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27528 esac
27529 ;;
27530 :H)
27531 #
27532 # CONFIG_HEADER
27533 #
27534_ACEOF
27535
27536# Transform confdefs.h into a sed script `conftest.defines', that
27537# substitutes the proper values into config.h.in to produce config.h.
27538rm -f conftest.defines conftest.tail
27539# First, append a space to every undef/define line, to ease matching.
27540echo 's/$/ /' >conftest.defines
27541# Then, protect against being on the right side of a sed subst, or in
27542# an unquoted here document, in config.status. If some macros were
27543# called several times there might be several #defines for the same
27544# symbol, which is useless. But do not sort them, since the last
27545# AC_DEFINE must be honored.
27546ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27547# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27548# NAME is the cpp macro being defined, VALUE is the value it is being given.
27549# PARAMS is the parameter list in the macro definition--in most cases, it's
27550# just an empty string.
27551ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27552ac_dB='\\)[ (].*,\\1define\\2'
27553ac_dC=' '
27554ac_dD=' ,'
27555
27556uniq confdefs.h |
27557 sed -n '
27558 t rset
27559 :rset
27560 s/^[ ]*#[ ]*define[ ][ ]*//
27561 t ok
27562 d
27563 :ok
27564 s/[\\&,]/\\&/g
27565 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27566 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27567 ' >>conftest.defines
27568
27569# Remove the space that was appended to ease matching.
27570# Then replace #undef with comments. This is necessary, for
27571# example, in the case of _POSIX_SOURCE, which is predefined and required
27572# on some systems where configure will not decide to define it.
27573# (The regexp can be short, since the line contains either #define or #undef.)
27574echo 's/ $//
27575s,^[ #]*u.*,/* & */,' >>conftest.defines
27576
27577# Break up conftest.defines:
27578ac_max_sed_lines=50
27579
27580# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27581# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27582# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27583# et cetera.
27584ac_in='$ac_file_inputs'
27585ac_out='"$tmp/out1"'
27586ac_nxt='"$tmp/out2"'
27587
27588while :
27589do
27590 # Write a here document:
27591 cat >>$CONFIG_STATUS <<_ACEOF
27592 # First, check the format of the line:
27593 cat >"\$tmp/defines.sed" <<\\CEOF
27594/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27595/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27596b
27597:def
27598_ACEOF
27599 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27600 echo 'CEOF
27601 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27602 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27603 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27604 grep . conftest.tail >/dev/null || break
27605 rm -f conftest.defines
27606 mv conftest.tail conftest.defines
27607done
27608rm -f conftest.defines conftest.tail
27609
27610echo "ac_result=$ac_in" >>$CONFIG_STATUS
27611cat >>$CONFIG_STATUS <<\_ACEOF
27612 if test x"$ac_file" != x-; then
27613 echo "/* $configure_input */" >"$tmp/config.h"
27614 cat "$ac_result" >>"$tmp/config.h"
27615 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27616 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27617echo "$as_me: $ac_file is unchanged" >&6;}
27618 else
27619 rm -f $ac_file
27620 mv "$tmp/config.h" $ac_file
27621 fi
27622 else
27623 echo "/* $configure_input */"
27624 cat "$ac_result"
27625 fi
27626 rm -f "$tmp/out12"
27627# Compute $ac_file's index in $config_headers.
56efe974 27628_am_arg=$ac_file
b57f37fb
WP
27629_am_stamp_count=1
27630for _am_header in $config_headers :; do
27631 case $_am_header in
56efe974 27632 $_am_arg | $_am_arg:* )
b57f37fb
WP
27633 break ;;
27634 * )
27635 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27636 esac
27637done
56efe974
WP
27638echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27639$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27640 X"$_am_arg" : 'X\(//\)[^/]' \| \
27641 X"$_am_arg" : 'X\(//\)$' \| \
27642 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27643echo X"$_am_arg" |
b57f37fb
WP
27644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27645 s//\1/
27646 q
27647 }
27648 /^X\(\/\/\)[^/].*/{
27649 s//\1/
27650 q
27651 }
27652 /^X\(\/\/\)$/{
27653 s//\1/
27654 q
27655 }
27656 /^X\(\/\).*/{
27657 s//\1/
27658 q
27659 }
27660 s/.*/./; q'`/stamp-h$_am_stamp_count
27661 ;;
27662
27663 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27664echo "$as_me: executing $ac_file commands" >&6;}
27665 ;;
27666 esac
27667
27668
27669 case $ac_file$ac_mode in
27670 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27671 # Strip MF so we end up with the name of the file.
27672 mf=`echo "$mf" | sed -e 's/:.*$//'`
27673 # Check whether this is an Automake generated Makefile or not.
27674 # We used to match only the files named `Makefile.in', but
27675 # some people rename them; so instead we look at the file content.
27676 # Grep'ing the first line is not enough: some people post-process
27677 # each Makefile.in and add a new line on top of each file to say so.
27678 # Grep'ing the whole file is not good either: AIX grep has a line
27679 # limit of 2048, but all sed's we know have understand at least 4000.
56efe974 27680 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
b57f37fb
WP
27681 dirpart=`$as_dirname -- "$mf" ||
27682$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27683 X"$mf" : 'X\(//\)[^/]' \| \
27684 X"$mf" : 'X\(//\)$' \| \
27685 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27686echo X"$mf" |
27687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27688 s//\1/
27689 q
27690 }
27691 /^X\(\/\/\)[^/].*/{
27692 s//\1/
27693 q
27694 }
27695 /^X\(\/\/\)$/{
27696 s//\1/
27697 q
27698 }
27699 /^X\(\/\).*/{
27700 s//\1/
27701 q
27702 }
27703 s/.*/./; q'`
27704 else
27705 continue
27706 fi
27707 # Extract the definition of DEPDIR, am__include, and am__quote
27708 # from the Makefile without running `make'.
27709 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27710 test -z "$DEPDIR" && continue
27711 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27712 test -z "am__include" && continue
27713 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27714 # When using ansi2knr, U may be empty or an underscore; expand it
27715 U=`sed -n 's/^U = //p' < "$mf"`
27716 # Find all dependency output files, they are included files with
27717 # $(DEPDIR) in their names. We invoke sed twice because it is the
27718 # simplest approach to changing $(DEPDIR) to its actual value in the
27719 # expansion.
27720 for file in `sed -n "
27721 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27722 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27723 # Make sure the directory exists.
27724 test -f "$dirpart/$file" && continue
27725 fdir=`$as_dirname -- "$file" ||
27726$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27727 X"$file" : 'X\(//\)[^/]' \| \
27728 X"$file" : 'X\(//\)$' \| \
27729 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27730echo X"$file" |
27731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27732 s//\1/
27733 q
27734 }
27735 /^X\(\/\/\)[^/].*/{
27736 s//\1/
27737 q
27738 }
27739 /^X\(\/\/\)$/{
27740 s//\1/
27741 q
27742 }
27743 /^X\(\/\).*/{
27744 s//\1/
27745 q
27746 }
27747 s/.*/./; q'`
27748 { as_dir=$dirpart/$fdir
27749 case $as_dir in #(
27750 -*) as_dir=./$as_dir;;
27751 esac
27752 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27753 as_dirs=
27754 while :; do
27755 case $as_dir in #(
27756 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27757 *) as_qdir=$as_dir;;
27758 esac
27759 as_dirs="'$as_qdir' $as_dirs"
27760 as_dir=`$as_dirname -- "$as_dir" ||
27761$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27762 X"$as_dir" : 'X\(//\)[^/]' \| \
27763 X"$as_dir" : 'X\(//\)$' \| \
27764 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27765echo X"$as_dir" |
27766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27767 s//\1/
27768 q
27769 }
27770 /^X\(\/\/\)[^/].*/{
27771 s//\1/
27772 q
27773 }
27774 /^X\(\/\/\)$/{
27775 s//\1/
27776 q
27777 }
27778 /^X\(\/\).*/{
27779 s//\1/
27780 q
27781 }
27782 s/.*/./; q'`
27783 test -d "$as_dir" && break
27784 done
27785 test -z "$as_dirs" || eval "mkdir $as_dirs"
27786 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27787echo "$as_me: error: cannot create directory $as_dir" >&2;}
27788 { (exit 1); exit 1; }; }; }
27789 # echo "creating $dirpart/$file"
27790 echo '# dummy' > "$dirpart/$file"
27791 done
27792done
27793 ;;
27794 "include/librb-config.h":C)
27795 outfile=include/librb-config.h.tmp
27796 cat > $outfile <<\_______EOF
27797/*
27798 * librb-config.h: libratbox config file. Please modify configure.ac
27799 */
27800
27801#ifndef __LIBRB_CONFIG_H
27802#define __LIBRB_CONFIG_H
27803
27804_______EOF
27805
27806if test "x$rb_have_ipv6" = "xyes"; then
27807 echo "#define RB_IPV6 1" >> $outfile
27808fi
27809
27810if test "x$rb_windows_h" = "xyes"; then
27811 echo '#define WIN32_LEAN_AND_MEAN 1' >> $outfile
27812 echo '#include <windows.h>' >> $outfile
27813 echo '#include <winsock2.h>' >> $outfile
27814 echo '#include <iphlpapi.h>' >> $outfile
27815fi
27816
27817if test "x$rb_alloca_h" = "xyes"; then
27818 echo '#define RB_HAVE_ALLOCA_H 1' >> $outfile
27819fi
27820
27821if test "x$rb_header_stdc" = "xyes"; then
27822 echo '#include <stdlib.h>' >> $outfile
27823 echo '#include <stddef.h>' >> $outfile
27824elif test "x$rb_header_stdlib" = "xyes"; then
27825 echo '#include <stdlib.h>' >> $outfile
27826fi
27827
27828if test "x$rb_header_string_h" = "xyes"; then
27829 echo '#include <string.h>' >> $outfile
27830fi
27831
27832if test "x$rb_stdint_h" = "xyes"; then
27833 echo '#include <stdint.h>' >> $outfile
27834fi
27835
27836if test "x$rb_inttypes_h" = "xyes"; then
27837 echo '#include <inttypes.h>' >> $outfile
27838fi
27839
27840if test "x$rb_sys_types_h" = "xyes"; then
27841 echo '#include <sys/types.h>' >> $outfile
27842fi
27843if test "x$rb_sys_time_h" = "xyes"; then
27844 echo '#include <sys/time.h>' >> $outfile
27845fi
27846if test "x$rb_sys_stat_h" = "xyes"; then
27847 echo '#include <sys/stat.h>' >> $outfile
27848fi
27849if test "x$rb_time_h" = "xyes"; then
27850 echo '#include <time.h>' >> $outfile
27851fi
27852
27853if test "x$rb_sys_socket_h" = "xyes"; then
27854 echo '#include <sys/socket.h>' >> $outfile
27855fi
27856
27857if test "x$rb_netinet_in_h" = "xyes"; then
27858 echo '#include <netinet/in.h>' >> $outfile
27859fi
27860
27861if test "x$rb_arpa_inet_h" = "xyes"; then
27862 echo '#include <arpa/inet.h>' >> $outfile
27863fi
27864
27865if test "x$rb_unistd_h" = "xyes"; then
27866 echo '#include <unistd.h>' >> $outfile
27867fi
27868
27869if test "x$rb_crypt_h" = "xyes"; then
27870 echo '#include <crypt.h>' >> $outfile
27871fi
27872
27873if test "x$rb_errno_h" = "xyes"; then
27874 echo '#include <errno.h>' >> $outfile
27875fi
27876
27877if test "x$rb_sockaddr_sa_len" = "xyes"; then
27878 echo '#define RB_SOCKADDR_HAS_SA_LEN 1' >> $outfile
27879fi
27880
27881echo "typedef $rb_uint64_t rb_uint64_t;" >> $outfile
27882echo "typedef $rb_uint32_t rb_uint32_t;" >> $outfile
27883echo "typedef $rb_uint16_t rb_uint16_t;" >> $outfile
27884echo "typedef $rb_uint8_t rb_uint8_t;" >> $outfile
27885echo "typedef $rb_int64_t rb_int64_t;" >> $outfile
27886echo "typedef $rb_int32_t rb_int32_t;" >> $outfile
27887echo "typedef $rb_int16_t rb_int16_t;" >> $outfile
27888echo "typedef $rb_int8_t rb_int8_t;" >> $outfile
27889echo "typedef $rb_intmax_t rb_intmax_t;" >> $outfile
27890echo "typedef $rb_intptr_t rb_intptr_t;" >> $outfile
27891echo "typedef $rb_uintmax_t rb_uintmax_t;" >> $outfile
27892echo "typedef $rb_uintptr_t rb_uintptr_t;" >> $outfile
27893echo "typedef $rb_socklen_t rb_socklen_t;" >> $outfile
27894
27895if test "x$rb_sockaddr_storage" = "xyes"; then
27896 echo '#define rb_sockaddr_storage sockaddr_storage' >> $outfile
27897else
27898 echo 'struct rb_sockaddr_storage { rb_uint8_t _padding128; };' >> $outfile
27899fi
27900
27901cat >> $outfile <<\_______EOF
27902#endif /* __LIBRB_CONFIG_H */
27903_______EOF
27904
27905if cmp -s $outfile include/librb-config.h; then
27906 { echo "$as_me:$LINENO: include/librb-config.h is unchanged" >&5
27907echo "$as_me: include/librb-config.h is unchanged" >&6;}
27908 ${rb_rm} -f $outfile
27909else
27910 ${rb_mv} $outfile include/librb-config.h
27911fi
27912
27913 ;;
27914
27915 esac
27916done # for ac_tag
27917
27918
27919{ (exit 0); exit 0; }
27920_ACEOF
27921chmod +x $CONFIG_STATUS
27922ac_clean_files=$ac_clean_files_save
27923
27924
27925# configure is writing to config.log, and then calls config.status.
27926# config.status does its own redirection, appending to config.log.
27927# Unfortunately, on DOS this fails, as config.log is still kept open
27928# by configure, so config.status won't be able to write to it; its
27929# output is simply discarded. So we exec the FD to /dev/null,
27930# effectively closing config.log, so it can be properly (re)opened and
27931# appended to by config.status. When coming back to configure, we
27932# need to make the FD available again.
27933if test "$no_create" != yes; then
27934 ac_cs_success=:
27935 ac_config_status_args=
27936 test "$silent" = yes &&
27937 ac_config_status_args="$ac_config_status_args --quiet"
27938 exec 5>/dev/null
27939 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27940 exec 5>>config.log
27941 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27942 # would make configure fail if this is the last instruction.
27943 $ac_cs_success || { (exit 1); exit 1; }
27944fi
27945
27946#
27947# CONFIG_SUBDIRS section.
27948#
27949if test "$no_recursion" != yes; then
27950
27951 # Remove --cache-file and --srcdir arguments so they do not pile up.
27952 ac_sub_configure_args=
27953 ac_prev=
27954 eval "set x $ac_configure_args"
27955 shift
27956 for ac_arg
27957 do
27958 if test -n "$ac_prev"; then
27959 ac_prev=
27960 continue
27961 fi
27962 case $ac_arg in
27963 -cache-file | --cache-file | --cache-fil | --cache-fi \
27964 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27965 ac_prev=cache_file ;;
27966 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27967 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27968 | --c=*)
27969 ;;
27970 --config-cache | -C)
27971 ;;
27972 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27973 ac_prev=srcdir ;;
27974 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27975 ;;
27976 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27977 ac_prev=prefix ;;
27978 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27979 ;;
27980 *)
27981 case $ac_arg in
27982 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27983 esac
27984 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
27985 esac
27986 done
27987
27988 # Always prepend --prefix to ensure using the same prefix
27989 # in subdir configurations.
27990 ac_arg="--prefix=$prefix"
27991 case $ac_arg in
27992 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27993 esac
27994 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
27995
27996 # Pass --silent
27997 if test "$silent" = yes; then
27998 ac_sub_configure_args="--silent $ac_sub_configure_args"
27999 fi
28000
28001 ac_popdir=`pwd`
28002 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
28003
28004 # Do not complain, so a configure script can configure whichever
28005 # parts of a large source tree are present.
28006 test -d "$srcdir/$ac_dir" || continue
28007
28008 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
28009 echo "$as_me:$LINENO: $ac_msg" >&5
28010 echo "$ac_msg" >&6
28011 { as_dir="$ac_dir"
28012 case $as_dir in #(
28013 -*) as_dir=./$as_dir;;
28014 esac
28015 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28016 as_dirs=
28017 while :; do
28018 case $as_dir in #(
28019 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28020 *) as_qdir=$as_dir;;
28021 esac
28022 as_dirs="'$as_qdir' $as_dirs"
28023 as_dir=`$as_dirname -- "$as_dir" ||
28024$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28025 X"$as_dir" : 'X\(//\)[^/]' \| \
28026 X"$as_dir" : 'X\(//\)$' \| \
28027 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28028echo X"$as_dir" |
28029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28030 s//\1/
28031 q
28032 }
28033 /^X\(\/\/\)[^/].*/{
28034 s//\1/
28035 q
28036 }
28037 /^X\(\/\/\)$/{
28038 s//\1/
28039 q
28040 }
28041 /^X\(\/\).*/{
28042 s//\1/
28043 q
28044 }
28045 s/.*/./; q'`
28046 test -d "$as_dir" && break
28047 done
28048 test -z "$as_dirs" || eval "mkdir $as_dirs"
28049 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28050echo "$as_me: error: cannot create directory $as_dir" >&2;}
28051 { (exit 1); exit 1; }; }; }
28052 ac_builddir=.
28053
28054case "$ac_dir" in
28055.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28056*)
28057 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28058 # A ".." for each directory in $ac_dir_suffix.
28059 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28060 case $ac_top_builddir_sub in
28061 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28062 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28063 esac ;;
28064esac
28065ac_abs_top_builddir=$ac_pwd
28066ac_abs_builddir=$ac_pwd$ac_dir_suffix
28067# for backward compatibility:
28068ac_top_builddir=$ac_top_build_prefix
28069
28070case $srcdir in
28071 .) # We are building in place.
28072 ac_srcdir=.
28073 ac_top_srcdir=$ac_top_builddir_sub
28074 ac_abs_top_srcdir=$ac_pwd ;;
28075 [\\/]* | ?:[\\/]* ) # Absolute name.
28076 ac_srcdir=$srcdir$ac_dir_suffix;
28077 ac_top_srcdir=$srcdir
28078 ac_abs_top_srcdir=$srcdir ;;
28079 *) # Relative name.
28080 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28081 ac_top_srcdir=$ac_top_build_prefix$srcdir
28082 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28083esac
28084ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28085
28086
28087 cd "$ac_dir"
28088
28089 # Check for guested configure; otherwise get Cygnus style configure.
28090 if test -f "$ac_srcdir/configure.gnu"; then
28091 ac_sub_configure=$ac_srcdir/configure.gnu
28092 elif test -f "$ac_srcdir/configure"; then
28093 ac_sub_configure=$ac_srcdir/configure
28094 elif test -f "$ac_srcdir/configure.in"; then
28095 # This should be Cygnus configure.
28096 ac_sub_configure=$ac_aux_dir/configure
28097 else
28098 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
28099echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
28100 ac_sub_configure=
28101 fi
28102
28103 # The recursion is here.
28104 if test -n "$ac_sub_configure"; then
28105 # Make the cache file name correct relative to the subdirectory.
28106 case $cache_file in
28107 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
28108 *) # Relative name.
28109 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
28110 esac
28111
28112 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
28113echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
28114 # The eval makes quoting arguments work.
28115 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
28116 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
28117 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
28118echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
28119 { (exit 1); exit 1; }; }
28120 fi
28121
28122 cd "$ac_popdir"
28123 done
28124fi
28125
28126
28127
28128echo
28129echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION"
28130echo
28131
28132echo "Installing into: $prefix"
28133
28134echo "IPv6 support ................... $have_v6"
28135echo "Assert debugging ............... $assert"
28136echo "Block allocator ................ $balloc"
28137echo "OpenSSL ........................ $cf_enable_openssl"
28138echo
28139