]> git.ipfire.org Git - thirdparty/gcc.git/blame - libvtv/configure
Sync with binutils: GCC: Pass --plugin to AR and RANLIB
[thirdparty/gcc.git] / libvtv / configure
CommitLineData
2077db1b
CT
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
22e05272
JM
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.
2077db1b 7#
2077db1b
CT
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.
22e05272 90as_myself=
2077db1b
CT
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
22e05272
JM
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;}
2077db1b
CT
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
22e05272
JM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
2077db1b
CT
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
8bc16536 199test \$(( 1 + 1 )) = 2 || exit 1
2077db1b
CT
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\" \\
8bc16536 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
2077db1b
CT
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 :
22e05272
JM
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
2077db1b
CT
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"
22e05272 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
2077db1b
CT
364
365
366} # as_fn_mkdir_p
22e05272
JM
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
2077db1b
CT
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
22e05272
JM
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
2077db1b
CT
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
22e05272 415# script with STATUS, using 1 if that was 0.
2077db1b
CT
416as_fn_error ()
417{
22e05272
JM
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
2077db1b 422 fi
22e05272 423 $as_echo "$as_me: error: $2" >&2
2077db1b
CT
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
22e05272
JM
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
2077db1b
CT
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.
22e05272 534 # In both cases, we have to default to `cp -pR'.
2077db1b 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 536 as_ln_s='cp -pR'
2077db1b
CT
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
22e05272 540 as_ln_s='cp -pR'
2077db1b
CT
541 fi
542else
22e05272 543 as_ln_s='cp -pR'
2077db1b
CT
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
22e05272
JM
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
2077db1b
CT
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
22e05272
JM
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
2077db1b
CT
569
570# Name of the host.
22e05272 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
2077db1b
CT
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
3c36aa6b 636get_gcc_base_ver
e5ef217c
RO
637VTV_NO_OBSTACK_FALSE
638VTV_NO_OBSTACK_TRUE
8be349ee
CT
639VTV_CYGMIN_FALSE
640VTV_CYGMIN_TRUE
2077db1b
CT
641XCFLAGS
642libtool_VERSION
643enable_static
644enable_shared
a8adc78f 645lt_host_flags
2077db1b 646CXXCPP
2077db1b
CT
647OTOOL64
648OTOOL
649LIPO
650NMEDIT
651DSYMUTIL
652OBJDUMP
653LN_S
654NM
655ac_ct_DUMPBIN
656DUMPBIN
657LD
658FGREP
2077db1b
CT
659SED
660LIBTOOL
661RANLIB
662AR
663AS
664CCASFLAGS
665CCAS
666am__fastdepCXX_FALSE
667am__fastdepCXX_TRUE
668CXXDEPMODE
669ac_ct_CXX
670CXXFLAGS
671CXX
2077db1b
CT
672toolexeclibdir
673toolexecdir
0c6cb2d1
BK
674toplevel_srcdir
675toplevel_builddir
676libvtv_srcdir
677libvtv_builddir
2077db1b
CT
678MAINT
679MAINTAINER_MODE_FALSE
680MAINTAINER_MODE_TRUE
22e05272
JM
681AM_BACKSLASH
682AM_DEFAULT_VERBOSITY
683AM_DEFAULT_V
684AM_V
e5ef217c
RO
685am__fastdepCC_FALSE
686am__fastdepCC_TRUE
687CCDEPMODE
688am__nodep
689AMDEPBACKSLASH
690AMDEP_FALSE
691AMDEP_TRUE
692am__quote
693am__include
694DEPDIR
2077db1b
CT
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
56fc7835
CT
718ENABLE_VTABLE_VERIFY_FALSE
719ENABLE_VTABLE_VERIFY_TRUE
e5ef217c
RO
720EGREP
721GREP
722CPP
723OBJEXT
724EXEEXT
725ac_ct_CC
726CPPFLAGS
727LDFLAGS
728CFLAGS
729CC
2077db1b
CT
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
701fa326 745multi_basedir
2077db1b
CT
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
701fa326 787enable_multilib
2077db1b 788enable_version_specific_runtime_libs
56fc7835 789enable_vtable_verify
e5ef217c 790enable_dependency_tracking
22e05272 791enable_silent_rules
2077db1b 792enable_maintainer_mode
e8e66971 793with_toolexeclibdir
2077db1b
CT
794enable_shared
795enable_static
796with_pic
797enable_fast_install
798with_gnu_ld
799enable_libtool_lock
8e2fc055 800enable_cet
3c36aa6b 801with_gcc_major_version_only
2077db1b
CT
802'
803 ac_precious_vars='build_alias
804host_alias
805target_alias
8bc16536
CT
806CC
807CFLAGS
808LDFLAGS
809LIBS
2077db1b 810CPPFLAGS
8bc16536 811CPP
2077db1b
CT
812CXXCPP'
813
814
815# Initialize some variables set by options.
816ac_init_help=
817ac_init_version=false
818ac_unrecognized_opts=
819ac_unrecognized_sep=
820# The variables have the same names as the options, with
821# dashes changed to underlines.
822cache_file=/dev/null
823exec_prefix=NONE
824no_create=
825no_recursion=
826prefix=NONE
827program_prefix=NONE
828program_suffix=NONE
829program_transform_name=s,x,x,
830silent=
831site=
832srcdir=
833verbose=
834x_includes=NONE
835x_libraries=NONE
836
837# Installation directory options.
838# These are left unexpanded so users can "make install exec_prefix=/foo"
839# and all the variables that are supposed to be based on exec_prefix
840# by default will actually change.
841# Use braces instead of parens because sh, perl, etc. also accept them.
842# (The list follows the same order as the GNU Coding Standards.)
843bindir='${exec_prefix}/bin'
844sbindir='${exec_prefix}/sbin'
845libexecdir='${exec_prefix}/libexec'
846datarootdir='${prefix}/share'
847datadir='${datarootdir}'
848sysconfdir='${prefix}/etc'
849sharedstatedir='${prefix}/com'
850localstatedir='${prefix}/var'
851includedir='${prefix}/include'
852oldincludedir='/usr/include'
853docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
854infodir='${datarootdir}/info'
855htmldir='${docdir}'
856dvidir='${docdir}'
857pdfdir='${docdir}'
858psdir='${docdir}'
859libdir='${exec_prefix}/lib'
860localedir='${datarootdir}/locale'
861mandir='${datarootdir}/man'
862
863ac_prev=
864ac_dashdash=
865for ac_option
866do
867 # If the previous option needs an argument, assign it.
868 if test -n "$ac_prev"; then
869 eval $ac_prev=\$ac_option
870 ac_prev=
871 continue
872 fi
873
874 case $ac_option in
22e05272
JM
875 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
876 *=) ac_optarg= ;;
877 *) ac_optarg=yes ;;
2077db1b
CT
878 esac
879
880 # Accept the important Cygnus configure options, so we can diagnose typos.
881
882 case $ac_dashdash$ac_option in
883 --)
884 ac_dashdash=yes ;;
885
886 -bindir | --bindir | --bindi | --bind | --bin | --bi)
887 ac_prev=bindir ;;
888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889 bindir=$ac_optarg ;;
890
891 -build | --build | --buil | --bui | --bu)
892 ac_prev=build_alias ;;
893 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894 build_alias=$ac_optarg ;;
895
896 -cache-file | --cache-file | --cache-fil | --cache-fi \
897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898 ac_prev=cache_file ;;
899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901 cache_file=$ac_optarg ;;
902
903 --config-cache | -C)
904 cache_file=config.cache ;;
905
906 -datadir | --datadir | --datadi | --datad)
907 ac_prev=datadir ;;
908 -datadir=* | --datadir=* | --datadi=* | --datad=*)
909 datadir=$ac_optarg ;;
910
911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912 | --dataroo | --dataro | --datar)
913 ac_prev=datarootdir ;;
914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916 datarootdir=$ac_optarg ;;
917
918 -disable-* | --disable-*)
919 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 922 as_fn_error $? "invalid feature name: $ac_useropt"
2077db1b
CT
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
926 *"
927"enable_$ac_useropt"
928"*) ;;
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
931 esac
932 eval enable_$ac_useropt=no ;;
933
934 -docdir | --docdir | --docdi | --doc | --do)
935 ac_prev=docdir ;;
936 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
937 docdir=$ac_optarg ;;
938
939 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
940 ac_prev=dvidir ;;
941 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
942 dvidir=$ac_optarg ;;
943
944 -enable-* | --enable-*)
945 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 948 as_fn_error $? "invalid feature name: $ac_useropt"
2077db1b
CT
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
952 *"
953"enable_$ac_useropt"
954"*) ;;
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
957 esac
958 eval enable_$ac_useropt=\$ac_optarg ;;
959
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
967 exec_prefix=$ac_optarg ;;
968
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
971 with_gas=yes ;;
972
973 -help | --help | --hel | --he | -h)
974 ac_init_help=long ;;
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
979
980 -host | --host | --hos | --ho)
981 ac_prev=host_alias ;;
982 -host=* | --host=* | --hos=* | --ho=*)
983 host_alias=$ac_optarg ;;
984
985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986 ac_prev=htmldir ;;
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988 | --ht=*)
989 htmldir=$ac_optarg ;;
990
991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
996 includedir=$ac_optarg ;;
997
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
999 ac_prev=infodir ;;
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001 infodir=$ac_optarg ;;
1002
1003 -libdir | --libdir | --libdi | --libd)
1004 ac_prev=libdir ;;
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006 libdir=$ac_optarg ;;
1007
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
1013 libexecdir=$ac_optarg ;;
1014
1015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1019
1020 -localstatedir | --localstatedir | --localstatedi | --localstated \
1021 | --localstate | --localstat | --localsta | --localst | --locals)
1022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025 localstatedir=$ac_optarg ;;
1026
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028 ac_prev=mandir ;;
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030 mandir=$ac_optarg ;;
1031
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1034 with_fp=no ;;
1035
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037 | --no-cr | --no-c | -n)
1038 no_create=yes ;;
1039
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042 no_recursion=yes ;;
1043
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051 oldincludedir=$ac_optarg ;;
1052
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054 ac_prev=prefix ;;
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056 prefix=$ac_optarg ;;
1057
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063 program_prefix=$ac_optarg ;;
1064
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070 program_suffix=$ac_optarg ;;
1071
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
1087 program_transform_name=$ac_optarg ;;
1088
1089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090 ac_prev=pdfdir ;;
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1093
1094 -psdir | --psdir | --psdi | --psd | --ps)
1095 ac_prev=psdir ;;
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097 psdir=$ac_optarg ;;
1098
1099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1101 silent=yes ;;
1102
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104 ac_prev=sbindir ;;
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106 | --sbi=* | --sb=*)
1107 sbindir=$ac_optarg ;;
1108
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1112 | --sha | --sh)
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117 | --sha=* | --sh=*)
1118 sharedstatedir=$ac_optarg ;;
1119
1120 -site | --site | --sit)
1121 ac_prev=site ;;
1122 -site=* | --site=* | --sit=*)
1123 site=$ac_optarg ;;
1124
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126 ac_prev=srcdir ;;
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1129
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1136
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1141
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143 verbose=yes ;;
1144
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1147
1148 -with-* | --with-*)
1149 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1152 as_fn_error $? "invalid package name: $ac_useropt"
2077db1b
CT
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1156 *"
1157"with_$ac_useropt"
1158"*) ;;
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
1161 esac
1162 eval with_$ac_useropt=\$ac_optarg ;;
1163
1164 -without-* | --without-*)
1165 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1168 as_fn_error $? "invalid package name: $ac_useropt"
2077db1b
CT
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1172 *"
1173"with_$ac_useropt"
1174"*) ;;
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1177 esac
1178 eval with_$ac_useropt=no ;;
1179
1180 --x)
1181 # Obsolete; use --with-x.
1182 with_x=yes ;;
1183
1184 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1185 | --x-incl | --x-inc | --x-in | --x-i)
1186 ac_prev=x_includes ;;
1187 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1188 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1189 x_includes=$ac_optarg ;;
1190
1191 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1192 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1193 ac_prev=x_libraries ;;
1194 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1195 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1196 x_libraries=$ac_optarg ;;
1197
22e05272
JM
1198 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1199Try \`$0 --help' for more information"
2077db1b
CT
1200 ;;
1201
1202 *=*)
1203 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1204 # Reject names that are not valid shell variable names.
1205 case $ac_envvar in #(
1206 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1207 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2077db1b
CT
1208 esac
1209 eval $ac_envvar=\$ac_optarg
1210 export $ac_envvar ;;
1211
1212 *)
1213 # FIXME: should be removed in autoconf 3.0.
1214 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1215 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1216 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1217 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2077db1b
CT
1218 ;;
1219
1220 esac
1221done
1222
1223if test -n "$ac_prev"; then
1224 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1225 as_fn_error $? "missing argument to $ac_option"
2077db1b
CT
1226fi
1227
1228if test -n "$ac_unrecognized_opts"; then
1229 case $enable_option_checking in
1230 no) ;;
22e05272 1231 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2077db1b
CT
1232 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1233 esac
1234fi
1235
1236# Check all directory arguments for consistency.
1237for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1238 datadir sysconfdir sharedstatedir localstatedir includedir \
1239 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1240 libdir localedir mandir
1241do
1242 eval ac_val=\$$ac_var
1243 # Remove trailing slashes.
1244 case $ac_val in
1245 */ )
1246 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1247 eval $ac_var=\$ac_val;;
1248 esac
1249 # Be sure to have absolute directory names.
1250 case $ac_val in
1251 [\\/$]* | ?:[\\/]* ) continue;;
1252 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1253 esac
22e05272 1254 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2077db1b
CT
1255done
1256
1257# There might be people who depend on the old broken behavior: `$host'
1258# used to hold the argument of --host etc.
1259# FIXME: To remove some day.
1260build=$build_alias
1261host=$host_alias
1262target=$target_alias
1263
1264# FIXME: To remove some day.
1265if test "x$host_alias" != x; then
1266 if test "x$build_alias" = x; then
1267 cross_compiling=maybe
2077db1b
CT
1268 elif test "x$build_alias" != "x$host_alias"; then
1269 cross_compiling=yes
1270 fi
1271fi
1272
1273ac_tool_prefix=
1274test -n "$host_alias" && ac_tool_prefix=$host_alias-
1275
1276test "$silent" = yes && exec 6>/dev/null
1277
1278
1279ac_pwd=`pwd` && test -n "$ac_pwd" &&
1280ac_ls_di=`ls -di .` &&
1281ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1282 as_fn_error $? "working directory cannot be determined"
2077db1b 1283test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1284 as_fn_error $? "pwd does not report name of working directory"
2077db1b
CT
1285
1286
1287# Find the source files, if location was not specified.
1288if test -z "$srcdir"; then
1289 ac_srcdir_defaulted=yes
1290 # Try the directory containing this script, then the parent directory.
1291 ac_confdir=`$as_dirname -- "$as_myself" ||
1292$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1293 X"$as_myself" : 'X\(//\)[^/]' \| \
1294 X"$as_myself" : 'X\(//\)$' \| \
1295 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1296$as_echo X"$as_myself" |
1297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1298 s//\1/
1299 q
1300 }
1301 /^X\(\/\/\)[^/].*/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\/\)$/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\).*/{
1310 s//\1/
1311 q
1312 }
1313 s/.*/./; q'`
1314 srcdir=$ac_confdir
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1316 srcdir=..
1317 fi
1318else
1319 ac_srcdir_defaulted=no
1320fi
1321if test ! -r "$srcdir/$ac_unique_file"; then
1322 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1323 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2077db1b
CT
1324fi
1325ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1326ac_abs_confdir=`(
22e05272 1327 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2077db1b
CT
1328 pwd)`
1329# When building in place, set srcdir=.
1330if test "$ac_abs_confdir" = "$ac_pwd"; then
1331 srcdir=.
1332fi
1333# Remove unnecessary trailing slashes from srcdir.
1334# Double slashes in file names in object file debugging info
1335# mess up M-x gdb in Emacs.
1336case $srcdir in
1337*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1338esac
1339for ac_var in $ac_precious_vars; do
1340 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1341 eval ac_env_${ac_var}_value=\$${ac_var}
1342 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1343 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1344done
1345
1346#
1347# Report the --help message.
1348#
1349if test "$ac_init_help" = "long"; then
1350 # Omit some internal or obsolete options to make the list less imposing.
1351 # This message is too long to be a string in the A/UX 3.1 sh.
1352 cat <<_ACEOF
1353\`configure' configures GNU Vtable Verification Runtime Library 1.0 to adapt to many kinds of systems.
1354
1355Usage: $0 [OPTION]... [VAR=VALUE]...
1356
1357To assign environment variables (e.g., CC, CFLAGS...), specify them as
1358VAR=VALUE. See below for descriptions of some of the useful variables.
1359
1360Defaults for the options are specified in brackets.
1361
1362Configuration:
1363 -h, --help display this help and exit
1364 --help=short display options specific to this package
1365 --help=recursive display the short help of all the included packages
1366 -V, --version display version information and exit
22e05272 1367 -q, --quiet, --silent do not print \`checking ...' messages
2077db1b
CT
1368 --cache-file=FILE cache test results in FILE [disabled]
1369 -C, --config-cache alias for \`--cache-file=config.cache'
1370 -n, --no-create do not create output files
1371 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1372
1373Installation directories:
1374 --prefix=PREFIX install architecture-independent files in PREFIX
1375 [$ac_default_prefix]
1376 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1377 [PREFIX]
1378
1379By default, \`make install' will install all the files in
1380\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1381an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1382for instance \`--prefix=\$HOME'.
1383
1384For better control, use the options below.
1385
1386Fine tuning of the installation directories:
1387 --bindir=DIR user executables [EPREFIX/bin]
1388 --sbindir=DIR system admin executables [EPREFIX/sbin]
1389 --libexecdir=DIR program executables [EPREFIX/libexec]
1390 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1391 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1392 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1393 --libdir=DIR object code libraries [EPREFIX/lib]
1394 --includedir=DIR C header files [PREFIX/include]
1395 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1396 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1397 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1398 --infodir=DIR info documentation [DATAROOTDIR/info]
1399 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1400 --mandir=DIR man documentation [DATAROOTDIR/man]
1401 --docdir=DIR documentation root [DATAROOTDIR/doc/libvtv]
1402 --htmldir=DIR html documentation [DOCDIR]
1403 --dvidir=DIR dvi documentation [DOCDIR]
1404 --pdfdir=DIR pdf documentation [DOCDIR]
1405 --psdir=DIR ps documentation [DOCDIR]
1406_ACEOF
1407
1408 cat <<\_ACEOF
1409
1410Program names:
1411 --program-prefix=PREFIX prepend PREFIX to installed program names
1412 --program-suffix=SUFFIX append SUFFIX to installed program names
1413 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1414
1415System types:
1416 --build=BUILD configure for building on BUILD [guessed]
1417 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1418 --target=TARGET configure for building compilers for TARGET [HOST]
1419_ACEOF
1420fi
1421
1422if test -n "$ac_init_help"; then
1423 case $ac_init_help in
1424 short | recursive ) echo "Configuration of GNU Vtable Verification Runtime Library 1.0:";;
1425 esac
1426 cat <<\_ACEOF
1427
1428Optional Features:
1429 --disable-option-checking ignore unrecognized --enable/--with options
1430 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1431 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
701fa326 1432 --enable-multilib build many library versions (default)
2077db1b 1433 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
56fc7835 1434 --enable-vtable-verify Enable vtable verification feature
22e05272
JM
1435 --enable-dependency-tracking
1436 do not reject slow dependency extractors
1437 --disable-dependency-tracking
1438 speeds up one-time build
1439 --enable-silent-rules less verbose build output (undo: "make V=1")
1440 --disable-silent-rules verbose build output (undo: "make V=0")
1441 --enable-maintainer-mode
1442 enable make rules and dependencies not useful (and
1443 sometimes confusing) to the casual installer
2077db1b
CT
1444 --enable-shared[=PKGS] build shared libraries [default=yes]
1445 --enable-static[=PKGS] build static libraries [default=yes]
1446 --enable-fast-install[=PKGS]
1447 optimize for fast installation [default=yes]
1448 --disable-libtool-lock avoid locking (might break parallel builds)
8d286dd1 1449 --enable-cet enable Intel CET in target libraries [default=auto]
2077db1b
CT
1450
1451Optional Packages:
1452 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1453 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
e8e66971
MR
1454 --with-toolexeclibdir=DIR
1455 install libraries built with a cross compiler within
1456 DIR
2077db1b
CT
1457 --with-pic try to use only PIC/non-PIC objects [default=use
1458 both]
1459 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
3c36aa6b
JJ
1460 --with-gcc-major-version-only
1461 use only GCC major number in filesystem paths
2077db1b
CT
1462
1463Some influential environment variables:
1464 CC C compiler command
1465 CFLAGS C compiler flags
1466 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1467 nonstandard directory <lib dir>
1468 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1469 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2077db1b 1470 you have headers in a nonstandard directory <include dir>
8bc16536 1471 CPP C preprocessor
2077db1b
CT
1472 CXX C++ compiler command
1473 CXXFLAGS C++ compiler flags
2077db1b
CT
1474 CXXCPP C++ preprocessor
1475
1476Use these variables to override the choices made by `configure' or to help
1477it to find libraries and programs with nonstandard names/locations.
1478
1479Report bugs to the package provider.
1480GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
1481General help using GNU software: <http://www.gnu.org/gethelp/>.
1482_ACEOF
1483ac_status=$?
1484fi
1485
1486if test "$ac_init_help" = "recursive"; then
1487 # If there are subdirs, report their specific --help.
1488 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1489 test -d "$ac_dir" ||
1490 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1491 continue
1492 ac_builddir=.
1493
1494case "$ac_dir" in
1495.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496*)
1497 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1498 # A ".." for each directory in $ac_dir_suffix.
1499 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1500 case $ac_top_builddir_sub in
1501 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1503 esac ;;
1504esac
1505ac_abs_top_builddir=$ac_pwd
1506ac_abs_builddir=$ac_pwd$ac_dir_suffix
1507# for backward compatibility:
1508ac_top_builddir=$ac_top_build_prefix
1509
1510case $srcdir in
1511 .) # We are building in place.
1512 ac_srcdir=.
1513 ac_top_srcdir=$ac_top_builddir_sub
1514 ac_abs_top_srcdir=$ac_pwd ;;
1515 [\\/]* | ?:[\\/]* ) # Absolute name.
1516 ac_srcdir=$srcdir$ac_dir_suffix;
1517 ac_top_srcdir=$srcdir
1518 ac_abs_top_srcdir=$srcdir ;;
1519 *) # Relative name.
1520 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1521 ac_top_srcdir=$ac_top_build_prefix$srcdir
1522 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1523esac
1524ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1525
1526 cd "$ac_dir" || { ac_status=$?; continue; }
1527 # Check for guested configure.
1528 if test -f "$ac_srcdir/configure.gnu"; then
1529 echo &&
1530 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1531 elif test -f "$ac_srcdir/configure"; then
1532 echo &&
1533 $SHELL "$ac_srcdir/configure" --help=recursive
1534 else
1535 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1536 fi || ac_status=$?
1537 cd "$ac_pwd" || { ac_status=$?; break; }
1538 done
1539fi
1540
1541test -n "$ac_init_help" && exit $ac_status
1542if $ac_init_version; then
1543 cat <<\_ACEOF
1544GNU Vtable Verification Runtime Library configure 1.0
22e05272 1545generated by GNU Autoconf 2.69
2077db1b 1546
22e05272 1547Copyright (C) 2012 Free Software Foundation, Inc.
2077db1b
CT
1548This configure script is free software; the Free Software Foundation
1549gives unlimited permission to copy, distribute and modify it.
1550_ACEOF
1551 exit
1552fi
1553
1554## ------------------------ ##
1555## Autoconf initialization. ##
1556## ------------------------ ##
1557
1558# ac_fn_c_try_compile LINENO
1559# --------------------------
1560# Try to compile conftest.$ac_ext, and return whether this succeeded.
1561ac_fn_c_try_compile ()
1562{
1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564 rm -f conftest.$ac_objext
1565 if { { ac_try="$ac_compile"
1566case "(($ac_try" in
1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568 *) ac_try_echo=$ac_try;;
1569esac
1570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571$as_echo "$ac_try_echo"; } >&5
1572 (eval "$ac_compile") 2>conftest.err
1573 ac_status=$?
1574 if test -s conftest.err; then
1575 grep -v '^ *+' conftest.err >conftest.er1
1576 cat conftest.er1 >&5
1577 mv -f conftest.er1 conftest.err
1578 fi
1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; } && {
1581 test -z "$ac_c_werror_flag" ||
1582 test ! -s conftest.err
1583 } && test -s conftest.$ac_objext; then :
1584 ac_retval=0
1585else
1586 $as_echo "$as_me: failed program was:" >&5
1587sed 's/^/| /' conftest.$ac_ext >&5
1588
1589 ac_retval=1
1590fi
22e05272
JM
1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592 as_fn_set_status $ac_retval
2077db1b
CT
1593
1594} # ac_fn_c_try_compile
1595
8bc16536
CT
1596# ac_fn_c_try_cpp LINENO
1597# ----------------------
1598# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1599ac_fn_c_try_cpp ()
2077db1b
CT
1600{
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8bc16536 1602 if { { ac_try="$ac_cpp conftest.$ac_ext"
2077db1b
CT
1603case "(($ac_try" in
1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1606esac
1607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608$as_echo "$ac_try_echo"; } >&5
8bc16536 1609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2077db1b
CT
1610 ac_status=$?
1611 if test -s conftest.err; then
1612 grep -v '^ *+' conftest.err >conftest.er1
1613 cat conftest.er1 >&5
1614 mv -f conftest.er1 conftest.err
1615 fi
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272 1617 test $ac_status = 0; } > conftest.i && {
8bc16536 1618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2077db1b 1619 test ! -s conftest.err
8bc16536 1620 }; then :
2077db1b
CT
1621 ac_retval=0
1622else
1623 $as_echo "$as_me: failed program was:" >&5
1624sed 's/^/| /' conftest.$ac_ext >&5
1625
8bc16536 1626 ac_retval=1
2077db1b 1627fi
22e05272
JM
1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629 as_fn_set_status $ac_retval
2077db1b 1630
8bc16536 1631} # ac_fn_c_try_cpp
2077db1b 1632
8bc16536
CT
1633# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1634# -------------------------------------------------------
1635# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1636# the include files in INCLUDES and setting the cache variable VAR
1637# accordingly.
1638ac_fn_c_check_header_mongrel ()
1639{
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22e05272 1641 if eval \${$3+:} false; then :
8bc16536
CT
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1643$as_echo_n "checking for $2... " >&6; }
22e05272 1644if eval \${$3+:} false; then :
8bc16536
CT
1645 $as_echo_n "(cached) " >&6
1646fi
1647eval ac_res=\$$3
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1649$as_echo "$ac_res" >&6; }
1650else
1651 # Is the header compilable?
1652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1653$as_echo_n "checking $2 usability... " >&6; }
1654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655/* end confdefs.h. */
1656$4
1657#include <$2>
1658_ACEOF
1659if ac_fn_c_try_compile "$LINENO"; then :
1660 ac_header_compiler=yes
1661else
1662 ac_header_compiler=no
1663fi
1664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1666$as_echo "$ac_header_compiler" >&6; }
1667
1668# Is the header present?
1669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1670$as_echo_n "checking $2 presence... " >&6; }
1671cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672/* end confdefs.h. */
1673#include <$2>
1674_ACEOF
1675if ac_fn_c_try_cpp "$LINENO"; then :
1676 ac_header_preproc=yes
1677else
1678 ac_header_preproc=no
1679fi
22e05272 1680rm -f conftest.err conftest.i conftest.$ac_ext
8bc16536
CT
1681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1682$as_echo "$ac_header_preproc" >&6; }
1683
1684# So? What about this header?
1685case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1686 yes:no: )
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1688$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1690$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1691 ;;
1692 no:yes:* )
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1694$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1696$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1698$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1700$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1702$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1703 ;;
1704esac
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1706$as_echo_n "checking for $2... " >&6; }
22e05272 1707if eval \${$3+:} false; then :
8bc16536
CT
1708 $as_echo_n "(cached) " >&6
1709else
1710 eval "$3=\$ac_header_compiler"
1711fi
1712eval ac_res=\$$3
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1714$as_echo "$ac_res" >&6; }
1715fi
22e05272 1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
8bc16536
CT
1717
1718} # ac_fn_c_check_header_mongrel
1719
1720# ac_fn_c_try_run LINENO
1721# ----------------------
1722# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1723# that executables *can* be run.
1724ac_fn_c_try_run ()
2077db1b
CT
1725{
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2077db1b
CT
1727 if { { ac_try="$ac_link"
1728case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731esac
1732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733$as_echo "$ac_try_echo"; } >&5
8bc16536 1734 (eval "$ac_link") 2>&5
2077db1b 1735 ac_status=$?
2077db1b 1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8bc16536
CT
1737 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1738 { { case "(($ac_try" in
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1741esac
1742eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743$as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_try") 2>&5
1745 ac_status=$?
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; }; }; then :
2077db1b
CT
1748 ac_retval=0
1749else
8bc16536
CT
1750 $as_echo "$as_me: program exited with status $ac_status" >&5
1751 $as_echo "$as_me: failed program was:" >&5
2077db1b
CT
1752sed 's/^/| /' conftest.$ac_ext >&5
1753
8bc16536 1754 ac_retval=$ac_status
2077db1b 1755fi
2077db1b 1756 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758 as_fn_set_status $ac_retval
2077db1b 1759
8bc16536 1760} # ac_fn_c_try_run
2077db1b
CT
1761
1762# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1763# -------------------------------------------------------
1764# Tests whether HEADER exists and can be compiled using the include files in
1765# INCLUDES, setting the cache variable VAR accordingly.
1766ac_fn_c_check_header_compile ()
1767{
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770$as_echo_n "checking for $2... " >&6; }
22e05272 1771if eval \${$3+:} false; then :
2077db1b
CT
1772 $as_echo_n "(cached) " >&6
1773else
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775/* end confdefs.h. */
1776$4
1777#include <$2>
1778_ACEOF
1779if ac_fn_c_try_compile "$LINENO"; then :
1780 eval "$3=yes"
1781else
1782 eval "$3=no"
1783fi
1784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1785fi
1786eval ac_res=\$$3
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788$as_echo "$ac_res" >&6; }
22e05272 1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2077db1b
CT
1790
1791} # ac_fn_c_check_header_compile
1792
8bc16536
CT
1793# ac_fn_c_try_link LINENO
1794# -----------------------
1795# Try to link conftest.$ac_ext, and return whether this succeeded.
1796ac_fn_c_try_link ()
2077db1b
CT
1797{
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8bc16536
CT
1799 rm -f conftest.$ac_objext conftest$ac_exeext
1800 if { { ac_try="$ac_link"
2077db1b
CT
1801case "(($ac_try" in
1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803 *) ac_try_echo=$ac_try;;
1804esac
1805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806$as_echo "$ac_try_echo"; } >&5
8bc16536 1807 (eval "$ac_link") 2>conftest.err
2077db1b
CT
1808 ac_status=$?
1809 if test -s conftest.err; then
1810 grep -v '^ *+' conftest.err >conftest.er1
1811 cat conftest.er1 >&5
1812 mv -f conftest.er1 conftest.err
1813 fi
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8bc16536
CT
1815 test $ac_status = 0; } && {
1816 test -z "$ac_c_werror_flag" ||
2077db1b 1817 test ! -s conftest.err
8bc16536
CT
1818 } && test -s conftest$ac_exeext && {
1819 test "$cross_compiling" = yes ||
22e05272 1820 test -x conftest$ac_exeext
2077db1b
CT
1821 }; then :
1822 ac_retval=0
1823else
1824 $as_echo "$as_me: failed program was:" >&5
1825sed 's/^/| /' conftest.$ac_ext >&5
1826
8bc16536 1827 ac_retval=1
2077db1b 1828fi
8bc16536
CT
1829 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1830 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1831 # interfere with the next link command; also delete a directory that is
1832 # left behind by Apple's compiler. We do this before executing the actions.
2077db1b 1833 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835 as_fn_set_status $ac_retval
2077db1b 1836
8bc16536 1837} # ac_fn_c_try_link
2077db1b
CT
1838
1839# ac_fn_c_check_func LINENO FUNC VAR
1840# ----------------------------------
1841# Tests whether FUNC exists, setting the cache variable VAR accordingly
1842ac_fn_c_check_func ()
1843{
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1846$as_echo_n "checking for $2... " >&6; }
22e05272 1847if eval \${$3+:} false; then :
2077db1b
CT
1848 $as_echo_n "(cached) " >&6
1849else
1850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851/* end confdefs.h. */
1852/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1854#define $2 innocuous_$2
1855
1856/* System header to define __stub macros and hopefully few prototypes,
1857 which can conflict with char $2 (); below.
1858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1859 <limits.h> exists even on freestanding compilers. */
1860
1861#ifdef __STDC__
1862# include <limits.h>
1863#else
1864# include <assert.h>
1865#endif
1866
1867#undef $2
1868
1869/* Override any GCC internal prototype to avoid an error.
1870 Use char because int might match the return type of a GCC
1871 builtin and then its argument prototype would still apply. */
1872#ifdef __cplusplus
1873extern "C"
1874#endif
1875char $2 ();
1876/* The GNU C library defines this for functions which it implements
1877 to always fail with ENOSYS. Some functions are actually named
1878 something starting with __ and the normal name is an alias. */
1879#if defined __stub_$2 || defined __stub___$2
1880choke me
1881#endif
1882
1883int
1884main ()
1885{
1886return $2 ();
1887 ;
1888 return 0;
1889}
1890_ACEOF
1891if ac_fn_c_try_link "$LINENO"; then :
1892 eval "$3=yes"
1893else
1894 eval "$3=no"
1895fi
1896rm -f core conftest.err conftest.$ac_objext \
1897 conftest$ac_exeext conftest.$ac_ext
1898fi
1899eval ac_res=\$$3
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901$as_echo "$ac_res" >&6; }
22e05272 1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2077db1b
CT
1903
1904} # ac_fn_c_check_func
1905
8bc16536
CT
1906# ac_fn_cxx_try_compile LINENO
1907# ----------------------------
1908# Try to compile conftest.$ac_ext, and return whether this succeeded.
1909ac_fn_cxx_try_compile ()
1910{
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 rm -f conftest.$ac_objext
1913 if { { ac_try="$ac_compile"
1914case "(($ac_try" in
1915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1916 *) ac_try_echo=$ac_try;;
1917esac
1918eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1919$as_echo "$ac_try_echo"; } >&5
1920 (eval "$ac_compile") 2>conftest.err
1921 ac_status=$?
1922 if test -s conftest.err; then
1923 grep -v '^ *+' conftest.err >conftest.er1
1924 cat conftest.er1 >&5
1925 mv -f conftest.er1 conftest.err
1926 fi
1927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928 test $ac_status = 0; } && {
1929 test -z "$ac_cxx_werror_flag" ||
1930 test ! -s conftest.err
1931 } && test -s conftest.$ac_objext; then :
1932 ac_retval=0
1933else
1934 $as_echo "$as_me: failed program was:" >&5
1935sed 's/^/| /' conftest.$ac_ext >&5
1936
1937 ac_retval=1
1938fi
22e05272
JM
1939 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940 as_fn_set_status $ac_retval
8bc16536
CT
1941
1942} # ac_fn_cxx_try_compile
1943
2077db1b
CT
1944# ac_fn_cxx_try_cpp LINENO
1945# ------------------------
1946# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1947ac_fn_cxx_try_cpp ()
1948{
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 if { { ac_try="$ac_cpp conftest.$ac_ext"
1951case "(($ac_try" in
1952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953 *) ac_try_echo=$ac_try;;
1954esac
1955eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956$as_echo "$ac_try_echo"; } >&5
1957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1958 ac_status=$?
1959 if test -s conftest.err; then
1960 grep -v '^ *+' conftest.err >conftest.er1
1961 cat conftest.er1 >&5
1962 mv -f conftest.er1 conftest.err
1963 fi
1964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272 1965 test $ac_status = 0; } > conftest.i && {
2077db1b
CT
1966 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1967 test ! -s conftest.err
1968 }; then :
1969 ac_retval=0
1970else
1971 $as_echo "$as_me: failed program was:" >&5
1972sed 's/^/| /' conftest.$ac_ext >&5
1973
1974 ac_retval=1
1975fi
22e05272
JM
1976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977 as_fn_set_status $ac_retval
2077db1b
CT
1978
1979} # ac_fn_cxx_try_cpp
1980
1981# ac_fn_cxx_try_link LINENO
1982# -------------------------
1983# Try to link conftest.$ac_ext, and return whether this succeeded.
1984ac_fn_cxx_try_link ()
1985{
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987 rm -f conftest.$ac_objext conftest$ac_exeext
1988 if { { ac_try="$ac_link"
1989case "(($ac_try" in
1990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1991 *) ac_try_echo=$ac_try;;
1992esac
1993eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1994$as_echo "$ac_try_echo"; } >&5
1995 (eval "$ac_link") 2>conftest.err
1996 ac_status=$?
1997 if test -s conftest.err; then
1998 grep -v '^ *+' conftest.err >conftest.er1
1999 cat conftest.er1 >&5
2000 mv -f conftest.er1 conftest.err
2001 fi
2002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2003 test $ac_status = 0; } && {
2004 test -z "$ac_cxx_werror_flag" ||
2005 test ! -s conftest.err
2006 } && test -s conftest$ac_exeext && {
2007 test "$cross_compiling" = yes ||
22e05272 2008 test -x conftest$ac_exeext
2077db1b
CT
2009 }; then :
2010 ac_retval=0
2011else
2012 $as_echo "$as_me: failed program was:" >&5
2013sed 's/^/| /' conftest.$ac_ext >&5
2014
2015 ac_retval=1
2016fi
2017 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2018 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2019 # interfere with the next link command; also delete a directory that is
2020 # left behind by Apple's compiler. We do this before executing the actions.
2021 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
2022 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2023 as_fn_set_status $ac_retval
2077db1b
CT
2024
2025} # ac_fn_cxx_try_link
2026cat >config.log <<_ACEOF
2027This file contains any messages produced by compilers while
2028running configure, to aid debugging if configure makes a mistake.
2029
2030It was created by GNU Vtable Verification Runtime Library $as_me 1.0, which was
22e05272 2031generated by GNU Autoconf 2.69. Invocation command line was
2077db1b
CT
2032
2033 $ $0 $@
2034
2035_ACEOF
2036exec 5>>config.log
2037{
2038cat <<_ASUNAME
2039## --------- ##
2040## Platform. ##
2041## --------- ##
2042
2043hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2044uname -m = `(uname -m) 2>/dev/null || echo unknown`
2045uname -r = `(uname -r) 2>/dev/null || echo unknown`
2046uname -s = `(uname -s) 2>/dev/null || echo unknown`
2047uname -v = `(uname -v) 2>/dev/null || echo unknown`
2048
2049/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2050/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2051
2052/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2053/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2054/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2055/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2056/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2057/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2058/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2059
2060_ASUNAME
2061
2062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063for as_dir in $PATH
2064do
2065 IFS=$as_save_IFS
2066 test -z "$as_dir" && as_dir=.
2067 $as_echo "PATH: $as_dir"
2068 done
2069IFS=$as_save_IFS
2070
2071} >&5
2072
2073cat >&5 <<_ACEOF
2074
2075
2076## ----------- ##
2077## Core tests. ##
2078## ----------- ##
2079
2080_ACEOF
2081
2082
2083# Keep a trace of the command line.
2084# Strip out --no-create and --no-recursion so they do not pile up.
2085# Strip out --silent because we don't want to record it for future runs.
2086# Also quote any args containing shell meta-characters.
2087# Make two passes to allow for proper duplicate-argument suppression.
2088ac_configure_args=
2089ac_configure_args0=
2090ac_configure_args1=
2091ac_must_keep_next=false
2092for ac_pass in 1 2
2093do
2094 for ac_arg
2095 do
2096 case $ac_arg in
2097 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2099 | -silent | --silent | --silen | --sile | --sil)
2100 continue ;;
2101 *\'*)
2102 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2103 esac
2104 case $ac_pass in
2105 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2106 2)
2107 as_fn_append ac_configure_args1 " '$ac_arg'"
2108 if test $ac_must_keep_next = true; then
2109 ac_must_keep_next=false # Got value, back to normal.
2110 else
2111 case $ac_arg in
2112 *=* | --config-cache | -C | -disable-* | --disable-* \
2113 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2114 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2115 | -with-* | --with-* | -without-* | --without-* | --x)
2116 case "$ac_configure_args0 " in
2117 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2118 esac
2119 ;;
2120 -* ) ac_must_keep_next=true ;;
2121 esac
2122 fi
2123 as_fn_append ac_configure_args " '$ac_arg'"
2124 ;;
2125 esac
2126 done
2127done
2128{ ac_configure_args0=; unset ac_configure_args0;}
2129{ ac_configure_args1=; unset ac_configure_args1;}
2130
2131# When interrupted or exit'd, cleanup temporary files, and complete
2132# config.log. We remove comments because anyway the quotes in there
2133# would cause problems or look ugly.
2134# WARNING: Use '\'' to represent an apostrophe within the trap.
2135# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2136trap 'exit_status=$?
2137 # Save into config.log some information that might help in debugging.
2138 {
2139 echo
2140
22e05272 2141 $as_echo "## ---------------- ##
2077db1b 2142## Cache variables. ##
22e05272 2143## ---------------- ##"
2077db1b
CT
2144 echo
2145 # The following way of writing the cache mishandles newlines in values,
2146(
2147 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2148 eval ac_val=\$$ac_var
2149 case $ac_val in #(
2150 *${as_nl}*)
2151 case $ac_var in #(
2152 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2153$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2154 esac
2155 case $ac_var in #(
2156 _ | IFS | as_nl) ;; #(
2157 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2158 *) { eval $ac_var=; unset $ac_var;} ;;
2159 esac ;;
2160 esac
2161 done
2162 (set) 2>&1 |
2163 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2164 *${as_nl}ac_space=\ *)
2165 sed -n \
2166 "s/'\''/'\''\\\\'\'''\''/g;
2167 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2168 ;; #(
2169 *)
2170 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2171 ;;
2172 esac |
2173 sort
2174)
2175 echo
2176
22e05272 2177 $as_echo "## ----------------- ##
2077db1b 2178## Output variables. ##
22e05272 2179## ----------------- ##"
2077db1b
CT
2180 echo
2181 for ac_var in $ac_subst_vars
2182 do
2183 eval ac_val=\$$ac_var
2184 case $ac_val in
2185 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2186 esac
2187 $as_echo "$ac_var='\''$ac_val'\''"
2188 done | sort
2189 echo
2190
2191 if test -n "$ac_subst_files"; then
22e05272 2192 $as_echo "## ------------------- ##
2077db1b 2193## File substitutions. ##
22e05272 2194## ------------------- ##"
2077db1b
CT
2195 echo
2196 for ac_var in $ac_subst_files
2197 do
2198 eval ac_val=\$$ac_var
2199 case $ac_val in
2200 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2201 esac
2202 $as_echo "$ac_var='\''$ac_val'\''"
2203 done | sort
2204 echo
2205 fi
2206
2207 if test -s confdefs.h; then
22e05272 2208 $as_echo "## ----------- ##
2077db1b 2209## confdefs.h. ##
22e05272 2210## ----------- ##"
2077db1b
CT
2211 echo
2212 cat confdefs.h
2213 echo
2214 fi
2215 test "$ac_signal" != 0 &&
2216 $as_echo "$as_me: caught signal $ac_signal"
2217 $as_echo "$as_me: exit $exit_status"
2218 } >&5
2219 rm -f core *.core core.conftest.* &&
2220 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2221 exit $exit_status
2222' 0
2223for ac_signal in 1 2 13 15; do
2224 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2225done
2226ac_signal=0
2227
2228# confdefs.h avoids OS command line length limits that DEFS can exceed.
2229rm -f -r conftest* confdefs.h
2230
2231$as_echo "/* confdefs.h */" > confdefs.h
2232
2233# Predefined preprocessor variables.
2234
2235cat >>confdefs.h <<_ACEOF
2236#define PACKAGE_NAME "$PACKAGE_NAME"
2237_ACEOF
2238
2239cat >>confdefs.h <<_ACEOF
2240#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2241_ACEOF
2242
2243cat >>confdefs.h <<_ACEOF
2244#define PACKAGE_VERSION "$PACKAGE_VERSION"
2245_ACEOF
2246
2247cat >>confdefs.h <<_ACEOF
2248#define PACKAGE_STRING "$PACKAGE_STRING"
2249_ACEOF
2250
2251cat >>confdefs.h <<_ACEOF
2252#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2253_ACEOF
2254
2255cat >>confdefs.h <<_ACEOF
2256#define PACKAGE_URL "$PACKAGE_URL"
2257_ACEOF
2258
2259
2260# Let the site file select an alternate cache file if it wants to.
2261# Prefer an explicitly selected file to automatically selected ones.
2262ac_site_file1=NONE
2263ac_site_file2=NONE
2264if test -n "$CONFIG_SITE"; then
22e05272
JM
2265 # We do not want a PATH search for config.site.
2266 case $CONFIG_SITE in #((
2267 -*) ac_site_file1=./$CONFIG_SITE;;
2268 */*) ac_site_file1=$CONFIG_SITE;;
2269 *) ac_site_file1=./$CONFIG_SITE;;
2270 esac
2077db1b
CT
2271elif test "x$prefix" != xNONE; then
2272 ac_site_file1=$prefix/share/config.site
2273 ac_site_file2=$prefix/etc/config.site
2274else
2275 ac_site_file1=$ac_default_prefix/share/config.site
2276 ac_site_file2=$ac_default_prefix/etc/config.site
2277fi
2278for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2279do
2280 test "x$ac_site_file" = xNONE && continue
22e05272 2281 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2077db1b
CT
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2283$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2284 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2285 . "$ac_site_file" \
2286 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2287$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2288as_fn_error $? "failed to load site script $ac_site_file
2289See \`config.log' for more details" "$LINENO" 5; }
2077db1b
CT
2290 fi
2291done
2292
2293if test -r "$cache_file"; then
22e05272
JM
2294 # Some versions of bash will fail to source /dev/null (special files
2295 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2296 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2077db1b
CT
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2298$as_echo "$as_me: loading cache $cache_file" >&6;}
2299 case $cache_file in
2300 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2301 *) . "./$cache_file";;
2302 esac
2303 fi
2304else
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2306$as_echo "$as_me: creating cache $cache_file" >&6;}
2307 >$cache_file
2308fi
2309
2310# Check that the precious variables saved in the cache have kept the same
2311# value.
2312ac_cache_corrupted=false
2313for ac_var in $ac_precious_vars; do
2314 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2315 eval ac_new_set=\$ac_env_${ac_var}_set
2316 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2317 eval ac_new_val=\$ac_env_${ac_var}_value
2318 case $ac_old_set,$ac_new_set in
2319 set,)
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2321$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2322 ac_cache_corrupted=: ;;
2323 ,set)
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2325$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2326 ac_cache_corrupted=: ;;
2327 ,);;
2328 *)
2329 if test "x$ac_old_val" != "x$ac_new_val"; then
2330 # differences in whitespace do not lead to failure.
2331 ac_old_val_w=`echo x $ac_old_val`
2332 ac_new_val_w=`echo x $ac_new_val`
2333 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2335$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2336 ac_cache_corrupted=:
2337 else
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2339$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2340 eval $ac_var=\$ac_old_val
2341 fi
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2343$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2345$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2346 fi;;
2347 esac
2348 # Pass precious variables to config.status.
2349 if test "$ac_new_set" = set; then
2350 case $ac_new_val in
2351 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2352 *) ac_arg=$ac_var=$ac_new_val ;;
2353 esac
2354 case " $ac_configure_args " in
2355 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2356 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2357 esac
2358 fi
2359done
2360if $ac_cache_corrupted; then
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2362$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2364$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2365 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2077db1b
CT
2366fi
2367## -------------------- ##
2368## Main body of script. ##
2369## -------------------- ##
2370
2371ac_ext=c
2372ac_cpp='$CPP $CPPFLAGS'
2373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2375ac_compiler_gnu=$ac_cv_c_compiler_gnu
2376
2377
2378
2379
2380
2381#AC_INIT(package-unused, version-unused, libvtv)
2382
2383
701fa326
MK
2384# Default to --enable-multilib
2385# Check whether --enable-multilib was given.
2386if test "${enable_multilib+set}" = set; then :
2387 enableval=$enable_multilib; case "$enableval" in
2388 yes) multilib=yes ;;
2389 no) multilib=no ;;
22e05272 2390 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
701fa326
MK
2391 esac
2392else
2393 multilib=yes
2394fi
2395
2396
2397# We may get other options which we leave undocumented:
2398# --with-target-subdir, --with-multisrctop, --with-multisubdir
2399# See config-ml.in if you want the gory details.
2400
2401if test "$srcdir" = "."; then
2402 if test "$with_target_subdir" != "."; then
2403 multi_basedir="$srcdir/$with_multisrctop../.."
2404 else
2405 multi_basedir="$srcdir/$with_multisrctop.."
2406 fi
2407else
2408 multi_basedir="$srcdir/.."
2409fi
2410
2411
2412# Even if the default multilib is not a cross compilation,
2413# it may be that some of the other multilibs are.
2414if test $cross_compiling = no && test $multilib = yes \
2415 && test "x${with_multisubdir}" != x ; then
2416 cross_compiling=maybe
2417fi
2418
2419ac_config_commands="$ac_config_commands default-1"
2420
2421
2077db1b
CT
2422# -------
2423# Options
2424# -------
2425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2426$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2427# Check whether --enable-version-specific-runtime-libs was given.
2428if test "${enable_version_specific_runtime_libs+set}" = set; then :
2429 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2430 yes) version_specific_libs=yes ;;
2431 no) version_specific_libs=no ;;
22e05272 2432 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2077db1b
CT
2433 esac
2434else
2435 version_specific_libs=no
2436fi
2437
2438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2439$as_echo "$version_specific_libs" >&6; }
2440
2441# Do not delete or change the following two lines. For why, see
2442# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2443ac_aux_dir=
2444for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2445 if 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/install.sh"; then
2450 ac_aux_dir=$ac_dir
2451 ac_install_sh="$ac_aux_dir/install.sh -c"
2452 break
2453 elif test -f "$ac_dir/shtool"; then
2454 ac_aux_dir=$ac_dir
2455 ac_install_sh="$ac_aux_dir/shtool install -c"
2456 break
2457 fi
2077db1b
CT
2458done
2459if test -z "$ac_aux_dir"; then
22e05272 2460 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2077db1b
CT
2461fi
2462
2463# These three variables are undocumented and unsupported,
2464# and are intended to be withdrawn in a future Autoconf release.
2465# They can cause serious problems if a builder's source tree is in a directory
2466# whose full name contains unusual characters.
2467ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2468ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2469ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2470
2471
2472# Make sure we can run config.sub.
2473$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2474 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2077db1b
CT
2475
2476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2477$as_echo_n "checking build system type... " >&6; }
22e05272 2478if ${ac_cv_build+:} false; then :
2077db1b
CT
2479 $as_echo_n "(cached) " >&6
2480else
2481 ac_build_alias=$build_alias
2482test "x$ac_build_alias" = x &&
2483 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2484test "x$ac_build_alias" = x &&
22e05272 2485 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2077db1b 2486ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2487 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2077db1b
CT
2488
2489fi
2490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2491$as_echo "$ac_cv_build" >&6; }
2492case $ac_cv_build in
2493*-*-*) ;;
22e05272 2494*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2077db1b
CT
2495esac
2496build=$ac_cv_build
2497ac_save_IFS=$IFS; IFS='-'
2498set x $ac_cv_build
2499shift
2500build_cpu=$1
2501build_vendor=$2
2502shift; shift
2503# Remember, the first character of IFS is used to create $*,
2504# except with old shells:
2505build_os=$*
2506IFS=$ac_save_IFS
2507case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2508
2509
2510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2511$as_echo_n "checking host system type... " >&6; }
22e05272 2512if ${ac_cv_host+:} false; then :
2077db1b
CT
2513 $as_echo_n "(cached) " >&6
2514else
2515 if test "x$host_alias" = x; then
2516 ac_cv_host=$ac_cv_build
2517else
2518 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2519 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2077db1b
CT
2520fi
2521
2522fi
2523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2524$as_echo "$ac_cv_host" >&6; }
2525case $ac_cv_host in
2526*-*-*) ;;
22e05272 2527*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2077db1b
CT
2528esac
2529host=$ac_cv_host
2530ac_save_IFS=$IFS; IFS='-'
2531set x $ac_cv_host
2532shift
2533host_cpu=$1
2534host_vendor=$2
2535shift; shift
2536# Remember, the first character of IFS is used to create $*,
2537# except with old shells:
2538host_os=$*
2539IFS=$ac_save_IFS
2540case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2541
2542
2543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2544$as_echo_n "checking target system type... " >&6; }
22e05272 2545if ${ac_cv_target+:} false; then :
2077db1b
CT
2546 $as_echo_n "(cached) " >&6
2547else
2548 if test "x$target_alias" = x; then
2549 ac_cv_target=$ac_cv_host
2550else
2551 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2552 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2077db1b
CT
2553fi
2554
2555fi
2556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2557$as_echo "$ac_cv_target" >&6; }
2558case $ac_cv_target in
2559*-*-*) ;;
22e05272 2560*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2077db1b
CT
2561esac
2562target=$ac_cv_target
2563ac_save_IFS=$IFS; IFS='-'
2564set x $ac_cv_target
2565shift
2566target_cpu=$1
2567target_vendor=$2
2568shift; shift
2569# Remember, the first character of IFS is used to create $*,
2570# except with old shells:
2571target_os=$*
2572IFS=$ac_save_IFS
2573case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2574
2575
2576# The aliases save the names the user supplied, while $host etc.
2577# will get canonicalized.
2578test -n "$target_alias" &&
2579 test "$program_prefix$program_suffix$program_transform_name" = \
2580 NONENONEs,x,x, &&
2581 program_prefix=${target_alias}-
2582
2583target_alias=${target_alias-$host_alias}
2584
2585 case ${build_alias} in
2586 "") build_noncanonical=${build} ;;
2587 *) build_noncanonical=${build_alias} ;;
2588esac
2589
2590 case ${host_alias} in
2591 "") host_noncanonical=${build_noncanonical} ;;
2592 *) host_noncanonical=${host_alias} ;;
2593esac
2594
2595 case ${target_alias} in
2596 "") target_noncanonical=${host_noncanonical} ;;
2597 *) target_noncanonical=${target_alias} ;;
2598esac
2599
2600
2601
2602
2603
2604 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
2605 -I\$(top_builddir)/../libstdc++-v3/include \
2606 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
2607 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
2608 LIBSTDCXX_RAW_CXX_LDFLAGS="\
2609 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
2610
2611
2612
2613
22e05272
JM
2614# Expand $ac_aux_dir to an absolute path.
2615am_aux_dir=`cd "$ac_aux_dir" && pwd`
2616
e5ef217c
RO
2617ac_ext=c
2618ac_cpp='$CPP $CPPFLAGS'
2619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2621ac_compiler_gnu=$ac_cv_c_compiler_gnu
2622if test -n "$ac_tool_prefix"; then
2623 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2624set dummy ${ac_tool_prefix}gcc; ac_word=$2
2625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2626$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2627if ${ac_cv_prog_CC+:} false; then :
e5ef217c 2628 $as_echo_n "(cached) " >&6
56fc7835 2629else
e5ef217c
RO
2630 if test -n "$CC"; then
2631 ac_cv_prog_CC="$CC" # Let the user override the test.
2632else
2633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634for as_dir in $PATH
2635do
2636 IFS=$as_save_IFS
2637 test -z "$as_dir" && as_dir=.
2638 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e5ef217c
RO
2640 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2642 break 2
56fc7835 2643 fi
e5ef217c
RO
2644done
2645 done
2646IFS=$as_save_IFS
2647
f5ebad64 2648fi
e5ef217c
RO
2649fi
2650CC=$ac_cv_prog_CC
2651if test -n "$CC"; then
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2653$as_echo "$CC" >&6; }
56fc7835 2654else
e5ef217c
RO
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2656$as_echo "no" >&6; }
56fc7835
CT
2657fi
2658
f5ebad64 2659
e5ef217c
RO
2660fi
2661if test -z "$ac_cv_prog_CC"; then
2662 ac_ct_CC=$CC
2663 # Extract the first word of "gcc", so it can be a program name with args.
2664set dummy gcc; ac_word=$2
2665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2666$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2667if ${ac_cv_prog_ac_ct_CC+:} false; then :
2077db1b
CT
2668 $as_echo_n "(cached) " >&6
2669else
e5ef217c
RO
2670 if test -n "$ac_ct_CC"; then
2671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2672else
2673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077db1b
CT
2674for as_dir in $PATH
2675do
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
e5ef217c 2678 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e5ef217c
RO
2680 ac_cv_prog_ac_ct_CC="gcc"
2681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 break 2
2683 fi
2684done
2077db1b
CT
2685 done
2686IFS=$as_save_IFS
2687
2077db1b 2688fi
e5ef217c
RO
2689fi
2690ac_ct_CC=$ac_cv_prog_ac_ct_CC
2691if test -n "$ac_ct_CC"; then
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2693$as_echo "$ac_ct_CC" >&6; }
2694else
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2696$as_echo "no" >&6; }
2697fi
2698
2699 if test "x$ac_ct_CC" = x; then
2700 CC=""
2077db1b 2701 else
e5ef217c
RO
2702 case $cross_compiling:$ac_tool_warned in
2703yes:)
2704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2706ac_tool_warned=yes ;;
2707esac
2708 CC=$ac_ct_CC
2077db1b 2709 fi
e5ef217c
RO
2710else
2711 CC="$ac_cv_prog_CC"
2077db1b 2712fi
2077db1b 2713
e5ef217c
RO
2714if test -z "$CC"; then
2715 if test -n "$ac_tool_prefix"; then
2716 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2717set dummy ${ac_tool_prefix}cc; ac_word=$2
2077db1b
CT
2718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2720if ${ac_cv_prog_CC+:} false; then :
2077db1b
CT
2721 $as_echo_n "(cached) " >&6
2722else
e5ef217c
RO
2723 if test -n "$CC"; then
2724 ac_cv_prog_CC="$CC" # Let the user override the test.
2077db1b
CT
2725else
2726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727for as_dir in $PATH
2728do
2729 IFS=$as_save_IFS
2730 test -z "$as_dir" && as_dir=.
2731 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e5ef217c 2733 ac_cv_prog_CC="${ac_tool_prefix}cc"
2077db1b
CT
2734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 break 2
2736 fi
2737done
2738 done
2739IFS=$as_save_IFS
2740
2741fi
2742fi
e5ef217c
RO
2743CC=$ac_cv_prog_CC
2744if test -n "$CC"; then
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2746$as_echo "$CC" >&6; }
2077db1b
CT
2747else
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749$as_echo "no" >&6; }
2750fi
2751
2752
e5ef217c 2753 fi
2077db1b 2754fi
e5ef217c
RO
2755if test -z "$CC"; then
2756 # Extract the first word of "cc", so it can be a program name with args.
2757set dummy cc; ac_word=$2
2077db1b
CT
2758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2760if ${ac_cv_prog_CC+:} false; then :
2077db1b
CT
2761 $as_echo_n "(cached) " >&6
2762else
e5ef217c
RO
2763 if test -n "$CC"; then
2764 ac_cv_prog_CC="$CC" # Let the user override the test.
2077db1b 2765else
e5ef217c 2766 ac_prog_rejected=no
2077db1b
CT
2767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768for as_dir in $PATH
2769do
2770 IFS=$as_save_IFS
2771 test -z "$as_dir" && as_dir=.
2772 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e5ef217c
RO
2774 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2775 ac_prog_rejected=yes
2776 continue
2777 fi
2778 ac_cv_prog_CC="cc"
2077db1b
CT
2779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2780 break 2
2781 fi
2782done
2783 done
2784IFS=$as_save_IFS
2785
e5ef217c
RO
2786if test $ac_prog_rejected = yes; then
2787 # We found a bogon in the path, so make sure we never use it.
2788 set dummy $ac_cv_prog_CC
2789 shift
2790 if test $# != 0; then
2791 # We chose a different compiler from the bogus one.
2792 # However, it has the same basename, so the bogon will be chosen
2793 # first if we set CC to just the basename; use the full file name.
2794 shift
2795 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2796 fi
2077db1b
CT
2797fi
2798fi
e5ef217c
RO
2799fi
2800CC=$ac_cv_prog_CC
2801if test -n "$CC"; then
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2803$as_echo "$CC" >&6; }
2077db1b
CT
2804else
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2806$as_echo "no" >&6; }
2807fi
2808
2077db1b
CT
2809
2810fi
e5ef217c
RO
2811if test -z "$CC"; then
2812 if test -n "$ac_tool_prefix"; then
2813 for ac_prog in cl.exe
2814 do
2815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2816set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2818$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2819if ${ac_cv_prog_CC+:} false; then :
2077db1b
CT
2820 $as_echo_n "(cached) " >&6
2821else
e5ef217c
RO
2822 if test -n "$CC"; then
2823 ac_cv_prog_CC="$CC" # Let the user override the test.
2824else
2825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826for as_dir in $PATH
2077db1b
CT
2827do
2828 IFS=$as_save_IFS
2829 test -z "$as_dir" && as_dir=.
e5ef217c 2830 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e5ef217c
RO
2832 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2834 break 2
2835 fi
2836done
2077db1b
CT
2837 done
2838IFS=$as_save_IFS
2839
2840fi
2077db1b 2841fi
e5ef217c
RO
2842CC=$ac_cv_prog_CC
2843if test -n "$CC"; then
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2845$as_echo "$CC" >&6; }
2846else
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2848$as_echo "no" >&6; }
2849fi
2077db1b 2850
2077db1b 2851
e5ef217c
RO
2852 test -n "$CC" && break
2853 done
2854fi
2855if test -z "$CC"; then
2856 ac_ct_CC=$CC
2857 for ac_prog in cl.exe
2077db1b
CT
2858do
2859 # Extract the first word of "$ac_prog", so it can be a program name with args.
2860set dummy $ac_prog; ac_word=$2
2861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2862$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2863if ${ac_cv_prog_ac_ct_CC+:} false; then :
2077db1b
CT
2864 $as_echo_n "(cached) " >&6
2865else
e5ef217c
RO
2866 if test -n "$ac_ct_CC"; then
2867 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2077db1b
CT
2868else
2869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870for as_dir in $PATH
2871do
2872 IFS=$as_save_IFS
2873 test -z "$as_dir" && as_dir=.
2874 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e5ef217c 2876 ac_cv_prog_ac_ct_CC="$ac_prog"
2077db1b
CT
2877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 break 2
2879 fi
2880done
2881 done
2882IFS=$as_save_IFS
2883
2884fi
2885fi
e5ef217c
RO
2886ac_ct_CC=$ac_cv_prog_ac_ct_CC
2887if test -n "$ac_ct_CC"; then
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2889$as_echo "$ac_ct_CC" >&6; }
2077db1b
CT
2890else
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892$as_echo "no" >&6; }
2893fi
2894
2895
e5ef217c 2896 test -n "$ac_ct_CC" && break
2077db1b
CT
2897done
2898
e5ef217c
RO
2899 if test "x$ac_ct_CC" = x; then
2900 CC=""
2901 else
2902 case $cross_compiling:$ac_tool_warned in
2903yes:)
2904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2906ac_tool_warned=yes ;;
2077db1b 2907esac
e5ef217c 2908 CC=$ac_ct_CC
2077db1b
CT
2909 fi
2910fi
2911
2077db1b
CT
2912fi
2913
2914
e5ef217c
RO
2915test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2916$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
2917as_fn_error $? "no acceptable C compiler found in \$PATH
2918See \`config.log' for more details" "$LINENO" 5; }
2077db1b 2919
e5ef217c
RO
2920# Provide some information about the compiler.
2921$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2922set X $ac_compile
2923ac_compiler=$2
2924for ac_option in --version -v -V -qversion; do
2925 { { ac_try="$ac_compiler $ac_option >&5"
2926case "(($ac_try" in
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2929esac
2930eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2931$as_echo "$ac_try_echo"; } >&5
2932 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2933 ac_status=$?
2934 if test -s conftest.err; then
2935 sed '10a\
2936... rest of stderr output deleted ...
2937 10q' conftest.err >conftest.er1
2938 cat conftest.er1 >&5
e5ef217c 2939 fi
22e05272 2940 rm -f conftest.er1 conftest.err
e5ef217c
RO
2941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2942 test $ac_status = 0; }
2943done
2077db1b 2944
e5ef217c
RO
2945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2946/* end confdefs.h. */
2077db1b 2947
e5ef217c
RO
2948int
2949main ()
2950{
2077db1b 2951
e5ef217c
RO
2952 ;
2953 return 0;
2954}
2077db1b 2955_ACEOF
e5ef217c 2956ac_clean_files_save=$ac_clean_files
22e05272 2957ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
e5ef217c
RO
2958# Try to create an executable without -o first, disregard a.out.
2959# It will help us diagnose broken compilers, and finding out an intuition
2960# of exeext.
22e05272
JM
2961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2962$as_echo_n "checking whether the C compiler works... " >&6; }
e5ef217c 2963ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2077db1b 2964
e5ef217c
RO
2965# The possible output files:
2966ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2077db1b 2967
e5ef217c
RO
2968ac_rmfiles=
2969for ac_file in $ac_files
2970do
2971 case $ac_file in
2972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2973 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2974 esac
2975done
2976rm -f $ac_rmfiles
2077db1b 2977
e5ef217c
RO
2978if { { ac_try="$ac_link_default"
2979case "(($ac_try" in
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2982esac
2983eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2984$as_echo "$ac_try_echo"; } >&5
2985 (eval "$ac_link_default") 2>&5
2986 ac_status=$?
2987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2988 test $ac_status = 0; }; then :
2989 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2990# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2991# in a Makefile. We should not override ac_cv_exeext if it was cached,
2992# so that the user can short-circuit this test for compilers unknown to
2993# Autoconf.
2994for ac_file in $ac_files ''
2995do
2996 test -f "$ac_file" || continue
2997 case $ac_file in
2998 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2999 ;;
3000 [ab].out )
3001 # We found the default executable, but exeext='' is most
3002 # certainly right.
3003 break;;
3004 *.* )
3005 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3006 then :; else
3007 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3008 fi
3009 # We set ac_cv_exeext here because the later test for it is not
3010 # safe: cross compilers may not add the suffix if given an `-o'
3011 # argument, so we may need to know it at that point already.
3012 # Even if this section looks crufty: it has the advantage of
3013 # actually working.
3014 break;;
3015 * )
3016 break;;
3017 esac
3018done
3019test "$ac_cv_exeext" = no && ac_cv_exeext=
2077db1b 3020
2077db1b 3021else
e5ef217c 3022 ac_file=''
2077db1b 3023fi
e5ef217c 3024if test -z "$ac_file"; then :
22e05272
JM
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026$as_echo "no" >&6; }
3027$as_echo "$as_me: failed program was:" >&5
e5ef217c 3028sed 's/^/| /' conftest.$ac_ext >&5
2077db1b 3029
e5ef217c
RO
3030{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3031$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3032as_fn_error 77 "C compiler cannot create executables
3033See \`config.log' for more details" "$LINENO" 5; }
3034else
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3036$as_echo "yes" >&6; }
e5ef217c 3037fi
22e05272
JM
3038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3039$as_echo_n "checking for C compiler default output file name... " >&6; }
3040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3041$as_echo "$ac_file" >&6; }
e5ef217c 3042ac_exeext=$ac_cv_exeext
2077db1b 3043
22e05272 3044rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
e5ef217c 3045ac_clean_files=$ac_clean_files_save
e5ef217c
RO
3046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3047$as_echo_n "checking for suffix of executables... " >&6; }
3048if { { ac_try="$ac_link"
3049case "(($ac_try" in
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3052esac
3053eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3054$as_echo "$ac_try_echo"; } >&5
3055 (eval "$ac_link") 2>&5
3056 ac_status=$?
3057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3058 test $ac_status = 0; }; then :
3059 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3060# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3061# work properly (i.e., refer to `conftest.exe'), while it won't with
3062# `rm'.
3063for ac_file in conftest.exe conftest conftest.*; do
3064 test -f "$ac_file" || continue
3065 case $ac_file in
3066 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3067 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3068 break;;
3069 * ) break;;
3070 esac
3071done
3072else
3073 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3074$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3075as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3076See \`config.log' for more details" "$LINENO" 5; }
2077db1b 3077fi
22e05272 3078rm -f conftest conftest$ac_cv_exeext
e5ef217c
RO
3079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3080$as_echo "$ac_cv_exeext" >&6; }
2077db1b 3081
e5ef217c
RO
3082rm -f conftest.$ac_ext
3083EXEEXT=$ac_cv_exeext
3084ac_exeext=$EXEEXT
22e05272
JM
3085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3086/* end confdefs.h. */
3087#include <stdio.h>
3088int
3089main ()
3090{
3091FILE *f = fopen ("conftest.out", "w");
3092 return ferror (f) || fclose (f) != 0;
3093
3094 ;
3095 return 0;
3096}
3097_ACEOF
3098ac_clean_files="$ac_clean_files conftest.out"
3099# Check that the compiler produces executables we can run. If not, either
3100# the compiler is broken, or we cross compile.
3101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3102$as_echo_n "checking whether we are cross compiling... " >&6; }
3103if test "$cross_compiling" != yes; then
3104 { { ac_try="$ac_link"
3105case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3108esac
3109eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3110$as_echo "$ac_try_echo"; } >&5
3111 (eval "$ac_link") 2>&5
3112 ac_status=$?
3113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3114 test $ac_status = 0; }
3115 if { ac_try='./conftest$ac_cv_exeext'
3116 { { case "(($ac_try" in
3117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118 *) ac_try_echo=$ac_try;;
3119esac
3120eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3121$as_echo "$ac_try_echo"; } >&5
3122 (eval "$ac_try") 2>&5
3123 ac_status=$?
3124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3125 test $ac_status = 0; }; }; then
3126 cross_compiling=no
3127 else
3128 if test "$cross_compiling" = maybe; then
3129 cross_compiling=yes
3130 else
3131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3132$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3133as_fn_error $? "cannot run C compiled programs.
3134If you meant to cross compile, use \`--host'.
3135See \`config.log' for more details" "$LINENO" 5; }
3136 fi
3137 fi
3138fi
3139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3140$as_echo "$cross_compiling" >&6; }
3141
3142rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3143ac_clean_files=$ac_clean_files_save
e5ef217c
RO
3144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3145$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 3146if ${ac_cv_objext+:} false; then :
e5ef217c
RO
3147 $as_echo_n "(cached) " >&6
3148else
3149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3150/* end confdefs.h. */
2077db1b 3151
e5ef217c
RO
3152int
3153main ()
3154{
2077db1b 3155
e5ef217c
RO
3156 ;
3157 return 0;
3158}
3159_ACEOF
3160rm -f conftest.o conftest.obj
3161if { { ac_try="$ac_compile"
3162case "(($ac_try" in
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3165esac
3166eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3167$as_echo "$ac_try_echo"; } >&5
3168 (eval "$ac_compile") 2>&5
3169 ac_status=$?
3170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3171 test $ac_status = 0; }; then :
3172 for ac_file in conftest.o conftest.obj conftest.*; do
3173 test -f "$ac_file" || continue;
3174 case $ac_file in
3175 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3176 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3177 break;;
3178 esac
3179done
2077db1b 3180else
e5ef217c
RO
3181 $as_echo "$as_me: failed program was:" >&5
3182sed 's/^/| /' conftest.$ac_ext >&5
3183
3184{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3185$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3186as_fn_error $? "cannot compute suffix of object files: cannot compile
3187See \`config.log' for more details" "$LINENO" 5; }
2077db1b 3188fi
e5ef217c
RO
3189rm -f conftest.$ac_cv_objext conftest.$ac_ext
3190fi
3191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3192$as_echo "$ac_cv_objext" >&6; }
3193OBJEXT=$ac_cv_objext
3194ac_objext=$OBJEXT
3195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3196$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 3197if ${ac_cv_c_compiler_gnu+:} false; then :
e5ef217c
RO
3198 $as_echo_n "(cached) " >&6
3199else
3200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3201/* end confdefs.h. */
2077db1b 3202
e5ef217c
RO
3203int
3204main ()
3205{
3206#ifndef __GNUC__
3207 choke me
3208#endif
3209
3210 ;
3211 return 0;
3212}
3213_ACEOF
3214if ac_fn_c_try_compile "$LINENO"; then :
3215 ac_compiler_gnu=yes
2077db1b 3216else
e5ef217c 3217 ac_compiler_gnu=no
2077db1b 3218fi
e5ef217c
RO
3219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3220ac_cv_c_compiler_gnu=$ac_compiler_gnu
2077db1b 3221
e5ef217c
RO
3222fi
3223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3224$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3225if test $ac_compiler_gnu = yes; then
3226 GCC=yes
3227else
3228 GCC=
3229fi
3230ac_test_CFLAGS=${CFLAGS+set}
3231ac_save_CFLAGS=$CFLAGS
3232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3233$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 3234if ${ac_cv_prog_cc_g+:} false; then :
e5ef217c
RO
3235 $as_echo_n "(cached) " >&6
3236else
3237 ac_save_c_werror_flag=$ac_c_werror_flag
3238 ac_c_werror_flag=yes
3239 ac_cv_prog_cc_g=no
3240 CFLAGS="-g"
3241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3242/* end confdefs.h. */
2077db1b 3243
e5ef217c
RO
3244int
3245main ()
3246{
2077db1b 3247
e5ef217c
RO
3248 ;
3249 return 0;
3250}
3251_ACEOF
3252if ac_fn_c_try_compile "$LINENO"; then :
3253 ac_cv_prog_cc_g=yes
3254else
3255 CFLAGS=""
3256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3257/* end confdefs.h. */
0c6cb2d1 3258
e5ef217c
RO
3259int
3260main ()
3261{
0c6cb2d1 3262
e5ef217c
RO
3263 ;
3264 return 0;
3265}
3266_ACEOF
3267if ac_fn_c_try_compile "$LINENO"; then :
0c6cb2d1 3268
e5ef217c
RO
3269else
3270 ac_c_werror_flag=$ac_save_c_werror_flag
3271 CFLAGS="-g"
3272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273/* end confdefs.h. */
0c6cb2d1 3274
e5ef217c
RO
3275int
3276main ()
3277{
0c6cb2d1 3278
e5ef217c
RO
3279 ;
3280 return 0;
3281}
3282_ACEOF
3283if ac_fn_c_try_compile "$LINENO"; then :
3284 ac_cv_prog_cc_g=yes
3285fi
3286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3287fi
3288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3289fi
3290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3291 ac_c_werror_flag=$ac_save_c_werror_flag
3292fi
3293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3294$as_echo "$ac_cv_prog_cc_g" >&6; }
3295if test "$ac_test_CFLAGS" = set; then
3296 CFLAGS=$ac_save_CFLAGS
3297elif test $ac_cv_prog_cc_g = yes; then
3298 if test "$GCC" = yes; then
3299 CFLAGS="-g -O2"
3300 else
3301 CFLAGS="-g"
3302 fi
3303else
3304 if test "$GCC" = yes; then
3305 CFLAGS="-O2"
3306 else
3307 CFLAGS=
3308 fi
3309fi
3310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3311$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 3312if ${ac_cv_prog_cc_c89+:} false; then :
e5ef217c
RO
3313 $as_echo_n "(cached) " >&6
3314else
3315 ac_cv_prog_cc_c89=no
3316ac_save_CC=$CC
3317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318/* end confdefs.h. */
3319#include <stdarg.h>
3320#include <stdio.h>
22e05272 3321struct stat;
e5ef217c
RO
3322/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3323struct buf { int x; };
3324FILE * (*rcsopen) (struct buf *, struct stat *, int);
3325static char *e (p, i)
3326 char **p;
3327 int i;
3328{
3329 return p[i];
3330}
3331static char *f (char * (*g) (char **, int), char **p, ...)
3332{
3333 char *s;
3334 va_list v;
3335 va_start (v,p);
3336 s = g (p, va_arg (v,int));
3337 va_end (v);
3338 return s;
3339}
0c6cb2d1 3340
e5ef217c
RO
3341/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3342 function prototypes and stuff, but not '\xHH' hex character constants.
3343 These don't provoke an error unfortunately, instead are silently treated
3344 as 'x'. The following induces an error, until -std is added to get
3345 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3346 array size at least. It's necessary to write '\x00'==0 to get something
3347 that's true only with -std. */
3348int osf4_cc_array ['\x00' == 0 ? 1 : -1];
0c6cb2d1 3349
e5ef217c
RO
3350/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3351 inside strings and character constants. */
3352#define FOO(x) 'x'
3353int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
0c6cb2d1 3354
e5ef217c
RO
3355int test (int i, double x);
3356struct s1 {int (*f) (int a);};
3357struct s2 {int (*f) (double a);};
3358int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3359int argc;
3360char **argv;
3361int
3362main ()
3363{
3364return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3365 ;
3366 return 0;
3367}
3368_ACEOF
3369for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3370 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3371do
3372 CC="$ac_save_CC $ac_arg"
3373 if ac_fn_c_try_compile "$LINENO"; then :
3374 ac_cv_prog_cc_c89=$ac_arg
8bc16536 3375fi
e5ef217c
RO
3376rm -f core conftest.err conftest.$ac_objext
3377 test "x$ac_cv_prog_cc_c89" != "xno" && break
3378done
3379rm -f conftest.$ac_ext
3380CC=$ac_save_CC
8bc16536 3381
8bc16536 3382fi
e5ef217c
RO
3383# AC_CACHE_VAL
3384case "x$ac_cv_prog_cc_c89" in
3385 x)
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3387$as_echo "none needed" >&6; } ;;
3388 xno)
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3390$as_echo "unsupported" >&6; } ;;
3391 *)
3392 CC="$CC $ac_cv_prog_cc_c89"
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3394$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3395esac
3396if test "x$ac_cv_prog_cc_c89" != xno; then :
8bc16536 3397
8bc16536
CT
3398fi
3399
e5ef217c
RO
3400ac_ext=c
3401ac_cpp='$CPP $CPPFLAGS'
3402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405
22e05272
JM
3406ac_ext=c
3407ac_cpp='$CPP $CPPFLAGS'
3408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3410ac_compiler_gnu=$ac_cv_c_compiler_gnu
3411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3412$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3413if ${am_cv_prog_cc_c_o+:} false; then :
3414 $as_echo_n "(cached) " >&6
3415else
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417/* end confdefs.h. */
3418
3419int
3420main ()
3421{
3422
3423 ;
3424 return 0;
3425}
3426_ACEOF
3427 # Make sure it works both with $CC and with simple cc.
3428 # Following AC_PROG_CC_C_O, we do the test twice because some
3429 # compilers refuse to overwrite an existing .o file with -o,
3430 # though they will create one.
3431 am_cv_prog_cc_c_o=yes
3432 for am_i in 1 2; do
3433 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3434 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3435 ac_status=$?
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); } \
3438 && test -f conftest2.$ac_objext; then
3439 : OK
3440 else
3441 am_cv_prog_cc_c_o=no
3442 break
3443 fi
3444 done
3445 rm -f core conftest*
3446 unset am_i
3447fi
3448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3449$as_echo "$am_cv_prog_cc_c_o" >&6; }
3450if test "$am_cv_prog_cc_c_o" != yes; then
3451 # Losing compiler, so override with the script.
3452 # FIXME: It is wrong to rewrite CC.
3453 # But if we don't then we get into trouble of one sort or another.
3454 # A longer-term fix would be to have automake use am__CC in this case,
3455 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3456 CC="$am_aux_dir/compile $CC"
3457fi
3458ac_ext=c
3459ac_cpp='$CPP $CPPFLAGS'
3460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463
3464
8bc16536
CT
3465
3466ac_ext=c
3467ac_cpp='$CPP $CPPFLAGS'
3468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3470ac_compiler_gnu=$ac_cv_c_compiler_gnu
e5ef217c
RO
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3472$as_echo_n "checking how to run the C preprocessor... " >&6; }
3473# On Suns, sometimes $CPP names a directory.
3474if test -n "$CPP" && test -d "$CPP"; then
3475 CPP=
3476fi
3477if test -z "$CPP"; then
22e05272 3478 if ${ac_cv_prog_CPP+:} false; then :
8bc16536
CT
3479 $as_echo_n "(cached) " >&6
3480else
e5ef217c
RO
3481 # Double quotes because CPP needs to be expanded
3482 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3483 do
3484 ac_preproc_ok=false
3485for ac_c_preproc_warn_flag in '' yes
2077db1b 3486do
e5ef217c
RO
3487 # Use a header file that comes with gcc, so configuring glibc
3488 # with a fresh cross-compiler works.
3489 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3490 # <limits.h> exists even on freestanding compilers.
3491 # On the NeXT, cc -E runs the code through the compiler's parser,
3492 # not just through cpp. "Syntax error" is here to catch this case.
3493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494/* end confdefs.h. */
3495#ifdef __STDC__
3496# include <limits.h>
3497#else
3498# include <assert.h>
3499#endif
3500 Syntax error
3501_ACEOF
3502if ac_fn_c_try_cpp "$LINENO"; then :
2077db1b 3503
2077db1b 3504else
e5ef217c
RO
3505 # Broken: fails on valid input.
3506continue
2077db1b 3507fi
22e05272 3508rm -f conftest.err conftest.i conftest.$ac_ext
2077db1b 3509
e5ef217c
RO
3510 # OK, works on sane cases. Now check whether nonexistent headers
3511 # can be detected and how.
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513/* end confdefs.h. */
3514#include <ac_nonexistent.h>
3515_ACEOF
3516if ac_fn_c_try_cpp "$LINENO"; then :
3517 # Broken: success on invalid input.
3518continue
2077db1b 3519else
e5ef217c
RO
3520 # Passes both tests.
3521ac_preproc_ok=:
3522break
3523fi
22e05272 3524rm -f conftest.err conftest.i conftest.$ac_ext
2077db1b 3525
e5ef217c
RO
3526done
3527# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 3528rm -f conftest.i conftest.err conftest.$ac_ext
e5ef217c
RO
3529if $ac_preproc_ok; then :
3530 break
2077db1b 3531fi
e5ef217c
RO
3532
3533 done
3534 ac_cv_prog_CPP=$CPP
3535
2077db1b 3536fi
e5ef217c 3537 CPP=$ac_cv_prog_CPP
2077db1b 3538else
e5ef217c 3539 ac_cv_prog_CPP=$CPP
2077db1b 3540fi
e5ef217c
RO
3541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3542$as_echo "$CPP" >&6; }
3543ac_preproc_ok=false
3544for ac_c_preproc_warn_flag in '' yes
3545do
3546 # Use a header file that comes with gcc, so configuring glibc
3547 # with a fresh cross-compiler works.
3548 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3549 # <limits.h> exists even on freestanding compilers.
3550 # On the NeXT, cc -E runs the code through the compiler's parser,
3551 # not just through cpp. "Syntax error" is here to catch this case.
3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553/* end confdefs.h. */
3554#ifdef __STDC__
3555# include <limits.h>
3556#else
3557# include <assert.h>
3558#endif
3559 Syntax error
3560_ACEOF
3561if ac_fn_c_try_cpp "$LINENO"; then :
3562
2077db1b 3563else
e5ef217c
RO
3564 # Broken: fails on valid input.
3565continue
2077db1b 3566fi
22e05272 3567rm -f conftest.err conftest.i conftest.$ac_ext
2077db1b 3568
e5ef217c
RO
3569 # OK, works on sane cases. Now check whether nonexistent headers
3570 # can be detected and how.
3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572/* end confdefs.h. */
3573#include <ac_nonexistent.h>
3574_ACEOF
3575if ac_fn_c_try_cpp "$LINENO"; then :
3576 # Broken: success on invalid input.
3577continue
2077db1b 3578else
e5ef217c
RO
3579 # Passes both tests.
3580ac_preproc_ok=:
3581break
3582fi
22e05272 3583rm -f conftest.err conftest.i conftest.$ac_ext
e5ef217c 3584
2077db1b 3585done
e5ef217c 3586# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 3587rm -f conftest.i conftest.err conftest.$ac_ext
e5ef217c 3588if $ac_preproc_ok; then :
2077db1b 3589
2077db1b 3590else
e5ef217c
RO
3591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3593as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3594See \`config.log' for more details" "$LINENO" 5; }
2077db1b
CT
3595fi
3596
e5ef217c
RO
3597ac_ext=c
3598ac_cpp='$CPP $CPPFLAGS'
3599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601ac_compiler_gnu=$ac_cv_c_compiler_gnu
3602
2077db1b 3603
e5ef217c
RO
3604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3605$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
22e05272 3606if ${ac_cv_path_GREP+:} false; then :
2077db1b
CT
3607 $as_echo_n "(cached) " >&6
3608else
e5ef217c
RO
3609 if test -z "$GREP"; then
3610 ac_path_GREP_found=false
3611 # Loop through the user's path and test for each of PROGNAME-LIST
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2077db1b
CT
3614do
3615 IFS=$as_save_IFS
3616 test -z "$as_dir" && as_dir=.
e5ef217c 3617 for ac_prog in grep ggrep; do
2077db1b 3618 for ac_exec_ext in '' $ac_executable_extensions; do
e5ef217c 3619 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 3620 as_fn_executable_p "$ac_path_GREP" || continue
e5ef217c
RO
3621# Check for GNU ac_path_GREP and select it if it is found.
3622 # Check for GNU $ac_path_GREP
3623case `"$ac_path_GREP" --version 2>&1` in
3624*GNU*)
3625 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3626*)
3627 ac_count=0
3628 $as_echo_n 0123456789 >"conftest.in"
3629 while :
3630 do
3631 cat "conftest.in" "conftest.in" >"conftest.tmp"
3632 mv "conftest.tmp" "conftest.in"
3633 cp "conftest.in" "conftest.nl"
3634 $as_echo 'GREP' >> "conftest.nl"
3635 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3636 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3637 as_fn_arith $ac_count + 1 && ac_count=$as_val
3638 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3639 # Best one so far, save it but keep looking for a better one
3640 ac_cv_path_GREP="$ac_path_GREP"
3641 ac_path_GREP_max=$ac_count
3642 fi
3643 # 10*(2^10) chars as input seems more than enough
3644 test $ac_count -gt 10 && break
2077db1b 3645 done
e5ef217c
RO
3646 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3647esac
2077db1b 3648
e5ef217c
RO
3649 $ac_path_GREP_found && break 3
3650 done
3651 done
3652 done
3653IFS=$as_save_IFS
3654 if test -z "$ac_cv_path_GREP"; then
22e05272 3655 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
2077db1b 3656 fi
2077db1b 3657else
e5ef217c 3658 ac_cv_path_GREP=$GREP
2077db1b
CT
3659fi
3660
2077db1b 3661fi
e5ef217c
RO
3662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3663$as_echo "$ac_cv_path_GREP" >&6; }
3664 GREP="$ac_cv_path_GREP"
3665
3666
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3668$as_echo_n "checking for egrep... " >&6; }
22e05272 3669if ${ac_cv_path_EGREP+:} false; then :
2077db1b
CT
3670 $as_echo_n "(cached) " >&6
3671else
e5ef217c
RO
3672 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3673 then ac_cv_path_EGREP="$GREP -E"
3674 else
3675 if test -z "$EGREP"; then
3676 ac_path_EGREP_found=false
3677 # Loop through the user's path and test for each of PROGNAME-LIST
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2077db1b
CT
3680do
3681 IFS=$as_save_IFS
3682 test -z "$as_dir" && as_dir=.
e5ef217c 3683 for ac_prog in egrep; do
2077db1b 3684 for ac_exec_ext in '' $ac_executable_extensions; do
e5ef217c 3685 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 3686 as_fn_executable_p "$ac_path_EGREP" || continue
e5ef217c
RO
3687# Check for GNU ac_path_EGREP and select it if it is found.
3688 # Check for GNU $ac_path_EGREP
3689case `"$ac_path_EGREP" --version 2>&1` in
3690*GNU*)
3691 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3692*)
3693 ac_count=0
3694 $as_echo_n 0123456789 >"conftest.in"
3695 while :
3696 do
3697 cat "conftest.in" "conftest.in" >"conftest.tmp"
3698 mv "conftest.tmp" "conftest.in"
3699 cp "conftest.in" "conftest.nl"
3700 $as_echo 'EGREP' >> "conftest.nl"
3701 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3702 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3703 as_fn_arith $ac_count + 1 && ac_count=$as_val
3704 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3705 # Best one so far, save it but keep looking for a better one
3706 ac_cv_path_EGREP="$ac_path_EGREP"
3707 ac_path_EGREP_max=$ac_count
3708 fi
3709 # 10*(2^10) chars as input seems more than enough
3710 test $ac_count -gt 10 && break
2077db1b 3711 done
e5ef217c
RO
3712 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3713esac
2077db1b 3714
e5ef217c
RO
3715 $ac_path_EGREP_found && break 3
3716 done
3717 done
3718 done
3719IFS=$as_save_IFS
3720 if test -z "$ac_cv_path_EGREP"; then
22e05272 3721 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
e5ef217c 3722 fi
2077db1b 3723else
e5ef217c 3724 ac_cv_path_EGREP=$EGREP
2077db1b
CT
3725fi
3726
e5ef217c 3727 fi
2077db1b 3728fi
e5ef217c
RO
3729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3730$as_echo "$ac_cv_path_EGREP" >&6; }
3731 EGREP="$ac_cv_path_EGREP"
3732
3733
3734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3735$as_echo_n "checking for ANSI C header files... " >&6; }
22e05272 3736if ${ac_cv_header_stdc+:} false; then :
2077db1b
CT
3737 $as_echo_n "(cached) " >&6
3738else
e5ef217c
RO
3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740/* end confdefs.h. */
3741#include <stdlib.h>
3742#include <stdarg.h>
3743#include <string.h>
3744#include <float.h>
3745
3746int
3747main ()
3748{
3749
3750 ;
3751 return 0;
3752}
3753_ACEOF
3754if ac_fn_c_try_compile "$LINENO"; then :
3755 ac_cv_header_stdc=yes
2077db1b 3756else
e5ef217c
RO
3757 ac_cv_header_stdc=no
3758fi
3759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3760
3761if test $ac_cv_header_stdc = yes; then
3762 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764/* end confdefs.h. */
3765#include <string.h>
3766
3767_ACEOF
3768if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3769 $EGREP "memchr" >/dev/null 2>&1; then :
2077db1b 3770
e5ef217c
RO
3771else
3772 ac_cv_header_stdc=no
2077db1b 3773fi
e5ef217c
RO
3774rm -f conftest*
3775
2077db1b 3776fi
e5ef217c
RO
3777
3778if test $ac_cv_header_stdc = yes; then
3779 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781/* end confdefs.h. */
3782#include <stdlib.h>
3783
3784_ACEOF
3785if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3786 $EGREP "free" >/dev/null 2>&1; then :
3787
2077db1b 3788else
e5ef217c 3789 ac_cv_header_stdc=no
2077db1b 3790fi
e5ef217c 3791rm -f conftest*
2077db1b 3792
e5ef217c 3793fi
2077db1b 3794
e5ef217c
RO
3795if test $ac_cv_header_stdc = yes; then
3796 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3797 if test "$cross_compiling" = yes; then :
3798 :
3799else
3800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801/* end confdefs.h. */
3802#include <ctype.h>
3803#include <stdlib.h>
3804#if ((' ' & 0x0FF) == 0x020)
3805# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3806# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3807#else
3808# define ISLOWER(c) \
3809 (('a' <= (c) && (c) <= 'i') \
3810 || ('j' <= (c) && (c) <= 'r') \
3811 || ('s' <= (c) && (c) <= 'z'))
3812# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3813#endif
2077db1b 3814
e5ef217c
RO
3815#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3816int
3817main ()
3818{
3819 int i;
3820 for (i = 0; i < 256; i++)
3821 if (XOR (islower (i), ISLOWER (i))
3822 || toupper (i) != TOUPPER (i))
3823 return 2;
3824 return 0;
3825}
3826_ACEOF
3827if ac_fn_c_try_run "$LINENO"; then :
3828
3829else
3830 ac_cv_header_stdc=no
3831fi
3832rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3833 conftest.$ac_objext conftest.beam conftest.$ac_ext
2077db1b
CT
3834fi
3835
3836fi
e5ef217c
RO
3837fi
3838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3839$as_echo "$ac_cv_header_stdc" >&6; }
3840if test $ac_cv_header_stdc = yes; then
2077db1b 3841
e5ef217c 3842$as_echo "#define STDC_HEADERS 1" >>confdefs.h
2077db1b 3843
e5ef217c
RO
3844fi
3845
3846# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3847for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3848 inttypes.h stdint.h unistd.h
3849do :
3850 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3851ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3852"
22e05272 3853if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
e5ef217c
RO
3854 cat >>confdefs.h <<_ACEOF
3855#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3856_ACEOF
3857
3858fi
2077db1b 3859
2077db1b
CT
3860done
3861
e5ef217c
RO
3862
3863
3864 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
22e05272 3865if test "x$ac_cv_header_minix_config_h" = xyes; then :
e5ef217c
RO
3866 MINIX=yes
3867else
3868 MINIX=
3869fi
3870
3871
3872 if test "$MINIX" = yes; then
3873
3874$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3875
3876
3877$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3878
3879
3880$as_echo "#define _MINIX 1" >>confdefs.h
3881
3882 fi
3883
3884
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3886$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
22e05272 3887if ${ac_cv_safe_to_define___extensions__+:} false; then :
e5ef217c
RO
3888 $as_echo_n "(cached) " >&6
3889else
3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077db1b
CT
3891/* end confdefs.h. */
3892
22e05272
JM
3893# define __EXTENSIONS__ 1
3894 $ac_includes_default
2077db1b
CT
3895int
3896main ()
3897{
3898
3899 ;
3900 return 0;
3901}
3902_ACEOF
e5ef217c
RO
3903if ac_fn_c_try_compile "$LINENO"; then :
3904 ac_cv_safe_to_define___extensions__=yes
3905else
3906 ac_cv_safe_to_define___extensions__=no
3907fi
3908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3909fi
3910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3911$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3912 test $ac_cv_safe_to_define___extensions__ = yes &&
3913 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
2077db1b 3914
e5ef217c 3915 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
2077db1b 3916
e5ef217c 3917 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
2077db1b 3918
e5ef217c 3919 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
2077db1b 3920
e5ef217c 3921 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
2077db1b 3922
2077db1b 3923
2077db1b 3924
e5ef217c
RO
3925# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
3926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
3927$as_echo_n "checking for --enable-vtable-verify... " >&6; }
3928# Check whether --enable-vtable-verify was given.
3929if test "${enable_vtable_verify+set}" = set; then :
3930 enableval=$enable_vtable_verify; case "$enableval" in
3931 yes) enable_vtable_verify=yes ;;
3932 no) enable_vtable_verify=no ;;
3933 *) enable_vtable_verify=no;;
3934 esac
2077db1b 3935else
e5ef217c 3936 enable_vtable_verify=no
2077db1b 3937fi
2077db1b 3938
e5ef217c
RO
3939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
3940$as_echo "$enable_vtable_verify" >&6; }
2077db1b 3941
e5ef217c
RO
3942# See if supported.
3943unset VTV_SUPPORTED
3944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for vtable verification" >&5
3945$as_echo_n "checking for host support for vtable verification... " >&6; }
3946. ${srcdir}/configure.tgt
3947case ${host} in
3948 *-*-solaris2*)
3949 # libvtv requires init priority support, which depends on the linker
3950 # used on Solaris.
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init priority support" >&5
3952$as_echo_n "checking for init priority support... " >&6; }
22e05272 3953if ${libvtv_cv_init_priority+:} false; then :
2077db1b
CT
3954 $as_echo_n "(cached) " >&6
3955else
e5ef217c
RO
3956
3957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077db1b
CT
3958/* end confdefs.h. */
3959
3960int
3961main ()
3962{
e5ef217c 3963void ip (void) __attribute__ ((constructor (1)));
2077db1b
CT
3964 ;
3965 return 0;
3966}
3967_ACEOF
3968if ac_fn_c_try_compile "$LINENO"; then :
e5ef217c 3969 libgcc_cv_init_priority=yes
2077db1b 3970else
e5ef217c 3971 libgcc_cv_init_priority=no
2077db1b
CT
3972fi
3973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e5ef217c
RO
3974fi
3975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libvtv_cv_init_priority" >&5
3976$as_echo "$libvtv_cv_init_priority" >&6; }
3977 if test x$libvtv_cv_init_priority = xno; then
3978 VTV_SUPPORTED=no
3979 fi
3980 # FIXME: Maybe check for dl_iterate_phdr, too? Should be covered by
3981 # configure.tgt restricting to libvtv to Solaris 11+.
3982 ;;
3983esac
3984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $VTV_SUPPORTED" >&5
3985$as_echo "$VTV_SUPPORTED" >&6; }
2077db1b 3986
e5ef217c
RO
3987# Decide if it's usable.
3988use_vtable_verify=no
3989if test "x$VTV_SUPPORTED" = "xyes"; then
3990 if test "x$enable_vtable_verify" = "xyes"; then
3991 use_vtable_verify=yes
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: using vtable verification" >&5
3993$as_echo "$as_me: using vtable verification" >&6;}
3994 fi
2077db1b 3995fi
e5ef217c
RO
3996 if test $use_vtable_verify = yes; then
3997 ENABLE_VTABLE_VERIFY_TRUE=
3998 ENABLE_VTABLE_VERIFY_FALSE='#'
2077db1b 3999else
e5ef217c
RO
4000 ENABLE_VTABLE_VERIFY_TRUE='#'
4001 ENABLE_VTABLE_VERIFY_FALSE=
2077db1b 4002fi
2077db1b 4003
2077db1b 4004
22e05272 4005am__api_version='1.15'
2077db1b 4006
e5ef217c
RO
4007# Find a good install program. We prefer a C program (faster),
4008# so one script is as good as another. But avoid the broken or
4009# incompatible versions:
4010# SysV /etc/install, /usr/sbin/install
4011# SunOS /usr/etc/install
4012# IRIX /sbin/install
4013# AIX /bin/install
4014# AmigaOS /C/install, which installs bootblocks on floppy discs
4015# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4016# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4017# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4018# OS/2's system install, which has a completely different semantic
4019# ./install, which can be erroneously created by make from ./install.sh.
4020# Reject install programs that cannot install multiple files.
4021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4022$as_echo_n "checking for a BSD-compatible install... " >&6; }
4023if test -z "$INSTALL"; then
22e05272 4024if ${ac_cv_path_install+:} false; then :
e5ef217c 4025 $as_echo_n "(cached) " >&6
2077db1b 4026else
e5ef217c
RO
4027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4028for as_dir in $PATH
4029do
4030 IFS=$as_save_IFS
4031 test -z "$as_dir" && as_dir=.
4032 # Account for people who put trailing slashes in PATH elements.
4033case $as_dir/ in #((
4034 ./ | .// | /[cC]/* | \
4035 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4036 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4037 /usr/ucb/* ) ;;
4038 *)
4039 # OSF1 and SCO ODT 3.0 have their own names for install.
4040 # Don't use installbsd from OSF since it installs stuff as root
4041 # by default.
4042 for ac_prog in ginstall scoinst install; do
4043 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4044 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5ef217c
RO
4045 if test $ac_prog = install &&
4046 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4047 # AIX install. It has an incompatible calling convention.
4048 :
4049 elif test $ac_prog = install &&
4050 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4051 # program-specific install script used by HP pwplus--don't use.
4052 :
4053 else
4054 rm -rf conftest.one conftest.two conftest.dir
4055 echo one > conftest.one
4056 echo two > conftest.two
4057 mkdir conftest.dir
4058 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4059 test -s conftest.one && test -s conftest.two &&
4060 test -s conftest.dir/conftest.one &&
4061 test -s conftest.dir/conftest.two
4062 then
4063 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4064 break 3
4065 fi
4066 fi
4067 fi
4068 done
4069 done
4070 ;;
4071esac
2077db1b 4072
e5ef217c
RO
4073 done
4074IFS=$as_save_IFS
4075
4076rm -rf conftest.one conftest.two conftest.dir
2077db1b 4077
2077db1b 4078fi
e5ef217c
RO
4079 if test "${ac_cv_path_install+set}" = set; then
4080 INSTALL=$ac_cv_path_install
2077db1b 4081 else
e5ef217c
RO
4082 # As a last resort, use the slow shell script. Don't cache a
4083 # value for INSTALL within a source directory, because that will
4084 # break other packages using the cache if that directory is
4085 # removed, or if the value is a relative name.
4086 INSTALL=$ac_install_sh
2077db1b
CT
4087 fi
4088fi
e5ef217c
RO
4089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4090$as_echo "$INSTALL" >&6; }
2077db1b 4091
e5ef217c
RO
4092# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4093# It thinks the first close brace ends the variable substitution.
4094test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2077db1b 4095
e5ef217c 4096test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2077db1b 4097
e5ef217c 4098test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2077db1b 4099
e5ef217c
RO
4100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4101$as_echo_n "checking whether build environment is sane... " >&6; }
e5ef217c
RO
4102# Reject unsafe characters in $srcdir or the absolute working directory
4103# name. Accept space and tab only in the latter.
4104am_lf='
4105'
4106case `pwd` in
4107 *[\\\"\#\$\&\'\`$am_lf]*)
22e05272 4108 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2077db1b 4109esac
e5ef217c
RO
4110case $srcdir in
4111 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
22e05272 4112 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
e5ef217c
RO
4113esac
4114
22e05272 4115# Do 'set' in a subshell so we don't clobber the current shell's
e5ef217c
RO
4116# arguments. Must try -L first in case configure is actually a
4117# symlink; some systems play weird games with the mod time of symlinks
4118# (eg FreeBSD returns the mod time of the symlink's containing
4119# directory).
4120if (
22e05272
JM
4121 am_has_slept=no
4122 for am_try in 1 2; do
4123 echo "timestamp, slept: $am_has_slept" > conftest.file
4124 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4125 if test "$*" = "X"; then
4126 # -L didn't work.
4127 set X `ls -t "$srcdir/configure" conftest.file`
4128 fi
4129 if test "$*" != "X $srcdir/configure conftest.file" \
4130 && test "$*" != "X conftest.file $srcdir/configure"; then
4131
4132 # If neither matched, then we have a broken ls. This can happen
4133 # if, for instance, CONFIG_SHELL is bash and it inherits a
4134 # broken ls alias from the environment. This has actually
4135 # happened. Such a system could not be considered "sane".
4136 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4137 alias in your environment" "$LINENO" 5
4138 fi
4139 if test "$2" = conftest.file || test $am_try -eq 2; then
4140 break
4141 fi
4142 # Just in case.
4143 sleep 1
4144 am_has_slept=yes
4145 done
e5ef217c
RO
4146 test "$2" = conftest.file
4147 )
4148then
4149 # Ok.
4150 :
4151else
22e05272 4152 as_fn_error $? "newly created file is older than distributed files!
e5ef217c 4153Check your system clock" "$LINENO" 5
2077db1b 4154fi
e5ef217c
RO
4155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4156$as_echo "yes" >&6; }
22e05272
JM
4157# If we didn't sleep, we still need to ensure time stamps of config.status and
4158# generated files are strictly newer.
4159am_sleep_pid=
4160if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4161 ( sleep 1 ) &
4162 am_sleep_pid=$!
4163fi
4164
4165rm -f conftest.file
4166
e5ef217c
RO
4167test "$program_prefix" != NONE &&
4168 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4169# Use a double $ so make ignores it.
4170test "$program_suffix" != NONE &&
4171 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4172# Double any \ or $.
4173# By default was `s,x,x', remove it if useless.
4174ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4175program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2077db1b 4176
e5ef217c
RO
4177if test x"${MISSING+set}" != xset; then
4178 case $am_aux_dir in
4179 *\ * | *\ *)
4180 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4181 *)
4182 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4183 esac
4184fi
4185# Use eval to expand $SHELL
22e05272
JM
4186if eval "$MISSING --is-lightweight"; then
4187 am_missing_run="$MISSING "
e5ef217c
RO
4188else
4189 am_missing_run=
22e05272
JM
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4191$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
e5ef217c 4192fi
2077db1b 4193
22e05272 4194if test x"${install_sh+set}" != xset; then
e5ef217c
RO
4195 case $am_aux_dir in
4196 *\ * | *\ *)
4197 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4198 *)
4199 install_sh="\${SHELL} $am_aux_dir/install-sh"
4200 esac
4201fi
4202
22e05272
JM
4203# Installed binaries are usually stripped using 'strip' when the user
4204# run "make install-strip". However 'strip' might not be the right
e5ef217c 4205# tool to use in cross-compilation environments, therefore Automake
22e05272 4206# will honor the 'STRIP' environment variable to overrule this program.
e5ef217c
RO
4207if test "$cross_compiling" != no; then
4208 if test -n "$ac_tool_prefix"; then
4209 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4210set dummy ${ac_tool_prefix}strip; ac_word=$2
4211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4212$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4213if ${ac_cv_prog_STRIP+:} false; then :
2077db1b
CT
4214 $as_echo_n "(cached) " >&6
4215else
e5ef217c
RO
4216 if test -n "$STRIP"; then
4217 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4218else
4219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220for as_dir in $PATH
4221do
4222 IFS=$as_save_IFS
4223 test -z "$as_dir" && as_dir=.
4224 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e5ef217c
RO
4226 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4228 break 2
2077db1b 4229 fi
e5ef217c
RO
4230done
4231 done
4232IFS=$as_save_IFS
2077db1b 4233
e5ef217c
RO
4234fi
4235fi
4236STRIP=$ac_cv_prog_STRIP
4237if test -n "$STRIP"; then
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4239$as_echo "$STRIP" >&6; }
4240else
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4242$as_echo "no" >&6; }
4243fi
2077db1b 4244
e5ef217c
RO
4245
4246fi
4247if test -z "$ac_cv_prog_STRIP"; then
4248 ac_ct_STRIP=$STRIP
4249 # Extract the first word of "strip", so it can be a program name with args.
4250set dummy strip; ac_word=$2
4251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4252$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4253if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
e5ef217c
RO
4254 $as_echo_n "(cached) " >&6
4255else
4256 if test -n "$ac_ct_STRIP"; then
4257 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4258else
4259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260for as_dir in $PATH
4261do
4262 IFS=$as_save_IFS
4263 test -z "$as_dir" && as_dir=.
4264 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e5ef217c
RO
4266 ac_cv_prog_ac_ct_STRIP="strip"
4267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4268 break 2
4269 fi
4270done
2077db1b 4271 done
e5ef217c 4272IFS=$as_save_IFS
2077db1b 4273
e5ef217c
RO
4274fi
4275fi
4276ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4277if test -n "$ac_ct_STRIP"; then
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4279$as_echo "$ac_ct_STRIP" >&6; }
2077db1b 4280else
e5ef217c
RO
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4282$as_echo "no" >&6; }
2077db1b
CT
4283fi
4284
e5ef217c
RO
4285 if test "x$ac_ct_STRIP" = x; then
4286 STRIP=":"
4287 else
4288 case $cross_compiling:$ac_tool_warned in
4289yes:)
4290{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4291$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4292ac_tool_warned=yes ;;
4293esac
4294 STRIP=$ac_ct_STRIP
4295 fi
4296else
4297 STRIP="$ac_cv_prog_STRIP"
2077db1b 4298fi
2077db1b 4299
2077db1b 4300fi
e5ef217c 4301INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2077db1b 4302
e5ef217c
RO
4303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4304$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4305if test -z "$MKDIR_P"; then
22e05272 4306 if ${ac_cv_path_mkdir+:} false; then :
e5ef217c
RO
4307 $as_echo_n "(cached) " >&6
4308else
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4311do
4312 IFS=$as_save_IFS
4313 test -z "$as_dir" && as_dir=.
4314 for ac_prog in mkdir gmkdir; do
4315 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4316 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
e5ef217c
RO
4317 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4318 'mkdir (GNU coreutils) '* | \
4319 'mkdir (coreutils) '* | \
4320 'mkdir (fileutils) '4.1*)
4321 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4322 break 3;;
4323 esac
4324 done
4325 done
4326 done
4327IFS=$as_save_IFS
2077db1b 4328
e5ef217c 4329fi
8bc16536 4330
22e05272 4331 test -d ./--version && rmdir ./--version
e5ef217c
RO
4332 if test "${ac_cv_path_mkdir+set}" = set; then
4333 MKDIR_P="$ac_cv_path_mkdir -p"
4334 else
4335 # As a last resort, use the slow shell script. Don't cache a
4336 # value for MKDIR_P within a source directory, because that will
4337 # break other packages using the cache if that directory is
4338 # removed, or if the value is a relative name.
e5ef217c
RO
4339 MKDIR_P="$ac_install_sh -d"
4340 fi
8bc16536 4341fi
e5ef217c
RO
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4343$as_echo "$MKDIR_P" >&6; }
4344
e5ef217c
RO
4345for ac_prog in gawk mawk nawk awk
4346do
4347 # Extract the first word of "$ac_prog", so it can be a program name with args.
4348set dummy $ac_prog; ac_word=$2
4349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4350$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4351if ${ac_cv_prog_AWK+:} false; then :
2077db1b
CT
4352 $as_echo_n "(cached) " >&6
4353else
e5ef217c
RO
4354 if test -n "$AWK"; then
4355 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4356else
4357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358for as_dir in $PATH
2077db1b 4359do
e5ef217c
RO
4360 IFS=$as_save_IFS
4361 test -z "$as_dir" && as_dir=.
4362 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e5ef217c
RO
4364 ac_cv_prog_AWK="$ac_prog"
4365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4366 break 2
4367 fi
4368done
4369 done
4370IFS=$as_save_IFS
2077db1b 4371
e5ef217c
RO
4372fi
4373fi
4374AWK=$ac_cv_prog_AWK
4375if test -n "$AWK"; then
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4377$as_echo "$AWK" >&6; }
8bc16536 4378else
e5ef217c
RO
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4380$as_echo "no" >&6; }
2077db1b 4381fi
8bc16536 4382
e5ef217c
RO
4383
4384 test -n "$AWK" && break
4385done
4386
4387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4388$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4389set x ${MAKE-make}
4390ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 4391if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
e5ef217c
RO
4392 $as_echo_n "(cached) " >&6
4393else
4394 cat >conftest.make <<\_ACEOF
4395SHELL = /bin/sh
4396all:
4397 @echo '@@@%%%=$(MAKE)=@@@%%%'
8bc16536 4398_ACEOF
22e05272 4399# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
e5ef217c
RO
4400case `${MAKE-make} -f conftest.make 2>/dev/null` in
4401 *@@@%%%=?*=@@@%%%*)
4402 eval ac_cv_prog_make_${ac_make}_set=yes;;
4403 *)
4404 eval ac_cv_prog_make_${ac_make}_set=no;;
4405esac
4406rm -f conftest.make
4407fi
4408if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4410$as_echo "yes" >&6; }
4411 SET_MAKE=
2077db1b 4412else
e5ef217c
RO
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4414$as_echo "no" >&6; }
4415 SET_MAKE="MAKE=${MAKE-make}"
2077db1b
CT
4416fi
4417
e5ef217c
RO
4418rm -rf .tst 2>/dev/null
4419mkdir .tst 2>/dev/null
4420if test -d .tst; then
4421 am__leading_dot=.
4422else
4423 am__leading_dot=_
4424fi
4425rmdir .tst 2>/dev/null
4426
4427DEPDIR="${am__leading_dot}deps"
4428
4429ac_config_commands="$ac_config_commands depfiles"
4430
4431
4432am_make=${MAKE-make}
4433cat > confinc << 'END'
4434am__doit:
4435 @echo this is the am__doit target
4436.PHONY: am__doit
4437END
4438# If we don't find an include directive, just comment out the code.
4439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4440$as_echo_n "checking for style of include used by $am_make... " >&6; }
4441am__include="#"
4442am__quote=
4443_am_result=none
4444# First try GNU make style include.
4445echo "include confinc" > confmf
22e05272 4446# Ignore all kinds of additional output from 'make'.
e5ef217c
RO
4447case `$am_make -s -f confmf 2> /dev/null` in #(
4448*the\ am__doit\ target*)
4449 am__include=include
4450 am__quote=
4451 _am_result=GNU
4452 ;;
4453esac
4454# Now try BSD make style include.
4455if test "$am__include" = "#"; then
4456 echo '.include "confinc"' > confmf
4457 case `$am_make -s -f confmf 2> /dev/null` in #(
4458 *the\ am__doit\ target*)
4459 am__include=.include
4460 am__quote="\""
4461 _am_result=BSD
4462 ;;
4463 esac
8bc16536
CT
4464fi
4465
2077db1b 4466
e5ef217c
RO
4467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4468$as_echo "$_am_result" >&6; }
4469rm -f confinc confmf
4470
4471# Check whether --enable-dependency-tracking was given.
4472if test "${enable_dependency_tracking+set}" = set; then :
4473 enableval=$enable_dependency_tracking;
2077db1b 4474fi
e5ef217c
RO
4475
4476if test "x$enable_dependency_tracking" != xno; then
4477 am_depcomp="$ac_aux_dir/depcomp"
4478 AMDEPBACKSLASH='\'
4479 am__nodep='_no'
4480fi
4481 if test "x$enable_dependency_tracking" != xno; then
4482 AMDEP_TRUE=
4483 AMDEP_FALSE='#'
2077db1b 4484else
e5ef217c
RO
4485 AMDEP_TRUE='#'
4486 AMDEP_FALSE=
8bc16536 4487fi
2077db1b 4488
e5ef217c 4489
22e05272
JM
4490# Check whether --enable-silent-rules was given.
4491if test "${enable_silent_rules+set}" = set; then :
4492 enableval=$enable_silent_rules;
4493fi
4494
4495case $enable_silent_rules in # (((
4496 yes) AM_DEFAULT_VERBOSITY=0;;
4497 no) AM_DEFAULT_VERBOSITY=1;;
4498 *) AM_DEFAULT_VERBOSITY=1;;
4499esac
4500am_make=${MAKE-make}
4501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4502$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4503if ${am_cv_make_support_nested_variables+:} false; then :
4504 $as_echo_n "(cached) " >&6
4505else
4506 if $as_echo 'TRUE=$(BAR$(V))
4507BAR0=false
4508BAR1=true
4509V=1
4510am__doit:
4511 @$(TRUE)
4512.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4513 am_cv_make_support_nested_variables=yes
4514else
4515 am_cv_make_support_nested_variables=no
4516fi
4517fi
4518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4519$as_echo "$am_cv_make_support_nested_variables" >&6; }
4520if test $am_cv_make_support_nested_variables = yes; then
4521 AM_V='$(V)'
4522 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4523else
4524 AM_V=$AM_DEFAULT_VERBOSITY
4525 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4526fi
4527AM_BACKSLASH='\'
4528
e5ef217c
RO
4529if test "`cd $srcdir && pwd`" != "`pwd`"; then
4530 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4531 # is not polluted with repeated "-I."
4532 am__isrc=' -I$(srcdir)'
4533 # test to see if srcdir already configured
4534 if test -f $srcdir/config.status; then
22e05272 4535 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
e5ef217c 4536 fi
2077db1b 4537fi
8bc16536 4538
e5ef217c
RO
4539# test whether we have cygpath
4540if test -z "$CYGPATH_W"; then
4541 if (cygpath --version) >/dev/null 2>/dev/null; then
4542 CYGPATH_W='cygpath -w'
4543 else
4544 CYGPATH_W=echo
4545 fi
2077db1b 4546fi
8bc16536 4547
8bc16536 4548
e5ef217c
RO
4549# Define the identity of the package.
4550 PACKAGE='libvtv'
4551 VERSION='1.0'
2077db1b
CT
4552
4553
e5ef217c
RO
4554cat >>confdefs.h <<_ACEOF
4555#define PACKAGE "$PACKAGE"
4556_ACEOF
2077db1b 4557
8bc16536 4558
e5ef217c
RO
4559cat >>confdefs.h <<_ACEOF
4560#define VERSION "$VERSION"
4561_ACEOF
2077db1b 4562
e5ef217c 4563# Some tools Automake needs.
8bc16536 4564
e5ef217c 4565ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
8bc16536 4566
8bc16536 4567
e5ef217c 4568AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2077db1b 4569
8bc16536 4570
e5ef217c 4571AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
8bc16536 4572
2077db1b 4573
e5ef217c
RO
4574AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4575
4576
4577MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4578
22e05272
JM
4579# For better backward compatibility. To be removed once Automake 1.9.x
4580# dies out for good. For more background, see:
4581# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4582# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4583mkdir_p='$(MKDIR_P)'
4584
4585# We need awk for the "check" target (and possibly the TAP driver). The
4586# system "awk" is bad on some platforms.
e5ef217c
RO
4587# Always define AMTAR for backward compatibility. Yes, it's still used
4588# in the wild :-( We should find a proper way to deprecate it ...
4589AMTAR='$${TAR-tar}'
4590
22e05272
JM
4591
4592# We'll loop over all known methods to create a tar archive until one works.
4593_am_tools='gnutar pax cpio none'
4594
e5ef217c 4595am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2077db1b 4596
2077db1b 4597
8bc16536 4598
8bc16536 4599
22e05272 4600
e5ef217c
RO
4601depcc="$CC" am_compiler_list=
4602
4603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4604$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 4605if ${am_cv_CC_dependencies_compiler_type+:} false; then :
e5ef217c 4606 $as_echo_n "(cached) " >&6
8bc16536 4607else
e5ef217c
RO
4608 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4609 # We make a subdir and do the tests there. Otherwise we can end up
4610 # making bogus files that we don't know about and never remove. For
4611 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
4612 # making a dummy file named 'D' -- because '-MD' means "put the output
4613 # in D".
e5ef217c
RO
4614 rm -rf conftest.dir
4615 mkdir conftest.dir
4616 # Copy depcomp to subdir because otherwise we won't find it if we're
4617 # using a relative directory.
4618 cp "$am_depcomp" conftest.dir
4619 cd conftest.dir
4620 # We will build objects and dependencies in a subdirectory because
4621 # it helps to detect inapplicable dependency modes. For instance
4622 # both Tru64's cc and ICC support -MD to output dependencies as a
4623 # side effect of compilation, but ICC will put the dependencies in
4624 # the current directory while Tru64 will put them in the object
4625 # directory.
4626 mkdir sub
8bc16536 4627
e5ef217c
RO
4628 am_cv_CC_dependencies_compiler_type=none
4629 if test "$am_compiler_list" = ""; then
4630 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4631 fi
4632 am__universal=false
4633 case " $depcc " in #(
4634 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4635 esac
8bc16536 4636
e5ef217c
RO
4637 for depmode in $am_compiler_list; do
4638 # Setup a source with many dependencies, because some compilers
4639 # like to wrap large dependency lists on column 80 (with \), and
4640 # we should not choose a depcomp mode which is confused by this.
4641 #
4642 # We need to recreate these files for each test, as the compiler may
4643 # overwrite some of them when testing with obscure command lines.
4644 # This happens at least with the AIX C compiler.
4645 : > sub/conftest.c
4646 for i in 1 2 3 4 5 6; do
4647 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
4648 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4649 # Solaris 10 /bin/sh.
4650 echo '/* dummy */' > sub/conftst$i.h
e5ef217c
RO
4651 done
4652 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8bc16536 4653
22e05272 4654 # We check with '-c' and '-o' for the sake of the "dashmstdout"
e5ef217c 4655 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
4656 # handle '-M -o', and we need to detect this. Also, some Intel
4657 # versions had trouble with output in subdirs.
e5ef217c
RO
4658 am__obj=sub/conftest.${OBJEXT-o}
4659 am__minus_obj="-o $am__obj"
4660 case $depmode in
4661 gcc)
4662 # This depmode causes a compiler race in universal mode.
4663 test "$am__universal" = false || continue
4664 ;;
4665 nosideeffect)
22e05272
JM
4666 # After this tag, mechanisms are not by side-effect, so they'll
4667 # only be used when explicitly requested.
e5ef217c
RO
4668 if test "x$enable_dependency_tracking" = xyes; then
4669 continue
4670 else
4671 break
4672 fi
4673 ;;
4674 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 4675 # This compiler won't grok '-c -o', but also, the minuso test has
e5ef217c
RO
4676 # not run yet. These depmodes are late enough in the game, and
4677 # so weak that their functioning should not be impacted.
4678 am__obj=conftest.${OBJEXT-o}
4679 am__minus_obj=
4680 ;;
4681 none) break ;;
4682 esac
4683 if depmode=$depmode \
4684 source=sub/conftest.c object=$am__obj \
4685 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4686 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4687 >/dev/null 2>conftest.err &&
4688 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4689 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4690 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4691 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4692 # icc doesn't choke on unknown options, it will just issue warnings
4693 # or remarks (even with -Werror). So we grep stderr for any message
4694 # that says an option was ignored or not supported.
4695 # When given -MP, icc 7.0 and 7.1 complain thusly:
4696 # icc: Command line warning: ignoring option '-M'; no argument required
4697 # The diagnosis changed in icc 8.0:
4698 # icc: Command line remark: option '-MP' not supported
4699 if (grep 'ignoring option' conftest.err ||
4700 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4701 am_cv_CC_dependencies_compiler_type=$depmode
4702 break
4703 fi
4704 fi
4705 done
8bc16536 4706
e5ef217c
RO
4707 cd ..
4708 rm -rf conftest.dir
2077db1b 4709else
e5ef217c 4710 am_cv_CC_dependencies_compiler_type=none
8bc16536 4711fi
8bc16536
CT
4712
4713fi
e5ef217c
RO
4714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4715$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4716CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
8bc16536 4717
e5ef217c
RO
4718 if
4719 test "x$enable_dependency_tracking" != xno \
4720 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4721 am__fastdepCC_TRUE=
4722 am__fastdepCC_FALSE='#'
8bc16536 4723else
e5ef217c
RO
4724 am__fastdepCC_TRUE='#'
4725 am__fastdepCC_FALSE=
4726fi
2077db1b 4727
8bc16536 4728
e5ef217c 4729
22e05272
JM
4730# POSIX will say in a future version that running "rm -f" with no argument
4731# is OK; and we want to be able to make that assumption in our Makefile
4732# recipes. So use an aggressive probe to check that the usage we want is
4733# actually supported "in the wild" to an acceptable degree.
4734# See automake bug#10828.
4735# To make any issue more visible, cause the running configure to be aborted
4736# by default if the 'rm' program in use doesn't match our expectations; the
4737# user can still override this though.
4738if rm -f && rm -fr && rm -rf; then : OK; else
4739 cat >&2 <<'END'
4740Oops!
4741
4742Your 'rm' program seems unable to run without file operands specified
4743on the command line, even when the '-f' option is present. This is contrary
4744to the behaviour of most rm programs out there, and not conforming with
4745the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4746
4747Please tell bug-automake@gnu.org about your system, including the value
4748of your $PATH and any error possibly output before this message. This
4749can help us improve future automake versions.
4750
4751END
4752 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4753 echo 'Configuration will proceed anyway, since you have set the' >&2
4754 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4755 echo >&2
4756 else
4757 cat >&2 <<'END'
4758Aborting the configuration process, to ensure you take notice of the issue.
4759
4760You can download and install GNU coreutils to get an 'rm' implementation
4761that behaves properly: <http://www.gnu.org/software/coreutils/>.
4762
4763If you want to complete the configuration process using your problematic
4764'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4765to "yes", and re-run configure.
4766
4767END
4768 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4769 fi
4770fi
4771
8bc16536 4772
e5ef217c
RO
4773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4774$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4775 # Check whether --enable-maintainer-mode was given.
4776if test "${enable_maintainer_mode+set}" = set; then :
4777 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2077db1b 4778else
e5ef217c 4779 USE_MAINTAINER_MODE=no
8bc16536
CT
4780fi
4781
e5ef217c
RO
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4783$as_echo "$USE_MAINTAINER_MODE" >&6; }
4784 if test $USE_MAINTAINER_MODE = yes; then
4785 MAINTAINER_MODE_TRUE=
4786 MAINTAINER_MODE_FALSE='#'
4787else
4788 MAINTAINER_MODE_TRUE='#'
4789 MAINTAINER_MODE_FALSE=
4790fi
8bc16536 4791
e5ef217c 4792 MAINT=$MAINTAINER_MODE_TRUE
8bc16536 4793
8bc16536
CT
4794
4795
8bc16536 4796
8bc16536 4797
e5ef217c
RO
4798 # These need to be absolute paths, yet at the same time need to
4799 # canonicalize only relative paths, because then amd will not unmount
4800 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
4801 libvtv_builddir=`${PWDCMD-pwd}`
4802 case $srcdir in
4803 \\/$* | ?:\\/*) libvtv_srcdir=${srcdir} ;;
4804 *) libvtv_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
4805 esac
4806 toplevel_builddir=${libvtv_builddir}/..
4807 toplevel_srcdir=${libvtv_srcdir}/..
8bc16536 4808
2077db1b 4809
2077db1b 4810
8bc16536 4811
8bc16536 4812
8bc16536 4813
e8e66971
MR
4814
4815# Check whether --with-toolexeclibdir was given.
4816if test "${with_toolexeclibdir+set}" = set; then :
4817 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
4818 /)
4819 ;;
4820 */)
4821 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
4822 ;;
4823esac
4824else
4825 with_toolexeclibdir=no
4826fi
4827
4828
4829
e5ef217c
RO
4830# Calculate toolexeclibdir
4831# Also toolexecdir, though it's only used in toolexeclibdir
4832case ${version_specific_libs} in
4833 yes)
4834 # Need the gcc compiler version to know where to install libraries
4835 # and header files if --enable-version-specific-runtime-libs option
4836 # is selected.
4837 toolexecdir='$(libdir)/gcc/$(target_alias)'
4838 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4839 ;;
4840 no)
4841 if test -n "$with_cross_host" &&
4842 test x"$with_cross_host" != x"no"; then
4843 # Install a library built with a cross compiler in tooldir, not libdir.
4844 toolexecdir='$(exec_prefix)/$(target_alias)'
e8e66971
MR
4845 case ${with_toolexeclibdir} in
4846 no)
4847 toolexeclibdir='$(toolexecdir)/lib'
4848 ;;
4849 *)
4850 toolexeclibdir=${with_toolexeclibdir}
4851 ;;
4852 esac
e5ef217c
RO
4853 else
4854 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4855 toolexeclibdir='$(libdir)'
4856 fi
4857 multi_os_directory=`$CC -print-multi-os-directory`
4858 case $multi_os_directory in
4859 .) ;; # Avoid trailing /.
4860 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4861 esac
4862 ;;
4863esac
8bc16536 4864
8bc16536
CT
4865
4866
4867
4868for ac_func in __secure_getenv
4869do :
4870 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
22e05272 4871if test "x$ac_cv_func___secure_getenv" = xyes; then :
8bc16536
CT
4872 cat >>confdefs.h <<_ACEOF
4873#define HAVE___SECURE_GETENV 1
4874_ACEOF
4875
2077db1b 4876fi
8bc16536
CT
4877done
4878
4879
4880
4881for ac_func in secure_getenv
4882do :
4883 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
22e05272 4884if test "x$ac_cv_func_secure_getenv" = xyes; then :
8bc16536
CT
4885 cat >>confdefs.h <<_ACEOF
4886#define HAVE_SECURE_GETENV 1
4887_ACEOF
4888
2077db1b 4889fi
8bc16536
CT
4890done
4891
4892
e5ef217c
RO
4893for ac_func in getexecname __fortify_fail
4894do :
4895 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4896ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22e05272 4897if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
e5ef217c
RO
4898 cat >>confdefs.h <<_ACEOF
4899#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4900_ACEOF
4901
4902fi
4903done
4904
4905
8bc16536
CT
4906# Check for programs.
4907
4908
2077db1b
CT
4909ac_ext=c
4910ac_cpp='$CPP $CPPFLAGS'
4911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4913ac_compiler_gnu=$ac_cv_c_compiler_gnu
8bc16536
CT
4914if test -n "$ac_tool_prefix"; then
4915 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4916set dummy ${ac_tool_prefix}gcc; ac_word=$2
4917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4918$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4919if ${ac_cv_prog_CC+:} false; then :
2077db1b
CT
4920 $as_echo_n "(cached) " >&6
4921else
8bc16536
CT
4922 if test -n "$CC"; then
4923 ac_cv_prog_CC="$CC" # Let the user override the test.
4924else
4925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926for as_dir in $PATH
4927do
4928 IFS=$as_save_IFS
4929 test -z "$as_dir" && as_dir=.
4930 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8bc16536
CT
4932 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4934 break 2
2077db1b 4935 fi
8bc16536
CT
4936done
4937 done
4938IFS=$as_save_IFS
2077db1b 4939
2077db1b 4940fi
2077db1b 4941fi
8bc16536
CT
4942CC=$ac_cv_prog_CC
4943if test -n "$CC"; then
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4945$as_echo "$CC" >&6; }
2077db1b 4946else
8bc16536
CT
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4948$as_echo "no" >&6; }
2077db1b
CT
4949fi
4950
4951
2077db1b 4952fi
8bc16536
CT
4953if test -z "$ac_cv_prog_CC"; then
4954 ac_ct_CC=$CC
4955 # Extract the first word of "gcc", so it can be a program name with args.
4956set dummy gcc; ac_word=$2
4957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4958$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4959if ${ac_cv_prog_ac_ct_CC+:} false; then :
2077db1b
CT
4960 $as_echo_n "(cached) " >&6
4961else
8bc16536
CT
4962 if test -n "$ac_ct_CC"; then
4963 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2077db1b 4964else
8bc16536
CT
4965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966for as_dir in $PATH
4967do
4968 IFS=$as_save_IFS
4969 test -z "$as_dir" && as_dir=.
4970 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8bc16536
CT
4972 ac_cv_prog_ac_ct_CC="gcc"
4973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4974 break 2
4975 fi
4976done
4977 done
4978IFS=$as_save_IFS
2077db1b
CT
4979
4980fi
8bc16536
CT
4981fi
4982ac_ct_CC=$ac_cv_prog_ac_ct_CC
4983if test -n "$ac_ct_CC"; then
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4985$as_echo "$ac_ct_CC" >&6; }
2077db1b
CT
4986else
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4988$as_echo "no" >&6; }
2077db1b
CT
4989fi
4990
8bc16536
CT
4991 if test "x$ac_ct_CC" = x; then
4992 CC=""
4993 else
4994 case $cross_compiling:$ac_tool_warned in
4995yes:)
4996{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4997$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4998ac_tool_warned=yes ;;
4999esac
5000 CC=$ac_ct_CC
5001 fi
5002else
5003 CC="$ac_cv_prog_CC"
2077db1b
CT
5004fi
5005
8bc16536
CT
5006if test -z "$CC"; then
5007 if test -n "$ac_tool_prefix"; then
5008 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5009set dummy ${ac_tool_prefix}cc; ac_word=$2
2077db1b
CT
5010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5011$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5012if ${ac_cv_prog_CC+:} false; then :
2077db1b
CT
5013 $as_echo_n "(cached) " >&6
5014else
8bc16536
CT
5015 if test -n "$CC"; then
5016 ac_cv_prog_CC="$CC" # Let the user override the test.
2077db1b
CT
5017else
5018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019for as_dir in $PATH
5020do
5021 IFS=$as_save_IFS
5022 test -z "$as_dir" && as_dir=.
5023 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8bc16536 5025 ac_cv_prog_CC="${ac_tool_prefix}cc"
2077db1b
CT
5026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5027 break 2
5028 fi
5029done
5030 done
5031IFS=$as_save_IFS
5032
5033fi
5034fi
8bc16536
CT
5035CC=$ac_cv_prog_CC
5036if test -n "$CC"; then
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5038$as_echo "$CC" >&6; }
2077db1b
CT
5039else
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5041$as_echo "no" >&6; }
5042fi
5043
5044
8bc16536 5045 fi
2077db1b 5046fi
8bc16536
CT
5047if test -z "$CC"; then
5048 # Extract the first word of "cc", so it can be a program name with args.
5049set dummy cc; ac_word=$2
2077db1b
CT
5050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5051$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5052if ${ac_cv_prog_CC+:} false; then :
2077db1b
CT
5053 $as_echo_n "(cached) " >&6
5054else
8bc16536
CT
5055 if test -n "$CC"; then
5056 ac_cv_prog_CC="$CC" # Let the user override the test.
2077db1b 5057else
8bc16536 5058 ac_prog_rejected=no
2077db1b
CT
5059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060for as_dir in $PATH
5061do
5062 IFS=$as_save_IFS
5063 test -z "$as_dir" && as_dir=.
5064 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8bc16536
CT
5066 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5067 ac_prog_rejected=yes
5068 continue
5069 fi
5070 ac_cv_prog_CC="cc"
2077db1b
CT
5071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5072 break 2
5073 fi
5074done
5075 done
5076IFS=$as_save_IFS
5077
8bc16536
CT
5078if test $ac_prog_rejected = yes; then
5079 # We found a bogon in the path, so make sure we never use it.
5080 set dummy $ac_cv_prog_CC
5081 shift
5082 if test $# != 0; then
5083 # We chose a different compiler from the bogus one.
5084 # However, it has the same basename, so the bogon will be chosen
5085 # first if we set CC to just the basename; use the full file name.
5086 shift
5087 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2077db1b 5088 fi
2077db1b 5089fi
2077db1b
CT
5090fi
5091fi
8bc16536
CT
5092CC=$ac_cv_prog_CC
5093if test -n "$CC"; then
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5095$as_echo "$CC" >&6; }
2077db1b
CT
5096else
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098$as_echo "no" >&6; }
5099fi
5100
5101
5102fi
8bc16536
CT
5103if test -z "$CC"; then
5104 if test -n "$ac_tool_prefix"; then
5105 for ac_prog in cl.exe
5106 do
5107 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5108set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2077db1b
CT
5109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5110$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5111if ${ac_cv_prog_CC+:} false; then :
2077db1b
CT
5112 $as_echo_n "(cached) " >&6
5113else
8bc16536
CT
5114 if test -n "$CC"; then
5115 ac_cv_prog_CC="$CC" # Let the user override the test.
2077db1b
CT
5116else
5117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118for as_dir in $PATH
5119do
5120 IFS=$as_save_IFS
5121 test -z "$as_dir" && as_dir=.
5122 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8bc16536 5124 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2077db1b
CT
5125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5126 break 2
5127 fi
5128done
5129 done
5130IFS=$as_save_IFS
5131
5132fi
5133fi
8bc16536
CT
5134CC=$ac_cv_prog_CC
5135if test -n "$CC"; then
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5137$as_echo "$CC" >&6; }
2077db1b
CT
5138else
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5140$as_echo "no" >&6; }
5141fi
5142
2077db1b 5143
8bc16536
CT
5144 test -n "$CC" && break
5145 done
5146fi
5147if test -z "$CC"; then
5148 ac_ct_CC=$CC
5149 for ac_prog in cl.exe
5150do
5151 # Extract the first word of "$ac_prog", so it can be a program name with args.
5152set dummy $ac_prog; ac_word=$2
2077db1b
CT
5153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5155if ${ac_cv_prog_ac_ct_CC+:} false; then :
2077db1b
CT
5156 $as_echo_n "(cached) " >&6
5157else
8bc16536
CT
5158 if test -n "$ac_ct_CC"; then
5159 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2077db1b
CT
5160else
5161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162for as_dir in $PATH
5163do
5164 IFS=$as_save_IFS
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8bc16536 5168 ac_cv_prog_ac_ct_CC="$ac_prog"
2077db1b
CT
5169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 break 2
5171 fi
5172done
5173 done
5174IFS=$as_save_IFS
5175
5176fi
5177fi
8bc16536
CT
5178ac_ct_CC=$ac_cv_prog_ac_ct_CC
5179if test -n "$ac_ct_CC"; then
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5181$as_echo "$ac_ct_CC" >&6; }
2077db1b
CT
5182else
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184$as_echo "no" >&6; }
5185fi
5186
5187
8bc16536 5188 test -n "$ac_ct_CC" && break
2077db1b 5189done
2077db1b 5190
8bc16536
CT
5191 if test "x$ac_ct_CC" = x; then
5192 CC=""
2077db1b
CT
5193 else
5194 case $cross_compiling:$ac_tool_warned in
5195yes:)
5196{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5197$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5198ac_tool_warned=yes ;;
5199esac
8bc16536 5200 CC=$ac_ct_CC
2077db1b 5201 fi
2077db1b
CT
5202fi
5203
8bc16536 5204fi
2077db1b
CT
5205
5206
8bc16536
CT
5207test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5208$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
5209as_fn_error $? "no acceptable C compiler found in \$PATH
5210See \`config.log' for more details" "$LINENO" 5; }
2077db1b 5211
8bc16536
CT
5212# Provide some information about the compiler.
5213$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5214set X $ac_compile
5215ac_compiler=$2
5216for ac_option in --version -v -V -qversion; do
5217 { { ac_try="$ac_compiler $ac_option >&5"
5218case "(($ac_try" in
5219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5220 *) ac_try_echo=$ac_try;;
5221esac
5222eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5223$as_echo "$ac_try_echo"; } >&5
5224 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5225 ac_status=$?
5226 if test -s conftest.err; then
5227 sed '10a\
5228... rest of stderr output deleted ...
5229 10q' conftest.err >conftest.er1
5230 cat conftest.er1 >&5
8bc16536 5231 fi
22e05272 5232 rm -f conftest.er1 conftest.err
8bc16536
CT
5233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5234 test $ac_status = 0; }
5235done
5236
5237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5238$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 5239if ${ac_cv_c_compiler_gnu+:} false; then :
8bc16536
CT
5240 $as_echo_n "(cached) " >&6
5241else
5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243/* end confdefs.h. */
5244
5245int
5246main ()
5247{
5248#ifndef __GNUC__
5249 choke me
5250#endif
5251
5252 ;
5253 return 0;
5254}
5255_ACEOF
5256if ac_fn_c_try_compile "$LINENO"; then :
5257 ac_compiler_gnu=yes
5258else
5259 ac_compiler_gnu=no
5260fi
5261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5262ac_cv_c_compiler_gnu=$ac_compiler_gnu
5263
5264fi
5265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5266$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5267if test $ac_compiler_gnu = yes; then
5268 GCC=yes
5269else
5270 GCC=
5271fi
5272ac_test_CFLAGS=${CFLAGS+set}
5273ac_save_CFLAGS=$CFLAGS
5274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5275$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 5276if ${ac_cv_prog_cc_g+:} false; then :
8bc16536
CT
5277 $as_echo_n "(cached) " >&6
5278else
5279 ac_save_c_werror_flag=$ac_c_werror_flag
5280 ac_c_werror_flag=yes
5281 ac_cv_prog_cc_g=no
5282 CFLAGS="-g"
5283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5284/* end confdefs.h. */
5285
5286int
5287main ()
5288{
5289
5290 ;
5291 return 0;
5292}
5293_ACEOF
5294if ac_fn_c_try_compile "$LINENO"; then :
5295 ac_cv_prog_cc_g=yes
5296else
5297 CFLAGS=""
5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299/* end confdefs.h. */
5300
5301int
5302main ()
5303{
5304
5305 ;
5306 return 0;
5307}
5308_ACEOF
5309if ac_fn_c_try_compile "$LINENO"; then :
5310
5311else
5312 ac_c_werror_flag=$ac_save_c_werror_flag
5313 CFLAGS="-g"
5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315/* end confdefs.h. */
5316
5317int
5318main ()
5319{
5320
5321 ;
5322 return 0;
5323}
5324_ACEOF
5325if ac_fn_c_try_compile "$LINENO"; then :
5326 ac_cv_prog_cc_g=yes
5327fi
5328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5329fi
5330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5331fi
5332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5333 ac_c_werror_flag=$ac_save_c_werror_flag
5334fi
5335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5336$as_echo "$ac_cv_prog_cc_g" >&6; }
5337if test "$ac_test_CFLAGS" = set; then
5338 CFLAGS=$ac_save_CFLAGS
5339elif test $ac_cv_prog_cc_g = yes; then
5340 if test "$GCC" = yes; then
5341 CFLAGS="-g -O2"
5342 else
5343 CFLAGS="-g"
5344 fi
5345else
5346 if test "$GCC" = yes; then
5347 CFLAGS="-O2"
5348 else
5349 CFLAGS=
5350 fi
5351fi
5352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5353$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 5354if ${ac_cv_prog_cc_c89+:} false; then :
8bc16536
CT
5355 $as_echo_n "(cached) " >&6
5356else
5357 ac_cv_prog_cc_c89=no
5358ac_save_CC=$CC
5359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360/* end confdefs.h. */
5361#include <stdarg.h>
5362#include <stdio.h>
22e05272 5363struct stat;
8bc16536
CT
5364/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5365struct buf { int x; };
5366FILE * (*rcsopen) (struct buf *, struct stat *, int);
5367static char *e (p, i)
5368 char **p;
5369 int i;
5370{
5371 return p[i];
5372}
5373static char *f (char * (*g) (char **, int), char **p, ...)
5374{
5375 char *s;
5376 va_list v;
5377 va_start (v,p);
5378 s = g (p, va_arg (v,int));
5379 va_end (v);
5380 return s;
5381}
5382
5383/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5384 function prototypes and stuff, but not '\xHH' hex character constants.
5385 These don't provoke an error unfortunately, instead are silently treated
5386 as 'x'. The following induces an error, until -std is added to get
5387 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5388 array size at least. It's necessary to write '\x00'==0 to get something
5389 that's true only with -std. */
5390int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5391
5392/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5393 inside strings and character constants. */
5394#define FOO(x) 'x'
5395int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5396
5397int test (int i, double x);
5398struct s1 {int (*f) (int a);};
5399struct s2 {int (*f) (double a);};
5400int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5401int argc;
5402char **argv;
5403int
5404main ()
5405{
5406return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5407 ;
5408 return 0;
5409}
5410_ACEOF
5411for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5412 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5413do
5414 CC="$ac_save_CC $ac_arg"
5415 if ac_fn_c_try_compile "$LINENO"; then :
5416 ac_cv_prog_cc_c89=$ac_arg
5417fi
5418rm -f core conftest.err conftest.$ac_objext
5419 test "x$ac_cv_prog_cc_c89" != "xno" && break
5420done
5421rm -f conftest.$ac_ext
5422CC=$ac_save_CC
5423
5424fi
5425# AC_CACHE_VAL
5426case "x$ac_cv_prog_cc_c89" in
5427 x)
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5429$as_echo "none needed" >&6; } ;;
5430 xno)
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5432$as_echo "unsupported" >&6; } ;;
5433 *)
5434 CC="$CC $ac_cv_prog_cc_c89"
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5436$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5437esac
5438if test "x$ac_cv_prog_cc_c89" != xno; then :
5439
5440fi
5441
5442ac_ext=c
5443ac_cpp='$CPP $CPPFLAGS'
5444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5446ac_compiler_gnu=$ac_cv_c_compiler_gnu
5447
22e05272
JM
5448ac_ext=c
5449ac_cpp='$CPP $CPPFLAGS'
5450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5452ac_compiler_gnu=$ac_cv_c_compiler_gnu
5453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5454$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5455if ${am_cv_prog_cc_c_o+:} false; then :
5456 $as_echo_n "(cached) " >&6
5457else
5458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459/* end confdefs.h. */
5460
5461int
5462main ()
5463{
5464
5465 ;
5466 return 0;
5467}
5468_ACEOF
5469 # Make sure it works both with $CC and with simple cc.
5470 # Following AC_PROG_CC_C_O, we do the test twice because some
5471 # compilers refuse to overwrite an existing .o file with -o,
5472 # though they will create one.
5473 am_cv_prog_cc_c_o=yes
5474 for am_i in 1 2; do
5475 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5476 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5477 ac_status=$?
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } \
5480 && test -f conftest2.$ac_objext; then
5481 : OK
5482 else
5483 am_cv_prog_cc_c_o=no
5484 break
5485 fi
5486 done
5487 rm -f core conftest*
5488 unset am_i
5489fi
5490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5491$as_echo "$am_cv_prog_cc_c_o" >&6; }
5492if test "$am_cv_prog_cc_c_o" != yes; then
5493 # Losing compiler, so override with the script.
5494 # FIXME: It is wrong to rewrite CC.
5495 # But if we don't then we get into trouble of one sort or another.
5496 # A longer-term fix would be to have automake use am__CC in this case,
5497 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5498 CC="$am_aux_dir/compile $CC"
5499fi
5500ac_ext=c
5501ac_cpp='$CPP $CPPFLAGS'
5502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5504ac_compiler_gnu=$ac_cv_c_compiler_gnu
5505
5506
8bc16536
CT
5507ac_ext=cpp
5508ac_cpp='$CXXCPP $CPPFLAGS'
5509ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5510ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5511ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5512if test -z "$CXX"; then
5513 if test -n "$CCC"; then
5514 CXX=$CCC
5515 else
5516 if test -n "$ac_tool_prefix"; then
5517 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5518 do
5519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5520set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5522$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5523if ${ac_cv_prog_CXX+:} false; then :
8bc16536
CT
5524 $as_echo_n "(cached) " >&6
5525else
5526 if test -n "$CXX"; then
5527 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5528else
5529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530for as_dir in $PATH
5531do
5532 IFS=$as_save_IFS
5533 test -z "$as_dir" && as_dir=.
5534 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8bc16536
CT
5536 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5538 break 2
5539 fi
5540done
5541 done
5542IFS=$as_save_IFS
5543
5544fi
5545fi
5546CXX=$ac_cv_prog_CXX
5547if test -n "$CXX"; then
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5549$as_echo "$CXX" >&6; }
5550else
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5552$as_echo "no" >&6; }
5553fi
5554
5555
5556 test -n "$CXX" && break
5557 done
5558fi
5559if test -z "$CXX"; then
5560 ac_ct_CXX=$CXX
5561 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5562do
5563 # Extract the first word of "$ac_prog", so it can be a program name with args.
5564set dummy $ac_prog; ac_word=$2
5565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5566$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5567if ${ac_cv_prog_ac_ct_CXX+:} false; then :
8bc16536
CT
5568 $as_echo_n "(cached) " >&6
5569else
5570 if test -n "$ac_ct_CXX"; then
5571 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5572else
5573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574for as_dir in $PATH
5575do
5576 IFS=$as_save_IFS
5577 test -z "$as_dir" && as_dir=.
5578 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8bc16536
CT
5580 ac_cv_prog_ac_ct_CXX="$ac_prog"
5581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5582 break 2
5583 fi
5584done
5585 done
5586IFS=$as_save_IFS
5587
5588fi
5589fi
5590ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5591if test -n "$ac_ct_CXX"; then
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5593$as_echo "$ac_ct_CXX" >&6; }
5594else
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5596$as_echo "no" >&6; }
5597fi
5598
5599
5600 test -n "$ac_ct_CXX" && break
5601done
5602
5603 if test "x$ac_ct_CXX" = x; then
5604 CXX="g++"
5605 else
5606 case $cross_compiling:$ac_tool_warned in
5607yes:)
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5609$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5610ac_tool_warned=yes ;;
5611esac
5612 CXX=$ac_ct_CXX
5613 fi
5614fi
5615
5616 fi
5617fi
5618# Provide some information about the compiler.
5619$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5620set X $ac_compile
5621ac_compiler=$2
5622for ac_option in --version -v -V -qversion; do
5623 { { ac_try="$ac_compiler $ac_option >&5"
5624case "(($ac_try" in
5625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626 *) ac_try_echo=$ac_try;;
5627esac
5628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5629$as_echo "$ac_try_echo"; } >&5
5630 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5631 ac_status=$?
5632 if test -s conftest.err; then
5633 sed '10a\
5634... rest of stderr output deleted ...
5635 10q' conftest.err >conftest.er1
5636 cat conftest.er1 >&5
8bc16536 5637 fi
22e05272 5638 rm -f conftest.er1 conftest.err
8bc16536
CT
5639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5640 test $ac_status = 0; }
5641done
5642
5643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5644$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
22e05272 5645if ${ac_cv_cxx_compiler_gnu+:} false; then :
8bc16536
CT
5646 $as_echo_n "(cached) " >&6
5647else
5648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649/* end confdefs.h. */
5650
5651int
5652main ()
5653{
5654#ifndef __GNUC__
5655 choke me
5656#endif
5657
5658 ;
5659 return 0;
5660}
5661_ACEOF
5662if ac_fn_cxx_try_compile "$LINENO"; then :
5663 ac_compiler_gnu=yes
5664else
5665 ac_compiler_gnu=no
5666fi
5667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5668ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5669
5670fi
5671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5672$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5673if test $ac_compiler_gnu = yes; then
5674 GXX=yes
5675else
5676 GXX=
5677fi
5678ac_test_CXXFLAGS=${CXXFLAGS+set}
5679ac_save_CXXFLAGS=$CXXFLAGS
5680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5681$as_echo_n "checking whether $CXX accepts -g... " >&6; }
22e05272 5682if ${ac_cv_prog_cxx_g+:} false; then :
8bc16536
CT
5683 $as_echo_n "(cached) " >&6
5684else
5685 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5686 ac_cxx_werror_flag=yes
5687 ac_cv_prog_cxx_g=no
5688 CXXFLAGS="-g"
5689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690/* end confdefs.h. */
5691
5692int
5693main ()
5694{
5695
5696 ;
5697 return 0;
5698}
5699_ACEOF
5700if ac_fn_cxx_try_compile "$LINENO"; then :
5701 ac_cv_prog_cxx_g=yes
5702else
5703 CXXFLAGS=""
5704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5705/* end confdefs.h. */
5706
5707int
5708main ()
5709{
5710
5711 ;
5712 return 0;
5713}
5714_ACEOF
5715if ac_fn_cxx_try_compile "$LINENO"; then :
5716
5717else
5718 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5719 CXXFLAGS="-g"
5720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721/* end confdefs.h. */
5722
5723int
5724main ()
5725{
5726
5727 ;
5728 return 0;
5729}
5730_ACEOF
5731if ac_fn_cxx_try_compile "$LINENO"; then :
5732 ac_cv_prog_cxx_g=yes
5733fi
5734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5735fi
5736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5737fi
5738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5739 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5740fi
5741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5742$as_echo "$ac_cv_prog_cxx_g" >&6; }
5743if test "$ac_test_CXXFLAGS" = set; then
5744 CXXFLAGS=$ac_save_CXXFLAGS
5745elif test $ac_cv_prog_cxx_g = yes; then
5746 if test "$GXX" = yes; then
5747 CXXFLAGS="-g -O2"
5748 else
5749 CXXFLAGS="-g"
5750 fi
5751else
5752 if test "$GXX" = yes; then
5753 CXXFLAGS="-O2"
5754 else
5755 CXXFLAGS=
5756 fi
5757fi
5758ac_ext=c
5759ac_cpp='$CPP $CPPFLAGS'
5760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5762ac_compiler_gnu=$ac_cv_c_compiler_gnu
5763
5764depcc="$CXX" am_compiler_list=
5765
5766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5767$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 5768if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
8bc16536
CT
5769 $as_echo_n "(cached) " >&6
5770else
5771 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5772 # We make a subdir and do the tests there. Otherwise we can end up
5773 # making bogus files that we don't know about and never remove. For
5774 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
5775 # making a dummy file named 'D' -- because '-MD' means "put the output
5776 # in D".
6cfc0812 5777 rm -rf conftest.dir
8bc16536
CT
5778 mkdir conftest.dir
5779 # Copy depcomp to subdir because otherwise we won't find it if we're
5780 # using a relative directory.
5781 cp "$am_depcomp" conftest.dir
5782 cd conftest.dir
5783 # We will build objects and dependencies in a subdirectory because
5784 # it helps to detect inapplicable dependency modes. For instance
5785 # both Tru64's cc and ICC support -MD to output dependencies as a
5786 # side effect of compilation, but ICC will put the dependencies in
5787 # the current directory while Tru64 will put them in the object
5788 # directory.
5789 mkdir sub
5790
5791 am_cv_CXX_dependencies_compiler_type=none
5792 if test "$am_compiler_list" = ""; then
5793 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5794 fi
5795 am__universal=false
5796 case " $depcc " in #(
5797 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5798 esac
5799
5800 for depmode in $am_compiler_list; do
5801 # Setup a source with many dependencies, because some compilers
5802 # like to wrap large dependency lists on column 80 (with \), and
5803 # we should not choose a depcomp mode which is confused by this.
5804 #
5805 # We need to recreate these files for each test, as the compiler may
5806 # overwrite some of them when testing with obscure command lines.
5807 # This happens at least with the AIX C compiler.
5808 : > sub/conftest.c
5809 for i in 1 2 3 4 5 6; do
5810 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
5811 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5812 # Solaris 10 /bin/sh.
5813 echo '/* dummy */' > sub/conftst$i.h
8bc16536
CT
5814 done
5815 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5816
22e05272 5817 # We check with '-c' and '-o' for the sake of the "dashmstdout"
8bc16536 5818 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
5819 # handle '-M -o', and we need to detect this. Also, some Intel
5820 # versions had trouble with output in subdirs.
8bc16536
CT
5821 am__obj=sub/conftest.${OBJEXT-o}
5822 am__minus_obj="-o $am__obj"
5823 case $depmode in
5824 gcc)
5825 # This depmode causes a compiler race in universal mode.
5826 test "$am__universal" = false || continue
5827 ;;
5828 nosideeffect)
22e05272
JM
5829 # After this tag, mechanisms are not by side-effect, so they'll
5830 # only be used when explicitly requested.
8bc16536
CT
5831 if test "x$enable_dependency_tracking" = xyes; then
5832 continue
5833 else
5834 break
5835 fi
5836 ;;
6cfc0812 5837 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 5838 # This compiler won't grok '-c -o', but also, the minuso test has
8bc16536
CT
5839 # not run yet. These depmodes are late enough in the game, and
5840 # so weak that their functioning should not be impacted.
5841 am__obj=conftest.${OBJEXT-o}
5842 am__minus_obj=
5843 ;;
5844 none) break ;;
5845 esac
5846 if depmode=$depmode \
5847 source=sub/conftest.c object=$am__obj \
5848 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5849 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5850 >/dev/null 2>conftest.err &&
5851 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5852 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5853 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5854 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5855 # icc doesn't choke on unknown options, it will just issue warnings
5856 # or remarks (even with -Werror). So we grep stderr for any message
5857 # that says an option was ignored or not supported.
5858 # When given -MP, icc 7.0 and 7.1 complain thusly:
5859 # icc: Command line warning: ignoring option '-M'; no argument required
5860 # The diagnosis changed in icc 8.0:
5861 # icc: Command line remark: option '-MP' not supported
5862 if (grep 'ignoring option' conftest.err ||
5863 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5864 am_cv_CXX_dependencies_compiler_type=$depmode
5865 break
5866 fi
5867 fi
5868 done
5869
5870 cd ..
5871 rm -rf conftest.dir
5872else
5873 am_cv_CXX_dependencies_compiler_type=none
5874fi
5875
5876fi
5877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5878$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5879CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5880
5881 if
5882 test "x$enable_dependency_tracking" != xno \
5883 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5884 am__fastdepCXX_TRUE=
5885 am__fastdepCXX_FALSE='#'
5886else
5887 am__fastdepCXX_TRUE='#'
5888 am__fastdepCXX_FALSE=
5889fi
5890
5891
5892
5893
8bc16536
CT
5894
5895
5896
5897
5898
5899# Newer automakes demand CCAS and CCASFLAGS.
5900: ${CCAS='$(CC)'}
5901: ${CCASFLAGS='$(CFLAGS)'}
5902
5903
5904
5905if test -n "$ac_tool_prefix"; then
5906 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5907set dummy ${ac_tool_prefix}as; ac_word=$2
5908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5909$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5910if ${ac_cv_prog_AS+:} false; then :
8bc16536
CT
5911 $as_echo_n "(cached) " >&6
5912else
5913 if test -n "$AS"; then
5914 ac_cv_prog_AS="$AS" # Let the user override the test.
5915else
5916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917for as_dir in $PATH
5918do
5919 IFS=$as_save_IFS
5920 test -z "$as_dir" && as_dir=.
5921 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8bc16536
CT
5923 ac_cv_prog_AS="${ac_tool_prefix}as"
5924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5925 break 2
5926 fi
5927done
5928 done
5929IFS=$as_save_IFS
5930
5931fi
5932fi
5933AS=$ac_cv_prog_AS
5934if test -n "$AS"; then
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5936$as_echo "$AS" >&6; }
5937else
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5939$as_echo "no" >&6; }
5940fi
5941
5942
5943fi
5944if test -z "$ac_cv_prog_AS"; then
5945 ac_ct_AS=$AS
5946 # Extract the first word of "as", so it can be a program name with args.
5947set dummy as; ac_word=$2
5948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5949$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5950if ${ac_cv_prog_ac_ct_AS+:} false; then :
8bc16536
CT
5951 $as_echo_n "(cached) " >&6
5952else
5953 if test -n "$ac_ct_AS"; then
5954 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5955else
5956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957for as_dir in $PATH
5958do
5959 IFS=$as_save_IFS
5960 test -z "$as_dir" && as_dir=.
5961 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8bc16536
CT
5963 ac_cv_prog_ac_ct_AS="as"
5964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5965 break 2
5966 fi
5967done
5968 done
5969IFS=$as_save_IFS
5970
5971fi
5972fi
5973ac_ct_AS=$ac_cv_prog_ac_ct_AS
5974if test -n "$ac_ct_AS"; then
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5976$as_echo "$ac_ct_AS" >&6; }
5977else
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5979$as_echo "no" >&6; }
5980fi
5981
5982 if test "x$ac_ct_AS" = x; then
5983 AS=""
5984 else
5985 case $cross_compiling:$ac_tool_warned in
5986yes:)
5987{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5988$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5989ac_tool_warned=yes ;;
5990esac
5991 AS=$ac_ct_AS
5992 fi
5993else
5994 AS="$ac_cv_prog_AS"
5995fi
5996
5997if test -n "$ac_tool_prefix"; then
5998 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5999set dummy ${ac_tool_prefix}ar; ac_word=$2
6000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6001$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6002if ${ac_cv_prog_AR+:} false; then :
8bc16536
CT
6003 $as_echo_n "(cached) " >&6
6004else
6005 if test -n "$AR"; then
6006 ac_cv_prog_AR="$AR" # Let the user override the test.
6007else
6008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009for as_dir in $PATH
6010do
6011 IFS=$as_save_IFS
6012 test -z "$as_dir" && as_dir=.
6013 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8bc16536
CT
6015 ac_cv_prog_AR="${ac_tool_prefix}ar"
6016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6017 break 2
6018 fi
6019done
6020 done
6021IFS=$as_save_IFS
6022
6023fi
6024fi
6025AR=$ac_cv_prog_AR
6026if test -n "$AR"; then
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6028$as_echo "$AR" >&6; }
6029else
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6031$as_echo "no" >&6; }
6032fi
6033
6034
6035fi
6036if test -z "$ac_cv_prog_AR"; then
6037 ac_ct_AR=$AR
6038 # Extract the first word of "ar", so it can be a program name with args.
6039set dummy ar; ac_word=$2
6040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6041$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6042if ${ac_cv_prog_ac_ct_AR+:} false; then :
8bc16536
CT
6043 $as_echo_n "(cached) " >&6
6044else
6045 if test -n "$ac_ct_AR"; then
6046 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6047else
6048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049for as_dir in $PATH
6050do
6051 IFS=$as_save_IFS
6052 test -z "$as_dir" && as_dir=.
6053 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8bc16536
CT
6055 ac_cv_prog_ac_ct_AR="ar"
6056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6057 break 2
6058 fi
6059done
6060 done
6061IFS=$as_save_IFS
6062
6063fi
6064fi
6065ac_ct_AR=$ac_cv_prog_ac_ct_AR
6066if test -n "$ac_ct_AR"; then
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6068$as_echo "$ac_ct_AR" >&6; }
6069else
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6071$as_echo "no" >&6; }
6072fi
6073
6074 if test "x$ac_ct_AR" = x; then
6075 AR=""
6076 else
6077 case $cross_compiling:$ac_tool_warned in
6078yes:)
6079{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6080$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6081ac_tool_warned=yes ;;
6082esac
6083 AR=$ac_ct_AR
6084 fi
6085else
6086 AR="$ac_cv_prog_AR"
6087fi
6088
6089if test -n "$ac_tool_prefix"; then
6090 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6091set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6093$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6094if ${ac_cv_prog_RANLIB+:} false; then :
8bc16536
CT
6095 $as_echo_n "(cached) " >&6
6096else
6097 if test -n "$RANLIB"; then
6098 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6099else
6100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101for as_dir in $PATH
6102do
6103 IFS=$as_save_IFS
6104 test -z "$as_dir" && as_dir=.
6105 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8bc16536
CT
6107 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6109 break 2
6110 fi
6111done
6112 done
6113IFS=$as_save_IFS
6114
6115fi
6116fi
6117RANLIB=$ac_cv_prog_RANLIB
6118if test -n "$RANLIB"; then
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6120$as_echo "$RANLIB" >&6; }
6121else
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6123$as_echo "no" >&6; }
6124fi
6125
6126
6127fi
6128if test -z "$ac_cv_prog_RANLIB"; then
6129 ac_ct_RANLIB=$RANLIB
6130 # Extract the first word of "ranlib", so it can be a program name with args.
6131set dummy ranlib; ac_word=$2
6132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6133$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6134if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8bc16536
CT
6135 $as_echo_n "(cached) " >&6
6136else
6137 if test -n "$ac_ct_RANLIB"; then
6138 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6139else
6140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141for as_dir in $PATH
6142do
6143 IFS=$as_save_IFS
6144 test -z "$as_dir" && as_dir=.
6145 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8bc16536
CT
6147 ac_cv_prog_ac_ct_RANLIB="ranlib"
6148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6149 break 2
6150 fi
6151done
6152 done
6153IFS=$as_save_IFS
6154
6155fi
6156fi
6157ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6158if test -n "$ac_ct_RANLIB"; then
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6160$as_echo "$ac_ct_RANLIB" >&6; }
6161else
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6163$as_echo "no" >&6; }
6164fi
6165
6166 if test "x$ac_ct_RANLIB" = x; then
6167 RANLIB=":"
6168 else
6169 case $cross_compiling:$ac_tool_warned in
6170yes:)
6171{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6172$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6173ac_tool_warned=yes ;;
6174esac
6175 RANLIB=$ac_ct_RANLIB
6176 fi
6177else
6178 RANLIB="$ac_cv_prog_RANLIB"
6179fi
6180
6181
6182# Configure libtool
6183enable_dlopen=yes
6184
6185
6186
6187case `pwd` in
6188 *\ * | *\ *)
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6190$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2077db1b
CT
6191esac
6192
6193
6194
6195macro_version='2.2.7a'
6196macro_revision='1.3134'
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210ltmain="$ac_aux_dir/ltmain.sh"
6211
6212# Backslashify metacharacters that are still active within
6213# double-quoted strings.
6214sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6215
6216# Same as above, but do not quote variable references.
6217double_quote_subst='s/\(["`\\]\)/\\\1/g'
6218
6219# Sed substitution to delay expansion of an escaped shell variable in a
6220# double_quote_subst'ed string.
6221delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6222
6223# Sed substitution to delay expansion of an escaped single quote.
6224delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6225
6226# Sed substitution to avoid accidental globbing in evaled expressions
6227no_glob_subst='s/\*/\\\*/g'
6228
6229ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6230ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6231ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6232
6233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6234$as_echo_n "checking how to print strings... " >&6; }
6235# Test print first, because it will be a builtin if present.
6236if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6237 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6238 ECHO='print -r --'
6239elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6240 ECHO='printf %s\n'
6241else
6242 # Use this function as a fallback that always works.
6243 func_fallback_echo ()
6244 {
6245 eval 'cat <<_LTECHO_EOF
6246$1
6247_LTECHO_EOF'
6248 }
6249 ECHO='func_fallback_echo'
6250fi
6251
6252# func_echo_all arg...
6253# Invoke $ECHO with all args, space-separated.
6254func_echo_all ()
6255{
6256 $ECHO ""
6257}
6258
6259case "$ECHO" in
6260 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6261$as_echo "printf" >&6; } ;;
6262 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6263$as_echo "print -r" >&6; } ;;
6264 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6265$as_echo "cat" >&6; } ;;
6266esac
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6282$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 6283if ${ac_cv_path_SED+:} false; then :
2077db1b
CT
6284 $as_echo_n "(cached) " >&6
6285else
8bc16536
CT
6286 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6287 for ac_i in 1 2 3 4 5 6 7; do
6288 ac_script="$ac_script$as_nl$ac_script"
6289 done
6290 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6291 { ac_script=; unset ac_script;}
6292 if test -z "$SED"; then
6293 ac_path_SED_found=false
2077db1b
CT
6294 # Loop through the user's path and test for each of PROGNAME-LIST
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8bc16536 6296for as_dir in $PATH
2077db1b
CT
6297do
6298 IFS=$as_save_IFS
6299 test -z "$as_dir" && as_dir=.
8bc16536 6300 for ac_prog in sed gsed; do
2077db1b 6301 for ac_exec_ext in '' $ac_executable_extensions; do
8bc16536 6302 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 6303 as_fn_executable_p "$ac_path_SED" || continue
8bc16536
CT
6304# Check for GNU ac_path_SED and select it if it is found.
6305 # Check for GNU $ac_path_SED
6306case `"$ac_path_SED" --version 2>&1` in
2077db1b 6307*GNU*)
8bc16536 6308 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2077db1b
CT
6309*)
6310 ac_count=0
6311 $as_echo_n 0123456789 >"conftest.in"
6312 while :
6313 do
6314 cat "conftest.in" "conftest.in" >"conftest.tmp"
6315 mv "conftest.tmp" "conftest.in"
6316 cp "conftest.in" "conftest.nl"
8bc16536
CT
6317 $as_echo '' >> "conftest.nl"
6318 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2077db1b
CT
6319 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6320 as_fn_arith $ac_count + 1 && ac_count=$as_val
8bc16536 6321 if test $ac_count -gt ${ac_path_SED_max-0}; then
2077db1b 6322 # Best one so far, save it but keep looking for a better one
8bc16536
CT
6323 ac_cv_path_SED="$ac_path_SED"
6324 ac_path_SED_max=$ac_count
2077db1b
CT
6325 fi
6326 # 10*(2^10) chars as input seems more than enough
6327 test $ac_count -gt 10 && break
6328 done
6329 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6330esac
6331
8bc16536 6332 $ac_path_SED_found && break 3
2077db1b
CT
6333 done
6334 done
6335 done
6336IFS=$as_save_IFS
8bc16536 6337 if test -z "$ac_cv_path_SED"; then
22e05272 6338 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2077db1b
CT
6339 fi
6340else
8bc16536 6341 ac_cv_path_SED=$SED
2077db1b
CT
6342fi
6343
2077db1b 6344fi
8bc16536
CT
6345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6346$as_echo "$ac_cv_path_SED" >&6; }
6347 SED="$ac_cv_path_SED"
6348 rm -f conftest.sed
6349
6350test -z "$SED" && SED=sed
6351Xsed="$SED -e 1s/^X//"
6352
6353
6354
6355
6356
6357
6358
6359
6360
2077db1b
CT
6361
6362
6363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6364$as_echo_n "checking for fgrep... " >&6; }
22e05272 6365if ${ac_cv_path_FGREP+:} false; then :
2077db1b
CT
6366 $as_echo_n "(cached) " >&6
6367else
6368 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6369 then ac_cv_path_FGREP="$GREP -F"
6370 else
6371 if test -z "$FGREP"; then
6372 ac_path_FGREP_found=false
6373 # Loop through the user's path and test for each of PROGNAME-LIST
6374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6376do
6377 IFS=$as_save_IFS
6378 test -z "$as_dir" && as_dir=.
6379 for ac_prog in fgrep; do
6380 for ac_exec_ext in '' $ac_executable_extensions; do
6381 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 6382 as_fn_executable_p "$ac_path_FGREP" || continue
2077db1b
CT
6383# Check for GNU ac_path_FGREP and select it if it is found.
6384 # Check for GNU $ac_path_FGREP
6385case `"$ac_path_FGREP" --version 2>&1` in
6386*GNU*)
6387 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6388*)
6389 ac_count=0
6390 $as_echo_n 0123456789 >"conftest.in"
6391 while :
6392 do
6393 cat "conftest.in" "conftest.in" >"conftest.tmp"
6394 mv "conftest.tmp" "conftest.in"
6395 cp "conftest.in" "conftest.nl"
6396 $as_echo 'FGREP' >> "conftest.nl"
6397 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6398 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6399 as_fn_arith $ac_count + 1 && ac_count=$as_val
6400 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6401 # Best one so far, save it but keep looking for a better one
6402 ac_cv_path_FGREP="$ac_path_FGREP"
6403 ac_path_FGREP_max=$ac_count
6404 fi
6405 # 10*(2^10) chars as input seems more than enough
6406 test $ac_count -gt 10 && break
6407 done
6408 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6409esac
6410
6411 $ac_path_FGREP_found && break 3
6412 done
6413 done
6414 done
6415IFS=$as_save_IFS
6416 if test -z "$ac_cv_path_FGREP"; then
22e05272 6417 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
2077db1b
CT
6418 fi
6419else
6420 ac_cv_path_FGREP=$FGREP
6421fi
6422
6423 fi
6424fi
6425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6426$as_echo "$ac_cv_path_FGREP" >&6; }
6427 FGREP="$ac_cv_path_FGREP"
6428
6429
6430test -z "$GREP" && GREP=grep
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450# Check whether --with-gnu-ld was given.
6451if test "${with_gnu_ld+set}" = set; then :
6452 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6453else
6454 with_gnu_ld=no
6455fi
6456
6457ac_prog=ld
6458if test "$GCC" = yes; then
6459 # Check if gcc -print-prog-name=ld gives a path.
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6461$as_echo_n "checking for ld used by $CC... " >&6; }
6462 case $host in
6463 *-*-mingw*)
6464 # gcc leaves a trailing carriage return which upsets mingw
6465 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6466 *)
6467 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6468 esac
6469 case $ac_prog in
6470 # Accept absolute paths.
6471 [\\/]* | ?:[\\/]*)
6472 re_direlt='/[^/][^/]*/\.\./'
6473 # Canonicalize the pathname of ld
6474 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6475 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6476 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6477 done
6478 test -z "$LD" && LD="$ac_prog"
6479 ;;
6480 "")
6481 # If it fails, then pretend we aren't using GCC.
6482 ac_prog=ld
6483 ;;
6484 *)
6485 # If it is relative, then search for the first ld in PATH.
6486 with_gnu_ld=unknown
6487 ;;
6488 esac
6489elif test "$with_gnu_ld" = yes; then
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6491$as_echo_n "checking for GNU ld... " >&6; }
6492else
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6494$as_echo_n "checking for non-GNU ld... " >&6; }
6495fi
22e05272 6496if ${lt_cv_path_LD+:} false; then :
2077db1b
CT
6497 $as_echo_n "(cached) " >&6
6498else
6499 if test -z "$LD"; then
6500 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6501 for ac_dir in $PATH; do
6502 IFS="$lt_save_ifs"
6503 test -z "$ac_dir" && ac_dir=.
6504 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6505 lt_cv_path_LD="$ac_dir/$ac_prog"
6506 # Check to see if the program is GNU ld. I'd rather use --version,
6507 # but apparently some variants of GNU ld only accept -v.
6508 # Break only if it was the GNU/non-GNU ld that we prefer.
6509 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6510 *GNU* | *'with BFD'*)
6511 test "$with_gnu_ld" != no && break
6512 ;;
6513 *)
6514 test "$with_gnu_ld" != yes && break
6515 ;;
6516 esac
6517 fi
6518 done
6519 IFS="$lt_save_ifs"
6520else
6521 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6522fi
6523fi
6524
6525LD="$lt_cv_path_LD"
6526if test -n "$LD"; then
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6528$as_echo "$LD" >&6; }
6529else
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6531$as_echo "no" >&6; }
6532fi
22e05272 6533test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
2077db1b
CT
6534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6535$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 6536if ${lt_cv_prog_gnu_ld+:} false; then :
2077db1b
CT
6537 $as_echo_n "(cached) " >&6
6538else
6539 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6540case `$LD -v 2>&1 </dev/null` in
6541*GNU* | *'with BFD'*)
6542 lt_cv_prog_gnu_ld=yes
6543 ;;
6544*)
6545 lt_cv_prog_gnu_ld=no
6546 ;;
6547esac
6548fi
6549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6550$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6551with_gnu_ld=$lt_cv_prog_gnu_ld
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6562$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
22e05272 6563if ${lt_cv_path_NM+:} false; then :
2077db1b
CT
6564 $as_echo_n "(cached) " >&6
6565else
6566 if test -n "$NM"; then
6567 # Let the user override the test.
6568 lt_cv_path_NM="$NM"
6569else
6570 lt_nm_to_check="${ac_tool_prefix}nm"
6571 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6572 lt_nm_to_check="$lt_nm_to_check nm"
6573 fi
6574 for lt_tmp_nm in $lt_nm_to_check; do
6575 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6576 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6577 IFS="$lt_save_ifs"
6578 test -z "$ac_dir" && ac_dir=.
6579 tmp_nm="$ac_dir/$lt_tmp_nm"
6580 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6581 # Check to see if the nm accepts a BSD-compat flag.
6582 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6583 # nm: unknown option "B" ignored
6584 # Tru64's nm complains that /dev/null is an invalid object file
6585 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6586 */dev/null* | *'Invalid file or object type'*)
6587 lt_cv_path_NM="$tmp_nm -B"
6588 break
6589 ;;
6590 *)
6591 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6592 */dev/null*)
6593 lt_cv_path_NM="$tmp_nm -p"
6594 break
6595 ;;
6596 *)
6597 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6598 continue # so that we can try to find one that supports BSD flags
6599 ;;
6600 esac
6601 ;;
6602 esac
6603 fi
6604 done
6605 IFS="$lt_save_ifs"
6606 done
6607 : ${lt_cv_path_NM=no}
6608fi
6609fi
6610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6611$as_echo "$lt_cv_path_NM" >&6; }
6612if test "$lt_cv_path_NM" != "no"; then
6613 NM="$lt_cv_path_NM"
6614else
6615 # Didn't find any BSD compatible name lister, look for dumpbin.
6616 if test -n "$DUMPBIN"; then :
6617 # Let the user override the test.
6618 else
6619 if test -n "$ac_tool_prefix"; then
6620 for ac_prog in dumpbin "link -dump"
6621 do
6622 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6623set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6625$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6626if ${ac_cv_prog_DUMPBIN+:} false; then :
2077db1b
CT
6627 $as_echo_n "(cached) " >&6
6628else
6629 if test -n "$DUMPBIN"; then
6630 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6631else
6632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633for as_dir in $PATH
6634do
6635 IFS=$as_save_IFS
6636 test -z "$as_dir" && as_dir=.
6637 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2077db1b
CT
6639 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6641 break 2
6642 fi
6643done
6644 done
6645IFS=$as_save_IFS
6646
6647fi
6648fi
6649DUMPBIN=$ac_cv_prog_DUMPBIN
6650if test -n "$DUMPBIN"; then
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6652$as_echo "$DUMPBIN" >&6; }
6653else
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655$as_echo "no" >&6; }
6656fi
6657
6658
6659 test -n "$DUMPBIN" && break
6660 done
6661fi
6662if test -z "$DUMPBIN"; then
6663 ac_ct_DUMPBIN=$DUMPBIN
6664 for ac_prog in dumpbin "link -dump"
6665do
6666 # Extract the first word of "$ac_prog", so it can be a program name with args.
6667set dummy $ac_prog; ac_word=$2
6668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6669$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6670if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
2077db1b
CT
6671 $as_echo_n "(cached) " >&6
6672else
6673 if test -n "$ac_ct_DUMPBIN"; then
6674 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6675else
6676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677for as_dir in $PATH
6678do
6679 IFS=$as_save_IFS
6680 test -z "$as_dir" && as_dir=.
6681 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2077db1b
CT
6683 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6685 break 2
6686 fi
6687done
6688 done
6689IFS=$as_save_IFS
6690
6691fi
6692fi
6693ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6694if test -n "$ac_ct_DUMPBIN"; then
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6696$as_echo "$ac_ct_DUMPBIN" >&6; }
6697else
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699$as_echo "no" >&6; }
6700fi
6701
6702
6703 test -n "$ac_ct_DUMPBIN" && break
6704done
6705
6706 if test "x$ac_ct_DUMPBIN" = x; then
6707 DUMPBIN=":"
6708 else
6709 case $cross_compiling:$ac_tool_warned in
6710yes:)
6711{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6712$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6713ac_tool_warned=yes ;;
6714esac
6715 DUMPBIN=$ac_ct_DUMPBIN
6716 fi
6717fi
6718
6719 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6720 *COFF*)
6721 DUMPBIN="$DUMPBIN -symbols"
6722 ;;
6723 *)
6724 DUMPBIN=:
6725 ;;
6726 esac
6727 fi
6728
6729 if test "$DUMPBIN" != ":"; then
6730 NM="$DUMPBIN"
6731 fi
6732fi
6733test -z "$NM" && NM=nm
6734
6735
6736
6737
6738
6739
6740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6741$as_echo_n "checking the name lister ($NM) interface... " >&6; }
22e05272 6742if ${lt_cv_nm_interface+:} false; then :
2077db1b
CT
6743 $as_echo_n "(cached) " >&6
6744else
6745 lt_cv_nm_interface="BSD nm"
6746 echo "int some_variable = 0;" > conftest.$ac_ext
6747 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6748 (eval "$ac_compile" 2>conftest.err)
6749 cat conftest.err >&5
6750 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6751 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6752 cat conftest.err >&5
6753 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6754 cat conftest.out >&5
6755 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6756 lt_cv_nm_interface="MS dumpbin"
6757 fi
6758 rm -f conftest*
6759fi
6760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6761$as_echo "$lt_cv_nm_interface" >&6; }
6762
6763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6764$as_echo_n "checking whether ln -s works... " >&6; }
6765LN_S=$as_ln_s
6766if test "$LN_S" = "ln -s"; then
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6768$as_echo "yes" >&6; }
6769else
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6771$as_echo "no, using $LN_S" >&6; }
6772fi
6773
6774# find the maximum length of command line arguments
6775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6776$as_echo_n "checking the maximum length of command line arguments... " >&6; }
22e05272 6777if ${lt_cv_sys_max_cmd_len+:} false; then :
2077db1b
CT
6778 $as_echo_n "(cached) " >&6
6779else
6780 i=0
6781 teststring="ABCD"
6782
6783 case $build_os in
6784 msdosdjgpp*)
6785 # On DJGPP, this test can blow up pretty badly due to problems in libc
6786 # (any single argument exceeding 2000 bytes causes a buffer overrun
6787 # during glob expansion). Even if it were fixed, the result of this
6788 # check would be larger than it should be.
6789 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6790 ;;
6791
6792 gnu*)
6793 # Under GNU Hurd, this test is not required because there is
6794 # no limit to the length of command line arguments.
6795 # Libtool will interpret -1 as no limit whatsoever
6796 lt_cv_sys_max_cmd_len=-1;
6797 ;;
6798
6799 cygwin* | mingw* | cegcc*)
6800 # On Win9x/ME, this test blows up -- it succeeds, but takes
6801 # about 5 minutes as the teststring grows exponentially.
6802 # Worse, since 9x/ME are not pre-emptively multitasking,
6803 # you end up with a "frozen" computer, even though with patience
6804 # the test eventually succeeds (with a max line length of 256k).
6805 # Instead, let's just punt: use the minimum linelength reported by
6806 # all of the supported platforms: 8192 (on NT/2K/XP).
6807 lt_cv_sys_max_cmd_len=8192;
6808 ;;
6809
6810 mint*)
6811 # On MiNT this can take a long time and run out of memory.
6812 lt_cv_sys_max_cmd_len=8192;
6813 ;;
6814
6815 amigaos*)
6816 # On AmigaOS with pdksh, this test takes hours, literally.
6817 # So we just punt and use a minimum line length of 8192.
6818 lt_cv_sys_max_cmd_len=8192;
6819 ;;
6820
6821 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6822 # This has been around since 386BSD, at least. Likely further.
6823 if test -x /sbin/sysctl; then
6824 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6825 elif test -x /usr/sbin/sysctl; then
6826 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6827 else
6828 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6829 fi
6830 # And add a safety zone
6831 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6832 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6833 ;;
6834
6835 interix*)
6836 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6837 lt_cv_sys_max_cmd_len=196608
6838 ;;
6839
6840 osf*)
6841 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6842 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6843 # nice to cause kernel panics so lets avoid the loop below.
6844 # First set a reasonable default.
6845 lt_cv_sys_max_cmd_len=16384
6846 #
6847 if test -x /sbin/sysconfig; then
6848 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6849 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6850 esac
6851 fi
6852 ;;
6853 sco3.2v5*)
6854 lt_cv_sys_max_cmd_len=102400
6855 ;;
6856 sysv5* | sco5v6* | sysv4.2uw2*)
6857 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6858 if test -n "$kargmax"; then
6859 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6860 else
6861 lt_cv_sys_max_cmd_len=32768
6862 fi
6863 ;;
6864 *)
6865 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6866 if test -n "$lt_cv_sys_max_cmd_len"; then
6867 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6868 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6869 else
6870 # Make teststring a little bigger before we do anything with it.
6871 # a 1K string should be a reasonable start.
6872 for i in 1 2 3 4 5 6 7 8 ; do
6873 teststring=$teststring$teststring
6874 done
6875 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6876 # If test is not a shell built-in, we'll probably end up computing a
6877 # maximum length that is only half of the actual maximum length, but
6878 # we can't tell.
6879 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6880 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6881 test $i != 17 # 1/2 MB should be enough
6882 do
6883 i=`expr $i + 1`
6884 teststring=$teststring$teststring
6885 done
6886 # Only check the string length outside the loop.
6887 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6888 teststring=
6889 # Add a significant safety factor because C++ compilers can tack on
6890 # massive amounts of additional arguments before passing them to the
6891 # linker. It appears as though 1/2 is a usable value.
6892 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6893 fi
6894 ;;
6895 esac
6896
6897fi
6898
6899if test -n $lt_cv_sys_max_cmd_len ; then
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6901$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6902else
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6904$as_echo "none" >&6; }
6905fi
6906max_cmd_len=$lt_cv_sys_max_cmd_len
6907
6908
6909
6910
6911
6912
6913: ${CP="cp -f"}
6914: ${MV="mv -f"}
6915: ${RM="rm -f"}
6916
6917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6918$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6919# Try some XSI features
6920xsi_shell=no
6921( _lt_dummy="a/b/c"
6922 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6923 = c,a/b,, \
6924 && eval 'test $(( 1 + 1 )) -eq 2 \
6925 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6926 && xsi_shell=yes
6927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6928$as_echo "$xsi_shell" >&6; }
6929
6930
6931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6932$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6933lt_shell_append=no
6934( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6935 >/dev/null 2>&1 \
6936 && lt_shell_append=yes
6937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6938$as_echo "$lt_shell_append" >&6; }
6939
6940
6941if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6942 lt_unset=unset
6943else
6944 lt_unset=false
6945fi
6946
6947
6948
6949
6950
6951# test EBCDIC or ASCII
6952case `echo X|tr X '\101'` in
6953 A) # ASCII based system
6954 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6955 lt_SP2NL='tr \040 \012'
6956 lt_NL2SP='tr \015\012 \040\040'
6957 ;;
6958 *) # EBCDIC based system
6959 lt_SP2NL='tr \100 \n'
6960 lt_NL2SP='tr \r\n \100\100'
6961 ;;
6962esac
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6973$as_echo_n "checking for $LD option to reload object files... " >&6; }
22e05272 6974if ${lt_cv_ld_reload_flag+:} false; then :
2077db1b
CT
6975 $as_echo_n "(cached) " >&6
6976else
6977 lt_cv_ld_reload_flag='-r'
6978fi
6979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6980$as_echo "$lt_cv_ld_reload_flag" >&6; }
6981reload_flag=$lt_cv_ld_reload_flag
6982case $reload_flag in
6983"" | " "*) ;;
6984*) reload_flag=" $reload_flag" ;;
6985esac
6986reload_cmds='$LD$reload_flag -o $output$reload_objs'
6987case $host_os in
6988 darwin*)
6989 if test "$GCC" = yes; then
6990 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6991 else
6992 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6993 fi
6994 ;;
6995esac
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005if test -n "$ac_tool_prefix"; then
7006 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7007set dummy ${ac_tool_prefix}objdump; ac_word=$2
7008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7009$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7010if ${ac_cv_prog_OBJDUMP+:} false; then :
2077db1b
CT
7011 $as_echo_n "(cached) " >&6
7012else
7013 if test -n "$OBJDUMP"; then
7014 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7015else
7016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017for as_dir in $PATH
7018do
7019 IFS=$as_save_IFS
7020 test -z "$as_dir" && as_dir=.
7021 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2077db1b
CT
7023 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7025 break 2
7026 fi
7027done
7028 done
7029IFS=$as_save_IFS
7030
7031fi
7032fi
7033OBJDUMP=$ac_cv_prog_OBJDUMP
7034if test -n "$OBJDUMP"; then
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7036$as_echo "$OBJDUMP" >&6; }
7037else
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7039$as_echo "no" >&6; }
7040fi
7041
7042
7043fi
7044if test -z "$ac_cv_prog_OBJDUMP"; then
7045 ac_ct_OBJDUMP=$OBJDUMP
7046 # Extract the first word of "objdump", so it can be a program name with args.
7047set dummy objdump; ac_word=$2
7048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7049$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7050if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
2077db1b
CT
7051 $as_echo_n "(cached) " >&6
7052else
7053 if test -n "$ac_ct_OBJDUMP"; then
7054 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7055else
7056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057for as_dir in $PATH
7058do
7059 IFS=$as_save_IFS
7060 test -z "$as_dir" && as_dir=.
7061 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2077db1b
CT
7063 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7065 break 2
7066 fi
7067done
7068 done
7069IFS=$as_save_IFS
7070
7071fi
7072fi
7073ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7074if test -n "$ac_ct_OBJDUMP"; then
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7076$as_echo "$ac_ct_OBJDUMP" >&6; }
7077else
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7079$as_echo "no" >&6; }
7080fi
7081
7082 if test "x$ac_ct_OBJDUMP" = x; then
7083 OBJDUMP="false"
7084 else
7085 case $cross_compiling:$ac_tool_warned in
7086yes:)
7087{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7088$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7089ac_tool_warned=yes ;;
7090esac
7091 OBJDUMP=$ac_ct_OBJDUMP
7092 fi
7093else
7094 OBJDUMP="$ac_cv_prog_OBJDUMP"
7095fi
7096
7097test -z "$OBJDUMP" && OBJDUMP=objdump
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7108$as_echo_n "checking how to recognize dependent libraries... " >&6; }
22e05272 7109if ${lt_cv_deplibs_check_method+:} false; then :
2077db1b
CT
7110 $as_echo_n "(cached) " >&6
7111else
7112 lt_cv_file_magic_cmd='$MAGIC_CMD'
7113lt_cv_file_magic_test_file=
7114lt_cv_deplibs_check_method='unknown'
7115# Need to set the preceding variable on all platforms that support
7116# interlibrary dependencies.
7117# 'none' -- dependencies not supported.
7118# `unknown' -- same as none, but documents that we really don't know.
7119# 'pass_all' -- all dependencies passed with no checks.
7120# 'test_compile' -- check by making test program.
7121# 'file_magic [[regex]]' -- check by looking for files in library path
7122# which responds to the $file_magic_cmd with a given extended regex.
7123# If you have `file' or equivalent on your system and you're not sure
7124# whether `pass_all' will *always* work, you probably want this one.
7125
7126case $host_os in
7127aix[4-9]*)
7128 lt_cv_deplibs_check_method=pass_all
7129 ;;
7130
7131beos*)
7132 lt_cv_deplibs_check_method=pass_all
7133 ;;
7134
7135bsdi[45]*)
7136 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7137 lt_cv_file_magic_cmd='/usr/bin/file -L'
7138 lt_cv_file_magic_test_file=/shlib/libc.so
7139 ;;
7140
7141cygwin*)
7142 # func_win32_libid is a shell function defined in ltmain.sh
7143 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7144 lt_cv_file_magic_cmd='func_win32_libid'
7145 ;;
7146
7147mingw* | pw32*)
7148 # Base MSYS/MinGW do not provide the 'file' command needed by
7149 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7150 # unless we find 'file', for example because we are cross-compiling.
7151 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7152 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7153 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7154 lt_cv_file_magic_cmd='func_win32_libid'
7155 else
7156 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7157 lt_cv_file_magic_cmd='$OBJDUMP -f'
7158 fi
7159 ;;
7160
7161cegcc*)
7162 # use the weaker test based on 'objdump'. See mingw*.
7163 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7164 lt_cv_file_magic_cmd='$OBJDUMP -f'
7165 ;;
7166
7167darwin* | rhapsody*)
7168 lt_cv_deplibs_check_method=pass_all
7169 ;;
7170
7171freebsd* | dragonfly*)
7172 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7173 case $host_cpu in
7174 i*86 )
7175 # Not sure whether the presence of OpenBSD here was a mistake.
7176 # Let's accept both of them until this is cleared up.
7177 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7178 lt_cv_file_magic_cmd=/usr/bin/file
7179 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7180 ;;
7181 esac
7182 else
7183 lt_cv_deplibs_check_method=pass_all
7184 fi
7185 ;;
7186
7187gnu*)
7188 lt_cv_deplibs_check_method=pass_all
7189 ;;
7190
7191haiku*)
7192 lt_cv_deplibs_check_method=pass_all
7193 ;;
7194
7195hpux10.20* | hpux11*)
7196 lt_cv_file_magic_cmd=/usr/bin/file
7197 case $host_cpu in
7198 ia64*)
7199 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7200 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7201 ;;
7202 hppa*64*)
7203 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]'
7204 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7205 ;;
7206 *)
7207 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7208 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7209 ;;
7210 esac
7211 ;;
7212
7213interix[3-9]*)
7214 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7215 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7216 ;;
7217
7218irix5* | irix6* | nonstopux*)
7219 case $LD in
7220 *-32|*"-32 ") libmagic=32-bit;;
7221 *-n32|*"-n32 ") libmagic=N32;;
7222 *-64|*"-64 ") libmagic=64-bit;;
7223 *) libmagic=never-match;;
7224 esac
7225 lt_cv_deplibs_check_method=pass_all
7226 ;;
7227
7228# This must be Linux ELF.
e9085da5 7229linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
2077db1b
CT
7230 lt_cv_deplibs_check_method=pass_all
7231 ;;
7232
7233netbsd*)
7234 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7235 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7236 else
7237 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7238 fi
7239 ;;
7240
7241newos6*)
7242 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7243 lt_cv_file_magic_cmd=/usr/bin/file
7244 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7245 ;;
7246
7247*nto* | *qnx*)
7248 lt_cv_deplibs_check_method=pass_all
7249 ;;
7250
7251openbsd*)
7252 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7253 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7254 else
7255 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7256 fi
7257 ;;
7258
7259osf3* | osf4* | osf5*)
7260 lt_cv_deplibs_check_method=pass_all
7261 ;;
7262
7263rdos*)
7264 lt_cv_deplibs_check_method=pass_all
7265 ;;
7266
7267solaris*)
7268 lt_cv_deplibs_check_method=pass_all
7269 ;;
7270
7271sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7272 lt_cv_deplibs_check_method=pass_all
7273 ;;
7274
7275sysv4 | sysv4.3*)
7276 case $host_vendor in
7277 motorola)
7278 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]'
7279 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7280 ;;
7281 ncr)
7282 lt_cv_deplibs_check_method=pass_all
7283 ;;
7284 sequent)
7285 lt_cv_file_magic_cmd='/bin/file'
7286 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7287 ;;
7288 sni)
7289 lt_cv_file_magic_cmd='/bin/file'
7290 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7291 lt_cv_file_magic_test_file=/lib/libc.so
7292 ;;
7293 siemens)
7294 lt_cv_deplibs_check_method=pass_all
7295 ;;
7296 pc)
7297 lt_cv_deplibs_check_method=pass_all
7298 ;;
7299 esac
7300 ;;
7301
7302tpf*)
7303 lt_cv_deplibs_check_method=pass_all
7304 ;;
0ecd0f1c
OH
7305vxworks*)
7306 # Assume VxWorks cross toolchains are built on Linux, possibly
7307 # as canadian for Windows hosts.
7308 lt_cv_deplibs_check_method=pass_all
7309 ;;
2077db1b
CT
7310esac
7311
7312fi
7313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7314$as_echo "$lt_cv_deplibs_check_method" >&6; }
7315file_magic_cmd=$lt_cv_file_magic_cmd
7316deplibs_check_method=$lt_cv_deplibs_check_method
7317test -z "$deplibs_check_method" && deplibs_check_method=unknown
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
126f707e
L
7330plugin_option=
7331plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
7332for plugin in $plugin_names; do
7333 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
7334 if test x$plugin_so = x$plugin; then
7335 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
7336 fi
7337 if test x$plugin_so != x$plugin; then
7338 plugin_option="--plugin $plugin_so"
7339 break
7340 fi
7341done
7342
2077db1b
CT
7343if test -n "$ac_tool_prefix"; then
7344 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7345set dummy ${ac_tool_prefix}ar; ac_word=$2
7346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7347$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7348if ${ac_cv_prog_AR+:} false; then :
2077db1b
CT
7349 $as_echo_n "(cached) " >&6
7350else
7351 if test -n "$AR"; then
7352 ac_cv_prog_AR="$AR" # Let the user override the test.
7353else
7354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355for as_dir in $PATH
7356do
7357 IFS=$as_save_IFS
7358 test -z "$as_dir" && as_dir=.
7359 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2077db1b
CT
7361 ac_cv_prog_AR="${ac_tool_prefix}ar"
7362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7363 break 2
7364 fi
7365done
7366 done
7367IFS=$as_save_IFS
7368
7369fi
7370fi
7371AR=$ac_cv_prog_AR
7372if test -n "$AR"; then
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7374$as_echo "$AR" >&6; }
7375else
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377$as_echo "no" >&6; }
7378fi
7379
7380
7381fi
7382if test -z "$ac_cv_prog_AR"; then
7383 ac_ct_AR=$AR
7384 # Extract the first word of "ar", so it can be a program name with args.
7385set dummy ar; ac_word=$2
7386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7387$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7388if ${ac_cv_prog_ac_ct_AR+:} false; then :
2077db1b
CT
7389 $as_echo_n "(cached) " >&6
7390else
7391 if test -n "$ac_ct_AR"; then
7392 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7393else
7394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395for as_dir in $PATH
7396do
7397 IFS=$as_save_IFS
7398 test -z "$as_dir" && as_dir=.
7399 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2077db1b
CT
7401 ac_cv_prog_ac_ct_AR="ar"
7402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7403 break 2
7404 fi
7405done
7406 done
7407IFS=$as_save_IFS
7408
7409fi
7410fi
7411ac_ct_AR=$ac_cv_prog_ac_ct_AR
7412if test -n "$ac_ct_AR"; then
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7414$as_echo "$ac_ct_AR" >&6; }
7415else
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7417$as_echo "no" >&6; }
7418fi
7419
7420 if test "x$ac_ct_AR" = x; then
7421 AR="false"
7422 else
7423 case $cross_compiling:$ac_tool_warned in
7424yes:)
7425{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7426$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7427ac_tool_warned=yes ;;
7428esac
7429 AR=$ac_ct_AR
7430 fi
7431else
7432 AR="$ac_cv_prog_AR"
7433fi
7434
7435test -z "$AR" && AR=ar
126f707e
L
7436if test -n "$plugin_option"; then
7437 if $AR --help 2>&1 | grep -q "\--plugin"; then
7438 AR="$AR $plugin_option"
7439 fi
7440fi
2077db1b
CT
7441test -z "$AR_FLAGS" && AR_FLAGS=cru
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453if test -n "$ac_tool_prefix"; then
7454 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7455set dummy ${ac_tool_prefix}strip; ac_word=$2
7456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7457$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7458if ${ac_cv_prog_STRIP+:} false; then :
2077db1b
CT
7459 $as_echo_n "(cached) " >&6
7460else
7461 if test -n "$STRIP"; then
7462 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7463else
7464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465for as_dir in $PATH
7466do
7467 IFS=$as_save_IFS
7468 test -z "$as_dir" && as_dir=.
7469 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2077db1b
CT
7471 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7473 break 2
7474 fi
7475done
7476 done
7477IFS=$as_save_IFS
7478
7479fi
7480fi
7481STRIP=$ac_cv_prog_STRIP
7482if test -n "$STRIP"; then
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7484$as_echo "$STRIP" >&6; }
7485else
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7487$as_echo "no" >&6; }
7488fi
7489
7490
7491fi
7492if test -z "$ac_cv_prog_STRIP"; then
7493 ac_ct_STRIP=$STRIP
7494 # Extract the first word of "strip", so it can be a program name with args.
7495set dummy strip; ac_word=$2
7496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7497$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7498if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2077db1b
CT
7499 $as_echo_n "(cached) " >&6
7500else
7501 if test -n "$ac_ct_STRIP"; then
7502 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7503else
7504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505for as_dir in $PATH
7506do
7507 IFS=$as_save_IFS
7508 test -z "$as_dir" && as_dir=.
7509 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2077db1b
CT
7511 ac_cv_prog_ac_ct_STRIP="strip"
7512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7513 break 2
7514 fi
7515done
7516 done
7517IFS=$as_save_IFS
7518
7519fi
7520fi
7521ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7522if test -n "$ac_ct_STRIP"; then
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7524$as_echo "$ac_ct_STRIP" >&6; }
7525else
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527$as_echo "no" >&6; }
7528fi
7529
7530 if test "x$ac_ct_STRIP" = x; then
7531 STRIP=":"
7532 else
7533 case $cross_compiling:$ac_tool_warned in
7534yes:)
7535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7537ac_tool_warned=yes ;;
7538esac
7539 STRIP=$ac_ct_STRIP
7540 fi
7541else
7542 STRIP="$ac_cv_prog_STRIP"
7543fi
7544
7545test -z "$STRIP" && STRIP=:
7546
7547
7548
7549
7550
7551
7552if test -n "$ac_tool_prefix"; then
7553 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7554set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7556$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7557if ${ac_cv_prog_RANLIB+:} false; then :
2077db1b
CT
7558 $as_echo_n "(cached) " >&6
7559else
7560 if test -n "$RANLIB"; then
7561 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7562else
7563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564for as_dir in $PATH
7565do
7566 IFS=$as_save_IFS
7567 test -z "$as_dir" && as_dir=.
7568 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2077db1b
CT
7570 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7572 break 2
7573 fi
7574done
7575 done
7576IFS=$as_save_IFS
7577
7578fi
7579fi
7580RANLIB=$ac_cv_prog_RANLIB
7581if test -n "$RANLIB"; then
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7583$as_echo "$RANLIB" >&6; }
7584else
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7586$as_echo "no" >&6; }
7587fi
7588
7589
7590fi
7591if test -z "$ac_cv_prog_RANLIB"; then
7592 ac_ct_RANLIB=$RANLIB
7593 # Extract the first word of "ranlib", so it can be a program name with args.
7594set dummy ranlib; ac_word=$2
7595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7596$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7597if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
2077db1b
CT
7598 $as_echo_n "(cached) " >&6
7599else
7600 if test -n "$ac_ct_RANLIB"; then
7601 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7602else
7603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604for as_dir in $PATH
7605do
7606 IFS=$as_save_IFS
7607 test -z "$as_dir" && as_dir=.
7608 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2077db1b
CT
7610 ac_cv_prog_ac_ct_RANLIB="ranlib"
7611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 break 2
7613 fi
7614done
7615 done
7616IFS=$as_save_IFS
7617
7618fi
7619fi
7620ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7621if test -n "$ac_ct_RANLIB"; then
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7623$as_echo "$ac_ct_RANLIB" >&6; }
7624else
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626$as_echo "no" >&6; }
7627fi
7628
7629 if test "x$ac_ct_RANLIB" = x; then
7630 RANLIB=":"
7631 else
7632 case $cross_compiling:$ac_tool_warned in
7633yes:)
7634{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7635$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7636ac_tool_warned=yes ;;
7637esac
7638 RANLIB=$ac_ct_RANLIB
7639 fi
7640else
7641 RANLIB="$ac_cv_prog_RANLIB"
7642fi
7643
7644test -z "$RANLIB" && RANLIB=:
126f707e
L
7645if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7646 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7647 RANLIB="$RANLIB $plugin_option"
7648 fi
7649fi
2077db1b
CT
7650
7651
7652
7653
7654
7655
7656# Determine commands to create old-style static archives.
7657old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7658old_postinstall_cmds='chmod 644 $oldlib'
7659old_postuninstall_cmds=
7660
7661if test -n "$RANLIB"; then
7662 case $host_os in
7663 openbsd*)
7664 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7665 ;;
7666 *)
7667 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7668 ;;
7669 esac
7670 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7671fi
7672
7673case $host_os in
7674 darwin*)
7675 lock_old_archive_extraction=yes ;;
7676 *)
7677 lock_old_archive_extraction=no ;;
7678esac
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718# If no C compiler was specified, use CC.
7719LTCC=${LTCC-"$CC"}
7720
7721# If no C compiler flags were specified, use CFLAGS.
7722LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7723
7724# Allow CC to be a program name with arguments.
7725compiler=$CC
7726
7727
7728# Check for command to grab the raw symbol name followed by C symbol from nm.
7729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7730$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
22e05272 7731if ${lt_cv_sys_global_symbol_pipe+:} false; then :
2077db1b
CT
7732 $as_echo_n "(cached) " >&6
7733else
7734
7735# These are sane defaults that work on at least a few old systems.
7736# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7737
7738# Character class describing NM global symbol codes.
7739symcode='[BCDEGRST]'
7740
7741# Regexp to match symbols that can be accessed directly from C.
7742sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7743
7744# Define system-specific variables.
7745case $host_os in
7746aix*)
7747 symcode='[BCDT]'
7748 ;;
7749cygwin* | mingw* | pw32* | cegcc*)
7750 symcode='[ABCDGISTW]'
7751 ;;
7752hpux*)
7753 if test "$host_cpu" = ia64; then
7754 symcode='[ABCDEGRST]'
7755 fi
7756 ;;
7757irix* | nonstopux*)
7758 symcode='[BCDEGRST]'
7759 ;;
7760osf*)
7761 symcode='[BCDEGQRST]'
7762 ;;
7763solaris*)
7764 symcode='[BDRT]'
7765 ;;
7766sco3.2v5*)
7767 symcode='[DT]'
7768 ;;
7769sysv4.2uw2*)
7770 symcode='[DT]'
7771 ;;
7772sysv5* | sco5v6* | unixware* | OpenUNIX*)
7773 symcode='[ABDT]'
7774 ;;
7775sysv4)
7776 symcode='[DFNSTU]'
7777 ;;
7778esac
7779
7780# If we're using GNU nm, then use its standard symbol codes.
7781case `$NM -V 2>&1` in
7782*GNU* | *'with BFD'*)
7783 symcode='[ABCDGIRSTW]' ;;
7784esac
7785
7786# Transform an extracted symbol line into a proper C declaration.
7787# Some systems (esp. on ia64) link data and code symbols differently,
7788# so use this general approach.
7789lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7790
7791# Transform an extracted symbol line into symbol name and symbol address
7792lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7793lt_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'"
7794
7795# Handle CRLF in mingw tool chain
7796opt_cr=
7797case $build_os in
7798mingw*)
7799 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7800 ;;
7801esac
7802
7803# Try without a prefix underscore, then with it.
7804for ac_symprfx in "" "_"; do
7805
7806 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7807 symxfrm="\\1 $ac_symprfx\\2 \\2"
7808
7809 # Write the raw and C identifiers.
7810 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7811 # Fake it for dumpbin and say T for any non-static function
7812 # and D for any global variable.
7813 # Also find C++ and __fastcall symbols from MSVC++,
7814 # which start with @ or ?.
7815 lt_cv_sys_global_symbol_pipe="$AWK '"\
7816" {last_section=section; section=\$ 3};"\
7817" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7818" \$ 0!~/External *\|/{next};"\
7819" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7820" {if(hide[section]) next};"\
7821" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7822" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7823" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7824" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7825" ' prfx=^$ac_symprfx"
7826 else
7827 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7828 fi
7829
7830 # Check to see that the pipe works correctly.
7831 pipe_works=no
7832
7833 rm -f conftest*
7834 cat > conftest.$ac_ext <<_LT_EOF
7835#ifdef __cplusplus
7836extern "C" {
7837#endif
7838char nm_test_var;
7839void nm_test_func(void);
7840void nm_test_func(void){}
7841#ifdef __cplusplus
7842}
7843#endif
7844int main(){nm_test_var='a';nm_test_func();return(0);}
7845_LT_EOF
7846
7847 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7848 (eval $ac_compile) 2>&5
7849 ac_status=$?
7850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7851 test $ac_status = 0; }; then
7852 # Now try to grab the symbols.
7853 nlist=conftest.nm
7854 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7855 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7856 ac_status=$?
7857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7858 test $ac_status = 0; } && test -s "$nlist"; then
7859 # Try sorting and uniquifying the output.
7860 if sort "$nlist" | uniq > "$nlist"T; then
7861 mv -f "$nlist"T "$nlist"
7862 else
7863 rm -f "$nlist"T
7864 fi
7865
7866 # Make sure that we snagged all the symbols we need.
7867 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7868 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7869 cat <<_LT_EOF > conftest.$ac_ext
7870#ifdef __cplusplus
7871extern "C" {
7872#endif
7873
7874_LT_EOF
7875 # Now generate the symbol file.
7876 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7877
7878 cat <<_LT_EOF >> conftest.$ac_ext
7879
7880/* The mapping between symbol names and symbols. */
7881const struct {
7882 const char *name;
7883 void *address;
7884}
7885lt__PROGRAM__LTX_preloaded_symbols[] =
7886{
7887 { "@PROGRAM@", (void *) 0 },
7888_LT_EOF
7889 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7890 cat <<\_LT_EOF >> conftest.$ac_ext
7891 {0, (void *) 0}
7892};
7893
7894/* This works around a problem in FreeBSD linker */
7895#ifdef FREEBSD_WORKAROUND
7896static const void *lt_preloaded_setup() {
7897 return lt__PROGRAM__LTX_preloaded_symbols;
7898}
7899#endif
7900
7901#ifdef __cplusplus
7902}
7903#endif
7904_LT_EOF
7905 # Now try linking the two files.
7906 mv conftest.$ac_objext conftstm.$ac_objext
7907 lt_save_LIBS="$LIBS"
7908 lt_save_CFLAGS="$CFLAGS"
7909 LIBS="conftstm.$ac_objext"
7910 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7912 (eval $ac_link) 2>&5
7913 ac_status=$?
7914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7915 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7916 pipe_works=yes
7917 fi
7918 LIBS="$lt_save_LIBS"
7919 CFLAGS="$lt_save_CFLAGS"
7920 else
7921 echo "cannot find nm_test_func in $nlist" >&5
7922 fi
7923 else
7924 echo "cannot find nm_test_var in $nlist" >&5
7925 fi
7926 else
7927 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7928 fi
7929 else
7930 echo "$progname: failed program was:" >&5
7931 cat conftest.$ac_ext >&5
7932 fi
7933 rm -rf conftest* conftst*
7934
7935 # Do not use the global_symbol_pipe unless it works.
7936 if test "$pipe_works" = yes; then
7937 break
7938 else
7939 lt_cv_sys_global_symbol_pipe=
7940 fi
7941done
7942
7943fi
7944
7945if test -z "$lt_cv_sys_global_symbol_pipe"; then
7946 lt_cv_sys_global_symbol_to_cdecl=
7947fi
7948if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7950$as_echo "failed" >&6; }
7951else
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7953$as_echo "ok" >&6; }
7954fi
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
2077db1b
CT
7975
7976
7977# Check whether --enable-libtool-lock was given.
7978if test "${enable_libtool_lock+set}" = set; then :
7979 enableval=$enable_libtool_lock;
7980fi
7981
7982test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7983
7984# Some flags need to be propagated to the compiler or linker for good
7985# libtool support.
7986case $host in
7987ia64-*-hpux*)
7988 # Find out which ABI we are using.
7989 echo 'int i;' > conftest.$ac_ext
7990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7991 (eval $ac_compile) 2>&5
7992 ac_status=$?
7993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7994 test $ac_status = 0; }; then
7995 case `/usr/bin/file conftest.$ac_objext` in
7996 *ELF-32*)
7997 HPUX_IA64_MODE="32"
7998 ;;
7999 *ELF-64*)
8000 HPUX_IA64_MODE="64"
8001 ;;
8002 esac
8003 fi
8004 rm -rf conftest*
8005 ;;
8006*-*-irix6*)
8007 # Find out which ABI we are using.
8008 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8010 (eval $ac_compile) 2>&5
8011 ac_status=$?
8012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8013 test $ac_status = 0; }; then
8014 if test "$lt_cv_prog_gnu_ld" = yes; then
8015 case `/usr/bin/file conftest.$ac_objext` in
8016 *32-bit*)
8017 LD="${LD-ld} -melf32bsmip"
8018 ;;
8019 *N32*)
8020 LD="${LD-ld} -melf32bmipn32"
8021 ;;
8022 *64-bit*)
8023 LD="${LD-ld} -melf64bmip"
8024 ;;
8025 esac
8026 else
8027 case `/usr/bin/file conftest.$ac_objext` in
8028 *32-bit*)
8029 LD="${LD-ld} -32"
8030 ;;
8031 *N32*)
8032 LD="${LD-ld} -n32"
8033 ;;
8034 *64-bit*)
8035 LD="${LD-ld} -64"
8036 ;;
8037 esac
8038 fi
8039 fi
8040 rm -rf conftest*
8041 ;;
8042
3cbe17f7 8043x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
2077db1b
CT
8044s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8045 # Find out which ABI we are using.
8046 echo 'int i;' > conftest.$ac_ext
8047 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8048 (eval $ac_compile) 2>&5
8049 ac_status=$?
8050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8051 test $ac_status = 0; }; then
8052 case `/usr/bin/file conftest.o` in
8053 *32-bit*)
8054 case $host in
8055 x86_64-*kfreebsd*-gnu)
8056 LD="${LD-ld} -m elf_i386_fbsd"
8057 ;;
8058 x86_64-*linux*)
8059 case `/usr/bin/file conftest.o` in
8060 *x86-64*)
8061 LD="${LD-ld} -m elf32_x86_64"
8062 ;;
8063 *)
8064 LD="${LD-ld} -m elf_i386"
8065 ;;
8066 esac
8067 ;;
3cbe17f7
AM
8068 powerpc64le-*linux*)
8069 LD="${LD-ld} -m elf32lppclinux"
8070 ;;
8071 powerpc64-*linux*)
2077db1b
CT
8072 LD="${LD-ld} -m elf32ppclinux"
8073 ;;
8074 s390x-*linux*)
8075 LD="${LD-ld} -m elf_s390"
8076 ;;
8077 sparc64-*linux*)
8078 LD="${LD-ld} -m elf32_sparc"
8079 ;;
8080 esac
8081 ;;
8082 *64-bit*)
8083 case $host in
8084 x86_64-*kfreebsd*-gnu)
8085 LD="${LD-ld} -m elf_x86_64_fbsd"
8086 ;;
8087 x86_64-*linux*)
8088 LD="${LD-ld} -m elf_x86_64"
8089 ;;
3cbe17f7
AM
8090 powerpcle-*linux*)
8091 LD="${LD-ld} -m elf64lppc"
8092 ;;
8093 powerpc-*linux*)
2077db1b
CT
8094 LD="${LD-ld} -m elf64ppc"
8095 ;;
8096 s390*-*linux*|s390*-*tpf*)
8097 LD="${LD-ld} -m elf64_s390"
8098 ;;
8099 sparc*-*linux*)
8100 LD="${LD-ld} -m elf64_sparc"
8101 ;;
8102 esac
8103 ;;
8104 esac
8105 fi
8106 rm -rf conftest*
8107 ;;
8108
8109*-*-sco3.2v5*)
8110 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8111 SAVE_CFLAGS="$CFLAGS"
8112 CFLAGS="$CFLAGS -belf"
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8114$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
22e05272 8115if ${lt_cv_cc_needs_belf+:} false; then :
2077db1b
CT
8116 $as_echo_n "(cached) " >&6
8117else
8118 ac_ext=c
8119ac_cpp='$CPP $CPPFLAGS'
8120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8122ac_compiler_gnu=$ac_cv_c_compiler_gnu
8123
8124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8125/* end confdefs.h. */
8126
8127int
8128main ()
8129{
8130
8131 ;
8132 return 0;
8133}
8134_ACEOF
8135if ac_fn_c_try_link "$LINENO"; then :
8136 lt_cv_cc_needs_belf=yes
8137else
8138 lt_cv_cc_needs_belf=no
8139fi
8140rm -f core conftest.err conftest.$ac_objext \
8141 conftest$ac_exeext conftest.$ac_ext
8142 ac_ext=c
8143ac_cpp='$CPP $CPPFLAGS'
8144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8146ac_compiler_gnu=$ac_cv_c_compiler_gnu
8147
8148fi
8149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8150$as_echo "$lt_cv_cc_needs_belf" >&6; }
8151 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8152 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8153 CFLAGS="$SAVE_CFLAGS"
8154 fi
8155 ;;
8156sparc*-*solaris*)
8157 # Find out which ABI we are using.
8158 echo 'int i;' > conftest.$ac_ext
8159 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8160 (eval $ac_compile) 2>&5
8161 ac_status=$?
8162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8163 test $ac_status = 0; }; then
8164 case `/usr/bin/file conftest.o` in
8165 *64-bit*)
8166 case $lt_cv_prog_gnu_ld in
8167 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8168 *)
8169 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8170 LD="${LD-ld} -64"
8171 fi
8172 ;;
8173 esac
8174 ;;
8175 esac
8176 fi
8177 rm -rf conftest*
8178 ;;
8179esac
8180
8181need_locks="$enable_libtool_lock"
8182
8183
8184 case $host_os in
8185 rhapsody* | darwin*)
8186 if test -n "$ac_tool_prefix"; then
8187 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8188set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8190$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8191if ${ac_cv_prog_DSYMUTIL+:} false; then :
2077db1b
CT
8192 $as_echo_n "(cached) " >&6
8193else
8194 if test -n "$DSYMUTIL"; then
8195 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8196else
8197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8198for as_dir in $PATH
8199do
8200 IFS=$as_save_IFS
8201 test -z "$as_dir" && as_dir=.
8202 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2077db1b
CT
8204 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8206 break 2
8207 fi
8208done
8209 done
8210IFS=$as_save_IFS
8211
8212fi
8213fi
8214DSYMUTIL=$ac_cv_prog_DSYMUTIL
8215if test -n "$DSYMUTIL"; then
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8217$as_echo "$DSYMUTIL" >&6; }
8218else
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8220$as_echo "no" >&6; }
8221fi
8222
8223
8224fi
8bc16536
CT
8225if test -z "$ac_cv_prog_DSYMUTIL"; then
8226 ac_ct_DSYMUTIL=$DSYMUTIL
8227 # Extract the first word of "dsymutil", so it can be a program name with args.
8228set dummy dsymutil; ac_word=$2
2077db1b
CT
8229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8230$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8231if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
2077db1b
CT
8232 $as_echo_n "(cached) " >&6
8233else
8bc16536
CT
8234 if test -n "$ac_ct_DSYMUTIL"; then
8235 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
2077db1b
CT
8236else
8237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8238for as_dir in $PATH
8239do
8240 IFS=$as_save_IFS
8241 test -z "$as_dir" && as_dir=.
8242 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8bc16536 8244 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
2077db1b
CT
8245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8246 break 2
8247 fi
8248done
8249 done
8250IFS=$as_save_IFS
8251
8252fi
8253fi
8bc16536
CT
8254ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8255if test -n "$ac_ct_DSYMUTIL"; then
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8257$as_echo "$ac_ct_DSYMUTIL" >&6; }
2077db1b
CT
8258else
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8260$as_echo "no" >&6; }
8261fi
8262
8bc16536
CT
8263 if test "x$ac_ct_DSYMUTIL" = x; then
8264 DSYMUTIL=":"
2077db1b
CT
8265 else
8266 case $cross_compiling:$ac_tool_warned in
8267yes:)
8268{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8269$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8270ac_tool_warned=yes ;;
8271esac
8bc16536 8272 DSYMUTIL=$ac_ct_DSYMUTIL
2077db1b
CT
8273 fi
8274else
8bc16536 8275 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
2077db1b
CT
8276fi
8277
8278 if test -n "$ac_tool_prefix"; then
8bc16536
CT
8279 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8280set dummy ${ac_tool_prefix}nmedit; ac_word=$2
2077db1b
CT
8281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8282$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8283if ${ac_cv_prog_NMEDIT+:} false; then :
2077db1b
CT
8284 $as_echo_n "(cached) " >&6
8285else
8bc16536
CT
8286 if test -n "$NMEDIT"; then
8287 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
2077db1b
CT
8288else
8289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8290for as_dir in $PATH
8291do
8292 IFS=$as_save_IFS
8293 test -z "$as_dir" && as_dir=.
8294 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8bc16536 8296 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
2077db1b
CT
8297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8298 break 2
8299 fi
8300done
8301 done
8302IFS=$as_save_IFS
8303
8304fi
8305fi
8bc16536
CT
8306NMEDIT=$ac_cv_prog_NMEDIT
8307if test -n "$NMEDIT"; then
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8309$as_echo "$NMEDIT" >&6; }
2077db1b
CT
8310else
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8312$as_echo "no" >&6; }
8313fi
8314
8315
8316fi
8bc16536
CT
8317if test -z "$ac_cv_prog_NMEDIT"; then
8318 ac_ct_NMEDIT=$NMEDIT
8319 # Extract the first word of "nmedit", so it can be a program name with args.
8320set dummy nmedit; ac_word=$2
2077db1b
CT
8321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8322$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8323if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
2077db1b
CT
8324 $as_echo_n "(cached) " >&6
8325else
8bc16536
CT
8326 if test -n "$ac_ct_NMEDIT"; then
8327 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
2077db1b
CT
8328else
8329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8330for as_dir in $PATH
8331do
8332 IFS=$as_save_IFS
8333 test -z "$as_dir" && as_dir=.
8334 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8bc16536 8336 ac_cv_prog_ac_ct_NMEDIT="nmedit"
2077db1b
CT
8337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8338 break 2
8339 fi
8340done
8341 done
8342IFS=$as_save_IFS
8343
8344fi
8345fi
8bc16536
CT
8346ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8347if test -n "$ac_ct_NMEDIT"; then
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8349$as_echo "$ac_ct_NMEDIT" >&6; }
2077db1b
CT
8350else
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8352$as_echo "no" >&6; }
8353fi
8354
8bc16536
CT
8355 if test "x$ac_ct_NMEDIT" = x; then
8356 NMEDIT=":"
2077db1b
CT
8357 else
8358 case $cross_compiling:$ac_tool_warned in
8359yes:)
8360{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8361$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8362ac_tool_warned=yes ;;
8363esac
8bc16536 8364 NMEDIT=$ac_ct_NMEDIT
2077db1b
CT
8365 fi
8366else
8bc16536 8367 NMEDIT="$ac_cv_prog_NMEDIT"
2077db1b
CT
8368fi
8369
8370 if test -n "$ac_tool_prefix"; then
8bc16536
CT
8371 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8372set dummy ${ac_tool_prefix}lipo; ac_word=$2
2077db1b
CT
8373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8374$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8375if ${ac_cv_prog_LIPO+:} false; then :
2077db1b
CT
8376 $as_echo_n "(cached) " >&6
8377else
8bc16536
CT
8378 if test -n "$LIPO"; then
8379 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
2077db1b
CT
8380else
8381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8382for as_dir in $PATH
8383do
8384 IFS=$as_save_IFS
8385 test -z "$as_dir" && as_dir=.
8386 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8bc16536 8388 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
2077db1b
CT
8389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8390 break 2
8391 fi
8392done
8393 done
8394IFS=$as_save_IFS
8395
8396fi
8397fi
8bc16536
CT
8398LIPO=$ac_cv_prog_LIPO
8399if test -n "$LIPO"; then
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8401$as_echo "$LIPO" >&6; }
2077db1b
CT
8402else
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8404$as_echo "no" >&6; }
8405fi
8406
8407
8408fi
8bc16536
CT
8409if test -z "$ac_cv_prog_LIPO"; then
8410 ac_ct_LIPO=$LIPO
8411 # Extract the first word of "lipo", so it can be a program name with args.
8412set dummy lipo; ac_word=$2
2077db1b
CT
8413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8414$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8415if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
2077db1b
CT
8416 $as_echo_n "(cached) " >&6
8417else
8bc16536
CT
8418 if test -n "$ac_ct_LIPO"; then
8419 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
2077db1b
CT
8420else
8421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8422for as_dir in $PATH
8423do
8424 IFS=$as_save_IFS
8425 test -z "$as_dir" && as_dir=.
8426 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8bc16536 8428 ac_cv_prog_ac_ct_LIPO="lipo"
2077db1b
CT
8429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8430 break 2
8431 fi
8432done
8433 done
8434IFS=$as_save_IFS
8435
8436fi
8437fi
8bc16536
CT
8438ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8439if test -n "$ac_ct_LIPO"; then
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8441$as_echo "$ac_ct_LIPO" >&6; }
2077db1b
CT
8442else
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8444$as_echo "no" >&6; }
8445fi
8446
8bc16536
CT
8447 if test "x$ac_ct_LIPO" = x; then
8448 LIPO=":"
2077db1b
CT
8449 else
8450 case $cross_compiling:$ac_tool_warned in
8451yes:)
8452{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8453$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8454ac_tool_warned=yes ;;
8455esac
8bc16536 8456 LIPO=$ac_ct_LIPO
2077db1b
CT
8457 fi
8458else
8bc16536 8459 LIPO="$ac_cv_prog_LIPO"
2077db1b
CT
8460fi
8461
8bc16536
CT
8462 if test -n "$ac_tool_prefix"; then
8463 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8464set dummy ${ac_tool_prefix}otool; ac_word=$2
8465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8466$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8467if ${ac_cv_prog_OTOOL+:} false; then :
2077db1b
CT
8468 $as_echo_n "(cached) " >&6
8469else
8bc16536
CT
8470 if test -n "$OTOOL"; then
8471 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
2077db1b 8472else
8bc16536
CT
8473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8474for as_dir in $PATH
8475do
8476 IFS=$as_save_IFS
8477 test -z "$as_dir" && as_dir=.
8478 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8bc16536
CT
8480 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8482 break 2
8483 fi
8484done
8485 done
8486IFS=$as_save_IFS
2077db1b
CT
8487
8488fi
8bc16536
CT
8489fi
8490OTOOL=$ac_cv_prog_OTOOL
8491if test -n "$OTOOL"; then
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8493$as_echo "$OTOOL" >&6; }
8494else
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8496$as_echo "no" >&6; }
8497fi
8498
2077db1b 8499
2077db1b 8500fi
8bc16536
CT
8501if test -z "$ac_cv_prog_OTOOL"; then
8502 ac_ct_OTOOL=$OTOOL
8503 # Extract the first word of "otool", so it can be a program name with args.
8504set dummy otool; ac_word=$2
8505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8506$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8507if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
2077db1b
CT
8508 $as_echo_n "(cached) " >&6
8509else
8bc16536
CT
8510 if test -n "$ac_ct_OTOOL"; then
8511 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8512else
8513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8514for as_dir in $PATH
2077db1b 8515do
8bc16536
CT
8516 IFS=$as_save_IFS
8517 test -z "$as_dir" && as_dir=.
8518 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8bc16536
CT
8520 ac_cv_prog_ac_ct_OTOOL="otool"
8521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8522 break 2
8523 fi
8524done
8525 done
8526IFS=$as_save_IFS
2077db1b 8527
8bc16536
CT
8528fi
8529fi
8530ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8531if test -n "$ac_ct_OTOOL"; then
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8533$as_echo "$ac_ct_OTOOL" >&6; }
2077db1b 8534else
8bc16536
CT
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8536$as_echo "no" >&6; }
2077db1b 8537fi
2077db1b 8538
8bc16536
CT
8539 if test "x$ac_ct_OTOOL" = x; then
8540 OTOOL=":"
8541 else
8542 case $cross_compiling:$ac_tool_warned in
8543yes:)
8544{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8545$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8546ac_tool_warned=yes ;;
8547esac
8548 OTOOL=$ac_ct_OTOOL
8549 fi
2077db1b 8550else
8bc16536 8551 OTOOL="$ac_cv_prog_OTOOL"
2077db1b 8552fi
2077db1b 8553
8bc16536
CT
8554 if test -n "$ac_tool_prefix"; then
8555 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8556set dummy ${ac_tool_prefix}otool64; ac_word=$2
8557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8558$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8559if ${ac_cv_prog_OTOOL64+:} false; then :
8bc16536
CT
8560 $as_echo_n "(cached) " >&6
8561else
8562 if test -n "$OTOOL64"; then
8563 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8564else
8565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8566for as_dir in $PATH
8567do
8568 IFS=$as_save_IFS
8569 test -z "$as_dir" && as_dir=.
8570 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8bc16536
CT
8572 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8574 break 2
8575 fi
2077db1b 8576done
8bc16536
CT
8577 done
8578IFS=$as_save_IFS
8579
8580fi
8581fi
8582OTOOL64=$ac_cv_prog_OTOOL64
8583if test -n "$OTOOL64"; then
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8585$as_echo "$OTOOL64" >&6; }
8586else
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8588$as_echo "no" >&6; }
2077db1b
CT
8589fi
8590
2077db1b
CT
8591
8592fi
8bc16536
CT
8593if test -z "$ac_cv_prog_OTOOL64"; then
8594 ac_ct_OTOOL64=$OTOOL64
8595 # Extract the first word of "otool64", so it can be a program name with args.
8596set dummy otool64; ac_word=$2
8597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8598$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8599if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8bc16536 8600 $as_echo_n "(cached) " >&6
2077db1b 8601else
8bc16536
CT
8602 if test -n "$ac_ct_OTOOL64"; then
8603 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8604else
8605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8606for as_dir in $PATH
2077db1b 8607do
8bc16536
CT
8608 IFS=$as_save_IFS
8609 test -z "$as_dir" && as_dir=.
8610 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8bc16536
CT
8612 ac_cv_prog_ac_ct_OTOOL64="otool64"
8613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8614 break 2
8615 fi
8616done
8617 done
8618IFS=$as_save_IFS
2077db1b 8619
2077db1b 8620fi
8bc16536
CT
8621fi
8622ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8623if test -n "$ac_ct_OTOOL64"; then
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8625$as_echo "$ac_ct_OTOOL64" >&6; }
2077db1b 8626else
8bc16536
CT
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8628$as_echo "no" >&6; }
2077db1b 8629fi
2077db1b 8630
8bc16536
CT
8631 if test "x$ac_ct_OTOOL64" = x; then
8632 OTOOL64=":"
8633 else
8634 case $cross_compiling:$ac_tool_warned in
8635yes:)
8636{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8637$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8638ac_tool_warned=yes ;;
8639esac
8640 OTOOL64=$ac_ct_OTOOL64
8641 fi
2077db1b 8642else
8bc16536 8643 OTOOL64="$ac_cv_prog_OTOOL64"
2077db1b
CT
8644fi
8645
2077db1b
CT
8646
8647
2077db1b 8648
2077db1b 8649
2077db1b 8650
2077db1b 8651
2077db1b 8652
2077db1b 8653
2077db1b 8654
2077db1b 8655
2077db1b 8656
2077db1b 8657
2077db1b 8658
8bc16536
CT
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8673$as_echo_n "checking for -single_module linker flag... " >&6; }
22e05272 8674if ${lt_cv_apple_cc_single_mod+:} false; then :
8bc16536 8675 $as_echo_n "(cached) " >&6
2077db1b 8676else
8bc16536
CT
8677 lt_cv_apple_cc_single_mod=no
8678 if test -z "${LT_MULTI_MODULE}"; then
8679 # By default we will add the -single_module flag. You can override
8680 # by either setting the environment variable LT_MULTI_MODULE
8681 # non-empty at configure time, or by adding -multi_module to the
8682 # link flags.
8683 rm -rf libconftest.dylib*
8684 echo "int foo(void){return 1;}" > conftest.c
8685 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8686-dynamiclib -Wl,-single_module conftest.c" >&5
8687 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8688 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8689 _lt_result=$?
8690 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8691 lt_cv_apple_cc_single_mod=yes
8692 else
8693 cat conftest.err >&5
8694 fi
8695 rm -rf libconftest.dylib*
8696 rm -f conftest.*
8697 fi
8698fi
8699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8700$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8702$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
22e05272 8703if ${lt_cv_ld_exported_symbols_list+:} false; then :
8bc16536
CT
8704 $as_echo_n "(cached) " >&6
8705else
8706 lt_cv_ld_exported_symbols_list=no
8707 save_LDFLAGS=$LDFLAGS
8708 echo "_main" > conftest.sym
8709 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077db1b 8711/* end confdefs.h. */
2077db1b 8712
2077db1b
CT
8713int
8714main ()
8715{
8bc16536
CT
8716
8717 ;
2077db1b
CT
8718 return 0;
8719}
8720_ACEOF
8bc16536
CT
8721if ac_fn_c_try_link "$LINENO"; then :
8722 lt_cv_ld_exported_symbols_list=yes
2077db1b 8723else
8bc16536 8724 lt_cv_ld_exported_symbols_list=no
2077db1b 8725fi
8bc16536
CT
8726rm -f core conftest.err conftest.$ac_objext \
8727 conftest$ac_exeext conftest.$ac_ext
8728 LDFLAGS="$save_LDFLAGS"
2077db1b
CT
8729
8730fi
8bc16536
CT
8731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8732$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8734$as_echo_n "checking for -force_load linker flag... " >&6; }
22e05272 8735if ${lt_cv_ld_force_load+:} false; then :
8bc16536
CT
8736 $as_echo_n "(cached) " >&6
8737else
8738 lt_cv_ld_force_load=no
8739 cat > conftest.c << _LT_EOF
8740int forced_loaded() { return 2;}
8741_LT_EOF
8742 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8743 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8744 echo "$AR cru libconftest.a conftest.o" >&5
8745 $AR cru libconftest.a conftest.o 2>&5
8746 cat > conftest.c << _LT_EOF
8747int main() { return 0;}
8748_LT_EOF
8749 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8750 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8751 _lt_result=$?
8752 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8753 lt_cv_ld_force_load=yes
8754 else
8755 cat conftest.err >&5
8756 fi
8757 rm -f conftest.err libconftest.a conftest conftest.c
8758 rm -rf conftest.dSYM
2077db1b
CT
8759
8760fi
8bc16536
CT
8761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8762$as_echo "$lt_cv_ld_force_load" >&6; }
1352bc88
IS
8763 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8764 # build without first building modern cctools / linker.
8765 case $host_cpu-$host_os in
8766 *-rhapsody* | *-darwin1.[012])
8bc16536 8767 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1352bc88 8768 *-darwin1.*)
8bc16536 8769 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1352bc88
IS
8770 *-darwin*)
8771 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8772 # deployment target is forced to an earlier version.
8773 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8774 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8775 ;;
ebf6d33b 8776 10.[012][,.]*)
1352bc88
IS
8777 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8778 ;;
8779 *)
8780 ;;
8781 esac
8bc16536
CT
8782 ;;
8783 esac
8784 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8785 _lt_dar_single_mod='$single_module'
8786 fi
8787 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8788 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8789 else
8790 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8791 fi
8792 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8793 _lt_dsymutil='~$DSYMUTIL $lib || :'
8794 else
8795 _lt_dsymutil=
8796 fi
8797 ;;
8798 esac
2077db1b
CT
8799
8800for ac_header in dlfcn.h
8801do :
8802 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8803"
22e05272 8804if test "x$ac_cv_header_dlfcn_h" = xyes; then :
2077db1b
CT
8805 cat >>confdefs.h <<_ACEOF
8806#define HAVE_DLFCN_H 1
8807_ACEOF
8808
8809fi
8810
8811done
8812
8813
8814
8815
8816
8817
8818# Set options
8819
8820
8821
8822
8823 enable_win32_dll=no
8824
8825
8826 # Check whether --enable-shared was given.
8827if test "${enable_shared+set}" = set; then :
8828 enableval=$enable_shared; p=${PACKAGE-default}
8829 case $enableval in
8830 yes) enable_shared=yes ;;
8831 no) enable_shared=no ;;
8832 *)
8833 enable_shared=no
8834 # Look at the argument we got. We use all the common list separators.
8835 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8836 for pkg in $enableval; do
8837 IFS="$lt_save_ifs"
8838 if test "X$pkg" = "X$p"; then
8839 enable_shared=yes
8840 fi
8841 done
8842 IFS="$lt_save_ifs"
8843 ;;
8844 esac
8845else
8846 enable_shared=yes
8847fi
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857 # Check whether --enable-static was given.
8858if test "${enable_static+set}" = set; then :
8859 enableval=$enable_static; p=${PACKAGE-default}
8860 case $enableval in
8861 yes) enable_static=yes ;;
8862 no) enable_static=no ;;
8863 *)
8864 enable_static=no
8865 # Look at the argument we got. We use all the common list separators.
8866 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8867 for pkg in $enableval; do
8868 IFS="$lt_save_ifs"
8869 if test "X$pkg" = "X$p"; then
8870 enable_static=yes
8871 fi
8872 done
8873 IFS="$lt_save_ifs"
8874 ;;
8875 esac
8876else
8877 enable_static=yes
8878fi
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889# Check whether --with-pic was given.
8890if test "${with_pic+set}" = set; then :
8891 withval=$with_pic; pic_mode="$withval"
8892else
8893 pic_mode=default
8894fi
8895
8896
8897test -z "$pic_mode" && pic_mode=default
8898
8899
8900
8901
8902
8903
8904
8905 # Check whether --enable-fast-install was given.
8906if test "${enable_fast_install+set}" = set; then :
8907 enableval=$enable_fast_install; p=${PACKAGE-default}
8908 case $enableval in
8909 yes) enable_fast_install=yes ;;
8910 no) enable_fast_install=no ;;
8911 *)
8912 enable_fast_install=no
8913 # Look at the argument we got. We use all the common list separators.
8914 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8915 for pkg in $enableval; do
8916 IFS="$lt_save_ifs"
8917 if test "X$pkg" = "X$p"; then
8918 enable_fast_install=yes
8919 fi
8920 done
8921 IFS="$lt_save_ifs"
8922 ;;
8923 esac
8924else
8925 enable_fast_install=yes
8926fi
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938# This can be used to rebuild libtool when needed
8939LIBTOOL_DEPS="$ltmain"
8940
8941# Always use our own libtool.
8942LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969test -z "$LN_S" && LN_S="ln -s"
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984if test -n "${ZSH_VERSION+set}" ; then
8985 setopt NO_GLOB_SUBST
8986fi
8987
8988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8989$as_echo_n "checking for objdir... " >&6; }
22e05272 8990if ${lt_cv_objdir+:} false; then :
2077db1b
CT
8991 $as_echo_n "(cached) " >&6
8992else
8993 rm -f .libs 2>/dev/null
8994mkdir .libs 2>/dev/null
8995if test -d .libs; then
8996 lt_cv_objdir=.libs
8997else
8998 # MS-DOS does not allow filenames that begin with a dot.
8999 lt_cv_objdir=_libs
9000fi
9001rmdir .libs 2>/dev/null
9002fi
9003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9004$as_echo "$lt_cv_objdir" >&6; }
9005objdir=$lt_cv_objdir
9006
9007
9008
9009
9010
9011cat >>confdefs.h <<_ACEOF
9012#define LT_OBJDIR "$lt_cv_objdir/"
9013_ACEOF
9014
9015
9016
9017
9018case $host_os in
9019aix3*)
9020 # AIX sometimes has problems with the GCC collect2 program. For some
9021 # reason, if we set the COLLECT_NAMES environment variable, the problems
9022 # vanish in a puff of smoke.
9023 if test "X${COLLECT_NAMES+set}" != Xset; then
9024 COLLECT_NAMES=
9025 export COLLECT_NAMES
9026 fi
9027 ;;
9028esac
9029
9030# Global variables:
9031ofile=libtool
9032can_build_shared=yes
9033
9034# All known linkers require a `.a' archive for static linking (except MSVC,
9035# which needs '.lib').
9036libext=a
9037
9038with_gnu_ld="$lt_cv_prog_gnu_ld"
9039
9040old_CC="$CC"
9041old_CFLAGS="$CFLAGS"
9042
9043# Set sane defaults for various variables
9044test -z "$CC" && CC=cc
9045test -z "$LTCC" && LTCC=$CC
9046test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9047test -z "$LD" && LD=ld
9048test -z "$ac_objext" && ac_objext=o
9049
9050for cc_temp in $compiler""; do
9051 case $cc_temp in
9052 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9053 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9054 \-*) ;;
9055 *) break;;
9056 esac
9057done
9058cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9059
9060
9061# Only perform the check for file, if the check method requires it
9062test -z "$MAGIC_CMD" && MAGIC_CMD=file
9063case $deplibs_check_method in
9064file_magic*)
9065 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9067$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
22e05272 9068if ${lt_cv_path_MAGIC_CMD+:} false; then :
2077db1b
CT
9069 $as_echo_n "(cached) " >&6
9070else
9071 case $MAGIC_CMD in
9072[\\/*] | ?:[\\/]*)
9073 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9074 ;;
9075*)
9076 lt_save_MAGIC_CMD="$MAGIC_CMD"
9077 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9078 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9079 for ac_dir in $ac_dummy; do
9080 IFS="$lt_save_ifs"
9081 test -z "$ac_dir" && ac_dir=.
9082 if test -f $ac_dir/${ac_tool_prefix}file; then
9083 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9084 if test -n "$file_magic_test_file"; then
9085 case $deplibs_check_method in
9086 "file_magic "*)
9087 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9088 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9089 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9090 $EGREP "$file_magic_regex" > /dev/null; then
9091 :
9092 else
9093 cat <<_LT_EOF 1>&2
9094
9095*** Warning: the command libtool uses to detect shared libraries,
9096*** $file_magic_cmd, produces output that libtool cannot recognize.
9097*** The result is that libtool may fail to recognize shared libraries
9098*** as such. This will affect the creation of libtool libraries that
9099*** depend on shared libraries, but programs linked with such libtool
9100*** libraries will work regardless of this problem. Nevertheless, you
9101*** may want to report the problem to your system manager and/or to
9102*** bug-libtool@gnu.org
9103
9104_LT_EOF
9105 fi ;;
9106 esac
9107 fi
9108 break
9109 fi
9110 done
9111 IFS="$lt_save_ifs"
9112 MAGIC_CMD="$lt_save_MAGIC_CMD"
9113 ;;
9114esac
9115fi
9116
9117MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9118if test -n "$MAGIC_CMD"; then
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9120$as_echo "$MAGIC_CMD" >&6; }
9121else
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9123$as_echo "no" >&6; }
9124fi
9125
9126
9127
9128
9129
9130if test -z "$lt_cv_path_MAGIC_CMD"; then
9131 if test -n "$ac_tool_prefix"; then
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9133$as_echo_n "checking for file... " >&6; }
22e05272 9134if ${lt_cv_path_MAGIC_CMD+:} false; then :
2077db1b
CT
9135 $as_echo_n "(cached) " >&6
9136else
9137 case $MAGIC_CMD in
9138[\\/*] | ?:[\\/]*)
9139 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9140 ;;
9141*)
9142 lt_save_MAGIC_CMD="$MAGIC_CMD"
9143 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9144 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9145 for ac_dir in $ac_dummy; do
9146 IFS="$lt_save_ifs"
9147 test -z "$ac_dir" && ac_dir=.
9148 if test -f $ac_dir/file; then
9149 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9150 if test -n "$file_magic_test_file"; then
9151 case $deplibs_check_method in
9152 "file_magic "*)
9153 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9154 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9155 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9156 $EGREP "$file_magic_regex" > /dev/null; then
9157 :
9158 else
9159 cat <<_LT_EOF 1>&2
9160
9161*** Warning: the command libtool uses to detect shared libraries,
9162*** $file_magic_cmd, produces output that libtool cannot recognize.
9163*** The result is that libtool may fail to recognize shared libraries
9164*** as such. This will affect the creation of libtool libraries that
9165*** depend on shared libraries, but programs linked with such libtool
9166*** libraries will work regardless of this problem. Nevertheless, you
9167*** may want to report the problem to your system manager and/or to
9168*** bug-libtool@gnu.org
9169
9170_LT_EOF
9171 fi ;;
9172 esac
9173 fi
9174 break
9175 fi
9176 done
9177 IFS="$lt_save_ifs"
9178 MAGIC_CMD="$lt_save_MAGIC_CMD"
9179 ;;
9180esac
9181fi
9182
9183MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9184if test -n "$MAGIC_CMD"; then
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9186$as_echo "$MAGIC_CMD" >&6; }
9187else
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9189$as_echo "no" >&6; }
9190fi
9191
9192
9193 else
9194 MAGIC_CMD=:
9195 fi
9196fi
9197
9198 fi
9199 ;;
9200esac
9201
9202# Use C for the default configuration in the libtool script
9203
9204lt_save_CC="$CC"
9205ac_ext=c
9206ac_cpp='$CPP $CPPFLAGS'
9207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9209ac_compiler_gnu=$ac_cv_c_compiler_gnu
9210
9211
9212# Source file extension for C test sources.
9213ac_ext=c
9214
9215# Object file extension for compiled C test sources.
9216objext=o
9217objext=$objext
9218
9219# Code to be used in simple compile tests
9220lt_simple_compile_test_code="int some_variable = 0;"
9221
9222# Code to be used in simple link tests
9223lt_simple_link_test_code='int main(){return(0);}'
9224
9225
9226
9227
9228
9229
9230
9231# If no C compiler was specified, use CC.
9232LTCC=${LTCC-"$CC"}
9233
9234# If no C compiler flags were specified, use CFLAGS.
9235LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9236
9237# Allow CC to be a program name with arguments.
9238compiler=$CC
9239
9240# Save the default compiler, since it gets overwritten when the other
9241# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9242compiler_DEFAULT=$CC
9243
9244# save warnings/boilerplate of simple test code
9245ac_outfile=conftest.$ac_objext
9246echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9247eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9248_lt_compiler_boilerplate=`cat conftest.err`
9249$RM conftest*
9250
9251ac_outfile=conftest.$ac_objext
9252echo "$lt_simple_link_test_code" >conftest.$ac_ext
9253eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9254_lt_linker_boilerplate=`cat conftest.err`
9255$RM -r conftest*
9256
9257
9258## CAVEAT EMPTOR:
9259## There is no encapsulation within the following macros, do not change
9260## the running order or otherwise move them around unless you know exactly
9261## what you are doing...
9262if test -n "$compiler"; then
9263
9264lt_prog_compiler_no_builtin_flag=
9265
9266if test "$GCC" = yes; then
9267 case $cc_basename in
9268 nvcc*)
9269 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9270 *)
9271 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9272 esac
9273
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9275$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
22e05272 9276if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
2077db1b
CT
9277 $as_echo_n "(cached) " >&6
9278else
9279 lt_cv_prog_compiler_rtti_exceptions=no
9280 ac_outfile=conftest.$ac_objext
9281 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9282 lt_compiler_flag="-fno-rtti -fno-exceptions"
9283 # Insert the option either (1) after the last *FLAGS variable, or
9284 # (2) before a word containing "conftest.", or (3) at the end.
9285 # Note that $ac_compile itself does not contain backslashes and begins
9286 # with a dollar sign (not a hyphen), so the echo should work correctly.
9287 # The option is referenced via a variable to avoid confusing sed.
9288 lt_compile=`echo "$ac_compile" | $SED \
9289 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9290 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9291 -e 's:$: $lt_compiler_flag:'`
9292 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9293 (eval "$lt_compile" 2>conftest.err)
9294 ac_status=$?
9295 cat conftest.err >&5
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 if (exit $ac_status) && test -s "$ac_outfile"; then
9298 # The compiler can only warn and ignore the option if not recognized
9299 # So say no if there are warnings other than the usual output.
9300 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9301 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9302 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9303 lt_cv_prog_compiler_rtti_exceptions=yes
9304 fi
9305 fi
9306 $RM conftest*
9307
9308fi
9309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9310$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9311
9312if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9313 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9314else
9315 :
9316fi
9317
9318fi
9319
9320
9321
9322
9323
9324
9325 lt_prog_compiler_wl=
9326lt_prog_compiler_pic=
9327lt_prog_compiler_static=
9328
9329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9330$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9331
9332 if test "$GCC" = yes; then
9333 lt_prog_compiler_wl='-Wl,'
9334 lt_prog_compiler_static='-static'
9335
9336 case $host_os in
9337 aix*)
9338 # All AIX code is PIC.
9339 if test "$host_cpu" = ia64; then
9340 # AIX 5 now supports IA64 processor
9341 lt_prog_compiler_static='-Bstatic'
9342 fi
9343 lt_prog_compiler_pic='-fPIC'
9344 ;;
9345
9346 amigaos*)
9347 case $host_cpu in
9348 powerpc)
9349 # see comment about AmigaOS4 .so support
9350 lt_prog_compiler_pic='-fPIC'
9351 ;;
9352 m68k)
9353 # FIXME: we need at least 68020 code to build shared libraries, but
9354 # adding the `-m68020' flag to GCC prevents building anything better,
9355 # like `-m68040'.
9356 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9357 ;;
9358 esac
9359 ;;
9360
9361 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9362 # PIC is the default for these OSes.
9363 ;;
9364
9365 mingw* | cygwin* | pw32* | os2* | cegcc*)
9366 # This hack is so that the source file can tell whether it is being
9367 # built for inclusion in a dll (and should export symbols for example).
9368 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9369 # (--disable-auto-import) libraries
9370 lt_prog_compiler_pic='-DDLL_EXPORT'
9371 ;;
9372
9373 darwin* | rhapsody*)
9374 # PIC is the default on this platform
9375 # Common symbols not allowed in MH_DYLIB files
9376 lt_prog_compiler_pic='-fno-common'
9377 ;;
9378
9379 haiku*)
9380 # PIC is the default for Haiku.
9381 # The "-static" flag exists, but is broken.
9382 lt_prog_compiler_static=
9383 ;;
9384
9385 hpux*)
9386 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9387 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9388 # sets the default TLS model and affects inlining.
9389 case $host_cpu in
9390 hppa*64*)
9391 # +Z the default
9392 ;;
9393 *)
9394 lt_prog_compiler_pic='-fPIC'
9395 ;;
9396 esac
9397 ;;
9398
9399 interix[3-9]*)
9400 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9401 # Instead, we relocate shared libraries at runtime.
9402 ;;
9403
9404 msdosdjgpp*)
9405 # Just because we use GCC doesn't mean we suddenly get shared libraries
9406 # on systems that don't support them.
9407 lt_prog_compiler_can_build_shared=no
9408 enable_shared=no
9409 ;;
9410
9411 *nto* | *qnx*)
9412 # QNX uses GNU C++, but need to define -shared option too, otherwise
9413 # it will coredump.
9414 lt_prog_compiler_pic='-fPIC -shared'
9415 ;;
9416
9417 sysv4*MP*)
9418 if test -d /usr/nec; then
9419 lt_prog_compiler_pic=-Kconform_pic
9420 fi
9421 ;;
9422
9423 *)
9424 lt_prog_compiler_pic='-fPIC'
9425 ;;
9426 esac
9427
9428 case $cc_basename in
9429 nvcc*) # Cuda Compiler Driver 2.2
9430 lt_prog_compiler_wl='-Xlinker '
9431 lt_prog_compiler_pic='-Xcompiler -fPIC'
9432 ;;
9433 esac
9434 else
9435 # PORTME Check for flag to pass linker flags through the system compiler.
9436 case $host_os in
9437 aix*)
9438 lt_prog_compiler_wl='-Wl,'
9439 if test "$host_cpu" = ia64; then
9440 # AIX 5 now supports IA64 processor
9441 lt_prog_compiler_static='-Bstatic'
9442 else
9443 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9444 fi
9445 ;;
9446
9447 mingw* | cygwin* | pw32* | os2* | cegcc*)
9448 # This hack is so that the source file can tell whether it is being
9449 # built for inclusion in a dll (and should export symbols for example).
9450 lt_prog_compiler_pic='-DDLL_EXPORT'
9451 ;;
9452
9453 hpux9* | hpux10* | hpux11*)
9454 lt_prog_compiler_wl='-Wl,'
9455 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9456 # not for PA HP-UX.
9457 case $host_cpu in
9458 hppa*64*|ia64*)
9459 # +Z the default
9460 ;;
9461 *)
9462 lt_prog_compiler_pic='+Z'
9463 ;;
9464 esac
9465 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9466 lt_prog_compiler_static='${wl}-a ${wl}archive'
9467 ;;
9468
9469 irix5* | irix6* | nonstopux*)
9470 lt_prog_compiler_wl='-Wl,'
9471 # PIC (with -KPIC) is the default.
9472 lt_prog_compiler_static='-non_shared'
9473 ;;
9474
9475 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9476 case $cc_basename in
9477 # old Intel for x86_64 which still supported -KPIC.
9478 ecc*)
9479 lt_prog_compiler_wl='-Wl,'
9480 lt_prog_compiler_pic='-KPIC'
9481 lt_prog_compiler_static='-static'
9482 ;;
9483 # icc used to be incompatible with GCC.
9484 # ICC 10 doesn't accept -KPIC any more.
9485 icc* | ifort*)
9486 lt_prog_compiler_wl='-Wl,'
9487 lt_prog_compiler_pic='-fPIC'
9488 lt_prog_compiler_static='-static'
9489 ;;
9490 # Lahey Fortran 8.1.
9491 lf95*)
9492 lt_prog_compiler_wl='-Wl,'
9493 lt_prog_compiler_pic='--shared'
9494 lt_prog_compiler_static='--static'
9495 ;;
9496 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9497 # Portland Group compilers (*not* the Pentium gcc compiler,
9498 # which looks to be a dead project)
9499 lt_prog_compiler_wl='-Wl,'
9500 lt_prog_compiler_pic='-fpic'
9501 lt_prog_compiler_static='-Bstatic'
9502 ;;
9503 ccc*)
9504 lt_prog_compiler_wl='-Wl,'
9505 # All Alpha code is PIC.
9506 lt_prog_compiler_static='-non_shared'
9507 ;;
9508 xl* | bgxl* | bgf* | mpixl*)
9509 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9510 lt_prog_compiler_wl='-Wl,'
9511 lt_prog_compiler_pic='-qpic'
9512 lt_prog_compiler_static='-qstaticlink'
9513 ;;
9514 *)
9515 case `$CC -V 2>&1 | sed 5q` in
9516 *Sun\ F* | *Sun*Fortran*)
9517 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9518 lt_prog_compiler_pic='-KPIC'
9519 lt_prog_compiler_static='-Bstatic'
9520 lt_prog_compiler_wl=''
9521 ;;
9522 *Sun\ C*)
9523 # Sun C 5.9
9524 lt_prog_compiler_pic='-KPIC'
9525 lt_prog_compiler_static='-Bstatic'
9526 lt_prog_compiler_wl='-Wl,'
9527 ;;
9528 esac
9529 ;;
9530 esac
9531 ;;
9532
9533 newsos6)
9534 lt_prog_compiler_pic='-KPIC'
9535 lt_prog_compiler_static='-Bstatic'
9536 ;;
9537
9538 *nto* | *qnx*)
9539 # QNX uses GNU C++, but need to define -shared option too, otherwise
9540 # it will coredump.
9541 lt_prog_compiler_pic='-fPIC -shared'
9542 ;;
9543
9544 osf3* | osf4* | osf5*)
9545 lt_prog_compiler_wl='-Wl,'
9546 # All OSF/1 code is PIC.
9547 lt_prog_compiler_static='-non_shared'
9548 ;;
9549
9550 rdos*)
9551 lt_prog_compiler_static='-non_shared'
9552 ;;
9553
9554 solaris*)
9555 lt_prog_compiler_pic='-KPIC'
9556 lt_prog_compiler_static='-Bstatic'
9557 case $cc_basename in
9558 f77* | f90* | f95*)
9559 lt_prog_compiler_wl='-Qoption ld ';;
9560 *)
9561 lt_prog_compiler_wl='-Wl,';;
9562 esac
9563 ;;
9564
9565 sunos4*)
9566 lt_prog_compiler_wl='-Qoption ld '
9567 lt_prog_compiler_pic='-PIC'
9568 lt_prog_compiler_static='-Bstatic'
9569 ;;
9570
9571 sysv4 | sysv4.2uw2* | sysv4.3*)
9572 lt_prog_compiler_wl='-Wl,'
9573 lt_prog_compiler_pic='-KPIC'
9574 lt_prog_compiler_static='-Bstatic'
9575 ;;
9576
9577 sysv4*MP*)
9578 if test -d /usr/nec ;then
9579 lt_prog_compiler_pic='-Kconform_pic'
9580 lt_prog_compiler_static='-Bstatic'
9581 fi
9582 ;;
9583
9584 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9585 lt_prog_compiler_wl='-Wl,'
9586 lt_prog_compiler_pic='-KPIC'
9587 lt_prog_compiler_static='-Bstatic'
9588 ;;
9589
9590 unicos*)
9591 lt_prog_compiler_wl='-Wl,'
9592 lt_prog_compiler_can_build_shared=no
9593 ;;
9594
9595 uts4*)
9596 lt_prog_compiler_pic='-pic'
9597 lt_prog_compiler_static='-Bstatic'
9598 ;;
9599
9600 *)
9601 lt_prog_compiler_can_build_shared=no
9602 ;;
9603 esac
9604 fi
9605
9606case $host_os in
9607 # For platforms which do not support PIC, -DPIC is meaningless:
9608 *djgpp*)
9609 lt_prog_compiler_pic=
9610 ;;
9611 *)
9612 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9613 ;;
9614esac
9615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9616$as_echo "$lt_prog_compiler_pic" >&6; }
9617
9618
9619
9620
9621
9622
9623#
9624# Check to make sure the PIC flag actually works.
9625#
9626if test -n "$lt_prog_compiler_pic"; then
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9628$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
22e05272 9629if ${lt_cv_prog_compiler_pic_works+:} false; then :
2077db1b
CT
9630 $as_echo_n "(cached) " >&6
9631else
9632 lt_cv_prog_compiler_pic_works=no
9633 ac_outfile=conftest.$ac_objext
9634 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9635 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9636 # Insert the option either (1) after the last *FLAGS variable, or
9637 # (2) before a word containing "conftest.", or (3) at the end.
9638 # Note that $ac_compile itself does not contain backslashes and begins
9639 # with a dollar sign (not a hyphen), so the echo should work correctly.
9640 # The option is referenced via a variable to avoid confusing sed.
9641 lt_compile=`echo "$ac_compile" | $SED \
9642 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9643 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9644 -e 's:$: $lt_compiler_flag:'`
9645 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9646 (eval "$lt_compile" 2>conftest.err)
9647 ac_status=$?
9648 cat conftest.err >&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 if (exit $ac_status) && test -s "$ac_outfile"; then
9651 # The compiler can only warn and ignore the option if not recognized
9652 # So say no if there are warnings other than the usual output.
9653 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9654 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9655 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9656 lt_cv_prog_compiler_pic_works=yes
9657 fi
9658 fi
9659 $RM conftest*
9660
9661fi
9662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9663$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9664
9665if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9666 case $lt_prog_compiler_pic in
9667 "" | " "*) ;;
9668 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9669 esac
9670else
9671 lt_prog_compiler_pic=
9672 lt_prog_compiler_can_build_shared=no
9673fi
9674
9675fi
9676
9677
9678
9679
9680
9681
9682#
9683# Check to make sure the static flag actually works.
9684#
9685wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9687$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 9688if ${lt_cv_prog_compiler_static_works+:} false; then :
2077db1b
CT
9689 $as_echo_n "(cached) " >&6
9690else
9691 lt_cv_prog_compiler_static_works=no
9692 save_LDFLAGS="$LDFLAGS"
9693 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9694 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9695 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9696 # The linker can only warn and ignore the option if not recognized
9697 # So say no if there are warnings
9698 if test -s conftest.err; then
9699 # Append any errors to the config.log.
9700 cat conftest.err 1>&5
9701 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9702 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9703 if diff conftest.exp conftest.er2 >/dev/null; then
9704 lt_cv_prog_compiler_static_works=yes
9705 fi
9706 else
9707 lt_cv_prog_compiler_static_works=yes
9708 fi
9709 fi
9710 $RM -r conftest*
9711 LDFLAGS="$save_LDFLAGS"
9712
9713fi
9714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9715$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9716
9717if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9718 :
9719else
9720 lt_prog_compiler_static=
9721fi
9722
9723
9724
9725
9726
9727
9728
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9730$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 9731if ${lt_cv_prog_compiler_c_o+:} false; then :
2077db1b
CT
9732 $as_echo_n "(cached) " >&6
9733else
9734 lt_cv_prog_compiler_c_o=no
9735 $RM -r conftest 2>/dev/null
9736 mkdir conftest
9737 cd conftest
9738 mkdir out
9739 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9740
9741 lt_compiler_flag="-o out/conftest2.$ac_objext"
9742 # Insert the option either (1) after the last *FLAGS variable, or
9743 # (2) before a word containing "conftest.", or (3) at the end.
9744 # Note that $ac_compile itself does not contain backslashes and begins
9745 # with a dollar sign (not a hyphen), so the echo should work correctly.
9746 lt_compile=`echo "$ac_compile" | $SED \
9747 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9748 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9749 -e 's:$: $lt_compiler_flag:'`
9750 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9751 (eval "$lt_compile" 2>out/conftest.err)
9752 ac_status=$?
9753 cat out/conftest.err >&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9756 then
9757 # The compiler can only warn and ignore the option if not recognized
9758 # So say no if there are warnings
9759 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9760 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9761 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9762 lt_cv_prog_compiler_c_o=yes
9763 fi
9764 fi
9765 chmod u+w . 2>&5
9766 $RM conftest*
9767 # SGI C++ compiler will create directory out/ii_files/ for
9768 # template instantiation
9769 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9770 $RM out/* && rmdir out
9771 cd ..
9772 $RM -r conftest
9773 $RM conftest*
9774
9775fi
9776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9777$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9778
9779
9780
9781
9782
9783
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9785$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 9786if ${lt_cv_prog_compiler_c_o+:} false; then :
2077db1b
CT
9787 $as_echo_n "(cached) " >&6
9788else
9789 lt_cv_prog_compiler_c_o=no
9790 $RM -r conftest 2>/dev/null
9791 mkdir conftest
9792 cd conftest
9793 mkdir out
9794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9795
9796 lt_compiler_flag="-o out/conftest2.$ac_objext"
9797 # Insert the option either (1) after the last *FLAGS variable, or
9798 # (2) before a word containing "conftest.", or (3) at the end.
9799 # Note that $ac_compile itself does not contain backslashes and begins
9800 # with a dollar sign (not a hyphen), so the echo should work correctly.
9801 lt_compile=`echo "$ac_compile" | $SED \
9802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9804 -e 's:$: $lt_compiler_flag:'`
9805 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9806 (eval "$lt_compile" 2>out/conftest.err)
9807 ac_status=$?
9808 cat out/conftest.err >&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9811 then
9812 # The compiler can only warn and ignore the option if not recognized
9813 # So say no if there are warnings
9814 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9815 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9816 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9817 lt_cv_prog_compiler_c_o=yes
9818 fi
9819 fi
9820 chmod u+w . 2>&5
9821 $RM conftest*
9822 # SGI C++ compiler will create directory out/ii_files/ for
9823 # template instantiation
9824 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9825 $RM out/* && rmdir out
9826 cd ..
9827 $RM -r conftest
9828 $RM conftest*
9829
9830fi
9831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9832$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9833
9834
9835
9836
9837hard_links="nottested"
9838if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9839 # do not overwrite the value of need_locks provided by the user
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9841$as_echo_n "checking if we can lock with hard links... " >&6; }
9842 hard_links=yes
9843 $RM conftest*
9844 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9845 touch conftest.a
9846 ln conftest.a conftest.b 2>&5 || hard_links=no
9847 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9849$as_echo "$hard_links" >&6; }
9850 if test "$hard_links" = no; then
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9852$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9853 need_locks=warn
9854 fi
9855else
9856 need_locks=no
9857fi
9858
9859
9860
9861
9862
9863
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9865$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9866
9867 runpath_var=
9868 allow_undefined_flag=
9869 always_export_symbols=no
9870 archive_cmds=
9871 archive_expsym_cmds=
9872 compiler_needs_object=no
9873 enable_shared_with_static_runtimes=no
9874 export_dynamic_flag_spec=
9875 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9876 hardcode_automatic=no
9877 hardcode_direct=no
9878 hardcode_direct_absolute=no
9879 hardcode_libdir_flag_spec=
9880 hardcode_libdir_flag_spec_ld=
9881 hardcode_libdir_separator=
9882 hardcode_minus_L=no
9883 hardcode_shlibpath_var=unsupported
9884 inherit_rpath=no
9885 link_all_deplibs=unknown
9886 module_cmds=
9887 module_expsym_cmds=
9888 old_archive_from_new_cmds=
9889 old_archive_from_expsyms_cmds=
9890 thread_safe_flag_spec=
9891 whole_archive_flag_spec=
9892 # include_expsyms should be a list of space-separated symbols to be *always*
9893 # included in the symbol list
9894 include_expsyms=
9895 # exclude_expsyms can be an extended regexp of symbols to exclude
9896 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9897 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9898 # as well as any symbol that contains `d'.
9899 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9900 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9901 # platforms (ab)use it in PIC code, but their linkers get confused if
9902 # the symbol is explicitly referenced. Since portable code cannot
9903 # rely on this symbol name, it's probably fine to never include it in
9904 # preloaded symbol tables.
9905 # Exclude shared library initialization/finalization symbols.
9906 extract_expsyms_cmds=
9907
9908 case $host_os in
9909 cygwin* | mingw* | pw32* | cegcc*)
9910 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9911 # When not using gcc, we currently assume that we are using
9912 # Microsoft Visual C++.
9913 if test "$GCC" != yes; then
9914 with_gnu_ld=no
9915 fi
9916 ;;
9917 interix*)
9918 # we just hope/assume this is gcc and not c89 (= MSVC++)
9919 with_gnu_ld=yes
9920 ;;
9921 openbsd*)
9922 with_gnu_ld=no
9923 ;;
9924 esac
9925
9926 ld_shlibs=yes
9927
9928 # On some targets, GNU ld is compatible enough with the native linker
9929 # that we're better off using the native interface for both.
9930 lt_use_gnu_ld_interface=no
9931 if test "$with_gnu_ld" = yes; then
9932 case $host_os in
9933 aix*)
9934 # The AIX port of GNU ld has always aspired to compatibility
9935 # with the native linker. However, as the warning in the GNU ld
9936 # block says, versions before 2.19.5* couldn't really create working
9937 # shared libraries, regardless of the interface used.
9938 case `$LD -v 2>&1` in
9939 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9940 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9941 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9942 *)
9943 lt_use_gnu_ld_interface=yes
9944 ;;
9945 esac
9946 ;;
9947 *)
9948 lt_use_gnu_ld_interface=yes
9949 ;;
9950 esac
9951 fi
9952
9953 if test "$lt_use_gnu_ld_interface" = yes; then
9954 # If archive_cmds runs LD, not CC, wlarc should be empty
9955 wlarc='${wl}'
9956
9957 # Set some defaults for GNU ld with shared library support. These
9958 # are reset later if shared libraries are not supported. Putting them
9959 # here allows them to be overridden if necessary.
9960 runpath_var=LD_RUN_PATH
9961 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9962 export_dynamic_flag_spec='${wl}--export-dynamic'
9963 # ancient GNU ld didn't support --whole-archive et. al.
9964 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9965 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9966 else
9967 whole_archive_flag_spec=
9968 fi
9969 supports_anon_versioning=no
9970 case `$LD -v 2>&1` in
9971 *GNU\ gold*) supports_anon_versioning=yes ;;
9972 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9973 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9974 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9975 *\ 2.11.*) ;; # other 2.11 versions
9976 *) supports_anon_versioning=yes ;;
9977 esac
9978
9979 # See if GNU ld supports shared libraries.
9980 case $host_os in
9981 aix[3-9]*)
9982 # On AIX/PPC, the GNU linker is very broken
9983 if test "$host_cpu" != ia64; then
9984 ld_shlibs=no
9985 cat <<_LT_EOF 1>&2
9986
9987*** Warning: the GNU linker, at least up to release 2.19, is reported
9988*** to be unable to reliably create shared libraries on AIX.
9989*** Therefore, libtool is disabling shared libraries support. If you
9990*** really care for shared libraries, you may want to install binutils
9991*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9992*** You will then need to restart the configuration process.
9993
9994_LT_EOF
9995 fi
9996 ;;
9997
9998 amigaos*)
9999 case $host_cpu in
10000 powerpc)
10001 # see comment about AmigaOS4 .so support
10002 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10003 archive_expsym_cmds=''
10004 ;;
10005 m68k)
10006 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)'
10007 hardcode_libdir_flag_spec='-L$libdir'
10008 hardcode_minus_L=yes
10009 ;;
10010 esac
10011 ;;
10012
10013 beos*)
10014 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10015 allow_undefined_flag=unsupported
10016 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10017 # support --undefined. This deserves some investigation. FIXME
10018 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10019 else
10020 ld_shlibs=no
10021 fi
10022 ;;
10023
10024 cygwin* | mingw* | pw32* | cegcc*)
10025 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10026 # as there is no search path for DLLs.
10027 hardcode_libdir_flag_spec='-L$libdir'
10028 export_dynamic_flag_spec='${wl}--export-all-symbols'
10029 allow_undefined_flag=unsupported
10030 always_export_symbols=no
10031 enable_shared_with_static_runtimes=yes
10032 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10033
10034 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10035 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10036 # If the export-symbols file already is a .def file (1st line
10037 # is EXPORTS), use it as is; otherwise, prepend...
10038 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10039 cp $export_symbols $output_objdir/$soname.def;
10040 else
10041 echo EXPORTS > $output_objdir/$soname.def;
10042 cat $export_symbols >> $output_objdir/$soname.def;
10043 fi~
10044 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10045 else
10046 ld_shlibs=no
10047 fi
10048 ;;
10049
10050 haiku*)
10051 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10052 link_all_deplibs=yes
10053 ;;
10054
10055 interix[3-9]*)
10056 hardcode_direct=no
10057 hardcode_shlibpath_var=no
10058 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10059 export_dynamic_flag_spec='${wl}-E'
10060 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10061 # Instead, shared libraries are loaded at an image base (0x10000000 by
10062 # default) and relocated if they conflict, which is a slow very memory
10063 # consuming and fragmenting process. To avoid this, we pick a random,
10064 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10065 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10066 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10067 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'
10068 ;;
10069
e9085da5 10070 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
2077db1b
CT
10071 tmp_diet=no
10072 if test "$host_os" = linux-dietlibc; then
10073 case $cc_basename in
10074 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10075 esac
10076 fi
10077 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10078 && test "$tmp_diet" = no
10079 then
a699d672 10080 tmp_addflag=' $pic_flag'
2077db1b
CT
10081 tmp_sharedflag='-shared'
10082 case $cc_basename,$host_cpu in
10083 pgcc*) # Portland Group C compiler
10084 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'
10085 tmp_addflag=' $pic_flag'
10086 ;;
10087 pgf77* | pgf90* | pgf95* | pgfortran*)
10088 # Portland Group f77 and f90 compilers
10089 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'
10090 tmp_addflag=' $pic_flag -Mnomain' ;;
10091 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10092 tmp_addflag=' -i_dynamic' ;;
10093 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10094 tmp_addflag=' -i_dynamic -nofor_main' ;;
10095 ifc* | ifort*) # Intel Fortran compiler
10096 tmp_addflag=' -nofor_main' ;;
10097 lf95*) # Lahey Fortran 8.1
10098 whole_archive_flag_spec=
10099 tmp_sharedflag='--shared' ;;
10100 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10101 tmp_sharedflag='-qmkshrobj'
10102 tmp_addflag= ;;
10103 nvcc*) # Cuda Compiler Driver 2.2
10104 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'
10105 compiler_needs_object=yes
10106 ;;
10107 esac
10108 case `$CC -V 2>&1 | sed 5q` in
10109 *Sun\ C*) # Sun C 5.9
10110 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'
10111 compiler_needs_object=yes
10112 tmp_sharedflag='-G' ;;
10113 *Sun\ F*) # Sun Fortran 8.3
10114 tmp_sharedflag='-G' ;;
10115 esac
10116 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10117
10118 if test "x$supports_anon_versioning" = xyes; then
10119 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10120 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10121 echo "local: *; };" >> $output_objdir/$libname.ver~
10122 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10123 fi
10124
10125 case $cc_basename in
10126 xlf* | bgf* | bgxlf* | mpixlf*)
10127 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10128 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10129 hardcode_libdir_flag_spec=
10130 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10131 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10132 if test "x$supports_anon_versioning" = xyes; then
10133 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10134 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10135 echo "local: *; };" >> $output_objdir/$libname.ver~
10136 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10137 fi
10138 ;;
10139 esac
10140 else
10141 ld_shlibs=no
10142 fi
10143 ;;
10144
10145 netbsd*)
10146 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10147 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10148 wlarc=
10149 else
10150 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10151 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10152 fi
10153 ;;
10154
10155 solaris*)
10156 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10157 ld_shlibs=no
10158 cat <<_LT_EOF 1>&2
10159
10160*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10161*** create shared libraries on Solaris systems. Therefore, libtool
10162*** is disabling shared libraries support. We urge you to upgrade GNU
10163*** binutils to release 2.9.1 or newer. Another option is to modify
10164*** your PATH or compiler configuration so that the native linker is
10165*** used, and then restart.
10166
10167_LT_EOF
10168 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10169 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10170 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10171 else
10172 ld_shlibs=no
10173 fi
10174 ;;
10175
10176 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10177 case `$LD -v 2>&1` in
10178 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10179 ld_shlibs=no
10180 cat <<_LT_EOF 1>&2
10181
10182*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10183*** reliably create shared libraries on SCO systems. Therefore, libtool
10184*** is disabling shared libraries support. We urge you to upgrade GNU
10185*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10186*** your PATH or compiler configuration so that the native linker is
10187*** used, and then restart.
10188
10189_LT_EOF
10190 ;;
10191 *)
10192 # For security reasons, it is highly recommended that you always
10193 # use absolute paths for naming shared libraries, and exclude the
10194 # DT_RUNPATH tag from executables and libraries. But doing so
10195 # requires that you compile everything twice, which is a pain.
10196 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10197 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10198 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10199 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10200 else
10201 ld_shlibs=no
10202 fi
10203 ;;
10204 esac
10205 ;;
10206
10207 sunos4*)
10208 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10209 wlarc=
10210 hardcode_direct=yes
10211 hardcode_shlibpath_var=no
10212 ;;
10213
10214 *)
10215 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10216 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10217 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10218 else
10219 ld_shlibs=no
10220 fi
10221 ;;
10222 esac
10223
10224 if test "$ld_shlibs" = no; then
10225 runpath_var=
10226 hardcode_libdir_flag_spec=
10227 export_dynamic_flag_spec=
10228 whole_archive_flag_spec=
10229 fi
10230 else
10231 # PORTME fill in a description of your system's linker (not GNU ld)
10232 case $host_os in
10233 aix3*)
10234 allow_undefined_flag=unsupported
10235 always_export_symbols=yes
10236 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'
10237 # Note: this linker hardcodes the directories in LIBPATH if there
10238 # are no directories specified by -L.
10239 hardcode_minus_L=yes
10240 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10241 # Neither direct hardcoding nor static linking is supported with a
10242 # broken collect2.
10243 hardcode_direct=unsupported
10244 fi
10245 ;;
10246
10247 aix[4-9]*)
10248 if test "$host_cpu" = ia64; then
10249 # On IA64, the linker does run time linking by default, so we don't
10250 # have to do anything special.
10251 aix_use_runtimelinking=no
10252 exp_sym_flag='-Bexport'
10253 no_entry_flag=""
10254 else
10255 # If we're using GNU nm, then we don't want the "-C" option.
10256 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10257 # Also, AIX nm treats weak defined symbols like other global
10258 # defined symbols, whereas GNU nm marks them as "W".
10259 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10260 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'
10261 else
701fa326 10262 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'
2077db1b
CT
10263 fi
10264 aix_use_runtimelinking=no
10265
10266 # Test if we are trying to use run time linking or normal
10267 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10268 # need to do runtime linking.
10269 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10270 for ld_flag in $LDFLAGS; do
10271 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10272 aix_use_runtimelinking=yes
10273 break
10274 fi
10275 done
10276 ;;
10277 esac
10278
10279 exp_sym_flag='-bexport'
10280 no_entry_flag='-bnoentry'
10281 fi
10282
10283 # When large executables or shared objects are built, AIX ld can
10284 # have problems creating the table of contents. If linking a library
10285 # or program results in "error TOC overflow" add -mminimal-toc to
10286 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10287 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10288
10289 archive_cmds=''
10290 hardcode_direct=yes
10291 hardcode_direct_absolute=yes
10292 hardcode_libdir_separator=':'
10293 link_all_deplibs=yes
10294 file_list_spec='${wl}-f,'
10295
10296 if test "$GCC" = yes; then
10297 case $host_os in aix4.[012]|aix4.[012].*)
10298 # We only want to do this on AIX 4.2 and lower, the check
10299 # below for broken collect2 doesn't work under 4.3+
10300 collect2name=`${CC} -print-prog-name=collect2`
10301 if test -f "$collect2name" &&
10302 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10303 then
10304 # We have reworked collect2
10305 :
10306 else
10307 # We have old collect2
10308 hardcode_direct=unsupported
10309 # It fails to find uninstalled libraries when the uninstalled
10310 # path is not listed in the libpath. Setting hardcode_minus_L
10311 # to unsupported forces relinking
10312 hardcode_minus_L=yes
10313 hardcode_libdir_flag_spec='-L$libdir'
10314 hardcode_libdir_separator=
10315 fi
10316 ;;
10317 esac
10318 shared_flag='-shared'
10319 if test "$aix_use_runtimelinking" = yes; then
10320 shared_flag="$shared_flag "'${wl}-G'
10321 fi
10322 else
10323 # not using gcc
10324 if test "$host_cpu" = ia64; then
10325 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10326 # chokes on -Wl,-G. The following line is correct:
10327 shared_flag='-G'
10328 else
10329 if test "$aix_use_runtimelinking" = yes; then
10330 shared_flag='${wl}-G'
10331 else
10332 shared_flag='${wl}-bM:SRE'
10333 fi
10334 fi
10335 fi
10336
10337 export_dynamic_flag_spec='${wl}-bexpall'
10338 # It seems that -bexpall does not export symbols beginning with
10339 # underscore (_), so it is better to generate a list of symbols to export.
10340 always_export_symbols=yes
10341 if test "$aix_use_runtimelinking" = yes; then
10342 # Warning - without using the other runtime loading flags (-brtl),
10343 # -berok will link without error, but may produce a broken library.
10344 allow_undefined_flag='-berok'
10345 # Determine the default libpath from the value encoded in an
10346 # empty executable.
10347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10348/* end confdefs.h. */
10349
10350int
10351main ()
10352{
10353
10354 ;
10355 return 0;
10356}
10357_ACEOF
10358if ac_fn_c_try_link "$LINENO"; then :
10359
10360lt_aix_libpath_sed='
10361 /Import File Strings/,/^$/ {
10362 /^0/ {
10363 s/^0 *\(.*\)$/\1/
10364 p
10365 }
10366 }'
10367aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10368# Check for a 64-bit object if we didn't find anything.
10369if test -z "$aix_libpath"; then
10370 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10371fi
10372fi
10373rm -f core conftest.err conftest.$ac_objext \
10374 conftest$ac_exeext conftest.$ac_ext
10375if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10376
10377 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10378 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"
10379 else
10380 if test "$host_cpu" = ia64; then
10381 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10382 allow_undefined_flag="-z nodefs"
10383 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"
10384 else
10385 # Determine the default libpath from the value encoded in an
10386 # empty executable.
10387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10388/* end confdefs.h. */
10389
10390int
10391main ()
10392{
10393
10394 ;
10395 return 0;
10396}
10397_ACEOF
10398if ac_fn_c_try_link "$LINENO"; then :
10399
10400lt_aix_libpath_sed='
10401 /Import File Strings/,/^$/ {
10402 /^0/ {
10403 s/^0 *\(.*\)$/\1/
10404 p
10405 }
10406 }'
10407aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10408# Check for a 64-bit object if we didn't find anything.
10409if test -z "$aix_libpath"; then
10410 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10411fi
10412fi
10413rm -f core conftest.err conftest.$ac_objext \
10414 conftest$ac_exeext conftest.$ac_ext
10415if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10416
10417 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10418 # Warning - without using the other run time loading flags,
10419 # -berok will link without error, but may produce a broken library.
10420 no_undefined_flag=' ${wl}-bernotok'
10421 allow_undefined_flag=' ${wl}-berok'
10422 if test "$with_gnu_ld" = yes; then
10423 # We only use this code for GNU lds that support --whole-archive.
10424 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10425 else
10426 # Exported symbols can be pulled into shared objects from archives
10427 whole_archive_flag_spec='$convenience'
10428 fi
10429 archive_cmds_need_lc=yes
10430 # This is similar to how AIX traditionally builds its shared libraries.
10431 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'
10432 fi
10433 fi
10434 ;;
10435
10436 amigaos*)
10437 case $host_cpu in
10438 powerpc)
10439 # see comment about AmigaOS4 .so support
10440 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10441 archive_expsym_cmds=''
10442 ;;
10443 m68k)
10444 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)'
10445 hardcode_libdir_flag_spec='-L$libdir'
10446 hardcode_minus_L=yes
10447 ;;
10448 esac
10449 ;;
10450
10451 bsdi[45]*)
10452 export_dynamic_flag_spec=-rdynamic
10453 ;;
10454
10455 cygwin* | mingw* | pw32* | cegcc*)
10456 # When not using gcc, we currently assume that we are using
10457 # Microsoft Visual C++.
10458 # hardcode_libdir_flag_spec is actually meaningless, as there is
10459 # no search path for DLLs.
10460 hardcode_libdir_flag_spec=' '
10461 allow_undefined_flag=unsupported
10462 # Tell ltmain to make .lib files, not .a files.
10463 libext=lib
10464 # Tell ltmain to make .dll files, not .so files.
10465 shrext_cmds=".dll"
10466 # FIXME: Setting linknames here is a bad hack.
10467 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10468 # The linker will automatically build a .lib file if we build a DLL.
10469 old_archive_from_new_cmds='true'
10470 # FIXME: Should let the user specify the lib program.
10471 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10472 fix_srcfile_path='`cygpath -w "$srcfile"`'
10473 enable_shared_with_static_runtimes=yes
10474 ;;
10475
10476 darwin* | rhapsody*)
10477
10478
10479 archive_cmds_need_lc=no
10480 hardcode_direct=no
10481 hardcode_automatic=yes
10482 hardcode_shlibpath_var=unsupported
10483 if test "$lt_cv_ld_force_load" = "yes"; then
10484 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\"`'
10485 else
10486 whole_archive_flag_spec=''
10487 fi
10488 link_all_deplibs=yes
10489 allow_undefined_flag="$_lt_dar_allow_undefined"
10490 case $cc_basename in
10491 ifort*) _lt_dar_can_shared=yes ;;
10492 *) _lt_dar_can_shared=$GCC ;;
10493 esac
10494 if test "$_lt_dar_can_shared" = "yes"; then
10495 output_verbose_link_cmd=func_echo_all
10496 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10497 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10498 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}"
10499 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}"
10500
10501 else
10502 ld_shlibs=no
10503 fi
10504
10505 ;;
10506
10507 dgux*)
10508 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10509 hardcode_libdir_flag_spec='-L$libdir'
10510 hardcode_shlibpath_var=no
10511 ;;
10512
10513 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10514 # support. Future versions do this automatically, but an explicit c++rt0.o
10515 # does not break anything, and helps significantly (at the cost of a little
10516 # extra space).
10517 freebsd2.2*)
10518 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10519 hardcode_libdir_flag_spec='-R$libdir'
10520 hardcode_direct=yes
10521 hardcode_shlibpath_var=no
10522 ;;
10523
10524 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10525 freebsd2.*)
10526 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10527 hardcode_direct=yes
10528 hardcode_minus_L=yes
10529 hardcode_shlibpath_var=no
10530 ;;
10531
10532 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10533 freebsd* | dragonfly*)
10534 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10535 hardcode_libdir_flag_spec='-R$libdir'
10536 hardcode_direct=yes
10537 hardcode_shlibpath_var=no
10538 ;;
10539
10540 hpux9*)
10541 if test "$GCC" = yes; then
10542 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'
10543 else
10544 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'
10545 fi
10546 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10547 hardcode_libdir_separator=:
10548 hardcode_direct=yes
10549
10550 # hardcode_minus_L: Not really in the search PATH,
10551 # but as the default location of the library.
10552 hardcode_minus_L=yes
10553 export_dynamic_flag_spec='${wl}-E'
10554 ;;
10555
10556 hpux10*)
10557 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10558 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10559 else
10560 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10561 fi
10562 if test "$with_gnu_ld" = no; then
10563 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10564 hardcode_libdir_flag_spec_ld='+b $libdir'
10565 hardcode_libdir_separator=:
10566 hardcode_direct=yes
10567 hardcode_direct_absolute=yes
10568 export_dynamic_flag_spec='${wl}-E'
10569 # hardcode_minus_L: Not really in the search PATH,
10570 # but as the default location of the library.
10571 hardcode_minus_L=yes
10572 fi
10573 ;;
10574
10575 hpux11*)
10576 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10577 case $host_cpu in
10578 hppa*64*)
4e4ba647 10579 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
2077db1b
CT
10580 ;;
10581 ia64*)
10582 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10583 ;;
10584 *)
10585 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10586 ;;
10587 esac
10588 else
10589 case $host_cpu in
10590 hppa*64*)
4e4ba647 10591 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
2077db1b
CT
10592 ;;
10593 ia64*)
10594 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10595 ;;
10596 *)
10597
10598 # Older versions of the 11.00 compiler do not understand -b yet
10599 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10601$as_echo_n "checking if $CC understands -b... " >&6; }
22e05272 10602if ${lt_cv_prog_compiler__b+:} false; then :
2077db1b
CT
10603 $as_echo_n "(cached) " >&6
10604else
10605 lt_cv_prog_compiler__b=no
10606 save_LDFLAGS="$LDFLAGS"
10607 LDFLAGS="$LDFLAGS -b"
10608 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10609 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10610 # The linker can only warn and ignore the option if not recognized
10611 # So say no if there are warnings
10612 if test -s conftest.err; then
10613 # Append any errors to the config.log.
10614 cat conftest.err 1>&5
10615 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10616 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10617 if diff conftest.exp conftest.er2 >/dev/null; then
10618 lt_cv_prog_compiler__b=yes
10619 fi
10620 else
10621 lt_cv_prog_compiler__b=yes
10622 fi
10623 fi
10624 $RM -r conftest*
10625 LDFLAGS="$save_LDFLAGS"
10626
10627fi
10628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10629$as_echo "$lt_cv_prog_compiler__b" >&6; }
10630
10631if test x"$lt_cv_prog_compiler__b" = xyes; then
10632 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10633else
10634 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10635fi
10636
10637 ;;
10638 esac
10639 fi
10640 if test "$with_gnu_ld" = no; then
10641 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10642 hardcode_libdir_separator=:
10643
10644 case $host_cpu in
10645 hppa*64*|ia64*)
10646 hardcode_direct=no
10647 hardcode_shlibpath_var=no
10648 ;;
10649 *)
10650 hardcode_direct=yes
10651 hardcode_direct_absolute=yes
10652 export_dynamic_flag_spec='${wl}-E'
10653
10654 # hardcode_minus_L: Not really in the search PATH,
10655 # but as the default location of the library.
10656 hardcode_minus_L=yes
10657 ;;
10658 esac
10659 fi
10660 ;;
10661
10662 irix5* | irix6* | nonstopux*)
10663 if test "$GCC" = yes; then
10664 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'
10665 # Try to use the -exported_symbol ld option, if it does not
10666 # work, assume that -exports_file does not work either and
10667 # implicitly export all symbols.
10668 save_LDFLAGS="$LDFLAGS"
10669 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10671/* end confdefs.h. */
10672int foo(void) {}
10673_ACEOF
10674if ac_fn_c_try_link "$LINENO"; then :
10675 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'
10676
10677fi
10678rm -f core conftest.err conftest.$ac_objext \
10679 conftest$ac_exeext conftest.$ac_ext
10680 LDFLAGS="$save_LDFLAGS"
10681 else
10682 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'
10683 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'
10684 fi
10685 archive_cmds_need_lc='no'
10686 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10687 hardcode_libdir_separator=:
10688 inherit_rpath=yes
10689 link_all_deplibs=yes
10690 ;;
10691
10692 netbsd*)
10693 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10694 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10695 else
10696 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10697 fi
10698 hardcode_libdir_flag_spec='-R$libdir'
10699 hardcode_direct=yes
10700 hardcode_shlibpath_var=no
10701 ;;
10702
10703 newsos6)
10704 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10705 hardcode_direct=yes
10706 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10707 hardcode_libdir_separator=:
10708 hardcode_shlibpath_var=no
10709 ;;
10710
10711 *nto* | *qnx*)
10712 ;;
10713
10714 openbsd*)
10715 if test -f /usr/libexec/ld.so; then
10716 hardcode_direct=yes
10717 hardcode_shlibpath_var=no
10718 hardcode_direct_absolute=yes
10719 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10720 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10721 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10722 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10723 export_dynamic_flag_spec='${wl}-E'
10724 else
10725 case $host_os in
10726 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10727 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10728 hardcode_libdir_flag_spec='-R$libdir'
10729 ;;
10730 *)
10731 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10732 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10733 ;;
10734 esac
10735 fi
10736 else
10737 ld_shlibs=no
10738 fi
10739 ;;
10740
10741 os2*)
10742 hardcode_libdir_flag_spec='-L$libdir'
10743 hardcode_minus_L=yes
10744 allow_undefined_flag=unsupported
10745 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'
10746 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10747 ;;
10748
10749 osf3*)
10750 if test "$GCC" = yes; then
10751 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10752 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'
10753 else
10754 allow_undefined_flag=' -expect_unresolved \*'
10755 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'
10756 fi
10757 archive_cmds_need_lc='no'
10758 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10759 hardcode_libdir_separator=:
10760 ;;
10761
10762 osf4* | osf5*) # as osf3* with the addition of -msym flag
10763 if test "$GCC" = yes; then
10764 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10765 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'
10766 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10767 else
10768 allow_undefined_flag=' -expect_unresolved \*'
10769 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'
10770 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~
10771 $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'
10772
10773 # Both c and cxx compiler support -rpath directly
10774 hardcode_libdir_flag_spec='-rpath $libdir'
10775 fi
10776 archive_cmds_need_lc='no'
10777 hardcode_libdir_separator=:
10778 ;;
10779
10780 solaris*)
10781 no_undefined_flag=' -z defs'
10782 if test "$GCC" = yes; then
10783 wlarc='${wl}'
10784 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10785 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10786 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10787 else
10788 case `$CC -V 2>&1` in
10789 *"Compilers 5.0"*)
10790 wlarc=''
10791 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10792 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10793 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10794 ;;
10795 *)
10796 wlarc='${wl}'
10797 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10798 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10799 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10800 ;;
10801 esac
10802 fi
10803 hardcode_libdir_flag_spec='-R$libdir'
10804 hardcode_shlibpath_var=no
10805 case $host_os in
10806 solaris2.[0-5] | solaris2.[0-5].*) ;;
10807 *)
10808 # The compiler driver will combine and reorder linker options,
10809 # but understands `-z linker_flag'. GCC discards it without `$wl',
10810 # but is careful enough not to reorder.
10811 # Supported since Solaris 2.6 (maybe 2.5.1?)
10812 if test "$GCC" = yes; then
10813 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10814 else
10815 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10816 fi
10817 ;;
10818 esac
10819 link_all_deplibs=yes
10820 ;;
10821
10822 sunos4*)
10823 if test "x$host_vendor" = xsequent; then
10824 # Use $CC to link under sequent, because it throws in some extra .o
10825 # files that make .init and .fini sections work.
10826 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10827 else
10828 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10829 fi
10830 hardcode_libdir_flag_spec='-L$libdir'
10831 hardcode_direct=yes
10832 hardcode_minus_L=yes
10833 hardcode_shlibpath_var=no
10834 ;;
10835
10836 sysv4)
10837 case $host_vendor in
10838 sni)
10839 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10840 hardcode_direct=yes # is this really true???
10841 ;;
10842 siemens)
10843 ## LD is ld it makes a PLAMLIB
10844 ## CC just makes a GrossModule.
10845 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10846 reload_cmds='$CC -r -o $output$reload_objs'
10847 hardcode_direct=no
10848 ;;
10849 motorola)
10850 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10851 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10852 ;;
10853 esac
10854 runpath_var='LD_RUN_PATH'
10855 hardcode_shlibpath_var=no
10856 ;;
10857
10858 sysv4.3*)
10859 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10860 hardcode_shlibpath_var=no
10861 export_dynamic_flag_spec='-Bexport'
10862 ;;
10863
10864 sysv4*MP*)
10865 if test -d /usr/nec; then
10866 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10867 hardcode_shlibpath_var=no
10868 runpath_var=LD_RUN_PATH
10869 hardcode_runpath_var=yes
10870 ld_shlibs=yes
10871 fi
10872 ;;
10873
10874 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10875 no_undefined_flag='${wl}-z,text'
10876 archive_cmds_need_lc=no
10877 hardcode_shlibpath_var=no
10878 runpath_var='LD_RUN_PATH'
10879
10880 if test "$GCC" = yes; then
10881 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10882 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10883 else
10884 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10885 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10886 fi
10887 ;;
10888
10889 sysv5* | sco3.2v5* | sco5v6*)
10890 # Note: We can NOT use -z defs as we might desire, because we do not
10891 # link with -lc, and that would cause any symbols used from libc to
10892 # always be unresolved, which means just about no library would
10893 # ever link correctly. If we're not using GNU ld we use -z text
10894 # though, which does catch some bad symbols but isn't as heavy-handed
10895 # as -z defs.
10896 no_undefined_flag='${wl}-z,text'
10897 allow_undefined_flag='${wl}-z,nodefs'
10898 archive_cmds_need_lc=no
10899 hardcode_shlibpath_var=no
10900 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10901 hardcode_libdir_separator=':'
10902 link_all_deplibs=yes
10903 export_dynamic_flag_spec='${wl}-Bexport'
10904 runpath_var='LD_RUN_PATH'
10905
10906 if test "$GCC" = yes; then
10907 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10908 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10909 else
10910 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10911 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10912 fi
10913 ;;
10914
10915 uts4*)
10916 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10917 hardcode_libdir_flag_spec='-L$libdir'
10918 hardcode_shlibpath_var=no
10919 ;;
10920
10921 *)
10922 ld_shlibs=no
10923 ;;
10924 esac
10925
10926 if test x$host_vendor = xsni; then
10927 case $host in
10928 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10929 export_dynamic_flag_spec='${wl}-Blargedynsym'
10930 ;;
10931 esac
10932 fi
10933 fi
10934
10935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10936$as_echo "$ld_shlibs" >&6; }
10937test "$ld_shlibs" = no && can_build_shared=no
10938
10939with_gnu_ld=$with_gnu_ld
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955#
10956# Do we need to explicitly link libc?
10957#
10958case "x$archive_cmds_need_lc" in
10959x|xyes)
10960 # Assume -lc should be added
10961 archive_cmds_need_lc=yes
10962
10963 if test "$enable_shared" = yes && test "$GCC" = yes; then
10964 case $archive_cmds in
10965 *'~'*)
10966 # FIXME: we may have to deal with multi-command sequences.
10967 ;;
10968 '$CC '*)
10969 # Test whether the compiler implicitly links with -lc since on some
10970 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10971 # to ld, don't add -lc before -lgcc.
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10973$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 10974if ${lt_cv_archive_cmds_need_lc+:} false; then :
2077db1b
CT
10975 $as_echo_n "(cached) " >&6
10976else
10977 $RM conftest*
10978 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10979
10980 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10981 (eval $ac_compile) 2>&5
10982 ac_status=$?
10983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10984 test $ac_status = 0; } 2>conftest.err; then
10985 soname=conftest
10986 lib=conftest
10987 libobjs=conftest.$ac_objext
10988 deplibs=
10989 wl=$lt_prog_compiler_wl
10990 pic_flag=$lt_prog_compiler_pic
10991 compiler_flags=-v
10992 linker_flags=-v
10993 verstring=
10994 output_objdir=.
10995 libname=conftest
10996 lt_save_allow_undefined_flag=$allow_undefined_flag
10997 allow_undefined_flag=
10998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10999 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11000 ac_status=$?
11001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11002 test $ac_status = 0; }
11003 then
11004 lt_cv_archive_cmds_need_lc=no
11005 else
11006 lt_cv_archive_cmds_need_lc=yes
11007 fi
11008 allow_undefined_flag=$lt_save_allow_undefined_flag
11009 else
11010 cat conftest.err 1>&5
11011 fi
11012 $RM conftest*
11013
11014fi
11015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11016$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11017 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11018 ;;
11019 esac
11020 fi
11021 ;;
11022esac
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
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11181$as_echo_n "checking dynamic linker characteristics... " >&6; }
11182
11183if test "$GCC" = yes; then
11184 case $host_os in
11185 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11186 *) lt_awk_arg="/^libraries:/" ;;
11187 esac
11188 case $host_os in
11189 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11190 *) lt_sed_strip_eq="s,=/,/,g" ;;
11191 esac
11192 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11193 case $lt_search_path_spec in
11194 *\;*)
11195 # if the path contains ";" then we assume it to be the separator
11196 # otherwise default to the standard path separator (i.e. ":") - it is
11197 # assumed that no part of a normal pathname contains ";" but that should
11198 # okay in the real world where ";" in dirpaths is itself problematic.
11199 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11200 ;;
11201 *)
11202 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11203 ;;
11204 esac
11205 # Ok, now we have the path, separated by spaces, we can step through it
11206 # and add multilib dir if necessary.
11207 lt_tmp_lt_search_path_spec=
11208 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11209 for lt_sys_path in $lt_search_path_spec; do
11210 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11211 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11212 else
11213 test -d "$lt_sys_path" && \
11214 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11215 fi
11216 done
11217 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11218BEGIN {RS=" "; FS="/|\n";} {
11219 lt_foo="";
11220 lt_count=0;
11221 for (lt_i = NF; lt_i > 0; lt_i--) {
11222 if ($lt_i != "" && $lt_i != ".") {
11223 if ($lt_i == "..") {
11224 lt_count++;
11225 } else {
11226 if (lt_count == 0) {
11227 lt_foo="/" $lt_i lt_foo;
11228 } else {
11229 lt_count--;
11230 }
11231 }
11232 }
11233 }
11234 if (lt_foo != "") { lt_freq[lt_foo]++; }
11235 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11236}'`
11237 # AWK program above erroneously prepends '/' to C:/dos/paths
11238 # for these hosts.
11239 case $host_os in
11240 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11241 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11242 esac
11243 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11244else
11245 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11246fi
11247library_names_spec=
11248libname_spec='lib$name'
11249soname_spec=
11250shrext_cmds=".so"
11251postinstall_cmds=
11252postuninstall_cmds=
11253finish_cmds=
11254finish_eval=
11255shlibpath_var=
11256shlibpath_overrides_runpath=unknown
11257version_type=none
11258dynamic_linker="$host_os ld.so"
11259sys_lib_dlsearch_path_spec="/lib /usr/lib"
11260need_lib_prefix=unknown
11261hardcode_into_libs=no
11262
11263# when you set need_version to no, make sure it does not cause -set_version
11264# flags to be left without arguments
11265need_version=unknown
11266
11267case $host_os in
11268aix3*)
11269 version_type=linux
11270 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11271 shlibpath_var=LIBPATH
11272
11273 # AIX 3 has no versioning support, so we append a major version to the name.
11274 soname_spec='${libname}${release}${shared_ext}$major'
11275 ;;
11276
11277aix[4-9]*)
11278 version_type=linux
11279 need_lib_prefix=no
11280 need_version=no
11281 hardcode_into_libs=yes
11282 if test "$host_cpu" = ia64; then
11283 # AIX 5 supports IA64
11284 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11285 shlibpath_var=LD_LIBRARY_PATH
11286 else
11287 # With GCC up to 2.95.x, collect2 would create an import file
11288 # for dependence libraries. The import file would start with
11289 # the line `#! .'. This would cause the generated library to
11290 # depend on `.', always an invalid library. This was fixed in
11291 # development snapshots of GCC prior to 3.0.
11292 case $host_os in
11293 aix4 | aix4.[01] | aix4.[01].*)
11294 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11295 echo ' yes '
11296 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11297 :
11298 else
11299 can_build_shared=no
11300 fi
11301 ;;
11302 esac
11303 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11304 # soname into executable. Probably we can add versioning support to
11305 # collect2, so additional links can be useful in future.
11306 if test "$aix_use_runtimelinking" = yes; then
11307 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11308 # instead of lib<name>.a to let people know that these are not
11309 # typical AIX shared libraries.
11310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11311 else
11312 # We preserve .a as extension for shared libraries through AIX4.2
11313 # and later when we are not doing run time linking.
11314 library_names_spec='${libname}${release}.a $libname.a'
11315 soname_spec='${libname}${release}${shared_ext}$major'
11316 fi
11317 shlibpath_var=LIBPATH
11318 fi
11319 ;;
11320
11321amigaos*)
11322 case $host_cpu in
11323 powerpc)
11324 # Since July 2007 AmigaOS4 officially supports .so libraries.
11325 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11327 ;;
11328 m68k)
11329 library_names_spec='$libname.ixlibrary $libname.a'
11330 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11331 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'
11332 ;;
11333 esac
11334 ;;
11335
11336beos*)
11337 library_names_spec='${libname}${shared_ext}'
11338 dynamic_linker="$host_os ld.so"
11339 shlibpath_var=LIBRARY_PATH
11340 ;;
11341
11342bsdi[45]*)
11343 version_type=linux
11344 need_version=no
11345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11346 soname_spec='${libname}${release}${shared_ext}$major'
11347 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11348 shlibpath_var=LD_LIBRARY_PATH
11349 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11350 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11351 # the default ld.so.conf also contains /usr/contrib/lib and
11352 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11353 # libtool to hard-code these into programs
11354 ;;
11355
11356cygwin* | mingw* | pw32* | cegcc*)
11357 version_type=windows
11358 shrext_cmds=".dll"
11359 need_version=no
11360 need_lib_prefix=no
11361
11362 case $GCC,$host_os in
11363 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11364 library_names_spec='$libname.dll.a'
11365 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11366 postinstall_cmds='base_file=`basename \${file}`~
11367 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11368 dldir=$destdir/`dirname \$dlpath`~
11369 test -d \$dldir || mkdir -p \$dldir~
11370 $install_prog $dir/$dlname \$dldir/$dlname~
11371 chmod a+x \$dldir/$dlname~
11372 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11373 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11374 fi'
11375 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11376 dlpath=$dir/\$dldll~
11377 $RM \$dlpath'
11378 shlibpath_overrides_runpath=yes
11379
11380 case $host_os in
11381 cygwin*)
11382 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11383 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11384
11385 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11386 ;;
11387 mingw* | cegcc*)
11388 # MinGW DLLs use traditional 'lib' prefix
11389 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11390 ;;
11391 pw32*)
11392 # pw32 DLLs use 'pw' prefix rather than 'lib'
11393 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11394 ;;
11395 esac
11396 ;;
11397
11398 *)
11399 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11400 ;;
11401 esac
11402 dynamic_linker='Win32 ld.exe'
11403 # FIXME: first we should search . and the directory the executable is in
11404 shlibpath_var=PATH
11405 ;;
11406
11407darwin* | rhapsody*)
11408 dynamic_linker="$host_os dyld"
11409 version_type=darwin
11410 need_lib_prefix=no
11411 need_version=no
11412 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11413 soname_spec='${libname}${release}${major}$shared_ext'
11414 shlibpath_overrides_runpath=yes
11415 shlibpath_var=DYLD_LIBRARY_PATH
11416 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11417
11418 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11419 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11420 ;;
11421
11422dgux*)
11423 version_type=linux
11424 need_lib_prefix=no
11425 need_version=no
11426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11427 soname_spec='${libname}${release}${shared_ext}$major'
11428 shlibpath_var=LD_LIBRARY_PATH
11429 ;;
11430
11431freebsd* | dragonfly*)
11432 # DragonFly does not have aout. When/if they implement a new
11433 # versioning mechanism, adjust this.
11434 if test -x /usr/bin/objformat; then
11435 objformat=`/usr/bin/objformat`
11436 else
11437 case $host_os in
11438 freebsd[23].*) objformat=aout ;;
11439 *) objformat=elf ;;
11440 esac
11441 fi
11442 version_type=freebsd-$objformat
11443 case $version_type in
11444 freebsd-elf*)
11445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11446 need_version=no
11447 need_lib_prefix=no
11448 ;;
11449 freebsd-*)
11450 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11451 need_version=yes
11452 ;;
11453 esac
11454 shlibpath_var=LD_LIBRARY_PATH
11455 case $host_os in
11456 freebsd2.*)
11457 shlibpath_overrides_runpath=yes
11458 ;;
11459 freebsd3.[01]* | freebsdelf3.[01]*)
11460 shlibpath_overrides_runpath=yes
11461 hardcode_into_libs=yes
11462 ;;
11463 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11464 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11465 shlibpath_overrides_runpath=no
11466 hardcode_into_libs=yes
11467 ;;
11468 *) # from 4.6 on, and DragonFly
11469 shlibpath_overrides_runpath=yes
11470 hardcode_into_libs=yes
11471 ;;
11472 esac
11473 ;;
11474
2077db1b
CT
11475haiku*)
11476 version_type=linux
11477 need_lib_prefix=no
11478 need_version=no
11479 dynamic_linker="$host_os runtime_loader"
11480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11481 soname_spec='${libname}${release}${shared_ext}$major'
11482 shlibpath_var=LIBRARY_PATH
11483 shlibpath_overrides_runpath=yes
11484 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11485 hardcode_into_libs=yes
11486 ;;
11487
11488hpux9* | hpux10* | hpux11*)
11489 # Give a soname corresponding to the major version so that dld.sl refuses to
11490 # link against other versions.
11491 version_type=sunos
11492 need_lib_prefix=no
11493 need_version=no
11494 case $host_cpu in
11495 ia64*)
11496 shrext_cmds='.so'
11497 hardcode_into_libs=yes
11498 dynamic_linker="$host_os dld.so"
11499 shlibpath_var=LD_LIBRARY_PATH
11500 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11502 soname_spec='${libname}${release}${shared_ext}$major'
11503 if test "X$HPUX_IA64_MODE" = X32; then
11504 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11505 else
11506 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11507 fi
11508 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11509 ;;
11510 hppa*64*)
11511 shrext_cmds='.sl'
11512 hardcode_into_libs=yes
11513 dynamic_linker="$host_os dld.sl"
11514 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11515 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11517 soname_spec='${libname}${release}${shared_ext}$major'
11518 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11519 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11520 ;;
11521 *)
11522 shrext_cmds='.sl'
11523 dynamic_linker="$host_os dld.sl"
11524 shlibpath_var=SHLIB_PATH
11525 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11527 soname_spec='${libname}${release}${shared_ext}$major'
11528 ;;
11529 esac
11530 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11531 postinstall_cmds='chmod 555 $lib'
11532 # or fails outright, so override atomically:
11533 install_override_mode=555
11534 ;;
11535
11536interix[3-9]*)
11537 version_type=linux
11538 need_lib_prefix=no
11539 need_version=no
11540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11541 soname_spec='${libname}${release}${shared_ext}$major'
11542 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11543 shlibpath_var=LD_LIBRARY_PATH
11544 shlibpath_overrides_runpath=no
11545 hardcode_into_libs=yes
11546 ;;
11547
11548irix5* | irix6* | nonstopux*)
11549 case $host_os in
11550 nonstopux*) version_type=nonstopux ;;
11551 *)
11552 if test "$lt_cv_prog_gnu_ld" = yes; then
11553 version_type=linux
11554 else
11555 version_type=irix
11556 fi ;;
11557 esac
11558 need_lib_prefix=no
11559 need_version=no
11560 soname_spec='${libname}${release}${shared_ext}$major'
11561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11562 case $host_os in
11563 irix5* | nonstopux*)
11564 libsuff= shlibsuff=
11565 ;;
11566 *)
11567 case $LD in # libtool.m4 will add one of these switches to LD
11568 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11569 libsuff= shlibsuff= libmagic=32-bit;;
11570 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11571 libsuff=32 shlibsuff=N32 libmagic=N32;;
11572 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11573 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11574 *) libsuff= shlibsuff= libmagic=never-match;;
11575 esac
11576 ;;
11577 esac
11578 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11579 shlibpath_overrides_runpath=no
11580 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11581 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11582 hardcode_into_libs=yes
11583 ;;
11584
11585# No shared lib support for Linux oldld, aout, or coff.
11586linux*oldld* | linux*aout* | linux*coff*)
11587 dynamic_linker=no
11588 ;;
11589
11590# This must be Linux ELF.
e9085da5
MR
11591
11592# uclinux* changes (here and below) have been submitted to the libtool
11593# project, but have not yet been accepted: they are GCC-local changes
11594# for the time being. (See
11595# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
f56de355 11596linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
2077db1b
CT
11597 version_type=linux
11598 need_lib_prefix=no
11599 need_version=no
11600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11601 soname_spec='${libname}${release}${shared_ext}$major'
11602 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11603 shlibpath_var=LD_LIBRARY_PATH
11604 shlibpath_overrides_runpath=no
11605
11606 # Some binutils ld are patched to set DT_RUNPATH
22e05272 11607 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
2077db1b
CT
11608 $as_echo_n "(cached) " >&6
11609else
11610 lt_cv_shlibpath_overrides_runpath=no
11611 save_LDFLAGS=$LDFLAGS
11612 save_libdir=$libdir
11613 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11614 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11616/* end confdefs.h. */
11617
11618int
11619main ()
11620{
11621
11622 ;
11623 return 0;
11624}
11625_ACEOF
11626if ac_fn_c_try_link "$LINENO"; then :
11627 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11628 lt_cv_shlibpath_overrides_runpath=yes
11629fi
11630fi
11631rm -f core conftest.err conftest.$ac_objext \
11632 conftest$ac_exeext conftest.$ac_ext
11633 LDFLAGS=$save_LDFLAGS
11634 libdir=$save_libdir
11635
11636fi
11637
11638 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11639
11640 # This implies no fast_install, which is unacceptable.
11641 # Some rework will be needed to allow for fast_install
11642 # before this can be enabled.
11643 hardcode_into_libs=yes
11644
11645 # Append ld.so.conf contents to the search path
11646 if test -f /etc/ld.so.conf; then
11647 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' ' '`
11648 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11649 fi
11650
11651 # We used to test for /lib/ld.so.1 and disable shared libraries on
11652 # powerpc, because MkLinux only supported shared libraries with the
11653 # GNU dynamic linker. Since this was broken with cross compilers,
11654 # most powerpc-linux boxes support dynamic linking these days and
11655 # people can always --disable-shared, the test was removed, and we
11656 # assume the GNU/Linux dynamic linker is in use.
11657 dynamic_linker='GNU/Linux ld.so'
11658 ;;
11659
11660netbsd*)
11661 version_type=sunos
11662 need_lib_prefix=no
11663 need_version=no
11664 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11666 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11667 dynamic_linker='NetBSD (a.out) ld.so'
11668 else
11669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11670 soname_spec='${libname}${release}${shared_ext}$major'
11671 dynamic_linker='NetBSD ld.elf_so'
11672 fi
11673 shlibpath_var=LD_LIBRARY_PATH
11674 shlibpath_overrides_runpath=yes
11675 hardcode_into_libs=yes
11676 ;;
11677
11678newsos6)
11679 version_type=linux
11680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11681 shlibpath_var=LD_LIBRARY_PATH
11682 shlibpath_overrides_runpath=yes
11683 ;;
11684
11685*nto* | *qnx*)
11686 version_type=qnx
11687 need_lib_prefix=no
11688 need_version=no
11689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11690 soname_spec='${libname}${release}${shared_ext}$major'
11691 shlibpath_var=LD_LIBRARY_PATH
11692 shlibpath_overrides_runpath=no
11693 hardcode_into_libs=yes
11694 dynamic_linker='ldqnx.so'
11695 ;;
11696
11697openbsd*)
11698 version_type=sunos
11699 sys_lib_dlsearch_path_spec="/usr/lib"
11700 need_lib_prefix=no
11701 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11702 case $host_os in
11703 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11704 *) need_version=no ;;
11705 esac
11706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11707 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11708 shlibpath_var=LD_LIBRARY_PATH
11709 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11710 case $host_os in
11711 openbsd2.[89] | openbsd2.[89].*)
11712 shlibpath_overrides_runpath=no
11713 ;;
11714 *)
11715 shlibpath_overrides_runpath=yes
11716 ;;
11717 esac
11718 else
11719 shlibpath_overrides_runpath=yes
11720 fi
11721 ;;
11722
11723os2*)
11724 libname_spec='$name'
11725 shrext_cmds=".dll"
11726 need_lib_prefix=no
11727 library_names_spec='$libname${shared_ext} $libname.a'
11728 dynamic_linker='OS/2 ld.exe'
11729 shlibpath_var=LIBPATH
11730 ;;
11731
11732osf3* | osf4* | osf5*)
11733 version_type=osf
11734 need_lib_prefix=no
11735 need_version=no
11736 soname_spec='${libname}${release}${shared_ext}$major'
11737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11738 shlibpath_var=LD_LIBRARY_PATH
11739 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11740 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11741 ;;
11742
11743rdos*)
11744 dynamic_linker=no
11745 ;;
11746
11747solaris*)
11748 version_type=linux
11749 need_lib_prefix=no
11750 need_version=no
11751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11752 soname_spec='${libname}${release}${shared_ext}$major'
11753 shlibpath_var=LD_LIBRARY_PATH
11754 shlibpath_overrides_runpath=yes
11755 hardcode_into_libs=yes
11756 # ldd complains unless libraries are executable
11757 postinstall_cmds='chmod +x $lib'
11758 ;;
11759
11760sunos4*)
11761 version_type=sunos
11762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11763 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11764 shlibpath_var=LD_LIBRARY_PATH
11765 shlibpath_overrides_runpath=yes
11766 if test "$with_gnu_ld" = yes; then
11767 need_lib_prefix=no
11768 fi
11769 need_version=yes
11770 ;;
11771
11772sysv4 | sysv4.3*)
11773 version_type=linux
11774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11775 soname_spec='${libname}${release}${shared_ext}$major'
11776 shlibpath_var=LD_LIBRARY_PATH
11777 case $host_vendor in
11778 sni)
11779 shlibpath_overrides_runpath=no
11780 need_lib_prefix=no
11781 runpath_var=LD_RUN_PATH
11782 ;;
11783 siemens)
11784 need_lib_prefix=no
11785 ;;
11786 motorola)
11787 need_lib_prefix=no
11788 need_version=no
11789 shlibpath_overrides_runpath=no
11790 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11791 ;;
11792 esac
11793 ;;
11794
11795sysv4*MP*)
11796 if test -d /usr/nec ;then
11797 version_type=linux
11798 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11799 soname_spec='$libname${shared_ext}.$major'
11800 shlibpath_var=LD_LIBRARY_PATH
11801 fi
11802 ;;
11803
11804sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11805 version_type=freebsd-elf
11806 need_lib_prefix=no
11807 need_version=no
11808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11809 soname_spec='${libname}${release}${shared_ext}$major'
11810 shlibpath_var=LD_LIBRARY_PATH
11811 shlibpath_overrides_runpath=yes
11812 hardcode_into_libs=yes
11813 if test "$with_gnu_ld" = yes; then
11814 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11815 else
11816 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11817 case $host_os in
11818 sco3.2v5*)
11819 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11820 ;;
11821 esac
11822 fi
11823 sys_lib_dlsearch_path_spec='/usr/lib'
11824 ;;
11825
11826tpf*)
11827 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11828 version_type=linux
11829 need_lib_prefix=no
11830 need_version=no
11831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11832 shlibpath_var=LD_LIBRARY_PATH
11833 shlibpath_overrides_runpath=no
11834 hardcode_into_libs=yes
11835 ;;
11836
11837uts4*)
11838 version_type=linux
11839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11840 soname_spec='${libname}${release}${shared_ext}$major'
11841 shlibpath_var=LD_LIBRARY_PATH
11842 ;;
11843
0ecd0f1c
OH
11844# Shared libraries for VwWorks, >= 7 only at this stage
11845# and (fpic) still incompatible with "large" code models
11846# in a few configurations. Only for RTP mode in any case,
11847# and upon explicit request at configure time.
11848vxworks7*)
11849 dynamic_linker=no
11850 case ${with_multisubdir}-${enable_shared} in
11851 *large*)
11852 ;;
11853 *mrtp*-yes)
11854 version_type=linux
11855 need_lib_prefix=no
11856 need_version=no
11857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11858 soname_spec='${libname}${release}${shared_ext}$major'
11859 dynamic_linker="$host_os module_loader"
11860 ;;
11861 esac
11862 ;;
2077db1b
CT
11863*)
11864 dynamic_linker=no
11865 ;;
11866esac
11867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11868$as_echo "$dynamic_linker" >&6; }
11869test "$dynamic_linker" = no && can_build_shared=no
11870
11871variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11872if test "$GCC" = yes; then
11873 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11874fi
11875
11876if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11877 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11878fi
11879if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11880 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11881fi
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11975$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11976hardcode_action=
11977if test -n "$hardcode_libdir_flag_spec" ||
11978 test -n "$runpath_var" ||
11979 test "X$hardcode_automatic" = "Xyes" ; then
11980
11981 # We can hardcode non-existent directories.
11982 if test "$hardcode_direct" != no &&
11983 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11984 # have to relink, otherwise we might link with an installed library
11985 # when we should be linking with a yet-to-be-installed one
11986 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11987 test "$hardcode_minus_L" != no; then
11988 # Linking always hardcodes the temporary library directory.
11989 hardcode_action=relink
11990 else
11991 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11992 hardcode_action=immediate
11993 fi
11994else
11995 # We cannot hardcode anything, or else we can only hardcode existing
11996 # directories.
11997 hardcode_action=unsupported
11998fi
11999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12000$as_echo "$hardcode_action" >&6; }
12001
12002if test "$hardcode_action" = relink ||
12003 test "$inherit_rpath" = yes; then
12004 # Fast installation is not supported
12005 enable_fast_install=no
12006elif test "$shlibpath_overrides_runpath" = yes ||
12007 test "$enable_shared" = no; then
12008 # Fast installation is not necessary
12009 enable_fast_install=needless
12010fi
12011
12012
12013
12014
12015
12016
12017 if test "x$enable_dlopen" != xyes; then
12018 enable_dlopen=unknown
12019 enable_dlopen_self=unknown
12020 enable_dlopen_self_static=unknown
12021else
12022 lt_cv_dlopen=no
12023 lt_cv_dlopen_libs=
12024
12025 case $host_os in
12026 beos*)
12027 lt_cv_dlopen="load_add_on"
12028 lt_cv_dlopen_libs=
12029 lt_cv_dlopen_self=yes
12030 ;;
12031
12032 mingw* | pw32* | cegcc*)
12033 lt_cv_dlopen="LoadLibrary"
12034 lt_cv_dlopen_libs=
12035 ;;
12036
12037 cygwin*)
12038 lt_cv_dlopen="dlopen"
12039 lt_cv_dlopen_libs=
12040 ;;
12041
12042 darwin*)
12043 # if libdl is installed we need to link against it
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12045$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 12046if ${ac_cv_lib_dl_dlopen+:} false; then :
2077db1b
CT
12047 $as_echo_n "(cached) " >&6
12048else
12049 ac_check_lib_save_LIBS=$LIBS
12050LIBS="-ldl $LIBS"
12051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12052/* end confdefs.h. */
12053
12054/* Override any GCC internal prototype to avoid an error.
12055 Use char because int might match the return type of a GCC
12056 builtin and then its argument prototype would still apply. */
12057#ifdef __cplusplus
12058extern "C"
12059#endif
12060char dlopen ();
12061int
12062main ()
12063{
12064return dlopen ();
12065 ;
12066 return 0;
12067}
12068_ACEOF
12069if ac_fn_c_try_link "$LINENO"; then :
12070 ac_cv_lib_dl_dlopen=yes
12071else
12072 ac_cv_lib_dl_dlopen=no
12073fi
12074rm -f core conftest.err conftest.$ac_objext \
12075 conftest$ac_exeext conftest.$ac_ext
12076LIBS=$ac_check_lib_save_LIBS
12077fi
12078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12079$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 12080if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
2077db1b
CT
12081 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12082else
12083
12084 lt_cv_dlopen="dyld"
12085 lt_cv_dlopen_libs=
12086 lt_cv_dlopen_self=yes
12087
12088fi
12089
12090 ;;
12091
12092 *)
12093 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22e05272 12094if test "x$ac_cv_func_shl_load" = xyes; then :
2077db1b
CT
12095 lt_cv_dlopen="shl_load"
12096else
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12098$as_echo_n "checking for shl_load in -ldld... " >&6; }
22e05272 12099if ${ac_cv_lib_dld_shl_load+:} false; then :
2077db1b
CT
12100 $as_echo_n "(cached) " >&6
12101else
12102 ac_check_lib_save_LIBS=$LIBS
12103LIBS="-ldld $LIBS"
12104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12105/* end confdefs.h. */
12106
12107/* Override any GCC internal prototype to avoid an error.
12108 Use char because int might match the return type of a GCC
12109 builtin and then its argument prototype would still apply. */
12110#ifdef __cplusplus
12111extern "C"
12112#endif
12113char shl_load ();
12114int
12115main ()
12116{
12117return shl_load ();
12118 ;
12119 return 0;
12120}
12121_ACEOF
12122if ac_fn_c_try_link "$LINENO"; then :
12123 ac_cv_lib_dld_shl_load=yes
12124else
12125 ac_cv_lib_dld_shl_load=no
12126fi
12127rm -f core conftest.err conftest.$ac_objext \
12128 conftest$ac_exeext conftest.$ac_ext
12129LIBS=$ac_check_lib_save_LIBS
12130fi
12131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12132$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22e05272 12133if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
2077db1b
CT
12134 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12135else
12136 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22e05272 12137if test "x$ac_cv_func_dlopen" = xyes; then :
2077db1b
CT
12138 lt_cv_dlopen="dlopen"
12139else
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12141$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 12142if ${ac_cv_lib_dl_dlopen+:} false; then :
2077db1b
CT
12143 $as_echo_n "(cached) " >&6
12144else
12145 ac_check_lib_save_LIBS=$LIBS
12146LIBS="-ldl $LIBS"
12147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12148/* end confdefs.h. */
12149
12150/* Override any GCC internal prototype to avoid an error.
12151 Use char because int might match the return type of a GCC
12152 builtin and then its argument prototype would still apply. */
12153#ifdef __cplusplus
12154extern "C"
12155#endif
12156char dlopen ();
12157int
12158main ()
12159{
12160return dlopen ();
12161 ;
12162 return 0;
12163}
12164_ACEOF
12165if ac_fn_c_try_link "$LINENO"; then :
12166 ac_cv_lib_dl_dlopen=yes
12167else
12168 ac_cv_lib_dl_dlopen=no
12169fi
12170rm -f core conftest.err conftest.$ac_objext \
12171 conftest$ac_exeext conftest.$ac_ext
12172LIBS=$ac_check_lib_save_LIBS
12173fi
12174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12175$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 12176if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
2077db1b
CT
12177 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12178else
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12180$as_echo_n "checking for dlopen in -lsvld... " >&6; }
22e05272 12181if ${ac_cv_lib_svld_dlopen+:} false; then :
2077db1b
CT
12182 $as_echo_n "(cached) " >&6
12183else
12184 ac_check_lib_save_LIBS=$LIBS
12185LIBS="-lsvld $LIBS"
12186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12187/* end confdefs.h. */
12188
12189/* Override any GCC internal prototype to avoid an error.
12190 Use char because int might match the return type of a GCC
12191 builtin and then its argument prototype would still apply. */
12192#ifdef __cplusplus
12193extern "C"
12194#endif
12195char dlopen ();
12196int
12197main ()
12198{
12199return dlopen ();
12200 ;
12201 return 0;
12202}
12203_ACEOF
12204if ac_fn_c_try_link "$LINENO"; then :
12205 ac_cv_lib_svld_dlopen=yes
12206else
12207 ac_cv_lib_svld_dlopen=no
12208fi
12209rm -f core conftest.err conftest.$ac_objext \
12210 conftest$ac_exeext conftest.$ac_ext
12211LIBS=$ac_check_lib_save_LIBS
12212fi
12213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12214$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22e05272 12215if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
2077db1b
CT
12216 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12217else
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12219$as_echo_n "checking for dld_link in -ldld... " >&6; }
22e05272 12220if ${ac_cv_lib_dld_dld_link+:} false; then :
2077db1b
CT
12221 $as_echo_n "(cached) " >&6
12222else
12223 ac_check_lib_save_LIBS=$LIBS
12224LIBS="-ldld $LIBS"
12225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12226/* end confdefs.h. */
12227
12228/* Override any GCC internal prototype to avoid an error.
12229 Use char because int might match the return type of a GCC
12230 builtin and then its argument prototype would still apply. */
12231#ifdef __cplusplus
12232extern "C"
12233#endif
12234char dld_link ();
12235int
12236main ()
12237{
12238return dld_link ();
12239 ;
12240 return 0;
12241}
12242_ACEOF
12243if ac_fn_c_try_link "$LINENO"; then :
12244 ac_cv_lib_dld_dld_link=yes
12245else
12246 ac_cv_lib_dld_dld_link=no
12247fi
12248rm -f core conftest.err conftest.$ac_objext \
12249 conftest$ac_exeext conftest.$ac_ext
12250LIBS=$ac_check_lib_save_LIBS
12251fi
12252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12253$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22e05272 12254if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
2077db1b
CT
12255 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12256fi
12257
12258
12259fi
12260
12261
12262fi
12263
12264
12265fi
12266
12267
12268fi
12269
12270
12271fi
12272
12273 ;;
12274 esac
12275
12276 if test "x$lt_cv_dlopen" != xno; then
12277 enable_dlopen=yes
12278 else
12279 enable_dlopen=no
12280 fi
12281
12282 case $lt_cv_dlopen in
12283 dlopen)
12284 save_CPPFLAGS="$CPPFLAGS"
12285 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12286
12287 save_LDFLAGS="$LDFLAGS"
12288 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12289
12290 save_LIBS="$LIBS"
12291 LIBS="$lt_cv_dlopen_libs $LIBS"
12292
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12294$as_echo_n "checking whether a program can dlopen itself... " >&6; }
22e05272 12295if ${lt_cv_dlopen_self+:} false; then :
2077db1b
CT
12296 $as_echo_n "(cached) " >&6
12297else
12298 if test "$cross_compiling" = yes; then :
12299 lt_cv_dlopen_self=cross
12300else
12301 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12302 lt_status=$lt_dlunknown
12303 cat > conftest.$ac_ext <<_LT_EOF
126f707e 12304#line 12304 "configure"
2077db1b
CT
12305#include "confdefs.h"
12306
12307#if HAVE_DLFCN_H
12308#include <dlfcn.h>
12309#endif
12310
12311#include <stdio.h>
12312
12313#ifdef RTLD_GLOBAL
12314# define LT_DLGLOBAL RTLD_GLOBAL
12315#else
12316# ifdef DL_GLOBAL
12317# define LT_DLGLOBAL DL_GLOBAL
12318# else
12319# define LT_DLGLOBAL 0
12320# endif
12321#endif
12322
12323/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12324 find out it does not work in some platform. */
12325#ifndef LT_DLLAZY_OR_NOW
12326# ifdef RTLD_LAZY
12327# define LT_DLLAZY_OR_NOW RTLD_LAZY
12328# else
12329# ifdef DL_LAZY
12330# define LT_DLLAZY_OR_NOW DL_LAZY
12331# else
12332# ifdef RTLD_NOW
12333# define LT_DLLAZY_OR_NOW RTLD_NOW
12334# else
12335# ifdef DL_NOW
12336# define LT_DLLAZY_OR_NOW DL_NOW
12337# else
12338# define LT_DLLAZY_OR_NOW 0
12339# endif
12340# endif
12341# endif
12342# endif
12343#endif
12344
12345/* When -fvisbility=hidden is used, assume the code has been annotated
12346 correspondingly for the symbols needed. */
12347#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12348void fnord () __attribute__((visibility("default")));
12349#endif
12350
12351void fnord () { int i=42; }
12352int main ()
12353{
12354 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12355 int status = $lt_dlunknown;
12356
12357 if (self)
12358 {
12359 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12360 else
12361 {
12362 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12363 else puts (dlerror ());
12364 }
12365 /* dlclose (self); */
12366 }
12367 else
12368 puts (dlerror ());
12369
12370 return status;
12371}
12372_LT_EOF
12373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12374 (eval $ac_link) 2>&5
12375 ac_status=$?
12376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12377 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12378 (./conftest; exit; ) >&5 2>/dev/null
12379 lt_status=$?
12380 case x$lt_status in
12381 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12382 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12383 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12384 esac
12385 else :
12386 # compilation failed
12387 lt_cv_dlopen_self=no
12388 fi
12389fi
12390rm -fr conftest*
12391
12392
12393fi
12394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12395$as_echo "$lt_cv_dlopen_self" >&6; }
12396
12397 if test "x$lt_cv_dlopen_self" = xyes; then
12398 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12400$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
22e05272 12401if ${lt_cv_dlopen_self_static+:} false; then :
2077db1b
CT
12402 $as_echo_n "(cached) " >&6
12403else
12404 if test "$cross_compiling" = yes; then :
12405 lt_cv_dlopen_self_static=cross
12406else
12407 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12408 lt_status=$lt_dlunknown
12409 cat > conftest.$ac_ext <<_LT_EOF
126f707e 12410#line 12410 "configure"
2077db1b
CT
12411#include "confdefs.h"
12412
12413#if HAVE_DLFCN_H
12414#include <dlfcn.h>
12415#endif
12416
12417#include <stdio.h>
12418
12419#ifdef RTLD_GLOBAL
12420# define LT_DLGLOBAL RTLD_GLOBAL
12421#else
12422# ifdef DL_GLOBAL
12423# define LT_DLGLOBAL DL_GLOBAL
12424# else
12425# define LT_DLGLOBAL 0
12426# endif
12427#endif
12428
12429/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12430 find out it does not work in some platform. */
12431#ifndef LT_DLLAZY_OR_NOW
12432# ifdef RTLD_LAZY
12433# define LT_DLLAZY_OR_NOW RTLD_LAZY
12434# else
12435# ifdef DL_LAZY
12436# define LT_DLLAZY_OR_NOW DL_LAZY
12437# else
12438# ifdef RTLD_NOW
12439# define LT_DLLAZY_OR_NOW RTLD_NOW
12440# else
12441# ifdef DL_NOW
12442# define LT_DLLAZY_OR_NOW DL_NOW
12443# else
12444# define LT_DLLAZY_OR_NOW 0
12445# endif
12446# endif
12447# endif
12448# endif
12449#endif
12450
12451/* When -fvisbility=hidden is used, assume the code has been annotated
12452 correspondingly for the symbols needed. */
12453#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12454void fnord () __attribute__((visibility("default")));
12455#endif
12456
12457void fnord () { int i=42; }
12458int main ()
12459{
12460 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12461 int status = $lt_dlunknown;
12462
12463 if (self)
12464 {
12465 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12466 else
12467 {
12468 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12469 else puts (dlerror ());
12470 }
12471 /* dlclose (self); */
12472 }
12473 else
12474 puts (dlerror ());
12475
12476 return status;
12477}
12478_LT_EOF
12479 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12480 (eval $ac_link) 2>&5
12481 ac_status=$?
12482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12483 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12484 (./conftest; exit; ) >&5 2>/dev/null
12485 lt_status=$?
12486 case x$lt_status in
12487 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12488 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12489 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12490 esac
12491 else :
12492 # compilation failed
12493 lt_cv_dlopen_self_static=no
12494 fi
12495fi
12496rm -fr conftest*
12497
12498
12499fi
12500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12501$as_echo "$lt_cv_dlopen_self_static" >&6; }
12502 fi
12503
12504 CPPFLAGS="$save_CPPFLAGS"
12505 LDFLAGS="$save_LDFLAGS"
12506 LIBS="$save_LIBS"
12507 ;;
12508 esac
12509
12510 case $lt_cv_dlopen_self in
12511 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12512 *) enable_dlopen_self=unknown ;;
12513 esac
12514
12515 case $lt_cv_dlopen_self_static in
12516 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12517 *) enable_dlopen_self_static=unknown ;;
12518 esac
12519fi
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537striplib=
12538old_striplib=
12539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12540$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12541if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12542 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12543 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12545$as_echo "yes" >&6; }
12546else
12547# FIXME - insert some real tests, host_os isn't really good enough
12548 case $host_os in
12549 darwin*)
12550 if test -n "$STRIP" ; then
12551 striplib="$STRIP -x"
12552 old_striplib="$STRIP -S"
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12554$as_echo "yes" >&6; }
12555 else
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12557$as_echo "no" >&6; }
12558 fi
12559 ;;
12560 *)
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12562$as_echo "no" >&6; }
12563 ;;
12564 esac
12565fi
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578 # Report which library types will actually be built
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12580$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12582$as_echo "$can_build_shared" >&6; }
12583
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12585$as_echo_n "checking whether to build shared libraries... " >&6; }
12586 test "$can_build_shared" = "no" && enable_shared=no
12587
12588 # On AIX, shared libraries and static libraries use the same namespace, and
12589 # are all built from PIC.
12590 case $host_os in
12591 aix3*)
12592 test "$enable_shared" = yes && enable_static=no
12593 if test -n "$RANLIB"; then
12594 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12595 postinstall_cmds='$RANLIB $lib'
12596 fi
12597 ;;
12598
12599 aix[4-9]*)
12600 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12601 test "$enable_shared" = yes && enable_static=no
12602 fi
12603 ;;
12604 esac
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12606$as_echo "$enable_shared" >&6; }
12607
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12609$as_echo_n "checking whether to build static libraries... " >&6; }
12610 # Make sure either enable_shared or enable_static is yes.
12611 test "$enable_shared" = yes || enable_static=yes
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12613$as_echo "$enable_static" >&6; }
12614
12615
12616
12617
12618fi
12619ac_ext=c
12620ac_cpp='$CPP $CPPFLAGS'
12621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12623ac_compiler_gnu=$ac_cv_c_compiler_gnu
12624
12625CC="$lt_save_CC"
12626
12627 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12628 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12629 (test "X$CXX" != "Xg++"))) ; then
12630 ac_ext=cpp
12631ac_cpp='$CXXCPP $CPPFLAGS'
12632ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12633ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12634ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12636$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12637if test -z "$CXXCPP"; then
22e05272 12638 if ${ac_cv_prog_CXXCPP+:} false; then :
2077db1b
CT
12639 $as_echo_n "(cached) " >&6
12640else
12641 # Double quotes because CXXCPP needs to be expanded
12642 for CXXCPP in "$CXX -E" "/lib/cpp"
12643 do
12644 ac_preproc_ok=false
12645for ac_cxx_preproc_warn_flag in '' yes
12646do
12647 # Use a header file that comes with gcc, so configuring glibc
12648 # with a fresh cross-compiler works.
12649 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12650 # <limits.h> exists even on freestanding compilers.
12651 # On the NeXT, cc -E runs the code through the compiler's parser,
12652 # not just through cpp. "Syntax error" is here to catch this case.
12653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12654/* end confdefs.h. */
12655#ifdef __STDC__
12656# include <limits.h>
12657#else
12658# include <assert.h>
12659#endif
12660 Syntax error
12661_ACEOF
12662if ac_fn_cxx_try_cpp "$LINENO"; then :
12663
12664else
12665 # Broken: fails on valid input.
12666continue
12667fi
22e05272 12668rm -f conftest.err conftest.i conftest.$ac_ext
2077db1b
CT
12669
12670 # OK, works on sane cases. Now check whether nonexistent headers
12671 # can be detected and how.
12672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12673/* end confdefs.h. */
12674#include <ac_nonexistent.h>
12675_ACEOF
12676if ac_fn_cxx_try_cpp "$LINENO"; then :
12677 # Broken: success on invalid input.
12678continue
12679else
12680 # Passes both tests.
12681ac_preproc_ok=:
12682break
12683fi
22e05272 12684rm -f conftest.err conftest.i conftest.$ac_ext
2077db1b
CT
12685
12686done
12687# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 12688rm -f conftest.i conftest.err conftest.$ac_ext
2077db1b
CT
12689if $ac_preproc_ok; then :
12690 break
12691fi
12692
12693 done
12694 ac_cv_prog_CXXCPP=$CXXCPP
12695
12696fi
12697 CXXCPP=$ac_cv_prog_CXXCPP
12698else
12699 ac_cv_prog_CXXCPP=$CXXCPP
12700fi
12701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12702$as_echo "$CXXCPP" >&6; }
12703ac_preproc_ok=false
12704for ac_cxx_preproc_warn_flag in '' yes
12705do
12706 # Use a header file that comes with gcc, so configuring glibc
12707 # with a fresh cross-compiler works.
12708 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12709 # <limits.h> exists even on freestanding compilers.
12710 # On the NeXT, cc -E runs the code through the compiler's parser,
12711 # not just through cpp. "Syntax error" is here to catch this case.
12712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12713/* end confdefs.h. */
12714#ifdef __STDC__
12715# include <limits.h>
12716#else
12717# include <assert.h>
12718#endif
12719 Syntax error
12720_ACEOF
12721if ac_fn_cxx_try_cpp "$LINENO"; then :
12722
12723else
12724 # Broken: fails on valid input.
12725continue
12726fi
22e05272 12727rm -f conftest.err conftest.i conftest.$ac_ext
2077db1b
CT
12728
12729 # OK, works on sane cases. Now check whether nonexistent headers
12730 # can be detected and how.
12731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12732/* end confdefs.h. */
12733#include <ac_nonexistent.h>
12734_ACEOF
12735if ac_fn_cxx_try_cpp "$LINENO"; then :
12736 # Broken: success on invalid input.
12737continue
12738else
12739 # Passes both tests.
12740ac_preproc_ok=:
12741break
12742fi
22e05272 12743rm -f conftest.err conftest.i conftest.$ac_ext
2077db1b
CT
12744
12745done
12746# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 12747rm -f conftest.i conftest.err conftest.$ac_ext
2077db1b
CT
12748if $ac_preproc_ok; then :
12749
12750else
12751 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12752$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12753as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12754See \`config.log' for more details" "$LINENO" 5; }
2077db1b
CT
12755fi
12756
12757ac_ext=c
12758ac_cpp='$CPP $CPPFLAGS'
12759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12761ac_compiler_gnu=$ac_cv_c_compiler_gnu
12762
12763else
12764 _lt_caught_CXX_error=yes
12765fi
12766
12767ac_ext=cpp
12768ac_cpp='$CXXCPP $CPPFLAGS'
12769ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12770ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12771ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12772
12773archive_cmds_need_lc_CXX=no
12774allow_undefined_flag_CXX=
12775always_export_symbols_CXX=no
12776archive_expsym_cmds_CXX=
12777compiler_needs_object_CXX=no
12778export_dynamic_flag_spec_CXX=
12779hardcode_direct_CXX=no
12780hardcode_direct_absolute_CXX=no
12781hardcode_libdir_flag_spec_CXX=
12782hardcode_libdir_flag_spec_ld_CXX=
12783hardcode_libdir_separator_CXX=
12784hardcode_minus_L_CXX=no
12785hardcode_shlibpath_var_CXX=unsupported
12786hardcode_automatic_CXX=no
12787inherit_rpath_CXX=no
12788module_cmds_CXX=
12789module_expsym_cmds_CXX=
12790link_all_deplibs_CXX=unknown
12791old_archive_cmds_CXX=$old_archive_cmds
12792reload_flag_CXX=$reload_flag
12793reload_cmds_CXX=$reload_cmds
12794no_undefined_flag_CXX=
12795whole_archive_flag_spec_CXX=
12796enable_shared_with_static_runtimes_CXX=no
12797
12798# Source file extension for C++ test sources.
12799ac_ext=cpp
12800
12801# Object file extension for compiled C++ test sources.
12802objext=o
12803objext_CXX=$objext
12804
12805# No sense in running all these tests if we already determined that
12806# the CXX compiler isn't working. Some variables (like enable_shared)
12807# are currently assumed to apply to all compilers on this platform,
12808# and will be corrupted by setting them based on a non-working compiler.
12809if test "$_lt_caught_CXX_error" != yes; then
12810 # Code to be used in simple compile tests
12811 lt_simple_compile_test_code="int some_variable = 0;"
12812
12813 # Code to be used in simple link tests
12814 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12815
12816 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12817
12818
12819
12820
12821
12822
12823# If no C compiler was specified, use CC.
12824LTCC=${LTCC-"$CC"}
12825
12826# If no C compiler flags were specified, use CFLAGS.
12827LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12828
12829# Allow CC to be a program name with arguments.
12830compiler=$CC
12831
12832
12833 # save warnings/boilerplate of simple test code
12834 ac_outfile=conftest.$ac_objext
12835echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12836eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12837_lt_compiler_boilerplate=`cat conftest.err`
12838$RM conftest*
12839
12840 ac_outfile=conftest.$ac_objext
12841echo "$lt_simple_link_test_code" >conftest.$ac_ext
12842eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12843_lt_linker_boilerplate=`cat conftest.err`
12844$RM -r conftest*
12845
12846
12847 # Allow CC to be a program name with arguments.
12848 lt_save_CC=$CC
12849 lt_save_LD=$LD
12850 lt_save_GCC=$GCC
12851 GCC=$GXX
12852 lt_save_with_gnu_ld=$with_gnu_ld
12853 lt_save_path_LD=$lt_cv_path_LD
12854 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12855 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12856 else
12857 $as_unset lt_cv_prog_gnu_ld
12858 fi
12859 if test -n "${lt_cv_path_LDCXX+set}"; then
12860 lt_cv_path_LD=$lt_cv_path_LDCXX
12861 else
12862 $as_unset lt_cv_path_LD
12863 fi
12864 test -z "${LDCXX+set}" || LD=$LDCXX
12865 CC=${CXX-"c++"}
12866 compiler=$CC
12867 compiler_CXX=$CC
12868 for cc_temp in $compiler""; do
12869 case $cc_temp in
12870 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12871 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12872 \-*) ;;
12873 *) break;;
12874 esac
12875done
12876cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12877
12878
12879 if test -n "$compiler"; then
12880 # We don't want -fno-exception when compiling C++ code, so set the
12881 # no_builtin_flag separately
12882 if test "$GXX" = yes; then
12883 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12884 else
12885 lt_prog_compiler_no_builtin_flag_CXX=
12886 fi
12887
12888 if test "$GXX" = yes; then
12889 # Set up default GNU C++ configuration
12890
12891
12892
12893# Check whether --with-gnu-ld was given.
12894if test "${with_gnu_ld+set}" = set; then :
12895 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12896else
12897 with_gnu_ld=no
12898fi
12899
12900ac_prog=ld
12901if test "$GCC" = yes; then
12902 # Check if gcc -print-prog-name=ld gives a path.
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12904$as_echo_n "checking for ld used by $CC... " >&6; }
12905 case $host in
12906 *-*-mingw*)
12907 # gcc leaves a trailing carriage return which upsets mingw
12908 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12909 *)
12910 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12911 esac
12912 case $ac_prog in
12913 # Accept absolute paths.
12914 [\\/]* | ?:[\\/]*)
12915 re_direlt='/[^/][^/]*/\.\./'
12916 # Canonicalize the pathname of ld
12917 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12918 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12919 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12920 done
12921 test -z "$LD" && LD="$ac_prog"
12922 ;;
12923 "")
12924 # If it fails, then pretend we aren't using GCC.
12925 ac_prog=ld
12926 ;;
12927 *)
12928 # If it is relative, then search for the first ld in PATH.
12929 with_gnu_ld=unknown
12930 ;;
12931 esac
12932elif test "$with_gnu_ld" = yes; then
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12934$as_echo_n "checking for GNU ld... " >&6; }
12935else
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12937$as_echo_n "checking for non-GNU ld... " >&6; }
12938fi
22e05272 12939if ${lt_cv_path_LD+:} false; then :
2077db1b
CT
12940 $as_echo_n "(cached) " >&6
12941else
12942 if test -z "$LD"; then
12943 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12944 for ac_dir in $PATH; do
12945 IFS="$lt_save_ifs"
12946 test -z "$ac_dir" && ac_dir=.
12947 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12948 lt_cv_path_LD="$ac_dir/$ac_prog"
12949 # Check to see if the program is GNU ld. I'd rather use --version,
12950 # but apparently some variants of GNU ld only accept -v.
12951 # Break only if it was the GNU/non-GNU ld that we prefer.
12952 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12953 *GNU* | *'with BFD'*)
12954 test "$with_gnu_ld" != no && break
12955 ;;
12956 *)
12957 test "$with_gnu_ld" != yes && break
12958 ;;
12959 esac
12960 fi
12961 done
12962 IFS="$lt_save_ifs"
12963else
12964 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12965fi
12966fi
12967
12968LD="$lt_cv_path_LD"
12969if test -n "$LD"; then
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12971$as_echo "$LD" >&6; }
12972else
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12974$as_echo "no" >&6; }
12975fi
22e05272 12976test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
2077db1b
CT
12977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12978$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 12979if ${lt_cv_prog_gnu_ld+:} false; then :
2077db1b
CT
12980 $as_echo_n "(cached) " >&6
12981else
12982 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12983case `$LD -v 2>&1 </dev/null` in
12984*GNU* | *'with BFD'*)
12985 lt_cv_prog_gnu_ld=yes
12986 ;;
12987*)
12988 lt_cv_prog_gnu_ld=no
12989 ;;
12990esac
12991fi
12992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12993$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12994with_gnu_ld=$lt_cv_prog_gnu_ld
12995
12996
12997
12998
12999
13000
13001
13002 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13003 # archiving commands below assume that GNU ld is being used.
13004 if test "$with_gnu_ld" = yes; then
a699d672
L
13005 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13006 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2077db1b
CT
13007
13008 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13009 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13010
13011 # If archive_cmds runs LD, not CC, wlarc should be empty
13012 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13013 # investigate it a little bit more. (MM)
13014 wlarc='${wl}'
13015
13016 # ancient GNU ld didn't support --whole-archive et. al.
13017 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13018 $GREP 'no-whole-archive' > /dev/null; then
13019 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13020 else
13021 whole_archive_flag_spec_CXX=
13022 fi
13023 else
13024 with_gnu_ld=no
13025 wlarc=
13026
13027 # A generic and very simple default shared library creation
13028 # command for GNU C++ for the case where it uses the native
13029 # linker, instead of GNU ld. If possible, this setting should
13030 # overridden to take advantage of the native linker features on
13031 # the platform it is being used on.
13032 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13033 fi
13034
13035 # Commands to make compiler produce verbose output that lists
13036 # what "hidden" libraries, object files and flags are used when
13037 # linking a shared library.
13038 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13039
13040 else
13041 GXX=no
13042 with_gnu_ld=no
13043 wlarc=
13044 fi
13045
13046 # PORTME: fill in a description of your system's C++ link characteristics
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13048$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13049 ld_shlibs_CXX=yes
13050 case $host_os in
13051 aix3*)
13052 # FIXME: insert proper C++ library support
13053 ld_shlibs_CXX=no
13054 ;;
13055 aix[4-9]*)
13056 if test "$host_cpu" = ia64; then
13057 # On IA64, the linker does run time linking by default, so we don't
13058 # have to do anything special.
13059 aix_use_runtimelinking=no
13060 exp_sym_flag='-Bexport'
13061 no_entry_flag=""
13062 else
13063 aix_use_runtimelinking=no
13064
13065 # Test if we are trying to use run time linking or normal
13066 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13067 # need to do runtime linking.
13068 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13069 for ld_flag in $LDFLAGS; do
13070 case $ld_flag in
13071 *-brtl*)
13072 aix_use_runtimelinking=yes
13073 break
13074 ;;
13075 esac
13076 done
13077 ;;
13078 esac
13079
13080 exp_sym_flag='-bexport'
13081 no_entry_flag='-bnoentry'
13082 fi
13083
13084 # When large executables or shared objects are built, AIX ld can
13085 # have problems creating the table of contents. If linking a library
13086 # or program results in "error TOC overflow" add -mminimal-toc to
13087 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13088 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13089
13090 archive_cmds_CXX=''
13091 hardcode_direct_CXX=yes
13092 hardcode_direct_absolute_CXX=yes
13093 hardcode_libdir_separator_CXX=':'
13094 link_all_deplibs_CXX=yes
13095 file_list_spec_CXX='${wl}-f,'
13096
13097 if test "$GXX" = yes; then
13098 case $host_os in aix4.[012]|aix4.[012].*)
13099 # We only want to do this on AIX 4.2 and lower, the check
13100 # below for broken collect2 doesn't work under 4.3+
13101 collect2name=`${CC} -print-prog-name=collect2`
13102 if test -f "$collect2name" &&
13103 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13104 then
13105 # We have reworked collect2
13106 :
13107 else
13108 # We have old collect2
13109 hardcode_direct_CXX=unsupported
13110 # It fails to find uninstalled libraries when the uninstalled
13111 # path is not listed in the libpath. Setting hardcode_minus_L
13112 # to unsupported forces relinking
13113 hardcode_minus_L_CXX=yes
13114 hardcode_libdir_flag_spec_CXX='-L$libdir'
13115 hardcode_libdir_separator_CXX=
13116 fi
13117 esac
13118 shared_flag='-shared'
13119 if test "$aix_use_runtimelinking" = yes; then
13120 shared_flag="$shared_flag "'${wl}-G'
13121 fi
13122 else
13123 # not using gcc
13124 if test "$host_cpu" = ia64; then
13125 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13126 # chokes on -Wl,-G. The following line is correct:
13127 shared_flag='-G'
13128 else
13129 if test "$aix_use_runtimelinking" = yes; then
13130 shared_flag='${wl}-G'
13131 else
13132 shared_flag='${wl}-bM:SRE'
13133 fi
13134 fi
13135 fi
13136
13137 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13138 # It seems that -bexpall does not export symbols beginning with
13139 # underscore (_), so it is better to generate a list of symbols to
13140 # export.
13141 always_export_symbols_CXX=yes
13142 if test "$aix_use_runtimelinking" = yes; then
13143 # Warning - without using the other runtime loading flags (-brtl),
13144 # -berok will link without error, but may produce a broken library.
13145 allow_undefined_flag_CXX='-berok'
13146 # Determine the default libpath from the value encoded in an empty
13147 # executable.
13148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13149/* end confdefs.h. */
13150
13151int
13152main ()
13153{
13154
13155 ;
13156 return 0;
13157}
13158_ACEOF
13159if ac_fn_cxx_try_link "$LINENO"; then :
13160
13161lt_aix_libpath_sed='
13162 /Import File Strings/,/^$/ {
13163 /^0/ {
13164 s/^0 *\(.*\)$/\1/
13165 p
13166 }
13167 }'
13168aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13169# Check for a 64-bit object if we didn't find anything.
13170if test -z "$aix_libpath"; then
13171 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13172fi
13173fi
13174rm -f core conftest.err conftest.$ac_objext \
13175 conftest$ac_exeext conftest.$ac_ext
13176if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13177
13178 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13179
13180 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"
13181 else
13182 if test "$host_cpu" = ia64; then
13183 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13184 allow_undefined_flag_CXX="-z nodefs"
13185 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"
13186 else
13187 # Determine the default libpath from the value encoded in an
13188 # empty executable.
13189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13190/* end confdefs.h. */
13191
13192int
13193main ()
13194{
13195
13196 ;
13197 return 0;
13198}
13199_ACEOF
13200if ac_fn_cxx_try_link "$LINENO"; then :
13201
13202lt_aix_libpath_sed='
13203 /Import File Strings/,/^$/ {
13204 /^0/ {
13205 s/^0 *\(.*\)$/\1/
13206 p
13207 }
13208 }'
13209aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13210# Check for a 64-bit object if we didn't find anything.
13211if test -z "$aix_libpath"; then
13212 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13213fi
13214fi
13215rm -f core conftest.err conftest.$ac_objext \
13216 conftest$ac_exeext conftest.$ac_ext
13217if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13218
13219 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13220 # Warning - without using the other run time loading flags,
13221 # -berok will link without error, but may produce a broken library.
13222 no_undefined_flag_CXX=' ${wl}-bernotok'
13223 allow_undefined_flag_CXX=' ${wl}-berok'
13224 if test "$with_gnu_ld" = yes; then
13225 # We only use this code for GNU lds that support --whole-archive.
13226 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13227 else
13228 # Exported symbols can be pulled into shared objects from archives
13229 whole_archive_flag_spec_CXX='$convenience'
13230 fi
13231 archive_cmds_need_lc_CXX=yes
13232 # This is similar to how AIX traditionally builds its shared
13233 # libraries.
13234 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'
13235 fi
13236 fi
13237 ;;
13238
13239 beos*)
13240 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13241 allow_undefined_flag_CXX=unsupported
13242 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13243 # support --undefined. This deserves some investigation. FIXME
13244 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13245 else
13246 ld_shlibs_CXX=no
13247 fi
13248 ;;
13249
13250 chorus*)
13251 case $cc_basename in
13252 *)
13253 # FIXME: insert proper C++ library support
13254 ld_shlibs_CXX=no
13255 ;;
13256 esac
13257 ;;
13258
13259 cygwin* | mingw* | pw32* | cegcc*)
13260 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13261 # as there is no search path for DLLs.
13262 hardcode_libdir_flag_spec_CXX='-L$libdir'
13263 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13264 allow_undefined_flag_CXX=unsupported
13265 always_export_symbols_CXX=no
13266 enable_shared_with_static_runtimes_CXX=yes
13267
13268 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13269 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'
13270 # If the export-symbols file already is a .def file (1st line
13271 # is EXPORTS), use it as is; otherwise, prepend...
13272 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13273 cp $export_symbols $output_objdir/$soname.def;
13274 else
13275 echo EXPORTS > $output_objdir/$soname.def;
13276 cat $export_symbols >> $output_objdir/$soname.def;
13277 fi~
13278 $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'
13279 else
13280 ld_shlibs_CXX=no
13281 fi
13282 ;;
13283 darwin* | rhapsody*)
13284
13285
13286 archive_cmds_need_lc_CXX=no
13287 hardcode_direct_CXX=no
13288 hardcode_automatic_CXX=yes
13289 hardcode_shlibpath_var_CXX=unsupported
13290 if test "$lt_cv_ld_force_load" = "yes"; then
13291 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\"`'
13292 else
13293 whole_archive_flag_spec_CXX=''
13294 fi
13295 link_all_deplibs_CXX=yes
13296 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13297 case $cc_basename in
13298 ifort*) _lt_dar_can_shared=yes ;;
13299 *) _lt_dar_can_shared=$GCC ;;
13300 esac
13301 if test "$_lt_dar_can_shared" = "yes"; then
13302 output_verbose_link_cmd=func_echo_all
13303 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}"
13304 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13305 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}"
13306 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}"
13307 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13308 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}"
13309 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}"
13310 fi
13311
13312 else
13313 ld_shlibs_CXX=no
13314 fi
13315
13316 ;;
13317
13318 dgux*)
13319 case $cc_basename in
13320 ec++*)
13321 # FIXME: insert proper C++ library support
13322 ld_shlibs_CXX=no
13323 ;;
13324 ghcx*)
13325 # Green Hills C++ Compiler
13326 # FIXME: insert proper C++ library support
13327 ld_shlibs_CXX=no
13328 ;;
13329 *)
13330 # FIXME: insert proper C++ library support
13331 ld_shlibs_CXX=no
13332 ;;
13333 esac
13334 ;;
13335
13336 freebsd2.*)
13337 # C++ shared libraries reported to be fairly broken before
13338 # switch to ELF
13339 ld_shlibs_CXX=no
13340 ;;
13341
13342 freebsd-elf*)
13343 archive_cmds_need_lc_CXX=no
13344 ;;
13345
13346 freebsd* | dragonfly*)
13347 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13348 # conventions
13349 ld_shlibs_CXX=yes
13350 ;;
13351
13352 gnu*)
13353 ;;
13354
13355 haiku*)
13356 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13357 link_all_deplibs_CXX=yes
13358 ;;
13359
13360 hpux9*)
13361 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13362 hardcode_libdir_separator_CXX=:
13363 export_dynamic_flag_spec_CXX='${wl}-E'
13364 hardcode_direct_CXX=yes
13365 hardcode_minus_L_CXX=yes # Not in the search PATH,
13366 # but as the default
13367 # location of the library.
13368
13369 case $cc_basename in
13370 CC*)
13371 # FIXME: insert proper C++ library support
13372 ld_shlibs_CXX=no
13373 ;;
13374 aCC*)
13375 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'
13376 # Commands to make compiler produce verbose output that lists
13377 # what "hidden" libraries, object files and flags are used when
13378 # linking a shared library.
13379 #
13380 # There doesn't appear to be a way to prevent this compiler from
13381 # explicitly linking system object files so we need to strip them
13382 # from the output so that they don't get included in the library
13383 # dependencies.
13384 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"'
13385 ;;
13386 *)
13387 if test "$GXX" = yes; then
13388 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'
13389 else
13390 # FIXME: insert proper C++ library support
13391 ld_shlibs_CXX=no
13392 fi
13393 ;;
13394 esac
13395 ;;
13396
13397 hpux10*|hpux11*)
13398 if test $with_gnu_ld = no; then
13399 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13400 hardcode_libdir_separator_CXX=:
13401
13402 case $host_cpu in
13403 hppa*64*|ia64*)
13404 ;;
13405 *)
13406 export_dynamic_flag_spec_CXX='${wl}-E'
13407 ;;
13408 esac
13409 fi
13410 case $host_cpu in
13411 hppa*64*|ia64*)
13412 hardcode_direct_CXX=no
13413 hardcode_shlibpath_var_CXX=no
13414 ;;
13415 *)
13416 hardcode_direct_CXX=yes
13417 hardcode_direct_absolute_CXX=yes
13418 hardcode_minus_L_CXX=yes # Not in the search PATH,
13419 # but as the default
13420 # location of the library.
13421 ;;
13422 esac
13423
13424 case $cc_basename in
13425 CC*)
13426 # FIXME: insert proper C++ library support
13427 ld_shlibs_CXX=no
13428 ;;
13429 aCC*)
13430 case $host_cpu in
13431 hppa*64*)
4e4ba647 13432 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2077db1b
CT
13433 ;;
13434 ia64*)
13435 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13436 ;;
13437 *)
13438 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13439 ;;
13440 esac
13441 # Commands to make compiler produce verbose output that lists
13442 # what "hidden" libraries, object files and flags are used when
13443 # linking a shared library.
13444 #
13445 # There doesn't appear to be a way to prevent this compiler from
13446 # explicitly linking system object files so we need to strip them
13447 # from the output so that they don't get included in the library
13448 # dependencies.
13449 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"'
13450 ;;
13451 *)
13452 if test "$GXX" = yes; then
13453 if test $with_gnu_ld = no; then
13454 case $host_cpu in
13455 hppa*64*)
4e4ba647 13456 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2077db1b
CT
13457 ;;
13458 ia64*)
13459 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13460 ;;
13461 *)
13462 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'
13463 ;;
13464 esac
13465 fi
13466 else
13467 # FIXME: insert proper C++ library support
13468 ld_shlibs_CXX=no
13469 fi
13470 ;;
13471 esac
13472 ;;
13473
13474 interix[3-9]*)
13475 hardcode_direct_CXX=no
13476 hardcode_shlibpath_var_CXX=no
13477 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13478 export_dynamic_flag_spec_CXX='${wl}-E'
13479 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13480 # Instead, shared libraries are loaded at an image base (0x10000000 by
13481 # default) and relocated if they conflict, which is a slow very memory
13482 # consuming and fragmenting process. To avoid this, we pick a random,
13483 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13484 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13485 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'
13486 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'
13487 ;;
13488 irix5* | irix6*)
13489 case $cc_basename in
13490 CC*)
13491 # SGI C++
13492 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'
13493
13494 # Archives containing C++ object files must be created using
13495 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13496 # necessary to make sure instantiated templates are included
13497 # in the archive.
13498 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13499 ;;
13500 *)
13501 if test "$GXX" = yes; then
13502 if test "$with_gnu_ld" = no; then
13503 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'
13504 else
13505 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'
13506 fi
13507 fi
13508 link_all_deplibs_CXX=yes
13509 ;;
13510 esac
13511 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13512 hardcode_libdir_separator_CXX=:
13513 inherit_rpath_CXX=yes
13514 ;;
13515
13516 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13517 case $cc_basename in
13518 KCC*)
13519 # Kuck and Associates, Inc. (KAI) C++ Compiler
13520
13521 # KCC will only create a shared library if the output file
13522 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13523 # to its proper name (with version) after linking.
13524 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'
13525 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'
13526 # Commands to make compiler produce verbose output that lists
13527 # what "hidden" libraries, object files and flags are used when
13528 # linking a shared library.
13529 #
13530 # There doesn't appear to be a way to prevent this compiler from
13531 # explicitly linking system object files so we need to strip them
13532 # from the output so that they don't get included in the library
13533 # dependencies.
13534 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"'
13535
13536 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13537 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13538
13539 # Archives containing C++ object files must be created using
13540 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13541 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13542 ;;
13543 icpc* | ecpc* )
13544 # Intel C++
13545 with_gnu_ld=yes
13546 # version 8.0 and above of icpc choke on multiply defined symbols
13547 # if we add $predep_objects and $postdep_objects, however 7.1 and
13548 # earlier do not add the objects themselves.
13549 case `$CC -V 2>&1` in
13550 *"Version 7."*)
13551 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13552 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'
13553 ;;
13554 *) # Version 8.0 or newer
13555 tmp_idyn=
13556 case $host_cpu in
13557 ia64*) tmp_idyn=' -i_dynamic';;
13558 esac
13559 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13560 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'
13561 ;;
13562 esac
13563 archive_cmds_need_lc_CXX=no
13564 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13565 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13566 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13567 ;;
13568 pgCC* | pgcpp*)
13569 # Portland Group C++ compiler
13570 case `$CC -V` in
13571 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13572 prelink_cmds_CXX='tpldir=Template.dir~
13573 rm -rf $tpldir~
13574 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
22e05272 13575 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
2077db1b
CT
13576 old_archive_cmds_CXX='tpldir=Template.dir~
13577 rm -rf $tpldir~
13578 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
22e05272 13579 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
2077db1b
CT
13580 $RANLIB $oldlib'
13581 archive_cmds_CXX='tpldir=Template.dir~
13582 rm -rf $tpldir~
13583 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22e05272 13584 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
2077db1b
CT
13585 archive_expsym_cmds_CXX='tpldir=Template.dir~
13586 rm -rf $tpldir~
13587 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22e05272 13588 $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'
2077db1b
CT
13589 ;;
13590 *) # Version 6 and above use weak symbols
13591 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13592 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'
13593 ;;
13594 esac
13595
13596 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13597 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13598 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'
13599 ;;
13600 cxx*)
13601 # Compaq C++
13602 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13603 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'
13604
13605 runpath_var=LD_RUN_PATH
13606 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13607 hardcode_libdir_separator_CXX=:
13608
13609 # Commands to make compiler produce verbose output that lists
13610 # what "hidden" libraries, object files and flags are used when
13611 # linking a shared library.
13612 #
13613 # There doesn't appear to be a way to prevent this compiler from
13614 # explicitly linking system object files so we need to strip them
13615 # from the output so that they don't get included in the library
13616 # dependencies.
13617 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'
13618 ;;
13619 xl* | mpixl* | bgxl*)
13620 # IBM XL 8.0 on PPC, with GNU ld
13621 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13622 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13623 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13624 if test "x$supports_anon_versioning" = xyes; then
13625 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13626 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13627 echo "local: *; };" >> $output_objdir/$libname.ver~
13628 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13629 fi
13630 ;;
13631 *)
13632 case `$CC -V 2>&1 | sed 5q` in
13633 *Sun\ C*)
13634 # Sun C++ 5.9
13635 no_undefined_flag_CXX=' -zdefs'
13636 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13637 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'
13638 hardcode_libdir_flag_spec_CXX='-R$libdir'
13639 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'
13640 compiler_needs_object_CXX=yes
13641
13642 # Not sure whether something based on
13643 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13644 # would be better.
13645 output_verbose_link_cmd='func_echo_all'
13646
13647 # Archives containing C++ object files must be created using
13648 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13649 # necessary to make sure instantiated templates are included
13650 # in the archive.
13651 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13652 ;;
13653 esac
13654 ;;
13655 esac
13656 ;;
13657
13658 lynxos*)
13659 # FIXME: insert proper C++ library support
13660 ld_shlibs_CXX=no
13661 ;;
13662
13663 m88k*)
13664 # FIXME: insert proper C++ library support
13665 ld_shlibs_CXX=no
13666 ;;
13667
13668 mvs*)
13669 case $cc_basename in
13670 cxx*)
13671 # FIXME: insert proper C++ library support
13672 ld_shlibs_CXX=no
13673 ;;
13674 *)
13675 # FIXME: insert proper C++ library support
13676 ld_shlibs_CXX=no
13677 ;;
13678 esac
13679 ;;
13680
13681 netbsd*)
13682 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13683 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13684 wlarc=
13685 hardcode_libdir_flag_spec_CXX='-R$libdir'
13686 hardcode_direct_CXX=yes
13687 hardcode_shlibpath_var_CXX=no
13688 fi
13689 # Workaround some broken pre-1.5 toolchains
13690 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13691 ;;
13692
13693 *nto* | *qnx*)
13694 ld_shlibs_CXX=yes
13695 ;;
13696
13697 openbsd2*)
13698 # C++ shared libraries are fairly broken
13699 ld_shlibs_CXX=no
13700 ;;
13701
13702 openbsd*)
13703 if test -f /usr/libexec/ld.so; then
13704 hardcode_direct_CXX=yes
13705 hardcode_shlibpath_var_CXX=no
13706 hardcode_direct_absolute_CXX=yes
13707 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13708 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13709 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13710 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13711 export_dynamic_flag_spec_CXX='${wl}-E'
13712 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13713 fi
13714 output_verbose_link_cmd=func_echo_all
13715 else
13716 ld_shlibs_CXX=no
13717 fi
13718 ;;
13719
13720 osf3* | osf4* | osf5*)
13721 case $cc_basename in
13722 KCC*)
13723 # Kuck and Associates, Inc. (KAI) C++ Compiler
13724
13725 # KCC will only create a shared library if the output file
13726 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13727 # to its proper name (with version) after linking.
13728 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'
13729
13730 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13731 hardcode_libdir_separator_CXX=:
13732
13733 # Archives containing C++ object files must be created using
13734 # the KAI C++ compiler.
13735 case $host in
13736 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13737 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13738 esac
13739 ;;
13740 RCC*)
13741 # Rational C++ 2.4.1
13742 # FIXME: insert proper C++ library support
13743 ld_shlibs_CXX=no
13744 ;;
13745 cxx*)
13746 case $host in
13747 osf3*)
13748 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13749 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'
13750 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13751 ;;
13752 *)
13753 allow_undefined_flag_CXX=' -expect_unresolved \*'
13754 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'
13755 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13756 echo "-hidden">> $lib.exp~
13757 $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~
13758 $RM $lib.exp'
13759 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13760 ;;
13761 esac
13762
13763 hardcode_libdir_separator_CXX=:
13764
13765 # Commands to make compiler produce verbose output that lists
13766 # what "hidden" libraries, object files and flags are used when
13767 # linking a shared library.
13768 #
13769 # There doesn't appear to be a way to prevent this compiler from
13770 # explicitly linking system object files so we need to strip them
13771 # from the output so that they don't get included in the library
13772 # dependencies.
13773 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"'
13774 ;;
13775 *)
13776 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13777 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13778 case $host in
13779 osf3*)
13780 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'
13781 ;;
13782 *)
13783 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'
13784 ;;
13785 esac
13786
13787 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13788 hardcode_libdir_separator_CXX=:
13789
13790 # Commands to make compiler produce verbose output that lists
13791 # what "hidden" libraries, object files and flags are used when
13792 # linking a shared library.
13793 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13794
13795 else
13796 # FIXME: insert proper C++ library support
13797 ld_shlibs_CXX=no
13798 fi
13799 ;;
13800 esac
13801 ;;
13802
13803 psos*)
13804 # FIXME: insert proper C++ library support
13805 ld_shlibs_CXX=no
13806 ;;
13807
13808 sunos4*)
13809 case $cc_basename in
13810 CC*)
13811 # Sun C++ 4.x
13812 # FIXME: insert proper C++ library support
13813 ld_shlibs_CXX=no
13814 ;;
13815 lcc*)
13816 # Lucid
13817 # FIXME: insert proper C++ library support
13818 ld_shlibs_CXX=no
13819 ;;
13820 *)
13821 # FIXME: insert proper C++ library support
13822 ld_shlibs_CXX=no
13823 ;;
13824 esac
13825 ;;
13826
13827 solaris*)
13828 case $cc_basename in
13829 CC*)
13830 # Sun C++ 4.2, 5.x and Centerline C++
13831 archive_cmds_need_lc_CXX=yes
13832 no_undefined_flag_CXX=' -zdefs'
13833 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13834 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13835 $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'
13836
13837 hardcode_libdir_flag_spec_CXX='-R$libdir'
13838 hardcode_shlibpath_var_CXX=no
13839 case $host_os in
13840 solaris2.[0-5] | solaris2.[0-5].*) ;;
13841 *)
13842 # The compiler driver will combine and reorder linker options,
13843 # but understands `-z linker_flag'.
13844 # Supported since Solaris 2.6 (maybe 2.5.1?)
13845 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13846 ;;
13847 esac
13848 link_all_deplibs_CXX=yes
13849
13850 output_verbose_link_cmd='func_echo_all'
13851
13852 # Archives containing C++ object files must be created using
13853 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13854 # necessary to make sure instantiated templates are included
13855 # in the archive.
13856 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13857 ;;
13858 gcx*)
13859 # Green Hills C++ Compiler
13860 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13861
13862 # The C++ compiler must be used to create the archive.
13863 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13864 ;;
13865 *)
13866 # GNU C++ compiler with Solaris linker
13867 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13868 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13869 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13870 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13871 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13872 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13873
13874 # Commands to make compiler produce verbose output that lists
13875 # what "hidden" libraries, object files and flags are used when
13876 # linking a shared library.
13877 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13878 else
13879 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13880 # platform.
13881 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13882 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13883 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13884
13885 # Commands to make compiler produce verbose output that lists
13886 # what "hidden" libraries, object files and flags are used when
13887 # linking a shared library.
13888 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13889 fi
13890
13891 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13892 case $host_os in
13893 solaris2.[0-5] | solaris2.[0-5].*) ;;
13894 *)
13895 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13896 ;;
13897 esac
13898 fi
13899 ;;
13900 esac
13901 ;;
13902
13903 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13904 no_undefined_flag_CXX='${wl}-z,text'
13905 archive_cmds_need_lc_CXX=no
13906 hardcode_shlibpath_var_CXX=no
13907 runpath_var='LD_RUN_PATH'
13908
13909 case $cc_basename in
13910 CC*)
13911 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13912 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13913 ;;
13914 *)
13915 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13916 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13917 ;;
13918 esac
13919 ;;
13920
13921 sysv5* | sco3.2v5* | sco5v6*)
13922 # Note: We can NOT use -z defs as we might desire, because we do not
13923 # link with -lc, and that would cause any symbols used from libc to
13924 # always be unresolved, which means just about no library would
13925 # ever link correctly. If we're not using GNU ld we use -z text
13926 # though, which does catch some bad symbols but isn't as heavy-handed
13927 # as -z defs.
13928 no_undefined_flag_CXX='${wl}-z,text'
13929 allow_undefined_flag_CXX='${wl}-z,nodefs'
13930 archive_cmds_need_lc_CXX=no
13931 hardcode_shlibpath_var_CXX=no
13932 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13933 hardcode_libdir_separator_CXX=':'
13934 link_all_deplibs_CXX=yes
13935 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13936 runpath_var='LD_RUN_PATH'
13937
13938 case $cc_basename in
13939 CC*)
13940 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13941 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13942 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13943 '"$old_archive_cmds_CXX"
13944 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13945 '"$reload_cmds_CXX"
13946 ;;
13947 *)
13948 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13949 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13950 ;;
13951 esac
13952 ;;
13953
13954 tandem*)
13955 case $cc_basename in
13956 NCC*)
13957 # NonStop-UX NCC 3.20
13958 # FIXME: insert proper C++ library support
13959 ld_shlibs_CXX=no
13960 ;;
13961 *)
13962 # FIXME: insert proper C++ library support
13963 ld_shlibs_CXX=no
13964 ;;
13965 esac
13966 ;;
13967
13968 vxworks*)
0ecd0f1c
OH
13969 # For VxWorks ports, we assume the use of a GNU linker with
13970 # standard elf conventions.
13971 ld_shlibs_CXX=yes
2077db1b
CT
13972 ;;
13973
13974 *)
13975 # FIXME: insert proper C++ library support
13976 ld_shlibs_CXX=no
13977 ;;
13978 esac
13979
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13981$as_echo "$ld_shlibs_CXX" >&6; }
13982 test "$ld_shlibs_CXX" = no && can_build_shared=no
13983
13984 GCC_CXX="$GXX"
13985 LD_CXX="$LD"
13986
13987 ## CAVEAT EMPTOR:
13988 ## There is no encapsulation within the following macros, do not change
13989 ## the running order or otherwise move them around unless you know exactly
13990 ## what you are doing...
13991 # Dependencies to place before and after the object being linked:
13992predep_objects_CXX=
13993postdep_objects_CXX=
13994predeps_CXX=
13995postdeps_CXX=
13996compiler_lib_search_path_CXX=
13997
13998cat > conftest.$ac_ext <<_LT_EOF
13999class Foo
14000{
14001public:
14002 Foo (void) { a = 0; }
14003private:
14004 int a;
14005};
14006_LT_EOF
14007
14008if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14009 (eval $ac_compile) 2>&5
14010 ac_status=$?
14011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14012 test $ac_status = 0; }; then
14013 # Parse the compiler output and extract the necessary
14014 # objects, libraries and library flags.
14015
14016 # Sentinel used to keep track of whether or not we are before
14017 # the conftest object file.
14018 pre_test_object_deps_done=no
14019
14020 for p in `eval "$output_verbose_link_cmd"`; do
14021 case $p in
14022
14023 -L* | -R* | -l*)
14024 # Some compilers place space between "-{L,R}" and the path.
14025 # Remove the space.
14026 if test $p = "-L" ||
14027 test $p = "-R"; then
14028 prev=$p
14029 continue
14030 else
14031 prev=
14032 fi
14033
14034 if test "$pre_test_object_deps_done" = no; then
14035 case $p in
14036 -L* | -R*)
14037 # Internal compiler library paths should come after those
14038 # provided the user. The postdeps already come after the
14039 # user supplied libs so there is no need to process them.
14040 if test -z "$compiler_lib_search_path_CXX"; then
14041 compiler_lib_search_path_CXX="${prev}${p}"
14042 else
14043 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14044 fi
14045 ;;
14046 # The "-l" case would never come before the object being
14047 # linked, so don't bother handling this case.
14048 esac
14049 else
14050 if test -z "$postdeps_CXX"; then
14051 postdeps_CXX="${prev}${p}"
14052 else
14053 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14054 fi
14055 fi
14056 ;;
14057
14058 *.$objext)
14059 # This assumes that the test object file only shows up
14060 # once in the compiler output.
14061 if test "$p" = "conftest.$objext"; then
14062 pre_test_object_deps_done=yes
14063 continue
14064 fi
14065
14066 if test "$pre_test_object_deps_done" = no; then
14067 if test -z "$predep_objects_CXX"; then
14068 predep_objects_CXX="$p"
14069 else
14070 predep_objects_CXX="$predep_objects_CXX $p"
14071 fi
14072 else
14073 if test -z "$postdep_objects_CXX"; then
14074 postdep_objects_CXX="$p"
14075 else
14076 postdep_objects_CXX="$postdep_objects_CXX $p"
14077 fi
14078 fi
14079 ;;
14080
14081 *) ;; # Ignore the rest.
14082
14083 esac
14084 done
14085
14086 # Clean up.
14087 rm -f a.out a.exe
14088else
14089 echo "libtool.m4: error: problem compiling CXX test program"
14090fi
14091
14092$RM -f confest.$objext
14093
14094# PORTME: override above test on systems where it is broken
14095case $host_os in
14096interix[3-9]*)
14097 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14098 # hack all around it, let's just trust "g++" to DTRT.
14099 predep_objects_CXX=
14100 postdep_objects_CXX=
14101 postdeps_CXX=
14102 ;;
14103
14104linux*)
14105 case `$CC -V 2>&1 | sed 5q` in
14106 *Sun\ C*)
14107 # Sun C++ 5.9
14108
14109 # The more standards-conforming stlport4 library is
14110 # incompatible with the Cstd library. Avoid specifying
14111 # it if it's in CXXFLAGS. Ignore libCrun as
14112 # -library=stlport4 depends on it.
14113 case " $CXX $CXXFLAGS " in
14114 *" -library=stlport4 "*)
14115 solaris_use_stlport4=yes
14116 ;;
14117 esac
14118
14119 if test "$solaris_use_stlport4" != yes; then
14120 postdeps_CXX='-library=Cstd -library=Crun'
14121 fi
14122 ;;
14123 esac
14124 ;;
14125
14126solaris*)
14127 case $cc_basename in
14128 CC*)
14129 # The more standards-conforming stlport4 library is
14130 # incompatible with the Cstd library. Avoid specifying
14131 # it if it's in CXXFLAGS. Ignore libCrun as
14132 # -library=stlport4 depends on it.
14133 case " $CXX $CXXFLAGS " in
14134 *" -library=stlport4 "*)
14135 solaris_use_stlport4=yes
14136 ;;
14137 esac
14138
14139 # Adding this requires a known-good setup of shared libraries for
14140 # Sun compiler versions before 5.6, else PIC objects from an old
14141 # archive will be linked into the output, leading to subtle bugs.
14142 if test "$solaris_use_stlport4" != yes; then
14143 postdeps_CXX='-library=Cstd -library=Crun'
14144 fi
14145 ;;
14146 esac
14147 ;;
14148esac
14149
14150
14151case " $postdeps_CXX " in
14152*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14153esac
14154 compiler_lib_search_dirs_CXX=
14155if test -n "${compiler_lib_search_path_CXX}"; then
14156 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14157fi
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189 lt_prog_compiler_wl_CXX=
14190lt_prog_compiler_pic_CXX=
14191lt_prog_compiler_static_CXX=
14192
14193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14194$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14195
14196 # C++ specific cases for pic, static, wl, etc.
14197 if test "$GXX" = yes; then
14198 lt_prog_compiler_wl_CXX='-Wl,'
14199 lt_prog_compiler_static_CXX='-static'
14200
14201 case $host_os in
14202 aix*)
14203 # All AIX code is PIC.
14204 if test "$host_cpu" = ia64; then
14205 # AIX 5 now supports IA64 processor
14206 lt_prog_compiler_static_CXX='-Bstatic'
14207 fi
14208 lt_prog_compiler_pic_CXX='-fPIC'
14209 ;;
14210
14211 amigaos*)
14212 case $host_cpu in
14213 powerpc)
14214 # see comment about AmigaOS4 .so support
14215 lt_prog_compiler_pic_CXX='-fPIC'
14216 ;;
14217 m68k)
14218 # FIXME: we need at least 68020 code to build shared libraries, but
14219 # adding the `-m68020' flag to GCC prevents building anything better,
14220 # like `-m68040'.
14221 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14222 ;;
14223 esac
14224 ;;
14225
14226 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14227 # PIC is the default for these OSes.
14228 ;;
14229 mingw* | cygwin* | os2* | pw32* | cegcc*)
14230 # This hack is so that the source file can tell whether it is being
14231 # built for inclusion in a dll (and should export symbols for example).
14232 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14233 # (--disable-auto-import) libraries
14234 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14235 ;;
14236 darwin* | rhapsody*)
14237 # PIC is the default on this platform
14238 # Common symbols not allowed in MH_DYLIB files
14239 lt_prog_compiler_pic_CXX='-fno-common'
14240 ;;
14241 *djgpp*)
14242 # DJGPP does not support shared libraries at all
14243 lt_prog_compiler_pic_CXX=
14244 ;;
14245 haiku*)
14246 # PIC is the default for Haiku.
14247 # The "-static" flag exists, but is broken.
14248 lt_prog_compiler_static_CXX=
14249 ;;
14250 interix[3-9]*)
14251 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14252 # Instead, we relocate shared libraries at runtime.
14253 ;;
14254 sysv4*MP*)
14255 if test -d /usr/nec; then
14256 lt_prog_compiler_pic_CXX=-Kconform_pic
14257 fi
14258 ;;
14259 hpux*)
14260 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14261 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14262 # sets the default TLS model and affects inlining.
14263 case $host_cpu in
14264 hppa*64*)
14265 ;;
14266 *)
14267 lt_prog_compiler_pic_CXX='-fPIC'
14268 ;;
14269 esac
14270 ;;
14271 *qnx* | *nto*)
14272 # QNX uses GNU C++, but need to define -shared option too, otherwise
14273 # it will coredump.
14274 lt_prog_compiler_pic_CXX='-fPIC -shared'
14275 ;;
14276 *)
14277 lt_prog_compiler_pic_CXX='-fPIC'
14278 ;;
14279 esac
14280 else
14281 case $host_os in
14282 aix[4-9]*)
14283 # All AIX code is PIC.
14284 if test "$host_cpu" = ia64; then
14285 # AIX 5 now supports IA64 processor
14286 lt_prog_compiler_static_CXX='-Bstatic'
14287 else
14288 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14289 fi
14290 ;;
14291 chorus*)
14292 case $cc_basename in
14293 cxch68*)
14294 # Green Hills C++ Compiler
14295 # _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"
14296 ;;
14297 esac
14298 ;;
14299 dgux*)
14300 case $cc_basename in
14301 ec++*)
14302 lt_prog_compiler_pic_CXX='-KPIC'
14303 ;;
14304 ghcx*)
14305 # Green Hills C++ Compiler
14306 lt_prog_compiler_pic_CXX='-pic'
14307 ;;
14308 *)
14309 ;;
14310 esac
14311 ;;
14312 freebsd* | dragonfly*)
14313 # FreeBSD uses GNU C++
14314 ;;
14315 hpux9* | hpux10* | hpux11*)
14316 case $cc_basename in
14317 CC*)
14318 lt_prog_compiler_wl_CXX='-Wl,'
14319 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14320 if test "$host_cpu" != ia64; then
14321 lt_prog_compiler_pic_CXX='+Z'
14322 fi
14323 ;;
14324 aCC*)
14325 lt_prog_compiler_wl_CXX='-Wl,'
14326 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14327 case $host_cpu in
14328 hppa*64*|ia64*)
14329 # +Z the default
14330 ;;
14331 *)
14332 lt_prog_compiler_pic_CXX='+Z'
14333 ;;
14334 esac
14335 ;;
14336 *)
14337 ;;
14338 esac
14339 ;;
14340 interix*)
14341 # This is c89, which is MS Visual C++ (no shared libs)
14342 # Anyone wants to do a port?
14343 ;;
14344 irix5* | irix6* | nonstopux*)
14345 case $cc_basename in
14346 CC*)
14347 lt_prog_compiler_wl_CXX='-Wl,'
14348 lt_prog_compiler_static_CXX='-non_shared'
14349 # CC pic flag -KPIC is the default.
14350 ;;
14351 *)
14352 ;;
14353 esac
14354 ;;
14355 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14356 case $cc_basename in
14357 KCC*)
14358 # KAI C++ Compiler
14359 lt_prog_compiler_wl_CXX='--backend -Wl,'
14360 lt_prog_compiler_pic_CXX='-fPIC'
14361 ;;
14362 ecpc* )
14363 # old Intel C++ for x86_64 which still supported -KPIC.
14364 lt_prog_compiler_wl_CXX='-Wl,'
14365 lt_prog_compiler_pic_CXX='-KPIC'
14366 lt_prog_compiler_static_CXX='-static'
14367 ;;
14368 icpc* )
14369 # Intel C++, used to be incompatible with GCC.
14370 # ICC 10 doesn't accept -KPIC any more.
14371 lt_prog_compiler_wl_CXX='-Wl,'
14372 lt_prog_compiler_pic_CXX='-fPIC'
14373 lt_prog_compiler_static_CXX='-static'
14374 ;;
14375 pgCC* | pgcpp*)
14376 # Portland Group C++ compiler
14377 lt_prog_compiler_wl_CXX='-Wl,'
14378 lt_prog_compiler_pic_CXX='-fpic'
14379 lt_prog_compiler_static_CXX='-Bstatic'
14380 ;;
14381 cxx*)
14382 # Compaq C++
14383 # Make sure the PIC flag is empty. It appears that all Alpha
14384 # Linux and Compaq Tru64 Unix objects are PIC.
14385 lt_prog_compiler_pic_CXX=
14386 lt_prog_compiler_static_CXX='-non_shared'
14387 ;;
14388 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14389 # IBM XL 8.0, 9.0 on PPC and BlueGene
14390 lt_prog_compiler_wl_CXX='-Wl,'
14391 lt_prog_compiler_pic_CXX='-qpic'
14392 lt_prog_compiler_static_CXX='-qstaticlink'
14393 ;;
14394 *)
14395 case `$CC -V 2>&1 | sed 5q` in
14396 *Sun\ C*)
14397 # Sun C++ 5.9
14398 lt_prog_compiler_pic_CXX='-KPIC'
14399 lt_prog_compiler_static_CXX='-Bstatic'
14400 lt_prog_compiler_wl_CXX='-Qoption ld '
14401 ;;
14402 esac
14403 ;;
14404 esac
14405 ;;
14406 lynxos*)
14407 ;;
14408 m88k*)
14409 ;;
14410 mvs*)
14411 case $cc_basename in
14412 cxx*)
14413 lt_prog_compiler_pic_CXX='-W c,exportall'
14414 ;;
14415 *)
14416 ;;
14417 esac
14418 ;;
14419 netbsd*)
14420 ;;
14421 *qnx* | *nto*)
14422 # QNX uses GNU C++, but need to define -shared option too, otherwise
14423 # it will coredump.
14424 lt_prog_compiler_pic_CXX='-fPIC -shared'
14425 ;;
14426 osf3* | osf4* | osf5*)
14427 case $cc_basename in
14428 KCC*)
14429 lt_prog_compiler_wl_CXX='--backend -Wl,'
14430 ;;
14431 RCC*)
14432 # Rational C++ 2.4.1
14433 lt_prog_compiler_pic_CXX='-pic'
14434 ;;
14435 cxx*)
14436 # Digital/Compaq C++
14437 lt_prog_compiler_wl_CXX='-Wl,'
14438 # Make sure the PIC flag is empty. It appears that all Alpha
14439 # Linux and Compaq Tru64 Unix objects are PIC.
14440 lt_prog_compiler_pic_CXX=
14441 lt_prog_compiler_static_CXX='-non_shared'
14442 ;;
14443 *)
14444 ;;
14445 esac
14446 ;;
14447 psos*)
14448 ;;
14449 solaris*)
14450 case $cc_basename in
14451 CC*)
14452 # Sun C++ 4.2, 5.x and Centerline C++
14453 lt_prog_compiler_pic_CXX='-KPIC'
14454 lt_prog_compiler_static_CXX='-Bstatic'
14455 lt_prog_compiler_wl_CXX='-Qoption ld '
14456 ;;
14457 gcx*)
14458 # Green Hills C++ Compiler
14459 lt_prog_compiler_pic_CXX='-PIC'
14460 ;;
14461 *)
14462 ;;
14463 esac
14464 ;;
14465 sunos4*)
14466 case $cc_basename in
14467 CC*)
14468 # Sun C++ 4.x
14469 lt_prog_compiler_pic_CXX='-pic'
14470 lt_prog_compiler_static_CXX='-Bstatic'
14471 ;;
14472 lcc*)
14473 # Lucid
14474 lt_prog_compiler_pic_CXX='-pic'
14475 ;;
14476 *)
14477 ;;
14478 esac
14479 ;;
14480 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14481 case $cc_basename in
14482 CC*)
14483 lt_prog_compiler_wl_CXX='-Wl,'
14484 lt_prog_compiler_pic_CXX='-KPIC'
14485 lt_prog_compiler_static_CXX='-Bstatic'
14486 ;;
14487 esac
14488 ;;
14489 tandem*)
14490 case $cc_basename in
14491 NCC*)
14492 # NonStop-UX NCC 3.20
14493 lt_prog_compiler_pic_CXX='-KPIC'
14494 ;;
14495 *)
14496 ;;
14497 esac
14498 ;;
14499 vxworks*)
14500 ;;
14501 *)
14502 lt_prog_compiler_can_build_shared_CXX=no
14503 ;;
14504 esac
14505 fi
14506
14507case $host_os in
14508 # For platforms which do not support PIC, -DPIC is meaningless:
14509 *djgpp*)
14510 lt_prog_compiler_pic_CXX=
14511 ;;
14512 *)
14513 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14514 ;;
14515esac
14516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14517$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14518
14519
14520
14521#
14522# Check to make sure the PIC flag actually works.
14523#
14524if test -n "$lt_prog_compiler_pic_CXX"; then
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14526$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
22e05272 14527if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
2077db1b
CT
14528 $as_echo_n "(cached) " >&6
14529else
14530 lt_cv_prog_compiler_pic_works_CXX=no
14531 ac_outfile=conftest.$ac_objext
14532 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14533 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14534 # Insert the option either (1) after the last *FLAGS variable, or
14535 # (2) before a word containing "conftest.", or (3) at the end.
14536 # Note that $ac_compile itself does not contain backslashes and begins
14537 # with a dollar sign (not a hyphen), so the echo should work correctly.
14538 # The option is referenced via a variable to avoid confusing sed.
14539 lt_compile=`echo "$ac_compile" | $SED \
14540 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14541 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14542 -e 's:$: $lt_compiler_flag:'`
14543 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14544 (eval "$lt_compile" 2>conftest.err)
14545 ac_status=$?
14546 cat conftest.err >&5
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 if (exit $ac_status) && test -s "$ac_outfile"; then
14549 # The compiler can only warn and ignore the option if not recognized
14550 # So say no if there are warnings other than the usual output.
14551 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14552 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14553 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14554 lt_cv_prog_compiler_pic_works_CXX=yes
14555 fi
14556 fi
14557 $RM conftest*
14558
14559fi
14560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14561$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14562
14563if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14564 case $lt_prog_compiler_pic_CXX in
14565 "" | " "*) ;;
14566 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14567 esac
14568else
14569 lt_prog_compiler_pic_CXX=
14570 lt_prog_compiler_can_build_shared_CXX=no
14571fi
14572
14573fi
14574
14575
14576
14577#
14578# Check to make sure the static flag actually works.
14579#
14580wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14582$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 14583if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
2077db1b
CT
14584 $as_echo_n "(cached) " >&6
14585else
14586 lt_cv_prog_compiler_static_works_CXX=no
14587 save_LDFLAGS="$LDFLAGS"
14588 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14589 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14590 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14591 # The linker can only warn and ignore the option if not recognized
14592 # So say no if there are warnings
14593 if test -s conftest.err; then
14594 # Append any errors to the config.log.
14595 cat conftest.err 1>&5
14596 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14597 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14598 if diff conftest.exp conftest.er2 >/dev/null; then
14599 lt_cv_prog_compiler_static_works_CXX=yes
14600 fi
14601 else
14602 lt_cv_prog_compiler_static_works_CXX=yes
14603 fi
14604 fi
14605 $RM -r conftest*
14606 LDFLAGS="$save_LDFLAGS"
14607
14608fi
14609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14610$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14611
14612if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14613 :
14614else
14615 lt_prog_compiler_static_CXX=
14616fi
14617
14618
14619
14620
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14622$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 14623if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
2077db1b
CT
14624 $as_echo_n "(cached) " >&6
14625else
14626 lt_cv_prog_compiler_c_o_CXX=no
14627 $RM -r conftest 2>/dev/null
14628 mkdir conftest
14629 cd conftest
14630 mkdir out
14631 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14632
14633 lt_compiler_flag="-o out/conftest2.$ac_objext"
14634 # Insert the option either (1) after the last *FLAGS variable, or
14635 # (2) before a word containing "conftest.", or (3) at the end.
14636 # Note that $ac_compile itself does not contain backslashes and begins
14637 # with a dollar sign (not a hyphen), so the echo should work correctly.
14638 lt_compile=`echo "$ac_compile" | $SED \
14639 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14640 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14641 -e 's:$: $lt_compiler_flag:'`
14642 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14643 (eval "$lt_compile" 2>out/conftest.err)
14644 ac_status=$?
14645 cat out/conftest.err >&5
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14648 then
14649 # The compiler can only warn and ignore the option if not recognized
14650 # So say no if there are warnings
14651 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14652 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14653 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14654 lt_cv_prog_compiler_c_o_CXX=yes
14655 fi
14656 fi
14657 chmod u+w . 2>&5
14658 $RM conftest*
14659 # SGI C++ compiler will create directory out/ii_files/ for
14660 # template instantiation
14661 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14662 $RM out/* && rmdir out
14663 cd ..
14664 $RM -r conftest
14665 $RM conftest*
14666
14667fi
14668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14669$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14670
14671
14672
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14674$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 14675if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
2077db1b
CT
14676 $as_echo_n "(cached) " >&6
14677else
14678 lt_cv_prog_compiler_c_o_CXX=no
14679 $RM -r conftest 2>/dev/null
14680 mkdir conftest
14681 cd conftest
14682 mkdir out
14683 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14684
14685 lt_compiler_flag="-o out/conftest2.$ac_objext"
14686 # Insert the option either (1) after the last *FLAGS variable, or
14687 # (2) before a word containing "conftest.", or (3) at the end.
14688 # Note that $ac_compile itself does not contain backslashes and begins
14689 # with a dollar sign (not a hyphen), so the echo should work correctly.
14690 lt_compile=`echo "$ac_compile" | $SED \
14691 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14692 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14693 -e 's:$: $lt_compiler_flag:'`
14694 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14695 (eval "$lt_compile" 2>out/conftest.err)
14696 ac_status=$?
14697 cat out/conftest.err >&5
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14700 then
14701 # The compiler can only warn and ignore the option if not recognized
14702 # So say no if there are warnings
14703 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14704 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14705 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14706 lt_cv_prog_compiler_c_o_CXX=yes
14707 fi
14708 fi
14709 chmod u+w . 2>&5
14710 $RM conftest*
14711 # SGI C++ compiler will create directory out/ii_files/ for
14712 # template instantiation
14713 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14714 $RM out/* && rmdir out
14715 cd ..
14716 $RM -r conftest
14717 $RM conftest*
14718
14719fi
14720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14721$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14722
14723
14724
14725
14726hard_links="nottested"
14727if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14728 # do not overwrite the value of need_locks provided by the user
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14730$as_echo_n "checking if we can lock with hard links... " >&6; }
14731 hard_links=yes
14732 $RM conftest*
14733 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14734 touch conftest.a
14735 ln conftest.a conftest.b 2>&5 || hard_links=no
14736 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14738$as_echo "$hard_links" >&6; }
14739 if test "$hard_links" = no; then
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14741$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14742 need_locks=warn
14743 fi
14744else
14745 need_locks=no
14746fi
14747
14748
14749
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14751$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14752
14753 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14754 case $host_os in
14755 aix[4-9]*)
14756 # If we're using GNU nm, then we don't want the "-C" option.
14757 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14758 # Also, AIX nm treats weak defined symbols like other global defined
14759 # symbols, whereas GNU nm marks them as "W".
14760 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14761 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'
14762 else
701fa326 14763 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'
2077db1b
CT
14764 fi
14765 ;;
14766 pw32*)
14767 export_symbols_cmds_CXX="$ltdll_cmds"
14768 ;;
14769 cygwin* | mingw* | cegcc*)
14770 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'
14771 ;;
14772 *)
14773 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14774 ;;
14775 esac
14776 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14777
14778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14779$as_echo "$ld_shlibs_CXX" >&6; }
14780test "$ld_shlibs_CXX" = no && can_build_shared=no
14781
14782with_gnu_ld_CXX=$with_gnu_ld
14783
14784
14785
14786
14787
14788
14789#
14790# Do we need to explicitly link libc?
14791#
14792case "x$archive_cmds_need_lc_CXX" in
14793x|xyes)
14794 # Assume -lc should be added
14795 archive_cmds_need_lc_CXX=yes
14796
14797 if test "$enable_shared" = yes && test "$GCC" = yes; then
14798 case $archive_cmds_CXX in
14799 *'~'*)
14800 # FIXME: we may have to deal with multi-command sequences.
14801 ;;
14802 '$CC '*)
14803 # Test whether the compiler implicitly links with -lc since on some
14804 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14805 # to ld, don't add -lc before -lgcc.
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14807$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 14808if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
2077db1b
CT
14809 $as_echo_n "(cached) " >&6
14810else
14811 $RM conftest*
14812 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14813
14814 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14815 (eval $ac_compile) 2>&5
14816 ac_status=$?
14817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14818 test $ac_status = 0; } 2>conftest.err; then
14819 soname=conftest
14820 lib=conftest
14821 libobjs=conftest.$ac_objext
14822 deplibs=
14823 wl=$lt_prog_compiler_wl_CXX
14824 pic_flag=$lt_prog_compiler_pic_CXX
14825 compiler_flags=-v
14826 linker_flags=-v
14827 verstring=
14828 output_objdir=.
14829 libname=conftest
14830 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14831 allow_undefined_flag_CXX=
14832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14833 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14834 ac_status=$?
14835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14836 test $ac_status = 0; }
14837 then
14838 lt_cv_archive_cmds_need_lc_CXX=no
14839 else
14840 lt_cv_archive_cmds_need_lc_CXX=yes
14841 fi
14842 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14843 else
14844 cat conftest.err 1>&5
14845 fi
14846 $RM conftest*
14847
14848fi
14849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14850$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14851 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14852 ;;
14853 esac
14854 fi
14855 ;;
14856esac
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14922$as_echo_n "checking dynamic linker characteristics... " >&6; }
14923
14924library_names_spec=
14925libname_spec='lib$name'
14926soname_spec=
14927shrext_cmds=".so"
14928postinstall_cmds=
14929postuninstall_cmds=
14930finish_cmds=
14931finish_eval=
14932shlibpath_var=
14933shlibpath_overrides_runpath=unknown
14934version_type=none
14935dynamic_linker="$host_os ld.so"
14936sys_lib_dlsearch_path_spec="/lib /usr/lib"
14937need_lib_prefix=unknown
14938hardcode_into_libs=no
14939
14940# when you set need_version to no, make sure it does not cause -set_version
14941# flags to be left without arguments
14942need_version=unknown
14943
14944case $host_os in
14945aix3*)
14946 version_type=linux
14947 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14948 shlibpath_var=LIBPATH
14949
14950 # AIX 3 has no versioning support, so we append a major version to the name.
14951 soname_spec='${libname}${release}${shared_ext}$major'
14952 ;;
14953
14954aix[4-9]*)
14955 version_type=linux
14956 need_lib_prefix=no
14957 need_version=no
14958 hardcode_into_libs=yes
14959 if test "$host_cpu" = ia64; then
14960 # AIX 5 supports IA64
14961 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14962 shlibpath_var=LD_LIBRARY_PATH
14963 else
14964 # With GCC up to 2.95.x, collect2 would create an import file
14965 # for dependence libraries. The import file would start with
14966 # the line `#! .'. This would cause the generated library to
14967 # depend on `.', always an invalid library. This was fixed in
14968 # development snapshots of GCC prior to 3.0.
14969 case $host_os in
14970 aix4 | aix4.[01] | aix4.[01].*)
14971 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14972 echo ' yes '
14973 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14974 :
14975 else
14976 can_build_shared=no
14977 fi
14978 ;;
14979 esac
14980 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14981 # soname into executable. Probably we can add versioning support to
14982 # collect2, so additional links can be useful in future.
14983 if test "$aix_use_runtimelinking" = yes; then
14984 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14985 # instead of lib<name>.a to let people know that these are not
14986 # typical AIX shared libraries.
14987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14988 else
14989 # We preserve .a as extension for shared libraries through AIX4.2
14990 # and later when we are not doing run time linking.
14991 library_names_spec='${libname}${release}.a $libname.a'
14992 soname_spec='${libname}${release}${shared_ext}$major'
14993 fi
14994 shlibpath_var=LIBPATH
14995 fi
14996 ;;
14997
14998amigaos*)
14999 case $host_cpu in
15000 powerpc)
15001 # Since July 2007 AmigaOS4 officially supports .so libraries.
15002 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15004 ;;
15005 m68k)
15006 library_names_spec='$libname.ixlibrary $libname.a'
15007 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15008 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'
15009 ;;
15010 esac
15011 ;;
15012
15013beos*)
15014 library_names_spec='${libname}${shared_ext}'
15015 dynamic_linker="$host_os ld.so"
15016 shlibpath_var=LIBRARY_PATH
15017 ;;
15018
15019bsdi[45]*)
15020 version_type=linux
15021 need_version=no
15022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15023 soname_spec='${libname}${release}${shared_ext}$major'
15024 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15025 shlibpath_var=LD_LIBRARY_PATH
15026 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15027 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15028 # the default ld.so.conf also contains /usr/contrib/lib and
15029 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15030 # libtool to hard-code these into programs
15031 ;;
15032
15033cygwin* | mingw* | pw32* | cegcc*)
15034 version_type=windows
15035 shrext_cmds=".dll"
15036 need_version=no
15037 need_lib_prefix=no
15038
15039 case $GCC,$host_os in
15040 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15041 library_names_spec='$libname.dll.a'
15042 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15043 postinstall_cmds='base_file=`basename \${file}`~
15044 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15045 dldir=$destdir/`dirname \$dlpath`~
15046 test -d \$dldir || mkdir -p \$dldir~
15047 $install_prog $dir/$dlname \$dldir/$dlname~
15048 chmod a+x \$dldir/$dlname~
15049 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15050 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15051 fi'
15052 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15053 dlpath=$dir/\$dldll~
15054 $RM \$dlpath'
15055 shlibpath_overrides_runpath=yes
15056
15057 case $host_os in
15058 cygwin*)
15059 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15060 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15061
15062 ;;
15063 mingw* | cegcc*)
15064 # MinGW DLLs use traditional 'lib' prefix
15065 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15066 ;;
15067 pw32*)
15068 # pw32 DLLs use 'pw' prefix rather than 'lib'
15069 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15070 ;;
15071 esac
15072 ;;
15073
15074 *)
15075 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15076 ;;
15077 esac
15078 dynamic_linker='Win32 ld.exe'
15079 # FIXME: first we should search . and the directory the executable is in
15080 shlibpath_var=PATH
15081 ;;
15082
15083darwin* | rhapsody*)
15084 dynamic_linker="$host_os dyld"
15085 version_type=darwin
15086 need_lib_prefix=no
15087 need_version=no
15088 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15089 soname_spec='${libname}${release}${major}$shared_ext'
15090 shlibpath_overrides_runpath=yes
15091 shlibpath_var=DYLD_LIBRARY_PATH
15092 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15093
15094 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15095 ;;
15096
15097dgux*)
15098 version_type=linux
15099 need_lib_prefix=no
15100 need_version=no
15101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15102 soname_spec='${libname}${release}${shared_ext}$major'
15103 shlibpath_var=LD_LIBRARY_PATH
15104 ;;
15105
15106freebsd* | dragonfly*)
15107 # DragonFly does not have aout. When/if they implement a new
15108 # versioning mechanism, adjust this.
15109 if test -x /usr/bin/objformat; then
15110 objformat=`/usr/bin/objformat`
15111 else
15112 case $host_os in
15113 freebsd[23].*) objformat=aout ;;
15114 *) objformat=elf ;;
15115 esac
15116 fi
15117 version_type=freebsd-$objformat
15118 case $version_type in
15119 freebsd-elf*)
15120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15121 need_version=no
15122 need_lib_prefix=no
15123 ;;
15124 freebsd-*)
15125 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15126 need_version=yes
15127 ;;
15128 esac
15129 shlibpath_var=LD_LIBRARY_PATH
15130 case $host_os in
15131 freebsd2.*)
15132 shlibpath_overrides_runpath=yes
15133 ;;
15134 freebsd3.[01]* | freebsdelf3.[01]*)
15135 shlibpath_overrides_runpath=yes
15136 hardcode_into_libs=yes
15137 ;;
15138 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15139 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15140 shlibpath_overrides_runpath=no
15141 hardcode_into_libs=yes
15142 ;;
15143 *) # from 4.6 on, and DragonFly
15144 shlibpath_overrides_runpath=yes
15145 hardcode_into_libs=yes
15146 ;;
15147 esac
15148 ;;
15149
2077db1b
CT
15150haiku*)
15151 version_type=linux
15152 need_lib_prefix=no
15153 need_version=no
15154 dynamic_linker="$host_os runtime_loader"
15155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15156 soname_spec='${libname}${release}${shared_ext}$major'
15157 shlibpath_var=LIBRARY_PATH
15158 shlibpath_overrides_runpath=yes
15159 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15160 hardcode_into_libs=yes
15161 ;;
15162
15163hpux9* | hpux10* | hpux11*)
15164 # Give a soname corresponding to the major version so that dld.sl refuses to
15165 # link against other versions.
15166 version_type=sunos
15167 need_lib_prefix=no
15168 need_version=no
15169 case $host_cpu in
15170 ia64*)
15171 shrext_cmds='.so'
15172 hardcode_into_libs=yes
15173 dynamic_linker="$host_os dld.so"
15174 shlibpath_var=LD_LIBRARY_PATH
15175 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15177 soname_spec='${libname}${release}${shared_ext}$major'
15178 if test "X$HPUX_IA64_MODE" = X32; then
15179 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15180 else
15181 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15182 fi
15183 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15184 ;;
15185 hppa*64*)
15186 shrext_cmds='.sl'
15187 hardcode_into_libs=yes
15188 dynamic_linker="$host_os dld.sl"
15189 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15190 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15192 soname_spec='${libname}${release}${shared_ext}$major'
15193 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15194 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15195 ;;
15196 *)
15197 shrext_cmds='.sl'
15198 dynamic_linker="$host_os dld.sl"
15199 shlibpath_var=SHLIB_PATH
15200 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15202 soname_spec='${libname}${release}${shared_ext}$major'
15203 ;;
15204 esac
15205 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15206 postinstall_cmds='chmod 555 $lib'
15207 # or fails outright, so override atomically:
15208 install_override_mode=555
15209 ;;
15210
15211interix[3-9]*)
15212 version_type=linux
15213 need_lib_prefix=no
15214 need_version=no
15215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15216 soname_spec='${libname}${release}${shared_ext}$major'
15217 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15218 shlibpath_var=LD_LIBRARY_PATH
15219 shlibpath_overrides_runpath=no
15220 hardcode_into_libs=yes
15221 ;;
15222
15223irix5* | irix6* | nonstopux*)
15224 case $host_os in
15225 nonstopux*) version_type=nonstopux ;;
15226 *)
15227 if test "$lt_cv_prog_gnu_ld" = yes; then
15228 version_type=linux
15229 else
15230 version_type=irix
15231 fi ;;
15232 esac
15233 need_lib_prefix=no
15234 need_version=no
15235 soname_spec='${libname}${release}${shared_ext}$major'
15236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15237 case $host_os in
15238 irix5* | nonstopux*)
15239 libsuff= shlibsuff=
15240 ;;
15241 *)
15242 case $LD in # libtool.m4 will add one of these switches to LD
15243 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15244 libsuff= shlibsuff= libmagic=32-bit;;
15245 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15246 libsuff=32 shlibsuff=N32 libmagic=N32;;
15247 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15248 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15249 *) libsuff= shlibsuff= libmagic=never-match;;
15250 esac
15251 ;;
15252 esac
15253 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15254 shlibpath_overrides_runpath=no
15255 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15256 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15257 hardcode_into_libs=yes
15258 ;;
15259
15260# No shared lib support for Linux oldld, aout, or coff.
15261linux*oldld* | linux*aout* | linux*coff*)
15262 dynamic_linker=no
15263 ;;
15264
15265# This must be Linux ELF.
e9085da5
MR
15266
15267# uclinux* changes (here and below) have been submitted to the libtool
15268# project, but have not yet been accepted: they are GCC-local changes
15269# for the time being. (See
15270# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
b1a3d2b7 15271linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
2077db1b
CT
15272 version_type=linux
15273 need_lib_prefix=no
15274 need_version=no
15275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15276 soname_spec='${libname}${release}${shared_ext}$major'
15277 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15278 shlibpath_var=LD_LIBRARY_PATH
15279 shlibpath_overrides_runpath=no
15280
15281 # Some binutils ld are patched to set DT_RUNPATH
22e05272 15282 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
2077db1b
CT
15283 $as_echo_n "(cached) " >&6
15284else
15285 lt_cv_shlibpath_overrides_runpath=no
15286 save_LDFLAGS=$LDFLAGS
15287 save_libdir=$libdir
15288 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15289 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15291/* end confdefs.h. */
15292
15293int
15294main ()
15295{
15296
15297 ;
15298 return 0;
15299}
15300_ACEOF
15301if ac_fn_cxx_try_link "$LINENO"; then :
15302 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15303 lt_cv_shlibpath_overrides_runpath=yes
15304fi
15305fi
15306rm -f core conftest.err conftest.$ac_objext \
15307 conftest$ac_exeext conftest.$ac_ext
15308 LDFLAGS=$save_LDFLAGS
15309 libdir=$save_libdir
15310
15311fi
15312
15313 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15314
15315 # This implies no fast_install, which is unacceptable.
15316 # Some rework will be needed to allow for fast_install
15317 # before this can be enabled.
15318 hardcode_into_libs=yes
15319
15320 # Append ld.so.conf contents to the search path
15321 if test -f /etc/ld.so.conf; then
15322 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' ' '`
15323 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15324 fi
15325
15326 # We used to test for /lib/ld.so.1 and disable shared libraries on
15327 # powerpc, because MkLinux only supported shared libraries with the
15328 # GNU dynamic linker. Since this was broken with cross compilers,
15329 # most powerpc-linux boxes support dynamic linking these days and
15330 # people can always --disable-shared, the test was removed, and we
15331 # assume the GNU/Linux dynamic linker is in use.
15332 dynamic_linker='GNU/Linux ld.so'
15333 ;;
15334
15335netbsd*)
15336 version_type=sunos
15337 need_lib_prefix=no
15338 need_version=no
15339 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15341 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15342 dynamic_linker='NetBSD (a.out) ld.so'
15343 else
15344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15345 soname_spec='${libname}${release}${shared_ext}$major'
15346 dynamic_linker='NetBSD ld.elf_so'
15347 fi
15348 shlibpath_var=LD_LIBRARY_PATH
15349 shlibpath_overrides_runpath=yes
15350 hardcode_into_libs=yes
15351 ;;
15352
15353newsos6)
15354 version_type=linux
15355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15356 shlibpath_var=LD_LIBRARY_PATH
15357 shlibpath_overrides_runpath=yes
15358 ;;
15359
15360*nto* | *qnx*)
15361 version_type=qnx
15362 need_lib_prefix=no
15363 need_version=no
15364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15365 soname_spec='${libname}${release}${shared_ext}$major'
15366 shlibpath_var=LD_LIBRARY_PATH
15367 shlibpath_overrides_runpath=no
15368 hardcode_into_libs=yes
15369 dynamic_linker='ldqnx.so'
15370 ;;
15371
15372openbsd*)
15373 version_type=sunos
15374 sys_lib_dlsearch_path_spec="/usr/lib"
15375 need_lib_prefix=no
15376 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15377 case $host_os in
15378 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15379 *) need_version=no ;;
15380 esac
15381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15382 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15383 shlibpath_var=LD_LIBRARY_PATH
15384 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15385 case $host_os in
15386 openbsd2.[89] | openbsd2.[89].*)
15387 shlibpath_overrides_runpath=no
15388 ;;
15389 *)
15390 shlibpath_overrides_runpath=yes
15391 ;;
15392 esac
15393 else
15394 shlibpath_overrides_runpath=yes
15395 fi
15396 ;;
15397
15398os2*)
15399 libname_spec='$name'
15400 shrext_cmds=".dll"
15401 need_lib_prefix=no
15402 library_names_spec='$libname${shared_ext} $libname.a'
15403 dynamic_linker='OS/2 ld.exe'
15404 shlibpath_var=LIBPATH
15405 ;;
15406
15407osf3* | osf4* | osf5*)
15408 version_type=osf
15409 need_lib_prefix=no
15410 need_version=no
15411 soname_spec='${libname}${release}${shared_ext}$major'
15412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15413 shlibpath_var=LD_LIBRARY_PATH
15414 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15415 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15416 ;;
15417
15418rdos*)
15419 dynamic_linker=no
15420 ;;
15421
15422solaris*)
15423 version_type=linux
15424 need_lib_prefix=no
15425 need_version=no
15426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15427 soname_spec='${libname}${release}${shared_ext}$major'
15428 shlibpath_var=LD_LIBRARY_PATH
15429 shlibpath_overrides_runpath=yes
15430 hardcode_into_libs=yes
15431 # ldd complains unless libraries are executable
15432 postinstall_cmds='chmod +x $lib'
15433 ;;
15434
15435sunos4*)
15436 version_type=sunos
15437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15438 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15439 shlibpath_var=LD_LIBRARY_PATH
15440 shlibpath_overrides_runpath=yes
15441 if test "$with_gnu_ld" = yes; then
15442 need_lib_prefix=no
15443 fi
15444 need_version=yes
15445 ;;
15446
15447sysv4 | sysv4.3*)
15448 version_type=linux
15449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15450 soname_spec='${libname}${release}${shared_ext}$major'
15451 shlibpath_var=LD_LIBRARY_PATH
15452 case $host_vendor in
15453 sni)
15454 shlibpath_overrides_runpath=no
15455 need_lib_prefix=no
15456 runpath_var=LD_RUN_PATH
15457 ;;
15458 siemens)
15459 need_lib_prefix=no
15460 ;;
15461 motorola)
15462 need_lib_prefix=no
15463 need_version=no
15464 shlibpath_overrides_runpath=no
15465 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15466 ;;
15467 esac
15468 ;;
15469
15470sysv4*MP*)
15471 if test -d /usr/nec ;then
15472 version_type=linux
15473 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15474 soname_spec='$libname${shared_ext}.$major'
15475 shlibpath_var=LD_LIBRARY_PATH
15476 fi
15477 ;;
15478
15479sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15480 version_type=freebsd-elf
15481 need_lib_prefix=no
15482 need_version=no
15483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15484 soname_spec='${libname}${release}${shared_ext}$major'
15485 shlibpath_var=LD_LIBRARY_PATH
15486 shlibpath_overrides_runpath=yes
15487 hardcode_into_libs=yes
15488 if test "$with_gnu_ld" = yes; then
15489 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15490 else
15491 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15492 case $host_os in
15493 sco3.2v5*)
15494 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15495 ;;
15496 esac
15497 fi
15498 sys_lib_dlsearch_path_spec='/usr/lib'
15499 ;;
15500
15501tpf*)
15502 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15503 version_type=linux
15504 need_lib_prefix=no
15505 need_version=no
15506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15507 shlibpath_var=LD_LIBRARY_PATH
15508 shlibpath_overrides_runpath=no
15509 hardcode_into_libs=yes
15510 ;;
15511
15512uts4*)
15513 version_type=linux
15514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15515 soname_spec='${libname}${release}${shared_ext}$major'
15516 shlibpath_var=LD_LIBRARY_PATH
15517 ;;
15518
0ecd0f1c
OH
15519# Shared libraries for VwWorks, >= 7 only at this stage
15520# and (fpic) still incompatible with "large" code models
15521# in a few configurations. Only for RTP mode in any case,
15522# and upon explicit request at configure time.
15523vxworks7*)
15524 dynamic_linker=no
15525 case ${with_multisubdir}-${enable_shared} in
15526 *large*)
15527 ;;
15528 *mrtp*-yes)
15529 version_type=linux
15530 need_lib_prefix=no
15531 need_version=no
15532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15533 soname_spec='${libname}${release}${shared_ext}$major'
15534 dynamic_linker="$host_os module_loader"
15535 ;;
15536 esac
15537 ;;
2077db1b
CT
15538*)
15539 dynamic_linker=no
15540 ;;
15541esac
15542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15543$as_echo "$dynamic_linker" >&6; }
15544test "$dynamic_linker" = no && can_build_shared=no
15545
15546variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15547if test "$GCC" = yes; then
15548 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15549fi
15550
15551if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15552 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15553fi
15554if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15555 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15556fi
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15596$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15597hardcode_action_CXX=
15598if test -n "$hardcode_libdir_flag_spec_CXX" ||
15599 test -n "$runpath_var_CXX" ||
15600 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15601
15602 # We can hardcode non-existent directories.
15603 if test "$hardcode_direct_CXX" != no &&
15604 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15605 # have to relink, otherwise we might link with an installed library
15606 # when we should be linking with a yet-to-be-installed one
15607 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15608 test "$hardcode_minus_L_CXX" != no; then
15609 # Linking always hardcodes the temporary library directory.
15610 hardcode_action_CXX=relink
15611 else
15612 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15613 hardcode_action_CXX=immediate
15614 fi
15615else
15616 # We cannot hardcode anything, or else we can only hardcode existing
15617 # directories.
15618 hardcode_action_CXX=unsupported
15619fi
15620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15621$as_echo "$hardcode_action_CXX" >&6; }
15622
15623if test "$hardcode_action_CXX" = relink ||
15624 test "$inherit_rpath_CXX" = yes; then
15625 # Fast installation is not supported
15626 enable_fast_install=no
15627elif test "$shlibpath_overrides_runpath" = yes ||
15628 test "$enable_shared" = no; then
15629 # Fast installation is not necessary
15630 enable_fast_install=needless
15631fi
15632
15633
15634
15635
15636
15637
15638
15639 fi # test -n "$compiler"
15640
15641 CC=$lt_save_CC
15642 LDCXX=$LD
15643 LD=$lt_save_LD
15644 GCC=$lt_save_GCC
15645 with_gnu_ld=$lt_save_with_gnu_ld
15646 lt_cv_path_LDCXX=$lt_cv_path_LD
15647 lt_cv_path_LD=$lt_save_path_LD
15648 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15649 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15650fi # test "$_lt_caught_CXX_error" != yes
15651
15652ac_ext=c
15653ac_cpp='$CPP $CPPFLAGS'
15654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15656ac_compiler_gnu=$ac_cv_c_compiler_gnu
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670 ac_config_commands="$ac_config_commands libtool"
15671
15672
15673
15674
15675# Only expand once:
15676
15677
a8adc78f
TS
15678
15679
15680
15681case $host in
15682 *-cygwin* | *-mingw*)
15683 # 'host' will be top-level target in the case of a target lib,
15684 # we must compare to with_cross_host to decide if this is a native
15685 # or cross-compiler and select where to install dlls appropriately.
15686 if test -n "$with_cross_host" &&
15687 test x"$with_cross_host" != x"no"; then
15688 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
15689 else
15690 lt_host_flags='-no-undefined -bindir "$(bindir)"';
15691 fi
15692 ;;
15693 *)
15694 lt_host_flags=
15695 ;;
15696esac
15697
15698
15699
2077db1b
CT
15700
15701
15702
15703# For libtool versioning info, format is CURRENT:REVISION:AGE
15704libtool_VERSION=1:0:0
15705
15706
15707XCFLAGS="-D_GNU_SOURCE -Wall -Wextra -fno-exceptions"
15708
8e2fc055
IT
15709# Add CET specific flags if Intel CET is enabled.
15710 # Check whether --enable-cet was given.
15711if test "${enable_cet+set}" = set; then :
15712 enableval=$enable_cet;
15713 case "$enableval" in
a0e1df88 15714 yes|no|auto) ;;
22e05272 15715 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
8e2fc055
IT
15716 esac
15717
15718else
8d286dd1 15719 enable_cet=auto
8e2fc055
IT
15720fi
15721
15722
14e335ed
IT
15723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
15724$as_echo_n "checking for CET support... " >&6; }
15725
9051b548 15726# NB: Avoid nested save_CFLAGS and save_LDFLAGS.
8e2fc055
IT
15727case "$host" in
15728 i[34567]86-*-linux* | x86_64-*-linux*)
15729 case "$enable_cet" in
a0e1df88 15730 auto)
14e335ed 15731 # Check if target supports multi-byte NOPs
b1a3d2b7 15732 # and if compiler and assembler support CET insn.
9051b548 15733 cet_save_CFLAGS="$CFLAGS"
4c1a5d8b 15734 CFLAGS="$CFLAGS -fcf-protection"
8e2fc055
IT
15735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15736/* end confdefs.h. */
15737
15738int
15739main ()
15740{
14e335ed
IT
15741
15742#if !defined(__SSE2__)
15743#error target does not support multi-byte NOPs
15744#else
8e2fc055 15745asm ("setssbsy");
14e335ed
IT
15746#endif
15747
8e2fc055
IT
15748 ;
15749 return 0;
15750}
15751_ACEOF
15752if ac_fn_c_try_compile "$LINENO"; then :
15753 enable_cet=yes
15754else
15755 enable_cet=no
15756fi
15757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9051b548 15758 CFLAGS="$cet_save_CFLAGS"
8e2fc055
IT
15759 ;;
15760 yes)
15761 # Check if assembler supports CET.
15762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15763/* end confdefs.h. */
15764
15765int
15766main ()
15767{
15768asm ("setssbsy");
15769 ;
15770 return 0;
15771}
15772_ACEOF
15773if ac_fn_c_try_compile "$LINENO"; then :
15774
15775else
22e05272 15776 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
8e2fc055
IT
15777fi
15778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15779 ;;
15780 esac
15781 ;;
15782 *)
15783 enable_cet=no
15784 ;;
15785esac
15786if test x$enable_cet = xyes; then
7b47ecf2 15787 CET_FLAGS="-fcf-protection -mshstk"
14e335ed
IT
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15789$as_echo "yes" >&6; }
15790else
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15792$as_echo "no" >&6; }
8e2fc055
IT
15793fi
15794
15795XCFLAGS="$XCFLAGS $CET_FLAGS"
15796
15797
2077db1b
CT
15798
15799if test "${multilib}" = "yes"; then
15800 multilib_arg="--enable-multilib"
15801else
15802 multilib_arg=
15803fi
15804
2077db1b
CT
15805ac_config_files="$ac_config_files Makefile"
15806
15807
15808if test "x$VTV_SUPPORTED" = "xyes"; then
56fc7835 15809 ac_config_files="$ac_config_files testsuite/Makefile"
2077db1b
CT
15810
15811fi
15812
8be349ee
CT
15813case "$target_os" in
15814 cygwin*|mingw32*)
15815 vtv_cygmin="yes"
15816 ;;
15817 *)
15818 vtv_cygmin="no"
15819 ;;
15820esac
15821
15822 if test $vtv_cygmin = yes; then
15823 VTV_CYGMIN_TRUE=
15824 VTV_CYGMIN_FALSE='#'
15825else
15826 VTV_CYGMIN_TRUE='#'
15827 VTV_CYGMIN_FALSE=
15828fi
15829
15830
e5ef217c
RO
15831for ac_func in _obstack_begin
15832do :
15833 ac_fn_c_check_func "$LINENO" "_obstack_begin" "ac_cv_func__obstack_begin"
22e05272 15834if test "x$ac_cv_func__obstack_begin" = xyes; then :
e5ef217c
RO
15835 cat >>confdefs.h <<_ACEOF
15836#define HAVE__OBSTACK_BEGIN 1
15837_ACEOF
15838
15839fi
15840done
15841
15842 if test $ac_cv_func__obstack_begin = no; then
15843 VTV_NO_OBSTACK_TRUE=
15844 VTV_NO_OBSTACK_FALSE='#'
15845else
15846 VTV_NO_OBSTACK_TRUE='#'
15847 VTV_NO_OBSTACK_FALSE=
15848fi
15849
15850
3c36aa6b
JJ
15851# Determine what GCC version number to use in filesystem paths.
15852
15853 get_gcc_base_ver="cat"
15854
15855# Check whether --with-gcc-major-version-only was given.
15856if test "${with_gcc_major_version_only+set}" = set; then :
15857 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
001ddaa8 15858 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
15859 fi
15860
15861fi
15862
15863
15864
15865
2077db1b
CT
15866cat >confcache <<\_ACEOF
15867# This file is a shell script that caches the results of configure
15868# tests run on this system so they can be shared between configure
15869# scripts and configure runs, see configure's option --config-cache.
15870# It is not useful on other systems. If it contains results you don't
15871# want to keep, you may remove or edit it.
15872#
15873# config.status only pays attention to the cache file if you give it
15874# the --recheck option to rerun configure.
15875#
15876# `ac_cv_env_foo' variables (set or unset) will be overridden when
15877# loading this file, other *unset* `ac_cv_foo' will be assigned the
15878# following values.
15879
15880_ACEOF
15881
15882# The following way of writing the cache mishandles newlines in values,
15883# but we know of no workaround that is simple, portable, and efficient.
15884# So, we kill variables containing newlines.
15885# Ultrix sh set writes to stderr and can't be redirected directly,
15886# and sets the high bit in the cache file unless we assign to the vars.
15887(
15888 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15889 eval ac_val=\$$ac_var
15890 case $ac_val in #(
15891 *${as_nl}*)
15892 case $ac_var in #(
15893 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15894$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15895 esac
15896 case $ac_var in #(
15897 _ | IFS | as_nl) ;; #(
15898 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15899 *) { eval $ac_var=; unset $ac_var;} ;;
15900 esac ;;
15901 esac
15902 done
15903
15904 (set) 2>&1 |
15905 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15906 *${as_nl}ac_space=\ *)
15907 # `set' does not quote correctly, so add quotes: double-quote
15908 # substitution turns \\\\ into \\, and sed turns \\ into \.
15909 sed -n \
15910 "s/'/'\\\\''/g;
15911 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15912 ;; #(
15913 *)
15914 # `set' quotes correctly as required by POSIX, so do not add quotes.
15915 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15916 ;;
15917 esac |
15918 sort
15919) |
15920 sed '
15921 /^ac_cv_env_/b end
15922 t clear
15923 :clear
15924 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15925 t end
15926 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15927 :end' >>confcache
15928if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15929 if test -w "$cache_file"; then
22e05272 15930 if test "x$cache_file" != "x/dev/null"; then
2077db1b
CT
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15932$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
15933 if test ! -f "$cache_file" || test -h "$cache_file"; then
15934 cat confcache >"$cache_file"
15935 else
15936 case $cache_file in #(
15937 */* | ?:*)
15938 mv -f confcache "$cache_file"$$ &&
15939 mv -f "$cache_file"$$ "$cache_file" ;; #(
15940 *)
15941 mv -f confcache "$cache_file" ;;
15942 esac
15943 fi
15944 fi
2077db1b
CT
15945 else
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15947$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15948 fi
15949fi
15950rm -f confcache
15951
15952test "x$prefix" = xNONE && prefix=$ac_default_prefix
15953# Let make expand exec_prefix.
15954test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15955
15956# Transform confdefs.h into DEFS.
15957# Protect against shell expansion while executing Makefile rules.
15958# Protect against Makefile macro expansion.
15959#
15960# If the first sed substitution is executed (which looks for macros that
15961# take arguments), then branch to the quote section. Otherwise,
15962# look for a macro that doesn't take arguments.
15963ac_script='
15964:mline
15965/\\$/{
15966 N
15967 s,\\\n,,
15968 b mline
15969}
15970t clear
15971:clear
15972s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15973t quote
15974s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15975t quote
15976b any
15977:quote
15978s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15979s/\[/\\&/g
15980s/\]/\\&/g
15981s/\$/$$/g
15982H
15983:any
15984${
15985 g
15986 s/^\n//
15987 s/\n/ /g
15988 p
15989}
15990'
15991DEFS=`sed -n "$ac_script" confdefs.h`
15992
15993
15994ac_libobjs=
15995ac_ltlibobjs=
22e05272 15996U=
2077db1b
CT
15997for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15998 # 1. Remove the extension, and $U if already installed.
15999 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16000 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16001 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16002 # will be set to the directory where LIBOBJS objects are built.
16003 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16004 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16005done
16006LIBOBJS=$ac_libobjs
16007
16008LTLIBOBJS=$ac_ltlibobjs
16009
16010
56fc7835 16011if test -z "${ENABLE_VTABLE_VERIFY_TRUE}" && test -z "${ENABLE_VTABLE_VERIFY_FALSE}"; then
22e05272 16012 as_fn_error $? "conditional \"ENABLE_VTABLE_VERIFY\" was never defined.
56fc7835 16013Usually this means the macro was only invoked conditionally." "$LINENO" 5
e5ef217c 16014fi
22e05272
JM
16015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16016$as_echo_n "checking that generated files are newer than configure... " >&6; }
16017 if test -n "$am_sleep_pid"; then
16018 # Hide warnings about reused PIDs.
16019 wait $am_sleep_pid 2>/dev/null
16020 fi
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16022$as_echo "done" >&6; }
e5ef217c 16023if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22e05272 16024 as_fn_error $? "conditional \"AMDEP\" was never defined.
e5ef217c
RO
16025Usually this means the macro was only invoked conditionally." "$LINENO" 5
16026fi
16027if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22e05272 16028 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
e5ef217c 16029Usually this means the macro was only invoked conditionally." "$LINENO" 5
56fc7835 16030fi
2077db1b
CT
16031 if test -n "$EXEEXT"; then
16032 am__EXEEXT_TRUE=
16033 am__EXEEXT_FALSE='#'
16034else
16035 am__EXEEXT_TRUE='#'
16036 am__EXEEXT_FALSE=
16037fi
16038
16039if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22e05272 16040 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
2077db1b
CT
16041Usually this means the macro was only invoked conditionally." "$LINENO" 5
16042fi
2077db1b 16043if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22e05272 16044 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
2077db1b
CT
16045Usually this means the macro was only invoked conditionally." "$LINENO" 5
16046fi
8be349ee 16047if test -z "${VTV_CYGMIN_TRUE}" && test -z "${VTV_CYGMIN_FALSE}"; then
22e05272 16048 as_fn_error $? "conditional \"VTV_CYGMIN\" was never defined.
8be349ee
CT
16049Usually this means the macro was only invoked conditionally." "$LINENO" 5
16050fi
e5ef217c 16051if test -z "${VTV_NO_OBSTACK_TRUE}" && test -z "${VTV_NO_OBSTACK_FALSE}"; then
22e05272 16052 as_fn_error $? "conditional \"VTV_NO_OBSTACK\" was never defined.
e5ef217c
RO
16053Usually this means the macro was only invoked conditionally." "$LINENO" 5
16054fi
2077db1b 16055
22e05272 16056: "${CONFIG_STATUS=./config.status}"
2077db1b
CT
16057ac_write_fail=0
16058ac_clean_files_save=$ac_clean_files
16059ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16060{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16061$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16062as_write_fail=0
16063cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16064#! $SHELL
16065# Generated by $as_me.
16066# Run this file to recreate the current configuration.
16067# Compiler output produced by configure, useful for debugging
16068# configure, is in config.log if it exists.
16069
16070debug=false
16071ac_cs_recheck=false
16072ac_cs_silent=false
16073
16074SHELL=\${CONFIG_SHELL-$SHELL}
16075export SHELL
16076_ASEOF
16077cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16078## -------------------- ##
16079## M4sh Initialization. ##
16080## -------------------- ##
16081
16082# Be more Bourne compatible
16083DUALCASE=1; export DUALCASE # for MKS sh
16084if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16085 emulate sh
16086 NULLCMD=:
16087 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16088 # is contrary to our usage. Disable this feature.
16089 alias -g '${1+"$@"}'='"$@"'
16090 setopt NO_GLOB_SUBST
16091else
16092 case `(set -o) 2>/dev/null` in #(
16093 *posix*) :
16094 set -o posix ;; #(
16095 *) :
16096 ;;
16097esac
16098fi
16099
16100
16101as_nl='
16102'
16103export as_nl
16104# Printing a long string crashes Solaris 7 /usr/bin/printf.
16105as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16106as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16107as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16108# Prefer a ksh shell builtin over an external printf program on Solaris,
16109# but without wasting forks for bash or zsh.
16110if test -z "$BASH_VERSION$ZSH_VERSION" \
16111 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16112 as_echo='print -r --'
16113 as_echo_n='print -rn --'
16114elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16115 as_echo='printf %s\n'
16116 as_echo_n='printf %s'
16117else
16118 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16119 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16120 as_echo_n='/usr/ucb/echo -n'
16121 else
16122 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16123 as_echo_n_body='eval
16124 arg=$1;
16125 case $arg in #(
16126 *"$as_nl"*)
16127 expr "X$arg" : "X\\(.*\\)$as_nl";
16128 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16129 esac;
16130 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16131 '
16132 export as_echo_n_body
16133 as_echo_n='sh -c $as_echo_n_body as_echo'
16134 fi
16135 export as_echo_body
16136 as_echo='sh -c $as_echo_body as_echo'
16137fi
16138
16139# The user is always right.
16140if test "${PATH_SEPARATOR+set}" != set; then
16141 PATH_SEPARATOR=:
16142 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16143 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16144 PATH_SEPARATOR=';'
16145 }
16146fi
16147
16148
16149# IFS
16150# We need space, tab and new line, in precisely that order. Quoting is
16151# there to prevent editors from complaining about space-tab.
16152# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16153# splitting by setting IFS to empty value.)
16154IFS=" "" $as_nl"
16155
16156# Find who we are. Look in the path if we contain no directory separator.
22e05272 16157as_myself=
2077db1b
CT
16158case $0 in #((
16159 *[\\/]* ) as_myself=$0 ;;
16160 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16161for as_dir in $PATH
16162do
16163 IFS=$as_save_IFS
16164 test -z "$as_dir" && as_dir=.
16165 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16166 done
16167IFS=$as_save_IFS
16168
16169 ;;
16170esac
16171# We did not find ourselves, most probably we were run as `sh COMMAND'
16172# in which case we are not to be found in the path.
16173if test "x$as_myself" = x; then
16174 as_myself=$0
16175fi
16176if test ! -f "$as_myself"; then
16177 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16178 exit 1
16179fi
16180
16181# Unset variables that we do not need and which cause bugs (e.g. in
16182# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16183# suppresses any "Segmentation fault" message there. '((' could
16184# trigger a bug in pdksh 5.2.14.
16185for as_var in BASH_ENV ENV MAIL MAILPATH
16186do eval test x\${$as_var+set} = xset \
16187 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16188done
16189PS1='$ '
16190PS2='> '
16191PS4='+ '
16192
16193# NLS nuisances.
16194LC_ALL=C
16195export LC_ALL
16196LANGUAGE=C
16197export LANGUAGE
16198
16199# CDPATH.
16200(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16201
16202
22e05272
JM
16203# as_fn_error STATUS ERROR [LINENO LOG_FD]
16204# ----------------------------------------
2077db1b
CT
16205# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16206# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 16207# script with STATUS, using 1 if that was 0.
2077db1b
CT
16208as_fn_error ()
16209{
22e05272
JM
16210 as_status=$1; test $as_status -eq 0 && as_status=1
16211 if test "$4"; then
16212 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16213 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
2077db1b 16214 fi
22e05272 16215 $as_echo "$as_me: error: $2" >&2
2077db1b
CT
16216 as_fn_exit $as_status
16217} # as_fn_error
16218
16219
16220# as_fn_set_status STATUS
16221# -----------------------
16222# Set $? to STATUS, without forking.
16223as_fn_set_status ()
16224{
16225 return $1
16226} # as_fn_set_status
16227
16228# as_fn_exit STATUS
16229# -----------------
16230# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16231as_fn_exit ()
16232{
16233 set +e
16234 as_fn_set_status $1
16235 exit $1
16236} # as_fn_exit
16237
16238# as_fn_unset VAR
16239# ---------------
16240# Portably unset VAR.
16241as_fn_unset ()
16242{
16243 { eval $1=; unset $1;}
16244}
16245as_unset=as_fn_unset
16246# as_fn_append VAR VALUE
16247# ----------------------
16248# Append the text in VALUE to the end of the definition contained in VAR. Take
16249# advantage of any shell optimizations that allow amortized linear growth over
16250# repeated appends, instead of the typical quadratic growth present in naive
16251# implementations.
16252if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16253 eval 'as_fn_append ()
16254 {
16255 eval $1+=\$2
16256 }'
16257else
16258 as_fn_append ()
16259 {
16260 eval $1=\$$1\$2
16261 }
16262fi # as_fn_append
16263
16264# as_fn_arith ARG...
16265# ------------------
16266# Perform arithmetic evaluation on the ARGs, and store the result in the
16267# global $as_val. Take advantage of shells that can avoid forks. The arguments
16268# must be portable across $(()) and expr.
16269if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16270 eval 'as_fn_arith ()
16271 {
16272 as_val=$(( $* ))
16273 }'
16274else
16275 as_fn_arith ()
16276 {
16277 as_val=`expr "$@" || test $? -eq 1`
16278 }
16279fi # as_fn_arith
16280
16281
16282if expr a : '\(a\)' >/dev/null 2>&1 &&
16283 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16284 as_expr=expr
16285else
16286 as_expr=false
16287fi
16288
16289if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16290 as_basename=basename
16291else
16292 as_basename=false
16293fi
16294
16295if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16296 as_dirname=dirname
16297else
16298 as_dirname=false
16299fi
16300
16301as_me=`$as_basename -- "$0" ||
16302$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16303 X"$0" : 'X\(//\)$' \| \
16304 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16305$as_echo X/"$0" |
16306 sed '/^.*\/\([^/][^/]*\)\/*$/{
16307 s//\1/
16308 q
16309 }
16310 /^X\/\(\/\/\)$/{
16311 s//\1/
16312 q
16313 }
16314 /^X\/\(\/\).*/{
16315 s//\1/
16316 q
16317 }
16318 s/.*/./; q'`
16319
16320# Avoid depending upon Character Ranges.
16321as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16322as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16323as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16324as_cr_digits='0123456789'
16325as_cr_alnum=$as_cr_Letters$as_cr_digits
16326
16327ECHO_C= ECHO_N= ECHO_T=
16328case `echo -n x` in #(((((
16329-n*)
16330 case `echo 'xy\c'` in
16331 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16332 xy) ECHO_C='\c';;
16333 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16334 ECHO_T=' ';;
16335 esac;;
16336*)
16337 ECHO_N='-n';;
16338esac
16339
16340rm -f conf$$ conf$$.exe conf$$.file
16341if test -d conf$$.dir; then
16342 rm -f conf$$.dir/conf$$.file
16343else
16344 rm -f conf$$.dir
16345 mkdir conf$$.dir 2>/dev/null
16346fi
16347if (echo >conf$$.file) 2>/dev/null; then
16348 if ln -s conf$$.file conf$$ 2>/dev/null; then
16349 as_ln_s='ln -s'
16350 # ... but there are two gotchas:
16351 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16352 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 16353 # In both cases, we have to default to `cp -pR'.
2077db1b 16354 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 16355 as_ln_s='cp -pR'
2077db1b
CT
16356 elif ln conf$$.file conf$$ 2>/dev/null; then
16357 as_ln_s=ln
16358 else
22e05272 16359 as_ln_s='cp -pR'
2077db1b
CT
16360 fi
16361else
22e05272 16362 as_ln_s='cp -pR'
2077db1b
CT
16363fi
16364rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16365rmdir conf$$.dir 2>/dev/null
16366
16367
16368# as_fn_mkdir_p
16369# -------------
16370# Create "$as_dir" as a directory, including parents if necessary.
16371as_fn_mkdir_p ()
16372{
16373
16374 case $as_dir in #(
16375 -*) as_dir=./$as_dir;;
16376 esac
16377 test -d "$as_dir" || eval $as_mkdir_p || {
16378 as_dirs=
16379 while :; do
16380 case $as_dir in #(
16381 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16382 *) as_qdir=$as_dir;;
16383 esac
16384 as_dirs="'$as_qdir' $as_dirs"
16385 as_dir=`$as_dirname -- "$as_dir" ||
16386$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16387 X"$as_dir" : 'X\(//\)[^/]' \| \
16388 X"$as_dir" : 'X\(//\)$' \| \
16389 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16390$as_echo X"$as_dir" |
16391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16392 s//\1/
16393 q
16394 }
16395 /^X\(\/\/\)[^/].*/{
16396 s//\1/
16397 q
16398 }
16399 /^X\(\/\/\)$/{
16400 s//\1/
16401 q
16402 }
16403 /^X\(\/\).*/{
16404 s//\1/
16405 q
16406 }
16407 s/.*/./; q'`
16408 test -d "$as_dir" && break
16409 done
16410 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 16411 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
2077db1b
CT
16412
16413
16414} # as_fn_mkdir_p
16415if mkdir -p . 2>/dev/null; then
16416 as_mkdir_p='mkdir -p "$as_dir"'
16417else
16418 test -d ./-p && rmdir ./-p
16419 as_mkdir_p=false
16420fi
16421
22e05272
JM
16422
16423# as_fn_executable_p FILE
16424# -----------------------
16425# Test if FILE is an executable regular file.
16426as_fn_executable_p ()
16427{
16428 test -f "$1" && test -x "$1"
16429} # as_fn_executable_p
16430as_test_x='test -x'
16431as_executable_p=as_fn_executable_p
2077db1b
CT
16432
16433# Sed expression to map a string onto a valid CPP name.
16434as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16435
16436# Sed expression to map a string onto a valid variable name.
16437as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16438
16439
16440exec 6>&1
16441## ----------------------------------- ##
16442## Main body of $CONFIG_STATUS script. ##
16443## ----------------------------------- ##
16444_ASEOF
16445test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16446
16447cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16448# Save the log message, to keep $0 and so on meaningful, and to
16449# report actual input values of CONFIG_FILES etc. instead of their
16450# values after options handling.
16451ac_log="
16452This file was extended by GNU Vtable Verification Runtime Library $as_me 1.0, which was
22e05272 16453generated by GNU Autoconf 2.69. Invocation command line was
2077db1b
CT
16454
16455 CONFIG_FILES = $CONFIG_FILES
16456 CONFIG_HEADERS = $CONFIG_HEADERS
16457 CONFIG_LINKS = $CONFIG_LINKS
16458 CONFIG_COMMANDS = $CONFIG_COMMANDS
16459 $ $0 $@
16460
16461on `(hostname || uname -n) 2>/dev/null | sed 1q`
16462"
16463
16464_ACEOF
16465
16466case $ac_config_files in *"
16467"*) set x $ac_config_files; shift; ac_config_files=$*;;
16468esac
16469
16470
16471
16472cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16473# Files that config.status was made for.
16474config_files="$ac_config_files"
16475config_commands="$ac_config_commands"
16476
16477_ACEOF
16478
16479cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16480ac_cs_usage="\
16481\`$as_me' instantiates files and other configuration actions
16482from templates according to the current configuration. Unless the files
16483and actions are specified as TAGs, all are instantiated by default.
16484
16485Usage: $0 [OPTION]... [TAG]...
16486
16487 -h, --help print this help, then exit
16488 -V, --version print version number and configuration settings, then exit
22e05272 16489 --config print configuration, then exit
2077db1b
CT
16490 -q, --quiet, --silent
16491 do not print progress messages
16492 -d, --debug don't remove temporary files
16493 --recheck update $as_me by reconfiguring in the same conditions
16494 --file=FILE[:TEMPLATE]
16495 instantiate the configuration file FILE
16496
16497Configuration files:
16498$config_files
16499
16500Configuration commands:
16501$config_commands
16502
16503Report bugs to the package provider.
16504GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
16505General help using GNU software: <http://www.gnu.org/gethelp/>."
16506
16507_ACEOF
16508cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 16509ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
2077db1b
CT
16510ac_cs_version="\\
16511GNU Vtable Verification Runtime Library config.status 1.0
22e05272
JM
16512configured by $0, generated by GNU Autoconf 2.69,
16513 with options \\"\$ac_cs_config\\"
2077db1b 16514
22e05272 16515Copyright (C) 2012 Free Software Foundation, Inc.
2077db1b
CT
16516This config.status script is free software; the Free Software Foundation
16517gives unlimited permission to copy, distribute and modify it."
16518
16519ac_pwd='$ac_pwd'
16520srcdir='$srcdir'
16521INSTALL='$INSTALL'
16522MKDIR_P='$MKDIR_P'
16523AWK='$AWK'
16524test -n "\$AWK" || AWK=awk
16525_ACEOF
16526
16527cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16528# The default lists apply if the user does not specify any file.
16529ac_need_defaults=:
16530while test $# != 0
16531do
16532 case $1 in
22e05272 16533 --*=?*)
2077db1b
CT
16534 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16535 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16536 ac_shift=:
16537 ;;
22e05272
JM
16538 --*=)
16539 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16540 ac_optarg=
16541 ac_shift=:
16542 ;;
2077db1b
CT
16543 *)
16544 ac_option=$1
16545 ac_optarg=$2
16546 ac_shift=shift
16547 ;;
16548 esac
16549
16550 case $ac_option in
16551 # Handling of the options.
16552 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16553 ac_cs_recheck=: ;;
16554 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16555 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
16556 --config | --confi | --conf | --con | --co | --c )
16557 $as_echo "$ac_cs_config"; exit ;;
2077db1b
CT
16558 --debug | --debu | --deb | --de | --d | -d )
16559 debug=: ;;
16560 --file | --fil | --fi | --f )
16561 $ac_shift
16562 case $ac_optarg in
16563 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 16564 '') as_fn_error $? "missing file argument" ;;
2077db1b
CT
16565 esac
16566 as_fn_append CONFIG_FILES " '$ac_optarg'"
16567 ac_need_defaults=false;;
16568 --he | --h | --help | --hel | -h )
16569 $as_echo "$ac_cs_usage"; exit ;;
16570 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16571 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16572 ac_cs_silent=: ;;
16573
16574 # This is an error.
22e05272 16575 -*) as_fn_error $? "unrecognized option: \`$1'
2077db1b
CT
16576Try \`$0 --help' for more information." ;;
16577
16578 *) as_fn_append ac_config_targets " $1"
16579 ac_need_defaults=false ;;
16580
16581 esac
16582 shift
16583done
16584
16585ac_configure_extra_args=
16586
16587if $ac_cs_silent; then
16588 exec 6>/dev/null
16589 ac_configure_extra_args="$ac_configure_extra_args --silent"
16590fi
16591
16592_ACEOF
16593cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16594if \$ac_cs_recheck; then
22e05272 16595 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
2077db1b
CT
16596 shift
16597 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16598 CONFIG_SHELL='$SHELL'
16599 export CONFIG_SHELL
16600 exec "\$@"
16601fi
16602
16603_ACEOF
16604cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16605exec 5>>config.log
16606{
16607 echo
16608 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16609## Running $as_me. ##
16610_ASBOX
16611 $as_echo "$ac_log"
16612} >&5
16613
16614_ACEOF
16615cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16616#
16617# INIT-COMMANDS
16618#
16619
16620srcdir="$srcdir"
16621host="$host"
16622target="$target"
16623with_multisubdir="$with_multisubdir"
16624with_multisrctop="$with_multisrctop"
16625with_target_subdir="$with_target_subdir"
16626ac_configure_args="${multilib_arg} ${ac_configure_args}"
16627multi_basedir="$multi_basedir"
16628CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16629CC="$CC"
16630CXX="$CXX"
16631GFORTRAN="$GFORTRAN"
22e05272 16632GDC="$GDC"
701fa326 16633AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
2077db1b
CT
16634
16635
16636# The HP-UX ksh and POSIX shell print the target directory to stdout
16637# if CDPATH is set.
16638(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16639
16640sed_quote_subst='$sed_quote_subst'
16641double_quote_subst='$double_quote_subst'
16642delay_variable_subst='$delay_variable_subst'
16643macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16644macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16645enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16646enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16647pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16648enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16649SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16650ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16651host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16652host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16653host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16654build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16655build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16656build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16657SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16658Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16659GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16660EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16661FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16662LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16663NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16664LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16665max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16666ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16667exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16668lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16669lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16670lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16671reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16672reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16673OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16674deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16675file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16676AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16677AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16678STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16679RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16680old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16681old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16682old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16683lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16684CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16685CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16686compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16687GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16688lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16689lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16690lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16691lt_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"`'
16692objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16693MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16694lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16695lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16696lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16697lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16698lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16699need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16700DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16701NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16702LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16703OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16704OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16705libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16706shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16707extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16708archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16709enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16710export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16711whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16712compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16713old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16714old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16715archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16716archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16717module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16718module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16719with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16720allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16721no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16722hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16723hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16724hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16725hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16726hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16727hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16728hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16729hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16730inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16731link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16732fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16733always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16734export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16735exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16736include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16737prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16738file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16739variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16740need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16741need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16742version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16743runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16744shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16745shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16746libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16747library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16748soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16749install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16750postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16751postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16752finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16753finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16754hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16755sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16756sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16757hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16758enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16759enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16760enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16761old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16762striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16763compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16764predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16765postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16766predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16767postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16768compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16769LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16770reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16771reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16772old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16773compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16774GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16775lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16776lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16777lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16778lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16779lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16780archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16781enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16782export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16783whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16784compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16785old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16786old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16787archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16788archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16789module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16790module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16791with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16792allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16793no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16794hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16795hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16796hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16797hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16798hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16799hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16800hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16801hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16802inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16803link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16804fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16805always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16806export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16807exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16808include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16809prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16810file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16811hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16812compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16813predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16814postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16815predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16816postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16817compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16818
16819LTCC='$LTCC'
16820LTCFLAGS='$LTCFLAGS'
16821compiler='$compiler_DEFAULT'
16822
16823# A function that is used when there is no print builtin or printf.
16824func_fallback_echo ()
16825{
16826 eval 'cat <<_LTECHO_EOF
16827\$1
16828_LTECHO_EOF'
16829}
16830
16831# Quote evaled strings.
16832for var in SHELL \
16833ECHO \
16834SED \
16835GREP \
16836EGREP \
16837FGREP \
16838LD \
16839NM \
16840LN_S \
16841lt_SP2NL \
16842lt_NL2SP \
16843reload_flag \
16844OBJDUMP \
16845deplibs_check_method \
16846file_magic_cmd \
16847AR \
16848AR_FLAGS \
16849STRIP \
16850RANLIB \
16851CC \
16852CFLAGS \
16853compiler \
16854lt_cv_sys_global_symbol_pipe \
16855lt_cv_sys_global_symbol_to_cdecl \
16856lt_cv_sys_global_symbol_to_c_name_address \
16857lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16858lt_prog_compiler_no_builtin_flag \
16859lt_prog_compiler_wl \
16860lt_prog_compiler_pic \
16861lt_prog_compiler_static \
16862lt_cv_prog_compiler_c_o \
16863need_locks \
16864DSYMUTIL \
16865NMEDIT \
16866LIPO \
16867OTOOL \
16868OTOOL64 \
16869shrext_cmds \
16870export_dynamic_flag_spec \
16871whole_archive_flag_spec \
16872compiler_needs_object \
16873with_gnu_ld \
16874allow_undefined_flag \
16875no_undefined_flag \
16876hardcode_libdir_flag_spec \
16877hardcode_libdir_flag_spec_ld \
16878hardcode_libdir_separator \
16879fix_srcfile_path \
16880exclude_expsyms \
16881include_expsyms \
16882file_list_spec \
16883variables_saved_for_relink \
16884libname_spec \
16885library_names_spec \
16886soname_spec \
16887install_override_mode \
16888finish_eval \
16889old_striplib \
16890striplib \
16891compiler_lib_search_dirs \
16892predep_objects \
16893postdep_objects \
16894predeps \
16895postdeps \
16896compiler_lib_search_path \
16897LD_CXX \
16898reload_flag_CXX \
16899compiler_CXX \
16900lt_prog_compiler_no_builtin_flag_CXX \
16901lt_prog_compiler_wl_CXX \
16902lt_prog_compiler_pic_CXX \
16903lt_prog_compiler_static_CXX \
16904lt_cv_prog_compiler_c_o_CXX \
16905export_dynamic_flag_spec_CXX \
16906whole_archive_flag_spec_CXX \
16907compiler_needs_object_CXX \
16908with_gnu_ld_CXX \
16909allow_undefined_flag_CXX \
16910no_undefined_flag_CXX \
16911hardcode_libdir_flag_spec_CXX \
16912hardcode_libdir_flag_spec_ld_CXX \
16913hardcode_libdir_separator_CXX \
16914fix_srcfile_path_CXX \
16915exclude_expsyms_CXX \
16916include_expsyms_CXX \
16917file_list_spec_CXX \
16918compiler_lib_search_dirs_CXX \
16919predep_objects_CXX \
16920postdep_objects_CXX \
16921predeps_CXX \
16922postdeps_CXX \
16923compiler_lib_search_path_CXX; do
16924 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16925 *[\\\\\\\`\\"\\\$]*)
16926 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16927 ;;
16928 *)
16929 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16930 ;;
16931 esac
16932done
16933
16934# Double-quote double-evaled strings.
16935for var in reload_cmds \
16936old_postinstall_cmds \
16937old_postuninstall_cmds \
16938old_archive_cmds \
16939extract_expsyms_cmds \
16940old_archive_from_new_cmds \
16941old_archive_from_expsyms_cmds \
16942archive_cmds \
16943archive_expsym_cmds \
16944module_cmds \
16945module_expsym_cmds \
16946export_symbols_cmds \
16947prelink_cmds \
16948postinstall_cmds \
16949postuninstall_cmds \
16950finish_cmds \
16951sys_lib_search_path_spec \
16952sys_lib_dlsearch_path_spec \
16953reload_cmds_CXX \
16954old_archive_cmds_CXX \
16955old_archive_from_new_cmds_CXX \
16956old_archive_from_expsyms_cmds_CXX \
16957archive_cmds_CXX \
16958archive_expsym_cmds_CXX \
16959module_cmds_CXX \
16960module_expsym_cmds_CXX \
16961export_symbols_cmds_CXX \
16962prelink_cmds_CXX; do
16963 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16964 *[\\\\\\\`\\"\\\$]*)
16965 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16966 ;;
16967 *)
16968 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16969 ;;
16970 esac
16971done
16972
16973ac_aux_dir='$ac_aux_dir'
16974xsi_shell='$xsi_shell'
16975lt_shell_append='$lt_shell_append'
16976
16977# See if we are running on zsh, and set the options which allow our
16978# commands through without removal of \ escapes INIT.
16979if test -n "\${ZSH_VERSION+set}" ; then
16980 setopt NO_GLOB_SUBST
16981fi
16982
16983
16984 PACKAGE='$PACKAGE'
16985 VERSION='$VERSION'
16986 TIMESTAMP='$TIMESTAMP'
16987 RM='$RM'
16988 ofile='$ofile'
16989
16990
16991
16992
16993
16994
16995_ACEOF
16996
16997cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16998
16999# Handling of arguments.
17000for ac_config_target in $ac_config_targets
17001do
17002 case $ac_config_target in
e5ef217c 17003 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
701fa326 17004 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
2077db1b
CT
17005 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17006 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
2077db1b
CT
17007 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17008
22e05272 17009 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
2077db1b
CT
17010 esac
17011done
17012
17013
17014# If the user did not use the arguments to specify the items to instantiate,
17015# then the envvar interface is used. Set only those that are not.
17016# We use the long form for the default assignment because of an extremely
17017# bizarre bug on SunOS 4.1.3.
17018if $ac_need_defaults; then
17019 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17020 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17021fi
17022
17023# Have a temporary directory for convenience. Make it in the build tree
17024# simply because there is no reason against having it here, and in addition,
17025# creating and moving files from /tmp can sometimes cause problems.
17026# Hook for its removal unless debugging.
17027# Note that there is a small window in which the directory will not be cleaned:
17028# after its creation but before its name has been assigned to `$tmp'.
17029$debug ||
17030{
22e05272 17031 tmp= ac_tmp=
2077db1b 17032 trap 'exit_status=$?
22e05272
JM
17033 : "${ac_tmp:=$tmp}"
17034 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
2077db1b
CT
17035' 0
17036 trap 'as_fn_exit 1' 1 2 13 15
17037}
17038# Create a (secure) tmp directory for tmp files.
17039
17040{
17041 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 17042 test -d "$tmp"
2077db1b
CT
17043} ||
17044{
17045 tmp=./conf$$-$RANDOM
17046 (umask 077 && mkdir "$tmp")
22e05272
JM
17047} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17048ac_tmp=$tmp
2077db1b
CT
17049
17050# Set up the scripts for CONFIG_FILES section.
17051# No need to generate them if there are no CONFIG_FILES.
17052# This happens for instance with `./config.status config.h'.
17053if test -n "$CONFIG_FILES"; then
17054
17055
17056ac_cr=`echo X | tr X '\015'`
17057# On cygwin, bash can eat \r inside `` if the user requested igncr.
17058# But we know of no other shell where ac_cr would be empty at this
17059# point, so we can use a bashism as a fallback.
17060if test "x$ac_cr" = x; then
17061 eval ac_cr=\$\'\\r\'
17062fi
17063ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17064if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 17065 ac_cs_awk_cr='\\r'
2077db1b
CT
17066else
17067 ac_cs_awk_cr=$ac_cr
17068fi
17069
22e05272 17070echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
2077db1b
CT
17071_ACEOF
17072
17073
17074{
17075 echo "cat >conf$$subs.awk <<_ACEOF" &&
17076 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17077 echo "_ACEOF"
17078} >conf$$subs.sh ||
22e05272
JM
17079 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17080ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
2077db1b
CT
17081ac_delim='%!_!# '
17082for ac_last_try in false false false false false :; do
17083 . ./conf$$subs.sh ||
22e05272 17084 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
2077db1b
CT
17085
17086 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17087 if test $ac_delim_n = $ac_delim_num; then
17088 break
17089 elif $ac_last_try; then
22e05272 17090 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
2077db1b
CT
17091 else
17092 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17093 fi
17094done
17095rm -f conf$$subs.sh
17096
17097cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 17098cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
2077db1b
CT
17099_ACEOF
17100sed -n '
17101h
17102s/^/S["/; s/!.*/"]=/
17103p
17104g
17105s/^[^!]*!//
17106:repl
17107t repl
17108s/'"$ac_delim"'$//
17109t delim
17110:nl
17111h
22e05272 17112s/\(.\{148\}\)..*/\1/
2077db1b
CT
17113t more1
17114s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17115p
17116n
17117b repl
17118:more1
17119s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17120p
17121g
17122s/.\{148\}//
17123t nl
17124:delim
17125h
22e05272 17126s/\(.\{148\}\)..*/\1/
2077db1b
CT
17127t more2
17128s/["\\]/\\&/g; s/^/"/; s/$/"/
17129p
17130b
17131:more2
17132s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17133p
17134g
17135s/.\{148\}//
17136t delim
17137' <conf$$subs.awk | sed '
17138/^[^""]/{
17139 N
17140 s/\n//
17141}
17142' >>$CONFIG_STATUS || ac_write_fail=1
17143rm -f conf$$subs.awk
17144cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17145_ACAWK
22e05272 17146cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
2077db1b
CT
17147 for (key in S) S_is_set[key] = 1
17148 FS = "\a"
17149
17150}
17151{
17152 line = $ 0
17153 nfields = split(line, field, "@")
17154 substed = 0
17155 len = length(field[1])
17156 for (i = 2; i < nfields; i++) {
17157 key = field[i]
17158 keylen = length(key)
17159 if (S_is_set[key]) {
17160 value = S[key]
17161 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17162 len += length(value) + length(field[++i])
17163 substed = 1
17164 } else
17165 len += 1 + keylen
17166 }
17167
17168 print line
17169}
17170
17171_ACAWK
17172_ACEOF
17173cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17174if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17175 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17176else
17177 cat
22e05272
JM
17178fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17179 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
2077db1b
CT
17180_ACEOF
17181
22e05272
JM
17182# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17183# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
2077db1b
CT
17184# trailing colons and then remove the whole line if VPATH becomes empty
17185# (actually we leave an empty line to preserve line numbers).
17186if test "x$srcdir" = x.; then
22e05272
JM
17187 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17188h
17189s///
17190s/^/:/
17191s/[ ]*$/:/
17192s/:\$(srcdir):/:/g
17193s/:\${srcdir}:/:/g
17194s/:@srcdir@:/:/g
17195s/^:*//
2077db1b 17196s/:*$//
22e05272
JM
17197x
17198s/\(=[ ]*\).*/\1/
17199G
17200s/\n//
2077db1b
CT
17201s/^[^=]*=[ ]*$//
17202}'
17203fi
17204
17205cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17206fi # test -n "$CONFIG_FILES"
17207
17208
17209eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
17210shift
17211for ac_tag
17212do
17213 case $ac_tag in
17214 :[FHLC]) ac_mode=$ac_tag; continue;;
17215 esac
17216 case $ac_mode$ac_tag in
17217 :[FHL]*:*);;
22e05272 17218 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
2077db1b
CT
17219 :[FH]-) ac_tag=-:-;;
17220 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17221 esac
17222 ac_save_IFS=$IFS
17223 IFS=:
17224 set x $ac_tag
17225 IFS=$ac_save_IFS
17226 shift
17227 ac_file=$1
17228 shift
17229
17230 case $ac_mode in
17231 :L) ac_source=$1;;
17232 :[FH])
17233 ac_file_inputs=
17234 for ac_f
17235 do
17236 case $ac_f in
22e05272 17237 -) ac_f="$ac_tmp/stdin";;
2077db1b
CT
17238 *) # Look for the file first in the build tree, then in the source tree
17239 # (if the path is not absolute). The absolute path cannot be DOS-style,
17240 # because $ac_f cannot contain `:'.
17241 test -f "$ac_f" ||
17242 case $ac_f in
17243 [\\/$]*) false;;
17244 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17245 esac ||
22e05272 17246 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
2077db1b
CT
17247 esac
17248 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17249 as_fn_append ac_file_inputs " '$ac_f'"
17250 done
17251
17252 # Let's still pretend it is `configure' which instantiates (i.e., don't
17253 # use $as_me), people would be surprised to read:
17254 # /* config.h. Generated by config.status. */
17255 configure_input='Generated from '`
17256 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17257 `' by configure.'
17258 if test x"$ac_file" != x-; then
17259 configure_input="$ac_file. $configure_input"
17260 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17261$as_echo "$as_me: creating $ac_file" >&6;}
17262 fi
17263 # Neutralize special characters interpreted by sed in replacement strings.
17264 case $configure_input in #(
17265 *\&* | *\|* | *\\* )
17266 ac_sed_conf_input=`$as_echo "$configure_input" |
17267 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17268 *) ac_sed_conf_input=$configure_input;;
17269 esac
17270
17271 case $ac_tag in
22e05272
JM
17272 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17273 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
2077db1b
CT
17274 esac
17275 ;;
17276 esac
17277
17278 ac_dir=`$as_dirname -- "$ac_file" ||
17279$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17280 X"$ac_file" : 'X\(//\)[^/]' \| \
17281 X"$ac_file" : 'X\(//\)$' \| \
17282 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17283$as_echo X"$ac_file" |
17284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17285 s//\1/
17286 q
17287 }
17288 /^X\(\/\/\)[^/].*/{
17289 s//\1/
17290 q
17291 }
17292 /^X\(\/\/\)$/{
17293 s//\1/
17294 q
17295 }
17296 /^X\(\/\).*/{
17297 s//\1/
17298 q
17299 }
17300 s/.*/./; q'`
17301 as_dir="$ac_dir"; as_fn_mkdir_p
17302 ac_builddir=.
17303
17304case "$ac_dir" in
17305.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17306*)
17307 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17308 # A ".." for each directory in $ac_dir_suffix.
17309 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17310 case $ac_top_builddir_sub in
17311 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17312 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17313 esac ;;
17314esac
17315ac_abs_top_builddir=$ac_pwd
17316ac_abs_builddir=$ac_pwd$ac_dir_suffix
17317# for backward compatibility:
17318ac_top_builddir=$ac_top_build_prefix
17319
17320case $srcdir in
17321 .) # We are building in place.
17322 ac_srcdir=.
17323 ac_top_srcdir=$ac_top_builddir_sub
17324 ac_abs_top_srcdir=$ac_pwd ;;
17325 [\\/]* | ?:[\\/]* ) # Absolute name.
17326 ac_srcdir=$srcdir$ac_dir_suffix;
17327 ac_top_srcdir=$srcdir
17328 ac_abs_top_srcdir=$srcdir ;;
17329 *) # Relative name.
17330 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17331 ac_top_srcdir=$ac_top_build_prefix$srcdir
17332 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17333esac
17334ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17335
17336
17337 case $ac_mode in
17338 :F)
17339 #
17340 # CONFIG_FILE
17341 #
17342
17343 case $INSTALL in
17344 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17345 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17346 esac
17347 ac_MKDIR_P=$MKDIR_P
17348 case $MKDIR_P in
17349 [\\/$]* | ?:[\\/]* ) ;;
17350 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17351 esac
17352_ACEOF
17353
17354cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17355# If the template does not know about datarootdir, expand it.
17356# FIXME: This hack should be removed a few years after 2.60.
17357ac_datarootdir_hack=; ac_datarootdir_seen=
17358ac_sed_dataroot='
17359/datarootdir/ {
17360 p
17361 q
17362}
17363/@datadir@/p
17364/@docdir@/p
17365/@infodir@/p
17366/@localedir@/p
17367/@mandir@/p'
17368case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17369*datarootdir*) ac_datarootdir_seen=yes;;
17370*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17372$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17373_ACEOF
17374cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17375 ac_datarootdir_hack='
17376 s&@datadir@&$datadir&g
17377 s&@docdir@&$docdir&g
17378 s&@infodir@&$infodir&g
17379 s&@localedir@&$localedir&g
17380 s&@mandir@&$mandir&g
17381 s&\\\${datarootdir}&$datarootdir&g' ;;
17382esac
17383_ACEOF
17384
17385# Neutralize VPATH when `$srcdir' = `.'.
17386# Shell code in configure.ac might set extrasub.
17387# FIXME: do we really want to maintain this feature?
17388cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17389ac_sed_extra="$ac_vpsub
17390$extrasub
17391_ACEOF
17392cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17393:t
17394/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17395s|@configure_input@|$ac_sed_conf_input|;t t
17396s&@top_builddir@&$ac_top_builddir_sub&;t t
17397s&@top_build_prefix@&$ac_top_build_prefix&;t t
17398s&@srcdir@&$ac_srcdir&;t t
17399s&@abs_srcdir@&$ac_abs_srcdir&;t t
17400s&@top_srcdir@&$ac_top_srcdir&;t t
17401s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17402s&@builddir@&$ac_builddir&;t t
17403s&@abs_builddir@&$ac_abs_builddir&;t t
17404s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17405s&@INSTALL@&$ac_INSTALL&;t t
17406s&@MKDIR_P@&$ac_MKDIR_P&;t t
17407$ac_datarootdir_hack
17408"
22e05272
JM
17409eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17410 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
2077db1b
CT
17411
17412test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
17413 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17414 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17415 "$ac_tmp/out"`; test -z "$ac_out"; } &&
2077db1b 17416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 17417which seems to be undefined. Please make sure it is defined" >&5
2077db1b 17418$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 17419which seems to be undefined. Please make sure it is defined" >&2;}
2077db1b 17420
22e05272 17421 rm -f "$ac_tmp/stdin"
2077db1b 17422 case $ac_file in
22e05272
JM
17423 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17424 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
2077db1b 17425 esac \
22e05272 17426 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
2077db1b
CT
17427 ;;
17428
17429
17430 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17431$as_echo "$as_me: executing $ac_file commands" >&6;}
17432 ;;
17433 esac
17434
17435
17436 case $ac_file$ac_mode in
701fa326
MK
17437 "default-1":C)
17438# Only add multilib support code if we just rebuilt the top-level
17439# Makefile.
17440case " $CONFIG_FILES " in
17441 *" Makefile "*)
17442 ac_file=Makefile . ${multi_basedir}/config-ml.in
17443 ;;
17444esac ;;
2077db1b 17445 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22e05272 17446 # Older Autoconf quotes --file arguments for eval, but not when files
2077db1b
CT
17447 # are listed without --file. Let's play safe and only enable the eval
17448 # if we detect the quoting.
17449 case $CONFIG_FILES in
17450 *\'*) eval set x "$CONFIG_FILES" ;;
17451 *) set x $CONFIG_FILES ;;
17452 esac
17453 shift
17454 for mf
17455 do
17456 # Strip MF so we end up with the name of the file.
17457 mf=`echo "$mf" | sed -e 's/:.*$//'`
17458 # Check whether this is an Automake generated Makefile or not.
22e05272 17459 # We used to match only the files named 'Makefile.in', but
2077db1b
CT
17460 # some people rename them; so instead we look at the file content.
17461 # Grep'ing the first line is not enough: some people post-process
17462 # each Makefile.in and add a new line on top of each file to say so.
17463 # Grep'ing the whole file is not good either: AIX grep has a line
17464 # limit of 2048, but all sed's we know have understand at least 4000.
17465 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17466 dirpart=`$as_dirname -- "$mf" ||
17467$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17468 X"$mf" : 'X\(//\)[^/]' \| \
17469 X"$mf" : 'X\(//\)$' \| \
17470 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17471$as_echo X"$mf" |
17472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17473 s//\1/
17474 q
17475 }
17476 /^X\(\/\/\)[^/].*/{
17477 s//\1/
17478 q
17479 }
17480 /^X\(\/\/\)$/{
17481 s//\1/
17482 q
17483 }
17484 /^X\(\/\).*/{
17485 s//\1/
17486 q
17487 }
17488 s/.*/./; q'`
17489 else
17490 continue
17491 fi
17492 # Extract the definition of DEPDIR, am__include, and am__quote
22e05272 17493 # from the Makefile without running 'make'.
2077db1b
CT
17494 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17495 test -z "$DEPDIR" && continue
17496 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22e05272 17497 test -z "$am__include" && continue
2077db1b 17498 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
2077db1b
CT
17499 # Find all dependency output files, they are included files with
17500 # $(DEPDIR) in their names. We invoke sed twice because it is the
17501 # simplest approach to changing $(DEPDIR) to its actual value in the
17502 # expansion.
17503 for file in `sed -n "
17504 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22e05272 17505 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
2077db1b
CT
17506 # Make sure the directory exists.
17507 test -f "$dirpart/$file" && continue
17508 fdir=`$as_dirname -- "$file" ||
17509$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17510 X"$file" : 'X\(//\)[^/]' \| \
17511 X"$file" : 'X\(//\)$' \| \
17512 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17513$as_echo X"$file" |
17514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17515 s//\1/
17516 q
17517 }
17518 /^X\(\/\/\)[^/].*/{
17519 s//\1/
17520 q
17521 }
17522 /^X\(\/\/\)$/{
17523 s//\1/
17524 q
17525 }
17526 /^X\(\/\).*/{
17527 s//\1/
17528 q
17529 }
17530 s/.*/./; q'`
17531 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17532 # echo "creating $dirpart/$file"
17533 echo '# dummy' > "$dirpart/$file"
17534 done
17535 done
17536}
17537 ;;
17538 "libtool":C)
17539
17540 # See if we are running on zsh, and set the options which allow our
17541 # commands through without removal of \ escapes.
17542 if test -n "${ZSH_VERSION+set}" ; then
17543 setopt NO_GLOB_SUBST
17544 fi
17545
17546 cfgfile="${ofile}T"
17547 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17548 $RM "$cfgfile"
17549
17550 cat <<_LT_EOF >> "$cfgfile"
17551#! $SHELL
17552
17553# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17554# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17555# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17556# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17557#
17558# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17559# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17560# Written by Gordon Matzigkeit, 1996
17561#
17562# This file is part of GNU Libtool.
17563#
17564# GNU Libtool is free software; you can redistribute it and/or
17565# modify it under the terms of the GNU General Public License as
17566# published by the Free Software Foundation; either version 2 of
17567# the License, or (at your option) any later version.
17568#
17569# As a special exception to the GNU General Public License,
17570# if you distribute this file as part of a program or library that
17571# is built using GNU Libtool, you may include this file under the
17572# same distribution terms that you use for the rest of that program.
17573#
17574# GNU Libtool is distributed in the hope that it will be useful,
17575# but WITHOUT ANY WARRANTY; without even the implied warranty of
17576# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17577# GNU General Public License for more details.
17578#
17579# You should have received a copy of the GNU General Public License
17580# along with GNU Libtool; see the file COPYING. If not, a copy
17581# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17582# obtained by writing to the Free Software Foundation, Inc.,
17583# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17584
17585
17586# The names of the tagged configurations supported by this script.
17587available_tags="CXX "
17588
17589# ### BEGIN LIBTOOL CONFIG
17590
17591# Which release of libtool.m4 was used?
17592macro_version=$macro_version
17593macro_revision=$macro_revision
17594
17595# Whether or not to build shared libraries.
17596build_libtool_libs=$enable_shared
17597
17598# Whether or not to build static libraries.
17599build_old_libs=$enable_static
17600
17601# What type of objects to build.
17602pic_mode=$pic_mode
17603
17604# Whether or not to optimize for fast installation.
17605fast_install=$enable_fast_install
17606
17607# Shell to use when invoking shell scripts.
17608SHELL=$lt_SHELL
17609
17610# An echo program that protects backslashes.
17611ECHO=$lt_ECHO
17612
17613# The host system.
17614host_alias=$host_alias
17615host=$host
17616host_os=$host_os
17617
17618# The build system.
17619build_alias=$build_alias
17620build=$build
17621build_os=$build_os
17622
17623# A sed program that does not truncate output.
17624SED=$lt_SED
17625
17626# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17627Xsed="\$SED -e 1s/^X//"
17628
17629# A grep program that handles long lines.
17630GREP=$lt_GREP
17631
17632# An ERE matcher.
17633EGREP=$lt_EGREP
17634
17635# A literal string matcher.
17636FGREP=$lt_FGREP
17637
17638# A BSD- or MS-compatible name lister.
17639NM=$lt_NM
17640
17641# Whether we need soft or hard links.
17642LN_S=$lt_LN_S
17643
17644# What is the maximum length of a command?
17645max_cmd_len=$max_cmd_len
17646
17647# Object file suffix (normally "o").
17648objext=$ac_objext
17649
17650# Executable file suffix (normally "").
17651exeext=$exeext
17652
17653# whether the shell understands "unset".
17654lt_unset=$lt_unset
17655
17656# turn spaces into newlines.
17657SP2NL=$lt_lt_SP2NL
17658
17659# turn newlines into spaces.
17660NL2SP=$lt_lt_NL2SP
17661
17662# An object symbol dumper.
17663OBJDUMP=$lt_OBJDUMP
17664
17665# Method to check whether dependent libraries are shared objects.
17666deplibs_check_method=$lt_deplibs_check_method
17667
17668# Command to use when deplibs_check_method == "file_magic".
17669file_magic_cmd=$lt_file_magic_cmd
17670
17671# The archiver.
17672AR=$lt_AR
17673AR_FLAGS=$lt_AR_FLAGS
17674
17675# A symbol stripping program.
17676STRIP=$lt_STRIP
17677
17678# Commands used to install an old-style archive.
17679RANLIB=$lt_RANLIB
17680old_postinstall_cmds=$lt_old_postinstall_cmds
17681old_postuninstall_cmds=$lt_old_postuninstall_cmds
17682
17683# Whether to use a lock for old archive extraction.
17684lock_old_archive_extraction=$lock_old_archive_extraction
17685
17686# A C compiler.
17687LTCC=$lt_CC
17688
17689# LTCC compiler flags.
17690LTCFLAGS=$lt_CFLAGS
17691
17692# Take the output of nm and produce a listing of raw symbols and C names.
17693global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17694
17695# Transform the output of nm in a proper C declaration.
17696global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17697
17698# Transform the output of nm in a C name address pair.
17699global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17700
17701# Transform the output of nm in a C name address pair when lib prefix is needed.
17702global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17703
17704# The name of the directory that contains temporary libtool files.
17705objdir=$objdir
17706
17707# Used to examine libraries when file_magic_cmd begins with "file".
17708MAGIC_CMD=$MAGIC_CMD
17709
17710# Must we lock files when doing compilation?
17711need_locks=$lt_need_locks
17712
17713# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17714DSYMUTIL=$lt_DSYMUTIL
17715
17716# Tool to change global to local symbols on Mac OS X.
17717NMEDIT=$lt_NMEDIT
17718
17719# Tool to manipulate fat objects and archives on Mac OS X.
17720LIPO=$lt_LIPO
17721
17722# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17723OTOOL=$lt_OTOOL
17724
17725# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17726OTOOL64=$lt_OTOOL64
17727
17728# Old archive suffix (normally "a").
17729libext=$libext
17730
17731# Shared library suffix (normally ".so").
17732shrext_cmds=$lt_shrext_cmds
17733
17734# The commands to extract the exported symbol list from a shared archive.
17735extract_expsyms_cmds=$lt_extract_expsyms_cmds
17736
17737# Variables whose values should be saved in libtool wrapper scripts and
17738# restored at link time.
17739variables_saved_for_relink=$lt_variables_saved_for_relink
17740
17741# Do we need the "lib" prefix for modules?
17742need_lib_prefix=$need_lib_prefix
17743
17744# Do we need a version for libraries?
17745need_version=$need_version
17746
17747# Library versioning type.
17748version_type=$version_type
17749
17750# Shared library runtime path variable.
17751runpath_var=$runpath_var
17752
17753# Shared library path variable.
17754shlibpath_var=$shlibpath_var
17755
17756# Is shlibpath searched before the hard-coded library search path?
17757shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17758
17759# Format of library name prefix.
17760libname_spec=$lt_libname_spec
17761
17762# List of archive names. First name is the real one, the rest are links.
17763# The last name is the one that the linker finds with -lNAME
17764library_names_spec=$lt_library_names_spec
17765
17766# The coded name of the library, if different from the real name.
17767soname_spec=$lt_soname_spec
17768
17769# Permission mode override for installation of shared libraries.
17770install_override_mode=$lt_install_override_mode
17771
17772# Command to use after installation of a shared archive.
17773postinstall_cmds=$lt_postinstall_cmds
17774
17775# Command to use after uninstallation of a shared archive.
17776postuninstall_cmds=$lt_postuninstall_cmds
17777
17778# Commands used to finish a libtool library installation in a directory.
17779finish_cmds=$lt_finish_cmds
17780
17781# As "finish_cmds", except a single script fragment to be evaled but
17782# not shown.
17783finish_eval=$lt_finish_eval
17784
17785# Whether we should hardcode library paths into libraries.
17786hardcode_into_libs=$hardcode_into_libs
17787
17788# Compile-time system search path for libraries.
17789sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17790
17791# Run-time system search path for libraries.
17792sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17793
17794# Whether dlopen is supported.
17795dlopen_support=$enable_dlopen
17796
17797# Whether dlopen of programs is supported.
17798dlopen_self=$enable_dlopen_self
17799
17800# Whether dlopen of statically linked programs is supported.
17801dlopen_self_static=$enable_dlopen_self_static
17802
17803# Commands to strip libraries.
17804old_striplib=$lt_old_striplib
17805striplib=$lt_striplib
17806
17807
17808# The linker used to build libraries.
17809LD=$lt_LD
17810
17811# How to create reloadable object files.
17812reload_flag=$lt_reload_flag
17813reload_cmds=$lt_reload_cmds
17814
17815# Commands used to build an old-style archive.
17816old_archive_cmds=$lt_old_archive_cmds
17817
17818# A language specific compiler.
17819CC=$lt_compiler
17820
17821# Is the compiler the GNU compiler?
17822with_gcc=$GCC
17823
17824# Compiler flag to turn off builtin functions.
17825no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17826
17827# How to pass a linker flag through the compiler.
17828wl=$lt_lt_prog_compiler_wl
17829
17830# Additional compiler flags for building library objects.
17831pic_flag=$lt_lt_prog_compiler_pic
17832
17833# Compiler flag to prevent dynamic linking.
17834link_static_flag=$lt_lt_prog_compiler_static
17835
17836# Does compiler simultaneously support -c and -o options?
17837compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17838
17839# Whether or not to add -lc for building shared libraries.
17840build_libtool_need_lc=$archive_cmds_need_lc
17841
17842# Whether or not to disallow shared libs when runtime libs are static.
17843allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17844
17845# Compiler flag to allow reflexive dlopens.
17846export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17847
17848# Compiler flag to generate shared objects directly from archives.
17849whole_archive_flag_spec=$lt_whole_archive_flag_spec
17850
17851# Whether the compiler copes with passing no objects directly.
17852compiler_needs_object=$lt_compiler_needs_object
17853
17854# Create an old-style archive from a shared archive.
17855old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17856
17857# Create a temporary old-style archive to link instead of a shared archive.
17858old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17859
17860# Commands used to build a shared archive.
17861archive_cmds=$lt_archive_cmds
17862archive_expsym_cmds=$lt_archive_expsym_cmds
17863
17864# Commands used to build a loadable module if different from building
17865# a shared archive.
17866module_cmds=$lt_module_cmds
17867module_expsym_cmds=$lt_module_expsym_cmds
17868
17869# Whether we are building with GNU ld or not.
17870with_gnu_ld=$lt_with_gnu_ld
17871
17872# Flag that allows shared libraries with undefined symbols to be built.
17873allow_undefined_flag=$lt_allow_undefined_flag
17874
17875# Flag that enforces no undefined symbols.
17876no_undefined_flag=$lt_no_undefined_flag
17877
17878# Flag to hardcode \$libdir into a binary during linking.
17879# This must work even if \$libdir does not exist
17880hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17881
17882# If ld is used when linking, flag to hardcode \$libdir into a binary
17883# during linking. This must work even if \$libdir does not exist.
17884hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17885
17886# Whether we need a single "-rpath" flag with a separated argument.
17887hardcode_libdir_separator=$lt_hardcode_libdir_separator
17888
17889# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17890# DIR into the resulting binary.
17891hardcode_direct=$hardcode_direct
17892
17893# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17894# DIR into the resulting binary and the resulting library dependency is
17895# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17896# library is relocated.
17897hardcode_direct_absolute=$hardcode_direct_absolute
17898
17899# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17900# into the resulting binary.
17901hardcode_minus_L=$hardcode_minus_L
17902
17903# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17904# into the resulting binary.
17905hardcode_shlibpath_var=$hardcode_shlibpath_var
17906
17907# Set to "yes" if building a shared library automatically hardcodes DIR
17908# into the library and all subsequent libraries and executables linked
17909# against it.
17910hardcode_automatic=$hardcode_automatic
17911
17912# Set to yes if linker adds runtime paths of dependent libraries
17913# to runtime path list.
17914inherit_rpath=$inherit_rpath
17915
17916# Whether libtool must link a program against all its dependency libraries.
17917link_all_deplibs=$link_all_deplibs
17918
17919# Fix the shell variable \$srcfile for the compiler.
17920fix_srcfile_path=$lt_fix_srcfile_path
17921
17922# Set to "yes" if exported symbols are required.
17923always_export_symbols=$always_export_symbols
17924
17925# The commands to list exported symbols.
17926export_symbols_cmds=$lt_export_symbols_cmds
17927
17928# Symbols that should not be listed in the preloaded symbols.
17929exclude_expsyms=$lt_exclude_expsyms
17930
17931# Symbols that must always be exported.
17932include_expsyms=$lt_include_expsyms
17933
17934# Commands necessary for linking programs (against libraries) with templates.
17935prelink_cmds=$lt_prelink_cmds
17936
17937# Specify filename containing input files.
17938file_list_spec=$lt_file_list_spec
17939
17940# How to hardcode a shared library path into an executable.
17941hardcode_action=$hardcode_action
17942
17943# The directories searched by this compiler when creating a shared library.
17944compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17945
17946# Dependencies to place before and after the objects being linked to
17947# create a shared library.
17948predep_objects=$lt_predep_objects
17949postdep_objects=$lt_postdep_objects
17950predeps=$lt_predeps
17951postdeps=$lt_postdeps
17952
17953# The library search path used internally by the compiler when linking
17954# a shared library.
17955compiler_lib_search_path=$lt_compiler_lib_search_path
17956
17957# ### END LIBTOOL CONFIG
17958
17959_LT_EOF
17960
17961 case $host_os in
17962 aix3*)
17963 cat <<\_LT_EOF >> "$cfgfile"
17964# AIX sometimes has problems with the GCC collect2 program. For some
17965# reason, if we set the COLLECT_NAMES environment variable, the problems
17966# vanish in a puff of smoke.
17967if test "X${COLLECT_NAMES+set}" != Xset; then
17968 COLLECT_NAMES=
17969 export COLLECT_NAMES
17970fi
17971_LT_EOF
17972 ;;
17973 esac
17974
17975
17976ltmain="$ac_aux_dir/ltmain.sh"
17977
17978
17979 # We use sed instead of cat because bash on DJGPP gets confused if
17980 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17981 # text mode, it properly converts lines to CR/LF. This bash problem
17982 # is reportedly fixed, but why not run on old versions too?
17983 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17984 || (rm -f "$cfgfile"; exit 1)
17985
17986 case $xsi_shell in
17987 yes)
17988 cat << \_LT_EOF >> "$cfgfile"
17989
17990# func_dirname file append nondir_replacement
17991# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17992# otherwise set result to NONDIR_REPLACEMENT.
17993func_dirname ()
17994{
17995 case ${1} in
17996 */*) func_dirname_result="${1%/*}${2}" ;;
17997 * ) func_dirname_result="${3}" ;;
17998 esac
17999}
18000
18001# func_basename file
18002func_basename ()
18003{
18004 func_basename_result="${1##*/}"
18005}
18006
18007# func_dirname_and_basename file append nondir_replacement
18008# perform func_basename and func_dirname in a single function
18009# call:
18010# dirname: Compute the dirname of FILE. If nonempty,
18011# add APPEND to the result, otherwise set result
18012# to NONDIR_REPLACEMENT.
18013# value returned in "$func_dirname_result"
18014# basename: Compute filename of FILE.
18015# value retuned in "$func_basename_result"
18016# Implementation must be kept synchronized with func_dirname
18017# and func_basename. For efficiency, we do not delegate to
18018# those functions but instead duplicate the functionality here.
18019func_dirname_and_basename ()
18020{
18021 case ${1} in
18022 */*) func_dirname_result="${1%/*}${2}" ;;
18023 * ) func_dirname_result="${3}" ;;
18024 esac
18025 func_basename_result="${1##*/}"
18026}
18027
18028# func_stripname prefix suffix name
18029# strip PREFIX and SUFFIX off of NAME.
18030# PREFIX and SUFFIX must not contain globbing or regex special
18031# characters, hashes, percent signs, but SUFFIX may contain a leading
18032# dot (in which case that matches only a dot).
18033func_stripname ()
18034{
18035 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18036 # positional parameters, so assign one to ordinary parameter first.
18037 func_stripname_result=${3}
18038 func_stripname_result=${func_stripname_result#"${1}"}
18039 func_stripname_result=${func_stripname_result%"${2}"}
18040}
18041
18042# func_opt_split
18043func_opt_split ()
18044{
18045 func_opt_split_opt=${1%%=*}
18046 func_opt_split_arg=${1#*=}
18047}
18048
18049# func_lo2o object
18050func_lo2o ()
18051{
18052 case ${1} in
18053 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18054 *) func_lo2o_result=${1} ;;
18055 esac
18056}
18057
18058# func_xform libobj-or-source
18059func_xform ()
18060{
18061 func_xform_result=${1%.*}.lo
18062}
18063
18064# func_arith arithmetic-term...
18065func_arith ()
18066{
18067 func_arith_result=$(( $* ))
18068}
18069
18070# func_len string
18071# STRING may not start with a hyphen.
18072func_len ()
18073{
18074 func_len_result=${#1}
18075}
18076
18077_LT_EOF
18078 ;;
18079 *) # Bourne compatible functions.
18080 cat << \_LT_EOF >> "$cfgfile"
18081
18082# func_dirname file append nondir_replacement
18083# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18084# otherwise set result to NONDIR_REPLACEMENT.
18085func_dirname ()
18086{
18087 # Extract subdirectory from the argument.
18088 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18089 if test "X$func_dirname_result" = "X${1}"; then
18090 func_dirname_result="${3}"
18091 else
18092 func_dirname_result="$func_dirname_result${2}"
18093 fi
18094}
18095
18096# func_basename file
18097func_basename ()
18098{
18099 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18100}
18101
18102
18103# func_stripname prefix suffix name
18104# strip PREFIX and SUFFIX off of NAME.
18105# PREFIX and SUFFIX must not contain globbing or regex special
18106# characters, hashes, percent signs, but SUFFIX may contain a leading
18107# dot (in which case that matches only a dot).
18108# func_strip_suffix prefix name
18109func_stripname ()
18110{
18111 case ${2} in
18112 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18113 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18114 esac
18115}
18116
18117# sed scripts:
18118my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18119my_sed_long_arg='1s/^-[^=]*=//'
18120
18121# func_opt_split
18122func_opt_split ()
18123{
18124 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18125 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18126}
18127
18128# func_lo2o object
18129func_lo2o ()
18130{
18131 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18132}
18133
18134# func_xform libobj-or-source
18135func_xform ()
18136{
18137 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18138}
18139
18140# func_arith arithmetic-term...
18141func_arith ()
18142{
18143 func_arith_result=`expr "$@"`
18144}
18145
18146# func_len string
18147# STRING may not start with a hyphen.
18148func_len ()
18149{
18150 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18151}
18152
18153_LT_EOF
18154esac
18155
18156case $lt_shell_append in
18157 yes)
18158 cat << \_LT_EOF >> "$cfgfile"
18159
18160# func_append var value
18161# Append VALUE to the end of shell variable VAR.
18162func_append ()
18163{
18164 eval "$1+=\$2"
18165}
18166_LT_EOF
18167 ;;
18168 *)
18169 cat << \_LT_EOF >> "$cfgfile"
18170
18171# func_append var value
18172# Append VALUE to the end of shell variable VAR.
18173func_append ()
18174{
18175 eval "$1=\$$1\$2"
18176}
18177
18178_LT_EOF
18179 ;;
18180 esac
18181
18182
18183 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18184 || (rm -f "$cfgfile"; exit 1)
18185
18186 mv -f "$cfgfile" "$ofile" ||
18187 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18188 chmod +x "$ofile"
18189
18190
18191 cat <<_LT_EOF >> "$ofile"
18192
18193# ### BEGIN LIBTOOL TAG CONFIG: CXX
18194
18195# The linker used to build libraries.
18196LD=$lt_LD_CXX
18197
18198# How to create reloadable object files.
18199reload_flag=$lt_reload_flag_CXX
18200reload_cmds=$lt_reload_cmds_CXX
18201
18202# Commands used to build an old-style archive.
18203old_archive_cmds=$lt_old_archive_cmds_CXX
18204
18205# A language specific compiler.
18206CC=$lt_compiler_CXX
18207
18208# Is the compiler the GNU compiler?
18209with_gcc=$GCC_CXX
18210
18211# Compiler flag to turn off builtin functions.
18212no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18213
18214# How to pass a linker flag through the compiler.
18215wl=$lt_lt_prog_compiler_wl_CXX
18216
18217# Additional compiler flags for building library objects.
18218pic_flag=$lt_lt_prog_compiler_pic_CXX
18219
18220# Compiler flag to prevent dynamic linking.
18221link_static_flag=$lt_lt_prog_compiler_static_CXX
18222
18223# Does compiler simultaneously support -c and -o options?
18224compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18225
18226# Whether or not to add -lc for building shared libraries.
18227build_libtool_need_lc=$archive_cmds_need_lc_CXX
18228
18229# Whether or not to disallow shared libs when runtime libs are static.
18230allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18231
18232# Compiler flag to allow reflexive dlopens.
18233export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18234
18235# Compiler flag to generate shared objects directly from archives.
18236whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18237
18238# Whether the compiler copes with passing no objects directly.
18239compiler_needs_object=$lt_compiler_needs_object_CXX
18240
18241# Create an old-style archive from a shared archive.
18242old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18243
18244# Create a temporary old-style archive to link instead of a shared archive.
18245old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18246
18247# Commands used to build a shared archive.
18248archive_cmds=$lt_archive_cmds_CXX
18249archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18250
18251# Commands used to build a loadable module if different from building
18252# a shared archive.
18253module_cmds=$lt_module_cmds_CXX
18254module_expsym_cmds=$lt_module_expsym_cmds_CXX
18255
18256# Whether we are building with GNU ld or not.
18257with_gnu_ld=$lt_with_gnu_ld_CXX
18258
18259# Flag that allows shared libraries with undefined symbols to be built.
18260allow_undefined_flag=$lt_allow_undefined_flag_CXX
18261
18262# Flag that enforces no undefined symbols.
18263no_undefined_flag=$lt_no_undefined_flag_CXX
18264
18265# Flag to hardcode \$libdir into a binary during linking.
18266# This must work even if \$libdir does not exist
18267hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18268
18269# If ld is used when linking, flag to hardcode \$libdir into a binary
18270# during linking. This must work even if \$libdir does not exist.
18271hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18272
18273# Whether we need a single "-rpath" flag with a separated argument.
18274hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18275
18276# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18277# DIR into the resulting binary.
18278hardcode_direct=$hardcode_direct_CXX
18279
18280# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18281# DIR into the resulting binary and the resulting library dependency is
18282# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18283# library is relocated.
18284hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18285
18286# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18287# into the resulting binary.
18288hardcode_minus_L=$hardcode_minus_L_CXX
18289
18290# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18291# into the resulting binary.
18292hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18293
18294# Set to "yes" if building a shared library automatically hardcodes DIR
18295# into the library and all subsequent libraries and executables linked
18296# against it.
18297hardcode_automatic=$hardcode_automatic_CXX
18298
18299# Set to yes if linker adds runtime paths of dependent libraries
18300# to runtime path list.
18301inherit_rpath=$inherit_rpath_CXX
18302
18303# Whether libtool must link a program against all its dependency libraries.
18304link_all_deplibs=$link_all_deplibs_CXX
18305
18306# Fix the shell variable \$srcfile for the compiler.
18307fix_srcfile_path=$lt_fix_srcfile_path_CXX
18308
18309# Set to "yes" if exported symbols are required.
18310always_export_symbols=$always_export_symbols_CXX
18311
18312# The commands to list exported symbols.
18313export_symbols_cmds=$lt_export_symbols_cmds_CXX
18314
18315# Symbols that should not be listed in the preloaded symbols.
18316exclude_expsyms=$lt_exclude_expsyms_CXX
18317
18318# Symbols that must always be exported.
18319include_expsyms=$lt_include_expsyms_CXX
18320
18321# Commands necessary for linking programs (against libraries) with templates.
18322prelink_cmds=$lt_prelink_cmds_CXX
18323
18324# Specify filename containing input files.
18325file_list_spec=$lt_file_list_spec_CXX
18326
18327# How to hardcode a shared library path into an executable.
18328hardcode_action=$hardcode_action_CXX
18329
18330# The directories searched by this compiler when creating a shared library.
18331compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18332
18333# Dependencies to place before and after the objects being linked to
18334# create a shared library.
18335predep_objects=$lt_predep_objects_CXX
18336postdep_objects=$lt_postdep_objects_CXX
18337predeps=$lt_predeps_CXX
18338postdeps=$lt_postdeps_CXX
18339
18340# The library search path used internally by the compiler when linking
18341# a shared library.
18342compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18343
18344# ### END LIBTOOL TAG CONFIG: CXX
18345_LT_EOF
18346
2077db1b
CT
18347 ;;
18348 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
18349s!`test -f '$<' || echo '$(srcdir)/'`!!
18350_EOF
18351 sed -f vpsed$$ $ac_file > tmp$$
18352 mv tmp$$ $ac_file
18353 rm vpsed$$
18354 echo 'MULTISUBDIR =' >> $ac_file
18355 ml_norecursion=yes
18356 . ${multi_basedir}/config-ml.in
18357 { ml_norecursion=; unset ml_norecursion;}
18358 ;;
18359
18360 esac
18361done # for ac_tag
18362
18363
18364as_fn_exit 0
18365_ACEOF
18366ac_clean_files=$ac_clean_files_save
18367
18368test $ac_write_fail = 0 ||
22e05272 18369 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
2077db1b
CT
18370
18371
18372# configure is writing to config.log, and then calls config.status.
18373# config.status does its own redirection, appending to config.log.
18374# Unfortunately, on DOS this fails, as config.log is still kept open
18375# by configure, so config.status won't be able to write to it; its
18376# output is simply discarded. So we exec the FD to /dev/null,
18377# effectively closing config.log, so it can be properly (re)opened and
18378# appended to by config.status. When coming back to configure, we
18379# need to make the FD available again.
18380if test "$no_create" != yes; then
18381 ac_cs_success=:
18382 ac_config_status_args=
18383 test "$silent" = yes &&
18384 ac_config_status_args="$ac_config_status_args --quiet"
18385 exec 5>/dev/null
18386 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18387 exec 5>>config.log
18388 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18389 # would make configure fail if this is the last instruction.
22e05272 18390 $ac_cs_success || as_fn_exit 1
2077db1b
CT
18391fi
18392if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18394$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18395fi
18396