]> git.ipfire.org Git - thirdparty/gcc.git/blame - libvtv/configure
PR c++/87554 - ICE with extern template and reference member.
[thirdparty/gcc.git] / libvtv / configure
CommitLineData
b710ec85 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
f00f02a3 3# Generated by GNU Autoconf 2.69 for GNU Vtable Verification Runtime Library 1.0.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
b710ec85 7#
b710ec85 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.
f00f02a3 90as_myself=
b710ec85 91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
f00f02a3 135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
b710ec85 160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
f00f02a3 193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
b710ec85 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
83628c60 199test \$(( 1 + 1 )) = 2 || exit 1
b710ec85 200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
83628c60 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
b710ec85 208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
f00f02a3 247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
b710ec85 266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279 fi
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
f00f02a3 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
b710ec85 364
365
366} # as_fn_mkdir_p
f00f02a3 367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
b710ec85 375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
f00f02a3 411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
b710ec85 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
f00f02a3 415# script with STATUS, using 1 if that was 0.
b710ec85 416as_fn_error ()
417{
f00f02a3 418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b710ec85 422 fi
f00f02a3 423 $as_echo "$as_me: error: $2" >&2
b710ec85 424 as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430else
431 as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436else
437 as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
f00f02a3 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
b710ec85 500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
f00f02a3 534 # In both cases, we have to default to `cp -pR'.
b710ec85 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
f00f02a3 536 as_ln_s='cp -pR'
b710ec85 537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
f00f02a3 540 as_ln_s='cp -pR'
b710ec85 541 fi
542else
f00f02a3 543 as_ln_s='cp -pR'
b710ec85 544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
f00f02a3 555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
b710ec85 557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
f00f02a3 567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
b710ec85 569
570# Name of the host.
f00f02a3 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
b710ec85 572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='GNU Vtable Verification Runtime Library'
589PACKAGE_TARNAME='libvtv'
590PACKAGE_VERSION='1.0'
591PACKAGE_STRING='GNU Vtable Verification Runtime Library 1.0'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL='http://www.gnu.org/software/libvtv/'
594
595ac_unique_file="vtv_rts.h"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610# include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615# include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
0812bb06 636get_gcc_base_ver
08de21a4 637VTV_NO_OBSTACK_FALSE
638VTV_NO_OBSTACK_TRUE
f8c51263 639VTV_CYGMIN_FALSE
640VTV_CYGMIN_TRUE
b710ec85 641XCFLAGS
642libtool_VERSION
643enable_static
644enable_shared
a9983ab2 645lt_host_flags
b710ec85 646CXXCPP
b710ec85 647OTOOL64
648OTOOL
649LIPO
650NMEDIT
651DSYMUTIL
652OBJDUMP
653LN_S
654NM
655ac_ct_DUMPBIN
656DUMPBIN
657LD
658FGREP
b710ec85 659SED
660LIBTOOL
661RANLIB
662AR
663AS
664CCASFLAGS
665CCAS
666am__fastdepCXX_FALSE
667am__fastdepCXX_TRUE
668CXXDEPMODE
669ac_ct_CXX
670CXXFLAGS
671CXX
b710ec85 672toolexeclibdir
673toolexecdir
0adca056 674toplevel_srcdir
675toplevel_builddir
676libvtv_srcdir
677libvtv_builddir
b710ec85 678MAINT
679MAINTAINER_MODE_FALSE
680MAINTAINER_MODE_TRUE
f00f02a3 681AM_BACKSLASH
682AM_DEFAULT_VERBOSITY
683AM_DEFAULT_V
684AM_V
08de21a4 685am__fastdepCC_FALSE
686am__fastdepCC_TRUE
687CCDEPMODE
688am__nodep
689AMDEPBACKSLASH
690AMDEP_FALSE
691AMDEP_TRUE
692am__quote
693am__include
694DEPDIR
b710ec85 695am__untar
696am__tar
697AMTAR
698am__leading_dot
699SET_MAKE
700AWK
701mkdir_p
702MKDIR_P
703INSTALL_STRIP_PROGRAM
704STRIP
705install_sh
706MAKEINFO
707AUTOHEADER
708AUTOMAKE
709AUTOCONF
710ACLOCAL
711VERSION
712PACKAGE
713CYGPATH_W
714am__isrc
715INSTALL_DATA
716INSTALL_SCRIPT
717INSTALL_PROGRAM
825de484 718ENABLE_VTABLE_VERIFY_FALSE
719ENABLE_VTABLE_VERIFY_TRUE
08de21a4 720EGREP
721GREP
722CPP
723OBJEXT
724EXEEXT
725ac_ct_CC
726CPPFLAGS
727LDFLAGS
728CFLAGS
729CC
b710ec85 730LIBSTDCXX_RAW_CXX_LDFLAGS
731LIBSTDCXX_RAW_CXX_CXXFLAGS
732target_noncanonical
733target_os
734target_vendor
735target_cpu
736target
737host_os
738host_vendor
739host_cpu
740host
741build_os
742build_vendor
743build_cpu
744build
0344b437 745multi_basedir
b710ec85 746target_alias
747host_alias
748build_alias
749LIBS
750ECHO_T
751ECHO_N
752ECHO_C
753DEFS
754mandir
755localedir
756libdir
757psdir
758pdfdir
759dvidir
760htmldir
761infodir
762docdir
763oldincludedir
764includedir
765localstatedir
766sharedstatedir
767sysconfdir
768datadir
769datarootdir
770libexecdir
771sbindir
772bindir
773program_transform_name
774prefix
775exec_prefix
776PACKAGE_URL
777PACKAGE_BUGREPORT
778PACKAGE_STRING
779PACKAGE_VERSION
780PACKAGE_TARNAME
781PACKAGE_NAME
782PATH_SEPARATOR
783SHELL'
784ac_subst_files=''
785ac_user_opts='
786enable_option_checking
0344b437 787enable_multilib
b710ec85 788enable_version_specific_runtime_libs
825de484 789enable_vtable_verify
08de21a4 790enable_dependency_tracking
f00f02a3 791enable_silent_rules
b710ec85 792enable_maintainer_mode
b710ec85 793enable_shared
794enable_static
795with_pic
796enable_fast_install
797with_gnu_ld
798enable_libtool_lock
20c60140 799enable_cet
0812bb06 800with_gcc_major_version_only
b710ec85 801'
802 ac_precious_vars='build_alias
803host_alias
804target_alias
83628c60 805CC
806CFLAGS
807LDFLAGS
808LIBS
b710ec85 809CPPFLAGS
83628c60 810CPP
b710ec85 811CXXCPP'
812
813
814# Initialize some variables set by options.
815ac_init_help=
816ac_init_version=false
817ac_unrecognized_opts=
818ac_unrecognized_sep=
819# The variables have the same names as the options, with
820# dashes changed to underlines.
821cache_file=/dev/null
822exec_prefix=NONE
823no_create=
824no_recursion=
825prefix=NONE
826program_prefix=NONE
827program_suffix=NONE
828program_transform_name=s,x,x,
829silent=
830site=
831srcdir=
832verbose=
833x_includes=NONE
834x_libraries=NONE
835
836# Installation directory options.
837# These are left unexpanded so users can "make install exec_prefix=/foo"
838# and all the variables that are supposed to be based on exec_prefix
839# by default will actually change.
840# Use braces instead of parens because sh, perl, etc. also accept them.
841# (The list follows the same order as the GNU Coding Standards.)
842bindir='${exec_prefix}/bin'
843sbindir='${exec_prefix}/sbin'
844libexecdir='${exec_prefix}/libexec'
845datarootdir='${prefix}/share'
846datadir='${datarootdir}'
847sysconfdir='${prefix}/etc'
848sharedstatedir='${prefix}/com'
849localstatedir='${prefix}/var'
850includedir='${prefix}/include'
851oldincludedir='/usr/include'
852docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
853infodir='${datarootdir}/info'
854htmldir='${docdir}'
855dvidir='${docdir}'
856pdfdir='${docdir}'
857psdir='${docdir}'
858libdir='${exec_prefix}/lib'
859localedir='${datarootdir}/locale'
860mandir='${datarootdir}/man'
861
862ac_prev=
863ac_dashdash=
864for ac_option
865do
866 # If the previous option needs an argument, assign it.
867 if test -n "$ac_prev"; then
868 eval $ac_prev=\$ac_option
869 ac_prev=
870 continue
871 fi
872
873 case $ac_option in
f00f02a3 874 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
875 *=) ac_optarg= ;;
876 *) ac_optarg=yes ;;
b710ec85 877 esac
878
879 # Accept the important Cygnus configure options, so we can diagnose typos.
880
881 case $ac_dashdash$ac_option in
882 --)
883 ac_dashdash=yes ;;
884
885 -bindir | --bindir | --bindi | --bind | --bin | --bi)
886 ac_prev=bindir ;;
887 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
888 bindir=$ac_optarg ;;
889
890 -build | --build | --buil | --bui | --bu)
891 ac_prev=build_alias ;;
892 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893 build_alias=$ac_optarg ;;
894
895 -cache-file | --cache-file | --cache-fil | --cache-fi \
896 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897 ac_prev=cache_file ;;
898 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900 cache_file=$ac_optarg ;;
901
902 --config-cache | -C)
903 cache_file=config.cache ;;
904
905 -datadir | --datadir | --datadi | --datad)
906 ac_prev=datadir ;;
907 -datadir=* | --datadir=* | --datadi=* | --datad=*)
908 datadir=$ac_optarg ;;
909
910 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911 | --dataroo | --dataro | --datar)
912 ac_prev=datarootdir ;;
913 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915 datarootdir=$ac_optarg ;;
916
917 -disable-* | --disable-*)
918 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f00f02a3 921 as_fn_error $? "invalid feature name: $ac_useropt"
b710ec85 922 ac_useropt_orig=$ac_useropt
923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
925 *"
926"enable_$ac_useropt"
927"*) ;;
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
930 esac
931 eval enable_$ac_useropt=no ;;
932
933 -docdir | --docdir | --docdi | --doc | --do)
934 ac_prev=docdir ;;
935 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936 docdir=$ac_optarg ;;
937
938 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939 ac_prev=dvidir ;;
940 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941 dvidir=$ac_optarg ;;
942
943 -enable-* | --enable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f00f02a3 947 as_fn_error $? "invalid feature name: $ac_useropt"
b710ec85 948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
951 *"
952"enable_$ac_useropt"
953"*) ;;
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
956 esac
957 eval enable_$ac_useropt=\$ac_optarg ;;
958
959 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961 | --exec | --exe | --ex)
962 ac_prev=exec_prefix ;;
963 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965 | --exec=* | --exe=* | --ex=*)
966 exec_prefix=$ac_optarg ;;
967
968 -gas | --gas | --ga | --g)
969 # Obsolete; use --with-gas.
970 with_gas=yes ;;
971
972 -help | --help | --hel | --he | -h)
973 ac_init_help=long ;;
974 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975 ac_init_help=recursive ;;
976 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977 ac_init_help=short ;;
978
979 -host | --host | --hos | --ho)
980 ac_prev=host_alias ;;
981 -host=* | --host=* | --hos=* | --ho=*)
982 host_alias=$ac_optarg ;;
983
984 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985 ac_prev=htmldir ;;
986 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987 | --ht=*)
988 htmldir=$ac_optarg ;;
989
990 -includedir | --includedir | --includedi | --included | --include \
991 | --includ | --inclu | --incl | --inc)
992 ac_prev=includedir ;;
993 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994 | --includ=* | --inclu=* | --incl=* | --inc=*)
995 includedir=$ac_optarg ;;
996
997 -infodir | --infodir | --infodi | --infod | --info | --inf)
998 ac_prev=infodir ;;
999 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000 infodir=$ac_optarg ;;
1001
1002 -libdir | --libdir | --libdi | --libd)
1003 ac_prev=libdir ;;
1004 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005 libdir=$ac_optarg ;;
1006
1007 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008 | --libexe | --libex | --libe)
1009 ac_prev=libexecdir ;;
1010 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011 | --libexe=* | --libex=* | --libe=*)
1012 libexecdir=$ac_optarg ;;
1013
1014 -localedir | --localedir | --localedi | --localed | --locale)
1015 ac_prev=localedir ;;
1016 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017 localedir=$ac_optarg ;;
1018
1019 -localstatedir | --localstatedir | --localstatedi | --localstated \
1020 | --localstate | --localstat | --localsta | --localst | --locals)
1021 ac_prev=localstatedir ;;
1022 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1023 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1024 localstatedir=$ac_optarg ;;
1025
1026 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027 ac_prev=mandir ;;
1028 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029 mandir=$ac_optarg ;;
1030
1031 -nfp | --nfp | --nf)
1032 # Obsolete; use --without-fp.
1033 with_fp=no ;;
1034
1035 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036 | --no-cr | --no-c | -n)
1037 no_create=yes ;;
1038
1039 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041 no_recursion=yes ;;
1042
1043 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045 | --oldin | --oldi | --old | --ol | --o)
1046 ac_prev=oldincludedir ;;
1047 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1050 oldincludedir=$ac_optarg ;;
1051
1052 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053 ac_prev=prefix ;;
1054 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055 prefix=$ac_optarg ;;
1056
1057 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058 | --program-pre | --program-pr | --program-p)
1059 ac_prev=program_prefix ;;
1060 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1062 program_prefix=$ac_optarg ;;
1063
1064 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065 | --program-suf | --program-su | --program-s)
1066 ac_prev=program_suffix ;;
1067 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1069 program_suffix=$ac_optarg ;;
1070
1071 -program-transform-name | --program-transform-name \
1072 | --program-transform-nam | --program-transform-na \
1073 | --program-transform-n | --program-transform- \
1074 | --program-transform | --program-transfor \
1075 | --program-transfo | --program-transf \
1076 | --program-trans | --program-tran \
1077 | --progr-tra | --program-tr | --program-t)
1078 ac_prev=program_transform_name ;;
1079 -program-transform-name=* | --program-transform-name=* \
1080 | --program-transform-nam=* | --program-transform-na=* \
1081 | --program-transform-n=* | --program-transform-=* \
1082 | --program-transform=* | --program-transfor=* \
1083 | --program-transfo=* | --program-transf=* \
1084 | --program-trans=* | --program-tran=* \
1085 | --progr-tra=* | --program-tr=* | --program-t=*)
1086 program_transform_name=$ac_optarg ;;
1087
1088 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089 ac_prev=pdfdir ;;
1090 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091 pdfdir=$ac_optarg ;;
1092
1093 -psdir | --psdir | --psdi | --psd | --ps)
1094 ac_prev=psdir ;;
1095 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096 psdir=$ac_optarg ;;
1097
1098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099 | -silent | --silent | --silen | --sile | --sil)
1100 silent=yes ;;
1101
1102 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103 ac_prev=sbindir ;;
1104 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105 | --sbi=* | --sb=*)
1106 sbindir=$ac_optarg ;;
1107
1108 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110 | --sharedst | --shareds | --shared | --share | --shar \
1111 | --sha | --sh)
1112 ac_prev=sharedstatedir ;;
1113 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116 | --sha=* | --sh=*)
1117 sharedstatedir=$ac_optarg ;;
1118
1119 -site | --site | --sit)
1120 ac_prev=site ;;
1121 -site=* | --site=* | --sit=*)
1122 site=$ac_optarg ;;
1123
1124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125 ac_prev=srcdir ;;
1126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127 srcdir=$ac_optarg ;;
1128
1129 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130 | --syscon | --sysco | --sysc | --sys | --sy)
1131 ac_prev=sysconfdir ;;
1132 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134 sysconfdir=$ac_optarg ;;
1135
1136 -target | --target | --targe | --targ | --tar | --ta | --t)
1137 ac_prev=target_alias ;;
1138 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139 target_alias=$ac_optarg ;;
1140
1141 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142 verbose=yes ;;
1143
1144 -version | --version | --versio | --versi | --vers | -V)
1145 ac_init_version=: ;;
1146
1147 -with-* | --with-*)
1148 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f00f02a3 1151 as_fn_error $? "invalid package name: $ac_useropt"
b710ec85 1152 ac_useropt_orig=$ac_useropt
1153 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154 case $ac_user_opts in
1155 *"
1156"with_$ac_useropt"
1157"*) ;;
1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159 ac_unrecognized_sep=', ';;
1160 esac
1161 eval with_$ac_useropt=\$ac_optarg ;;
1162
1163 -without-* | --without-*)
1164 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f00f02a3 1167 as_fn_error $? "invalid package name: $ac_useropt"
b710ec85 1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1171 *"
1172"with_$ac_useropt"
1173"*) ;;
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1176 esac
1177 eval with_$ac_useropt=no ;;
1178
1179 --x)
1180 # Obsolete; use --with-x.
1181 with_x=yes ;;
1182
1183 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1184 | --x-incl | --x-inc | --x-in | --x-i)
1185 ac_prev=x_includes ;;
1186 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1187 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1188 x_includes=$ac_optarg ;;
1189
1190 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1191 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1192 ac_prev=x_libraries ;;
1193 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1194 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1195 x_libraries=$ac_optarg ;;
1196
f00f02a3 1197 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1198Try \`$0 --help' for more information"
b710ec85 1199 ;;
1200
1201 *=*)
1202 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1203 # Reject names that are not valid shell variable names.
1204 case $ac_envvar in #(
1205 '' | [0-9]* | *[!_$as_cr_alnum]* )
f00f02a3 1206 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
b710ec85 1207 esac
1208 eval $ac_envvar=\$ac_optarg
1209 export $ac_envvar ;;
1210
1211 *)
1212 # FIXME: should be removed in autoconf 3.0.
1213 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1214 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
f00f02a3 1216 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
b710ec85 1217 ;;
1218
1219 esac
1220done
1221
1222if test -n "$ac_prev"; then
1223 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
f00f02a3 1224 as_fn_error $? "missing argument to $ac_option"
b710ec85 1225fi
1226
1227if test -n "$ac_unrecognized_opts"; then
1228 case $enable_option_checking in
1229 no) ;;
f00f02a3 1230 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
b710ec85 1231 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1232 esac
1233fi
1234
1235# Check all directory arguments for consistency.
1236for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1237 datadir sysconfdir sharedstatedir localstatedir includedir \
1238 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1239 libdir localedir mandir
1240do
1241 eval ac_val=\$$ac_var
1242 # Remove trailing slashes.
1243 case $ac_val in
1244 */ )
1245 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1246 eval $ac_var=\$ac_val;;
1247 esac
1248 # Be sure to have absolute directory names.
1249 case $ac_val in
1250 [\\/$]* | ?:[\\/]* ) continue;;
1251 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1252 esac
f00f02a3 1253 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
b710ec85 1254done
1255
1256# There might be people who depend on the old broken behavior: `$host'
1257# used to hold the argument of --host etc.
1258# FIXME: To remove some day.
1259build=$build_alias
1260host=$host_alias
1261target=$target_alias
1262
1263# FIXME: To remove some day.
1264if test "x$host_alias" != x; then
1265 if test "x$build_alias" = x; then
1266 cross_compiling=maybe
b710ec85 1267 elif test "x$build_alias" != "x$host_alias"; then
1268 cross_compiling=yes
1269 fi
1270fi
1271
1272ac_tool_prefix=
1273test -n "$host_alias" && ac_tool_prefix=$host_alias-
1274
1275test "$silent" = yes && exec 6>/dev/null
1276
1277
1278ac_pwd=`pwd` && test -n "$ac_pwd" &&
1279ac_ls_di=`ls -di .` &&
1280ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
f00f02a3 1281 as_fn_error $? "working directory cannot be determined"
b710ec85 1282test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
f00f02a3 1283 as_fn_error $? "pwd does not report name of working directory"
b710ec85 1284
1285
1286# Find the source files, if location was not specified.
1287if test -z "$srcdir"; then
1288 ac_srcdir_defaulted=yes
1289 # Try the directory containing this script, then the parent directory.
1290 ac_confdir=`$as_dirname -- "$as_myself" ||
1291$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292 X"$as_myself" : 'X\(//\)[^/]' \| \
1293 X"$as_myself" : 'X\(//\)$' \| \
1294 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1295$as_echo X"$as_myself" |
1296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297 s//\1/
1298 q
1299 }
1300 /^X\(\/\/\)[^/].*/{
1301 s//\1/
1302 q
1303 }
1304 /^X\(\/\/\)$/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\).*/{
1309 s//\1/
1310 q
1311 }
1312 s/.*/./; q'`
1313 srcdir=$ac_confdir
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1315 srcdir=..
1316 fi
1317else
1318 ac_srcdir_defaulted=no
1319fi
1320if test ! -r "$srcdir/$ac_unique_file"; then
1321 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
f00f02a3 1322 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
b710ec85 1323fi
1324ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1325ac_abs_confdir=`(
f00f02a3 1326 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
b710ec85 1327 pwd)`
1328# When building in place, set srcdir=.
1329if test "$ac_abs_confdir" = "$ac_pwd"; then
1330 srcdir=.
1331fi
1332# Remove unnecessary trailing slashes from srcdir.
1333# Double slashes in file names in object file debugging info
1334# mess up M-x gdb in Emacs.
1335case $srcdir in
1336*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1337esac
1338for ac_var in $ac_precious_vars; do
1339 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1340 eval ac_env_${ac_var}_value=\$${ac_var}
1341 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1342 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1343done
1344
1345#
1346# Report the --help message.
1347#
1348if test "$ac_init_help" = "long"; then
1349 # Omit some internal or obsolete options to make the list less imposing.
1350 # This message is too long to be a string in the A/UX 3.1 sh.
1351 cat <<_ACEOF
1352\`configure' configures GNU Vtable Verification Runtime Library 1.0 to adapt to many kinds of systems.
1353
1354Usage: $0 [OPTION]... [VAR=VALUE]...
1355
1356To assign environment variables (e.g., CC, CFLAGS...), specify them as
1357VAR=VALUE. See below for descriptions of some of the useful variables.
1358
1359Defaults for the options are specified in brackets.
1360
1361Configuration:
1362 -h, --help display this help and exit
1363 --help=short display options specific to this package
1364 --help=recursive display the short help of all the included packages
1365 -V, --version display version information and exit
f00f02a3 1366 -q, --quiet, --silent do not print \`checking ...' messages
b710ec85 1367 --cache-file=FILE cache test results in FILE [disabled]
1368 -C, --config-cache alias for \`--cache-file=config.cache'
1369 -n, --no-create do not create output files
1370 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1371
1372Installation directories:
1373 --prefix=PREFIX install architecture-independent files in PREFIX
1374 [$ac_default_prefix]
1375 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1376 [PREFIX]
1377
1378By default, \`make install' will install all the files in
1379\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1380an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1381for instance \`--prefix=\$HOME'.
1382
1383For better control, use the options below.
1384
1385Fine tuning of the installation directories:
1386 --bindir=DIR user executables [EPREFIX/bin]
1387 --sbindir=DIR system admin executables [EPREFIX/sbin]
1388 --libexecdir=DIR program executables [EPREFIX/libexec]
1389 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1390 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1391 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1392 --libdir=DIR object code libraries [EPREFIX/lib]
1393 --includedir=DIR C header files [PREFIX/include]
1394 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1395 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1396 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1397 --infodir=DIR info documentation [DATAROOTDIR/info]
1398 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1399 --mandir=DIR man documentation [DATAROOTDIR/man]
1400 --docdir=DIR documentation root [DATAROOTDIR/doc/libvtv]
1401 --htmldir=DIR html documentation [DOCDIR]
1402 --dvidir=DIR dvi documentation [DOCDIR]
1403 --pdfdir=DIR pdf documentation [DOCDIR]
1404 --psdir=DIR ps documentation [DOCDIR]
1405_ACEOF
1406
1407 cat <<\_ACEOF
1408
1409Program names:
1410 --program-prefix=PREFIX prepend PREFIX to installed program names
1411 --program-suffix=SUFFIX append SUFFIX to installed program names
1412 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1413
1414System types:
1415 --build=BUILD configure for building on BUILD [guessed]
1416 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1417 --target=TARGET configure for building compilers for TARGET [HOST]
1418_ACEOF
1419fi
1420
1421if test -n "$ac_init_help"; then
1422 case $ac_init_help in
1423 short | recursive ) echo "Configuration of GNU Vtable Verification Runtime Library 1.0:";;
1424 esac
1425 cat <<\_ACEOF
1426
1427Optional Features:
1428 --disable-option-checking ignore unrecognized --enable/--with options
1429 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1430 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
0344b437 1431 --enable-multilib build many library versions (default)
b710ec85 1432 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
825de484 1433 --enable-vtable-verify Enable vtable verification feature
f00f02a3 1434 --enable-dependency-tracking
1435 do not reject slow dependency extractors
1436 --disable-dependency-tracking
1437 speeds up one-time build
1438 --enable-silent-rules less verbose build output (undo: "make V=1")
1439 --disable-silent-rules verbose build output (undo: "make V=0")
1440 --enable-maintainer-mode
1441 enable make rules and dependencies not useful (and
1442 sometimes confusing) to the casual installer
b710ec85 1443 --enable-shared[=PKGS] build shared libraries [default=yes]
1444 --enable-static[=PKGS] build static libraries [default=yes]
1445 --enable-fast-install[=PKGS]
1446 optimize for fast installation [default=yes]
1447 --disable-libtool-lock avoid locking (might break parallel builds)
ee8fea81 1448 --enable-cet enable Intel CET in target libraries [default=no]
b710ec85 1449
1450Optional Packages:
1451 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1452 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1453 --with-pic try to use only PIC/non-PIC objects [default=use
1454 both]
1455 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
0812bb06 1456 --with-gcc-major-version-only
1457 use only GCC major number in filesystem paths
b710ec85 1458
1459Some influential environment variables:
1460 CC C compiler command
1461 CFLAGS C compiler flags
1462 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1463 nonstandard directory <lib dir>
1464 LIBS libraries to pass to the linker, e.g. -l<library>
f00f02a3 1465 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
b710ec85 1466 you have headers in a nonstandard directory <include dir>
83628c60 1467 CPP C preprocessor
b710ec85 1468 CXX C++ compiler command
1469 CXXFLAGS C++ compiler flags
b710ec85 1470 CXXCPP C++ preprocessor
1471
1472Use these variables to override the choices made by `configure' or to help
1473it to find libraries and programs with nonstandard names/locations.
1474
1475Report bugs to the package provider.
1476GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
1477General help using GNU software: <http://www.gnu.org/gethelp/>.
1478_ACEOF
1479ac_status=$?
1480fi
1481
1482if test "$ac_init_help" = "recursive"; then
1483 # If there are subdirs, report their specific --help.
1484 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1485 test -d "$ac_dir" ||
1486 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1487 continue
1488 ac_builddir=.
1489
1490case "$ac_dir" in
1491.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492*)
1493 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1494 # A ".." for each directory in $ac_dir_suffix.
1495 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1496 case $ac_top_builddir_sub in
1497 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1499 esac ;;
1500esac
1501ac_abs_top_builddir=$ac_pwd
1502ac_abs_builddir=$ac_pwd$ac_dir_suffix
1503# for backward compatibility:
1504ac_top_builddir=$ac_top_build_prefix
1505
1506case $srcdir in
1507 .) # We are building in place.
1508 ac_srcdir=.
1509 ac_top_srcdir=$ac_top_builddir_sub
1510 ac_abs_top_srcdir=$ac_pwd ;;
1511 [\\/]* | ?:[\\/]* ) # Absolute name.
1512 ac_srcdir=$srcdir$ac_dir_suffix;
1513 ac_top_srcdir=$srcdir
1514 ac_abs_top_srcdir=$srcdir ;;
1515 *) # Relative name.
1516 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1517 ac_top_srcdir=$ac_top_build_prefix$srcdir
1518 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1519esac
1520ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1521
1522 cd "$ac_dir" || { ac_status=$?; continue; }
1523 # Check for guested configure.
1524 if test -f "$ac_srcdir/configure.gnu"; then
1525 echo &&
1526 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1527 elif test -f "$ac_srcdir/configure"; then
1528 echo &&
1529 $SHELL "$ac_srcdir/configure" --help=recursive
1530 else
1531 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1532 fi || ac_status=$?
1533 cd "$ac_pwd" || { ac_status=$?; break; }
1534 done
1535fi
1536
1537test -n "$ac_init_help" && exit $ac_status
1538if $ac_init_version; then
1539 cat <<\_ACEOF
1540GNU Vtable Verification Runtime Library configure 1.0
f00f02a3 1541generated by GNU Autoconf 2.69
b710ec85 1542
f00f02a3 1543Copyright (C) 2012 Free Software Foundation, Inc.
b710ec85 1544This configure script is free software; the Free Software Foundation
1545gives unlimited permission to copy, distribute and modify it.
1546_ACEOF
1547 exit
1548fi
1549
1550## ------------------------ ##
1551## Autoconf initialization. ##
1552## ------------------------ ##
1553
1554# ac_fn_c_try_compile LINENO
1555# --------------------------
1556# Try to compile conftest.$ac_ext, and return whether this succeeded.
1557ac_fn_c_try_compile ()
1558{
1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560 rm -f conftest.$ac_objext
1561 if { { ac_try="$ac_compile"
1562case "(($ac_try" in
1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564 *) ac_try_echo=$ac_try;;
1565esac
1566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567$as_echo "$ac_try_echo"; } >&5
1568 (eval "$ac_compile") 2>conftest.err
1569 ac_status=$?
1570 if test -s conftest.err; then
1571 grep -v '^ *+' conftest.err >conftest.er1
1572 cat conftest.er1 >&5
1573 mv -f conftest.er1 conftest.err
1574 fi
1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 test $ac_status = 0; } && {
1577 test -z "$ac_c_werror_flag" ||
1578 test ! -s conftest.err
1579 } && test -s conftest.$ac_objext; then :
1580 ac_retval=0
1581else
1582 $as_echo "$as_me: failed program was:" >&5
1583sed 's/^/| /' conftest.$ac_ext >&5
1584
1585 ac_retval=1
1586fi
f00f02a3 1587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588 as_fn_set_status $ac_retval
b710ec85 1589
1590} # ac_fn_c_try_compile
1591
83628c60 1592# ac_fn_c_try_cpp LINENO
1593# ----------------------
1594# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1595ac_fn_c_try_cpp ()
b710ec85 1596{
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
83628c60 1598 if { { ac_try="$ac_cpp conftest.$ac_ext"
b710ec85 1599case "(($ac_try" in
1600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601 *) ac_try_echo=$ac_try;;
1602esac
1603eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604$as_echo "$ac_try_echo"; } >&5
83628c60 1605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
b710ec85 1606 ac_status=$?
1607 if test -s conftest.err; then
1608 grep -v '^ *+' conftest.err >conftest.er1
1609 cat conftest.er1 >&5
1610 mv -f conftest.er1 conftest.err
1611 fi
1612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
f00f02a3 1613 test $ac_status = 0; } > conftest.i && {
83628c60 1614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
b710ec85 1615 test ! -s conftest.err
83628c60 1616 }; then :
b710ec85 1617 ac_retval=0
1618else
1619 $as_echo "$as_me: failed program was:" >&5
1620sed 's/^/| /' conftest.$ac_ext >&5
1621
83628c60 1622 ac_retval=1
b710ec85 1623fi
f00f02a3 1624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625 as_fn_set_status $ac_retval
b710ec85 1626
83628c60 1627} # ac_fn_c_try_cpp
b710ec85 1628
83628c60 1629# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1630# -------------------------------------------------------
1631# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1632# the include files in INCLUDES and setting the cache variable VAR
1633# accordingly.
1634ac_fn_c_check_header_mongrel ()
1635{
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
f00f02a3 1637 if eval \${$3+:} false; then :
83628c60 1638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1639$as_echo_n "checking for $2... " >&6; }
f00f02a3 1640if eval \${$3+:} false; then :
83628c60 1641 $as_echo_n "(cached) " >&6
1642fi
1643eval ac_res=\$$3
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1645$as_echo "$ac_res" >&6; }
1646else
1647 # Is the header compilable?
1648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1649$as_echo_n "checking $2 usability... " >&6; }
1650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1651/* end confdefs.h. */
1652$4
1653#include <$2>
1654_ACEOF
1655if ac_fn_c_try_compile "$LINENO"; then :
1656 ac_header_compiler=yes
1657else
1658 ac_header_compiler=no
1659fi
1660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1662$as_echo "$ac_header_compiler" >&6; }
1663
1664# Is the header present?
1665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1666$as_echo_n "checking $2 presence... " >&6; }
1667cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668/* end confdefs.h. */
1669#include <$2>
1670_ACEOF
1671if ac_fn_c_try_cpp "$LINENO"; then :
1672 ac_header_preproc=yes
1673else
1674 ac_header_preproc=no
1675fi
f00f02a3 1676rm -f conftest.err conftest.i conftest.$ac_ext
83628c60 1677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1678$as_echo "$ac_header_preproc" >&6; }
1679
1680# So? What about this header?
1681case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1682 yes:no: )
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1684$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1686$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1687 ;;
1688 no:yes:* )
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1690$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1692$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1694$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1696$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1698$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1699 ;;
1700esac
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1702$as_echo_n "checking for $2... " >&6; }
f00f02a3 1703if eval \${$3+:} false; then :
83628c60 1704 $as_echo_n "(cached) " >&6
1705else
1706 eval "$3=\$ac_header_compiler"
1707fi
1708eval ac_res=\$$3
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1710$as_echo "$ac_res" >&6; }
1711fi
f00f02a3 1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
83628c60 1713
1714} # ac_fn_c_check_header_mongrel
1715
1716# ac_fn_c_try_run LINENO
1717# ----------------------
1718# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1719# that executables *can* be run.
1720ac_fn_c_try_run ()
b710ec85 1721{
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
b710ec85 1723 if { { ac_try="$ac_link"
1724case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727esac
1728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729$as_echo "$ac_try_echo"; } >&5
83628c60 1730 (eval "$ac_link") 2>&5
b710ec85 1731 ac_status=$?
b710ec85 1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83628c60 1733 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1734 { { case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737esac
1738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739$as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_try") 2>&5
1741 ac_status=$?
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; }; }; then :
b710ec85 1744 ac_retval=0
1745else
83628c60 1746 $as_echo "$as_me: program exited with status $ac_status" >&5
1747 $as_echo "$as_me: failed program was:" >&5
b710ec85 1748sed 's/^/| /' conftest.$ac_ext >&5
1749
83628c60 1750 ac_retval=$ac_status
b710ec85 1751fi
b710ec85 1752 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
f00f02a3 1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754 as_fn_set_status $ac_retval
b710ec85 1755
83628c60 1756} # ac_fn_c_try_run
b710ec85 1757
1758# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1759# -------------------------------------------------------
1760# Tests whether HEADER exists and can be compiled using the include files in
1761# INCLUDES, setting the cache variable VAR accordingly.
1762ac_fn_c_check_header_compile ()
1763{
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1766$as_echo_n "checking for $2... " >&6; }
f00f02a3 1767if eval \${$3+:} false; then :
b710ec85 1768 $as_echo_n "(cached) " >&6
1769else
1770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1771/* end confdefs.h. */
1772$4
1773#include <$2>
1774_ACEOF
1775if ac_fn_c_try_compile "$LINENO"; then :
1776 eval "$3=yes"
1777else
1778 eval "$3=no"
1779fi
1780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1781fi
1782eval ac_res=\$$3
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784$as_echo "$ac_res" >&6; }
f00f02a3 1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
b710ec85 1786
1787} # ac_fn_c_check_header_compile
1788
83628c60 1789# ac_fn_c_try_link LINENO
1790# -----------------------
1791# Try to link conftest.$ac_ext, and return whether this succeeded.
1792ac_fn_c_try_link ()
b710ec85 1793{
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
83628c60 1795 rm -f conftest.$ac_objext conftest$ac_exeext
1796 if { { ac_try="$ac_link"
b710ec85 1797case "(($ac_try" in
1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1800esac
1801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802$as_echo "$ac_try_echo"; } >&5
83628c60 1803 (eval "$ac_link") 2>conftest.err
b710ec85 1804 ac_status=$?
1805 if test -s conftest.err; then
1806 grep -v '^ *+' conftest.err >conftest.er1
1807 cat conftest.er1 >&5
1808 mv -f conftest.er1 conftest.err
1809 fi
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83628c60 1811 test $ac_status = 0; } && {
1812 test -z "$ac_c_werror_flag" ||
b710ec85 1813 test ! -s conftest.err
83628c60 1814 } && test -s conftest$ac_exeext && {
1815 test "$cross_compiling" = yes ||
f00f02a3 1816 test -x conftest$ac_exeext
b710ec85 1817 }; then :
1818 ac_retval=0
1819else
1820 $as_echo "$as_me: failed program was:" >&5
1821sed 's/^/| /' conftest.$ac_ext >&5
1822
83628c60 1823 ac_retval=1
b710ec85 1824fi
83628c60 1825 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1826 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1827 # interfere with the next link command; also delete a directory that is
1828 # left behind by Apple's compiler. We do this before executing the actions.
b710ec85 1829 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
f00f02a3 1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831 as_fn_set_status $ac_retval
b710ec85 1832
83628c60 1833} # ac_fn_c_try_link
b710ec85 1834
1835# ac_fn_c_check_func LINENO FUNC VAR
1836# ----------------------------------
1837# Tests whether FUNC exists, setting the cache variable VAR accordingly
1838ac_fn_c_check_func ()
1839{
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842$as_echo_n "checking for $2... " >&6; }
f00f02a3 1843if eval \${$3+:} false; then :
b710ec85 1844 $as_echo_n "(cached) " >&6
1845else
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847/* end confdefs.h. */
1848/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1850#define $2 innocuous_$2
1851
1852/* System header to define __stub macros and hopefully few prototypes,
1853 which can conflict with char $2 (); below.
1854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1855 <limits.h> exists even on freestanding compilers. */
1856
1857#ifdef __STDC__
1858# include <limits.h>
1859#else
1860# include <assert.h>
1861#endif
1862
1863#undef $2
1864
1865/* Override any GCC internal prototype to avoid an error.
1866 Use char because int might match the return type of a GCC
1867 builtin and then its argument prototype would still apply. */
1868#ifdef __cplusplus
1869extern "C"
1870#endif
1871char $2 ();
1872/* The GNU C library defines this for functions which it implements
1873 to always fail with ENOSYS. Some functions are actually named
1874 something starting with __ and the normal name is an alias. */
1875#if defined __stub_$2 || defined __stub___$2
1876choke me
1877#endif
1878
1879int
1880main ()
1881{
1882return $2 ();
1883 ;
1884 return 0;
1885}
1886_ACEOF
1887if ac_fn_c_try_link "$LINENO"; then :
1888 eval "$3=yes"
1889else
1890 eval "$3=no"
1891fi
1892rm -f core conftest.err conftest.$ac_objext \
1893 conftest$ac_exeext conftest.$ac_ext
1894fi
1895eval ac_res=\$$3
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897$as_echo "$ac_res" >&6; }
f00f02a3 1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
b710ec85 1899
1900} # ac_fn_c_check_func
1901
83628c60 1902# ac_fn_cxx_try_compile LINENO
1903# ----------------------------
1904# Try to compile conftest.$ac_ext, and return whether this succeeded.
1905ac_fn_cxx_try_compile ()
1906{
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 rm -f conftest.$ac_objext
1909 if { { ac_try="$ac_compile"
1910case "(($ac_try" in
1911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1912 *) ac_try_echo=$ac_try;;
1913esac
1914eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1915$as_echo "$ac_try_echo"; } >&5
1916 (eval "$ac_compile") 2>conftest.err
1917 ac_status=$?
1918 if test -s conftest.err; then
1919 grep -v '^ *+' conftest.err >conftest.er1
1920 cat conftest.er1 >&5
1921 mv -f conftest.er1 conftest.err
1922 fi
1923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1924 test $ac_status = 0; } && {
1925 test -z "$ac_cxx_werror_flag" ||
1926 test ! -s conftest.err
1927 } && test -s conftest.$ac_objext; then :
1928 ac_retval=0
1929else
1930 $as_echo "$as_me: failed program was:" >&5
1931sed 's/^/| /' conftest.$ac_ext >&5
1932
1933 ac_retval=1
1934fi
f00f02a3 1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 as_fn_set_status $ac_retval
83628c60 1937
1938} # ac_fn_cxx_try_compile
1939
b710ec85 1940# ac_fn_cxx_try_cpp LINENO
1941# ------------------------
1942# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1943ac_fn_cxx_try_cpp ()
1944{
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 if { { ac_try="$ac_cpp conftest.$ac_ext"
1947case "(($ac_try" in
1948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1949 *) ac_try_echo=$ac_try;;
1950esac
1951eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1952$as_echo "$ac_try_echo"; } >&5
1953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1954 ac_status=$?
1955 if test -s conftest.err; then
1956 grep -v '^ *+' conftest.err >conftest.er1
1957 cat conftest.er1 >&5
1958 mv -f conftest.er1 conftest.err
1959 fi
1960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
f00f02a3 1961 test $ac_status = 0; } > conftest.i && {
b710ec85 1962 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1963 test ! -s conftest.err
1964 }; then :
1965 ac_retval=0
1966else
1967 $as_echo "$as_me: failed program was:" >&5
1968sed 's/^/| /' conftest.$ac_ext >&5
1969
1970 ac_retval=1
1971fi
f00f02a3 1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973 as_fn_set_status $ac_retval
b710ec85 1974
1975} # ac_fn_cxx_try_cpp
1976
1977# ac_fn_cxx_try_link LINENO
1978# -------------------------
1979# Try to link conftest.$ac_ext, and return whether this succeeded.
1980ac_fn_cxx_try_link ()
1981{
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 rm -f conftest.$ac_objext conftest$ac_exeext
1984 if { { ac_try="$ac_link"
1985case "(($ac_try" in
1986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1987 *) ac_try_echo=$ac_try;;
1988esac
1989eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1990$as_echo "$ac_try_echo"; } >&5
1991 (eval "$ac_link") 2>conftest.err
1992 ac_status=$?
1993 if test -s conftest.err; then
1994 grep -v '^ *+' conftest.err >conftest.er1
1995 cat conftest.er1 >&5
1996 mv -f conftest.er1 conftest.err
1997 fi
1998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999 test $ac_status = 0; } && {
2000 test -z "$ac_cxx_werror_flag" ||
2001 test ! -s conftest.err
2002 } && test -s conftest$ac_exeext && {
2003 test "$cross_compiling" = yes ||
f00f02a3 2004 test -x conftest$ac_exeext
b710ec85 2005 }; then :
2006 ac_retval=0
2007else
2008 $as_echo "$as_me: failed program was:" >&5
2009sed 's/^/| /' conftest.$ac_ext >&5
2010
2011 ac_retval=1
2012fi
2013 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2014 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2015 # interfere with the next link command; also delete a directory that is
2016 # left behind by Apple's compiler. We do this before executing the actions.
2017 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
f00f02a3 2018 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2019 as_fn_set_status $ac_retval
b710ec85 2020
2021} # ac_fn_cxx_try_link
2022cat >config.log <<_ACEOF
2023This file contains any messages produced by compilers while
2024running configure, to aid debugging if configure makes a mistake.
2025
2026It was created by GNU Vtable Verification Runtime Library $as_me 1.0, which was
f00f02a3 2027generated by GNU Autoconf 2.69. Invocation command line was
b710ec85 2028
2029 $ $0 $@
2030
2031_ACEOF
2032exec 5>>config.log
2033{
2034cat <<_ASUNAME
2035## --------- ##
2036## Platform. ##
2037## --------- ##
2038
2039hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2040uname -m = `(uname -m) 2>/dev/null || echo unknown`
2041uname -r = `(uname -r) 2>/dev/null || echo unknown`
2042uname -s = `(uname -s) 2>/dev/null || echo unknown`
2043uname -v = `(uname -v) 2>/dev/null || echo unknown`
2044
2045/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2046/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2047
2048/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2049/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2050/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2051/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2052/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2053/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2054/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2055
2056_ASUNAME
2057
2058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2059for as_dir in $PATH
2060do
2061 IFS=$as_save_IFS
2062 test -z "$as_dir" && as_dir=.
2063 $as_echo "PATH: $as_dir"
2064 done
2065IFS=$as_save_IFS
2066
2067} >&5
2068
2069cat >&5 <<_ACEOF
2070
2071
2072## ----------- ##
2073## Core tests. ##
2074## ----------- ##
2075
2076_ACEOF
2077
2078
2079# Keep a trace of the command line.
2080# Strip out --no-create and --no-recursion so they do not pile up.
2081# Strip out --silent because we don't want to record it for future runs.
2082# Also quote any args containing shell meta-characters.
2083# Make two passes to allow for proper duplicate-argument suppression.
2084ac_configure_args=
2085ac_configure_args0=
2086ac_configure_args1=
2087ac_must_keep_next=false
2088for ac_pass in 1 2
2089do
2090 for ac_arg
2091 do
2092 case $ac_arg in
2093 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2095 | -silent | --silent | --silen | --sile | --sil)
2096 continue ;;
2097 *\'*)
2098 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2099 esac
2100 case $ac_pass in
2101 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2102 2)
2103 as_fn_append ac_configure_args1 " '$ac_arg'"
2104 if test $ac_must_keep_next = true; then
2105 ac_must_keep_next=false # Got value, back to normal.
2106 else
2107 case $ac_arg in
2108 *=* | --config-cache | -C | -disable-* | --disable-* \
2109 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2110 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2111 | -with-* | --with-* | -without-* | --without-* | --x)
2112 case "$ac_configure_args0 " in
2113 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2114 esac
2115 ;;
2116 -* ) ac_must_keep_next=true ;;
2117 esac
2118 fi
2119 as_fn_append ac_configure_args " '$ac_arg'"
2120 ;;
2121 esac
2122 done
2123done
2124{ ac_configure_args0=; unset ac_configure_args0;}
2125{ ac_configure_args1=; unset ac_configure_args1;}
2126
2127# When interrupted or exit'd, cleanup temporary files, and complete
2128# config.log. We remove comments because anyway the quotes in there
2129# would cause problems or look ugly.
2130# WARNING: Use '\'' to represent an apostrophe within the trap.
2131# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2132trap 'exit_status=$?
2133 # Save into config.log some information that might help in debugging.
2134 {
2135 echo
2136
f00f02a3 2137 $as_echo "## ---------------- ##
b710ec85 2138## Cache variables. ##
f00f02a3 2139## ---------------- ##"
b710ec85 2140 echo
2141 # The following way of writing the cache mishandles newlines in values,
2142(
2143 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2144 eval ac_val=\$$ac_var
2145 case $ac_val in #(
2146 *${as_nl}*)
2147 case $ac_var in #(
2148 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2149$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2150 esac
2151 case $ac_var in #(
2152 _ | IFS | as_nl) ;; #(
2153 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2154 *) { eval $ac_var=; unset $ac_var;} ;;
2155 esac ;;
2156 esac
2157 done
2158 (set) 2>&1 |
2159 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2160 *${as_nl}ac_space=\ *)
2161 sed -n \
2162 "s/'\''/'\''\\\\'\'''\''/g;
2163 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2164 ;; #(
2165 *)
2166 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2167 ;;
2168 esac |
2169 sort
2170)
2171 echo
2172
f00f02a3 2173 $as_echo "## ----------------- ##
b710ec85 2174## Output variables. ##
f00f02a3 2175## ----------------- ##"
b710ec85 2176 echo
2177 for ac_var in $ac_subst_vars
2178 do
2179 eval ac_val=\$$ac_var
2180 case $ac_val in
2181 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2182 esac
2183 $as_echo "$ac_var='\''$ac_val'\''"
2184 done | sort
2185 echo
2186
2187 if test -n "$ac_subst_files"; then
f00f02a3 2188 $as_echo "## ------------------- ##
b710ec85 2189## File substitutions. ##
f00f02a3 2190## ------------------- ##"
b710ec85 2191 echo
2192 for ac_var in $ac_subst_files
2193 do
2194 eval ac_val=\$$ac_var
2195 case $ac_val in
2196 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2197 esac
2198 $as_echo "$ac_var='\''$ac_val'\''"
2199 done | sort
2200 echo
2201 fi
2202
2203 if test -s confdefs.h; then
f00f02a3 2204 $as_echo "## ----------- ##
b710ec85 2205## confdefs.h. ##
f00f02a3 2206## ----------- ##"
b710ec85 2207 echo
2208 cat confdefs.h
2209 echo
2210 fi
2211 test "$ac_signal" != 0 &&
2212 $as_echo "$as_me: caught signal $ac_signal"
2213 $as_echo "$as_me: exit $exit_status"
2214 } >&5
2215 rm -f core *.core core.conftest.* &&
2216 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2217 exit $exit_status
2218' 0
2219for ac_signal in 1 2 13 15; do
2220 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2221done
2222ac_signal=0
2223
2224# confdefs.h avoids OS command line length limits that DEFS can exceed.
2225rm -f -r conftest* confdefs.h
2226
2227$as_echo "/* confdefs.h */" > confdefs.h
2228
2229# Predefined preprocessor variables.
2230
2231cat >>confdefs.h <<_ACEOF
2232#define PACKAGE_NAME "$PACKAGE_NAME"
2233_ACEOF
2234
2235cat >>confdefs.h <<_ACEOF
2236#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2237_ACEOF
2238
2239cat >>confdefs.h <<_ACEOF
2240#define PACKAGE_VERSION "$PACKAGE_VERSION"
2241_ACEOF
2242
2243cat >>confdefs.h <<_ACEOF
2244#define PACKAGE_STRING "$PACKAGE_STRING"
2245_ACEOF
2246
2247cat >>confdefs.h <<_ACEOF
2248#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2249_ACEOF
2250
2251cat >>confdefs.h <<_ACEOF
2252#define PACKAGE_URL "$PACKAGE_URL"
2253_ACEOF
2254
2255
2256# Let the site file select an alternate cache file if it wants to.
2257# Prefer an explicitly selected file to automatically selected ones.
2258ac_site_file1=NONE
2259ac_site_file2=NONE
2260if test -n "$CONFIG_SITE"; then
f00f02a3 2261 # We do not want a PATH search for config.site.
2262 case $CONFIG_SITE in #((
2263 -*) ac_site_file1=./$CONFIG_SITE;;
2264 */*) ac_site_file1=$CONFIG_SITE;;
2265 *) ac_site_file1=./$CONFIG_SITE;;
2266 esac
b710ec85 2267elif test "x$prefix" != xNONE; then
2268 ac_site_file1=$prefix/share/config.site
2269 ac_site_file2=$prefix/etc/config.site
2270else
2271 ac_site_file1=$ac_default_prefix/share/config.site
2272 ac_site_file2=$ac_default_prefix/etc/config.site
2273fi
2274for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2275do
2276 test "x$ac_site_file" = xNONE && continue
f00f02a3 2277 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
b710ec85 2278 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2279$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2280 sed 's/^/| /' "$ac_site_file" >&5
f00f02a3 2281 . "$ac_site_file" \
2282 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2283$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2284as_fn_error $? "failed to load site script $ac_site_file
2285See \`config.log' for more details" "$LINENO" 5; }
b710ec85 2286 fi
2287done
2288
2289if test -r "$cache_file"; then
f00f02a3 2290 # Some versions of bash will fail to source /dev/null (special files
2291 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2292 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
b710ec85 2293 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2294$as_echo "$as_me: loading cache $cache_file" >&6;}
2295 case $cache_file in
2296 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2297 *) . "./$cache_file";;
2298 esac
2299 fi
2300else
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2302$as_echo "$as_me: creating cache $cache_file" >&6;}
2303 >$cache_file
2304fi
2305
2306# Check that the precious variables saved in the cache have kept the same
2307# value.
2308ac_cache_corrupted=false
2309for ac_var in $ac_precious_vars; do
2310 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2311 eval ac_new_set=\$ac_env_${ac_var}_set
2312 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2313 eval ac_new_val=\$ac_env_${ac_var}_value
2314 case $ac_old_set,$ac_new_set in
2315 set,)
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2317$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2318 ac_cache_corrupted=: ;;
2319 ,set)
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2321$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2322 ac_cache_corrupted=: ;;
2323 ,);;
2324 *)
2325 if test "x$ac_old_val" != "x$ac_new_val"; then
2326 # differences in whitespace do not lead to failure.
2327 ac_old_val_w=`echo x $ac_old_val`
2328 ac_new_val_w=`echo x $ac_new_val`
2329 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2331$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2332 ac_cache_corrupted=:
2333 else
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2335$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2336 eval $ac_var=\$ac_old_val
2337 fi
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2339$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2341$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2342 fi;;
2343 esac
2344 # Pass precious variables to config.status.
2345 if test "$ac_new_set" = set; then
2346 case $ac_new_val in
2347 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2348 *) ac_arg=$ac_var=$ac_new_val ;;
2349 esac
2350 case " $ac_configure_args " in
2351 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2352 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2353 esac
2354 fi
2355done
2356if $ac_cache_corrupted; then
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2358$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2360$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
f00f02a3 2361 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
b710ec85 2362fi
2363## -------------------- ##
2364## Main body of script. ##
2365## -------------------- ##
2366
2367ac_ext=c
2368ac_cpp='$CPP $CPPFLAGS'
2369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2371ac_compiler_gnu=$ac_cv_c_compiler_gnu
2372
2373
2374
2375
2376
2377#AC_INIT(package-unused, version-unused, libvtv)
2378
2379
0344b437 2380# Default to --enable-multilib
2381# Check whether --enable-multilib was given.
2382if test "${enable_multilib+set}" = set; then :
2383 enableval=$enable_multilib; case "$enableval" in
2384 yes) multilib=yes ;;
2385 no) multilib=no ;;
f00f02a3 2386 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
0344b437 2387 esac
2388else
2389 multilib=yes
2390fi
2391
2392
2393# We may get other options which we leave undocumented:
2394# --with-target-subdir, --with-multisrctop, --with-multisubdir
2395# See config-ml.in if you want the gory details.
2396
2397if test "$srcdir" = "."; then
2398 if test "$with_target_subdir" != "."; then
2399 multi_basedir="$srcdir/$with_multisrctop../.."
2400 else
2401 multi_basedir="$srcdir/$with_multisrctop.."
2402 fi
2403else
2404 multi_basedir="$srcdir/.."
2405fi
2406
2407
2408# Even if the default multilib is not a cross compilation,
2409# it may be that some of the other multilibs are.
2410if test $cross_compiling = no && test $multilib = yes \
2411 && test "x${with_multisubdir}" != x ; then
2412 cross_compiling=maybe
2413fi
2414
2415ac_config_commands="$ac_config_commands default-1"
2416
2417
b710ec85 2418# -------
2419# Options
2420# -------
2421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2422$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2423# Check whether --enable-version-specific-runtime-libs was given.
2424if test "${enable_version_specific_runtime_libs+set}" = set; then :
2425 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2426 yes) version_specific_libs=yes ;;
2427 no) version_specific_libs=no ;;
f00f02a3 2428 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
b710ec85 2429 esac
2430else
2431 version_specific_libs=no
2432fi
2433
2434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2435$as_echo "$version_specific_libs" >&6; }
2436
2437# Do not delete or change the following two lines. For why, see
2438# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2439ac_aux_dir=
2440for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
f00f02a3 2441 if test -f "$ac_dir/install-sh"; then
2442 ac_aux_dir=$ac_dir
2443 ac_install_sh="$ac_aux_dir/install-sh -c"
2444 break
2445 elif test -f "$ac_dir/install.sh"; then
2446 ac_aux_dir=$ac_dir
2447 ac_install_sh="$ac_aux_dir/install.sh -c"
2448 break
2449 elif test -f "$ac_dir/shtool"; then
2450 ac_aux_dir=$ac_dir
2451 ac_install_sh="$ac_aux_dir/shtool install -c"
2452 break
2453 fi
b710ec85 2454done
2455if test -z "$ac_aux_dir"; then
f00f02a3 2456 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
b710ec85 2457fi
2458
2459# These three variables are undocumented and unsupported,
2460# and are intended to be withdrawn in a future Autoconf release.
2461# They can cause serious problems if a builder's source tree is in a directory
2462# whose full name contains unusual characters.
2463ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2464ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2465ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2466
2467
2468# Make sure we can run config.sub.
2469$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
f00f02a3 2470 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
b710ec85 2471
2472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2473$as_echo_n "checking build system type... " >&6; }
f00f02a3 2474if ${ac_cv_build+:} false; then :
b710ec85 2475 $as_echo_n "(cached) " >&6
2476else
2477 ac_build_alias=$build_alias
2478test "x$ac_build_alias" = x &&
2479 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2480test "x$ac_build_alias" = x &&
f00f02a3 2481 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
b710ec85 2482ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
f00f02a3 2483 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
b710ec85 2484
2485fi
2486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2487$as_echo "$ac_cv_build" >&6; }
2488case $ac_cv_build in
2489*-*-*) ;;
f00f02a3 2490*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
b710ec85 2491esac
2492build=$ac_cv_build
2493ac_save_IFS=$IFS; IFS='-'
2494set x $ac_cv_build
2495shift
2496build_cpu=$1
2497build_vendor=$2
2498shift; shift
2499# Remember, the first character of IFS is used to create $*,
2500# except with old shells:
2501build_os=$*
2502IFS=$ac_save_IFS
2503case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2504
2505
2506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2507$as_echo_n "checking host system type... " >&6; }
f00f02a3 2508if ${ac_cv_host+:} false; then :
b710ec85 2509 $as_echo_n "(cached) " >&6
2510else
2511 if test "x$host_alias" = x; then
2512 ac_cv_host=$ac_cv_build
2513else
2514 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
f00f02a3 2515 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
b710ec85 2516fi
2517
2518fi
2519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2520$as_echo "$ac_cv_host" >&6; }
2521case $ac_cv_host in
2522*-*-*) ;;
f00f02a3 2523*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
b710ec85 2524esac
2525host=$ac_cv_host
2526ac_save_IFS=$IFS; IFS='-'
2527set x $ac_cv_host
2528shift
2529host_cpu=$1
2530host_vendor=$2
2531shift; shift
2532# Remember, the first character of IFS is used to create $*,
2533# except with old shells:
2534host_os=$*
2535IFS=$ac_save_IFS
2536case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2537
2538
2539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2540$as_echo_n "checking target system type... " >&6; }
f00f02a3 2541if ${ac_cv_target+:} false; then :
b710ec85 2542 $as_echo_n "(cached) " >&6
2543else
2544 if test "x$target_alias" = x; then
2545 ac_cv_target=$ac_cv_host
2546else
2547 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
f00f02a3 2548 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
b710ec85 2549fi
2550
2551fi
2552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2553$as_echo "$ac_cv_target" >&6; }
2554case $ac_cv_target in
2555*-*-*) ;;
f00f02a3 2556*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
b710ec85 2557esac
2558target=$ac_cv_target
2559ac_save_IFS=$IFS; IFS='-'
2560set x $ac_cv_target
2561shift
2562target_cpu=$1
2563target_vendor=$2
2564shift; shift
2565# Remember, the first character of IFS is used to create $*,
2566# except with old shells:
2567target_os=$*
2568IFS=$ac_save_IFS
2569case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2570
2571
2572# The aliases save the names the user supplied, while $host etc.
2573# will get canonicalized.
2574test -n "$target_alias" &&
2575 test "$program_prefix$program_suffix$program_transform_name" = \
2576 NONENONEs,x,x, &&
2577 program_prefix=${target_alias}-
2578
2579target_alias=${target_alias-$host_alias}
2580
2581 case ${build_alias} in
2582 "") build_noncanonical=${build} ;;
2583 *) build_noncanonical=${build_alias} ;;
2584esac
2585
2586 case ${host_alias} in
2587 "") host_noncanonical=${build_noncanonical} ;;
2588 *) host_noncanonical=${host_alias} ;;
2589esac
2590
2591 case ${target_alias} in
2592 "") target_noncanonical=${host_noncanonical} ;;
2593 *) target_noncanonical=${target_alias} ;;
2594esac
2595
2596
2597
2598
2599
2600 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
2601 -I\$(top_builddir)/../libstdc++-v3/include \
2602 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
2603 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
2604 LIBSTDCXX_RAW_CXX_LDFLAGS="\
2605 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
2606
2607
2608
2609
f00f02a3 2610# Expand $ac_aux_dir to an absolute path.
2611am_aux_dir=`cd "$ac_aux_dir" && pwd`
2612
08de21a4 2613ac_ext=c
2614ac_cpp='$CPP $CPPFLAGS'
2615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2617ac_compiler_gnu=$ac_cv_c_compiler_gnu
2618if test -n "$ac_tool_prefix"; then
2619 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2620set dummy ${ac_tool_prefix}gcc; ac_word=$2
2621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2622$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 2623if ${ac_cv_prog_CC+:} false; then :
08de21a4 2624 $as_echo_n "(cached) " >&6
825de484 2625else
08de21a4 2626 if test -n "$CC"; then
2627 ac_cv_prog_CC="$CC" # Let the user override the test.
2628else
2629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630for as_dir in $PATH
2631do
2632 IFS=$as_save_IFS
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 2635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
08de21a4 2636 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2638 break 2
825de484 2639 fi
08de21a4 2640done
2641 done
2642IFS=$as_save_IFS
2643
0e211649 2644fi
08de21a4 2645fi
2646CC=$ac_cv_prog_CC
2647if test -n "$CC"; then
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2649$as_echo "$CC" >&6; }
825de484 2650else
08de21a4 2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2652$as_echo "no" >&6; }
825de484 2653fi
2654
0e211649 2655
08de21a4 2656fi
2657if test -z "$ac_cv_prog_CC"; then
2658 ac_ct_CC=$CC
2659 # Extract the first word of "gcc", so it can be a program name with args.
2660set dummy gcc; ac_word=$2
2661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2662$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 2663if ${ac_cv_prog_ac_ct_CC+:} false; then :
b710ec85 2664 $as_echo_n "(cached) " >&6
2665else
08de21a4 2666 if test -n "$ac_ct_CC"; then
2667 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2668else
2669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b710ec85 2670for as_dir in $PATH
2671do
2672 IFS=$as_save_IFS
2673 test -z "$as_dir" && as_dir=.
08de21a4 2674 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 2675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
08de21a4 2676 ac_cv_prog_ac_ct_CC="gcc"
2677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2678 break 2
2679 fi
2680done
b710ec85 2681 done
2682IFS=$as_save_IFS
2683
b710ec85 2684fi
08de21a4 2685fi
2686ac_ct_CC=$ac_cv_prog_ac_ct_CC
2687if test -n "$ac_ct_CC"; then
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2689$as_echo "$ac_ct_CC" >&6; }
2690else
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2692$as_echo "no" >&6; }
2693fi
2694
2695 if test "x$ac_ct_CC" = x; then
2696 CC=""
b710ec85 2697 else
08de21a4 2698 case $cross_compiling:$ac_tool_warned in
2699yes:)
2700{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2701$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2702ac_tool_warned=yes ;;
2703esac
2704 CC=$ac_ct_CC
b710ec85 2705 fi
08de21a4 2706else
2707 CC="$ac_cv_prog_CC"
b710ec85 2708fi
b710ec85 2709
08de21a4 2710if test -z "$CC"; then
2711 if test -n "$ac_tool_prefix"; then
2712 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2713set dummy ${ac_tool_prefix}cc; ac_word=$2
b710ec85 2714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 2716if ${ac_cv_prog_CC+:} false; then :
b710ec85 2717 $as_echo_n "(cached) " >&6
2718else
08de21a4 2719 if test -n "$CC"; then
2720 ac_cv_prog_CC="$CC" # Let the user override the test.
b710ec85 2721else
2722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723for as_dir in $PATH
2724do
2725 IFS=$as_save_IFS
2726 test -z "$as_dir" && as_dir=.
2727 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 2728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
08de21a4 2729 ac_cv_prog_CC="${ac_tool_prefix}cc"
b710ec85 2730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2731 break 2
2732 fi
2733done
2734 done
2735IFS=$as_save_IFS
2736
2737fi
2738fi
08de21a4 2739CC=$ac_cv_prog_CC
2740if test -n "$CC"; then
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2742$as_echo "$CC" >&6; }
b710ec85 2743else
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745$as_echo "no" >&6; }
2746fi
2747
2748
08de21a4 2749 fi
b710ec85 2750fi
08de21a4 2751if test -z "$CC"; then
2752 # Extract the first word of "cc", so it can be a program name with args.
2753set dummy cc; ac_word=$2
b710ec85 2754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2755$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 2756if ${ac_cv_prog_CC+:} false; then :
b710ec85 2757 $as_echo_n "(cached) " >&6
2758else
08de21a4 2759 if test -n "$CC"; then
2760 ac_cv_prog_CC="$CC" # Let the user override the test.
b710ec85 2761else
08de21a4 2762 ac_prog_rejected=no
b710ec85 2763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764for as_dir in $PATH
2765do
2766 IFS=$as_save_IFS
2767 test -z "$as_dir" && as_dir=.
2768 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 2769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
08de21a4 2770 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2771 ac_prog_rejected=yes
2772 continue
2773 fi
2774 ac_cv_prog_CC="cc"
b710ec85 2775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2776 break 2
2777 fi
2778done
2779 done
2780IFS=$as_save_IFS
2781
08de21a4 2782if test $ac_prog_rejected = yes; then
2783 # We found a bogon in the path, so make sure we never use it.
2784 set dummy $ac_cv_prog_CC
2785 shift
2786 if test $# != 0; then
2787 # We chose a different compiler from the bogus one.
2788 # However, it has the same basename, so the bogon will be chosen
2789 # first if we set CC to just the basename; use the full file name.
2790 shift
2791 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2792 fi
b710ec85 2793fi
2794fi
08de21a4 2795fi
2796CC=$ac_cv_prog_CC
2797if test -n "$CC"; then
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2799$as_echo "$CC" >&6; }
b710ec85 2800else
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802$as_echo "no" >&6; }
2803fi
2804
b710ec85 2805
2806fi
08de21a4 2807if test -z "$CC"; then
2808 if test -n "$ac_tool_prefix"; then
2809 for ac_prog in cl.exe
2810 do
2811 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2812set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 2815if ${ac_cv_prog_CC+:} false; then :
b710ec85 2816 $as_echo_n "(cached) " >&6
2817else
08de21a4 2818 if test -n "$CC"; then
2819 ac_cv_prog_CC="$CC" # Let the user override the test.
2820else
2821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822for as_dir in $PATH
b710ec85 2823do
2824 IFS=$as_save_IFS
2825 test -z "$as_dir" && as_dir=.
08de21a4 2826 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 2827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
08de21a4 2828 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 break 2
2831 fi
2832done
b710ec85 2833 done
2834IFS=$as_save_IFS
2835
2836fi
b710ec85 2837fi
08de21a4 2838CC=$ac_cv_prog_CC
2839if test -n "$CC"; then
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2841$as_echo "$CC" >&6; }
2842else
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844$as_echo "no" >&6; }
2845fi
b710ec85 2846
b710ec85 2847
08de21a4 2848 test -n "$CC" && break
2849 done
2850fi
2851if test -z "$CC"; then
2852 ac_ct_CC=$CC
2853 for ac_prog in cl.exe
b710ec85 2854do
2855 # Extract the first word of "$ac_prog", so it can be a program name with args.
2856set dummy $ac_prog; ac_word=$2
2857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 2859if ${ac_cv_prog_ac_ct_CC+:} false; then :
b710ec85 2860 $as_echo_n "(cached) " >&6
2861else
08de21a4 2862 if test -n "$ac_ct_CC"; then
2863 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b710ec85 2864else
2865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866for as_dir in $PATH
2867do
2868 IFS=$as_save_IFS
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 2871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
08de21a4 2872 ac_cv_prog_ac_ct_CC="$ac_prog"
b710ec85 2873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2874 break 2
2875 fi
2876done
2877 done
2878IFS=$as_save_IFS
2879
2880fi
2881fi
08de21a4 2882ac_ct_CC=$ac_cv_prog_ac_ct_CC
2883if test -n "$ac_ct_CC"; then
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2885$as_echo "$ac_ct_CC" >&6; }
b710ec85 2886else
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888$as_echo "no" >&6; }
2889fi
2890
2891
08de21a4 2892 test -n "$ac_ct_CC" && break
b710ec85 2893done
2894
08de21a4 2895 if test "x$ac_ct_CC" = x; then
2896 CC=""
2897 else
2898 case $cross_compiling:$ac_tool_warned in
2899yes:)
2900{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2901$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2902ac_tool_warned=yes ;;
b710ec85 2903esac
08de21a4 2904 CC=$ac_ct_CC
b710ec85 2905 fi
2906fi
2907
b710ec85 2908fi
2909
2910
08de21a4 2911test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2912$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 2913as_fn_error $? "no acceptable C compiler found in \$PATH
2914See \`config.log' for more details" "$LINENO" 5; }
b710ec85 2915
08de21a4 2916# Provide some information about the compiler.
2917$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2918set X $ac_compile
2919ac_compiler=$2
2920for ac_option in --version -v -V -qversion; do
2921 { { ac_try="$ac_compiler $ac_option >&5"
2922case "(($ac_try" in
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2925esac
2926eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2927$as_echo "$ac_try_echo"; } >&5
2928 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2929 ac_status=$?
2930 if test -s conftest.err; then
2931 sed '10a\
2932... rest of stderr output deleted ...
2933 10q' conftest.err >conftest.er1
2934 cat conftest.er1 >&5
08de21a4 2935 fi
f00f02a3 2936 rm -f conftest.er1 conftest.err
08de21a4 2937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2938 test $ac_status = 0; }
2939done
b710ec85 2940
08de21a4 2941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2942/* end confdefs.h. */
b710ec85 2943
08de21a4 2944int
2945main ()
2946{
b710ec85 2947
08de21a4 2948 ;
2949 return 0;
2950}
b710ec85 2951_ACEOF
08de21a4 2952ac_clean_files_save=$ac_clean_files
f00f02a3 2953ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
08de21a4 2954# Try to create an executable without -o first, disregard a.out.
2955# It will help us diagnose broken compilers, and finding out an intuition
2956# of exeext.
f00f02a3 2957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2958$as_echo_n "checking whether the C compiler works... " >&6; }
08de21a4 2959ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
b710ec85 2960
08de21a4 2961# The possible output files:
2962ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
b710ec85 2963
08de21a4 2964ac_rmfiles=
2965for ac_file in $ac_files
2966do
2967 case $ac_file in
2968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2969 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2970 esac
2971done
2972rm -f $ac_rmfiles
b710ec85 2973
08de21a4 2974if { { ac_try="$ac_link_default"
2975case "(($ac_try" in
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2978esac
2979eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2980$as_echo "$ac_try_echo"; } >&5
2981 (eval "$ac_link_default") 2>&5
2982 ac_status=$?
2983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2984 test $ac_status = 0; }; then :
2985 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2986# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2987# in a Makefile. We should not override ac_cv_exeext if it was cached,
2988# so that the user can short-circuit this test for compilers unknown to
2989# Autoconf.
2990for ac_file in $ac_files ''
2991do
2992 test -f "$ac_file" || continue
2993 case $ac_file in
2994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2995 ;;
2996 [ab].out )
2997 # We found the default executable, but exeext='' is most
2998 # certainly right.
2999 break;;
3000 *.* )
3001 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3002 then :; else
3003 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3004 fi
3005 # We set ac_cv_exeext here because the later test for it is not
3006 # safe: cross compilers may not add the suffix if given an `-o'
3007 # argument, so we may need to know it at that point already.
3008 # Even if this section looks crufty: it has the advantage of
3009 # actually working.
3010 break;;
3011 * )
3012 break;;
3013 esac
3014done
3015test "$ac_cv_exeext" = no && ac_cv_exeext=
b710ec85 3016
b710ec85 3017else
08de21a4 3018 ac_file=''
b710ec85 3019fi
08de21a4 3020if test -z "$ac_file"; then :
f00f02a3 3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022$as_echo "no" >&6; }
3023$as_echo "$as_me: failed program was:" >&5
08de21a4 3024sed 's/^/| /' conftest.$ac_ext >&5
b710ec85 3025
08de21a4 3026{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3027$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 3028as_fn_error 77 "C compiler cannot create executables
3029See \`config.log' for more details" "$LINENO" 5; }
3030else
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3032$as_echo "yes" >&6; }
08de21a4 3033fi
f00f02a3 3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3035$as_echo_n "checking for C compiler default output file name... " >&6; }
3036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3037$as_echo "$ac_file" >&6; }
08de21a4 3038ac_exeext=$ac_cv_exeext
b710ec85 3039
f00f02a3 3040rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
08de21a4 3041ac_clean_files=$ac_clean_files_save
08de21a4 3042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3043$as_echo_n "checking for suffix of executables... " >&6; }
3044if { { ac_try="$ac_link"
3045case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3048esac
3049eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3050$as_echo "$ac_try_echo"; } >&5
3051 (eval "$ac_link") 2>&5
3052 ac_status=$?
3053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3054 test $ac_status = 0; }; then :
3055 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3056# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3057# work properly (i.e., refer to `conftest.exe'), while it won't with
3058# `rm'.
3059for ac_file in conftest.exe conftest conftest.*; do
3060 test -f "$ac_file" || continue
3061 case $ac_file in
3062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3063 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3064 break;;
3065 * ) break;;
3066 esac
3067done
3068else
3069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3070$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 3071as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3072See \`config.log' for more details" "$LINENO" 5; }
b710ec85 3073fi
f00f02a3 3074rm -f conftest conftest$ac_cv_exeext
08de21a4 3075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3076$as_echo "$ac_cv_exeext" >&6; }
b710ec85 3077
08de21a4 3078rm -f conftest.$ac_ext
3079EXEEXT=$ac_cv_exeext
3080ac_exeext=$EXEEXT
f00f02a3 3081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3082/* end confdefs.h. */
3083#include <stdio.h>
3084int
3085main ()
3086{
3087FILE *f = fopen ("conftest.out", "w");
3088 return ferror (f) || fclose (f) != 0;
3089
3090 ;
3091 return 0;
3092}
3093_ACEOF
3094ac_clean_files="$ac_clean_files conftest.out"
3095# Check that the compiler produces executables we can run. If not, either
3096# the compiler is broken, or we cross compile.
3097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3098$as_echo_n "checking whether we are cross compiling... " >&6; }
3099if test "$cross_compiling" != yes; then
3100 { { ac_try="$ac_link"
3101case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3104esac
3105eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3106$as_echo "$ac_try_echo"; } >&5
3107 (eval "$ac_link") 2>&5
3108 ac_status=$?
3109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3110 test $ac_status = 0; }
3111 if { ac_try='./conftest$ac_cv_exeext'
3112 { { case "(($ac_try" in
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3115esac
3116eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3117$as_echo "$ac_try_echo"; } >&5
3118 (eval "$ac_try") 2>&5
3119 ac_status=$?
3120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3121 test $ac_status = 0; }; }; then
3122 cross_compiling=no
3123 else
3124 if test "$cross_compiling" = maybe; then
3125 cross_compiling=yes
3126 else
3127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3128$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3129as_fn_error $? "cannot run C compiled programs.
3130If you meant to cross compile, use \`--host'.
3131See \`config.log' for more details" "$LINENO" 5; }
3132 fi
3133 fi
3134fi
3135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3136$as_echo "$cross_compiling" >&6; }
3137
3138rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3139ac_clean_files=$ac_clean_files_save
08de21a4 3140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3141$as_echo_n "checking for suffix of object files... " >&6; }
f00f02a3 3142if ${ac_cv_objext+:} false; then :
08de21a4 3143 $as_echo_n "(cached) " >&6
3144else
3145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3146/* end confdefs.h. */
b710ec85 3147
08de21a4 3148int
3149main ()
3150{
b710ec85 3151
08de21a4 3152 ;
3153 return 0;
3154}
3155_ACEOF
3156rm -f conftest.o conftest.obj
3157if { { ac_try="$ac_compile"
3158case "(($ac_try" in
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3161esac
3162eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163$as_echo "$ac_try_echo"; } >&5
3164 (eval "$ac_compile") 2>&5
3165 ac_status=$?
3166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167 test $ac_status = 0; }; then :
3168 for ac_file in conftest.o conftest.obj conftest.*; do
3169 test -f "$ac_file" || continue;
3170 case $ac_file in
3171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3172 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3173 break;;
3174 esac
3175done
b710ec85 3176else
08de21a4 3177 $as_echo "$as_me: failed program was:" >&5
3178sed 's/^/| /' conftest.$ac_ext >&5
3179
3180{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 3182as_fn_error $? "cannot compute suffix of object files: cannot compile
3183See \`config.log' for more details" "$LINENO" 5; }
b710ec85 3184fi
08de21a4 3185rm -f conftest.$ac_cv_objext conftest.$ac_ext
3186fi
3187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3188$as_echo "$ac_cv_objext" >&6; }
3189OBJEXT=$ac_cv_objext
3190ac_objext=$OBJEXT
3191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3192$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
f00f02a3 3193if ${ac_cv_c_compiler_gnu+:} false; then :
08de21a4 3194 $as_echo_n "(cached) " >&6
3195else
3196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197/* end confdefs.h. */
b710ec85 3198
08de21a4 3199int
3200main ()
3201{
3202#ifndef __GNUC__
3203 choke me
3204#endif
3205
3206 ;
3207 return 0;
3208}
3209_ACEOF
3210if ac_fn_c_try_compile "$LINENO"; then :
3211 ac_compiler_gnu=yes
b710ec85 3212else
08de21a4 3213 ac_compiler_gnu=no
b710ec85 3214fi
08de21a4 3215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3216ac_cv_c_compiler_gnu=$ac_compiler_gnu
b710ec85 3217
08de21a4 3218fi
3219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3220$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3221if test $ac_compiler_gnu = yes; then
3222 GCC=yes
3223else
3224 GCC=
3225fi
3226ac_test_CFLAGS=${CFLAGS+set}
3227ac_save_CFLAGS=$CFLAGS
3228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3229$as_echo_n "checking whether $CC accepts -g... " >&6; }
f00f02a3 3230if ${ac_cv_prog_cc_g+:} false; then :
08de21a4 3231 $as_echo_n "(cached) " >&6
3232else
3233 ac_save_c_werror_flag=$ac_c_werror_flag
3234 ac_c_werror_flag=yes
3235 ac_cv_prog_cc_g=no
3236 CFLAGS="-g"
3237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3238/* end confdefs.h. */
b710ec85 3239
08de21a4 3240int
3241main ()
3242{
b710ec85 3243
08de21a4 3244 ;
3245 return 0;
3246}
3247_ACEOF
3248if ac_fn_c_try_compile "$LINENO"; then :
3249 ac_cv_prog_cc_g=yes
3250else
3251 CFLAGS=""
3252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253/* end confdefs.h. */
0adca056 3254
08de21a4 3255int
3256main ()
3257{
0adca056 3258
08de21a4 3259 ;
3260 return 0;
3261}
3262_ACEOF
3263if ac_fn_c_try_compile "$LINENO"; then :
0adca056 3264
08de21a4 3265else
3266 ac_c_werror_flag=$ac_save_c_werror_flag
3267 CFLAGS="-g"
3268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269/* end confdefs.h. */
0adca056 3270
08de21a4 3271int
3272main ()
3273{
0adca056 3274
08de21a4 3275 ;
3276 return 0;
3277}
3278_ACEOF
3279if ac_fn_c_try_compile "$LINENO"; then :
3280 ac_cv_prog_cc_g=yes
3281fi
3282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3283fi
3284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3285fi
3286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3287 ac_c_werror_flag=$ac_save_c_werror_flag
3288fi
3289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3290$as_echo "$ac_cv_prog_cc_g" >&6; }
3291if test "$ac_test_CFLAGS" = set; then
3292 CFLAGS=$ac_save_CFLAGS
3293elif test $ac_cv_prog_cc_g = yes; then
3294 if test "$GCC" = yes; then
3295 CFLAGS="-g -O2"
3296 else
3297 CFLAGS="-g"
3298 fi
3299else
3300 if test "$GCC" = yes; then
3301 CFLAGS="-O2"
3302 else
3303 CFLAGS=
3304 fi
3305fi
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3307$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
f00f02a3 3308if ${ac_cv_prog_cc_c89+:} false; then :
08de21a4 3309 $as_echo_n "(cached) " >&6
3310else
3311 ac_cv_prog_cc_c89=no
3312ac_save_CC=$CC
3313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314/* end confdefs.h. */
3315#include <stdarg.h>
3316#include <stdio.h>
f00f02a3 3317struct stat;
08de21a4 3318/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3319struct buf { int x; };
3320FILE * (*rcsopen) (struct buf *, struct stat *, int);
3321static char *e (p, i)
3322 char **p;
3323 int i;
3324{
3325 return p[i];
3326}
3327static char *f (char * (*g) (char **, int), char **p, ...)
3328{
3329 char *s;
3330 va_list v;
3331 va_start (v,p);
3332 s = g (p, va_arg (v,int));
3333 va_end (v);
3334 return s;
3335}
0adca056 3336
08de21a4 3337/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3338 function prototypes and stuff, but not '\xHH' hex character constants.
3339 These don't provoke an error unfortunately, instead are silently treated
3340 as 'x'. The following induces an error, until -std is added to get
3341 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3342 array size at least. It's necessary to write '\x00'==0 to get something
3343 that's true only with -std. */
3344int osf4_cc_array ['\x00' == 0 ? 1 : -1];
0adca056 3345
08de21a4 3346/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3347 inside strings and character constants. */
3348#define FOO(x) 'x'
3349int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
0adca056 3350
08de21a4 3351int test (int i, double x);
3352struct s1 {int (*f) (int a);};
3353struct s2 {int (*f) (double a);};
3354int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3355int argc;
3356char **argv;
3357int
3358main ()
3359{
3360return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3361 ;
3362 return 0;
3363}
3364_ACEOF
3365for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3366 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3367do
3368 CC="$ac_save_CC $ac_arg"
3369 if ac_fn_c_try_compile "$LINENO"; then :
3370 ac_cv_prog_cc_c89=$ac_arg
83628c60 3371fi
08de21a4 3372rm -f core conftest.err conftest.$ac_objext
3373 test "x$ac_cv_prog_cc_c89" != "xno" && break
3374done
3375rm -f conftest.$ac_ext
3376CC=$ac_save_CC
83628c60 3377
83628c60 3378fi
08de21a4 3379# AC_CACHE_VAL
3380case "x$ac_cv_prog_cc_c89" in
3381 x)
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3383$as_echo "none needed" >&6; } ;;
3384 xno)
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3386$as_echo "unsupported" >&6; } ;;
3387 *)
3388 CC="$CC $ac_cv_prog_cc_c89"
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3390$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3391esac
3392if test "x$ac_cv_prog_cc_c89" != xno; then :
83628c60 3393
83628c60 3394fi
3395
08de21a4 3396ac_ext=c
3397ac_cpp='$CPP $CPPFLAGS'
3398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3400ac_compiler_gnu=$ac_cv_c_compiler_gnu
3401
f00f02a3 3402ac_ext=c
3403ac_cpp='$CPP $CPPFLAGS'
3404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3406ac_compiler_gnu=$ac_cv_c_compiler_gnu
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3408$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3409if ${am_cv_prog_cc_c_o+:} false; then :
3410 $as_echo_n "(cached) " >&6
3411else
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413/* end confdefs.h. */
3414
3415int
3416main ()
3417{
3418
3419 ;
3420 return 0;
3421}
3422_ACEOF
3423 # Make sure it works both with $CC and with simple cc.
3424 # Following AC_PROG_CC_C_O, we do the test twice because some
3425 # compilers refuse to overwrite an existing .o file with -o,
3426 # though they will create one.
3427 am_cv_prog_cc_c_o=yes
3428 for am_i in 1 2; do
3429 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3430 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3431 ac_status=$?
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } \
3434 && test -f conftest2.$ac_objext; then
3435 : OK
3436 else
3437 am_cv_prog_cc_c_o=no
3438 break
3439 fi
3440 done
3441 rm -f core conftest*
3442 unset am_i
3443fi
3444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3445$as_echo "$am_cv_prog_cc_c_o" >&6; }
3446if test "$am_cv_prog_cc_c_o" != yes; then
3447 # Losing compiler, so override with the script.
3448 # FIXME: It is wrong to rewrite CC.
3449 # But if we don't then we get into trouble of one sort or another.
3450 # A longer-term fix would be to have automake use am__CC in this case,
3451 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3452 CC="$am_aux_dir/compile $CC"
3453fi
3454ac_ext=c
3455ac_cpp='$CPP $CPPFLAGS'
3456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458ac_compiler_gnu=$ac_cv_c_compiler_gnu
3459
3460
83628c60 3461
3462ac_ext=c
3463ac_cpp='$CPP $CPPFLAGS'
3464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466ac_compiler_gnu=$ac_cv_c_compiler_gnu
08de21a4 3467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3468$as_echo_n "checking how to run the C preprocessor... " >&6; }
3469# On Suns, sometimes $CPP names a directory.
3470if test -n "$CPP" && test -d "$CPP"; then
3471 CPP=
3472fi
3473if test -z "$CPP"; then
f00f02a3 3474 if ${ac_cv_prog_CPP+:} false; then :
83628c60 3475 $as_echo_n "(cached) " >&6
3476else
08de21a4 3477 # Double quotes because CPP needs to be expanded
3478 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3479 do
3480 ac_preproc_ok=false
3481for ac_c_preproc_warn_flag in '' yes
b710ec85 3482do
08de21a4 3483 # Use a header file that comes with gcc, so configuring glibc
3484 # with a fresh cross-compiler works.
3485 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3486 # <limits.h> exists even on freestanding compilers.
3487 # On the NeXT, cc -E runs the code through the compiler's parser,
3488 # not just through cpp. "Syntax error" is here to catch this case.
3489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490/* end confdefs.h. */
3491#ifdef __STDC__
3492# include <limits.h>
3493#else
3494# include <assert.h>
3495#endif
3496 Syntax error
3497_ACEOF
3498if ac_fn_c_try_cpp "$LINENO"; then :
b710ec85 3499
b710ec85 3500else
08de21a4 3501 # Broken: fails on valid input.
3502continue
b710ec85 3503fi
f00f02a3 3504rm -f conftest.err conftest.i conftest.$ac_ext
b710ec85 3505
08de21a4 3506 # OK, works on sane cases. Now check whether nonexistent headers
3507 # can be detected and how.
3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509/* end confdefs.h. */
3510#include <ac_nonexistent.h>
3511_ACEOF
3512if ac_fn_c_try_cpp "$LINENO"; then :
3513 # Broken: success on invalid input.
3514continue
b710ec85 3515else
08de21a4 3516 # Passes both tests.
3517ac_preproc_ok=:
3518break
3519fi
f00f02a3 3520rm -f conftest.err conftest.i conftest.$ac_ext
b710ec85 3521
08de21a4 3522done
3523# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
f00f02a3 3524rm -f conftest.i conftest.err conftest.$ac_ext
08de21a4 3525if $ac_preproc_ok; then :
3526 break
b710ec85 3527fi
08de21a4 3528
3529 done
3530 ac_cv_prog_CPP=$CPP
3531
b710ec85 3532fi
08de21a4 3533 CPP=$ac_cv_prog_CPP
b710ec85 3534else
08de21a4 3535 ac_cv_prog_CPP=$CPP
b710ec85 3536fi
08de21a4 3537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3538$as_echo "$CPP" >&6; }
3539ac_preproc_ok=false
3540for ac_c_preproc_warn_flag in '' yes
3541do
3542 # Use a header file that comes with gcc, so configuring glibc
3543 # with a fresh cross-compiler works.
3544 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3545 # <limits.h> exists even on freestanding compilers.
3546 # On the NeXT, cc -E runs the code through the compiler's parser,
3547 # not just through cpp. "Syntax error" is here to catch this case.
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549/* end confdefs.h. */
3550#ifdef __STDC__
3551# include <limits.h>
3552#else
3553# include <assert.h>
3554#endif
3555 Syntax error
3556_ACEOF
3557if ac_fn_c_try_cpp "$LINENO"; then :
3558
b710ec85 3559else
08de21a4 3560 # Broken: fails on valid input.
3561continue
b710ec85 3562fi
f00f02a3 3563rm -f conftest.err conftest.i conftest.$ac_ext
b710ec85 3564
08de21a4 3565 # OK, works on sane cases. Now check whether nonexistent headers
3566 # can be detected and how.
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568/* end confdefs.h. */
3569#include <ac_nonexistent.h>
3570_ACEOF
3571if ac_fn_c_try_cpp "$LINENO"; then :
3572 # Broken: success on invalid input.
3573continue
b710ec85 3574else
08de21a4 3575 # Passes both tests.
3576ac_preproc_ok=:
3577break
3578fi
f00f02a3 3579rm -f conftest.err conftest.i conftest.$ac_ext
08de21a4 3580
b710ec85 3581done
08de21a4 3582# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
f00f02a3 3583rm -f conftest.i conftest.err conftest.$ac_ext
08de21a4 3584if $ac_preproc_ok; then :
b710ec85 3585
b710ec85 3586else
08de21a4 3587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 3589as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3590See \`config.log' for more details" "$LINENO" 5; }
b710ec85 3591fi
3592
08de21a4 3593ac_ext=c
3594ac_cpp='$CPP $CPPFLAGS'
3595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3597ac_compiler_gnu=$ac_cv_c_compiler_gnu
3598
b710ec85 3599
08de21a4 3600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3601$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
f00f02a3 3602if ${ac_cv_path_GREP+:} false; then :
b710ec85 3603 $as_echo_n "(cached) " >&6
3604else
08de21a4 3605 if test -z "$GREP"; then
3606 ac_path_GREP_found=false
3607 # Loop through the user's path and test for each of PROGNAME-LIST
3608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
b710ec85 3610do
3611 IFS=$as_save_IFS
3612 test -z "$as_dir" && as_dir=.
08de21a4 3613 for ac_prog in grep ggrep; do
b710ec85 3614 for ac_exec_ext in '' $ac_executable_extensions; do
08de21a4 3615 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
f00f02a3 3616 as_fn_executable_p "$ac_path_GREP" || continue
08de21a4 3617# Check for GNU ac_path_GREP and select it if it is found.
3618 # Check for GNU $ac_path_GREP
3619case `"$ac_path_GREP" --version 2>&1` in
3620*GNU*)
3621 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3622*)
3623 ac_count=0
3624 $as_echo_n 0123456789 >"conftest.in"
3625 while :
3626 do
3627 cat "conftest.in" "conftest.in" >"conftest.tmp"
3628 mv "conftest.tmp" "conftest.in"
3629 cp "conftest.in" "conftest.nl"
3630 $as_echo 'GREP' >> "conftest.nl"
3631 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3632 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3633 as_fn_arith $ac_count + 1 && ac_count=$as_val
3634 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3635 # Best one so far, save it but keep looking for a better one
3636 ac_cv_path_GREP="$ac_path_GREP"
3637 ac_path_GREP_max=$ac_count
3638 fi
3639 # 10*(2^10) chars as input seems more than enough
3640 test $ac_count -gt 10 && break
b710ec85 3641 done
08de21a4 3642 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3643esac
b710ec85 3644
08de21a4 3645 $ac_path_GREP_found && break 3
3646 done
3647 done
3648 done
3649IFS=$as_save_IFS
3650 if test -z "$ac_cv_path_GREP"; then
f00f02a3 3651 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
b710ec85 3652 fi
b710ec85 3653else
08de21a4 3654 ac_cv_path_GREP=$GREP
b710ec85 3655fi
3656
b710ec85 3657fi
08de21a4 3658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3659$as_echo "$ac_cv_path_GREP" >&6; }
3660 GREP="$ac_cv_path_GREP"
3661
3662
3663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3664$as_echo_n "checking for egrep... " >&6; }
f00f02a3 3665if ${ac_cv_path_EGREP+:} false; then :
b710ec85 3666 $as_echo_n "(cached) " >&6
3667else
08de21a4 3668 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3669 then ac_cv_path_EGREP="$GREP -E"
3670 else
3671 if test -z "$EGREP"; then
3672 ac_path_EGREP_found=false
3673 # Loop through the user's path and test for each of PROGNAME-LIST
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
b710ec85 3676do
3677 IFS=$as_save_IFS
3678 test -z "$as_dir" && as_dir=.
08de21a4 3679 for ac_prog in egrep; do
b710ec85 3680 for ac_exec_ext in '' $ac_executable_extensions; do
08de21a4 3681 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
f00f02a3 3682 as_fn_executable_p "$ac_path_EGREP" || continue
08de21a4 3683# Check for GNU ac_path_EGREP and select it if it is found.
3684 # Check for GNU $ac_path_EGREP
3685case `"$ac_path_EGREP" --version 2>&1` in
3686*GNU*)
3687 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3688*)
3689 ac_count=0
3690 $as_echo_n 0123456789 >"conftest.in"
3691 while :
3692 do
3693 cat "conftest.in" "conftest.in" >"conftest.tmp"
3694 mv "conftest.tmp" "conftest.in"
3695 cp "conftest.in" "conftest.nl"
3696 $as_echo 'EGREP' >> "conftest.nl"
3697 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3698 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3699 as_fn_arith $ac_count + 1 && ac_count=$as_val
3700 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3701 # Best one so far, save it but keep looking for a better one
3702 ac_cv_path_EGREP="$ac_path_EGREP"
3703 ac_path_EGREP_max=$ac_count
3704 fi
3705 # 10*(2^10) chars as input seems more than enough
3706 test $ac_count -gt 10 && break
b710ec85 3707 done
08de21a4 3708 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3709esac
b710ec85 3710
08de21a4 3711 $ac_path_EGREP_found && break 3
3712 done
3713 done
3714 done
3715IFS=$as_save_IFS
3716 if test -z "$ac_cv_path_EGREP"; then
f00f02a3 3717 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
08de21a4 3718 fi
b710ec85 3719else
08de21a4 3720 ac_cv_path_EGREP=$EGREP
b710ec85 3721fi
3722
08de21a4 3723 fi
b710ec85 3724fi
08de21a4 3725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3726$as_echo "$ac_cv_path_EGREP" >&6; }
3727 EGREP="$ac_cv_path_EGREP"
3728
3729
3730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3731$as_echo_n "checking for ANSI C header files... " >&6; }
f00f02a3 3732if ${ac_cv_header_stdc+:} false; then :
b710ec85 3733 $as_echo_n "(cached) " >&6
3734else
08de21a4 3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736/* end confdefs.h. */
3737#include <stdlib.h>
3738#include <stdarg.h>
3739#include <string.h>
3740#include <float.h>
3741
3742int
3743main ()
3744{
3745
3746 ;
3747 return 0;
3748}
3749_ACEOF
3750if ac_fn_c_try_compile "$LINENO"; then :
3751 ac_cv_header_stdc=yes
b710ec85 3752else
08de21a4 3753 ac_cv_header_stdc=no
3754fi
3755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3756
3757if test $ac_cv_header_stdc = yes; then
3758 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760/* end confdefs.h. */
3761#include <string.h>
3762
3763_ACEOF
3764if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3765 $EGREP "memchr" >/dev/null 2>&1; then :
b710ec85 3766
08de21a4 3767else
3768 ac_cv_header_stdc=no
b710ec85 3769fi
08de21a4 3770rm -f conftest*
3771
b710ec85 3772fi
08de21a4 3773
3774if test $ac_cv_header_stdc = yes; then
3775 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777/* end confdefs.h. */
3778#include <stdlib.h>
3779
3780_ACEOF
3781if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3782 $EGREP "free" >/dev/null 2>&1; then :
3783
b710ec85 3784else
08de21a4 3785 ac_cv_header_stdc=no
b710ec85 3786fi
08de21a4 3787rm -f conftest*
b710ec85 3788
08de21a4 3789fi
b710ec85 3790
08de21a4 3791if test $ac_cv_header_stdc = yes; then
3792 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3793 if test "$cross_compiling" = yes; then :
3794 :
3795else
3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797/* end confdefs.h. */
3798#include <ctype.h>
3799#include <stdlib.h>
3800#if ((' ' & 0x0FF) == 0x020)
3801# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3802# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3803#else
3804# define ISLOWER(c) \
3805 (('a' <= (c) && (c) <= 'i') \
3806 || ('j' <= (c) && (c) <= 'r') \
3807 || ('s' <= (c) && (c) <= 'z'))
3808# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3809#endif
b710ec85 3810
08de21a4 3811#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3812int
3813main ()
3814{
3815 int i;
3816 for (i = 0; i < 256; i++)
3817 if (XOR (islower (i), ISLOWER (i))
3818 || toupper (i) != TOUPPER (i))
3819 return 2;
3820 return 0;
3821}
3822_ACEOF
3823if ac_fn_c_try_run "$LINENO"; then :
3824
3825else
3826 ac_cv_header_stdc=no
3827fi
3828rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3829 conftest.$ac_objext conftest.beam conftest.$ac_ext
b710ec85 3830fi
3831
3832fi
08de21a4 3833fi
3834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3835$as_echo "$ac_cv_header_stdc" >&6; }
3836if test $ac_cv_header_stdc = yes; then
b710ec85 3837
08de21a4 3838$as_echo "#define STDC_HEADERS 1" >>confdefs.h
b710ec85 3839
08de21a4 3840fi
3841
3842# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3843for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3844 inttypes.h stdint.h unistd.h
3845do :
3846 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3847ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3848"
f00f02a3 3849if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
08de21a4 3850 cat >>confdefs.h <<_ACEOF
3851#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3852_ACEOF
3853
3854fi
b710ec85 3855
b710ec85 3856done
3857
08de21a4 3858
3859
3860 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
f00f02a3 3861if test "x$ac_cv_header_minix_config_h" = xyes; then :
08de21a4 3862 MINIX=yes
3863else
3864 MINIX=
3865fi
3866
3867
3868 if test "$MINIX" = yes; then
3869
3870$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3871
3872
3873$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3874
3875
3876$as_echo "#define _MINIX 1" >>confdefs.h
3877
3878 fi
3879
3880
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3882$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
f00f02a3 3883if ${ac_cv_safe_to_define___extensions__+:} false; then :
08de21a4 3884 $as_echo_n "(cached) " >&6
3885else
3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b710ec85 3887/* end confdefs.h. */
3888
f00f02a3 3889# define __EXTENSIONS__ 1
3890 $ac_includes_default
b710ec85 3891int
3892main ()
3893{
3894
3895 ;
3896 return 0;
3897}
3898_ACEOF
08de21a4 3899if ac_fn_c_try_compile "$LINENO"; then :
3900 ac_cv_safe_to_define___extensions__=yes
3901else
3902 ac_cv_safe_to_define___extensions__=no
3903fi
3904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3905fi
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3907$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3908 test $ac_cv_safe_to_define___extensions__ = yes &&
3909 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
b710ec85 3910
08de21a4 3911 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
b710ec85 3912
08de21a4 3913 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
b710ec85 3914
08de21a4 3915 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
b710ec85 3916
08de21a4 3917 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
b710ec85 3918
b710ec85 3919
b710ec85 3920
08de21a4 3921# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
3922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
3923$as_echo_n "checking for --enable-vtable-verify... " >&6; }
3924# Check whether --enable-vtable-verify was given.
3925if test "${enable_vtable_verify+set}" = set; then :
3926 enableval=$enable_vtable_verify; case "$enableval" in
3927 yes) enable_vtable_verify=yes ;;
3928 no) enable_vtable_verify=no ;;
3929 *) enable_vtable_verify=no;;
3930 esac
b710ec85 3931else
08de21a4 3932 enable_vtable_verify=no
b710ec85 3933fi
b710ec85 3934
08de21a4 3935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
3936$as_echo "$enable_vtable_verify" >&6; }
b710ec85 3937
08de21a4 3938# See if supported.
3939unset VTV_SUPPORTED
3940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for vtable verification" >&5
3941$as_echo_n "checking for host support for vtable verification... " >&6; }
3942. ${srcdir}/configure.tgt
3943case ${host} in
3944 *-*-solaris2*)
3945 # libvtv requires init priority support, which depends on the linker
3946 # used on Solaris.
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init priority support" >&5
3948$as_echo_n "checking for init priority support... " >&6; }
f00f02a3 3949if ${libvtv_cv_init_priority+:} false; then :
b710ec85 3950 $as_echo_n "(cached) " >&6
3951else
08de21a4 3952
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b710ec85 3954/* end confdefs.h. */
3955
3956int
3957main ()
3958{
08de21a4 3959void ip (void) __attribute__ ((constructor (1)));
b710ec85 3960 ;
3961 return 0;
3962}
3963_ACEOF
3964if ac_fn_c_try_compile "$LINENO"; then :
08de21a4 3965 libgcc_cv_init_priority=yes
b710ec85 3966else
08de21a4 3967 libgcc_cv_init_priority=no
b710ec85 3968fi
3969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
08de21a4 3970fi
3971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libvtv_cv_init_priority" >&5
3972$as_echo "$libvtv_cv_init_priority" >&6; }
3973 if test x$libvtv_cv_init_priority = xno; then
3974 VTV_SUPPORTED=no
3975 fi
3976 # FIXME: Maybe check for dl_iterate_phdr, too? Should be covered by
3977 # configure.tgt restricting to libvtv to Solaris 11+.
3978 ;;
3979esac
3980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $VTV_SUPPORTED" >&5
3981$as_echo "$VTV_SUPPORTED" >&6; }
b710ec85 3982
08de21a4 3983# Decide if it's usable.
3984use_vtable_verify=no
3985if test "x$VTV_SUPPORTED" = "xyes"; then
3986 if test "x$enable_vtable_verify" = "xyes"; then
3987 use_vtable_verify=yes
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: using vtable verification" >&5
3989$as_echo "$as_me: using vtable verification" >&6;}
3990 fi
b710ec85 3991fi
08de21a4 3992 if test $use_vtable_verify = yes; then
3993 ENABLE_VTABLE_VERIFY_TRUE=
3994 ENABLE_VTABLE_VERIFY_FALSE='#'
b710ec85 3995else
08de21a4 3996 ENABLE_VTABLE_VERIFY_TRUE='#'
3997 ENABLE_VTABLE_VERIFY_FALSE=
b710ec85 3998fi
b710ec85 3999
b710ec85 4000
f00f02a3 4001am__api_version='1.15'
b710ec85 4002
08de21a4 4003# Find a good install program. We prefer a C program (faster),
4004# so one script is as good as another. But avoid the broken or
4005# incompatible versions:
4006# SysV /etc/install, /usr/sbin/install
4007# SunOS /usr/etc/install
4008# IRIX /sbin/install
4009# AIX /bin/install
4010# AmigaOS /C/install, which installs bootblocks on floppy discs
4011# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4012# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4013# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4014# OS/2's system install, which has a completely different semantic
4015# ./install, which can be erroneously created by make from ./install.sh.
4016# Reject install programs that cannot install multiple files.
4017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4018$as_echo_n "checking for a BSD-compatible install... " >&6; }
4019if test -z "$INSTALL"; then
f00f02a3 4020if ${ac_cv_path_install+:} false; then :
08de21a4 4021 $as_echo_n "(cached) " >&6
b710ec85 4022else
08de21a4 4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024for as_dir in $PATH
4025do
4026 IFS=$as_save_IFS
4027 test -z "$as_dir" && as_dir=.
4028 # Account for people who put trailing slashes in PATH elements.
4029case $as_dir/ in #((
4030 ./ | .// | /[cC]/* | \
4031 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4032 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4033 /usr/ucb/* ) ;;
4034 *)
4035 # OSF1 and SCO ODT 3.0 have their own names for install.
4036 # Don't use installbsd from OSF since it installs stuff as root
4037 # by default.
4038 for ac_prog in ginstall scoinst install; do
4039 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4040 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
08de21a4 4041 if test $ac_prog = install &&
4042 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4043 # AIX install. It has an incompatible calling convention.
4044 :
4045 elif test $ac_prog = install &&
4046 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4047 # program-specific install script used by HP pwplus--don't use.
4048 :
4049 else
4050 rm -rf conftest.one conftest.two conftest.dir
4051 echo one > conftest.one
4052 echo two > conftest.two
4053 mkdir conftest.dir
4054 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4055 test -s conftest.one && test -s conftest.two &&
4056 test -s conftest.dir/conftest.one &&
4057 test -s conftest.dir/conftest.two
4058 then
4059 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4060 break 3
4061 fi
4062 fi
4063 fi
4064 done
4065 done
4066 ;;
4067esac
b710ec85 4068
08de21a4 4069 done
4070IFS=$as_save_IFS
4071
4072rm -rf conftest.one conftest.two conftest.dir
b710ec85 4073
b710ec85 4074fi
08de21a4 4075 if test "${ac_cv_path_install+set}" = set; then
4076 INSTALL=$ac_cv_path_install
b710ec85 4077 else
08de21a4 4078 # As a last resort, use the slow shell script. Don't cache a
4079 # value for INSTALL within a source directory, because that will
4080 # break other packages using the cache if that directory is
4081 # removed, or if the value is a relative name.
4082 INSTALL=$ac_install_sh
b710ec85 4083 fi
4084fi
08de21a4 4085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4086$as_echo "$INSTALL" >&6; }
b710ec85 4087
08de21a4 4088# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4089# It thinks the first close brace ends the variable substitution.
4090test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
b710ec85 4091
08de21a4 4092test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
b710ec85 4093
08de21a4 4094test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
b710ec85 4095
08de21a4 4096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4097$as_echo_n "checking whether build environment is sane... " >&6; }
08de21a4 4098# Reject unsafe characters in $srcdir or the absolute working directory
4099# name. Accept space and tab only in the latter.
4100am_lf='
4101'
4102case `pwd` in
4103 *[\\\"\#\$\&\'\`$am_lf]*)
f00f02a3 4104 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
b710ec85 4105esac
08de21a4 4106case $srcdir in
4107 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
f00f02a3 4108 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
08de21a4 4109esac
4110
f00f02a3 4111# Do 'set' in a subshell so we don't clobber the current shell's
08de21a4 4112# arguments. Must try -L first in case configure is actually a
4113# symlink; some systems play weird games with the mod time of symlinks
4114# (eg FreeBSD returns the mod time of the symlink's containing
4115# directory).
4116if (
f00f02a3 4117 am_has_slept=no
4118 for am_try in 1 2; do
4119 echo "timestamp, slept: $am_has_slept" > conftest.file
4120 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4121 if test "$*" = "X"; then
4122 # -L didn't work.
4123 set X `ls -t "$srcdir/configure" conftest.file`
4124 fi
4125 if test "$*" != "X $srcdir/configure conftest.file" \
4126 && test "$*" != "X conftest.file $srcdir/configure"; then
4127
4128 # If neither matched, then we have a broken ls. This can happen
4129 # if, for instance, CONFIG_SHELL is bash and it inherits a
4130 # broken ls alias from the environment. This has actually
4131 # happened. Such a system could not be considered "sane".
4132 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4133 alias in your environment" "$LINENO" 5
4134 fi
4135 if test "$2" = conftest.file || test $am_try -eq 2; then
4136 break
4137 fi
4138 # Just in case.
4139 sleep 1
4140 am_has_slept=yes
4141 done
08de21a4 4142 test "$2" = conftest.file
4143 )
4144then
4145 # Ok.
4146 :
4147else
f00f02a3 4148 as_fn_error $? "newly created file is older than distributed files!
08de21a4 4149Check your system clock" "$LINENO" 5
b710ec85 4150fi
08de21a4 4151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4152$as_echo "yes" >&6; }
f00f02a3 4153# If we didn't sleep, we still need to ensure time stamps of config.status and
4154# generated files are strictly newer.
4155am_sleep_pid=
4156if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4157 ( sleep 1 ) &
4158 am_sleep_pid=$!
4159fi
4160
4161rm -f conftest.file
4162
08de21a4 4163test "$program_prefix" != NONE &&
4164 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4165# Use a double $ so make ignores it.
4166test "$program_suffix" != NONE &&
4167 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4168# Double any \ or $.
4169# By default was `s,x,x', remove it if useless.
4170ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4171program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
b710ec85 4172
08de21a4 4173if test x"${MISSING+set}" != xset; then
4174 case $am_aux_dir in
4175 *\ * | *\ *)
4176 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4177 *)
4178 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4179 esac
4180fi
4181# Use eval to expand $SHELL
f00f02a3 4182if eval "$MISSING --is-lightweight"; then
4183 am_missing_run="$MISSING "
08de21a4 4184else
4185 am_missing_run=
f00f02a3 4186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4187$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
08de21a4 4188fi
b710ec85 4189
f00f02a3 4190if test x"${install_sh+set}" != xset; then
08de21a4 4191 case $am_aux_dir in
4192 *\ * | *\ *)
4193 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4194 *)
4195 install_sh="\${SHELL} $am_aux_dir/install-sh"
4196 esac
4197fi
4198
f00f02a3 4199# Installed binaries are usually stripped using 'strip' when the user
4200# run "make install-strip". However 'strip' might not be the right
08de21a4 4201# tool to use in cross-compilation environments, therefore Automake
f00f02a3 4202# will honor the 'STRIP' environment variable to overrule this program.
08de21a4 4203if test "$cross_compiling" != no; then
4204 if test -n "$ac_tool_prefix"; then
4205 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4206set dummy ${ac_tool_prefix}strip; ac_word=$2
4207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4208$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4209if ${ac_cv_prog_STRIP+:} false; then :
b710ec85 4210 $as_echo_n "(cached) " >&6
4211else
08de21a4 4212 if test -n "$STRIP"; then
4213 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4214else
4215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216for as_dir in $PATH
4217do
4218 IFS=$as_save_IFS
4219 test -z "$as_dir" && as_dir=.
4220 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
08de21a4 4222 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4224 break 2
b710ec85 4225 fi
08de21a4 4226done
4227 done
4228IFS=$as_save_IFS
b710ec85 4229
08de21a4 4230fi
4231fi
4232STRIP=$ac_cv_prog_STRIP
4233if test -n "$STRIP"; then
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4235$as_echo "$STRIP" >&6; }
4236else
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238$as_echo "no" >&6; }
4239fi
b710ec85 4240
08de21a4 4241
4242fi
4243if test -z "$ac_cv_prog_STRIP"; then
4244 ac_ct_STRIP=$STRIP
4245 # Extract the first word of "strip", so it can be a program name with args.
4246set dummy strip; ac_word=$2
4247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4248$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4249if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
08de21a4 4250 $as_echo_n "(cached) " >&6
4251else
4252 if test -n "$ac_ct_STRIP"; then
4253 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4254else
4255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256for as_dir in $PATH
4257do
4258 IFS=$as_save_IFS
4259 test -z "$as_dir" && as_dir=.
4260 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
08de21a4 4262 ac_cv_prog_ac_ct_STRIP="strip"
4263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4264 break 2
4265 fi
4266done
b710ec85 4267 done
08de21a4 4268IFS=$as_save_IFS
b710ec85 4269
08de21a4 4270fi
4271fi
4272ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4273if test -n "$ac_ct_STRIP"; then
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4275$as_echo "$ac_ct_STRIP" >&6; }
b710ec85 4276else
08de21a4 4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4278$as_echo "no" >&6; }
b710ec85 4279fi
4280
08de21a4 4281 if test "x$ac_ct_STRIP" = x; then
4282 STRIP=":"
4283 else
4284 case $cross_compiling:$ac_tool_warned in
4285yes:)
4286{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4287$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4288ac_tool_warned=yes ;;
4289esac
4290 STRIP=$ac_ct_STRIP
4291 fi
4292else
4293 STRIP="$ac_cv_prog_STRIP"
b710ec85 4294fi
b710ec85 4295
b710ec85 4296fi
08de21a4 4297INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
b710ec85 4298
08de21a4 4299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4300$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4301if test -z "$MKDIR_P"; then
f00f02a3 4302 if ${ac_cv_path_mkdir+:} false; then :
08de21a4 4303 $as_echo_n "(cached) " >&6
4304else
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4307do
4308 IFS=$as_save_IFS
4309 test -z "$as_dir" && as_dir=.
4310 for ac_prog in mkdir gmkdir; do
4311 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4312 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
08de21a4 4313 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4314 'mkdir (GNU coreutils) '* | \
4315 'mkdir (coreutils) '* | \
4316 'mkdir (fileutils) '4.1*)
4317 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4318 break 3;;
4319 esac
4320 done
4321 done
4322 done
4323IFS=$as_save_IFS
b710ec85 4324
08de21a4 4325fi
83628c60 4326
f00f02a3 4327 test -d ./--version && rmdir ./--version
08de21a4 4328 if test "${ac_cv_path_mkdir+set}" = set; then
4329 MKDIR_P="$ac_cv_path_mkdir -p"
4330 else
4331 # As a last resort, use the slow shell script. Don't cache a
4332 # value for MKDIR_P within a source directory, because that will
4333 # break other packages using the cache if that directory is
4334 # removed, or if the value is a relative name.
08de21a4 4335 MKDIR_P="$ac_install_sh -d"
4336 fi
83628c60 4337fi
08de21a4 4338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4339$as_echo "$MKDIR_P" >&6; }
4340
08de21a4 4341for ac_prog in gawk mawk nawk awk
4342do
4343 # Extract the first word of "$ac_prog", so it can be a program name with args.
4344set dummy $ac_prog; ac_word=$2
4345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4346$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4347if ${ac_cv_prog_AWK+:} false; then :
b710ec85 4348 $as_echo_n "(cached) " >&6
4349else
08de21a4 4350 if test -n "$AWK"; then
4351 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4352else
4353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354for as_dir in $PATH
b710ec85 4355do
08de21a4 4356 IFS=$as_save_IFS
4357 test -z "$as_dir" && as_dir=.
4358 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
08de21a4 4360 ac_cv_prog_AWK="$ac_prog"
4361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4362 break 2
4363 fi
4364done
4365 done
4366IFS=$as_save_IFS
b710ec85 4367
08de21a4 4368fi
4369fi
4370AWK=$ac_cv_prog_AWK
4371if test -n "$AWK"; then
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4373$as_echo "$AWK" >&6; }
83628c60 4374else
08de21a4 4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4376$as_echo "no" >&6; }
b710ec85 4377fi
83628c60 4378
08de21a4 4379
4380 test -n "$AWK" && break
4381done
4382
4383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4384$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4385set x ${MAKE-make}
4386ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
f00f02a3 4387if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
08de21a4 4388 $as_echo_n "(cached) " >&6
4389else
4390 cat >conftest.make <<\_ACEOF
4391SHELL = /bin/sh
4392all:
4393 @echo '@@@%%%=$(MAKE)=@@@%%%'
83628c60 4394_ACEOF
f00f02a3 4395# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
08de21a4 4396case `${MAKE-make} -f conftest.make 2>/dev/null` in
4397 *@@@%%%=?*=@@@%%%*)
4398 eval ac_cv_prog_make_${ac_make}_set=yes;;
4399 *)
4400 eval ac_cv_prog_make_${ac_make}_set=no;;
4401esac
4402rm -f conftest.make
4403fi
4404if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4406$as_echo "yes" >&6; }
4407 SET_MAKE=
b710ec85 4408else
08de21a4 4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410$as_echo "no" >&6; }
4411 SET_MAKE="MAKE=${MAKE-make}"
b710ec85 4412fi
4413
08de21a4 4414rm -rf .tst 2>/dev/null
4415mkdir .tst 2>/dev/null
4416if test -d .tst; then
4417 am__leading_dot=.
4418else
4419 am__leading_dot=_
4420fi
4421rmdir .tst 2>/dev/null
4422
4423DEPDIR="${am__leading_dot}deps"
4424
4425ac_config_commands="$ac_config_commands depfiles"
4426
4427
4428am_make=${MAKE-make}
4429cat > confinc << 'END'
4430am__doit:
4431 @echo this is the am__doit target
4432.PHONY: am__doit
4433END
4434# If we don't find an include directive, just comment out the code.
4435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4436$as_echo_n "checking for style of include used by $am_make... " >&6; }
4437am__include="#"
4438am__quote=
4439_am_result=none
4440# First try GNU make style include.
4441echo "include confinc" > confmf
f00f02a3 4442# Ignore all kinds of additional output from 'make'.
08de21a4 4443case `$am_make -s -f confmf 2> /dev/null` in #(
4444*the\ am__doit\ target*)
4445 am__include=include
4446 am__quote=
4447 _am_result=GNU
4448 ;;
4449esac
4450# Now try BSD make style include.
4451if test "$am__include" = "#"; then
4452 echo '.include "confinc"' > confmf
4453 case `$am_make -s -f confmf 2> /dev/null` in #(
4454 *the\ am__doit\ target*)
4455 am__include=.include
4456 am__quote="\""
4457 _am_result=BSD
4458 ;;
4459 esac
83628c60 4460fi
4461
b710ec85 4462
08de21a4 4463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4464$as_echo "$_am_result" >&6; }
4465rm -f confinc confmf
4466
4467# Check whether --enable-dependency-tracking was given.
4468if test "${enable_dependency_tracking+set}" = set; then :
4469 enableval=$enable_dependency_tracking;
b710ec85 4470fi
08de21a4 4471
4472if test "x$enable_dependency_tracking" != xno; then
4473 am_depcomp="$ac_aux_dir/depcomp"
4474 AMDEPBACKSLASH='\'
4475 am__nodep='_no'
4476fi
4477 if test "x$enable_dependency_tracking" != xno; then
4478 AMDEP_TRUE=
4479 AMDEP_FALSE='#'
b710ec85 4480else
08de21a4 4481 AMDEP_TRUE='#'
4482 AMDEP_FALSE=
83628c60 4483fi
b710ec85 4484
08de21a4 4485
f00f02a3 4486# Check whether --enable-silent-rules was given.
4487if test "${enable_silent_rules+set}" = set; then :
4488 enableval=$enable_silent_rules;
4489fi
4490
4491case $enable_silent_rules in # (((
4492 yes) AM_DEFAULT_VERBOSITY=0;;
4493 no) AM_DEFAULT_VERBOSITY=1;;
4494 *) AM_DEFAULT_VERBOSITY=1;;
4495esac
4496am_make=${MAKE-make}
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4498$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4499if ${am_cv_make_support_nested_variables+:} false; then :
4500 $as_echo_n "(cached) " >&6
4501else
4502 if $as_echo 'TRUE=$(BAR$(V))
4503BAR0=false
4504BAR1=true
4505V=1
4506am__doit:
4507 @$(TRUE)
4508.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4509 am_cv_make_support_nested_variables=yes
4510else
4511 am_cv_make_support_nested_variables=no
4512fi
4513fi
4514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4515$as_echo "$am_cv_make_support_nested_variables" >&6; }
4516if test $am_cv_make_support_nested_variables = yes; then
4517 AM_V='$(V)'
4518 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4519else
4520 AM_V=$AM_DEFAULT_VERBOSITY
4521 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4522fi
4523AM_BACKSLASH='\'
4524
08de21a4 4525if test "`cd $srcdir && pwd`" != "`pwd`"; then
4526 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4527 # is not polluted with repeated "-I."
4528 am__isrc=' -I$(srcdir)'
4529 # test to see if srcdir already configured
4530 if test -f $srcdir/config.status; then
f00f02a3 4531 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
08de21a4 4532 fi
b710ec85 4533fi
83628c60 4534
08de21a4 4535# test whether we have cygpath
4536if test -z "$CYGPATH_W"; then
4537 if (cygpath --version) >/dev/null 2>/dev/null; then
4538 CYGPATH_W='cygpath -w'
4539 else
4540 CYGPATH_W=echo
4541 fi
b710ec85 4542fi
83628c60 4543
83628c60 4544
08de21a4 4545# Define the identity of the package.
4546 PACKAGE='libvtv'
4547 VERSION='1.0'
b710ec85 4548
4549
08de21a4 4550cat >>confdefs.h <<_ACEOF
4551#define PACKAGE "$PACKAGE"
4552_ACEOF
b710ec85 4553
83628c60 4554
08de21a4 4555cat >>confdefs.h <<_ACEOF
4556#define VERSION "$VERSION"
4557_ACEOF
b710ec85 4558
08de21a4 4559# Some tools Automake needs.
83628c60 4560
08de21a4 4561ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
83628c60 4562
83628c60 4563
08de21a4 4564AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
b710ec85 4565
83628c60 4566
08de21a4 4567AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
83628c60 4568
b710ec85 4569
08de21a4 4570AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4571
4572
4573MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4574
f00f02a3 4575# For better backward compatibility. To be removed once Automake 1.9.x
4576# dies out for good. For more background, see:
4577# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4578# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4579mkdir_p='$(MKDIR_P)'
4580
4581# We need awk for the "check" target (and possibly the TAP driver). The
4582# system "awk" is bad on some platforms.
08de21a4 4583# Always define AMTAR for backward compatibility. Yes, it's still used
4584# in the wild :-( We should find a proper way to deprecate it ...
4585AMTAR='$${TAR-tar}'
4586
f00f02a3 4587
4588# We'll loop over all known methods to create a tar archive until one works.
4589_am_tools='gnutar pax cpio none'
4590
08de21a4 4591am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
b710ec85 4592
b710ec85 4593
83628c60 4594
83628c60 4595
f00f02a3 4596
08de21a4 4597depcc="$CC" am_compiler_list=
4598
4599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4600$as_echo_n "checking dependency style of $depcc... " >&6; }
f00f02a3 4601if ${am_cv_CC_dependencies_compiler_type+:} false; then :
08de21a4 4602 $as_echo_n "(cached) " >&6
83628c60 4603else
08de21a4 4604 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4605 # We make a subdir and do the tests there. Otherwise we can end up
4606 # making bogus files that we don't know about and never remove. For
4607 # instance it was reported that on HP-UX the gcc test will end up
f00f02a3 4608 # making a dummy file named 'D' -- because '-MD' means "put the output
4609 # in D".
08de21a4 4610 rm -rf conftest.dir
4611 mkdir conftest.dir
4612 # Copy depcomp to subdir because otherwise we won't find it if we're
4613 # using a relative directory.
4614 cp "$am_depcomp" conftest.dir
4615 cd conftest.dir
4616 # We will build objects and dependencies in a subdirectory because
4617 # it helps to detect inapplicable dependency modes. For instance
4618 # both Tru64's cc and ICC support -MD to output dependencies as a
4619 # side effect of compilation, but ICC will put the dependencies in
4620 # the current directory while Tru64 will put them in the object
4621 # directory.
4622 mkdir sub
83628c60 4623
08de21a4 4624 am_cv_CC_dependencies_compiler_type=none
4625 if test "$am_compiler_list" = ""; then
4626 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4627 fi
4628 am__universal=false
4629 case " $depcc " in #(
4630 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4631 esac
83628c60 4632
08de21a4 4633 for depmode in $am_compiler_list; do
4634 # Setup a source with many dependencies, because some compilers
4635 # like to wrap large dependency lists on column 80 (with \), and
4636 # we should not choose a depcomp mode which is confused by this.
4637 #
4638 # We need to recreate these files for each test, as the compiler may
4639 # overwrite some of them when testing with obscure command lines.
4640 # This happens at least with the AIX C compiler.
4641 : > sub/conftest.c
4642 for i in 1 2 3 4 5 6; do
4643 echo '#include "conftst'$i'.h"' >> sub/conftest.c
f00f02a3 4644 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4645 # Solaris 10 /bin/sh.
4646 echo '/* dummy */' > sub/conftst$i.h
08de21a4 4647 done
4648 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
83628c60 4649
f00f02a3 4650 # We check with '-c' and '-o' for the sake of the "dashmstdout"
08de21a4 4651 # mode. It turns out that the SunPro C++ compiler does not properly
f00f02a3 4652 # handle '-M -o', and we need to detect this. Also, some Intel
4653 # versions had trouble with output in subdirs.
08de21a4 4654 am__obj=sub/conftest.${OBJEXT-o}
4655 am__minus_obj="-o $am__obj"
4656 case $depmode in
4657 gcc)
4658 # This depmode causes a compiler race in universal mode.
4659 test "$am__universal" = false || continue
4660 ;;
4661 nosideeffect)
f00f02a3 4662 # After this tag, mechanisms are not by side-effect, so they'll
4663 # only be used when explicitly requested.
08de21a4 4664 if test "x$enable_dependency_tracking" = xyes; then
4665 continue
4666 else
4667 break
4668 fi
4669 ;;
4670 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
f00f02a3 4671 # This compiler won't grok '-c -o', but also, the minuso test has
08de21a4 4672 # not run yet. These depmodes are late enough in the game, and
4673 # so weak that their functioning should not be impacted.
4674 am__obj=conftest.${OBJEXT-o}
4675 am__minus_obj=
4676 ;;
4677 none) break ;;
4678 esac
4679 if depmode=$depmode \
4680 source=sub/conftest.c object=$am__obj \
4681 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4682 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4683 >/dev/null 2>conftest.err &&
4684 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4685 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4686 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4687 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4688 # icc doesn't choke on unknown options, it will just issue warnings
4689 # or remarks (even with -Werror). So we grep stderr for any message
4690 # that says an option was ignored or not supported.
4691 # When given -MP, icc 7.0 and 7.1 complain thusly:
4692 # icc: Command line warning: ignoring option '-M'; no argument required
4693 # The diagnosis changed in icc 8.0:
4694 # icc: Command line remark: option '-MP' not supported
4695 if (grep 'ignoring option' conftest.err ||
4696 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4697 am_cv_CC_dependencies_compiler_type=$depmode
4698 break
4699 fi
4700 fi
4701 done
83628c60 4702
08de21a4 4703 cd ..
4704 rm -rf conftest.dir
b710ec85 4705else
08de21a4 4706 am_cv_CC_dependencies_compiler_type=none
83628c60 4707fi
83628c60 4708
4709fi
08de21a4 4710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4711$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4712CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
83628c60 4713
08de21a4 4714 if
4715 test "x$enable_dependency_tracking" != xno \
4716 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4717 am__fastdepCC_TRUE=
4718 am__fastdepCC_FALSE='#'
83628c60 4719else
08de21a4 4720 am__fastdepCC_TRUE='#'
4721 am__fastdepCC_FALSE=
4722fi
b710ec85 4723
83628c60 4724
08de21a4 4725
f00f02a3 4726# POSIX will say in a future version that running "rm -f" with no argument
4727# is OK; and we want to be able to make that assumption in our Makefile
4728# recipes. So use an aggressive probe to check that the usage we want is
4729# actually supported "in the wild" to an acceptable degree.
4730# See automake bug#10828.
4731# To make any issue more visible, cause the running configure to be aborted
4732# by default if the 'rm' program in use doesn't match our expectations; the
4733# user can still override this though.
4734if rm -f && rm -fr && rm -rf; then : OK; else
4735 cat >&2 <<'END'
4736Oops!
4737
4738Your 'rm' program seems unable to run without file operands specified
4739on the command line, even when the '-f' option is present. This is contrary
4740to the behaviour of most rm programs out there, and not conforming with
4741the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4742
4743Please tell bug-automake@gnu.org about your system, including the value
4744of your $PATH and any error possibly output before this message. This
4745can help us improve future automake versions.
4746
4747END
4748 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4749 echo 'Configuration will proceed anyway, since you have set the' >&2
4750 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4751 echo >&2
4752 else
4753 cat >&2 <<'END'
4754Aborting the configuration process, to ensure you take notice of the issue.
4755
4756You can download and install GNU coreutils to get an 'rm' implementation
4757that behaves properly: <http://www.gnu.org/software/coreutils/>.
4758
4759If you want to complete the configuration process using your problematic
4760'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4761to "yes", and re-run configure.
4762
4763END
4764 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4765 fi
4766fi
4767
83628c60 4768
08de21a4 4769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4770$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4771 # Check whether --enable-maintainer-mode was given.
4772if test "${enable_maintainer_mode+set}" = set; then :
4773 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
b710ec85 4774else
08de21a4 4775 USE_MAINTAINER_MODE=no
83628c60 4776fi
4777
08de21a4 4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4779$as_echo "$USE_MAINTAINER_MODE" >&6; }
4780 if test $USE_MAINTAINER_MODE = yes; then
4781 MAINTAINER_MODE_TRUE=
4782 MAINTAINER_MODE_FALSE='#'
4783else
4784 MAINTAINER_MODE_TRUE='#'
4785 MAINTAINER_MODE_FALSE=
4786fi
83628c60 4787
08de21a4 4788 MAINT=$MAINTAINER_MODE_TRUE
83628c60 4789
83628c60 4790
4791
83628c60 4792
83628c60 4793
08de21a4 4794 # These need to be absolute paths, yet at the same time need to
4795 # canonicalize only relative paths, because then amd will not unmount
4796 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
4797 libvtv_builddir=`${PWDCMD-pwd}`
4798 case $srcdir in
4799 \\/$* | ?:\\/*) libvtv_srcdir=${srcdir} ;;
4800 *) libvtv_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
4801 esac
4802 toplevel_builddir=${libvtv_builddir}/..
4803 toplevel_srcdir=${libvtv_srcdir}/..
83628c60 4804
b710ec85 4805
b710ec85 4806
83628c60 4807
83628c60 4808
83628c60 4809
08de21a4 4810# Calculate toolexeclibdir
4811# Also toolexecdir, though it's only used in toolexeclibdir
4812case ${version_specific_libs} in
4813 yes)
4814 # Need the gcc compiler version to know where to install libraries
4815 # and header files if --enable-version-specific-runtime-libs option
4816 # is selected.
4817 toolexecdir='$(libdir)/gcc/$(target_alias)'
4818 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4819 ;;
4820 no)
4821 if test -n "$with_cross_host" &&
4822 test x"$with_cross_host" != x"no"; then
4823 # Install a library built with a cross compiler in tooldir, not libdir.
4824 toolexecdir='$(exec_prefix)/$(target_alias)'
4825 toolexeclibdir='$(toolexecdir)/lib'
4826 else
4827 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4828 toolexeclibdir='$(libdir)'
4829 fi
4830 multi_os_directory=`$CC -print-multi-os-directory`
4831 case $multi_os_directory in
4832 .) ;; # Avoid trailing /.
4833 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4834 esac
4835 ;;
4836esac
83628c60 4837
83628c60 4838
4839
4840
4841for ac_func in __secure_getenv
4842do :
4843 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
f00f02a3 4844if test "x$ac_cv_func___secure_getenv" = xyes; then :
83628c60 4845 cat >>confdefs.h <<_ACEOF
4846#define HAVE___SECURE_GETENV 1
4847_ACEOF
4848
b710ec85 4849fi
83628c60 4850done
4851
4852
4853
4854for ac_func in secure_getenv
4855do :
4856 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
f00f02a3 4857if test "x$ac_cv_func_secure_getenv" = xyes; then :
83628c60 4858 cat >>confdefs.h <<_ACEOF
4859#define HAVE_SECURE_GETENV 1
4860_ACEOF
4861
b710ec85 4862fi
83628c60 4863done
4864
4865
08de21a4 4866for ac_func in getexecname __fortify_fail
4867do :
4868 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4869ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
f00f02a3 4870if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
08de21a4 4871 cat >>confdefs.h <<_ACEOF
4872#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4873_ACEOF
4874
4875fi
4876done
4877
4878
83628c60 4879# Check for programs.
4880
4881
b710ec85 4882ac_ext=c
4883ac_cpp='$CPP $CPPFLAGS'
4884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4886ac_compiler_gnu=$ac_cv_c_compiler_gnu
83628c60 4887if test -n "$ac_tool_prefix"; then
4888 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4889set dummy ${ac_tool_prefix}gcc; ac_word=$2
4890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4891$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4892if ${ac_cv_prog_CC+:} false; then :
b710ec85 4893 $as_echo_n "(cached) " >&6
4894else
83628c60 4895 if test -n "$CC"; then
4896 ac_cv_prog_CC="$CC" # Let the user override the test.
4897else
4898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899for as_dir in $PATH
4900do
4901 IFS=$as_save_IFS
4902 test -z "$as_dir" && as_dir=.
4903 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
83628c60 4905 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4907 break 2
b710ec85 4908 fi
83628c60 4909done
4910 done
4911IFS=$as_save_IFS
b710ec85 4912
b710ec85 4913fi
b710ec85 4914fi
83628c60 4915CC=$ac_cv_prog_CC
4916if test -n "$CC"; then
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4918$as_echo "$CC" >&6; }
b710ec85 4919else
83628c60 4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4921$as_echo "no" >&6; }
b710ec85 4922fi
4923
4924
b710ec85 4925fi
83628c60 4926if test -z "$ac_cv_prog_CC"; then
4927 ac_ct_CC=$CC
4928 # Extract the first word of "gcc", so it can be a program name with args.
4929set dummy gcc; ac_word=$2
4930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4931$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4932if ${ac_cv_prog_ac_ct_CC+:} false; then :
b710ec85 4933 $as_echo_n "(cached) " >&6
4934else
83628c60 4935 if test -n "$ac_ct_CC"; then
4936 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b710ec85 4937else
83628c60 4938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939for as_dir in $PATH
4940do
4941 IFS=$as_save_IFS
4942 test -z "$as_dir" && as_dir=.
4943 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
83628c60 4945 ac_cv_prog_ac_ct_CC="gcc"
4946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4947 break 2
4948 fi
4949done
4950 done
4951IFS=$as_save_IFS
b710ec85 4952
4953fi
83628c60 4954fi
4955ac_ct_CC=$ac_cv_prog_ac_ct_CC
4956if test -n "$ac_ct_CC"; then
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4958$as_echo "$ac_ct_CC" >&6; }
b710ec85 4959else
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4961$as_echo "no" >&6; }
b710ec85 4962fi
4963
83628c60 4964 if test "x$ac_ct_CC" = x; then
4965 CC=""
4966 else
4967 case $cross_compiling:$ac_tool_warned in
4968yes:)
4969{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4970$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4971ac_tool_warned=yes ;;
4972esac
4973 CC=$ac_ct_CC
4974 fi
4975else
4976 CC="$ac_cv_prog_CC"
b710ec85 4977fi
4978
83628c60 4979if test -z "$CC"; then
4980 if test -n "$ac_tool_prefix"; then
4981 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4982set dummy ${ac_tool_prefix}cc; ac_word=$2
b710ec85 4983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4984$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 4985if ${ac_cv_prog_CC+:} false; then :
b710ec85 4986 $as_echo_n "(cached) " >&6
4987else
83628c60 4988 if test -n "$CC"; then
4989 ac_cv_prog_CC="$CC" # Let the user override the test.
b710ec85 4990else
4991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992for as_dir in $PATH
4993do
4994 IFS=$as_save_IFS
4995 test -z "$as_dir" && as_dir=.
4996 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 4997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
83628c60 4998 ac_cv_prog_CC="${ac_tool_prefix}cc"
b710ec85 4999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5000 break 2
5001 fi
5002done
5003 done
5004IFS=$as_save_IFS
5005
5006fi
5007fi
83628c60 5008CC=$ac_cv_prog_CC
5009if test -n "$CC"; then
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5011$as_echo "$CC" >&6; }
b710ec85 5012else
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5014$as_echo "no" >&6; }
5015fi
5016
5017
83628c60 5018 fi
b710ec85 5019fi
83628c60 5020if test -z "$CC"; then
5021 # Extract the first word of "cc", so it can be a program name with args.
5022set dummy cc; ac_word=$2
b710ec85 5023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 5025if ${ac_cv_prog_CC+:} false; then :
b710ec85 5026 $as_echo_n "(cached) " >&6
5027else
83628c60 5028 if test -n "$CC"; then
5029 ac_cv_prog_CC="$CC" # Let the user override the test.
b710ec85 5030else
83628c60 5031 ac_prog_rejected=no
b710ec85 5032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033for as_dir in $PATH
5034do
5035 IFS=$as_save_IFS
5036 test -z "$as_dir" && as_dir=.
5037 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 5038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
83628c60 5039 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5040 ac_prog_rejected=yes
5041 continue
5042 fi
5043 ac_cv_prog_CC="cc"
b710ec85 5044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5045 break 2
5046 fi
5047done
5048 done
5049IFS=$as_save_IFS
5050
83628c60 5051if test $ac_prog_rejected = yes; then
5052 # We found a bogon in the path, so make sure we never use it.
5053 set dummy $ac_cv_prog_CC
5054 shift
5055 if test $# != 0; then
5056 # We chose a different compiler from the bogus one.
5057 # However, it has the same basename, so the bogon will be chosen
5058 # first if we set CC to just the basename; use the full file name.
5059 shift
5060 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
b710ec85 5061 fi
b710ec85 5062fi
b710ec85 5063fi
5064fi
83628c60 5065CC=$ac_cv_prog_CC
5066if test -n "$CC"; then
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5068$as_echo "$CC" >&6; }
b710ec85 5069else
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5071$as_echo "no" >&6; }
5072fi
5073
5074
5075fi
83628c60 5076if test -z "$CC"; then
5077 if test -n "$ac_tool_prefix"; then
5078 for ac_prog in cl.exe
5079 do
5080 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5081set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b710ec85 5082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5083$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 5084if ${ac_cv_prog_CC+:} false; then :
b710ec85 5085 $as_echo_n "(cached) " >&6
5086else
83628c60 5087 if test -n "$CC"; then
5088 ac_cv_prog_CC="$CC" # Let the user override the test.
b710ec85 5089else
5090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091for as_dir in $PATH
5092do
5093 IFS=$as_save_IFS
5094 test -z "$as_dir" && as_dir=.
5095 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 5096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
83628c60 5097 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
b710ec85 5098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 break 2
5100 fi
5101done
5102 done
5103IFS=$as_save_IFS
5104
5105fi
5106fi
83628c60 5107CC=$ac_cv_prog_CC
5108if test -n "$CC"; then
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5110$as_echo "$CC" >&6; }
b710ec85 5111else
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113$as_echo "no" >&6; }
5114fi
5115
b710ec85 5116
83628c60 5117 test -n "$CC" && break
5118 done
5119fi
5120if test -z "$CC"; then
5121 ac_ct_CC=$CC
5122 for ac_prog in cl.exe
5123do
5124 # Extract the first word of "$ac_prog", so it can be a program name with args.
5125set dummy $ac_prog; ac_word=$2
b710ec85 5126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 5128if ${ac_cv_prog_ac_ct_CC+:} false; then :
b710ec85 5129 $as_echo_n "(cached) " >&6
5130else
83628c60 5131 if test -n "$ac_ct_CC"; then
5132 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b710ec85 5133else
5134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135for as_dir in $PATH
5136do
5137 IFS=$as_save_IFS
5138 test -z "$as_dir" && as_dir=.
5139 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 5140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
83628c60 5141 ac_cv_prog_ac_ct_CC="$ac_prog"
b710ec85 5142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5143 break 2
5144 fi
5145done
5146 done
5147IFS=$as_save_IFS
5148
5149fi
5150fi
83628c60 5151ac_ct_CC=$ac_cv_prog_ac_ct_CC
5152if test -n "$ac_ct_CC"; then
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5154$as_echo "$ac_ct_CC" >&6; }
b710ec85 5155else
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157$as_echo "no" >&6; }
5158fi
5159
5160
83628c60 5161 test -n "$ac_ct_CC" && break
b710ec85 5162done
b710ec85 5163
83628c60 5164 if test "x$ac_ct_CC" = x; then
5165 CC=""
b710ec85 5166 else
5167 case $cross_compiling:$ac_tool_warned in
5168yes:)
5169{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5171ac_tool_warned=yes ;;
5172esac
83628c60 5173 CC=$ac_ct_CC
b710ec85 5174 fi
b710ec85 5175fi
5176
83628c60 5177fi
b710ec85 5178
5179
83628c60 5180test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 5182as_fn_error $? "no acceptable C compiler found in \$PATH
5183See \`config.log' for more details" "$LINENO" 5; }
b710ec85 5184
83628c60 5185# Provide some information about the compiler.
5186$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5187set X $ac_compile
5188ac_compiler=$2
5189for ac_option in --version -v -V -qversion; do
5190 { { ac_try="$ac_compiler $ac_option >&5"
5191case "(($ac_try" in
5192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5193 *) ac_try_echo=$ac_try;;
5194esac
5195eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5196$as_echo "$ac_try_echo"; } >&5
5197 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5198 ac_status=$?
5199 if test -s conftest.err; then
5200 sed '10a\
5201... rest of stderr output deleted ...
5202 10q' conftest.err >conftest.er1
5203 cat conftest.er1 >&5
83628c60 5204 fi
f00f02a3 5205 rm -f conftest.er1 conftest.err
83628c60 5206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5207 test $ac_status = 0; }
5208done
5209
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5211$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
f00f02a3 5212if ${ac_cv_c_compiler_gnu+:} false; then :
83628c60 5213 $as_echo_n "(cached) " >&6
5214else
5215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216/* end confdefs.h. */
5217
5218int
5219main ()
5220{
5221#ifndef __GNUC__
5222 choke me
5223#endif
5224
5225 ;
5226 return 0;
5227}
5228_ACEOF
5229if ac_fn_c_try_compile "$LINENO"; then :
5230 ac_compiler_gnu=yes
5231else
5232 ac_compiler_gnu=no
5233fi
5234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5235ac_cv_c_compiler_gnu=$ac_compiler_gnu
5236
5237fi
5238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5239$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5240if test $ac_compiler_gnu = yes; then
5241 GCC=yes
5242else
5243 GCC=
5244fi
5245ac_test_CFLAGS=${CFLAGS+set}
5246ac_save_CFLAGS=$CFLAGS
5247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5248$as_echo_n "checking whether $CC accepts -g... " >&6; }
f00f02a3 5249if ${ac_cv_prog_cc_g+:} false; then :
83628c60 5250 $as_echo_n "(cached) " >&6
5251else
5252 ac_save_c_werror_flag=$ac_c_werror_flag
5253 ac_c_werror_flag=yes
5254 ac_cv_prog_cc_g=no
5255 CFLAGS="-g"
5256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257/* end confdefs.h. */
5258
5259int
5260main ()
5261{
5262
5263 ;
5264 return 0;
5265}
5266_ACEOF
5267if ac_fn_c_try_compile "$LINENO"; then :
5268 ac_cv_prog_cc_g=yes
5269else
5270 CFLAGS=""
5271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272/* end confdefs.h. */
5273
5274int
5275main ()
5276{
5277
5278 ;
5279 return 0;
5280}
5281_ACEOF
5282if ac_fn_c_try_compile "$LINENO"; then :
5283
5284else
5285 ac_c_werror_flag=$ac_save_c_werror_flag
5286 CFLAGS="-g"
5287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288/* end confdefs.h. */
5289
5290int
5291main ()
5292{
5293
5294 ;
5295 return 0;
5296}
5297_ACEOF
5298if ac_fn_c_try_compile "$LINENO"; then :
5299 ac_cv_prog_cc_g=yes
5300fi
5301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5302fi
5303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5304fi
5305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5306 ac_c_werror_flag=$ac_save_c_werror_flag
5307fi
5308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5309$as_echo "$ac_cv_prog_cc_g" >&6; }
5310if test "$ac_test_CFLAGS" = set; then
5311 CFLAGS=$ac_save_CFLAGS
5312elif test $ac_cv_prog_cc_g = yes; then
5313 if test "$GCC" = yes; then
5314 CFLAGS="-g -O2"
5315 else
5316 CFLAGS="-g"
5317 fi
5318else
5319 if test "$GCC" = yes; then
5320 CFLAGS="-O2"
5321 else
5322 CFLAGS=
5323 fi
5324fi
5325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5326$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
f00f02a3 5327if ${ac_cv_prog_cc_c89+:} false; then :
83628c60 5328 $as_echo_n "(cached) " >&6
5329else
5330 ac_cv_prog_cc_c89=no
5331ac_save_CC=$CC
5332cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333/* end confdefs.h. */
5334#include <stdarg.h>
5335#include <stdio.h>
f00f02a3 5336struct stat;
83628c60 5337/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5338struct buf { int x; };
5339FILE * (*rcsopen) (struct buf *, struct stat *, int);
5340static char *e (p, i)
5341 char **p;
5342 int i;
5343{
5344 return p[i];
5345}
5346static char *f (char * (*g) (char **, int), char **p, ...)
5347{
5348 char *s;
5349 va_list v;
5350 va_start (v,p);
5351 s = g (p, va_arg (v,int));
5352 va_end (v);
5353 return s;
5354}
5355
5356/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5357 function prototypes and stuff, but not '\xHH' hex character constants.
5358 These don't provoke an error unfortunately, instead are silently treated
5359 as 'x'. The following induces an error, until -std is added to get
5360 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5361 array size at least. It's necessary to write '\x00'==0 to get something
5362 that's true only with -std. */
5363int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5364
5365/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5366 inside strings and character constants. */
5367#define FOO(x) 'x'
5368int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5369
5370int test (int i, double x);
5371struct s1 {int (*f) (int a);};
5372struct s2 {int (*f) (double a);};
5373int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5374int argc;
5375char **argv;
5376int
5377main ()
5378{
5379return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5380 ;
5381 return 0;
5382}
5383_ACEOF
5384for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5385 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5386do
5387 CC="$ac_save_CC $ac_arg"
5388 if ac_fn_c_try_compile "$LINENO"; then :
5389 ac_cv_prog_cc_c89=$ac_arg
5390fi
5391rm -f core conftest.err conftest.$ac_objext
5392 test "x$ac_cv_prog_cc_c89" != "xno" && break
5393done
5394rm -f conftest.$ac_ext
5395CC=$ac_save_CC
5396
5397fi
5398# AC_CACHE_VAL
5399case "x$ac_cv_prog_cc_c89" in
5400 x)
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5402$as_echo "none needed" >&6; } ;;
5403 xno)
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5405$as_echo "unsupported" >&6; } ;;
5406 *)
5407 CC="$CC $ac_cv_prog_cc_c89"
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5409$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5410esac
5411if test "x$ac_cv_prog_cc_c89" != xno; then :
5412
5413fi
5414
5415ac_ext=c
5416ac_cpp='$CPP $CPPFLAGS'
5417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5419ac_compiler_gnu=$ac_cv_c_compiler_gnu
5420
f00f02a3 5421ac_ext=c
5422ac_cpp='$CPP $CPPFLAGS'
5423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5425ac_compiler_gnu=$ac_cv_c_compiler_gnu
5426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5427$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5428if ${am_cv_prog_cc_c_o+:} false; then :
5429 $as_echo_n "(cached) " >&6
5430else
5431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432/* end confdefs.h. */
5433
5434int
5435main ()
5436{
5437
5438 ;
5439 return 0;
5440}
5441_ACEOF
5442 # Make sure it works both with $CC and with simple cc.
5443 # Following AC_PROG_CC_C_O, we do the test twice because some
5444 # compilers refuse to overwrite an existing .o file with -o,
5445 # though they will create one.
5446 am_cv_prog_cc_c_o=yes
5447 for am_i in 1 2; do
5448 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5449 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5450 ac_status=$?
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); } \
5453 && test -f conftest2.$ac_objext; then
5454 : OK
5455 else
5456 am_cv_prog_cc_c_o=no
5457 break
5458 fi
5459 done
5460 rm -f core conftest*
5461 unset am_i
5462fi
5463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5464$as_echo "$am_cv_prog_cc_c_o" >&6; }
5465if test "$am_cv_prog_cc_c_o" != yes; then
5466 # Losing compiler, so override with the script.
5467 # FIXME: It is wrong to rewrite CC.
5468 # But if we don't then we get into trouble of one sort or another.
5469 # A longer-term fix would be to have automake use am__CC in this case,
5470 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5471 CC="$am_aux_dir/compile $CC"
5472fi
5473ac_ext=c
5474ac_cpp='$CPP $CPPFLAGS'
5475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5477ac_compiler_gnu=$ac_cv_c_compiler_gnu
5478
5479
83628c60 5480ac_ext=cpp
5481ac_cpp='$CXXCPP $CPPFLAGS'
5482ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5483ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5484ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5485if test -z "$CXX"; then
5486 if test -n "$CCC"; then
5487 CXX=$CCC
5488 else
5489 if test -n "$ac_tool_prefix"; then
5490 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5491 do
5492 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5493set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5495$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 5496if ${ac_cv_prog_CXX+:} false; then :
83628c60 5497 $as_echo_n "(cached) " >&6
5498else
5499 if test -n "$CXX"; then
5500 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5501else
5502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503for as_dir in $PATH
5504do
5505 IFS=$as_save_IFS
5506 test -z "$as_dir" && as_dir=.
5507 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 5508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
83628c60 5509 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5511 break 2
5512 fi
5513done
5514 done
5515IFS=$as_save_IFS
5516
5517fi
5518fi
5519CXX=$ac_cv_prog_CXX
5520if test -n "$CXX"; then
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5522$as_echo "$CXX" >&6; }
5523else
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525$as_echo "no" >&6; }
5526fi
5527
5528
5529 test -n "$CXX" && break
5530 done
5531fi
5532if test -z "$CXX"; then
5533 ac_ct_CXX=$CXX
5534 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5535do
5536 # Extract the first word of "$ac_prog", so it can be a program name with args.
5537set dummy $ac_prog; ac_word=$2
5538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5539$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 5540if ${ac_cv_prog_ac_ct_CXX+:} false; then :
83628c60 5541 $as_echo_n "(cached) " >&6
5542else
5543 if test -n "$ac_ct_CXX"; then
5544 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5545else
5546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547for as_dir in $PATH
5548do
5549 IFS=$as_save_IFS
5550 test -z "$as_dir" && as_dir=.
5551 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 5552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
83628c60 5553 ac_cv_prog_ac_ct_CXX="$ac_prog"
5554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5555 break 2
5556 fi
5557done
5558 done
5559IFS=$as_save_IFS
5560
5561fi
5562fi
5563ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5564if test -n "$ac_ct_CXX"; then
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5566$as_echo "$ac_ct_CXX" >&6; }
5567else
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5569$as_echo "no" >&6; }
5570fi
5571
5572
5573 test -n "$ac_ct_CXX" && break
5574done
5575
5576 if test "x$ac_ct_CXX" = x; then
5577 CXX="g++"
5578 else
5579 case $cross_compiling:$ac_tool_warned in
5580yes:)
5581{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5582$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5583ac_tool_warned=yes ;;
5584esac
5585 CXX=$ac_ct_CXX
5586 fi
5587fi
5588
5589 fi
5590fi
5591# Provide some information about the compiler.
5592$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5593set X $ac_compile
5594ac_compiler=$2
5595for ac_option in --version -v -V -qversion; do
5596 { { ac_try="$ac_compiler $ac_option >&5"
5597case "(($ac_try" in
5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599 *) ac_try_echo=$ac_try;;
5600esac
5601eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5602$as_echo "$ac_try_echo"; } >&5
5603 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5604 ac_status=$?
5605 if test -s conftest.err; then
5606 sed '10a\
5607... rest of stderr output deleted ...
5608 10q' conftest.err >conftest.er1
5609 cat conftest.er1 >&5
83628c60 5610 fi
f00f02a3 5611 rm -f conftest.er1 conftest.err
83628c60 5612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5613 test $ac_status = 0; }
5614done
5615
5616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5617$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
f00f02a3 5618if ${ac_cv_cxx_compiler_gnu+:} false; then :
83628c60 5619 $as_echo_n "(cached) " >&6
5620else
5621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5622/* end confdefs.h. */
5623
5624int
5625main ()
5626{
5627#ifndef __GNUC__
5628 choke me
5629#endif
5630
5631 ;
5632 return 0;
5633}
5634_ACEOF
5635if ac_fn_cxx_try_compile "$LINENO"; then :
5636 ac_compiler_gnu=yes
5637else
5638 ac_compiler_gnu=no
5639fi
5640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5641ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5642
5643fi
5644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5645$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5646if test $ac_compiler_gnu = yes; then
5647 GXX=yes
5648else
5649 GXX=
5650fi
5651ac_test_CXXFLAGS=${CXXFLAGS+set}
5652ac_save_CXXFLAGS=$CXXFLAGS
5653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5654$as_echo_n "checking whether $CXX accepts -g... " >&6; }
f00f02a3 5655if ${ac_cv_prog_cxx_g+:} false; then :
83628c60 5656 $as_echo_n "(cached) " >&6
5657else
5658 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5659 ac_cxx_werror_flag=yes
5660 ac_cv_prog_cxx_g=no
5661 CXXFLAGS="-g"
5662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5663/* end confdefs.h. */
5664
5665int
5666main ()
5667{
5668
5669 ;
5670 return 0;
5671}
5672_ACEOF
5673if ac_fn_cxx_try_compile "$LINENO"; then :
5674 ac_cv_prog_cxx_g=yes
5675else
5676 CXXFLAGS=""
5677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5678/* end confdefs.h. */
5679
5680int
5681main ()
5682{
5683
5684 ;
5685 return 0;
5686}
5687_ACEOF
5688if ac_fn_cxx_try_compile "$LINENO"; then :
5689
5690else
5691 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5692 CXXFLAGS="-g"
5693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5694/* end confdefs.h. */
5695
5696int
5697main ()
5698{
5699
5700 ;
5701 return 0;
5702}
5703_ACEOF
5704if ac_fn_cxx_try_compile "$LINENO"; then :
5705 ac_cv_prog_cxx_g=yes
5706fi
5707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5708fi
5709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5710fi
5711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5712 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5713fi
5714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5715$as_echo "$ac_cv_prog_cxx_g" >&6; }
5716if test "$ac_test_CXXFLAGS" = set; then
5717 CXXFLAGS=$ac_save_CXXFLAGS
5718elif test $ac_cv_prog_cxx_g = yes; then
5719 if test "$GXX" = yes; then
5720 CXXFLAGS="-g -O2"
5721 else
5722 CXXFLAGS="-g"
5723 fi
5724else
5725 if test "$GXX" = yes; then
5726 CXXFLAGS="-O2"
5727 else
5728 CXXFLAGS=
5729 fi
5730fi
5731ac_ext=c
5732ac_cpp='$CPP $CPPFLAGS'
5733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5735ac_compiler_gnu=$ac_cv_c_compiler_gnu
5736
5737depcc="$CXX" am_compiler_list=
5738
5739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5740$as_echo_n "checking dependency style of $depcc... " >&6; }
f00f02a3 5741if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
83628c60 5742 $as_echo_n "(cached) " >&6
5743else
5744 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5745 # We make a subdir and do the tests there. Otherwise we can end up
5746 # making bogus files that we don't know about and never remove. For
5747 # instance it was reported that on HP-UX the gcc test will end up
f00f02a3 5748 # making a dummy file named 'D' -- because '-MD' means "put the output
5749 # in D".
a77a4adf 5750 rm -rf conftest.dir
83628c60 5751 mkdir conftest.dir
5752 # Copy depcomp to subdir because otherwise we won't find it if we're
5753 # using a relative directory.
5754 cp "$am_depcomp" conftest.dir
5755 cd conftest.dir
5756 # We will build objects and dependencies in a subdirectory because
5757 # it helps to detect inapplicable dependency modes. For instance
5758 # both Tru64's cc and ICC support -MD to output dependencies as a
5759 # side effect of compilation, but ICC will put the dependencies in
5760 # the current directory while Tru64 will put them in the object
5761 # directory.
5762 mkdir sub
5763
5764 am_cv_CXX_dependencies_compiler_type=none
5765 if test "$am_compiler_list" = ""; then
5766 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5767 fi
5768 am__universal=false
5769 case " $depcc " in #(
5770 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5771 esac
5772
5773 for depmode in $am_compiler_list; do
5774 # Setup a source with many dependencies, because some compilers
5775 # like to wrap large dependency lists on column 80 (with \), and
5776 # we should not choose a depcomp mode which is confused by this.
5777 #
5778 # We need to recreate these files for each test, as the compiler may
5779 # overwrite some of them when testing with obscure command lines.
5780 # This happens at least with the AIX C compiler.
5781 : > sub/conftest.c
5782 for i in 1 2 3 4 5 6; do
5783 echo '#include "conftst'$i'.h"' >> sub/conftest.c
f00f02a3 5784 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5785 # Solaris 10 /bin/sh.
5786 echo '/* dummy */' > sub/conftst$i.h
83628c60 5787 done
5788 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5789
f00f02a3 5790 # We check with '-c' and '-o' for the sake of the "dashmstdout"
83628c60 5791 # mode. It turns out that the SunPro C++ compiler does not properly
f00f02a3 5792 # handle '-M -o', and we need to detect this. Also, some Intel
5793 # versions had trouble with output in subdirs.
83628c60 5794 am__obj=sub/conftest.${OBJEXT-o}
5795 am__minus_obj="-o $am__obj"
5796 case $depmode in
5797 gcc)
5798 # This depmode causes a compiler race in universal mode.
5799 test "$am__universal" = false || continue
5800 ;;
5801 nosideeffect)
f00f02a3 5802 # After this tag, mechanisms are not by side-effect, so they'll
5803 # only be used when explicitly requested.
83628c60 5804 if test "x$enable_dependency_tracking" = xyes; then
5805 continue
5806 else
5807 break
5808 fi
5809 ;;
a77a4adf 5810 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
f00f02a3 5811 # This compiler won't grok '-c -o', but also, the minuso test has
83628c60 5812 # not run yet. These depmodes are late enough in the game, and
5813 # so weak that their functioning should not be impacted.
5814 am__obj=conftest.${OBJEXT-o}
5815 am__minus_obj=
5816 ;;
5817 none) break ;;
5818 esac
5819 if depmode=$depmode \
5820 source=sub/conftest.c object=$am__obj \
5821 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5822 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5823 >/dev/null 2>conftest.err &&
5824 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5825 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5826 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5827 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5828 # icc doesn't choke on unknown options, it will just issue warnings
5829 # or remarks (even with -Werror). So we grep stderr for any message
5830 # that says an option was ignored or not supported.
5831 # When given -MP, icc 7.0 and 7.1 complain thusly:
5832 # icc: Command line warning: ignoring option '-M'; no argument required
5833 # The diagnosis changed in icc 8.0:
5834 # icc: Command line remark: option '-MP' not supported
5835 if (grep 'ignoring option' conftest.err ||
5836 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5837 am_cv_CXX_dependencies_compiler_type=$depmode
5838 break
5839 fi
5840 fi
5841 done
5842
5843 cd ..
5844 rm -rf conftest.dir
5845else
5846 am_cv_CXX_dependencies_compiler_type=none
5847fi
5848
5849fi
5850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5851$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5852CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5853
5854 if
5855 test "x$enable_dependency_tracking" != xno \
5856 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5857 am__fastdepCXX_TRUE=
5858 am__fastdepCXX_FALSE='#'
5859else
5860 am__fastdepCXX_TRUE='#'
5861 am__fastdepCXX_FALSE=
5862fi
5863
5864
5865
5866
83628c60 5867
5868
5869
5870
5871
5872# Newer automakes demand CCAS and CCASFLAGS.
5873: ${CCAS='$(CC)'}
5874: ${CCASFLAGS='$(CFLAGS)'}
5875
5876
5877
5878if test -n "$ac_tool_prefix"; then
5879 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5880set dummy ${ac_tool_prefix}as; ac_word=$2
5881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5882$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 5883if ${ac_cv_prog_AS+:} false; then :
83628c60 5884 $as_echo_n "(cached) " >&6
5885else
5886 if test -n "$AS"; then
5887 ac_cv_prog_AS="$AS" # Let the user override the test.
5888else
5889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890for as_dir in $PATH
5891do
5892 IFS=$as_save_IFS
5893 test -z "$as_dir" && as_dir=.
5894 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 5895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
83628c60 5896 ac_cv_prog_AS="${ac_tool_prefix}as"
5897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5898 break 2
5899 fi
5900done
5901 done
5902IFS=$as_save_IFS
5903
5904fi
5905fi
5906AS=$ac_cv_prog_AS
5907if test -n "$AS"; then
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5909$as_echo "$AS" >&6; }
5910else
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5912$as_echo "no" >&6; }
5913fi
5914
5915
5916fi
5917if test -z "$ac_cv_prog_AS"; then
5918 ac_ct_AS=$AS
5919 # Extract the first word of "as", so it can be a program name with args.
5920set dummy as; ac_word=$2
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5922$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 5923if ${ac_cv_prog_ac_ct_AS+:} false; then :
83628c60 5924 $as_echo_n "(cached) " >&6
5925else
5926 if test -n "$ac_ct_AS"; then
5927 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5928else
5929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930for as_dir in $PATH
5931do
5932 IFS=$as_save_IFS
5933 test -z "$as_dir" && as_dir=.
5934 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 5935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
83628c60 5936 ac_cv_prog_ac_ct_AS="as"
5937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5938 break 2
5939 fi
5940done
5941 done
5942IFS=$as_save_IFS
5943
5944fi
5945fi
5946ac_ct_AS=$ac_cv_prog_ac_ct_AS
5947if test -n "$ac_ct_AS"; then
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5949$as_echo "$ac_ct_AS" >&6; }
5950else
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5952$as_echo "no" >&6; }
5953fi
5954
5955 if test "x$ac_ct_AS" = x; then
5956 AS=""
5957 else
5958 case $cross_compiling:$ac_tool_warned in
5959yes:)
5960{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5961$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5962ac_tool_warned=yes ;;
5963esac
5964 AS=$ac_ct_AS
5965 fi
5966else
5967 AS="$ac_cv_prog_AS"
5968fi
5969
5970if test -n "$ac_tool_prefix"; then
5971 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5972set dummy ${ac_tool_prefix}ar; ac_word=$2
5973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5974$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 5975if ${ac_cv_prog_AR+:} false; then :
83628c60 5976 $as_echo_n "(cached) " >&6
5977else
5978 if test -n "$AR"; then
5979 ac_cv_prog_AR="$AR" # Let the user override the test.
5980else
5981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982for as_dir in $PATH
5983do
5984 IFS=$as_save_IFS
5985 test -z "$as_dir" && as_dir=.
5986 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 5987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
83628c60 5988 ac_cv_prog_AR="${ac_tool_prefix}ar"
5989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5990 break 2
5991 fi
5992done
5993 done
5994IFS=$as_save_IFS
5995
5996fi
5997fi
5998AR=$ac_cv_prog_AR
5999if test -n "$AR"; then
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6001$as_echo "$AR" >&6; }
6002else
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6004$as_echo "no" >&6; }
6005fi
6006
6007
6008fi
6009if test -z "$ac_cv_prog_AR"; then
6010 ac_ct_AR=$AR
6011 # Extract the first word of "ar", so it can be a program name with args.
6012set dummy ar; ac_word=$2
6013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6014$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 6015if ${ac_cv_prog_ac_ct_AR+:} false; then :
83628c60 6016 $as_echo_n "(cached) " >&6
6017else
6018 if test -n "$ac_ct_AR"; then
6019 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6020else
6021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022for as_dir in $PATH
6023do
6024 IFS=$as_save_IFS
6025 test -z "$as_dir" && as_dir=.
6026 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 6027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
83628c60 6028 ac_cv_prog_ac_ct_AR="ar"
6029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6030 break 2
6031 fi
6032done
6033 done
6034IFS=$as_save_IFS
6035
6036fi
6037fi
6038ac_ct_AR=$ac_cv_prog_ac_ct_AR
6039if test -n "$ac_ct_AR"; then
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6041$as_echo "$ac_ct_AR" >&6; }
6042else
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6044$as_echo "no" >&6; }
6045fi
6046
6047 if test "x$ac_ct_AR" = x; then
6048 AR=""
6049 else
6050 case $cross_compiling:$ac_tool_warned in
6051yes:)
6052{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6053$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6054ac_tool_warned=yes ;;
6055esac
6056 AR=$ac_ct_AR
6057 fi
6058else
6059 AR="$ac_cv_prog_AR"
6060fi
6061
6062if test -n "$ac_tool_prefix"; then
6063 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6064set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6066$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 6067if ${ac_cv_prog_RANLIB+:} false; then :
83628c60 6068 $as_echo_n "(cached) " >&6
6069else
6070 if test -n "$RANLIB"; then
6071 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6072else
6073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074for as_dir in $PATH
6075do
6076 IFS=$as_save_IFS
6077 test -z "$as_dir" && as_dir=.
6078 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 6079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
83628c60 6080 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6082 break 2
6083 fi
6084done
6085 done
6086IFS=$as_save_IFS
6087
6088fi
6089fi
6090RANLIB=$ac_cv_prog_RANLIB
6091if test -n "$RANLIB"; then
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6093$as_echo "$RANLIB" >&6; }
6094else
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6096$as_echo "no" >&6; }
6097fi
6098
6099
6100fi
6101if test -z "$ac_cv_prog_RANLIB"; then
6102 ac_ct_RANLIB=$RANLIB
6103 # Extract the first word of "ranlib", so it can be a program name with args.
6104set dummy ranlib; ac_word=$2
6105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6106$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 6107if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
83628c60 6108 $as_echo_n "(cached) " >&6
6109else
6110 if test -n "$ac_ct_RANLIB"; then
6111 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6112else
6113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114for as_dir in $PATH
6115do
6116 IFS=$as_save_IFS
6117 test -z "$as_dir" && as_dir=.
6118 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 6119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
83628c60 6120 ac_cv_prog_ac_ct_RANLIB="ranlib"
6121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6122 break 2
6123 fi
6124done
6125 done
6126IFS=$as_save_IFS
6127
6128fi
6129fi
6130ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6131if test -n "$ac_ct_RANLIB"; then
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6133$as_echo "$ac_ct_RANLIB" >&6; }
6134else
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6136$as_echo "no" >&6; }
6137fi
6138
6139 if test "x$ac_ct_RANLIB" = x; then
6140 RANLIB=":"
6141 else
6142 case $cross_compiling:$ac_tool_warned in
6143yes:)
6144{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6145$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6146ac_tool_warned=yes ;;
6147esac
6148 RANLIB=$ac_ct_RANLIB
6149 fi
6150else
6151 RANLIB="$ac_cv_prog_RANLIB"
6152fi
6153
6154
6155# Configure libtool
6156enable_dlopen=yes
6157
6158
6159
6160case `pwd` in
6161 *\ * | *\ *)
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6163$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
b710ec85 6164esac
6165
6166
6167
6168macro_version='2.2.7a'
6169macro_revision='1.3134'
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183ltmain="$ac_aux_dir/ltmain.sh"
6184
6185# Backslashify metacharacters that are still active within
6186# double-quoted strings.
6187sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6188
6189# Same as above, but do not quote variable references.
6190double_quote_subst='s/\(["`\\]\)/\\\1/g'
6191
6192# Sed substitution to delay expansion of an escaped shell variable in a
6193# double_quote_subst'ed string.
6194delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6195
6196# Sed substitution to delay expansion of an escaped single quote.
6197delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6198
6199# Sed substitution to avoid accidental globbing in evaled expressions
6200no_glob_subst='s/\*/\\\*/g'
6201
6202ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6203ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6204ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6205
6206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6207$as_echo_n "checking how to print strings... " >&6; }
6208# Test print first, because it will be a builtin if present.
6209if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6210 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6211 ECHO='print -r --'
6212elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6213 ECHO='printf %s\n'
6214else
6215 # Use this function as a fallback that always works.
6216 func_fallback_echo ()
6217 {
6218 eval 'cat <<_LTECHO_EOF
6219$1
6220_LTECHO_EOF'
6221 }
6222 ECHO='func_fallback_echo'
6223fi
6224
6225# func_echo_all arg...
6226# Invoke $ECHO with all args, space-separated.
6227func_echo_all ()
6228{
6229 $ECHO ""
6230}
6231
6232case "$ECHO" in
6233 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6234$as_echo "printf" >&6; } ;;
6235 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6236$as_echo "print -r" >&6; } ;;
6237 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6238$as_echo "cat" >&6; } ;;
6239esac
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6255$as_echo_n "checking for a sed that does not truncate output... " >&6; }
f00f02a3 6256if ${ac_cv_path_SED+:} false; then :
b710ec85 6257 $as_echo_n "(cached) " >&6
6258else
83628c60 6259 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6260 for ac_i in 1 2 3 4 5 6 7; do
6261 ac_script="$ac_script$as_nl$ac_script"
6262 done
6263 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6264 { ac_script=; unset ac_script;}
6265 if test -z "$SED"; then
6266 ac_path_SED_found=false
b710ec85 6267 # Loop through the user's path and test for each of PROGNAME-LIST
6268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
83628c60 6269for as_dir in $PATH
b710ec85 6270do
6271 IFS=$as_save_IFS
6272 test -z "$as_dir" && as_dir=.
83628c60 6273 for ac_prog in sed gsed; do
b710ec85 6274 for ac_exec_ext in '' $ac_executable_extensions; do
83628c60 6275 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
f00f02a3 6276 as_fn_executable_p "$ac_path_SED" || continue
83628c60 6277# Check for GNU ac_path_SED and select it if it is found.
6278 # Check for GNU $ac_path_SED
6279case `"$ac_path_SED" --version 2>&1` in
b710ec85 6280*GNU*)
83628c60 6281 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
b710ec85 6282*)
6283 ac_count=0
6284 $as_echo_n 0123456789 >"conftest.in"
6285 while :
6286 do
6287 cat "conftest.in" "conftest.in" >"conftest.tmp"
6288 mv "conftest.tmp" "conftest.in"
6289 cp "conftest.in" "conftest.nl"
83628c60 6290 $as_echo '' >> "conftest.nl"
6291 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
b710ec85 6292 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6293 as_fn_arith $ac_count + 1 && ac_count=$as_val
83628c60 6294 if test $ac_count -gt ${ac_path_SED_max-0}; then
b710ec85 6295 # Best one so far, save it but keep looking for a better one
83628c60 6296 ac_cv_path_SED="$ac_path_SED"
6297 ac_path_SED_max=$ac_count
b710ec85 6298 fi
6299 # 10*(2^10) chars as input seems more than enough
6300 test $ac_count -gt 10 && break
6301 done
6302 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6303esac
6304
83628c60 6305 $ac_path_SED_found && break 3
b710ec85 6306 done
6307 done
6308 done
6309IFS=$as_save_IFS
83628c60 6310 if test -z "$ac_cv_path_SED"; then
f00f02a3 6311 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
b710ec85 6312 fi
6313else
83628c60 6314 ac_cv_path_SED=$SED
b710ec85 6315fi
6316
b710ec85 6317fi
83628c60 6318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6319$as_echo "$ac_cv_path_SED" >&6; }
6320 SED="$ac_cv_path_SED"
6321 rm -f conftest.sed
6322
6323test -z "$SED" && SED=sed
6324Xsed="$SED -e 1s/^X//"
6325
6326
6327
6328
6329
6330
6331
6332
6333
b710ec85 6334
6335
6336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6337$as_echo_n "checking for fgrep... " >&6; }
f00f02a3 6338if ${ac_cv_path_FGREP+:} false; then :
b710ec85 6339 $as_echo_n "(cached) " >&6
6340else
6341 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6342 then ac_cv_path_FGREP="$GREP -F"
6343 else
6344 if test -z "$FGREP"; then
6345 ac_path_FGREP_found=false
6346 # Loop through the user's path and test for each of PROGNAME-LIST
6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6349do
6350 IFS=$as_save_IFS
6351 test -z "$as_dir" && as_dir=.
6352 for ac_prog in fgrep; do
6353 for ac_exec_ext in '' $ac_executable_extensions; do
6354 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
f00f02a3 6355 as_fn_executable_p "$ac_path_FGREP" || continue
b710ec85 6356# Check for GNU ac_path_FGREP and select it if it is found.
6357 # Check for GNU $ac_path_FGREP
6358case `"$ac_path_FGREP" --version 2>&1` in
6359*GNU*)
6360 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6361*)
6362 ac_count=0
6363 $as_echo_n 0123456789 >"conftest.in"
6364 while :
6365 do
6366 cat "conftest.in" "conftest.in" >"conftest.tmp"
6367 mv "conftest.tmp" "conftest.in"
6368 cp "conftest.in" "conftest.nl"
6369 $as_echo 'FGREP' >> "conftest.nl"
6370 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6371 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6372 as_fn_arith $ac_count + 1 && ac_count=$as_val
6373 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6374 # Best one so far, save it but keep looking for a better one
6375 ac_cv_path_FGREP="$ac_path_FGREP"
6376 ac_path_FGREP_max=$ac_count
6377 fi
6378 # 10*(2^10) chars as input seems more than enough
6379 test $ac_count -gt 10 && break
6380 done
6381 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6382esac
6383
6384 $ac_path_FGREP_found && break 3
6385 done
6386 done
6387 done
6388IFS=$as_save_IFS
6389 if test -z "$ac_cv_path_FGREP"; then
f00f02a3 6390 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
b710ec85 6391 fi
6392else
6393 ac_cv_path_FGREP=$FGREP
6394fi
6395
6396 fi
6397fi
6398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6399$as_echo "$ac_cv_path_FGREP" >&6; }
6400 FGREP="$ac_cv_path_FGREP"
6401
6402
6403test -z "$GREP" && GREP=grep
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423# Check whether --with-gnu-ld was given.
6424if test "${with_gnu_ld+set}" = set; then :
6425 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6426else
6427 with_gnu_ld=no
6428fi
6429
6430ac_prog=ld
6431if test "$GCC" = yes; then
6432 # Check if gcc -print-prog-name=ld gives a path.
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6434$as_echo_n "checking for ld used by $CC... " >&6; }
6435 case $host in
6436 *-*-mingw*)
6437 # gcc leaves a trailing carriage return which upsets mingw
6438 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6439 *)
6440 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6441 esac
6442 case $ac_prog in
6443 # Accept absolute paths.
6444 [\\/]* | ?:[\\/]*)
6445 re_direlt='/[^/][^/]*/\.\./'
6446 # Canonicalize the pathname of ld
6447 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6448 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6449 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6450 done
6451 test -z "$LD" && LD="$ac_prog"
6452 ;;
6453 "")
6454 # If it fails, then pretend we aren't using GCC.
6455 ac_prog=ld
6456 ;;
6457 *)
6458 # If it is relative, then search for the first ld in PATH.
6459 with_gnu_ld=unknown
6460 ;;
6461 esac
6462elif test "$with_gnu_ld" = yes; then
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6464$as_echo_n "checking for GNU ld... " >&6; }
6465else
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6467$as_echo_n "checking for non-GNU ld... " >&6; }
6468fi
f00f02a3 6469if ${lt_cv_path_LD+:} false; then :
b710ec85 6470 $as_echo_n "(cached) " >&6
6471else
6472 if test -z "$LD"; then
6473 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6474 for ac_dir in $PATH; do
6475 IFS="$lt_save_ifs"
6476 test -z "$ac_dir" && ac_dir=.
6477 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6478 lt_cv_path_LD="$ac_dir/$ac_prog"
6479 # Check to see if the program is GNU ld. I'd rather use --version,
6480 # but apparently some variants of GNU ld only accept -v.
6481 # Break only if it was the GNU/non-GNU ld that we prefer.
6482 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6483 *GNU* | *'with BFD'*)
6484 test "$with_gnu_ld" != no && break
6485 ;;
6486 *)
6487 test "$with_gnu_ld" != yes && break
6488 ;;
6489 esac
6490 fi
6491 done
6492 IFS="$lt_save_ifs"
6493else
6494 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6495fi
6496fi
6497
6498LD="$lt_cv_path_LD"
6499if test -n "$LD"; then
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6501$as_echo "$LD" >&6; }
6502else
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6504$as_echo "no" >&6; }
6505fi
f00f02a3 6506test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
b710ec85 6507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6508$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
f00f02a3 6509if ${lt_cv_prog_gnu_ld+:} false; then :
b710ec85 6510 $as_echo_n "(cached) " >&6
6511else
6512 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6513case `$LD -v 2>&1 </dev/null` in
6514*GNU* | *'with BFD'*)
6515 lt_cv_prog_gnu_ld=yes
6516 ;;
6517*)
6518 lt_cv_prog_gnu_ld=no
6519 ;;
6520esac
6521fi
6522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6523$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6524with_gnu_ld=$lt_cv_prog_gnu_ld
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6535$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
f00f02a3 6536if ${lt_cv_path_NM+:} false; then :
b710ec85 6537 $as_echo_n "(cached) " >&6
6538else
6539 if test -n "$NM"; then
6540 # Let the user override the test.
6541 lt_cv_path_NM="$NM"
6542else
6543 lt_nm_to_check="${ac_tool_prefix}nm"
6544 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6545 lt_nm_to_check="$lt_nm_to_check nm"
6546 fi
6547 for lt_tmp_nm in $lt_nm_to_check; do
6548 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6549 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6550 IFS="$lt_save_ifs"
6551 test -z "$ac_dir" && ac_dir=.
6552 tmp_nm="$ac_dir/$lt_tmp_nm"
6553 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6554 # Check to see if the nm accepts a BSD-compat flag.
6555 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6556 # nm: unknown option "B" ignored
6557 # Tru64's nm complains that /dev/null is an invalid object file
6558 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6559 */dev/null* | *'Invalid file or object type'*)
6560 lt_cv_path_NM="$tmp_nm -B"
6561 break
6562 ;;
6563 *)
6564 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6565 */dev/null*)
6566 lt_cv_path_NM="$tmp_nm -p"
6567 break
6568 ;;
6569 *)
6570 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6571 continue # so that we can try to find one that supports BSD flags
6572 ;;
6573 esac
6574 ;;
6575 esac
6576 fi
6577 done
6578 IFS="$lt_save_ifs"
6579 done
6580 : ${lt_cv_path_NM=no}
6581fi
6582fi
6583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6584$as_echo "$lt_cv_path_NM" >&6; }
6585if test "$lt_cv_path_NM" != "no"; then
6586 NM="$lt_cv_path_NM"
6587else
6588 # Didn't find any BSD compatible name lister, look for dumpbin.
6589 if test -n "$DUMPBIN"; then :
6590 # Let the user override the test.
6591 else
6592 if test -n "$ac_tool_prefix"; then
6593 for ac_prog in dumpbin "link -dump"
6594 do
6595 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6596set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6598$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 6599if ${ac_cv_prog_DUMPBIN+:} false; then :
b710ec85 6600 $as_echo_n "(cached) " >&6
6601else
6602 if test -n "$DUMPBIN"; then
6603 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6604else
6605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606for as_dir in $PATH
6607do
6608 IFS=$as_save_IFS
6609 test -z "$as_dir" && as_dir=.
6610 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 6611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b710ec85 6612 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6614 break 2
6615 fi
6616done
6617 done
6618IFS=$as_save_IFS
6619
6620fi
6621fi
6622DUMPBIN=$ac_cv_prog_DUMPBIN
6623if test -n "$DUMPBIN"; then
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6625$as_echo "$DUMPBIN" >&6; }
6626else
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6628$as_echo "no" >&6; }
6629fi
6630
6631
6632 test -n "$DUMPBIN" && break
6633 done
6634fi
6635if test -z "$DUMPBIN"; then
6636 ac_ct_DUMPBIN=$DUMPBIN
6637 for ac_prog in dumpbin "link -dump"
6638do
6639 # Extract the first word of "$ac_prog", so it can be a program name with args.
6640set dummy $ac_prog; ac_word=$2
6641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6642$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 6643if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
b710ec85 6644 $as_echo_n "(cached) " >&6
6645else
6646 if test -n "$ac_ct_DUMPBIN"; then
6647 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6648else
6649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650for as_dir in $PATH
6651do
6652 IFS=$as_save_IFS
6653 test -z "$as_dir" && as_dir=.
6654 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 6655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b710ec85 6656 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6658 break 2
6659 fi
6660done
6661 done
6662IFS=$as_save_IFS
6663
6664fi
6665fi
6666ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6667if test -n "$ac_ct_DUMPBIN"; then
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6669$as_echo "$ac_ct_DUMPBIN" >&6; }
6670else
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6672$as_echo "no" >&6; }
6673fi
6674
6675
6676 test -n "$ac_ct_DUMPBIN" && break
6677done
6678
6679 if test "x$ac_ct_DUMPBIN" = x; then
6680 DUMPBIN=":"
6681 else
6682 case $cross_compiling:$ac_tool_warned in
6683yes:)
6684{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6686ac_tool_warned=yes ;;
6687esac
6688 DUMPBIN=$ac_ct_DUMPBIN
6689 fi
6690fi
6691
6692 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6693 *COFF*)
6694 DUMPBIN="$DUMPBIN -symbols"
6695 ;;
6696 *)
6697 DUMPBIN=:
6698 ;;
6699 esac
6700 fi
6701
6702 if test "$DUMPBIN" != ":"; then
6703 NM="$DUMPBIN"
6704 fi
6705fi
6706test -z "$NM" && NM=nm
6707
6708
6709
6710
6711
6712
6713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6714$as_echo_n "checking the name lister ($NM) interface... " >&6; }
f00f02a3 6715if ${lt_cv_nm_interface+:} false; then :
b710ec85 6716 $as_echo_n "(cached) " >&6
6717else
6718 lt_cv_nm_interface="BSD nm"
6719 echo "int some_variable = 0;" > conftest.$ac_ext
6720 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6721 (eval "$ac_compile" 2>conftest.err)
6722 cat conftest.err >&5
6723 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6724 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6725 cat conftest.err >&5
6726 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6727 cat conftest.out >&5
6728 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6729 lt_cv_nm_interface="MS dumpbin"
6730 fi
6731 rm -f conftest*
6732fi
6733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6734$as_echo "$lt_cv_nm_interface" >&6; }
6735
6736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6737$as_echo_n "checking whether ln -s works... " >&6; }
6738LN_S=$as_ln_s
6739if test "$LN_S" = "ln -s"; then
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6741$as_echo "yes" >&6; }
6742else
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6744$as_echo "no, using $LN_S" >&6; }
6745fi
6746
6747# find the maximum length of command line arguments
6748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6749$as_echo_n "checking the maximum length of command line arguments... " >&6; }
f00f02a3 6750if ${lt_cv_sys_max_cmd_len+:} false; then :
b710ec85 6751 $as_echo_n "(cached) " >&6
6752else
6753 i=0
6754 teststring="ABCD"
6755
6756 case $build_os in
6757 msdosdjgpp*)
6758 # On DJGPP, this test can blow up pretty badly due to problems in libc
6759 # (any single argument exceeding 2000 bytes causes a buffer overrun
6760 # during glob expansion). Even if it were fixed, the result of this
6761 # check would be larger than it should be.
6762 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6763 ;;
6764
6765 gnu*)
6766 # Under GNU Hurd, this test is not required because there is
6767 # no limit to the length of command line arguments.
6768 # Libtool will interpret -1 as no limit whatsoever
6769 lt_cv_sys_max_cmd_len=-1;
6770 ;;
6771
6772 cygwin* | mingw* | cegcc*)
6773 # On Win9x/ME, this test blows up -- it succeeds, but takes
6774 # about 5 minutes as the teststring grows exponentially.
6775 # Worse, since 9x/ME are not pre-emptively multitasking,
6776 # you end up with a "frozen" computer, even though with patience
6777 # the test eventually succeeds (with a max line length of 256k).
6778 # Instead, let's just punt: use the minimum linelength reported by
6779 # all of the supported platforms: 8192 (on NT/2K/XP).
6780 lt_cv_sys_max_cmd_len=8192;
6781 ;;
6782
6783 mint*)
6784 # On MiNT this can take a long time and run out of memory.
6785 lt_cv_sys_max_cmd_len=8192;
6786 ;;
6787
6788 amigaos*)
6789 # On AmigaOS with pdksh, this test takes hours, literally.
6790 # So we just punt and use a minimum line length of 8192.
6791 lt_cv_sys_max_cmd_len=8192;
6792 ;;
6793
6794 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6795 # This has been around since 386BSD, at least. Likely further.
6796 if test -x /sbin/sysctl; then
6797 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6798 elif test -x /usr/sbin/sysctl; then
6799 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6800 else
6801 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6802 fi
6803 # And add a safety zone
6804 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6805 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6806 ;;
6807
6808 interix*)
6809 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6810 lt_cv_sys_max_cmd_len=196608
6811 ;;
6812
6813 osf*)
6814 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6815 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6816 # nice to cause kernel panics so lets avoid the loop below.
6817 # First set a reasonable default.
6818 lt_cv_sys_max_cmd_len=16384
6819 #
6820 if test -x /sbin/sysconfig; then
6821 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6822 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6823 esac
6824 fi
6825 ;;
6826 sco3.2v5*)
6827 lt_cv_sys_max_cmd_len=102400
6828 ;;
6829 sysv5* | sco5v6* | sysv4.2uw2*)
6830 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6831 if test -n "$kargmax"; then
6832 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6833 else
6834 lt_cv_sys_max_cmd_len=32768
6835 fi
6836 ;;
6837 *)
6838 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6839 if test -n "$lt_cv_sys_max_cmd_len"; then
6840 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6841 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6842 else
6843 # Make teststring a little bigger before we do anything with it.
6844 # a 1K string should be a reasonable start.
6845 for i in 1 2 3 4 5 6 7 8 ; do
6846 teststring=$teststring$teststring
6847 done
6848 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6849 # If test is not a shell built-in, we'll probably end up computing a
6850 # maximum length that is only half of the actual maximum length, but
6851 # we can't tell.
6852 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6853 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6854 test $i != 17 # 1/2 MB should be enough
6855 do
6856 i=`expr $i + 1`
6857 teststring=$teststring$teststring
6858 done
6859 # Only check the string length outside the loop.
6860 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6861 teststring=
6862 # Add a significant safety factor because C++ compilers can tack on
6863 # massive amounts of additional arguments before passing them to the
6864 # linker. It appears as though 1/2 is a usable value.
6865 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6866 fi
6867 ;;
6868 esac
6869
6870fi
6871
6872if test -n $lt_cv_sys_max_cmd_len ; then
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6874$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6875else
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6877$as_echo "none" >&6; }
6878fi
6879max_cmd_len=$lt_cv_sys_max_cmd_len
6880
6881
6882
6883
6884
6885
6886: ${CP="cp -f"}
6887: ${MV="mv -f"}
6888: ${RM="rm -f"}
6889
6890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6891$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6892# Try some XSI features
6893xsi_shell=no
6894( _lt_dummy="a/b/c"
6895 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6896 = c,a/b,, \
6897 && eval 'test $(( 1 + 1 )) -eq 2 \
6898 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6899 && xsi_shell=yes
6900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6901$as_echo "$xsi_shell" >&6; }
6902
6903
6904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6905$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6906lt_shell_append=no
6907( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6908 >/dev/null 2>&1 \
6909 && lt_shell_append=yes
6910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6911$as_echo "$lt_shell_append" >&6; }
6912
6913
6914if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6915 lt_unset=unset
6916else
6917 lt_unset=false
6918fi
6919
6920
6921
6922
6923
6924# test EBCDIC or ASCII
6925case `echo X|tr X '\101'` in
6926 A) # ASCII based system
6927 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6928 lt_SP2NL='tr \040 \012'
6929 lt_NL2SP='tr \015\012 \040\040'
6930 ;;
6931 *) # EBCDIC based system
6932 lt_SP2NL='tr \100 \n'
6933 lt_NL2SP='tr \r\n \100\100'
6934 ;;
6935esac
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6946$as_echo_n "checking for $LD option to reload object files... " >&6; }
f00f02a3 6947if ${lt_cv_ld_reload_flag+:} false; then :
b710ec85 6948 $as_echo_n "(cached) " >&6
6949else
6950 lt_cv_ld_reload_flag='-r'
6951fi
6952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6953$as_echo "$lt_cv_ld_reload_flag" >&6; }
6954reload_flag=$lt_cv_ld_reload_flag
6955case $reload_flag in
6956"" | " "*) ;;
6957*) reload_flag=" $reload_flag" ;;
6958esac
6959reload_cmds='$LD$reload_flag -o $output$reload_objs'
6960case $host_os in
6961 darwin*)
6962 if test "$GCC" = yes; then
6963 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6964 else
6965 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6966 fi
6967 ;;
6968esac
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978if test -n "$ac_tool_prefix"; then
6979 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6980set dummy ${ac_tool_prefix}objdump; ac_word=$2
6981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6982$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 6983if ${ac_cv_prog_OBJDUMP+:} false; then :
b710ec85 6984 $as_echo_n "(cached) " >&6
6985else
6986 if test -n "$OBJDUMP"; then
6987 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6988else
6989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990for as_dir in $PATH
6991do
6992 IFS=$as_save_IFS
6993 test -z "$as_dir" && as_dir=.
6994 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 6995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b710ec85 6996 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6998 break 2
6999 fi
7000done
7001 done
7002IFS=$as_save_IFS
7003
7004fi
7005fi
7006OBJDUMP=$ac_cv_prog_OBJDUMP
7007if test -n "$OBJDUMP"; then
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7009$as_echo "$OBJDUMP" >&6; }
7010else
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7012$as_echo "no" >&6; }
7013fi
7014
7015
7016fi
7017if test -z "$ac_cv_prog_OBJDUMP"; then
7018 ac_ct_OBJDUMP=$OBJDUMP
7019 # Extract the first word of "objdump", so it can be a program name with args.
7020set dummy objdump; ac_word=$2
7021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7022$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7023if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
b710ec85 7024 $as_echo_n "(cached) " >&6
7025else
7026 if test -n "$ac_ct_OBJDUMP"; then
7027 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7028else
7029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030for as_dir in $PATH
7031do
7032 IFS=$as_save_IFS
7033 test -z "$as_dir" && as_dir=.
7034 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b710ec85 7036 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7038 break 2
7039 fi
7040done
7041 done
7042IFS=$as_save_IFS
7043
7044fi
7045fi
7046ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7047if test -n "$ac_ct_OBJDUMP"; then
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7049$as_echo "$ac_ct_OBJDUMP" >&6; }
7050else
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052$as_echo "no" >&6; }
7053fi
7054
7055 if test "x$ac_ct_OBJDUMP" = x; then
7056 OBJDUMP="false"
7057 else
7058 case $cross_compiling:$ac_tool_warned in
7059yes:)
7060{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7061$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7062ac_tool_warned=yes ;;
7063esac
7064 OBJDUMP=$ac_ct_OBJDUMP
7065 fi
7066else
7067 OBJDUMP="$ac_cv_prog_OBJDUMP"
7068fi
7069
7070test -z "$OBJDUMP" && OBJDUMP=objdump
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7081$as_echo_n "checking how to recognize dependent libraries... " >&6; }
f00f02a3 7082if ${lt_cv_deplibs_check_method+:} false; then :
b710ec85 7083 $as_echo_n "(cached) " >&6
7084else
7085 lt_cv_file_magic_cmd='$MAGIC_CMD'
7086lt_cv_file_magic_test_file=
7087lt_cv_deplibs_check_method='unknown'
7088# Need to set the preceding variable on all platforms that support
7089# interlibrary dependencies.
7090# 'none' -- dependencies not supported.
7091# `unknown' -- same as none, but documents that we really don't know.
7092# 'pass_all' -- all dependencies passed with no checks.
7093# 'test_compile' -- check by making test program.
7094# 'file_magic [[regex]]' -- check by looking for files in library path
7095# which responds to the $file_magic_cmd with a given extended regex.
7096# If you have `file' or equivalent on your system and you're not sure
7097# whether `pass_all' will *always* work, you probably want this one.
7098
7099case $host_os in
7100aix[4-9]*)
7101 lt_cv_deplibs_check_method=pass_all
7102 ;;
7103
7104beos*)
7105 lt_cv_deplibs_check_method=pass_all
7106 ;;
7107
7108bsdi[45]*)
7109 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7110 lt_cv_file_magic_cmd='/usr/bin/file -L'
7111 lt_cv_file_magic_test_file=/shlib/libc.so
7112 ;;
7113
7114cygwin*)
7115 # func_win32_libid is a shell function defined in ltmain.sh
7116 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7117 lt_cv_file_magic_cmd='func_win32_libid'
7118 ;;
7119
7120mingw* | pw32*)
7121 # Base MSYS/MinGW do not provide the 'file' command needed by
7122 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7123 # unless we find 'file', for example because we are cross-compiling.
7124 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7125 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7126 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7127 lt_cv_file_magic_cmd='func_win32_libid'
7128 else
7129 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7130 lt_cv_file_magic_cmd='$OBJDUMP -f'
7131 fi
7132 ;;
7133
7134cegcc*)
7135 # use the weaker test based on 'objdump'. See mingw*.
7136 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7137 lt_cv_file_magic_cmd='$OBJDUMP -f'
7138 ;;
7139
7140darwin* | rhapsody*)
7141 lt_cv_deplibs_check_method=pass_all
7142 ;;
7143
7144freebsd* | dragonfly*)
7145 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7146 case $host_cpu in
7147 i*86 )
7148 # Not sure whether the presence of OpenBSD here was a mistake.
7149 # Let's accept both of them until this is cleared up.
7150 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7151 lt_cv_file_magic_cmd=/usr/bin/file
7152 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7153 ;;
7154 esac
7155 else
7156 lt_cv_deplibs_check_method=pass_all
7157 fi
7158 ;;
7159
7160gnu*)
7161 lt_cv_deplibs_check_method=pass_all
7162 ;;
7163
7164haiku*)
7165 lt_cv_deplibs_check_method=pass_all
7166 ;;
7167
7168hpux10.20* | hpux11*)
7169 lt_cv_file_magic_cmd=/usr/bin/file
7170 case $host_cpu in
7171 ia64*)
7172 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7173 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7174 ;;
7175 hppa*64*)
7176 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]'
7177 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7178 ;;
7179 *)
7180 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7181 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7182 ;;
7183 esac
7184 ;;
7185
7186interix[3-9]*)
7187 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7188 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7189 ;;
7190
7191irix5* | irix6* | nonstopux*)
7192 case $LD in
7193 *-32|*"-32 ") libmagic=32-bit;;
7194 *-n32|*"-n32 ") libmagic=N32;;
7195 *-64|*"-64 ") libmagic=64-bit;;
7196 *) libmagic=never-match;;
7197 esac
7198 lt_cv_deplibs_check_method=pass_all
7199 ;;
7200
7201# This must be Linux ELF.
7202linux* | k*bsd*-gnu | kopensolaris*-gnu)
7203 lt_cv_deplibs_check_method=pass_all
7204 ;;
7205
7206netbsd*)
7207 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7208 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7209 else
7210 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7211 fi
7212 ;;
7213
7214newos6*)
7215 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7216 lt_cv_file_magic_cmd=/usr/bin/file
7217 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7218 ;;
7219
7220*nto* | *qnx*)
7221 lt_cv_deplibs_check_method=pass_all
7222 ;;
7223
7224openbsd*)
7225 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7226 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7227 else
7228 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7229 fi
7230 ;;
7231
7232osf3* | osf4* | osf5*)
7233 lt_cv_deplibs_check_method=pass_all
7234 ;;
7235
7236rdos*)
7237 lt_cv_deplibs_check_method=pass_all
7238 ;;
7239
7240solaris*)
7241 lt_cv_deplibs_check_method=pass_all
7242 ;;
7243
7244sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7245 lt_cv_deplibs_check_method=pass_all
7246 ;;
7247
7248sysv4 | sysv4.3*)
7249 case $host_vendor in
7250 motorola)
7251 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]'
7252 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7253 ;;
7254 ncr)
7255 lt_cv_deplibs_check_method=pass_all
7256 ;;
7257 sequent)
7258 lt_cv_file_magic_cmd='/bin/file'
7259 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7260 ;;
7261 sni)
7262 lt_cv_file_magic_cmd='/bin/file'
7263 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7264 lt_cv_file_magic_test_file=/lib/libc.so
7265 ;;
7266 siemens)
7267 lt_cv_deplibs_check_method=pass_all
7268 ;;
7269 pc)
7270 lt_cv_deplibs_check_method=pass_all
7271 ;;
7272 esac
7273 ;;
7274
7275tpf*)
7276 lt_cv_deplibs_check_method=pass_all
7277 ;;
7278esac
7279
7280fi
7281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7282$as_echo "$lt_cv_deplibs_check_method" >&6; }
7283file_magic_cmd=$lt_cv_file_magic_cmd
7284deplibs_check_method=$lt_cv_deplibs_check_method
7285test -z "$deplibs_check_method" && deplibs_check_method=unknown
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298if test -n "$ac_tool_prefix"; then
7299 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7300set dummy ${ac_tool_prefix}ar; ac_word=$2
7301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7302$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7303if ${ac_cv_prog_AR+:} false; then :
b710ec85 7304 $as_echo_n "(cached) " >&6
7305else
7306 if test -n "$AR"; then
7307 ac_cv_prog_AR="$AR" # Let the user override the test.
7308else
7309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310for as_dir in $PATH
7311do
7312 IFS=$as_save_IFS
7313 test -z "$as_dir" && as_dir=.
7314 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b710ec85 7316 ac_cv_prog_AR="${ac_tool_prefix}ar"
7317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7318 break 2
7319 fi
7320done
7321 done
7322IFS=$as_save_IFS
7323
7324fi
7325fi
7326AR=$ac_cv_prog_AR
7327if test -n "$AR"; then
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7329$as_echo "$AR" >&6; }
7330else
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7332$as_echo "no" >&6; }
7333fi
7334
7335
7336fi
7337if test -z "$ac_cv_prog_AR"; then
7338 ac_ct_AR=$AR
7339 # Extract the first word of "ar", so it can be a program name with args.
7340set dummy ar; ac_word=$2
7341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7342$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7343if ${ac_cv_prog_ac_ct_AR+:} false; then :
b710ec85 7344 $as_echo_n "(cached) " >&6
7345else
7346 if test -n "$ac_ct_AR"; then
7347 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7348else
7349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7350for as_dir in $PATH
7351do
7352 IFS=$as_save_IFS
7353 test -z "$as_dir" && as_dir=.
7354 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b710ec85 7356 ac_cv_prog_ac_ct_AR="ar"
7357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7358 break 2
7359 fi
7360done
7361 done
7362IFS=$as_save_IFS
7363
7364fi
7365fi
7366ac_ct_AR=$ac_cv_prog_ac_ct_AR
7367if test -n "$ac_ct_AR"; then
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7369$as_echo "$ac_ct_AR" >&6; }
7370else
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7372$as_echo "no" >&6; }
7373fi
7374
7375 if test "x$ac_ct_AR" = x; then
7376 AR="false"
7377 else
7378 case $cross_compiling:$ac_tool_warned in
7379yes:)
7380{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7381$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7382ac_tool_warned=yes ;;
7383esac
7384 AR=$ac_ct_AR
7385 fi
7386else
7387 AR="$ac_cv_prog_AR"
7388fi
7389
7390test -z "$AR" && AR=ar
7391test -z "$AR_FLAGS" && AR_FLAGS=cru
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403if test -n "$ac_tool_prefix"; then
7404 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7405set dummy ${ac_tool_prefix}strip; ac_word=$2
7406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7408if ${ac_cv_prog_STRIP+:} false; then :
b710ec85 7409 $as_echo_n "(cached) " >&6
7410else
7411 if test -n "$STRIP"; then
7412 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7413else
7414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415for as_dir in $PATH
7416do
7417 IFS=$as_save_IFS
7418 test -z "$as_dir" && as_dir=.
7419 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b710ec85 7421 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7423 break 2
7424 fi
7425done
7426 done
7427IFS=$as_save_IFS
7428
7429fi
7430fi
7431STRIP=$ac_cv_prog_STRIP
7432if test -n "$STRIP"; then
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7434$as_echo "$STRIP" >&6; }
7435else
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437$as_echo "no" >&6; }
7438fi
7439
7440
7441fi
7442if test -z "$ac_cv_prog_STRIP"; then
7443 ac_ct_STRIP=$STRIP
7444 # Extract the first word of "strip", so it can be a program name with args.
7445set dummy strip; ac_word=$2
7446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7447$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7448if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
b710ec85 7449 $as_echo_n "(cached) " >&6
7450else
7451 if test -n "$ac_ct_STRIP"; then
7452 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7453else
7454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455for as_dir in $PATH
7456do
7457 IFS=$as_save_IFS
7458 test -z "$as_dir" && as_dir=.
7459 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b710ec85 7461 ac_cv_prog_ac_ct_STRIP="strip"
7462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 break 2
7464 fi
7465done
7466 done
7467IFS=$as_save_IFS
7468
7469fi
7470fi
7471ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7472if test -n "$ac_ct_STRIP"; then
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7474$as_echo "$ac_ct_STRIP" >&6; }
7475else
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7477$as_echo "no" >&6; }
7478fi
7479
7480 if test "x$ac_ct_STRIP" = x; then
7481 STRIP=":"
7482 else
7483 case $cross_compiling:$ac_tool_warned in
7484yes:)
7485{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7486$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7487ac_tool_warned=yes ;;
7488esac
7489 STRIP=$ac_ct_STRIP
7490 fi
7491else
7492 STRIP="$ac_cv_prog_STRIP"
7493fi
7494
7495test -z "$STRIP" && STRIP=:
7496
7497
7498
7499
7500
7501
7502if test -n "$ac_tool_prefix"; then
7503 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7504set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7506$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7507if ${ac_cv_prog_RANLIB+:} false; then :
b710ec85 7508 $as_echo_n "(cached) " >&6
7509else
7510 if test -n "$RANLIB"; then
7511 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7512else
7513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514for as_dir in $PATH
7515do
7516 IFS=$as_save_IFS
7517 test -z "$as_dir" && as_dir=.
7518 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b710ec85 7520 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7522 break 2
7523 fi
7524done
7525 done
7526IFS=$as_save_IFS
7527
7528fi
7529fi
7530RANLIB=$ac_cv_prog_RANLIB
7531if test -n "$RANLIB"; then
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7533$as_echo "$RANLIB" >&6; }
7534else
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7536$as_echo "no" >&6; }
7537fi
7538
7539
7540fi
7541if test -z "$ac_cv_prog_RANLIB"; then
7542 ac_ct_RANLIB=$RANLIB
7543 # Extract the first word of "ranlib", so it can be a program name with args.
7544set dummy ranlib; ac_word=$2
7545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7546$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 7547if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
b710ec85 7548 $as_echo_n "(cached) " >&6
7549else
7550 if test -n "$ac_ct_RANLIB"; then
7551 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7552else
7553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554for as_dir in $PATH
7555do
7556 IFS=$as_save_IFS
7557 test -z "$as_dir" && as_dir=.
7558 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 7559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b710ec85 7560 ac_cv_prog_ac_ct_RANLIB="ranlib"
7561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7562 break 2
7563 fi
7564done
7565 done
7566IFS=$as_save_IFS
7567
7568fi
7569fi
7570ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7571if test -n "$ac_ct_RANLIB"; then
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7573$as_echo "$ac_ct_RANLIB" >&6; }
7574else
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7576$as_echo "no" >&6; }
7577fi
7578
7579 if test "x$ac_ct_RANLIB" = x; then
7580 RANLIB=":"
7581 else
7582 case $cross_compiling:$ac_tool_warned in
7583yes:)
7584{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7585$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7586ac_tool_warned=yes ;;
7587esac
7588 RANLIB=$ac_ct_RANLIB
7589 fi
7590else
7591 RANLIB="$ac_cv_prog_RANLIB"
7592fi
7593
7594test -z "$RANLIB" && RANLIB=:
7595
7596
7597
7598
7599
7600
7601# Determine commands to create old-style static archives.
7602old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7603old_postinstall_cmds='chmod 644 $oldlib'
7604old_postuninstall_cmds=
7605
7606if test -n "$RANLIB"; then
7607 case $host_os in
7608 openbsd*)
7609 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7610 ;;
7611 *)
7612 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7613 ;;
7614 esac
7615 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7616fi
7617
7618case $host_os in
7619 darwin*)
7620 lock_old_archive_extraction=yes ;;
7621 *)
7622 lock_old_archive_extraction=no ;;
7623esac
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663# If no C compiler was specified, use CC.
7664LTCC=${LTCC-"$CC"}
7665
7666# If no C compiler flags were specified, use CFLAGS.
7667LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7668
7669# Allow CC to be a program name with arguments.
7670compiler=$CC
7671
7672
7673# Check for command to grab the raw symbol name followed by C symbol from nm.
7674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7675$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
f00f02a3 7676if ${lt_cv_sys_global_symbol_pipe+:} false; then :
b710ec85 7677 $as_echo_n "(cached) " >&6
7678else
7679
7680# These are sane defaults that work on at least a few old systems.
7681# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7682
7683# Character class describing NM global symbol codes.
7684symcode='[BCDEGRST]'
7685
7686# Regexp to match symbols that can be accessed directly from C.
7687sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7688
7689# Define system-specific variables.
7690case $host_os in
7691aix*)
7692 symcode='[BCDT]'
7693 ;;
7694cygwin* | mingw* | pw32* | cegcc*)
7695 symcode='[ABCDGISTW]'
7696 ;;
7697hpux*)
7698 if test "$host_cpu" = ia64; then
7699 symcode='[ABCDEGRST]'
7700 fi
7701 ;;
7702irix* | nonstopux*)
7703 symcode='[BCDEGRST]'
7704 ;;
7705osf*)
7706 symcode='[BCDEGQRST]'
7707 ;;
7708solaris*)
7709 symcode='[BDRT]'
7710 ;;
7711sco3.2v5*)
7712 symcode='[DT]'
7713 ;;
7714sysv4.2uw2*)
7715 symcode='[DT]'
7716 ;;
7717sysv5* | sco5v6* | unixware* | OpenUNIX*)
7718 symcode='[ABDT]'
7719 ;;
7720sysv4)
7721 symcode='[DFNSTU]'
7722 ;;
7723esac
7724
7725# If we're using GNU nm, then use its standard symbol codes.
7726case `$NM -V 2>&1` in
7727*GNU* | *'with BFD'*)
7728 symcode='[ABCDGIRSTW]' ;;
7729esac
7730
7731# Transform an extracted symbol line into a proper C declaration.
7732# Some systems (esp. on ia64) link data and code symbols differently,
7733# so use this general approach.
7734lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7735
7736# Transform an extracted symbol line into symbol name and symbol address
7737lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7738lt_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'"
7739
7740# Handle CRLF in mingw tool chain
7741opt_cr=
7742case $build_os in
7743mingw*)
7744 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7745 ;;
7746esac
7747
7748# Try without a prefix underscore, then with it.
7749for ac_symprfx in "" "_"; do
7750
7751 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7752 symxfrm="\\1 $ac_symprfx\\2 \\2"
7753
7754 # Write the raw and C identifiers.
7755 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7756 # Fake it for dumpbin and say T for any non-static function
7757 # and D for any global variable.
7758 # Also find C++ and __fastcall symbols from MSVC++,
7759 # which start with @ or ?.
7760 lt_cv_sys_global_symbol_pipe="$AWK '"\
7761" {last_section=section; section=\$ 3};"\
7762" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7763" \$ 0!~/External *\|/{next};"\
7764" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7765" {if(hide[section]) next};"\
7766" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7767" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7768" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7769" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7770" ' prfx=^$ac_symprfx"
7771 else
7772 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7773 fi
7774
7775 # Check to see that the pipe works correctly.
7776 pipe_works=no
7777
7778 rm -f conftest*
7779 cat > conftest.$ac_ext <<_LT_EOF
7780#ifdef __cplusplus
7781extern "C" {
7782#endif
7783char nm_test_var;
7784void nm_test_func(void);
7785void nm_test_func(void){}
7786#ifdef __cplusplus
7787}
7788#endif
7789int main(){nm_test_var='a';nm_test_func();return(0);}
7790_LT_EOF
7791
7792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7793 (eval $ac_compile) 2>&5
7794 ac_status=$?
7795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7796 test $ac_status = 0; }; then
7797 # Now try to grab the symbols.
7798 nlist=conftest.nm
7799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7800 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7801 ac_status=$?
7802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7803 test $ac_status = 0; } && test -s "$nlist"; then
7804 # Try sorting and uniquifying the output.
7805 if sort "$nlist" | uniq > "$nlist"T; then
7806 mv -f "$nlist"T "$nlist"
7807 else
7808 rm -f "$nlist"T
7809 fi
7810
7811 # Make sure that we snagged all the symbols we need.
7812 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7813 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7814 cat <<_LT_EOF > conftest.$ac_ext
7815#ifdef __cplusplus
7816extern "C" {
7817#endif
7818
7819_LT_EOF
7820 # Now generate the symbol file.
7821 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7822
7823 cat <<_LT_EOF >> conftest.$ac_ext
7824
7825/* The mapping between symbol names and symbols. */
7826const struct {
7827 const char *name;
7828 void *address;
7829}
7830lt__PROGRAM__LTX_preloaded_symbols[] =
7831{
7832 { "@PROGRAM@", (void *) 0 },
7833_LT_EOF
7834 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7835 cat <<\_LT_EOF >> conftest.$ac_ext
7836 {0, (void *) 0}
7837};
7838
7839/* This works around a problem in FreeBSD linker */
7840#ifdef FREEBSD_WORKAROUND
7841static const void *lt_preloaded_setup() {
7842 return lt__PROGRAM__LTX_preloaded_symbols;
7843}
7844#endif
7845
7846#ifdef __cplusplus
7847}
7848#endif
7849_LT_EOF
7850 # Now try linking the two files.
7851 mv conftest.$ac_objext conftstm.$ac_objext
7852 lt_save_LIBS="$LIBS"
7853 lt_save_CFLAGS="$CFLAGS"
7854 LIBS="conftstm.$ac_objext"
7855 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7857 (eval $ac_link) 2>&5
7858 ac_status=$?
7859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7860 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7861 pipe_works=yes
7862 fi
7863 LIBS="$lt_save_LIBS"
7864 CFLAGS="$lt_save_CFLAGS"
7865 else
7866 echo "cannot find nm_test_func in $nlist" >&5
7867 fi
7868 else
7869 echo "cannot find nm_test_var in $nlist" >&5
7870 fi
7871 else
7872 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7873 fi
7874 else
7875 echo "$progname: failed program was:" >&5
7876 cat conftest.$ac_ext >&5
7877 fi
7878 rm -rf conftest* conftst*
7879
7880 # Do not use the global_symbol_pipe unless it works.
7881 if test "$pipe_works" = yes; then
7882 break
7883 else
7884 lt_cv_sys_global_symbol_pipe=
7885 fi
7886done
7887
7888fi
7889
7890if test -z "$lt_cv_sys_global_symbol_pipe"; then
7891 lt_cv_sys_global_symbol_to_cdecl=
7892fi
7893if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7895$as_echo "failed" >&6; }
7896else
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7898$as_echo "ok" >&6; }
7899fi
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
b710ec85 7920
7921
7922# Check whether --enable-libtool-lock was given.
7923if test "${enable_libtool_lock+set}" = set; then :
7924 enableval=$enable_libtool_lock;
7925fi
7926
7927test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7928
7929# Some flags need to be propagated to the compiler or linker for good
7930# libtool support.
7931case $host in
7932ia64-*-hpux*)
7933 # Find out which ABI we are using.
7934 echo 'int i;' > conftest.$ac_ext
7935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7936 (eval $ac_compile) 2>&5
7937 ac_status=$?
7938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7939 test $ac_status = 0; }; then
7940 case `/usr/bin/file conftest.$ac_objext` in
7941 *ELF-32*)
7942 HPUX_IA64_MODE="32"
7943 ;;
7944 *ELF-64*)
7945 HPUX_IA64_MODE="64"
7946 ;;
7947 esac
7948 fi
7949 rm -rf conftest*
7950 ;;
7951*-*-irix6*)
7952 # Find out which ABI we are using.
7953 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7954 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7955 (eval $ac_compile) 2>&5
7956 ac_status=$?
7957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7958 test $ac_status = 0; }; then
7959 if test "$lt_cv_prog_gnu_ld" = yes; then
7960 case `/usr/bin/file conftest.$ac_objext` in
7961 *32-bit*)
7962 LD="${LD-ld} -melf32bsmip"
7963 ;;
7964 *N32*)
7965 LD="${LD-ld} -melf32bmipn32"
7966 ;;
7967 *64-bit*)
7968 LD="${LD-ld} -melf64bmip"
7969 ;;
7970 esac
7971 else
7972 case `/usr/bin/file conftest.$ac_objext` in
7973 *32-bit*)
7974 LD="${LD-ld} -32"
7975 ;;
7976 *N32*)
7977 LD="${LD-ld} -n32"
7978 ;;
7979 *64-bit*)
7980 LD="${LD-ld} -64"
7981 ;;
7982 esac
7983 fi
7984 fi
7985 rm -rf conftest*
7986 ;;
7987
9613c003 7988x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
b710ec85 7989s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7990 # Find out which ABI we are using.
7991 echo 'int i;' > conftest.$ac_ext
7992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7993 (eval $ac_compile) 2>&5
7994 ac_status=$?
7995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7996 test $ac_status = 0; }; then
7997 case `/usr/bin/file conftest.o` in
7998 *32-bit*)
7999 case $host in
8000 x86_64-*kfreebsd*-gnu)
8001 LD="${LD-ld} -m elf_i386_fbsd"
8002 ;;
8003 x86_64-*linux*)
8004 case `/usr/bin/file conftest.o` in
8005 *x86-64*)
8006 LD="${LD-ld} -m elf32_x86_64"
8007 ;;
8008 *)
8009 LD="${LD-ld} -m elf_i386"
8010 ;;
8011 esac
8012 ;;
9613c003 8013 powerpc64le-*linux*)
8014 LD="${LD-ld} -m elf32lppclinux"
8015 ;;
8016 powerpc64-*linux*)
b710ec85 8017 LD="${LD-ld} -m elf32ppclinux"
8018 ;;
8019 s390x-*linux*)
8020 LD="${LD-ld} -m elf_s390"
8021 ;;
8022 sparc64-*linux*)
8023 LD="${LD-ld} -m elf32_sparc"
8024 ;;
8025 esac
8026 ;;
8027 *64-bit*)
8028 case $host in
8029 x86_64-*kfreebsd*-gnu)
8030 LD="${LD-ld} -m elf_x86_64_fbsd"
8031 ;;
8032 x86_64-*linux*)
8033 LD="${LD-ld} -m elf_x86_64"
8034 ;;
9613c003 8035 powerpcle-*linux*)
8036 LD="${LD-ld} -m elf64lppc"
8037 ;;
8038 powerpc-*linux*)
b710ec85 8039 LD="${LD-ld} -m elf64ppc"
8040 ;;
8041 s390*-*linux*|s390*-*tpf*)
8042 LD="${LD-ld} -m elf64_s390"
8043 ;;
8044 sparc*-*linux*)
8045 LD="${LD-ld} -m elf64_sparc"
8046 ;;
8047 esac
8048 ;;
8049 esac
8050 fi
8051 rm -rf conftest*
8052 ;;
8053
8054*-*-sco3.2v5*)
8055 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8056 SAVE_CFLAGS="$CFLAGS"
8057 CFLAGS="$CFLAGS -belf"
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8059$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
f00f02a3 8060if ${lt_cv_cc_needs_belf+:} false; then :
b710ec85 8061 $as_echo_n "(cached) " >&6
8062else
8063 ac_ext=c
8064ac_cpp='$CPP $CPPFLAGS'
8065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8067ac_compiler_gnu=$ac_cv_c_compiler_gnu
8068
8069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8070/* end confdefs.h. */
8071
8072int
8073main ()
8074{
8075
8076 ;
8077 return 0;
8078}
8079_ACEOF
8080if ac_fn_c_try_link "$LINENO"; then :
8081 lt_cv_cc_needs_belf=yes
8082else
8083 lt_cv_cc_needs_belf=no
8084fi
8085rm -f core conftest.err conftest.$ac_objext \
8086 conftest$ac_exeext conftest.$ac_ext
8087 ac_ext=c
8088ac_cpp='$CPP $CPPFLAGS'
8089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8091ac_compiler_gnu=$ac_cv_c_compiler_gnu
8092
8093fi
8094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8095$as_echo "$lt_cv_cc_needs_belf" >&6; }
8096 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8097 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8098 CFLAGS="$SAVE_CFLAGS"
8099 fi
8100 ;;
8101sparc*-*solaris*)
8102 # Find out which ABI we are using.
8103 echo 'int i;' > conftest.$ac_ext
8104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8105 (eval $ac_compile) 2>&5
8106 ac_status=$?
8107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8108 test $ac_status = 0; }; then
8109 case `/usr/bin/file conftest.o` in
8110 *64-bit*)
8111 case $lt_cv_prog_gnu_ld in
8112 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8113 *)
8114 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8115 LD="${LD-ld} -64"
8116 fi
8117 ;;
8118 esac
8119 ;;
8120 esac
8121 fi
8122 rm -rf conftest*
8123 ;;
8124esac
8125
8126need_locks="$enable_libtool_lock"
8127
8128
8129 case $host_os in
8130 rhapsody* | darwin*)
8131 if test -n "$ac_tool_prefix"; then
8132 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8133set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8135$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8136if ${ac_cv_prog_DSYMUTIL+:} false; then :
b710ec85 8137 $as_echo_n "(cached) " >&6
8138else
8139 if test -n "$DSYMUTIL"; then
8140 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8141else
8142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8143for as_dir in $PATH
8144do
8145 IFS=$as_save_IFS
8146 test -z "$as_dir" && as_dir=.
8147 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b710ec85 8149 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8151 break 2
8152 fi
8153done
8154 done
8155IFS=$as_save_IFS
8156
8157fi
8158fi
8159DSYMUTIL=$ac_cv_prog_DSYMUTIL
8160if test -n "$DSYMUTIL"; then
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8162$as_echo "$DSYMUTIL" >&6; }
8163else
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8165$as_echo "no" >&6; }
8166fi
8167
8168
8169fi
83628c60 8170if test -z "$ac_cv_prog_DSYMUTIL"; then
8171 ac_ct_DSYMUTIL=$DSYMUTIL
8172 # Extract the first word of "dsymutil", so it can be a program name with args.
8173set dummy dsymutil; ac_word=$2
b710ec85 8174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8175$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8176if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
b710ec85 8177 $as_echo_n "(cached) " >&6
8178else
83628c60 8179 if test -n "$ac_ct_DSYMUTIL"; then
8180 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
b710ec85 8181else
8182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183for as_dir in $PATH
8184do
8185 IFS=$as_save_IFS
8186 test -z "$as_dir" && as_dir=.
8187 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
83628c60 8189 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
b710ec85 8190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8191 break 2
8192 fi
8193done
8194 done
8195IFS=$as_save_IFS
8196
8197fi
8198fi
83628c60 8199ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8200if test -n "$ac_ct_DSYMUTIL"; then
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8202$as_echo "$ac_ct_DSYMUTIL" >&6; }
b710ec85 8203else
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205$as_echo "no" >&6; }
8206fi
8207
83628c60 8208 if test "x$ac_ct_DSYMUTIL" = x; then
8209 DSYMUTIL=":"
b710ec85 8210 else
8211 case $cross_compiling:$ac_tool_warned in
8212yes:)
8213{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8214$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8215ac_tool_warned=yes ;;
8216esac
83628c60 8217 DSYMUTIL=$ac_ct_DSYMUTIL
b710ec85 8218 fi
8219else
83628c60 8220 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
b710ec85 8221fi
8222
8223 if test -n "$ac_tool_prefix"; then
83628c60 8224 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8225set dummy ${ac_tool_prefix}nmedit; ac_word=$2
b710ec85 8226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8227$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8228if ${ac_cv_prog_NMEDIT+:} false; then :
b710ec85 8229 $as_echo_n "(cached) " >&6
8230else
83628c60 8231 if test -n "$NMEDIT"; then
8232 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
b710ec85 8233else
8234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8235for as_dir in $PATH
8236do
8237 IFS=$as_save_IFS
8238 test -z "$as_dir" && as_dir=.
8239 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
83628c60 8241 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
b710ec85 8242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8243 break 2
8244 fi
8245done
8246 done
8247IFS=$as_save_IFS
8248
8249fi
8250fi
83628c60 8251NMEDIT=$ac_cv_prog_NMEDIT
8252if test -n "$NMEDIT"; then
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8254$as_echo "$NMEDIT" >&6; }
b710ec85 8255else
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8257$as_echo "no" >&6; }
8258fi
8259
8260
8261fi
83628c60 8262if test -z "$ac_cv_prog_NMEDIT"; then
8263 ac_ct_NMEDIT=$NMEDIT
8264 # Extract the first word of "nmedit", so it can be a program name with args.
8265set dummy nmedit; ac_word=$2
b710ec85 8266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8267$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8268if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
b710ec85 8269 $as_echo_n "(cached) " >&6
8270else
83628c60 8271 if test -n "$ac_ct_NMEDIT"; then
8272 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
b710ec85 8273else
8274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8275for as_dir in $PATH
8276do
8277 IFS=$as_save_IFS
8278 test -z "$as_dir" && as_dir=.
8279 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
83628c60 8281 ac_cv_prog_ac_ct_NMEDIT="nmedit"
b710ec85 8282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8283 break 2
8284 fi
8285done
8286 done
8287IFS=$as_save_IFS
8288
8289fi
8290fi
83628c60 8291ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8292if test -n "$ac_ct_NMEDIT"; then
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8294$as_echo "$ac_ct_NMEDIT" >&6; }
b710ec85 8295else
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297$as_echo "no" >&6; }
8298fi
8299
83628c60 8300 if test "x$ac_ct_NMEDIT" = x; then
8301 NMEDIT=":"
b710ec85 8302 else
8303 case $cross_compiling:$ac_tool_warned in
8304yes:)
8305{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8306$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8307ac_tool_warned=yes ;;
8308esac
83628c60 8309 NMEDIT=$ac_ct_NMEDIT
b710ec85 8310 fi
8311else
83628c60 8312 NMEDIT="$ac_cv_prog_NMEDIT"
b710ec85 8313fi
8314
8315 if test -n "$ac_tool_prefix"; then
83628c60 8316 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8317set dummy ${ac_tool_prefix}lipo; ac_word=$2
b710ec85 8318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8319$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8320if ${ac_cv_prog_LIPO+:} false; then :
b710ec85 8321 $as_echo_n "(cached) " >&6
8322else
83628c60 8323 if test -n "$LIPO"; then
8324 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
b710ec85 8325else
8326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327for as_dir in $PATH
8328do
8329 IFS=$as_save_IFS
8330 test -z "$as_dir" && as_dir=.
8331 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
83628c60 8333 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
b710ec85 8334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8335 break 2
8336 fi
8337done
8338 done
8339IFS=$as_save_IFS
8340
8341fi
8342fi
83628c60 8343LIPO=$ac_cv_prog_LIPO
8344if test -n "$LIPO"; then
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8346$as_echo "$LIPO" >&6; }
b710ec85 8347else
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8349$as_echo "no" >&6; }
8350fi
8351
8352
8353fi
83628c60 8354if test -z "$ac_cv_prog_LIPO"; then
8355 ac_ct_LIPO=$LIPO
8356 # Extract the first word of "lipo", so it can be a program name with args.
8357set dummy lipo; ac_word=$2
b710ec85 8358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8359$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8360if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
b710ec85 8361 $as_echo_n "(cached) " >&6
8362else
83628c60 8363 if test -n "$ac_ct_LIPO"; then
8364 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
b710ec85 8365else
8366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367for as_dir in $PATH
8368do
8369 IFS=$as_save_IFS
8370 test -z "$as_dir" && as_dir=.
8371 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
83628c60 8373 ac_cv_prog_ac_ct_LIPO="lipo"
b710ec85 8374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8375 break 2
8376 fi
8377done
8378 done
8379IFS=$as_save_IFS
8380
8381fi
8382fi
83628c60 8383ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8384if test -n "$ac_ct_LIPO"; then
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8386$as_echo "$ac_ct_LIPO" >&6; }
b710ec85 8387else
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389$as_echo "no" >&6; }
8390fi
8391
83628c60 8392 if test "x$ac_ct_LIPO" = x; then
8393 LIPO=":"
b710ec85 8394 else
8395 case $cross_compiling:$ac_tool_warned in
8396yes:)
8397{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8398$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8399ac_tool_warned=yes ;;
8400esac
83628c60 8401 LIPO=$ac_ct_LIPO
b710ec85 8402 fi
8403else
83628c60 8404 LIPO="$ac_cv_prog_LIPO"
b710ec85 8405fi
8406
83628c60 8407 if test -n "$ac_tool_prefix"; then
8408 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8409set dummy ${ac_tool_prefix}otool; ac_word=$2
8410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8411$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8412if ${ac_cv_prog_OTOOL+:} false; then :
b710ec85 8413 $as_echo_n "(cached) " >&6
8414else
83628c60 8415 if test -n "$OTOOL"; then
8416 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
b710ec85 8417else
83628c60 8418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8419for as_dir in $PATH
8420do
8421 IFS=$as_save_IFS
8422 test -z "$as_dir" && as_dir=.
8423 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
83628c60 8425 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8427 break 2
8428 fi
8429done
8430 done
8431IFS=$as_save_IFS
b710ec85 8432
8433fi
83628c60 8434fi
8435OTOOL=$ac_cv_prog_OTOOL
8436if test -n "$OTOOL"; then
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8438$as_echo "$OTOOL" >&6; }
8439else
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8441$as_echo "no" >&6; }
8442fi
8443
b710ec85 8444
b710ec85 8445fi
83628c60 8446if test -z "$ac_cv_prog_OTOOL"; then
8447 ac_ct_OTOOL=$OTOOL
8448 # Extract the first word of "otool", so it can be a program name with args.
8449set dummy otool; ac_word=$2
8450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8451$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8452if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
b710ec85 8453 $as_echo_n "(cached) " >&6
8454else
83628c60 8455 if test -n "$ac_ct_OTOOL"; then
8456 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8457else
8458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8459for as_dir in $PATH
b710ec85 8460do
83628c60 8461 IFS=$as_save_IFS
8462 test -z "$as_dir" && as_dir=.
8463 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
83628c60 8465 ac_cv_prog_ac_ct_OTOOL="otool"
8466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8467 break 2
8468 fi
8469done
8470 done
8471IFS=$as_save_IFS
b710ec85 8472
83628c60 8473fi
8474fi
8475ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8476if test -n "$ac_ct_OTOOL"; then
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8478$as_echo "$ac_ct_OTOOL" >&6; }
b710ec85 8479else
83628c60 8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8481$as_echo "no" >&6; }
b710ec85 8482fi
b710ec85 8483
83628c60 8484 if test "x$ac_ct_OTOOL" = x; then
8485 OTOOL=":"
8486 else
8487 case $cross_compiling:$ac_tool_warned in
8488yes:)
8489{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8490$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8491ac_tool_warned=yes ;;
8492esac
8493 OTOOL=$ac_ct_OTOOL
8494 fi
b710ec85 8495else
83628c60 8496 OTOOL="$ac_cv_prog_OTOOL"
b710ec85 8497fi
b710ec85 8498
83628c60 8499 if test -n "$ac_tool_prefix"; then
8500 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8501set dummy ${ac_tool_prefix}otool64; ac_word=$2
8502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8503$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8504if ${ac_cv_prog_OTOOL64+:} false; then :
83628c60 8505 $as_echo_n "(cached) " >&6
8506else
8507 if test -n "$OTOOL64"; then
8508 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8509else
8510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8511for as_dir in $PATH
8512do
8513 IFS=$as_save_IFS
8514 test -z "$as_dir" && as_dir=.
8515 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
83628c60 8517 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8519 break 2
8520 fi
b710ec85 8521done
83628c60 8522 done
8523IFS=$as_save_IFS
8524
8525fi
8526fi
8527OTOOL64=$ac_cv_prog_OTOOL64
8528if test -n "$OTOOL64"; then
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8530$as_echo "$OTOOL64" >&6; }
8531else
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8533$as_echo "no" >&6; }
b710ec85 8534fi
8535
b710ec85 8536
8537fi
83628c60 8538if test -z "$ac_cv_prog_OTOOL64"; then
8539 ac_ct_OTOOL64=$OTOOL64
8540 # Extract the first word of "otool64", so it can be a program name with args.
8541set dummy otool64; ac_word=$2
8542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8543$as_echo_n "checking for $ac_word... " >&6; }
f00f02a3 8544if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
83628c60 8545 $as_echo_n "(cached) " >&6
b710ec85 8546else
83628c60 8547 if test -n "$ac_ct_OTOOL64"; then
8548 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8549else
8550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8551for as_dir in $PATH
b710ec85 8552do
83628c60 8553 IFS=$as_save_IFS
8554 test -z "$as_dir" && as_dir=.
8555 for ac_exec_ext in '' $ac_executable_extensions; do
f00f02a3 8556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
83628c60 8557 ac_cv_prog_ac_ct_OTOOL64="otool64"
8558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8559 break 2
8560 fi
8561done
8562 done
8563IFS=$as_save_IFS
b710ec85 8564
b710ec85 8565fi
83628c60 8566fi
8567ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8568if test -n "$ac_ct_OTOOL64"; then
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8570$as_echo "$ac_ct_OTOOL64" >&6; }
b710ec85 8571else
83628c60 8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8573$as_echo "no" >&6; }
b710ec85 8574fi
b710ec85 8575
83628c60 8576 if test "x$ac_ct_OTOOL64" = x; then
8577 OTOOL64=":"
8578 else
8579 case $cross_compiling:$ac_tool_warned in
8580yes:)
8581{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8582$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8583ac_tool_warned=yes ;;
8584esac
8585 OTOOL64=$ac_ct_OTOOL64
8586 fi
b710ec85 8587else
83628c60 8588 OTOOL64="$ac_cv_prog_OTOOL64"
b710ec85 8589fi
8590
b710ec85 8591
8592
b710ec85 8593
b710ec85 8594
b710ec85 8595
b710ec85 8596
b710ec85 8597
b710ec85 8598
b710ec85 8599
b710ec85 8600
b710ec85 8601
b710ec85 8602
b710ec85 8603
83628c60 8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8618$as_echo_n "checking for -single_module linker flag... " >&6; }
f00f02a3 8619if ${lt_cv_apple_cc_single_mod+:} false; then :
83628c60 8620 $as_echo_n "(cached) " >&6
b710ec85 8621else
83628c60 8622 lt_cv_apple_cc_single_mod=no
8623 if test -z "${LT_MULTI_MODULE}"; then
8624 # By default we will add the -single_module flag. You can override
8625 # by either setting the environment variable LT_MULTI_MODULE
8626 # non-empty at configure time, or by adding -multi_module to the
8627 # link flags.
8628 rm -rf libconftest.dylib*
8629 echo "int foo(void){return 1;}" > conftest.c
8630 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8631-dynamiclib -Wl,-single_module conftest.c" >&5
8632 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8633 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8634 _lt_result=$?
8635 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8636 lt_cv_apple_cc_single_mod=yes
8637 else
8638 cat conftest.err >&5
8639 fi
8640 rm -rf libconftest.dylib*
8641 rm -f conftest.*
8642 fi
8643fi
8644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8645$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8647$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
f00f02a3 8648if ${lt_cv_ld_exported_symbols_list+:} false; then :
83628c60 8649 $as_echo_n "(cached) " >&6
8650else
8651 lt_cv_ld_exported_symbols_list=no
8652 save_LDFLAGS=$LDFLAGS
8653 echo "_main" > conftest.sym
8654 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b710ec85 8656/* end confdefs.h. */
b710ec85 8657
b710ec85 8658int
8659main ()
8660{
83628c60 8661
8662 ;
b710ec85 8663 return 0;
8664}
8665_ACEOF
83628c60 8666if ac_fn_c_try_link "$LINENO"; then :
8667 lt_cv_ld_exported_symbols_list=yes
b710ec85 8668else
83628c60 8669 lt_cv_ld_exported_symbols_list=no
b710ec85 8670fi
83628c60 8671rm -f core conftest.err conftest.$ac_objext \
8672 conftest$ac_exeext conftest.$ac_ext
8673 LDFLAGS="$save_LDFLAGS"
b710ec85 8674
8675fi
83628c60 8676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8677$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8679$as_echo_n "checking for -force_load linker flag... " >&6; }
f00f02a3 8680if ${lt_cv_ld_force_load+:} false; then :
83628c60 8681 $as_echo_n "(cached) " >&6
8682else
8683 lt_cv_ld_force_load=no
8684 cat > conftest.c << _LT_EOF
8685int forced_loaded() { return 2;}
8686_LT_EOF
8687 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8688 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8689 echo "$AR cru libconftest.a conftest.o" >&5
8690 $AR cru libconftest.a conftest.o 2>&5
8691 cat > conftest.c << _LT_EOF
8692int main() { return 0;}
8693_LT_EOF
8694 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8695 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8696 _lt_result=$?
8697 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8698 lt_cv_ld_force_load=yes
8699 else
8700 cat conftest.err >&5
8701 fi
8702 rm -f conftest.err libconftest.a conftest conftest.c
8703 rm -rf conftest.dSYM
b710ec85 8704
8705fi
83628c60 8706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8707$as_echo "$lt_cv_ld_force_load" >&6; }
8708 case $host_os in
8709 rhapsody* | darwin1.[012])
8710 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8711 darwin1.*)
8712 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8713 darwin*) # darwin 5.x on
8714 # if running on 10.5 or later, the deployment target defaults
8715 # to the OS version, if on x86, and 10.4, the deployment
8716 # target defaults to 10.4. Don't you love it?
8717 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8718 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8719 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7c407808 8720 10.[012][,.]*)
83628c60 8721 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8722 10.*)
8723 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8724 esac
8725 ;;
8726 esac
8727 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8728 _lt_dar_single_mod='$single_module'
8729 fi
8730 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8731 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8732 else
8733 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8734 fi
8735 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8736 _lt_dsymutil='~$DSYMUTIL $lib || :'
8737 else
8738 _lt_dsymutil=
8739 fi
8740 ;;
8741 esac
b710ec85 8742
8743for ac_header in dlfcn.h
8744do :
8745 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8746"
f00f02a3 8747if test "x$ac_cv_header_dlfcn_h" = xyes; then :
b710ec85 8748 cat >>confdefs.h <<_ACEOF
8749#define HAVE_DLFCN_H 1
8750_ACEOF
8751
8752fi
8753
8754done
8755
8756
8757
8758
8759
8760
8761# Set options
8762
8763
8764
8765
8766 enable_win32_dll=no
8767
8768
8769 # Check whether --enable-shared was given.
8770if test "${enable_shared+set}" = set; then :
8771 enableval=$enable_shared; p=${PACKAGE-default}
8772 case $enableval in
8773 yes) enable_shared=yes ;;
8774 no) enable_shared=no ;;
8775 *)
8776 enable_shared=no
8777 # Look at the argument we got. We use all the common list separators.
8778 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8779 for pkg in $enableval; do
8780 IFS="$lt_save_ifs"
8781 if test "X$pkg" = "X$p"; then
8782 enable_shared=yes
8783 fi
8784 done
8785 IFS="$lt_save_ifs"
8786 ;;
8787 esac
8788else
8789 enable_shared=yes
8790fi
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800 # Check whether --enable-static was given.
8801if test "${enable_static+set}" = set; then :
8802 enableval=$enable_static; p=${PACKAGE-default}
8803 case $enableval in
8804 yes) enable_static=yes ;;
8805 no) enable_static=no ;;
8806 *)
8807 enable_static=no
8808 # Look at the argument we got. We use all the common list separators.
8809 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8810 for pkg in $enableval; do
8811 IFS="$lt_save_ifs"
8812 if test "X$pkg" = "X$p"; then
8813 enable_static=yes
8814 fi
8815 done
8816 IFS="$lt_save_ifs"
8817 ;;
8818 esac
8819else
8820 enable_static=yes
8821fi
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832# Check whether --with-pic was given.
8833if test "${with_pic+set}" = set; then :
8834 withval=$with_pic; pic_mode="$withval"
8835else
8836 pic_mode=default
8837fi
8838
8839
8840test -z "$pic_mode" && pic_mode=default
8841
8842
8843
8844
8845
8846
8847
8848 # Check whether --enable-fast-install was given.
8849if test "${enable_fast_install+set}" = set; then :
8850 enableval=$enable_fast_install; p=${PACKAGE-default}
8851 case $enableval in
8852 yes) enable_fast_install=yes ;;
8853 no) enable_fast_install=no ;;
8854 *)
8855 enable_fast_install=no
8856 # Look at the argument we got. We use all the common list separators.
8857 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8858 for pkg in $enableval; do
8859 IFS="$lt_save_ifs"
8860 if test "X$pkg" = "X$p"; then
8861 enable_fast_install=yes
8862 fi
8863 done
8864 IFS="$lt_save_ifs"
8865 ;;
8866 esac
8867else
8868 enable_fast_install=yes
8869fi
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881# This can be used to rebuild libtool when needed
8882LIBTOOL_DEPS="$ltmain"
8883
8884# Always use our own libtool.
8885LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912test -z "$LN_S" && LN_S="ln -s"
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927if test -n "${ZSH_VERSION+set}" ; then
8928 setopt NO_GLOB_SUBST
8929fi
8930
8931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8932$as_echo_n "checking for objdir... " >&6; }
f00f02a3 8933if ${lt_cv_objdir+:} false; then :
b710ec85 8934 $as_echo_n "(cached) " >&6
8935else
8936 rm -f .libs 2>/dev/null
8937mkdir .libs 2>/dev/null
8938if test -d .libs; then
8939 lt_cv_objdir=.libs
8940else
8941 # MS-DOS does not allow filenames that begin with a dot.
8942 lt_cv_objdir=_libs
8943fi
8944rmdir .libs 2>/dev/null
8945fi
8946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8947$as_echo "$lt_cv_objdir" >&6; }
8948objdir=$lt_cv_objdir
8949
8950
8951
8952
8953
8954cat >>confdefs.h <<_ACEOF
8955#define LT_OBJDIR "$lt_cv_objdir/"
8956_ACEOF
8957
8958
8959
8960
8961case $host_os in
8962aix3*)
8963 # AIX sometimes has problems with the GCC collect2 program. For some
8964 # reason, if we set the COLLECT_NAMES environment variable, the problems
8965 # vanish in a puff of smoke.
8966 if test "X${COLLECT_NAMES+set}" != Xset; then
8967 COLLECT_NAMES=
8968 export COLLECT_NAMES
8969 fi
8970 ;;
8971esac
8972
8973# Global variables:
8974ofile=libtool
8975can_build_shared=yes
8976
8977# All known linkers require a `.a' archive for static linking (except MSVC,
8978# which needs '.lib').
8979libext=a
8980
8981with_gnu_ld="$lt_cv_prog_gnu_ld"
8982
8983old_CC="$CC"
8984old_CFLAGS="$CFLAGS"
8985
8986# Set sane defaults for various variables
8987test -z "$CC" && CC=cc
8988test -z "$LTCC" && LTCC=$CC
8989test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8990test -z "$LD" && LD=ld
8991test -z "$ac_objext" && ac_objext=o
8992
8993for cc_temp in $compiler""; do
8994 case $cc_temp in
8995 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8996 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8997 \-*) ;;
8998 *) break;;
8999 esac
9000done
9001cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9002
9003
9004# Only perform the check for file, if the check method requires it
9005test -z "$MAGIC_CMD" && MAGIC_CMD=file
9006case $deplibs_check_method in
9007file_magic*)
9008 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9010$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
f00f02a3 9011if ${lt_cv_path_MAGIC_CMD+:} false; then :
b710ec85 9012 $as_echo_n "(cached) " >&6
9013else
9014 case $MAGIC_CMD in
9015[\\/*] | ?:[\\/]*)
9016 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9017 ;;
9018*)
9019 lt_save_MAGIC_CMD="$MAGIC_CMD"
9020 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9021 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9022 for ac_dir in $ac_dummy; do
9023 IFS="$lt_save_ifs"
9024 test -z "$ac_dir" && ac_dir=.
9025 if test -f $ac_dir/${ac_tool_prefix}file; then
9026 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9027 if test -n "$file_magic_test_file"; then
9028 case $deplibs_check_method in
9029 "file_magic "*)
9030 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9031 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9032 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9033 $EGREP "$file_magic_regex" > /dev/null; then
9034 :
9035 else
9036 cat <<_LT_EOF 1>&2
9037
9038*** Warning: the command libtool uses to detect shared libraries,
9039*** $file_magic_cmd, produces output that libtool cannot recognize.
9040*** The result is that libtool may fail to recognize shared libraries
9041*** as such. This will affect the creation of libtool libraries that
9042*** depend on shared libraries, but programs linked with such libtool
9043*** libraries will work regardless of this problem. Nevertheless, you
9044*** may want to report the problem to your system manager and/or to
9045*** bug-libtool@gnu.org
9046
9047_LT_EOF
9048 fi ;;
9049 esac
9050 fi
9051 break
9052 fi
9053 done
9054 IFS="$lt_save_ifs"
9055 MAGIC_CMD="$lt_save_MAGIC_CMD"
9056 ;;
9057esac
9058fi
9059
9060MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9061if test -n "$MAGIC_CMD"; then
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9063$as_echo "$MAGIC_CMD" >&6; }
9064else
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9066$as_echo "no" >&6; }
9067fi
9068
9069
9070
9071
9072
9073if test -z "$lt_cv_path_MAGIC_CMD"; then
9074 if test -n "$ac_tool_prefix"; then
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9076$as_echo_n "checking for file... " >&6; }
f00f02a3 9077if ${lt_cv_path_MAGIC_CMD+:} false; then :
b710ec85 9078 $as_echo_n "(cached) " >&6
9079else
9080 case $MAGIC_CMD in
9081[\\/*] | ?:[\\/]*)
9082 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9083 ;;
9084*)
9085 lt_save_MAGIC_CMD="$MAGIC_CMD"
9086 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9087 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9088 for ac_dir in $ac_dummy; do
9089 IFS="$lt_save_ifs"
9090 test -z "$ac_dir" && ac_dir=.
9091 if test -f $ac_dir/file; then
9092 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9093 if test -n "$file_magic_test_file"; then
9094 case $deplibs_check_method in
9095 "file_magic "*)
9096 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9097 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9098 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9099 $EGREP "$file_magic_regex" > /dev/null; then
9100 :
9101 else
9102 cat <<_LT_EOF 1>&2
9103
9104*** Warning: the command libtool uses to detect shared libraries,
9105*** $file_magic_cmd, produces output that libtool cannot recognize.
9106*** The result is that libtool may fail to recognize shared libraries
9107*** as such. This will affect the creation of libtool libraries that
9108*** depend on shared libraries, but programs linked with such libtool
9109*** libraries will work regardless of this problem. Nevertheless, you
9110*** may want to report the problem to your system manager and/or to
9111*** bug-libtool@gnu.org
9112
9113_LT_EOF
9114 fi ;;
9115 esac
9116 fi
9117 break
9118 fi
9119 done
9120 IFS="$lt_save_ifs"
9121 MAGIC_CMD="$lt_save_MAGIC_CMD"
9122 ;;
9123esac
9124fi
9125
9126MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9127if test -n "$MAGIC_CMD"; then
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9129$as_echo "$MAGIC_CMD" >&6; }
9130else
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9132$as_echo "no" >&6; }
9133fi
9134
9135
9136 else
9137 MAGIC_CMD=:
9138 fi
9139fi
9140
9141 fi
9142 ;;
9143esac
9144
9145# Use C for the default configuration in the libtool script
9146
9147lt_save_CC="$CC"
9148ac_ext=c
9149ac_cpp='$CPP $CPPFLAGS'
9150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9152ac_compiler_gnu=$ac_cv_c_compiler_gnu
9153
9154
9155# Source file extension for C test sources.
9156ac_ext=c
9157
9158# Object file extension for compiled C test sources.
9159objext=o
9160objext=$objext
9161
9162# Code to be used in simple compile tests
9163lt_simple_compile_test_code="int some_variable = 0;"
9164
9165# Code to be used in simple link tests
9166lt_simple_link_test_code='int main(){return(0);}'
9167
9168
9169
9170
9171
9172
9173
9174# If no C compiler was specified, use CC.
9175LTCC=${LTCC-"$CC"}
9176
9177# If no C compiler flags were specified, use CFLAGS.
9178LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9179
9180# Allow CC to be a program name with arguments.
9181compiler=$CC
9182
9183# Save the default compiler, since it gets overwritten when the other
9184# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9185compiler_DEFAULT=$CC
9186
9187# save warnings/boilerplate of simple test code
9188ac_outfile=conftest.$ac_objext
9189echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9190eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9191_lt_compiler_boilerplate=`cat conftest.err`
9192$RM conftest*
9193
9194ac_outfile=conftest.$ac_objext
9195echo "$lt_simple_link_test_code" >conftest.$ac_ext
9196eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9197_lt_linker_boilerplate=`cat conftest.err`
9198$RM -r conftest*
9199
9200
9201## CAVEAT EMPTOR:
9202## There is no encapsulation within the following macros, do not change
9203## the running order or otherwise move them around unless you know exactly
9204## what you are doing...
9205if test -n "$compiler"; then
9206
9207lt_prog_compiler_no_builtin_flag=
9208
9209if test "$GCC" = yes; then
9210 case $cc_basename in
9211 nvcc*)
9212 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9213 *)
9214 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9215 esac
9216
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9218$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
f00f02a3 9219if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
b710ec85 9220 $as_echo_n "(cached) " >&6
9221else
9222 lt_cv_prog_compiler_rtti_exceptions=no
9223 ac_outfile=conftest.$ac_objext
9224 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9225 lt_compiler_flag="-fno-rtti -fno-exceptions"
9226 # Insert the option either (1) after the last *FLAGS variable, or
9227 # (2) before a word containing "conftest.", or (3) at the end.
9228 # Note that $ac_compile itself does not contain backslashes and begins
9229 # with a dollar sign (not a hyphen), so the echo should work correctly.
9230 # The option is referenced via a variable to avoid confusing sed.
9231 lt_compile=`echo "$ac_compile" | $SED \
9232 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9234 -e 's:$: $lt_compiler_flag:'`
9235 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9236 (eval "$lt_compile" 2>conftest.err)
9237 ac_status=$?
9238 cat conftest.err >&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 if (exit $ac_status) && test -s "$ac_outfile"; then
9241 # The compiler can only warn and ignore the option if not recognized
9242 # So say no if there are warnings other than the usual output.
9243 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9244 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9245 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9246 lt_cv_prog_compiler_rtti_exceptions=yes
9247 fi
9248 fi
9249 $RM conftest*
9250
9251fi
9252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9253$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9254
9255if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9256 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9257else
9258 :
9259fi
9260
9261fi
9262
9263
9264
9265
9266
9267
9268 lt_prog_compiler_wl=
9269lt_prog_compiler_pic=
9270lt_prog_compiler_static=
9271
9272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9273$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9274
9275 if test "$GCC" = yes; then
9276 lt_prog_compiler_wl='-Wl,'
9277 lt_prog_compiler_static='-static'
9278
9279 case $host_os in
9280 aix*)
9281 # All AIX code is PIC.
9282 if test "$host_cpu" = ia64; then
9283 # AIX 5 now supports IA64 processor
9284 lt_prog_compiler_static='-Bstatic'
9285 fi
9286 lt_prog_compiler_pic='-fPIC'
9287 ;;
9288
9289 amigaos*)
9290 case $host_cpu in
9291 powerpc)
9292 # see comment about AmigaOS4 .so support
9293 lt_prog_compiler_pic='-fPIC'
9294 ;;
9295 m68k)
9296 # FIXME: we need at least 68020 code to build shared libraries, but
9297 # adding the `-m68020' flag to GCC prevents building anything better,
9298 # like `-m68040'.
9299 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9300 ;;
9301 esac
9302 ;;
9303
9304 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9305 # PIC is the default for these OSes.
9306 ;;
9307
9308 mingw* | cygwin* | pw32* | os2* | cegcc*)
9309 # This hack is so that the source file can tell whether it is being
9310 # built for inclusion in a dll (and should export symbols for example).
9311 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9312 # (--disable-auto-import) libraries
9313 lt_prog_compiler_pic='-DDLL_EXPORT'
9314 ;;
9315
9316 darwin* | rhapsody*)
9317 # PIC is the default on this platform
9318 # Common symbols not allowed in MH_DYLIB files
9319 lt_prog_compiler_pic='-fno-common'
9320 ;;
9321
9322 haiku*)
9323 # PIC is the default for Haiku.
9324 # The "-static" flag exists, but is broken.
9325 lt_prog_compiler_static=
9326 ;;
9327
9328 hpux*)
9329 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9330 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9331 # sets the default TLS model and affects inlining.
9332 case $host_cpu in
9333 hppa*64*)
9334 # +Z the default
9335 ;;
9336 *)
9337 lt_prog_compiler_pic='-fPIC'
9338 ;;
9339 esac
9340 ;;
9341
9342 interix[3-9]*)
9343 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9344 # Instead, we relocate shared libraries at runtime.
9345 ;;
9346
9347 msdosdjgpp*)
9348 # Just because we use GCC doesn't mean we suddenly get shared libraries
9349 # on systems that don't support them.
9350 lt_prog_compiler_can_build_shared=no
9351 enable_shared=no
9352 ;;
9353
9354 *nto* | *qnx*)
9355 # QNX uses GNU C++, but need to define -shared option too, otherwise
9356 # it will coredump.
9357 lt_prog_compiler_pic='-fPIC -shared'
9358 ;;
9359
9360 sysv4*MP*)
9361 if test -d /usr/nec; then
9362 lt_prog_compiler_pic=-Kconform_pic
9363 fi
9364 ;;
9365
9366 *)
9367 lt_prog_compiler_pic='-fPIC'
9368 ;;
9369 esac
9370
9371 case $cc_basename in
9372 nvcc*) # Cuda Compiler Driver 2.2
9373 lt_prog_compiler_wl='-Xlinker '
9374 lt_prog_compiler_pic='-Xcompiler -fPIC'
9375 ;;
9376 esac
9377 else
9378 # PORTME Check for flag to pass linker flags through the system compiler.
9379 case $host_os in
9380 aix*)
9381 lt_prog_compiler_wl='-Wl,'
9382 if test "$host_cpu" = ia64; then
9383 # AIX 5 now supports IA64 processor
9384 lt_prog_compiler_static='-Bstatic'
9385 else
9386 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9387 fi
9388 ;;
9389
9390 mingw* | cygwin* | pw32* | os2* | cegcc*)
9391 # This hack is so that the source file can tell whether it is being
9392 # built for inclusion in a dll (and should export symbols for example).
9393 lt_prog_compiler_pic='-DDLL_EXPORT'
9394 ;;
9395
9396 hpux9* | hpux10* | hpux11*)
9397 lt_prog_compiler_wl='-Wl,'
9398 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9399 # not for PA HP-UX.
9400 case $host_cpu in
9401 hppa*64*|ia64*)
9402 # +Z the default
9403 ;;
9404 *)
9405 lt_prog_compiler_pic='+Z'
9406 ;;
9407 esac
9408 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9409 lt_prog_compiler_static='${wl}-a ${wl}archive'
9410 ;;
9411
9412 irix5* | irix6* | nonstopux*)
9413 lt_prog_compiler_wl='-Wl,'
9414 # PIC (with -KPIC) is the default.
9415 lt_prog_compiler_static='-non_shared'
9416 ;;
9417
9418 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9419 case $cc_basename in
9420 # old Intel for x86_64 which still supported -KPIC.
9421 ecc*)
9422 lt_prog_compiler_wl='-Wl,'
9423 lt_prog_compiler_pic='-KPIC'
9424 lt_prog_compiler_static='-static'
9425 ;;
9426 # icc used to be incompatible with GCC.
9427 # ICC 10 doesn't accept -KPIC any more.
9428 icc* | ifort*)
9429 lt_prog_compiler_wl='-Wl,'
9430 lt_prog_compiler_pic='-fPIC'
9431 lt_prog_compiler_static='-static'
9432 ;;
9433 # Lahey Fortran 8.1.
9434 lf95*)
9435 lt_prog_compiler_wl='-Wl,'
9436 lt_prog_compiler_pic='--shared'
9437 lt_prog_compiler_static='--static'
9438 ;;
9439 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9440 # Portland Group compilers (*not* the Pentium gcc compiler,
9441 # which looks to be a dead project)
9442 lt_prog_compiler_wl='-Wl,'
9443 lt_prog_compiler_pic='-fpic'
9444 lt_prog_compiler_static='-Bstatic'
9445 ;;
9446 ccc*)
9447 lt_prog_compiler_wl='-Wl,'
9448 # All Alpha code is PIC.
9449 lt_prog_compiler_static='-non_shared'
9450 ;;
9451 xl* | bgxl* | bgf* | mpixl*)
9452 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9453 lt_prog_compiler_wl='-Wl,'
9454 lt_prog_compiler_pic='-qpic'
9455 lt_prog_compiler_static='-qstaticlink'
9456 ;;
9457 *)
9458 case `$CC -V 2>&1 | sed 5q` in
9459 *Sun\ F* | *Sun*Fortran*)
9460 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9461 lt_prog_compiler_pic='-KPIC'
9462 lt_prog_compiler_static='-Bstatic'
9463 lt_prog_compiler_wl=''
9464 ;;
9465 *Sun\ C*)
9466 # Sun C 5.9
9467 lt_prog_compiler_pic='-KPIC'
9468 lt_prog_compiler_static='-Bstatic'
9469 lt_prog_compiler_wl='-Wl,'
9470 ;;
9471 esac
9472 ;;
9473 esac
9474 ;;
9475
9476 newsos6)
9477 lt_prog_compiler_pic='-KPIC'
9478 lt_prog_compiler_static='-Bstatic'
9479 ;;
9480
9481 *nto* | *qnx*)
9482 # QNX uses GNU C++, but need to define -shared option too, otherwise
9483 # it will coredump.
9484 lt_prog_compiler_pic='-fPIC -shared'
9485 ;;
9486
9487 osf3* | osf4* | osf5*)
9488 lt_prog_compiler_wl='-Wl,'
9489 # All OSF/1 code is PIC.
9490 lt_prog_compiler_static='-non_shared'
9491 ;;
9492
9493 rdos*)
9494 lt_prog_compiler_static='-non_shared'
9495 ;;
9496
9497 solaris*)
9498 lt_prog_compiler_pic='-KPIC'
9499 lt_prog_compiler_static='-Bstatic'
9500 case $cc_basename in
9501 f77* | f90* | f95*)
9502 lt_prog_compiler_wl='-Qoption ld ';;
9503 *)
9504 lt_prog_compiler_wl='-Wl,';;
9505 esac
9506 ;;
9507
9508 sunos4*)
9509 lt_prog_compiler_wl='-Qoption ld '
9510 lt_prog_compiler_pic='-PIC'
9511 lt_prog_compiler_static='-Bstatic'
9512 ;;
9513
9514 sysv4 | sysv4.2uw2* | sysv4.3*)
9515 lt_prog_compiler_wl='-Wl,'
9516 lt_prog_compiler_pic='-KPIC'
9517 lt_prog_compiler_static='-Bstatic'
9518 ;;
9519
9520 sysv4*MP*)
9521 if test -d /usr/nec ;then
9522 lt_prog_compiler_pic='-Kconform_pic'
9523 lt_prog_compiler_static='-Bstatic'
9524 fi
9525 ;;
9526
9527 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9528 lt_prog_compiler_wl='-Wl,'
9529 lt_prog_compiler_pic='-KPIC'
9530 lt_prog_compiler_static='-Bstatic'
9531 ;;
9532
9533 unicos*)
9534 lt_prog_compiler_wl='-Wl,'
9535 lt_prog_compiler_can_build_shared=no
9536 ;;
9537
9538 uts4*)
9539 lt_prog_compiler_pic='-pic'
9540 lt_prog_compiler_static='-Bstatic'
9541 ;;
9542
9543 *)
9544 lt_prog_compiler_can_build_shared=no
9545 ;;
9546 esac
9547 fi
9548
9549case $host_os in
9550 # For platforms which do not support PIC, -DPIC is meaningless:
9551 *djgpp*)
9552 lt_prog_compiler_pic=
9553 ;;
9554 *)
9555 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9556 ;;
9557esac
9558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9559$as_echo "$lt_prog_compiler_pic" >&6; }
9560
9561
9562
9563
9564
9565
9566#
9567# Check to make sure the PIC flag actually works.
9568#
9569if test -n "$lt_prog_compiler_pic"; then
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9571$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
f00f02a3 9572if ${lt_cv_prog_compiler_pic_works+:} false; then :
b710ec85 9573 $as_echo_n "(cached) " >&6
9574else
9575 lt_cv_prog_compiler_pic_works=no
9576 ac_outfile=conftest.$ac_objext
9577 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9578 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9579 # Insert the option either (1) after the last *FLAGS variable, or
9580 # (2) before a word containing "conftest.", or (3) at the end.
9581 # Note that $ac_compile itself does not contain backslashes and begins
9582 # with a dollar sign (not a hyphen), so the echo should work correctly.
9583 # The option is referenced via a variable to avoid confusing sed.
9584 lt_compile=`echo "$ac_compile" | $SED \
9585 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9586 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9587 -e 's:$: $lt_compiler_flag:'`
9588 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9589 (eval "$lt_compile" 2>conftest.err)
9590 ac_status=$?
9591 cat conftest.err >&5
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 if (exit $ac_status) && test -s "$ac_outfile"; then
9594 # The compiler can only warn and ignore the option if not recognized
9595 # So say no if there are warnings other than the usual output.
9596 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9597 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9598 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9599 lt_cv_prog_compiler_pic_works=yes
9600 fi
9601 fi
9602 $RM conftest*
9603
9604fi
9605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9606$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9607
9608if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9609 case $lt_prog_compiler_pic in
9610 "" | " "*) ;;
9611 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9612 esac
9613else
9614 lt_prog_compiler_pic=
9615 lt_prog_compiler_can_build_shared=no
9616fi
9617
9618fi
9619
9620
9621
9622
9623
9624
9625#
9626# Check to make sure the static flag actually works.
9627#
9628wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9630$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
f00f02a3 9631if ${lt_cv_prog_compiler_static_works+:} false; then :
b710ec85 9632 $as_echo_n "(cached) " >&6
9633else
9634 lt_cv_prog_compiler_static_works=no
9635 save_LDFLAGS="$LDFLAGS"
9636 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9637 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9638 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9639 # The linker can only warn and ignore the option if not recognized
9640 # So say no if there are warnings
9641 if test -s conftest.err; then
9642 # Append any errors to the config.log.
9643 cat conftest.err 1>&5
9644 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9645 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9646 if diff conftest.exp conftest.er2 >/dev/null; then
9647 lt_cv_prog_compiler_static_works=yes
9648 fi
9649 else
9650 lt_cv_prog_compiler_static_works=yes
9651 fi
9652 fi
9653 $RM -r conftest*
9654 LDFLAGS="$save_LDFLAGS"
9655
9656fi
9657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9658$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9659
9660if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9661 :
9662else
9663 lt_prog_compiler_static=
9664fi
9665
9666
9667
9668
9669
9670
9671
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9673$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
f00f02a3 9674if ${lt_cv_prog_compiler_c_o+:} false; then :
b710ec85 9675 $as_echo_n "(cached) " >&6
9676else
9677 lt_cv_prog_compiler_c_o=no
9678 $RM -r conftest 2>/dev/null
9679 mkdir conftest
9680 cd conftest
9681 mkdir out
9682 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9683
9684 lt_compiler_flag="-o out/conftest2.$ac_objext"
9685 # Insert the option either (1) after the last *FLAGS variable, or
9686 # (2) before a word containing "conftest.", or (3) at the end.
9687 # Note that $ac_compile itself does not contain backslashes and begins
9688 # with a dollar sign (not a hyphen), so the echo should work correctly.
9689 lt_compile=`echo "$ac_compile" | $SED \
9690 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9691 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9692 -e 's:$: $lt_compiler_flag:'`
9693 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9694 (eval "$lt_compile" 2>out/conftest.err)
9695 ac_status=$?
9696 cat out/conftest.err >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9699 then
9700 # The compiler can only warn and ignore the option if not recognized
9701 # So say no if there are warnings
9702 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9703 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9704 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9705 lt_cv_prog_compiler_c_o=yes
9706 fi
9707 fi
9708 chmod u+w . 2>&5
9709 $RM conftest*
9710 # SGI C++ compiler will create directory out/ii_files/ for
9711 # template instantiation
9712 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9713 $RM out/* && rmdir out
9714 cd ..
9715 $RM -r conftest
9716 $RM conftest*
9717
9718fi
9719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9720$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9721
9722
9723
9724
9725
9726
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9728$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
f00f02a3 9729if ${lt_cv_prog_compiler_c_o+:} false; then :
b710ec85 9730 $as_echo_n "(cached) " >&6
9731else
9732 lt_cv_prog_compiler_c_o=no
9733 $RM -r conftest 2>/dev/null
9734 mkdir conftest
9735 cd conftest
9736 mkdir out
9737 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9738
9739 lt_compiler_flag="-o out/conftest2.$ac_objext"
9740 # Insert the option either (1) after the last *FLAGS variable, or
9741 # (2) before a word containing "conftest.", or (3) at the end.
9742 # Note that $ac_compile itself does not contain backslashes and begins
9743 # with a dollar sign (not a hyphen), so the echo should work correctly.
9744 lt_compile=`echo "$ac_compile" | $SED \
9745 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9746 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9747 -e 's:$: $lt_compiler_flag:'`
9748 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9749 (eval "$lt_compile" 2>out/conftest.err)
9750 ac_status=$?
9751 cat out/conftest.err >&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9754 then
9755 # The compiler can only warn and ignore the option if not recognized
9756 # So say no if there are warnings
9757 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9758 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9759 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9760 lt_cv_prog_compiler_c_o=yes
9761 fi
9762 fi
9763 chmod u+w . 2>&5
9764 $RM conftest*
9765 # SGI C++ compiler will create directory out/ii_files/ for
9766 # template instantiation
9767 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9768 $RM out/* && rmdir out
9769 cd ..
9770 $RM -r conftest
9771 $RM conftest*
9772
9773fi
9774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9775$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9776
9777
9778
9779
9780hard_links="nottested"
9781if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9782 # do not overwrite the value of need_locks provided by the user
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9784$as_echo_n "checking if we can lock with hard links... " >&6; }
9785 hard_links=yes
9786 $RM conftest*
9787 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9788 touch conftest.a
9789 ln conftest.a conftest.b 2>&5 || hard_links=no
9790 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9792$as_echo "$hard_links" >&6; }
9793 if test "$hard_links" = no; then
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9795$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9796 need_locks=warn
9797 fi
9798else
9799 need_locks=no
9800fi
9801
9802
9803
9804
9805
9806
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9808$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9809
9810 runpath_var=
9811 allow_undefined_flag=
9812 always_export_symbols=no
9813 archive_cmds=
9814 archive_expsym_cmds=
9815 compiler_needs_object=no
9816 enable_shared_with_static_runtimes=no
9817 export_dynamic_flag_spec=
9818 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9819 hardcode_automatic=no
9820 hardcode_direct=no
9821 hardcode_direct_absolute=no
9822 hardcode_libdir_flag_spec=
9823 hardcode_libdir_flag_spec_ld=
9824 hardcode_libdir_separator=
9825 hardcode_minus_L=no
9826 hardcode_shlibpath_var=unsupported
9827 inherit_rpath=no
9828 link_all_deplibs=unknown
9829 module_cmds=
9830 module_expsym_cmds=
9831 old_archive_from_new_cmds=
9832 old_archive_from_expsyms_cmds=
9833 thread_safe_flag_spec=
9834 whole_archive_flag_spec=
9835 # include_expsyms should be a list of space-separated symbols to be *always*
9836 # included in the symbol list
9837 include_expsyms=
9838 # exclude_expsyms can be an extended regexp of symbols to exclude
9839 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9840 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9841 # as well as any symbol that contains `d'.
9842 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9843 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9844 # platforms (ab)use it in PIC code, but their linkers get confused if
9845 # the symbol is explicitly referenced. Since portable code cannot
9846 # rely on this symbol name, it's probably fine to never include it in
9847 # preloaded symbol tables.
9848 # Exclude shared library initialization/finalization symbols.
9849 extract_expsyms_cmds=
9850
9851 case $host_os in
9852 cygwin* | mingw* | pw32* | cegcc*)
9853 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9854 # When not using gcc, we currently assume that we are using
9855 # Microsoft Visual C++.
9856 if test "$GCC" != yes; then
9857 with_gnu_ld=no
9858 fi
9859 ;;
9860 interix*)
9861 # we just hope/assume this is gcc and not c89 (= MSVC++)
9862 with_gnu_ld=yes
9863 ;;
9864 openbsd*)
9865 with_gnu_ld=no
9866 ;;
9867 esac
9868
9869 ld_shlibs=yes
9870
9871 # On some targets, GNU ld is compatible enough with the native linker
9872 # that we're better off using the native interface for both.
9873 lt_use_gnu_ld_interface=no
9874 if test "$with_gnu_ld" = yes; then
9875 case $host_os in
9876 aix*)
9877 # The AIX port of GNU ld has always aspired to compatibility
9878 # with the native linker. However, as the warning in the GNU ld
9879 # block says, versions before 2.19.5* couldn't really create working
9880 # shared libraries, regardless of the interface used.
9881 case `$LD -v 2>&1` in
9882 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9883 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9884 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9885 *)
9886 lt_use_gnu_ld_interface=yes
9887 ;;
9888 esac
9889 ;;
9890 *)
9891 lt_use_gnu_ld_interface=yes
9892 ;;
9893 esac
9894 fi
9895
9896 if test "$lt_use_gnu_ld_interface" = yes; then
9897 # If archive_cmds runs LD, not CC, wlarc should be empty
9898 wlarc='${wl}'
9899
9900 # Set some defaults for GNU ld with shared library support. These
9901 # are reset later if shared libraries are not supported. Putting them
9902 # here allows them to be overridden if necessary.
9903 runpath_var=LD_RUN_PATH
9904 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9905 export_dynamic_flag_spec='${wl}--export-dynamic'
9906 # ancient GNU ld didn't support --whole-archive et. al.
9907 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9908 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9909 else
9910 whole_archive_flag_spec=
9911 fi
9912 supports_anon_versioning=no
9913 case `$LD -v 2>&1` in
9914 *GNU\ gold*) supports_anon_versioning=yes ;;
9915 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9916 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9917 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9918 *\ 2.11.*) ;; # other 2.11 versions
9919 *) supports_anon_versioning=yes ;;
9920 esac
9921
9922 # See if GNU ld supports shared libraries.
9923 case $host_os in
9924 aix[3-9]*)
9925 # On AIX/PPC, the GNU linker is very broken
9926 if test "$host_cpu" != ia64; then
9927 ld_shlibs=no
9928 cat <<_LT_EOF 1>&2
9929
9930*** Warning: the GNU linker, at least up to release 2.19, is reported
9931*** to be unable to reliably create shared libraries on AIX.
9932*** Therefore, libtool is disabling shared libraries support. If you
9933*** really care for shared libraries, you may want to install binutils
9934*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9935*** You will then need to restart the configuration process.
9936
9937_LT_EOF
9938 fi
9939 ;;
9940
9941 amigaos*)
9942 case $host_cpu in
9943 powerpc)
9944 # see comment about AmigaOS4 .so support
9945 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9946 archive_expsym_cmds=''
9947 ;;
9948 m68k)
9949 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)'
9950 hardcode_libdir_flag_spec='-L$libdir'
9951 hardcode_minus_L=yes
9952 ;;
9953 esac
9954 ;;
9955
9956 beos*)
9957 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9958 allow_undefined_flag=unsupported
9959 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9960 # support --undefined. This deserves some investigation. FIXME
9961 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9962 else
9963 ld_shlibs=no
9964 fi
9965 ;;
9966
9967 cygwin* | mingw* | pw32* | cegcc*)
9968 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9969 # as there is no search path for DLLs.
9970 hardcode_libdir_flag_spec='-L$libdir'
9971 export_dynamic_flag_spec='${wl}--export-all-symbols'
9972 allow_undefined_flag=unsupported
9973 always_export_symbols=no
9974 enable_shared_with_static_runtimes=yes
9975 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9976
9977 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9978 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9979 # If the export-symbols file already is a .def file (1st line
9980 # is EXPORTS), use it as is; otherwise, prepend...
9981 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9982 cp $export_symbols $output_objdir/$soname.def;
9983 else
9984 echo EXPORTS > $output_objdir/$soname.def;
9985 cat $export_symbols >> $output_objdir/$soname.def;
9986 fi~
9987 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9988 else
9989 ld_shlibs=no
9990 fi
9991 ;;
9992
9993 haiku*)
9994 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9995 link_all_deplibs=yes
9996 ;;
9997
9998 interix[3-9]*)
9999 hardcode_direct=no
10000 hardcode_shlibpath_var=no
10001 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10002 export_dynamic_flag_spec='${wl}-E'
10003 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10004 # Instead, shared libraries are loaded at an image base (0x10000000 by
10005 # default) and relocated if they conflict, which is a slow very memory
10006 # consuming and fragmenting process. To avoid this, we pick a random,
10007 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10008 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10009 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10010 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'
10011 ;;
10012
10013 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10014 tmp_diet=no
10015 if test "$host_os" = linux-dietlibc; then
10016 case $cc_basename in
10017 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10018 esac
10019 fi
10020 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10021 && test "$tmp_diet" = no
10022 then
4e8a08d4 10023 tmp_addflag=' $pic_flag'
b710ec85 10024 tmp_sharedflag='-shared'
10025 case $cc_basename,$host_cpu in
10026 pgcc*) # Portland Group C compiler
10027 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'
10028 tmp_addflag=' $pic_flag'
10029 ;;
10030 pgf77* | pgf90* | pgf95* | pgfortran*)
10031 # Portland Group f77 and f90 compilers
10032 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'
10033 tmp_addflag=' $pic_flag -Mnomain' ;;
10034 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10035 tmp_addflag=' -i_dynamic' ;;
10036 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10037 tmp_addflag=' -i_dynamic -nofor_main' ;;
10038 ifc* | ifort*) # Intel Fortran compiler
10039 tmp_addflag=' -nofor_main' ;;
10040 lf95*) # Lahey Fortran 8.1
10041 whole_archive_flag_spec=
10042 tmp_sharedflag='--shared' ;;
10043 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10044 tmp_sharedflag='-qmkshrobj'
10045 tmp_addflag= ;;
10046 nvcc*) # Cuda Compiler Driver 2.2
10047 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'
10048 compiler_needs_object=yes
10049 ;;
10050 esac
10051 case `$CC -V 2>&1 | sed 5q` in
10052 *Sun\ C*) # Sun C 5.9
10053 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'
10054 compiler_needs_object=yes
10055 tmp_sharedflag='-G' ;;
10056 *Sun\ F*) # Sun Fortran 8.3
10057 tmp_sharedflag='-G' ;;
10058 esac
10059 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10060
10061 if test "x$supports_anon_versioning" = xyes; then
10062 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10063 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10064 echo "local: *; };" >> $output_objdir/$libname.ver~
10065 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10066 fi
10067
10068 case $cc_basename in
10069 xlf* | bgf* | bgxlf* | mpixlf*)
10070 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10071 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10072 hardcode_libdir_flag_spec=
10073 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10074 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10075 if test "x$supports_anon_versioning" = xyes; then
10076 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10077 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10078 echo "local: *; };" >> $output_objdir/$libname.ver~
10079 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10080 fi
10081 ;;
10082 esac
10083 else
10084 ld_shlibs=no
10085 fi
10086 ;;
10087
10088 netbsd*)
10089 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10090 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10091 wlarc=
10092 else
10093 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10094 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10095 fi
10096 ;;
10097
10098 solaris*)
10099 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10100 ld_shlibs=no
10101 cat <<_LT_EOF 1>&2
10102
10103*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10104*** create shared libraries on Solaris systems. Therefore, libtool
10105*** is disabling shared libraries support. We urge you to upgrade GNU
10106*** binutils to release 2.9.1 or newer. Another option is to modify
10107*** your PATH or compiler configuration so that the native linker is
10108*** used, and then restart.
10109
10110_LT_EOF
10111 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10112 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10113 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10114 else
10115 ld_shlibs=no
10116 fi
10117 ;;
10118
10119 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10120 case `$LD -v 2>&1` in
10121 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10122 ld_shlibs=no
10123 cat <<_LT_EOF 1>&2
10124
10125*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10126*** reliably create shared libraries on SCO systems. Therefore, libtool
10127*** is disabling shared libraries support. We urge you to upgrade GNU
10128*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10129*** your PATH or compiler configuration so that the native linker is
10130*** used, and then restart.
10131
10132_LT_EOF
10133 ;;
10134 *)
10135 # For security reasons, it is highly recommended that you always
10136 # use absolute paths for naming shared libraries, and exclude the
10137 # DT_RUNPATH tag from executables and libraries. But doing so
10138 # requires that you compile everything twice, which is a pain.
10139 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10140 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10141 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10142 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10143 else
10144 ld_shlibs=no
10145 fi
10146 ;;
10147 esac
10148 ;;
10149
10150 sunos4*)
10151 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10152 wlarc=
10153 hardcode_direct=yes
10154 hardcode_shlibpath_var=no
10155 ;;
10156
10157 *)
10158 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10159 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10160 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10161 else
10162 ld_shlibs=no
10163 fi
10164 ;;
10165 esac
10166
10167 if test "$ld_shlibs" = no; then
10168 runpath_var=
10169 hardcode_libdir_flag_spec=
10170 export_dynamic_flag_spec=
10171 whole_archive_flag_spec=
10172 fi
10173 else
10174 # PORTME fill in a description of your system's linker (not GNU ld)
10175 case $host_os in
10176 aix3*)
10177 allow_undefined_flag=unsupported
10178 always_export_symbols=yes
10179 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'
10180 # Note: this linker hardcodes the directories in LIBPATH if there
10181 # are no directories specified by -L.
10182 hardcode_minus_L=yes
10183 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10184 # Neither direct hardcoding nor static linking is supported with a
10185 # broken collect2.
10186 hardcode_direct=unsupported
10187 fi
10188 ;;
10189
10190 aix[4-9]*)
10191 if test "$host_cpu" = ia64; then
10192 # On IA64, the linker does run time linking by default, so we don't
10193 # have to do anything special.
10194 aix_use_runtimelinking=no
10195 exp_sym_flag='-Bexport'
10196 no_entry_flag=""
10197 else
10198 # If we're using GNU nm, then we don't want the "-C" option.
10199 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10200 # Also, AIX nm treats weak defined symbols like other global
10201 # defined symbols, whereas GNU nm marks them as "W".
10202 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10203 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'
10204 else
0344b437 10205 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
b710ec85 10206 fi
10207 aix_use_runtimelinking=no
10208
10209 # Test if we are trying to use run time linking or normal
10210 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10211 # need to do runtime linking.
10212 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10213 for ld_flag in $LDFLAGS; do
10214 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10215 aix_use_runtimelinking=yes
10216 break
10217 fi
10218 done
10219 ;;
10220 esac
10221
10222 exp_sym_flag='-bexport'
10223 no_entry_flag='-bnoentry'
10224 fi
10225
10226 # When large executables or shared objects are built, AIX ld can
10227 # have problems creating the table of contents. If linking a library
10228 # or program results in "error TOC overflow" add -mminimal-toc to
10229 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10230 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10231
10232 archive_cmds=''
10233 hardcode_direct=yes
10234 hardcode_direct_absolute=yes
10235 hardcode_libdir_separator=':'
10236 link_all_deplibs=yes
10237 file_list_spec='${wl}-f,'
10238
10239 if test "$GCC" = yes; then
10240 case $host_os in aix4.[012]|aix4.[012].*)
10241 # We only want to do this on AIX 4.2 and lower, the check
10242 # below for broken collect2 doesn't work under 4.3+
10243 collect2name=`${CC} -print-prog-name=collect2`
10244 if test -f "$collect2name" &&
10245 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10246 then
10247 # We have reworked collect2
10248 :
10249 else
10250 # We have old collect2
10251 hardcode_direct=unsupported
10252 # It fails to find uninstalled libraries when the uninstalled
10253 # path is not listed in the libpath. Setting hardcode_minus_L
10254 # to unsupported forces relinking
10255 hardcode_minus_L=yes
10256 hardcode_libdir_flag_spec='-L$libdir'
10257 hardcode_libdir_separator=
10258 fi
10259 ;;
10260 esac
10261 shared_flag='-shared'
10262 if test "$aix_use_runtimelinking" = yes; then
10263 shared_flag="$shared_flag "'${wl}-G'
10264 fi
10265 else
10266 # not using gcc
10267 if test "$host_cpu" = ia64; then
10268 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10269 # chokes on -Wl,-G. The following line is correct:
10270 shared_flag='-G'
10271 else
10272 if test "$aix_use_runtimelinking" = yes; then
10273 shared_flag='${wl}-G'
10274 else
10275 shared_flag='${wl}-bM:SRE'
10276 fi
10277 fi
10278 fi
10279
10280 export_dynamic_flag_spec='${wl}-bexpall'
10281 # It seems that -bexpall does not export symbols beginning with
10282 # underscore (_), so it is better to generate a list of symbols to export.
10283 always_export_symbols=yes
10284 if test "$aix_use_runtimelinking" = yes; then
10285 # Warning - without using the other runtime loading flags (-brtl),
10286 # -berok will link without error, but may produce a broken library.
10287 allow_undefined_flag='-berok'
10288 # Determine the default libpath from the value encoded in an
10289 # empty executable.
10290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10291/* end confdefs.h. */
10292
10293int
10294main ()
10295{
10296
10297 ;
10298 return 0;
10299}
10300_ACEOF
10301if ac_fn_c_try_link "$LINENO"; then :
10302
10303lt_aix_libpath_sed='
10304 /Import File Strings/,/^$/ {
10305 /^0/ {
10306 s/^0 *\(.*\)$/\1/
10307 p
10308 }
10309 }'
10310aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10311# Check for a 64-bit object if we didn't find anything.
10312if test -z "$aix_libpath"; then
10313 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10314fi
10315fi
10316rm -f core conftest.err conftest.$ac_objext \
10317 conftest$ac_exeext conftest.$ac_ext
10318if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10319
10320 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10321 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"
10322 else
10323 if test "$host_cpu" = ia64; then
10324 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10325 allow_undefined_flag="-z nodefs"
10326 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"
10327 else
10328 # Determine the default libpath from the value encoded in an
10329 # empty executable.
10330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10331/* end confdefs.h. */
10332
10333int
10334main ()
10335{
10336
10337 ;
10338 return 0;
10339}
10340_ACEOF
10341if ac_fn_c_try_link "$LINENO"; then :
10342
10343lt_aix_libpath_sed='
10344 /Import File Strings/,/^$/ {
10345 /^0/ {
10346 s/^0 *\(.*\)$/\1/
10347 p
10348 }
10349 }'
10350aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10351# Check for a 64-bit object if we didn't find anything.
10352if test -z "$aix_libpath"; then
10353 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10354fi
10355fi
10356rm -f core conftest.err conftest.$ac_objext \
10357 conftest$ac_exeext conftest.$ac_ext
10358if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10359
10360 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10361 # Warning - without using the other run time loading flags,
10362 # -berok will link without error, but may produce a broken library.
10363 no_undefined_flag=' ${wl}-bernotok'
10364 allow_undefined_flag=' ${wl}-berok'
10365 if test "$with_gnu_ld" = yes; then
10366 # We only use this code for GNU lds that support --whole-archive.
10367 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10368 else
10369 # Exported symbols can be pulled into shared objects from archives
10370 whole_archive_flag_spec='$convenience'
10371 fi
10372 archive_cmds_need_lc=yes
10373 # This is similar to how AIX traditionally builds its shared libraries.
10374 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'
10375 fi
10376 fi
10377 ;;
10378
10379 amigaos*)
10380 case $host_cpu in
10381 powerpc)
10382 # see comment about AmigaOS4 .so support
10383 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10384 archive_expsym_cmds=''
10385 ;;
10386 m68k)
10387 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)'
10388 hardcode_libdir_flag_spec='-L$libdir'
10389 hardcode_minus_L=yes
10390 ;;
10391 esac
10392 ;;
10393
10394 bsdi[45]*)
10395 export_dynamic_flag_spec=-rdynamic
10396 ;;
10397
10398 cygwin* | mingw* | pw32* | cegcc*)
10399 # When not using gcc, we currently assume that we are using
10400 # Microsoft Visual C++.
10401 # hardcode_libdir_flag_spec is actually meaningless, as there is
10402 # no search path for DLLs.
10403 hardcode_libdir_flag_spec=' '
10404 allow_undefined_flag=unsupported
10405 # Tell ltmain to make .lib files, not .a files.
10406 libext=lib
10407 # Tell ltmain to make .dll files, not .so files.
10408 shrext_cmds=".dll"
10409 # FIXME: Setting linknames here is a bad hack.
10410 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10411 # The linker will automatically build a .lib file if we build a DLL.
10412 old_archive_from_new_cmds='true'
10413 # FIXME: Should let the user specify the lib program.
10414 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10415 fix_srcfile_path='`cygpath -w "$srcfile"`'
10416 enable_shared_with_static_runtimes=yes
10417 ;;
10418
10419 darwin* | rhapsody*)
10420
10421
10422 archive_cmds_need_lc=no
10423 hardcode_direct=no
10424 hardcode_automatic=yes
10425 hardcode_shlibpath_var=unsupported
10426 if test "$lt_cv_ld_force_load" = "yes"; then
10427 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\"`'
10428 else
10429 whole_archive_flag_spec=''
10430 fi
10431 link_all_deplibs=yes
10432 allow_undefined_flag="$_lt_dar_allow_undefined"
10433 case $cc_basename in
10434 ifort*) _lt_dar_can_shared=yes ;;
10435 *) _lt_dar_can_shared=$GCC ;;
10436 esac
10437 if test "$_lt_dar_can_shared" = "yes"; then
10438 output_verbose_link_cmd=func_echo_all
10439 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10440 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10441 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}"
10442 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}"
10443
10444 else
10445 ld_shlibs=no
10446 fi
10447
10448 ;;
10449
10450 dgux*)
10451 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10452 hardcode_libdir_flag_spec='-L$libdir'
10453 hardcode_shlibpath_var=no
10454 ;;
10455
10456 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10457 # support. Future versions do this automatically, but an explicit c++rt0.o
10458 # does not break anything, and helps significantly (at the cost of a little
10459 # extra space).
10460 freebsd2.2*)
10461 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10462 hardcode_libdir_flag_spec='-R$libdir'
10463 hardcode_direct=yes
10464 hardcode_shlibpath_var=no
10465 ;;
10466
10467 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10468 freebsd2.*)
10469 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10470 hardcode_direct=yes
10471 hardcode_minus_L=yes
10472 hardcode_shlibpath_var=no
10473 ;;
10474
10475 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10476 freebsd* | dragonfly*)
10477 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10478 hardcode_libdir_flag_spec='-R$libdir'
10479 hardcode_direct=yes
10480 hardcode_shlibpath_var=no
10481 ;;
10482
10483 hpux9*)
10484 if test "$GCC" = yes; then
10485 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'
10486 else
10487 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'
10488 fi
10489 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10490 hardcode_libdir_separator=:
10491 hardcode_direct=yes
10492
10493 # hardcode_minus_L: Not really in the search PATH,
10494 # but as the default location of the library.
10495 hardcode_minus_L=yes
10496 export_dynamic_flag_spec='${wl}-E'
10497 ;;
10498
10499 hpux10*)
10500 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10501 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10502 else
10503 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10504 fi
10505 if test "$with_gnu_ld" = no; then
10506 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10507 hardcode_libdir_flag_spec_ld='+b $libdir'
10508 hardcode_libdir_separator=:
10509 hardcode_direct=yes
10510 hardcode_direct_absolute=yes
10511 export_dynamic_flag_spec='${wl}-E'
10512 # hardcode_minus_L: Not really in the search PATH,
10513 # but as the default location of the library.
10514 hardcode_minus_L=yes
10515 fi
10516 ;;
10517
10518 hpux11*)
10519 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10520 case $host_cpu in
10521 hppa*64*)
10522 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10523 ;;
10524 ia64*)
10525 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10526 ;;
10527 *)
10528 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10529 ;;
10530 esac
10531 else
10532 case $host_cpu in
10533 hppa*64*)
10534 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10535 ;;
10536 ia64*)
10537 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10538 ;;
10539 *)
10540
10541 # Older versions of the 11.00 compiler do not understand -b yet
10542 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10544$as_echo_n "checking if $CC understands -b... " >&6; }
f00f02a3 10545if ${lt_cv_prog_compiler__b+:} false; then :
b710ec85 10546 $as_echo_n "(cached) " >&6
10547else
10548 lt_cv_prog_compiler__b=no
10549 save_LDFLAGS="$LDFLAGS"
10550 LDFLAGS="$LDFLAGS -b"
10551 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10552 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10553 # The linker can only warn and ignore the option if not recognized
10554 # So say no if there are warnings
10555 if test -s conftest.err; then
10556 # Append any errors to the config.log.
10557 cat conftest.err 1>&5
10558 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10559 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10560 if diff conftest.exp conftest.er2 >/dev/null; then
10561 lt_cv_prog_compiler__b=yes
10562 fi
10563 else
10564 lt_cv_prog_compiler__b=yes
10565 fi
10566 fi
10567 $RM -r conftest*
10568 LDFLAGS="$save_LDFLAGS"
10569
10570fi
10571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10572$as_echo "$lt_cv_prog_compiler__b" >&6; }
10573
10574if test x"$lt_cv_prog_compiler__b" = xyes; then
10575 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10576else
10577 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10578fi
10579
10580 ;;
10581 esac
10582 fi
10583 if test "$with_gnu_ld" = no; then
10584 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10585 hardcode_libdir_separator=:
10586
10587 case $host_cpu in
10588 hppa*64*|ia64*)
10589 hardcode_direct=no
10590 hardcode_shlibpath_var=no
10591 ;;
10592 *)
10593 hardcode_direct=yes
10594 hardcode_direct_absolute=yes
10595 export_dynamic_flag_spec='${wl}-E'
10596
10597 # hardcode_minus_L: Not really in the search PATH,
10598 # but as the default location of the library.
10599 hardcode_minus_L=yes
10600 ;;
10601 esac
10602 fi
10603 ;;
10604
10605 irix5* | irix6* | nonstopux*)
10606 if test "$GCC" = yes; then
10607 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'
10608 # Try to use the -exported_symbol ld option, if it does not
10609 # work, assume that -exports_file does not work either and
10610 # implicitly export all symbols.
10611 save_LDFLAGS="$LDFLAGS"
10612 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10614/* end confdefs.h. */
10615int foo(void) {}
10616_ACEOF
10617if ac_fn_c_try_link "$LINENO"; then :
10618 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'
10619
10620fi
10621rm -f core conftest.err conftest.$ac_objext \
10622 conftest$ac_exeext conftest.$ac_ext
10623 LDFLAGS="$save_LDFLAGS"
10624 else
10625 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'
10626 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'
10627 fi
10628 archive_cmds_need_lc='no'
10629 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10630 hardcode_libdir_separator=:
10631 inherit_rpath=yes
10632 link_all_deplibs=yes
10633 ;;
10634
10635 netbsd*)
10636 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10637 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10638 else
10639 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10640 fi
10641 hardcode_libdir_flag_spec='-R$libdir'
10642 hardcode_direct=yes
10643 hardcode_shlibpath_var=no
10644 ;;
10645
10646 newsos6)
10647 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10648 hardcode_direct=yes
10649 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10650 hardcode_libdir_separator=:
10651 hardcode_shlibpath_var=no
10652 ;;
10653
10654 *nto* | *qnx*)
10655 ;;
10656
10657 openbsd*)
10658 if test -f /usr/libexec/ld.so; then
10659 hardcode_direct=yes
10660 hardcode_shlibpath_var=no
10661 hardcode_direct_absolute=yes
10662 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10663 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10664 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10665 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10666 export_dynamic_flag_spec='${wl}-E'
10667 else
10668 case $host_os in
10669 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10670 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10671 hardcode_libdir_flag_spec='-R$libdir'
10672 ;;
10673 *)
10674 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10675 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10676 ;;
10677 esac
10678 fi
10679 else
10680 ld_shlibs=no
10681 fi
10682 ;;
10683
10684 os2*)
10685 hardcode_libdir_flag_spec='-L$libdir'
10686 hardcode_minus_L=yes
10687 allow_undefined_flag=unsupported
10688 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'
10689 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10690 ;;
10691
10692 osf3*)
10693 if test "$GCC" = yes; then
10694 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10695 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'
10696 else
10697 allow_undefined_flag=' -expect_unresolved \*'
10698 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'
10699 fi
10700 archive_cmds_need_lc='no'
10701 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10702 hardcode_libdir_separator=:
10703 ;;
10704
10705 osf4* | osf5*) # as osf3* with the addition of -msym flag
10706 if test "$GCC" = yes; then
10707 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10708 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'
10709 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10710 else
10711 allow_undefined_flag=' -expect_unresolved \*'
10712 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'
10713 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~
10714 $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'
10715
10716 # Both c and cxx compiler support -rpath directly
10717 hardcode_libdir_flag_spec='-rpath $libdir'
10718 fi
10719 archive_cmds_need_lc='no'
10720 hardcode_libdir_separator=:
10721 ;;
10722
10723 solaris*)
10724 no_undefined_flag=' -z defs'
10725 if test "$GCC" = yes; then
10726 wlarc='${wl}'
10727 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10728 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10729 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10730 else
10731 case `$CC -V 2>&1` in
10732 *"Compilers 5.0"*)
10733 wlarc=''
10734 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10735 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10736 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10737 ;;
10738 *)
10739 wlarc='${wl}'
10740 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10741 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10742 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10743 ;;
10744 esac
10745 fi
10746 hardcode_libdir_flag_spec='-R$libdir'
10747 hardcode_shlibpath_var=no
10748 case $host_os in
10749 solaris2.[0-5] | solaris2.[0-5].*) ;;
10750 *)
10751 # The compiler driver will combine and reorder linker options,
10752 # but understands `-z linker_flag'. GCC discards it without `$wl',
10753 # but is careful enough not to reorder.
10754 # Supported since Solaris 2.6 (maybe 2.5.1?)
10755 if test "$GCC" = yes; then
10756 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10757 else
10758 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10759 fi
10760 ;;
10761 esac
10762 link_all_deplibs=yes
10763 ;;
10764
10765 sunos4*)
10766 if test "x$host_vendor" = xsequent; then
10767 # Use $CC to link under sequent, because it throws in some extra .o
10768 # files that make .init and .fini sections work.
10769 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10770 else
10771 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10772 fi
10773 hardcode_libdir_flag_spec='-L$libdir'
10774 hardcode_direct=yes
10775 hardcode_minus_L=yes
10776 hardcode_shlibpath_var=no
10777 ;;
10778
10779 sysv4)
10780 case $host_vendor in
10781 sni)
10782 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10783 hardcode_direct=yes # is this really true???
10784 ;;
10785 siemens)
10786 ## LD is ld it makes a PLAMLIB
10787 ## CC just makes a GrossModule.
10788 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10789 reload_cmds='$CC -r -o $output$reload_objs'
10790 hardcode_direct=no
10791 ;;
10792 motorola)
10793 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10794 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10795 ;;
10796 esac
10797 runpath_var='LD_RUN_PATH'
10798 hardcode_shlibpath_var=no
10799 ;;
10800
10801 sysv4.3*)
10802 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10803 hardcode_shlibpath_var=no
10804 export_dynamic_flag_spec='-Bexport'
10805 ;;
10806
10807 sysv4*MP*)
10808 if test -d /usr/nec; then
10809 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10810 hardcode_shlibpath_var=no
10811 runpath_var=LD_RUN_PATH
10812 hardcode_runpath_var=yes
10813 ld_shlibs=yes
10814 fi
10815 ;;
10816
10817 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10818 no_undefined_flag='${wl}-z,text'
10819 archive_cmds_need_lc=no
10820 hardcode_shlibpath_var=no
10821 runpath_var='LD_RUN_PATH'
10822
10823 if test "$GCC" = yes; then
10824 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10825 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10826 else
10827 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10828 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10829 fi
10830 ;;
10831
10832 sysv5* | sco3.2v5* | sco5v6*)
10833 # Note: We can NOT use -z defs as we might desire, because we do not
10834 # link with -lc, and that would cause any symbols used from libc to
10835 # always be unresolved, which means just about no library would
10836 # ever link correctly. If we're not using GNU ld we use -z text
10837 # though, which does catch some bad symbols but isn't as heavy-handed
10838 # as -z defs.
10839 no_undefined_flag='${wl}-z,text'
10840 allow_undefined_flag='${wl}-z,nodefs'
10841 archive_cmds_need_lc=no
10842 hardcode_shlibpath_var=no
10843 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10844 hardcode_libdir_separator=':'
10845 link_all_deplibs=yes
10846 export_dynamic_flag_spec='${wl}-Bexport'
10847 runpath_var='LD_RUN_PATH'
10848
10849 if test "$GCC" = yes; then
10850 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10851 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10852 else
10853 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10854 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10855 fi
10856 ;;
10857
10858 uts4*)
10859 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10860 hardcode_libdir_flag_spec='-L$libdir'
10861 hardcode_shlibpath_var=no
10862 ;;
10863
10864 *)
10865 ld_shlibs=no
10866 ;;
10867 esac
10868
10869 if test x$host_vendor = xsni; then
10870 case $host in
10871 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10872 export_dynamic_flag_spec='${wl}-Blargedynsym'
10873 ;;
10874 esac
10875 fi
10876 fi
10877
10878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10879$as_echo "$ld_shlibs" >&6; }
10880test "$ld_shlibs" = no && can_build_shared=no
10881
10882with_gnu_ld=$with_gnu_ld
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898#
10899# Do we need to explicitly link libc?
10900#
10901case "x$archive_cmds_need_lc" in
10902x|xyes)
10903 # Assume -lc should be added
10904 archive_cmds_need_lc=yes
10905
10906 if test "$enable_shared" = yes && test "$GCC" = yes; then
10907 case $archive_cmds in
10908 *'~'*)
10909 # FIXME: we may have to deal with multi-command sequences.
10910 ;;
10911 '$CC '*)
10912 # Test whether the compiler implicitly links with -lc since on some
10913 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10914 # to ld, don't add -lc before -lgcc.
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10916$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
f00f02a3 10917if ${lt_cv_archive_cmds_need_lc+:} false; then :
b710ec85 10918 $as_echo_n "(cached) " >&6
10919else
10920 $RM conftest*
10921 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10922
10923 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10924 (eval $ac_compile) 2>&5
10925 ac_status=$?
10926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10927 test $ac_status = 0; } 2>conftest.err; then
10928 soname=conftest
10929 lib=conftest
10930 libobjs=conftest.$ac_objext
10931 deplibs=
10932 wl=$lt_prog_compiler_wl
10933 pic_flag=$lt_prog_compiler_pic
10934 compiler_flags=-v
10935 linker_flags=-v
10936 verstring=
10937 output_objdir=.
10938 libname=conftest
10939 lt_save_allow_undefined_flag=$allow_undefined_flag
10940 allow_undefined_flag=
10941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10942 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10943 ac_status=$?
10944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10945 test $ac_status = 0; }
10946 then
10947 lt_cv_archive_cmds_need_lc=no
10948 else
10949 lt_cv_archive_cmds_need_lc=yes
10950 fi
10951 allow_undefined_flag=$lt_save_allow_undefined_flag
10952 else
10953 cat conftest.err 1>&5
10954 fi
10955 $RM conftest*
10956
10957fi
10958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10959$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10960 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10961 ;;
10962 esac
10963 fi
10964 ;;
10965esac
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
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11124$as_echo_n "checking dynamic linker characteristics... " >&6; }
11125
11126if test "$GCC" = yes; then
11127 case $host_os in
11128 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11129 *) lt_awk_arg="/^libraries:/" ;;
11130 esac
11131 case $host_os in
11132 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11133 *) lt_sed_strip_eq="s,=/,/,g" ;;
11134 esac
11135 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11136 case $lt_search_path_spec in
11137 *\;*)
11138 # if the path contains ";" then we assume it to be the separator
11139 # otherwise default to the standard path separator (i.e. ":") - it is
11140 # assumed that no part of a normal pathname contains ";" but that should
11141 # okay in the real world where ";" in dirpaths is itself problematic.
11142 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11143 ;;
11144 *)
11145 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11146 ;;
11147 esac
11148 # Ok, now we have the path, separated by spaces, we can step through it
11149 # and add multilib dir if necessary.
11150 lt_tmp_lt_search_path_spec=
11151 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11152 for lt_sys_path in $lt_search_path_spec; do
11153 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11154 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11155 else
11156 test -d "$lt_sys_path" && \
11157 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11158 fi
11159 done
11160 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11161BEGIN {RS=" "; FS="/|\n";} {
11162 lt_foo="";
11163 lt_count=0;
11164 for (lt_i = NF; lt_i > 0; lt_i--) {
11165 if ($lt_i != "" && $lt_i != ".") {
11166 if ($lt_i == "..") {
11167 lt_count++;
11168 } else {
11169 if (lt_count == 0) {
11170 lt_foo="/" $lt_i lt_foo;
11171 } else {
11172 lt_count--;
11173 }
11174 }
11175 }
11176 }
11177 if (lt_foo != "") { lt_freq[lt_foo]++; }
11178 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11179}'`
11180 # AWK program above erroneously prepends '/' to C:/dos/paths
11181 # for these hosts.
11182 case $host_os in
11183 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11184 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11185 esac
11186 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11187else
11188 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11189fi
11190library_names_spec=
11191libname_spec='lib$name'
11192soname_spec=
11193shrext_cmds=".so"
11194postinstall_cmds=
11195postuninstall_cmds=
11196finish_cmds=
11197finish_eval=
11198shlibpath_var=
11199shlibpath_overrides_runpath=unknown
11200version_type=none
11201dynamic_linker="$host_os ld.so"
11202sys_lib_dlsearch_path_spec="/lib /usr/lib"
11203need_lib_prefix=unknown
11204hardcode_into_libs=no
11205
11206# when you set need_version to no, make sure it does not cause -set_version
11207# flags to be left without arguments
11208need_version=unknown
11209
11210case $host_os in
11211aix3*)
11212 version_type=linux
11213 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11214 shlibpath_var=LIBPATH
11215
11216 # AIX 3 has no versioning support, so we append a major version to the name.
11217 soname_spec='${libname}${release}${shared_ext}$major'
11218 ;;
11219
11220aix[4-9]*)
11221 version_type=linux
11222 need_lib_prefix=no
11223 need_version=no
11224 hardcode_into_libs=yes
11225 if test "$host_cpu" = ia64; then
11226 # AIX 5 supports IA64
11227 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11228 shlibpath_var=LD_LIBRARY_PATH
11229 else
11230 # With GCC up to 2.95.x, collect2 would create an import file
11231 # for dependence libraries. The import file would start with
11232 # the line `#! .'. This would cause the generated library to
11233 # depend on `.', always an invalid library. This was fixed in
11234 # development snapshots of GCC prior to 3.0.
11235 case $host_os in
11236 aix4 | aix4.[01] | aix4.[01].*)
11237 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11238 echo ' yes '
11239 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11240 :
11241 else
11242 can_build_shared=no
11243 fi
11244 ;;
11245 esac
11246 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11247 # soname into executable. Probably we can add versioning support to
11248 # collect2, so additional links can be useful in future.
11249 if test "$aix_use_runtimelinking" = yes; then
11250 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11251 # instead of lib<name>.a to let people know that these are not
11252 # typical AIX shared libraries.
11253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11254 else
11255 # We preserve .a as extension for shared libraries through AIX4.2
11256 # and later when we are not doing run time linking.
11257 library_names_spec='${libname}${release}.a $libname.a'
11258 soname_spec='${libname}${release}${shared_ext}$major'
11259 fi
11260 shlibpath_var=LIBPATH
11261 fi
11262 ;;
11263
11264amigaos*)
11265 case $host_cpu in
11266 powerpc)
11267 # Since July 2007 AmigaOS4 officially supports .so libraries.
11268 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11270 ;;
11271 m68k)
11272 library_names_spec='$libname.ixlibrary $libname.a'
11273 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11274 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'
11275 ;;
11276 esac
11277 ;;
11278
11279beos*)
11280 library_names_spec='${libname}${shared_ext}'
11281 dynamic_linker="$host_os ld.so"
11282 shlibpath_var=LIBRARY_PATH
11283 ;;
11284
11285bsdi[45]*)
11286 version_type=linux
11287 need_version=no
11288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11289 soname_spec='${libname}${release}${shared_ext}$major'
11290 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11291 shlibpath_var=LD_LIBRARY_PATH
11292 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11293 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11294 # the default ld.so.conf also contains /usr/contrib/lib and
11295 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11296 # libtool to hard-code these into programs
11297 ;;
11298
11299cygwin* | mingw* | pw32* | cegcc*)
11300 version_type=windows
11301 shrext_cmds=".dll"
11302 need_version=no
11303 need_lib_prefix=no
11304
11305 case $GCC,$host_os in
11306 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11307 library_names_spec='$libname.dll.a'
11308 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11309 postinstall_cmds='base_file=`basename \${file}`~
11310 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11311 dldir=$destdir/`dirname \$dlpath`~
11312 test -d \$dldir || mkdir -p \$dldir~
11313 $install_prog $dir/$dlname \$dldir/$dlname~
11314 chmod a+x \$dldir/$dlname~
11315 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11316 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11317 fi'
11318 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11319 dlpath=$dir/\$dldll~
11320 $RM \$dlpath'
11321 shlibpath_overrides_runpath=yes
11322
11323 case $host_os in
11324 cygwin*)
11325 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11326 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11327
11328 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11329 ;;
11330 mingw* | cegcc*)
11331 # MinGW DLLs use traditional 'lib' prefix
11332 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11333 ;;
11334 pw32*)
11335 # pw32 DLLs use 'pw' prefix rather than 'lib'
11336 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11337 ;;
11338 esac
11339 ;;
11340
11341 *)
11342 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11343 ;;
11344 esac
11345 dynamic_linker='Win32 ld.exe'
11346 # FIXME: first we should search . and the directory the executable is in
11347 shlibpath_var=PATH
11348 ;;
11349
11350darwin* | rhapsody*)
11351 dynamic_linker="$host_os dyld"
11352 version_type=darwin
11353 need_lib_prefix=no
11354 need_version=no
11355 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11356 soname_spec='${libname}${release}${major}$shared_ext'
11357 shlibpath_overrides_runpath=yes
11358 shlibpath_var=DYLD_LIBRARY_PATH
11359 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11360
11361 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11362 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11363 ;;
11364
11365dgux*)
11366 version_type=linux
11367 need_lib_prefix=no
11368 need_version=no
11369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11370 soname_spec='${libname}${release}${shared_ext}$major'
11371 shlibpath_var=LD_LIBRARY_PATH
11372 ;;
11373
11374freebsd* | dragonfly*)
11375 # DragonFly does not have aout. When/if they implement a new
11376 # versioning mechanism, adjust this.
11377 if test -x /usr/bin/objformat; then
11378 objformat=`/usr/bin/objformat`
11379 else
11380 case $host_os in
11381 freebsd[23].*) objformat=aout ;;
11382 *) objformat=elf ;;
11383 esac
11384 fi
11385 version_type=freebsd-$objformat
11386 case $version_type in
11387 freebsd-elf*)
11388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11389 need_version=no
11390 need_lib_prefix=no
11391 ;;
11392 freebsd-*)
11393 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11394 need_version=yes
11395 ;;
11396 esac
11397 shlibpath_var=LD_LIBRARY_PATH
11398 case $host_os in
11399 freebsd2.*)
11400 shlibpath_overrides_runpath=yes
11401 ;;
11402 freebsd3.[01]* | freebsdelf3.[01]*)
11403 shlibpath_overrides_runpath=yes
11404 hardcode_into_libs=yes
11405 ;;
11406 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11407 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11408 shlibpath_overrides_runpath=no
11409 hardcode_into_libs=yes
11410 ;;
11411 *) # from 4.6 on, and DragonFly
11412 shlibpath_overrides_runpath=yes
11413 hardcode_into_libs=yes
11414 ;;
11415 esac
11416 ;;
11417
11418gnu*)
11419 version_type=linux
11420 need_lib_prefix=no
11421 need_version=no
11422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11423 soname_spec='${libname}${release}${shared_ext}$major'
11424 shlibpath_var=LD_LIBRARY_PATH
11425 hardcode_into_libs=yes
11426 ;;
11427
11428haiku*)
11429 version_type=linux
11430 need_lib_prefix=no
11431 need_version=no
11432 dynamic_linker="$host_os runtime_loader"
11433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11434 soname_spec='${libname}${release}${shared_ext}$major'
11435 shlibpath_var=LIBRARY_PATH
11436 shlibpath_overrides_runpath=yes
11437 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11438 hardcode_into_libs=yes
11439 ;;
11440
11441hpux9* | hpux10* | hpux11*)
11442 # Give a soname corresponding to the major version so that dld.sl refuses to
11443 # link against other versions.
11444 version_type=sunos
11445 need_lib_prefix=no
11446 need_version=no
11447 case $host_cpu in
11448 ia64*)
11449 shrext_cmds='.so'
11450 hardcode_into_libs=yes
11451 dynamic_linker="$host_os dld.so"
11452 shlibpath_var=LD_LIBRARY_PATH
11453 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11455 soname_spec='${libname}${release}${shared_ext}$major'
11456 if test "X$HPUX_IA64_MODE" = X32; then
11457 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11458 else
11459 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11460 fi
11461 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11462 ;;
11463 hppa*64*)
11464 shrext_cmds='.sl'
11465 hardcode_into_libs=yes
11466 dynamic_linker="$host_os dld.sl"
11467 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11468 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11470 soname_spec='${libname}${release}${shared_ext}$major'
11471 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11472 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11473 ;;
11474 *)
11475 shrext_cmds='.sl'
11476 dynamic_linker="$host_os dld.sl"
11477 shlibpath_var=SHLIB_PATH
11478 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11480 soname_spec='${libname}${release}${shared_ext}$major'
11481 ;;
11482 esac
11483 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11484 postinstall_cmds='chmod 555 $lib'
11485 # or fails outright, so override atomically:
11486 install_override_mode=555
11487 ;;
11488
11489interix[3-9]*)
11490 version_type=linux
11491 need_lib_prefix=no
11492 need_version=no
11493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11494 soname_spec='${libname}${release}${shared_ext}$major'
11495 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11496 shlibpath_var=LD_LIBRARY_PATH
11497 shlibpath_overrides_runpath=no
11498 hardcode_into_libs=yes
11499 ;;
11500
11501irix5* | irix6* | nonstopux*)
11502 case $host_os in
11503 nonstopux*) version_type=nonstopux ;;
11504 *)
11505 if test "$lt_cv_prog_gnu_ld" = yes; then
11506 version_type=linux
11507 else
11508 version_type=irix
11509 fi ;;
11510 esac
11511 need_lib_prefix=no
11512 need_version=no
11513 soname_spec='${libname}${release}${shared_ext}$major'
11514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11515 case $host_os in
11516 irix5* | nonstopux*)
11517 libsuff= shlibsuff=
11518 ;;
11519 *)
11520 case $LD in # libtool.m4 will add one of these switches to LD
11521 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11522 libsuff= shlibsuff= libmagic=32-bit;;
11523 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11524 libsuff=32 shlibsuff=N32 libmagic=N32;;
11525 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11526 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11527 *) libsuff= shlibsuff= libmagic=never-match;;
11528 esac
11529 ;;
11530 esac
11531 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11532 shlibpath_overrides_runpath=no
11533 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11534 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11535 hardcode_into_libs=yes
11536 ;;
11537
11538# No shared lib support for Linux oldld, aout, or coff.
11539linux*oldld* | linux*aout* | linux*coff*)
11540 dynamic_linker=no
11541 ;;
11542
11543# This must be Linux ELF.
11544linux* | k*bsd*-gnu | kopensolaris*-gnu)
11545 version_type=linux
11546 need_lib_prefix=no
11547 need_version=no
11548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11549 soname_spec='${libname}${release}${shared_ext}$major'
11550 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11551 shlibpath_var=LD_LIBRARY_PATH
11552 shlibpath_overrides_runpath=no
11553
11554 # Some binutils ld are patched to set DT_RUNPATH
f00f02a3 11555 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
b710ec85 11556 $as_echo_n "(cached) " >&6
11557else
11558 lt_cv_shlibpath_overrides_runpath=no
11559 save_LDFLAGS=$LDFLAGS
11560 save_libdir=$libdir
11561 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11562 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11564/* end confdefs.h. */
11565
11566int
11567main ()
11568{
11569
11570 ;
11571 return 0;
11572}
11573_ACEOF
11574if ac_fn_c_try_link "$LINENO"; then :
11575 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11576 lt_cv_shlibpath_overrides_runpath=yes
11577fi
11578fi
11579rm -f core conftest.err conftest.$ac_objext \
11580 conftest$ac_exeext conftest.$ac_ext
11581 LDFLAGS=$save_LDFLAGS
11582 libdir=$save_libdir
11583
11584fi
11585
11586 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11587
11588 # This implies no fast_install, which is unacceptable.
11589 # Some rework will be needed to allow for fast_install
11590 # before this can be enabled.
11591 hardcode_into_libs=yes
11592
11593 # Append ld.so.conf contents to the search path
11594 if test -f /etc/ld.so.conf; then
11595 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' ' '`
11596 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11597 fi
11598
11599 # We used to test for /lib/ld.so.1 and disable shared libraries on
11600 # powerpc, because MkLinux only supported shared libraries with the
11601 # GNU dynamic linker. Since this was broken with cross compilers,
11602 # most powerpc-linux boxes support dynamic linking these days and
11603 # people can always --disable-shared, the test was removed, and we
11604 # assume the GNU/Linux dynamic linker is in use.
11605 dynamic_linker='GNU/Linux ld.so'
11606 ;;
11607
11608netbsd*)
11609 version_type=sunos
11610 need_lib_prefix=no
11611 need_version=no
11612 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11614 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11615 dynamic_linker='NetBSD (a.out) ld.so'
11616 else
11617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11618 soname_spec='${libname}${release}${shared_ext}$major'
11619 dynamic_linker='NetBSD ld.elf_so'
11620 fi
11621 shlibpath_var=LD_LIBRARY_PATH
11622 shlibpath_overrides_runpath=yes
11623 hardcode_into_libs=yes
11624 ;;
11625
11626newsos6)
11627 version_type=linux
11628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11629 shlibpath_var=LD_LIBRARY_PATH
11630 shlibpath_overrides_runpath=yes
11631 ;;
11632
11633*nto* | *qnx*)
11634 version_type=qnx
11635 need_lib_prefix=no
11636 need_version=no
11637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11638 soname_spec='${libname}${release}${shared_ext}$major'
11639 shlibpath_var=LD_LIBRARY_PATH
11640 shlibpath_overrides_runpath=no
11641 hardcode_into_libs=yes
11642 dynamic_linker='ldqnx.so'
11643 ;;
11644
11645openbsd*)
11646 version_type=sunos
11647 sys_lib_dlsearch_path_spec="/usr/lib"
11648 need_lib_prefix=no
11649 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11650 case $host_os in
11651 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11652 *) need_version=no ;;
11653 esac
11654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11655 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11656 shlibpath_var=LD_LIBRARY_PATH
11657 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11658 case $host_os in
11659 openbsd2.[89] | openbsd2.[89].*)
11660 shlibpath_overrides_runpath=no
11661 ;;
11662 *)
11663 shlibpath_overrides_runpath=yes
11664 ;;
11665 esac
11666 else
11667 shlibpath_overrides_runpath=yes
11668 fi
11669 ;;
11670
11671os2*)
11672 libname_spec='$name'
11673 shrext_cmds=".dll"
11674 need_lib_prefix=no
11675 library_names_spec='$libname${shared_ext} $libname.a'
11676 dynamic_linker='OS/2 ld.exe'
11677 shlibpath_var=LIBPATH
11678 ;;
11679
11680osf3* | osf4* | osf5*)
11681 version_type=osf
11682 need_lib_prefix=no
11683 need_version=no
11684 soname_spec='${libname}${release}${shared_ext}$major'
11685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11686 shlibpath_var=LD_LIBRARY_PATH
11687 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11688 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11689 ;;
11690
11691rdos*)
11692 dynamic_linker=no
11693 ;;
11694
11695solaris*)
11696 version_type=linux
11697 need_lib_prefix=no
11698 need_version=no
11699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11700 soname_spec='${libname}${release}${shared_ext}$major'
11701 shlibpath_var=LD_LIBRARY_PATH
11702 shlibpath_overrides_runpath=yes
11703 hardcode_into_libs=yes
11704 # ldd complains unless libraries are executable
11705 postinstall_cmds='chmod +x $lib'
11706 ;;
11707
11708sunos4*)
11709 version_type=sunos
11710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11711 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11712 shlibpath_var=LD_LIBRARY_PATH
11713 shlibpath_overrides_runpath=yes
11714 if test "$with_gnu_ld" = yes; then
11715 need_lib_prefix=no
11716 fi
11717 need_version=yes
11718 ;;
11719
11720sysv4 | sysv4.3*)
11721 version_type=linux
11722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11723 soname_spec='${libname}${release}${shared_ext}$major'
11724 shlibpath_var=LD_LIBRARY_PATH
11725 case $host_vendor in
11726 sni)
11727 shlibpath_overrides_runpath=no
11728 need_lib_prefix=no
11729 runpath_var=LD_RUN_PATH
11730 ;;
11731 siemens)
11732 need_lib_prefix=no
11733 ;;
11734 motorola)
11735 need_lib_prefix=no
11736 need_version=no
11737 shlibpath_overrides_runpath=no
11738 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11739 ;;
11740 esac
11741 ;;
11742
11743sysv4*MP*)
11744 if test -d /usr/nec ;then
11745 version_type=linux
11746 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11747 soname_spec='$libname${shared_ext}.$major'
11748 shlibpath_var=LD_LIBRARY_PATH
11749 fi
11750 ;;
11751
11752sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11753 version_type=freebsd-elf
11754 need_lib_prefix=no
11755 need_version=no
11756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11757 soname_spec='${libname}${release}${shared_ext}$major'
11758 shlibpath_var=LD_LIBRARY_PATH
11759 shlibpath_overrides_runpath=yes
11760 hardcode_into_libs=yes
11761 if test "$with_gnu_ld" = yes; then
11762 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11763 else
11764 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11765 case $host_os in
11766 sco3.2v5*)
11767 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11768 ;;
11769 esac
11770 fi
11771 sys_lib_dlsearch_path_spec='/usr/lib'
11772 ;;
11773
11774tpf*)
11775 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11776 version_type=linux
11777 need_lib_prefix=no
11778 need_version=no
11779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11780 shlibpath_var=LD_LIBRARY_PATH
11781 shlibpath_overrides_runpath=no
11782 hardcode_into_libs=yes
11783 ;;
11784
11785uts4*)
11786 version_type=linux
11787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11788 soname_spec='${libname}${release}${shared_ext}$major'
11789 shlibpath_var=LD_LIBRARY_PATH
11790 ;;
11791
11792*)
11793 dynamic_linker=no
11794 ;;
11795esac
11796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11797$as_echo "$dynamic_linker" >&6; }
11798test "$dynamic_linker" = no && can_build_shared=no
11799
11800variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11801if test "$GCC" = yes; then
11802 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11803fi
11804
11805if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11806 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11807fi
11808if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11809 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11810fi
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11904$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11905hardcode_action=
11906if test -n "$hardcode_libdir_flag_spec" ||
11907 test -n "$runpath_var" ||
11908 test "X$hardcode_automatic" = "Xyes" ; then
11909
11910 # We can hardcode non-existent directories.
11911 if test "$hardcode_direct" != no &&
11912 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11913 # have to relink, otherwise we might link with an installed library
11914 # when we should be linking with a yet-to-be-installed one
11915 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11916 test "$hardcode_minus_L" != no; then
11917 # Linking always hardcodes the temporary library directory.
11918 hardcode_action=relink
11919 else
11920 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11921 hardcode_action=immediate
11922 fi
11923else
11924 # We cannot hardcode anything, or else we can only hardcode existing
11925 # directories.
11926 hardcode_action=unsupported
11927fi
11928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11929$as_echo "$hardcode_action" >&6; }
11930
11931if test "$hardcode_action" = relink ||
11932 test "$inherit_rpath" = yes; then
11933 # Fast installation is not supported
11934 enable_fast_install=no
11935elif test "$shlibpath_overrides_runpath" = yes ||
11936 test "$enable_shared" = no; then
11937 # Fast installation is not necessary
11938 enable_fast_install=needless
11939fi
11940
11941
11942
11943
11944
11945
11946 if test "x$enable_dlopen" != xyes; then
11947 enable_dlopen=unknown
11948 enable_dlopen_self=unknown
11949 enable_dlopen_self_static=unknown
11950else
11951 lt_cv_dlopen=no
11952 lt_cv_dlopen_libs=
11953
11954 case $host_os in
11955 beos*)
11956 lt_cv_dlopen="load_add_on"
11957 lt_cv_dlopen_libs=
11958 lt_cv_dlopen_self=yes
11959 ;;
11960
11961 mingw* | pw32* | cegcc*)
11962 lt_cv_dlopen="LoadLibrary"
11963 lt_cv_dlopen_libs=
11964 ;;
11965
11966 cygwin*)
11967 lt_cv_dlopen="dlopen"
11968 lt_cv_dlopen_libs=
11969 ;;
11970
11971 darwin*)
11972 # if libdl is installed we need to link against it
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11974$as_echo_n "checking for dlopen in -ldl... " >&6; }
f00f02a3 11975if ${ac_cv_lib_dl_dlopen+:} false; then :
b710ec85 11976 $as_echo_n "(cached) " >&6
11977else
11978 ac_check_lib_save_LIBS=$LIBS
11979LIBS="-ldl $LIBS"
11980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11981/* end confdefs.h. */
11982
11983/* Override any GCC internal prototype to avoid an error.
11984 Use char because int might match the return type of a GCC
11985 builtin and then its argument prototype would still apply. */
11986#ifdef __cplusplus
11987extern "C"
11988#endif
11989char dlopen ();
11990int
11991main ()
11992{
11993return dlopen ();
11994 ;
11995 return 0;
11996}
11997_ACEOF
11998if ac_fn_c_try_link "$LINENO"; then :
11999 ac_cv_lib_dl_dlopen=yes
12000else
12001 ac_cv_lib_dl_dlopen=no
12002fi
12003rm -f core conftest.err conftest.$ac_objext \
12004 conftest$ac_exeext conftest.$ac_ext
12005LIBS=$ac_check_lib_save_LIBS
12006fi
12007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12008$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
f00f02a3 12009if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
b710ec85 12010 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12011else
12012
12013 lt_cv_dlopen="dyld"
12014 lt_cv_dlopen_libs=
12015 lt_cv_dlopen_self=yes
12016
12017fi
12018
12019 ;;
12020
12021 *)
12022 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
f00f02a3 12023if test "x$ac_cv_func_shl_load" = xyes; then :
b710ec85 12024 lt_cv_dlopen="shl_load"
12025else
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12027$as_echo_n "checking for shl_load in -ldld... " >&6; }
f00f02a3 12028if ${ac_cv_lib_dld_shl_load+:} false; then :
b710ec85 12029 $as_echo_n "(cached) " >&6
12030else
12031 ac_check_lib_save_LIBS=$LIBS
12032LIBS="-ldld $LIBS"
12033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12034/* end confdefs.h. */
12035
12036/* Override any GCC internal prototype to avoid an error.
12037 Use char because int might match the return type of a GCC
12038 builtin and then its argument prototype would still apply. */
12039#ifdef __cplusplus
12040extern "C"
12041#endif
12042char shl_load ();
12043int
12044main ()
12045{
12046return shl_load ();
12047 ;
12048 return 0;
12049}
12050_ACEOF
12051if ac_fn_c_try_link "$LINENO"; then :
12052 ac_cv_lib_dld_shl_load=yes
12053else
12054 ac_cv_lib_dld_shl_load=no
12055fi
12056rm -f core conftest.err conftest.$ac_objext \
12057 conftest$ac_exeext conftest.$ac_ext
12058LIBS=$ac_check_lib_save_LIBS
12059fi
12060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12061$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
f00f02a3 12062if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
b710ec85 12063 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12064else
12065 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
f00f02a3 12066if test "x$ac_cv_func_dlopen" = xyes; then :
b710ec85 12067 lt_cv_dlopen="dlopen"
12068else
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12070$as_echo_n "checking for dlopen in -ldl... " >&6; }
f00f02a3 12071if ${ac_cv_lib_dl_dlopen+:} false; then :
b710ec85 12072 $as_echo_n "(cached) " >&6
12073else
12074 ac_check_lib_save_LIBS=$LIBS
12075LIBS="-ldl $LIBS"
12076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12077/* end confdefs.h. */
12078
12079/* Override any GCC internal prototype to avoid an error.
12080 Use char because int might match the return type of a GCC
12081 builtin and then its argument prototype would still apply. */
12082#ifdef __cplusplus
12083extern "C"
12084#endif
12085char dlopen ();
12086int
12087main ()
12088{
12089return dlopen ();
12090 ;
12091 return 0;
12092}
12093_ACEOF
12094if ac_fn_c_try_link "$LINENO"; then :
12095 ac_cv_lib_dl_dlopen=yes
12096else
12097 ac_cv_lib_dl_dlopen=no
12098fi
12099rm -f core conftest.err conftest.$ac_objext \
12100 conftest$ac_exeext conftest.$ac_ext
12101LIBS=$ac_check_lib_save_LIBS
12102fi
12103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12104$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
f00f02a3 12105if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
b710ec85 12106 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12107else
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12109$as_echo_n "checking for dlopen in -lsvld... " >&6; }
f00f02a3 12110if ${ac_cv_lib_svld_dlopen+:} false; then :
b710ec85 12111 $as_echo_n "(cached) " >&6
12112else
12113 ac_check_lib_save_LIBS=$LIBS
12114LIBS="-lsvld $LIBS"
12115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12116/* end confdefs.h. */
12117
12118/* Override any GCC internal prototype to avoid an error.
12119 Use char because int might match the return type of a GCC
12120 builtin and then its argument prototype would still apply. */
12121#ifdef __cplusplus
12122extern "C"
12123#endif
12124char dlopen ();
12125int
12126main ()
12127{
12128return dlopen ();
12129 ;
12130 return 0;
12131}
12132_ACEOF
12133if ac_fn_c_try_link "$LINENO"; then :
12134 ac_cv_lib_svld_dlopen=yes
12135else
12136 ac_cv_lib_svld_dlopen=no
12137fi
12138rm -f core conftest.err conftest.$ac_objext \
12139 conftest$ac_exeext conftest.$ac_ext
12140LIBS=$ac_check_lib_save_LIBS
12141fi
12142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12143$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
f00f02a3 12144if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
b710ec85 12145 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12146else
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12148$as_echo_n "checking for dld_link in -ldld... " >&6; }
f00f02a3 12149if ${ac_cv_lib_dld_dld_link+:} false; then :
b710ec85 12150 $as_echo_n "(cached) " >&6
12151else
12152 ac_check_lib_save_LIBS=$LIBS
12153LIBS="-ldld $LIBS"
12154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12155/* end confdefs.h. */
12156
12157/* Override any GCC internal prototype to avoid an error.
12158 Use char because int might match the return type of a GCC
12159 builtin and then its argument prototype would still apply. */
12160#ifdef __cplusplus
12161extern "C"
12162#endif
12163char dld_link ();
12164int
12165main ()
12166{
12167return dld_link ();
12168 ;
12169 return 0;
12170}
12171_ACEOF
12172if ac_fn_c_try_link "$LINENO"; then :
12173 ac_cv_lib_dld_dld_link=yes
12174else
12175 ac_cv_lib_dld_dld_link=no
12176fi
12177rm -f core conftest.err conftest.$ac_objext \
12178 conftest$ac_exeext conftest.$ac_ext
12179LIBS=$ac_check_lib_save_LIBS
12180fi
12181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12182$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
f00f02a3 12183if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
b710ec85 12184 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12185fi
12186
12187
12188fi
12189
12190
12191fi
12192
12193
12194fi
12195
12196
12197fi
12198
12199
12200fi
12201
12202 ;;
12203 esac
12204
12205 if test "x$lt_cv_dlopen" != xno; then
12206 enable_dlopen=yes
12207 else
12208 enable_dlopen=no
12209 fi
12210
12211 case $lt_cv_dlopen in
12212 dlopen)
12213 save_CPPFLAGS="$CPPFLAGS"
12214 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12215
12216 save_LDFLAGS="$LDFLAGS"
12217 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12218
12219 save_LIBS="$LIBS"
12220 LIBS="$lt_cv_dlopen_libs $LIBS"
12221
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12223$as_echo_n "checking whether a program can dlopen itself... " >&6; }
f00f02a3 12224if ${lt_cv_dlopen_self+:} false; then :
b710ec85 12225 $as_echo_n "(cached) " >&6
12226else
12227 if test "$cross_compiling" = yes; then :
12228 lt_cv_dlopen_self=cross
12229else
12230 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12231 lt_status=$lt_dlunknown
12232 cat > conftest.$ac_ext <<_LT_EOF
f00f02a3 12233#line 12233 "configure"
b710ec85 12234#include "confdefs.h"
12235
12236#if HAVE_DLFCN_H
12237#include <dlfcn.h>
12238#endif
12239
12240#include <stdio.h>
12241
12242#ifdef RTLD_GLOBAL
12243# define LT_DLGLOBAL RTLD_GLOBAL
12244#else
12245# ifdef DL_GLOBAL
12246# define LT_DLGLOBAL DL_GLOBAL
12247# else
12248# define LT_DLGLOBAL 0
12249# endif
12250#endif
12251
12252/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12253 find out it does not work in some platform. */
12254#ifndef LT_DLLAZY_OR_NOW
12255# ifdef RTLD_LAZY
12256# define LT_DLLAZY_OR_NOW RTLD_LAZY
12257# else
12258# ifdef DL_LAZY
12259# define LT_DLLAZY_OR_NOW DL_LAZY
12260# else
12261# ifdef RTLD_NOW
12262# define LT_DLLAZY_OR_NOW RTLD_NOW
12263# else
12264# ifdef DL_NOW
12265# define LT_DLLAZY_OR_NOW DL_NOW
12266# else
12267# define LT_DLLAZY_OR_NOW 0
12268# endif
12269# endif
12270# endif
12271# endif
12272#endif
12273
12274/* When -fvisbility=hidden is used, assume the code has been annotated
12275 correspondingly for the symbols needed. */
12276#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12277void fnord () __attribute__((visibility("default")));
12278#endif
12279
12280void fnord () { int i=42; }
12281int main ()
12282{
12283 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12284 int status = $lt_dlunknown;
12285
12286 if (self)
12287 {
12288 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12289 else
12290 {
12291 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12292 else puts (dlerror ());
12293 }
12294 /* dlclose (self); */
12295 }
12296 else
12297 puts (dlerror ());
12298
12299 return status;
12300}
12301_LT_EOF
12302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12303 (eval $ac_link) 2>&5
12304 ac_status=$?
12305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12306 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12307 (./conftest; exit; ) >&5 2>/dev/null
12308 lt_status=$?
12309 case x$lt_status in
12310 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12311 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12312 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12313 esac
12314 else :
12315 # compilation failed
12316 lt_cv_dlopen_self=no
12317 fi
12318fi
12319rm -fr conftest*
12320
12321
12322fi
12323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12324$as_echo "$lt_cv_dlopen_self" >&6; }
12325
12326 if test "x$lt_cv_dlopen_self" = xyes; then
12327 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12329$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
f00f02a3 12330if ${lt_cv_dlopen_self_static+:} false; then :
b710ec85 12331 $as_echo_n "(cached) " >&6
12332else
12333 if test "$cross_compiling" = yes; then :
12334 lt_cv_dlopen_self_static=cross
12335else
12336 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12337 lt_status=$lt_dlunknown
12338 cat > conftest.$ac_ext <<_LT_EOF
f00f02a3 12339#line 12339 "configure"
b710ec85 12340#include "confdefs.h"
12341
12342#if HAVE_DLFCN_H
12343#include <dlfcn.h>
12344#endif
12345
12346#include <stdio.h>
12347
12348#ifdef RTLD_GLOBAL
12349# define LT_DLGLOBAL RTLD_GLOBAL
12350#else
12351# ifdef DL_GLOBAL
12352# define LT_DLGLOBAL DL_GLOBAL
12353# else
12354# define LT_DLGLOBAL 0
12355# endif
12356#endif
12357
12358/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12359 find out it does not work in some platform. */
12360#ifndef LT_DLLAZY_OR_NOW
12361# ifdef RTLD_LAZY
12362# define LT_DLLAZY_OR_NOW RTLD_LAZY
12363# else
12364# ifdef DL_LAZY
12365# define LT_DLLAZY_OR_NOW DL_LAZY
12366# else
12367# ifdef RTLD_NOW
12368# define LT_DLLAZY_OR_NOW RTLD_NOW
12369# else
12370# ifdef DL_NOW
12371# define LT_DLLAZY_OR_NOW DL_NOW
12372# else
12373# define LT_DLLAZY_OR_NOW 0
12374# endif
12375# endif
12376# endif
12377# endif
12378#endif
12379
12380/* When -fvisbility=hidden is used, assume the code has been annotated
12381 correspondingly for the symbols needed. */
12382#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12383void fnord () __attribute__((visibility("default")));
12384#endif
12385
12386void fnord () { int i=42; }
12387int main ()
12388{
12389 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12390 int status = $lt_dlunknown;
12391
12392 if (self)
12393 {
12394 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12395 else
12396 {
12397 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12398 else puts (dlerror ());
12399 }
12400 /* dlclose (self); */
12401 }
12402 else
12403 puts (dlerror ());
12404
12405 return status;
12406}
12407_LT_EOF
12408 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12409 (eval $ac_link) 2>&5
12410 ac_status=$?
12411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12412 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12413 (./conftest; exit; ) >&5 2>/dev/null
12414 lt_status=$?
12415 case x$lt_status in
12416 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12417 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12418 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12419 esac
12420 else :
12421 # compilation failed
12422 lt_cv_dlopen_self_static=no
12423 fi
12424fi
12425rm -fr conftest*
12426
12427
12428fi
12429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12430$as_echo "$lt_cv_dlopen_self_static" >&6; }
12431 fi
12432
12433 CPPFLAGS="$save_CPPFLAGS"
12434 LDFLAGS="$save_LDFLAGS"
12435 LIBS="$save_LIBS"
12436 ;;
12437 esac
12438
12439 case $lt_cv_dlopen_self in
12440 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12441 *) enable_dlopen_self=unknown ;;
12442 esac
12443
12444 case $lt_cv_dlopen_self_static in
12445 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12446 *) enable_dlopen_self_static=unknown ;;
12447 esac
12448fi
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466striplib=
12467old_striplib=
12468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12469$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12470if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12471 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12472 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12474$as_echo "yes" >&6; }
12475else
12476# FIXME - insert some real tests, host_os isn't really good enough
12477 case $host_os in
12478 darwin*)
12479 if test -n "$STRIP" ; then
12480 striplib="$STRIP -x"
12481 old_striplib="$STRIP -S"
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12483$as_echo "yes" >&6; }
12484 else
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12486$as_echo "no" >&6; }
12487 fi
12488 ;;
12489 *)
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12491$as_echo "no" >&6; }
12492 ;;
12493 esac
12494fi
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507 # Report which library types will actually be built
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12509$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12511$as_echo "$can_build_shared" >&6; }
12512
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12514$as_echo_n "checking whether to build shared libraries... " >&6; }
12515 test "$can_build_shared" = "no" && enable_shared=no
12516
12517 # On AIX, shared libraries and static libraries use the same namespace, and
12518 # are all built from PIC.
12519 case $host_os in
12520 aix3*)
12521 test "$enable_shared" = yes && enable_static=no
12522 if test -n "$RANLIB"; then
12523 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12524 postinstall_cmds='$RANLIB $lib'
12525 fi
12526 ;;
12527
12528 aix[4-9]*)
12529 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12530 test "$enable_shared" = yes && enable_static=no
12531 fi
12532 ;;
12533 esac
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12535$as_echo "$enable_shared" >&6; }
12536
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12538$as_echo_n "checking whether to build static libraries... " >&6; }
12539 # Make sure either enable_shared or enable_static is yes.
12540 test "$enable_shared" = yes || enable_static=yes
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12542$as_echo "$enable_static" >&6; }
12543
12544
12545
12546
12547fi
12548ac_ext=c
12549ac_cpp='$CPP $CPPFLAGS'
12550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12552ac_compiler_gnu=$ac_cv_c_compiler_gnu
12553
12554CC="$lt_save_CC"
12555
12556 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12557 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12558 (test "X$CXX" != "Xg++"))) ; then
12559 ac_ext=cpp
12560ac_cpp='$CXXCPP $CPPFLAGS'
12561ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12562ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12563ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12565$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12566if test -z "$CXXCPP"; then
f00f02a3 12567 if ${ac_cv_prog_CXXCPP+:} false; then :
b710ec85 12568 $as_echo_n "(cached) " >&6
12569else
12570 # Double quotes because CXXCPP needs to be expanded
12571 for CXXCPP in "$CXX -E" "/lib/cpp"
12572 do
12573 ac_preproc_ok=false
12574for ac_cxx_preproc_warn_flag in '' yes
12575do
12576 # Use a header file that comes with gcc, so configuring glibc
12577 # with a fresh cross-compiler works.
12578 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12579 # <limits.h> exists even on freestanding compilers.
12580 # On the NeXT, cc -E runs the code through the compiler's parser,
12581 # not just through cpp. "Syntax error" is here to catch this case.
12582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12583/* end confdefs.h. */
12584#ifdef __STDC__
12585# include <limits.h>
12586#else
12587# include <assert.h>
12588#endif
12589 Syntax error
12590_ACEOF
12591if ac_fn_cxx_try_cpp "$LINENO"; then :
12592
12593else
12594 # Broken: fails on valid input.
12595continue
12596fi
f00f02a3 12597rm -f conftest.err conftest.i conftest.$ac_ext
b710ec85 12598
12599 # OK, works on sane cases. Now check whether nonexistent headers
12600 # can be detected and how.
12601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12602/* end confdefs.h. */
12603#include <ac_nonexistent.h>
12604_ACEOF
12605if ac_fn_cxx_try_cpp "$LINENO"; then :
12606 # Broken: success on invalid input.
12607continue
12608else
12609 # Passes both tests.
12610ac_preproc_ok=:
12611break
12612fi
f00f02a3 12613rm -f conftest.err conftest.i conftest.$ac_ext
b710ec85 12614
12615done
12616# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
f00f02a3 12617rm -f conftest.i conftest.err conftest.$ac_ext
b710ec85 12618if $ac_preproc_ok; then :
12619 break
12620fi
12621
12622 done
12623 ac_cv_prog_CXXCPP=$CXXCPP
12624
12625fi
12626 CXXCPP=$ac_cv_prog_CXXCPP
12627else
12628 ac_cv_prog_CXXCPP=$CXXCPP
12629fi
12630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12631$as_echo "$CXXCPP" >&6; }
12632ac_preproc_ok=false
12633for ac_cxx_preproc_warn_flag in '' yes
12634do
12635 # Use a header file that comes with gcc, so configuring glibc
12636 # with a fresh cross-compiler works.
12637 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12638 # <limits.h> exists even on freestanding compilers.
12639 # On the NeXT, cc -E runs the code through the compiler's parser,
12640 # not just through cpp. "Syntax error" is here to catch this case.
12641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12642/* end confdefs.h. */
12643#ifdef __STDC__
12644# include <limits.h>
12645#else
12646# include <assert.h>
12647#endif
12648 Syntax error
12649_ACEOF
12650if ac_fn_cxx_try_cpp "$LINENO"; then :
12651
12652else
12653 # Broken: fails on valid input.
12654continue
12655fi
f00f02a3 12656rm -f conftest.err conftest.i conftest.$ac_ext
b710ec85 12657
12658 # OK, works on sane cases. Now check whether nonexistent headers
12659 # can be detected and how.
12660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12661/* end confdefs.h. */
12662#include <ac_nonexistent.h>
12663_ACEOF
12664if ac_fn_cxx_try_cpp "$LINENO"; then :
12665 # Broken: success on invalid input.
12666continue
12667else
12668 # Passes both tests.
12669ac_preproc_ok=:
12670break
12671fi
f00f02a3 12672rm -f conftest.err conftest.i conftest.$ac_ext
b710ec85 12673
12674done
12675# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
f00f02a3 12676rm -f conftest.i conftest.err conftest.$ac_ext
b710ec85 12677if $ac_preproc_ok; then :
12678
12679else
12680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12681$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f00f02a3 12682as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12683See \`config.log' for more details" "$LINENO" 5; }
b710ec85 12684fi
12685
12686ac_ext=c
12687ac_cpp='$CPP $CPPFLAGS'
12688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12690ac_compiler_gnu=$ac_cv_c_compiler_gnu
12691
12692else
12693 _lt_caught_CXX_error=yes
12694fi
12695
12696ac_ext=cpp
12697ac_cpp='$CXXCPP $CPPFLAGS'
12698ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12699ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12700ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12701
12702archive_cmds_need_lc_CXX=no
12703allow_undefined_flag_CXX=
12704always_export_symbols_CXX=no
12705archive_expsym_cmds_CXX=
12706compiler_needs_object_CXX=no
12707export_dynamic_flag_spec_CXX=
12708hardcode_direct_CXX=no
12709hardcode_direct_absolute_CXX=no
12710hardcode_libdir_flag_spec_CXX=
12711hardcode_libdir_flag_spec_ld_CXX=
12712hardcode_libdir_separator_CXX=
12713hardcode_minus_L_CXX=no
12714hardcode_shlibpath_var_CXX=unsupported
12715hardcode_automatic_CXX=no
12716inherit_rpath_CXX=no
12717module_cmds_CXX=
12718module_expsym_cmds_CXX=
12719link_all_deplibs_CXX=unknown
12720old_archive_cmds_CXX=$old_archive_cmds
12721reload_flag_CXX=$reload_flag
12722reload_cmds_CXX=$reload_cmds
12723no_undefined_flag_CXX=
12724whole_archive_flag_spec_CXX=
12725enable_shared_with_static_runtimes_CXX=no
12726
12727# Source file extension for C++ test sources.
12728ac_ext=cpp
12729
12730# Object file extension for compiled C++ test sources.
12731objext=o
12732objext_CXX=$objext
12733
12734# No sense in running all these tests if we already determined that
12735# the CXX compiler isn't working. Some variables (like enable_shared)
12736# are currently assumed to apply to all compilers on this platform,
12737# and will be corrupted by setting them based on a non-working compiler.
12738if test "$_lt_caught_CXX_error" != yes; then
12739 # Code to be used in simple compile tests
12740 lt_simple_compile_test_code="int some_variable = 0;"
12741
12742 # Code to be used in simple link tests
12743 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12744
12745 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12746
12747
12748
12749
12750
12751
12752# If no C compiler was specified, use CC.
12753LTCC=${LTCC-"$CC"}
12754
12755# If no C compiler flags were specified, use CFLAGS.
12756LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12757
12758# Allow CC to be a program name with arguments.
12759compiler=$CC
12760
12761
12762 # save warnings/boilerplate of simple test code
12763 ac_outfile=conftest.$ac_objext
12764echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12765eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12766_lt_compiler_boilerplate=`cat conftest.err`
12767$RM conftest*
12768
12769 ac_outfile=conftest.$ac_objext
12770echo "$lt_simple_link_test_code" >conftest.$ac_ext
12771eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12772_lt_linker_boilerplate=`cat conftest.err`
12773$RM -r conftest*
12774
12775
12776 # Allow CC to be a program name with arguments.
12777 lt_save_CC=$CC
12778 lt_save_LD=$LD
12779 lt_save_GCC=$GCC
12780 GCC=$GXX
12781 lt_save_with_gnu_ld=$with_gnu_ld
12782 lt_save_path_LD=$lt_cv_path_LD
12783 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12784 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12785 else
12786 $as_unset lt_cv_prog_gnu_ld
12787 fi
12788 if test -n "${lt_cv_path_LDCXX+set}"; then
12789 lt_cv_path_LD=$lt_cv_path_LDCXX
12790 else
12791 $as_unset lt_cv_path_LD
12792 fi
12793 test -z "${LDCXX+set}" || LD=$LDCXX
12794 CC=${CXX-"c++"}
12795 compiler=$CC
12796 compiler_CXX=$CC
12797 for cc_temp in $compiler""; do
12798 case $cc_temp in
12799 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12800 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12801 \-*) ;;
12802 *) break;;
12803 esac
12804done
12805cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12806
12807
12808 if test -n "$compiler"; then
12809 # We don't want -fno-exception when compiling C++ code, so set the
12810 # no_builtin_flag separately
12811 if test "$GXX" = yes; then
12812 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12813 else
12814 lt_prog_compiler_no_builtin_flag_CXX=
12815 fi
12816
12817 if test "$GXX" = yes; then
12818 # Set up default GNU C++ configuration
12819
12820
12821
12822# Check whether --with-gnu-ld was given.
12823if test "${with_gnu_ld+set}" = set; then :
12824 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12825else
12826 with_gnu_ld=no
12827fi
12828
12829ac_prog=ld
12830if test "$GCC" = yes; then
12831 # Check if gcc -print-prog-name=ld gives a path.
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12833$as_echo_n "checking for ld used by $CC... " >&6; }
12834 case $host in
12835 *-*-mingw*)
12836 # gcc leaves a trailing carriage return which upsets mingw
12837 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12838 *)
12839 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12840 esac
12841 case $ac_prog in
12842 # Accept absolute paths.
12843 [\\/]* | ?:[\\/]*)
12844 re_direlt='/[^/][^/]*/\.\./'
12845 # Canonicalize the pathname of ld
12846 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12847 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12848 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12849 done
12850 test -z "$LD" && LD="$ac_prog"
12851 ;;
12852 "")
12853 # If it fails, then pretend we aren't using GCC.
12854 ac_prog=ld
12855 ;;
12856 *)
12857 # If it is relative, then search for the first ld in PATH.
12858 with_gnu_ld=unknown
12859 ;;
12860 esac
12861elif test "$with_gnu_ld" = yes; then
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12863$as_echo_n "checking for GNU ld... " >&6; }
12864else
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12866$as_echo_n "checking for non-GNU ld... " >&6; }
12867fi
f00f02a3 12868if ${lt_cv_path_LD+:} false; then :
b710ec85 12869 $as_echo_n "(cached) " >&6
12870else
12871 if test -z "$LD"; then
12872 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12873 for ac_dir in $PATH; do
12874 IFS="$lt_save_ifs"
12875 test -z "$ac_dir" && ac_dir=.
12876 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12877 lt_cv_path_LD="$ac_dir/$ac_prog"
12878 # Check to see if the program is GNU ld. I'd rather use --version,
12879 # but apparently some variants of GNU ld only accept -v.
12880 # Break only if it was the GNU/non-GNU ld that we prefer.
12881 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12882 *GNU* | *'with BFD'*)
12883 test "$with_gnu_ld" != no && break
12884 ;;
12885 *)
12886 test "$with_gnu_ld" != yes && break
12887 ;;
12888 esac
12889 fi
12890 done
12891 IFS="$lt_save_ifs"
12892else
12893 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12894fi
12895fi
12896
12897LD="$lt_cv_path_LD"
12898if test -n "$LD"; then
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12900$as_echo "$LD" >&6; }
12901else
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12903$as_echo "no" >&6; }
12904fi
f00f02a3 12905test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
b710ec85 12906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12907$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
f00f02a3 12908if ${lt_cv_prog_gnu_ld+:} false; then :
b710ec85 12909 $as_echo_n "(cached) " >&6
12910else
12911 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12912case `$LD -v 2>&1 </dev/null` in
12913*GNU* | *'with BFD'*)
12914 lt_cv_prog_gnu_ld=yes
12915 ;;
12916*)
12917 lt_cv_prog_gnu_ld=no
12918 ;;
12919esac
12920fi
12921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12922$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12923with_gnu_ld=$lt_cv_prog_gnu_ld
12924
12925
12926
12927
12928
12929
12930
12931 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12932 # archiving commands below assume that GNU ld is being used.
12933 if test "$with_gnu_ld" = yes; then
4e8a08d4 12934 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12935 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'
b710ec85 12936
12937 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12938 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12939
12940 # If archive_cmds runs LD, not CC, wlarc should be empty
12941 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12942 # investigate it a little bit more. (MM)
12943 wlarc='${wl}'
12944
12945 # ancient GNU ld didn't support --whole-archive et. al.
12946 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12947 $GREP 'no-whole-archive' > /dev/null; then
12948 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12949 else
12950 whole_archive_flag_spec_CXX=
12951 fi
12952 else
12953 with_gnu_ld=no
12954 wlarc=
12955
12956 # A generic and very simple default shared library creation
12957 # command for GNU C++ for the case where it uses the native
12958 # linker, instead of GNU ld. If possible, this setting should
12959 # overridden to take advantage of the native linker features on
12960 # the platform it is being used on.
12961 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12962 fi
12963
12964 # Commands to make compiler produce verbose output that lists
12965 # what "hidden" libraries, object files and flags are used when
12966 # linking a shared library.
12967 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12968
12969 else
12970 GXX=no
12971 with_gnu_ld=no
12972 wlarc=
12973 fi
12974
12975 # PORTME: fill in a description of your system's C++ link characteristics
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12977$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12978 ld_shlibs_CXX=yes
12979 case $host_os in
12980 aix3*)
12981 # FIXME: insert proper C++ library support
12982 ld_shlibs_CXX=no
12983 ;;
12984 aix[4-9]*)
12985 if test "$host_cpu" = ia64; then
12986 # On IA64, the linker does run time linking by default, so we don't
12987 # have to do anything special.
12988 aix_use_runtimelinking=no
12989 exp_sym_flag='-Bexport'
12990 no_entry_flag=""
12991 else
12992 aix_use_runtimelinking=no
12993
12994 # Test if we are trying to use run time linking or normal
12995 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12996 # need to do runtime linking.
12997 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12998 for ld_flag in $LDFLAGS; do
12999 case $ld_flag in
13000 *-brtl*)
13001 aix_use_runtimelinking=yes
13002 break
13003 ;;
13004 esac
13005 done
13006 ;;
13007 esac
13008
13009 exp_sym_flag='-bexport'
13010 no_entry_flag='-bnoentry'
13011 fi
13012
13013 # When large executables or shared objects are built, AIX ld can
13014 # have problems creating the table of contents. If linking a library
13015 # or program results in "error TOC overflow" add -mminimal-toc to
13016 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13017 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13018
13019 archive_cmds_CXX=''
13020 hardcode_direct_CXX=yes
13021 hardcode_direct_absolute_CXX=yes
13022 hardcode_libdir_separator_CXX=':'
13023 link_all_deplibs_CXX=yes
13024 file_list_spec_CXX='${wl}-f,'
13025
13026 if test "$GXX" = yes; then
13027 case $host_os in aix4.[012]|aix4.[012].*)
13028 # We only want to do this on AIX 4.2 and lower, the check
13029 # below for broken collect2 doesn't work under 4.3+
13030 collect2name=`${CC} -print-prog-name=collect2`
13031 if test -f "$collect2name" &&
13032 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13033 then
13034 # We have reworked collect2
13035 :
13036 else
13037 # We have old collect2
13038 hardcode_direct_CXX=unsupported
13039 # It fails to find uninstalled libraries when the uninstalled
13040 # path is not listed in the libpath. Setting hardcode_minus_L
13041 # to unsupported forces relinking
13042 hardcode_minus_L_CXX=yes
13043 hardcode_libdir_flag_spec_CXX='-L$libdir'
13044 hardcode_libdir_separator_CXX=
13045 fi
13046 esac
13047 shared_flag='-shared'
13048 if test "$aix_use_runtimelinking" = yes; then
13049 shared_flag="$shared_flag "'${wl}-G'
13050 fi
13051 else
13052 # not using gcc
13053 if test "$host_cpu" = ia64; then
13054 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13055 # chokes on -Wl,-G. The following line is correct:
13056 shared_flag='-G'
13057 else
13058 if test "$aix_use_runtimelinking" = yes; then
13059 shared_flag='${wl}-G'
13060 else
13061 shared_flag='${wl}-bM:SRE'
13062 fi
13063 fi
13064 fi
13065
13066 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13067 # It seems that -bexpall does not export symbols beginning with
13068 # underscore (_), so it is better to generate a list of symbols to
13069 # export.
13070 always_export_symbols_CXX=yes
13071 if test "$aix_use_runtimelinking" = yes; then
13072 # Warning - without using the other runtime loading flags (-brtl),
13073 # -berok will link without error, but may produce a broken library.
13074 allow_undefined_flag_CXX='-berok'
13075 # Determine the default libpath from the value encoded in an empty
13076 # executable.
13077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13078/* end confdefs.h. */
13079
13080int
13081main ()
13082{
13083
13084 ;
13085 return 0;
13086}
13087_ACEOF
13088if ac_fn_cxx_try_link "$LINENO"; then :
13089
13090lt_aix_libpath_sed='
13091 /Import File Strings/,/^$/ {
13092 /^0/ {
13093 s/^0 *\(.*\)$/\1/
13094 p
13095 }
13096 }'
13097aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13098# Check for a 64-bit object if we didn't find anything.
13099if test -z "$aix_libpath"; then
13100 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13101fi
13102fi
13103rm -f core conftest.err conftest.$ac_objext \
13104 conftest$ac_exeext conftest.$ac_ext
13105if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13106
13107 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13108
13109 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"
13110 else
13111 if test "$host_cpu" = ia64; then
13112 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13113 allow_undefined_flag_CXX="-z nodefs"
13114 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"
13115 else
13116 # Determine the default libpath from the value encoded in an
13117 # empty executable.
13118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13119/* end confdefs.h. */
13120
13121int
13122main ()
13123{
13124
13125 ;
13126 return 0;
13127}
13128_ACEOF
13129if ac_fn_cxx_try_link "$LINENO"; then :
13130
13131lt_aix_libpath_sed='
13132 /Import File Strings/,/^$/ {
13133 /^0/ {
13134 s/^0 *\(.*\)$/\1/
13135 p
13136 }
13137 }'
13138aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13139# Check for a 64-bit object if we didn't find anything.
13140if test -z "$aix_libpath"; then
13141 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13142fi
13143fi
13144rm -f core conftest.err conftest.$ac_objext \
13145 conftest$ac_exeext conftest.$ac_ext
13146if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13147
13148 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13149 # Warning - without using the other run time loading flags,
13150 # -berok will link without error, but may produce a broken library.
13151 no_undefined_flag_CXX=' ${wl}-bernotok'
13152 allow_undefined_flag_CXX=' ${wl}-berok'
13153 if test "$with_gnu_ld" = yes; then
13154 # We only use this code for GNU lds that support --whole-archive.
13155 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13156 else
13157 # Exported symbols can be pulled into shared objects from archives
13158 whole_archive_flag_spec_CXX='$convenience'
13159 fi
13160 archive_cmds_need_lc_CXX=yes
13161 # This is similar to how AIX traditionally builds its shared
13162 # libraries.
13163 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'
13164 fi
13165 fi
13166 ;;
13167
13168 beos*)
13169 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13170 allow_undefined_flag_CXX=unsupported
13171 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13172 # support --undefined. This deserves some investigation. FIXME
13173 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13174 else
13175 ld_shlibs_CXX=no
13176 fi
13177 ;;
13178
13179 chorus*)
13180 case $cc_basename in
13181 *)
13182 # FIXME: insert proper C++ library support
13183 ld_shlibs_CXX=no
13184 ;;
13185 esac
13186 ;;
13187
13188 cygwin* | mingw* | pw32* | cegcc*)
13189 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13190 # as there is no search path for DLLs.
13191 hardcode_libdir_flag_spec_CXX='-L$libdir'
13192 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13193 allow_undefined_flag_CXX=unsupported
13194 always_export_symbols_CXX=no
13195 enable_shared_with_static_runtimes_CXX=yes
13196
13197 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13198 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'
13199 # If the export-symbols file already is a .def file (1st line
13200 # is EXPORTS), use it as is; otherwise, prepend...
13201 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13202 cp $export_symbols $output_objdir/$soname.def;
13203 else
13204 echo EXPORTS > $output_objdir/$soname.def;
13205 cat $export_symbols >> $output_objdir/$soname.def;
13206 fi~
13207 $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'
13208 else
13209 ld_shlibs_CXX=no
13210 fi
13211 ;;
13212 darwin* | rhapsody*)
13213
13214
13215 archive_cmds_need_lc_CXX=no
13216 hardcode_direct_CXX=no
13217 hardcode_automatic_CXX=yes
13218 hardcode_shlibpath_var_CXX=unsupported
13219 if test "$lt_cv_ld_force_load" = "yes"; then
13220 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\"`'
13221 else
13222 whole_archive_flag_spec_CXX=''
13223 fi
13224 link_all_deplibs_CXX=yes
13225 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13226 case $cc_basename in
13227 ifort*) _lt_dar_can_shared=yes ;;
13228 *) _lt_dar_can_shared=$GCC ;;
13229 esac
13230 if test "$_lt_dar_can_shared" = "yes"; then
13231 output_verbose_link_cmd=func_echo_all
13232 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}"
13233 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13234 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}"
13235 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}"
13236 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13237 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}"
13238 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}"
13239 fi
13240
13241 else
13242 ld_shlibs_CXX=no
13243 fi
13244
13245 ;;
13246
13247 dgux*)
13248 case $cc_basename in
13249 ec++*)
13250 # FIXME: insert proper C++ library support
13251 ld_shlibs_CXX=no
13252 ;;
13253 ghcx*)
13254 # Green Hills C++ Compiler
13255 # FIXME: insert proper C++ library support
13256 ld_shlibs_CXX=no
13257 ;;
13258 *)
13259 # FIXME: insert proper C++ library support
13260 ld_shlibs_CXX=no
13261 ;;
13262 esac
13263 ;;
13264
13265 freebsd2.*)
13266 # C++ shared libraries reported to be fairly broken before
13267 # switch to ELF
13268 ld_shlibs_CXX=no
13269 ;;
13270
13271 freebsd-elf*)
13272 archive_cmds_need_lc_CXX=no
13273 ;;
13274
13275 freebsd* | dragonfly*)
13276 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13277 # conventions
13278 ld_shlibs_CXX=yes
13279 ;;
13280
13281 gnu*)
13282 ;;
13283
13284 haiku*)
13285 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13286 link_all_deplibs_CXX=yes
13287 ;;
13288
13289 hpux9*)
13290 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13291 hardcode_libdir_separator_CXX=:
13292 export_dynamic_flag_spec_CXX='${wl}-E'
13293 hardcode_direct_CXX=yes
13294 hardcode_minus_L_CXX=yes # Not in the search PATH,
13295 # but as the default
13296 # location of the library.
13297
13298 case $cc_basename in
13299 CC*)
13300 # FIXME: insert proper C++ library support
13301 ld_shlibs_CXX=no
13302 ;;
13303 aCC*)
13304 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'
13305 # Commands to make compiler produce verbose output that lists
13306 # what "hidden" libraries, object files and flags are used when
13307 # linking a shared library.
13308 #
13309 # There doesn't appear to be a way to prevent this compiler from
13310 # explicitly linking system object files so we need to strip them
13311 # from the output so that they don't get included in the library
13312 # dependencies.
13313 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"'
13314 ;;
13315 *)
13316 if test "$GXX" = yes; then
13317 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'
13318 else
13319 # FIXME: insert proper C++ library support
13320 ld_shlibs_CXX=no
13321 fi
13322 ;;
13323 esac
13324 ;;
13325
13326 hpux10*|hpux11*)
13327 if test $with_gnu_ld = no; then
13328 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13329 hardcode_libdir_separator_CXX=:
13330
13331 case $host_cpu in
13332 hppa*64*|ia64*)
13333 ;;
13334 *)
13335 export_dynamic_flag_spec_CXX='${wl}-E'
13336 ;;
13337 esac
13338 fi
13339 case $host_cpu in
13340 hppa*64*|ia64*)
13341 hardcode_direct_CXX=no
13342 hardcode_shlibpath_var_CXX=no
13343 ;;
13344 *)
13345 hardcode_direct_CXX=yes
13346 hardcode_direct_absolute_CXX=yes
13347 hardcode_minus_L_CXX=yes # Not in the search PATH,
13348 # but as the default
13349 # location of the library.
13350 ;;
13351 esac
13352
13353 case $cc_basename in
13354 CC*)
13355 # FIXME: insert proper C++ library support
13356 ld_shlibs_CXX=no
13357 ;;
13358 aCC*)
13359 case $host_cpu in
13360 hppa*64*)
13361 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13362 ;;
13363 ia64*)
13364 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13365 ;;
13366 *)
13367 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13368 ;;
13369 esac
13370 # Commands to make compiler produce verbose output that lists
13371 # what "hidden" libraries, object files and flags are used when
13372 # linking a shared library.
13373 #
13374 # There doesn't appear to be a way to prevent this compiler from
13375 # explicitly linking system object files so we need to strip them
13376 # from the output so that they don't get included in the library
13377 # dependencies.
13378 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"'
13379 ;;
13380 *)
13381 if test "$GXX" = yes; then
13382 if test $with_gnu_ld = no; then
13383 case $host_cpu in
13384 hppa*64*)
13385 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13386 ;;
13387 ia64*)
13388 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13389 ;;
13390 *)
13391 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'
13392 ;;
13393 esac
13394 fi
13395 else
13396 # FIXME: insert proper C++ library support
13397 ld_shlibs_CXX=no
13398 fi
13399 ;;
13400 esac
13401 ;;
13402
13403 interix[3-9]*)
13404 hardcode_direct_CXX=no
13405 hardcode_shlibpath_var_CXX=no
13406 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13407 export_dynamic_flag_spec_CXX='${wl}-E'
13408 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13409 # Instead, shared libraries are loaded at an image base (0x10000000 by
13410 # default) and relocated if they conflict, which is a slow very memory
13411 # consuming and fragmenting process. To avoid this, we pick a random,
13412 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13413 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13414 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'
13415 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'
13416 ;;
13417 irix5* | irix6*)
13418 case $cc_basename in
13419 CC*)
13420 # SGI C++
13421 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'
13422
13423 # Archives containing C++ object files must be created using
13424 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13425 # necessary to make sure instantiated templates are included
13426 # in the archive.
13427 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13428 ;;
13429 *)
13430 if test "$GXX" = yes; then
13431 if test "$with_gnu_ld" = no; then
13432 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'
13433 else
13434 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'
13435 fi
13436 fi
13437 link_all_deplibs_CXX=yes
13438 ;;
13439 esac
13440 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13441 hardcode_libdir_separator_CXX=:
13442 inherit_rpath_CXX=yes
13443 ;;
13444
13445 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13446 case $cc_basename in
13447 KCC*)
13448 # Kuck and Associates, Inc. (KAI) C++ Compiler
13449
13450 # KCC will only create a shared library if the output file
13451 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13452 # to its proper name (with version) after linking.
13453 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'
13454 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'
13455 # Commands to make compiler produce verbose output that lists
13456 # what "hidden" libraries, object files and flags are used when
13457 # linking a shared library.
13458 #
13459 # There doesn't appear to be a way to prevent this compiler from
13460 # explicitly linking system object files so we need to strip them
13461 # from the output so that they don't get included in the library
13462 # dependencies.
13463 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"'
13464
13465 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13466 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13467
13468 # Archives containing C++ object files must be created using
13469 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13470 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13471 ;;
13472 icpc* | ecpc* )
13473 # Intel C++
13474 with_gnu_ld=yes
13475 # version 8.0 and above of icpc choke on multiply defined symbols
13476 # if we add $predep_objects and $postdep_objects, however 7.1 and
13477 # earlier do not add the objects themselves.
13478 case `$CC -V 2>&1` in
13479 *"Version 7."*)
13480 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13481 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'
13482 ;;
13483 *) # Version 8.0 or newer
13484 tmp_idyn=
13485 case $host_cpu in
13486 ia64*) tmp_idyn=' -i_dynamic';;
13487 esac
13488 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13489 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'
13490 ;;
13491 esac
13492 archive_cmds_need_lc_CXX=no
13493 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13494 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13495 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13496 ;;
13497 pgCC* | pgcpp*)
13498 # Portland Group C++ compiler
13499 case `$CC -V` in
13500 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13501 prelink_cmds_CXX='tpldir=Template.dir~
13502 rm -rf $tpldir~
13503 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
f00f02a3 13504 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
b710ec85 13505 old_archive_cmds_CXX='tpldir=Template.dir~
13506 rm -rf $tpldir~
13507 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
f00f02a3 13508 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
b710ec85 13509 $RANLIB $oldlib'
13510 archive_cmds_CXX='tpldir=Template.dir~
13511 rm -rf $tpldir~
13512 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
f00f02a3 13513 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
b710ec85 13514 archive_expsym_cmds_CXX='tpldir=Template.dir~
13515 rm -rf $tpldir~
13516 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
f00f02a3 13517 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
b710ec85 13518 ;;
13519 *) # Version 6 and above use weak symbols
13520 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13521 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'
13522 ;;
13523 esac
13524
13525 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13526 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13527 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'
13528 ;;
13529 cxx*)
13530 # Compaq C++
13531 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13532 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'
13533
13534 runpath_var=LD_RUN_PATH
13535 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13536 hardcode_libdir_separator_CXX=:
13537
13538 # Commands to make compiler produce verbose output that lists
13539 # what "hidden" libraries, object files and flags are used when
13540 # linking a shared library.
13541 #
13542 # There doesn't appear to be a way to prevent this compiler from
13543 # explicitly linking system object files so we need to strip them
13544 # from the output so that they don't get included in the library
13545 # dependencies.
13546 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'
13547 ;;
13548 xl* | mpixl* | bgxl*)
13549 # IBM XL 8.0 on PPC, with GNU ld
13550 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13551 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13552 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13553 if test "x$supports_anon_versioning" = xyes; then
13554 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13555 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13556 echo "local: *; };" >> $output_objdir/$libname.ver~
13557 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13558 fi
13559 ;;
13560 *)
13561 case `$CC -V 2>&1 | sed 5q` in
13562 *Sun\ C*)
13563 # Sun C++ 5.9
13564 no_undefined_flag_CXX=' -zdefs'
13565 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13566 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'
13567 hardcode_libdir_flag_spec_CXX='-R$libdir'
13568 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'
13569 compiler_needs_object_CXX=yes
13570
13571 # Not sure whether something based on
13572 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13573 # would be better.
13574 output_verbose_link_cmd='func_echo_all'
13575
13576 # Archives containing C++ object files must be created using
13577 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13578 # necessary to make sure instantiated templates are included
13579 # in the archive.
13580 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13581 ;;
13582 esac
13583 ;;
13584 esac
13585 ;;
13586
13587 lynxos*)
13588 # FIXME: insert proper C++ library support
13589 ld_shlibs_CXX=no
13590 ;;
13591
13592 m88k*)
13593 # FIXME: insert proper C++ library support
13594 ld_shlibs_CXX=no
13595 ;;
13596
13597 mvs*)
13598 case $cc_basename in
13599 cxx*)
13600 # FIXME: insert proper C++ library support
13601 ld_shlibs_CXX=no
13602 ;;
13603 *)
13604 # FIXME: insert proper C++ library support
13605 ld_shlibs_CXX=no
13606 ;;
13607 esac
13608 ;;
13609
13610 netbsd*)
13611 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13612 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13613 wlarc=
13614 hardcode_libdir_flag_spec_CXX='-R$libdir'
13615 hardcode_direct_CXX=yes
13616 hardcode_shlibpath_var_CXX=no
13617 fi
13618 # Workaround some broken pre-1.5 toolchains
13619 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13620 ;;
13621
13622 *nto* | *qnx*)
13623 ld_shlibs_CXX=yes
13624 ;;
13625
13626 openbsd2*)
13627 # C++ shared libraries are fairly broken
13628 ld_shlibs_CXX=no
13629 ;;
13630
13631 openbsd*)
13632 if test -f /usr/libexec/ld.so; then
13633 hardcode_direct_CXX=yes
13634 hardcode_shlibpath_var_CXX=no
13635 hardcode_direct_absolute_CXX=yes
13636 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13637 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13638 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13639 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13640 export_dynamic_flag_spec_CXX='${wl}-E'
13641 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13642 fi
13643 output_verbose_link_cmd=func_echo_all
13644 else
13645 ld_shlibs_CXX=no
13646 fi
13647 ;;
13648
13649 osf3* | osf4* | osf5*)
13650 case $cc_basename in
13651 KCC*)
13652 # Kuck and Associates, Inc. (KAI) C++ Compiler
13653
13654 # KCC will only create a shared library if the output file
13655 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13656 # to its proper name (with version) after linking.
13657 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'
13658
13659 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13660 hardcode_libdir_separator_CXX=:
13661
13662 # Archives containing C++ object files must be created using
13663 # the KAI C++ compiler.
13664 case $host in
13665 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13666 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13667 esac
13668 ;;
13669 RCC*)
13670 # Rational C++ 2.4.1
13671 # FIXME: insert proper C++ library support
13672 ld_shlibs_CXX=no
13673 ;;
13674 cxx*)
13675 case $host in
13676 osf3*)
13677 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13678 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'
13679 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13680 ;;
13681 *)
13682 allow_undefined_flag_CXX=' -expect_unresolved \*'
13683 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'
13684 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13685 echo "-hidden">> $lib.exp~
13686 $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~
13687 $RM $lib.exp'
13688 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13689 ;;
13690 esac
13691
13692 hardcode_libdir_separator_CXX=:
13693
13694 # Commands to make compiler produce verbose output that lists
13695 # what "hidden" libraries, object files and flags are used when
13696 # linking a shared library.
13697 #
13698 # There doesn't appear to be a way to prevent this compiler from
13699 # explicitly linking system object files so we need to strip them
13700 # from the output so that they don't get included in the library
13701 # dependencies.
13702 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"'
13703 ;;
13704 *)
13705 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13706 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13707 case $host in
13708 osf3*)
13709 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'
13710 ;;
13711 *)
13712 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'
13713 ;;
13714 esac
13715
13716 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13717 hardcode_libdir_separator_CXX=:
13718
13719 # Commands to make compiler produce verbose output that lists
13720 # what "hidden" libraries, object files and flags are used when
13721 # linking a shared library.
13722 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13723
13724 else
13725 # FIXME: insert proper C++ library support
13726 ld_shlibs_CXX=no
13727 fi
13728 ;;
13729 esac
13730 ;;
13731
13732 psos*)
13733 # FIXME: insert proper C++ library support
13734 ld_shlibs_CXX=no
13735 ;;
13736
13737 sunos4*)
13738 case $cc_basename in
13739 CC*)
13740 # Sun C++ 4.x
13741 # FIXME: insert proper C++ library support
13742 ld_shlibs_CXX=no
13743 ;;
13744 lcc*)
13745 # Lucid
13746 # FIXME: insert proper C++ library support
13747 ld_shlibs_CXX=no
13748 ;;
13749 *)
13750 # FIXME: insert proper C++ library support
13751 ld_shlibs_CXX=no
13752 ;;
13753 esac
13754 ;;
13755
13756 solaris*)
13757 case $cc_basename in
13758 CC*)
13759 # Sun C++ 4.2, 5.x and Centerline C++
13760 archive_cmds_need_lc_CXX=yes
13761 no_undefined_flag_CXX=' -zdefs'
13762 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13763 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13764 $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'
13765
13766 hardcode_libdir_flag_spec_CXX='-R$libdir'
13767 hardcode_shlibpath_var_CXX=no
13768 case $host_os in
13769 solaris2.[0-5] | solaris2.[0-5].*) ;;
13770 *)
13771 # The compiler driver will combine and reorder linker options,
13772 # but understands `-z linker_flag'.
13773 # Supported since Solaris 2.6 (maybe 2.5.1?)
13774 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13775 ;;
13776 esac
13777 link_all_deplibs_CXX=yes
13778
13779 output_verbose_link_cmd='func_echo_all'
13780
13781 # Archives containing C++ object files must be created using
13782 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13783 # necessary to make sure instantiated templates are included
13784 # in the archive.
13785 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13786 ;;
13787 gcx*)
13788 # Green Hills C++ Compiler
13789 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13790
13791 # The C++ compiler must be used to create the archive.
13792 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13793 ;;
13794 *)
13795 # GNU C++ compiler with Solaris linker
13796 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13797 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13798 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13799 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13800 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13801 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13802
13803 # Commands to make compiler produce verbose output that lists
13804 # what "hidden" libraries, object files and flags are used when
13805 # linking a shared library.
13806 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13807 else
13808 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13809 # platform.
13810 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13811 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13812 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13813
13814 # Commands to make compiler produce verbose output that lists
13815 # what "hidden" libraries, object files and flags are used when
13816 # linking a shared library.
13817 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13818 fi
13819
13820 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13821 case $host_os in
13822 solaris2.[0-5] | solaris2.[0-5].*) ;;
13823 *)
13824 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13825 ;;
13826 esac
13827 fi
13828 ;;
13829 esac
13830 ;;
13831
13832 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13833 no_undefined_flag_CXX='${wl}-z,text'
13834 archive_cmds_need_lc_CXX=no
13835 hardcode_shlibpath_var_CXX=no
13836 runpath_var='LD_RUN_PATH'
13837
13838 case $cc_basename in
13839 CC*)
13840 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13841 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13842 ;;
13843 *)
13844 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13845 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13846 ;;
13847 esac
13848 ;;
13849
13850 sysv5* | sco3.2v5* | sco5v6*)
13851 # Note: We can NOT use -z defs as we might desire, because we do not
13852 # link with -lc, and that would cause any symbols used from libc to
13853 # always be unresolved, which means just about no library would
13854 # ever link correctly. If we're not using GNU ld we use -z text
13855 # though, which does catch some bad symbols but isn't as heavy-handed
13856 # as -z defs.
13857 no_undefined_flag_CXX='${wl}-z,text'
13858 allow_undefined_flag_CXX='${wl}-z,nodefs'
13859 archive_cmds_need_lc_CXX=no
13860 hardcode_shlibpath_var_CXX=no
13861 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13862 hardcode_libdir_separator_CXX=':'
13863 link_all_deplibs_CXX=yes
13864 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13865 runpath_var='LD_RUN_PATH'
13866
13867 case $cc_basename in
13868 CC*)
13869 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13870 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13871 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13872 '"$old_archive_cmds_CXX"
13873 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13874 '"$reload_cmds_CXX"
13875 ;;
13876 *)
13877 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13878 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13879 ;;
13880 esac
13881 ;;
13882
13883 tandem*)
13884 case $cc_basename in
13885 NCC*)
13886 # NonStop-UX NCC 3.20
13887 # FIXME: insert proper C++ library support
13888 ld_shlibs_CXX=no
13889 ;;
13890 *)
13891 # FIXME: insert proper C++ library support
13892 ld_shlibs_CXX=no
13893 ;;
13894 esac
13895 ;;
13896
13897 vxworks*)
13898 # FIXME: insert proper C++ library support
13899 ld_shlibs_CXX=no
13900 ;;
13901
13902 *)
13903 # FIXME: insert proper C++ library support
13904 ld_shlibs_CXX=no
13905 ;;
13906 esac
13907
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13909$as_echo "$ld_shlibs_CXX" >&6; }
13910 test "$ld_shlibs_CXX" = no && can_build_shared=no
13911
13912 GCC_CXX="$GXX"
13913 LD_CXX="$LD"
13914
13915 ## CAVEAT EMPTOR:
13916 ## There is no encapsulation within the following macros, do not change
13917 ## the running order or otherwise move them around unless you know exactly
13918 ## what you are doing...
13919 # Dependencies to place before and after the object being linked:
13920predep_objects_CXX=
13921postdep_objects_CXX=
13922predeps_CXX=
13923postdeps_CXX=
13924compiler_lib_search_path_CXX=
13925
13926cat > conftest.$ac_ext <<_LT_EOF
13927class Foo
13928{
13929public:
13930 Foo (void) { a = 0; }
13931private:
13932 int a;
13933};
13934_LT_EOF
13935
13936if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13937 (eval $ac_compile) 2>&5
13938 ac_status=$?
13939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13940 test $ac_status = 0; }; then
13941 # Parse the compiler output and extract the necessary
13942 # objects, libraries and library flags.
13943
13944 # Sentinel used to keep track of whether or not we are before
13945 # the conftest object file.
13946 pre_test_object_deps_done=no
13947
13948 for p in `eval "$output_verbose_link_cmd"`; do
13949 case $p in
13950
13951 -L* | -R* | -l*)
13952 # Some compilers place space between "-{L,R}" and the path.
13953 # Remove the space.
13954 if test $p = "-L" ||
13955 test $p = "-R"; then
13956 prev=$p
13957 continue
13958 else
13959 prev=
13960 fi
13961
13962 if test "$pre_test_object_deps_done" = no; then
13963 case $p in
13964 -L* | -R*)
13965 # Internal compiler library paths should come after those
13966 # provided the user. The postdeps already come after the
13967 # user supplied libs so there is no need to process them.
13968 if test -z "$compiler_lib_search_path_CXX"; then
13969 compiler_lib_search_path_CXX="${prev}${p}"
13970 else
13971 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13972 fi
13973 ;;
13974 # The "-l" case would never come before the object being
13975 # linked, so don't bother handling this case.
13976 esac
13977 else
13978 if test -z "$postdeps_CXX"; then
13979 postdeps_CXX="${prev}${p}"
13980 else
13981 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13982 fi
13983 fi
13984 ;;
13985
13986 *.$objext)
13987 # This assumes that the test object file only shows up
13988 # once in the compiler output.
13989 if test "$p" = "conftest.$objext"; then
13990 pre_test_object_deps_done=yes
13991 continue
13992 fi
13993
13994 if test "$pre_test_object_deps_done" = no; then
13995 if test -z "$predep_objects_CXX"; then
13996 predep_objects_CXX="$p"
13997 else
13998 predep_objects_CXX="$predep_objects_CXX $p"
13999 fi
14000 else
14001 if test -z "$postdep_objects_CXX"; then
14002 postdep_objects_CXX="$p"
14003 else
14004 postdep_objects_CXX="$postdep_objects_CXX $p"
14005 fi
14006 fi
14007 ;;
14008
14009 *) ;; # Ignore the rest.
14010
14011 esac
14012 done
14013
14014 # Clean up.
14015 rm -f a.out a.exe
14016else
14017 echo "libtool.m4: error: problem compiling CXX test program"
14018fi
14019
14020$RM -f confest.$objext
14021
14022# PORTME: override above test on systems where it is broken
14023case $host_os in
14024interix[3-9]*)
14025 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14026 # hack all around it, let's just trust "g++" to DTRT.
14027 predep_objects_CXX=
14028 postdep_objects_CXX=
14029 postdeps_CXX=
14030 ;;
14031
14032linux*)
14033 case `$CC -V 2>&1 | sed 5q` in
14034 *Sun\ C*)
14035 # Sun C++ 5.9
14036
14037 # The more standards-conforming stlport4 library is
14038 # incompatible with the Cstd library. Avoid specifying
14039 # it if it's in CXXFLAGS. Ignore libCrun as
14040 # -library=stlport4 depends on it.
14041 case " $CXX $CXXFLAGS " in
14042 *" -library=stlport4 "*)
14043 solaris_use_stlport4=yes
14044 ;;
14045 esac
14046
14047 if test "$solaris_use_stlport4" != yes; then
14048 postdeps_CXX='-library=Cstd -library=Crun'
14049 fi
14050 ;;
14051 esac
14052 ;;
14053
14054solaris*)
14055 case $cc_basename in
14056 CC*)
14057 # The more standards-conforming stlport4 library is
14058 # incompatible with the Cstd library. Avoid specifying
14059 # it if it's in CXXFLAGS. Ignore libCrun as
14060 # -library=stlport4 depends on it.
14061 case " $CXX $CXXFLAGS " in
14062 *" -library=stlport4 "*)
14063 solaris_use_stlport4=yes
14064 ;;
14065 esac
14066
14067 # Adding this requires a known-good setup of shared libraries for
14068 # Sun compiler versions before 5.6, else PIC objects from an old
14069 # archive will be linked into the output, leading to subtle bugs.
14070 if test "$solaris_use_stlport4" != yes; then
14071 postdeps_CXX='-library=Cstd -library=Crun'
14072 fi
14073 ;;
14074 esac
14075 ;;
14076esac
14077
14078
14079case " $postdeps_CXX " in
14080*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14081esac
14082 compiler_lib_search_dirs_CXX=
14083if test -n "${compiler_lib_search_path_CXX}"; then
14084 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14085fi
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117 lt_prog_compiler_wl_CXX=
14118lt_prog_compiler_pic_CXX=
14119lt_prog_compiler_static_CXX=
14120
14121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14122$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14123
14124 # C++ specific cases for pic, static, wl, etc.
14125 if test "$GXX" = yes; then
14126 lt_prog_compiler_wl_CXX='-Wl,'
14127 lt_prog_compiler_static_CXX='-static'
14128
14129 case $host_os in
14130 aix*)
14131 # All AIX code is PIC.
14132 if test "$host_cpu" = ia64; then
14133 # AIX 5 now supports IA64 processor
14134 lt_prog_compiler_static_CXX='-Bstatic'
14135 fi
14136 lt_prog_compiler_pic_CXX='-fPIC'
14137 ;;
14138
14139 amigaos*)
14140 case $host_cpu in
14141 powerpc)
14142 # see comment about AmigaOS4 .so support
14143 lt_prog_compiler_pic_CXX='-fPIC'
14144 ;;
14145 m68k)
14146 # FIXME: we need at least 68020 code to build shared libraries, but
14147 # adding the `-m68020' flag to GCC prevents building anything better,
14148 # like `-m68040'.
14149 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14150 ;;
14151 esac
14152 ;;
14153
14154 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14155 # PIC is the default for these OSes.
14156 ;;
14157 mingw* | cygwin* | os2* | pw32* | cegcc*)
14158 # This hack is so that the source file can tell whether it is being
14159 # built for inclusion in a dll (and should export symbols for example).
14160 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14161 # (--disable-auto-import) libraries
14162 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14163 ;;
14164 darwin* | rhapsody*)
14165 # PIC is the default on this platform
14166 # Common symbols not allowed in MH_DYLIB files
14167 lt_prog_compiler_pic_CXX='-fno-common'
14168 ;;
14169 *djgpp*)
14170 # DJGPP does not support shared libraries at all
14171 lt_prog_compiler_pic_CXX=
14172 ;;
14173 haiku*)
14174 # PIC is the default for Haiku.
14175 # The "-static" flag exists, but is broken.
14176 lt_prog_compiler_static_CXX=
14177 ;;
14178 interix[3-9]*)
14179 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14180 # Instead, we relocate shared libraries at runtime.
14181 ;;
14182 sysv4*MP*)
14183 if test -d /usr/nec; then
14184 lt_prog_compiler_pic_CXX=-Kconform_pic
14185 fi
14186 ;;
14187 hpux*)
14188 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14189 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14190 # sets the default TLS model and affects inlining.
14191 case $host_cpu in
14192 hppa*64*)
14193 ;;
14194 *)
14195 lt_prog_compiler_pic_CXX='-fPIC'
14196 ;;
14197 esac
14198 ;;
14199 *qnx* | *nto*)
14200 # QNX uses GNU C++, but need to define -shared option too, otherwise
14201 # it will coredump.
14202 lt_prog_compiler_pic_CXX='-fPIC -shared'
14203 ;;
14204 *)
14205 lt_prog_compiler_pic_CXX='-fPIC'
14206 ;;
14207 esac
14208 else
14209 case $host_os in
14210 aix[4-9]*)
14211 # All AIX code is PIC.
14212 if test "$host_cpu" = ia64; then
14213 # AIX 5 now supports IA64 processor
14214 lt_prog_compiler_static_CXX='-Bstatic'
14215 else
14216 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14217 fi
14218 ;;
14219 chorus*)
14220 case $cc_basename in
14221 cxch68*)
14222 # Green Hills C++ Compiler
14223 # _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"
14224 ;;
14225 esac
14226 ;;
14227 dgux*)
14228 case $cc_basename in
14229 ec++*)
14230 lt_prog_compiler_pic_CXX='-KPIC'
14231 ;;
14232 ghcx*)
14233 # Green Hills C++ Compiler
14234 lt_prog_compiler_pic_CXX='-pic'
14235 ;;
14236 *)
14237 ;;
14238 esac
14239 ;;
14240 freebsd* | dragonfly*)
14241 # FreeBSD uses GNU C++
14242 ;;
14243 hpux9* | hpux10* | hpux11*)
14244 case $cc_basename in
14245 CC*)
14246 lt_prog_compiler_wl_CXX='-Wl,'
14247 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14248 if test "$host_cpu" != ia64; then
14249 lt_prog_compiler_pic_CXX='+Z'
14250 fi
14251 ;;
14252 aCC*)
14253 lt_prog_compiler_wl_CXX='-Wl,'
14254 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14255 case $host_cpu in
14256 hppa*64*|ia64*)
14257 # +Z the default
14258 ;;
14259 *)
14260 lt_prog_compiler_pic_CXX='+Z'
14261 ;;
14262 esac
14263 ;;
14264 *)
14265 ;;
14266 esac
14267 ;;
14268 interix*)
14269 # This is c89, which is MS Visual C++ (no shared libs)
14270 # Anyone wants to do a port?
14271 ;;
14272 irix5* | irix6* | nonstopux*)
14273 case $cc_basename in
14274 CC*)
14275 lt_prog_compiler_wl_CXX='-Wl,'
14276 lt_prog_compiler_static_CXX='-non_shared'
14277 # CC pic flag -KPIC is the default.
14278 ;;
14279 *)
14280 ;;
14281 esac
14282 ;;
14283 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14284 case $cc_basename in
14285 KCC*)
14286 # KAI C++ Compiler
14287 lt_prog_compiler_wl_CXX='--backend -Wl,'
14288 lt_prog_compiler_pic_CXX='-fPIC'
14289 ;;
14290 ecpc* )
14291 # old Intel C++ for x86_64 which still supported -KPIC.
14292 lt_prog_compiler_wl_CXX='-Wl,'
14293 lt_prog_compiler_pic_CXX='-KPIC'
14294 lt_prog_compiler_static_CXX='-static'
14295 ;;
14296 icpc* )
14297 # Intel C++, used to be incompatible with GCC.
14298 # ICC 10 doesn't accept -KPIC any more.
14299 lt_prog_compiler_wl_CXX='-Wl,'
14300 lt_prog_compiler_pic_CXX='-fPIC'
14301 lt_prog_compiler_static_CXX='-static'
14302 ;;
14303 pgCC* | pgcpp*)
14304 # Portland Group C++ compiler
14305 lt_prog_compiler_wl_CXX='-Wl,'
14306 lt_prog_compiler_pic_CXX='-fpic'
14307 lt_prog_compiler_static_CXX='-Bstatic'
14308 ;;
14309 cxx*)
14310 # Compaq C++
14311 # Make sure the PIC flag is empty. It appears that all Alpha
14312 # Linux and Compaq Tru64 Unix objects are PIC.
14313 lt_prog_compiler_pic_CXX=
14314 lt_prog_compiler_static_CXX='-non_shared'
14315 ;;
14316 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14317 # IBM XL 8.0, 9.0 on PPC and BlueGene
14318 lt_prog_compiler_wl_CXX='-Wl,'
14319 lt_prog_compiler_pic_CXX='-qpic'
14320 lt_prog_compiler_static_CXX='-qstaticlink'
14321 ;;
14322 *)
14323 case `$CC -V 2>&1 | sed 5q` in
14324 *Sun\ C*)
14325 # Sun C++ 5.9
14326 lt_prog_compiler_pic_CXX='-KPIC'
14327 lt_prog_compiler_static_CXX='-Bstatic'
14328 lt_prog_compiler_wl_CXX='-Qoption ld '
14329 ;;
14330 esac
14331 ;;
14332 esac
14333 ;;
14334 lynxos*)
14335 ;;
14336 m88k*)
14337 ;;
14338 mvs*)
14339 case $cc_basename in
14340 cxx*)
14341 lt_prog_compiler_pic_CXX='-W c,exportall'
14342 ;;
14343 *)
14344 ;;
14345 esac
14346 ;;
14347 netbsd*)
14348 ;;
14349 *qnx* | *nto*)
14350 # QNX uses GNU C++, but need to define -shared option too, otherwise
14351 # it will coredump.
14352 lt_prog_compiler_pic_CXX='-fPIC -shared'
14353 ;;
14354 osf3* | osf4* | osf5*)
14355 case $cc_basename in
14356 KCC*)
14357 lt_prog_compiler_wl_CXX='--backend -Wl,'
14358 ;;
14359 RCC*)
14360 # Rational C++ 2.4.1
14361 lt_prog_compiler_pic_CXX='-pic'
14362 ;;
14363 cxx*)
14364 # Digital/Compaq C++
14365 lt_prog_compiler_wl_CXX='-Wl,'
14366 # Make sure the PIC flag is empty. It appears that all Alpha
14367 # Linux and Compaq Tru64 Unix objects are PIC.
14368 lt_prog_compiler_pic_CXX=
14369 lt_prog_compiler_static_CXX='-non_shared'
14370 ;;
14371 *)
14372 ;;
14373 esac
14374 ;;
14375 psos*)
14376 ;;
14377 solaris*)
14378 case $cc_basename in
14379 CC*)
14380 # Sun C++ 4.2, 5.x and Centerline C++
14381 lt_prog_compiler_pic_CXX='-KPIC'
14382 lt_prog_compiler_static_CXX='-Bstatic'
14383 lt_prog_compiler_wl_CXX='-Qoption ld '
14384 ;;
14385 gcx*)
14386 # Green Hills C++ Compiler
14387 lt_prog_compiler_pic_CXX='-PIC'
14388 ;;
14389 *)
14390 ;;
14391 esac
14392 ;;
14393 sunos4*)
14394 case $cc_basename in
14395 CC*)
14396 # Sun C++ 4.x
14397 lt_prog_compiler_pic_CXX='-pic'
14398 lt_prog_compiler_static_CXX='-Bstatic'
14399 ;;
14400 lcc*)
14401 # Lucid
14402 lt_prog_compiler_pic_CXX='-pic'
14403 ;;
14404 *)
14405 ;;
14406 esac
14407 ;;
14408 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14409 case $cc_basename in
14410 CC*)
14411 lt_prog_compiler_wl_CXX='-Wl,'
14412 lt_prog_compiler_pic_CXX='-KPIC'
14413 lt_prog_compiler_static_CXX='-Bstatic'
14414 ;;
14415 esac
14416 ;;
14417 tandem*)
14418 case $cc_basename in
14419 NCC*)
14420 # NonStop-UX NCC 3.20
14421 lt_prog_compiler_pic_CXX='-KPIC'
14422 ;;
14423 *)
14424 ;;
14425 esac
14426 ;;
14427 vxworks*)
14428 ;;
14429 *)
14430 lt_prog_compiler_can_build_shared_CXX=no
14431 ;;
14432 esac
14433 fi
14434
14435case $host_os in
14436 # For platforms which do not support PIC, -DPIC is meaningless:
14437 *djgpp*)
14438 lt_prog_compiler_pic_CXX=
14439 ;;
14440 *)
14441 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14442 ;;
14443esac
14444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14445$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14446
14447
14448
14449#
14450# Check to make sure the PIC flag actually works.
14451#
14452if test -n "$lt_prog_compiler_pic_CXX"; then
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14454$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
f00f02a3 14455if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
b710ec85 14456 $as_echo_n "(cached) " >&6
14457else
14458 lt_cv_prog_compiler_pic_works_CXX=no
14459 ac_outfile=conftest.$ac_objext
14460 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14461 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14462 # Insert the option either (1) after the last *FLAGS variable, or
14463 # (2) before a word containing "conftest.", or (3) at the end.
14464 # Note that $ac_compile itself does not contain backslashes and begins
14465 # with a dollar sign (not a hyphen), so the echo should work correctly.
14466 # The option is referenced via a variable to avoid confusing sed.
14467 lt_compile=`echo "$ac_compile" | $SED \
14468 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14469 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14470 -e 's:$: $lt_compiler_flag:'`
14471 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14472 (eval "$lt_compile" 2>conftest.err)
14473 ac_status=$?
14474 cat conftest.err >&5
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 if (exit $ac_status) && test -s "$ac_outfile"; then
14477 # The compiler can only warn and ignore the option if not recognized
14478 # So say no if there are warnings other than the usual output.
14479 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14480 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14481 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14482 lt_cv_prog_compiler_pic_works_CXX=yes
14483 fi
14484 fi
14485 $RM conftest*
14486
14487fi
14488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14489$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14490
14491if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14492 case $lt_prog_compiler_pic_CXX in
14493 "" | " "*) ;;
14494 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14495 esac
14496else
14497 lt_prog_compiler_pic_CXX=
14498 lt_prog_compiler_can_build_shared_CXX=no
14499fi
14500
14501fi
14502
14503
14504
14505#
14506# Check to make sure the static flag actually works.
14507#
14508wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14510$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
f00f02a3 14511if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
b710ec85 14512 $as_echo_n "(cached) " >&6
14513else
14514 lt_cv_prog_compiler_static_works_CXX=no
14515 save_LDFLAGS="$LDFLAGS"
14516 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14517 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14518 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14519 # The linker can only warn and ignore the option if not recognized
14520 # So say no if there are warnings
14521 if test -s conftest.err; then
14522 # Append any errors to the config.log.
14523 cat conftest.err 1>&5
14524 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14525 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14526 if diff conftest.exp conftest.er2 >/dev/null; then
14527 lt_cv_prog_compiler_static_works_CXX=yes
14528 fi
14529 else
14530 lt_cv_prog_compiler_static_works_CXX=yes
14531 fi
14532 fi
14533 $RM -r conftest*
14534 LDFLAGS="$save_LDFLAGS"
14535
14536fi
14537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14538$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14539
14540if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14541 :
14542else
14543 lt_prog_compiler_static_CXX=
14544fi
14545
14546
14547
14548
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14550$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
f00f02a3 14551if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
b710ec85 14552 $as_echo_n "(cached) " >&6
14553else
14554 lt_cv_prog_compiler_c_o_CXX=no
14555 $RM -r conftest 2>/dev/null
14556 mkdir conftest
14557 cd conftest
14558 mkdir out
14559 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14560
14561 lt_compiler_flag="-o out/conftest2.$ac_objext"
14562 # Insert the option either (1) after the last *FLAGS variable, or
14563 # (2) before a word containing "conftest.", or (3) at the end.
14564 # Note that $ac_compile itself does not contain backslashes and begins
14565 # with a dollar sign (not a hyphen), so the echo should work correctly.
14566 lt_compile=`echo "$ac_compile" | $SED \
14567 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14568 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14569 -e 's:$: $lt_compiler_flag:'`
14570 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14571 (eval "$lt_compile" 2>out/conftest.err)
14572 ac_status=$?
14573 cat out/conftest.err >&5
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14576 then
14577 # The compiler can only warn and ignore the option if not recognized
14578 # So say no if there are warnings
14579 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14580 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14581 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14582 lt_cv_prog_compiler_c_o_CXX=yes
14583 fi
14584 fi
14585 chmod u+w . 2>&5
14586 $RM conftest*
14587 # SGI C++ compiler will create directory out/ii_files/ for
14588 # template instantiation
14589 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14590 $RM out/* && rmdir out
14591 cd ..
14592 $RM -r conftest
14593 $RM conftest*
14594
14595fi
14596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14597$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14598
14599
14600
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14602$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
f00f02a3 14603if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
b710ec85 14604 $as_echo_n "(cached) " >&6
14605else
14606 lt_cv_prog_compiler_c_o_CXX=no
14607 $RM -r conftest 2>/dev/null
14608 mkdir conftest
14609 cd conftest
14610 mkdir out
14611 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14612
14613 lt_compiler_flag="-o out/conftest2.$ac_objext"
14614 # Insert the option either (1) after the last *FLAGS variable, or
14615 # (2) before a word containing "conftest.", or (3) at the end.
14616 # Note that $ac_compile itself does not contain backslashes and begins
14617 # with a dollar sign (not a hyphen), so the echo should work correctly.
14618 lt_compile=`echo "$ac_compile" | $SED \
14619 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14620 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14621 -e 's:$: $lt_compiler_flag:'`
14622 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14623 (eval "$lt_compile" 2>out/conftest.err)
14624 ac_status=$?
14625 cat out/conftest.err >&5
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14628 then
14629 # The compiler can only warn and ignore the option if not recognized
14630 # So say no if there are warnings
14631 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14632 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14633 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14634 lt_cv_prog_compiler_c_o_CXX=yes
14635 fi
14636 fi
14637 chmod u+w . 2>&5
14638 $RM conftest*
14639 # SGI C++ compiler will create directory out/ii_files/ for
14640 # template instantiation
14641 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14642 $RM out/* && rmdir out
14643 cd ..
14644 $RM -r conftest
14645 $RM conftest*
14646
14647fi
14648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14649$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14650
14651
14652
14653
14654hard_links="nottested"
14655if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14656 # do not overwrite the value of need_locks provided by the user
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14658$as_echo_n "checking if we can lock with hard links... " >&6; }
14659 hard_links=yes
14660 $RM conftest*
14661 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14662 touch conftest.a
14663 ln conftest.a conftest.b 2>&5 || hard_links=no
14664 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14666$as_echo "$hard_links" >&6; }
14667 if test "$hard_links" = no; then
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14669$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14670 need_locks=warn
14671 fi
14672else
14673 need_locks=no
14674fi
14675
14676
14677
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14679$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14680
14681 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14682 case $host_os in
14683 aix[4-9]*)
14684 # If we're using GNU nm, then we don't want the "-C" option.
14685 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14686 # Also, AIX nm treats weak defined symbols like other global defined
14687 # symbols, whereas GNU nm marks them as "W".
14688 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14689 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'
14690 else
0344b437 14691 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
b710ec85 14692 fi
14693 ;;
14694 pw32*)
14695 export_symbols_cmds_CXX="$ltdll_cmds"
14696 ;;
14697 cygwin* | mingw* | cegcc*)
14698 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'
14699 ;;
14700 *)
14701 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14702 ;;
14703 esac
14704 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14705
14706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14707$as_echo "$ld_shlibs_CXX" >&6; }
14708test "$ld_shlibs_CXX" = no && can_build_shared=no
14709
14710with_gnu_ld_CXX=$with_gnu_ld
14711
14712
14713
14714
14715
14716
14717#
14718# Do we need to explicitly link libc?
14719#
14720case "x$archive_cmds_need_lc_CXX" in
14721x|xyes)
14722 # Assume -lc should be added
14723 archive_cmds_need_lc_CXX=yes
14724
14725 if test "$enable_shared" = yes && test "$GCC" = yes; then
14726 case $archive_cmds_CXX in
14727 *'~'*)
14728 # FIXME: we may have to deal with multi-command sequences.
14729 ;;
14730 '$CC '*)
14731 # Test whether the compiler implicitly links with -lc since on some
14732 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14733 # to ld, don't add -lc before -lgcc.
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14735$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
f00f02a3 14736if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
b710ec85 14737 $as_echo_n "(cached) " >&6
14738else
14739 $RM conftest*
14740 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14741
14742 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14743 (eval $ac_compile) 2>&5
14744 ac_status=$?
14745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14746 test $ac_status = 0; } 2>conftest.err; then
14747 soname=conftest
14748 lib=conftest
14749 libobjs=conftest.$ac_objext
14750 deplibs=
14751 wl=$lt_prog_compiler_wl_CXX
14752 pic_flag=$lt_prog_compiler_pic_CXX
14753 compiler_flags=-v
14754 linker_flags=-v
14755 verstring=
14756 output_objdir=.
14757 libname=conftest
14758 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14759 allow_undefined_flag_CXX=
14760 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14761 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14762 ac_status=$?
14763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14764 test $ac_status = 0; }
14765 then
14766 lt_cv_archive_cmds_need_lc_CXX=no
14767 else
14768 lt_cv_archive_cmds_need_lc_CXX=yes
14769 fi
14770 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14771 else
14772 cat conftest.err 1>&5
14773 fi
14774 $RM conftest*
14775
14776fi
14777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14778$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14779 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14780 ;;
14781 esac
14782 fi
14783 ;;
14784esac
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14850$as_echo_n "checking dynamic linker characteristics... " >&6; }
14851
14852library_names_spec=
14853libname_spec='lib$name'
14854soname_spec=
14855shrext_cmds=".so"
14856postinstall_cmds=
14857postuninstall_cmds=
14858finish_cmds=
14859finish_eval=
14860shlibpath_var=
14861shlibpath_overrides_runpath=unknown
14862version_type=none
14863dynamic_linker="$host_os ld.so"
14864sys_lib_dlsearch_path_spec="/lib /usr/lib"
14865need_lib_prefix=unknown
14866hardcode_into_libs=no
14867
14868# when you set need_version to no, make sure it does not cause -set_version
14869# flags to be left without arguments
14870need_version=unknown
14871
14872case $host_os in
14873aix3*)
14874 version_type=linux
14875 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14876 shlibpath_var=LIBPATH
14877
14878 # AIX 3 has no versioning support, so we append a major version to the name.
14879 soname_spec='${libname}${release}${shared_ext}$major'
14880 ;;
14881
14882aix[4-9]*)
14883 version_type=linux
14884 need_lib_prefix=no
14885 need_version=no
14886 hardcode_into_libs=yes
14887 if test "$host_cpu" = ia64; then
14888 # AIX 5 supports IA64
14889 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14890 shlibpath_var=LD_LIBRARY_PATH
14891 else
14892 # With GCC up to 2.95.x, collect2 would create an import file
14893 # for dependence libraries. The import file would start with
14894 # the line `#! .'. This would cause the generated library to
14895 # depend on `.', always an invalid library. This was fixed in
14896 # development snapshots of GCC prior to 3.0.
14897 case $host_os in
14898 aix4 | aix4.[01] | aix4.[01].*)
14899 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14900 echo ' yes '
14901 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14902 :
14903 else
14904 can_build_shared=no
14905 fi
14906 ;;
14907 esac
14908 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14909 # soname into executable. Probably we can add versioning support to
14910 # collect2, so additional links can be useful in future.
14911 if test "$aix_use_runtimelinking" = yes; then
14912 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14913 # instead of lib<name>.a to let people know that these are not
14914 # typical AIX shared libraries.
14915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14916 else
14917 # We preserve .a as extension for shared libraries through AIX4.2
14918 # and later when we are not doing run time linking.
14919 library_names_spec='${libname}${release}.a $libname.a'
14920 soname_spec='${libname}${release}${shared_ext}$major'
14921 fi
14922 shlibpath_var=LIBPATH
14923 fi
14924 ;;
14925
14926amigaos*)
14927 case $host_cpu in
14928 powerpc)
14929 # Since July 2007 AmigaOS4 officially supports .so libraries.
14930 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14932 ;;
14933 m68k)
14934 library_names_spec='$libname.ixlibrary $libname.a'
14935 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14936 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'
14937 ;;
14938 esac
14939 ;;
14940
14941beos*)
14942 library_names_spec='${libname}${shared_ext}'
14943 dynamic_linker="$host_os ld.so"
14944 shlibpath_var=LIBRARY_PATH
14945 ;;
14946
14947bsdi[45]*)
14948 version_type=linux
14949 need_version=no
14950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14951 soname_spec='${libname}${release}${shared_ext}$major'
14952 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14953 shlibpath_var=LD_LIBRARY_PATH
14954 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14955 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14956 # the default ld.so.conf also contains /usr/contrib/lib and
14957 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14958 # libtool to hard-code these into programs
14959 ;;
14960
14961cygwin* | mingw* | pw32* | cegcc*)
14962 version_type=windows
14963 shrext_cmds=".dll"
14964 need_version=no
14965 need_lib_prefix=no
14966
14967 case $GCC,$host_os in
14968 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14969 library_names_spec='$libname.dll.a'
14970 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14971 postinstall_cmds='base_file=`basename \${file}`~
14972 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14973 dldir=$destdir/`dirname \$dlpath`~
14974 test -d \$dldir || mkdir -p \$dldir~
14975 $install_prog $dir/$dlname \$dldir/$dlname~
14976 chmod a+x \$dldir/$dlname~
14977 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14978 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14979 fi'
14980 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14981 dlpath=$dir/\$dldll~
14982 $RM \$dlpath'
14983 shlibpath_overrides_runpath=yes
14984
14985 case $host_os in
14986 cygwin*)
14987 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14988 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14989
14990 ;;
14991 mingw* | cegcc*)
14992 # MinGW DLLs use traditional 'lib' prefix
14993 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14994 ;;
14995 pw32*)
14996 # pw32 DLLs use 'pw' prefix rather than 'lib'
14997 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14998 ;;
14999 esac
15000 ;;
15001
15002 *)
15003 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15004 ;;
15005 esac
15006 dynamic_linker='Win32 ld.exe'
15007 # FIXME: first we should search . and the directory the executable is in
15008 shlibpath_var=PATH
15009 ;;
15010
15011darwin* | rhapsody*)
15012 dynamic_linker="$host_os dyld"
15013 version_type=darwin
15014 need_lib_prefix=no
15015 need_version=no
15016 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15017 soname_spec='${libname}${release}${major}$shared_ext'
15018 shlibpath_overrides_runpath=yes
15019 shlibpath_var=DYLD_LIBRARY_PATH
15020 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15021
15022 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15023 ;;
15024
15025dgux*)
15026 version_type=linux
15027 need_lib_prefix=no
15028 need_version=no
15029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15030 soname_spec='${libname}${release}${shared_ext}$major'
15031 shlibpath_var=LD_LIBRARY_PATH
15032 ;;
15033
15034freebsd* | dragonfly*)
15035 # DragonFly does not have aout. When/if they implement a new
15036 # versioning mechanism, adjust this.
15037 if test -x /usr/bin/objformat; then
15038 objformat=`/usr/bin/objformat`
15039 else
15040 case $host_os in
15041 freebsd[23].*) objformat=aout ;;
15042 *) objformat=elf ;;
15043 esac
15044 fi
15045 version_type=freebsd-$objformat
15046 case $version_type in
15047 freebsd-elf*)
15048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15049 need_version=no
15050 need_lib_prefix=no
15051 ;;
15052 freebsd-*)
15053 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15054 need_version=yes
15055 ;;
15056 esac
15057 shlibpath_var=LD_LIBRARY_PATH
15058 case $host_os in
15059 freebsd2.*)
15060 shlibpath_overrides_runpath=yes
15061 ;;
15062 freebsd3.[01]* | freebsdelf3.[01]*)
15063 shlibpath_overrides_runpath=yes
15064 hardcode_into_libs=yes
15065 ;;
15066 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15067 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15068 shlibpath_overrides_runpath=no
15069 hardcode_into_libs=yes
15070 ;;
15071 *) # from 4.6 on, and DragonFly
15072 shlibpath_overrides_runpath=yes
15073 hardcode_into_libs=yes
15074 ;;
15075 esac
15076 ;;
15077
15078gnu*)
15079 version_type=linux
15080 need_lib_prefix=no
15081 need_version=no
15082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15083 soname_spec='${libname}${release}${shared_ext}$major'
15084 shlibpath_var=LD_LIBRARY_PATH
15085 hardcode_into_libs=yes
15086 ;;
15087
15088haiku*)
15089 version_type=linux
15090 need_lib_prefix=no
15091 need_version=no
15092 dynamic_linker="$host_os runtime_loader"
15093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15094 soname_spec='${libname}${release}${shared_ext}$major'
15095 shlibpath_var=LIBRARY_PATH
15096 shlibpath_overrides_runpath=yes
15097 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15098 hardcode_into_libs=yes
15099 ;;
15100
15101hpux9* | hpux10* | hpux11*)
15102 # Give a soname corresponding to the major version so that dld.sl refuses to
15103 # link against other versions.
15104 version_type=sunos
15105 need_lib_prefix=no
15106 need_version=no
15107 case $host_cpu in
15108 ia64*)
15109 shrext_cmds='.so'
15110 hardcode_into_libs=yes
15111 dynamic_linker="$host_os dld.so"
15112 shlibpath_var=LD_LIBRARY_PATH
15113 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15115 soname_spec='${libname}${release}${shared_ext}$major'
15116 if test "X$HPUX_IA64_MODE" = X32; then
15117 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15118 else
15119 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15120 fi
15121 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15122 ;;
15123 hppa*64*)
15124 shrext_cmds='.sl'
15125 hardcode_into_libs=yes
15126 dynamic_linker="$host_os dld.sl"
15127 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15128 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15130 soname_spec='${libname}${release}${shared_ext}$major'
15131 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15132 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15133 ;;
15134 *)
15135 shrext_cmds='.sl'
15136 dynamic_linker="$host_os dld.sl"
15137 shlibpath_var=SHLIB_PATH
15138 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15140 soname_spec='${libname}${release}${shared_ext}$major'
15141 ;;
15142 esac
15143 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15144 postinstall_cmds='chmod 555 $lib'
15145 # or fails outright, so override atomically:
15146 install_override_mode=555
15147 ;;
15148
15149interix[3-9]*)
15150 version_type=linux
15151 need_lib_prefix=no
15152 need_version=no
15153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15154 soname_spec='${libname}${release}${shared_ext}$major'
15155 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15156 shlibpath_var=LD_LIBRARY_PATH
15157 shlibpath_overrides_runpath=no
15158 hardcode_into_libs=yes
15159 ;;
15160
15161irix5* | irix6* | nonstopux*)
15162 case $host_os in
15163 nonstopux*) version_type=nonstopux ;;
15164 *)
15165 if test "$lt_cv_prog_gnu_ld" = yes; then
15166 version_type=linux
15167 else
15168 version_type=irix
15169 fi ;;
15170 esac
15171 need_lib_prefix=no
15172 need_version=no
15173 soname_spec='${libname}${release}${shared_ext}$major'
15174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15175 case $host_os in
15176 irix5* | nonstopux*)
15177 libsuff= shlibsuff=
15178 ;;
15179 *)
15180 case $LD in # libtool.m4 will add one of these switches to LD
15181 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15182 libsuff= shlibsuff= libmagic=32-bit;;
15183 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15184 libsuff=32 shlibsuff=N32 libmagic=N32;;
15185 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15186 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15187 *) libsuff= shlibsuff= libmagic=never-match;;
15188 esac
15189 ;;
15190 esac
15191 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15192 shlibpath_overrides_runpath=no
15193 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15194 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15195 hardcode_into_libs=yes
15196 ;;
15197
15198# No shared lib support for Linux oldld, aout, or coff.
15199linux*oldld* | linux*aout* | linux*coff*)
15200 dynamic_linker=no
15201 ;;
15202
15203# This must be Linux ELF.
15204linux* | k*bsd*-gnu | kopensolaris*-gnu)
15205 version_type=linux
15206 need_lib_prefix=no
15207 need_version=no
15208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15209 soname_spec='${libname}${release}${shared_ext}$major'
15210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15211 shlibpath_var=LD_LIBRARY_PATH
15212 shlibpath_overrides_runpath=no
15213
15214 # Some binutils ld are patched to set DT_RUNPATH
f00f02a3 15215 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
b710ec85 15216 $as_echo_n "(cached) " >&6
15217else
15218 lt_cv_shlibpath_overrides_runpath=no
15219 save_LDFLAGS=$LDFLAGS
15220 save_libdir=$libdir
15221 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15222 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15224/* end confdefs.h. */
15225
15226int
15227main ()
15228{
15229
15230 ;
15231 return 0;
15232}
15233_ACEOF
15234if ac_fn_cxx_try_link "$LINENO"; then :
15235 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15236 lt_cv_shlibpath_overrides_runpath=yes
15237fi
15238fi
15239rm -f core conftest.err conftest.$ac_objext \
15240 conftest$ac_exeext conftest.$ac_ext
15241 LDFLAGS=$save_LDFLAGS
15242 libdir=$save_libdir
15243
15244fi
15245
15246 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15247
15248 # This implies no fast_install, which is unacceptable.
15249 # Some rework will be needed to allow for fast_install
15250 # before this can be enabled.
15251 hardcode_into_libs=yes
15252
15253 # Append ld.so.conf contents to the search path
15254 if test -f /etc/ld.so.conf; then
15255 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' ' '`
15256 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15257 fi
15258
15259 # We used to test for /lib/ld.so.1 and disable shared libraries on
15260 # powerpc, because MkLinux only supported shared libraries with the
15261 # GNU dynamic linker. Since this was broken with cross compilers,
15262 # most powerpc-linux boxes support dynamic linking these days and
15263 # people can always --disable-shared, the test was removed, and we
15264 # assume the GNU/Linux dynamic linker is in use.
15265 dynamic_linker='GNU/Linux ld.so'
15266 ;;
15267
15268netbsd*)
15269 version_type=sunos
15270 need_lib_prefix=no
15271 need_version=no
15272 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15274 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15275 dynamic_linker='NetBSD (a.out) ld.so'
15276 else
15277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15278 soname_spec='${libname}${release}${shared_ext}$major'
15279 dynamic_linker='NetBSD ld.elf_so'
15280 fi
15281 shlibpath_var=LD_LIBRARY_PATH
15282 shlibpath_overrides_runpath=yes
15283 hardcode_into_libs=yes
15284 ;;
15285
15286newsos6)
15287 version_type=linux
15288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15289 shlibpath_var=LD_LIBRARY_PATH
15290 shlibpath_overrides_runpath=yes
15291 ;;
15292
15293*nto* | *qnx*)
15294 version_type=qnx
15295 need_lib_prefix=no
15296 need_version=no
15297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15298 soname_spec='${libname}${release}${shared_ext}$major'
15299 shlibpath_var=LD_LIBRARY_PATH
15300 shlibpath_overrides_runpath=no
15301 hardcode_into_libs=yes
15302 dynamic_linker='ldqnx.so'
15303 ;;
15304
15305openbsd*)
15306 version_type=sunos
15307 sys_lib_dlsearch_path_spec="/usr/lib"
15308 need_lib_prefix=no
15309 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15310 case $host_os in
15311 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15312 *) need_version=no ;;
15313 esac
15314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15316 shlibpath_var=LD_LIBRARY_PATH
15317 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15318 case $host_os in
15319 openbsd2.[89] | openbsd2.[89].*)
15320 shlibpath_overrides_runpath=no
15321 ;;
15322 *)
15323 shlibpath_overrides_runpath=yes
15324 ;;
15325 esac
15326 else
15327 shlibpath_overrides_runpath=yes
15328 fi
15329 ;;
15330
15331os2*)
15332 libname_spec='$name'
15333 shrext_cmds=".dll"
15334 need_lib_prefix=no
15335 library_names_spec='$libname${shared_ext} $libname.a'
15336 dynamic_linker='OS/2 ld.exe'
15337 shlibpath_var=LIBPATH
15338 ;;
15339
15340osf3* | osf4* | osf5*)
15341 version_type=osf
15342 need_lib_prefix=no
15343 need_version=no
15344 soname_spec='${libname}${release}${shared_ext}$major'
15345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15346 shlibpath_var=LD_LIBRARY_PATH
15347 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15348 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15349 ;;
15350
15351rdos*)
15352 dynamic_linker=no
15353 ;;
15354
15355solaris*)
15356 version_type=linux
15357 need_lib_prefix=no
15358 need_version=no
15359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15360 soname_spec='${libname}${release}${shared_ext}$major'
15361 shlibpath_var=LD_LIBRARY_PATH
15362 shlibpath_overrides_runpath=yes
15363 hardcode_into_libs=yes
15364 # ldd complains unless libraries are executable
15365 postinstall_cmds='chmod +x $lib'
15366 ;;
15367
15368sunos4*)
15369 version_type=sunos
15370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15371 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15372 shlibpath_var=LD_LIBRARY_PATH
15373 shlibpath_overrides_runpath=yes
15374 if test "$with_gnu_ld" = yes; then
15375 need_lib_prefix=no
15376 fi
15377 need_version=yes
15378 ;;
15379
15380sysv4 | sysv4.3*)
15381 version_type=linux
15382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15383 soname_spec='${libname}${release}${shared_ext}$major'
15384 shlibpath_var=LD_LIBRARY_PATH
15385 case $host_vendor in
15386 sni)
15387 shlibpath_overrides_runpath=no
15388 need_lib_prefix=no
15389 runpath_var=LD_RUN_PATH
15390 ;;
15391 siemens)
15392 need_lib_prefix=no
15393 ;;
15394 motorola)
15395 need_lib_prefix=no
15396 need_version=no
15397 shlibpath_overrides_runpath=no
15398 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15399 ;;
15400 esac
15401 ;;
15402
15403sysv4*MP*)
15404 if test -d /usr/nec ;then
15405 version_type=linux
15406 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15407 soname_spec='$libname${shared_ext}.$major'
15408 shlibpath_var=LD_LIBRARY_PATH
15409 fi
15410 ;;
15411
15412sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15413 version_type=freebsd-elf
15414 need_lib_prefix=no
15415 need_version=no
15416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15417 soname_spec='${libname}${release}${shared_ext}$major'
15418 shlibpath_var=LD_LIBRARY_PATH
15419 shlibpath_overrides_runpath=yes
15420 hardcode_into_libs=yes
15421 if test "$with_gnu_ld" = yes; then
15422 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15423 else
15424 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15425 case $host_os in
15426 sco3.2v5*)
15427 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15428 ;;
15429 esac
15430 fi
15431 sys_lib_dlsearch_path_spec='/usr/lib'
15432 ;;
15433
15434tpf*)
15435 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15436 version_type=linux
15437 need_lib_prefix=no
15438 need_version=no
15439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15440 shlibpath_var=LD_LIBRARY_PATH
15441 shlibpath_overrides_runpath=no
15442 hardcode_into_libs=yes
15443 ;;
15444
15445uts4*)
15446 version_type=linux
15447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15448 soname_spec='${libname}${release}${shared_ext}$major'
15449 shlibpath_var=LD_LIBRARY_PATH
15450 ;;
15451
15452*)
15453 dynamic_linker=no
15454 ;;
15455esac
15456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15457$as_echo "$dynamic_linker" >&6; }
15458test "$dynamic_linker" = no && can_build_shared=no
15459
15460variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15461if test "$GCC" = yes; then
15462 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15463fi
15464
15465if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15466 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15467fi
15468if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15469 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15470fi
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15510$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15511hardcode_action_CXX=
15512if test -n "$hardcode_libdir_flag_spec_CXX" ||
15513 test -n "$runpath_var_CXX" ||
15514 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15515
15516 # We can hardcode non-existent directories.
15517 if test "$hardcode_direct_CXX" != no &&
15518 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15519 # have to relink, otherwise we might link with an installed library
15520 # when we should be linking with a yet-to-be-installed one
15521 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15522 test "$hardcode_minus_L_CXX" != no; then
15523 # Linking always hardcodes the temporary library directory.
15524 hardcode_action_CXX=relink
15525 else
15526 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15527 hardcode_action_CXX=immediate
15528 fi
15529else
15530 # We cannot hardcode anything, or else we can only hardcode existing
15531 # directories.
15532 hardcode_action_CXX=unsupported
15533fi
15534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15535$as_echo "$hardcode_action_CXX" >&6; }
15536
15537if test "$hardcode_action_CXX" = relink ||
15538 test "$inherit_rpath_CXX" = yes; then
15539 # Fast installation is not supported
15540 enable_fast_install=no
15541elif test "$shlibpath_overrides_runpath" = yes ||
15542 test "$enable_shared" = no; then
15543 # Fast installation is not necessary
15544 enable_fast_install=needless
15545fi
15546
15547
15548
15549
15550
15551
15552
15553 fi # test -n "$compiler"
15554
15555 CC=$lt_save_CC
15556 LDCXX=$LD
15557 LD=$lt_save_LD
15558 GCC=$lt_save_GCC
15559 with_gnu_ld=$lt_save_with_gnu_ld
15560 lt_cv_path_LDCXX=$lt_cv_path_LD
15561 lt_cv_path_LD=$lt_save_path_LD
15562 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15563 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15564fi # test "$_lt_caught_CXX_error" != yes
15565
15566ac_ext=c
15567ac_cpp='$CPP $CPPFLAGS'
15568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15570ac_compiler_gnu=$ac_cv_c_compiler_gnu
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584 ac_config_commands="$ac_config_commands libtool"
15585
15586
15587
15588
15589# Only expand once:
15590
15591
a9983ab2 15592
15593
15594
15595case $host in
15596 *-cygwin* | *-mingw*)
15597 # 'host' will be top-level target in the case of a target lib,
15598 # we must compare to with_cross_host to decide if this is a native
15599 # or cross-compiler and select where to install dlls appropriately.
15600 if test -n "$with_cross_host" &&
15601 test x"$with_cross_host" != x"no"; then
15602 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
15603 else
15604 lt_host_flags='-no-undefined -bindir "$(bindir)"';
15605 fi
15606 ;;
15607 *)
15608 lt_host_flags=
15609 ;;
15610esac
15611
15612
15613
b710ec85 15614
15615
15616
15617# For libtool versioning info, format is CURRENT:REVISION:AGE
15618libtool_VERSION=1:0:0
15619
15620
15621XCFLAGS="-D_GNU_SOURCE -Wall -Wextra -fno-exceptions"
15622
20c60140 15623# Add CET specific flags if Intel CET is enabled.
15624 # Check whether --enable-cet was given.
15625if test "${enable_cet+set}" = set; then :
15626 enableval=$enable_cet;
15627 case "$enableval" in
ee8fea81 15628 yes|no|auto) ;;
f00f02a3 15629 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
20c60140 15630 esac
15631
15632else
ee8fea81 15633 enable_cet=no
20c60140 15634fi
15635
15636
5611e648 15637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
15638$as_echo_n "checking for CET support... " >&6; }
15639
20c60140 15640case "$host" in
15641 i[34567]86-*-linux* | x86_64-*-linux*)
15642 case "$enable_cet" in
ee8fea81 15643 auto)
5611e648 15644 # Check if target supports multi-byte NOPs
15645 # and if assembler supports CET insn.
20c60140 15646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15647/* end confdefs.h. */
15648
15649int
15650main ()
15651{
5611e648 15652
15653#if !defined(__SSE2__)
15654#error target does not support multi-byte NOPs
15655#else
20c60140 15656asm ("setssbsy");
5611e648 15657#endif
15658
20c60140 15659 ;
15660 return 0;
15661}
15662_ACEOF
15663if ac_fn_c_try_compile "$LINENO"; then :
15664 enable_cet=yes
15665else
15666 enable_cet=no
15667fi
15668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15669 ;;
15670 yes)
15671 # Check if assembler supports CET.
15672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15673/* end confdefs.h. */
15674
15675int
15676main ()
15677{
15678asm ("setssbsy");
15679 ;
15680 return 0;
15681}
15682_ACEOF
15683if ac_fn_c_try_compile "$LINENO"; then :
15684
15685else
f00f02a3 15686 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
20c60140 15687fi
15688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15689 ;;
15690 esac
15691 ;;
15692 *)
15693 enable_cet=no
15694 ;;
15695esac
15696if test x$enable_cet = xyes; then
6726651f 15697 CET_FLAGS="-fcf-protection -mshstk"
5611e648 15698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15699$as_echo "yes" >&6; }
15700else
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15702$as_echo "no" >&6; }
20c60140 15703fi
15704
15705XCFLAGS="$XCFLAGS $CET_FLAGS"
15706
15707
b710ec85 15708
15709if test "${multilib}" = "yes"; then
15710 multilib_arg="--enable-multilib"
15711else
15712 multilib_arg=
15713fi
15714
b710ec85 15715ac_config_files="$ac_config_files Makefile"
15716
15717
15718if test "x$VTV_SUPPORTED" = "xyes"; then
825de484 15719 ac_config_files="$ac_config_files testsuite/Makefile"
b710ec85 15720
15721fi
15722
f8c51263 15723case "$target_os" in
15724 cygwin*|mingw32*)
15725 vtv_cygmin="yes"
15726 ;;
15727 *)
15728 vtv_cygmin="no"
15729 ;;
15730esac
15731
15732 if test $vtv_cygmin = yes; then
15733 VTV_CYGMIN_TRUE=
15734 VTV_CYGMIN_FALSE='#'
15735else
15736 VTV_CYGMIN_TRUE='#'
15737 VTV_CYGMIN_FALSE=
15738fi
15739
15740
08de21a4 15741for ac_func in _obstack_begin
15742do :
15743 ac_fn_c_check_func "$LINENO" "_obstack_begin" "ac_cv_func__obstack_begin"
f00f02a3 15744if test "x$ac_cv_func__obstack_begin" = xyes; then :
08de21a4 15745 cat >>confdefs.h <<_ACEOF
15746#define HAVE__OBSTACK_BEGIN 1
15747_ACEOF
15748
15749fi
15750done
15751
15752 if test $ac_cv_func__obstack_begin = no; then
15753 VTV_NO_OBSTACK_TRUE=
15754 VTV_NO_OBSTACK_FALSE='#'
15755else
15756 VTV_NO_OBSTACK_TRUE='#'
15757 VTV_NO_OBSTACK_FALSE=
15758fi
15759
15760
0812bb06 15761# Determine what GCC version number to use in filesystem paths.
15762
15763 get_gcc_base_ver="cat"
15764
15765# Check whether --with-gcc-major-version-only was given.
15766if test "${with_gcc_major_version_only+set}" = set; then :
15767 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
124c259e 15768 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
0812bb06 15769 fi
15770
15771fi
15772
15773
15774
15775
b710ec85 15776cat >confcache <<\_ACEOF
15777# This file is a shell script that caches the results of configure
15778# tests run on this system so they can be shared between configure
15779# scripts and configure runs, see configure's option --config-cache.
15780# It is not useful on other systems. If it contains results you don't
15781# want to keep, you may remove or edit it.
15782#
15783# config.status only pays attention to the cache file if you give it
15784# the --recheck option to rerun configure.
15785#
15786# `ac_cv_env_foo' variables (set or unset) will be overridden when
15787# loading this file, other *unset* `ac_cv_foo' will be assigned the
15788# following values.
15789
15790_ACEOF
15791
15792# The following way of writing the cache mishandles newlines in values,
15793# but we know of no workaround that is simple, portable, and efficient.
15794# So, we kill variables containing newlines.
15795# Ultrix sh set writes to stderr and can't be redirected directly,
15796# and sets the high bit in the cache file unless we assign to the vars.
15797(
15798 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15799 eval ac_val=\$$ac_var
15800 case $ac_val in #(
15801 *${as_nl}*)
15802 case $ac_var in #(
15803 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15804$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15805 esac
15806 case $ac_var in #(
15807 _ | IFS | as_nl) ;; #(
15808 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15809 *) { eval $ac_var=; unset $ac_var;} ;;
15810 esac ;;
15811 esac
15812 done
15813
15814 (set) 2>&1 |
15815 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15816 *${as_nl}ac_space=\ *)
15817 # `set' does not quote correctly, so add quotes: double-quote
15818 # substitution turns \\\\ into \\, and sed turns \\ into \.
15819 sed -n \
15820 "s/'/'\\\\''/g;
15821 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15822 ;; #(
15823 *)
15824 # `set' quotes correctly as required by POSIX, so do not add quotes.
15825 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15826 ;;
15827 esac |
15828 sort
15829) |
15830 sed '
15831 /^ac_cv_env_/b end
15832 t clear
15833 :clear
15834 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15835 t end
15836 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15837 :end' >>confcache
15838if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15839 if test -w "$cache_file"; then
f00f02a3 15840 if test "x$cache_file" != "x/dev/null"; then
b710ec85 15841 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15842$as_echo "$as_me: updating cache $cache_file" >&6;}
f00f02a3 15843 if test ! -f "$cache_file" || test -h "$cache_file"; then
15844 cat confcache >"$cache_file"
15845 else
15846 case $cache_file in #(
15847 */* | ?:*)
15848 mv -f confcache "$cache_file"$$ &&
15849 mv -f "$cache_file"$$ "$cache_file" ;; #(
15850 *)
15851 mv -f confcache "$cache_file" ;;
15852 esac
15853 fi
15854 fi
b710ec85 15855 else
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15857$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15858 fi
15859fi
15860rm -f confcache
15861
15862test "x$prefix" = xNONE && prefix=$ac_default_prefix
15863# Let make expand exec_prefix.
15864test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15865
15866# Transform confdefs.h into DEFS.
15867# Protect against shell expansion while executing Makefile rules.
15868# Protect against Makefile macro expansion.
15869#
15870# If the first sed substitution is executed (which looks for macros that
15871# take arguments), then branch to the quote section. Otherwise,
15872# look for a macro that doesn't take arguments.
15873ac_script='
15874:mline
15875/\\$/{
15876 N
15877 s,\\\n,,
15878 b mline
15879}
15880t clear
15881:clear
15882s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15883t quote
15884s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15885t quote
15886b any
15887:quote
15888s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15889s/\[/\\&/g
15890s/\]/\\&/g
15891s/\$/$$/g
15892H
15893:any
15894${
15895 g
15896 s/^\n//
15897 s/\n/ /g
15898 p
15899}
15900'
15901DEFS=`sed -n "$ac_script" confdefs.h`
15902
15903
15904ac_libobjs=
15905ac_ltlibobjs=
f00f02a3 15906U=
b710ec85 15907for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15908 # 1. Remove the extension, and $U if already installed.
15909 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15910 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15911 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15912 # will be set to the directory where LIBOBJS objects are built.
15913 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15914 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15915done
15916LIBOBJS=$ac_libobjs
15917
15918LTLIBOBJS=$ac_ltlibobjs
15919
15920
825de484 15921if test -z "${ENABLE_VTABLE_VERIFY_TRUE}" && test -z "${ENABLE_VTABLE_VERIFY_FALSE}"; then
f00f02a3 15922 as_fn_error $? "conditional \"ENABLE_VTABLE_VERIFY\" was never defined.
825de484 15923Usually this means the macro was only invoked conditionally." "$LINENO" 5
08de21a4 15924fi
f00f02a3 15925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15926$as_echo_n "checking that generated files are newer than configure... " >&6; }
15927 if test -n "$am_sleep_pid"; then
15928 # Hide warnings about reused PIDs.
15929 wait $am_sleep_pid 2>/dev/null
15930 fi
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15932$as_echo "done" >&6; }
08de21a4 15933if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
f00f02a3 15934 as_fn_error $? "conditional \"AMDEP\" was never defined.
08de21a4 15935Usually this means the macro was only invoked conditionally." "$LINENO" 5
15936fi
15937if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
f00f02a3 15938 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
08de21a4 15939Usually this means the macro was only invoked conditionally." "$LINENO" 5
825de484 15940fi
b710ec85 15941 if test -n "$EXEEXT"; then
15942 am__EXEEXT_TRUE=
15943 am__EXEEXT_FALSE='#'
15944else
15945 am__EXEEXT_TRUE='#'
15946 am__EXEEXT_FALSE=
15947fi
15948
15949if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
f00f02a3 15950 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
b710ec85 15951Usually this means the macro was only invoked conditionally." "$LINENO" 5
15952fi
b710ec85 15953if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
f00f02a3 15954 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
b710ec85 15955Usually this means the macro was only invoked conditionally." "$LINENO" 5
15956fi
f8c51263 15957if test -z "${VTV_CYGMIN_TRUE}" && test -z "${VTV_CYGMIN_FALSE}"; then
f00f02a3 15958 as_fn_error $? "conditional \"VTV_CYGMIN\" was never defined.
f8c51263 15959Usually this means the macro was only invoked conditionally." "$LINENO" 5
15960fi
08de21a4 15961if test -z "${VTV_NO_OBSTACK_TRUE}" && test -z "${VTV_NO_OBSTACK_FALSE}"; then
f00f02a3 15962 as_fn_error $? "conditional \"VTV_NO_OBSTACK\" was never defined.
08de21a4 15963Usually this means the macro was only invoked conditionally." "$LINENO" 5
15964fi
b710ec85 15965
f00f02a3 15966: "${CONFIG_STATUS=./config.status}"
b710ec85 15967ac_write_fail=0
15968ac_clean_files_save=$ac_clean_files
15969ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15970{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15971$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15972as_write_fail=0
15973cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15974#! $SHELL
15975# Generated by $as_me.
15976# Run this file to recreate the current configuration.
15977# Compiler output produced by configure, useful for debugging
15978# configure, is in config.log if it exists.
15979
15980debug=false
15981ac_cs_recheck=false
15982ac_cs_silent=false
15983
15984SHELL=\${CONFIG_SHELL-$SHELL}
15985export SHELL
15986_ASEOF
15987cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15988## -------------------- ##
15989## M4sh Initialization. ##
15990## -------------------- ##
15991
15992# Be more Bourne compatible
15993DUALCASE=1; export DUALCASE # for MKS sh
15994if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15995 emulate sh
15996 NULLCMD=:
15997 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15998 # is contrary to our usage. Disable this feature.
15999 alias -g '${1+"$@"}'='"$@"'
16000 setopt NO_GLOB_SUBST
16001else
16002 case `(set -o) 2>/dev/null` in #(
16003 *posix*) :
16004 set -o posix ;; #(
16005 *) :
16006 ;;
16007esac
16008fi
16009
16010
16011as_nl='
16012'
16013export as_nl
16014# Printing a long string crashes Solaris 7 /usr/bin/printf.
16015as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16016as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16017as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16018# Prefer a ksh shell builtin over an external printf program on Solaris,
16019# but without wasting forks for bash or zsh.
16020if test -z "$BASH_VERSION$ZSH_VERSION" \
16021 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16022 as_echo='print -r --'
16023 as_echo_n='print -rn --'
16024elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16025 as_echo='printf %s\n'
16026 as_echo_n='printf %s'
16027else
16028 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16029 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16030 as_echo_n='/usr/ucb/echo -n'
16031 else
16032 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16033 as_echo_n_body='eval
16034 arg=$1;
16035 case $arg in #(
16036 *"$as_nl"*)
16037 expr "X$arg" : "X\\(.*\\)$as_nl";
16038 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16039 esac;
16040 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16041 '
16042 export as_echo_n_body
16043 as_echo_n='sh -c $as_echo_n_body as_echo'
16044 fi
16045 export as_echo_body
16046 as_echo='sh -c $as_echo_body as_echo'
16047fi
16048
16049# The user is always right.
16050if test "${PATH_SEPARATOR+set}" != set; then
16051 PATH_SEPARATOR=:
16052 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16053 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16054 PATH_SEPARATOR=';'
16055 }
16056fi
16057
16058
16059# IFS
16060# We need space, tab and new line, in precisely that order. Quoting is
16061# there to prevent editors from complaining about space-tab.
16062# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16063# splitting by setting IFS to empty value.)
16064IFS=" "" $as_nl"
16065
16066# Find who we are. Look in the path if we contain no directory separator.
f00f02a3 16067as_myself=
b710ec85 16068case $0 in #((
16069 *[\\/]* ) as_myself=$0 ;;
16070 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16071for as_dir in $PATH
16072do
16073 IFS=$as_save_IFS
16074 test -z "$as_dir" && as_dir=.
16075 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16076 done
16077IFS=$as_save_IFS
16078
16079 ;;
16080esac
16081# We did not find ourselves, most probably we were run as `sh COMMAND'
16082# in which case we are not to be found in the path.
16083if test "x$as_myself" = x; then
16084 as_myself=$0
16085fi
16086if test ! -f "$as_myself"; then
16087 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16088 exit 1
16089fi
16090
16091# Unset variables that we do not need and which cause bugs (e.g. in
16092# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16093# suppresses any "Segmentation fault" message there. '((' could
16094# trigger a bug in pdksh 5.2.14.
16095for as_var in BASH_ENV ENV MAIL MAILPATH
16096do eval test x\${$as_var+set} = xset \
16097 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16098done
16099PS1='$ '
16100PS2='> '
16101PS4='+ '
16102
16103# NLS nuisances.
16104LC_ALL=C
16105export LC_ALL
16106LANGUAGE=C
16107export LANGUAGE
16108
16109# CDPATH.
16110(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16111
16112
f00f02a3 16113# as_fn_error STATUS ERROR [LINENO LOG_FD]
16114# ----------------------------------------
b710ec85 16115# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16116# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
f00f02a3 16117# script with STATUS, using 1 if that was 0.
b710ec85 16118as_fn_error ()
16119{
f00f02a3 16120 as_status=$1; test $as_status -eq 0 && as_status=1
16121 if test "$4"; then
16122 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16123 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b710ec85 16124 fi
f00f02a3 16125 $as_echo "$as_me: error: $2" >&2
b710ec85 16126 as_fn_exit $as_status
16127} # as_fn_error
16128
16129
16130# as_fn_set_status STATUS
16131# -----------------------
16132# Set $? to STATUS, without forking.
16133as_fn_set_status ()
16134{
16135 return $1
16136} # as_fn_set_status
16137
16138# as_fn_exit STATUS
16139# -----------------
16140# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16141as_fn_exit ()
16142{
16143 set +e
16144 as_fn_set_status $1
16145 exit $1
16146} # as_fn_exit
16147
16148# as_fn_unset VAR
16149# ---------------
16150# Portably unset VAR.
16151as_fn_unset ()
16152{
16153 { eval $1=; unset $1;}
16154}
16155as_unset=as_fn_unset
16156# as_fn_append VAR VALUE
16157# ----------------------
16158# Append the text in VALUE to the end of the definition contained in VAR. Take
16159# advantage of any shell optimizations that allow amortized linear growth over
16160# repeated appends, instead of the typical quadratic growth present in naive
16161# implementations.
16162if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16163 eval 'as_fn_append ()
16164 {
16165 eval $1+=\$2
16166 }'
16167else
16168 as_fn_append ()
16169 {
16170 eval $1=\$$1\$2
16171 }
16172fi # as_fn_append
16173
16174# as_fn_arith ARG...
16175# ------------------
16176# Perform arithmetic evaluation on the ARGs, and store the result in the
16177# global $as_val. Take advantage of shells that can avoid forks. The arguments
16178# must be portable across $(()) and expr.
16179if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16180 eval 'as_fn_arith ()
16181 {
16182 as_val=$(( $* ))
16183 }'
16184else
16185 as_fn_arith ()
16186 {
16187 as_val=`expr "$@" || test $? -eq 1`
16188 }
16189fi # as_fn_arith
16190
16191
16192if expr a : '\(a\)' >/dev/null 2>&1 &&
16193 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16194 as_expr=expr
16195else
16196 as_expr=false
16197fi
16198
16199if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16200 as_basename=basename
16201else
16202 as_basename=false
16203fi
16204
16205if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16206 as_dirname=dirname
16207else
16208 as_dirname=false
16209fi
16210
16211as_me=`$as_basename -- "$0" ||
16212$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16213 X"$0" : 'X\(//\)$' \| \
16214 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16215$as_echo X/"$0" |
16216 sed '/^.*\/\([^/][^/]*\)\/*$/{
16217 s//\1/
16218 q
16219 }
16220 /^X\/\(\/\/\)$/{
16221 s//\1/
16222 q
16223 }
16224 /^X\/\(\/\).*/{
16225 s//\1/
16226 q
16227 }
16228 s/.*/./; q'`
16229
16230# Avoid depending upon Character Ranges.
16231as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16232as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16233as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16234as_cr_digits='0123456789'
16235as_cr_alnum=$as_cr_Letters$as_cr_digits
16236
16237ECHO_C= ECHO_N= ECHO_T=
16238case `echo -n x` in #(((((
16239-n*)
16240 case `echo 'xy\c'` in
16241 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16242 xy) ECHO_C='\c';;
16243 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16244 ECHO_T=' ';;
16245 esac;;
16246*)
16247 ECHO_N='-n';;
16248esac
16249
16250rm -f conf$$ conf$$.exe conf$$.file
16251if test -d conf$$.dir; then
16252 rm -f conf$$.dir/conf$$.file
16253else
16254 rm -f conf$$.dir
16255 mkdir conf$$.dir 2>/dev/null
16256fi
16257if (echo >conf$$.file) 2>/dev/null; then
16258 if ln -s conf$$.file conf$$ 2>/dev/null; then
16259 as_ln_s='ln -s'
16260 # ... but there are two gotchas:
16261 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16262 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
f00f02a3 16263 # In both cases, we have to default to `cp -pR'.
b710ec85 16264 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
f00f02a3 16265 as_ln_s='cp -pR'
b710ec85 16266 elif ln conf$$.file conf$$ 2>/dev/null; then
16267 as_ln_s=ln
16268 else
f00f02a3 16269 as_ln_s='cp -pR'
b710ec85 16270 fi
16271else
f00f02a3 16272 as_ln_s='cp -pR'
b710ec85 16273fi
16274rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16275rmdir conf$$.dir 2>/dev/null
16276
16277
16278# as_fn_mkdir_p
16279# -------------
16280# Create "$as_dir" as a directory, including parents if necessary.
16281as_fn_mkdir_p ()
16282{
16283
16284 case $as_dir in #(
16285 -*) as_dir=./$as_dir;;
16286 esac
16287 test -d "$as_dir" || eval $as_mkdir_p || {
16288 as_dirs=
16289 while :; do
16290 case $as_dir in #(
16291 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16292 *) as_qdir=$as_dir;;
16293 esac
16294 as_dirs="'$as_qdir' $as_dirs"
16295 as_dir=`$as_dirname -- "$as_dir" ||
16296$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16297 X"$as_dir" : 'X\(//\)[^/]' \| \
16298 X"$as_dir" : 'X\(//\)$' \| \
16299 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16300$as_echo X"$as_dir" |
16301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16302 s//\1/
16303 q
16304 }
16305 /^X\(\/\/\)[^/].*/{
16306 s//\1/
16307 q
16308 }
16309 /^X\(\/\/\)$/{
16310 s//\1/
16311 q
16312 }
16313 /^X\(\/\).*/{
16314 s//\1/
16315 q
16316 }
16317 s/.*/./; q'`
16318 test -d "$as_dir" && break
16319 done
16320 test -z "$as_dirs" || eval "mkdir $as_dirs"
f00f02a3 16321 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
b710ec85 16322
16323
16324} # as_fn_mkdir_p
16325if mkdir -p . 2>/dev/null; then
16326 as_mkdir_p='mkdir -p "$as_dir"'
16327else
16328 test -d ./-p && rmdir ./-p
16329 as_mkdir_p=false
16330fi
16331
f00f02a3 16332
16333# as_fn_executable_p FILE
16334# -----------------------
16335# Test if FILE is an executable regular file.
16336as_fn_executable_p ()
16337{
16338 test -f "$1" && test -x "$1"
16339} # as_fn_executable_p
16340as_test_x='test -x'
16341as_executable_p=as_fn_executable_p
b710ec85 16342
16343# Sed expression to map a string onto a valid CPP name.
16344as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16345
16346# Sed expression to map a string onto a valid variable name.
16347as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16348
16349
16350exec 6>&1
16351## ----------------------------------- ##
16352## Main body of $CONFIG_STATUS script. ##
16353## ----------------------------------- ##
16354_ASEOF
16355test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16356
16357cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16358# Save the log message, to keep $0 and so on meaningful, and to
16359# report actual input values of CONFIG_FILES etc. instead of their
16360# values after options handling.
16361ac_log="
16362This file was extended by GNU Vtable Verification Runtime Library $as_me 1.0, which was
f00f02a3 16363generated by GNU Autoconf 2.69. Invocation command line was
b710ec85 16364
16365 CONFIG_FILES = $CONFIG_FILES
16366 CONFIG_HEADERS = $CONFIG_HEADERS
16367 CONFIG_LINKS = $CONFIG_LINKS
16368 CONFIG_COMMANDS = $CONFIG_COMMANDS
16369 $ $0 $@
16370
16371on `(hostname || uname -n) 2>/dev/null | sed 1q`
16372"
16373
16374_ACEOF
16375
16376case $ac_config_files in *"
16377"*) set x $ac_config_files; shift; ac_config_files=$*;;
16378esac
16379
16380
16381
16382cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16383# Files that config.status was made for.
16384config_files="$ac_config_files"
16385config_commands="$ac_config_commands"
16386
16387_ACEOF
16388
16389cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16390ac_cs_usage="\
16391\`$as_me' instantiates files and other configuration actions
16392from templates according to the current configuration. Unless the files
16393and actions are specified as TAGs, all are instantiated by default.
16394
16395Usage: $0 [OPTION]... [TAG]...
16396
16397 -h, --help print this help, then exit
16398 -V, --version print version number and configuration settings, then exit
f00f02a3 16399 --config print configuration, then exit
b710ec85 16400 -q, --quiet, --silent
16401 do not print progress messages
16402 -d, --debug don't remove temporary files
16403 --recheck update $as_me by reconfiguring in the same conditions
16404 --file=FILE[:TEMPLATE]
16405 instantiate the configuration file FILE
16406
16407Configuration files:
16408$config_files
16409
16410Configuration commands:
16411$config_commands
16412
16413Report bugs to the package provider.
16414GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
16415General help using GNU software: <http://www.gnu.org/gethelp/>."
16416
16417_ACEOF
16418cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f00f02a3 16419ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b710ec85 16420ac_cs_version="\\
16421GNU Vtable Verification Runtime Library config.status 1.0
f00f02a3 16422configured by $0, generated by GNU Autoconf 2.69,
16423 with options \\"\$ac_cs_config\\"
b710ec85 16424
f00f02a3 16425Copyright (C) 2012 Free Software Foundation, Inc.
b710ec85 16426This config.status script is free software; the Free Software Foundation
16427gives unlimited permission to copy, distribute and modify it."
16428
16429ac_pwd='$ac_pwd'
16430srcdir='$srcdir'
16431INSTALL='$INSTALL'
16432MKDIR_P='$MKDIR_P'
16433AWK='$AWK'
16434test -n "\$AWK" || AWK=awk
16435_ACEOF
16436
16437cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16438# The default lists apply if the user does not specify any file.
16439ac_need_defaults=:
16440while test $# != 0
16441do
16442 case $1 in
f00f02a3 16443 --*=?*)
b710ec85 16444 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16445 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16446 ac_shift=:
16447 ;;
f00f02a3 16448 --*=)
16449 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16450 ac_optarg=
16451 ac_shift=:
16452 ;;
b710ec85 16453 *)
16454 ac_option=$1
16455 ac_optarg=$2
16456 ac_shift=shift
16457 ;;
16458 esac
16459
16460 case $ac_option in
16461 # Handling of the options.
16462 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16463 ac_cs_recheck=: ;;
16464 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16465 $as_echo "$ac_cs_version"; exit ;;
f00f02a3 16466 --config | --confi | --conf | --con | --co | --c )
16467 $as_echo "$ac_cs_config"; exit ;;
b710ec85 16468 --debug | --debu | --deb | --de | --d | -d )
16469 debug=: ;;
16470 --file | --fil | --fi | --f )
16471 $ac_shift
16472 case $ac_optarg in
16473 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
f00f02a3 16474 '') as_fn_error $? "missing file argument" ;;
b710ec85 16475 esac
16476 as_fn_append CONFIG_FILES " '$ac_optarg'"
16477 ac_need_defaults=false;;
16478 --he | --h | --help | --hel | -h )
16479 $as_echo "$ac_cs_usage"; exit ;;
16480 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16481 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16482 ac_cs_silent=: ;;
16483
16484 # This is an error.
f00f02a3 16485 -*) as_fn_error $? "unrecognized option: \`$1'
b710ec85 16486Try \`$0 --help' for more information." ;;
16487
16488 *) as_fn_append ac_config_targets " $1"
16489 ac_need_defaults=false ;;
16490
16491 esac
16492 shift
16493done
16494
16495ac_configure_extra_args=
16496
16497if $ac_cs_silent; then
16498 exec 6>/dev/null
16499 ac_configure_extra_args="$ac_configure_extra_args --silent"
16500fi
16501
16502_ACEOF
16503cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16504if \$ac_cs_recheck; then
f00f02a3 16505 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
b710ec85 16506 shift
16507 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16508 CONFIG_SHELL='$SHELL'
16509 export CONFIG_SHELL
16510 exec "\$@"
16511fi
16512
16513_ACEOF
16514cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16515exec 5>>config.log
16516{
16517 echo
16518 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16519## Running $as_me. ##
16520_ASBOX
16521 $as_echo "$ac_log"
16522} >&5
16523
16524_ACEOF
16525cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16526#
16527# INIT-COMMANDS
16528#
16529
16530srcdir="$srcdir"
16531host="$host"
16532target="$target"
16533with_multisubdir="$with_multisubdir"
16534with_multisrctop="$with_multisrctop"
16535with_target_subdir="$with_target_subdir"
16536ac_configure_args="${multilib_arg} ${ac_configure_args}"
16537multi_basedir="$multi_basedir"
16538CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16539CC="$CC"
16540CXX="$CXX"
16541GFORTRAN="$GFORTRAN"
f00f02a3 16542GDC="$GDC"
0344b437 16543AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
b710ec85 16544
16545
16546# The HP-UX ksh and POSIX shell print the target directory to stdout
16547# if CDPATH is set.
16548(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16549
16550sed_quote_subst='$sed_quote_subst'
16551double_quote_subst='$double_quote_subst'
16552delay_variable_subst='$delay_variable_subst'
16553macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16554macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16555enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16556enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16557pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16558enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16559SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16560ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16561host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16562host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16563host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16564build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16565build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16566build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16567SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16568Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16569GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16570EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16571FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16572LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16573NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16574LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16575max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16576ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16577exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16578lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16579lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16580lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16581reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16582reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16583OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16584deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16585file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16586AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16587AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16588STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16589RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16590old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16591old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16592old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16593lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16594CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16595CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16596compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16597GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16598lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16599lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16600lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16601lt_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"`'
16602objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16603MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16604lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16605lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16606lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16607lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16608lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16609need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16610DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16611NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16612LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16613OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16614OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16615libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16616shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16617extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16618archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16619enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16620export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16621whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16622compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16623old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16624old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16625archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16626archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16627module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16628module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16629with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16630allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16631no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16632hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16633hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16634hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16635hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16636hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16637hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16638hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16639hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16640inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16641link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16642fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16643always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16644export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16645exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16646include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16647prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16648file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16649variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16650need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16651need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16652version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16653runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16654shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16655shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16656libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16657library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16658soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16659install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16660postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16661postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16662finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16663finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16664hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16665sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16666sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16667hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16668enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16669enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16670enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16671old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16672striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16673compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16674predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16675postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16676predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16677postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16678compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16679LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16680reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16681reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16682old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16683compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16684GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16685lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16686lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16687lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16688lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16689lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16690archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16691enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16692export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16693whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16694compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16695old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16696old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16697archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16698archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16699module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16700module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16701with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16702allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16703no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16704hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16705hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16706hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16707hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16708hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16709hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16710hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16711hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16712inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16713link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16714fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16715always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16716export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16717exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16718include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16719prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16720file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16721hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16722compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16723predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16724postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16725predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16726postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16727compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16728
16729LTCC='$LTCC'
16730LTCFLAGS='$LTCFLAGS'
16731compiler='$compiler_DEFAULT'
16732
16733# A function that is used when there is no print builtin or printf.
16734func_fallback_echo ()
16735{
16736 eval 'cat <<_LTECHO_EOF
16737\$1
16738_LTECHO_EOF'
16739}
16740
16741# Quote evaled strings.
16742for var in SHELL \
16743ECHO \
16744SED \
16745GREP \
16746EGREP \
16747FGREP \
16748LD \
16749NM \
16750LN_S \
16751lt_SP2NL \
16752lt_NL2SP \
16753reload_flag \
16754OBJDUMP \
16755deplibs_check_method \
16756file_magic_cmd \
16757AR \
16758AR_FLAGS \
16759STRIP \
16760RANLIB \
16761CC \
16762CFLAGS \
16763compiler \
16764lt_cv_sys_global_symbol_pipe \
16765lt_cv_sys_global_symbol_to_cdecl \
16766lt_cv_sys_global_symbol_to_c_name_address \
16767lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16768lt_prog_compiler_no_builtin_flag \
16769lt_prog_compiler_wl \
16770lt_prog_compiler_pic \
16771lt_prog_compiler_static \
16772lt_cv_prog_compiler_c_o \
16773need_locks \
16774DSYMUTIL \
16775NMEDIT \
16776LIPO \
16777OTOOL \
16778OTOOL64 \
16779shrext_cmds \
16780export_dynamic_flag_spec \
16781whole_archive_flag_spec \
16782compiler_needs_object \
16783with_gnu_ld \
16784allow_undefined_flag \
16785no_undefined_flag \
16786hardcode_libdir_flag_spec \
16787hardcode_libdir_flag_spec_ld \
16788hardcode_libdir_separator \
16789fix_srcfile_path \
16790exclude_expsyms \
16791include_expsyms \
16792file_list_spec \
16793variables_saved_for_relink \
16794libname_spec \
16795library_names_spec \
16796soname_spec \
16797install_override_mode \
16798finish_eval \
16799old_striplib \
16800striplib \
16801compiler_lib_search_dirs \
16802predep_objects \
16803postdep_objects \
16804predeps \
16805postdeps \
16806compiler_lib_search_path \
16807LD_CXX \
16808reload_flag_CXX \
16809compiler_CXX \
16810lt_prog_compiler_no_builtin_flag_CXX \
16811lt_prog_compiler_wl_CXX \
16812lt_prog_compiler_pic_CXX \
16813lt_prog_compiler_static_CXX \
16814lt_cv_prog_compiler_c_o_CXX \
16815export_dynamic_flag_spec_CXX \
16816whole_archive_flag_spec_CXX \
16817compiler_needs_object_CXX \
16818with_gnu_ld_CXX \
16819allow_undefined_flag_CXX \
16820no_undefined_flag_CXX \
16821hardcode_libdir_flag_spec_CXX \
16822hardcode_libdir_flag_spec_ld_CXX \
16823hardcode_libdir_separator_CXX \
16824fix_srcfile_path_CXX \
16825exclude_expsyms_CXX \
16826include_expsyms_CXX \
16827file_list_spec_CXX \
16828compiler_lib_search_dirs_CXX \
16829predep_objects_CXX \
16830postdep_objects_CXX \
16831predeps_CXX \
16832postdeps_CXX \
16833compiler_lib_search_path_CXX; do
16834 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16835 *[\\\\\\\`\\"\\\$]*)
16836 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16837 ;;
16838 *)
16839 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16840 ;;
16841 esac
16842done
16843
16844# Double-quote double-evaled strings.
16845for var in reload_cmds \
16846old_postinstall_cmds \
16847old_postuninstall_cmds \
16848old_archive_cmds \
16849extract_expsyms_cmds \
16850old_archive_from_new_cmds \
16851old_archive_from_expsyms_cmds \
16852archive_cmds \
16853archive_expsym_cmds \
16854module_cmds \
16855module_expsym_cmds \
16856export_symbols_cmds \
16857prelink_cmds \
16858postinstall_cmds \
16859postuninstall_cmds \
16860finish_cmds \
16861sys_lib_search_path_spec \
16862sys_lib_dlsearch_path_spec \
16863reload_cmds_CXX \
16864old_archive_cmds_CXX \
16865old_archive_from_new_cmds_CXX \
16866old_archive_from_expsyms_cmds_CXX \
16867archive_cmds_CXX \
16868archive_expsym_cmds_CXX \
16869module_cmds_CXX \
16870module_expsym_cmds_CXX \
16871export_symbols_cmds_CXX \
16872prelink_cmds_CXX; do
16873 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16874 *[\\\\\\\`\\"\\\$]*)
16875 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16876 ;;
16877 *)
16878 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16879 ;;
16880 esac
16881done
16882
16883ac_aux_dir='$ac_aux_dir'
16884xsi_shell='$xsi_shell'
16885lt_shell_append='$lt_shell_append'
16886
16887# See if we are running on zsh, and set the options which allow our
16888# commands through without removal of \ escapes INIT.
16889if test -n "\${ZSH_VERSION+set}" ; then
16890 setopt NO_GLOB_SUBST
16891fi
16892
16893
16894 PACKAGE='$PACKAGE'
16895 VERSION='$VERSION'
16896 TIMESTAMP='$TIMESTAMP'
16897 RM='$RM'
16898 ofile='$ofile'
16899
16900
16901
16902
16903
16904
16905_ACEOF
16906
16907cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16908
16909# Handling of arguments.
16910for ac_config_target in $ac_config_targets
16911do
16912 case $ac_config_target in
08de21a4 16913 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
0344b437 16914 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
b710ec85 16915 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16916 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
b710ec85 16917 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16918
f00f02a3 16919 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
b710ec85 16920 esac
16921done
16922
16923
16924# If the user did not use the arguments to specify the items to instantiate,
16925# then the envvar interface is used. Set only those that are not.
16926# We use the long form for the default assignment because of an extremely
16927# bizarre bug on SunOS 4.1.3.
16928if $ac_need_defaults; then
16929 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16930 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16931fi
16932
16933# Have a temporary directory for convenience. Make it in the build tree
16934# simply because there is no reason against having it here, and in addition,
16935# creating and moving files from /tmp can sometimes cause problems.
16936# Hook for its removal unless debugging.
16937# Note that there is a small window in which the directory will not be cleaned:
16938# after its creation but before its name has been assigned to `$tmp'.
16939$debug ||
16940{
f00f02a3 16941 tmp= ac_tmp=
b710ec85 16942 trap 'exit_status=$?
f00f02a3 16943 : "${ac_tmp:=$tmp}"
16944 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
b710ec85 16945' 0
16946 trap 'as_fn_exit 1' 1 2 13 15
16947}
16948# Create a (secure) tmp directory for tmp files.
16949
16950{
16951 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
f00f02a3 16952 test -d "$tmp"
b710ec85 16953} ||
16954{
16955 tmp=./conf$$-$RANDOM
16956 (umask 077 && mkdir "$tmp")
f00f02a3 16957} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16958ac_tmp=$tmp
b710ec85 16959
16960# Set up the scripts for CONFIG_FILES section.
16961# No need to generate them if there are no CONFIG_FILES.
16962# This happens for instance with `./config.status config.h'.
16963if test -n "$CONFIG_FILES"; then
16964
16965
16966ac_cr=`echo X | tr X '\015'`
16967# On cygwin, bash can eat \r inside `` if the user requested igncr.
16968# But we know of no other shell where ac_cr would be empty at this
16969# point, so we can use a bashism as a fallback.
16970if test "x$ac_cr" = x; then
16971 eval ac_cr=\$\'\\r\'
16972fi
16973ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16974if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
f00f02a3 16975 ac_cs_awk_cr='\\r'
b710ec85 16976else
16977 ac_cs_awk_cr=$ac_cr
16978fi
16979
f00f02a3 16980echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
b710ec85 16981_ACEOF
16982
16983
16984{
16985 echo "cat >conf$$subs.awk <<_ACEOF" &&
16986 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16987 echo "_ACEOF"
16988} >conf$$subs.sh ||
f00f02a3 16989 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16990ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
b710ec85 16991ac_delim='%!_!# '
16992for ac_last_try in false false false false false :; do
16993 . ./conf$$subs.sh ||
f00f02a3 16994 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
b710ec85 16995
16996 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16997 if test $ac_delim_n = $ac_delim_num; then
16998 break
16999 elif $ac_last_try; then
f00f02a3 17000 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
b710ec85 17001 else
17002 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17003 fi
17004done
17005rm -f conf$$subs.sh
17006
17007cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f00f02a3 17008cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
b710ec85 17009_ACEOF
17010sed -n '
17011h
17012s/^/S["/; s/!.*/"]=/
17013p
17014g
17015s/^[^!]*!//
17016:repl
17017t repl
17018s/'"$ac_delim"'$//
17019t delim
17020:nl
17021h
f00f02a3 17022s/\(.\{148\}\)..*/\1/
b710ec85 17023t more1
17024s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17025p
17026n
17027b repl
17028:more1
17029s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17030p
17031g
17032s/.\{148\}//
17033t nl
17034:delim
17035h
f00f02a3 17036s/\(.\{148\}\)..*/\1/
b710ec85 17037t more2
17038s/["\\]/\\&/g; s/^/"/; s/$/"/
17039p
17040b
17041:more2
17042s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17043p
17044g
17045s/.\{148\}//
17046t delim
17047' <conf$$subs.awk | sed '
17048/^[^""]/{
17049 N
17050 s/\n//
17051}
17052' >>$CONFIG_STATUS || ac_write_fail=1
17053rm -f conf$$subs.awk
17054cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17055_ACAWK
f00f02a3 17056cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
b710ec85 17057 for (key in S) S_is_set[key] = 1
17058 FS = "\a"
17059
17060}
17061{
17062 line = $ 0
17063 nfields = split(line, field, "@")
17064 substed = 0
17065 len = length(field[1])
17066 for (i = 2; i < nfields; i++) {
17067 key = field[i]
17068 keylen = length(key)
17069 if (S_is_set[key]) {
17070 value = S[key]
17071 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17072 len += length(value) + length(field[++i])
17073 substed = 1
17074 } else
17075 len += 1 + keylen
17076 }
17077
17078 print line
17079}
17080
17081_ACAWK
17082_ACEOF
17083cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17084if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17085 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17086else
17087 cat
f00f02a3 17088fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17089 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
b710ec85 17090_ACEOF
17091
f00f02a3 17092# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17093# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
b710ec85 17094# trailing colons and then remove the whole line if VPATH becomes empty
17095# (actually we leave an empty line to preserve line numbers).
17096if test "x$srcdir" = x.; then
f00f02a3 17097 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17098h
17099s///
17100s/^/:/
17101s/[ ]*$/:/
17102s/:\$(srcdir):/:/g
17103s/:\${srcdir}:/:/g
17104s/:@srcdir@:/:/g
17105s/^:*//
b710ec85 17106s/:*$//
f00f02a3 17107x
17108s/\(=[ ]*\).*/\1/
17109G
17110s/\n//
b710ec85 17111s/^[^=]*=[ ]*$//
17112}'
17113fi
17114
17115cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17116fi # test -n "$CONFIG_FILES"
17117
17118
17119eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
17120shift
17121for ac_tag
17122do
17123 case $ac_tag in
17124 :[FHLC]) ac_mode=$ac_tag; continue;;
17125 esac
17126 case $ac_mode$ac_tag in
17127 :[FHL]*:*);;
f00f02a3 17128 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
b710ec85 17129 :[FH]-) ac_tag=-:-;;
17130 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17131 esac
17132 ac_save_IFS=$IFS
17133 IFS=:
17134 set x $ac_tag
17135 IFS=$ac_save_IFS
17136 shift
17137 ac_file=$1
17138 shift
17139
17140 case $ac_mode in
17141 :L) ac_source=$1;;
17142 :[FH])
17143 ac_file_inputs=
17144 for ac_f
17145 do
17146 case $ac_f in
f00f02a3 17147 -) ac_f="$ac_tmp/stdin";;
b710ec85 17148 *) # Look for the file first in the build tree, then in the source tree
17149 # (if the path is not absolute). The absolute path cannot be DOS-style,
17150 # because $ac_f cannot contain `:'.
17151 test -f "$ac_f" ||
17152 case $ac_f in
17153 [\\/$]*) false;;
17154 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17155 esac ||
f00f02a3 17156 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
b710ec85 17157 esac
17158 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17159 as_fn_append ac_file_inputs " '$ac_f'"
17160 done
17161
17162 # Let's still pretend it is `configure' which instantiates (i.e., don't
17163 # use $as_me), people would be surprised to read:
17164 # /* config.h. Generated by config.status. */
17165 configure_input='Generated from '`
17166 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17167 `' by configure.'
17168 if test x"$ac_file" != x-; then
17169 configure_input="$ac_file. $configure_input"
17170 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17171$as_echo "$as_me: creating $ac_file" >&6;}
17172 fi
17173 # Neutralize special characters interpreted by sed in replacement strings.
17174 case $configure_input in #(
17175 *\&* | *\|* | *\\* )
17176 ac_sed_conf_input=`$as_echo "$configure_input" |
17177 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17178 *) ac_sed_conf_input=$configure_input;;
17179 esac
17180
17181 case $ac_tag in
f00f02a3 17182 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17183 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
b710ec85 17184 esac
17185 ;;
17186 esac
17187
17188 ac_dir=`$as_dirname -- "$ac_file" ||
17189$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17190 X"$ac_file" : 'X\(//\)[^/]' \| \
17191 X"$ac_file" : 'X\(//\)$' \| \
17192 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17193$as_echo X"$ac_file" |
17194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17195 s//\1/
17196 q
17197 }
17198 /^X\(\/\/\)[^/].*/{
17199 s//\1/
17200 q
17201 }
17202 /^X\(\/\/\)$/{
17203 s//\1/
17204 q
17205 }
17206 /^X\(\/\).*/{
17207 s//\1/
17208 q
17209 }
17210 s/.*/./; q'`
17211 as_dir="$ac_dir"; as_fn_mkdir_p
17212 ac_builddir=.
17213
17214case "$ac_dir" in
17215.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17216*)
17217 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17218 # A ".." for each directory in $ac_dir_suffix.
17219 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17220 case $ac_top_builddir_sub in
17221 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17222 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17223 esac ;;
17224esac
17225ac_abs_top_builddir=$ac_pwd
17226ac_abs_builddir=$ac_pwd$ac_dir_suffix
17227# for backward compatibility:
17228ac_top_builddir=$ac_top_build_prefix
17229
17230case $srcdir in
17231 .) # We are building in place.
17232 ac_srcdir=.
17233 ac_top_srcdir=$ac_top_builddir_sub
17234 ac_abs_top_srcdir=$ac_pwd ;;
17235 [\\/]* | ?:[\\/]* ) # Absolute name.
17236 ac_srcdir=$srcdir$ac_dir_suffix;
17237 ac_top_srcdir=$srcdir
17238 ac_abs_top_srcdir=$srcdir ;;
17239 *) # Relative name.
17240 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17241 ac_top_srcdir=$ac_top_build_prefix$srcdir
17242 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17243esac
17244ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17245
17246
17247 case $ac_mode in
17248 :F)
17249 #
17250 # CONFIG_FILE
17251 #
17252
17253 case $INSTALL in
17254 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17255 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17256 esac
17257 ac_MKDIR_P=$MKDIR_P
17258 case $MKDIR_P in
17259 [\\/$]* | ?:[\\/]* ) ;;
17260 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17261 esac
17262_ACEOF
17263
17264cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17265# If the template does not know about datarootdir, expand it.
17266# FIXME: This hack should be removed a few years after 2.60.
17267ac_datarootdir_hack=; ac_datarootdir_seen=
17268ac_sed_dataroot='
17269/datarootdir/ {
17270 p
17271 q
17272}
17273/@datadir@/p
17274/@docdir@/p
17275/@infodir@/p
17276/@localedir@/p
17277/@mandir@/p'
17278case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17279*datarootdir*) ac_datarootdir_seen=yes;;
17280*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17282$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17283_ACEOF
17284cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17285 ac_datarootdir_hack='
17286 s&@datadir@&$datadir&g
17287 s&@docdir@&$docdir&g
17288 s&@infodir@&$infodir&g
17289 s&@localedir@&$localedir&g
17290 s&@mandir@&$mandir&g
17291 s&\\\${datarootdir}&$datarootdir&g' ;;
17292esac
17293_ACEOF
17294
17295# Neutralize VPATH when `$srcdir' = `.'.
17296# Shell code in configure.ac might set extrasub.
17297# FIXME: do we really want to maintain this feature?
17298cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17299ac_sed_extra="$ac_vpsub
17300$extrasub
17301_ACEOF
17302cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17303:t
17304/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17305s|@configure_input@|$ac_sed_conf_input|;t t
17306s&@top_builddir@&$ac_top_builddir_sub&;t t
17307s&@top_build_prefix@&$ac_top_build_prefix&;t t
17308s&@srcdir@&$ac_srcdir&;t t
17309s&@abs_srcdir@&$ac_abs_srcdir&;t t
17310s&@top_srcdir@&$ac_top_srcdir&;t t
17311s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17312s&@builddir@&$ac_builddir&;t t
17313s&@abs_builddir@&$ac_abs_builddir&;t t
17314s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17315s&@INSTALL@&$ac_INSTALL&;t t
17316s&@MKDIR_P@&$ac_MKDIR_P&;t t
17317$ac_datarootdir_hack
17318"
f00f02a3 17319eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17320 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
b710ec85 17321
17322test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
f00f02a3 17323 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17324 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17325 "$ac_tmp/out"`; test -z "$ac_out"; } &&
b710ec85 17326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
f00f02a3 17327which seems to be undefined. Please make sure it is defined" >&5
b710ec85 17328$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
f00f02a3 17329which seems to be undefined. Please make sure it is defined" >&2;}
b710ec85 17330
f00f02a3 17331 rm -f "$ac_tmp/stdin"
b710ec85 17332 case $ac_file in
f00f02a3 17333 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17334 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
b710ec85 17335 esac \
f00f02a3 17336 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
b710ec85 17337 ;;
17338
17339
17340 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17341$as_echo "$as_me: executing $ac_file commands" >&6;}
17342 ;;
17343 esac
17344
17345
17346 case $ac_file$ac_mode in
0344b437 17347 "default-1":C)
17348# Only add multilib support code if we just rebuilt the top-level
17349# Makefile.
17350case " $CONFIG_FILES " in
17351 *" Makefile "*)
17352 ac_file=Makefile . ${multi_basedir}/config-ml.in
17353 ;;
17354esac ;;
b710ec85 17355 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
f00f02a3 17356 # Older Autoconf quotes --file arguments for eval, but not when files
b710ec85 17357 # are listed without --file. Let's play safe and only enable the eval
17358 # if we detect the quoting.
17359 case $CONFIG_FILES in
17360 *\'*) eval set x "$CONFIG_FILES" ;;
17361 *) set x $CONFIG_FILES ;;
17362 esac
17363 shift
17364 for mf
17365 do
17366 # Strip MF so we end up with the name of the file.
17367 mf=`echo "$mf" | sed -e 's/:.*$//'`
17368 # Check whether this is an Automake generated Makefile or not.
f00f02a3 17369 # We used to match only the files named 'Makefile.in', but
b710ec85 17370 # some people rename them; so instead we look at the file content.
17371 # Grep'ing the first line is not enough: some people post-process
17372 # each Makefile.in and add a new line on top of each file to say so.
17373 # Grep'ing the whole file is not good either: AIX grep has a line
17374 # limit of 2048, but all sed's we know have understand at least 4000.
17375 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17376 dirpart=`$as_dirname -- "$mf" ||
17377$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17378 X"$mf" : 'X\(//\)[^/]' \| \
17379 X"$mf" : 'X\(//\)$' \| \
17380 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17381$as_echo X"$mf" |
17382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17383 s//\1/
17384 q
17385 }
17386 /^X\(\/\/\)[^/].*/{
17387 s//\1/
17388 q
17389 }
17390 /^X\(\/\/\)$/{
17391 s//\1/
17392 q
17393 }
17394 /^X\(\/\).*/{
17395 s//\1/
17396 q
17397 }
17398 s/.*/./; q'`
17399 else
17400 continue
17401 fi
17402 # Extract the definition of DEPDIR, am__include, and am__quote
f00f02a3 17403 # from the Makefile without running 'make'.
b710ec85 17404 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17405 test -z "$DEPDIR" && continue
17406 am__include=`sed -n 's/^am__include = //p' < "$mf"`
f00f02a3 17407 test -z "$am__include" && continue
b710ec85 17408 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
b710ec85 17409 # Find all dependency output files, they are included files with
17410 # $(DEPDIR) in their names. We invoke sed twice because it is the
17411 # simplest approach to changing $(DEPDIR) to its actual value in the
17412 # expansion.
17413 for file in `sed -n "
17414 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
f00f02a3 17415 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
b710ec85 17416 # Make sure the directory exists.
17417 test -f "$dirpart/$file" && continue
17418 fdir=`$as_dirname -- "$file" ||
17419$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17420 X"$file" : 'X\(//\)[^/]' \| \
17421 X"$file" : 'X\(//\)$' \| \
17422 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17423$as_echo X"$file" |
17424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17425 s//\1/
17426 q
17427 }
17428 /^X\(\/\/\)[^/].*/{
17429 s//\1/
17430 q
17431 }
17432 /^X\(\/\/\)$/{
17433 s//\1/
17434 q
17435 }
17436 /^X\(\/\).*/{
17437 s//\1/
17438 q
17439 }
17440 s/.*/./; q'`
17441 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17442 # echo "creating $dirpart/$file"
17443 echo '# dummy' > "$dirpart/$file"
17444 done
17445 done
17446}
17447 ;;
17448 "libtool":C)
17449
17450 # See if we are running on zsh, and set the options which allow our
17451 # commands through without removal of \ escapes.
17452 if test -n "${ZSH_VERSION+set}" ; then
17453 setopt NO_GLOB_SUBST
17454 fi
17455
17456 cfgfile="${ofile}T"
17457 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17458 $RM "$cfgfile"
17459
17460 cat <<_LT_EOF >> "$cfgfile"
17461#! $SHELL
17462
17463# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17464# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17465# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17466# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17467#
17468# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17469# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17470# Written by Gordon Matzigkeit, 1996
17471#
17472# This file is part of GNU Libtool.
17473#
17474# GNU Libtool is free software; you can redistribute it and/or
17475# modify it under the terms of the GNU General Public License as
17476# published by the Free Software Foundation; either version 2 of
17477# the License, or (at your option) any later version.
17478#
17479# As a special exception to the GNU General Public License,
17480# if you distribute this file as part of a program or library that
17481# is built using GNU Libtool, you may include this file under the
17482# same distribution terms that you use for the rest of that program.
17483#
17484# GNU Libtool is distributed in the hope that it will be useful,
17485# but WITHOUT ANY WARRANTY; without even the implied warranty of
17486# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17487# GNU General Public License for more details.
17488#
17489# You should have received a copy of the GNU General Public License
17490# along with GNU Libtool; see the file COPYING. If not, a copy
17491# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17492# obtained by writing to the Free Software Foundation, Inc.,
17493# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17494
17495
17496# The names of the tagged configurations supported by this script.
17497available_tags="CXX "
17498
17499# ### BEGIN LIBTOOL CONFIG
17500
17501# Which release of libtool.m4 was used?
17502macro_version=$macro_version
17503macro_revision=$macro_revision
17504
17505# Whether or not to build shared libraries.
17506build_libtool_libs=$enable_shared
17507
17508# Whether or not to build static libraries.
17509build_old_libs=$enable_static
17510
17511# What type of objects to build.
17512pic_mode=$pic_mode
17513
17514# Whether or not to optimize for fast installation.
17515fast_install=$enable_fast_install
17516
17517# Shell to use when invoking shell scripts.
17518SHELL=$lt_SHELL
17519
17520# An echo program that protects backslashes.
17521ECHO=$lt_ECHO
17522
17523# The host system.
17524host_alias=$host_alias
17525host=$host
17526host_os=$host_os
17527
17528# The build system.
17529build_alias=$build_alias
17530build=$build
17531build_os=$build_os
17532
17533# A sed program that does not truncate output.
17534SED=$lt_SED
17535
17536# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17537Xsed="\$SED -e 1s/^X//"
17538
17539# A grep program that handles long lines.
17540GREP=$lt_GREP
17541
17542# An ERE matcher.
17543EGREP=$lt_EGREP
17544
17545# A literal string matcher.
17546FGREP=$lt_FGREP
17547
17548# A BSD- or MS-compatible name lister.
17549NM=$lt_NM
17550
17551# Whether we need soft or hard links.
17552LN_S=$lt_LN_S
17553
17554# What is the maximum length of a command?
17555max_cmd_len=$max_cmd_len
17556
17557# Object file suffix (normally "o").
17558objext=$ac_objext
17559
17560# Executable file suffix (normally "").
17561exeext=$exeext
17562
17563# whether the shell understands "unset".
17564lt_unset=$lt_unset
17565
17566# turn spaces into newlines.
17567SP2NL=$lt_lt_SP2NL
17568
17569# turn newlines into spaces.
17570NL2SP=$lt_lt_NL2SP
17571
17572# An object symbol dumper.
17573OBJDUMP=$lt_OBJDUMP
17574
17575# Method to check whether dependent libraries are shared objects.
17576deplibs_check_method=$lt_deplibs_check_method
17577
17578# Command to use when deplibs_check_method == "file_magic".
17579file_magic_cmd=$lt_file_magic_cmd
17580
17581# The archiver.
17582AR=$lt_AR
17583AR_FLAGS=$lt_AR_FLAGS
17584
17585# A symbol stripping program.
17586STRIP=$lt_STRIP
17587
17588# Commands used to install an old-style archive.
17589RANLIB=$lt_RANLIB
17590old_postinstall_cmds=$lt_old_postinstall_cmds
17591old_postuninstall_cmds=$lt_old_postuninstall_cmds
17592
17593# Whether to use a lock for old archive extraction.
17594lock_old_archive_extraction=$lock_old_archive_extraction
17595
17596# A C compiler.
17597LTCC=$lt_CC
17598
17599# LTCC compiler flags.
17600LTCFLAGS=$lt_CFLAGS
17601
17602# Take the output of nm and produce a listing of raw symbols and C names.
17603global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17604
17605# Transform the output of nm in a proper C declaration.
17606global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17607
17608# Transform the output of nm in a C name address pair.
17609global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17610
17611# Transform the output of nm in a C name address pair when lib prefix is needed.
17612global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17613
17614# The name of the directory that contains temporary libtool files.
17615objdir=$objdir
17616
17617# Used to examine libraries when file_magic_cmd begins with "file".
17618MAGIC_CMD=$MAGIC_CMD
17619
17620# Must we lock files when doing compilation?
17621need_locks=$lt_need_locks
17622
17623# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17624DSYMUTIL=$lt_DSYMUTIL
17625
17626# Tool to change global to local symbols on Mac OS X.
17627NMEDIT=$lt_NMEDIT
17628
17629# Tool to manipulate fat objects and archives on Mac OS X.
17630LIPO=$lt_LIPO
17631
17632# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17633OTOOL=$lt_OTOOL
17634
17635# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17636OTOOL64=$lt_OTOOL64
17637
17638# Old archive suffix (normally "a").
17639libext=$libext
17640
17641# Shared library suffix (normally ".so").
17642shrext_cmds=$lt_shrext_cmds
17643
17644# The commands to extract the exported symbol list from a shared archive.
17645extract_expsyms_cmds=$lt_extract_expsyms_cmds
17646
17647# Variables whose values should be saved in libtool wrapper scripts and
17648# restored at link time.
17649variables_saved_for_relink=$lt_variables_saved_for_relink
17650
17651# Do we need the "lib" prefix for modules?
17652need_lib_prefix=$need_lib_prefix
17653
17654# Do we need a version for libraries?
17655need_version=$need_version
17656
17657# Library versioning type.
17658version_type=$version_type
17659
17660# Shared library runtime path variable.
17661runpath_var=$runpath_var
17662
17663# Shared library path variable.
17664shlibpath_var=$shlibpath_var
17665
17666# Is shlibpath searched before the hard-coded library search path?
17667shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17668
17669# Format of library name prefix.
17670libname_spec=$lt_libname_spec
17671
17672# List of archive names. First name is the real one, the rest are links.
17673# The last name is the one that the linker finds with -lNAME
17674library_names_spec=$lt_library_names_spec
17675
17676# The coded name of the library, if different from the real name.
17677soname_spec=$lt_soname_spec
17678
17679# Permission mode override for installation of shared libraries.
17680install_override_mode=$lt_install_override_mode
17681
17682# Command to use after installation of a shared archive.
17683postinstall_cmds=$lt_postinstall_cmds
17684
17685# Command to use after uninstallation of a shared archive.
17686postuninstall_cmds=$lt_postuninstall_cmds
17687
17688# Commands used to finish a libtool library installation in a directory.
17689finish_cmds=$lt_finish_cmds
17690
17691# As "finish_cmds", except a single script fragment to be evaled but
17692# not shown.
17693finish_eval=$lt_finish_eval
17694
17695# Whether we should hardcode library paths into libraries.
17696hardcode_into_libs=$hardcode_into_libs
17697
17698# Compile-time system search path for libraries.
17699sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17700
17701# Run-time system search path for libraries.
17702sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17703
17704# Whether dlopen is supported.
17705dlopen_support=$enable_dlopen
17706
17707# Whether dlopen of programs is supported.
17708dlopen_self=$enable_dlopen_self
17709
17710# Whether dlopen of statically linked programs is supported.
17711dlopen_self_static=$enable_dlopen_self_static
17712
17713# Commands to strip libraries.
17714old_striplib=$lt_old_striplib
17715striplib=$lt_striplib
17716
17717
17718# The linker used to build libraries.
17719LD=$lt_LD
17720
17721# How to create reloadable object files.
17722reload_flag=$lt_reload_flag
17723reload_cmds=$lt_reload_cmds
17724
17725# Commands used to build an old-style archive.
17726old_archive_cmds=$lt_old_archive_cmds
17727
17728# A language specific compiler.
17729CC=$lt_compiler
17730
17731# Is the compiler the GNU compiler?
17732with_gcc=$GCC
17733
17734# Compiler flag to turn off builtin functions.
17735no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17736
17737# How to pass a linker flag through the compiler.
17738wl=$lt_lt_prog_compiler_wl
17739
17740# Additional compiler flags for building library objects.
17741pic_flag=$lt_lt_prog_compiler_pic
17742
17743# Compiler flag to prevent dynamic linking.
17744link_static_flag=$lt_lt_prog_compiler_static
17745
17746# Does compiler simultaneously support -c and -o options?
17747compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17748
17749# Whether or not to add -lc for building shared libraries.
17750build_libtool_need_lc=$archive_cmds_need_lc
17751
17752# Whether or not to disallow shared libs when runtime libs are static.
17753allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17754
17755# Compiler flag to allow reflexive dlopens.
17756export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17757
17758# Compiler flag to generate shared objects directly from archives.
17759whole_archive_flag_spec=$lt_whole_archive_flag_spec
17760
17761# Whether the compiler copes with passing no objects directly.
17762compiler_needs_object=$lt_compiler_needs_object
17763
17764# Create an old-style archive from a shared archive.
17765old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17766
17767# Create a temporary old-style archive to link instead of a shared archive.
17768old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17769
17770# Commands used to build a shared archive.
17771archive_cmds=$lt_archive_cmds
17772archive_expsym_cmds=$lt_archive_expsym_cmds
17773
17774# Commands used to build a loadable module if different from building
17775# a shared archive.
17776module_cmds=$lt_module_cmds
17777module_expsym_cmds=$lt_module_expsym_cmds
17778
17779# Whether we are building with GNU ld or not.
17780with_gnu_ld=$lt_with_gnu_ld
17781
17782# Flag that allows shared libraries with undefined symbols to be built.
17783allow_undefined_flag=$lt_allow_undefined_flag
17784
17785# Flag that enforces no undefined symbols.
17786no_undefined_flag=$lt_no_undefined_flag
17787
17788# Flag to hardcode \$libdir into a binary during linking.
17789# This must work even if \$libdir does not exist
17790hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17791
17792# If ld is used when linking, flag to hardcode \$libdir into a binary
17793# during linking. This must work even if \$libdir does not exist.
17794hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17795
17796# Whether we need a single "-rpath" flag with a separated argument.
17797hardcode_libdir_separator=$lt_hardcode_libdir_separator
17798
17799# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17800# DIR into the resulting binary.
17801hardcode_direct=$hardcode_direct
17802
17803# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17804# DIR into the resulting binary and the resulting library dependency is
17805# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17806# library is relocated.
17807hardcode_direct_absolute=$hardcode_direct_absolute
17808
17809# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17810# into the resulting binary.
17811hardcode_minus_L=$hardcode_minus_L
17812
17813# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17814# into the resulting binary.
17815hardcode_shlibpath_var=$hardcode_shlibpath_var
17816
17817# Set to "yes" if building a shared library automatically hardcodes DIR
17818# into the library and all subsequent libraries and executables linked
17819# against it.
17820hardcode_automatic=$hardcode_automatic
17821
17822# Set to yes if linker adds runtime paths of dependent libraries
17823# to runtime path list.
17824inherit_rpath=$inherit_rpath
17825
17826# Whether libtool must link a program against all its dependency libraries.
17827link_all_deplibs=$link_all_deplibs
17828
17829# Fix the shell variable \$srcfile for the compiler.
17830fix_srcfile_path=$lt_fix_srcfile_path
17831
17832# Set to "yes" if exported symbols are required.
17833always_export_symbols=$always_export_symbols
17834
17835# The commands to list exported symbols.
17836export_symbols_cmds=$lt_export_symbols_cmds
17837
17838# Symbols that should not be listed in the preloaded symbols.
17839exclude_expsyms=$lt_exclude_expsyms
17840
17841# Symbols that must always be exported.
17842include_expsyms=$lt_include_expsyms
17843
17844# Commands necessary for linking programs (against libraries) with templates.
17845prelink_cmds=$lt_prelink_cmds
17846
17847# Specify filename containing input files.
17848file_list_spec=$lt_file_list_spec
17849
17850# How to hardcode a shared library path into an executable.
17851hardcode_action=$hardcode_action
17852
17853# The directories searched by this compiler when creating a shared library.
17854compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17855
17856# Dependencies to place before and after the objects being linked to
17857# create a shared library.
17858predep_objects=$lt_predep_objects
17859postdep_objects=$lt_postdep_objects
17860predeps=$lt_predeps
17861postdeps=$lt_postdeps
17862
17863# The library search path used internally by the compiler when linking
17864# a shared library.
17865compiler_lib_search_path=$lt_compiler_lib_search_path
17866
17867# ### END LIBTOOL CONFIG
17868
17869_LT_EOF
17870
17871 case $host_os in
17872 aix3*)
17873 cat <<\_LT_EOF >> "$cfgfile"
17874# AIX sometimes has problems with the GCC collect2 program. For some
17875# reason, if we set the COLLECT_NAMES environment variable, the problems
17876# vanish in a puff of smoke.
17877if test "X${COLLECT_NAMES+set}" != Xset; then
17878 COLLECT_NAMES=
17879 export COLLECT_NAMES
17880fi
17881_LT_EOF
17882 ;;
17883 esac
17884
17885
17886ltmain="$ac_aux_dir/ltmain.sh"
17887
17888
17889 # We use sed instead of cat because bash on DJGPP gets confused if
17890 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17891 # text mode, it properly converts lines to CR/LF. This bash problem
17892 # is reportedly fixed, but why not run on old versions too?
17893 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17894 || (rm -f "$cfgfile"; exit 1)
17895
17896 case $xsi_shell in
17897 yes)
17898 cat << \_LT_EOF >> "$cfgfile"
17899
17900# func_dirname file append nondir_replacement
17901# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17902# otherwise set result to NONDIR_REPLACEMENT.
17903func_dirname ()
17904{
17905 case ${1} in
17906 */*) func_dirname_result="${1%/*}${2}" ;;
17907 * ) func_dirname_result="${3}" ;;
17908 esac
17909}
17910
17911# func_basename file
17912func_basename ()
17913{
17914 func_basename_result="${1##*/}"
17915}
17916
17917# func_dirname_and_basename file append nondir_replacement
17918# perform func_basename and func_dirname in a single function
17919# call:
17920# dirname: Compute the dirname of FILE. If nonempty,
17921# add APPEND to the result, otherwise set result
17922# to NONDIR_REPLACEMENT.
17923# value returned in "$func_dirname_result"
17924# basename: Compute filename of FILE.
17925# value retuned in "$func_basename_result"
17926# Implementation must be kept synchronized with func_dirname
17927# and func_basename. For efficiency, we do not delegate to
17928# those functions but instead duplicate the functionality here.
17929func_dirname_and_basename ()
17930{
17931 case ${1} in
17932 */*) func_dirname_result="${1%/*}${2}" ;;
17933 * ) func_dirname_result="${3}" ;;
17934 esac
17935 func_basename_result="${1##*/}"
17936}
17937
17938# func_stripname prefix suffix name
17939# strip PREFIX and SUFFIX off of NAME.
17940# PREFIX and SUFFIX must not contain globbing or regex special
17941# characters, hashes, percent signs, but SUFFIX may contain a leading
17942# dot (in which case that matches only a dot).
17943func_stripname ()
17944{
17945 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17946 # positional parameters, so assign one to ordinary parameter first.
17947 func_stripname_result=${3}
17948 func_stripname_result=${func_stripname_result#"${1}"}
17949 func_stripname_result=${func_stripname_result%"${2}"}
17950}
17951
17952# func_opt_split
17953func_opt_split ()
17954{
17955 func_opt_split_opt=${1%%=*}
17956 func_opt_split_arg=${1#*=}
17957}
17958
17959# func_lo2o object
17960func_lo2o ()
17961{
17962 case ${1} in
17963 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17964 *) func_lo2o_result=${1} ;;
17965 esac
17966}
17967
17968# func_xform libobj-or-source
17969func_xform ()
17970{
17971 func_xform_result=${1%.*}.lo
17972}
17973
17974# func_arith arithmetic-term...
17975func_arith ()
17976{
17977 func_arith_result=$(( $* ))
17978}
17979
17980# func_len string
17981# STRING may not start with a hyphen.
17982func_len ()
17983{
17984 func_len_result=${#1}
17985}
17986
17987_LT_EOF
17988 ;;
17989 *) # Bourne compatible functions.
17990 cat << \_LT_EOF >> "$cfgfile"
17991
17992# func_dirname file append nondir_replacement
17993# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17994# otherwise set result to NONDIR_REPLACEMENT.
17995func_dirname ()
17996{
17997 # Extract subdirectory from the argument.
17998 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17999 if test "X$func_dirname_result" = "X${1}"; then
18000 func_dirname_result="${3}"
18001 else
18002 func_dirname_result="$func_dirname_result${2}"
18003 fi
18004}
18005
18006# func_basename file
18007func_basename ()
18008{
18009 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18010}
18011
18012
18013# func_stripname prefix suffix name
18014# strip PREFIX and SUFFIX off of NAME.
18015# PREFIX and SUFFIX must not contain globbing or regex special
18016# characters, hashes, percent signs, but SUFFIX may contain a leading
18017# dot (in which case that matches only a dot).
18018# func_strip_suffix prefix name
18019func_stripname ()
18020{
18021 case ${2} in
18022 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18023 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18024 esac
18025}
18026
18027# sed scripts:
18028my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18029my_sed_long_arg='1s/^-[^=]*=//'
18030
18031# func_opt_split
18032func_opt_split ()
18033{
18034 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18035 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18036}
18037
18038# func_lo2o object
18039func_lo2o ()
18040{
18041 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18042}
18043
18044# func_xform libobj-or-source
18045func_xform ()
18046{
18047 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18048}
18049
18050# func_arith arithmetic-term...
18051func_arith ()
18052{
18053 func_arith_result=`expr "$@"`
18054}
18055
18056# func_len string
18057# STRING may not start with a hyphen.
18058func_len ()
18059{
18060 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18061}
18062
18063_LT_EOF
18064esac
18065
18066case $lt_shell_append in
18067 yes)
18068 cat << \_LT_EOF >> "$cfgfile"
18069
18070# func_append var value
18071# Append VALUE to the end of shell variable VAR.
18072func_append ()
18073{
18074 eval "$1+=\$2"
18075}
18076_LT_EOF
18077 ;;
18078 *)
18079 cat << \_LT_EOF >> "$cfgfile"
18080
18081# func_append var value
18082# Append VALUE to the end of shell variable VAR.
18083func_append ()
18084{
18085 eval "$1=\$$1\$2"
18086}
18087
18088_LT_EOF
18089 ;;
18090 esac
18091
18092
18093 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18094 || (rm -f "$cfgfile"; exit 1)
18095
18096 mv -f "$cfgfile" "$ofile" ||
18097 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18098 chmod +x "$ofile"
18099
18100
18101 cat <<_LT_EOF >> "$ofile"
18102
18103# ### BEGIN LIBTOOL TAG CONFIG: CXX
18104
18105# The linker used to build libraries.
18106LD=$lt_LD_CXX
18107
18108# How to create reloadable object files.
18109reload_flag=$lt_reload_flag_CXX
18110reload_cmds=$lt_reload_cmds_CXX
18111
18112# Commands used to build an old-style archive.
18113old_archive_cmds=$lt_old_archive_cmds_CXX
18114
18115# A language specific compiler.
18116CC=$lt_compiler_CXX
18117
18118# Is the compiler the GNU compiler?
18119with_gcc=$GCC_CXX
18120
18121# Compiler flag to turn off builtin functions.
18122no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18123
18124# How to pass a linker flag through the compiler.
18125wl=$lt_lt_prog_compiler_wl_CXX
18126
18127# Additional compiler flags for building library objects.
18128pic_flag=$lt_lt_prog_compiler_pic_CXX
18129
18130# Compiler flag to prevent dynamic linking.
18131link_static_flag=$lt_lt_prog_compiler_static_CXX
18132
18133# Does compiler simultaneously support -c and -o options?
18134compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18135
18136# Whether or not to add -lc for building shared libraries.
18137build_libtool_need_lc=$archive_cmds_need_lc_CXX
18138
18139# Whether or not to disallow shared libs when runtime libs are static.
18140allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18141
18142# Compiler flag to allow reflexive dlopens.
18143export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18144
18145# Compiler flag to generate shared objects directly from archives.
18146whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18147
18148# Whether the compiler copes with passing no objects directly.
18149compiler_needs_object=$lt_compiler_needs_object_CXX
18150
18151# Create an old-style archive from a shared archive.
18152old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18153
18154# Create a temporary old-style archive to link instead of a shared archive.
18155old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18156
18157# Commands used to build a shared archive.
18158archive_cmds=$lt_archive_cmds_CXX
18159archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18160
18161# Commands used to build a loadable module if different from building
18162# a shared archive.
18163module_cmds=$lt_module_cmds_CXX
18164module_expsym_cmds=$lt_module_expsym_cmds_CXX
18165
18166# Whether we are building with GNU ld or not.
18167with_gnu_ld=$lt_with_gnu_ld_CXX
18168
18169# Flag that allows shared libraries with undefined symbols to be built.
18170allow_undefined_flag=$lt_allow_undefined_flag_CXX
18171
18172# Flag that enforces no undefined symbols.
18173no_undefined_flag=$lt_no_undefined_flag_CXX
18174
18175# Flag to hardcode \$libdir into a binary during linking.
18176# This must work even if \$libdir does not exist
18177hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18178
18179# If ld is used when linking, flag to hardcode \$libdir into a binary
18180# during linking. This must work even if \$libdir does not exist.
18181hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18182
18183# Whether we need a single "-rpath" flag with a separated argument.
18184hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18185
18186# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18187# DIR into the resulting binary.
18188hardcode_direct=$hardcode_direct_CXX
18189
18190# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18191# DIR into the resulting binary and the resulting library dependency is
18192# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18193# library is relocated.
18194hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18195
18196# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18197# into the resulting binary.
18198hardcode_minus_L=$hardcode_minus_L_CXX
18199
18200# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18201# into the resulting binary.
18202hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18203
18204# Set to "yes" if building a shared library automatically hardcodes DIR
18205# into the library and all subsequent libraries and executables linked
18206# against it.
18207hardcode_automatic=$hardcode_automatic_CXX
18208
18209# Set to yes if linker adds runtime paths of dependent libraries
18210# to runtime path list.
18211inherit_rpath=$inherit_rpath_CXX
18212
18213# Whether libtool must link a program against all its dependency libraries.
18214link_all_deplibs=$link_all_deplibs_CXX
18215
18216# Fix the shell variable \$srcfile for the compiler.
18217fix_srcfile_path=$lt_fix_srcfile_path_CXX
18218
18219# Set to "yes" if exported symbols are required.
18220always_export_symbols=$always_export_symbols_CXX
18221
18222# The commands to list exported symbols.
18223export_symbols_cmds=$lt_export_symbols_cmds_CXX
18224
18225# Symbols that should not be listed in the preloaded symbols.
18226exclude_expsyms=$lt_exclude_expsyms_CXX
18227
18228# Symbols that must always be exported.
18229include_expsyms=$lt_include_expsyms_CXX
18230
18231# Commands necessary for linking programs (against libraries) with templates.
18232prelink_cmds=$lt_prelink_cmds_CXX
18233
18234# Specify filename containing input files.
18235file_list_spec=$lt_file_list_spec_CXX
18236
18237# How to hardcode a shared library path into an executable.
18238hardcode_action=$hardcode_action_CXX
18239
18240# The directories searched by this compiler when creating a shared library.
18241compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18242
18243# Dependencies to place before and after the objects being linked to
18244# create a shared library.
18245predep_objects=$lt_predep_objects_CXX
18246postdep_objects=$lt_postdep_objects_CXX
18247predeps=$lt_predeps_CXX
18248postdeps=$lt_postdeps_CXX
18249
18250# The library search path used internally by the compiler when linking
18251# a shared library.
18252compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18253
18254# ### END LIBTOOL TAG CONFIG: CXX
18255_LT_EOF
18256
b710ec85 18257 ;;
18258 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
18259s!`test -f '$<' || echo '$(srcdir)/'`!!
18260_EOF
18261 sed -f vpsed$$ $ac_file > tmp$$
18262 mv tmp$$ $ac_file
18263 rm vpsed$$
18264 echo 'MULTISUBDIR =' >> $ac_file
18265 ml_norecursion=yes
18266 . ${multi_basedir}/config-ml.in
18267 { ml_norecursion=; unset ml_norecursion;}
18268 ;;
18269
18270 esac
18271done # for ac_tag
18272
18273
18274as_fn_exit 0
18275_ACEOF
18276ac_clean_files=$ac_clean_files_save
18277
18278test $ac_write_fail = 0 ||
f00f02a3 18279 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
b710ec85 18280
18281
18282# configure is writing to config.log, and then calls config.status.
18283# config.status does its own redirection, appending to config.log.
18284# Unfortunately, on DOS this fails, as config.log is still kept open
18285# by configure, so config.status won't be able to write to it; its
18286# output is simply discarded. So we exec the FD to /dev/null,
18287# effectively closing config.log, so it can be properly (re)opened and
18288# appended to by config.status. When coming back to configure, we
18289# need to make the FD available again.
18290if test "$no_create" != yes; then
18291 ac_cs_success=:
18292 ac_config_status_args=
18293 test "$silent" = yes &&
18294 ac_config_status_args="$ac_config_status_args --quiet"
18295 exec 5>/dev/null
18296 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18297 exec 5>>config.log
18298 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18299 # would make configure fail if this is the last instruction.
f00f02a3 18300 $ac_cs_success || as_fn_exit 1
b710ec85 18301fi
18302if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18304$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18305fi
18306