]> git.ipfire.org Git - thirdparty/gcc.git/blame - libvtv/configure
Always use PIC option with -shared in libtool
[thirdparty/gcc.git] / libvtv / configure
CommitLineData
2077db1b
CT
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for GNU Vtable Verification Runtime Library 1.0.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
8#
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 # Pre-4.2 versions of Zsh do 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*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
8bc16536 172test \$(( 1 + 1 )) = 2 || exit 1
2077db1b
CT
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
8bc16536 180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
2077db1b
CT
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183else
184 as_have_required=no
185fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206fi
207fi
208 done;;
209 esac
210 as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
241 fi
242 exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260 { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269 return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277 set +e
278 as_fn_set_status $1
279 exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362fi # as_fn_arith
363
364
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379} # as_fn_error
380
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384else
385 as_expr=false
386fi
387
388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390else
391 as_basename=false
392fi
393
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396else
397 as_dirname=false
398fi
399
400as_me=`$as_basename -- "$0" ||
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456}
457
458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467*)
468 ECHO_N='-n';;
469esac
470
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477fi
478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492else
493 as_ln_s='cp -p'
494fi
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
497
498if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503fi
504
505if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525fi
526as_executable_p=$as_test_x
527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537exec 7<&0 </dev/null 6>&1
538
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544#
545# Initializations.
546#
547ac_default_prefix=/usr/local
548ac_clean_files=
549ac_config_libobj_dir=.
550LIBOBJS=
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
555
556# Identity of this package.
557PACKAGE_NAME='GNU Vtable Verification Runtime Library'
558PACKAGE_TARNAME='libvtv'
559PACKAGE_VERSION='1.0'
560PACKAGE_STRING='GNU Vtable Verification Runtime Library 1.0'
561PACKAGE_BUGREPORT=''
562PACKAGE_URL='http://www.gnu.org/software/libvtv/'
563
564ac_unique_file="vtv_rts.h"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
568#ifdef HAVE_SYS_TYPES_H
569# include <sys/types.h>
570#endif
571#ifdef HAVE_SYS_STAT_H
572# include <sys/stat.h>
573#endif
574#ifdef STDC_HEADERS
575# include <stdlib.h>
576# include <stddef.h>
577#else
578# ifdef HAVE_STDLIB_H
579# include <stdlib.h>
580# endif
581#endif
582#ifdef HAVE_STRING_H
583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584# include <memory.h>
585# endif
586# include <string.h>
587#endif
588#ifdef HAVE_STRINGS_H
589# include <strings.h>
590#endif
591#ifdef HAVE_INTTYPES_H
592# include <inttypes.h>
593#endif
594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
598# include <unistd.h>
599#endif"
600
601ac_subst_vars='am__EXEEXT_FALSE
602am__EXEEXT_TRUE
603LTLIBOBJS
604LIBOBJS
2077db1b
CT
605XCFLAGS
606libtool_VERSION
607enable_static
608enable_shared
609CXXCPP
2077db1b
CT
610OTOOL64
611OTOOL
612LIPO
613NMEDIT
614DSYMUTIL
615OBJDUMP
616LN_S
617NM
618ac_ct_DUMPBIN
619DUMPBIN
620LD
621FGREP
2077db1b
CT
622SED
623LIBTOOL
624RANLIB
625AR
626AS
627CCASFLAGS
628CCAS
629am__fastdepCXX_FALSE
630am__fastdepCXX_TRUE
631CXXDEPMODE
632ac_ct_CXX
633CXXFLAGS
634CXX
8bc16536
CT
635EGREP
636GREP
637CPP
2077db1b
CT
638am__fastdepCC_FALSE
639am__fastdepCC_TRUE
640CCDEPMODE
641AMDEPBACKSLASH
642AMDEP_FALSE
643AMDEP_TRUE
644am__quote
645am__include
646DEPDIR
647OBJEXT
648EXEEXT
649ac_ct_CC
650CPPFLAGS
651LDFLAGS
652CFLAGS
653CC
654toolexeclibdir
655toolexecdir
0c6cb2d1
BK
656toplevel_srcdir
657toplevel_builddir
658libvtv_srcdir
659libvtv_builddir
2077db1b
CT
660MAINT
661MAINTAINER_MODE_FALSE
662MAINTAINER_MODE_TRUE
663multi_basedir
664am__untar
665am__tar
666AMTAR
667am__leading_dot
668SET_MAKE
669AWK
670mkdir_p
671MKDIR_P
672INSTALL_STRIP_PROGRAM
673STRIP
674install_sh
675MAKEINFO
676AUTOHEADER
677AUTOMAKE
678AUTOCONF
679ACLOCAL
680VERSION
681PACKAGE
682CYGPATH_W
683am__isrc
684INSTALL_DATA
685INSTALL_SCRIPT
686INSTALL_PROGRAM
56fc7835
CT
687ENABLE_VTABLE_VERIFY_FALSE
688ENABLE_VTABLE_VERIFY_TRUE
2077db1b
CT
689LIBSTDCXX_RAW_CXX_LDFLAGS
690LIBSTDCXX_RAW_CXX_CXXFLAGS
691target_noncanonical
692target_os
693target_vendor
694target_cpu
695target
696host_os
697host_vendor
698host_cpu
699host
700build_os
701build_vendor
702build_cpu
703build
704target_alias
705host_alias
706build_alias
707LIBS
708ECHO_T
709ECHO_N
710ECHO_C
711DEFS
712mandir
713localedir
714libdir
715psdir
716pdfdir
717dvidir
718htmldir
719infodir
720docdir
721oldincludedir
722includedir
723localstatedir
724sharedstatedir
725sysconfdir
726datadir
727datarootdir
728libexecdir
729sbindir
730bindir
731program_transform_name
732prefix
733exec_prefix
734PACKAGE_URL
735PACKAGE_BUGREPORT
736PACKAGE_STRING
737PACKAGE_VERSION
738PACKAGE_TARNAME
739PACKAGE_NAME
740PATH_SEPARATOR
741SHELL'
742ac_subst_files=''
743ac_user_opts='
744enable_option_checking
745enable_version_specific_runtime_libs
56fc7835 746enable_vtable_verify
2077db1b
CT
747enable_multilib
748enable_maintainer_mode
749enable_dependency_tracking
750enable_shared
751enable_static
752with_pic
753enable_fast_install
754with_gnu_ld
755enable_libtool_lock
2077db1b
CT
756'
757 ac_precious_vars='build_alias
758host_alias
759target_alias
8bc16536
CT
760CC
761CFLAGS
762LDFLAGS
763LIBS
2077db1b 764CPPFLAGS
8bc16536 765CPP
2077db1b
CT
766CXXCPP'
767
768
769# Initialize some variables set by options.
770ac_init_help=
771ac_init_version=false
772ac_unrecognized_opts=
773ac_unrecognized_sep=
774# The variables have the same names as the options, with
775# dashes changed to underlines.
776cache_file=/dev/null
777exec_prefix=NONE
778no_create=
779no_recursion=
780prefix=NONE
781program_prefix=NONE
782program_suffix=NONE
783program_transform_name=s,x,x,
784silent=
785site=
786srcdir=
787verbose=
788x_includes=NONE
789x_libraries=NONE
790
791# Installation directory options.
792# These are left unexpanded so users can "make install exec_prefix=/foo"
793# and all the variables that are supposed to be based on exec_prefix
794# by default will actually change.
795# Use braces instead of parens because sh, perl, etc. also accept them.
796# (The list follows the same order as the GNU Coding Standards.)
797bindir='${exec_prefix}/bin'
798sbindir='${exec_prefix}/sbin'
799libexecdir='${exec_prefix}/libexec'
800datarootdir='${prefix}/share'
801datadir='${datarootdir}'
802sysconfdir='${prefix}/etc'
803sharedstatedir='${prefix}/com'
804localstatedir='${prefix}/var'
805includedir='${prefix}/include'
806oldincludedir='/usr/include'
807docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
808infodir='${datarootdir}/info'
809htmldir='${docdir}'
810dvidir='${docdir}'
811pdfdir='${docdir}'
812psdir='${docdir}'
813libdir='${exec_prefix}/lib'
814localedir='${datarootdir}/locale'
815mandir='${datarootdir}/man'
816
817ac_prev=
818ac_dashdash=
819for ac_option
820do
821 # If the previous option needs an argument, assign it.
822 if test -n "$ac_prev"; then
823 eval $ac_prev=\$ac_option
824 ac_prev=
825 continue
826 fi
827
828 case $ac_option in
829 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
830 *) ac_optarg=yes ;;
831 esac
832
833 # Accept the important Cygnus configure options, so we can diagnose typos.
834
835 case $ac_dashdash$ac_option in
836 --)
837 ac_dashdash=yes ;;
838
839 -bindir | --bindir | --bindi | --bind | --bin | --bi)
840 ac_prev=bindir ;;
841 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
842 bindir=$ac_optarg ;;
843
844 -build | --build | --buil | --bui | --bu)
845 ac_prev=build_alias ;;
846 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
847 build_alias=$ac_optarg ;;
848
849 -cache-file | --cache-file | --cache-fil | --cache-fi \
850 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
851 ac_prev=cache_file ;;
852 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
853 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
854 cache_file=$ac_optarg ;;
855
856 --config-cache | -C)
857 cache_file=config.cache ;;
858
859 -datadir | --datadir | --datadi | --datad)
860 ac_prev=datadir ;;
861 -datadir=* | --datadir=* | --datadi=* | --datad=*)
862 datadir=$ac_optarg ;;
863
864 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
865 | --dataroo | --dataro | --datar)
866 ac_prev=datarootdir ;;
867 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
868 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
869 datarootdir=$ac_optarg ;;
870
871 -disable-* | --disable-*)
872 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
873 # Reject names that are not valid shell variable names.
874 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
875 as_fn_error "invalid feature name: $ac_useropt"
876 ac_useropt_orig=$ac_useropt
877 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
878 case $ac_user_opts in
879 *"
880"enable_$ac_useropt"
881"*) ;;
882 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
883 ac_unrecognized_sep=', ';;
884 esac
885 eval enable_$ac_useropt=no ;;
886
887 -docdir | --docdir | --docdi | --doc | --do)
888 ac_prev=docdir ;;
889 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
890 docdir=$ac_optarg ;;
891
892 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
893 ac_prev=dvidir ;;
894 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
895 dvidir=$ac_optarg ;;
896
897 -enable-* | --enable-*)
898 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
899 # Reject names that are not valid shell variable names.
900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
901 as_fn_error "invalid feature name: $ac_useropt"
902 ac_useropt_orig=$ac_useropt
903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
904 case $ac_user_opts in
905 *"
906"enable_$ac_useropt"
907"*) ;;
908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
909 ac_unrecognized_sep=', ';;
910 esac
911 eval enable_$ac_useropt=\$ac_optarg ;;
912
913 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
914 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
915 | --exec | --exe | --ex)
916 ac_prev=exec_prefix ;;
917 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
918 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
919 | --exec=* | --exe=* | --ex=*)
920 exec_prefix=$ac_optarg ;;
921
922 -gas | --gas | --ga | --g)
923 # Obsolete; use --with-gas.
924 with_gas=yes ;;
925
926 -help | --help | --hel | --he | -h)
927 ac_init_help=long ;;
928 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
929 ac_init_help=recursive ;;
930 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
931 ac_init_help=short ;;
932
933 -host | --host | --hos | --ho)
934 ac_prev=host_alias ;;
935 -host=* | --host=* | --hos=* | --ho=*)
936 host_alias=$ac_optarg ;;
937
938 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
939 ac_prev=htmldir ;;
940 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
941 | --ht=*)
942 htmldir=$ac_optarg ;;
943
944 -includedir | --includedir | --includedi | --included | --include \
945 | --includ | --inclu | --incl | --inc)
946 ac_prev=includedir ;;
947 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
948 | --includ=* | --inclu=* | --incl=* | --inc=*)
949 includedir=$ac_optarg ;;
950
951 -infodir | --infodir | --infodi | --infod | --info | --inf)
952 ac_prev=infodir ;;
953 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
954 infodir=$ac_optarg ;;
955
956 -libdir | --libdir | --libdi | --libd)
957 ac_prev=libdir ;;
958 -libdir=* | --libdir=* | --libdi=* | --libd=*)
959 libdir=$ac_optarg ;;
960
961 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
962 | --libexe | --libex | --libe)
963 ac_prev=libexecdir ;;
964 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
965 | --libexe=* | --libex=* | --libe=*)
966 libexecdir=$ac_optarg ;;
967
968 -localedir | --localedir | --localedi | --localed | --locale)
969 ac_prev=localedir ;;
970 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
971 localedir=$ac_optarg ;;
972
973 -localstatedir | --localstatedir | --localstatedi | --localstated \
974 | --localstate | --localstat | --localsta | --localst | --locals)
975 ac_prev=localstatedir ;;
976 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
977 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
978 localstatedir=$ac_optarg ;;
979
980 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
981 ac_prev=mandir ;;
982 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
983 mandir=$ac_optarg ;;
984
985 -nfp | --nfp | --nf)
986 # Obsolete; use --without-fp.
987 with_fp=no ;;
988
989 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
990 | --no-cr | --no-c | -n)
991 no_create=yes ;;
992
993 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
994 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
995 no_recursion=yes ;;
996
997 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
998 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
999 | --oldin | --oldi | --old | --ol | --o)
1000 ac_prev=oldincludedir ;;
1001 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1002 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1003 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1004 oldincludedir=$ac_optarg ;;
1005
1006 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1007 ac_prev=prefix ;;
1008 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1009 prefix=$ac_optarg ;;
1010
1011 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1012 | --program-pre | --program-pr | --program-p)
1013 ac_prev=program_prefix ;;
1014 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1015 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1016 program_prefix=$ac_optarg ;;
1017
1018 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1019 | --program-suf | --program-su | --program-s)
1020 ac_prev=program_suffix ;;
1021 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1022 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1023 program_suffix=$ac_optarg ;;
1024
1025 -program-transform-name | --program-transform-name \
1026 | --program-transform-nam | --program-transform-na \
1027 | --program-transform-n | --program-transform- \
1028 | --program-transform | --program-transfor \
1029 | --program-transfo | --program-transf \
1030 | --program-trans | --program-tran \
1031 | --progr-tra | --program-tr | --program-t)
1032 ac_prev=program_transform_name ;;
1033 -program-transform-name=* | --program-transform-name=* \
1034 | --program-transform-nam=* | --program-transform-na=* \
1035 | --program-transform-n=* | --program-transform-=* \
1036 | --program-transform=* | --program-transfor=* \
1037 | --program-transfo=* | --program-transf=* \
1038 | --program-trans=* | --program-tran=* \
1039 | --progr-tra=* | --program-tr=* | --program-t=*)
1040 program_transform_name=$ac_optarg ;;
1041
1042 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1043 ac_prev=pdfdir ;;
1044 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1045 pdfdir=$ac_optarg ;;
1046
1047 -psdir | --psdir | --psdi | --psd | --ps)
1048 ac_prev=psdir ;;
1049 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1050 psdir=$ac_optarg ;;
1051
1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053 | -silent | --silent | --silen | --sile | --sil)
1054 silent=yes ;;
1055
1056 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1057 ac_prev=sbindir ;;
1058 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1059 | --sbi=* | --sb=*)
1060 sbindir=$ac_optarg ;;
1061
1062 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1063 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1064 | --sharedst | --shareds | --shared | --share | --shar \
1065 | --sha | --sh)
1066 ac_prev=sharedstatedir ;;
1067 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1068 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1069 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1070 | --sha=* | --sh=*)
1071 sharedstatedir=$ac_optarg ;;
1072
1073 -site | --site | --sit)
1074 ac_prev=site ;;
1075 -site=* | --site=* | --sit=*)
1076 site=$ac_optarg ;;
1077
1078 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1079 ac_prev=srcdir ;;
1080 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1081 srcdir=$ac_optarg ;;
1082
1083 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1084 | --syscon | --sysco | --sysc | --sys | --sy)
1085 ac_prev=sysconfdir ;;
1086 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1087 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1088 sysconfdir=$ac_optarg ;;
1089
1090 -target | --target | --targe | --targ | --tar | --ta | --t)
1091 ac_prev=target_alias ;;
1092 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1093 target_alias=$ac_optarg ;;
1094
1095 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1096 verbose=yes ;;
1097
1098 -version | --version | --versio | --versi | --vers | -V)
1099 ac_init_version=: ;;
1100
1101 -with-* | --with-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 as_fn_error "invalid package name: $ac_useropt"
1106 ac_useropt_orig=$ac_useropt
1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1109 *"
1110"with_$ac_useropt"
1111"*) ;;
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1114 esac
1115 eval with_$ac_useropt=\$ac_optarg ;;
1116
1117 -without-* | --without-*)
1118 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121 as_fn_error "invalid package name: $ac_useropt"
1122 ac_useropt_orig=$ac_useropt
1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 case $ac_user_opts in
1125 *"
1126"with_$ac_useropt"
1127"*) ;;
1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1129 ac_unrecognized_sep=', ';;
1130 esac
1131 eval with_$ac_useropt=no ;;
1132
1133 --x)
1134 # Obsolete; use --with-x.
1135 with_x=yes ;;
1136
1137 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1138 | --x-incl | --x-inc | --x-in | --x-i)
1139 ac_prev=x_includes ;;
1140 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1141 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1142 x_includes=$ac_optarg ;;
1143
1144 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1145 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1146 ac_prev=x_libraries ;;
1147 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1148 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1149 x_libraries=$ac_optarg ;;
1150
1151 -*) as_fn_error "unrecognized option: \`$ac_option'
1152Try \`$0 --help' for more information."
1153 ;;
1154
1155 *=*)
1156 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1157 # Reject names that are not valid shell variable names.
1158 case $ac_envvar in #(
1159 '' | [0-9]* | *[!_$as_cr_alnum]* )
1160 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1161 esac
1162 eval $ac_envvar=\$ac_optarg
1163 export $ac_envvar ;;
1164
1165 *)
1166 # FIXME: should be removed in autoconf 3.0.
1167 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1168 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1169 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1170 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1171 ;;
1172
1173 esac
1174done
1175
1176if test -n "$ac_prev"; then
1177 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1178 as_fn_error "missing argument to $ac_option"
1179fi
1180
1181if test -n "$ac_unrecognized_opts"; then
1182 case $enable_option_checking in
1183 no) ;;
1184 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1185 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1186 esac
1187fi
1188
1189# Check all directory arguments for consistency.
1190for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1191 datadir sysconfdir sharedstatedir localstatedir includedir \
1192 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1193 libdir localedir mandir
1194do
1195 eval ac_val=\$$ac_var
1196 # Remove trailing slashes.
1197 case $ac_val in
1198 */ )
1199 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1200 eval $ac_var=\$ac_val;;
1201 esac
1202 # Be sure to have absolute directory names.
1203 case $ac_val in
1204 [\\/$]* | ?:[\\/]* ) continue;;
1205 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1206 esac
1207 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1208done
1209
1210# There might be people who depend on the old broken behavior: `$host'
1211# used to hold the argument of --host etc.
1212# FIXME: To remove some day.
1213build=$build_alias
1214host=$host_alias
1215target=$target_alias
1216
1217# FIXME: To remove some day.
1218if test "x$host_alias" != x; then
1219 if test "x$build_alias" = x; then
1220 cross_compiling=maybe
1221 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1222 If a cross compiler is detected then cross compile mode will be used." >&2
1223 elif test "x$build_alias" != "x$host_alias"; then
1224 cross_compiling=yes
1225 fi
1226fi
1227
1228ac_tool_prefix=
1229test -n "$host_alias" && ac_tool_prefix=$host_alias-
1230
1231test "$silent" = yes && exec 6>/dev/null
1232
1233
1234ac_pwd=`pwd` && test -n "$ac_pwd" &&
1235ac_ls_di=`ls -di .` &&
1236ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1237 as_fn_error "working directory cannot be determined"
1238test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1239 as_fn_error "pwd does not report name of working directory"
1240
1241
1242# Find the source files, if location was not specified.
1243if test -z "$srcdir"; then
1244 ac_srcdir_defaulted=yes
1245 # Try the directory containing this script, then the parent directory.
1246 ac_confdir=`$as_dirname -- "$as_myself" ||
1247$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1248 X"$as_myself" : 'X\(//\)[^/]' \| \
1249 X"$as_myself" : 'X\(//\)$' \| \
1250 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1251$as_echo X"$as_myself" |
1252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1253 s//\1/
1254 q
1255 }
1256 /^X\(\/\/\)[^/].*/{
1257 s//\1/
1258 q
1259 }
1260 /^X\(\/\/\)$/{
1261 s//\1/
1262 q
1263 }
1264 /^X\(\/\).*/{
1265 s//\1/
1266 q
1267 }
1268 s/.*/./; q'`
1269 srcdir=$ac_confdir
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1271 srcdir=..
1272 fi
1273else
1274 ac_srcdir_defaulted=no
1275fi
1276if test ! -r "$srcdir/$ac_unique_file"; then
1277 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1278 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1279fi
1280ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1281ac_abs_confdir=`(
1282 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1283 pwd)`
1284# When building in place, set srcdir=.
1285if test "$ac_abs_confdir" = "$ac_pwd"; then
1286 srcdir=.
1287fi
1288# Remove unnecessary trailing slashes from srcdir.
1289# Double slashes in file names in object file debugging info
1290# mess up M-x gdb in Emacs.
1291case $srcdir in
1292*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1293esac
1294for ac_var in $ac_precious_vars; do
1295 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1296 eval ac_env_${ac_var}_value=\$${ac_var}
1297 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1298 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1299done
1300
1301#
1302# Report the --help message.
1303#
1304if test "$ac_init_help" = "long"; then
1305 # Omit some internal or obsolete options to make the list less imposing.
1306 # This message is too long to be a string in the A/UX 3.1 sh.
1307 cat <<_ACEOF
1308\`configure' configures GNU Vtable Verification Runtime Library 1.0 to adapt to many kinds of systems.
1309
1310Usage: $0 [OPTION]... [VAR=VALUE]...
1311
1312To assign environment variables (e.g., CC, CFLAGS...), specify them as
1313VAR=VALUE. See below for descriptions of some of the useful variables.
1314
1315Defaults for the options are specified in brackets.
1316
1317Configuration:
1318 -h, --help display this help and exit
1319 --help=short display options specific to this package
1320 --help=recursive display the short help of all the included packages
1321 -V, --version display version information and exit
1322 -q, --quiet, --silent do not print \`checking...' messages
1323 --cache-file=FILE cache test results in FILE [disabled]
1324 -C, --config-cache alias for \`--cache-file=config.cache'
1325 -n, --no-create do not create output files
1326 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1327
1328Installation directories:
1329 --prefix=PREFIX install architecture-independent files in PREFIX
1330 [$ac_default_prefix]
1331 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1332 [PREFIX]
1333
1334By default, \`make install' will install all the files in
1335\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1336an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1337for instance \`--prefix=\$HOME'.
1338
1339For better control, use the options below.
1340
1341Fine tuning of the installation directories:
1342 --bindir=DIR user executables [EPREFIX/bin]
1343 --sbindir=DIR system admin executables [EPREFIX/sbin]
1344 --libexecdir=DIR program executables [EPREFIX/libexec]
1345 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1346 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1347 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1348 --libdir=DIR object code libraries [EPREFIX/lib]
1349 --includedir=DIR C header files [PREFIX/include]
1350 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1351 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1352 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1353 --infodir=DIR info documentation [DATAROOTDIR/info]
1354 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1355 --mandir=DIR man documentation [DATAROOTDIR/man]
1356 --docdir=DIR documentation root [DATAROOTDIR/doc/libvtv]
1357 --htmldir=DIR html documentation [DOCDIR]
1358 --dvidir=DIR dvi documentation [DOCDIR]
1359 --pdfdir=DIR pdf documentation [DOCDIR]
1360 --psdir=DIR ps documentation [DOCDIR]
1361_ACEOF
1362
1363 cat <<\_ACEOF
1364
1365Program names:
1366 --program-prefix=PREFIX prepend PREFIX to installed program names
1367 --program-suffix=SUFFIX append SUFFIX to installed program names
1368 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1369
1370System types:
1371 --build=BUILD configure for building on BUILD [guessed]
1372 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1373 --target=TARGET configure for building compilers for TARGET [HOST]
1374_ACEOF
1375fi
1376
1377if test -n "$ac_init_help"; then
1378 case $ac_init_help in
1379 short | recursive ) echo "Configuration of GNU Vtable Verification Runtime Library 1.0:";;
1380 esac
1381 cat <<\_ACEOF
1382
1383Optional Features:
1384 --disable-option-checking ignore unrecognized --enable/--with options
1385 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1386 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1387 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
56fc7835 1388 --enable-vtable-verify Enable vtable verification feature
2077db1b
CT
1389 --enable-multilib build many library versions (default)
1390 --enable-maintainer-mode enable make rules and dependencies not useful
1391 (and sometimes confusing) to the casual installer
1392 --disable-dependency-tracking speeds up one-time build
1393 --enable-dependency-tracking do not reject slow dependency extractors
1394 --enable-shared[=PKGS] build shared libraries [default=yes]
1395 --enable-static[=PKGS] build static libraries [default=yes]
1396 --enable-fast-install[=PKGS]
1397 optimize for fast installation [default=yes]
1398 --disable-libtool-lock avoid locking (might break parallel builds)
2077db1b
CT
1399
1400Optional Packages:
1401 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1402 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1403 --with-pic try to use only PIC/non-PIC objects [default=use
1404 both]
1405 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1406
1407Some influential environment variables:
1408 CC C compiler command
1409 CFLAGS C compiler flags
1410 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1411 nonstandard directory <lib dir>
1412 LIBS libraries to pass to the linker, e.g. -l<library>
1413 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1414 you have headers in a nonstandard directory <include dir>
8bc16536 1415 CPP C preprocessor
2077db1b
CT
1416 CXX C++ compiler command
1417 CXXFLAGS C++ compiler flags
2077db1b
CT
1418 CXXCPP C++ preprocessor
1419
1420Use these variables to override the choices made by `configure' or to help
1421it to find libraries and programs with nonstandard names/locations.
1422
1423Report bugs to the package provider.
1424GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
1425General help using GNU software: <http://www.gnu.org/gethelp/>.
1426_ACEOF
1427ac_status=$?
1428fi
1429
1430if test "$ac_init_help" = "recursive"; then
1431 # If there are subdirs, report their specific --help.
1432 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1433 test -d "$ac_dir" ||
1434 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1435 continue
1436 ac_builddir=.
1437
1438case "$ac_dir" in
1439.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1440*)
1441 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1442 # A ".." for each directory in $ac_dir_suffix.
1443 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1444 case $ac_top_builddir_sub in
1445 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1446 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1447 esac ;;
1448esac
1449ac_abs_top_builddir=$ac_pwd
1450ac_abs_builddir=$ac_pwd$ac_dir_suffix
1451# for backward compatibility:
1452ac_top_builddir=$ac_top_build_prefix
1453
1454case $srcdir in
1455 .) # We are building in place.
1456 ac_srcdir=.
1457 ac_top_srcdir=$ac_top_builddir_sub
1458 ac_abs_top_srcdir=$ac_pwd ;;
1459 [\\/]* | ?:[\\/]* ) # Absolute name.
1460 ac_srcdir=$srcdir$ac_dir_suffix;
1461 ac_top_srcdir=$srcdir
1462 ac_abs_top_srcdir=$srcdir ;;
1463 *) # Relative name.
1464 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1465 ac_top_srcdir=$ac_top_build_prefix$srcdir
1466 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1467esac
1468ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1469
1470 cd "$ac_dir" || { ac_status=$?; continue; }
1471 # Check for guested configure.
1472 if test -f "$ac_srcdir/configure.gnu"; then
1473 echo &&
1474 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1475 elif test -f "$ac_srcdir/configure"; then
1476 echo &&
1477 $SHELL "$ac_srcdir/configure" --help=recursive
1478 else
1479 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1480 fi || ac_status=$?
1481 cd "$ac_pwd" || { ac_status=$?; break; }
1482 done
1483fi
1484
1485test -n "$ac_init_help" && exit $ac_status
1486if $ac_init_version; then
1487 cat <<\_ACEOF
1488GNU Vtable Verification Runtime Library configure 1.0
1489generated by GNU Autoconf 2.64
1490
1491Copyright (C) 2009 Free Software Foundation, Inc.
1492This configure script is free software; the Free Software Foundation
1493gives unlimited permission to copy, distribute and modify it.
1494_ACEOF
1495 exit
1496fi
1497
1498## ------------------------ ##
1499## Autoconf initialization. ##
1500## ------------------------ ##
1501
1502# ac_fn_c_try_compile LINENO
1503# --------------------------
1504# Try to compile conftest.$ac_ext, and return whether this succeeded.
1505ac_fn_c_try_compile ()
1506{
1507 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1508 rm -f conftest.$ac_objext
1509 if { { ac_try="$ac_compile"
1510case "(($ac_try" in
1511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1512 *) ac_try_echo=$ac_try;;
1513esac
1514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1515$as_echo "$ac_try_echo"; } >&5
1516 (eval "$ac_compile") 2>conftest.err
1517 ac_status=$?
1518 if test -s conftest.err; then
1519 grep -v '^ *+' conftest.err >conftest.er1
1520 cat conftest.er1 >&5
1521 mv -f conftest.er1 conftest.err
1522 fi
1523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1524 test $ac_status = 0; } && {
1525 test -z "$ac_c_werror_flag" ||
1526 test ! -s conftest.err
1527 } && test -s conftest.$ac_objext; then :
1528 ac_retval=0
1529else
1530 $as_echo "$as_me: failed program was:" >&5
1531sed 's/^/| /' conftest.$ac_ext >&5
1532
1533 ac_retval=1
1534fi
1535 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1536 return $ac_retval
1537
1538} # ac_fn_c_try_compile
1539
8bc16536
CT
1540# ac_fn_c_try_cpp LINENO
1541# ----------------------
1542# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1543ac_fn_c_try_cpp ()
2077db1b
CT
1544{
1545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8bc16536 1546 if { { ac_try="$ac_cpp conftest.$ac_ext"
2077db1b
CT
1547case "(($ac_try" in
1548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1549 *) ac_try_echo=$ac_try;;
1550esac
1551eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1552$as_echo "$ac_try_echo"; } >&5
8bc16536 1553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2077db1b
CT
1554 ac_status=$?
1555 if test -s conftest.err; then
1556 grep -v '^ *+' conftest.err >conftest.er1
1557 cat conftest.er1 >&5
1558 mv -f conftest.er1 conftest.err
1559 fi
1560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8bc16536
CT
1561 test $ac_status = 0; } >/dev/null && {
1562 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2077db1b 1563 test ! -s conftest.err
8bc16536 1564 }; then :
2077db1b
CT
1565 ac_retval=0
1566else
1567 $as_echo "$as_me: failed program was:" >&5
1568sed 's/^/| /' conftest.$ac_ext >&5
1569
8bc16536 1570 ac_retval=1
2077db1b
CT
1571fi
1572 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1573 return $ac_retval
1574
8bc16536 1575} # ac_fn_c_try_cpp
2077db1b 1576
8bc16536
CT
1577# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1578# -------------------------------------------------------
1579# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1580# the include files in INCLUDES and setting the cache variable VAR
1581# accordingly.
1582ac_fn_c_check_header_mongrel ()
1583{
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1587$as_echo_n "checking for $2... " >&6; }
1588if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1589 $as_echo_n "(cached) " >&6
1590fi
1591eval ac_res=\$$3
1592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1593$as_echo "$ac_res" >&6; }
1594else
1595 # Is the header compilable?
1596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1597$as_echo_n "checking $2 usability... " >&6; }
1598cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1599/* end confdefs.h. */
1600$4
1601#include <$2>
1602_ACEOF
1603if ac_fn_c_try_compile "$LINENO"; then :
1604 ac_header_compiler=yes
1605else
1606 ac_header_compiler=no
1607fi
1608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1610$as_echo "$ac_header_compiler" >&6; }
1611
1612# Is the header present?
1613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1614$as_echo_n "checking $2 presence... " >&6; }
1615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1616/* end confdefs.h. */
1617#include <$2>
1618_ACEOF
1619if ac_fn_c_try_cpp "$LINENO"; then :
1620 ac_header_preproc=yes
1621else
1622 ac_header_preproc=no
1623fi
1624rm -f conftest.err conftest.$ac_ext
1625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1626$as_echo "$ac_header_preproc" >&6; }
1627
1628# So? What about this header?
1629case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1630 yes:no: )
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1632$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1634$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1635 ;;
1636 no:yes:* )
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1638$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1640$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1642$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1644$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1646$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1647 ;;
1648esac
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1650$as_echo_n "checking for $2... " >&6; }
1651if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1652 $as_echo_n "(cached) " >&6
1653else
1654 eval "$3=\$ac_header_compiler"
1655fi
1656eval ac_res=\$$3
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1658$as_echo "$ac_res" >&6; }
1659fi
1660 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1661
1662} # ac_fn_c_check_header_mongrel
1663
1664# ac_fn_c_try_run LINENO
1665# ----------------------
1666# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1667# that executables *can* be run.
1668ac_fn_c_try_run ()
2077db1b
CT
1669{
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2077db1b
CT
1671 if { { ac_try="$ac_link"
1672case "(($ac_try" in
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1675esac
1676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677$as_echo "$ac_try_echo"; } >&5
8bc16536 1678 (eval "$ac_link") 2>&5
2077db1b 1679 ac_status=$?
2077db1b 1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8bc16536
CT
1681 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1682 { { case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1685esac
1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687$as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_try") 2>&5
1689 ac_status=$?
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; }; }; then :
2077db1b
CT
1692 ac_retval=0
1693else
8bc16536
CT
1694 $as_echo "$as_me: program exited with status $ac_status" >&5
1695 $as_echo "$as_me: failed program was:" >&5
2077db1b
CT
1696sed 's/^/| /' conftest.$ac_ext >&5
1697
8bc16536 1698 ac_retval=$ac_status
2077db1b 1699fi
2077db1b
CT
1700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1702 return $ac_retval
1703
8bc16536 1704} # ac_fn_c_try_run
2077db1b
CT
1705
1706# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1707# -------------------------------------------------------
1708# Tests whether HEADER exists and can be compiled using the include files in
1709# INCLUDES, setting the cache variable VAR accordingly.
1710ac_fn_c_check_header_compile ()
1711{
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1714$as_echo_n "checking for $2... " >&6; }
1715if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1716 $as_echo_n "(cached) " >&6
1717else
1718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719/* end confdefs.h. */
1720$4
1721#include <$2>
1722_ACEOF
1723if ac_fn_c_try_compile "$LINENO"; then :
1724 eval "$3=yes"
1725else
1726 eval "$3=no"
1727fi
1728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1729fi
1730eval ac_res=\$$3
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1732$as_echo "$ac_res" >&6; }
1733 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1734
1735} # ac_fn_c_check_header_compile
1736
8bc16536
CT
1737# ac_fn_c_try_link LINENO
1738# -----------------------
1739# Try to link conftest.$ac_ext, and return whether this succeeded.
1740ac_fn_c_try_link ()
2077db1b
CT
1741{
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8bc16536
CT
1743 rm -f conftest.$ac_objext conftest$ac_exeext
1744 if { { ac_try="$ac_link"
2077db1b
CT
1745case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748esac
1749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750$as_echo "$ac_try_echo"; } >&5
8bc16536 1751 (eval "$ac_link") 2>conftest.err
2077db1b
CT
1752 ac_status=$?
1753 if test -s conftest.err; then
1754 grep -v '^ *+' conftest.err >conftest.er1
1755 cat conftest.er1 >&5
1756 mv -f conftest.er1 conftest.err
1757 fi
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8bc16536
CT
1759 test $ac_status = 0; } && {
1760 test -z "$ac_c_werror_flag" ||
2077db1b 1761 test ! -s conftest.err
8bc16536
CT
1762 } && test -s conftest$ac_exeext && {
1763 test "$cross_compiling" = yes ||
1764 $as_test_x conftest$ac_exeext
2077db1b
CT
1765 }; then :
1766 ac_retval=0
1767else
1768 $as_echo "$as_me: failed program was:" >&5
1769sed 's/^/| /' conftest.$ac_ext >&5
1770
8bc16536 1771 ac_retval=1
2077db1b 1772fi
8bc16536
CT
1773 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1774 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1775 # interfere with the next link command; also delete a directory that is
1776 # left behind by Apple's compiler. We do this before executing the actions.
2077db1b
CT
1777 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1778 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1779 return $ac_retval
1780
8bc16536 1781} # ac_fn_c_try_link
2077db1b
CT
1782
1783# ac_fn_c_check_func LINENO FUNC VAR
1784# ----------------------------------
1785# Tests whether FUNC exists, setting the cache variable VAR accordingly
1786ac_fn_c_check_func ()
1787{
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1790$as_echo_n "checking for $2... " >&6; }
1791if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1792 $as_echo_n "(cached) " >&6
1793else
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795/* end confdefs.h. */
1796/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1798#define $2 innocuous_$2
1799
1800/* System header to define __stub macros and hopefully few prototypes,
1801 which can conflict with char $2 (); below.
1802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1803 <limits.h> exists even on freestanding compilers. */
1804
1805#ifdef __STDC__
1806# include <limits.h>
1807#else
1808# include <assert.h>
1809#endif
1810
1811#undef $2
1812
1813/* Override any GCC internal prototype to avoid an error.
1814 Use char because int might match the return type of a GCC
1815 builtin and then its argument prototype would still apply. */
1816#ifdef __cplusplus
1817extern "C"
1818#endif
1819char $2 ();
1820/* The GNU C library defines this for functions which it implements
1821 to always fail with ENOSYS. Some functions are actually named
1822 something starting with __ and the normal name is an alias. */
1823#if defined __stub_$2 || defined __stub___$2
1824choke me
1825#endif
1826
1827int
1828main ()
1829{
1830return $2 ();
1831 ;
1832 return 0;
1833}
1834_ACEOF
1835if ac_fn_c_try_link "$LINENO"; then :
1836 eval "$3=yes"
1837else
1838 eval "$3=no"
1839fi
1840rm -f core conftest.err conftest.$ac_objext \
1841 conftest$ac_exeext conftest.$ac_ext
1842fi
1843eval ac_res=\$$3
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1845$as_echo "$ac_res" >&6; }
1846 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847
1848} # ac_fn_c_check_func
1849
8bc16536
CT
1850# ac_fn_cxx_try_compile LINENO
1851# ----------------------------
1852# Try to compile conftest.$ac_ext, and return whether this succeeded.
1853ac_fn_cxx_try_compile ()
1854{
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 rm -f conftest.$ac_objext
1857 if { { ac_try="$ac_compile"
1858case "(($ac_try" in
1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860 *) ac_try_echo=$ac_try;;
1861esac
1862eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863$as_echo "$ac_try_echo"; } >&5
1864 (eval "$ac_compile") 2>conftest.err
1865 ac_status=$?
1866 if test -s conftest.err; then
1867 grep -v '^ *+' conftest.err >conftest.er1
1868 cat conftest.er1 >&5
1869 mv -f conftest.er1 conftest.err
1870 fi
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } && {
1873 test -z "$ac_cxx_werror_flag" ||
1874 test ! -s conftest.err
1875 } && test -s conftest.$ac_objext; then :
1876 ac_retval=0
1877else
1878 $as_echo "$as_me: failed program was:" >&5
1879sed 's/^/| /' conftest.$ac_ext >&5
1880
1881 ac_retval=1
1882fi
1883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1884 return $ac_retval
1885
1886} # ac_fn_cxx_try_compile
1887
2077db1b
CT
1888# ac_fn_cxx_try_cpp LINENO
1889# ------------------------
1890# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1891ac_fn_cxx_try_cpp ()
1892{
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 if { { ac_try="$ac_cpp conftest.$ac_ext"
1895case "(($ac_try" in
1896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1898esac
1899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900$as_echo "$ac_try_echo"; } >&5
1901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1902 ac_status=$?
1903 if test -s conftest.err; then
1904 grep -v '^ *+' conftest.err >conftest.er1
1905 cat conftest.er1 >&5
1906 mv -f conftest.er1 conftest.err
1907 fi
1908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909 test $ac_status = 0; } >/dev/null && {
1910 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1911 test ! -s conftest.err
1912 }; then :
1913 ac_retval=0
1914else
1915 $as_echo "$as_me: failed program was:" >&5
1916sed 's/^/| /' conftest.$ac_ext >&5
1917
1918 ac_retval=1
1919fi
1920 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1921 return $ac_retval
1922
1923} # ac_fn_cxx_try_cpp
1924
1925# ac_fn_cxx_try_link LINENO
1926# -------------------------
1927# Try to link conftest.$ac_ext, and return whether this succeeded.
1928ac_fn_cxx_try_link ()
1929{
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 rm -f conftest.$ac_objext conftest$ac_exeext
1932 if { { ac_try="$ac_link"
1933case "(($ac_try" in
1934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935 *) ac_try_echo=$ac_try;;
1936esac
1937eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938$as_echo "$ac_try_echo"; } >&5
1939 (eval "$ac_link") 2>conftest.err
1940 ac_status=$?
1941 if test -s conftest.err; then
1942 grep -v '^ *+' conftest.err >conftest.er1
1943 cat conftest.er1 >&5
1944 mv -f conftest.er1 conftest.err
1945 fi
1946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947 test $ac_status = 0; } && {
1948 test -z "$ac_cxx_werror_flag" ||
1949 test ! -s conftest.err
1950 } && test -s conftest$ac_exeext && {
1951 test "$cross_compiling" = yes ||
1952 $as_test_x conftest$ac_exeext
1953 }; then :
1954 ac_retval=0
1955else
1956 $as_echo "$as_me: failed program was:" >&5
1957sed 's/^/| /' conftest.$ac_ext >&5
1958
1959 ac_retval=1
1960fi
1961 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1962 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1963 # interfere with the next link command; also delete a directory that is
1964 # left behind by Apple's compiler. We do this before executing the actions.
1965 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1966 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1967 return $ac_retval
1968
1969} # ac_fn_cxx_try_link
1970cat >config.log <<_ACEOF
1971This file contains any messages produced by compilers while
1972running configure, to aid debugging if configure makes a mistake.
1973
1974It was created by GNU Vtable Verification Runtime Library $as_me 1.0, which was
1975generated by GNU Autoconf 2.64. Invocation command line was
1976
1977 $ $0 $@
1978
1979_ACEOF
1980exec 5>>config.log
1981{
1982cat <<_ASUNAME
1983## --------- ##
1984## Platform. ##
1985## --------- ##
1986
1987hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1988uname -m = `(uname -m) 2>/dev/null || echo unknown`
1989uname -r = `(uname -r) 2>/dev/null || echo unknown`
1990uname -s = `(uname -s) 2>/dev/null || echo unknown`
1991uname -v = `(uname -v) 2>/dev/null || echo unknown`
1992
1993/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1994/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1995
1996/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1997/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1998/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1999/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2000/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2001/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2002/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2003
2004_ASUNAME
2005
2006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007for as_dir in $PATH
2008do
2009 IFS=$as_save_IFS
2010 test -z "$as_dir" && as_dir=.
2011 $as_echo "PATH: $as_dir"
2012 done
2013IFS=$as_save_IFS
2014
2015} >&5
2016
2017cat >&5 <<_ACEOF
2018
2019
2020## ----------- ##
2021## Core tests. ##
2022## ----------- ##
2023
2024_ACEOF
2025
2026
2027# Keep a trace of the command line.
2028# Strip out --no-create and --no-recursion so they do not pile up.
2029# Strip out --silent because we don't want to record it for future runs.
2030# Also quote any args containing shell meta-characters.
2031# Make two passes to allow for proper duplicate-argument suppression.
2032ac_configure_args=
2033ac_configure_args0=
2034ac_configure_args1=
2035ac_must_keep_next=false
2036for ac_pass in 1 2
2037do
2038 for ac_arg
2039 do
2040 case $ac_arg in
2041 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2042 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2043 | -silent | --silent | --silen | --sile | --sil)
2044 continue ;;
2045 *\'*)
2046 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2047 esac
2048 case $ac_pass in
2049 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2050 2)
2051 as_fn_append ac_configure_args1 " '$ac_arg'"
2052 if test $ac_must_keep_next = true; then
2053 ac_must_keep_next=false # Got value, back to normal.
2054 else
2055 case $ac_arg in
2056 *=* | --config-cache | -C | -disable-* | --disable-* \
2057 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2058 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2059 | -with-* | --with-* | -without-* | --without-* | --x)
2060 case "$ac_configure_args0 " in
2061 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2062 esac
2063 ;;
2064 -* ) ac_must_keep_next=true ;;
2065 esac
2066 fi
2067 as_fn_append ac_configure_args " '$ac_arg'"
2068 ;;
2069 esac
2070 done
2071done
2072{ ac_configure_args0=; unset ac_configure_args0;}
2073{ ac_configure_args1=; unset ac_configure_args1;}
2074
2075# When interrupted or exit'd, cleanup temporary files, and complete
2076# config.log. We remove comments because anyway the quotes in there
2077# would cause problems or look ugly.
2078# WARNING: Use '\'' to represent an apostrophe within the trap.
2079# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2080trap 'exit_status=$?
2081 # Save into config.log some information that might help in debugging.
2082 {
2083 echo
2084
2085 cat <<\_ASBOX
2086## ---------------- ##
2087## Cache variables. ##
2088## ---------------- ##
2089_ASBOX
2090 echo
2091 # The following way of writing the cache mishandles newlines in values,
2092(
2093 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2094 eval ac_val=\$$ac_var
2095 case $ac_val in #(
2096 *${as_nl}*)
2097 case $ac_var in #(
2098 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2099$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2100 esac
2101 case $ac_var in #(
2102 _ | IFS | as_nl) ;; #(
2103 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2104 *) { eval $ac_var=; unset $ac_var;} ;;
2105 esac ;;
2106 esac
2107 done
2108 (set) 2>&1 |
2109 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2110 *${as_nl}ac_space=\ *)
2111 sed -n \
2112 "s/'\''/'\''\\\\'\'''\''/g;
2113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2114 ;; #(
2115 *)
2116 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2117 ;;
2118 esac |
2119 sort
2120)
2121 echo
2122
2123 cat <<\_ASBOX
2124## ----------------- ##
2125## Output variables. ##
2126## ----------------- ##
2127_ASBOX
2128 echo
2129 for ac_var in $ac_subst_vars
2130 do
2131 eval ac_val=\$$ac_var
2132 case $ac_val in
2133 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2134 esac
2135 $as_echo "$ac_var='\''$ac_val'\''"
2136 done | sort
2137 echo
2138
2139 if test -n "$ac_subst_files"; then
2140 cat <<\_ASBOX
2141## ------------------- ##
2142## File substitutions. ##
2143## ------------------- ##
2144_ASBOX
2145 echo
2146 for ac_var in $ac_subst_files
2147 do
2148 eval ac_val=\$$ac_var
2149 case $ac_val in
2150 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2151 esac
2152 $as_echo "$ac_var='\''$ac_val'\''"
2153 done | sort
2154 echo
2155 fi
2156
2157 if test -s confdefs.h; then
2158 cat <<\_ASBOX
2159## ----------- ##
2160## confdefs.h. ##
2161## ----------- ##
2162_ASBOX
2163 echo
2164 cat confdefs.h
2165 echo
2166 fi
2167 test "$ac_signal" != 0 &&
2168 $as_echo "$as_me: caught signal $ac_signal"
2169 $as_echo "$as_me: exit $exit_status"
2170 } >&5
2171 rm -f core *.core core.conftest.* &&
2172 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2173 exit $exit_status
2174' 0
2175for ac_signal in 1 2 13 15; do
2176 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2177done
2178ac_signal=0
2179
2180# confdefs.h avoids OS command line length limits that DEFS can exceed.
2181rm -f -r conftest* confdefs.h
2182
2183$as_echo "/* confdefs.h */" > confdefs.h
2184
2185# Predefined preprocessor variables.
2186
2187cat >>confdefs.h <<_ACEOF
2188#define PACKAGE_NAME "$PACKAGE_NAME"
2189_ACEOF
2190
2191cat >>confdefs.h <<_ACEOF
2192#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2193_ACEOF
2194
2195cat >>confdefs.h <<_ACEOF
2196#define PACKAGE_VERSION "$PACKAGE_VERSION"
2197_ACEOF
2198
2199cat >>confdefs.h <<_ACEOF
2200#define PACKAGE_STRING "$PACKAGE_STRING"
2201_ACEOF
2202
2203cat >>confdefs.h <<_ACEOF
2204#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2205_ACEOF
2206
2207cat >>confdefs.h <<_ACEOF
2208#define PACKAGE_URL "$PACKAGE_URL"
2209_ACEOF
2210
2211
2212# Let the site file select an alternate cache file if it wants to.
2213# Prefer an explicitly selected file to automatically selected ones.
2214ac_site_file1=NONE
2215ac_site_file2=NONE
2216if test -n "$CONFIG_SITE"; then
2217 ac_site_file1=$CONFIG_SITE
2218elif test "x$prefix" != xNONE; then
2219 ac_site_file1=$prefix/share/config.site
2220 ac_site_file2=$prefix/etc/config.site
2221else
2222 ac_site_file1=$ac_default_prefix/share/config.site
2223 ac_site_file2=$ac_default_prefix/etc/config.site
2224fi
2225for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2226do
2227 test "x$ac_site_file" = xNONE && continue
2228 if test -r "$ac_site_file"; then
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2230$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2231 sed 's/^/| /' "$ac_site_file" >&5
2232 . "$ac_site_file"
2233 fi
2234done
2235
2236if test -r "$cache_file"; then
2237 # Some versions of bash will fail to source /dev/null (special
2238 # files actually), so we avoid doing that.
2239 if test -f "$cache_file"; then
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2241$as_echo "$as_me: loading cache $cache_file" >&6;}
2242 case $cache_file in
2243 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2244 *) . "./$cache_file";;
2245 esac
2246 fi
2247else
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2249$as_echo "$as_me: creating cache $cache_file" >&6;}
2250 >$cache_file
2251fi
2252
2253# Check that the precious variables saved in the cache have kept the same
2254# value.
2255ac_cache_corrupted=false
2256for ac_var in $ac_precious_vars; do
2257 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2258 eval ac_new_set=\$ac_env_${ac_var}_set
2259 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2260 eval ac_new_val=\$ac_env_${ac_var}_value
2261 case $ac_old_set,$ac_new_set in
2262 set,)
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2264$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2265 ac_cache_corrupted=: ;;
2266 ,set)
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2268$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2269 ac_cache_corrupted=: ;;
2270 ,);;
2271 *)
2272 if test "x$ac_old_val" != "x$ac_new_val"; then
2273 # differences in whitespace do not lead to failure.
2274 ac_old_val_w=`echo x $ac_old_val`
2275 ac_new_val_w=`echo x $ac_new_val`
2276 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2278$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2279 ac_cache_corrupted=:
2280 else
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2282$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2283 eval $ac_var=\$ac_old_val
2284 fi
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2286$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2288$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2289 fi;;
2290 esac
2291 # Pass precious variables to config.status.
2292 if test "$ac_new_set" = set; then
2293 case $ac_new_val in
2294 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2295 *) ac_arg=$ac_var=$ac_new_val ;;
2296 esac
2297 case " $ac_configure_args " in
2298 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2299 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2300 esac
2301 fi
2302done
2303if $ac_cache_corrupted; then
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2305$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2307$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2308 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2309fi
2310## -------------------- ##
2311## Main body of script. ##
2312## -------------------- ##
2313
2314ac_ext=c
2315ac_cpp='$CPP $CPPFLAGS'
2316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2318ac_compiler_gnu=$ac_cv_c_compiler_gnu
2319
2320
2321
2322
2323
2324#AC_INIT(package-unused, version-unused, libvtv)
2325
2326
2327# -------
2328# Options
2329# -------
2330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2331$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2332# Check whether --enable-version-specific-runtime-libs was given.
2333if test "${enable_version_specific_runtime_libs+set}" = set; then :
2334 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2335 yes) version_specific_libs=yes ;;
2336 no) version_specific_libs=no ;;
2337 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2338 esac
2339else
2340 version_specific_libs=no
2341fi
2342
2343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2344$as_echo "$version_specific_libs" >&6; }
2345
2346# Do not delete or change the following two lines. For why, see
2347# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2348ac_aux_dir=
2349for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2350 for ac_t in install-sh install.sh shtool; do
2351 if test -f "$ac_dir/$ac_t"; then
2352 ac_aux_dir=$ac_dir
2353 ac_install_sh="$ac_aux_dir/$ac_t -c"
2354 break 2
2355 fi
2356 done
2357done
2358if test -z "$ac_aux_dir"; then
2359 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2360fi
2361
2362# These three variables are undocumented and unsupported,
2363# and are intended to be withdrawn in a future Autoconf release.
2364# They can cause serious problems if a builder's source tree is in a directory
2365# whose full name contains unusual characters.
2366ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2367ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2368ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2369
2370
2371# Make sure we can run config.sub.
2372$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2373 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2374
2375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2376$as_echo_n "checking build system type... " >&6; }
2377if test "${ac_cv_build+set}" = set; then :
2378 $as_echo_n "(cached) " >&6
2379else
2380 ac_build_alias=$build_alias
2381test "x$ac_build_alias" = x &&
2382 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2383test "x$ac_build_alias" = x &&
2384 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2385ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2386 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2387
2388fi
2389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2390$as_echo "$ac_cv_build" >&6; }
2391case $ac_cv_build in
2392*-*-*) ;;
2393*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2394esac
2395build=$ac_cv_build
2396ac_save_IFS=$IFS; IFS='-'
2397set x $ac_cv_build
2398shift
2399build_cpu=$1
2400build_vendor=$2
2401shift; shift
2402# Remember, the first character of IFS is used to create $*,
2403# except with old shells:
2404build_os=$*
2405IFS=$ac_save_IFS
2406case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2407
2408
2409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2410$as_echo_n "checking host system type... " >&6; }
2411if test "${ac_cv_host+set}" = set; then :
2412 $as_echo_n "(cached) " >&6
2413else
2414 if test "x$host_alias" = x; then
2415 ac_cv_host=$ac_cv_build
2416else
2417 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2418 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2419fi
2420
2421fi
2422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2423$as_echo "$ac_cv_host" >&6; }
2424case $ac_cv_host in
2425*-*-*) ;;
2426*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2427esac
2428host=$ac_cv_host
2429ac_save_IFS=$IFS; IFS='-'
2430set x $ac_cv_host
2431shift
2432host_cpu=$1
2433host_vendor=$2
2434shift; shift
2435# Remember, the first character of IFS is used to create $*,
2436# except with old shells:
2437host_os=$*
2438IFS=$ac_save_IFS
2439case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2440
2441
2442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2443$as_echo_n "checking target system type... " >&6; }
2444if test "${ac_cv_target+set}" = set; then :
2445 $as_echo_n "(cached) " >&6
2446else
2447 if test "x$target_alias" = x; then
2448 ac_cv_target=$ac_cv_host
2449else
2450 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2451 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2452fi
2453
2454fi
2455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2456$as_echo "$ac_cv_target" >&6; }
2457case $ac_cv_target in
2458*-*-*) ;;
2459*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2460esac
2461target=$ac_cv_target
2462ac_save_IFS=$IFS; IFS='-'
2463set x $ac_cv_target
2464shift
2465target_cpu=$1
2466target_vendor=$2
2467shift; shift
2468# Remember, the first character of IFS is used to create $*,
2469# except with old shells:
2470target_os=$*
2471IFS=$ac_save_IFS
2472case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2473
2474
2475# The aliases save the names the user supplied, while $host etc.
2476# will get canonicalized.
2477test -n "$target_alias" &&
2478 test "$program_prefix$program_suffix$program_transform_name" = \
2479 NONENONEs,x,x, &&
2480 program_prefix=${target_alias}-
2481
2482target_alias=${target_alias-$host_alias}
2483
2484 case ${build_alias} in
2485 "") build_noncanonical=${build} ;;
2486 *) build_noncanonical=${build_alias} ;;
2487esac
2488
2489 case ${host_alias} in
2490 "") host_noncanonical=${build_noncanonical} ;;
2491 *) host_noncanonical=${host_alias} ;;
2492esac
2493
2494 case ${target_alias} in
2495 "") target_noncanonical=${host_noncanonical} ;;
2496 *) target_noncanonical=${target_alias} ;;
2497esac
2498
2499
2500
2501
2502
2503 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
2504 -I\$(top_builddir)/../libstdc++-v3/include \
2505 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
2506 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
2507 LIBSTDCXX_RAW_CXX_LDFLAGS="\
2508 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
2509
2510
2511
2512
56fc7835
CT
2513# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
2514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
2515$as_echo_n "checking for --enable-vtable-verify... " >&6; }
2516# Check whether --enable-vtable-verify was given.
2517if test "${enable_vtable_verify+set}" = set; then :
2518 enableval=$enable_vtable_verify; case "$enableval" in
2519 yes) enable_vtable_verify=yes ;;
2520 no) enable_vtable_verify=no ;;
2521 *) enable_vtable_verify=no;;
2522 esac
2523else
2524 enable_vtable_verify=no
2525fi
2526
2527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
2528$as_echo "$enable_vtable_verify" >&6; }
2529
f5ebad64
L
2530# See if supported.
2531unset VTV_SUPPORTED
2532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for vtable verification" >&5
2533$as_echo_n "checking for host support for vtable verification... " >&6; }
2534. ${srcdir}/configure.tgt
2535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $VTV_SUPPORTED" >&5
2536$as_echo "$VTV_SUPPORTED" >&6; }
2537
2538# Decide if it's usable.
2539use_vtable_verify=no
2540if test "x$VTV_SUPPORTED" = "xyes"; then
56fc7835
CT
2541 if test "x$enable_vtable_verify" = "xyes"; then
2542 use_vtable_verify=yes
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: using vtable verification" >&5
f5ebad64 2544$as_echo "$as_me: using vtable verification" >&6;}
56fc7835 2545 fi
f5ebad64 2546fi
56fc7835
CT
2547 if test $use_vtable_verify = yes; then
2548 ENABLE_VTABLE_VERIFY_TRUE=
2549 ENABLE_VTABLE_VERIFY_FALSE='#'
2550else
2551 ENABLE_VTABLE_VERIFY_TRUE='#'
2552 ENABLE_VTABLE_VERIFY_FALSE=
2553fi
2554
f5ebad64 2555
2077db1b
CT
2556am__api_version='1.11'
2557
2558# Find a good install program. We prefer a C program (faster),
2559# so one script is as good as another. But avoid the broken or
2560# incompatible versions:
2561# SysV /etc/install, /usr/sbin/install
2562# SunOS /usr/etc/install
2563# IRIX /sbin/install
2564# AIX /bin/install
2565# AmigaOS /C/install, which installs bootblocks on floppy discs
2566# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2567# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2568# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2569# OS/2's system install, which has a completely different semantic
2570# ./install, which can be erroneously created by make from ./install.sh.
2571# Reject install programs that cannot install multiple files.
2572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2573$as_echo_n "checking for a BSD-compatible install... " >&6; }
2574if test -z "$INSTALL"; then
2575if test "${ac_cv_path_install+set}" = set; then :
2576 $as_echo_n "(cached) " >&6
2577else
2578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579for as_dir in $PATH
2580do
2581 IFS=$as_save_IFS
2582 test -z "$as_dir" && as_dir=.
2583 # Account for people who put trailing slashes in PATH elements.
2584case $as_dir/ in #((
2585 ./ | .// | /[cC]/* | \
2586 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2587 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2588 /usr/ucb/* ) ;;
2589 *)
2590 # OSF1 and SCO ODT 3.0 have their own names for install.
2591 # Don't use installbsd from OSF since it installs stuff as root
2592 # by default.
2593 for ac_prog in ginstall scoinst install; do
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2596 if test $ac_prog = install &&
2597 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2598 # AIX install. It has an incompatible calling convention.
2599 :
2600 elif test $ac_prog = install &&
2601 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2602 # program-specific install script used by HP pwplus--don't use.
2603 :
2604 else
2605 rm -rf conftest.one conftest.two conftest.dir
2606 echo one > conftest.one
2607 echo two > conftest.two
2608 mkdir conftest.dir
2609 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2610 test -s conftest.one && test -s conftest.two &&
2611 test -s conftest.dir/conftest.one &&
2612 test -s conftest.dir/conftest.two
2613 then
2614 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2615 break 3
2616 fi
2617 fi
2618 fi
2619 done
2620 done
2621 ;;
2622esac
2623
2624 done
2625IFS=$as_save_IFS
2626
2627rm -rf conftest.one conftest.two conftest.dir
2628
2629fi
2630 if test "${ac_cv_path_install+set}" = set; then
2631 INSTALL=$ac_cv_path_install
2632 else
2633 # As a last resort, use the slow shell script. Don't cache a
2634 # value for INSTALL within a source directory, because that will
2635 # break other packages using the cache if that directory is
2636 # removed, or if the value is a relative name.
2637 INSTALL=$ac_install_sh
2638 fi
2639fi
2640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2641$as_echo "$INSTALL" >&6; }
2642
2643# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2644# It thinks the first close brace ends the variable substitution.
2645test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2646
2647test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2648
2649test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2650
2651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2652$as_echo_n "checking whether build environment is sane... " >&6; }
2653# Just in case
2654sleep 1
2655echo timestamp > conftest.file
2656# Reject unsafe characters in $srcdir or the absolute working directory
2657# name. Accept space and tab only in the latter.
2658am_lf='
2659'
2660case `pwd` in
2661 *[\\\"\#\$\&\'\`$am_lf]*)
2662 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2663esac
2664case $srcdir in
2665 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2666 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2667esac
2668
2669# Do `set' in a subshell so we don't clobber the current shell's
2670# arguments. Must try -L first in case configure is actually a
2671# symlink; some systems play weird games with the mod time of symlinks
2672# (eg FreeBSD returns the mod time of the symlink's containing
2673# directory).
2674if (
2675 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2676 if test "$*" = "X"; then
2677 # -L didn't work.
2678 set X `ls -t "$srcdir/configure" conftest.file`
2679 fi
2680 rm -f conftest.file
2681 if test "$*" != "X $srcdir/configure conftest.file" \
2682 && test "$*" != "X conftest.file $srcdir/configure"; then
2683
2684 # If neither matched, then we have a broken ls. This can happen
2685 # if, for instance, CONFIG_SHELL is bash and it inherits a
2686 # broken ls alias from the environment. This has actually
2687 # happened. Such a system could not be considered "sane".
2688 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2689alias in your environment" "$LINENO" 5
2690 fi
2691
2692 test "$2" = conftest.file
2693 )
2694then
2695 # Ok.
2696 :
2697else
2698 as_fn_error "newly created file is older than distributed files!
2699Check your system clock" "$LINENO" 5
2700fi
2701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2702$as_echo "yes" >&6; }
2703test "$program_prefix" != NONE &&
2704 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2705# Use a double $ so make ignores it.
2706test "$program_suffix" != NONE &&
2707 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2708# Double any \ or $.
2709# By default was `s,x,x', remove it if useless.
2710ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2711program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2712
2713# expand $ac_aux_dir to an absolute path
2714am_aux_dir=`cd $ac_aux_dir && pwd`
2715
2716if test x"${MISSING+set}" != xset; then
2717 case $am_aux_dir in
2718 *\ * | *\ *)
2719 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2720 *)
2721 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2722 esac
2723fi
2724# Use eval to expand $SHELL
2725if eval "$MISSING --run true"; then
2726 am_missing_run="$MISSING --run "
2727else
2728 am_missing_run=
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2730$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2731fi
2732
2733if test x"${install_sh}" != xset; then
2734 case $am_aux_dir in
2735 *\ * | *\ *)
2736 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2737 *)
2738 install_sh="\${SHELL} $am_aux_dir/install-sh"
2739 esac
2740fi
2741
2742# Installed binaries are usually stripped using `strip' when the user
2743# run `make install-strip'. However `strip' might not be the right
2744# tool to use in cross-compilation environments, therefore Automake
2745# will honor the `STRIP' environment variable to overrule this program.
2746if test "$cross_compiling" != no; then
2747 if test -n "$ac_tool_prefix"; then
2748 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2749set dummy ${ac_tool_prefix}strip; ac_word=$2
2750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2751$as_echo_n "checking for $ac_word... " >&6; }
2752if test "${ac_cv_prog_STRIP+set}" = set; then :
2753 $as_echo_n "(cached) " >&6
2754else
2755 if test -n "$STRIP"; then
2756 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2757else
2758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759for as_dir in $PATH
2760do
2761 IFS=$as_save_IFS
2762 test -z "$as_dir" && as_dir=.
2763 for ac_exec_ext in '' $ac_executable_extensions; do
2764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2765 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2767 break 2
2768 fi
2769done
2770 done
2771IFS=$as_save_IFS
2772
2773fi
2774fi
2775STRIP=$ac_cv_prog_STRIP
2776if test -n "$STRIP"; then
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2778$as_echo "$STRIP" >&6; }
2779else
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2781$as_echo "no" >&6; }
2782fi
2783
2784
2785fi
2786if test -z "$ac_cv_prog_STRIP"; then
2787 ac_ct_STRIP=$STRIP
2788 # Extract the first word of "strip", so it can be a program name with args.
2789set dummy strip; ac_word=$2
2790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2791$as_echo_n "checking for $ac_word... " >&6; }
2792if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2793 $as_echo_n "(cached) " >&6
2794else
2795 if test -n "$ac_ct_STRIP"; then
2796 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2797else
2798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799for as_dir in $PATH
2800do
2801 IFS=$as_save_IFS
2802 test -z "$as_dir" && as_dir=.
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2805 ac_cv_prog_ac_ct_STRIP="strip"
2806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 break 2
2808 fi
2809done
2810 done
2811IFS=$as_save_IFS
2812
2813fi
2814fi
2815ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2816if test -n "$ac_ct_STRIP"; then
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2818$as_echo "$ac_ct_STRIP" >&6; }
2819else
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821$as_echo "no" >&6; }
2822fi
2823
2824 if test "x$ac_ct_STRIP" = x; then
2825 STRIP=":"
2826 else
2827 case $cross_compiling:$ac_tool_warned in
2828yes:)
2829{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2831ac_tool_warned=yes ;;
2832esac
2833 STRIP=$ac_ct_STRIP
2834 fi
2835else
2836 STRIP="$ac_cv_prog_STRIP"
2837fi
2838
2839fi
2840INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2841
2842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2843$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2844if test -z "$MKDIR_P"; then
2845 if test "${ac_cv_path_mkdir+set}" = set; then :
2846 $as_echo_n "(cached) " >&6
2847else
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2850do
2851 IFS=$as_save_IFS
2852 test -z "$as_dir" && as_dir=.
2853 for ac_prog in mkdir gmkdir; do
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2856 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2857 'mkdir (GNU coreutils) '* | \
2858 'mkdir (coreutils) '* | \
2859 'mkdir (fileutils) '4.1*)
2860 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2861 break 3;;
2862 esac
2863 done
2864 done
2865 done
2866IFS=$as_save_IFS
2867
2868fi
2869
2870 if test "${ac_cv_path_mkdir+set}" = set; then
2871 MKDIR_P="$ac_cv_path_mkdir -p"
2872 else
2873 # As a last resort, use the slow shell script. Don't cache a
2874 # value for MKDIR_P within a source directory, because that will
2875 # break other packages using the cache if that directory is
2876 # removed, or if the value is a relative name.
2877 test -d ./--version && rmdir ./--version
2878 MKDIR_P="$ac_install_sh -d"
2879 fi
2880fi
2881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2882$as_echo "$MKDIR_P" >&6; }
2883
2884mkdir_p="$MKDIR_P"
2885case $mkdir_p in
2886 [\\/$]* | ?:[\\/]*) ;;
2887 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2888esac
2889
2890for ac_prog in gawk mawk nawk awk
2891do
2892 # Extract the first word of "$ac_prog", so it can be a program name with args.
2893set dummy $ac_prog; ac_word=$2
2894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895$as_echo_n "checking for $ac_word... " >&6; }
2896if test "${ac_cv_prog_AWK+set}" = set; then :
2897 $as_echo_n "(cached) " >&6
2898else
2899 if test -n "$AWK"; then
2900 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2901else
2902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903for as_dir in $PATH
2904do
2905 IFS=$as_save_IFS
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909 ac_cv_prog_AWK="$ac_prog"
2910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 break 2
2912 fi
2913done
2914 done
2915IFS=$as_save_IFS
2916
2917fi
2918fi
2919AWK=$ac_cv_prog_AWK
2920if test -n "$AWK"; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2922$as_echo "$AWK" >&6; }
2923else
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925$as_echo "no" >&6; }
2926fi
2927
2928
2929 test -n "$AWK" && break
2930done
2931
2932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2933$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2934set x ${MAKE-make}
2935ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2936if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2937 $as_echo_n "(cached) " >&6
2938else
2939 cat >conftest.make <<\_ACEOF
2940SHELL = /bin/sh
2941all:
2942 @echo '@@@%%%=$(MAKE)=@@@%%%'
2943_ACEOF
2944# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2945case `${MAKE-make} -f conftest.make 2>/dev/null` in
2946 *@@@%%%=?*=@@@%%%*)
2947 eval ac_cv_prog_make_${ac_make}_set=yes;;
2948 *)
2949 eval ac_cv_prog_make_${ac_make}_set=no;;
2950esac
2951rm -f conftest.make
2952fi
2953if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2955$as_echo "yes" >&6; }
2956 SET_MAKE=
2957else
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959$as_echo "no" >&6; }
2960 SET_MAKE="MAKE=${MAKE-make}"
2961fi
2962
2963rm -rf .tst 2>/dev/null
2964mkdir .tst 2>/dev/null
2965if test -d .tst; then
2966 am__leading_dot=.
2967else
2968 am__leading_dot=_
2969fi
2970rmdir .tst 2>/dev/null
2971
2972if test "`cd $srcdir && pwd`" != "`pwd`"; then
2973 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2974 # is not polluted with repeated "-I."
2975 am__isrc=' -I$(srcdir)'
2976 # test to see if srcdir already configured
2977 if test -f $srcdir/config.status; then
2978 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2979 fi
2980fi
2981
2982# test whether we have cygpath
2983if test -z "$CYGPATH_W"; then
2984 if (cygpath --version) >/dev/null 2>/dev/null; then
2985 CYGPATH_W='cygpath -w'
2986 else
2987 CYGPATH_W=echo
2988 fi
2989fi
2990
2991
2992# Define the identity of the package.
2993 PACKAGE='libvtv'
2994 VERSION='1.0'
2995
2996
2997cat >>confdefs.h <<_ACEOF
2998#define PACKAGE "$PACKAGE"
2999_ACEOF
3000
3001
3002cat >>confdefs.h <<_ACEOF
3003#define VERSION "$VERSION"
3004_ACEOF
3005
3006# Some tools Automake needs.
3007
3008ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3009
3010
3011AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3012
3013
3014AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3015
3016
3017AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3018
3019
3020MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3021
3022# We need awk for the "check" target. The system "awk" is bad on
3023# some platforms.
3024# Always define AMTAR for backward compatibility.
3025
3026AMTAR=${AMTAR-"${am_missing_run}tar"}
3027
3028am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3029
3030
3031
3032
3033
3034# Default to --enable-multilib
3035# Check whether --enable-multilib was given.
3036if test "${enable_multilib+set}" = set; then :
3037 enableval=$enable_multilib; case "$enableval" in
3038 yes) multilib=yes ;;
3039 no) multilib=no ;;
3040 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3041 esac
3042else
3043 multilib=yes
3044fi
3045
3046
3047# We may get other options which we leave undocumented:
3048# --with-target-subdir, --with-multisrctop, --with-multisubdir
3049# See config-ml.in if you want the gory details.
3050
3051if test "$srcdir" = "."; then
3052 if test "$with_target_subdir" != "."; then
3053 multi_basedir="$srcdir/$with_multisrctop../.."
3054 else
3055 multi_basedir="$srcdir/$with_multisrctop.."
3056 fi
3057else
3058 multi_basedir="$srcdir/.."
3059fi
3060
3061
3062# Even if the default multilib is not a cross compilation,
3063# it may be that some of the other multilibs are.
3064if test $cross_compiling = no && test $multilib = yes \
3065 && test "x${with_multisubdir}" != x ; then
3066 cross_compiling=maybe
3067fi
3068
3069ac_config_commands="$ac_config_commands default-1"
3070
3071
3072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3073$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3074 # Check whether --enable-maintainer-mode was given.
3075if test "${enable_maintainer_mode+set}" = set; then :
3076 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3077else
3078 USE_MAINTAINER_MODE=no
3079fi
3080
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3082$as_echo "$USE_MAINTAINER_MODE" >&6; }
3083 if test $USE_MAINTAINER_MODE = yes; then
3084 MAINTAINER_MODE_TRUE=
3085 MAINTAINER_MODE_FALSE='#'
3086else
3087 MAINTAINER_MODE_TRUE='#'
3088 MAINTAINER_MODE_FALSE=
3089fi
3090
3091 MAINT=$MAINTAINER_MODE_TRUE
3092
3093
3094
0c6cb2d1
BK
3095
3096
3097 # These need to be absolute paths, yet at the same time need to
3098 # canonicalize only relative paths, because then amd will not unmount
3099 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
3100 libvtv_builddir=`${PWDCMD-pwd}`
3101 case $srcdir in
3102 \\/$* | ?:\\/*) libvtv_srcdir=${srcdir} ;;
3103 *) libvtv_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
3104 esac
3105 toplevel_builddir=${libvtv_builddir}/..
3106 toplevel_srcdir=${libvtv_srcdir}/..
3107
3108
3109
3110
3111
3112
2077db1b
CT
3113# Calculate toolexeclibdir
3114# Also toolexecdir, though it's only used in toolexeclibdir
3115case ${version_specific_libs} in
3116 yes)
3117 # Need the gcc compiler version to know where to install libraries
3118 # and header files if --enable-version-specific-runtime-libs option
3119 # is selected.
3120 toolexecdir='$(libdir)/gcc/$(target_alias)'
3121 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3122 ;;
3123 no)
3124 if test -n "$with_cross_host" &&
3125 test x"$with_cross_host" != x"no"; then
3126 # Install a library built with a cross compiler in tooldir, not libdir.
3127 toolexecdir='$(exec_prefix)/$(target_alias)'
3128 toolexeclibdir='$(toolexecdir)/lib'
3129 else
3130 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3131 toolexeclibdir='$(libdir)'
3132 fi
3133 multi_os_directory=`$CC -print-multi-os-directory`
3134 case $multi_os_directory in
3135 .) ;; # Avoid trailing /.
3136 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3137 esac
3138 ;;
3139esac
3140
3141
3142
8bc16536 3143DEPDIR="${am__leading_dot}deps"
2077db1b 3144
8bc16536 3145ac_config_commands="$ac_config_commands depfiles"
2077db1b 3146
8bc16536
CT
3147
3148am_make=${MAKE-make}
3149cat > confinc << 'END'
3150am__doit:
3151 @echo this is the am__doit target
3152.PHONY: am__doit
3153END
3154# If we don't find an include directive, just comment out the code.
3155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3156$as_echo_n "checking for style of include used by $am_make... " >&6; }
3157am__include="#"
3158am__quote=
3159_am_result=none
3160# First try GNU make style include.
3161echo "include confinc" > confmf
3162# Ignore all kinds of additional output from `make'.
3163case `$am_make -s -f confmf 2> /dev/null` in #(
3164*the\ am__doit\ target*)
3165 am__include=include
3166 am__quote=
3167 _am_result=GNU
3168 ;;
3169esac
3170# Now try BSD make style include.
3171if test "$am__include" = "#"; then
3172 echo '.include "confinc"' > confmf
3173 case `$am_make -s -f confmf 2> /dev/null` in #(
3174 *the\ am__doit\ target*)
3175 am__include=.include
3176 am__quote="\""
3177 _am_result=BSD
3178 ;;
3179 esac
3180fi
3181
3182
3183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3184$as_echo "$_am_result" >&6; }
3185rm -f confinc confmf
3186
3187# Check whether --enable-dependency-tracking was given.
3188if test "${enable_dependency_tracking+set}" = set; then :
3189 enableval=$enable_dependency_tracking;
3190fi
3191
3192if test "x$enable_dependency_tracking" != xno; then
3193 am_depcomp="$ac_aux_dir/depcomp"
3194 AMDEPBACKSLASH='\'
3195fi
3196 if test "x$enable_dependency_tracking" != xno; then
3197 AMDEP_TRUE=
3198 AMDEP_FALSE='#'
3199else
3200 AMDEP_TRUE='#'
3201 AMDEP_FALSE=
3202fi
3203
3204
3205ac_ext=c
3206ac_cpp='$CPP $CPPFLAGS'
3207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210if test -n "$ac_tool_prefix"; then
3211 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3212set dummy ${ac_tool_prefix}gcc; ac_word=$2
3213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3214$as_echo_n "checking for $ac_word... " >&6; }
3215if test "${ac_cv_prog_CC+set}" = set; then :
3216 $as_echo_n "(cached) " >&6
3217else
3218 if test -n "$CC"; then
3219 ac_cv_prog_CC="$CC" # Let the user override the test.
3220else
3221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077db1b
CT
3222for as_dir in $PATH
3223do
3224 IFS=$as_save_IFS
3225 test -z "$as_dir" && as_dir=.
3226 for ac_exec_ext in '' $ac_executable_extensions; do
3227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3228 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3230 break 2
3231 fi
3232done
3233 done
3234IFS=$as_save_IFS
3235
3236fi
3237fi
3238CC=$ac_cv_prog_CC
3239if test -n "$CC"; then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3241$as_echo "$CC" >&6; }
3242else
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244$as_echo "no" >&6; }
3245fi
3246
3247
3248fi
3249if test -z "$ac_cv_prog_CC"; then
3250 ac_ct_CC=$CC
3251 # Extract the first word of "gcc", so it can be a program name with args.
3252set dummy gcc; ac_word=$2
3253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3254$as_echo_n "checking for $ac_word... " >&6; }
3255if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3256 $as_echo_n "(cached) " >&6
3257else
3258 if test -n "$ac_ct_CC"; then
3259 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3260else
3261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262for as_dir in $PATH
3263do
3264 IFS=$as_save_IFS
3265 test -z "$as_dir" && as_dir=.
3266 for ac_exec_ext in '' $ac_executable_extensions; do
3267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3268 ac_cv_prog_ac_ct_CC="gcc"
3269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3270 break 2
3271 fi
3272done
3273 done
3274IFS=$as_save_IFS
3275
3276fi
3277fi
3278ac_ct_CC=$ac_cv_prog_ac_ct_CC
3279if test -n "$ac_ct_CC"; then
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3281$as_echo "$ac_ct_CC" >&6; }
3282else
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284$as_echo "no" >&6; }
3285fi
3286
3287 if test "x$ac_ct_CC" = x; then
3288 CC=""
3289 else
3290 case $cross_compiling:$ac_tool_warned in
3291yes:)
3292{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3293$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3294ac_tool_warned=yes ;;
3295esac
3296 CC=$ac_ct_CC
3297 fi
3298else
3299 CC="$ac_cv_prog_CC"
3300fi
3301
3302if test -z "$CC"; then
3303 if test -n "$ac_tool_prefix"; then
3304 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3305set dummy ${ac_tool_prefix}cc; ac_word=$2
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3307$as_echo_n "checking for $ac_word... " >&6; }
3308if test "${ac_cv_prog_CC+set}" = set; then :
3309 $as_echo_n "(cached) " >&6
3310else
3311 if test -n "$CC"; then
3312 ac_cv_prog_CC="$CC" # Let the user override the test.
3313else
3314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315for as_dir in $PATH
3316do
3317 IFS=$as_save_IFS
3318 test -z "$as_dir" && as_dir=.
3319 for ac_exec_ext in '' $ac_executable_extensions; do
3320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3321 ac_cv_prog_CC="${ac_tool_prefix}cc"
3322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3323 break 2
3324 fi
3325done
3326 done
3327IFS=$as_save_IFS
3328
3329fi
3330fi
3331CC=$ac_cv_prog_CC
3332if test -n "$CC"; then
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3334$as_echo "$CC" >&6; }
3335else
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337$as_echo "no" >&6; }
3338fi
3339
3340
3341 fi
3342fi
3343if test -z "$CC"; then
3344 # Extract the first word of "cc", so it can be a program name with args.
3345set dummy cc; ac_word=$2
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347$as_echo_n "checking for $ac_word... " >&6; }
3348if test "${ac_cv_prog_CC+set}" = set; then :
3349 $as_echo_n "(cached) " >&6
3350else
3351 if test -n "$CC"; then
3352 ac_cv_prog_CC="$CC" # Let the user override the test.
3353else
3354 ac_prog_rejected=no
3355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356for as_dir in $PATH
3357do
3358 IFS=$as_save_IFS
3359 test -z "$as_dir" && as_dir=.
3360 for ac_exec_ext in '' $ac_executable_extensions; do
3361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3362 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3363 ac_prog_rejected=yes
3364 continue
3365 fi
3366 ac_cv_prog_CC="cc"
3367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3368 break 2
3369 fi
3370done
3371 done
3372IFS=$as_save_IFS
3373
3374if test $ac_prog_rejected = yes; then
3375 # We found a bogon in the path, so make sure we never use it.
3376 set dummy $ac_cv_prog_CC
3377 shift
3378 if test $# != 0; then
3379 # We chose a different compiler from the bogus one.
3380 # However, it has the same basename, so the bogon will be chosen
3381 # first if we set CC to just the basename; use the full file name.
3382 shift
3383 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3384 fi
3385fi
3386fi
3387fi
3388CC=$ac_cv_prog_CC
3389if test -n "$CC"; then
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3391$as_echo "$CC" >&6; }
3392else
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3394$as_echo "no" >&6; }
3395fi
3396
3397
3398fi
3399if test -z "$CC"; then
3400 if test -n "$ac_tool_prefix"; then
3401 for ac_prog in cl.exe
3402 do
3403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3404set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3406$as_echo_n "checking for $ac_word... " >&6; }
3407if test "${ac_cv_prog_CC+set}" = set; then :
3408 $as_echo_n "(cached) " >&6
3409else
3410 if test -n "$CC"; then
3411 ac_cv_prog_CC="$CC" # Let the user override the test.
3412else
3413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414for as_dir in $PATH
3415do
3416 IFS=$as_save_IFS
3417 test -z "$as_dir" && as_dir=.
3418 for ac_exec_ext in '' $ac_executable_extensions; do
3419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3420 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3422 break 2
3423 fi
3424done
3425 done
3426IFS=$as_save_IFS
3427
3428fi
3429fi
3430CC=$ac_cv_prog_CC
3431if test -n "$CC"; then
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3433$as_echo "$CC" >&6; }
3434else
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436$as_echo "no" >&6; }
3437fi
3438
3439
3440 test -n "$CC" && break
3441 done
3442fi
3443if test -z "$CC"; then
3444 ac_ct_CC=$CC
3445 for ac_prog in cl.exe
3446do
3447 # Extract the first word of "$ac_prog", so it can be a program name with args.
3448set dummy $ac_prog; ac_word=$2
3449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3450$as_echo_n "checking for $ac_word... " >&6; }
3451if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3452 $as_echo_n "(cached) " >&6
3453else
3454 if test -n "$ac_ct_CC"; then
3455 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3456else
3457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3458for as_dir in $PATH
3459do
3460 IFS=$as_save_IFS
3461 test -z "$as_dir" && as_dir=.
3462 for ac_exec_ext in '' $ac_executable_extensions; do
3463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3464 ac_cv_prog_ac_ct_CC="$ac_prog"
3465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3466 break 2
3467 fi
3468done
3469 done
3470IFS=$as_save_IFS
3471
3472fi
3473fi
3474ac_ct_CC=$ac_cv_prog_ac_ct_CC
3475if test -n "$ac_ct_CC"; then
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3477$as_echo "$ac_ct_CC" >&6; }
3478else
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3480$as_echo "no" >&6; }
3481fi
3482
3483
3484 test -n "$ac_ct_CC" && break
3485done
3486
3487 if test "x$ac_ct_CC" = x; then
3488 CC=""
3489 else
3490 case $cross_compiling:$ac_tool_warned in
3491yes:)
3492{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3493$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3494ac_tool_warned=yes ;;
3495esac
3496 CC=$ac_ct_CC
3497 fi
3498fi
3499
3500fi
3501
3502
3503test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3504$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3505as_fn_error "no acceptable C compiler found in \$PATH
3506See \`config.log' for more details." "$LINENO" 5; }
3507
3508# Provide some information about the compiler.
3509$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3510set X $ac_compile
3511ac_compiler=$2
3512for ac_option in --version -v -V -qversion; do
3513 { { ac_try="$ac_compiler $ac_option >&5"
3514case "(($ac_try" in
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3517esac
3518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3519$as_echo "$ac_try_echo"; } >&5
3520 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3521 ac_status=$?
3522 if test -s conftest.err; then
3523 sed '10a\
3524... rest of stderr output deleted ...
3525 10q' conftest.err >conftest.er1
3526 cat conftest.er1 >&5
3527 rm -f conftest.er1 conftest.err
3528 fi
3529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3530 test $ac_status = 0; }
3531done
3532
3533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534/* end confdefs.h. */
3535
3536int
3537main ()
3538{
3539
3540 ;
3541 return 0;
3542}
3543_ACEOF
3544ac_clean_files_save=$ac_clean_files
3545ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3546# Try to create an executable without -o first, disregard a.out.
3547# It will help us diagnose broken compilers, and finding out an intuition
3548# of exeext.
3549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3550$as_echo_n "checking for C compiler default output file name... " >&6; }
3551ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3552
3553# The possible output files:
3554ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3555
3556ac_rmfiles=
3557for ac_file in $ac_files
3558do
3559 case $ac_file in
3560 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3561 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3562 esac
3563done
3564rm -f $ac_rmfiles
3565
3566if { { ac_try="$ac_link_default"
3567case "(($ac_try" in
3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569 *) ac_try_echo=$ac_try;;
3570esac
3571eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3572$as_echo "$ac_try_echo"; } >&5
3573 (eval "$ac_link_default") 2>&5
3574 ac_status=$?
3575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3576 test $ac_status = 0; }; then :
3577 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3578# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3579# in a Makefile. We should not override ac_cv_exeext if it was cached,
3580# so that the user can short-circuit this test for compilers unknown to
3581# Autoconf.
3582for ac_file in $ac_files ''
3583do
3584 test -f "$ac_file" || continue
3585 case $ac_file in
3586 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3587 ;;
3588 [ab].out )
3589 # We found the default executable, but exeext='' is most
3590 # certainly right.
3591 break;;
3592 *.* )
3593 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3594 then :; else
3595 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3596 fi
3597 # We set ac_cv_exeext here because the later test for it is not
3598 # safe: cross compilers may not add the suffix if given an `-o'
3599 # argument, so we may need to know it at that point already.
3600 # Even if this section looks crufty: it has the advantage of
3601 # actually working.
3602 break;;
3603 * )
3604 break;;
3605 esac
3606done
3607test "$ac_cv_exeext" = no && ac_cv_exeext=
3608
3609else
3610 ac_file=''
3611fi
3612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3613$as_echo "$ac_file" >&6; }
3614if test -z "$ac_file"; then :
3615 $as_echo "$as_me: failed program was:" >&5
3616sed 's/^/| /' conftest.$ac_ext >&5
3617
3618{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3619$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3620{ as_fn_set_status 77
3621as_fn_error "C compiler cannot create executables
3622See \`config.log' for more details." "$LINENO" 5; }; }
3623fi
3624ac_exeext=$ac_cv_exeext
3625
3626# Check that the compiler produces executables we can run. If not, either
3627# the compiler is broken, or we cross compile.
3628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3629$as_echo_n "checking whether the C compiler works... " >&6; }
3630# If not cross compiling, check that we can run a simple program.
3631if test "$cross_compiling" != yes; then
3632 if { ac_try='./$ac_file'
3633 { { case "(($ac_try" in
3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635 *) ac_try_echo=$ac_try;;
3636esac
3637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3638$as_echo "$ac_try_echo"; } >&5
3639 (eval "$ac_try") 2>&5
3640 ac_status=$?
3641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3642 test $ac_status = 0; }; }; then
3643 cross_compiling=no
3644 else
3645 if test "$cross_compiling" = maybe; then
3646 cross_compiling=yes
3647 else
3648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3649$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3650as_fn_error "cannot run C compiled programs.
3651If you meant to cross compile, use \`--host'.
3652See \`config.log' for more details." "$LINENO" 5; }
3653 fi
3654 fi
3655fi
3656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3657$as_echo "yes" >&6; }
3658
3659rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3660ac_clean_files=$ac_clean_files_save
3661# Check that the compiler produces executables we can run. If not, either
3662# the compiler is broken, or we cross compile.
3663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3664$as_echo_n "checking whether we are cross compiling... " >&6; }
3665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3666$as_echo "$cross_compiling" >&6; }
3667
3668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3669$as_echo_n "checking for suffix of executables... " >&6; }
3670if { { ac_try="$ac_link"
3671case "(($ac_try" in
3672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673 *) ac_try_echo=$ac_try;;
3674esac
3675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3676$as_echo "$ac_try_echo"; } >&5
3677 (eval "$ac_link") 2>&5
3678 ac_status=$?
3679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3680 test $ac_status = 0; }; then :
3681 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3682# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3683# work properly (i.e., refer to `conftest.exe'), while it won't with
3684# `rm'.
3685for ac_file in conftest.exe conftest conftest.*; do
3686 test -f "$ac_file" || continue
3687 case $ac_file in
3688 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3689 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3690 break;;
3691 * ) break;;
3692 esac
3693done
3694else
3695 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3696$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3697as_fn_error "cannot compute suffix of executables: cannot compile and link
3698See \`config.log' for more details." "$LINENO" 5; }
3699fi
3700rm -f conftest$ac_cv_exeext
3701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3702$as_echo "$ac_cv_exeext" >&6; }
3703
3704rm -f conftest.$ac_ext
3705EXEEXT=$ac_cv_exeext
3706ac_exeext=$EXEEXT
3707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3708$as_echo_n "checking for suffix of object files... " >&6; }
3709if test "${ac_cv_objext+set}" = set; then :
3710 $as_echo_n "(cached) " >&6
3711else
3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713/* end confdefs.h. */
3714
3715int
3716main ()
3717{
3718
3719 ;
3720 return 0;
3721}
3722_ACEOF
3723rm -f conftest.o conftest.obj
3724if { { ac_try="$ac_compile"
3725case "(($ac_try" in
3726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727 *) ac_try_echo=$ac_try;;
3728esac
3729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3730$as_echo "$ac_try_echo"; } >&5
3731 (eval "$ac_compile") 2>&5
3732 ac_status=$?
3733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3734 test $ac_status = 0; }; then :
3735 for ac_file in conftest.o conftest.obj conftest.*; do
3736 test -f "$ac_file" || continue;
3737 case $ac_file in
3738 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3739 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3740 break;;
3741 esac
3742done
3743else
3744 $as_echo "$as_me: failed program was:" >&5
3745sed 's/^/| /' conftest.$ac_ext >&5
3746
3747{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3748$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3749as_fn_error "cannot compute suffix of object files: cannot compile
3750See \`config.log' for more details." "$LINENO" 5; }
3751fi
3752rm -f conftest.$ac_cv_objext conftest.$ac_ext
3753fi
3754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3755$as_echo "$ac_cv_objext" >&6; }
3756OBJEXT=$ac_cv_objext
3757ac_objext=$OBJEXT
3758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3759$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3760if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3761 $as_echo_n "(cached) " >&6
3762else
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764/* end confdefs.h. */
3765
3766int
3767main ()
3768{
3769#ifndef __GNUC__
3770 choke me
3771#endif
3772
3773 ;
3774 return 0;
3775}
3776_ACEOF
3777if ac_fn_c_try_compile "$LINENO"; then :
3778 ac_compiler_gnu=yes
3779else
3780 ac_compiler_gnu=no
3781fi
3782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3783ac_cv_c_compiler_gnu=$ac_compiler_gnu
3784
3785fi
3786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3787$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3788if test $ac_compiler_gnu = yes; then
3789 GCC=yes
3790else
3791 GCC=
3792fi
3793ac_test_CFLAGS=${CFLAGS+set}
3794ac_save_CFLAGS=$CFLAGS
3795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3796$as_echo_n "checking whether $CC accepts -g... " >&6; }
3797if test "${ac_cv_prog_cc_g+set}" = set; then :
3798 $as_echo_n "(cached) " >&6
3799else
3800 ac_save_c_werror_flag=$ac_c_werror_flag
3801 ac_c_werror_flag=yes
3802 ac_cv_prog_cc_g=no
3803 CFLAGS="-g"
3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805/* end confdefs.h. */
3806
3807int
3808main ()
3809{
3810
3811 ;
3812 return 0;
3813}
3814_ACEOF
3815if ac_fn_c_try_compile "$LINENO"; then :
3816 ac_cv_prog_cc_g=yes
3817else
3818 CFLAGS=""
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820/* end confdefs.h. */
3821
3822int
3823main ()
3824{
3825
3826 ;
3827 return 0;
3828}
3829_ACEOF
3830if ac_fn_c_try_compile "$LINENO"; then :
3831
3832else
3833 ac_c_werror_flag=$ac_save_c_werror_flag
3834 CFLAGS="-g"
3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836/* end confdefs.h. */
3837
3838int
3839main ()
3840{
3841
3842 ;
3843 return 0;
3844}
3845_ACEOF
3846if ac_fn_c_try_compile "$LINENO"; then :
3847 ac_cv_prog_cc_g=yes
3848fi
3849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3850fi
3851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3852fi
3853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3854 ac_c_werror_flag=$ac_save_c_werror_flag
3855fi
3856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3857$as_echo "$ac_cv_prog_cc_g" >&6; }
3858if test "$ac_test_CFLAGS" = set; then
3859 CFLAGS=$ac_save_CFLAGS
3860elif test $ac_cv_prog_cc_g = yes; then
3861 if test "$GCC" = yes; then
3862 CFLAGS="-g -O2"
3863 else
3864 CFLAGS="-g"
3865 fi
3866else
3867 if test "$GCC" = yes; then
3868 CFLAGS="-O2"
3869 else
3870 CFLAGS=
3871 fi
3872fi
3873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3874$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3875if test "${ac_cv_prog_cc_c89+set}" = set; then :
3876 $as_echo_n "(cached) " >&6
3877else
3878 ac_cv_prog_cc_c89=no
3879ac_save_CC=$CC
3880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881/* end confdefs.h. */
3882#include <stdarg.h>
3883#include <stdio.h>
3884#include <sys/types.h>
3885#include <sys/stat.h>
3886/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3887struct buf { int x; };
3888FILE * (*rcsopen) (struct buf *, struct stat *, int);
3889static char *e (p, i)
3890 char **p;
3891 int i;
3892{
3893 return p[i];
3894}
3895static char *f (char * (*g) (char **, int), char **p, ...)
3896{
3897 char *s;
3898 va_list v;
3899 va_start (v,p);
3900 s = g (p, va_arg (v,int));
3901 va_end (v);
3902 return s;
3903}
3904
3905/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3906 function prototypes and stuff, but not '\xHH' hex character constants.
3907 These don't provoke an error unfortunately, instead are silently treated
3908 as 'x'. The following induces an error, until -std is added to get
3909 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3910 array size at least. It's necessary to write '\x00'==0 to get something
3911 that's true only with -std. */
3912int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3913
3914/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3915 inside strings and character constants. */
3916#define FOO(x) 'x'
3917int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3918
3919int test (int i, double x);
3920struct s1 {int (*f) (int a);};
3921struct s2 {int (*f) (double a);};
3922int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3923int argc;
3924char **argv;
3925int
3926main ()
3927{
3928return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3929 ;
3930 return 0;
3931}
3932_ACEOF
3933for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3934 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3935do
3936 CC="$ac_save_CC $ac_arg"
3937 if ac_fn_c_try_compile "$LINENO"; then :
3938 ac_cv_prog_cc_c89=$ac_arg
3939fi
3940rm -f core conftest.err conftest.$ac_objext
3941 test "x$ac_cv_prog_cc_c89" != "xno" && break
3942done
3943rm -f conftest.$ac_ext
3944CC=$ac_save_CC
3945
3946fi
3947# AC_CACHE_VAL
3948case "x$ac_cv_prog_cc_c89" in
3949 x)
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3951$as_echo "none needed" >&6; } ;;
3952 xno)
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3954$as_echo "unsupported" >&6; } ;;
3955 *)
3956 CC="$CC $ac_cv_prog_cc_c89"
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3958$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3959esac
3960if test "x$ac_cv_prog_cc_c89" != xno; then :
3961
3962fi
3963
3964ac_ext=c
3965ac_cpp='$CPP $CPPFLAGS'
3966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3968ac_compiler_gnu=$ac_cv_c_compiler_gnu
2077db1b
CT
3969
3970depcc="$CC" am_compiler_list=
3971
3972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3973$as_echo_n "checking dependency style of $depcc... " >&6; }
3974if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3975 $as_echo_n "(cached) " >&6
3976else
3977 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3978 # We make a subdir and do the tests there. Otherwise we can end up
3979 # making bogus files that we don't know about and never remove. For
3980 # instance it was reported that on HP-UX the gcc test will end up
3981 # making a dummy file named `D' -- because `-MD' means `put the output
3982 # in D'.
3983 mkdir conftest.dir
3984 # Copy depcomp to subdir because otherwise we won't find it if we're
3985 # using a relative directory.
3986 cp "$am_depcomp" conftest.dir
3987 cd conftest.dir
3988 # We will build objects and dependencies in a subdirectory because
3989 # it helps to detect inapplicable dependency modes. For instance
3990 # both Tru64's cc and ICC support -MD to output dependencies as a
3991 # side effect of compilation, but ICC will put the dependencies in
3992 # the current directory while Tru64 will put them in the object
3993 # directory.
3994 mkdir sub
3995
3996 am_cv_CC_dependencies_compiler_type=none
3997 if test "$am_compiler_list" = ""; then
3998 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3999 fi
4000 am__universal=false
4001 case " $depcc " in #(
4002 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4003 esac
4004
4005 for depmode in $am_compiler_list; do
4006 # Setup a source with many dependencies, because some compilers
4007 # like to wrap large dependency lists on column 80 (with \), and
4008 # we should not choose a depcomp mode which is confused by this.
4009 #
4010 # We need to recreate these files for each test, as the compiler may
4011 # overwrite some of them when testing with obscure command lines.
4012 # This happens at least with the AIX C compiler.
4013 : > sub/conftest.c
4014 for i in 1 2 3 4 5 6; do
4015 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4016 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4017 # Solaris 8's {/usr,}/bin/sh.
4018 touch sub/conftst$i.h
4019 done
4020 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4021
4022 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4023 # mode. It turns out that the SunPro C++ compiler does not properly
4024 # handle `-M -o', and we need to detect this. Also, some Intel
4025 # versions had trouble with output in subdirs
4026 am__obj=sub/conftest.${OBJEXT-o}
4027 am__minus_obj="-o $am__obj"
4028 case $depmode in
4029 gcc)
4030 # This depmode causes a compiler race in universal mode.
4031 test "$am__universal" = false || continue
4032 ;;
4033 nosideeffect)
4034 # after this tag, mechanisms are not by side-effect, so they'll
4035 # only be used when explicitly requested
4036 if test "x$enable_dependency_tracking" = xyes; then
4037 continue
4038 else
4039 break
4040 fi
4041 ;;
4042 msvisualcpp | msvcmsys)
4043 # This compiler won't grok `-c -o', but also, the minuso test has
4044 # not run yet. These depmodes are late enough in the game, and
4045 # so weak that their functioning should not be impacted.
4046 am__obj=conftest.${OBJEXT-o}
4047 am__minus_obj=
4048 ;;
4049 none) break ;;
4050 esac
4051 if depmode=$depmode \
4052 source=sub/conftest.c object=$am__obj \
4053 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4054 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4055 >/dev/null 2>conftest.err &&
4056 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4057 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4058 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4059 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4060 # icc doesn't choke on unknown options, it will just issue warnings
4061 # or remarks (even with -Werror). So we grep stderr for any message
4062 # that says an option was ignored or not supported.
4063 # When given -MP, icc 7.0 and 7.1 complain thusly:
4064 # icc: Command line warning: ignoring option '-M'; no argument required
4065 # The diagnosis changed in icc 8.0:
4066 # icc: Command line remark: option '-MP' not supported
4067 if (grep 'ignoring option' conftest.err ||
4068 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4069 am_cv_CC_dependencies_compiler_type=$depmode
4070 break
4071 fi
4072 fi
4073 done
4074
4075 cd ..
4076 rm -rf conftest.dir
4077else
4078 am_cv_CC_dependencies_compiler_type=none
4079fi
4080
4081fi
4082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4083$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4084CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4085
4086 if
4087 test "x$enable_dependency_tracking" != xno \
4088 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4089 am__fastdepCC_TRUE=
4090 am__fastdepCC_FALSE='#'
4091else
4092 am__fastdepCC_TRUE='#'
4093 am__fastdepCC_FALSE=
4094fi
4095
4096
8bc16536
CT
4097
4098ac_ext=c
4099ac_cpp='$CPP $CPPFLAGS'
4100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4102ac_compiler_gnu=$ac_cv_c_compiler_gnu
4103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4104$as_echo_n "checking how to run the C preprocessor... " >&6; }
4105# On Suns, sometimes $CPP names a directory.
4106if test -n "$CPP" && test -d "$CPP"; then
4107 CPP=
4108fi
4109if test -z "$CPP"; then
4110 if test "${ac_cv_prog_CPP+set}" = set; then :
2077db1b
CT
4111 $as_echo_n "(cached) " >&6
4112else
8bc16536
CT
4113 # Double quotes because CPP needs to be expanded
4114 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4115 do
4116 ac_preproc_ok=false
4117for ac_c_preproc_warn_flag in '' yes
2077db1b 4118do
8bc16536
CT
4119 # Use a header file that comes with gcc, so configuring glibc
4120 # with a fresh cross-compiler works.
4121 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4122 # <limits.h> exists even on freestanding compilers.
4123 # On the NeXT, cc -E runs the code through the compiler's parser,
4124 # not just through cpp. "Syntax error" is here to catch this case.
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126/* end confdefs.h. */
4127#ifdef __STDC__
4128# include <limits.h>
4129#else
4130# include <assert.h>
4131#endif
4132 Syntax error
4133_ACEOF
4134if ac_fn_c_try_cpp "$LINENO"; then :
2077db1b 4135
8bc16536
CT
4136else
4137 # Broken: fails on valid input.
4138continue
2077db1b 4139fi
8bc16536
CT
4140rm -f conftest.err conftest.$ac_ext
4141
4142 # OK, works on sane cases. Now check whether nonexistent headers
4143 # can be detected and how.
4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145/* end confdefs.h. */
4146#include <ac_nonexistent.h>
4147_ACEOF
4148if ac_fn_c_try_cpp "$LINENO"; then :
4149 # Broken: success on invalid input.
4150continue
2077db1b 4151else
8bc16536
CT
4152 # Passes both tests.
4153ac_preproc_ok=:
4154break
2077db1b 4155fi
8bc16536 4156rm -f conftest.err conftest.$ac_ext
2077db1b 4157
8bc16536
CT
4158done
4159# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4160rm -f conftest.err conftest.$ac_ext
4161if $ac_preproc_ok; then :
4162 break
4163fi
4164
4165 done
4166 ac_cv_prog_CPP=$CPP
2077db1b 4167
2077db1b 4168fi
8bc16536 4169 CPP=$ac_cv_prog_CPP
2077db1b 4170else
8bc16536
CT
4171 ac_cv_prog_CPP=$CPP
4172fi
4173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4174$as_echo "$CPP" >&6; }
4175ac_preproc_ok=false
4176for ac_c_preproc_warn_flag in '' yes
2077db1b 4177do
8bc16536
CT
4178 # Use a header file that comes with gcc, so configuring glibc
4179 # with a fresh cross-compiler works.
4180 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4181 # <limits.h> exists even on freestanding compilers.
4182 # On the NeXT, cc -E runs the code through the compiler's parser,
4183 # not just through cpp. "Syntax error" is here to catch this case.
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185/* end confdefs.h. */
4186#ifdef __STDC__
4187# include <limits.h>
4188#else
4189# include <assert.h>
4190#endif
4191 Syntax error
4192_ACEOF
4193if ac_fn_c_try_cpp "$LINENO"; then :
2077db1b 4194
8bc16536
CT
4195else
4196 # Broken: fails on valid input.
4197continue
2077db1b 4198fi
8bc16536
CT
4199rm -f conftest.err conftest.$ac_ext
4200
4201 # OK, works on sane cases. Now check whether nonexistent headers
4202 # can be detected and how.
4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204/* end confdefs.h. */
4205#include <ac_nonexistent.h>
4206_ACEOF
4207if ac_fn_c_try_cpp "$LINENO"; then :
4208 # Broken: success on invalid input.
4209continue
4210else
4211 # Passes both tests.
4212ac_preproc_ok=:
4213break
2077db1b 4214fi
8bc16536
CT
4215rm -f conftest.err conftest.$ac_ext
4216
4217done
4218# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4219rm -f conftest.err conftest.$ac_ext
4220if $ac_preproc_ok; then :
4221
2077db1b 4222else
8bc16536
CT
4223 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4224$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4225as_fn_error "C preprocessor \"$CPP\" fails sanity check
4226See \`config.log' for more details." "$LINENO" 5; }
2077db1b
CT
4227fi
4228
8bc16536
CT
4229ac_ext=c
4230ac_cpp='$CPP $CPPFLAGS'
4231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4233ac_compiler_gnu=$ac_cv_c_compiler_gnu
2077db1b 4234
2077db1b 4235
8bc16536
CT
4236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4237$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4238if test "${ac_cv_path_GREP+set}" = set; then :
4239 $as_echo_n "(cached) " >&6
4240else
4241 if test -z "$GREP"; then
4242 ac_path_GREP_found=false
4243 # Loop through the user's path and test for each of PROGNAME-LIST
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4246do
4247 IFS=$as_save_IFS
4248 test -z "$as_dir" && as_dir=.
4249 for ac_prog in grep ggrep; do
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4252 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4253# Check for GNU ac_path_GREP and select it if it is found.
4254 # Check for GNU $ac_path_GREP
4255case `"$ac_path_GREP" --version 2>&1` in
4256*GNU*)
4257 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4258*)
4259 ac_count=0
4260 $as_echo_n 0123456789 >"conftest.in"
4261 while :
4262 do
4263 cat "conftest.in" "conftest.in" >"conftest.tmp"
4264 mv "conftest.tmp" "conftest.in"
4265 cp "conftest.in" "conftest.nl"
4266 $as_echo 'GREP' >> "conftest.nl"
4267 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4268 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4269 as_fn_arith $ac_count + 1 && ac_count=$as_val
4270 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4271 # Best one so far, save it but keep looking for a better one
4272 ac_cv_path_GREP="$ac_path_GREP"
4273 ac_path_GREP_max=$ac_count
4274 fi
4275 # 10*(2^10) chars as input seems more than enough
4276 test $ac_count -gt 10 && break
4277 done
4278 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2077db1b 4279esac
8bc16536
CT
4280
4281 $ac_path_GREP_found && break 3
4282 done
4283 done
4284 done
4285IFS=$as_save_IFS
4286 if test -z "$ac_cv_path_GREP"; then
4287 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
2077db1b 4288 fi
8bc16536
CT
4289else
4290 ac_cv_path_GREP=$GREP
2077db1b
CT
4291fi
4292
2077db1b 4293fi
8bc16536
CT
4294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4295$as_echo "$ac_cv_path_GREP" >&6; }
4296 GREP="$ac_cv_path_GREP"
4297
4298
4299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4300$as_echo_n "checking for egrep... " >&6; }
4301if test "${ac_cv_path_EGREP+set}" = set; then :
4302 $as_echo_n "(cached) " >&6
4303else
4304 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4305 then ac_cv_path_EGREP="$GREP -E"
4306 else
4307 if test -z "$EGREP"; then
4308 ac_path_EGREP_found=false
4309 # Loop through the user's path and test for each of PROGNAME-LIST
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4312do
4313 IFS=$as_save_IFS
4314 test -z "$as_dir" && as_dir=.
4315 for ac_prog in egrep; do
4316 for ac_exec_ext in '' $ac_executable_extensions; do
4317 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4318 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4319# Check for GNU ac_path_EGREP and select it if it is found.
4320 # Check for GNU $ac_path_EGREP
4321case `"$ac_path_EGREP" --version 2>&1` in
4322*GNU*)
4323 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4324*)
4325 ac_count=0
4326 $as_echo_n 0123456789 >"conftest.in"
4327 while :
4328 do
4329 cat "conftest.in" "conftest.in" >"conftest.tmp"
4330 mv "conftest.tmp" "conftest.in"
4331 cp "conftest.in" "conftest.nl"
4332 $as_echo 'EGREP' >> "conftest.nl"
4333 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4334 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4335 as_fn_arith $ac_count + 1 && ac_count=$as_val
4336 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4337 # Best one so far, save it but keep looking for a better one
4338 ac_cv_path_EGREP="$ac_path_EGREP"
4339 ac_path_EGREP_max=$ac_count
4340 fi
4341 # 10*(2^10) chars as input seems more than enough
4342 test $ac_count -gt 10 && break
4343 done
4344 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2077db1b 4345esac
8bc16536
CT
4346
4347 $ac_path_EGREP_found && break 3
4348 done
4349 done
4350 done
4351IFS=$as_save_IFS
4352 if test -z "$ac_cv_path_EGREP"; then
4353 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
2077db1b 4354 fi
8bc16536
CT
4355else
4356 ac_cv_path_EGREP=$EGREP
4357fi
2077db1b 4358
8bc16536
CT
4359 fi
4360fi
4361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4362$as_echo "$ac_cv_path_EGREP" >&6; }
4363 EGREP="$ac_cv_path_EGREP"
4364
4365
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4367$as_echo_n "checking for ANSI C header files... " >&6; }
4368if test "${ac_cv_header_stdc+set}" = set; then :
2077db1b
CT
4369 $as_echo_n "(cached) " >&6
4370else
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372/* end confdefs.h. */
8bc16536
CT
4373#include <stdlib.h>
4374#include <stdarg.h>
4375#include <string.h>
4376#include <float.h>
2077db1b
CT
4377
4378int
4379main ()
4380{
2077db1b
CT
4381
4382 ;
4383 return 0;
4384}
4385_ACEOF
8bc16536
CT
4386if ac_fn_c_try_compile "$LINENO"; then :
4387 ac_cv_header_stdc=yes
2077db1b 4388else
8bc16536 4389 ac_cv_header_stdc=no
2077db1b
CT
4390fi
4391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077db1b 4392
8bc16536
CT
4393if test $ac_cv_header_stdc = yes; then
4394 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396/* end confdefs.h. */
4397#include <string.h>
4398
4399_ACEOF
4400if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4401 $EGREP "memchr" >/dev/null 2>&1; then :
4402
4403else
4404 ac_cv_header_stdc=no
2077db1b 4405fi
8bc16536
CT
4406rm -f conftest*
4407
4408fi
4409
4410if test $ac_cv_header_stdc = yes; then
4411 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413/* end confdefs.h. */
4414#include <stdlib.h>
4415
4416_ACEOF
4417if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4418 $EGREP "free" >/dev/null 2>&1; then :
4419
2077db1b 4420else
8bc16536
CT
4421 ac_cv_header_stdc=no
4422fi
4423rm -f conftest*
4424
4425fi
4426
4427if test $ac_cv_header_stdc = yes; then
4428 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4429 if test "$cross_compiling" = yes; then :
4430 :
4431else
4432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077db1b 4433/* end confdefs.h. */
8bc16536
CT
4434#include <ctype.h>
4435#include <stdlib.h>
4436#if ((' ' & 0x0FF) == 0x020)
4437# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4438# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4439#else
4440# define ISLOWER(c) \
4441 (('a' <= (c) && (c) <= 'i') \
4442 || ('j' <= (c) && (c) <= 'r') \
4443 || ('s' <= (c) && (c) <= 'z'))
4444# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4445#endif
2077db1b 4446
8bc16536 4447#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2077db1b
CT
4448int
4449main ()
4450{
8bc16536
CT
4451 int i;
4452 for (i = 0; i < 256; i++)
4453 if (XOR (islower (i), ISLOWER (i))
4454 || toupper (i) != TOUPPER (i))
4455 return 2;
2077db1b
CT
4456 return 0;
4457}
4458_ACEOF
8bc16536
CT
4459if ac_fn_c_try_run "$LINENO"; then :
4460
2077db1b 4461else
8bc16536
CT
4462 ac_cv_header_stdc=no
4463fi
4464rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4465 conftest.$ac_objext conftest.beam conftest.$ac_ext
4466fi
2077db1b 4467
8bc16536
CT
4468fi
4469fi
4470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4471$as_echo "$ac_cv_header_stdc" >&6; }
4472if test $ac_cv_header_stdc = yes; then
2077db1b 4473
8bc16536
CT
4474$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4475
4476fi
4477
4478# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4479for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4480 inttypes.h stdint.h unistd.h
4481do :
4482 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4483ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4484"
4485eval as_val=\$$as_ac_Header
4486 if test "x$as_val" = x""yes; then :
4487 cat >>confdefs.h <<_ACEOF
4488#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2077db1b 4489_ACEOF
2077db1b 4490
8bc16536
CT
4491fi
4492
4493done
4494
4495
4496
4497 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4498if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4499 MINIX=yes
2077db1b 4500else
8bc16536
CT
4501 MINIX=
4502fi
4503
4504
4505 if test "$MINIX" = yes; then
4506
4507$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4508
4509
4510$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4511
4512
4513$as_echo "#define _MINIX 1" >>confdefs.h
4514
4515 fi
4516
4517
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4519$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4520if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4521 $as_echo_n "(cached) " >&6
4522else
4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077db1b
CT
4524/* end confdefs.h. */
4525
8bc16536
CT
4526# define __EXTENSIONS__ 1
4527 $ac_includes_default
2077db1b
CT
4528int
4529main ()
4530{
4531
4532 ;
4533 return 0;
4534}
4535_ACEOF
8bc16536
CT
4536if ac_fn_c_try_compile "$LINENO"; then :
4537 ac_cv_safe_to_define___extensions__=yes
4538else
4539 ac_cv_safe_to_define___extensions__=no
2077db1b
CT
4540fi
4541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4542fi
8bc16536
CT
4543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4544$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4545 test $ac_cv_safe_to_define___extensions__ = yes &&
4546 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4547
4548 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4549
4550 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4551
4552 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4553
4554 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4555
4556
4557
4558for ac_func in __secure_getenv
4559do :
4560 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
4561if test "x$ac_cv_func___secure_getenv" = x""yes; then :
4562 cat >>confdefs.h <<_ACEOF
4563#define HAVE___SECURE_GETENV 1
4564_ACEOF
4565
2077db1b 4566fi
8bc16536
CT
4567done
4568
4569
4570
4571for ac_func in secure_getenv
4572do :
4573 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
4574if test "x$ac_cv_func_secure_getenv" = x""yes; then :
4575 cat >>confdefs.h <<_ACEOF
4576#define HAVE_SECURE_GETENV 1
4577_ACEOF
4578
2077db1b 4579fi
8bc16536
CT
4580done
4581
4582
4583# Check for programs.
4584
4585
2077db1b
CT
4586ac_ext=c
4587ac_cpp='$CPP $CPPFLAGS'
4588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4590ac_compiler_gnu=$ac_cv_c_compiler_gnu
8bc16536
CT
4591if test -n "$ac_tool_prefix"; then
4592 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4593set dummy ${ac_tool_prefix}gcc; ac_word=$2
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4595$as_echo_n "checking for $ac_word... " >&6; }
4596if test "${ac_cv_prog_CC+set}" = set; then :
2077db1b
CT
4597 $as_echo_n "(cached) " >&6
4598else
8bc16536
CT
4599 if test -n "$CC"; then
4600 ac_cv_prog_CC="$CC" # Let the user override the test.
4601else
4602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603for as_dir in $PATH
4604do
4605 IFS=$as_save_IFS
4606 test -z "$as_dir" && as_dir=.
4607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4609 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4611 break 2
2077db1b 4612 fi
8bc16536
CT
4613done
4614 done
4615IFS=$as_save_IFS
2077db1b 4616
2077db1b 4617fi
2077db1b 4618fi
8bc16536
CT
4619CC=$ac_cv_prog_CC
4620if test -n "$CC"; then
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4622$as_echo "$CC" >&6; }
2077db1b 4623else
8bc16536
CT
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625$as_echo "no" >&6; }
2077db1b
CT
4626fi
4627
4628
2077db1b 4629fi
8bc16536
CT
4630if test -z "$ac_cv_prog_CC"; then
4631 ac_ct_CC=$CC
4632 # Extract the first word of "gcc", so it can be a program name with args.
4633set dummy gcc; ac_word=$2
4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4635$as_echo_n "checking for $ac_word... " >&6; }
4636if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2077db1b
CT
4637 $as_echo_n "(cached) " >&6
4638else
8bc16536
CT
4639 if test -n "$ac_ct_CC"; then
4640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2077db1b 4641else
8bc16536
CT
4642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643for as_dir in $PATH
4644do
4645 IFS=$as_save_IFS
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4649 ac_cv_prog_ac_ct_CC="gcc"
4650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4651 break 2
4652 fi
4653done
4654 done
4655IFS=$as_save_IFS
2077db1b
CT
4656
4657fi
8bc16536
CT
4658fi
4659ac_ct_CC=$ac_cv_prog_ac_ct_CC
4660if test -n "$ac_ct_CC"; then
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4662$as_echo "$ac_ct_CC" >&6; }
2077db1b
CT
4663else
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665$as_echo "no" >&6; }
2077db1b
CT
4666fi
4667
8bc16536
CT
4668 if test "x$ac_ct_CC" = x; then
4669 CC=""
4670 else
4671 case $cross_compiling:$ac_tool_warned in
4672yes:)
4673{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4674$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4675ac_tool_warned=yes ;;
4676esac
4677 CC=$ac_ct_CC
4678 fi
4679else
4680 CC="$ac_cv_prog_CC"
2077db1b
CT
4681fi
4682
8bc16536
CT
4683if test -z "$CC"; then
4684 if test -n "$ac_tool_prefix"; then
4685 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4686set dummy ${ac_tool_prefix}cc; ac_word=$2
2077db1b
CT
4687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4688$as_echo_n "checking for $ac_word... " >&6; }
8bc16536 4689if test "${ac_cv_prog_CC+set}" = set; then :
2077db1b
CT
4690 $as_echo_n "(cached) " >&6
4691else
8bc16536
CT
4692 if test -n "$CC"; then
4693 ac_cv_prog_CC="$CC" # Let the user override the test.
2077db1b
CT
4694else
4695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696for as_dir in $PATH
4697do
4698 IFS=$as_save_IFS
4699 test -z "$as_dir" && as_dir=.
4700 for ac_exec_ext in '' $ac_executable_extensions; do
4701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8bc16536 4702 ac_cv_prog_CC="${ac_tool_prefix}cc"
2077db1b
CT
4703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4704 break 2
4705 fi
4706done
4707 done
4708IFS=$as_save_IFS
4709
4710fi
4711fi
8bc16536
CT
4712CC=$ac_cv_prog_CC
4713if test -n "$CC"; then
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4715$as_echo "$CC" >&6; }
2077db1b
CT
4716else
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4718$as_echo "no" >&6; }
4719fi
4720
4721
8bc16536 4722 fi
2077db1b 4723fi
8bc16536
CT
4724if test -z "$CC"; then
4725 # Extract the first word of "cc", so it can be a program name with args.
4726set dummy cc; ac_word=$2
2077db1b
CT
4727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4728$as_echo_n "checking for $ac_word... " >&6; }
8bc16536 4729if test "${ac_cv_prog_CC+set}" = set; then :
2077db1b
CT
4730 $as_echo_n "(cached) " >&6
4731else
8bc16536
CT
4732 if test -n "$CC"; then
4733 ac_cv_prog_CC="$CC" # Let the user override the test.
2077db1b 4734else
8bc16536 4735 ac_prog_rejected=no
2077db1b
CT
4736as_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
8bc16536
CT
4743 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4744 ac_prog_rejected=yes
4745 continue
4746 fi
4747 ac_cv_prog_CC="cc"
2077db1b
CT
4748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4749 break 2
4750 fi
4751done
4752 done
4753IFS=$as_save_IFS
4754
8bc16536
CT
4755if test $ac_prog_rejected = yes; then
4756 # We found a bogon in the path, so make sure we never use it.
4757 set dummy $ac_cv_prog_CC
4758 shift
4759 if test $# != 0; then
4760 # We chose a different compiler from the bogus one.
4761 # However, it has the same basename, so the bogon will be chosen
4762 # first if we set CC to just the basename; use the full file name.
4763 shift
4764 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2077db1b 4765 fi
2077db1b 4766fi
2077db1b
CT
4767fi
4768fi
8bc16536
CT
4769CC=$ac_cv_prog_CC
4770if test -n "$CC"; then
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4772$as_echo "$CC" >&6; }
2077db1b
CT
4773else
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4775$as_echo "no" >&6; }
4776fi
4777
4778
4779fi
8bc16536
CT
4780if test -z "$CC"; then
4781 if test -n "$ac_tool_prefix"; then
4782 for ac_prog in cl.exe
4783 do
4784 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4785set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2077db1b
CT
4786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4787$as_echo_n "checking for $ac_word... " >&6; }
8bc16536 4788if test "${ac_cv_prog_CC+set}" = set; then :
2077db1b
CT
4789 $as_echo_n "(cached) " >&6
4790else
8bc16536
CT
4791 if test -n "$CC"; then
4792 ac_cv_prog_CC="$CC" # Let the user override the test.
2077db1b
CT
4793else
4794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795for as_dir in $PATH
4796do
4797 IFS=$as_save_IFS
4798 test -z "$as_dir" && as_dir=.
4799 for ac_exec_ext in '' $ac_executable_extensions; do
4800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8bc16536 4801 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2077db1b
CT
4802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4803 break 2
4804 fi
4805done
4806 done
4807IFS=$as_save_IFS
4808
4809fi
4810fi
8bc16536
CT
4811CC=$ac_cv_prog_CC
4812if test -n "$CC"; then
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4814$as_echo "$CC" >&6; }
2077db1b
CT
4815else
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4817$as_echo "no" >&6; }
4818fi
4819
2077db1b 4820
8bc16536
CT
4821 test -n "$CC" && break
4822 done
4823fi
4824if test -z "$CC"; then
4825 ac_ct_CC=$CC
4826 for ac_prog in cl.exe
4827do
4828 # Extract the first word of "$ac_prog", so it can be a program name with args.
4829set dummy $ac_prog; ac_word=$2
2077db1b
CT
4830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4831$as_echo_n "checking for $ac_word... " >&6; }
8bc16536 4832if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2077db1b
CT
4833 $as_echo_n "(cached) " >&6
4834else
8bc16536
CT
4835 if test -n "$ac_ct_CC"; then
4836 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2077db1b
CT
4837else
4838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839for as_dir in $PATH
4840do
4841 IFS=$as_save_IFS
4842 test -z "$as_dir" && as_dir=.
4843 for ac_exec_ext in '' $ac_executable_extensions; do
4844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8bc16536 4845 ac_cv_prog_ac_ct_CC="$ac_prog"
2077db1b
CT
4846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4847 break 2
4848 fi
4849done
4850 done
4851IFS=$as_save_IFS
4852
4853fi
4854fi
8bc16536
CT
4855ac_ct_CC=$ac_cv_prog_ac_ct_CC
4856if test -n "$ac_ct_CC"; then
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4858$as_echo "$ac_ct_CC" >&6; }
2077db1b
CT
4859else
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4861$as_echo "no" >&6; }
4862fi
4863
4864
8bc16536 4865 test -n "$ac_ct_CC" && break
2077db1b 4866done
2077db1b 4867
8bc16536
CT
4868 if test "x$ac_ct_CC" = x; then
4869 CC=""
2077db1b
CT
4870 else
4871 case $cross_compiling:$ac_tool_warned in
4872yes:)
4873{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4874$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4875ac_tool_warned=yes ;;
4876esac
8bc16536 4877 CC=$ac_ct_CC
2077db1b 4878 fi
2077db1b
CT
4879fi
4880
8bc16536 4881fi
2077db1b
CT
4882
4883
8bc16536
CT
4884test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4885$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4886as_fn_error "no acceptable C compiler found in \$PATH
4887See \`config.log' for more details." "$LINENO" 5; }
2077db1b 4888
8bc16536
CT
4889# Provide some information about the compiler.
4890$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4891set X $ac_compile
4892ac_compiler=$2
4893for ac_option in --version -v -V -qversion; do
4894 { { ac_try="$ac_compiler $ac_option >&5"
4895case "(($ac_try" in
4896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4897 *) ac_try_echo=$ac_try;;
4898esac
4899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4900$as_echo "$ac_try_echo"; } >&5
4901 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4902 ac_status=$?
4903 if test -s conftest.err; then
4904 sed '10a\
4905... rest of stderr output deleted ...
4906 10q' conftest.err >conftest.er1
4907 cat conftest.er1 >&5
4908 rm -f conftest.er1 conftest.err
4909 fi
4910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4911 test $ac_status = 0; }
4912done
4913
4914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4915$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4916if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4917 $as_echo_n "(cached) " >&6
4918else
4919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4920/* end confdefs.h. */
4921
4922int
4923main ()
4924{
4925#ifndef __GNUC__
4926 choke me
4927#endif
4928
4929 ;
4930 return 0;
4931}
4932_ACEOF
4933if ac_fn_c_try_compile "$LINENO"; then :
4934 ac_compiler_gnu=yes
4935else
4936 ac_compiler_gnu=no
4937fi
4938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4939ac_cv_c_compiler_gnu=$ac_compiler_gnu
4940
4941fi
4942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4943$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4944if test $ac_compiler_gnu = yes; then
4945 GCC=yes
4946else
4947 GCC=
4948fi
4949ac_test_CFLAGS=${CFLAGS+set}
4950ac_save_CFLAGS=$CFLAGS
4951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4952$as_echo_n "checking whether $CC accepts -g... " >&6; }
4953if test "${ac_cv_prog_cc_g+set}" = set; then :
4954 $as_echo_n "(cached) " >&6
4955else
4956 ac_save_c_werror_flag=$ac_c_werror_flag
4957 ac_c_werror_flag=yes
4958 ac_cv_prog_cc_g=no
4959 CFLAGS="-g"
4960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961/* end confdefs.h. */
4962
4963int
4964main ()
4965{
4966
4967 ;
4968 return 0;
4969}
4970_ACEOF
4971if ac_fn_c_try_compile "$LINENO"; then :
4972 ac_cv_prog_cc_g=yes
4973else
4974 CFLAGS=""
4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976/* end confdefs.h. */
4977
4978int
4979main ()
4980{
4981
4982 ;
4983 return 0;
4984}
4985_ACEOF
4986if ac_fn_c_try_compile "$LINENO"; then :
4987
4988else
4989 ac_c_werror_flag=$ac_save_c_werror_flag
4990 CFLAGS="-g"
4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992/* end confdefs.h. */
4993
4994int
4995main ()
4996{
4997
4998 ;
4999 return 0;
5000}
5001_ACEOF
5002if ac_fn_c_try_compile "$LINENO"; then :
5003 ac_cv_prog_cc_g=yes
5004fi
5005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5006fi
5007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5008fi
5009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5010 ac_c_werror_flag=$ac_save_c_werror_flag
5011fi
5012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5013$as_echo "$ac_cv_prog_cc_g" >&6; }
5014if test "$ac_test_CFLAGS" = set; then
5015 CFLAGS=$ac_save_CFLAGS
5016elif test $ac_cv_prog_cc_g = yes; then
5017 if test "$GCC" = yes; then
5018 CFLAGS="-g -O2"
5019 else
5020 CFLAGS="-g"
5021 fi
5022else
5023 if test "$GCC" = yes; then
5024 CFLAGS="-O2"
5025 else
5026 CFLAGS=
5027 fi
5028fi
5029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5030$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5031if test "${ac_cv_prog_cc_c89+set}" = set; then :
5032 $as_echo_n "(cached) " >&6
5033else
5034 ac_cv_prog_cc_c89=no
5035ac_save_CC=$CC
5036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5037/* end confdefs.h. */
5038#include <stdarg.h>
5039#include <stdio.h>
5040#include <sys/types.h>
5041#include <sys/stat.h>
5042/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5043struct buf { int x; };
5044FILE * (*rcsopen) (struct buf *, struct stat *, int);
5045static char *e (p, i)
5046 char **p;
5047 int i;
5048{
5049 return p[i];
5050}
5051static char *f (char * (*g) (char **, int), char **p, ...)
5052{
5053 char *s;
5054 va_list v;
5055 va_start (v,p);
5056 s = g (p, va_arg (v,int));
5057 va_end (v);
5058 return s;
5059}
5060
5061/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5062 function prototypes and stuff, but not '\xHH' hex character constants.
5063 These don't provoke an error unfortunately, instead are silently treated
5064 as 'x'. The following induces an error, until -std is added to get
5065 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5066 array size at least. It's necessary to write '\x00'==0 to get something
5067 that's true only with -std. */
5068int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5069
5070/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5071 inside strings and character constants. */
5072#define FOO(x) 'x'
5073int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5074
5075int test (int i, double x);
5076struct s1 {int (*f) (int a);};
5077struct s2 {int (*f) (double a);};
5078int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5079int argc;
5080char **argv;
5081int
5082main ()
5083{
5084return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5085 ;
5086 return 0;
5087}
5088_ACEOF
5089for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5090 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5091do
5092 CC="$ac_save_CC $ac_arg"
5093 if ac_fn_c_try_compile "$LINENO"; then :
5094 ac_cv_prog_cc_c89=$ac_arg
5095fi
5096rm -f core conftest.err conftest.$ac_objext
5097 test "x$ac_cv_prog_cc_c89" != "xno" && break
5098done
5099rm -f conftest.$ac_ext
5100CC=$ac_save_CC
5101
5102fi
5103# AC_CACHE_VAL
5104case "x$ac_cv_prog_cc_c89" in
5105 x)
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5107$as_echo "none needed" >&6; } ;;
5108 xno)
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5110$as_echo "unsupported" >&6; } ;;
5111 *)
5112 CC="$CC $ac_cv_prog_cc_c89"
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5114$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5115esac
5116if test "x$ac_cv_prog_cc_c89" != xno; then :
5117
5118fi
5119
5120ac_ext=c
5121ac_cpp='$CPP $CPPFLAGS'
5122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5124ac_compiler_gnu=$ac_cv_c_compiler_gnu
5125
5126depcc="$CC" am_compiler_list=
5127
5128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5129$as_echo_n "checking dependency style of $depcc... " >&6; }
5130if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5131 $as_echo_n "(cached) " >&6
5132else
5133 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5134 # We make a subdir and do the tests there. Otherwise we can end up
5135 # making bogus files that we don't know about and never remove. For
5136 # instance it was reported that on HP-UX the gcc test will end up
5137 # making a dummy file named `D' -- because `-MD' means `put the output
5138 # in D'.
5139 mkdir conftest.dir
5140 # Copy depcomp to subdir because otherwise we won't find it if we're
5141 # using a relative directory.
5142 cp "$am_depcomp" conftest.dir
5143 cd conftest.dir
5144 # We will build objects and dependencies in a subdirectory because
5145 # it helps to detect inapplicable dependency modes. For instance
5146 # both Tru64's cc and ICC support -MD to output dependencies as a
5147 # side effect of compilation, but ICC will put the dependencies in
5148 # the current directory while Tru64 will put them in the object
5149 # directory.
5150 mkdir sub
5151
5152 am_cv_CC_dependencies_compiler_type=none
5153 if test "$am_compiler_list" = ""; then
5154 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5155 fi
5156 am__universal=false
5157 case " $depcc " in #(
5158 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5159 esac
5160
5161 for depmode in $am_compiler_list; do
5162 # Setup a source with many dependencies, because some compilers
5163 # like to wrap large dependency lists on column 80 (with \), and
5164 # we should not choose a depcomp mode which is confused by this.
5165 #
5166 # We need to recreate these files for each test, as the compiler may
5167 # overwrite some of them when testing with obscure command lines.
5168 # This happens at least with the AIX C compiler.
5169 : > sub/conftest.c
5170 for i in 1 2 3 4 5 6; do
5171 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5172 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5173 # Solaris 8's {/usr,}/bin/sh.
5174 touch sub/conftst$i.h
5175 done
5176 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5177
5178 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5179 # mode. It turns out that the SunPro C++ compiler does not properly
5180 # handle `-M -o', and we need to detect this. Also, some Intel
5181 # versions had trouble with output in subdirs
5182 am__obj=sub/conftest.${OBJEXT-o}
5183 am__minus_obj="-o $am__obj"
5184 case $depmode in
5185 gcc)
5186 # This depmode causes a compiler race in universal mode.
5187 test "$am__universal" = false || continue
5188 ;;
5189 nosideeffect)
5190 # after this tag, mechanisms are not by side-effect, so they'll
5191 # only be used when explicitly requested
5192 if test "x$enable_dependency_tracking" = xyes; then
5193 continue
5194 else
5195 break
5196 fi
5197 ;;
5198 msvisualcpp | msvcmsys)
5199 # This compiler won't grok `-c -o', but also, the minuso test has
5200 # not run yet. These depmodes are late enough in the game, and
5201 # so weak that their functioning should not be impacted.
5202 am__obj=conftest.${OBJEXT-o}
5203 am__minus_obj=
5204 ;;
5205 none) break ;;
5206 esac
5207 if depmode=$depmode \
5208 source=sub/conftest.c object=$am__obj \
5209 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5210 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5211 >/dev/null 2>conftest.err &&
5212 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5213 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5214 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5215 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5216 # icc doesn't choke on unknown options, it will just issue warnings
5217 # or remarks (even with -Werror). So we grep stderr for any message
5218 # that says an option was ignored or not supported.
5219 # When given -MP, icc 7.0 and 7.1 complain thusly:
5220 # icc: Command line warning: ignoring option '-M'; no argument required
5221 # The diagnosis changed in icc 8.0:
5222 # icc: Command line remark: option '-MP' not supported
5223 if (grep 'ignoring option' conftest.err ||
5224 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5225 am_cv_CC_dependencies_compiler_type=$depmode
5226 break
5227 fi
5228 fi
5229 done
5230
5231 cd ..
5232 rm -rf conftest.dir
5233else
5234 am_cv_CC_dependencies_compiler_type=none
5235fi
5236
5237fi
5238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5239$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5240CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5241
5242 if
5243 test "x$enable_dependency_tracking" != xno \
5244 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5245 am__fastdepCC_TRUE=
5246 am__fastdepCC_FALSE='#'
5247else
5248 am__fastdepCC_TRUE='#'
5249 am__fastdepCC_FALSE=
5250fi
5251
5252
5253ac_ext=cpp
5254ac_cpp='$CXXCPP $CPPFLAGS'
5255ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5256ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5257ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5258if test -z "$CXX"; then
5259 if test -n "$CCC"; then
5260 CXX=$CCC
5261 else
5262 if test -n "$ac_tool_prefix"; then
5263 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5264 do
5265 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5266set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5268$as_echo_n "checking for $ac_word... " >&6; }
5269if test "${ac_cv_prog_CXX+set}" = set; then :
5270 $as_echo_n "(cached) " >&6
5271else
5272 if test -n "$CXX"; then
5273 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5274else
5275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276for as_dir in $PATH
5277do
5278 IFS=$as_save_IFS
5279 test -z "$as_dir" && as_dir=.
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5282 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5284 break 2
5285 fi
5286done
5287 done
5288IFS=$as_save_IFS
5289
5290fi
5291fi
5292CXX=$ac_cv_prog_CXX
5293if test -n "$CXX"; then
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5295$as_echo "$CXX" >&6; }
5296else
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5298$as_echo "no" >&6; }
5299fi
5300
5301
5302 test -n "$CXX" && break
5303 done
5304fi
5305if test -z "$CXX"; then
5306 ac_ct_CXX=$CXX
5307 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5308do
5309 # Extract the first word of "$ac_prog", so it can be a program name with args.
5310set dummy $ac_prog; ac_word=$2
5311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5312$as_echo_n "checking for $ac_word... " >&6; }
5313if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5314 $as_echo_n "(cached) " >&6
5315else
5316 if test -n "$ac_ct_CXX"; then
5317 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5318else
5319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320for as_dir in $PATH
5321do
5322 IFS=$as_save_IFS
5323 test -z "$as_dir" && as_dir=.
5324 for ac_exec_ext in '' $ac_executable_extensions; do
5325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5326 ac_cv_prog_ac_ct_CXX="$ac_prog"
5327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5328 break 2
5329 fi
5330done
5331 done
5332IFS=$as_save_IFS
5333
5334fi
5335fi
5336ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5337if test -n "$ac_ct_CXX"; then
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5339$as_echo "$ac_ct_CXX" >&6; }
5340else
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5342$as_echo "no" >&6; }
5343fi
5344
5345
5346 test -n "$ac_ct_CXX" && break
5347done
5348
5349 if test "x$ac_ct_CXX" = x; then
5350 CXX="g++"
5351 else
5352 case $cross_compiling:$ac_tool_warned in
5353yes:)
5354{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5355$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5356ac_tool_warned=yes ;;
5357esac
5358 CXX=$ac_ct_CXX
5359 fi
5360fi
5361
5362 fi
5363fi
5364# Provide some information about the compiler.
5365$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5366set X $ac_compile
5367ac_compiler=$2
5368for ac_option in --version -v -V -qversion; do
5369 { { ac_try="$ac_compiler $ac_option >&5"
5370case "(($ac_try" in
5371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5372 *) ac_try_echo=$ac_try;;
5373esac
5374eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5375$as_echo "$ac_try_echo"; } >&5
5376 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5377 ac_status=$?
5378 if test -s conftest.err; then
5379 sed '10a\
5380... rest of stderr output deleted ...
5381 10q' conftest.err >conftest.er1
5382 cat conftest.er1 >&5
5383 rm -f conftest.er1 conftest.err
5384 fi
5385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5386 test $ac_status = 0; }
5387done
5388
5389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5390$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5391if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5392 $as_echo_n "(cached) " >&6
5393else
5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395/* end confdefs.h. */
5396
5397int
5398main ()
5399{
5400#ifndef __GNUC__
5401 choke me
5402#endif
5403
5404 ;
5405 return 0;
5406}
5407_ACEOF
5408if ac_fn_cxx_try_compile "$LINENO"; then :
5409 ac_compiler_gnu=yes
5410else
5411 ac_compiler_gnu=no
5412fi
5413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5414ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5415
5416fi
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5418$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5419if test $ac_compiler_gnu = yes; then
5420 GXX=yes
5421else
5422 GXX=
5423fi
5424ac_test_CXXFLAGS=${CXXFLAGS+set}
5425ac_save_CXXFLAGS=$CXXFLAGS
5426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5427$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5428if test "${ac_cv_prog_cxx_g+set}" = set; then :
5429 $as_echo_n "(cached) " >&6
5430else
5431 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5432 ac_cxx_werror_flag=yes
5433 ac_cv_prog_cxx_g=no
5434 CXXFLAGS="-g"
5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436/* end confdefs.h. */
5437
5438int
5439main ()
5440{
5441
5442 ;
5443 return 0;
5444}
5445_ACEOF
5446if ac_fn_cxx_try_compile "$LINENO"; then :
5447 ac_cv_prog_cxx_g=yes
5448else
5449 CXXFLAGS=""
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451/* end confdefs.h. */
5452
5453int
5454main ()
5455{
5456
5457 ;
5458 return 0;
5459}
5460_ACEOF
5461if ac_fn_cxx_try_compile "$LINENO"; then :
5462
5463else
5464 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5465 CXXFLAGS="-g"
5466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467/* end confdefs.h. */
5468
5469int
5470main ()
5471{
5472
5473 ;
5474 return 0;
5475}
5476_ACEOF
5477if ac_fn_cxx_try_compile "$LINENO"; then :
5478 ac_cv_prog_cxx_g=yes
5479fi
5480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5481fi
5482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5483fi
5484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5485 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5486fi
5487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5488$as_echo "$ac_cv_prog_cxx_g" >&6; }
5489if test "$ac_test_CXXFLAGS" = set; then
5490 CXXFLAGS=$ac_save_CXXFLAGS
5491elif test $ac_cv_prog_cxx_g = yes; then
5492 if test "$GXX" = yes; then
5493 CXXFLAGS="-g -O2"
5494 else
5495 CXXFLAGS="-g"
5496 fi
5497else
5498 if test "$GXX" = yes; then
5499 CXXFLAGS="-O2"
5500 else
5501 CXXFLAGS=
5502 fi
5503fi
5504ac_ext=c
5505ac_cpp='$CPP $CPPFLAGS'
5506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5508ac_compiler_gnu=$ac_cv_c_compiler_gnu
5509
5510depcc="$CXX" am_compiler_list=
5511
5512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5513$as_echo_n "checking dependency style of $depcc... " >&6; }
5514if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5515 $as_echo_n "(cached) " >&6
5516else
5517 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5518 # We make a subdir and do the tests there. Otherwise we can end up
5519 # making bogus files that we don't know about and never remove. For
5520 # instance it was reported that on HP-UX the gcc test will end up
5521 # making a dummy file named `D' -- because `-MD' means `put the output
5522 # in D'.
5523 mkdir conftest.dir
5524 # Copy depcomp to subdir because otherwise we won't find it if we're
5525 # using a relative directory.
5526 cp "$am_depcomp" conftest.dir
5527 cd conftest.dir
5528 # We will build objects and dependencies in a subdirectory because
5529 # it helps to detect inapplicable dependency modes. For instance
5530 # both Tru64's cc and ICC support -MD to output dependencies as a
5531 # side effect of compilation, but ICC will put the dependencies in
5532 # the current directory while Tru64 will put them in the object
5533 # directory.
5534 mkdir sub
5535
5536 am_cv_CXX_dependencies_compiler_type=none
5537 if test "$am_compiler_list" = ""; then
5538 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5539 fi
5540 am__universal=false
5541 case " $depcc " in #(
5542 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5543 esac
5544
5545 for depmode in $am_compiler_list; do
5546 # Setup a source with many dependencies, because some compilers
5547 # like to wrap large dependency lists on column 80 (with \), and
5548 # we should not choose a depcomp mode which is confused by this.
5549 #
5550 # We need to recreate these files for each test, as the compiler may
5551 # overwrite some of them when testing with obscure command lines.
5552 # This happens at least with the AIX C compiler.
5553 : > sub/conftest.c
5554 for i in 1 2 3 4 5 6; do
5555 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5556 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5557 # Solaris 8's {/usr,}/bin/sh.
5558 touch sub/conftst$i.h
5559 done
5560 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5561
5562 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5563 # mode. It turns out that the SunPro C++ compiler does not properly
5564 # handle `-M -o', and we need to detect this. Also, some Intel
5565 # versions had trouble with output in subdirs
5566 am__obj=sub/conftest.${OBJEXT-o}
5567 am__minus_obj="-o $am__obj"
5568 case $depmode in
5569 gcc)
5570 # This depmode causes a compiler race in universal mode.
5571 test "$am__universal" = false || continue
5572 ;;
5573 nosideeffect)
5574 # after this tag, mechanisms are not by side-effect, so they'll
5575 # only be used when explicitly requested
5576 if test "x$enable_dependency_tracking" = xyes; then
5577 continue
5578 else
5579 break
5580 fi
5581 ;;
5582 msvisualcpp | msvcmsys)
5583 # This compiler won't grok `-c -o', but also, the minuso test has
5584 # not run yet. These depmodes are late enough in the game, and
5585 # so weak that their functioning should not be impacted.
5586 am__obj=conftest.${OBJEXT-o}
5587 am__minus_obj=
5588 ;;
5589 none) break ;;
5590 esac
5591 if depmode=$depmode \
5592 source=sub/conftest.c object=$am__obj \
5593 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5594 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5595 >/dev/null 2>conftest.err &&
5596 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5597 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5598 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5599 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5600 # icc doesn't choke on unknown options, it will just issue warnings
5601 # or remarks (even with -Werror). So we grep stderr for any message
5602 # that says an option was ignored or not supported.
5603 # When given -MP, icc 7.0 and 7.1 complain thusly:
5604 # icc: Command line warning: ignoring option '-M'; no argument required
5605 # The diagnosis changed in icc 8.0:
5606 # icc: Command line remark: option '-MP' not supported
5607 if (grep 'ignoring option' conftest.err ||
5608 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5609 am_cv_CXX_dependencies_compiler_type=$depmode
5610 break
5611 fi
5612 fi
5613 done
5614
5615 cd ..
5616 rm -rf conftest.dir
5617else
5618 am_cv_CXX_dependencies_compiler_type=none
5619fi
5620
5621fi
5622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5623$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5624CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5625
5626 if
5627 test "x$enable_dependency_tracking" != xno \
5628 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5629 am__fastdepCXX_TRUE=
5630 am__fastdepCXX_FALSE='#'
5631else
5632 am__fastdepCXX_TRUE='#'
5633 am__fastdepCXX_FALSE=
5634fi
5635
5636
5637
5638
5639if test "x$CC" != xcc; then
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5641$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5642else
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5644$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5645fi
5646set dummy $CC; ac_cc=`$as_echo "$2" |
5647 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5648if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5649 $as_echo_n "(cached) " >&6
5650else
5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652/* end confdefs.h. */
5653
5654int
5655main ()
5656{
5657
5658 ;
5659 return 0;
5660}
5661_ACEOF
5662# Make sure it works both with $CC and with simple cc.
5663# We do the test twice because some compilers refuse to overwrite an
5664# existing .o file with -o, though they will create one.
5665ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5666rm -f conftest2.*
5667if { { case "(($ac_try" in
5668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5670esac
5671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5672$as_echo "$ac_try_echo"; } >&5
5673 (eval "$ac_try") 2>&5
5674 ac_status=$?
5675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5676 test $ac_status = 0; } &&
5677 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679 *) ac_try_echo=$ac_try;;
5680esac
5681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5682$as_echo "$ac_try_echo"; } >&5
5683 (eval "$ac_try") 2>&5
5684 ac_status=$?
5685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5686 test $ac_status = 0; };
5687then
5688 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5689 if test "x$CC" != xcc; then
5690 # Test first that cc exists at all.
5691 if { ac_try='cc -c conftest.$ac_ext >&5'
5692 { { case "(($ac_try" in
5693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694 *) ac_try_echo=$ac_try;;
5695esac
5696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5697$as_echo "$ac_try_echo"; } >&5
5698 (eval "$ac_try") 2>&5
5699 ac_status=$?
5700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5701 test $ac_status = 0; }; }; then
5702 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5703 rm -f conftest2.*
5704 if { { case "(($ac_try" in
5705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706 *) ac_try_echo=$ac_try;;
5707esac
5708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5709$as_echo "$ac_try_echo"; } >&5
5710 (eval "$ac_try") 2>&5
5711 ac_status=$?
5712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5713 test $ac_status = 0; } &&
5714 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716 *) ac_try_echo=$ac_try;;
5717esac
5718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5719$as_echo "$ac_try_echo"; } >&5
5720 (eval "$ac_try") 2>&5
5721 ac_status=$?
5722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5723 test $ac_status = 0; };
5724 then
5725 # cc works too.
5726 :
5727 else
5728 # cc exists but doesn't like -o.
5729 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5730 fi
5731 fi
5732 fi
5733else
5734 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5735fi
5736rm -f core conftest*
5737
5738fi
5739if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5741$as_echo "yes" >&6; }
5742else
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5744$as_echo "no" >&6; }
5745
5746$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5747
5748fi
5749
5750# FIXME: we rely on the cache variable name because
5751# there is no other way.
5752set dummy $CC
5753am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5754eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5755if test "$am_t" != yes; then
5756 # Losing compiler, so override with the script.
5757 # FIXME: It is wrong to rewrite CC.
5758 # But if we don't then we get into trouble of one sort or another.
5759 # A longer-term fix would be to have automake use am__CC in this case,
5760 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5761 CC="$am_aux_dir/compile $CC"
5762fi
5763
5764
5765
5766
5767
5768
5769# Newer automakes demand CCAS and CCASFLAGS.
5770: ${CCAS='$(CC)'}
5771: ${CCASFLAGS='$(CFLAGS)'}
5772
5773
5774
5775if test -n "$ac_tool_prefix"; then
5776 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5777set dummy ${ac_tool_prefix}as; ac_word=$2
5778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5779$as_echo_n "checking for $ac_word... " >&6; }
5780if test "${ac_cv_prog_AS+set}" = set; then :
5781 $as_echo_n "(cached) " >&6
5782else
5783 if test -n "$AS"; then
5784 ac_cv_prog_AS="$AS" # Let the user override the test.
5785else
5786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787for as_dir in $PATH
5788do
5789 IFS=$as_save_IFS
5790 test -z "$as_dir" && as_dir=.
5791 for ac_exec_ext in '' $ac_executable_extensions; do
5792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5793 ac_cv_prog_AS="${ac_tool_prefix}as"
5794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5795 break 2
5796 fi
5797done
5798 done
5799IFS=$as_save_IFS
5800
5801fi
5802fi
5803AS=$ac_cv_prog_AS
5804if test -n "$AS"; then
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5806$as_echo "$AS" >&6; }
5807else
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5809$as_echo "no" >&6; }
5810fi
5811
5812
5813fi
5814if test -z "$ac_cv_prog_AS"; then
5815 ac_ct_AS=$AS
5816 # Extract the first word of "as", so it can be a program name with args.
5817set dummy as; ac_word=$2
5818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5819$as_echo_n "checking for $ac_word... " >&6; }
5820if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5821 $as_echo_n "(cached) " >&6
5822else
5823 if test -n "$ac_ct_AS"; then
5824 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5825else
5826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5827for as_dir in $PATH
5828do
5829 IFS=$as_save_IFS
5830 test -z "$as_dir" && as_dir=.
5831 for ac_exec_ext in '' $ac_executable_extensions; do
5832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5833 ac_cv_prog_ac_ct_AS="as"
5834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5835 break 2
5836 fi
5837done
5838 done
5839IFS=$as_save_IFS
5840
5841fi
5842fi
5843ac_ct_AS=$ac_cv_prog_ac_ct_AS
5844if test -n "$ac_ct_AS"; then
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5846$as_echo "$ac_ct_AS" >&6; }
5847else
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5849$as_echo "no" >&6; }
5850fi
5851
5852 if test "x$ac_ct_AS" = x; then
5853 AS=""
5854 else
5855 case $cross_compiling:$ac_tool_warned in
5856yes:)
5857{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5858$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5859ac_tool_warned=yes ;;
5860esac
5861 AS=$ac_ct_AS
5862 fi
5863else
5864 AS="$ac_cv_prog_AS"
5865fi
5866
5867if test -n "$ac_tool_prefix"; then
5868 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5869set dummy ${ac_tool_prefix}ar; ac_word=$2
5870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5871$as_echo_n "checking for $ac_word... " >&6; }
5872if test "${ac_cv_prog_AR+set}" = set; then :
5873 $as_echo_n "(cached) " >&6
5874else
5875 if test -n "$AR"; then
5876 ac_cv_prog_AR="$AR" # Let the user override the test.
5877else
5878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879for as_dir in $PATH
5880do
5881 IFS=$as_save_IFS
5882 test -z "$as_dir" && as_dir=.
5883 for ac_exec_ext in '' $ac_executable_extensions; do
5884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5885 ac_cv_prog_AR="${ac_tool_prefix}ar"
5886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5887 break 2
5888 fi
5889done
5890 done
5891IFS=$as_save_IFS
5892
5893fi
5894fi
5895AR=$ac_cv_prog_AR
5896if test -n "$AR"; then
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5898$as_echo "$AR" >&6; }
5899else
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901$as_echo "no" >&6; }
5902fi
5903
5904
5905fi
5906if test -z "$ac_cv_prog_AR"; then
5907 ac_ct_AR=$AR
5908 # Extract the first word of "ar", so it can be a program name with args.
5909set dummy ar; ac_word=$2
5910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5911$as_echo_n "checking for $ac_word... " >&6; }
5912if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5913 $as_echo_n "(cached) " >&6
5914else
5915 if test -n "$ac_ct_AR"; then
5916 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5917else
5918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919for as_dir in $PATH
5920do
5921 IFS=$as_save_IFS
5922 test -z "$as_dir" && as_dir=.
5923 for ac_exec_ext in '' $ac_executable_extensions; do
5924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5925 ac_cv_prog_ac_ct_AR="ar"
5926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5927 break 2
5928 fi
5929done
5930 done
5931IFS=$as_save_IFS
5932
5933fi
5934fi
5935ac_ct_AR=$ac_cv_prog_ac_ct_AR
5936if test -n "$ac_ct_AR"; then
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5938$as_echo "$ac_ct_AR" >&6; }
5939else
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5941$as_echo "no" >&6; }
5942fi
5943
5944 if test "x$ac_ct_AR" = x; then
5945 AR=""
5946 else
5947 case $cross_compiling:$ac_tool_warned in
5948yes:)
5949{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5950$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5951ac_tool_warned=yes ;;
5952esac
5953 AR=$ac_ct_AR
5954 fi
5955else
5956 AR="$ac_cv_prog_AR"
5957fi
5958
5959if test -n "$ac_tool_prefix"; then
5960 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5961set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5963$as_echo_n "checking for $ac_word... " >&6; }
5964if test "${ac_cv_prog_RANLIB+set}" = set; then :
5965 $as_echo_n "(cached) " >&6
5966else
5967 if test -n "$RANLIB"; then
5968 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5969else
5970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971for as_dir in $PATH
5972do
5973 IFS=$as_save_IFS
5974 test -z "$as_dir" && as_dir=.
5975 for ac_exec_ext in '' $ac_executable_extensions; do
5976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5977 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5979 break 2
5980 fi
5981done
5982 done
5983IFS=$as_save_IFS
5984
5985fi
5986fi
5987RANLIB=$ac_cv_prog_RANLIB
5988if test -n "$RANLIB"; then
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5990$as_echo "$RANLIB" >&6; }
5991else
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5993$as_echo "no" >&6; }
5994fi
5995
5996
5997fi
5998if test -z "$ac_cv_prog_RANLIB"; then
5999 ac_ct_RANLIB=$RANLIB
6000 # Extract the first word of "ranlib", so it can be a program name with args.
6001set dummy ranlib; ac_word=$2
6002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6003$as_echo_n "checking for $ac_word... " >&6; }
6004if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6005 $as_echo_n "(cached) " >&6
6006else
6007 if test -n "$ac_ct_RANLIB"; then
6008 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6009else
6010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011for as_dir in $PATH
6012do
6013 IFS=$as_save_IFS
6014 test -z "$as_dir" && as_dir=.
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6017 ac_cv_prog_ac_ct_RANLIB="ranlib"
6018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6019 break 2
6020 fi
6021done
6022 done
6023IFS=$as_save_IFS
6024
6025fi
6026fi
6027ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6028if test -n "$ac_ct_RANLIB"; then
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6030$as_echo "$ac_ct_RANLIB" >&6; }
6031else
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033$as_echo "no" >&6; }
6034fi
6035
6036 if test "x$ac_ct_RANLIB" = x; then
6037 RANLIB=":"
6038 else
6039 case $cross_compiling:$ac_tool_warned in
6040yes:)
6041{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6042$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6043ac_tool_warned=yes ;;
6044esac
6045 RANLIB=$ac_ct_RANLIB
6046 fi
6047else
6048 RANLIB="$ac_cv_prog_RANLIB"
6049fi
6050
6051
6052# Configure libtool
6053enable_dlopen=yes
6054
6055
6056
6057case `pwd` in
6058 *\ * | *\ *)
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6060$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2077db1b
CT
6061esac
6062
6063
6064
6065macro_version='2.2.7a'
6066macro_revision='1.3134'
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080ltmain="$ac_aux_dir/ltmain.sh"
6081
6082# Backslashify metacharacters that are still active within
6083# double-quoted strings.
6084sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6085
6086# Same as above, but do not quote variable references.
6087double_quote_subst='s/\(["`\\]\)/\\\1/g'
6088
6089# Sed substitution to delay expansion of an escaped shell variable in a
6090# double_quote_subst'ed string.
6091delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6092
6093# Sed substitution to delay expansion of an escaped single quote.
6094delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6095
6096# Sed substitution to avoid accidental globbing in evaled expressions
6097no_glob_subst='s/\*/\\\*/g'
6098
6099ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6100ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6101ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6102
6103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6104$as_echo_n "checking how to print strings... " >&6; }
6105# Test print first, because it will be a builtin if present.
6106if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6107 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6108 ECHO='print -r --'
6109elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6110 ECHO='printf %s\n'
6111else
6112 # Use this function as a fallback that always works.
6113 func_fallback_echo ()
6114 {
6115 eval 'cat <<_LTECHO_EOF
6116$1
6117_LTECHO_EOF'
6118 }
6119 ECHO='func_fallback_echo'
6120fi
6121
6122# func_echo_all arg...
6123# Invoke $ECHO with all args, space-separated.
6124func_echo_all ()
6125{
6126 $ECHO ""
6127}
6128
6129case "$ECHO" in
6130 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6131$as_echo "printf" >&6; } ;;
6132 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6133$as_echo "print -r" >&6; } ;;
6134 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6135$as_echo "cat" >&6; } ;;
6136esac
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6152$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6153if test "${ac_cv_path_SED+set}" = set; then :
6154 $as_echo_n "(cached) " >&6
6155else
8bc16536
CT
6156 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6157 for ac_i in 1 2 3 4 5 6 7; do
6158 ac_script="$ac_script$as_nl$ac_script"
6159 done
6160 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6161 { ac_script=; unset ac_script;}
6162 if test -z "$SED"; then
6163 ac_path_SED_found=false
2077db1b
CT
6164 # Loop through the user's path and test for each of PROGNAME-LIST
6165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8bc16536 6166for as_dir in $PATH
2077db1b
CT
6167do
6168 IFS=$as_save_IFS
6169 test -z "$as_dir" && as_dir=.
8bc16536 6170 for ac_prog in sed gsed; do
2077db1b 6171 for ac_exec_ext in '' $ac_executable_extensions; do
8bc16536
CT
6172 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6173 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6174# Check for GNU ac_path_SED and select it if it is found.
6175 # Check for GNU $ac_path_SED
6176case `"$ac_path_SED" --version 2>&1` in
2077db1b 6177*GNU*)
8bc16536 6178 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2077db1b
CT
6179*)
6180 ac_count=0
6181 $as_echo_n 0123456789 >"conftest.in"
6182 while :
6183 do
6184 cat "conftest.in" "conftest.in" >"conftest.tmp"
6185 mv "conftest.tmp" "conftest.in"
6186 cp "conftest.in" "conftest.nl"
8bc16536
CT
6187 $as_echo '' >> "conftest.nl"
6188 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2077db1b
CT
6189 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6190 as_fn_arith $ac_count + 1 && ac_count=$as_val
8bc16536 6191 if test $ac_count -gt ${ac_path_SED_max-0}; then
2077db1b 6192 # Best one so far, save it but keep looking for a better one
8bc16536
CT
6193 ac_cv_path_SED="$ac_path_SED"
6194 ac_path_SED_max=$ac_count
2077db1b
CT
6195 fi
6196 # 10*(2^10) chars as input seems more than enough
6197 test $ac_count -gt 10 && break
6198 done
6199 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6200esac
6201
8bc16536 6202 $ac_path_SED_found && break 3
2077db1b
CT
6203 done
6204 done
6205 done
6206IFS=$as_save_IFS
8bc16536
CT
6207 if test -z "$ac_cv_path_SED"; then
6208 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2077db1b
CT
6209 fi
6210else
8bc16536 6211 ac_cv_path_SED=$SED
2077db1b
CT
6212fi
6213
2077db1b 6214fi
8bc16536
CT
6215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6216$as_echo "$ac_cv_path_SED" >&6; }
6217 SED="$ac_cv_path_SED"
6218 rm -f conftest.sed
6219
6220test -z "$SED" && SED=sed
6221Xsed="$SED -e 1s/^X//"
6222
6223
6224
6225
6226
6227
6228
6229
6230
2077db1b
CT
6231
6232
6233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6234$as_echo_n "checking for fgrep... " >&6; }
6235if test "${ac_cv_path_FGREP+set}" = set; then :
6236 $as_echo_n "(cached) " >&6
6237else
6238 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6239 then ac_cv_path_FGREP="$GREP -F"
6240 else
6241 if test -z "$FGREP"; then
6242 ac_path_FGREP_found=false
6243 # Loop through the user's path and test for each of PROGNAME-LIST
6244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6246do
6247 IFS=$as_save_IFS
6248 test -z "$as_dir" && as_dir=.
6249 for ac_prog in fgrep; do
6250 for ac_exec_ext in '' $ac_executable_extensions; do
6251 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6252 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6253# Check for GNU ac_path_FGREP and select it if it is found.
6254 # Check for GNU $ac_path_FGREP
6255case `"$ac_path_FGREP" --version 2>&1` in
6256*GNU*)
6257 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6258*)
6259 ac_count=0
6260 $as_echo_n 0123456789 >"conftest.in"
6261 while :
6262 do
6263 cat "conftest.in" "conftest.in" >"conftest.tmp"
6264 mv "conftest.tmp" "conftest.in"
6265 cp "conftest.in" "conftest.nl"
6266 $as_echo 'FGREP' >> "conftest.nl"
6267 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6268 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6269 as_fn_arith $ac_count + 1 && ac_count=$as_val
6270 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6271 # Best one so far, save it but keep looking for a better one
6272 ac_cv_path_FGREP="$ac_path_FGREP"
6273 ac_path_FGREP_max=$ac_count
6274 fi
6275 # 10*(2^10) chars as input seems more than enough
6276 test $ac_count -gt 10 && break
6277 done
6278 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6279esac
6280
6281 $ac_path_FGREP_found && break 3
6282 done
6283 done
6284 done
6285IFS=$as_save_IFS
6286 if test -z "$ac_cv_path_FGREP"; then
6287 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6288 fi
6289else
6290 ac_cv_path_FGREP=$FGREP
6291fi
6292
6293 fi
6294fi
6295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6296$as_echo "$ac_cv_path_FGREP" >&6; }
6297 FGREP="$ac_cv_path_FGREP"
6298
6299
6300test -z "$GREP" && GREP=grep
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320# Check whether --with-gnu-ld was given.
6321if test "${with_gnu_ld+set}" = set; then :
6322 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6323else
6324 with_gnu_ld=no
6325fi
6326
6327ac_prog=ld
6328if test "$GCC" = yes; then
6329 # Check if gcc -print-prog-name=ld gives a path.
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6331$as_echo_n "checking for ld used by $CC... " >&6; }
6332 case $host in
6333 *-*-mingw*)
6334 # gcc leaves a trailing carriage return which upsets mingw
6335 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6336 *)
6337 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6338 esac
6339 case $ac_prog in
6340 # Accept absolute paths.
6341 [\\/]* | ?:[\\/]*)
6342 re_direlt='/[^/][^/]*/\.\./'
6343 # Canonicalize the pathname of ld
6344 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6345 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6346 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6347 done
6348 test -z "$LD" && LD="$ac_prog"
6349 ;;
6350 "")
6351 # If it fails, then pretend we aren't using GCC.
6352 ac_prog=ld
6353 ;;
6354 *)
6355 # If it is relative, then search for the first ld in PATH.
6356 with_gnu_ld=unknown
6357 ;;
6358 esac
6359elif test "$with_gnu_ld" = yes; then
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6361$as_echo_n "checking for GNU ld... " >&6; }
6362else
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6364$as_echo_n "checking for non-GNU ld... " >&6; }
6365fi
6366if test "${lt_cv_path_LD+set}" = set; then :
6367 $as_echo_n "(cached) " >&6
6368else
6369 if test -z "$LD"; then
6370 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6371 for ac_dir in $PATH; do
6372 IFS="$lt_save_ifs"
6373 test -z "$ac_dir" && ac_dir=.
6374 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6375 lt_cv_path_LD="$ac_dir/$ac_prog"
6376 # Check to see if the program is GNU ld. I'd rather use --version,
6377 # but apparently some variants of GNU ld only accept -v.
6378 # Break only if it was the GNU/non-GNU ld that we prefer.
6379 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6380 *GNU* | *'with BFD'*)
6381 test "$with_gnu_ld" != no && break
6382 ;;
6383 *)
6384 test "$with_gnu_ld" != yes && break
6385 ;;
6386 esac
6387 fi
6388 done
6389 IFS="$lt_save_ifs"
6390else
6391 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6392fi
6393fi
6394
6395LD="$lt_cv_path_LD"
6396if test -n "$LD"; then
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6398$as_echo "$LD" >&6; }
6399else
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6401$as_echo "no" >&6; }
6402fi
6403test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6405$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6406if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6407 $as_echo_n "(cached) " >&6
6408else
6409 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6410case `$LD -v 2>&1 </dev/null` in
6411*GNU* | *'with BFD'*)
6412 lt_cv_prog_gnu_ld=yes
6413 ;;
6414*)
6415 lt_cv_prog_gnu_ld=no
6416 ;;
6417esac
6418fi
6419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6420$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6421with_gnu_ld=$lt_cv_prog_gnu_ld
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6432$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6433if test "${lt_cv_path_NM+set}" = set; then :
6434 $as_echo_n "(cached) " >&6
6435else
6436 if test -n "$NM"; then
6437 # Let the user override the test.
6438 lt_cv_path_NM="$NM"
6439else
6440 lt_nm_to_check="${ac_tool_prefix}nm"
6441 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6442 lt_nm_to_check="$lt_nm_to_check nm"
6443 fi
6444 for lt_tmp_nm in $lt_nm_to_check; do
6445 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6446 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6447 IFS="$lt_save_ifs"
6448 test -z "$ac_dir" && ac_dir=.
6449 tmp_nm="$ac_dir/$lt_tmp_nm"
6450 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6451 # Check to see if the nm accepts a BSD-compat flag.
6452 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6453 # nm: unknown option "B" ignored
6454 # Tru64's nm complains that /dev/null is an invalid object file
6455 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6456 */dev/null* | *'Invalid file or object type'*)
6457 lt_cv_path_NM="$tmp_nm -B"
6458 break
6459 ;;
6460 *)
6461 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6462 */dev/null*)
6463 lt_cv_path_NM="$tmp_nm -p"
6464 break
6465 ;;
6466 *)
6467 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6468 continue # so that we can try to find one that supports BSD flags
6469 ;;
6470 esac
6471 ;;
6472 esac
6473 fi
6474 done
6475 IFS="$lt_save_ifs"
6476 done
6477 : ${lt_cv_path_NM=no}
6478fi
6479fi
6480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6481$as_echo "$lt_cv_path_NM" >&6; }
6482if test "$lt_cv_path_NM" != "no"; then
6483 NM="$lt_cv_path_NM"
6484else
6485 # Didn't find any BSD compatible name lister, look for dumpbin.
6486 if test -n "$DUMPBIN"; then :
6487 # Let the user override the test.
6488 else
6489 if test -n "$ac_tool_prefix"; then
6490 for ac_prog in dumpbin "link -dump"
6491 do
6492 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6493set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6495$as_echo_n "checking for $ac_word... " >&6; }
6496if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6497 $as_echo_n "(cached) " >&6
6498else
6499 if test -n "$DUMPBIN"; then
6500 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6501else
6502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503for as_dir in $PATH
6504do
6505 IFS=$as_save_IFS
6506 test -z "$as_dir" && as_dir=.
6507 for ac_exec_ext in '' $ac_executable_extensions; do
6508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6509 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6511 break 2
6512 fi
6513done
6514 done
6515IFS=$as_save_IFS
6516
6517fi
6518fi
6519DUMPBIN=$ac_cv_prog_DUMPBIN
6520if test -n "$DUMPBIN"; then
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6522$as_echo "$DUMPBIN" >&6; }
6523else
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6525$as_echo "no" >&6; }
6526fi
6527
6528
6529 test -n "$DUMPBIN" && break
6530 done
6531fi
6532if test -z "$DUMPBIN"; then
6533 ac_ct_DUMPBIN=$DUMPBIN
6534 for ac_prog in dumpbin "link -dump"
6535do
6536 # Extract the first word of "$ac_prog", so it can be a program name with args.
6537set dummy $ac_prog; ac_word=$2
6538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6539$as_echo_n "checking for $ac_word... " >&6; }
6540if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6541 $as_echo_n "(cached) " >&6
6542else
6543 if test -n "$ac_ct_DUMPBIN"; then
6544 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6545else
6546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547for as_dir in $PATH
6548do
6549 IFS=$as_save_IFS
6550 test -z "$as_dir" && as_dir=.
6551 for ac_exec_ext in '' $ac_executable_extensions; do
6552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6553 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6555 break 2
6556 fi
6557done
6558 done
6559IFS=$as_save_IFS
6560
6561fi
6562fi
6563ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6564if test -n "$ac_ct_DUMPBIN"; then
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6566$as_echo "$ac_ct_DUMPBIN" >&6; }
6567else
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6569$as_echo "no" >&6; }
6570fi
6571
6572
6573 test -n "$ac_ct_DUMPBIN" && break
6574done
6575
6576 if test "x$ac_ct_DUMPBIN" = x; then
6577 DUMPBIN=":"
6578 else
6579 case $cross_compiling:$ac_tool_warned in
6580yes:)
6581{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6582$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6583ac_tool_warned=yes ;;
6584esac
6585 DUMPBIN=$ac_ct_DUMPBIN
6586 fi
6587fi
6588
6589 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6590 *COFF*)
6591 DUMPBIN="$DUMPBIN -symbols"
6592 ;;
6593 *)
6594 DUMPBIN=:
6595 ;;
6596 esac
6597 fi
6598
6599 if test "$DUMPBIN" != ":"; then
6600 NM="$DUMPBIN"
6601 fi
6602fi
6603test -z "$NM" && NM=nm
6604
6605
6606
6607
6608
6609
6610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6611$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6612if test "${lt_cv_nm_interface+set}" = set; then :
6613 $as_echo_n "(cached) " >&6
6614else
6615 lt_cv_nm_interface="BSD nm"
6616 echo "int some_variable = 0;" > conftest.$ac_ext
6617 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6618 (eval "$ac_compile" 2>conftest.err)
6619 cat conftest.err >&5
6620 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6621 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6622 cat conftest.err >&5
6623 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6624 cat conftest.out >&5
6625 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6626 lt_cv_nm_interface="MS dumpbin"
6627 fi
6628 rm -f conftest*
6629fi
6630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6631$as_echo "$lt_cv_nm_interface" >&6; }
6632
6633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6634$as_echo_n "checking whether ln -s works... " >&6; }
6635LN_S=$as_ln_s
6636if test "$LN_S" = "ln -s"; then
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6638$as_echo "yes" >&6; }
6639else
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6641$as_echo "no, using $LN_S" >&6; }
6642fi
6643
6644# find the maximum length of command line arguments
6645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6646$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6647if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6648 $as_echo_n "(cached) " >&6
6649else
6650 i=0
6651 teststring="ABCD"
6652
6653 case $build_os in
6654 msdosdjgpp*)
6655 # On DJGPP, this test can blow up pretty badly due to problems in libc
6656 # (any single argument exceeding 2000 bytes causes a buffer overrun
6657 # during glob expansion). Even if it were fixed, the result of this
6658 # check would be larger than it should be.
6659 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6660 ;;
6661
6662 gnu*)
6663 # Under GNU Hurd, this test is not required because there is
6664 # no limit to the length of command line arguments.
6665 # Libtool will interpret -1 as no limit whatsoever
6666 lt_cv_sys_max_cmd_len=-1;
6667 ;;
6668
6669 cygwin* | mingw* | cegcc*)
6670 # On Win9x/ME, this test blows up -- it succeeds, but takes
6671 # about 5 minutes as the teststring grows exponentially.
6672 # Worse, since 9x/ME are not pre-emptively multitasking,
6673 # you end up with a "frozen" computer, even though with patience
6674 # the test eventually succeeds (with a max line length of 256k).
6675 # Instead, let's just punt: use the minimum linelength reported by
6676 # all of the supported platforms: 8192 (on NT/2K/XP).
6677 lt_cv_sys_max_cmd_len=8192;
6678 ;;
6679
6680 mint*)
6681 # On MiNT this can take a long time and run out of memory.
6682 lt_cv_sys_max_cmd_len=8192;
6683 ;;
6684
6685 amigaos*)
6686 # On AmigaOS with pdksh, this test takes hours, literally.
6687 # So we just punt and use a minimum line length of 8192.
6688 lt_cv_sys_max_cmd_len=8192;
6689 ;;
6690
6691 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6692 # This has been around since 386BSD, at least. Likely further.
6693 if test -x /sbin/sysctl; then
6694 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6695 elif test -x /usr/sbin/sysctl; then
6696 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6697 else
6698 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6699 fi
6700 # And add a safety zone
6701 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6702 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6703 ;;
6704
6705 interix*)
6706 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6707 lt_cv_sys_max_cmd_len=196608
6708 ;;
6709
6710 osf*)
6711 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6712 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6713 # nice to cause kernel panics so lets avoid the loop below.
6714 # First set a reasonable default.
6715 lt_cv_sys_max_cmd_len=16384
6716 #
6717 if test -x /sbin/sysconfig; then
6718 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6719 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6720 esac
6721 fi
6722 ;;
6723 sco3.2v5*)
6724 lt_cv_sys_max_cmd_len=102400
6725 ;;
6726 sysv5* | sco5v6* | sysv4.2uw2*)
6727 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6728 if test -n "$kargmax"; then
6729 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6730 else
6731 lt_cv_sys_max_cmd_len=32768
6732 fi
6733 ;;
6734 *)
6735 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6736 if test -n "$lt_cv_sys_max_cmd_len"; then
6737 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6738 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6739 else
6740 # Make teststring a little bigger before we do anything with it.
6741 # a 1K string should be a reasonable start.
6742 for i in 1 2 3 4 5 6 7 8 ; do
6743 teststring=$teststring$teststring
6744 done
6745 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6746 # If test is not a shell built-in, we'll probably end up computing a
6747 # maximum length that is only half of the actual maximum length, but
6748 # we can't tell.
6749 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6750 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6751 test $i != 17 # 1/2 MB should be enough
6752 do
6753 i=`expr $i + 1`
6754 teststring=$teststring$teststring
6755 done
6756 # Only check the string length outside the loop.
6757 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6758 teststring=
6759 # Add a significant safety factor because C++ compilers can tack on
6760 # massive amounts of additional arguments before passing them to the
6761 # linker. It appears as though 1/2 is a usable value.
6762 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6763 fi
6764 ;;
6765 esac
6766
6767fi
6768
6769if test -n $lt_cv_sys_max_cmd_len ; then
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6771$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6772else
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6774$as_echo "none" >&6; }
6775fi
6776max_cmd_len=$lt_cv_sys_max_cmd_len
6777
6778
6779
6780
6781
6782
6783: ${CP="cp -f"}
6784: ${MV="mv -f"}
6785: ${RM="rm -f"}
6786
6787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6788$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6789# Try some XSI features
6790xsi_shell=no
6791( _lt_dummy="a/b/c"
6792 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6793 = c,a/b,, \
6794 && eval 'test $(( 1 + 1 )) -eq 2 \
6795 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6796 && xsi_shell=yes
6797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6798$as_echo "$xsi_shell" >&6; }
6799
6800
6801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6802$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6803lt_shell_append=no
6804( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6805 >/dev/null 2>&1 \
6806 && lt_shell_append=yes
6807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6808$as_echo "$lt_shell_append" >&6; }
6809
6810
6811if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6812 lt_unset=unset
6813else
6814 lt_unset=false
6815fi
6816
6817
6818
6819
6820
6821# test EBCDIC or ASCII
6822case `echo X|tr X '\101'` in
6823 A) # ASCII based system
6824 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6825 lt_SP2NL='tr \040 \012'
6826 lt_NL2SP='tr \015\012 \040\040'
6827 ;;
6828 *) # EBCDIC based system
6829 lt_SP2NL='tr \100 \n'
6830 lt_NL2SP='tr \r\n \100\100'
6831 ;;
6832esac
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6843$as_echo_n "checking for $LD option to reload object files... " >&6; }
6844if test "${lt_cv_ld_reload_flag+set}" = set; then :
6845 $as_echo_n "(cached) " >&6
6846else
6847 lt_cv_ld_reload_flag='-r'
6848fi
6849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6850$as_echo "$lt_cv_ld_reload_flag" >&6; }
6851reload_flag=$lt_cv_ld_reload_flag
6852case $reload_flag in
6853"" | " "*) ;;
6854*) reload_flag=" $reload_flag" ;;
6855esac
6856reload_cmds='$LD$reload_flag -o $output$reload_objs'
6857case $host_os in
6858 darwin*)
6859 if test "$GCC" = yes; then
6860 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6861 else
6862 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6863 fi
6864 ;;
6865esac
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875if test -n "$ac_tool_prefix"; then
6876 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6877set dummy ${ac_tool_prefix}objdump; ac_word=$2
6878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6879$as_echo_n "checking for $ac_word... " >&6; }
6880if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6881 $as_echo_n "(cached) " >&6
6882else
6883 if test -n "$OBJDUMP"; then
6884 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6885else
6886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887for as_dir in $PATH
6888do
6889 IFS=$as_save_IFS
6890 test -z "$as_dir" && as_dir=.
6891 for ac_exec_ext in '' $ac_executable_extensions; do
6892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6893 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6895 break 2
6896 fi
6897done
6898 done
6899IFS=$as_save_IFS
6900
6901fi
6902fi
6903OBJDUMP=$ac_cv_prog_OBJDUMP
6904if test -n "$OBJDUMP"; then
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6906$as_echo "$OBJDUMP" >&6; }
6907else
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909$as_echo "no" >&6; }
6910fi
6911
6912
6913fi
6914if test -z "$ac_cv_prog_OBJDUMP"; then
6915 ac_ct_OBJDUMP=$OBJDUMP
6916 # Extract the first word of "objdump", so it can be a program name with args.
6917set dummy objdump; ac_word=$2
6918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6919$as_echo_n "checking for $ac_word... " >&6; }
6920if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6921 $as_echo_n "(cached) " >&6
6922else
6923 if test -n "$ac_ct_OBJDUMP"; then
6924 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6925else
6926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927for as_dir in $PATH
6928do
6929 IFS=$as_save_IFS
6930 test -z "$as_dir" && as_dir=.
6931 for ac_exec_ext in '' $ac_executable_extensions; do
6932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6933 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6935 break 2
6936 fi
6937done
6938 done
6939IFS=$as_save_IFS
6940
6941fi
6942fi
6943ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6944if test -n "$ac_ct_OBJDUMP"; then
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6946$as_echo "$ac_ct_OBJDUMP" >&6; }
6947else
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6949$as_echo "no" >&6; }
6950fi
6951
6952 if test "x$ac_ct_OBJDUMP" = x; then
6953 OBJDUMP="false"
6954 else
6955 case $cross_compiling:$ac_tool_warned in
6956yes:)
6957{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6959ac_tool_warned=yes ;;
6960esac
6961 OBJDUMP=$ac_ct_OBJDUMP
6962 fi
6963else
6964 OBJDUMP="$ac_cv_prog_OBJDUMP"
6965fi
6966
6967test -z "$OBJDUMP" && OBJDUMP=objdump
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6978$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6979if test "${lt_cv_deplibs_check_method+set}" = set; then :
6980 $as_echo_n "(cached) " >&6
6981else
6982 lt_cv_file_magic_cmd='$MAGIC_CMD'
6983lt_cv_file_magic_test_file=
6984lt_cv_deplibs_check_method='unknown'
6985# Need to set the preceding variable on all platforms that support
6986# interlibrary dependencies.
6987# 'none' -- dependencies not supported.
6988# `unknown' -- same as none, but documents that we really don't know.
6989# 'pass_all' -- all dependencies passed with no checks.
6990# 'test_compile' -- check by making test program.
6991# 'file_magic [[regex]]' -- check by looking for files in library path
6992# which responds to the $file_magic_cmd with a given extended regex.
6993# If you have `file' or equivalent on your system and you're not sure
6994# whether `pass_all' will *always* work, you probably want this one.
6995
6996case $host_os in
6997aix[4-9]*)
6998 lt_cv_deplibs_check_method=pass_all
6999 ;;
7000
7001beos*)
7002 lt_cv_deplibs_check_method=pass_all
7003 ;;
7004
7005bsdi[45]*)
7006 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7007 lt_cv_file_magic_cmd='/usr/bin/file -L'
7008 lt_cv_file_magic_test_file=/shlib/libc.so
7009 ;;
7010
7011cygwin*)
7012 # func_win32_libid is a shell function defined in ltmain.sh
7013 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7014 lt_cv_file_magic_cmd='func_win32_libid'
7015 ;;
7016
7017mingw* | pw32*)
7018 # Base MSYS/MinGW do not provide the 'file' command needed by
7019 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7020 # unless we find 'file', for example because we are cross-compiling.
7021 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7022 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7023 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7024 lt_cv_file_magic_cmd='func_win32_libid'
7025 else
7026 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7027 lt_cv_file_magic_cmd='$OBJDUMP -f'
7028 fi
7029 ;;
7030
7031cegcc*)
7032 # use the weaker test based on 'objdump'. See mingw*.
7033 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7034 lt_cv_file_magic_cmd='$OBJDUMP -f'
7035 ;;
7036
7037darwin* | rhapsody*)
7038 lt_cv_deplibs_check_method=pass_all
7039 ;;
7040
7041freebsd* | dragonfly*)
7042 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7043 case $host_cpu in
7044 i*86 )
7045 # Not sure whether the presence of OpenBSD here was a mistake.
7046 # Let's accept both of them until this is cleared up.
7047 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7048 lt_cv_file_magic_cmd=/usr/bin/file
7049 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7050 ;;
7051 esac
7052 else
7053 lt_cv_deplibs_check_method=pass_all
7054 fi
7055 ;;
7056
7057gnu*)
7058 lt_cv_deplibs_check_method=pass_all
7059 ;;
7060
7061haiku*)
7062 lt_cv_deplibs_check_method=pass_all
7063 ;;
7064
7065hpux10.20* | hpux11*)
7066 lt_cv_file_magic_cmd=/usr/bin/file
7067 case $host_cpu in
7068 ia64*)
7069 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7070 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7071 ;;
7072 hppa*64*)
7073 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7074 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7075 ;;
7076 *)
7077 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7078 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7079 ;;
7080 esac
7081 ;;
7082
7083interix[3-9]*)
7084 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7085 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7086 ;;
7087
7088irix5* | irix6* | nonstopux*)
7089 case $LD in
7090 *-32|*"-32 ") libmagic=32-bit;;
7091 *-n32|*"-n32 ") libmagic=N32;;
7092 *-64|*"-64 ") libmagic=64-bit;;
7093 *) libmagic=never-match;;
7094 esac
7095 lt_cv_deplibs_check_method=pass_all
7096 ;;
7097
7098# This must be Linux ELF.
7099linux* | k*bsd*-gnu | kopensolaris*-gnu)
7100 lt_cv_deplibs_check_method=pass_all
7101 ;;
7102
7103netbsd*)
7104 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7105 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7106 else
7107 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7108 fi
7109 ;;
7110
7111newos6*)
7112 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7113 lt_cv_file_magic_cmd=/usr/bin/file
7114 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7115 ;;
7116
7117*nto* | *qnx*)
7118 lt_cv_deplibs_check_method=pass_all
7119 ;;
7120
7121openbsd*)
7122 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7123 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7124 else
7125 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7126 fi
7127 ;;
7128
7129osf3* | osf4* | osf5*)
7130 lt_cv_deplibs_check_method=pass_all
7131 ;;
7132
7133rdos*)
7134 lt_cv_deplibs_check_method=pass_all
7135 ;;
7136
7137solaris*)
7138 lt_cv_deplibs_check_method=pass_all
7139 ;;
7140
7141sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7142 lt_cv_deplibs_check_method=pass_all
7143 ;;
7144
7145sysv4 | sysv4.3*)
7146 case $host_vendor in
7147 motorola)
7148 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]'
7149 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7150 ;;
7151 ncr)
7152 lt_cv_deplibs_check_method=pass_all
7153 ;;
7154 sequent)
7155 lt_cv_file_magic_cmd='/bin/file'
7156 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7157 ;;
7158 sni)
7159 lt_cv_file_magic_cmd='/bin/file'
7160 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7161 lt_cv_file_magic_test_file=/lib/libc.so
7162 ;;
7163 siemens)
7164 lt_cv_deplibs_check_method=pass_all
7165 ;;
7166 pc)
7167 lt_cv_deplibs_check_method=pass_all
7168 ;;
7169 esac
7170 ;;
7171
7172tpf*)
7173 lt_cv_deplibs_check_method=pass_all
7174 ;;
7175esac
7176
7177fi
7178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7179$as_echo "$lt_cv_deplibs_check_method" >&6; }
7180file_magic_cmd=$lt_cv_file_magic_cmd
7181deplibs_check_method=$lt_cv_deplibs_check_method
7182test -z "$deplibs_check_method" && deplibs_check_method=unknown
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195if test -n "$ac_tool_prefix"; then
7196 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7197set dummy ${ac_tool_prefix}ar; ac_word=$2
7198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7199$as_echo_n "checking for $ac_word... " >&6; }
7200if test "${ac_cv_prog_AR+set}" = set; then :
7201 $as_echo_n "(cached) " >&6
7202else
7203 if test -n "$AR"; then
7204 ac_cv_prog_AR="$AR" # Let the user override the test.
7205else
7206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7207for as_dir in $PATH
7208do
7209 IFS=$as_save_IFS
7210 test -z "$as_dir" && as_dir=.
7211 for ac_exec_ext in '' $ac_executable_extensions; do
7212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7213 ac_cv_prog_AR="${ac_tool_prefix}ar"
7214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7215 break 2
7216 fi
7217done
7218 done
7219IFS=$as_save_IFS
7220
7221fi
7222fi
7223AR=$ac_cv_prog_AR
7224if test -n "$AR"; then
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7226$as_echo "$AR" >&6; }
7227else
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7229$as_echo "no" >&6; }
7230fi
7231
7232
7233fi
7234if test -z "$ac_cv_prog_AR"; then
7235 ac_ct_AR=$AR
7236 # Extract the first word of "ar", so it can be a program name with args.
7237set dummy ar; ac_word=$2
7238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7239$as_echo_n "checking for $ac_word... " >&6; }
7240if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7241 $as_echo_n "(cached) " >&6
7242else
7243 if test -n "$ac_ct_AR"; then
7244 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7245else
7246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247for as_dir in $PATH
7248do
7249 IFS=$as_save_IFS
7250 test -z "$as_dir" && as_dir=.
7251 for ac_exec_ext in '' $ac_executable_extensions; do
7252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7253 ac_cv_prog_ac_ct_AR="ar"
7254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7255 break 2
7256 fi
7257done
7258 done
7259IFS=$as_save_IFS
7260
7261fi
7262fi
7263ac_ct_AR=$ac_cv_prog_ac_ct_AR
7264if test -n "$ac_ct_AR"; then
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7266$as_echo "$ac_ct_AR" >&6; }
7267else
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7269$as_echo "no" >&6; }
7270fi
7271
7272 if test "x$ac_ct_AR" = x; then
7273 AR="false"
7274 else
7275 case $cross_compiling:$ac_tool_warned in
7276yes:)
7277{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7278$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7279ac_tool_warned=yes ;;
7280esac
7281 AR=$ac_ct_AR
7282 fi
7283else
7284 AR="$ac_cv_prog_AR"
7285fi
7286
7287test -z "$AR" && AR=ar
7288test -z "$AR_FLAGS" && AR_FLAGS=cru
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300if test -n "$ac_tool_prefix"; then
7301 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7302set dummy ${ac_tool_prefix}strip; ac_word=$2
7303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7304$as_echo_n "checking for $ac_word... " >&6; }
7305if test "${ac_cv_prog_STRIP+set}" = set; then :
7306 $as_echo_n "(cached) " >&6
7307else
7308 if test -n "$STRIP"; then
7309 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7310else
7311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312for as_dir in $PATH
7313do
7314 IFS=$as_save_IFS
7315 test -z "$as_dir" && as_dir=.
7316 for ac_exec_ext in '' $ac_executable_extensions; do
7317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7318 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7320 break 2
7321 fi
7322done
7323 done
7324IFS=$as_save_IFS
7325
7326fi
7327fi
7328STRIP=$ac_cv_prog_STRIP
7329if test -n "$STRIP"; then
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7331$as_echo "$STRIP" >&6; }
7332else
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334$as_echo "no" >&6; }
7335fi
7336
7337
7338fi
7339if test -z "$ac_cv_prog_STRIP"; then
7340 ac_ct_STRIP=$STRIP
7341 # Extract the first word of "strip", so it can be a program name with args.
7342set dummy strip; ac_word=$2
7343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7344$as_echo_n "checking for $ac_word... " >&6; }
7345if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7346 $as_echo_n "(cached) " >&6
7347else
7348 if test -n "$ac_ct_STRIP"; then
7349 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7350else
7351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352for as_dir in $PATH
7353do
7354 IFS=$as_save_IFS
7355 test -z "$as_dir" && as_dir=.
7356 for ac_exec_ext in '' $ac_executable_extensions; do
7357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7358 ac_cv_prog_ac_ct_STRIP="strip"
7359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7360 break 2
7361 fi
7362done
7363 done
7364IFS=$as_save_IFS
7365
7366fi
7367fi
7368ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7369if test -n "$ac_ct_STRIP"; then
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7371$as_echo "$ac_ct_STRIP" >&6; }
7372else
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7374$as_echo "no" >&6; }
7375fi
7376
7377 if test "x$ac_ct_STRIP" = x; then
7378 STRIP=":"
7379 else
7380 case $cross_compiling:$ac_tool_warned in
7381yes:)
7382{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7383$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7384ac_tool_warned=yes ;;
7385esac
7386 STRIP=$ac_ct_STRIP
7387 fi
7388else
7389 STRIP="$ac_cv_prog_STRIP"
7390fi
7391
7392test -z "$STRIP" && STRIP=:
7393
7394
7395
7396
7397
7398
7399if test -n "$ac_tool_prefix"; then
7400 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7401set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7403$as_echo_n "checking for $ac_word... " >&6; }
7404if test "${ac_cv_prog_RANLIB+set}" = set; then :
7405 $as_echo_n "(cached) " >&6
7406else
7407 if test -n "$RANLIB"; then
7408 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7409else
7410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411for as_dir in $PATH
7412do
7413 IFS=$as_save_IFS
7414 test -z "$as_dir" && as_dir=.
7415 for ac_exec_ext in '' $ac_executable_extensions; do
7416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7417 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7419 break 2
7420 fi
7421done
7422 done
7423IFS=$as_save_IFS
7424
7425fi
7426fi
7427RANLIB=$ac_cv_prog_RANLIB
7428if test -n "$RANLIB"; then
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7430$as_echo "$RANLIB" >&6; }
7431else
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7433$as_echo "no" >&6; }
7434fi
7435
7436
7437fi
7438if test -z "$ac_cv_prog_RANLIB"; then
7439 ac_ct_RANLIB=$RANLIB
7440 # Extract the first word of "ranlib", so it can be a program name with args.
7441set dummy ranlib; ac_word=$2
7442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7443$as_echo_n "checking for $ac_word... " >&6; }
7444if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7445 $as_echo_n "(cached) " >&6
7446else
7447 if test -n "$ac_ct_RANLIB"; then
7448 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7449else
7450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451for as_dir in $PATH
7452do
7453 IFS=$as_save_IFS
7454 test -z "$as_dir" && as_dir=.
7455 for ac_exec_ext in '' $ac_executable_extensions; do
7456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7457 ac_cv_prog_ac_ct_RANLIB="ranlib"
7458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7459 break 2
7460 fi
7461done
7462 done
7463IFS=$as_save_IFS
7464
7465fi
7466fi
7467ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7468if test -n "$ac_ct_RANLIB"; then
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7470$as_echo "$ac_ct_RANLIB" >&6; }
7471else
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7473$as_echo "no" >&6; }
7474fi
7475
7476 if test "x$ac_ct_RANLIB" = x; then
7477 RANLIB=":"
7478 else
7479 case $cross_compiling:$ac_tool_warned in
7480yes:)
7481{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7482$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7483ac_tool_warned=yes ;;
7484esac
7485 RANLIB=$ac_ct_RANLIB
7486 fi
7487else
7488 RANLIB="$ac_cv_prog_RANLIB"
7489fi
7490
7491test -z "$RANLIB" && RANLIB=:
7492
7493
7494
7495
7496
7497
7498# Determine commands to create old-style static archives.
7499old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7500old_postinstall_cmds='chmod 644 $oldlib'
7501old_postuninstall_cmds=
7502
7503if test -n "$RANLIB"; then
7504 case $host_os in
7505 openbsd*)
7506 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7507 ;;
7508 *)
7509 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7510 ;;
7511 esac
7512 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7513fi
7514
7515case $host_os in
7516 darwin*)
7517 lock_old_archive_extraction=yes ;;
7518 *)
7519 lock_old_archive_extraction=no ;;
7520esac
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560# If no C compiler was specified, use CC.
7561LTCC=${LTCC-"$CC"}
7562
7563# If no C compiler flags were specified, use CFLAGS.
7564LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7565
7566# Allow CC to be a program name with arguments.
7567compiler=$CC
7568
7569
7570# Check for command to grab the raw symbol name followed by C symbol from nm.
7571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7572$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7573if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7574 $as_echo_n "(cached) " >&6
7575else
7576
7577# These are sane defaults that work on at least a few old systems.
7578# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7579
7580# Character class describing NM global symbol codes.
7581symcode='[BCDEGRST]'
7582
7583# Regexp to match symbols that can be accessed directly from C.
7584sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7585
7586# Define system-specific variables.
7587case $host_os in
7588aix*)
7589 symcode='[BCDT]'
7590 ;;
7591cygwin* | mingw* | pw32* | cegcc*)
7592 symcode='[ABCDGISTW]'
7593 ;;
7594hpux*)
7595 if test "$host_cpu" = ia64; then
7596 symcode='[ABCDEGRST]'
7597 fi
7598 ;;
7599irix* | nonstopux*)
7600 symcode='[BCDEGRST]'
7601 ;;
7602osf*)
7603 symcode='[BCDEGQRST]'
7604 ;;
7605solaris*)
7606 symcode='[BDRT]'
7607 ;;
7608sco3.2v5*)
7609 symcode='[DT]'
7610 ;;
7611sysv4.2uw2*)
7612 symcode='[DT]'
7613 ;;
7614sysv5* | sco5v6* | unixware* | OpenUNIX*)
7615 symcode='[ABDT]'
7616 ;;
7617sysv4)
7618 symcode='[DFNSTU]'
7619 ;;
7620esac
7621
7622# If we're using GNU nm, then use its standard symbol codes.
7623case `$NM -V 2>&1` in
7624*GNU* | *'with BFD'*)
7625 symcode='[ABCDGIRSTW]' ;;
7626esac
7627
7628# Transform an extracted symbol line into a proper C declaration.
7629# Some systems (esp. on ia64) link data and code symbols differently,
7630# so use this general approach.
7631lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7632
7633# Transform an extracted symbol line into symbol name and symbol address
7634lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7635lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7636
7637# Handle CRLF in mingw tool chain
7638opt_cr=
7639case $build_os in
7640mingw*)
7641 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7642 ;;
7643esac
7644
7645# Try without a prefix underscore, then with it.
7646for ac_symprfx in "" "_"; do
7647
7648 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7649 symxfrm="\\1 $ac_symprfx\\2 \\2"
7650
7651 # Write the raw and C identifiers.
7652 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7653 # Fake it for dumpbin and say T for any non-static function
7654 # and D for any global variable.
7655 # Also find C++ and __fastcall symbols from MSVC++,
7656 # which start with @ or ?.
7657 lt_cv_sys_global_symbol_pipe="$AWK '"\
7658" {last_section=section; section=\$ 3};"\
7659" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7660" \$ 0!~/External *\|/{next};"\
7661" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7662" {if(hide[section]) next};"\
7663" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7664" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7665" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7666" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7667" ' prfx=^$ac_symprfx"
7668 else
7669 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7670 fi
7671
7672 # Check to see that the pipe works correctly.
7673 pipe_works=no
7674
7675 rm -f conftest*
7676 cat > conftest.$ac_ext <<_LT_EOF
7677#ifdef __cplusplus
7678extern "C" {
7679#endif
7680char nm_test_var;
7681void nm_test_func(void);
7682void nm_test_func(void){}
7683#ifdef __cplusplus
7684}
7685#endif
7686int main(){nm_test_var='a';nm_test_func();return(0);}
7687_LT_EOF
7688
7689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7690 (eval $ac_compile) 2>&5
7691 ac_status=$?
7692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7693 test $ac_status = 0; }; then
7694 # Now try to grab the symbols.
7695 nlist=conftest.nm
7696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7697 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7698 ac_status=$?
7699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7700 test $ac_status = 0; } && test -s "$nlist"; then
7701 # Try sorting and uniquifying the output.
7702 if sort "$nlist" | uniq > "$nlist"T; then
7703 mv -f "$nlist"T "$nlist"
7704 else
7705 rm -f "$nlist"T
7706 fi
7707
7708 # Make sure that we snagged all the symbols we need.
7709 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7710 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7711 cat <<_LT_EOF > conftest.$ac_ext
7712#ifdef __cplusplus
7713extern "C" {
7714#endif
7715
7716_LT_EOF
7717 # Now generate the symbol file.
7718 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7719
7720 cat <<_LT_EOF >> conftest.$ac_ext
7721
7722/* The mapping between symbol names and symbols. */
7723const struct {
7724 const char *name;
7725 void *address;
7726}
7727lt__PROGRAM__LTX_preloaded_symbols[] =
7728{
7729 { "@PROGRAM@", (void *) 0 },
7730_LT_EOF
7731 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7732 cat <<\_LT_EOF >> conftest.$ac_ext
7733 {0, (void *) 0}
7734};
7735
7736/* This works around a problem in FreeBSD linker */
7737#ifdef FREEBSD_WORKAROUND
7738static const void *lt_preloaded_setup() {
7739 return lt__PROGRAM__LTX_preloaded_symbols;
7740}
7741#endif
7742
7743#ifdef __cplusplus
7744}
7745#endif
7746_LT_EOF
7747 # Now try linking the two files.
7748 mv conftest.$ac_objext conftstm.$ac_objext
7749 lt_save_LIBS="$LIBS"
7750 lt_save_CFLAGS="$CFLAGS"
7751 LIBS="conftstm.$ac_objext"
7752 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7754 (eval $ac_link) 2>&5
7755 ac_status=$?
7756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7757 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7758 pipe_works=yes
7759 fi
7760 LIBS="$lt_save_LIBS"
7761 CFLAGS="$lt_save_CFLAGS"
7762 else
7763 echo "cannot find nm_test_func in $nlist" >&5
7764 fi
7765 else
7766 echo "cannot find nm_test_var in $nlist" >&5
7767 fi
7768 else
7769 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7770 fi
7771 else
7772 echo "$progname: failed program was:" >&5
7773 cat conftest.$ac_ext >&5
7774 fi
7775 rm -rf conftest* conftst*
7776
7777 # Do not use the global_symbol_pipe unless it works.
7778 if test "$pipe_works" = yes; then
7779 break
7780 else
7781 lt_cv_sys_global_symbol_pipe=
7782 fi
7783done
7784
7785fi
7786
7787if test -z "$lt_cv_sys_global_symbol_pipe"; then
7788 lt_cv_sys_global_symbol_to_cdecl=
7789fi
7790if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7792$as_echo "failed" >&6; }
7793else
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7795$as_echo "ok" >&6; }
7796fi
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
2077db1b
CT
7817
7818
7819# Check whether --enable-libtool-lock was given.
7820if test "${enable_libtool_lock+set}" = set; then :
7821 enableval=$enable_libtool_lock;
7822fi
7823
7824test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7825
7826# Some flags need to be propagated to the compiler or linker for good
7827# libtool support.
7828case $host in
7829ia64-*-hpux*)
7830 # Find out which ABI we are using.
7831 echo 'int i;' > conftest.$ac_ext
7832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7833 (eval $ac_compile) 2>&5
7834 ac_status=$?
7835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7836 test $ac_status = 0; }; then
7837 case `/usr/bin/file conftest.$ac_objext` in
7838 *ELF-32*)
7839 HPUX_IA64_MODE="32"
7840 ;;
7841 *ELF-64*)
7842 HPUX_IA64_MODE="64"
7843 ;;
7844 esac
7845 fi
7846 rm -rf conftest*
7847 ;;
7848*-*-irix6*)
7849 # Find out which ABI we are using.
7850 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7852 (eval $ac_compile) 2>&5
7853 ac_status=$?
7854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7855 test $ac_status = 0; }; then
7856 if test "$lt_cv_prog_gnu_ld" = yes; then
7857 case `/usr/bin/file conftest.$ac_objext` in
7858 *32-bit*)
7859 LD="${LD-ld} -melf32bsmip"
7860 ;;
7861 *N32*)
7862 LD="${LD-ld} -melf32bmipn32"
7863 ;;
7864 *64-bit*)
7865 LD="${LD-ld} -melf64bmip"
7866 ;;
7867 esac
7868 else
7869 case `/usr/bin/file conftest.$ac_objext` in
7870 *32-bit*)
7871 LD="${LD-ld} -32"
7872 ;;
7873 *N32*)
7874 LD="${LD-ld} -n32"
7875 ;;
7876 *64-bit*)
7877 LD="${LD-ld} -64"
7878 ;;
7879 esac
7880 fi
7881 fi
7882 rm -rf conftest*
7883 ;;
7884
3cbe17f7 7885x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
2077db1b
CT
7886s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7887 # Find out which ABI we are using.
7888 echo 'int i;' > conftest.$ac_ext
7889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7890 (eval $ac_compile) 2>&5
7891 ac_status=$?
7892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7893 test $ac_status = 0; }; then
7894 case `/usr/bin/file conftest.o` in
7895 *32-bit*)
7896 case $host in
7897 x86_64-*kfreebsd*-gnu)
7898 LD="${LD-ld} -m elf_i386_fbsd"
7899 ;;
7900 x86_64-*linux*)
7901 case `/usr/bin/file conftest.o` in
7902 *x86-64*)
7903 LD="${LD-ld} -m elf32_x86_64"
7904 ;;
7905 *)
7906 LD="${LD-ld} -m elf_i386"
7907 ;;
7908 esac
7909 ;;
3cbe17f7
AM
7910 powerpc64le-*linux*)
7911 LD="${LD-ld} -m elf32lppclinux"
7912 ;;
7913 powerpc64-*linux*)
2077db1b
CT
7914 LD="${LD-ld} -m elf32ppclinux"
7915 ;;
7916 s390x-*linux*)
7917 LD="${LD-ld} -m elf_s390"
7918 ;;
7919 sparc64-*linux*)
7920 LD="${LD-ld} -m elf32_sparc"
7921 ;;
7922 esac
7923 ;;
7924 *64-bit*)
7925 case $host in
7926 x86_64-*kfreebsd*-gnu)
7927 LD="${LD-ld} -m elf_x86_64_fbsd"
7928 ;;
7929 x86_64-*linux*)
7930 LD="${LD-ld} -m elf_x86_64"
7931 ;;
3cbe17f7
AM
7932 powerpcle-*linux*)
7933 LD="${LD-ld} -m elf64lppc"
7934 ;;
7935 powerpc-*linux*)
2077db1b
CT
7936 LD="${LD-ld} -m elf64ppc"
7937 ;;
7938 s390*-*linux*|s390*-*tpf*)
7939 LD="${LD-ld} -m elf64_s390"
7940 ;;
7941 sparc*-*linux*)
7942 LD="${LD-ld} -m elf64_sparc"
7943 ;;
7944 esac
7945 ;;
7946 esac
7947 fi
7948 rm -rf conftest*
7949 ;;
7950
7951*-*-sco3.2v5*)
7952 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7953 SAVE_CFLAGS="$CFLAGS"
7954 CFLAGS="$CFLAGS -belf"
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7956$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7957if test "${lt_cv_cc_needs_belf+set}" = set; then :
7958 $as_echo_n "(cached) " >&6
7959else
7960 ac_ext=c
7961ac_cpp='$CPP $CPPFLAGS'
7962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7964ac_compiler_gnu=$ac_cv_c_compiler_gnu
7965
7966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7967/* end confdefs.h. */
7968
7969int
7970main ()
7971{
7972
7973 ;
7974 return 0;
7975}
7976_ACEOF
7977if ac_fn_c_try_link "$LINENO"; then :
7978 lt_cv_cc_needs_belf=yes
7979else
7980 lt_cv_cc_needs_belf=no
7981fi
7982rm -f core conftest.err conftest.$ac_objext \
7983 conftest$ac_exeext conftest.$ac_ext
7984 ac_ext=c
7985ac_cpp='$CPP $CPPFLAGS'
7986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7988ac_compiler_gnu=$ac_cv_c_compiler_gnu
7989
7990fi
7991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7992$as_echo "$lt_cv_cc_needs_belf" >&6; }
7993 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7994 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7995 CFLAGS="$SAVE_CFLAGS"
7996 fi
7997 ;;
7998sparc*-*solaris*)
7999 # Find out which ABI we are using.
8000 echo 'int i;' > conftest.$ac_ext
8001 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8002 (eval $ac_compile) 2>&5
8003 ac_status=$?
8004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8005 test $ac_status = 0; }; then
8006 case `/usr/bin/file conftest.o` in
8007 *64-bit*)
8008 case $lt_cv_prog_gnu_ld in
8009 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8010 *)
8011 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8012 LD="${LD-ld} -64"
8013 fi
8014 ;;
8015 esac
8016 ;;
8017 esac
8018 fi
8019 rm -rf conftest*
8020 ;;
8021esac
8022
8023need_locks="$enable_libtool_lock"
8024
8025
8026 case $host_os in
8027 rhapsody* | darwin*)
8028 if test -n "$ac_tool_prefix"; then
8029 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8030set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8032$as_echo_n "checking for $ac_word... " >&6; }
8033if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8034 $as_echo_n "(cached) " >&6
8035else
8036 if test -n "$DSYMUTIL"; then
8037 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8038else
8039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8040for as_dir in $PATH
8041do
8042 IFS=$as_save_IFS
8043 test -z "$as_dir" && as_dir=.
8044 for ac_exec_ext in '' $ac_executable_extensions; do
8045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8046 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8048 break 2
8049 fi
8050done
8051 done
8052IFS=$as_save_IFS
8053
8054fi
8055fi
8056DSYMUTIL=$ac_cv_prog_DSYMUTIL
8057if test -n "$DSYMUTIL"; then
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8059$as_echo "$DSYMUTIL" >&6; }
8060else
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062$as_echo "no" >&6; }
8063fi
8064
8065
8066fi
8bc16536
CT
8067if test -z "$ac_cv_prog_DSYMUTIL"; then
8068 ac_ct_DSYMUTIL=$DSYMUTIL
8069 # Extract the first word of "dsymutil", so it can be a program name with args.
8070set dummy dsymutil; ac_word=$2
2077db1b
CT
8071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8072$as_echo_n "checking for $ac_word... " >&6; }
8bc16536 8073if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
2077db1b
CT
8074 $as_echo_n "(cached) " >&6
8075else
8bc16536
CT
8076 if test -n "$ac_ct_DSYMUTIL"; then
8077 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
2077db1b
CT
8078else
8079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8080for as_dir in $PATH
8081do
8082 IFS=$as_save_IFS
8083 test -z "$as_dir" && as_dir=.
8084 for ac_exec_ext in '' $ac_executable_extensions; do
8085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8bc16536 8086 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
2077db1b
CT
8087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8088 break 2
8089 fi
8090done
8091 done
8092IFS=$as_save_IFS
8093
8094fi
8095fi
8bc16536
CT
8096ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8097if test -n "$ac_ct_DSYMUTIL"; then
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8099$as_echo "$ac_ct_DSYMUTIL" >&6; }
2077db1b
CT
8100else
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8102$as_echo "no" >&6; }
8103fi
8104
8bc16536
CT
8105 if test "x$ac_ct_DSYMUTIL" = x; then
8106 DSYMUTIL=":"
2077db1b
CT
8107 else
8108 case $cross_compiling:$ac_tool_warned in
8109yes:)
8110{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8111$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8112ac_tool_warned=yes ;;
8113esac
8bc16536 8114 DSYMUTIL=$ac_ct_DSYMUTIL
2077db1b
CT
8115 fi
8116else
8bc16536 8117 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
2077db1b
CT
8118fi
8119
8120 if test -n "$ac_tool_prefix"; then
8bc16536
CT
8121 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8122set dummy ${ac_tool_prefix}nmedit; ac_word=$2
2077db1b
CT
8123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8124$as_echo_n "checking for $ac_word... " >&6; }
8bc16536 8125if test "${ac_cv_prog_NMEDIT+set}" = set; then :
2077db1b
CT
8126 $as_echo_n "(cached) " >&6
8127else
8bc16536
CT
8128 if test -n "$NMEDIT"; then
8129 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
2077db1b
CT
8130else
8131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132for as_dir in $PATH
8133do
8134 IFS=$as_save_IFS
8135 test -z "$as_dir" && as_dir=.
8136 for ac_exec_ext in '' $ac_executable_extensions; do
8137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8bc16536 8138 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
2077db1b
CT
8139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8140 break 2
8141 fi
8142done
8143 done
8144IFS=$as_save_IFS
8145
8146fi
8147fi
8bc16536
CT
8148NMEDIT=$ac_cv_prog_NMEDIT
8149if test -n "$NMEDIT"; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8151$as_echo "$NMEDIT" >&6; }
2077db1b
CT
8152else
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154$as_echo "no" >&6; }
8155fi
8156
8157
8158fi
8bc16536
CT
8159if test -z "$ac_cv_prog_NMEDIT"; then
8160 ac_ct_NMEDIT=$NMEDIT
8161 # Extract the first word of "nmedit", so it can be a program name with args.
8162set dummy nmedit; ac_word=$2
2077db1b
CT
8163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8164$as_echo_n "checking for $ac_word... " >&6; }
8bc16536 8165if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
2077db1b
CT
8166 $as_echo_n "(cached) " >&6
8167else
8bc16536
CT
8168 if test -n "$ac_ct_NMEDIT"; then
8169 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
2077db1b
CT
8170else
8171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8172for as_dir in $PATH
8173do
8174 IFS=$as_save_IFS
8175 test -z "$as_dir" && as_dir=.
8176 for ac_exec_ext in '' $ac_executable_extensions; do
8177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8bc16536 8178 ac_cv_prog_ac_ct_NMEDIT="nmedit"
2077db1b
CT
8179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8180 break 2
8181 fi
8182done
8183 done
8184IFS=$as_save_IFS
8185
8186fi
8187fi
8bc16536
CT
8188ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8189if test -n "$ac_ct_NMEDIT"; then
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8191$as_echo "$ac_ct_NMEDIT" >&6; }
2077db1b
CT
8192else
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8194$as_echo "no" >&6; }
8195fi
8196
8bc16536
CT
8197 if test "x$ac_ct_NMEDIT" = x; then
8198 NMEDIT=":"
2077db1b
CT
8199 else
8200 case $cross_compiling:$ac_tool_warned in
8201yes:)
8202{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8203$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8204ac_tool_warned=yes ;;
8205esac
8bc16536 8206 NMEDIT=$ac_ct_NMEDIT
2077db1b
CT
8207 fi
8208else
8bc16536 8209 NMEDIT="$ac_cv_prog_NMEDIT"
2077db1b
CT
8210fi
8211
8212 if test -n "$ac_tool_prefix"; then
8bc16536
CT
8213 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8214set dummy ${ac_tool_prefix}lipo; ac_word=$2
2077db1b
CT
8215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8216$as_echo_n "checking for $ac_word... " >&6; }
8bc16536 8217if test "${ac_cv_prog_LIPO+set}" = set; then :
2077db1b
CT
8218 $as_echo_n "(cached) " >&6
8219else
8bc16536
CT
8220 if test -n "$LIPO"; then
8221 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
2077db1b
CT
8222else
8223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8224for as_dir in $PATH
8225do
8226 IFS=$as_save_IFS
8227 test -z "$as_dir" && as_dir=.
8228 for ac_exec_ext in '' $ac_executable_extensions; do
8229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8bc16536 8230 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
2077db1b
CT
8231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8232 break 2
8233 fi
8234done
8235 done
8236IFS=$as_save_IFS
8237
8238fi
8239fi
8bc16536
CT
8240LIPO=$ac_cv_prog_LIPO
8241if test -n "$LIPO"; then
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8243$as_echo "$LIPO" >&6; }
2077db1b
CT
8244else
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8246$as_echo "no" >&6; }
8247fi
8248
8249
8250fi
8bc16536
CT
8251if test -z "$ac_cv_prog_LIPO"; then
8252 ac_ct_LIPO=$LIPO
8253 # Extract the first word of "lipo", so it can be a program name with args.
8254set dummy lipo; ac_word=$2
2077db1b
CT
8255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8256$as_echo_n "checking for $ac_word... " >&6; }
8bc16536 8257if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
2077db1b
CT
8258 $as_echo_n "(cached) " >&6
8259else
8bc16536
CT
8260 if test -n "$ac_ct_LIPO"; then
8261 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
2077db1b
CT
8262else
8263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8264for as_dir in $PATH
8265do
8266 IFS=$as_save_IFS
8267 test -z "$as_dir" && as_dir=.
8268 for ac_exec_ext in '' $ac_executable_extensions; do
8269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8bc16536 8270 ac_cv_prog_ac_ct_LIPO="lipo"
2077db1b
CT
8271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8272 break 2
8273 fi
8274done
8275 done
8276IFS=$as_save_IFS
8277
8278fi
8279fi
8bc16536
CT
8280ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8281if test -n "$ac_ct_LIPO"; then
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8283$as_echo "$ac_ct_LIPO" >&6; }
2077db1b
CT
8284else
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8286$as_echo "no" >&6; }
8287fi
8288
8bc16536
CT
8289 if test "x$ac_ct_LIPO" = x; then
8290 LIPO=":"
2077db1b
CT
8291 else
8292 case $cross_compiling:$ac_tool_warned in
8293yes:)
8294{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8295$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8296ac_tool_warned=yes ;;
8297esac
8bc16536 8298 LIPO=$ac_ct_LIPO
2077db1b
CT
8299 fi
8300else
8bc16536 8301 LIPO="$ac_cv_prog_LIPO"
2077db1b
CT
8302fi
8303
8bc16536
CT
8304 if test -n "$ac_tool_prefix"; then
8305 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8306set dummy ${ac_tool_prefix}otool; ac_word=$2
8307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8308$as_echo_n "checking for $ac_word... " >&6; }
8309if test "${ac_cv_prog_OTOOL+set}" = set; then :
2077db1b
CT
8310 $as_echo_n "(cached) " >&6
8311else
8bc16536
CT
8312 if test -n "$OTOOL"; then
8313 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
2077db1b 8314else
8bc16536
CT
8315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8316for as_dir in $PATH
8317do
8318 IFS=$as_save_IFS
8319 test -z "$as_dir" && as_dir=.
8320 for ac_exec_ext in '' $ac_executable_extensions; do
8321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8322 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8324 break 2
8325 fi
8326done
8327 done
8328IFS=$as_save_IFS
2077db1b
CT
8329
8330fi
8bc16536
CT
8331fi
8332OTOOL=$ac_cv_prog_OTOOL
8333if test -n "$OTOOL"; then
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8335$as_echo "$OTOOL" >&6; }
8336else
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8338$as_echo "no" >&6; }
8339fi
8340
2077db1b 8341
2077db1b 8342fi
8bc16536
CT
8343if test -z "$ac_cv_prog_OTOOL"; then
8344 ac_ct_OTOOL=$OTOOL
8345 # Extract the first word of "otool", so it can be a program name with args.
8346set dummy otool; ac_word=$2
8347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8348$as_echo_n "checking for $ac_word... " >&6; }
8349if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
2077db1b
CT
8350 $as_echo_n "(cached) " >&6
8351else
8bc16536
CT
8352 if test -n "$ac_ct_OTOOL"; then
8353 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8354else
8355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8356for as_dir in $PATH
2077db1b 8357do
8bc16536
CT
8358 IFS=$as_save_IFS
8359 test -z "$as_dir" && as_dir=.
8360 for ac_exec_ext in '' $ac_executable_extensions; do
8361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8362 ac_cv_prog_ac_ct_OTOOL="otool"
8363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8364 break 2
8365 fi
8366done
8367 done
8368IFS=$as_save_IFS
2077db1b 8369
8bc16536
CT
8370fi
8371fi
8372ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8373if test -n "$ac_ct_OTOOL"; then
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8375$as_echo "$ac_ct_OTOOL" >&6; }
2077db1b 8376else
8bc16536
CT
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8378$as_echo "no" >&6; }
2077db1b 8379fi
2077db1b 8380
8bc16536
CT
8381 if test "x$ac_ct_OTOOL" = x; then
8382 OTOOL=":"
8383 else
8384 case $cross_compiling:$ac_tool_warned in
8385yes:)
8386{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8387$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8388ac_tool_warned=yes ;;
8389esac
8390 OTOOL=$ac_ct_OTOOL
8391 fi
2077db1b 8392else
8bc16536 8393 OTOOL="$ac_cv_prog_OTOOL"
2077db1b 8394fi
2077db1b 8395
8bc16536
CT
8396 if test -n "$ac_tool_prefix"; then
8397 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8398set dummy ${ac_tool_prefix}otool64; ac_word=$2
8399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8400$as_echo_n "checking for $ac_word... " >&6; }
8401if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8402 $as_echo_n "(cached) " >&6
8403else
8404 if test -n "$OTOOL64"; then
8405 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8406else
8407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8408for as_dir in $PATH
8409do
8410 IFS=$as_save_IFS
8411 test -z "$as_dir" && as_dir=.
8412 for ac_exec_ext in '' $ac_executable_extensions; do
8413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8414 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8416 break 2
8417 fi
2077db1b 8418done
8bc16536
CT
8419 done
8420IFS=$as_save_IFS
8421
8422fi
8423fi
8424OTOOL64=$ac_cv_prog_OTOOL64
8425if test -n "$OTOOL64"; then
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8427$as_echo "$OTOOL64" >&6; }
8428else
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8430$as_echo "no" >&6; }
2077db1b
CT
8431fi
8432
2077db1b
CT
8433
8434fi
8bc16536
CT
8435if test -z "$ac_cv_prog_OTOOL64"; then
8436 ac_ct_OTOOL64=$OTOOL64
8437 # Extract the first word of "otool64", so it can be a program name with args.
8438set dummy otool64; ac_word=$2
8439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8440$as_echo_n "checking for $ac_word... " >&6; }
8441if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8442 $as_echo_n "(cached) " >&6
2077db1b 8443else
8bc16536
CT
8444 if test -n "$ac_ct_OTOOL64"; then
8445 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8446else
8447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8448for as_dir in $PATH
2077db1b 8449do
8bc16536
CT
8450 IFS=$as_save_IFS
8451 test -z "$as_dir" && as_dir=.
8452 for ac_exec_ext in '' $ac_executable_extensions; do
8453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8454 ac_cv_prog_ac_ct_OTOOL64="otool64"
8455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8456 break 2
8457 fi
8458done
8459 done
8460IFS=$as_save_IFS
2077db1b 8461
2077db1b 8462fi
8bc16536
CT
8463fi
8464ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8465if test -n "$ac_ct_OTOOL64"; then
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8467$as_echo "$ac_ct_OTOOL64" >&6; }
2077db1b 8468else
8bc16536
CT
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8470$as_echo "no" >&6; }
2077db1b 8471fi
2077db1b 8472
8bc16536
CT
8473 if test "x$ac_ct_OTOOL64" = x; then
8474 OTOOL64=":"
8475 else
8476 case $cross_compiling:$ac_tool_warned in
8477yes:)
8478{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8479$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8480ac_tool_warned=yes ;;
8481esac
8482 OTOOL64=$ac_ct_OTOOL64
8483 fi
2077db1b 8484else
8bc16536 8485 OTOOL64="$ac_cv_prog_OTOOL64"
2077db1b
CT
8486fi
8487
2077db1b
CT
8488
8489
2077db1b 8490
2077db1b 8491
2077db1b 8492
2077db1b 8493
2077db1b 8494
2077db1b 8495
2077db1b 8496
2077db1b 8497
2077db1b 8498
2077db1b 8499
2077db1b 8500
8bc16536
CT
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8515$as_echo_n "checking for -single_module linker flag... " >&6; }
8516if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8517 $as_echo_n "(cached) " >&6
2077db1b 8518else
8bc16536
CT
8519 lt_cv_apple_cc_single_mod=no
8520 if test -z "${LT_MULTI_MODULE}"; then
8521 # By default we will add the -single_module flag. You can override
8522 # by either setting the environment variable LT_MULTI_MODULE
8523 # non-empty at configure time, or by adding -multi_module to the
8524 # link flags.
8525 rm -rf libconftest.dylib*
8526 echo "int foo(void){return 1;}" > conftest.c
8527 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8528-dynamiclib -Wl,-single_module conftest.c" >&5
8529 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8530 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8531 _lt_result=$?
8532 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8533 lt_cv_apple_cc_single_mod=yes
8534 else
8535 cat conftest.err >&5
8536 fi
8537 rm -rf libconftest.dylib*
8538 rm -f conftest.*
8539 fi
8540fi
8541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8542$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8544$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8545if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8546 $as_echo_n "(cached) " >&6
8547else
8548 lt_cv_ld_exported_symbols_list=no
8549 save_LDFLAGS=$LDFLAGS
8550 echo "_main" > conftest.sym
8551 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077db1b 8553/* end confdefs.h. */
2077db1b 8554
2077db1b
CT
8555int
8556main ()
8557{
8bc16536
CT
8558
8559 ;
2077db1b
CT
8560 return 0;
8561}
8562_ACEOF
8bc16536
CT
8563if ac_fn_c_try_link "$LINENO"; then :
8564 lt_cv_ld_exported_symbols_list=yes
2077db1b 8565else
8bc16536 8566 lt_cv_ld_exported_symbols_list=no
2077db1b 8567fi
8bc16536
CT
8568rm -f core conftest.err conftest.$ac_objext \
8569 conftest$ac_exeext conftest.$ac_ext
8570 LDFLAGS="$save_LDFLAGS"
2077db1b
CT
8571
8572fi
8bc16536
CT
8573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8574$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8576$as_echo_n "checking for -force_load linker flag... " >&6; }
8577if test "${lt_cv_ld_force_load+set}" = set; then :
8578 $as_echo_n "(cached) " >&6
8579else
8580 lt_cv_ld_force_load=no
8581 cat > conftest.c << _LT_EOF
8582int forced_loaded() { return 2;}
8583_LT_EOF
8584 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8585 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8586 echo "$AR cru libconftest.a conftest.o" >&5
8587 $AR cru libconftest.a conftest.o 2>&5
8588 cat > conftest.c << _LT_EOF
8589int main() { return 0;}
8590_LT_EOF
8591 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8592 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8593 _lt_result=$?
8594 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8595 lt_cv_ld_force_load=yes
8596 else
8597 cat conftest.err >&5
8598 fi
8599 rm -f conftest.err libconftest.a conftest conftest.c
8600 rm -rf conftest.dSYM
2077db1b
CT
8601
8602fi
8bc16536
CT
8603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8604$as_echo "$lt_cv_ld_force_load" >&6; }
8605 case $host_os in
8606 rhapsody* | darwin1.[012])
8607 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8608 darwin1.*)
8609 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8610 darwin*) # darwin 5.x on
8611 # if running on 10.5 or later, the deployment target defaults
8612 # to the OS version, if on x86, and 10.4, the deployment
8613 # target defaults to 10.4. Don't you love it?
8614 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8615 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8616 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
ebf6d33b 8617 10.[012][,.]*)
8bc16536
CT
8618 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8619 10.*)
8620 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8621 esac
8622 ;;
8623 esac
8624 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8625 _lt_dar_single_mod='$single_module'
8626 fi
8627 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8628 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8629 else
8630 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8631 fi
8632 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8633 _lt_dsymutil='~$DSYMUTIL $lib || :'
8634 else
8635 _lt_dsymutil=
8636 fi
8637 ;;
8638 esac
2077db1b
CT
8639
8640for ac_header in dlfcn.h
8641do :
8642 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8643"
8644if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8645 cat >>confdefs.h <<_ACEOF
8646#define HAVE_DLFCN_H 1
8647_ACEOF
8648
8649fi
8650
8651done
8652
8653
8654
8655
8656
8657
8658# Set options
8659
8660
8661
8662
8663 enable_win32_dll=no
8664
8665
8666 # Check whether --enable-shared was given.
8667if test "${enable_shared+set}" = set; then :
8668 enableval=$enable_shared; p=${PACKAGE-default}
8669 case $enableval in
8670 yes) enable_shared=yes ;;
8671 no) enable_shared=no ;;
8672 *)
8673 enable_shared=no
8674 # Look at the argument we got. We use all the common list separators.
8675 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8676 for pkg in $enableval; do
8677 IFS="$lt_save_ifs"
8678 if test "X$pkg" = "X$p"; then
8679 enable_shared=yes
8680 fi
8681 done
8682 IFS="$lt_save_ifs"
8683 ;;
8684 esac
8685else
8686 enable_shared=yes
8687fi
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697 # Check whether --enable-static was given.
8698if test "${enable_static+set}" = set; then :
8699 enableval=$enable_static; p=${PACKAGE-default}
8700 case $enableval in
8701 yes) enable_static=yes ;;
8702 no) enable_static=no ;;
8703 *)
8704 enable_static=no
8705 # Look at the argument we got. We use all the common list separators.
8706 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8707 for pkg in $enableval; do
8708 IFS="$lt_save_ifs"
8709 if test "X$pkg" = "X$p"; then
8710 enable_static=yes
8711 fi
8712 done
8713 IFS="$lt_save_ifs"
8714 ;;
8715 esac
8716else
8717 enable_static=yes
8718fi
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729# Check whether --with-pic was given.
8730if test "${with_pic+set}" = set; then :
8731 withval=$with_pic; pic_mode="$withval"
8732else
8733 pic_mode=default
8734fi
8735
8736
8737test -z "$pic_mode" && pic_mode=default
8738
8739
8740
8741
8742
8743
8744
8745 # Check whether --enable-fast-install was given.
8746if test "${enable_fast_install+set}" = set; then :
8747 enableval=$enable_fast_install; p=${PACKAGE-default}
8748 case $enableval in
8749 yes) enable_fast_install=yes ;;
8750 no) enable_fast_install=no ;;
8751 *)
8752 enable_fast_install=no
8753 # Look at the argument we got. We use all the common list separators.
8754 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8755 for pkg in $enableval; do
8756 IFS="$lt_save_ifs"
8757 if test "X$pkg" = "X$p"; then
8758 enable_fast_install=yes
8759 fi
8760 done
8761 IFS="$lt_save_ifs"
8762 ;;
8763 esac
8764else
8765 enable_fast_install=yes
8766fi
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778# This can be used to rebuild libtool when needed
8779LIBTOOL_DEPS="$ltmain"
8780
8781# Always use our own libtool.
8782LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809test -z "$LN_S" && LN_S="ln -s"
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824if test -n "${ZSH_VERSION+set}" ; then
8825 setopt NO_GLOB_SUBST
8826fi
8827
8828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8829$as_echo_n "checking for objdir... " >&6; }
8830if test "${lt_cv_objdir+set}" = set; then :
8831 $as_echo_n "(cached) " >&6
8832else
8833 rm -f .libs 2>/dev/null
8834mkdir .libs 2>/dev/null
8835if test -d .libs; then
8836 lt_cv_objdir=.libs
8837else
8838 # MS-DOS does not allow filenames that begin with a dot.
8839 lt_cv_objdir=_libs
8840fi
8841rmdir .libs 2>/dev/null
8842fi
8843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8844$as_echo "$lt_cv_objdir" >&6; }
8845objdir=$lt_cv_objdir
8846
8847
8848
8849
8850
8851cat >>confdefs.h <<_ACEOF
8852#define LT_OBJDIR "$lt_cv_objdir/"
8853_ACEOF
8854
8855
8856
8857
8858case $host_os in
8859aix3*)
8860 # AIX sometimes has problems with the GCC collect2 program. For some
8861 # reason, if we set the COLLECT_NAMES environment variable, the problems
8862 # vanish in a puff of smoke.
8863 if test "X${COLLECT_NAMES+set}" != Xset; then
8864 COLLECT_NAMES=
8865 export COLLECT_NAMES
8866 fi
8867 ;;
8868esac
8869
8870# Global variables:
8871ofile=libtool
8872can_build_shared=yes
8873
8874# All known linkers require a `.a' archive for static linking (except MSVC,
8875# which needs '.lib').
8876libext=a
8877
8878with_gnu_ld="$lt_cv_prog_gnu_ld"
8879
8880old_CC="$CC"
8881old_CFLAGS="$CFLAGS"
8882
8883# Set sane defaults for various variables
8884test -z "$CC" && CC=cc
8885test -z "$LTCC" && LTCC=$CC
8886test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8887test -z "$LD" && LD=ld
8888test -z "$ac_objext" && ac_objext=o
8889
8890for cc_temp in $compiler""; do
8891 case $cc_temp in
8892 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8893 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8894 \-*) ;;
8895 *) break;;
8896 esac
8897done
8898cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8899
8900
8901# Only perform the check for file, if the check method requires it
8902test -z "$MAGIC_CMD" && MAGIC_CMD=file
8903case $deplibs_check_method in
8904file_magic*)
8905 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8907$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8908if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8909 $as_echo_n "(cached) " >&6
8910else
8911 case $MAGIC_CMD in
8912[\\/*] | ?:[\\/]*)
8913 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8914 ;;
8915*)
8916 lt_save_MAGIC_CMD="$MAGIC_CMD"
8917 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8918 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8919 for ac_dir in $ac_dummy; do
8920 IFS="$lt_save_ifs"
8921 test -z "$ac_dir" && ac_dir=.
8922 if test -f $ac_dir/${ac_tool_prefix}file; then
8923 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8924 if test -n "$file_magic_test_file"; then
8925 case $deplibs_check_method in
8926 "file_magic "*)
8927 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8928 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8929 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8930 $EGREP "$file_magic_regex" > /dev/null; then
8931 :
8932 else
8933 cat <<_LT_EOF 1>&2
8934
8935*** Warning: the command libtool uses to detect shared libraries,
8936*** $file_magic_cmd, produces output that libtool cannot recognize.
8937*** The result is that libtool may fail to recognize shared libraries
8938*** as such. This will affect the creation of libtool libraries that
8939*** depend on shared libraries, but programs linked with such libtool
8940*** libraries will work regardless of this problem. Nevertheless, you
8941*** may want to report the problem to your system manager and/or to
8942*** bug-libtool@gnu.org
8943
8944_LT_EOF
8945 fi ;;
8946 esac
8947 fi
8948 break
8949 fi
8950 done
8951 IFS="$lt_save_ifs"
8952 MAGIC_CMD="$lt_save_MAGIC_CMD"
8953 ;;
8954esac
8955fi
8956
8957MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8958if test -n "$MAGIC_CMD"; then
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8960$as_echo "$MAGIC_CMD" >&6; }
8961else
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8963$as_echo "no" >&6; }
8964fi
8965
8966
8967
8968
8969
8970if test -z "$lt_cv_path_MAGIC_CMD"; then
8971 if test -n "$ac_tool_prefix"; then
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8973$as_echo_n "checking for file... " >&6; }
8974if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8975 $as_echo_n "(cached) " >&6
8976else
8977 case $MAGIC_CMD in
8978[\\/*] | ?:[\\/]*)
8979 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8980 ;;
8981*)
8982 lt_save_MAGIC_CMD="$MAGIC_CMD"
8983 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8984 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8985 for ac_dir in $ac_dummy; do
8986 IFS="$lt_save_ifs"
8987 test -z "$ac_dir" && ac_dir=.
8988 if test -f $ac_dir/file; then
8989 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8990 if test -n "$file_magic_test_file"; then
8991 case $deplibs_check_method in
8992 "file_magic "*)
8993 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8994 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8995 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8996 $EGREP "$file_magic_regex" > /dev/null; then
8997 :
8998 else
8999 cat <<_LT_EOF 1>&2
9000
9001*** Warning: the command libtool uses to detect shared libraries,
9002*** $file_magic_cmd, produces output that libtool cannot recognize.
9003*** The result is that libtool may fail to recognize shared libraries
9004*** as such. This will affect the creation of libtool libraries that
9005*** depend on shared libraries, but programs linked with such libtool
9006*** libraries will work regardless of this problem. Nevertheless, you
9007*** may want to report the problem to your system manager and/or to
9008*** bug-libtool@gnu.org
9009
9010_LT_EOF
9011 fi ;;
9012 esac
9013 fi
9014 break
9015 fi
9016 done
9017 IFS="$lt_save_ifs"
9018 MAGIC_CMD="$lt_save_MAGIC_CMD"
9019 ;;
9020esac
9021fi
9022
9023MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9024if test -n "$MAGIC_CMD"; then
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9026$as_echo "$MAGIC_CMD" >&6; }
9027else
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9029$as_echo "no" >&6; }
9030fi
9031
9032
9033 else
9034 MAGIC_CMD=:
9035 fi
9036fi
9037
9038 fi
9039 ;;
9040esac
9041
9042# Use C for the default configuration in the libtool script
9043
9044lt_save_CC="$CC"
9045ac_ext=c
9046ac_cpp='$CPP $CPPFLAGS'
9047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9049ac_compiler_gnu=$ac_cv_c_compiler_gnu
9050
9051
9052# Source file extension for C test sources.
9053ac_ext=c
9054
9055# Object file extension for compiled C test sources.
9056objext=o
9057objext=$objext
9058
9059# Code to be used in simple compile tests
9060lt_simple_compile_test_code="int some_variable = 0;"
9061
9062# Code to be used in simple link tests
9063lt_simple_link_test_code='int main(){return(0);}'
9064
9065
9066
9067
9068
9069
9070
9071# If no C compiler was specified, use CC.
9072LTCC=${LTCC-"$CC"}
9073
9074# If no C compiler flags were specified, use CFLAGS.
9075LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9076
9077# Allow CC to be a program name with arguments.
9078compiler=$CC
9079
9080# Save the default compiler, since it gets overwritten when the other
9081# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9082compiler_DEFAULT=$CC
9083
9084# save warnings/boilerplate of simple test code
9085ac_outfile=conftest.$ac_objext
9086echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9087eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9088_lt_compiler_boilerplate=`cat conftest.err`
9089$RM conftest*
9090
9091ac_outfile=conftest.$ac_objext
9092echo "$lt_simple_link_test_code" >conftest.$ac_ext
9093eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9094_lt_linker_boilerplate=`cat conftest.err`
9095$RM -r conftest*
9096
9097
9098## CAVEAT EMPTOR:
9099## There is no encapsulation within the following macros, do not change
9100## the running order or otherwise move them around unless you know exactly
9101## what you are doing...
9102if test -n "$compiler"; then
9103
9104lt_prog_compiler_no_builtin_flag=
9105
9106if test "$GCC" = yes; then
9107 case $cc_basename in
9108 nvcc*)
9109 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9110 *)
9111 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9112 esac
9113
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9115$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9116if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9117 $as_echo_n "(cached) " >&6
9118else
9119 lt_cv_prog_compiler_rtti_exceptions=no
9120 ac_outfile=conftest.$ac_objext
9121 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9122 lt_compiler_flag="-fno-rtti -fno-exceptions"
9123 # Insert the option either (1) after the last *FLAGS variable, or
9124 # (2) before a word containing "conftest.", or (3) at the end.
9125 # Note that $ac_compile itself does not contain backslashes and begins
9126 # with a dollar sign (not a hyphen), so the echo should work correctly.
9127 # The option is referenced via a variable to avoid confusing sed.
9128 lt_compile=`echo "$ac_compile" | $SED \
9129 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9130 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9131 -e 's:$: $lt_compiler_flag:'`
9132 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9133 (eval "$lt_compile" 2>conftest.err)
9134 ac_status=$?
9135 cat conftest.err >&5
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 if (exit $ac_status) && test -s "$ac_outfile"; then
9138 # The compiler can only warn and ignore the option if not recognized
9139 # So say no if there are warnings other than the usual output.
9140 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9141 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9142 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9143 lt_cv_prog_compiler_rtti_exceptions=yes
9144 fi
9145 fi
9146 $RM conftest*
9147
9148fi
9149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9150$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9151
9152if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9153 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9154else
9155 :
9156fi
9157
9158fi
9159
9160
9161
9162
9163
9164
9165 lt_prog_compiler_wl=
9166lt_prog_compiler_pic=
9167lt_prog_compiler_static=
9168
9169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9170$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9171
9172 if test "$GCC" = yes; then
9173 lt_prog_compiler_wl='-Wl,'
9174 lt_prog_compiler_static='-static'
9175
9176 case $host_os in
9177 aix*)
9178 # All AIX code is PIC.
9179 if test "$host_cpu" = ia64; then
9180 # AIX 5 now supports IA64 processor
9181 lt_prog_compiler_static='-Bstatic'
9182 fi
9183 lt_prog_compiler_pic='-fPIC'
9184 ;;
9185
9186 amigaos*)
9187 case $host_cpu in
9188 powerpc)
9189 # see comment about AmigaOS4 .so support
9190 lt_prog_compiler_pic='-fPIC'
9191 ;;
9192 m68k)
9193 # FIXME: we need at least 68020 code to build shared libraries, but
9194 # adding the `-m68020' flag to GCC prevents building anything better,
9195 # like `-m68040'.
9196 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9197 ;;
9198 esac
9199 ;;
9200
9201 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9202 # PIC is the default for these OSes.
9203 ;;
9204
9205 mingw* | cygwin* | pw32* | os2* | cegcc*)
9206 # This hack is so that the source file can tell whether it is being
9207 # built for inclusion in a dll (and should export symbols for example).
9208 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9209 # (--disable-auto-import) libraries
9210 lt_prog_compiler_pic='-DDLL_EXPORT'
9211 ;;
9212
9213 darwin* | rhapsody*)
9214 # PIC is the default on this platform
9215 # Common symbols not allowed in MH_DYLIB files
9216 lt_prog_compiler_pic='-fno-common'
9217 ;;
9218
9219 haiku*)
9220 # PIC is the default for Haiku.
9221 # The "-static" flag exists, but is broken.
9222 lt_prog_compiler_static=
9223 ;;
9224
9225 hpux*)
9226 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9227 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9228 # sets the default TLS model and affects inlining.
9229 case $host_cpu in
9230 hppa*64*)
9231 # +Z the default
9232 ;;
9233 *)
9234 lt_prog_compiler_pic='-fPIC'
9235 ;;
9236 esac
9237 ;;
9238
9239 interix[3-9]*)
9240 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9241 # Instead, we relocate shared libraries at runtime.
9242 ;;
9243
9244 msdosdjgpp*)
9245 # Just because we use GCC doesn't mean we suddenly get shared libraries
9246 # on systems that don't support them.
9247 lt_prog_compiler_can_build_shared=no
9248 enable_shared=no
9249 ;;
9250
9251 *nto* | *qnx*)
9252 # QNX uses GNU C++, but need to define -shared option too, otherwise
9253 # it will coredump.
9254 lt_prog_compiler_pic='-fPIC -shared'
9255 ;;
9256
9257 sysv4*MP*)
9258 if test -d /usr/nec; then
9259 lt_prog_compiler_pic=-Kconform_pic
9260 fi
9261 ;;
9262
9263 *)
9264 lt_prog_compiler_pic='-fPIC'
9265 ;;
9266 esac
9267
9268 case $cc_basename in
9269 nvcc*) # Cuda Compiler Driver 2.2
9270 lt_prog_compiler_wl='-Xlinker '
9271 lt_prog_compiler_pic='-Xcompiler -fPIC'
9272 ;;
9273 esac
9274 else
9275 # PORTME Check for flag to pass linker flags through the system compiler.
9276 case $host_os in
9277 aix*)
9278 lt_prog_compiler_wl='-Wl,'
9279 if test "$host_cpu" = ia64; then
9280 # AIX 5 now supports IA64 processor
9281 lt_prog_compiler_static='-Bstatic'
9282 else
9283 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9284 fi
9285 ;;
9286
9287 mingw* | cygwin* | pw32* | os2* | cegcc*)
9288 # This hack is so that the source file can tell whether it is being
9289 # built for inclusion in a dll (and should export symbols for example).
9290 lt_prog_compiler_pic='-DDLL_EXPORT'
9291 ;;
9292
9293 hpux9* | hpux10* | hpux11*)
9294 lt_prog_compiler_wl='-Wl,'
9295 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9296 # not for PA HP-UX.
9297 case $host_cpu in
9298 hppa*64*|ia64*)
9299 # +Z the default
9300 ;;
9301 *)
9302 lt_prog_compiler_pic='+Z'
9303 ;;
9304 esac
9305 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9306 lt_prog_compiler_static='${wl}-a ${wl}archive'
9307 ;;
9308
9309 irix5* | irix6* | nonstopux*)
9310 lt_prog_compiler_wl='-Wl,'
9311 # PIC (with -KPIC) is the default.
9312 lt_prog_compiler_static='-non_shared'
9313 ;;
9314
9315 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9316 case $cc_basename in
9317 # old Intel for x86_64 which still supported -KPIC.
9318 ecc*)
9319 lt_prog_compiler_wl='-Wl,'
9320 lt_prog_compiler_pic='-KPIC'
9321 lt_prog_compiler_static='-static'
9322 ;;
9323 # icc used to be incompatible with GCC.
9324 # ICC 10 doesn't accept -KPIC any more.
9325 icc* | ifort*)
9326 lt_prog_compiler_wl='-Wl,'
9327 lt_prog_compiler_pic='-fPIC'
9328 lt_prog_compiler_static='-static'
9329 ;;
9330 # Lahey Fortran 8.1.
9331 lf95*)
9332 lt_prog_compiler_wl='-Wl,'
9333 lt_prog_compiler_pic='--shared'
9334 lt_prog_compiler_static='--static'
9335 ;;
9336 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9337 # Portland Group compilers (*not* the Pentium gcc compiler,
9338 # which looks to be a dead project)
9339 lt_prog_compiler_wl='-Wl,'
9340 lt_prog_compiler_pic='-fpic'
9341 lt_prog_compiler_static='-Bstatic'
9342 ;;
9343 ccc*)
9344 lt_prog_compiler_wl='-Wl,'
9345 # All Alpha code is PIC.
9346 lt_prog_compiler_static='-non_shared'
9347 ;;
9348 xl* | bgxl* | bgf* | mpixl*)
9349 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9350 lt_prog_compiler_wl='-Wl,'
9351 lt_prog_compiler_pic='-qpic'
9352 lt_prog_compiler_static='-qstaticlink'
9353 ;;
9354 *)
9355 case `$CC -V 2>&1 | sed 5q` in
9356 *Sun\ F* | *Sun*Fortran*)
9357 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9358 lt_prog_compiler_pic='-KPIC'
9359 lt_prog_compiler_static='-Bstatic'
9360 lt_prog_compiler_wl=''
9361 ;;
9362 *Sun\ C*)
9363 # Sun C 5.9
9364 lt_prog_compiler_pic='-KPIC'
9365 lt_prog_compiler_static='-Bstatic'
9366 lt_prog_compiler_wl='-Wl,'
9367 ;;
9368 esac
9369 ;;
9370 esac
9371 ;;
9372
9373 newsos6)
9374 lt_prog_compiler_pic='-KPIC'
9375 lt_prog_compiler_static='-Bstatic'
9376 ;;
9377
9378 *nto* | *qnx*)
9379 # QNX uses GNU C++, but need to define -shared option too, otherwise
9380 # it will coredump.
9381 lt_prog_compiler_pic='-fPIC -shared'
9382 ;;
9383
9384 osf3* | osf4* | osf5*)
9385 lt_prog_compiler_wl='-Wl,'
9386 # All OSF/1 code is PIC.
9387 lt_prog_compiler_static='-non_shared'
9388 ;;
9389
9390 rdos*)
9391 lt_prog_compiler_static='-non_shared'
9392 ;;
9393
9394 solaris*)
9395 lt_prog_compiler_pic='-KPIC'
9396 lt_prog_compiler_static='-Bstatic'
9397 case $cc_basename in
9398 f77* | f90* | f95*)
9399 lt_prog_compiler_wl='-Qoption ld ';;
9400 *)
9401 lt_prog_compiler_wl='-Wl,';;
9402 esac
9403 ;;
9404
9405 sunos4*)
9406 lt_prog_compiler_wl='-Qoption ld '
9407 lt_prog_compiler_pic='-PIC'
9408 lt_prog_compiler_static='-Bstatic'
9409 ;;
9410
9411 sysv4 | sysv4.2uw2* | sysv4.3*)
9412 lt_prog_compiler_wl='-Wl,'
9413 lt_prog_compiler_pic='-KPIC'
9414 lt_prog_compiler_static='-Bstatic'
9415 ;;
9416
9417 sysv4*MP*)
9418 if test -d /usr/nec ;then
9419 lt_prog_compiler_pic='-Kconform_pic'
9420 lt_prog_compiler_static='-Bstatic'
9421 fi
9422 ;;
9423
9424 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9425 lt_prog_compiler_wl='-Wl,'
9426 lt_prog_compiler_pic='-KPIC'
9427 lt_prog_compiler_static='-Bstatic'
9428 ;;
9429
9430 unicos*)
9431 lt_prog_compiler_wl='-Wl,'
9432 lt_prog_compiler_can_build_shared=no
9433 ;;
9434
9435 uts4*)
9436 lt_prog_compiler_pic='-pic'
9437 lt_prog_compiler_static='-Bstatic'
9438 ;;
9439
9440 *)
9441 lt_prog_compiler_can_build_shared=no
9442 ;;
9443 esac
9444 fi
9445
9446case $host_os in
9447 # For platforms which do not support PIC, -DPIC is meaningless:
9448 *djgpp*)
9449 lt_prog_compiler_pic=
9450 ;;
9451 *)
9452 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9453 ;;
9454esac
9455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9456$as_echo "$lt_prog_compiler_pic" >&6; }
9457
9458
9459
9460
9461
9462
9463#
9464# Check to make sure the PIC flag actually works.
9465#
9466if test -n "$lt_prog_compiler_pic"; then
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9468$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9469if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9470 $as_echo_n "(cached) " >&6
9471else
9472 lt_cv_prog_compiler_pic_works=no
9473 ac_outfile=conftest.$ac_objext
9474 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9475 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9476 # Insert the option either (1) after the last *FLAGS variable, or
9477 # (2) before a word containing "conftest.", or (3) at the end.
9478 # Note that $ac_compile itself does not contain backslashes and begins
9479 # with a dollar sign (not a hyphen), so the echo should work correctly.
9480 # The option is referenced via a variable to avoid confusing sed.
9481 lt_compile=`echo "$ac_compile" | $SED \
9482 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9483 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9484 -e 's:$: $lt_compiler_flag:'`
9485 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9486 (eval "$lt_compile" 2>conftest.err)
9487 ac_status=$?
9488 cat conftest.err >&5
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 if (exit $ac_status) && test -s "$ac_outfile"; then
9491 # The compiler can only warn and ignore the option if not recognized
9492 # So say no if there are warnings other than the usual output.
9493 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9494 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9495 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9496 lt_cv_prog_compiler_pic_works=yes
9497 fi
9498 fi
9499 $RM conftest*
9500
9501fi
9502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9503$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9504
9505if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9506 case $lt_prog_compiler_pic in
9507 "" | " "*) ;;
9508 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9509 esac
9510else
9511 lt_prog_compiler_pic=
9512 lt_prog_compiler_can_build_shared=no
9513fi
9514
9515fi
9516
9517
9518
9519
9520
9521
9522#
9523# Check to make sure the static flag actually works.
9524#
9525wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9527$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9528if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9529 $as_echo_n "(cached) " >&6
9530else
9531 lt_cv_prog_compiler_static_works=no
9532 save_LDFLAGS="$LDFLAGS"
9533 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9534 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9535 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9536 # The linker can only warn and ignore the option if not recognized
9537 # So say no if there are warnings
9538 if test -s conftest.err; then
9539 # Append any errors to the config.log.
9540 cat conftest.err 1>&5
9541 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9542 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9543 if diff conftest.exp conftest.er2 >/dev/null; then
9544 lt_cv_prog_compiler_static_works=yes
9545 fi
9546 else
9547 lt_cv_prog_compiler_static_works=yes
9548 fi
9549 fi
9550 $RM -r conftest*
9551 LDFLAGS="$save_LDFLAGS"
9552
9553fi
9554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9555$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9556
9557if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9558 :
9559else
9560 lt_prog_compiler_static=
9561fi
9562
9563
9564
9565
9566
9567
9568
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9570$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9571if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9572 $as_echo_n "(cached) " >&6
9573else
9574 lt_cv_prog_compiler_c_o=no
9575 $RM -r conftest 2>/dev/null
9576 mkdir conftest
9577 cd conftest
9578 mkdir out
9579 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9580
9581 lt_compiler_flag="-o out/conftest2.$ac_objext"
9582 # Insert the option either (1) after the last *FLAGS variable, or
9583 # (2) before a word containing "conftest.", or (3) at the end.
9584 # Note that $ac_compile itself does not contain backslashes and begins
9585 # with a dollar sign (not a hyphen), so the echo should work correctly.
9586 lt_compile=`echo "$ac_compile" | $SED \
9587 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9588 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9589 -e 's:$: $lt_compiler_flag:'`
9590 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9591 (eval "$lt_compile" 2>out/conftest.err)
9592 ac_status=$?
9593 cat out/conftest.err >&5
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9596 then
9597 # The compiler can only warn and ignore the option if not recognized
9598 # So say no if there are warnings
9599 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9600 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9601 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9602 lt_cv_prog_compiler_c_o=yes
9603 fi
9604 fi
9605 chmod u+w . 2>&5
9606 $RM conftest*
9607 # SGI C++ compiler will create directory out/ii_files/ for
9608 # template instantiation
9609 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9610 $RM out/* && rmdir out
9611 cd ..
9612 $RM -r conftest
9613 $RM conftest*
9614
9615fi
9616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9617$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9618
9619
9620
9621
9622
9623
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9625$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9626if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9627 $as_echo_n "(cached) " >&6
9628else
9629 lt_cv_prog_compiler_c_o=no
9630 $RM -r conftest 2>/dev/null
9631 mkdir conftest
9632 cd conftest
9633 mkdir out
9634 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9635
9636 lt_compiler_flag="-o out/conftest2.$ac_objext"
9637 # Insert the option either (1) after the last *FLAGS variable, or
9638 # (2) before a word containing "conftest.", or (3) at the end.
9639 # Note that $ac_compile itself does not contain backslashes and begins
9640 # with a dollar sign (not a hyphen), so the echo should work correctly.
9641 lt_compile=`echo "$ac_compile" | $SED \
9642 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9643 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9644 -e 's:$: $lt_compiler_flag:'`
9645 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9646 (eval "$lt_compile" 2>out/conftest.err)
9647 ac_status=$?
9648 cat out/conftest.err >&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9651 then
9652 # The compiler can only warn and ignore the option if not recognized
9653 # So say no if there are warnings
9654 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9655 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9656 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9657 lt_cv_prog_compiler_c_o=yes
9658 fi
9659 fi
9660 chmod u+w . 2>&5
9661 $RM conftest*
9662 # SGI C++ compiler will create directory out/ii_files/ for
9663 # template instantiation
9664 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9665 $RM out/* && rmdir out
9666 cd ..
9667 $RM -r conftest
9668 $RM conftest*
9669
9670fi
9671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9672$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9673
9674
9675
9676
9677hard_links="nottested"
9678if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9679 # do not overwrite the value of need_locks provided by the user
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9681$as_echo_n "checking if we can lock with hard links... " >&6; }
9682 hard_links=yes
9683 $RM conftest*
9684 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9685 touch conftest.a
9686 ln conftest.a conftest.b 2>&5 || hard_links=no
9687 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9689$as_echo "$hard_links" >&6; }
9690 if test "$hard_links" = no; then
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9692$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9693 need_locks=warn
9694 fi
9695else
9696 need_locks=no
9697fi
9698
9699
9700
9701
9702
9703
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9705$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9706
9707 runpath_var=
9708 allow_undefined_flag=
9709 always_export_symbols=no
9710 archive_cmds=
9711 archive_expsym_cmds=
9712 compiler_needs_object=no
9713 enable_shared_with_static_runtimes=no
9714 export_dynamic_flag_spec=
9715 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9716 hardcode_automatic=no
9717 hardcode_direct=no
9718 hardcode_direct_absolute=no
9719 hardcode_libdir_flag_spec=
9720 hardcode_libdir_flag_spec_ld=
9721 hardcode_libdir_separator=
9722 hardcode_minus_L=no
9723 hardcode_shlibpath_var=unsupported
9724 inherit_rpath=no
9725 link_all_deplibs=unknown
9726 module_cmds=
9727 module_expsym_cmds=
9728 old_archive_from_new_cmds=
9729 old_archive_from_expsyms_cmds=
9730 thread_safe_flag_spec=
9731 whole_archive_flag_spec=
9732 # include_expsyms should be a list of space-separated symbols to be *always*
9733 # included in the symbol list
9734 include_expsyms=
9735 # exclude_expsyms can be an extended regexp of symbols to exclude
9736 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9737 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9738 # as well as any symbol that contains `d'.
9739 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9740 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9741 # platforms (ab)use it in PIC code, but their linkers get confused if
9742 # the symbol is explicitly referenced. Since portable code cannot
9743 # rely on this symbol name, it's probably fine to never include it in
9744 # preloaded symbol tables.
9745 # Exclude shared library initialization/finalization symbols.
9746 extract_expsyms_cmds=
9747
9748 case $host_os in
9749 cygwin* | mingw* | pw32* | cegcc*)
9750 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9751 # When not using gcc, we currently assume that we are using
9752 # Microsoft Visual C++.
9753 if test "$GCC" != yes; then
9754 with_gnu_ld=no
9755 fi
9756 ;;
9757 interix*)
9758 # we just hope/assume this is gcc and not c89 (= MSVC++)
9759 with_gnu_ld=yes
9760 ;;
9761 openbsd*)
9762 with_gnu_ld=no
9763 ;;
9764 esac
9765
9766 ld_shlibs=yes
9767
9768 # On some targets, GNU ld is compatible enough with the native linker
9769 # that we're better off using the native interface for both.
9770 lt_use_gnu_ld_interface=no
9771 if test "$with_gnu_ld" = yes; then
9772 case $host_os in
9773 aix*)
9774 # The AIX port of GNU ld has always aspired to compatibility
9775 # with the native linker. However, as the warning in the GNU ld
9776 # block says, versions before 2.19.5* couldn't really create working
9777 # shared libraries, regardless of the interface used.
9778 case `$LD -v 2>&1` in
9779 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9780 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9781 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9782 *)
9783 lt_use_gnu_ld_interface=yes
9784 ;;
9785 esac
9786 ;;
9787 *)
9788 lt_use_gnu_ld_interface=yes
9789 ;;
9790 esac
9791 fi
9792
9793 if test "$lt_use_gnu_ld_interface" = yes; then
9794 # If archive_cmds runs LD, not CC, wlarc should be empty
9795 wlarc='${wl}'
9796
9797 # Set some defaults for GNU ld with shared library support. These
9798 # are reset later if shared libraries are not supported. Putting them
9799 # here allows them to be overridden if necessary.
9800 runpath_var=LD_RUN_PATH
9801 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9802 export_dynamic_flag_spec='${wl}--export-dynamic'
9803 # ancient GNU ld didn't support --whole-archive et. al.
9804 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9805 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9806 else
9807 whole_archive_flag_spec=
9808 fi
9809 supports_anon_versioning=no
9810 case `$LD -v 2>&1` in
9811 *GNU\ gold*) supports_anon_versioning=yes ;;
9812 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9813 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9814 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9815 *\ 2.11.*) ;; # other 2.11 versions
9816 *) supports_anon_versioning=yes ;;
9817 esac
9818
9819 # See if GNU ld supports shared libraries.
9820 case $host_os in
9821 aix[3-9]*)
9822 # On AIX/PPC, the GNU linker is very broken
9823 if test "$host_cpu" != ia64; then
9824 ld_shlibs=no
9825 cat <<_LT_EOF 1>&2
9826
9827*** Warning: the GNU linker, at least up to release 2.19, is reported
9828*** to be unable to reliably create shared libraries on AIX.
9829*** Therefore, libtool is disabling shared libraries support. If you
9830*** really care for shared libraries, you may want to install binutils
9831*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9832*** You will then need to restart the configuration process.
9833
9834_LT_EOF
9835 fi
9836 ;;
9837
9838 amigaos*)
9839 case $host_cpu in
9840 powerpc)
9841 # see comment about AmigaOS4 .so support
9842 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9843 archive_expsym_cmds=''
9844 ;;
9845 m68k)
9846 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)'
9847 hardcode_libdir_flag_spec='-L$libdir'
9848 hardcode_minus_L=yes
9849 ;;
9850 esac
9851 ;;
9852
9853 beos*)
9854 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9855 allow_undefined_flag=unsupported
9856 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9857 # support --undefined. This deserves some investigation. FIXME
9858 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9859 else
9860 ld_shlibs=no
9861 fi
9862 ;;
9863
9864 cygwin* | mingw* | pw32* | cegcc*)
9865 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9866 # as there is no search path for DLLs.
9867 hardcode_libdir_flag_spec='-L$libdir'
9868 export_dynamic_flag_spec='${wl}--export-all-symbols'
9869 allow_undefined_flag=unsupported
9870 always_export_symbols=no
9871 enable_shared_with_static_runtimes=yes
9872 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9873
9874 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9875 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9876 # If the export-symbols file already is a .def file (1st line
9877 # is EXPORTS), use it as is; otherwise, prepend...
9878 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9879 cp $export_symbols $output_objdir/$soname.def;
9880 else
9881 echo EXPORTS > $output_objdir/$soname.def;
9882 cat $export_symbols >> $output_objdir/$soname.def;
9883 fi~
9884 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9885 else
9886 ld_shlibs=no
9887 fi
9888 ;;
9889
9890 haiku*)
9891 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9892 link_all_deplibs=yes
9893 ;;
9894
9895 interix[3-9]*)
9896 hardcode_direct=no
9897 hardcode_shlibpath_var=no
9898 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9899 export_dynamic_flag_spec='${wl}-E'
9900 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9901 # Instead, shared libraries are loaded at an image base (0x10000000 by
9902 # default) and relocated if they conflict, which is a slow very memory
9903 # consuming and fragmenting process. To avoid this, we pick a random,
9904 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9905 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9906 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9907 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'
9908 ;;
9909
9910 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9911 tmp_diet=no
9912 if test "$host_os" = linux-dietlibc; then
9913 case $cc_basename in
9914 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9915 esac
9916 fi
9917 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9918 && test "$tmp_diet" = no
9919 then
a699d672 9920 tmp_addflag=' $pic_flag'
2077db1b
CT
9921 tmp_sharedflag='-shared'
9922 case $cc_basename,$host_cpu in
9923 pgcc*) # Portland Group C compiler
9924 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9925 tmp_addflag=' $pic_flag'
9926 ;;
9927 pgf77* | pgf90* | pgf95* | pgfortran*)
9928 # Portland Group f77 and f90 compilers
9929 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9930 tmp_addflag=' $pic_flag -Mnomain' ;;
9931 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9932 tmp_addflag=' -i_dynamic' ;;
9933 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9934 tmp_addflag=' -i_dynamic -nofor_main' ;;
9935 ifc* | ifort*) # Intel Fortran compiler
9936 tmp_addflag=' -nofor_main' ;;
9937 lf95*) # Lahey Fortran 8.1
9938 whole_archive_flag_spec=
9939 tmp_sharedflag='--shared' ;;
9940 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9941 tmp_sharedflag='-qmkshrobj'
9942 tmp_addflag= ;;
9943 nvcc*) # Cuda Compiler Driver 2.2
9944 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9945 compiler_needs_object=yes
9946 ;;
9947 esac
9948 case `$CC -V 2>&1 | sed 5q` in
9949 *Sun\ C*) # Sun C 5.9
9950 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9951 compiler_needs_object=yes
9952 tmp_sharedflag='-G' ;;
9953 *Sun\ F*) # Sun Fortran 8.3
9954 tmp_sharedflag='-G' ;;
9955 esac
9956 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9957
9958 if test "x$supports_anon_versioning" = xyes; then
9959 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9960 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9961 echo "local: *; };" >> $output_objdir/$libname.ver~
9962 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9963 fi
9964
9965 case $cc_basename in
9966 xlf* | bgf* | bgxlf* | mpixlf*)
9967 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9968 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9969 hardcode_libdir_flag_spec=
9970 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9971 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9972 if test "x$supports_anon_versioning" = xyes; then
9973 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9974 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9975 echo "local: *; };" >> $output_objdir/$libname.ver~
9976 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9977 fi
9978 ;;
9979 esac
9980 else
9981 ld_shlibs=no
9982 fi
9983 ;;
9984
9985 netbsd*)
9986 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9987 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9988 wlarc=
9989 else
9990 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9991 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9992 fi
9993 ;;
9994
9995 solaris*)
9996 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9997 ld_shlibs=no
9998 cat <<_LT_EOF 1>&2
9999
10000*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10001*** create shared libraries on Solaris systems. Therefore, libtool
10002*** is disabling shared libraries support. We urge you to upgrade GNU
10003*** binutils to release 2.9.1 or newer. Another option is to modify
10004*** your PATH or compiler configuration so that the native linker is
10005*** used, and then restart.
10006
10007_LT_EOF
10008 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10009 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10010 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10011 else
10012 ld_shlibs=no
10013 fi
10014 ;;
10015
10016 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10017 case `$LD -v 2>&1` in
10018 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10019 ld_shlibs=no
10020 cat <<_LT_EOF 1>&2
10021
10022*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10023*** reliably create shared libraries on SCO systems. Therefore, libtool
10024*** is disabling shared libraries support. We urge you to upgrade GNU
10025*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10026*** your PATH or compiler configuration so that the native linker is
10027*** used, and then restart.
10028
10029_LT_EOF
10030 ;;
10031 *)
10032 # For security reasons, it is highly recommended that you always
10033 # use absolute paths for naming shared libraries, and exclude the
10034 # DT_RUNPATH tag from executables and libraries. But doing so
10035 # requires that you compile everything twice, which is a pain.
10036 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10037 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10038 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10039 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10040 else
10041 ld_shlibs=no
10042 fi
10043 ;;
10044 esac
10045 ;;
10046
10047 sunos4*)
10048 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10049 wlarc=
10050 hardcode_direct=yes
10051 hardcode_shlibpath_var=no
10052 ;;
10053
10054 *)
10055 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10056 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10057 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10058 else
10059 ld_shlibs=no
10060 fi
10061 ;;
10062 esac
10063
10064 if test "$ld_shlibs" = no; then
10065 runpath_var=
10066 hardcode_libdir_flag_spec=
10067 export_dynamic_flag_spec=
10068 whole_archive_flag_spec=
10069 fi
10070 else
10071 # PORTME fill in a description of your system's linker (not GNU ld)
10072 case $host_os in
10073 aix3*)
10074 allow_undefined_flag=unsupported
10075 always_export_symbols=yes
10076 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'
10077 # Note: this linker hardcodes the directories in LIBPATH if there
10078 # are no directories specified by -L.
10079 hardcode_minus_L=yes
10080 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10081 # Neither direct hardcoding nor static linking is supported with a
10082 # broken collect2.
10083 hardcode_direct=unsupported
10084 fi
10085 ;;
10086
10087 aix[4-9]*)
10088 if test "$host_cpu" = ia64; then
10089 # On IA64, the linker does run time linking by default, so we don't
10090 # have to do anything special.
10091 aix_use_runtimelinking=no
10092 exp_sym_flag='-Bexport'
10093 no_entry_flag=""
10094 else
10095 # If we're using GNU nm, then we don't want the "-C" option.
10096 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10097 # Also, AIX nm treats weak defined symbols like other global
10098 # defined symbols, whereas GNU nm marks them as "W".
10099 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10100 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10101 else
10102 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'
10103 fi
10104 aix_use_runtimelinking=no
10105
10106 # Test if we are trying to use run time linking or normal
10107 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10108 # need to do runtime linking.
10109 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10110 for ld_flag in $LDFLAGS; do
10111 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10112 aix_use_runtimelinking=yes
10113 break
10114 fi
10115 done
10116 ;;
10117 esac
10118
10119 exp_sym_flag='-bexport'
10120 no_entry_flag='-bnoentry'
10121 fi
10122
10123 # When large executables or shared objects are built, AIX ld can
10124 # have problems creating the table of contents. If linking a library
10125 # or program results in "error TOC overflow" add -mminimal-toc to
10126 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10127 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10128
10129 archive_cmds=''
10130 hardcode_direct=yes
10131 hardcode_direct_absolute=yes
10132 hardcode_libdir_separator=':'
10133 link_all_deplibs=yes
10134 file_list_spec='${wl}-f,'
10135
10136 if test "$GCC" = yes; then
10137 case $host_os in aix4.[012]|aix4.[012].*)
10138 # We only want to do this on AIX 4.2 and lower, the check
10139 # below for broken collect2 doesn't work under 4.3+
10140 collect2name=`${CC} -print-prog-name=collect2`
10141 if test -f "$collect2name" &&
10142 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10143 then
10144 # We have reworked collect2
10145 :
10146 else
10147 # We have old collect2
10148 hardcode_direct=unsupported
10149 # It fails to find uninstalled libraries when the uninstalled
10150 # path is not listed in the libpath. Setting hardcode_minus_L
10151 # to unsupported forces relinking
10152 hardcode_minus_L=yes
10153 hardcode_libdir_flag_spec='-L$libdir'
10154 hardcode_libdir_separator=
10155 fi
10156 ;;
10157 esac
10158 shared_flag='-shared'
10159 if test "$aix_use_runtimelinking" = yes; then
10160 shared_flag="$shared_flag "'${wl}-G'
10161 fi
10162 else
10163 # not using gcc
10164 if test "$host_cpu" = ia64; then
10165 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10166 # chokes on -Wl,-G. The following line is correct:
10167 shared_flag='-G'
10168 else
10169 if test "$aix_use_runtimelinking" = yes; then
10170 shared_flag='${wl}-G'
10171 else
10172 shared_flag='${wl}-bM:SRE'
10173 fi
10174 fi
10175 fi
10176
10177 export_dynamic_flag_spec='${wl}-bexpall'
10178 # It seems that -bexpall does not export symbols beginning with
10179 # underscore (_), so it is better to generate a list of symbols to export.
10180 always_export_symbols=yes
10181 if test "$aix_use_runtimelinking" = yes; then
10182 # Warning - without using the other runtime loading flags (-brtl),
10183 # -berok will link without error, but may produce a broken library.
10184 allow_undefined_flag='-berok'
10185 # Determine the default libpath from the value encoded in an
10186 # empty executable.
10187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10188/* end confdefs.h. */
10189
10190int
10191main ()
10192{
10193
10194 ;
10195 return 0;
10196}
10197_ACEOF
10198if ac_fn_c_try_link "$LINENO"; then :
10199
10200lt_aix_libpath_sed='
10201 /Import File Strings/,/^$/ {
10202 /^0/ {
10203 s/^0 *\(.*\)$/\1/
10204 p
10205 }
10206 }'
10207aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10208# Check for a 64-bit object if we didn't find anything.
10209if test -z "$aix_libpath"; then
10210 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10211fi
10212fi
10213rm -f core conftest.err conftest.$ac_objext \
10214 conftest$ac_exeext conftest.$ac_ext
10215if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10216
10217 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10218 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10219 else
10220 if test "$host_cpu" = ia64; then
10221 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10222 allow_undefined_flag="-z nodefs"
10223 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"
10224 else
10225 # Determine the default libpath from the value encoded in an
10226 # empty executable.
10227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10228/* end confdefs.h. */
10229
10230int
10231main ()
10232{
10233
10234 ;
10235 return 0;
10236}
10237_ACEOF
10238if ac_fn_c_try_link "$LINENO"; then :
10239
10240lt_aix_libpath_sed='
10241 /Import File Strings/,/^$/ {
10242 /^0/ {
10243 s/^0 *\(.*\)$/\1/
10244 p
10245 }
10246 }'
10247aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10248# Check for a 64-bit object if we didn't find anything.
10249if test -z "$aix_libpath"; then
10250 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10251fi
10252fi
10253rm -f core conftest.err conftest.$ac_objext \
10254 conftest$ac_exeext conftest.$ac_ext
10255if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10256
10257 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10258 # Warning - without using the other run time loading flags,
10259 # -berok will link without error, but may produce a broken library.
10260 no_undefined_flag=' ${wl}-bernotok'
10261 allow_undefined_flag=' ${wl}-berok'
10262 if test "$with_gnu_ld" = yes; then
10263 # We only use this code for GNU lds that support --whole-archive.
10264 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10265 else
10266 # Exported symbols can be pulled into shared objects from archives
10267 whole_archive_flag_spec='$convenience'
10268 fi
10269 archive_cmds_need_lc=yes
10270 # This is similar to how AIX traditionally builds its shared libraries.
10271 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'
10272 fi
10273 fi
10274 ;;
10275
10276 amigaos*)
10277 case $host_cpu in
10278 powerpc)
10279 # see comment about AmigaOS4 .so support
10280 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10281 archive_expsym_cmds=''
10282 ;;
10283 m68k)
10284 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)'
10285 hardcode_libdir_flag_spec='-L$libdir'
10286 hardcode_minus_L=yes
10287 ;;
10288 esac
10289 ;;
10290
10291 bsdi[45]*)
10292 export_dynamic_flag_spec=-rdynamic
10293 ;;
10294
10295 cygwin* | mingw* | pw32* | cegcc*)
10296 # When not using gcc, we currently assume that we are using
10297 # Microsoft Visual C++.
10298 # hardcode_libdir_flag_spec is actually meaningless, as there is
10299 # no search path for DLLs.
10300 hardcode_libdir_flag_spec=' '
10301 allow_undefined_flag=unsupported
10302 # Tell ltmain to make .lib files, not .a files.
10303 libext=lib
10304 # Tell ltmain to make .dll files, not .so files.
10305 shrext_cmds=".dll"
10306 # FIXME: Setting linknames here is a bad hack.
10307 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10308 # The linker will automatically build a .lib file if we build a DLL.
10309 old_archive_from_new_cmds='true'
10310 # FIXME: Should let the user specify the lib program.
10311 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10312 fix_srcfile_path='`cygpath -w "$srcfile"`'
10313 enable_shared_with_static_runtimes=yes
10314 ;;
10315
10316 darwin* | rhapsody*)
10317
10318
10319 archive_cmds_need_lc=no
10320 hardcode_direct=no
10321 hardcode_automatic=yes
10322 hardcode_shlibpath_var=unsupported
10323 if test "$lt_cv_ld_force_load" = "yes"; then
10324 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10325 else
10326 whole_archive_flag_spec=''
10327 fi
10328 link_all_deplibs=yes
10329 allow_undefined_flag="$_lt_dar_allow_undefined"
10330 case $cc_basename in
10331 ifort*) _lt_dar_can_shared=yes ;;
10332 *) _lt_dar_can_shared=$GCC ;;
10333 esac
10334 if test "$_lt_dar_can_shared" = "yes"; then
10335 output_verbose_link_cmd=func_echo_all
10336 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10337 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10338 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}"
10339 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}"
10340
10341 else
10342 ld_shlibs=no
10343 fi
10344
10345 ;;
10346
10347 dgux*)
10348 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10349 hardcode_libdir_flag_spec='-L$libdir'
10350 hardcode_shlibpath_var=no
10351 ;;
10352
10353 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10354 # support. Future versions do this automatically, but an explicit c++rt0.o
10355 # does not break anything, and helps significantly (at the cost of a little
10356 # extra space).
10357 freebsd2.2*)
10358 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10359 hardcode_libdir_flag_spec='-R$libdir'
10360 hardcode_direct=yes
10361 hardcode_shlibpath_var=no
10362 ;;
10363
10364 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10365 freebsd2.*)
10366 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10367 hardcode_direct=yes
10368 hardcode_minus_L=yes
10369 hardcode_shlibpath_var=no
10370 ;;
10371
10372 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10373 freebsd* | dragonfly*)
10374 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10375 hardcode_libdir_flag_spec='-R$libdir'
10376 hardcode_direct=yes
10377 hardcode_shlibpath_var=no
10378 ;;
10379
10380 hpux9*)
10381 if test "$GCC" = yes; then
10382 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'
10383 else
10384 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'
10385 fi
10386 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10387 hardcode_libdir_separator=:
10388 hardcode_direct=yes
10389
10390 # hardcode_minus_L: Not really in the search PATH,
10391 # but as the default location of the library.
10392 hardcode_minus_L=yes
10393 export_dynamic_flag_spec='${wl}-E'
10394 ;;
10395
10396 hpux10*)
10397 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10398 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10399 else
10400 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10401 fi
10402 if test "$with_gnu_ld" = no; then
10403 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10404 hardcode_libdir_flag_spec_ld='+b $libdir'
10405 hardcode_libdir_separator=:
10406 hardcode_direct=yes
10407 hardcode_direct_absolute=yes
10408 export_dynamic_flag_spec='${wl}-E'
10409 # hardcode_minus_L: Not really in the search PATH,
10410 # but as the default location of the library.
10411 hardcode_minus_L=yes
10412 fi
10413 ;;
10414
10415 hpux11*)
10416 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10417 case $host_cpu in
10418 hppa*64*)
10419 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10420 ;;
10421 ia64*)
10422 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10423 ;;
10424 *)
10425 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10426 ;;
10427 esac
10428 else
10429 case $host_cpu in
10430 hppa*64*)
10431 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10432 ;;
10433 ia64*)
10434 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10435 ;;
10436 *)
10437
10438 # Older versions of the 11.00 compiler do not understand -b yet
10439 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10441$as_echo_n "checking if $CC understands -b... " >&6; }
10442if test "${lt_cv_prog_compiler__b+set}" = set; then :
10443 $as_echo_n "(cached) " >&6
10444else
10445 lt_cv_prog_compiler__b=no
10446 save_LDFLAGS="$LDFLAGS"
10447 LDFLAGS="$LDFLAGS -b"
10448 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10449 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10450 # The linker can only warn and ignore the option if not recognized
10451 # So say no if there are warnings
10452 if test -s conftest.err; then
10453 # Append any errors to the config.log.
10454 cat conftest.err 1>&5
10455 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10456 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10457 if diff conftest.exp conftest.er2 >/dev/null; then
10458 lt_cv_prog_compiler__b=yes
10459 fi
10460 else
10461 lt_cv_prog_compiler__b=yes
10462 fi
10463 fi
10464 $RM -r conftest*
10465 LDFLAGS="$save_LDFLAGS"
10466
10467fi
10468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10469$as_echo "$lt_cv_prog_compiler__b" >&6; }
10470
10471if test x"$lt_cv_prog_compiler__b" = xyes; then
10472 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10473else
10474 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10475fi
10476
10477 ;;
10478 esac
10479 fi
10480 if test "$with_gnu_ld" = no; then
10481 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10482 hardcode_libdir_separator=:
10483
10484 case $host_cpu in
10485 hppa*64*|ia64*)
10486 hardcode_direct=no
10487 hardcode_shlibpath_var=no
10488 ;;
10489 *)
10490 hardcode_direct=yes
10491 hardcode_direct_absolute=yes
10492 export_dynamic_flag_spec='${wl}-E'
10493
10494 # hardcode_minus_L: Not really in the search PATH,
10495 # but as the default location of the library.
10496 hardcode_minus_L=yes
10497 ;;
10498 esac
10499 fi
10500 ;;
10501
10502 irix5* | irix6* | nonstopux*)
10503 if test "$GCC" = yes; then
10504 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10505 # Try to use the -exported_symbol ld option, if it does not
10506 # work, assume that -exports_file does not work either and
10507 # implicitly export all symbols.
10508 save_LDFLAGS="$LDFLAGS"
10509 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10511/* end confdefs.h. */
10512int foo(void) {}
10513_ACEOF
10514if ac_fn_c_try_link "$LINENO"; then :
10515 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10516
10517fi
10518rm -f core conftest.err conftest.$ac_objext \
10519 conftest$ac_exeext conftest.$ac_ext
10520 LDFLAGS="$save_LDFLAGS"
10521 else
10522 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10523 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10524 fi
10525 archive_cmds_need_lc='no'
10526 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10527 hardcode_libdir_separator=:
10528 inherit_rpath=yes
10529 link_all_deplibs=yes
10530 ;;
10531
10532 netbsd*)
10533 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10534 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10535 else
10536 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10537 fi
10538 hardcode_libdir_flag_spec='-R$libdir'
10539 hardcode_direct=yes
10540 hardcode_shlibpath_var=no
10541 ;;
10542
10543 newsos6)
10544 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10545 hardcode_direct=yes
10546 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10547 hardcode_libdir_separator=:
10548 hardcode_shlibpath_var=no
10549 ;;
10550
10551 *nto* | *qnx*)
10552 ;;
10553
10554 openbsd*)
10555 if test -f /usr/libexec/ld.so; then
10556 hardcode_direct=yes
10557 hardcode_shlibpath_var=no
10558 hardcode_direct_absolute=yes
10559 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10560 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10561 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10562 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10563 export_dynamic_flag_spec='${wl}-E'
10564 else
10565 case $host_os in
10566 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10567 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10568 hardcode_libdir_flag_spec='-R$libdir'
10569 ;;
10570 *)
10571 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10572 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10573 ;;
10574 esac
10575 fi
10576 else
10577 ld_shlibs=no
10578 fi
10579 ;;
10580
10581 os2*)
10582 hardcode_libdir_flag_spec='-L$libdir'
10583 hardcode_minus_L=yes
10584 allow_undefined_flag=unsupported
10585 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'
10586 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10587 ;;
10588
10589 osf3*)
10590 if test "$GCC" = yes; then
10591 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10592 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10593 else
10594 allow_undefined_flag=' -expect_unresolved \*'
10595 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10596 fi
10597 archive_cmds_need_lc='no'
10598 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10599 hardcode_libdir_separator=:
10600 ;;
10601
10602 osf4* | osf5*) # as osf3* with the addition of -msym flag
10603 if test "$GCC" = yes; then
10604 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10605 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10606 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10607 else
10608 allow_undefined_flag=' -expect_unresolved \*'
10609 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10610 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10611 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10612
10613 # Both c and cxx compiler support -rpath directly
10614 hardcode_libdir_flag_spec='-rpath $libdir'
10615 fi
10616 archive_cmds_need_lc='no'
10617 hardcode_libdir_separator=:
10618 ;;
10619
10620 solaris*)
10621 no_undefined_flag=' -z defs'
10622 if test "$GCC" = yes; then
10623 wlarc='${wl}'
10624 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10625 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10626 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10627 else
10628 case `$CC -V 2>&1` in
10629 *"Compilers 5.0"*)
10630 wlarc=''
10631 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10632 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10633 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10634 ;;
10635 *)
10636 wlarc='${wl}'
10637 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10638 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10639 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10640 ;;
10641 esac
10642 fi
10643 hardcode_libdir_flag_spec='-R$libdir'
10644 hardcode_shlibpath_var=no
10645 case $host_os in
10646 solaris2.[0-5] | solaris2.[0-5].*) ;;
10647 *)
10648 # The compiler driver will combine and reorder linker options,
10649 # but understands `-z linker_flag'. GCC discards it without `$wl',
10650 # but is careful enough not to reorder.
10651 # Supported since Solaris 2.6 (maybe 2.5.1?)
10652 if test "$GCC" = yes; then
10653 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10654 else
10655 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10656 fi
10657 ;;
10658 esac
10659 link_all_deplibs=yes
10660 ;;
10661
10662 sunos4*)
10663 if test "x$host_vendor" = xsequent; then
10664 # Use $CC to link under sequent, because it throws in some extra .o
10665 # files that make .init and .fini sections work.
10666 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10667 else
10668 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10669 fi
10670 hardcode_libdir_flag_spec='-L$libdir'
10671 hardcode_direct=yes
10672 hardcode_minus_L=yes
10673 hardcode_shlibpath_var=no
10674 ;;
10675
10676 sysv4)
10677 case $host_vendor in
10678 sni)
10679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10680 hardcode_direct=yes # is this really true???
10681 ;;
10682 siemens)
10683 ## LD is ld it makes a PLAMLIB
10684 ## CC just makes a GrossModule.
10685 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10686 reload_cmds='$CC -r -o $output$reload_objs'
10687 hardcode_direct=no
10688 ;;
10689 motorola)
10690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10691 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10692 ;;
10693 esac
10694 runpath_var='LD_RUN_PATH'
10695 hardcode_shlibpath_var=no
10696 ;;
10697
10698 sysv4.3*)
10699 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10700 hardcode_shlibpath_var=no
10701 export_dynamic_flag_spec='-Bexport'
10702 ;;
10703
10704 sysv4*MP*)
10705 if test -d /usr/nec; then
10706 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10707 hardcode_shlibpath_var=no
10708 runpath_var=LD_RUN_PATH
10709 hardcode_runpath_var=yes
10710 ld_shlibs=yes
10711 fi
10712 ;;
10713
10714 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10715 no_undefined_flag='${wl}-z,text'
10716 archive_cmds_need_lc=no
10717 hardcode_shlibpath_var=no
10718 runpath_var='LD_RUN_PATH'
10719
10720 if test "$GCC" = yes; then
10721 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10722 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10723 else
10724 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10725 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10726 fi
10727 ;;
10728
10729 sysv5* | sco3.2v5* | sco5v6*)
10730 # Note: We can NOT use -z defs as we might desire, because we do not
10731 # link with -lc, and that would cause any symbols used from libc to
10732 # always be unresolved, which means just about no library would
10733 # ever link correctly. If we're not using GNU ld we use -z text
10734 # though, which does catch some bad symbols but isn't as heavy-handed
10735 # as -z defs.
10736 no_undefined_flag='${wl}-z,text'
10737 allow_undefined_flag='${wl}-z,nodefs'
10738 archive_cmds_need_lc=no
10739 hardcode_shlibpath_var=no
10740 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10741 hardcode_libdir_separator=':'
10742 link_all_deplibs=yes
10743 export_dynamic_flag_spec='${wl}-Bexport'
10744 runpath_var='LD_RUN_PATH'
10745
10746 if test "$GCC" = yes; then
10747 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10748 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10749 else
10750 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10751 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10752 fi
10753 ;;
10754
10755 uts4*)
10756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10757 hardcode_libdir_flag_spec='-L$libdir'
10758 hardcode_shlibpath_var=no
10759 ;;
10760
10761 *)
10762 ld_shlibs=no
10763 ;;
10764 esac
10765
10766 if test x$host_vendor = xsni; then
10767 case $host in
10768 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10769 export_dynamic_flag_spec='${wl}-Blargedynsym'
10770 ;;
10771 esac
10772 fi
10773 fi
10774
10775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10776$as_echo "$ld_shlibs" >&6; }
10777test "$ld_shlibs" = no && can_build_shared=no
10778
10779with_gnu_ld=$with_gnu_ld
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795#
10796# Do we need to explicitly link libc?
10797#
10798case "x$archive_cmds_need_lc" in
10799x|xyes)
10800 # Assume -lc should be added
10801 archive_cmds_need_lc=yes
10802
10803 if test "$enable_shared" = yes && test "$GCC" = yes; then
10804 case $archive_cmds in
10805 *'~'*)
10806 # FIXME: we may have to deal with multi-command sequences.
10807 ;;
10808 '$CC '*)
10809 # Test whether the compiler implicitly links with -lc since on some
10810 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10811 # to ld, don't add -lc before -lgcc.
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10813$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10814if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10815 $as_echo_n "(cached) " >&6
10816else
10817 $RM conftest*
10818 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10819
10820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10821 (eval $ac_compile) 2>&5
10822 ac_status=$?
10823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10824 test $ac_status = 0; } 2>conftest.err; then
10825 soname=conftest
10826 lib=conftest
10827 libobjs=conftest.$ac_objext
10828 deplibs=
10829 wl=$lt_prog_compiler_wl
10830 pic_flag=$lt_prog_compiler_pic
10831 compiler_flags=-v
10832 linker_flags=-v
10833 verstring=
10834 output_objdir=.
10835 libname=conftest
10836 lt_save_allow_undefined_flag=$allow_undefined_flag
10837 allow_undefined_flag=
10838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10839 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10840 ac_status=$?
10841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10842 test $ac_status = 0; }
10843 then
10844 lt_cv_archive_cmds_need_lc=no
10845 else
10846 lt_cv_archive_cmds_need_lc=yes
10847 fi
10848 allow_undefined_flag=$lt_save_allow_undefined_flag
10849 else
10850 cat conftest.err 1>&5
10851 fi
10852 $RM conftest*
10853
10854fi
10855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10856$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10857 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10858 ;;
10859 esac
10860 fi
10861 ;;
10862esac
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11021$as_echo_n "checking dynamic linker characteristics... " >&6; }
11022
11023if test "$GCC" = yes; then
11024 case $host_os in
11025 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11026 *) lt_awk_arg="/^libraries:/" ;;
11027 esac
11028 case $host_os in
11029 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11030 *) lt_sed_strip_eq="s,=/,/,g" ;;
11031 esac
11032 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11033 case $lt_search_path_spec in
11034 *\;*)
11035 # if the path contains ";" then we assume it to be the separator
11036 # otherwise default to the standard path separator (i.e. ":") - it is
11037 # assumed that no part of a normal pathname contains ";" but that should
11038 # okay in the real world where ";" in dirpaths is itself problematic.
11039 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11040 ;;
11041 *)
11042 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11043 ;;
11044 esac
11045 # Ok, now we have the path, separated by spaces, we can step through it
11046 # and add multilib dir if necessary.
11047 lt_tmp_lt_search_path_spec=
11048 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11049 for lt_sys_path in $lt_search_path_spec; do
11050 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11051 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11052 else
11053 test -d "$lt_sys_path" && \
11054 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11055 fi
11056 done
11057 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11058BEGIN {RS=" "; FS="/|\n";} {
11059 lt_foo="";
11060 lt_count=0;
11061 for (lt_i = NF; lt_i > 0; lt_i--) {
11062 if ($lt_i != "" && $lt_i != ".") {
11063 if ($lt_i == "..") {
11064 lt_count++;
11065 } else {
11066 if (lt_count == 0) {
11067 lt_foo="/" $lt_i lt_foo;
11068 } else {
11069 lt_count--;
11070 }
11071 }
11072 }
11073 }
11074 if (lt_foo != "") { lt_freq[lt_foo]++; }
11075 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11076}'`
11077 # AWK program above erroneously prepends '/' to C:/dos/paths
11078 # for these hosts.
11079 case $host_os in
11080 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11081 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11082 esac
11083 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11084else
11085 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11086fi
11087library_names_spec=
11088libname_spec='lib$name'
11089soname_spec=
11090shrext_cmds=".so"
11091postinstall_cmds=
11092postuninstall_cmds=
11093finish_cmds=
11094finish_eval=
11095shlibpath_var=
11096shlibpath_overrides_runpath=unknown
11097version_type=none
11098dynamic_linker="$host_os ld.so"
11099sys_lib_dlsearch_path_spec="/lib /usr/lib"
11100need_lib_prefix=unknown
11101hardcode_into_libs=no
11102
11103# when you set need_version to no, make sure it does not cause -set_version
11104# flags to be left without arguments
11105need_version=unknown
11106
11107case $host_os in
11108aix3*)
11109 version_type=linux
11110 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11111 shlibpath_var=LIBPATH
11112
11113 # AIX 3 has no versioning support, so we append a major version to the name.
11114 soname_spec='${libname}${release}${shared_ext}$major'
11115 ;;
11116
11117aix[4-9]*)
11118 version_type=linux
11119 need_lib_prefix=no
11120 need_version=no
11121 hardcode_into_libs=yes
11122 if test "$host_cpu" = ia64; then
11123 # AIX 5 supports IA64
11124 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11125 shlibpath_var=LD_LIBRARY_PATH
11126 else
11127 # With GCC up to 2.95.x, collect2 would create an import file
11128 # for dependence libraries. The import file would start with
11129 # the line `#! .'. This would cause the generated library to
11130 # depend on `.', always an invalid library. This was fixed in
11131 # development snapshots of GCC prior to 3.0.
11132 case $host_os in
11133 aix4 | aix4.[01] | aix4.[01].*)
11134 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11135 echo ' yes '
11136 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11137 :
11138 else
11139 can_build_shared=no
11140 fi
11141 ;;
11142 esac
11143 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11144 # soname into executable. Probably we can add versioning support to
11145 # collect2, so additional links can be useful in future.
11146 if test "$aix_use_runtimelinking" = yes; then
11147 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11148 # instead of lib<name>.a to let people know that these are not
11149 # typical AIX shared libraries.
11150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11151 else
11152 # We preserve .a as extension for shared libraries through AIX4.2
11153 # and later when we are not doing run time linking.
11154 library_names_spec='${libname}${release}.a $libname.a'
11155 soname_spec='${libname}${release}${shared_ext}$major'
11156 fi
11157 shlibpath_var=LIBPATH
11158 fi
11159 ;;
11160
11161amigaos*)
11162 case $host_cpu in
11163 powerpc)
11164 # Since July 2007 AmigaOS4 officially supports .so libraries.
11165 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11167 ;;
11168 m68k)
11169 library_names_spec='$libname.ixlibrary $libname.a'
11170 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11171 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
11172 ;;
11173 esac
11174 ;;
11175
11176beos*)
11177 library_names_spec='${libname}${shared_ext}'
11178 dynamic_linker="$host_os ld.so"
11179 shlibpath_var=LIBRARY_PATH
11180 ;;
11181
11182bsdi[45]*)
11183 version_type=linux
11184 need_version=no
11185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11186 soname_spec='${libname}${release}${shared_ext}$major'
11187 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11188 shlibpath_var=LD_LIBRARY_PATH
11189 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11190 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11191 # the default ld.so.conf also contains /usr/contrib/lib and
11192 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11193 # libtool to hard-code these into programs
11194 ;;
11195
11196cygwin* | mingw* | pw32* | cegcc*)
11197 version_type=windows
11198 shrext_cmds=".dll"
11199 need_version=no
11200 need_lib_prefix=no
11201
11202 case $GCC,$host_os in
11203 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11204 library_names_spec='$libname.dll.a'
11205 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11206 postinstall_cmds='base_file=`basename \${file}`~
11207 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11208 dldir=$destdir/`dirname \$dlpath`~
11209 test -d \$dldir || mkdir -p \$dldir~
11210 $install_prog $dir/$dlname \$dldir/$dlname~
11211 chmod a+x \$dldir/$dlname~
11212 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11213 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11214 fi'
11215 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11216 dlpath=$dir/\$dldll~
11217 $RM \$dlpath'
11218 shlibpath_overrides_runpath=yes
11219
11220 case $host_os in
11221 cygwin*)
11222 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11223 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11224
11225 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11226 ;;
11227 mingw* | cegcc*)
11228 # MinGW DLLs use traditional 'lib' prefix
11229 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11230 ;;
11231 pw32*)
11232 # pw32 DLLs use 'pw' prefix rather than 'lib'
11233 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11234 ;;
11235 esac
11236 ;;
11237
11238 *)
11239 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11240 ;;
11241 esac
11242 dynamic_linker='Win32 ld.exe'
11243 # FIXME: first we should search . and the directory the executable is in
11244 shlibpath_var=PATH
11245 ;;
11246
11247darwin* | rhapsody*)
11248 dynamic_linker="$host_os dyld"
11249 version_type=darwin
11250 need_lib_prefix=no
11251 need_version=no
11252 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11253 soname_spec='${libname}${release}${major}$shared_ext'
11254 shlibpath_overrides_runpath=yes
11255 shlibpath_var=DYLD_LIBRARY_PATH
11256 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11257
11258 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11259 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11260 ;;
11261
11262dgux*)
11263 version_type=linux
11264 need_lib_prefix=no
11265 need_version=no
11266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11267 soname_spec='${libname}${release}${shared_ext}$major'
11268 shlibpath_var=LD_LIBRARY_PATH
11269 ;;
11270
11271freebsd* | dragonfly*)
11272 # DragonFly does not have aout. When/if they implement a new
11273 # versioning mechanism, adjust this.
11274 if test -x /usr/bin/objformat; then
11275 objformat=`/usr/bin/objformat`
11276 else
11277 case $host_os in
11278 freebsd[23].*) objformat=aout ;;
11279 *) objformat=elf ;;
11280 esac
11281 fi
11282 version_type=freebsd-$objformat
11283 case $version_type in
11284 freebsd-elf*)
11285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11286 need_version=no
11287 need_lib_prefix=no
11288 ;;
11289 freebsd-*)
11290 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11291 need_version=yes
11292 ;;
11293 esac
11294 shlibpath_var=LD_LIBRARY_PATH
11295 case $host_os in
11296 freebsd2.*)
11297 shlibpath_overrides_runpath=yes
11298 ;;
11299 freebsd3.[01]* | freebsdelf3.[01]*)
11300 shlibpath_overrides_runpath=yes
11301 hardcode_into_libs=yes
11302 ;;
11303 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11304 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11305 shlibpath_overrides_runpath=no
11306 hardcode_into_libs=yes
11307 ;;
11308 *) # from 4.6 on, and DragonFly
11309 shlibpath_overrides_runpath=yes
11310 hardcode_into_libs=yes
11311 ;;
11312 esac
11313 ;;
11314
11315gnu*)
11316 version_type=linux
11317 need_lib_prefix=no
11318 need_version=no
11319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11320 soname_spec='${libname}${release}${shared_ext}$major'
11321 shlibpath_var=LD_LIBRARY_PATH
11322 hardcode_into_libs=yes
11323 ;;
11324
11325haiku*)
11326 version_type=linux
11327 need_lib_prefix=no
11328 need_version=no
11329 dynamic_linker="$host_os runtime_loader"
11330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11331 soname_spec='${libname}${release}${shared_ext}$major'
11332 shlibpath_var=LIBRARY_PATH
11333 shlibpath_overrides_runpath=yes
11334 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11335 hardcode_into_libs=yes
11336 ;;
11337
11338hpux9* | hpux10* | hpux11*)
11339 # Give a soname corresponding to the major version so that dld.sl refuses to
11340 # link against other versions.
11341 version_type=sunos
11342 need_lib_prefix=no
11343 need_version=no
11344 case $host_cpu in
11345 ia64*)
11346 shrext_cmds='.so'
11347 hardcode_into_libs=yes
11348 dynamic_linker="$host_os dld.so"
11349 shlibpath_var=LD_LIBRARY_PATH
11350 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11352 soname_spec='${libname}${release}${shared_ext}$major'
11353 if test "X$HPUX_IA64_MODE" = X32; then
11354 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11355 else
11356 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11357 fi
11358 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11359 ;;
11360 hppa*64*)
11361 shrext_cmds='.sl'
11362 hardcode_into_libs=yes
11363 dynamic_linker="$host_os dld.sl"
11364 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11365 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11367 soname_spec='${libname}${release}${shared_ext}$major'
11368 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11369 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11370 ;;
11371 *)
11372 shrext_cmds='.sl'
11373 dynamic_linker="$host_os dld.sl"
11374 shlibpath_var=SHLIB_PATH
11375 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11377 soname_spec='${libname}${release}${shared_ext}$major'
11378 ;;
11379 esac
11380 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11381 postinstall_cmds='chmod 555 $lib'
11382 # or fails outright, so override atomically:
11383 install_override_mode=555
11384 ;;
11385
11386interix[3-9]*)
11387 version_type=linux
11388 need_lib_prefix=no
11389 need_version=no
11390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11391 soname_spec='${libname}${release}${shared_ext}$major'
11392 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11393 shlibpath_var=LD_LIBRARY_PATH
11394 shlibpath_overrides_runpath=no
11395 hardcode_into_libs=yes
11396 ;;
11397
11398irix5* | irix6* | nonstopux*)
11399 case $host_os in
11400 nonstopux*) version_type=nonstopux ;;
11401 *)
11402 if test "$lt_cv_prog_gnu_ld" = yes; then
11403 version_type=linux
11404 else
11405 version_type=irix
11406 fi ;;
11407 esac
11408 need_lib_prefix=no
11409 need_version=no
11410 soname_spec='${libname}${release}${shared_ext}$major'
11411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11412 case $host_os in
11413 irix5* | nonstopux*)
11414 libsuff= shlibsuff=
11415 ;;
11416 *)
11417 case $LD in # libtool.m4 will add one of these switches to LD
11418 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11419 libsuff= shlibsuff= libmagic=32-bit;;
11420 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11421 libsuff=32 shlibsuff=N32 libmagic=N32;;
11422 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11423 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11424 *) libsuff= shlibsuff= libmagic=never-match;;
11425 esac
11426 ;;
11427 esac
11428 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11429 shlibpath_overrides_runpath=no
11430 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11431 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11432 hardcode_into_libs=yes
11433 ;;
11434
11435# No shared lib support for Linux oldld, aout, or coff.
11436linux*oldld* | linux*aout* | linux*coff*)
11437 dynamic_linker=no
11438 ;;
11439
11440# This must be Linux ELF.
11441linux* | k*bsd*-gnu | kopensolaris*-gnu)
11442 version_type=linux
11443 need_lib_prefix=no
11444 need_version=no
11445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11446 soname_spec='${libname}${release}${shared_ext}$major'
11447 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11448 shlibpath_var=LD_LIBRARY_PATH
11449 shlibpath_overrides_runpath=no
11450
11451 # Some binutils ld are patched to set DT_RUNPATH
11452 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11453 $as_echo_n "(cached) " >&6
11454else
11455 lt_cv_shlibpath_overrides_runpath=no
11456 save_LDFLAGS=$LDFLAGS
11457 save_libdir=$libdir
11458 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11459 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11461/* end confdefs.h. */
11462
11463int
11464main ()
11465{
11466
11467 ;
11468 return 0;
11469}
11470_ACEOF
11471if ac_fn_c_try_link "$LINENO"; then :
11472 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11473 lt_cv_shlibpath_overrides_runpath=yes
11474fi
11475fi
11476rm -f core conftest.err conftest.$ac_objext \
11477 conftest$ac_exeext conftest.$ac_ext
11478 LDFLAGS=$save_LDFLAGS
11479 libdir=$save_libdir
11480
11481fi
11482
11483 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11484
11485 # This implies no fast_install, which is unacceptable.
11486 # Some rework will be needed to allow for fast_install
11487 # before this can be enabled.
11488 hardcode_into_libs=yes
11489
11490 # Append ld.so.conf contents to the search path
11491 if test -f /etc/ld.so.conf; then
11492 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;s/"//g;/^$/d' | tr '\n' ' '`
11493 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11494 fi
11495
11496 # We used to test for /lib/ld.so.1 and disable shared libraries on
11497 # powerpc, because MkLinux only supported shared libraries with the
11498 # GNU dynamic linker. Since this was broken with cross compilers,
11499 # most powerpc-linux boxes support dynamic linking these days and
11500 # people can always --disable-shared, the test was removed, and we
11501 # assume the GNU/Linux dynamic linker is in use.
11502 dynamic_linker='GNU/Linux ld.so'
11503 ;;
11504
11505netbsd*)
11506 version_type=sunos
11507 need_lib_prefix=no
11508 need_version=no
11509 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11511 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11512 dynamic_linker='NetBSD (a.out) ld.so'
11513 else
11514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11515 soname_spec='${libname}${release}${shared_ext}$major'
11516 dynamic_linker='NetBSD ld.elf_so'
11517 fi
11518 shlibpath_var=LD_LIBRARY_PATH
11519 shlibpath_overrides_runpath=yes
11520 hardcode_into_libs=yes
11521 ;;
11522
11523newsos6)
11524 version_type=linux
11525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11526 shlibpath_var=LD_LIBRARY_PATH
11527 shlibpath_overrides_runpath=yes
11528 ;;
11529
11530*nto* | *qnx*)
11531 version_type=qnx
11532 need_lib_prefix=no
11533 need_version=no
11534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11535 soname_spec='${libname}${release}${shared_ext}$major'
11536 shlibpath_var=LD_LIBRARY_PATH
11537 shlibpath_overrides_runpath=no
11538 hardcode_into_libs=yes
11539 dynamic_linker='ldqnx.so'
11540 ;;
11541
11542openbsd*)
11543 version_type=sunos
11544 sys_lib_dlsearch_path_spec="/usr/lib"
11545 need_lib_prefix=no
11546 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11547 case $host_os in
11548 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11549 *) need_version=no ;;
11550 esac
11551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11552 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11553 shlibpath_var=LD_LIBRARY_PATH
11554 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11555 case $host_os in
11556 openbsd2.[89] | openbsd2.[89].*)
11557 shlibpath_overrides_runpath=no
11558 ;;
11559 *)
11560 shlibpath_overrides_runpath=yes
11561 ;;
11562 esac
11563 else
11564 shlibpath_overrides_runpath=yes
11565 fi
11566 ;;
11567
11568os2*)
11569 libname_spec='$name'
11570 shrext_cmds=".dll"
11571 need_lib_prefix=no
11572 library_names_spec='$libname${shared_ext} $libname.a'
11573 dynamic_linker='OS/2 ld.exe'
11574 shlibpath_var=LIBPATH
11575 ;;
11576
11577osf3* | osf4* | osf5*)
11578 version_type=osf
11579 need_lib_prefix=no
11580 need_version=no
11581 soname_spec='${libname}${release}${shared_ext}$major'
11582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11583 shlibpath_var=LD_LIBRARY_PATH
11584 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11585 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11586 ;;
11587
11588rdos*)
11589 dynamic_linker=no
11590 ;;
11591
11592solaris*)
11593 version_type=linux
11594 need_lib_prefix=no
11595 need_version=no
11596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11597 soname_spec='${libname}${release}${shared_ext}$major'
11598 shlibpath_var=LD_LIBRARY_PATH
11599 shlibpath_overrides_runpath=yes
11600 hardcode_into_libs=yes
11601 # ldd complains unless libraries are executable
11602 postinstall_cmds='chmod +x $lib'
11603 ;;
11604
11605sunos4*)
11606 version_type=sunos
11607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11608 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11609 shlibpath_var=LD_LIBRARY_PATH
11610 shlibpath_overrides_runpath=yes
11611 if test "$with_gnu_ld" = yes; then
11612 need_lib_prefix=no
11613 fi
11614 need_version=yes
11615 ;;
11616
11617sysv4 | sysv4.3*)
11618 version_type=linux
11619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11620 soname_spec='${libname}${release}${shared_ext}$major'
11621 shlibpath_var=LD_LIBRARY_PATH
11622 case $host_vendor in
11623 sni)
11624 shlibpath_overrides_runpath=no
11625 need_lib_prefix=no
11626 runpath_var=LD_RUN_PATH
11627 ;;
11628 siemens)
11629 need_lib_prefix=no
11630 ;;
11631 motorola)
11632 need_lib_prefix=no
11633 need_version=no
11634 shlibpath_overrides_runpath=no
11635 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11636 ;;
11637 esac
11638 ;;
11639
11640sysv4*MP*)
11641 if test -d /usr/nec ;then
11642 version_type=linux
11643 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11644 soname_spec='$libname${shared_ext}.$major'
11645 shlibpath_var=LD_LIBRARY_PATH
11646 fi
11647 ;;
11648
11649sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11650 version_type=freebsd-elf
11651 need_lib_prefix=no
11652 need_version=no
11653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11654 soname_spec='${libname}${release}${shared_ext}$major'
11655 shlibpath_var=LD_LIBRARY_PATH
11656 shlibpath_overrides_runpath=yes
11657 hardcode_into_libs=yes
11658 if test "$with_gnu_ld" = yes; then
11659 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11660 else
11661 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11662 case $host_os in
11663 sco3.2v5*)
11664 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11665 ;;
11666 esac
11667 fi
11668 sys_lib_dlsearch_path_spec='/usr/lib'
11669 ;;
11670
11671tpf*)
11672 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11673 version_type=linux
11674 need_lib_prefix=no
11675 need_version=no
11676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11677 shlibpath_var=LD_LIBRARY_PATH
11678 shlibpath_overrides_runpath=no
11679 hardcode_into_libs=yes
11680 ;;
11681
11682uts4*)
11683 version_type=linux
11684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11685 soname_spec='${libname}${release}${shared_ext}$major'
11686 shlibpath_var=LD_LIBRARY_PATH
11687 ;;
11688
11689*)
11690 dynamic_linker=no
11691 ;;
11692esac
11693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11694$as_echo "$dynamic_linker" >&6; }
11695test "$dynamic_linker" = no && can_build_shared=no
11696
11697variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11698if test "$GCC" = yes; then
11699 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11700fi
11701
11702if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11703 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11704fi
11705if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11706 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11707fi
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11801$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11802hardcode_action=
11803if test -n "$hardcode_libdir_flag_spec" ||
11804 test -n "$runpath_var" ||
11805 test "X$hardcode_automatic" = "Xyes" ; then
11806
11807 # We can hardcode non-existent directories.
11808 if test "$hardcode_direct" != no &&
11809 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11810 # have to relink, otherwise we might link with an installed library
11811 # when we should be linking with a yet-to-be-installed one
11812 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11813 test "$hardcode_minus_L" != no; then
11814 # Linking always hardcodes the temporary library directory.
11815 hardcode_action=relink
11816 else
11817 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11818 hardcode_action=immediate
11819 fi
11820else
11821 # We cannot hardcode anything, or else we can only hardcode existing
11822 # directories.
11823 hardcode_action=unsupported
11824fi
11825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11826$as_echo "$hardcode_action" >&6; }
11827
11828if test "$hardcode_action" = relink ||
11829 test "$inherit_rpath" = yes; then
11830 # Fast installation is not supported
11831 enable_fast_install=no
11832elif test "$shlibpath_overrides_runpath" = yes ||
11833 test "$enable_shared" = no; then
11834 # Fast installation is not necessary
11835 enable_fast_install=needless
11836fi
11837
11838
11839
11840
11841
11842
11843 if test "x$enable_dlopen" != xyes; then
11844 enable_dlopen=unknown
11845 enable_dlopen_self=unknown
11846 enable_dlopen_self_static=unknown
11847else
11848 lt_cv_dlopen=no
11849 lt_cv_dlopen_libs=
11850
11851 case $host_os in
11852 beos*)
11853 lt_cv_dlopen="load_add_on"
11854 lt_cv_dlopen_libs=
11855 lt_cv_dlopen_self=yes
11856 ;;
11857
11858 mingw* | pw32* | cegcc*)
11859 lt_cv_dlopen="LoadLibrary"
11860 lt_cv_dlopen_libs=
11861 ;;
11862
11863 cygwin*)
11864 lt_cv_dlopen="dlopen"
11865 lt_cv_dlopen_libs=
11866 ;;
11867
11868 darwin*)
11869 # if libdl is installed we need to link against it
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11871$as_echo_n "checking for dlopen in -ldl... " >&6; }
11872if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11873 $as_echo_n "(cached) " >&6
11874else
11875 ac_check_lib_save_LIBS=$LIBS
11876LIBS="-ldl $LIBS"
11877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11878/* end confdefs.h. */
11879
11880/* Override any GCC internal prototype to avoid an error.
11881 Use char because int might match the return type of a GCC
11882 builtin and then its argument prototype would still apply. */
11883#ifdef __cplusplus
11884extern "C"
11885#endif
11886char dlopen ();
11887int
11888main ()
11889{
11890return dlopen ();
11891 ;
11892 return 0;
11893}
11894_ACEOF
11895if ac_fn_c_try_link "$LINENO"; then :
11896 ac_cv_lib_dl_dlopen=yes
11897else
11898 ac_cv_lib_dl_dlopen=no
11899fi
11900rm -f core conftest.err conftest.$ac_objext \
11901 conftest$ac_exeext conftest.$ac_ext
11902LIBS=$ac_check_lib_save_LIBS
11903fi
11904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11905$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11906if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11907 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11908else
11909
11910 lt_cv_dlopen="dyld"
11911 lt_cv_dlopen_libs=
11912 lt_cv_dlopen_self=yes
11913
11914fi
11915
11916 ;;
11917
11918 *)
11919 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11920if test "x$ac_cv_func_shl_load" = x""yes; then :
11921 lt_cv_dlopen="shl_load"
11922else
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11924$as_echo_n "checking for shl_load in -ldld... " >&6; }
11925if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11926 $as_echo_n "(cached) " >&6
11927else
11928 ac_check_lib_save_LIBS=$LIBS
11929LIBS="-ldld $LIBS"
11930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11931/* end confdefs.h. */
11932
11933/* Override any GCC internal prototype to avoid an error.
11934 Use char because int might match the return type of a GCC
11935 builtin and then its argument prototype would still apply. */
11936#ifdef __cplusplus
11937extern "C"
11938#endif
11939char shl_load ();
11940int
11941main ()
11942{
11943return shl_load ();
11944 ;
11945 return 0;
11946}
11947_ACEOF
11948if ac_fn_c_try_link "$LINENO"; then :
11949 ac_cv_lib_dld_shl_load=yes
11950else
11951 ac_cv_lib_dld_shl_load=no
11952fi
11953rm -f core conftest.err conftest.$ac_objext \
11954 conftest$ac_exeext conftest.$ac_ext
11955LIBS=$ac_check_lib_save_LIBS
11956fi
11957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11958$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11959if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11960 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11961else
11962 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11963if test "x$ac_cv_func_dlopen" = x""yes; then :
11964 lt_cv_dlopen="dlopen"
11965else
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11967$as_echo_n "checking for dlopen in -ldl... " >&6; }
11968if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11969 $as_echo_n "(cached) " >&6
11970else
11971 ac_check_lib_save_LIBS=$LIBS
11972LIBS="-ldl $LIBS"
11973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11974/* end confdefs.h. */
11975
11976/* Override any GCC internal prototype to avoid an error.
11977 Use char because int might match the return type of a GCC
11978 builtin and then its argument prototype would still apply. */
11979#ifdef __cplusplus
11980extern "C"
11981#endif
11982char dlopen ();
11983int
11984main ()
11985{
11986return dlopen ();
11987 ;
11988 return 0;
11989}
11990_ACEOF
11991if ac_fn_c_try_link "$LINENO"; then :
11992 ac_cv_lib_dl_dlopen=yes
11993else
11994 ac_cv_lib_dl_dlopen=no
11995fi
11996rm -f core conftest.err conftest.$ac_objext \
11997 conftest$ac_exeext conftest.$ac_ext
11998LIBS=$ac_check_lib_save_LIBS
11999fi
12000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12001$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12002if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12003 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12004else
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12006$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12007if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12008 $as_echo_n "(cached) " >&6
12009else
12010 ac_check_lib_save_LIBS=$LIBS
12011LIBS="-lsvld $LIBS"
12012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12013/* end confdefs.h. */
12014
12015/* Override any GCC internal prototype to avoid an error.
12016 Use char because int might match the return type of a GCC
12017 builtin and then its argument prototype would still apply. */
12018#ifdef __cplusplus
12019extern "C"
12020#endif
12021char dlopen ();
12022int
12023main ()
12024{
12025return dlopen ();
12026 ;
12027 return 0;
12028}
12029_ACEOF
12030if ac_fn_c_try_link "$LINENO"; then :
12031 ac_cv_lib_svld_dlopen=yes
12032else
12033 ac_cv_lib_svld_dlopen=no
12034fi
12035rm -f core conftest.err conftest.$ac_objext \
12036 conftest$ac_exeext conftest.$ac_ext
12037LIBS=$ac_check_lib_save_LIBS
12038fi
12039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12040$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12041if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12042 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12043else
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12045$as_echo_n "checking for dld_link in -ldld... " >&6; }
12046if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12047 $as_echo_n "(cached) " >&6
12048else
12049 ac_check_lib_save_LIBS=$LIBS
12050LIBS="-ldld $LIBS"
12051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12052/* end confdefs.h. */
12053
12054/* Override any GCC internal prototype to avoid an error.
12055 Use char because int might match the return type of a GCC
12056 builtin and then its argument prototype would still apply. */
12057#ifdef __cplusplus
12058extern "C"
12059#endif
12060char dld_link ();
12061int
12062main ()
12063{
12064return dld_link ();
12065 ;
12066 return 0;
12067}
12068_ACEOF
12069if ac_fn_c_try_link "$LINENO"; then :
12070 ac_cv_lib_dld_dld_link=yes
12071else
12072 ac_cv_lib_dld_dld_link=no
12073fi
12074rm -f core conftest.err conftest.$ac_objext \
12075 conftest$ac_exeext conftest.$ac_ext
12076LIBS=$ac_check_lib_save_LIBS
12077fi
12078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12079$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12080if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12081 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12082fi
12083
12084
12085fi
12086
12087
12088fi
12089
12090
12091fi
12092
12093
12094fi
12095
12096
12097fi
12098
12099 ;;
12100 esac
12101
12102 if test "x$lt_cv_dlopen" != xno; then
12103 enable_dlopen=yes
12104 else
12105 enable_dlopen=no
12106 fi
12107
12108 case $lt_cv_dlopen in
12109 dlopen)
12110 save_CPPFLAGS="$CPPFLAGS"
12111 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12112
12113 save_LDFLAGS="$LDFLAGS"
12114 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12115
12116 save_LIBS="$LIBS"
12117 LIBS="$lt_cv_dlopen_libs $LIBS"
12118
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12120$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12121if test "${lt_cv_dlopen_self+set}" = set; then :
12122 $as_echo_n "(cached) " >&6
12123else
12124 if test "$cross_compiling" = yes; then :
12125 lt_cv_dlopen_self=cross
12126else
12127 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12128 lt_status=$lt_dlunknown
12129 cat > conftest.$ac_ext <<_LT_EOF
ebf6d33b 12130#line 12130 "configure"
2077db1b
CT
12131#include "confdefs.h"
12132
12133#if HAVE_DLFCN_H
12134#include <dlfcn.h>
12135#endif
12136
12137#include <stdio.h>
12138
12139#ifdef RTLD_GLOBAL
12140# define LT_DLGLOBAL RTLD_GLOBAL
12141#else
12142# ifdef DL_GLOBAL
12143# define LT_DLGLOBAL DL_GLOBAL
12144# else
12145# define LT_DLGLOBAL 0
12146# endif
12147#endif
12148
12149/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12150 find out it does not work in some platform. */
12151#ifndef LT_DLLAZY_OR_NOW
12152# ifdef RTLD_LAZY
12153# define LT_DLLAZY_OR_NOW RTLD_LAZY
12154# else
12155# ifdef DL_LAZY
12156# define LT_DLLAZY_OR_NOW DL_LAZY
12157# else
12158# ifdef RTLD_NOW
12159# define LT_DLLAZY_OR_NOW RTLD_NOW
12160# else
12161# ifdef DL_NOW
12162# define LT_DLLAZY_OR_NOW DL_NOW
12163# else
12164# define LT_DLLAZY_OR_NOW 0
12165# endif
12166# endif
12167# endif
12168# endif
12169#endif
12170
12171/* When -fvisbility=hidden is used, assume the code has been annotated
12172 correspondingly for the symbols needed. */
12173#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12174void fnord () __attribute__((visibility("default")));
12175#endif
12176
12177void fnord () { int i=42; }
12178int main ()
12179{
12180 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12181 int status = $lt_dlunknown;
12182
12183 if (self)
12184 {
12185 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12186 else
12187 {
12188 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12189 else puts (dlerror ());
12190 }
12191 /* dlclose (self); */
12192 }
12193 else
12194 puts (dlerror ());
12195
12196 return status;
12197}
12198_LT_EOF
12199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12200 (eval $ac_link) 2>&5
12201 ac_status=$?
12202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12203 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12204 (./conftest; exit; ) >&5 2>/dev/null
12205 lt_status=$?
12206 case x$lt_status in
12207 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12208 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12209 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12210 esac
12211 else :
12212 # compilation failed
12213 lt_cv_dlopen_self=no
12214 fi
12215fi
12216rm -fr conftest*
12217
12218
12219fi
12220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12221$as_echo "$lt_cv_dlopen_self" >&6; }
12222
12223 if test "x$lt_cv_dlopen_self" = xyes; then
12224 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12226$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12227if test "${lt_cv_dlopen_self_static+set}" = set; then :
12228 $as_echo_n "(cached) " >&6
12229else
12230 if test "$cross_compiling" = yes; then :
12231 lt_cv_dlopen_self_static=cross
12232else
12233 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12234 lt_status=$lt_dlunknown
12235 cat > conftest.$ac_ext <<_LT_EOF
ebf6d33b 12236#line 12236 "configure"
2077db1b
CT
12237#include "confdefs.h"
12238
12239#if HAVE_DLFCN_H
12240#include <dlfcn.h>
12241#endif
12242
12243#include <stdio.h>
12244
12245#ifdef RTLD_GLOBAL
12246# define LT_DLGLOBAL RTLD_GLOBAL
12247#else
12248# ifdef DL_GLOBAL
12249# define LT_DLGLOBAL DL_GLOBAL
12250# else
12251# define LT_DLGLOBAL 0
12252# endif
12253#endif
12254
12255/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12256 find out it does not work in some platform. */
12257#ifndef LT_DLLAZY_OR_NOW
12258# ifdef RTLD_LAZY
12259# define LT_DLLAZY_OR_NOW RTLD_LAZY
12260# else
12261# ifdef DL_LAZY
12262# define LT_DLLAZY_OR_NOW DL_LAZY
12263# else
12264# ifdef RTLD_NOW
12265# define LT_DLLAZY_OR_NOW RTLD_NOW
12266# else
12267# ifdef DL_NOW
12268# define LT_DLLAZY_OR_NOW DL_NOW
12269# else
12270# define LT_DLLAZY_OR_NOW 0
12271# endif
12272# endif
12273# endif
12274# endif
12275#endif
12276
12277/* When -fvisbility=hidden is used, assume the code has been annotated
12278 correspondingly for the symbols needed. */
12279#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12280void fnord () __attribute__((visibility("default")));
12281#endif
12282
12283void fnord () { int i=42; }
12284int main ()
12285{
12286 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12287 int status = $lt_dlunknown;
12288
12289 if (self)
12290 {
12291 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12292 else
12293 {
12294 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12295 else puts (dlerror ());
12296 }
12297 /* dlclose (self); */
12298 }
12299 else
12300 puts (dlerror ());
12301
12302 return status;
12303}
12304_LT_EOF
12305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12306 (eval $ac_link) 2>&5
12307 ac_status=$?
12308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12309 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12310 (./conftest; exit; ) >&5 2>/dev/null
12311 lt_status=$?
12312 case x$lt_status in
12313 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12314 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12315 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12316 esac
12317 else :
12318 # compilation failed
12319 lt_cv_dlopen_self_static=no
12320 fi
12321fi
12322rm -fr conftest*
12323
12324
12325fi
12326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12327$as_echo "$lt_cv_dlopen_self_static" >&6; }
12328 fi
12329
12330 CPPFLAGS="$save_CPPFLAGS"
12331 LDFLAGS="$save_LDFLAGS"
12332 LIBS="$save_LIBS"
12333 ;;
12334 esac
12335
12336 case $lt_cv_dlopen_self in
12337 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12338 *) enable_dlopen_self=unknown ;;
12339 esac
12340
12341 case $lt_cv_dlopen_self_static in
12342 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12343 *) enable_dlopen_self_static=unknown ;;
12344 esac
12345fi
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363striplib=
12364old_striplib=
12365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12366$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12367if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12368 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12369 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12371$as_echo "yes" >&6; }
12372else
12373# FIXME - insert some real tests, host_os isn't really good enough
12374 case $host_os in
12375 darwin*)
12376 if test -n "$STRIP" ; then
12377 striplib="$STRIP -x"
12378 old_striplib="$STRIP -S"
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12380$as_echo "yes" >&6; }
12381 else
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12383$as_echo "no" >&6; }
12384 fi
12385 ;;
12386 *)
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12388$as_echo "no" >&6; }
12389 ;;
12390 esac
12391fi
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404 # Report which library types will actually be built
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12406$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12408$as_echo "$can_build_shared" >&6; }
12409
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12411$as_echo_n "checking whether to build shared libraries... " >&6; }
12412 test "$can_build_shared" = "no" && enable_shared=no
12413
12414 # On AIX, shared libraries and static libraries use the same namespace, and
12415 # are all built from PIC.
12416 case $host_os in
12417 aix3*)
12418 test "$enable_shared" = yes && enable_static=no
12419 if test -n "$RANLIB"; then
12420 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12421 postinstall_cmds='$RANLIB $lib'
12422 fi
12423 ;;
12424
12425 aix[4-9]*)
12426 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12427 test "$enable_shared" = yes && enable_static=no
12428 fi
12429 ;;
12430 esac
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12432$as_echo "$enable_shared" >&6; }
12433
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12435$as_echo_n "checking whether to build static libraries... " >&6; }
12436 # Make sure either enable_shared or enable_static is yes.
12437 test "$enable_shared" = yes || enable_static=yes
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12439$as_echo "$enable_static" >&6; }
12440
12441
12442
12443
12444fi
12445ac_ext=c
12446ac_cpp='$CPP $CPPFLAGS'
12447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12449ac_compiler_gnu=$ac_cv_c_compiler_gnu
12450
12451CC="$lt_save_CC"
12452
12453 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12454 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12455 (test "X$CXX" != "Xg++"))) ; then
12456 ac_ext=cpp
12457ac_cpp='$CXXCPP $CPPFLAGS'
12458ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12459ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12460ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12462$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12463if test -z "$CXXCPP"; then
12464 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12465 $as_echo_n "(cached) " >&6
12466else
12467 # Double quotes because CXXCPP needs to be expanded
12468 for CXXCPP in "$CXX -E" "/lib/cpp"
12469 do
12470 ac_preproc_ok=false
12471for ac_cxx_preproc_warn_flag in '' yes
12472do
12473 # Use a header file that comes with gcc, so configuring glibc
12474 # with a fresh cross-compiler works.
12475 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12476 # <limits.h> exists even on freestanding compilers.
12477 # On the NeXT, cc -E runs the code through the compiler's parser,
12478 # not just through cpp. "Syntax error" is here to catch this case.
12479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12480/* end confdefs.h. */
12481#ifdef __STDC__
12482# include <limits.h>
12483#else
12484# include <assert.h>
12485#endif
12486 Syntax error
12487_ACEOF
12488if ac_fn_cxx_try_cpp "$LINENO"; then :
12489
12490else
12491 # Broken: fails on valid input.
12492continue
12493fi
12494rm -f conftest.err conftest.$ac_ext
12495
12496 # OK, works on sane cases. Now check whether nonexistent headers
12497 # can be detected and how.
12498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12499/* end confdefs.h. */
12500#include <ac_nonexistent.h>
12501_ACEOF
12502if ac_fn_cxx_try_cpp "$LINENO"; then :
12503 # Broken: success on invalid input.
12504continue
12505else
12506 # Passes both tests.
12507ac_preproc_ok=:
12508break
12509fi
12510rm -f conftest.err conftest.$ac_ext
12511
12512done
12513# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12514rm -f conftest.err conftest.$ac_ext
12515if $ac_preproc_ok; then :
12516 break
12517fi
12518
12519 done
12520 ac_cv_prog_CXXCPP=$CXXCPP
12521
12522fi
12523 CXXCPP=$ac_cv_prog_CXXCPP
12524else
12525 ac_cv_prog_CXXCPP=$CXXCPP
12526fi
12527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12528$as_echo "$CXXCPP" >&6; }
12529ac_preproc_ok=false
12530for ac_cxx_preproc_warn_flag in '' yes
12531do
12532 # Use a header file that comes with gcc, so configuring glibc
12533 # with a fresh cross-compiler works.
12534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12535 # <limits.h> exists even on freestanding compilers.
12536 # On the NeXT, cc -E runs the code through the compiler's parser,
12537 # not just through cpp. "Syntax error" is here to catch this case.
12538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12539/* end confdefs.h. */
12540#ifdef __STDC__
12541# include <limits.h>
12542#else
12543# include <assert.h>
12544#endif
12545 Syntax error
12546_ACEOF
12547if ac_fn_cxx_try_cpp "$LINENO"; then :
12548
12549else
12550 # Broken: fails on valid input.
12551continue
12552fi
12553rm -f conftest.err conftest.$ac_ext
12554
12555 # OK, works on sane cases. Now check whether nonexistent headers
12556 # can be detected and how.
12557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12558/* end confdefs.h. */
12559#include <ac_nonexistent.h>
12560_ACEOF
12561if ac_fn_cxx_try_cpp "$LINENO"; then :
12562 # Broken: success on invalid input.
12563continue
12564else
12565 # Passes both tests.
12566ac_preproc_ok=:
12567break
12568fi
12569rm -f conftest.err conftest.$ac_ext
12570
12571done
12572# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12573rm -f conftest.err conftest.$ac_ext
12574if $ac_preproc_ok; then :
12575
12576else
12577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12578$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12579as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12580See \`config.log' for more details." "$LINENO" 5; }
12581fi
12582
12583ac_ext=c
12584ac_cpp='$CPP $CPPFLAGS'
12585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12587ac_compiler_gnu=$ac_cv_c_compiler_gnu
12588
12589else
12590 _lt_caught_CXX_error=yes
12591fi
12592
12593ac_ext=cpp
12594ac_cpp='$CXXCPP $CPPFLAGS'
12595ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12596ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12597ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12598
12599archive_cmds_need_lc_CXX=no
12600allow_undefined_flag_CXX=
12601always_export_symbols_CXX=no
12602archive_expsym_cmds_CXX=
12603compiler_needs_object_CXX=no
12604export_dynamic_flag_spec_CXX=
12605hardcode_direct_CXX=no
12606hardcode_direct_absolute_CXX=no
12607hardcode_libdir_flag_spec_CXX=
12608hardcode_libdir_flag_spec_ld_CXX=
12609hardcode_libdir_separator_CXX=
12610hardcode_minus_L_CXX=no
12611hardcode_shlibpath_var_CXX=unsupported
12612hardcode_automatic_CXX=no
12613inherit_rpath_CXX=no
12614module_cmds_CXX=
12615module_expsym_cmds_CXX=
12616link_all_deplibs_CXX=unknown
12617old_archive_cmds_CXX=$old_archive_cmds
12618reload_flag_CXX=$reload_flag
12619reload_cmds_CXX=$reload_cmds
12620no_undefined_flag_CXX=
12621whole_archive_flag_spec_CXX=
12622enable_shared_with_static_runtimes_CXX=no
12623
12624# Source file extension for C++ test sources.
12625ac_ext=cpp
12626
12627# Object file extension for compiled C++ test sources.
12628objext=o
12629objext_CXX=$objext
12630
12631# No sense in running all these tests if we already determined that
12632# the CXX compiler isn't working. Some variables (like enable_shared)
12633# are currently assumed to apply to all compilers on this platform,
12634# and will be corrupted by setting them based on a non-working compiler.
12635if test "$_lt_caught_CXX_error" != yes; then
12636 # Code to be used in simple compile tests
12637 lt_simple_compile_test_code="int some_variable = 0;"
12638
12639 # Code to be used in simple link tests
12640 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12641
12642 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12643
12644
12645
12646
12647
12648
12649# If no C compiler was specified, use CC.
12650LTCC=${LTCC-"$CC"}
12651
12652# If no C compiler flags were specified, use CFLAGS.
12653LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12654
12655# Allow CC to be a program name with arguments.
12656compiler=$CC
12657
12658
12659 # save warnings/boilerplate of simple test code
12660 ac_outfile=conftest.$ac_objext
12661echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12662eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12663_lt_compiler_boilerplate=`cat conftest.err`
12664$RM conftest*
12665
12666 ac_outfile=conftest.$ac_objext
12667echo "$lt_simple_link_test_code" >conftest.$ac_ext
12668eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12669_lt_linker_boilerplate=`cat conftest.err`
12670$RM -r conftest*
12671
12672
12673 # Allow CC to be a program name with arguments.
12674 lt_save_CC=$CC
12675 lt_save_LD=$LD
12676 lt_save_GCC=$GCC
12677 GCC=$GXX
12678 lt_save_with_gnu_ld=$with_gnu_ld
12679 lt_save_path_LD=$lt_cv_path_LD
12680 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12681 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12682 else
12683 $as_unset lt_cv_prog_gnu_ld
12684 fi
12685 if test -n "${lt_cv_path_LDCXX+set}"; then
12686 lt_cv_path_LD=$lt_cv_path_LDCXX
12687 else
12688 $as_unset lt_cv_path_LD
12689 fi
12690 test -z "${LDCXX+set}" || LD=$LDCXX
12691 CC=${CXX-"c++"}
12692 compiler=$CC
12693 compiler_CXX=$CC
12694 for cc_temp in $compiler""; do
12695 case $cc_temp in
12696 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12697 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12698 \-*) ;;
12699 *) break;;
12700 esac
12701done
12702cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12703
12704
12705 if test -n "$compiler"; then
12706 # We don't want -fno-exception when compiling C++ code, so set the
12707 # no_builtin_flag separately
12708 if test "$GXX" = yes; then
12709 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12710 else
12711 lt_prog_compiler_no_builtin_flag_CXX=
12712 fi
12713
12714 if test "$GXX" = yes; then
12715 # Set up default GNU C++ configuration
12716
12717
12718
12719# Check whether --with-gnu-ld was given.
12720if test "${with_gnu_ld+set}" = set; then :
12721 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12722else
12723 with_gnu_ld=no
12724fi
12725
12726ac_prog=ld
12727if test "$GCC" = yes; then
12728 # Check if gcc -print-prog-name=ld gives a path.
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12730$as_echo_n "checking for ld used by $CC... " >&6; }
12731 case $host in
12732 *-*-mingw*)
12733 # gcc leaves a trailing carriage return which upsets mingw
12734 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12735 *)
12736 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12737 esac
12738 case $ac_prog in
12739 # Accept absolute paths.
12740 [\\/]* | ?:[\\/]*)
12741 re_direlt='/[^/][^/]*/\.\./'
12742 # Canonicalize the pathname of ld
12743 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12744 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12745 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12746 done
12747 test -z "$LD" && LD="$ac_prog"
12748 ;;
12749 "")
12750 # If it fails, then pretend we aren't using GCC.
12751 ac_prog=ld
12752 ;;
12753 *)
12754 # If it is relative, then search for the first ld in PATH.
12755 with_gnu_ld=unknown
12756 ;;
12757 esac
12758elif test "$with_gnu_ld" = yes; then
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12760$as_echo_n "checking for GNU ld... " >&6; }
12761else
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12763$as_echo_n "checking for non-GNU ld... " >&6; }
12764fi
12765if test "${lt_cv_path_LD+set}" = set; then :
12766 $as_echo_n "(cached) " >&6
12767else
12768 if test -z "$LD"; then
12769 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12770 for ac_dir in $PATH; do
12771 IFS="$lt_save_ifs"
12772 test -z "$ac_dir" && ac_dir=.
12773 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12774 lt_cv_path_LD="$ac_dir/$ac_prog"
12775 # Check to see if the program is GNU ld. I'd rather use --version,
12776 # but apparently some variants of GNU ld only accept -v.
12777 # Break only if it was the GNU/non-GNU ld that we prefer.
12778 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12779 *GNU* | *'with BFD'*)
12780 test "$with_gnu_ld" != no && break
12781 ;;
12782 *)
12783 test "$with_gnu_ld" != yes && break
12784 ;;
12785 esac
12786 fi
12787 done
12788 IFS="$lt_save_ifs"
12789else
12790 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12791fi
12792fi
12793
12794LD="$lt_cv_path_LD"
12795if test -n "$LD"; then
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12797$as_echo "$LD" >&6; }
12798else
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12800$as_echo "no" >&6; }
12801fi
12802test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12804$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12805if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12806 $as_echo_n "(cached) " >&6
12807else
12808 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12809case `$LD -v 2>&1 </dev/null` in
12810*GNU* | *'with BFD'*)
12811 lt_cv_prog_gnu_ld=yes
12812 ;;
12813*)
12814 lt_cv_prog_gnu_ld=no
12815 ;;
12816esac
12817fi
12818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12819$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12820with_gnu_ld=$lt_cv_prog_gnu_ld
12821
12822
12823
12824
12825
12826
12827
12828 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12829 # archiving commands below assume that GNU ld is being used.
12830 if test "$with_gnu_ld" = yes; then
a699d672
L
12831 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12832 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2077db1b
CT
12833
12834 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12835 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12836
12837 # If archive_cmds runs LD, not CC, wlarc should be empty
12838 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12839 # investigate it a little bit more. (MM)
12840 wlarc='${wl}'
12841
12842 # ancient GNU ld didn't support --whole-archive et. al.
12843 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12844 $GREP 'no-whole-archive' > /dev/null; then
12845 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12846 else
12847 whole_archive_flag_spec_CXX=
12848 fi
12849 else
12850 with_gnu_ld=no
12851 wlarc=
12852
12853 # A generic and very simple default shared library creation
12854 # command for GNU C++ for the case where it uses the native
12855 # linker, instead of GNU ld. If possible, this setting should
12856 # overridden to take advantage of the native linker features on
12857 # the platform it is being used on.
12858 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12859 fi
12860
12861 # Commands to make compiler produce verbose output that lists
12862 # what "hidden" libraries, object files and flags are used when
12863 # linking a shared library.
12864 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12865
12866 else
12867 GXX=no
12868 with_gnu_ld=no
12869 wlarc=
12870 fi
12871
12872 # PORTME: fill in a description of your system's C++ link characteristics
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12874$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12875 ld_shlibs_CXX=yes
12876 case $host_os in
12877 aix3*)
12878 # FIXME: insert proper C++ library support
12879 ld_shlibs_CXX=no
12880 ;;
12881 aix[4-9]*)
12882 if test "$host_cpu" = ia64; then
12883 # On IA64, the linker does run time linking by default, so we don't
12884 # have to do anything special.
12885 aix_use_runtimelinking=no
12886 exp_sym_flag='-Bexport'
12887 no_entry_flag=""
12888 else
12889 aix_use_runtimelinking=no
12890
12891 # Test if we are trying to use run time linking or normal
12892 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12893 # need to do runtime linking.
12894 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12895 for ld_flag in $LDFLAGS; do
12896 case $ld_flag in
12897 *-brtl*)
12898 aix_use_runtimelinking=yes
12899 break
12900 ;;
12901 esac
12902 done
12903 ;;
12904 esac
12905
12906 exp_sym_flag='-bexport'
12907 no_entry_flag='-bnoentry'
12908 fi
12909
12910 # When large executables or shared objects are built, AIX ld can
12911 # have problems creating the table of contents. If linking a library
12912 # or program results in "error TOC overflow" add -mminimal-toc to
12913 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12914 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12915
12916 archive_cmds_CXX=''
12917 hardcode_direct_CXX=yes
12918 hardcode_direct_absolute_CXX=yes
12919 hardcode_libdir_separator_CXX=':'
12920 link_all_deplibs_CXX=yes
12921 file_list_spec_CXX='${wl}-f,'
12922
12923 if test "$GXX" = yes; then
12924 case $host_os in aix4.[012]|aix4.[012].*)
12925 # We only want to do this on AIX 4.2 and lower, the check
12926 # below for broken collect2 doesn't work under 4.3+
12927 collect2name=`${CC} -print-prog-name=collect2`
12928 if test -f "$collect2name" &&
12929 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12930 then
12931 # We have reworked collect2
12932 :
12933 else
12934 # We have old collect2
12935 hardcode_direct_CXX=unsupported
12936 # It fails to find uninstalled libraries when the uninstalled
12937 # path is not listed in the libpath. Setting hardcode_minus_L
12938 # to unsupported forces relinking
12939 hardcode_minus_L_CXX=yes
12940 hardcode_libdir_flag_spec_CXX='-L$libdir'
12941 hardcode_libdir_separator_CXX=
12942 fi
12943 esac
12944 shared_flag='-shared'
12945 if test "$aix_use_runtimelinking" = yes; then
12946 shared_flag="$shared_flag "'${wl}-G'
12947 fi
12948 else
12949 # not using gcc
12950 if test "$host_cpu" = ia64; then
12951 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12952 # chokes on -Wl,-G. The following line is correct:
12953 shared_flag='-G'
12954 else
12955 if test "$aix_use_runtimelinking" = yes; then
12956 shared_flag='${wl}-G'
12957 else
12958 shared_flag='${wl}-bM:SRE'
12959 fi
12960 fi
12961 fi
12962
12963 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12964 # It seems that -bexpall does not export symbols beginning with
12965 # underscore (_), so it is better to generate a list of symbols to
12966 # export.
12967 always_export_symbols_CXX=yes
12968 if test "$aix_use_runtimelinking" = yes; then
12969 # Warning - without using the other runtime loading flags (-brtl),
12970 # -berok will link without error, but may produce a broken library.
12971 allow_undefined_flag_CXX='-berok'
12972 # Determine the default libpath from the value encoded in an empty
12973 # executable.
12974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12975/* end confdefs.h. */
12976
12977int
12978main ()
12979{
12980
12981 ;
12982 return 0;
12983}
12984_ACEOF
12985if ac_fn_cxx_try_link "$LINENO"; then :
12986
12987lt_aix_libpath_sed='
12988 /Import File Strings/,/^$/ {
12989 /^0/ {
12990 s/^0 *\(.*\)$/\1/
12991 p
12992 }
12993 }'
12994aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12995# Check for a 64-bit object if we didn't find anything.
12996if test -z "$aix_libpath"; then
12997 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12998fi
12999fi
13000rm -f core conftest.err conftest.$ac_objext \
13001 conftest$ac_exeext conftest.$ac_ext
13002if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13003
13004 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13005
13006 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13007 else
13008 if test "$host_cpu" = ia64; then
13009 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13010 allow_undefined_flag_CXX="-z nodefs"
13011 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"
13012 else
13013 # Determine the default libpath from the value encoded in an
13014 # empty executable.
13015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13016/* end confdefs.h. */
13017
13018int
13019main ()
13020{
13021
13022 ;
13023 return 0;
13024}
13025_ACEOF
13026if ac_fn_cxx_try_link "$LINENO"; then :
13027
13028lt_aix_libpath_sed='
13029 /Import File Strings/,/^$/ {
13030 /^0/ {
13031 s/^0 *\(.*\)$/\1/
13032 p
13033 }
13034 }'
13035aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13036# Check for a 64-bit object if we didn't find anything.
13037if test -z "$aix_libpath"; then
13038 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13039fi
13040fi
13041rm -f core conftest.err conftest.$ac_objext \
13042 conftest$ac_exeext conftest.$ac_ext
13043if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13044
13045 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13046 # Warning - without using the other run time loading flags,
13047 # -berok will link without error, but may produce a broken library.
13048 no_undefined_flag_CXX=' ${wl}-bernotok'
13049 allow_undefined_flag_CXX=' ${wl}-berok'
13050 if test "$with_gnu_ld" = yes; then
13051 # We only use this code for GNU lds that support --whole-archive.
13052 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13053 else
13054 # Exported symbols can be pulled into shared objects from archives
13055 whole_archive_flag_spec_CXX='$convenience'
13056 fi
13057 archive_cmds_need_lc_CXX=yes
13058 # This is similar to how AIX traditionally builds its shared
13059 # libraries.
13060 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'
13061 fi
13062 fi
13063 ;;
13064
13065 beos*)
13066 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13067 allow_undefined_flag_CXX=unsupported
13068 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13069 # support --undefined. This deserves some investigation. FIXME
13070 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13071 else
13072 ld_shlibs_CXX=no
13073 fi
13074 ;;
13075
13076 chorus*)
13077 case $cc_basename in
13078 *)
13079 # FIXME: insert proper C++ library support
13080 ld_shlibs_CXX=no
13081 ;;
13082 esac
13083 ;;
13084
13085 cygwin* | mingw* | pw32* | cegcc*)
13086 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13087 # as there is no search path for DLLs.
13088 hardcode_libdir_flag_spec_CXX='-L$libdir'
13089 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13090 allow_undefined_flag_CXX=unsupported
13091 always_export_symbols_CXX=no
13092 enable_shared_with_static_runtimes_CXX=yes
13093
13094 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13095 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'
13096 # If the export-symbols file already is a .def file (1st line
13097 # is EXPORTS), use it as is; otherwise, prepend...
13098 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13099 cp $export_symbols $output_objdir/$soname.def;
13100 else
13101 echo EXPORTS > $output_objdir/$soname.def;
13102 cat $export_symbols >> $output_objdir/$soname.def;
13103 fi~
13104 $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'
13105 else
13106 ld_shlibs_CXX=no
13107 fi
13108 ;;
13109 darwin* | rhapsody*)
13110
13111
13112 archive_cmds_need_lc_CXX=no
13113 hardcode_direct_CXX=no
13114 hardcode_automatic_CXX=yes
13115 hardcode_shlibpath_var_CXX=unsupported
13116 if test "$lt_cv_ld_force_load" = "yes"; then
13117 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13118 else
13119 whole_archive_flag_spec_CXX=''
13120 fi
13121 link_all_deplibs_CXX=yes
13122 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13123 case $cc_basename in
13124 ifort*) _lt_dar_can_shared=yes ;;
13125 *) _lt_dar_can_shared=$GCC ;;
13126 esac
13127 if test "$_lt_dar_can_shared" = "yes"; then
13128 output_verbose_link_cmd=func_echo_all
13129 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}"
13130 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13131 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}"
13132 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}"
13133 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13134 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}"
13135 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}"
13136 fi
13137
13138 else
13139 ld_shlibs_CXX=no
13140 fi
13141
13142 ;;
13143
13144 dgux*)
13145 case $cc_basename in
13146 ec++*)
13147 # FIXME: insert proper C++ library support
13148 ld_shlibs_CXX=no
13149 ;;
13150 ghcx*)
13151 # Green Hills C++ Compiler
13152 # FIXME: insert proper C++ library support
13153 ld_shlibs_CXX=no
13154 ;;
13155 *)
13156 # FIXME: insert proper C++ library support
13157 ld_shlibs_CXX=no
13158 ;;
13159 esac
13160 ;;
13161
13162 freebsd2.*)
13163 # C++ shared libraries reported to be fairly broken before
13164 # switch to ELF
13165 ld_shlibs_CXX=no
13166 ;;
13167
13168 freebsd-elf*)
13169 archive_cmds_need_lc_CXX=no
13170 ;;
13171
13172 freebsd* | dragonfly*)
13173 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13174 # conventions
13175 ld_shlibs_CXX=yes
13176 ;;
13177
13178 gnu*)
13179 ;;
13180
13181 haiku*)
13182 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13183 link_all_deplibs_CXX=yes
13184 ;;
13185
13186 hpux9*)
13187 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13188 hardcode_libdir_separator_CXX=:
13189 export_dynamic_flag_spec_CXX='${wl}-E'
13190 hardcode_direct_CXX=yes
13191 hardcode_minus_L_CXX=yes # Not in the search PATH,
13192 # but as the default
13193 # location of the library.
13194
13195 case $cc_basename in
13196 CC*)
13197 # FIXME: insert proper C++ library support
13198 ld_shlibs_CXX=no
13199 ;;
13200 aCC*)
13201 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'
13202 # Commands to make compiler produce verbose output that lists
13203 # what "hidden" libraries, object files and flags are used when
13204 # linking a shared library.
13205 #
13206 # There doesn't appear to be a way to prevent this compiler from
13207 # explicitly linking system object files so we need to strip them
13208 # from the output so that they don't get included in the library
13209 # dependencies.
13210 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13211 ;;
13212 *)
13213 if test "$GXX" = yes; then
13214 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'
13215 else
13216 # FIXME: insert proper C++ library support
13217 ld_shlibs_CXX=no
13218 fi
13219 ;;
13220 esac
13221 ;;
13222
13223 hpux10*|hpux11*)
13224 if test $with_gnu_ld = no; then
13225 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13226 hardcode_libdir_separator_CXX=:
13227
13228 case $host_cpu in
13229 hppa*64*|ia64*)
13230 ;;
13231 *)
13232 export_dynamic_flag_spec_CXX='${wl}-E'
13233 ;;
13234 esac
13235 fi
13236 case $host_cpu in
13237 hppa*64*|ia64*)
13238 hardcode_direct_CXX=no
13239 hardcode_shlibpath_var_CXX=no
13240 ;;
13241 *)
13242 hardcode_direct_CXX=yes
13243 hardcode_direct_absolute_CXX=yes
13244 hardcode_minus_L_CXX=yes # Not in the search PATH,
13245 # but as the default
13246 # location of the library.
13247 ;;
13248 esac
13249
13250 case $cc_basename in
13251 CC*)
13252 # FIXME: insert proper C++ library support
13253 ld_shlibs_CXX=no
13254 ;;
13255 aCC*)
13256 case $host_cpu in
13257 hppa*64*)
13258 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13259 ;;
13260 ia64*)
13261 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13262 ;;
13263 *)
13264 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13265 ;;
13266 esac
13267 # Commands to make compiler produce verbose output that lists
13268 # what "hidden" libraries, object files and flags are used when
13269 # linking a shared library.
13270 #
13271 # There doesn't appear to be a way to prevent this compiler from
13272 # explicitly linking system object files so we need to strip them
13273 # from the output so that they don't get included in the library
13274 # dependencies.
13275 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; func_echo_all "$list"'
13276 ;;
13277 *)
13278 if test "$GXX" = yes; then
13279 if test $with_gnu_ld = no; then
13280 case $host_cpu in
13281 hppa*64*)
13282 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13283 ;;
13284 ia64*)
13285 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13286 ;;
13287 *)
13288 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'
13289 ;;
13290 esac
13291 fi
13292 else
13293 # FIXME: insert proper C++ library support
13294 ld_shlibs_CXX=no
13295 fi
13296 ;;
13297 esac
13298 ;;
13299
13300 interix[3-9]*)
13301 hardcode_direct_CXX=no
13302 hardcode_shlibpath_var_CXX=no
13303 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13304 export_dynamic_flag_spec_CXX='${wl}-E'
13305 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13306 # Instead, shared libraries are loaded at an image base (0x10000000 by
13307 # default) and relocated if they conflict, which is a slow very memory
13308 # consuming and fragmenting process. To avoid this, we pick a random,
13309 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13310 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13311 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'
13312 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'
13313 ;;
13314 irix5* | irix6*)
13315 case $cc_basename in
13316 CC*)
13317 # SGI C++
13318 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13319
13320 # Archives containing C++ object files must be created using
13321 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13322 # necessary to make sure instantiated templates are included
13323 # in the archive.
13324 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13325 ;;
13326 *)
13327 if test "$GXX" = yes; then
13328 if test "$with_gnu_ld" = no; then
13329 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13330 else
13331 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13332 fi
13333 fi
13334 link_all_deplibs_CXX=yes
13335 ;;
13336 esac
13337 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13338 hardcode_libdir_separator_CXX=:
13339 inherit_rpath_CXX=yes
13340 ;;
13341
13342 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13343 case $cc_basename in
13344 KCC*)
13345 # Kuck and Associates, Inc. (KAI) C++ Compiler
13346
13347 # KCC will only create a shared library if the output file
13348 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13349 # to its proper name (with version) after linking.
13350 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'
13351 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'
13352 # Commands to make compiler produce verbose output that lists
13353 # what "hidden" libraries, object files and flags are used when
13354 # linking a shared library.
13355 #
13356 # There doesn't appear to be a way to prevent this compiler from
13357 # explicitly linking system object files so we need to strip them
13358 # from the output so that they don't get included in the library
13359 # dependencies.
13360 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; func_echo_all "$list"'
13361
13362 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13363 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13364
13365 # Archives containing C++ object files must be created using
13366 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13367 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13368 ;;
13369 icpc* | ecpc* )
13370 # Intel C++
13371 with_gnu_ld=yes
13372 # version 8.0 and above of icpc choke on multiply defined symbols
13373 # if we add $predep_objects and $postdep_objects, however 7.1 and
13374 # earlier do not add the objects themselves.
13375 case `$CC -V 2>&1` in
13376 *"Version 7."*)
13377 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13378 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'
13379 ;;
13380 *) # Version 8.0 or newer
13381 tmp_idyn=
13382 case $host_cpu in
13383 ia64*) tmp_idyn=' -i_dynamic';;
13384 esac
13385 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13386 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'
13387 ;;
13388 esac
13389 archive_cmds_need_lc_CXX=no
13390 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13391 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13392 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13393 ;;
13394 pgCC* | pgcpp*)
13395 # Portland Group C++ compiler
13396 case `$CC -V` in
13397 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13398 prelink_cmds_CXX='tpldir=Template.dir~
13399 rm -rf $tpldir~
13400 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13401 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13402 old_archive_cmds_CXX='tpldir=Template.dir~
13403 rm -rf $tpldir~
13404 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13405 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13406 $RANLIB $oldlib'
13407 archive_cmds_CXX='tpldir=Template.dir~
13408 rm -rf $tpldir~
13409 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13410 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13411 archive_expsym_cmds_CXX='tpldir=Template.dir~
13412 rm -rf $tpldir~
13413 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13414 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13415 ;;
13416 *) # Version 6 and above use weak symbols
13417 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13418 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'
13419 ;;
13420 esac
13421
13422 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13423 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13424 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13425 ;;
13426 cxx*)
13427 # Compaq C++
13428 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13429 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'
13430
13431 runpath_var=LD_RUN_PATH
13432 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13433 hardcode_libdir_separator_CXX=:
13434
13435 # Commands to make compiler produce verbose output that lists
13436 # what "hidden" libraries, object files and flags are used when
13437 # linking a shared library.
13438 #
13439 # There doesn't appear to be a way to prevent this compiler from
13440 # explicitly linking system object files so we need to strip them
13441 # from the output so that they don't get included in the library
13442 # dependencies.
13443 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
13444 ;;
13445 xl* | mpixl* | bgxl*)
13446 # IBM XL 8.0 on PPC, with GNU ld
13447 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13448 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13449 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13450 if test "x$supports_anon_versioning" = xyes; then
13451 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13452 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13453 echo "local: *; };" >> $output_objdir/$libname.ver~
13454 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13455 fi
13456 ;;
13457 *)
13458 case `$CC -V 2>&1 | sed 5q` in
13459 *Sun\ C*)
13460 # Sun C++ 5.9
13461 no_undefined_flag_CXX=' -zdefs'
13462 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13463 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'
13464 hardcode_libdir_flag_spec_CXX='-R$libdir'
13465 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13466 compiler_needs_object_CXX=yes
13467
13468 # Not sure whether something based on
13469 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13470 # would be better.
13471 output_verbose_link_cmd='func_echo_all'
13472
13473 # Archives containing C++ object files must be created using
13474 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13475 # necessary to make sure instantiated templates are included
13476 # in the archive.
13477 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13478 ;;
13479 esac
13480 ;;
13481 esac
13482 ;;
13483
13484 lynxos*)
13485 # FIXME: insert proper C++ library support
13486 ld_shlibs_CXX=no
13487 ;;
13488
13489 m88k*)
13490 # FIXME: insert proper C++ library support
13491 ld_shlibs_CXX=no
13492 ;;
13493
13494 mvs*)
13495 case $cc_basename in
13496 cxx*)
13497 # FIXME: insert proper C++ library support
13498 ld_shlibs_CXX=no
13499 ;;
13500 *)
13501 # FIXME: insert proper C++ library support
13502 ld_shlibs_CXX=no
13503 ;;
13504 esac
13505 ;;
13506
13507 netbsd*)
13508 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13509 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13510 wlarc=
13511 hardcode_libdir_flag_spec_CXX='-R$libdir'
13512 hardcode_direct_CXX=yes
13513 hardcode_shlibpath_var_CXX=no
13514 fi
13515 # Workaround some broken pre-1.5 toolchains
13516 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13517 ;;
13518
13519 *nto* | *qnx*)
13520 ld_shlibs_CXX=yes
13521 ;;
13522
13523 openbsd2*)
13524 # C++ shared libraries are fairly broken
13525 ld_shlibs_CXX=no
13526 ;;
13527
13528 openbsd*)
13529 if test -f /usr/libexec/ld.so; then
13530 hardcode_direct_CXX=yes
13531 hardcode_shlibpath_var_CXX=no
13532 hardcode_direct_absolute_CXX=yes
13533 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13534 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13535 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13536 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13537 export_dynamic_flag_spec_CXX='${wl}-E'
13538 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13539 fi
13540 output_verbose_link_cmd=func_echo_all
13541 else
13542 ld_shlibs_CXX=no
13543 fi
13544 ;;
13545
13546 osf3* | osf4* | osf5*)
13547 case $cc_basename in
13548 KCC*)
13549 # Kuck and Associates, Inc. (KAI) C++ Compiler
13550
13551 # KCC will only create a shared library if the output file
13552 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13553 # to its proper name (with version) after linking.
13554 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'
13555
13556 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13557 hardcode_libdir_separator_CXX=:
13558
13559 # Archives containing C++ object files must be created using
13560 # the KAI C++ compiler.
13561 case $host in
13562 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13563 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13564 esac
13565 ;;
13566 RCC*)
13567 # Rational C++ 2.4.1
13568 # FIXME: insert proper C++ library support
13569 ld_shlibs_CXX=no
13570 ;;
13571 cxx*)
13572 case $host in
13573 osf3*)
13574 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13575 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13576 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13577 ;;
13578 *)
13579 allow_undefined_flag_CXX=' -expect_unresolved \*'
13580 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13581 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13582 echo "-hidden">> $lib.exp~
13583 $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~
13584 $RM $lib.exp'
13585 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13586 ;;
13587 esac
13588
13589 hardcode_libdir_separator_CXX=:
13590
13591 # Commands to make compiler produce verbose output that lists
13592 # what "hidden" libraries, object files and flags are used when
13593 # linking a shared library.
13594 #
13595 # There doesn't appear to be a way to prevent this compiler from
13596 # explicitly linking system object files so we need to strip them
13597 # from the output so that they don't get included in the library
13598 # dependencies.
13599 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
13600 ;;
13601 *)
13602 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13603 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13604 case $host in
13605 osf3*)
13606 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13607 ;;
13608 *)
13609 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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13610 ;;
13611 esac
13612
13613 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13614 hardcode_libdir_separator_CXX=:
13615
13616 # Commands to make compiler produce verbose output that lists
13617 # what "hidden" libraries, object files and flags are used when
13618 # linking a shared library.
13619 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13620
13621 else
13622 # FIXME: insert proper C++ library support
13623 ld_shlibs_CXX=no
13624 fi
13625 ;;
13626 esac
13627 ;;
13628
13629 psos*)
13630 # FIXME: insert proper C++ library support
13631 ld_shlibs_CXX=no
13632 ;;
13633
13634 sunos4*)
13635 case $cc_basename in
13636 CC*)
13637 # Sun C++ 4.x
13638 # FIXME: insert proper C++ library support
13639 ld_shlibs_CXX=no
13640 ;;
13641 lcc*)
13642 # Lucid
13643 # FIXME: insert proper C++ library support
13644 ld_shlibs_CXX=no
13645 ;;
13646 *)
13647 # FIXME: insert proper C++ library support
13648 ld_shlibs_CXX=no
13649 ;;
13650 esac
13651 ;;
13652
13653 solaris*)
13654 case $cc_basename in
13655 CC*)
13656 # Sun C++ 4.2, 5.x and Centerline C++
13657 archive_cmds_need_lc_CXX=yes
13658 no_undefined_flag_CXX=' -zdefs'
13659 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13660 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13661 $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'
13662
13663 hardcode_libdir_flag_spec_CXX='-R$libdir'
13664 hardcode_shlibpath_var_CXX=no
13665 case $host_os in
13666 solaris2.[0-5] | solaris2.[0-5].*) ;;
13667 *)
13668 # The compiler driver will combine and reorder linker options,
13669 # but understands `-z linker_flag'.
13670 # Supported since Solaris 2.6 (maybe 2.5.1?)
13671 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13672 ;;
13673 esac
13674 link_all_deplibs_CXX=yes
13675
13676 output_verbose_link_cmd='func_echo_all'
13677
13678 # Archives containing C++ object files must be created using
13679 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13680 # necessary to make sure instantiated templates are included
13681 # in the archive.
13682 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13683 ;;
13684 gcx*)
13685 # Green Hills C++ Compiler
13686 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13687
13688 # The C++ compiler must be used to create the archive.
13689 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13690 ;;
13691 *)
13692 # GNU C++ compiler with Solaris linker
13693 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13694 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13695 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13696 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13697 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13698 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13699
13700 # Commands to make compiler produce verbose output that lists
13701 # what "hidden" libraries, object files and flags are used when
13702 # linking a shared library.
13703 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13704 else
13705 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13706 # platform.
13707 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13708 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13709 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13710
13711 # Commands to make compiler produce verbose output that lists
13712 # what "hidden" libraries, object files and flags are used when
13713 # linking a shared library.
13714 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13715 fi
13716
13717 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13718 case $host_os in
13719 solaris2.[0-5] | solaris2.[0-5].*) ;;
13720 *)
13721 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13722 ;;
13723 esac
13724 fi
13725 ;;
13726 esac
13727 ;;
13728
13729 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13730 no_undefined_flag_CXX='${wl}-z,text'
13731 archive_cmds_need_lc_CXX=no
13732 hardcode_shlibpath_var_CXX=no
13733 runpath_var='LD_RUN_PATH'
13734
13735 case $cc_basename in
13736 CC*)
13737 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13738 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13739 ;;
13740 *)
13741 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13742 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13743 ;;
13744 esac
13745 ;;
13746
13747 sysv5* | sco3.2v5* | sco5v6*)
13748 # Note: We can NOT use -z defs as we might desire, because we do not
13749 # link with -lc, and that would cause any symbols used from libc to
13750 # always be unresolved, which means just about no library would
13751 # ever link correctly. If we're not using GNU ld we use -z text
13752 # though, which does catch some bad symbols but isn't as heavy-handed
13753 # as -z defs.
13754 no_undefined_flag_CXX='${wl}-z,text'
13755 allow_undefined_flag_CXX='${wl}-z,nodefs'
13756 archive_cmds_need_lc_CXX=no
13757 hardcode_shlibpath_var_CXX=no
13758 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13759 hardcode_libdir_separator_CXX=':'
13760 link_all_deplibs_CXX=yes
13761 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13762 runpath_var='LD_RUN_PATH'
13763
13764 case $cc_basename in
13765 CC*)
13766 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13767 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13768 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13769 '"$old_archive_cmds_CXX"
13770 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13771 '"$reload_cmds_CXX"
13772 ;;
13773 *)
13774 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13775 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13776 ;;
13777 esac
13778 ;;
13779
13780 tandem*)
13781 case $cc_basename in
13782 NCC*)
13783 # NonStop-UX NCC 3.20
13784 # FIXME: insert proper C++ library support
13785 ld_shlibs_CXX=no
13786 ;;
13787 *)
13788 # FIXME: insert proper C++ library support
13789 ld_shlibs_CXX=no
13790 ;;
13791 esac
13792 ;;
13793
13794 vxworks*)
13795 # FIXME: insert proper C++ library support
13796 ld_shlibs_CXX=no
13797 ;;
13798
13799 *)
13800 # FIXME: insert proper C++ library support
13801 ld_shlibs_CXX=no
13802 ;;
13803 esac
13804
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13806$as_echo "$ld_shlibs_CXX" >&6; }
13807 test "$ld_shlibs_CXX" = no && can_build_shared=no
13808
13809 GCC_CXX="$GXX"
13810 LD_CXX="$LD"
13811
13812 ## CAVEAT EMPTOR:
13813 ## There is no encapsulation within the following macros, do not change
13814 ## the running order or otherwise move them around unless you know exactly
13815 ## what you are doing...
13816 # Dependencies to place before and after the object being linked:
13817predep_objects_CXX=
13818postdep_objects_CXX=
13819predeps_CXX=
13820postdeps_CXX=
13821compiler_lib_search_path_CXX=
13822
13823cat > conftest.$ac_ext <<_LT_EOF
13824class Foo
13825{
13826public:
13827 Foo (void) { a = 0; }
13828private:
13829 int a;
13830};
13831_LT_EOF
13832
13833if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13834 (eval $ac_compile) 2>&5
13835 ac_status=$?
13836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13837 test $ac_status = 0; }; then
13838 # Parse the compiler output and extract the necessary
13839 # objects, libraries and library flags.
13840
13841 # Sentinel used to keep track of whether or not we are before
13842 # the conftest object file.
13843 pre_test_object_deps_done=no
13844
13845 for p in `eval "$output_verbose_link_cmd"`; do
13846 case $p in
13847
13848 -L* | -R* | -l*)
13849 # Some compilers place space between "-{L,R}" and the path.
13850 # Remove the space.
13851 if test $p = "-L" ||
13852 test $p = "-R"; then
13853 prev=$p
13854 continue
13855 else
13856 prev=
13857 fi
13858
13859 if test "$pre_test_object_deps_done" = no; then
13860 case $p in
13861 -L* | -R*)
13862 # Internal compiler library paths should come after those
13863 # provided the user. The postdeps already come after the
13864 # user supplied libs so there is no need to process them.
13865 if test -z "$compiler_lib_search_path_CXX"; then
13866 compiler_lib_search_path_CXX="${prev}${p}"
13867 else
13868 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13869 fi
13870 ;;
13871 # The "-l" case would never come before the object being
13872 # linked, so don't bother handling this case.
13873 esac
13874 else
13875 if test -z "$postdeps_CXX"; then
13876 postdeps_CXX="${prev}${p}"
13877 else
13878 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13879 fi
13880 fi
13881 ;;
13882
13883 *.$objext)
13884 # This assumes that the test object file only shows up
13885 # once in the compiler output.
13886 if test "$p" = "conftest.$objext"; then
13887 pre_test_object_deps_done=yes
13888 continue
13889 fi
13890
13891 if test "$pre_test_object_deps_done" = no; then
13892 if test -z "$predep_objects_CXX"; then
13893 predep_objects_CXX="$p"
13894 else
13895 predep_objects_CXX="$predep_objects_CXX $p"
13896 fi
13897 else
13898 if test -z "$postdep_objects_CXX"; then
13899 postdep_objects_CXX="$p"
13900 else
13901 postdep_objects_CXX="$postdep_objects_CXX $p"
13902 fi
13903 fi
13904 ;;
13905
13906 *) ;; # Ignore the rest.
13907
13908 esac
13909 done
13910
13911 # Clean up.
13912 rm -f a.out a.exe
13913else
13914 echo "libtool.m4: error: problem compiling CXX test program"
13915fi
13916
13917$RM -f confest.$objext
13918
13919# PORTME: override above test on systems where it is broken
13920case $host_os in
13921interix[3-9]*)
13922 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13923 # hack all around it, let's just trust "g++" to DTRT.
13924 predep_objects_CXX=
13925 postdep_objects_CXX=
13926 postdeps_CXX=
13927 ;;
13928
13929linux*)
13930 case `$CC -V 2>&1 | sed 5q` in
13931 *Sun\ C*)
13932 # Sun C++ 5.9
13933
13934 # The more standards-conforming stlport4 library is
13935 # incompatible with the Cstd library. Avoid specifying
13936 # it if it's in CXXFLAGS. Ignore libCrun as
13937 # -library=stlport4 depends on it.
13938 case " $CXX $CXXFLAGS " in
13939 *" -library=stlport4 "*)
13940 solaris_use_stlport4=yes
13941 ;;
13942 esac
13943
13944 if test "$solaris_use_stlport4" != yes; then
13945 postdeps_CXX='-library=Cstd -library=Crun'
13946 fi
13947 ;;
13948 esac
13949 ;;
13950
13951solaris*)
13952 case $cc_basename in
13953 CC*)
13954 # The more standards-conforming stlport4 library is
13955 # incompatible with the Cstd library. Avoid specifying
13956 # it if it's in CXXFLAGS. Ignore libCrun as
13957 # -library=stlport4 depends on it.
13958 case " $CXX $CXXFLAGS " in
13959 *" -library=stlport4 "*)
13960 solaris_use_stlport4=yes
13961 ;;
13962 esac
13963
13964 # Adding this requires a known-good setup of shared libraries for
13965 # Sun compiler versions before 5.6, else PIC objects from an old
13966 # archive will be linked into the output, leading to subtle bugs.
13967 if test "$solaris_use_stlport4" != yes; then
13968 postdeps_CXX='-library=Cstd -library=Crun'
13969 fi
13970 ;;
13971 esac
13972 ;;
13973esac
13974
13975
13976case " $postdeps_CXX " in
13977*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13978esac
13979 compiler_lib_search_dirs_CXX=
13980if test -n "${compiler_lib_search_path_CXX}"; then
13981 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13982fi
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014 lt_prog_compiler_wl_CXX=
14015lt_prog_compiler_pic_CXX=
14016lt_prog_compiler_static_CXX=
14017
14018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14019$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14020
14021 # C++ specific cases for pic, static, wl, etc.
14022 if test "$GXX" = yes; then
14023 lt_prog_compiler_wl_CXX='-Wl,'
14024 lt_prog_compiler_static_CXX='-static'
14025
14026 case $host_os in
14027 aix*)
14028 # All AIX code is PIC.
14029 if test "$host_cpu" = ia64; then
14030 # AIX 5 now supports IA64 processor
14031 lt_prog_compiler_static_CXX='-Bstatic'
14032 fi
14033 lt_prog_compiler_pic_CXX='-fPIC'
14034 ;;
14035
14036 amigaos*)
14037 case $host_cpu in
14038 powerpc)
14039 # see comment about AmigaOS4 .so support
14040 lt_prog_compiler_pic_CXX='-fPIC'
14041 ;;
14042 m68k)
14043 # FIXME: we need at least 68020 code to build shared libraries, but
14044 # adding the `-m68020' flag to GCC prevents building anything better,
14045 # like `-m68040'.
14046 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14047 ;;
14048 esac
14049 ;;
14050
14051 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14052 # PIC is the default for these OSes.
14053 ;;
14054 mingw* | cygwin* | os2* | pw32* | cegcc*)
14055 # This hack is so that the source file can tell whether it is being
14056 # built for inclusion in a dll (and should export symbols for example).
14057 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14058 # (--disable-auto-import) libraries
14059 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14060 ;;
14061 darwin* | rhapsody*)
14062 # PIC is the default on this platform
14063 # Common symbols not allowed in MH_DYLIB files
14064 lt_prog_compiler_pic_CXX='-fno-common'
14065 ;;
14066 *djgpp*)
14067 # DJGPP does not support shared libraries at all
14068 lt_prog_compiler_pic_CXX=
14069 ;;
14070 haiku*)
14071 # PIC is the default for Haiku.
14072 # The "-static" flag exists, but is broken.
14073 lt_prog_compiler_static_CXX=
14074 ;;
14075 interix[3-9]*)
14076 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14077 # Instead, we relocate shared libraries at runtime.
14078 ;;
14079 sysv4*MP*)
14080 if test -d /usr/nec; then
14081 lt_prog_compiler_pic_CXX=-Kconform_pic
14082 fi
14083 ;;
14084 hpux*)
14085 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14086 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14087 # sets the default TLS model and affects inlining.
14088 case $host_cpu in
14089 hppa*64*)
14090 ;;
14091 *)
14092 lt_prog_compiler_pic_CXX='-fPIC'
14093 ;;
14094 esac
14095 ;;
14096 *qnx* | *nto*)
14097 # QNX uses GNU C++, but need to define -shared option too, otherwise
14098 # it will coredump.
14099 lt_prog_compiler_pic_CXX='-fPIC -shared'
14100 ;;
14101 *)
14102 lt_prog_compiler_pic_CXX='-fPIC'
14103 ;;
14104 esac
14105 else
14106 case $host_os in
14107 aix[4-9]*)
14108 # All AIX code is PIC.
14109 if test "$host_cpu" = ia64; then
14110 # AIX 5 now supports IA64 processor
14111 lt_prog_compiler_static_CXX='-Bstatic'
14112 else
14113 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14114 fi
14115 ;;
14116 chorus*)
14117 case $cc_basename in
14118 cxch68*)
14119 # Green Hills C++ Compiler
14120 # _LT_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"
14121 ;;
14122 esac
14123 ;;
14124 dgux*)
14125 case $cc_basename in
14126 ec++*)
14127 lt_prog_compiler_pic_CXX='-KPIC'
14128 ;;
14129 ghcx*)
14130 # Green Hills C++ Compiler
14131 lt_prog_compiler_pic_CXX='-pic'
14132 ;;
14133 *)
14134 ;;
14135 esac
14136 ;;
14137 freebsd* | dragonfly*)
14138 # FreeBSD uses GNU C++
14139 ;;
14140 hpux9* | hpux10* | hpux11*)
14141 case $cc_basename in
14142 CC*)
14143 lt_prog_compiler_wl_CXX='-Wl,'
14144 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14145 if test "$host_cpu" != ia64; then
14146 lt_prog_compiler_pic_CXX='+Z'
14147 fi
14148 ;;
14149 aCC*)
14150 lt_prog_compiler_wl_CXX='-Wl,'
14151 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14152 case $host_cpu in
14153 hppa*64*|ia64*)
14154 # +Z the default
14155 ;;
14156 *)
14157 lt_prog_compiler_pic_CXX='+Z'
14158 ;;
14159 esac
14160 ;;
14161 *)
14162 ;;
14163 esac
14164 ;;
14165 interix*)
14166 # This is c89, which is MS Visual C++ (no shared libs)
14167 # Anyone wants to do a port?
14168 ;;
14169 irix5* | irix6* | nonstopux*)
14170 case $cc_basename in
14171 CC*)
14172 lt_prog_compiler_wl_CXX='-Wl,'
14173 lt_prog_compiler_static_CXX='-non_shared'
14174 # CC pic flag -KPIC is the default.
14175 ;;
14176 *)
14177 ;;
14178 esac
14179 ;;
14180 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14181 case $cc_basename in
14182 KCC*)
14183 # KAI C++ Compiler
14184 lt_prog_compiler_wl_CXX='--backend -Wl,'
14185 lt_prog_compiler_pic_CXX='-fPIC'
14186 ;;
14187 ecpc* )
14188 # old Intel C++ for x86_64 which still supported -KPIC.
14189 lt_prog_compiler_wl_CXX='-Wl,'
14190 lt_prog_compiler_pic_CXX='-KPIC'
14191 lt_prog_compiler_static_CXX='-static'
14192 ;;
14193 icpc* )
14194 # Intel C++, used to be incompatible with GCC.
14195 # ICC 10 doesn't accept -KPIC any more.
14196 lt_prog_compiler_wl_CXX='-Wl,'
14197 lt_prog_compiler_pic_CXX='-fPIC'
14198 lt_prog_compiler_static_CXX='-static'
14199 ;;
14200 pgCC* | pgcpp*)
14201 # Portland Group C++ compiler
14202 lt_prog_compiler_wl_CXX='-Wl,'
14203 lt_prog_compiler_pic_CXX='-fpic'
14204 lt_prog_compiler_static_CXX='-Bstatic'
14205 ;;
14206 cxx*)
14207 # Compaq C++
14208 # Make sure the PIC flag is empty. It appears that all Alpha
14209 # Linux and Compaq Tru64 Unix objects are PIC.
14210 lt_prog_compiler_pic_CXX=
14211 lt_prog_compiler_static_CXX='-non_shared'
14212 ;;
14213 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14214 # IBM XL 8.0, 9.0 on PPC and BlueGene
14215 lt_prog_compiler_wl_CXX='-Wl,'
14216 lt_prog_compiler_pic_CXX='-qpic'
14217 lt_prog_compiler_static_CXX='-qstaticlink'
14218 ;;
14219 *)
14220 case `$CC -V 2>&1 | sed 5q` in
14221 *Sun\ C*)
14222 # Sun C++ 5.9
14223 lt_prog_compiler_pic_CXX='-KPIC'
14224 lt_prog_compiler_static_CXX='-Bstatic'
14225 lt_prog_compiler_wl_CXX='-Qoption ld '
14226 ;;
14227 esac
14228 ;;
14229 esac
14230 ;;
14231 lynxos*)
14232 ;;
14233 m88k*)
14234 ;;
14235 mvs*)
14236 case $cc_basename in
14237 cxx*)
14238 lt_prog_compiler_pic_CXX='-W c,exportall'
14239 ;;
14240 *)
14241 ;;
14242 esac
14243 ;;
14244 netbsd*)
14245 ;;
14246 *qnx* | *nto*)
14247 # QNX uses GNU C++, but need to define -shared option too, otherwise
14248 # it will coredump.
14249 lt_prog_compiler_pic_CXX='-fPIC -shared'
14250 ;;
14251 osf3* | osf4* | osf5*)
14252 case $cc_basename in
14253 KCC*)
14254 lt_prog_compiler_wl_CXX='--backend -Wl,'
14255 ;;
14256 RCC*)
14257 # Rational C++ 2.4.1
14258 lt_prog_compiler_pic_CXX='-pic'
14259 ;;
14260 cxx*)
14261 # Digital/Compaq C++
14262 lt_prog_compiler_wl_CXX='-Wl,'
14263 # Make sure the PIC flag is empty. It appears that all Alpha
14264 # Linux and Compaq Tru64 Unix objects are PIC.
14265 lt_prog_compiler_pic_CXX=
14266 lt_prog_compiler_static_CXX='-non_shared'
14267 ;;
14268 *)
14269 ;;
14270 esac
14271 ;;
14272 psos*)
14273 ;;
14274 solaris*)
14275 case $cc_basename in
14276 CC*)
14277 # Sun C++ 4.2, 5.x and Centerline C++
14278 lt_prog_compiler_pic_CXX='-KPIC'
14279 lt_prog_compiler_static_CXX='-Bstatic'
14280 lt_prog_compiler_wl_CXX='-Qoption ld '
14281 ;;
14282 gcx*)
14283 # Green Hills C++ Compiler
14284 lt_prog_compiler_pic_CXX='-PIC'
14285 ;;
14286 *)
14287 ;;
14288 esac
14289 ;;
14290 sunos4*)
14291 case $cc_basename in
14292 CC*)
14293 # Sun C++ 4.x
14294 lt_prog_compiler_pic_CXX='-pic'
14295 lt_prog_compiler_static_CXX='-Bstatic'
14296 ;;
14297 lcc*)
14298 # Lucid
14299 lt_prog_compiler_pic_CXX='-pic'
14300 ;;
14301 *)
14302 ;;
14303 esac
14304 ;;
14305 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14306 case $cc_basename in
14307 CC*)
14308 lt_prog_compiler_wl_CXX='-Wl,'
14309 lt_prog_compiler_pic_CXX='-KPIC'
14310 lt_prog_compiler_static_CXX='-Bstatic'
14311 ;;
14312 esac
14313 ;;
14314 tandem*)
14315 case $cc_basename in
14316 NCC*)
14317 # NonStop-UX NCC 3.20
14318 lt_prog_compiler_pic_CXX='-KPIC'
14319 ;;
14320 *)
14321 ;;
14322 esac
14323 ;;
14324 vxworks*)
14325 ;;
14326 *)
14327 lt_prog_compiler_can_build_shared_CXX=no
14328 ;;
14329 esac
14330 fi
14331
14332case $host_os in
14333 # For platforms which do not support PIC, -DPIC is meaningless:
14334 *djgpp*)
14335 lt_prog_compiler_pic_CXX=
14336 ;;
14337 *)
14338 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14339 ;;
14340esac
14341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14342$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14343
14344
14345
14346#
14347# Check to make sure the PIC flag actually works.
14348#
14349if test -n "$lt_prog_compiler_pic_CXX"; then
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14351$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14352if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14353 $as_echo_n "(cached) " >&6
14354else
14355 lt_cv_prog_compiler_pic_works_CXX=no
14356 ac_outfile=conftest.$ac_objext
14357 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14358 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14359 # Insert the option either (1) after the last *FLAGS variable, or
14360 # (2) before a word containing "conftest.", or (3) at the end.
14361 # Note that $ac_compile itself does not contain backslashes and begins
14362 # with a dollar sign (not a hyphen), so the echo should work correctly.
14363 # The option is referenced via a variable to avoid confusing sed.
14364 lt_compile=`echo "$ac_compile" | $SED \
14365 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14366 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14367 -e 's:$: $lt_compiler_flag:'`
14368 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14369 (eval "$lt_compile" 2>conftest.err)
14370 ac_status=$?
14371 cat conftest.err >&5
14372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373 if (exit $ac_status) && test -s "$ac_outfile"; then
14374 # The compiler can only warn and ignore the option if not recognized
14375 # So say no if there are warnings other than the usual output.
14376 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14377 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14378 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14379 lt_cv_prog_compiler_pic_works_CXX=yes
14380 fi
14381 fi
14382 $RM conftest*
14383
14384fi
14385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14386$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14387
14388if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14389 case $lt_prog_compiler_pic_CXX in
14390 "" | " "*) ;;
14391 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14392 esac
14393else
14394 lt_prog_compiler_pic_CXX=
14395 lt_prog_compiler_can_build_shared_CXX=no
14396fi
14397
14398fi
14399
14400
14401
14402#
14403# Check to make sure the static flag actually works.
14404#
14405wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14407$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14408if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14409 $as_echo_n "(cached) " >&6
14410else
14411 lt_cv_prog_compiler_static_works_CXX=no
14412 save_LDFLAGS="$LDFLAGS"
14413 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14414 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14415 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14416 # The linker can only warn and ignore the option if not recognized
14417 # So say no if there are warnings
14418 if test -s conftest.err; then
14419 # Append any errors to the config.log.
14420 cat conftest.err 1>&5
14421 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14422 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14423 if diff conftest.exp conftest.er2 >/dev/null; then
14424 lt_cv_prog_compiler_static_works_CXX=yes
14425 fi
14426 else
14427 lt_cv_prog_compiler_static_works_CXX=yes
14428 fi
14429 fi
14430 $RM -r conftest*
14431 LDFLAGS="$save_LDFLAGS"
14432
14433fi
14434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14435$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14436
14437if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14438 :
14439else
14440 lt_prog_compiler_static_CXX=
14441fi
14442
14443
14444
14445
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14447$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14448if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14449 $as_echo_n "(cached) " >&6
14450else
14451 lt_cv_prog_compiler_c_o_CXX=no
14452 $RM -r conftest 2>/dev/null
14453 mkdir conftest
14454 cd conftest
14455 mkdir out
14456 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14457
14458 lt_compiler_flag="-o out/conftest2.$ac_objext"
14459 # Insert the option either (1) after the last *FLAGS variable, or
14460 # (2) before a word containing "conftest.", or (3) at the end.
14461 # Note that $ac_compile itself does not contain backslashes and begins
14462 # with a dollar sign (not a hyphen), so the echo should work correctly.
14463 lt_compile=`echo "$ac_compile" | $SED \
14464 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14465 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14466 -e 's:$: $lt_compiler_flag:'`
14467 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14468 (eval "$lt_compile" 2>out/conftest.err)
14469 ac_status=$?
14470 cat out/conftest.err >&5
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14473 then
14474 # The compiler can only warn and ignore the option if not recognized
14475 # So say no if there are warnings
14476 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14477 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14478 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14479 lt_cv_prog_compiler_c_o_CXX=yes
14480 fi
14481 fi
14482 chmod u+w . 2>&5
14483 $RM conftest*
14484 # SGI C++ compiler will create directory out/ii_files/ for
14485 # template instantiation
14486 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14487 $RM out/* && rmdir out
14488 cd ..
14489 $RM -r conftest
14490 $RM conftest*
14491
14492fi
14493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14494$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14495
14496
14497
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14499$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14500if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14501 $as_echo_n "(cached) " >&6
14502else
14503 lt_cv_prog_compiler_c_o_CXX=no
14504 $RM -r conftest 2>/dev/null
14505 mkdir conftest
14506 cd conftest
14507 mkdir out
14508 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14509
14510 lt_compiler_flag="-o out/conftest2.$ac_objext"
14511 # Insert the option either (1) after the last *FLAGS variable, or
14512 # (2) before a word containing "conftest.", or (3) at the end.
14513 # Note that $ac_compile itself does not contain backslashes and begins
14514 # with a dollar sign (not a hyphen), so the echo should work correctly.
14515 lt_compile=`echo "$ac_compile" | $SED \
14516 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14517 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14518 -e 's:$: $lt_compiler_flag:'`
14519 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14520 (eval "$lt_compile" 2>out/conftest.err)
14521 ac_status=$?
14522 cat out/conftest.err >&5
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14525 then
14526 # The compiler can only warn and ignore the option if not recognized
14527 # So say no if there are warnings
14528 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14529 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14530 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14531 lt_cv_prog_compiler_c_o_CXX=yes
14532 fi
14533 fi
14534 chmod u+w . 2>&5
14535 $RM conftest*
14536 # SGI C++ compiler will create directory out/ii_files/ for
14537 # template instantiation
14538 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14539 $RM out/* && rmdir out
14540 cd ..
14541 $RM -r conftest
14542 $RM conftest*
14543
14544fi
14545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14546$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14547
14548
14549
14550
14551hard_links="nottested"
14552if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14553 # do not overwrite the value of need_locks provided by the user
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14555$as_echo_n "checking if we can lock with hard links... " >&6; }
14556 hard_links=yes
14557 $RM conftest*
14558 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14559 touch conftest.a
14560 ln conftest.a conftest.b 2>&5 || hard_links=no
14561 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14563$as_echo "$hard_links" >&6; }
14564 if test "$hard_links" = no; then
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14566$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14567 need_locks=warn
14568 fi
14569else
14570 need_locks=no
14571fi
14572
14573
14574
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14576$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14577
14578 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14579 case $host_os in
14580 aix[4-9]*)
14581 # If we're using GNU nm, then we don't want the "-C" option.
14582 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14583 # Also, AIX nm treats weak defined symbols like other global defined
14584 # symbols, whereas GNU nm marks them as "W".
14585 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14586 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14587 else
14588 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'
14589 fi
14590 ;;
14591 pw32*)
14592 export_symbols_cmds_CXX="$ltdll_cmds"
14593 ;;
14594 cygwin* | mingw* | cegcc*)
14595 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'
14596 ;;
14597 *)
14598 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14599 ;;
14600 esac
14601 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14602
14603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14604$as_echo "$ld_shlibs_CXX" >&6; }
14605test "$ld_shlibs_CXX" = no && can_build_shared=no
14606
14607with_gnu_ld_CXX=$with_gnu_ld
14608
14609
14610
14611
14612
14613
14614#
14615# Do we need to explicitly link libc?
14616#
14617case "x$archive_cmds_need_lc_CXX" in
14618x|xyes)
14619 # Assume -lc should be added
14620 archive_cmds_need_lc_CXX=yes
14621
14622 if test "$enable_shared" = yes && test "$GCC" = yes; then
14623 case $archive_cmds_CXX in
14624 *'~'*)
14625 # FIXME: we may have to deal with multi-command sequences.
14626 ;;
14627 '$CC '*)
14628 # Test whether the compiler implicitly links with -lc since on some
14629 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14630 # to ld, don't add -lc before -lgcc.
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14632$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14633if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14634 $as_echo_n "(cached) " >&6
14635else
14636 $RM conftest*
14637 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14638
14639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14640 (eval $ac_compile) 2>&5
14641 ac_status=$?
14642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14643 test $ac_status = 0; } 2>conftest.err; then
14644 soname=conftest
14645 lib=conftest
14646 libobjs=conftest.$ac_objext
14647 deplibs=
14648 wl=$lt_prog_compiler_wl_CXX
14649 pic_flag=$lt_prog_compiler_pic_CXX
14650 compiler_flags=-v
14651 linker_flags=-v
14652 verstring=
14653 output_objdir=.
14654 libname=conftest
14655 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14656 allow_undefined_flag_CXX=
14657 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14658 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14659 ac_status=$?
14660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14661 test $ac_status = 0; }
14662 then
14663 lt_cv_archive_cmds_need_lc_CXX=no
14664 else
14665 lt_cv_archive_cmds_need_lc_CXX=yes
14666 fi
14667 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14668 else
14669 cat conftest.err 1>&5
14670 fi
14671 $RM conftest*
14672
14673fi
14674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14675$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14676 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14677 ;;
14678 esac
14679 fi
14680 ;;
14681esac
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14747$as_echo_n "checking dynamic linker characteristics... " >&6; }
14748
14749library_names_spec=
14750libname_spec='lib$name'
14751soname_spec=
14752shrext_cmds=".so"
14753postinstall_cmds=
14754postuninstall_cmds=
14755finish_cmds=
14756finish_eval=
14757shlibpath_var=
14758shlibpath_overrides_runpath=unknown
14759version_type=none
14760dynamic_linker="$host_os ld.so"
14761sys_lib_dlsearch_path_spec="/lib /usr/lib"
14762need_lib_prefix=unknown
14763hardcode_into_libs=no
14764
14765# when you set need_version to no, make sure it does not cause -set_version
14766# flags to be left without arguments
14767need_version=unknown
14768
14769case $host_os in
14770aix3*)
14771 version_type=linux
14772 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14773 shlibpath_var=LIBPATH
14774
14775 # AIX 3 has no versioning support, so we append a major version to the name.
14776 soname_spec='${libname}${release}${shared_ext}$major'
14777 ;;
14778
14779aix[4-9]*)
14780 version_type=linux
14781 need_lib_prefix=no
14782 need_version=no
14783 hardcode_into_libs=yes
14784 if test "$host_cpu" = ia64; then
14785 # AIX 5 supports IA64
14786 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14787 shlibpath_var=LD_LIBRARY_PATH
14788 else
14789 # With GCC up to 2.95.x, collect2 would create an import file
14790 # for dependence libraries. The import file would start with
14791 # the line `#! .'. This would cause the generated library to
14792 # depend on `.', always an invalid library. This was fixed in
14793 # development snapshots of GCC prior to 3.0.
14794 case $host_os in
14795 aix4 | aix4.[01] | aix4.[01].*)
14796 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14797 echo ' yes '
14798 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14799 :
14800 else
14801 can_build_shared=no
14802 fi
14803 ;;
14804 esac
14805 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14806 # soname into executable. Probably we can add versioning support to
14807 # collect2, so additional links can be useful in future.
14808 if test "$aix_use_runtimelinking" = yes; then
14809 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14810 # instead of lib<name>.a to let people know that these are not
14811 # typical AIX shared libraries.
14812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14813 else
14814 # We preserve .a as extension for shared libraries through AIX4.2
14815 # and later when we are not doing run time linking.
14816 library_names_spec='${libname}${release}.a $libname.a'
14817 soname_spec='${libname}${release}${shared_ext}$major'
14818 fi
14819 shlibpath_var=LIBPATH
14820 fi
14821 ;;
14822
14823amigaos*)
14824 case $host_cpu in
14825 powerpc)
14826 # Since July 2007 AmigaOS4 officially supports .so libraries.
14827 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14829 ;;
14830 m68k)
14831 library_names_spec='$libname.ixlibrary $libname.a'
14832 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14833 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
14834 ;;
14835 esac
14836 ;;
14837
14838beos*)
14839 library_names_spec='${libname}${shared_ext}'
14840 dynamic_linker="$host_os ld.so"
14841 shlibpath_var=LIBRARY_PATH
14842 ;;
14843
14844bsdi[45]*)
14845 version_type=linux
14846 need_version=no
14847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14848 soname_spec='${libname}${release}${shared_ext}$major'
14849 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14850 shlibpath_var=LD_LIBRARY_PATH
14851 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14852 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14853 # the default ld.so.conf also contains /usr/contrib/lib and
14854 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14855 # libtool to hard-code these into programs
14856 ;;
14857
14858cygwin* | mingw* | pw32* | cegcc*)
14859 version_type=windows
14860 shrext_cmds=".dll"
14861 need_version=no
14862 need_lib_prefix=no
14863
14864 case $GCC,$host_os in
14865 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14866 library_names_spec='$libname.dll.a'
14867 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14868 postinstall_cmds='base_file=`basename \${file}`~
14869 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14870 dldir=$destdir/`dirname \$dlpath`~
14871 test -d \$dldir || mkdir -p \$dldir~
14872 $install_prog $dir/$dlname \$dldir/$dlname~
14873 chmod a+x \$dldir/$dlname~
14874 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14875 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14876 fi'
14877 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14878 dlpath=$dir/\$dldll~
14879 $RM \$dlpath'
14880 shlibpath_overrides_runpath=yes
14881
14882 case $host_os in
14883 cygwin*)
14884 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14885 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14886
14887 ;;
14888 mingw* | cegcc*)
14889 # MinGW DLLs use traditional 'lib' prefix
14890 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14891 ;;
14892 pw32*)
14893 # pw32 DLLs use 'pw' prefix rather than 'lib'
14894 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14895 ;;
14896 esac
14897 ;;
14898
14899 *)
14900 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14901 ;;
14902 esac
14903 dynamic_linker='Win32 ld.exe'
14904 # FIXME: first we should search . and the directory the executable is in
14905 shlibpath_var=PATH
14906 ;;
14907
14908darwin* | rhapsody*)
14909 dynamic_linker="$host_os dyld"
14910 version_type=darwin
14911 need_lib_prefix=no
14912 need_version=no
14913 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14914 soname_spec='${libname}${release}${major}$shared_ext'
14915 shlibpath_overrides_runpath=yes
14916 shlibpath_var=DYLD_LIBRARY_PATH
14917 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14918
14919 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14920 ;;
14921
14922dgux*)
14923 version_type=linux
14924 need_lib_prefix=no
14925 need_version=no
14926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14927 soname_spec='${libname}${release}${shared_ext}$major'
14928 shlibpath_var=LD_LIBRARY_PATH
14929 ;;
14930
14931freebsd* | dragonfly*)
14932 # DragonFly does not have aout. When/if they implement a new
14933 # versioning mechanism, adjust this.
14934 if test -x /usr/bin/objformat; then
14935 objformat=`/usr/bin/objformat`
14936 else
14937 case $host_os in
14938 freebsd[23].*) objformat=aout ;;
14939 *) objformat=elf ;;
14940 esac
14941 fi
14942 version_type=freebsd-$objformat
14943 case $version_type in
14944 freebsd-elf*)
14945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14946 need_version=no
14947 need_lib_prefix=no
14948 ;;
14949 freebsd-*)
14950 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14951 need_version=yes
14952 ;;
14953 esac
14954 shlibpath_var=LD_LIBRARY_PATH
14955 case $host_os in
14956 freebsd2.*)
14957 shlibpath_overrides_runpath=yes
14958 ;;
14959 freebsd3.[01]* | freebsdelf3.[01]*)
14960 shlibpath_overrides_runpath=yes
14961 hardcode_into_libs=yes
14962 ;;
14963 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14964 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14965 shlibpath_overrides_runpath=no
14966 hardcode_into_libs=yes
14967 ;;
14968 *) # from 4.6 on, and DragonFly
14969 shlibpath_overrides_runpath=yes
14970 hardcode_into_libs=yes
14971 ;;
14972 esac
14973 ;;
14974
14975gnu*)
14976 version_type=linux
14977 need_lib_prefix=no
14978 need_version=no
14979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14980 soname_spec='${libname}${release}${shared_ext}$major'
14981 shlibpath_var=LD_LIBRARY_PATH
14982 hardcode_into_libs=yes
14983 ;;
14984
14985haiku*)
14986 version_type=linux
14987 need_lib_prefix=no
14988 need_version=no
14989 dynamic_linker="$host_os runtime_loader"
14990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14991 soname_spec='${libname}${release}${shared_ext}$major'
14992 shlibpath_var=LIBRARY_PATH
14993 shlibpath_overrides_runpath=yes
14994 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14995 hardcode_into_libs=yes
14996 ;;
14997
14998hpux9* | hpux10* | hpux11*)
14999 # Give a soname corresponding to the major version so that dld.sl refuses to
15000 # link against other versions.
15001 version_type=sunos
15002 need_lib_prefix=no
15003 need_version=no
15004 case $host_cpu in
15005 ia64*)
15006 shrext_cmds='.so'
15007 hardcode_into_libs=yes
15008 dynamic_linker="$host_os dld.so"
15009 shlibpath_var=LD_LIBRARY_PATH
15010 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15012 soname_spec='${libname}${release}${shared_ext}$major'
15013 if test "X$HPUX_IA64_MODE" = X32; then
15014 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15015 else
15016 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15017 fi
15018 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15019 ;;
15020 hppa*64*)
15021 shrext_cmds='.sl'
15022 hardcode_into_libs=yes
15023 dynamic_linker="$host_os dld.sl"
15024 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15025 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15027 soname_spec='${libname}${release}${shared_ext}$major'
15028 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15029 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15030 ;;
15031 *)
15032 shrext_cmds='.sl'
15033 dynamic_linker="$host_os dld.sl"
15034 shlibpath_var=SHLIB_PATH
15035 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15037 soname_spec='${libname}${release}${shared_ext}$major'
15038 ;;
15039 esac
15040 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15041 postinstall_cmds='chmod 555 $lib'
15042 # or fails outright, so override atomically:
15043 install_override_mode=555
15044 ;;
15045
15046interix[3-9]*)
15047 version_type=linux
15048 need_lib_prefix=no
15049 need_version=no
15050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15051 soname_spec='${libname}${release}${shared_ext}$major'
15052 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15053 shlibpath_var=LD_LIBRARY_PATH
15054 shlibpath_overrides_runpath=no
15055 hardcode_into_libs=yes
15056 ;;
15057
15058irix5* | irix6* | nonstopux*)
15059 case $host_os in
15060 nonstopux*) version_type=nonstopux ;;
15061 *)
15062 if test "$lt_cv_prog_gnu_ld" = yes; then
15063 version_type=linux
15064 else
15065 version_type=irix
15066 fi ;;
15067 esac
15068 need_lib_prefix=no
15069 need_version=no
15070 soname_spec='${libname}${release}${shared_ext}$major'
15071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15072 case $host_os in
15073 irix5* | nonstopux*)
15074 libsuff= shlibsuff=
15075 ;;
15076 *)
15077 case $LD in # libtool.m4 will add one of these switches to LD
15078 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15079 libsuff= shlibsuff= libmagic=32-bit;;
15080 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15081 libsuff=32 shlibsuff=N32 libmagic=N32;;
15082 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15083 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15084 *) libsuff= shlibsuff= libmagic=never-match;;
15085 esac
15086 ;;
15087 esac
15088 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15089 shlibpath_overrides_runpath=no
15090 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15091 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15092 hardcode_into_libs=yes
15093 ;;
15094
15095# No shared lib support for Linux oldld, aout, or coff.
15096linux*oldld* | linux*aout* | linux*coff*)
15097 dynamic_linker=no
15098 ;;
15099
15100# This must be Linux ELF.
15101linux* | k*bsd*-gnu | kopensolaris*-gnu)
15102 version_type=linux
15103 need_lib_prefix=no
15104 need_version=no
15105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15106 soname_spec='${libname}${release}${shared_ext}$major'
15107 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15108 shlibpath_var=LD_LIBRARY_PATH
15109 shlibpath_overrides_runpath=no
15110
15111 # Some binutils ld are patched to set DT_RUNPATH
15112 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15113 $as_echo_n "(cached) " >&6
15114else
15115 lt_cv_shlibpath_overrides_runpath=no
15116 save_LDFLAGS=$LDFLAGS
15117 save_libdir=$libdir
15118 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15119 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15121/* end confdefs.h. */
15122
15123int
15124main ()
15125{
15126
15127 ;
15128 return 0;
15129}
15130_ACEOF
15131if ac_fn_cxx_try_link "$LINENO"; then :
15132 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15133 lt_cv_shlibpath_overrides_runpath=yes
15134fi
15135fi
15136rm -f core conftest.err conftest.$ac_objext \
15137 conftest$ac_exeext conftest.$ac_ext
15138 LDFLAGS=$save_LDFLAGS
15139 libdir=$save_libdir
15140
15141fi
15142
15143 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15144
15145 # This implies no fast_install, which is unacceptable.
15146 # Some rework will be needed to allow for fast_install
15147 # before this can be enabled.
15148 hardcode_into_libs=yes
15149
15150 # Append ld.so.conf contents to the search path
15151 if test -f /etc/ld.so.conf; then
15152 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;s/"//g;/^$/d' | tr '\n' ' '`
15153 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15154 fi
15155
15156 # We used to test for /lib/ld.so.1 and disable shared libraries on
15157 # powerpc, because MkLinux only supported shared libraries with the
15158 # GNU dynamic linker. Since this was broken with cross compilers,
15159 # most powerpc-linux boxes support dynamic linking these days and
15160 # people can always --disable-shared, the test was removed, and we
15161 # assume the GNU/Linux dynamic linker is in use.
15162 dynamic_linker='GNU/Linux ld.so'
15163 ;;
15164
15165netbsd*)
15166 version_type=sunos
15167 need_lib_prefix=no
15168 need_version=no
15169 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15171 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15172 dynamic_linker='NetBSD (a.out) ld.so'
15173 else
15174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15175 soname_spec='${libname}${release}${shared_ext}$major'
15176 dynamic_linker='NetBSD ld.elf_so'
15177 fi
15178 shlibpath_var=LD_LIBRARY_PATH
15179 shlibpath_overrides_runpath=yes
15180 hardcode_into_libs=yes
15181 ;;
15182
15183newsos6)
15184 version_type=linux
15185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15186 shlibpath_var=LD_LIBRARY_PATH
15187 shlibpath_overrides_runpath=yes
15188 ;;
15189
15190*nto* | *qnx*)
15191 version_type=qnx
15192 need_lib_prefix=no
15193 need_version=no
15194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15195 soname_spec='${libname}${release}${shared_ext}$major'
15196 shlibpath_var=LD_LIBRARY_PATH
15197 shlibpath_overrides_runpath=no
15198 hardcode_into_libs=yes
15199 dynamic_linker='ldqnx.so'
15200 ;;
15201
15202openbsd*)
15203 version_type=sunos
15204 sys_lib_dlsearch_path_spec="/usr/lib"
15205 need_lib_prefix=no
15206 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15207 case $host_os in
15208 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15209 *) need_version=no ;;
15210 esac
15211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15212 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15213 shlibpath_var=LD_LIBRARY_PATH
15214 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15215 case $host_os in
15216 openbsd2.[89] | openbsd2.[89].*)
15217 shlibpath_overrides_runpath=no
15218 ;;
15219 *)
15220 shlibpath_overrides_runpath=yes
15221 ;;
15222 esac
15223 else
15224 shlibpath_overrides_runpath=yes
15225 fi
15226 ;;
15227
15228os2*)
15229 libname_spec='$name'
15230 shrext_cmds=".dll"
15231 need_lib_prefix=no
15232 library_names_spec='$libname${shared_ext} $libname.a'
15233 dynamic_linker='OS/2 ld.exe'
15234 shlibpath_var=LIBPATH
15235 ;;
15236
15237osf3* | osf4* | osf5*)
15238 version_type=osf
15239 need_lib_prefix=no
15240 need_version=no
15241 soname_spec='${libname}${release}${shared_ext}$major'
15242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15243 shlibpath_var=LD_LIBRARY_PATH
15244 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15245 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15246 ;;
15247
15248rdos*)
15249 dynamic_linker=no
15250 ;;
15251
15252solaris*)
15253 version_type=linux
15254 need_lib_prefix=no
15255 need_version=no
15256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15257 soname_spec='${libname}${release}${shared_ext}$major'
15258 shlibpath_var=LD_LIBRARY_PATH
15259 shlibpath_overrides_runpath=yes
15260 hardcode_into_libs=yes
15261 # ldd complains unless libraries are executable
15262 postinstall_cmds='chmod +x $lib'
15263 ;;
15264
15265sunos4*)
15266 version_type=sunos
15267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15268 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15269 shlibpath_var=LD_LIBRARY_PATH
15270 shlibpath_overrides_runpath=yes
15271 if test "$with_gnu_ld" = yes; then
15272 need_lib_prefix=no
15273 fi
15274 need_version=yes
15275 ;;
15276
15277sysv4 | sysv4.3*)
15278 version_type=linux
15279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15280 soname_spec='${libname}${release}${shared_ext}$major'
15281 shlibpath_var=LD_LIBRARY_PATH
15282 case $host_vendor in
15283 sni)
15284 shlibpath_overrides_runpath=no
15285 need_lib_prefix=no
15286 runpath_var=LD_RUN_PATH
15287 ;;
15288 siemens)
15289 need_lib_prefix=no
15290 ;;
15291 motorola)
15292 need_lib_prefix=no
15293 need_version=no
15294 shlibpath_overrides_runpath=no
15295 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15296 ;;
15297 esac
15298 ;;
15299
15300sysv4*MP*)
15301 if test -d /usr/nec ;then
15302 version_type=linux
15303 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15304 soname_spec='$libname${shared_ext}.$major'
15305 shlibpath_var=LD_LIBRARY_PATH
15306 fi
15307 ;;
15308
15309sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15310 version_type=freebsd-elf
15311 need_lib_prefix=no
15312 need_version=no
15313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15314 soname_spec='${libname}${release}${shared_ext}$major'
15315 shlibpath_var=LD_LIBRARY_PATH
15316 shlibpath_overrides_runpath=yes
15317 hardcode_into_libs=yes
15318 if test "$with_gnu_ld" = yes; then
15319 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15320 else
15321 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15322 case $host_os in
15323 sco3.2v5*)
15324 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15325 ;;
15326 esac
15327 fi
15328 sys_lib_dlsearch_path_spec='/usr/lib'
15329 ;;
15330
15331tpf*)
15332 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15333 version_type=linux
15334 need_lib_prefix=no
15335 need_version=no
15336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15337 shlibpath_var=LD_LIBRARY_PATH
15338 shlibpath_overrides_runpath=no
15339 hardcode_into_libs=yes
15340 ;;
15341
15342uts4*)
15343 version_type=linux
15344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15345 soname_spec='${libname}${release}${shared_ext}$major'
15346 shlibpath_var=LD_LIBRARY_PATH
15347 ;;
15348
15349*)
15350 dynamic_linker=no
15351 ;;
15352esac
15353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15354$as_echo "$dynamic_linker" >&6; }
15355test "$dynamic_linker" = no && can_build_shared=no
15356
15357variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15358if test "$GCC" = yes; then
15359 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15360fi
15361
15362if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15363 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15364fi
15365if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15366 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15367fi
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15407$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15408hardcode_action_CXX=
15409if test -n "$hardcode_libdir_flag_spec_CXX" ||
15410 test -n "$runpath_var_CXX" ||
15411 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15412
15413 # We can hardcode non-existent directories.
15414 if test "$hardcode_direct_CXX" != no &&
15415 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15416 # have to relink, otherwise we might link with an installed library
15417 # when we should be linking with a yet-to-be-installed one
15418 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15419 test "$hardcode_minus_L_CXX" != no; then
15420 # Linking always hardcodes the temporary library directory.
15421 hardcode_action_CXX=relink
15422 else
15423 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15424 hardcode_action_CXX=immediate
15425 fi
15426else
15427 # We cannot hardcode anything, or else we can only hardcode existing
15428 # directories.
15429 hardcode_action_CXX=unsupported
15430fi
15431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15432$as_echo "$hardcode_action_CXX" >&6; }
15433
15434if test "$hardcode_action_CXX" = relink ||
15435 test "$inherit_rpath_CXX" = yes; then
15436 # Fast installation is not supported
15437 enable_fast_install=no
15438elif test "$shlibpath_overrides_runpath" = yes ||
15439 test "$enable_shared" = no; then
15440 # Fast installation is not necessary
15441 enable_fast_install=needless
15442fi
15443
15444
15445
15446
15447
15448
15449
15450 fi # test -n "$compiler"
15451
15452 CC=$lt_save_CC
15453 LDCXX=$LD
15454 LD=$lt_save_LD
15455 GCC=$lt_save_GCC
15456 with_gnu_ld=$lt_save_with_gnu_ld
15457 lt_cv_path_LDCXX=$lt_cv_path_LD
15458 lt_cv_path_LD=$lt_save_path_LD
15459 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15460 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15461fi # test "$_lt_caught_CXX_error" != yes
15462
15463ac_ext=c
15464ac_cpp='$CPP $CPPFLAGS'
15465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15467ac_compiler_gnu=$ac_cv_c_compiler_gnu
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481 ac_config_commands="$ac_config_commands libtool"
15482
15483
15484
15485
15486# Only expand once:
15487
15488
15489
15490
15491
15492# For libtool versioning info, format is CURRENT:REVISION:AGE
15493libtool_VERSION=1:0:0
15494
15495
15496XCFLAGS="-D_GNU_SOURCE -Wall -Wextra -fno-exceptions"
15497
15498
15499if test "${multilib}" = "yes"; then
15500 multilib_arg="--enable-multilib"
15501else
15502 multilib_arg=
15503fi
15504
2077db1b
CT
15505ac_config_files="$ac_config_files Makefile"
15506
15507
15508if test "x$VTV_SUPPORTED" = "xyes"; then
56fc7835 15509 ac_config_files="$ac_config_files testsuite/Makefile"
2077db1b
CT
15510
15511fi
15512
15513cat >confcache <<\_ACEOF
15514# This file is a shell script that caches the results of configure
15515# tests run on this system so they can be shared between configure
15516# scripts and configure runs, see configure's option --config-cache.
15517# It is not useful on other systems. If it contains results you don't
15518# want to keep, you may remove or edit it.
15519#
15520# config.status only pays attention to the cache file if you give it
15521# the --recheck option to rerun configure.
15522#
15523# `ac_cv_env_foo' variables (set or unset) will be overridden when
15524# loading this file, other *unset* `ac_cv_foo' will be assigned the
15525# following values.
15526
15527_ACEOF
15528
15529# The following way of writing the cache mishandles newlines in values,
15530# but we know of no workaround that is simple, portable, and efficient.
15531# So, we kill variables containing newlines.
15532# Ultrix sh set writes to stderr and can't be redirected directly,
15533# and sets the high bit in the cache file unless we assign to the vars.
15534(
15535 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15536 eval ac_val=\$$ac_var
15537 case $ac_val in #(
15538 *${as_nl}*)
15539 case $ac_var in #(
15540 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15541$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15542 esac
15543 case $ac_var in #(
15544 _ | IFS | as_nl) ;; #(
15545 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15546 *) { eval $ac_var=; unset $ac_var;} ;;
15547 esac ;;
15548 esac
15549 done
15550
15551 (set) 2>&1 |
15552 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15553 *${as_nl}ac_space=\ *)
15554 # `set' does not quote correctly, so add quotes: double-quote
15555 # substitution turns \\\\ into \\, and sed turns \\ into \.
15556 sed -n \
15557 "s/'/'\\\\''/g;
15558 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15559 ;; #(
15560 *)
15561 # `set' quotes correctly as required by POSIX, so do not add quotes.
15562 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15563 ;;
15564 esac |
15565 sort
15566) |
15567 sed '
15568 /^ac_cv_env_/b end
15569 t clear
15570 :clear
15571 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15572 t end
15573 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15574 :end' >>confcache
15575if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15576 if test -w "$cache_file"; then
15577 test "x$cache_file" != "x/dev/null" &&
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15579$as_echo "$as_me: updating cache $cache_file" >&6;}
15580 cat confcache >$cache_file
15581 else
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15583$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15584 fi
15585fi
15586rm -f confcache
15587
15588test "x$prefix" = xNONE && prefix=$ac_default_prefix
15589# Let make expand exec_prefix.
15590test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15591
15592# Transform confdefs.h into DEFS.
15593# Protect against shell expansion while executing Makefile rules.
15594# Protect against Makefile macro expansion.
15595#
15596# If the first sed substitution is executed (which looks for macros that
15597# take arguments), then branch to the quote section. Otherwise,
15598# look for a macro that doesn't take arguments.
15599ac_script='
15600:mline
15601/\\$/{
15602 N
15603 s,\\\n,,
15604 b mline
15605}
15606t clear
15607:clear
15608s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15609t quote
15610s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15611t quote
15612b any
15613:quote
15614s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15615s/\[/\\&/g
15616s/\]/\\&/g
15617s/\$/$$/g
15618H
15619:any
15620${
15621 g
15622 s/^\n//
15623 s/\n/ /g
15624 p
15625}
15626'
15627DEFS=`sed -n "$ac_script" confdefs.h`
15628
15629
15630ac_libobjs=
15631ac_ltlibobjs=
15632for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15633 # 1. Remove the extension, and $U if already installed.
15634 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15635 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15636 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15637 # will be set to the directory where LIBOBJS objects are built.
15638 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15639 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15640done
15641LIBOBJS=$ac_libobjs
15642
15643LTLIBOBJS=$ac_ltlibobjs
15644
15645
56fc7835
CT
15646if test -z "${ENABLE_VTABLE_VERIFY_TRUE}" && test -z "${ENABLE_VTABLE_VERIFY_FALSE}"; then
15647 as_fn_error "conditional \"ENABLE_VTABLE_VERIFY\" was never defined.
15648Usually this means the macro was only invoked conditionally." "$LINENO" 5
15649fi
2077db1b
CT
15650 if test -n "$EXEEXT"; then
15651 am__EXEEXT_TRUE=
15652 am__EXEEXT_FALSE='#'
15653else
15654 am__EXEEXT_TRUE='#'
15655 am__EXEEXT_FALSE=
15656fi
15657
15658if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15659 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15660Usually this means the macro was only invoked conditionally." "$LINENO" 5
15661fi
15662if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15663 as_fn_error "conditional \"AMDEP\" was never defined.
15664Usually this means the macro was only invoked conditionally." "$LINENO" 5
8bc16536
CT
15665fi
15666if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15667 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15668Usually this means the macro was only invoked conditionally." "$LINENO" 5
2077db1b
CT
15669fi
15670if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15671 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15672Usually this means the macro was only invoked conditionally." "$LINENO" 5
15673fi
15674if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15675 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15676Usually this means the macro was only invoked conditionally." "$LINENO" 5
15677fi
2077db1b
CT
15678
15679: ${CONFIG_STATUS=./config.status}
15680ac_write_fail=0
15681ac_clean_files_save=$ac_clean_files
15682ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15683{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15684$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15685as_write_fail=0
15686cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15687#! $SHELL
15688# Generated by $as_me.
15689# Run this file to recreate the current configuration.
15690# Compiler output produced by configure, useful for debugging
15691# configure, is in config.log if it exists.
15692
15693debug=false
15694ac_cs_recheck=false
15695ac_cs_silent=false
15696
15697SHELL=\${CONFIG_SHELL-$SHELL}
15698export SHELL
15699_ASEOF
15700cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15701## -------------------- ##
15702## M4sh Initialization. ##
15703## -------------------- ##
15704
15705# Be more Bourne compatible
15706DUALCASE=1; export DUALCASE # for MKS sh
15707if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15708 emulate sh
15709 NULLCMD=:
15710 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15711 # is contrary to our usage. Disable this feature.
15712 alias -g '${1+"$@"}'='"$@"'
15713 setopt NO_GLOB_SUBST
15714else
15715 case `(set -o) 2>/dev/null` in #(
15716 *posix*) :
15717 set -o posix ;; #(
15718 *) :
15719 ;;
15720esac
15721fi
15722
15723
15724as_nl='
15725'
15726export as_nl
15727# Printing a long string crashes Solaris 7 /usr/bin/printf.
15728as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15729as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15730as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15731# Prefer a ksh shell builtin over an external printf program on Solaris,
15732# but without wasting forks for bash or zsh.
15733if test -z "$BASH_VERSION$ZSH_VERSION" \
15734 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15735 as_echo='print -r --'
15736 as_echo_n='print -rn --'
15737elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15738 as_echo='printf %s\n'
15739 as_echo_n='printf %s'
15740else
15741 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15742 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15743 as_echo_n='/usr/ucb/echo -n'
15744 else
15745 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15746 as_echo_n_body='eval
15747 arg=$1;
15748 case $arg in #(
15749 *"$as_nl"*)
15750 expr "X$arg" : "X\\(.*\\)$as_nl";
15751 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15752 esac;
15753 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15754 '
15755 export as_echo_n_body
15756 as_echo_n='sh -c $as_echo_n_body as_echo'
15757 fi
15758 export as_echo_body
15759 as_echo='sh -c $as_echo_body as_echo'
15760fi
15761
15762# The user is always right.
15763if test "${PATH_SEPARATOR+set}" != set; then
15764 PATH_SEPARATOR=:
15765 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15766 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15767 PATH_SEPARATOR=';'
15768 }
15769fi
15770
15771
15772# IFS
15773# We need space, tab and new line, in precisely that order. Quoting is
15774# there to prevent editors from complaining about space-tab.
15775# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15776# splitting by setting IFS to empty value.)
15777IFS=" "" $as_nl"
15778
15779# Find who we are. Look in the path if we contain no directory separator.
15780case $0 in #((
15781 *[\\/]* ) as_myself=$0 ;;
15782 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15783for as_dir in $PATH
15784do
15785 IFS=$as_save_IFS
15786 test -z "$as_dir" && as_dir=.
15787 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15788 done
15789IFS=$as_save_IFS
15790
15791 ;;
15792esac
15793# We did not find ourselves, most probably we were run as `sh COMMAND'
15794# in which case we are not to be found in the path.
15795if test "x$as_myself" = x; then
15796 as_myself=$0
15797fi
15798if test ! -f "$as_myself"; then
15799 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15800 exit 1
15801fi
15802
15803# Unset variables that we do not need and which cause bugs (e.g. in
15804# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15805# suppresses any "Segmentation fault" message there. '((' could
15806# trigger a bug in pdksh 5.2.14.
15807for as_var in BASH_ENV ENV MAIL MAILPATH
15808do eval test x\${$as_var+set} = xset \
15809 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15810done
15811PS1='$ '
15812PS2='> '
15813PS4='+ '
15814
15815# NLS nuisances.
15816LC_ALL=C
15817export LC_ALL
15818LANGUAGE=C
15819export LANGUAGE
15820
15821# CDPATH.
15822(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15823
15824
15825# as_fn_error ERROR [LINENO LOG_FD]
15826# ---------------------------------
15827# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15828# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15829# script with status $?, using 1 if that was 0.
15830as_fn_error ()
15831{
15832 as_status=$?; test $as_status -eq 0 && as_status=1
15833 if test "$3"; then
15834 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15835 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15836 fi
15837 $as_echo "$as_me: error: $1" >&2
15838 as_fn_exit $as_status
15839} # as_fn_error
15840
15841
15842# as_fn_set_status STATUS
15843# -----------------------
15844# Set $? to STATUS, without forking.
15845as_fn_set_status ()
15846{
15847 return $1
15848} # as_fn_set_status
15849
15850# as_fn_exit STATUS
15851# -----------------
15852# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15853as_fn_exit ()
15854{
15855 set +e
15856 as_fn_set_status $1
15857 exit $1
15858} # as_fn_exit
15859
15860# as_fn_unset VAR
15861# ---------------
15862# Portably unset VAR.
15863as_fn_unset ()
15864{
15865 { eval $1=; unset $1;}
15866}
15867as_unset=as_fn_unset
15868# as_fn_append VAR VALUE
15869# ----------------------
15870# Append the text in VALUE to the end of the definition contained in VAR. Take
15871# advantage of any shell optimizations that allow amortized linear growth over
15872# repeated appends, instead of the typical quadratic growth present in naive
15873# implementations.
15874if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15875 eval 'as_fn_append ()
15876 {
15877 eval $1+=\$2
15878 }'
15879else
15880 as_fn_append ()
15881 {
15882 eval $1=\$$1\$2
15883 }
15884fi # as_fn_append
15885
15886# as_fn_arith ARG...
15887# ------------------
15888# Perform arithmetic evaluation on the ARGs, and store the result in the
15889# global $as_val. Take advantage of shells that can avoid forks. The arguments
15890# must be portable across $(()) and expr.
15891if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15892 eval 'as_fn_arith ()
15893 {
15894 as_val=$(( $* ))
15895 }'
15896else
15897 as_fn_arith ()
15898 {
15899 as_val=`expr "$@" || test $? -eq 1`
15900 }
15901fi # as_fn_arith
15902
15903
15904if expr a : '\(a\)' >/dev/null 2>&1 &&
15905 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15906 as_expr=expr
15907else
15908 as_expr=false
15909fi
15910
15911if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15912 as_basename=basename
15913else
15914 as_basename=false
15915fi
15916
15917if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15918 as_dirname=dirname
15919else
15920 as_dirname=false
15921fi
15922
15923as_me=`$as_basename -- "$0" ||
15924$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15925 X"$0" : 'X\(//\)$' \| \
15926 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15927$as_echo X/"$0" |
15928 sed '/^.*\/\([^/][^/]*\)\/*$/{
15929 s//\1/
15930 q
15931 }
15932 /^X\/\(\/\/\)$/{
15933 s//\1/
15934 q
15935 }
15936 /^X\/\(\/\).*/{
15937 s//\1/
15938 q
15939 }
15940 s/.*/./; q'`
15941
15942# Avoid depending upon Character Ranges.
15943as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15944as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15945as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15946as_cr_digits='0123456789'
15947as_cr_alnum=$as_cr_Letters$as_cr_digits
15948
15949ECHO_C= ECHO_N= ECHO_T=
15950case `echo -n x` in #(((((
15951-n*)
15952 case `echo 'xy\c'` in
15953 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15954 xy) ECHO_C='\c';;
15955 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15956 ECHO_T=' ';;
15957 esac;;
15958*)
15959 ECHO_N='-n';;
15960esac
15961
15962rm -f conf$$ conf$$.exe conf$$.file
15963if test -d conf$$.dir; then
15964 rm -f conf$$.dir/conf$$.file
15965else
15966 rm -f conf$$.dir
15967 mkdir conf$$.dir 2>/dev/null
15968fi
15969if (echo >conf$$.file) 2>/dev/null; then
15970 if ln -s conf$$.file conf$$ 2>/dev/null; then
15971 as_ln_s='ln -s'
15972 # ... but there are two gotchas:
15973 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15974 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15975 # In both cases, we have to default to `cp -p'.
15976 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15977 as_ln_s='cp -p'
15978 elif ln conf$$.file conf$$ 2>/dev/null; then
15979 as_ln_s=ln
15980 else
15981 as_ln_s='cp -p'
15982 fi
15983else
15984 as_ln_s='cp -p'
15985fi
15986rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15987rmdir conf$$.dir 2>/dev/null
15988
15989
15990# as_fn_mkdir_p
15991# -------------
15992# Create "$as_dir" as a directory, including parents if necessary.
15993as_fn_mkdir_p ()
15994{
15995
15996 case $as_dir in #(
15997 -*) as_dir=./$as_dir;;
15998 esac
15999 test -d "$as_dir" || eval $as_mkdir_p || {
16000 as_dirs=
16001 while :; do
16002 case $as_dir in #(
16003 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16004 *) as_qdir=$as_dir;;
16005 esac
16006 as_dirs="'$as_qdir' $as_dirs"
16007 as_dir=`$as_dirname -- "$as_dir" ||
16008$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16009 X"$as_dir" : 'X\(//\)[^/]' \| \
16010 X"$as_dir" : 'X\(//\)$' \| \
16011 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16012$as_echo X"$as_dir" |
16013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16014 s//\1/
16015 q
16016 }
16017 /^X\(\/\/\)[^/].*/{
16018 s//\1/
16019 q
16020 }
16021 /^X\(\/\/\)$/{
16022 s//\1/
16023 q
16024 }
16025 /^X\(\/\).*/{
16026 s//\1/
16027 q
16028 }
16029 s/.*/./; q'`
16030 test -d "$as_dir" && break
16031 done
16032 test -z "$as_dirs" || eval "mkdir $as_dirs"
16033 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16034
16035
16036} # as_fn_mkdir_p
16037if mkdir -p . 2>/dev/null; then
16038 as_mkdir_p='mkdir -p "$as_dir"'
16039else
16040 test -d ./-p && rmdir ./-p
16041 as_mkdir_p=false
16042fi
16043
16044if test -x / >/dev/null 2>&1; then
16045 as_test_x='test -x'
16046else
16047 if ls -dL / >/dev/null 2>&1; then
16048 as_ls_L_option=L
16049 else
16050 as_ls_L_option=
16051 fi
16052 as_test_x='
16053 eval sh -c '\''
16054 if test -d "$1"; then
16055 test -d "$1/.";
16056 else
16057 case $1 in #(
16058 -*)set "./$1";;
16059 esac;
16060 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16061 ???[sx]*):;;*)false;;esac;fi
16062 '\'' sh
16063 '
16064fi
16065as_executable_p=$as_test_x
16066
16067# Sed expression to map a string onto a valid CPP name.
16068as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16069
16070# Sed expression to map a string onto a valid variable name.
16071as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16072
16073
16074exec 6>&1
16075## ----------------------------------- ##
16076## Main body of $CONFIG_STATUS script. ##
16077## ----------------------------------- ##
16078_ASEOF
16079test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16080
16081cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16082# Save the log message, to keep $0 and so on meaningful, and to
16083# report actual input values of CONFIG_FILES etc. instead of their
16084# values after options handling.
16085ac_log="
16086This file was extended by GNU Vtable Verification Runtime Library $as_me 1.0, which was
16087generated by GNU Autoconf 2.64. Invocation command line was
16088
16089 CONFIG_FILES = $CONFIG_FILES
16090 CONFIG_HEADERS = $CONFIG_HEADERS
16091 CONFIG_LINKS = $CONFIG_LINKS
16092 CONFIG_COMMANDS = $CONFIG_COMMANDS
16093 $ $0 $@
16094
16095on `(hostname || uname -n) 2>/dev/null | sed 1q`
16096"
16097
16098_ACEOF
16099
16100case $ac_config_files in *"
16101"*) set x $ac_config_files; shift; ac_config_files=$*;;
16102esac
16103
16104
16105
16106cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16107# Files that config.status was made for.
16108config_files="$ac_config_files"
16109config_commands="$ac_config_commands"
16110
16111_ACEOF
16112
16113cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16114ac_cs_usage="\
16115\`$as_me' instantiates files and other configuration actions
16116from templates according to the current configuration. Unless the files
16117and actions are specified as TAGs, all are instantiated by default.
16118
16119Usage: $0 [OPTION]... [TAG]...
16120
16121 -h, --help print this help, then exit
16122 -V, --version print version number and configuration settings, then exit
16123 -q, --quiet, --silent
16124 do not print progress messages
16125 -d, --debug don't remove temporary files
16126 --recheck update $as_me by reconfiguring in the same conditions
16127 --file=FILE[:TEMPLATE]
16128 instantiate the configuration file FILE
16129
16130Configuration files:
16131$config_files
16132
16133Configuration commands:
16134$config_commands
16135
16136Report bugs to the package provider.
16137GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
16138General help using GNU software: <http://www.gnu.org/gethelp/>."
16139
16140_ACEOF
16141cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16142ac_cs_version="\\
16143GNU Vtable Verification Runtime Library config.status 1.0
16144configured by $0, generated by GNU Autoconf 2.64,
16145 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16146
16147Copyright (C) 2009 Free Software Foundation, Inc.
16148This config.status script is free software; the Free Software Foundation
16149gives unlimited permission to copy, distribute and modify it."
16150
16151ac_pwd='$ac_pwd'
16152srcdir='$srcdir'
16153INSTALL='$INSTALL'
16154MKDIR_P='$MKDIR_P'
16155AWK='$AWK'
16156test -n "\$AWK" || AWK=awk
16157_ACEOF
16158
16159cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16160# The default lists apply if the user does not specify any file.
16161ac_need_defaults=:
16162while test $# != 0
16163do
16164 case $1 in
16165 --*=*)
16166 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16167 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16168 ac_shift=:
16169 ;;
16170 *)
16171 ac_option=$1
16172 ac_optarg=$2
16173 ac_shift=shift
16174 ;;
16175 esac
16176
16177 case $ac_option in
16178 # Handling of the options.
16179 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16180 ac_cs_recheck=: ;;
16181 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16182 $as_echo "$ac_cs_version"; exit ;;
16183 --debug | --debu | --deb | --de | --d | -d )
16184 debug=: ;;
16185 --file | --fil | --fi | --f )
16186 $ac_shift
16187 case $ac_optarg in
16188 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16189 esac
16190 as_fn_append CONFIG_FILES " '$ac_optarg'"
16191 ac_need_defaults=false;;
16192 --he | --h | --help | --hel | -h )
16193 $as_echo "$ac_cs_usage"; exit ;;
16194 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16195 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16196 ac_cs_silent=: ;;
16197
16198 # This is an error.
16199 -*) as_fn_error "unrecognized option: \`$1'
16200Try \`$0 --help' for more information." ;;
16201
16202 *) as_fn_append ac_config_targets " $1"
16203 ac_need_defaults=false ;;
16204
16205 esac
16206 shift
16207done
16208
16209ac_configure_extra_args=
16210
16211if $ac_cs_silent; then
16212 exec 6>/dev/null
16213 ac_configure_extra_args="$ac_configure_extra_args --silent"
16214fi
16215
16216_ACEOF
16217cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16218if \$ac_cs_recheck; then
16219 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16220 shift
16221 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16222 CONFIG_SHELL='$SHELL'
16223 export CONFIG_SHELL
16224 exec "\$@"
16225fi
16226
16227_ACEOF
16228cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16229exec 5>>config.log
16230{
16231 echo
16232 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16233## Running $as_me. ##
16234_ASBOX
16235 $as_echo "$ac_log"
16236} >&5
16237
16238_ACEOF
16239cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16240#
16241# INIT-COMMANDS
16242#
16243
16244srcdir="$srcdir"
16245host="$host"
16246target="$target"
16247with_multisubdir="$with_multisubdir"
16248with_multisrctop="$with_multisrctop"
16249with_target_subdir="$with_target_subdir"
16250ac_configure_args="${multilib_arg} ${ac_configure_args}"
16251multi_basedir="$multi_basedir"
16252CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16253CC="$CC"
16254CXX="$CXX"
16255GFORTRAN="$GFORTRAN"
16256GCJ="$GCJ"
16257AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16258
16259
16260# The HP-UX ksh and POSIX shell print the target directory to stdout
16261# if CDPATH is set.
16262(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16263
16264sed_quote_subst='$sed_quote_subst'
16265double_quote_subst='$double_quote_subst'
16266delay_variable_subst='$delay_variable_subst'
16267macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16268macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16269enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16270enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16271pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16272enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16273SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16274ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16275host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16276host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16277host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16278build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16279build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16280build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16281SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16282Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16283GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16284EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16285FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16286LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16287NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16288LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16289max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16290ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16291exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16292lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16293lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16294lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16295reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16296reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16297OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16298deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16299file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16300AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16301AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16302STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16303RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16304old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16305old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16306old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16307lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16308CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16309CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16310compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16311GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16312lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16313lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16314lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16315lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16316objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16317MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16318lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16319lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16320lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16321lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16322lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16323need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16324DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16325NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16326LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16327OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16328OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16329libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16330shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16331extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16332archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16333enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16334export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16335whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16336compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16337old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16338old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16339archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16340archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16341module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16342module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16343with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16344allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16345no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16346hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16347hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16348hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16349hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16350hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16351hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16352hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16353hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16354inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16355link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16356fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16357always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16358export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16359exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16360include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16361prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16362file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16363variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16364need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16365need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16366version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16367runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16368shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16369shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16370libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16371library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16372soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16373install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16374postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16375postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16376finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16377finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16378hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16379sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16380sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16381hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16382enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16383enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16384enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16385old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16386striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16387compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16388predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16389postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16390predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16391postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16392compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16393LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16394reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16395reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16396old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16397compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16398GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16399lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16400lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16401lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16402lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16403lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16404archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16405enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16406export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16407whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16408compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16409old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16410old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16411archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16412archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16413module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16414module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16415with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16416allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16417no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16418hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16419hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16420hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16421hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16422hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16423hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16424hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16425hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16426inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16427link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16428fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16429always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16430export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16431exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16432include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16433prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16434file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16435hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16436compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16437predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16438postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16439predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16440postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16441compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16442
16443LTCC='$LTCC'
16444LTCFLAGS='$LTCFLAGS'
16445compiler='$compiler_DEFAULT'
16446
16447# A function that is used when there is no print builtin or printf.
16448func_fallback_echo ()
16449{
16450 eval 'cat <<_LTECHO_EOF
16451\$1
16452_LTECHO_EOF'
16453}
16454
16455# Quote evaled strings.
16456for var in SHELL \
16457ECHO \
16458SED \
16459GREP \
16460EGREP \
16461FGREP \
16462LD \
16463NM \
16464LN_S \
16465lt_SP2NL \
16466lt_NL2SP \
16467reload_flag \
16468OBJDUMP \
16469deplibs_check_method \
16470file_magic_cmd \
16471AR \
16472AR_FLAGS \
16473STRIP \
16474RANLIB \
16475CC \
16476CFLAGS \
16477compiler \
16478lt_cv_sys_global_symbol_pipe \
16479lt_cv_sys_global_symbol_to_cdecl \
16480lt_cv_sys_global_symbol_to_c_name_address \
16481lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16482lt_prog_compiler_no_builtin_flag \
16483lt_prog_compiler_wl \
16484lt_prog_compiler_pic \
16485lt_prog_compiler_static \
16486lt_cv_prog_compiler_c_o \
16487need_locks \
16488DSYMUTIL \
16489NMEDIT \
16490LIPO \
16491OTOOL \
16492OTOOL64 \
16493shrext_cmds \
16494export_dynamic_flag_spec \
16495whole_archive_flag_spec \
16496compiler_needs_object \
16497with_gnu_ld \
16498allow_undefined_flag \
16499no_undefined_flag \
16500hardcode_libdir_flag_spec \
16501hardcode_libdir_flag_spec_ld \
16502hardcode_libdir_separator \
16503fix_srcfile_path \
16504exclude_expsyms \
16505include_expsyms \
16506file_list_spec \
16507variables_saved_for_relink \
16508libname_spec \
16509library_names_spec \
16510soname_spec \
16511install_override_mode \
16512finish_eval \
16513old_striplib \
16514striplib \
16515compiler_lib_search_dirs \
16516predep_objects \
16517postdep_objects \
16518predeps \
16519postdeps \
16520compiler_lib_search_path \
16521LD_CXX \
16522reload_flag_CXX \
16523compiler_CXX \
16524lt_prog_compiler_no_builtin_flag_CXX \
16525lt_prog_compiler_wl_CXX \
16526lt_prog_compiler_pic_CXX \
16527lt_prog_compiler_static_CXX \
16528lt_cv_prog_compiler_c_o_CXX \
16529export_dynamic_flag_spec_CXX \
16530whole_archive_flag_spec_CXX \
16531compiler_needs_object_CXX \
16532with_gnu_ld_CXX \
16533allow_undefined_flag_CXX \
16534no_undefined_flag_CXX \
16535hardcode_libdir_flag_spec_CXX \
16536hardcode_libdir_flag_spec_ld_CXX \
16537hardcode_libdir_separator_CXX \
16538fix_srcfile_path_CXX \
16539exclude_expsyms_CXX \
16540include_expsyms_CXX \
16541file_list_spec_CXX \
16542compiler_lib_search_dirs_CXX \
16543predep_objects_CXX \
16544postdep_objects_CXX \
16545predeps_CXX \
16546postdeps_CXX \
16547compiler_lib_search_path_CXX; do
16548 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16549 *[\\\\\\\`\\"\\\$]*)
16550 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16551 ;;
16552 *)
16553 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16554 ;;
16555 esac
16556done
16557
16558# Double-quote double-evaled strings.
16559for var in reload_cmds \
16560old_postinstall_cmds \
16561old_postuninstall_cmds \
16562old_archive_cmds \
16563extract_expsyms_cmds \
16564old_archive_from_new_cmds \
16565old_archive_from_expsyms_cmds \
16566archive_cmds \
16567archive_expsym_cmds \
16568module_cmds \
16569module_expsym_cmds \
16570export_symbols_cmds \
16571prelink_cmds \
16572postinstall_cmds \
16573postuninstall_cmds \
16574finish_cmds \
16575sys_lib_search_path_spec \
16576sys_lib_dlsearch_path_spec \
16577reload_cmds_CXX \
16578old_archive_cmds_CXX \
16579old_archive_from_new_cmds_CXX \
16580old_archive_from_expsyms_cmds_CXX \
16581archive_cmds_CXX \
16582archive_expsym_cmds_CXX \
16583module_cmds_CXX \
16584module_expsym_cmds_CXX \
16585export_symbols_cmds_CXX \
16586prelink_cmds_CXX; do
16587 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16588 *[\\\\\\\`\\"\\\$]*)
16589 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16590 ;;
16591 *)
16592 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16593 ;;
16594 esac
16595done
16596
16597ac_aux_dir='$ac_aux_dir'
16598xsi_shell='$xsi_shell'
16599lt_shell_append='$lt_shell_append'
16600
16601# See if we are running on zsh, and set the options which allow our
16602# commands through without removal of \ escapes INIT.
16603if test -n "\${ZSH_VERSION+set}" ; then
16604 setopt NO_GLOB_SUBST
16605fi
16606
16607
16608 PACKAGE='$PACKAGE'
16609 VERSION='$VERSION'
16610 TIMESTAMP='$TIMESTAMP'
16611 RM='$RM'
16612 ofile='$ofile'
16613
16614
16615
16616
16617
16618
16619_ACEOF
16620
16621cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16622
16623# Handling of arguments.
16624for ac_config_target in $ac_config_targets
16625do
16626 case $ac_config_target in
16627 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16628 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16629 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16630 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
2077db1b
CT
16631 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16632
16633 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16634 esac
16635done
16636
16637
16638# If the user did not use the arguments to specify the items to instantiate,
16639# then the envvar interface is used. Set only those that are not.
16640# We use the long form for the default assignment because of an extremely
16641# bizarre bug on SunOS 4.1.3.
16642if $ac_need_defaults; then
16643 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16644 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16645fi
16646
16647# Have a temporary directory for convenience. Make it in the build tree
16648# simply because there is no reason against having it here, and in addition,
16649# creating and moving files from /tmp can sometimes cause problems.
16650# Hook for its removal unless debugging.
16651# Note that there is a small window in which the directory will not be cleaned:
16652# after its creation but before its name has been assigned to `$tmp'.
16653$debug ||
16654{
16655 tmp=
16656 trap 'exit_status=$?
16657 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16658' 0
16659 trap 'as_fn_exit 1' 1 2 13 15
16660}
16661# Create a (secure) tmp directory for tmp files.
16662
16663{
16664 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16665 test -n "$tmp" && test -d "$tmp"
16666} ||
16667{
16668 tmp=./conf$$-$RANDOM
16669 (umask 077 && mkdir "$tmp")
16670} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16671
16672# Set up the scripts for CONFIG_FILES section.
16673# No need to generate them if there are no CONFIG_FILES.
16674# This happens for instance with `./config.status config.h'.
16675if test -n "$CONFIG_FILES"; then
16676
16677
16678ac_cr=`echo X | tr X '\015'`
16679# On cygwin, bash can eat \r inside `` if the user requested igncr.
16680# But we know of no other shell where ac_cr would be empty at this
16681# point, so we can use a bashism as a fallback.
16682if test "x$ac_cr" = x; then
16683 eval ac_cr=\$\'\\r\'
16684fi
16685ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16686if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16687 ac_cs_awk_cr='\r'
16688else
16689 ac_cs_awk_cr=$ac_cr
16690fi
16691
16692echo 'BEGIN {' >"$tmp/subs1.awk" &&
16693_ACEOF
16694
16695
16696{
16697 echo "cat >conf$$subs.awk <<_ACEOF" &&
16698 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16699 echo "_ACEOF"
16700} >conf$$subs.sh ||
16701 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16702ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16703ac_delim='%!_!# '
16704for ac_last_try in false false false false false :; do
16705 . ./conf$$subs.sh ||
16706 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16707
16708 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16709 if test $ac_delim_n = $ac_delim_num; then
16710 break
16711 elif $ac_last_try; then
16712 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16713 else
16714 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16715 fi
16716done
16717rm -f conf$$subs.sh
16718
16719cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16720cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16721_ACEOF
16722sed -n '
16723h
16724s/^/S["/; s/!.*/"]=/
16725p
16726g
16727s/^[^!]*!//
16728:repl
16729t repl
16730s/'"$ac_delim"'$//
16731t delim
16732:nl
16733h
16734s/\(.\{148\}\).*/\1/
16735t more1
16736s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16737p
16738n
16739b repl
16740:more1
16741s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16742p
16743g
16744s/.\{148\}//
16745t nl
16746:delim
16747h
16748s/\(.\{148\}\).*/\1/
16749t more2
16750s/["\\]/\\&/g; s/^/"/; s/$/"/
16751p
16752b
16753:more2
16754s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16755p
16756g
16757s/.\{148\}//
16758t delim
16759' <conf$$subs.awk | sed '
16760/^[^""]/{
16761 N
16762 s/\n//
16763}
16764' >>$CONFIG_STATUS || ac_write_fail=1
16765rm -f conf$$subs.awk
16766cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16767_ACAWK
16768cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16769 for (key in S) S_is_set[key] = 1
16770 FS = "\a"
16771
16772}
16773{
16774 line = $ 0
16775 nfields = split(line, field, "@")
16776 substed = 0
16777 len = length(field[1])
16778 for (i = 2; i < nfields; i++) {
16779 key = field[i]
16780 keylen = length(key)
16781 if (S_is_set[key]) {
16782 value = S[key]
16783 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16784 len += length(value) + length(field[++i])
16785 substed = 1
16786 } else
16787 len += 1 + keylen
16788 }
16789
16790 print line
16791}
16792
16793_ACAWK
16794_ACEOF
16795cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16796if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16797 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16798else
16799 cat
16800fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16801 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16802_ACEOF
16803
16804# VPATH may cause trouble with some makes, so we remove $(srcdir),
16805# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16806# trailing colons and then remove the whole line if VPATH becomes empty
16807# (actually we leave an empty line to preserve line numbers).
16808if test "x$srcdir" = x.; then
16809 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16810s/:*\$(srcdir):*/:/
16811s/:*\${srcdir}:*/:/
16812s/:*@srcdir@:*/:/
16813s/^\([^=]*=[ ]*\):*/\1/
16814s/:*$//
16815s/^[^=]*=[ ]*$//
16816}'
16817fi
16818
16819cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16820fi # test -n "$CONFIG_FILES"
16821
16822
16823eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
16824shift
16825for ac_tag
16826do
16827 case $ac_tag in
16828 :[FHLC]) ac_mode=$ac_tag; continue;;
16829 esac
16830 case $ac_mode$ac_tag in
16831 :[FHL]*:*);;
16832 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16833 :[FH]-) ac_tag=-:-;;
16834 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16835 esac
16836 ac_save_IFS=$IFS
16837 IFS=:
16838 set x $ac_tag
16839 IFS=$ac_save_IFS
16840 shift
16841 ac_file=$1
16842 shift
16843
16844 case $ac_mode in
16845 :L) ac_source=$1;;
16846 :[FH])
16847 ac_file_inputs=
16848 for ac_f
16849 do
16850 case $ac_f in
16851 -) ac_f="$tmp/stdin";;
16852 *) # Look for the file first in the build tree, then in the source tree
16853 # (if the path is not absolute). The absolute path cannot be DOS-style,
16854 # because $ac_f cannot contain `:'.
16855 test -f "$ac_f" ||
16856 case $ac_f in
16857 [\\/$]*) false;;
16858 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16859 esac ||
16860 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16861 esac
16862 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16863 as_fn_append ac_file_inputs " '$ac_f'"
16864 done
16865
16866 # Let's still pretend it is `configure' which instantiates (i.e., don't
16867 # use $as_me), people would be surprised to read:
16868 # /* config.h. Generated by config.status. */
16869 configure_input='Generated from '`
16870 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16871 `' by configure.'
16872 if test x"$ac_file" != x-; then
16873 configure_input="$ac_file. $configure_input"
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16875$as_echo "$as_me: creating $ac_file" >&6;}
16876 fi
16877 # Neutralize special characters interpreted by sed in replacement strings.
16878 case $configure_input in #(
16879 *\&* | *\|* | *\\* )
16880 ac_sed_conf_input=`$as_echo "$configure_input" |
16881 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16882 *) ac_sed_conf_input=$configure_input;;
16883 esac
16884
16885 case $ac_tag in
16886 *:-:* | *:-) cat >"$tmp/stdin" \
16887 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16888 esac
16889 ;;
16890 esac
16891
16892 ac_dir=`$as_dirname -- "$ac_file" ||
16893$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16894 X"$ac_file" : 'X\(//\)[^/]' \| \
16895 X"$ac_file" : 'X\(//\)$' \| \
16896 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16897$as_echo X"$ac_file" |
16898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16899 s//\1/
16900 q
16901 }
16902 /^X\(\/\/\)[^/].*/{
16903 s//\1/
16904 q
16905 }
16906 /^X\(\/\/\)$/{
16907 s//\1/
16908 q
16909 }
16910 /^X\(\/\).*/{
16911 s//\1/
16912 q
16913 }
16914 s/.*/./; q'`
16915 as_dir="$ac_dir"; as_fn_mkdir_p
16916 ac_builddir=.
16917
16918case "$ac_dir" in
16919.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16920*)
16921 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16922 # A ".." for each directory in $ac_dir_suffix.
16923 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16924 case $ac_top_builddir_sub in
16925 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16926 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16927 esac ;;
16928esac
16929ac_abs_top_builddir=$ac_pwd
16930ac_abs_builddir=$ac_pwd$ac_dir_suffix
16931# for backward compatibility:
16932ac_top_builddir=$ac_top_build_prefix
16933
16934case $srcdir in
16935 .) # We are building in place.
16936 ac_srcdir=.
16937 ac_top_srcdir=$ac_top_builddir_sub
16938 ac_abs_top_srcdir=$ac_pwd ;;
16939 [\\/]* | ?:[\\/]* ) # Absolute name.
16940 ac_srcdir=$srcdir$ac_dir_suffix;
16941 ac_top_srcdir=$srcdir
16942 ac_abs_top_srcdir=$srcdir ;;
16943 *) # Relative name.
16944 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16945 ac_top_srcdir=$ac_top_build_prefix$srcdir
16946 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16947esac
16948ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16949
16950
16951 case $ac_mode in
16952 :F)
16953 #
16954 # CONFIG_FILE
16955 #
16956
16957 case $INSTALL in
16958 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16959 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16960 esac
16961 ac_MKDIR_P=$MKDIR_P
16962 case $MKDIR_P in
16963 [\\/$]* | ?:[\\/]* ) ;;
16964 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16965 esac
16966_ACEOF
16967
16968cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16969# If the template does not know about datarootdir, expand it.
16970# FIXME: This hack should be removed a few years after 2.60.
16971ac_datarootdir_hack=; ac_datarootdir_seen=
16972ac_sed_dataroot='
16973/datarootdir/ {
16974 p
16975 q
16976}
16977/@datadir@/p
16978/@docdir@/p
16979/@infodir@/p
16980/@localedir@/p
16981/@mandir@/p'
16982case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16983*datarootdir*) ac_datarootdir_seen=yes;;
16984*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16986$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16987_ACEOF
16988cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16989 ac_datarootdir_hack='
16990 s&@datadir@&$datadir&g
16991 s&@docdir@&$docdir&g
16992 s&@infodir@&$infodir&g
16993 s&@localedir@&$localedir&g
16994 s&@mandir@&$mandir&g
16995 s&\\\${datarootdir}&$datarootdir&g' ;;
16996esac
16997_ACEOF
16998
16999# Neutralize VPATH when `$srcdir' = `.'.
17000# Shell code in configure.ac might set extrasub.
17001# FIXME: do we really want to maintain this feature?
17002cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17003ac_sed_extra="$ac_vpsub
17004$extrasub
17005_ACEOF
17006cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17007:t
17008/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17009s|@configure_input@|$ac_sed_conf_input|;t t
17010s&@top_builddir@&$ac_top_builddir_sub&;t t
17011s&@top_build_prefix@&$ac_top_build_prefix&;t t
17012s&@srcdir@&$ac_srcdir&;t t
17013s&@abs_srcdir@&$ac_abs_srcdir&;t t
17014s&@top_srcdir@&$ac_top_srcdir&;t t
17015s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17016s&@builddir@&$ac_builddir&;t t
17017s&@abs_builddir@&$ac_abs_builddir&;t t
17018s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17019s&@INSTALL@&$ac_INSTALL&;t t
17020s&@MKDIR_P@&$ac_MKDIR_P&;t t
17021$ac_datarootdir_hack
17022"
17023eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17024 || as_fn_error "could not create $ac_file" "$LINENO" 5
17025
17026test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17027 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17028 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17030which seems to be undefined. Please make sure it is defined." >&5
17031$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17032which seems to be undefined. Please make sure it is defined." >&2;}
17033
17034 rm -f "$tmp/stdin"
17035 case $ac_file in
17036 -) cat "$tmp/out" && rm -f "$tmp/out";;
17037 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17038 esac \
17039 || as_fn_error "could not create $ac_file" "$LINENO" 5
17040 ;;
17041
17042
17043 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17044$as_echo "$as_me: executing $ac_file commands" >&6;}
17045 ;;
17046 esac
17047
17048
17049 case $ac_file$ac_mode in
17050 "default-1":C)
17051# Only add multilib support code if we just rebuilt the top-level
17052# Makefile.
17053case " $CONFIG_FILES " in
17054 *" Makefile "*)
17055 ac_file=Makefile . ${multi_basedir}/config-ml.in
17056 ;;
17057esac ;;
17058 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17059 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17060 # are listed without --file. Let's play safe and only enable the eval
17061 # if we detect the quoting.
17062 case $CONFIG_FILES in
17063 *\'*) eval set x "$CONFIG_FILES" ;;
17064 *) set x $CONFIG_FILES ;;
17065 esac
17066 shift
17067 for mf
17068 do
17069 # Strip MF so we end up with the name of the file.
17070 mf=`echo "$mf" | sed -e 's/:.*$//'`
17071 # Check whether this is an Automake generated Makefile or not.
17072 # We used to match only the files named `Makefile.in', but
17073 # some people rename them; so instead we look at the file content.
17074 # Grep'ing the first line is not enough: some people post-process
17075 # each Makefile.in and add a new line on top of each file to say so.
17076 # Grep'ing the whole file is not good either: AIX grep has a line
17077 # limit of 2048, but all sed's we know have understand at least 4000.
17078 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17079 dirpart=`$as_dirname -- "$mf" ||
17080$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17081 X"$mf" : 'X\(//\)[^/]' \| \
17082 X"$mf" : 'X\(//\)$' \| \
17083 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17084$as_echo X"$mf" |
17085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17086 s//\1/
17087 q
17088 }
17089 /^X\(\/\/\)[^/].*/{
17090 s//\1/
17091 q
17092 }
17093 /^X\(\/\/\)$/{
17094 s//\1/
17095 q
17096 }
17097 /^X\(\/\).*/{
17098 s//\1/
17099 q
17100 }
17101 s/.*/./; q'`
17102 else
17103 continue
17104 fi
17105 # Extract the definition of DEPDIR, am__include, and am__quote
17106 # from the Makefile without running `make'.
17107 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17108 test -z "$DEPDIR" && continue
17109 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17110 test -z "am__include" && continue
17111 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17112 # When using ansi2knr, U may be empty or an underscore; expand it
17113 U=`sed -n 's/^U = //p' < "$mf"`
17114 # Find all dependency output files, they are included files with
17115 # $(DEPDIR) in their names. We invoke sed twice because it is the
17116 # simplest approach to changing $(DEPDIR) to its actual value in the
17117 # expansion.
17118 for file in `sed -n "
17119 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17120 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17121 # Make sure the directory exists.
17122 test -f "$dirpart/$file" && continue
17123 fdir=`$as_dirname -- "$file" ||
17124$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17125 X"$file" : 'X\(//\)[^/]' \| \
17126 X"$file" : 'X\(//\)$' \| \
17127 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17128$as_echo X"$file" |
17129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17130 s//\1/
17131 q
17132 }
17133 /^X\(\/\/\)[^/].*/{
17134 s//\1/
17135 q
17136 }
17137 /^X\(\/\/\)$/{
17138 s//\1/
17139 q
17140 }
17141 /^X\(\/\).*/{
17142 s//\1/
17143 q
17144 }
17145 s/.*/./; q'`
17146 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17147 # echo "creating $dirpart/$file"
17148 echo '# dummy' > "$dirpart/$file"
17149 done
17150 done
17151}
17152 ;;
17153 "libtool":C)
17154
17155 # See if we are running on zsh, and set the options which allow our
17156 # commands through without removal of \ escapes.
17157 if test -n "${ZSH_VERSION+set}" ; then
17158 setopt NO_GLOB_SUBST
17159 fi
17160
17161 cfgfile="${ofile}T"
17162 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17163 $RM "$cfgfile"
17164
17165 cat <<_LT_EOF >> "$cfgfile"
17166#! $SHELL
17167
17168# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17169# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17170# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17171# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17172#
17173# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17174# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17175# Written by Gordon Matzigkeit, 1996
17176#
17177# This file is part of GNU Libtool.
17178#
17179# GNU Libtool is free software; you can redistribute it and/or
17180# modify it under the terms of the GNU General Public License as
17181# published by the Free Software Foundation; either version 2 of
17182# the License, or (at your option) any later version.
17183#
17184# As a special exception to the GNU General Public License,
17185# if you distribute this file as part of a program or library that
17186# is built using GNU Libtool, you may include this file under the
17187# same distribution terms that you use for the rest of that program.
17188#
17189# GNU Libtool is distributed in the hope that it will be useful,
17190# but WITHOUT ANY WARRANTY; without even the implied warranty of
17191# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17192# GNU General Public License for more details.
17193#
17194# You should have received a copy of the GNU General Public License
17195# along with GNU Libtool; see the file COPYING. If not, a copy
17196# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17197# obtained by writing to the Free Software Foundation, Inc.,
17198# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17199
17200
17201# The names of the tagged configurations supported by this script.
17202available_tags="CXX "
17203
17204# ### BEGIN LIBTOOL CONFIG
17205
17206# Which release of libtool.m4 was used?
17207macro_version=$macro_version
17208macro_revision=$macro_revision
17209
17210# Whether or not to build shared libraries.
17211build_libtool_libs=$enable_shared
17212
17213# Whether or not to build static libraries.
17214build_old_libs=$enable_static
17215
17216# What type of objects to build.
17217pic_mode=$pic_mode
17218
17219# Whether or not to optimize for fast installation.
17220fast_install=$enable_fast_install
17221
17222# Shell to use when invoking shell scripts.
17223SHELL=$lt_SHELL
17224
17225# An echo program that protects backslashes.
17226ECHO=$lt_ECHO
17227
17228# The host system.
17229host_alias=$host_alias
17230host=$host
17231host_os=$host_os
17232
17233# The build system.
17234build_alias=$build_alias
17235build=$build
17236build_os=$build_os
17237
17238# A sed program that does not truncate output.
17239SED=$lt_SED
17240
17241# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17242Xsed="\$SED -e 1s/^X//"
17243
17244# A grep program that handles long lines.
17245GREP=$lt_GREP
17246
17247# An ERE matcher.
17248EGREP=$lt_EGREP
17249
17250# A literal string matcher.
17251FGREP=$lt_FGREP
17252
17253# A BSD- or MS-compatible name lister.
17254NM=$lt_NM
17255
17256# Whether we need soft or hard links.
17257LN_S=$lt_LN_S
17258
17259# What is the maximum length of a command?
17260max_cmd_len=$max_cmd_len
17261
17262# Object file suffix (normally "o").
17263objext=$ac_objext
17264
17265# Executable file suffix (normally "").
17266exeext=$exeext
17267
17268# whether the shell understands "unset".
17269lt_unset=$lt_unset
17270
17271# turn spaces into newlines.
17272SP2NL=$lt_lt_SP2NL
17273
17274# turn newlines into spaces.
17275NL2SP=$lt_lt_NL2SP
17276
17277# An object symbol dumper.
17278OBJDUMP=$lt_OBJDUMP
17279
17280# Method to check whether dependent libraries are shared objects.
17281deplibs_check_method=$lt_deplibs_check_method
17282
17283# Command to use when deplibs_check_method == "file_magic".
17284file_magic_cmd=$lt_file_magic_cmd
17285
17286# The archiver.
17287AR=$lt_AR
17288AR_FLAGS=$lt_AR_FLAGS
17289
17290# A symbol stripping program.
17291STRIP=$lt_STRIP
17292
17293# Commands used to install an old-style archive.
17294RANLIB=$lt_RANLIB
17295old_postinstall_cmds=$lt_old_postinstall_cmds
17296old_postuninstall_cmds=$lt_old_postuninstall_cmds
17297
17298# Whether to use a lock for old archive extraction.
17299lock_old_archive_extraction=$lock_old_archive_extraction
17300
17301# A C compiler.
17302LTCC=$lt_CC
17303
17304# LTCC compiler flags.
17305LTCFLAGS=$lt_CFLAGS
17306
17307# Take the output of nm and produce a listing of raw symbols and C names.
17308global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17309
17310# Transform the output of nm in a proper C declaration.
17311global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17312
17313# Transform the output of nm in a C name address pair.
17314global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17315
17316# Transform the output of nm in a C name address pair when lib prefix is needed.
17317global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17318
17319# The name of the directory that contains temporary libtool files.
17320objdir=$objdir
17321
17322# Used to examine libraries when file_magic_cmd begins with "file".
17323MAGIC_CMD=$MAGIC_CMD
17324
17325# Must we lock files when doing compilation?
17326need_locks=$lt_need_locks
17327
17328# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17329DSYMUTIL=$lt_DSYMUTIL
17330
17331# Tool to change global to local symbols on Mac OS X.
17332NMEDIT=$lt_NMEDIT
17333
17334# Tool to manipulate fat objects and archives on Mac OS X.
17335LIPO=$lt_LIPO
17336
17337# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17338OTOOL=$lt_OTOOL
17339
17340# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17341OTOOL64=$lt_OTOOL64
17342
17343# Old archive suffix (normally "a").
17344libext=$libext
17345
17346# Shared library suffix (normally ".so").
17347shrext_cmds=$lt_shrext_cmds
17348
17349# The commands to extract the exported symbol list from a shared archive.
17350extract_expsyms_cmds=$lt_extract_expsyms_cmds
17351
17352# Variables whose values should be saved in libtool wrapper scripts and
17353# restored at link time.
17354variables_saved_for_relink=$lt_variables_saved_for_relink
17355
17356# Do we need the "lib" prefix for modules?
17357need_lib_prefix=$need_lib_prefix
17358
17359# Do we need a version for libraries?
17360need_version=$need_version
17361
17362# Library versioning type.
17363version_type=$version_type
17364
17365# Shared library runtime path variable.
17366runpath_var=$runpath_var
17367
17368# Shared library path variable.
17369shlibpath_var=$shlibpath_var
17370
17371# Is shlibpath searched before the hard-coded library search path?
17372shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17373
17374# Format of library name prefix.
17375libname_spec=$lt_libname_spec
17376
17377# List of archive names. First name is the real one, the rest are links.
17378# The last name is the one that the linker finds with -lNAME
17379library_names_spec=$lt_library_names_spec
17380
17381# The coded name of the library, if different from the real name.
17382soname_spec=$lt_soname_spec
17383
17384# Permission mode override for installation of shared libraries.
17385install_override_mode=$lt_install_override_mode
17386
17387# Command to use after installation of a shared archive.
17388postinstall_cmds=$lt_postinstall_cmds
17389
17390# Command to use after uninstallation of a shared archive.
17391postuninstall_cmds=$lt_postuninstall_cmds
17392
17393# Commands used to finish a libtool library installation in a directory.
17394finish_cmds=$lt_finish_cmds
17395
17396# As "finish_cmds", except a single script fragment to be evaled but
17397# not shown.
17398finish_eval=$lt_finish_eval
17399
17400# Whether we should hardcode library paths into libraries.
17401hardcode_into_libs=$hardcode_into_libs
17402
17403# Compile-time system search path for libraries.
17404sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17405
17406# Run-time system search path for libraries.
17407sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17408
17409# Whether dlopen is supported.
17410dlopen_support=$enable_dlopen
17411
17412# Whether dlopen of programs is supported.
17413dlopen_self=$enable_dlopen_self
17414
17415# Whether dlopen of statically linked programs is supported.
17416dlopen_self_static=$enable_dlopen_self_static
17417
17418# Commands to strip libraries.
17419old_striplib=$lt_old_striplib
17420striplib=$lt_striplib
17421
17422
17423# The linker used to build libraries.
17424LD=$lt_LD
17425
17426# How to create reloadable object files.
17427reload_flag=$lt_reload_flag
17428reload_cmds=$lt_reload_cmds
17429
17430# Commands used to build an old-style archive.
17431old_archive_cmds=$lt_old_archive_cmds
17432
17433# A language specific compiler.
17434CC=$lt_compiler
17435
17436# Is the compiler the GNU compiler?
17437with_gcc=$GCC
17438
17439# Compiler flag to turn off builtin functions.
17440no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17441
17442# How to pass a linker flag through the compiler.
17443wl=$lt_lt_prog_compiler_wl
17444
17445# Additional compiler flags for building library objects.
17446pic_flag=$lt_lt_prog_compiler_pic
17447
17448# Compiler flag to prevent dynamic linking.
17449link_static_flag=$lt_lt_prog_compiler_static
17450
17451# Does compiler simultaneously support -c and -o options?
17452compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17453
17454# Whether or not to add -lc for building shared libraries.
17455build_libtool_need_lc=$archive_cmds_need_lc
17456
17457# Whether or not to disallow shared libs when runtime libs are static.
17458allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17459
17460# Compiler flag to allow reflexive dlopens.
17461export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17462
17463# Compiler flag to generate shared objects directly from archives.
17464whole_archive_flag_spec=$lt_whole_archive_flag_spec
17465
17466# Whether the compiler copes with passing no objects directly.
17467compiler_needs_object=$lt_compiler_needs_object
17468
17469# Create an old-style archive from a shared archive.
17470old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17471
17472# Create a temporary old-style archive to link instead of a shared archive.
17473old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17474
17475# Commands used to build a shared archive.
17476archive_cmds=$lt_archive_cmds
17477archive_expsym_cmds=$lt_archive_expsym_cmds
17478
17479# Commands used to build a loadable module if different from building
17480# a shared archive.
17481module_cmds=$lt_module_cmds
17482module_expsym_cmds=$lt_module_expsym_cmds
17483
17484# Whether we are building with GNU ld or not.
17485with_gnu_ld=$lt_with_gnu_ld
17486
17487# Flag that allows shared libraries with undefined symbols to be built.
17488allow_undefined_flag=$lt_allow_undefined_flag
17489
17490# Flag that enforces no undefined symbols.
17491no_undefined_flag=$lt_no_undefined_flag
17492
17493# Flag to hardcode \$libdir into a binary during linking.
17494# This must work even if \$libdir does not exist
17495hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17496
17497# If ld is used when linking, flag to hardcode \$libdir into a binary
17498# during linking. This must work even if \$libdir does not exist.
17499hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17500
17501# Whether we need a single "-rpath" flag with a separated argument.
17502hardcode_libdir_separator=$lt_hardcode_libdir_separator
17503
17504# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17505# DIR into the resulting binary.
17506hardcode_direct=$hardcode_direct
17507
17508# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17509# DIR into the resulting binary and the resulting library dependency is
17510# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17511# library is relocated.
17512hardcode_direct_absolute=$hardcode_direct_absolute
17513
17514# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17515# into the resulting binary.
17516hardcode_minus_L=$hardcode_minus_L
17517
17518# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17519# into the resulting binary.
17520hardcode_shlibpath_var=$hardcode_shlibpath_var
17521
17522# Set to "yes" if building a shared library automatically hardcodes DIR
17523# into the library and all subsequent libraries and executables linked
17524# against it.
17525hardcode_automatic=$hardcode_automatic
17526
17527# Set to yes if linker adds runtime paths of dependent libraries
17528# to runtime path list.
17529inherit_rpath=$inherit_rpath
17530
17531# Whether libtool must link a program against all its dependency libraries.
17532link_all_deplibs=$link_all_deplibs
17533
17534# Fix the shell variable \$srcfile for the compiler.
17535fix_srcfile_path=$lt_fix_srcfile_path
17536
17537# Set to "yes" if exported symbols are required.
17538always_export_symbols=$always_export_symbols
17539
17540# The commands to list exported symbols.
17541export_symbols_cmds=$lt_export_symbols_cmds
17542
17543# Symbols that should not be listed in the preloaded symbols.
17544exclude_expsyms=$lt_exclude_expsyms
17545
17546# Symbols that must always be exported.
17547include_expsyms=$lt_include_expsyms
17548
17549# Commands necessary for linking programs (against libraries) with templates.
17550prelink_cmds=$lt_prelink_cmds
17551
17552# Specify filename containing input files.
17553file_list_spec=$lt_file_list_spec
17554
17555# How to hardcode a shared library path into an executable.
17556hardcode_action=$hardcode_action
17557
17558# The directories searched by this compiler when creating a shared library.
17559compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17560
17561# Dependencies to place before and after the objects being linked to
17562# create a shared library.
17563predep_objects=$lt_predep_objects
17564postdep_objects=$lt_postdep_objects
17565predeps=$lt_predeps
17566postdeps=$lt_postdeps
17567
17568# The library search path used internally by the compiler when linking
17569# a shared library.
17570compiler_lib_search_path=$lt_compiler_lib_search_path
17571
17572# ### END LIBTOOL CONFIG
17573
17574_LT_EOF
17575
17576 case $host_os in
17577 aix3*)
17578 cat <<\_LT_EOF >> "$cfgfile"
17579# AIX sometimes has problems with the GCC collect2 program. For some
17580# reason, if we set the COLLECT_NAMES environment variable, the problems
17581# vanish in a puff of smoke.
17582if test "X${COLLECT_NAMES+set}" != Xset; then
17583 COLLECT_NAMES=
17584 export COLLECT_NAMES
17585fi
17586_LT_EOF
17587 ;;
17588 esac
17589
17590
17591ltmain="$ac_aux_dir/ltmain.sh"
17592
17593
17594 # We use sed instead of cat because bash on DJGPP gets confused if
17595 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17596 # text mode, it properly converts lines to CR/LF. This bash problem
17597 # is reportedly fixed, but why not run on old versions too?
17598 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17599 || (rm -f "$cfgfile"; exit 1)
17600
17601 case $xsi_shell in
17602 yes)
17603 cat << \_LT_EOF >> "$cfgfile"
17604
17605# func_dirname file append nondir_replacement
17606# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17607# otherwise set result to NONDIR_REPLACEMENT.
17608func_dirname ()
17609{
17610 case ${1} in
17611 */*) func_dirname_result="${1%/*}${2}" ;;
17612 * ) func_dirname_result="${3}" ;;
17613 esac
17614}
17615
17616# func_basename file
17617func_basename ()
17618{
17619 func_basename_result="${1##*/}"
17620}
17621
17622# func_dirname_and_basename file append nondir_replacement
17623# perform func_basename and func_dirname in a single function
17624# call:
17625# dirname: Compute the dirname of FILE. If nonempty,
17626# add APPEND to the result, otherwise set result
17627# to NONDIR_REPLACEMENT.
17628# value returned in "$func_dirname_result"
17629# basename: Compute filename of FILE.
17630# value retuned in "$func_basename_result"
17631# Implementation must be kept synchronized with func_dirname
17632# and func_basename. For efficiency, we do not delegate to
17633# those functions but instead duplicate the functionality here.
17634func_dirname_and_basename ()
17635{
17636 case ${1} in
17637 */*) func_dirname_result="${1%/*}${2}" ;;
17638 * ) func_dirname_result="${3}" ;;
17639 esac
17640 func_basename_result="${1##*/}"
17641}
17642
17643# func_stripname prefix suffix name
17644# strip PREFIX and SUFFIX off of NAME.
17645# PREFIX and SUFFIX must not contain globbing or regex special
17646# characters, hashes, percent signs, but SUFFIX may contain a leading
17647# dot (in which case that matches only a dot).
17648func_stripname ()
17649{
17650 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17651 # positional parameters, so assign one to ordinary parameter first.
17652 func_stripname_result=${3}
17653 func_stripname_result=${func_stripname_result#"${1}"}
17654 func_stripname_result=${func_stripname_result%"${2}"}
17655}
17656
17657# func_opt_split
17658func_opt_split ()
17659{
17660 func_opt_split_opt=${1%%=*}
17661 func_opt_split_arg=${1#*=}
17662}
17663
17664# func_lo2o object
17665func_lo2o ()
17666{
17667 case ${1} in
17668 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17669 *) func_lo2o_result=${1} ;;
17670 esac
17671}
17672
17673# func_xform libobj-or-source
17674func_xform ()
17675{
17676 func_xform_result=${1%.*}.lo
17677}
17678
17679# func_arith arithmetic-term...
17680func_arith ()
17681{
17682 func_arith_result=$(( $* ))
17683}
17684
17685# func_len string
17686# STRING may not start with a hyphen.
17687func_len ()
17688{
17689 func_len_result=${#1}
17690}
17691
17692_LT_EOF
17693 ;;
17694 *) # Bourne compatible functions.
17695 cat << \_LT_EOF >> "$cfgfile"
17696
17697# func_dirname file append nondir_replacement
17698# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17699# otherwise set result to NONDIR_REPLACEMENT.
17700func_dirname ()
17701{
17702 # Extract subdirectory from the argument.
17703 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17704 if test "X$func_dirname_result" = "X${1}"; then
17705 func_dirname_result="${3}"
17706 else
17707 func_dirname_result="$func_dirname_result${2}"
17708 fi
17709}
17710
17711# func_basename file
17712func_basename ()
17713{
17714 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17715}
17716
17717
17718# func_stripname prefix suffix name
17719# strip PREFIX and SUFFIX off of NAME.
17720# PREFIX and SUFFIX must not contain globbing or regex special
17721# characters, hashes, percent signs, but SUFFIX may contain a leading
17722# dot (in which case that matches only a dot).
17723# func_strip_suffix prefix name
17724func_stripname ()
17725{
17726 case ${2} in
17727 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17728 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17729 esac
17730}
17731
17732# sed scripts:
17733my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17734my_sed_long_arg='1s/^-[^=]*=//'
17735
17736# func_opt_split
17737func_opt_split ()
17738{
17739 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17740 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17741}
17742
17743# func_lo2o object
17744func_lo2o ()
17745{
17746 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17747}
17748
17749# func_xform libobj-or-source
17750func_xform ()
17751{
17752 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17753}
17754
17755# func_arith arithmetic-term...
17756func_arith ()
17757{
17758 func_arith_result=`expr "$@"`
17759}
17760
17761# func_len string
17762# STRING may not start with a hyphen.
17763func_len ()
17764{
17765 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17766}
17767
17768_LT_EOF
17769esac
17770
17771case $lt_shell_append in
17772 yes)
17773 cat << \_LT_EOF >> "$cfgfile"
17774
17775# func_append var value
17776# Append VALUE to the end of shell variable VAR.
17777func_append ()
17778{
17779 eval "$1+=\$2"
17780}
17781_LT_EOF
17782 ;;
17783 *)
17784 cat << \_LT_EOF >> "$cfgfile"
17785
17786# func_append var value
17787# Append VALUE to the end of shell variable VAR.
17788func_append ()
17789{
17790 eval "$1=\$$1\$2"
17791}
17792
17793_LT_EOF
17794 ;;
17795 esac
17796
17797
17798 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17799 || (rm -f "$cfgfile"; exit 1)
17800
17801 mv -f "$cfgfile" "$ofile" ||
17802 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17803 chmod +x "$ofile"
17804
17805
17806 cat <<_LT_EOF >> "$ofile"
17807
17808# ### BEGIN LIBTOOL TAG CONFIG: CXX
17809
17810# The linker used to build libraries.
17811LD=$lt_LD_CXX
17812
17813# How to create reloadable object files.
17814reload_flag=$lt_reload_flag_CXX
17815reload_cmds=$lt_reload_cmds_CXX
17816
17817# Commands used to build an old-style archive.
17818old_archive_cmds=$lt_old_archive_cmds_CXX
17819
17820# A language specific compiler.
17821CC=$lt_compiler_CXX
17822
17823# Is the compiler the GNU compiler?
17824with_gcc=$GCC_CXX
17825
17826# Compiler flag to turn off builtin functions.
17827no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17828
17829# How to pass a linker flag through the compiler.
17830wl=$lt_lt_prog_compiler_wl_CXX
17831
17832# Additional compiler flags for building library objects.
17833pic_flag=$lt_lt_prog_compiler_pic_CXX
17834
17835# Compiler flag to prevent dynamic linking.
17836link_static_flag=$lt_lt_prog_compiler_static_CXX
17837
17838# Does compiler simultaneously support -c and -o options?
17839compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17840
17841# Whether or not to add -lc for building shared libraries.
17842build_libtool_need_lc=$archive_cmds_need_lc_CXX
17843
17844# Whether or not to disallow shared libs when runtime libs are static.
17845allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17846
17847# Compiler flag to allow reflexive dlopens.
17848export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17849
17850# Compiler flag to generate shared objects directly from archives.
17851whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17852
17853# Whether the compiler copes with passing no objects directly.
17854compiler_needs_object=$lt_compiler_needs_object_CXX
17855
17856# Create an old-style archive from a shared archive.
17857old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17858
17859# Create a temporary old-style archive to link instead of a shared archive.
17860old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17861
17862# Commands used to build a shared archive.
17863archive_cmds=$lt_archive_cmds_CXX
17864archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17865
17866# Commands used to build a loadable module if different from building
17867# a shared archive.
17868module_cmds=$lt_module_cmds_CXX
17869module_expsym_cmds=$lt_module_expsym_cmds_CXX
17870
17871# Whether we are building with GNU ld or not.
17872with_gnu_ld=$lt_with_gnu_ld_CXX
17873
17874# Flag that allows shared libraries with undefined symbols to be built.
17875allow_undefined_flag=$lt_allow_undefined_flag_CXX
17876
17877# Flag that enforces no undefined symbols.
17878no_undefined_flag=$lt_no_undefined_flag_CXX
17879
17880# Flag to hardcode \$libdir into a binary during linking.
17881# This must work even if \$libdir does not exist
17882hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17883
17884# If ld is used when linking, flag to hardcode \$libdir into a binary
17885# during linking. This must work even if \$libdir does not exist.
17886hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17887
17888# Whether we need a single "-rpath" flag with a separated argument.
17889hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17890
17891# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17892# DIR into the resulting binary.
17893hardcode_direct=$hardcode_direct_CXX
17894
17895# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17896# DIR into the resulting binary and the resulting library dependency is
17897# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17898# library is relocated.
17899hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17900
17901# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17902# into the resulting binary.
17903hardcode_minus_L=$hardcode_minus_L_CXX
17904
17905# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17906# into the resulting binary.
17907hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17908
17909# Set to "yes" if building a shared library automatically hardcodes DIR
17910# into the library and all subsequent libraries and executables linked
17911# against it.
17912hardcode_automatic=$hardcode_automatic_CXX
17913
17914# Set to yes if linker adds runtime paths of dependent libraries
17915# to runtime path list.
17916inherit_rpath=$inherit_rpath_CXX
17917
17918# Whether libtool must link a program against all its dependency libraries.
17919link_all_deplibs=$link_all_deplibs_CXX
17920
17921# Fix the shell variable \$srcfile for the compiler.
17922fix_srcfile_path=$lt_fix_srcfile_path_CXX
17923
17924# Set to "yes" if exported symbols are required.
17925always_export_symbols=$always_export_symbols_CXX
17926
17927# The commands to list exported symbols.
17928export_symbols_cmds=$lt_export_symbols_cmds_CXX
17929
17930# Symbols that should not be listed in the preloaded symbols.
17931exclude_expsyms=$lt_exclude_expsyms_CXX
17932
17933# Symbols that must always be exported.
17934include_expsyms=$lt_include_expsyms_CXX
17935
17936# Commands necessary for linking programs (against libraries) with templates.
17937prelink_cmds=$lt_prelink_cmds_CXX
17938
17939# Specify filename containing input files.
17940file_list_spec=$lt_file_list_spec_CXX
17941
17942# How to hardcode a shared library path into an executable.
17943hardcode_action=$hardcode_action_CXX
17944
17945# The directories searched by this compiler when creating a shared library.
17946compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17947
17948# Dependencies to place before and after the objects being linked to
17949# create a shared library.
17950predep_objects=$lt_predep_objects_CXX
17951postdep_objects=$lt_postdep_objects_CXX
17952predeps=$lt_predeps_CXX
17953postdeps=$lt_postdeps_CXX
17954
17955# The library search path used internally by the compiler when linking
17956# a shared library.
17957compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17958
17959# ### END LIBTOOL TAG CONFIG: CXX
17960_LT_EOF
17961
2077db1b
CT
17962 ;;
17963 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
17964s!`test -f '$<' || echo '$(srcdir)/'`!!
17965_EOF
17966 sed -f vpsed$$ $ac_file > tmp$$
17967 mv tmp$$ $ac_file
17968 rm vpsed$$
17969 echo 'MULTISUBDIR =' >> $ac_file
17970 ml_norecursion=yes
17971 . ${multi_basedir}/config-ml.in
17972 { ml_norecursion=; unset ml_norecursion;}
17973 ;;
17974
17975 esac
17976done # for ac_tag
17977
17978
17979as_fn_exit 0
17980_ACEOF
17981ac_clean_files=$ac_clean_files_save
17982
17983test $ac_write_fail = 0 ||
17984 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17985
17986
17987# configure is writing to config.log, and then calls config.status.
17988# config.status does its own redirection, appending to config.log.
17989# Unfortunately, on DOS this fails, as config.log is still kept open
17990# by configure, so config.status won't be able to write to it; its
17991# output is simply discarded. So we exec the FD to /dev/null,
17992# effectively closing config.log, so it can be properly (re)opened and
17993# appended to by config.status. When coming back to configure, we
17994# need to make the FD available again.
17995if test "$no_create" != yes; then
17996 ac_cs_success=:
17997 ac_config_status_args=
17998 test "$silent" = yes &&
17999 ac_config_status_args="$ac_config_status_args --quiet"
18000 exec 5>/dev/null
18001 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18002 exec 5>>config.log
18003 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18004 # would make configure fail if this is the last instruction.
18005 $ac_cs_success || as_fn_exit $?
18006fi
18007if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18009$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18010fi
18011